toyvm.c: use correct path in debuginfo
[gcc.git] / libgfortran / configure
index ec63cdb1e9109f320946816daa16a1f38f2f5a18..e1592f732492de2c9aa27c3a5749d6c85aa5d500 100755 (executable)
@@ -169,6 +169,7 @@ test x\$exitcode = x0 || exit 1"
   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
+test \$(( 1 + 1 )) = 2 || exit 1
 
   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
@@ -176,8 +177,7 @@ test x\$exitcode = x0 || exit 1"
     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
     PATH=/empty FPATH=/empty; export PATH FPATH
     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
-      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
-test \$(( 1 + 1 )) = 2 || exit 1"
+      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
   if (eval "$as_required") 2>/dev/null; then :
   as_have_required=yes
 else
@@ -597,12 +597,18 @@ ac_includes_default="\
 # include <unistd.h>
 #endif"
 
+ac_header_list=
+ac_func_list=
+ac_c_werror_flag=
 ac_c_werror_flag=
 ac_subst_vars='am__EXEEXT_FALSE
 am__EXEEXT_TRUE
 LTLIBOBJS
 LIBOBJS
 IEEE_FLAGS
+IEEE_SUPPORT
+IEEE_SUPPORT_FALSE
+IEEE_SUPPORT_TRUE
 FPU_HOST_HEADER
 LIBGFOR_BUILD_QUAD_FALSE
 LIBGFOR_BUILD_QUAD_TRUE
@@ -617,7 +623,6 @@ FC
 enable_static
 enable_shared
 lt_host_flags
-CPP
 OTOOL64
 OTOOL
 LIPO
@@ -630,14 +635,14 @@ ac_ct_DUMPBIN
 DUMPBIN
 LD
 FGREP
-EGREP
-GREP
 SED
 LIBTOOL
 RANLIB
 AR
 AS
 SECTION_FLAGS
+LIBGFOR_MINIMAL_FALSE
+LIBGFOR_MINIMAL_TRUE
 LIBGFOR_USE_SYMVER_SUN_FALSE
 LIBGFOR_USE_SYMVER_SUN_TRUE
 LIBGFOR_USE_SYMVER_GNU_FALSE
@@ -646,9 +651,15 @@ LIBGFOR_USE_SYMVER_FALSE
 LIBGFOR_USE_SYMVER_TRUE
 AM_CFLAGS
 AM_FCFLAGS
+toolexeclibdir
+toolexecdir
+EGREP
+GREP
+CPP
 am__fastdepCC_FALSE
 am__fastdepCC_TRUE
 CCDEPMODE
+am__nodep
 AMDEPBACKSLASH
 AMDEP_FALSE
 AMDEP_TRUE
@@ -662,8 +673,6 @@ CPPFLAGS
 LDFLAGS
 CFLAGS
 CC
-toolexeclibdir
-toolexecdir
 multi_basedir
 MAINT
 MAINTAINER_MODE_FALSE
@@ -691,6 +700,7 @@ am__isrc
 INSTALL_DATA
 INSTALL_SCRIPT
 INSTALL_PROGRAM
+target_noncanonical
 target_os
 target_vendor
 target_cpu
@@ -757,6 +767,7 @@ enable_intermodule
 enable_maintainer_mode
 enable_multilib
 enable_dependency_tracking
+enable_symvers
 enable_shared
 enable_static
 with_pic
@@ -765,16 +776,19 @@ with_gnu_ld
 enable_libtool_lock
 enable_largefile
 enable_libquadmath_support
+with_system_libunwind
 '
       ac_precious_vars='build_alias
 host_alias
 target_alias
-CPP
+CC
+CFLAGS
+LDFLAGS
+LIBS
 CPPFLAGS
+CPP
 FC
-FCFLAGS
-LDFLAGS
-LIBS'
+FCFLAGS'
 
 
 # Initialize some variables set by options.
@@ -1404,6 +1418,7 @@ Optional Features:
   --enable-multilib       build many library versions (default)
   --disable-dependency-tracking  speeds up one-time build
   --enable-dependency-tracking   do not reject slow dependency extractors
+  --disable-symvers       disable symbol versioning for libgfortran
   --enable-shared[=PKGS]  build shared libraries [default=yes]
   --enable-static[=PKGS]  build static libraries [default=yes]
   --enable-fast-install[=PKGS]
@@ -1420,6 +1435,7 @@ Optional Packages:
   --with-pic              try to use only PIC/non-PIC objects [default=use
                           both]
   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
+  --with-system-libunwind use installed libunwind
 
 Some influential environment variables:
   CC          C compiler command
@@ -1553,21 +1569,20 @@ fi
 
 } # ac_fn_c_try_compile
 
-# ac_fn_c_try_link LINENO
-# -----------------------
-# Try to link conftest.$ac_ext, and return whether this succeeded.
-ac_fn_c_try_link ()
+# ac_fn_c_try_cpp LINENO
+# ----------------------
+# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
+ac_fn_c_try_cpp ()
 {
   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
-  rm -f conftest.$ac_objext conftest$ac_exeext
-  if { { ac_try="$ac_link"
+  if { { ac_try="$ac_cpp conftest.$ac_ext"
 case "(($ac_try" in
   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   *) ac_try_echo=$ac_try;;
 esac
 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 $as_echo "$ac_try_echo"; } >&5
-  (eval "$ac_link") 2>conftest.err
+  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   ac_status=$?
   if test -s conftest.err; then
     grep -v '^ *+' conftest.err >conftest.er1
@@ -1575,97 +1590,108 @@ $as_echo "$ac_try_echo"; } >&5
     mv -f conftest.er1 conftest.err
   fi
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; } && {
-        test -z "$ac_c_werror_flag" ||
+  test $ac_status = 0; } >/dev/null && {
+        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
         test ! -s conftest.err
-       } && test -s conftest$ac_exeext && {
-        test "$cross_compiling" = yes ||
-        $as_test_x conftest$ac_exeext
        }; then :
   ac_retval=0
 else
   $as_echo "$as_me: failed program was:" >&5
 sed 's/^/| /' conftest.$ac_ext >&5
 
-       ac_retval=1
+    ac_retval=1
 fi
-  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
-  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
-  # interfere with the next link command; also delete a directory that is
-  # left behind by Apple's compiler.  We do this before executing the actions.
-  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   return $ac_retval
 
-} # ac_fn_c_try_link
+} # ac_fn_c_try_cpp
 
-# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
+# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 # -------------------------------------------------------
-# Tests whether HEADER exists and can be compiled using the include files in
-# INCLUDES, setting the cache variable VAR accordingly.
-ac_fn_c_check_header_compile ()
+# Tests whether HEADER exists, giving a warning if it cannot be compiled using
+# the include files in INCLUDES and setting the cache variable VAR
+# accordingly.
+ac_fn_c_check_header_mongrel ()
 {
   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 $as_echo_n "checking for $2... " >&6; }
 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   $as_echo_n "(cached) " >&6
+fi
+eval ac_res=\$$3
+              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
 else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+  # Is the header compilable?
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
+$as_echo_n "checking $2 usability... " >&6; }
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 $4
 #include <$2>
 _ACEOF
 if ac_fn_c_try_compile "$LINENO"; then :
-  eval "$3=yes"
+  ac_header_compiler=yes
 else
-  eval "$3=no"
+  ac_header_compiler=no
 fi
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-eval ac_res=\$$3
-              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
-$as_echo "$ac_res" >&6; }
-  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
+$as_echo "$ac_header_compiler" >&6; }
 
-} # ac_fn_c_check_header_compile
+# Is the header present?
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
+$as_echo_n "checking $2 presence... " >&6; }
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#include <$2>
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"; then :
+  ac_header_preproc=yes
+else
+  ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
+$as_echo "$ac_header_preproc" >&6; }
 
-# ac_fn_c_try_cpp LINENO
-# ----------------------
-# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
-ac_fn_c_try_cpp ()
-{
-  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
-  if { { ac_try="$ac_cpp conftest.$ac_ext"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
+# So?  What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
+  yes:no: )
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
+$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
+    ;;
+  no:yes:* )
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
+$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
+$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
+$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
+$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
+    ;;
 esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
-  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
-  ac_status=$?
-  if test -s conftest.err; then
-    grep -v '^ *+' conftest.err >conftest.er1
-    cat conftest.er1 >&5
-    mv -f conftest.er1 conftest.err
-  fi
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; } >/dev/null && {
-        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       }; then :
-  ac_retval=0
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+$as_echo_n "checking for $2... " >&6; }
+if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
+  $as_echo_n "(cached) " >&6
 else
-  $as_echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-    ac_retval=1
+  eval "$3=\$ac_header_compiler"
+fi
+eval ac_res=\$$3
+              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
 fi
   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
-  return $ac_retval
 
-} # ac_fn_c_try_cpp
+} # ac_fn_c_check_header_mongrel
 
 # ac_fn_c_try_run LINENO
 # ----------------------
@@ -1709,6 +1735,83 @@ fi
 
 } # ac_fn_c_try_run
 
+# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
+# -------------------------------------------------------
+# Tests whether HEADER exists and can be compiled using the include files in
+# INCLUDES, setting the cache variable VAR accordingly.
+ac_fn_c_check_header_compile ()
+{
+  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+$as_echo_n "checking for $2... " >&6; }
+if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
+  $as_echo_n "(cached) " >&6
+else
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+$4
+#include <$2>
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+  eval "$3=yes"
+else
+  eval "$3=no"
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+eval ac_res=\$$3
+              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
+
+} # ac_fn_c_check_header_compile
+
+# ac_fn_c_try_link LINENO
+# -----------------------
+# Try to link conftest.$ac_ext, and return whether this succeeded.
+ac_fn_c_try_link ()
+{
+  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+  rm -f conftest.$ac_objext conftest$ac_exeext
+  if { { ac_try="$ac_link"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+  (eval "$ac_link") 2>conftest.err
+  ac_status=$?
+  if test -s conftest.err; then
+    grep -v '^ *+' conftest.err >conftest.er1
+    cat conftest.er1 >&5
+    mv -f conftest.er1 conftest.err
+  fi
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; } && {
+        test -z "$ac_c_werror_flag" ||
+        test ! -s conftest.err
+       } && test -s conftest$ac_exeext && {
+        test "$cross_compiling" = yes ||
+        $as_test_x conftest$ac_exeext
+       }; then :
+  ac_retval=0
+else
+  $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+       ac_retval=1
+fi
+  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
+  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
+  # interfere with the next link command; also delete a directory that is
+  # left behind by Apple's compiler.  We do this before executing the actions.
+  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
+  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
+  return $ac_retval
+
+} # ac_fn_c_try_link
+
 # ac_fn_c_check_func LINENO FUNC VAR
 # ----------------------------------
 # Tests whether FUNC exists, setting the cache variable VAR accordingly
@@ -1917,99 +2020,12 @@ $as_echo "$ac_res" >&6; }
 
 } # ac_fn_c_check_type
 
-# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
-# -------------------------------------------------------
-# Tests whether HEADER exists, giving a warning if it cannot be compiled using
-# the include files in INCLUDES and setting the cache variable VAR
-# accordingly.
-ac_fn_c_check_header_mongrel ()
-{
-  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
-  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
-$as_echo_n "checking for $2... " >&6; }
-if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
-  $as_echo_n "(cached) " >&6
-fi
-eval ac_res=\$$3
-              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
-$as_echo "$ac_res" >&6; }
-else
-  # Is the header compilable?
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
-$as_echo_n "checking $2 usability... " >&6; }
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-$4
-#include <$2>
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-  ac_header_compiler=yes
-else
-  ac_header_compiler=no
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
-$as_echo "$ac_header_compiler" >&6; }
-
-# Is the header present?
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
-$as_echo_n "checking $2 presence... " >&6; }
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <$2>
-_ACEOF
-if ac_fn_c_try_cpp "$LINENO"; then :
-  ac_header_preproc=yes
-else
-  ac_header_preproc=no
-fi
-rm -f conftest.err conftest.$ac_ext
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
-$as_echo "$ac_header_preproc" >&6; }
-
-# So?  What about this header?
-case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
-  yes:no: )
-    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
-$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
-    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
-$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
-    ;;
-  no:yes:* )
-    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
-$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
-    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
-$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
-    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
-$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
-    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
-$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
-    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
-$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
-    ;;
-esac
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
-$as_echo_n "checking for $2... " >&6; }
-if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
-  $as_echo_n "(cached) " >&6
-else
-  eval "$3=\$ac_header_compiler"
-fi
-eval ac_res=\$$3
-              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
-$as_echo "$ac_res" >&6; }
-fi
-  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
-
-} # ac_fn_c_check_header_mongrel
-
-# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
-# --------------------------------------------
-# Tries to find the compile-time value of EXPR in a program that includes
-# INCLUDES, setting VAR accordingly. Returns whether the value could be
-# computed
-ac_fn_c_compute_int ()
+# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
+# --------------------------------------------
+# Tries to find the compile-time value of EXPR in a program that includes
+# INCLUDES, setting VAR accordingly. Returns whether the value could be
+# computed
+ac_fn_c_compute_int ()
 {
   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   if test "$cross_compiling" = yes; then
@@ -2521,6 +2537,82 @@ $as_echo "$as_me: creating cache $cache_file" >&6;}
   >$cache_file
 fi
 
+as_fn_append ac_header_list " unistd.h"
+as_fn_append ac_header_list " sys/time.h"
+as_fn_append ac_header_list " sys/times.h"
+as_fn_append ac_header_list " sys/resource.h"
+as_fn_append ac_header_list " sys/types.h"
+as_fn_append ac_header_list " sys/stat.h"
+as_fn_append ac_header_list " sys/wait.h"
+as_fn_append ac_header_list " floatingpoint.h"
+as_fn_append ac_header_list " ieeefp.h"
+as_fn_append ac_header_list " fenv.h"
+as_fn_append ac_header_list " fptrap.h"
+as_fn_append ac_header_list " fpxcp.h"
+as_fn_append ac_header_list " pwd.h"
+as_fn_append ac_header_list " complex.h"
+as_fn_append ac_header_list " xlocale.h"
+as_fn_append ac_func_list " getrusage"
+as_fn_append ac_func_list " times"
+as_fn_append ac_func_list " mkstemp"
+as_fn_append ac_func_list " strtof"
+as_fn_append ac_func_list " strtold"
+as_fn_append ac_func_list " snprintf"
+as_fn_append ac_func_list " ftruncate"
+as_fn_append ac_func_list " chsize"
+as_fn_append ac_func_list " chdir"
+as_fn_append ac_func_list " getlogin"
+as_fn_append ac_func_list " gethostname"
+as_fn_append ac_func_list " kill"
+as_fn_append ac_func_list " link"
+as_fn_append ac_func_list " symlink"
+as_fn_append ac_func_list " sleep"
+as_fn_append ac_func_list " ttyname"
+as_fn_append ac_func_list " alarm"
+as_fn_append ac_func_list " access"
+as_fn_append ac_func_list " fork"
+as_fn_append ac_func_list " execl"
+as_fn_append ac_func_list " wait"
+as_fn_append ac_func_list " setmode"
+as_fn_append ac_func_list " execve"
+as_fn_append ac_func_list " pipe"
+as_fn_append ac_func_list " dup2"
+as_fn_append ac_func_list " close"
+as_fn_append ac_func_list " fcntl"
+as_fn_append ac_func_list " strcasestr"
+as_fn_append ac_func_list " getrlimit"
+as_fn_append ac_func_list " gettimeofday"
+as_fn_append ac_func_list " stat"
+as_fn_append ac_func_list " fstat"
+as_fn_append ac_func_list " lstat"
+as_fn_append ac_func_list " getpwuid"
+as_fn_append ac_func_list " vsnprintf"
+as_fn_append ac_func_list " dup"
+as_fn_append ac_func_list " getcwd"
+as_fn_append ac_func_list " localtime_r"
+as_fn_append ac_func_list " gmtime_r"
+as_fn_append ac_func_list " getpwuid_r"
+as_fn_append ac_func_list " ttyname_r"
+as_fn_append ac_func_list " clock_gettime"
+as_fn_append ac_func_list " readlink"
+as_fn_append ac_func_list " getgid"
+as_fn_append ac_func_list " getpid"
+as_fn_append ac_func_list " getppid"
+as_fn_append ac_func_list " getuid"
+as_fn_append ac_func_list " geteuid"
+as_fn_append ac_func_list " umask"
+as_fn_append ac_func_list " getegid"
+as_fn_append ac_func_list " secure_getenv"
+as_fn_append ac_func_list " __secure_getenv"
+as_fn_append ac_func_list " mkostemp"
+as_fn_append ac_func_list " strnlen"
+as_fn_append ac_func_list " strndup"
+as_fn_append ac_func_list " strtok_r"
+as_fn_append ac_func_list " newlocale"
+as_fn_append ac_func_list " freelocale"
+as_fn_append ac_func_list " uselocale"
+as_fn_append ac_func_list " strerror_l"
+as_fn_append ac_header_list " math.h"
 # Check that the precious variables saved in the cache have kept the same
 # value.
 ac_cache_corrupted=false
@@ -2834,8 +2926,12 @@ test -n "$target_alias" &&
     NONENONEs,x,x, &&
   program_prefix=${target_alias}-
 
+
+
+
 target_alias=${target_alias-$host_alias}
 
+
 # Sets up automake.  Must come after AC_CANONICAL_SYSTEM.  Each of the
 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
 #  1.9.6:  minimum required version
@@ -3306,11 +3402,11 @@ MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
 # We need awk for the "check" target.  The system "awk" is bad on
 # some platforms.
-# Always define AMTAR for backward compatibility.
-
-AMTAR=${AMTAR-"${am_missing_run}tar"}
+# Always define AMTAR for backward compatibility.  Yes, it's still used
+# in the wild :-(  We should find a proper way to deprecate it ...
+AMTAR='$${TAR-tar}'
 
-am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
+am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
 
 
 
@@ -3391,45 +3487,67 @@ else
   LIBGFOR_IS_NATIVE=true
 fi
 
-# Calculate toolexeclibdir
-# Also toolexecdir, though it's only used in toolexeclibdir
-case ${version_specific_libs} in
-  yes)
-    # Need the gcc compiler version to know where to install libraries
-    # and header files if --enable-version-specific-runtime-libs option
-    # is selected.
-    toolexecdir='$(libdir)/gcc/$(target_alias)'
-    toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
-    ;;
-  no)
-    if test -n "$with_cross_host" &&
-       test x"$with_cross_host" != x"no"; then
-      # Install a library built with a cross compiler in tooldir, not libdir.
-      toolexecdir='$(exec_prefix)/$(target_alias)'
-      toolexeclibdir='$(toolexecdir)/lib'
-    else
-      toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
-      toolexeclibdir='$(libdir)'
-    fi
-    multi_os_directory=`$CC -print-multi-os-directory`
-    case $multi_os_directory in
-      .) ;; # Avoid trailing /.
-      *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
-    esac
-    ;;
-esac
+DEPDIR="${am__leading_dot}deps"
 
+ac_config_commands="$ac_config_commands depfiles"
 
 
-# Create a spec file, so that compile/link tests don't fail
-test -f libgfortran.spec || touch libgfortran.spec
+am_make=${MAKE-make}
+cat > confinc << 'END'
+am__doit:
+       @echo this is the am__doit target
+.PHONY: am__doit
+END
+# If we don't find an include directive, just comment out the code.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
+$as_echo_n "checking for style of include used by $am_make... " >&6; }
+am__include="#"
+am__quote=
+_am_result=none
+# First try GNU make style include.
+echo "include confinc" > confmf
+# Ignore all kinds of additional output from `make'.
+case `$am_make -s -f confmf 2> /dev/null` in #(
+*the\ am__doit\ target*)
+  am__include=include
+  am__quote=
+  _am_result=GNU
+  ;;
+esac
+# Now try BSD make style include.
+if test "$am__include" = "#"; then
+   echo '.include "confinc"' > confmf
+   case `$am_make -s -f confmf 2> /dev/null` in #(
+   *the\ am__doit\ target*)
+     am__include=.include
+     am__quote="\""
+     _am_result=BSD
+     ;;
+   esac
+fi
 
-# Check the compiler.
-# The same as in boehm-gc and libstdc++. Have to borrow it from there.
-# We must force CC to /not/ be precious variables; otherwise
-# the wrong, non-multilib-adjusted value will be used in multilibs.
-# As a side effect, we have to subst CFLAGS ourselves.
 
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
+$as_echo "$_am_result" >&6; }
+rm -f confinc confmf
+
+# Check whether --enable-dependency-tracking was given.
+if test "${enable_dependency_tracking+set}" = set; then :
+  enableval=$enable_dependency_tracking;
+fi
+
+if test "x$enable_dependency_tracking" != xno; then
+  am_depcomp="$ac_aux_dir/depcomp"
+  AMDEPBACKSLASH='\'
+  am__nodep='_no'
+fi
+ if test "x$enable_dependency_tracking" != xno; then
+  AMDEP_TRUE=
+  AMDEP_FALSE='#'
+else
+  AMDEP_TRUE='#'
+  AMDEP_FALSE=
+fi
 
 
 ac_ext=c
@@ -4225,68 +4343,6 @@ ac_cpp='$CPP $CPPFLAGS'
 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 ac_compiler_gnu=$ac_cv_c_compiler_gnu
-DEPDIR="${am__leading_dot}deps"
-
-ac_config_commands="$ac_config_commands depfiles"
-
-
-am_make=${MAKE-make}
-cat > confinc << 'END'
-am__doit:
-       @echo this is the am__doit target
-.PHONY: am__doit
-END
-# If we don't find an include directive, just comment out the code.
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
-$as_echo_n "checking for style of include used by $am_make... " >&6; }
-am__include="#"
-am__quote=
-_am_result=none
-# First try GNU make style include.
-echo "include confinc" > confmf
-# Ignore all kinds of additional output from `make'.
-case `$am_make -s -f confmf 2> /dev/null` in #(
-*the\ am__doit\ target*)
-  am__include=include
-  am__quote=
-  _am_result=GNU
-  ;;
-esac
-# Now try BSD make style include.
-if test "$am__include" = "#"; then
-   echo '.include "confinc"' > confmf
-   case `$am_make -s -f confmf 2> /dev/null` in #(
-   *the\ am__doit\ target*)
-     am__include=.include
-     am__quote="\""
-     _am_result=BSD
-     ;;
-   esac
-fi
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
-$as_echo "$_am_result" >&6; }
-rm -f confinc confmf
-
-# Check whether --enable-dependency-tracking was given.
-if test "${enable_dependency_tracking+set}" = set; then :
-  enableval=$enable_dependency_tracking;
-fi
-
-if test "x$enable_dependency_tracking" != xno; then
-  am_depcomp="$ac_aux_dir/depcomp"
-  AMDEPBACKSLASH='\'
-fi
- if test "x$enable_dependency_tracking" != xno; then
-  AMDEP_TRUE=
-  AMDEP_FALSE='#'
-else
-  AMDEP_TRUE='#'
-  AMDEP_FALSE=
-fi
-
-
 
 depcc="$CC"   am_compiler_list=
 
@@ -4301,6 +4357,7 @@ else
   # instance it was reported that on HP-UX the gcc test will end up
   # making a dummy file named `D' -- because `-MD' means `put the output
   # in D'.
+  rm -rf conftest.dir
   mkdir conftest.dir
   # Copy depcomp to subdir because otherwise we won't find it if we're
   # using a relative directory.
@@ -4360,7 +4417,7 @@ else
        break
       fi
       ;;
-    msvisualcpp | msvcmsys)
+    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
       # This compiler won't grok `-c -o', but also, the minuso test has
       # not run yet.  These depmodes are late enough in the game, and
       # so weak that their functioning should not be impacted.
 
 
 
-
-# Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
-if test "x$GCC" = "xyes"; then
-  AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
-  ## We like to use C99 routines when available.  This makes sure that
-  ## __STDC_VERSION__ is set such that libc includes make them available.
-  AM_CFLAGS="-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings"
-  ## Compile the following tests with the same system header contents
-  ## that we'll encounter when compiling our own source files.
-  CFLAGS="-std=gnu99 $CFLAGS"
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
+$as_echo_n "checking how to run the C preprocessor... " >&6; }
+# On Suns, sometimes $CPP names a directory.
+if test -n "$CPP" && test -d "$CPP"; then
+  CPP=
 fi
-
-
-
-
-# Check for symbol versioning (copied from libssp).
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
-$as_echo_n "checking whether symbol versioning is supported... " >&6; }
-save_LDFLAGS="$LDFLAGS"
-LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
-cat > conftest.map <<EOF
+if test -z "$CPP"; then
+  if test "${ac_cv_prog_CPP+set}" = set; then :
+  $as_echo_n "(cached) " >&6
+else
+      # Double quotes because CPP needs to be expanded
+    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
+    do
+      ac_preproc_ok=false
+for ac_c_preproc_warn_flag in '' yes
+do
+  # Use a header file that comes with gcc, so configuring glibc
+  # with a fresh cross-compiler works.
+  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+  # <limits.h> exists even on freestanding compilers.
+  # On the NeXT, cc -E runs the code through the compiler's parser,
+  # not just through cpp. "Syntax error" is here to catch this case.
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+                    Syntax error
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"; then :
+
+else
+  # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.$ac_ext
+
+  # OK, works on sane cases.  Now check whether nonexistent headers
+  # can be detected and how.
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#include <ac_nonexistent.h>
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"; then :
+  # Broken: success on invalid input.
+continue
+else
+  # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+rm -f conftest.err conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then :
+  break
+fi
+
+    done
+    ac_cv_prog_CPP=$CPP
+
+fi
+  CPP=$ac_cv_prog_CPP
+else
+  ac_cv_prog_CPP=$CPP
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
+$as_echo "$CPP" >&6; }
+ac_preproc_ok=false
+for ac_c_preproc_warn_flag in '' yes
+do
+  # Use a header file that comes with gcc, so configuring glibc
+  # with a fresh cross-compiler works.
+  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+  # <limits.h> exists even on freestanding compilers.
+  # On the NeXT, cc -E runs the code through the compiler's parser,
+  # not just through cpp. "Syntax error" is here to catch this case.
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+                    Syntax error
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"; then :
+
+else
+  # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.$ac_ext
+
+  # OK, works on sane cases.  Now check whether nonexistent headers
+  # can be detected and how.
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#include <ac_nonexistent.h>
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"; then :
+  # Broken: success on invalid input.
+continue
+else
+  # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+rm -f conftest.err conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then :
+
+else
+  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error "C preprocessor \"$CPP\" fails sanity check
+See \`config.log' for more details." "$LINENO" 5; }
+fi
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
+$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
+if test "${ac_cv_path_GREP+set}" = set; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -z "$GREP"; then
+  ac_path_GREP_found=false
+  # Loop through the user's path and test for each of PROGNAME-LIST
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_prog in grep ggrep; do
+    for ac_exec_ext in '' $ac_executable_extensions; do
+      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
+      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
+# Check for GNU ac_path_GREP and select it if it is found.
+  # Check for GNU $ac_path_GREP
+case `"$ac_path_GREP" --version 2>&1` in
+*GNU*)
+  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
+*)
+  ac_count=0
+  $as_echo_n 0123456789 >"conftest.in"
+  while :
+  do
+    cat "conftest.in" "conftest.in" >"conftest.tmp"
+    mv "conftest.tmp" "conftest.in"
+    cp "conftest.in" "conftest.nl"
+    $as_echo 'GREP' >> "conftest.nl"
+    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
+    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+    as_fn_arith $ac_count + 1 && ac_count=$as_val
+    if test $ac_count -gt ${ac_path_GREP_max-0}; then
+      # Best one so far, save it but keep looking for a better one
+      ac_cv_path_GREP="$ac_path_GREP"
+      ac_path_GREP_max=$ac_count
+    fi
+    # 10*(2^10) chars as input seems more than enough
+    test $ac_count -gt 10 && break
+  done
+  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+      $ac_path_GREP_found && break 3
+    done
+  done
+  done
+IFS=$as_save_IFS
+  if test -z "$ac_cv_path_GREP"; then
+    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
+  fi
+else
+  ac_cv_path_GREP=$GREP
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
+$as_echo "$ac_cv_path_GREP" >&6; }
+ GREP="$ac_cv_path_GREP"
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
+$as_echo_n "checking for egrep... " >&6; }
+if test "${ac_cv_path_EGREP+set}" = set; then :
+  $as_echo_n "(cached) " >&6
+else
+  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
+   then ac_cv_path_EGREP="$GREP -E"
+   else
+     if test -z "$EGREP"; then
+  ac_path_EGREP_found=false
+  # Loop through the user's path and test for each of PROGNAME-LIST
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_prog in egrep; do
+    for ac_exec_ext in '' $ac_executable_extensions; do
+      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
+      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
+# Check for GNU ac_path_EGREP and select it if it is found.
+  # Check for GNU $ac_path_EGREP
+case `"$ac_path_EGREP" --version 2>&1` in
+*GNU*)
+  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
+*)
+  ac_count=0
+  $as_echo_n 0123456789 >"conftest.in"
+  while :
+  do
+    cat "conftest.in" "conftest.in" >"conftest.tmp"
+    mv "conftest.tmp" "conftest.in"
+    cp "conftest.in" "conftest.nl"
+    $as_echo 'EGREP' >> "conftest.nl"
+    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
+    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+    as_fn_arith $ac_count + 1 && ac_count=$as_val
+    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
+      # Best one so far, save it but keep looking for a better one
+      ac_cv_path_EGREP="$ac_path_EGREP"
+      ac_path_EGREP_max=$ac_count
+    fi
+    # 10*(2^10) chars as input seems more than enough
+    test $ac_count -gt 10 && break
+  done
+  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+      $ac_path_EGREP_found && break 3
+    done
+  done
+  done
+IFS=$as_save_IFS
+  if test -z "$ac_cv_path_EGREP"; then
+    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
+  fi
+else
+  ac_cv_path_EGREP=$EGREP
+fi
+
+   fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
+$as_echo "$ac_cv_path_EGREP" >&6; }
+ EGREP="$ac_cv_path_EGREP"
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
+$as_echo_n "checking for ANSI C header files... " >&6; }
+if test "${ac_cv_header_stdc+set}" = set; then :
+  $as_echo_n "(cached) " >&6
+else
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#include <stdlib.h>
+#include <stdarg.h>
+#include <string.h>
+#include <float.h>
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+  ac_cv_header_stdc=yes
+else
+  ac_cv_header_stdc=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
+if test $ac_cv_header_stdc = yes; then
+  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#include <string.h>
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+  $EGREP "memchr" >/dev/null 2>&1; then :
+
+else
+  ac_cv_header_stdc=no
+fi
+rm -f conftest*
+
+fi
+
+if test $ac_cv_header_stdc = yes; then
+  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#include <stdlib.h>
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+  $EGREP "free" >/dev/null 2>&1; then :
+
+else
+  ac_cv_header_stdc=no
+fi
+rm -f conftest*
+
+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 :
+  :
+else
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#include <ctype.h>
+#include <stdlib.h>
+#if ((' ' & 0x0FF) == 0x020)
+# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
+#else
+# define ISLOWER(c) \
+                  (('a' <= (c) && (c) <= 'i') \
+                    || ('j' <= (c) && (c) <= 'r') \
+                    || ('s' <= (c) && (c) <= 'z'))
+# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
+#endif
+
+#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))
+      return 2;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_run "$LINENO"; then :
+
+else
+  ac_cv_header_stdc=no
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+  conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+
+fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
+$as_echo "$ac_cv_header_stdc" >&6; }
+if test $ac_cv_header_stdc = yes; then
+
+$as_echo "#define STDC_HEADERS 1" >>confdefs.h
+
+fi
+
+# On IRIX 5.3, sys/types and inttypes.h are conflicting.
+for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
+                 inttypes.h stdint.h unistd.h
+do :
+  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
+"
+eval as_val=\$$as_ac_Header
+   if test "x$as_val" = x""yes; then :
+  cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+
+
+  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
+if test "x$ac_cv_header_minix_config_h" = x""yes; then :
+  MINIX=yes
+else
+  MINIX=
+fi
+
+
+  if test "$MINIX" = yes; then
+
+$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
+
+
+$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
+
+
+$as_echo "#define _MINIX 1" >>confdefs.h
+
+  fi
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
+$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
+if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
+  $as_echo_n "(cached) " >&6
+else
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+#        define __EXTENSIONS__ 1
+         $ac_includes_default
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+  ac_cv_safe_to_define___extensions__=yes
+else
+  ac_cv_safe_to_define___extensions__=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
+$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
+  test $ac_cv_safe_to_define___extensions__ = yes &&
+    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
+
+  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
+
+  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
+
+  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
+
+  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
+
+
+
+# Calculate toolexeclibdir
+# Also toolexecdir, though it's only used in toolexeclibdir
+case ${version_specific_libs} in
+  yes)
+    # Need the gcc compiler version to know where to install libraries
+    # and header files if --enable-version-specific-runtime-libs option
+    # is selected.
+    toolexecdir='$(libdir)/gcc/$(target_alias)'
+    toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
+    ;;
+  no)
+    if test -n "$with_cross_host" &&
+       test x"$with_cross_host" != x"no"; then
+      # Install a library built with a cross compiler in tooldir, not libdir.
+      toolexecdir='$(exec_prefix)/$(target_alias)'
+      toolexeclibdir='$(toolexecdir)/lib'
+    else
+      toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
+      toolexeclibdir='$(libdir)'
+    fi
+    multi_os_directory=`$CC -print-multi-os-directory`
+    case $multi_os_directory in
+      .) ;; # Avoid trailing /.
+      *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
+    esac
+    ;;
+esac
+
+
+
+# Create a spec file, so that compile/link tests don't fail
+test -f libgfortran.spec || touch libgfortran.spec
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+# Check the compiler.
+# The same as in boehm-gc and libstdc++. Have to borrow it from there.
+# We must force CC to /not/ be precious variables; otherwise
+# the wrong, non-multilib-adjusted value will be used in multilibs.
+# As a side effect, we have to subst CFLAGS ourselves.
+
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+if test -n "$ac_tool_prefix"; then
+  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
+set dummy ${ac_tool_prefix}gcc; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_CC+set}" = set; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$CC"; then
+  ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+    ac_cv_prog_CC="${ac_tool_prefix}gcc"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_CC"; then
+  ac_ct_CC=$CC
+  # Extract the first word of "gcc", so it can be a program name with args.
+set dummy gcc; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$ac_ct_CC"; then
+  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+    ac_cv_prog_ac_ct_CC="gcc"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
+$as_echo "$ac_ct_CC" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+  if test "x$ac_ct_CC" = x; then
+    CC=""
+  else
+    case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+    CC=$ac_ct_CC
+  fi
+else
+  CC="$ac_cv_prog_CC"
+fi
+
+if test -z "$CC"; then
+          if test -n "$ac_tool_prefix"; then
+    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
+set dummy ${ac_tool_prefix}cc; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_CC+set}" = set; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$CC"; then
+  ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+    ac_cv_prog_CC="${ac_tool_prefix}cc"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+  fi
+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
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_CC+set}" = set; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$CC"; then
+  ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+  ac_prog_rejected=no
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
+       ac_prog_rejected=yes
+       continue
+     fi
+    ac_cv_prog_CC="cc"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_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 $# != 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
+    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
+  fi
+fi
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$CC"; then
+  if test -n "$ac_tool_prefix"; then
+  for ac_prog in cl.exe
+  do
+    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_CC+set}" = set; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$CC"; then
+  ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+    test -n "$CC" && break
+  done
+fi
+if test -z "$CC"; then
+  ac_ct_CC=$CC
+  for ac_prog in cl.exe
+do
+  # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$ac_ct_CC"; then
+  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+    ac_cv_prog_ac_ct_CC="$ac_prog"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
+$as_echo "$ac_ct_CC" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+  test -n "$ac_ct_CC" && break
+done
+
+  if test "x$ac_ct_CC" = x; then
+    CC=""
+  else
+    case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+    CC=$ac_ct_CC
+  fi
+fi
+
+fi
+
+
+test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error "no acceptable C compiler found in \$PATH
+See \`config.log' for more details." "$LINENO" 5; }
+
+# Provide some information about the compiler.
+$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
+set X $ac_compile
+ac_compiler=$2
+for ac_option in --version -v -V -qversion; do
+  { { ac_try="$ac_compiler $ac_option >&5"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
+  ac_status=$?
+  if test -s conftest.err; then
+    sed '10a\
+... rest of stderr output deleted ...
+         10q' conftest.err >conftest.er1
+    cat conftest.er1 >&5
+    rm -f conftest.er1 conftest.err
+  fi
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }
+done
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
+$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
+if test "${ac_cv_c_compiler_gnu+set}" = set; then :
+  $as_echo_n "(cached) " >&6
+else
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+int
+main ()
+{
+#ifndef __GNUC__
+       choke me
+#endif
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+  ac_compiler_gnu=yes
+else
+  ac_compiler_gnu=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_cv_c_compiler_gnu=$ac_compiler_gnu
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
+$as_echo "$ac_cv_c_compiler_gnu" >&6; }
+if test $ac_compiler_gnu = yes; then
+  GCC=yes
+else
+  GCC=
+fi
+ac_test_CFLAGS=${CFLAGS+set}
+ac_save_CFLAGS=$CFLAGS
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
+$as_echo_n "checking whether $CC accepts -g... " >&6; }
+if test "${ac_cv_prog_cc_g+set}" = set; then :
+  $as_echo_n "(cached) " >&6
+else
+  ac_save_c_werror_flag=$ac_c_werror_flag
+   ac_c_werror_flag=yes
+   ac_cv_prog_cc_g=no
+   CFLAGS="-g"
+   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+  ac_cv_prog_cc_g=yes
+else
+  CFLAGS=""
+      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+
+else
+  ac_c_werror_flag=$ac_save_c_werror_flag
+        CFLAGS="-g"
+        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+  ac_cv_prog_cc_g=yes
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+   ac_c_werror_flag=$ac_save_c_werror_flag
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
+$as_echo "$ac_cv_prog_cc_g" >&6; }
+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
+    CFLAGS="-g -O2"
+  else
+    CFLAGS="-g"
+  fi
+else
+  if test "$GCC" = yes; then
+    CFLAGS="-O2"
+  else
+    CFLAGS=
+  fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
+$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
+if test "${ac_cv_prog_cc_c89+set}" = set; then :
+  $as_echo_n "(cached) " >&6
+else
+  ac_cv_prog_cc_c89=no
+ac_save_CC=$CC
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#include <stdarg.h>
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
+struct buf { int x; };
+FILE * (*rcsopen) (struct buf *, struct stat *, int);
+static char *e (p, i)
+     char **p;
+     int i;
+{
+  return p[i];
+}
+static char *f (char * (*g) (char **, int), char **p, ...)
+{
+  char *s;
+  va_list v;
+  va_start (v,p);
+  s = g (p, va_arg (v,int));
+  va_end (v);
+  return s;
+}
+
+/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
+   function prototypes and stuff, but not '\xHH' hex character constants.
+   These don't provoke an error unfortunately, instead are silently treated
+   as 'x'.  The following induces an error, until -std is added to get
+   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
+   array size at least.  It's necessary to write '\x00'==0 to get something
+   that's true only with -std.  */
+int osf4_cc_array ['\x00' == 0 ? 1 : -1];
+
+/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
+   inside strings and character constants.  */
+#define FOO(x) 'x'
+int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
+
+int test (int i, double x);
+struct s1 {int (*f) (int a);};
+struct s2 {int (*f) (double a);};
+int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
+int argc;
+char **argv;
+int
+main ()
+{
+return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
+  ;
+  return 0;
+}
+_ACEOF
+for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
+       -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
+do
+  CC="$ac_save_CC $ac_arg"
+  if ac_fn_c_try_compile "$LINENO"; then :
+  ac_cv_prog_cc_c89=$ac_arg
+fi
+rm -f core conftest.err conftest.$ac_objext
+  test "x$ac_cv_prog_cc_c89" != "xno" && break
+done
+rm -f conftest.$ac_ext
+CC=$ac_save_CC
+
+fi
+# AC_CACHE_VAL
+case "x$ac_cv_prog_cc_c89" in
+  x)
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
+$as_echo "none needed" >&6; } ;;
+  xno)
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
+$as_echo "unsupported" >&6; } ;;
+  *)
+    CC="$CC $ac_cv_prog_cc_c89"
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
+$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
+esac
+if test "x$ac_cv_prog_cc_c89" != xno; then :
+
+fi
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+depcc="$CC"   am_compiler_list=
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
+$as_echo_n "checking dependency style of $depcc... " >&6; }
+if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
+  # We make a subdir and do the tests there.  Otherwise we can end up
+  # making bogus files that we don't know about and never remove.  For
+  # instance it was reported that on HP-UX the gcc test will end up
+  # making a dummy file named `D' -- because `-MD' means `put the output
+  # in D'.
+  rm -rf conftest.dir
+  mkdir conftest.dir
+  # Copy depcomp to subdir because otherwise we won't find it if we're
+  # using a relative directory.
+  cp "$am_depcomp" conftest.dir
+  cd conftest.dir
+  # We will build objects and dependencies in a subdirectory because
+  # it helps to detect inapplicable dependency modes.  For instance
+  # both Tru64's cc and ICC support -MD to output dependencies as a
+  # side effect of compilation, but ICC will put the dependencies in
+  # the current directory while Tru64 will put them in the object
+  # directory.
+  mkdir sub
+
+  am_cv_CC_dependencies_compiler_type=none
+  if test "$am_compiler_list" = ""; then
+     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
+  fi
+  am__universal=false
+  case " $depcc " in #(
+     *\ -arch\ *\ -arch\ *) am__universal=true ;;
+     esac
+
+  for depmode in $am_compiler_list; do
+    # Setup a source with many dependencies, because some compilers
+    # like to wrap large dependency lists on column 80 (with \), and
+    # we should not choose a depcomp mode which is confused by this.
+    #
+    # We need to recreate these files for each test, as the compiler may
+    # overwrite some of them when testing with obscure command lines.
+    # This happens at least with the AIX C compiler.
+    : > sub/conftest.c
+    for i in 1 2 3 4 5 6; do
+      echo '#include "conftst'$i'.h"' >> sub/conftest.c
+      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
+      # Solaris 8's {/usr,}/bin/sh.
+      touch sub/conftst$i.h
+    done
+    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
+
+    # We check with `-c' and `-o' for the sake of the "dashmstdout"
+    # mode.  It turns out that the SunPro C++ compiler does not properly
+    # handle `-M -o', and we need to detect this.  Also, some Intel
+    # versions had trouble with output in subdirs
+    am__obj=sub/conftest.${OBJEXT-o}
+    am__minus_obj="-o $am__obj"
+    case $depmode in
+    gcc)
+      # This depmode causes a compiler race in universal mode.
+      test "$am__universal" = false || continue
+      ;;
+    nosideeffect)
+      # after this tag, mechanisms are not by side-effect, so they'll
+      # only be used when explicitly requested
+      if test "x$enable_dependency_tracking" = xyes; then
+       continue
+      else
+       break
+      fi
+      ;;
+    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
+      # This compiler won't grok `-c -o', but also, the minuso test has
+      # not run yet.  These depmodes are late enough in the game, and
+      # so weak that their functioning should not be impacted.
+      am__obj=conftest.${OBJEXT-o}
+      am__minus_obj=
+      ;;
+    none) break ;;
+    esac
+    if depmode=$depmode \
+       source=sub/conftest.c object=$am__obj \
+       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
+       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
+         >/dev/null 2>conftest.err &&
+       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
+       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
+       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
+       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
+      # icc doesn't choke on unknown options, it will just issue warnings
+      # or remarks (even with -Werror).  So we grep stderr for any message
+      # that says an option was ignored or not supported.
+      # When given -MP, icc 7.0 and 7.1 complain thusly:
+      #   icc: Command line warning: ignoring option '-M'; no argument required
+      # The diagnosis changed in icc 8.0:
+      #   icc: Command line remark: option '-MP' not supported
+      if (grep 'ignoring option' conftest.err ||
+          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
+        am_cv_CC_dependencies_compiler_type=$depmode
+        break
+      fi
+    fi
+  done
+
+  cd ..
+  rm -rf conftest.dir
+else
+  am_cv_CC_dependencies_compiler_type=none
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
+$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
+CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
+
+ if
+  test "x$enable_dependency_tracking" != xno \
+  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
+  am__fastdepCC_TRUE=
+  am__fastdepCC_FALSE='#'
+else
+  am__fastdepCC_TRUE='#'
+  am__fastdepCC_FALSE=
+fi
+
+
+
+
+
+
+if test "x$CC" != xcc; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
+$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
+$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
+fi
+set dummy $CC; ac_cc=`$as_echo "$2" |
+                     sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
+if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
+  $as_echo_n "(cached) " >&6
+else
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+# 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 -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
+rm -f conftest2.*
+if { { case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+  (eval "$ac_try") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; } &&
+   test -f conftest2.$ac_objext && { { case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+  (eval "$ac_try") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; };
+then
+  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
+  if test "x$CC" != xcc; then
+    # Test first that cc exists at all.
+    if { ac_try='cc -c conftest.$ac_ext >&5'
+  { { case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+  (eval "$ac_try") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; }; then
+      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
+      rm -f conftest2.*
+      if { { case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+  (eval "$ac_try") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; } &&
+        test -f conftest2.$ac_objext && { { case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+  (eval "$ac_try") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; };
+      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 core conftest*
+
+fi
+if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
+
+fi
+
+# FIXME: we rely on the cache variable name because
+# there is no other way.
+set dummy $CC
+am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
+eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
+if test "$am_t" != yes; then
+   # Losing compiler, so override with the script.
+   # FIXME: It is wrong to rewrite CC.
+   # But if we don't then we get into trouble of one sort or another.
+   # A longer-term fix would be to have automake use am__CC in this case,
+   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
+   CC="$am_aux_dir/compile $CC"
+fi
+
+
+
+# Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
+if test "x$GCC" = "xyes"; then
+  AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
+  ## We like to use C11 and C99 routines when available.  This makes
+  ## sure that
+  ## __STDC_VERSION__ is set such that libc includes make them available.
+  AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla"
+  ## Compile the following tests with the same system header contents
+  ## that we'll encounter when compiling our own source files.
+  CFLAGS="-std=gnu11 $CFLAGS"
+fi
+
+
+
+
+# Check for symbol versioning (copied from libssp).
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
+$as_echo_n "checking whether symbol versioning is supported... " >&6; }
+# Check whether --enable-symvers was given.
+if test "${enable_symvers+set}" = set; then :
+  enableval=$enable_symvers; gfortran_use_symver=$enableval
+else
+  gfortran_use_symver=yes
+fi
+
+if test "x$gfortran_use_symver" != xno; then
+  save_LDFLAGS="$LDFLAGS"
+  LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
+  cat > conftest.map <<EOF
 FOO_1.0 {
   global: *foo*; bar; local: *;
 };
 EOF
-
-if test x$gcc_no_link = xyes; then
+  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
@@ -4463,18 +5833,18 @@ else
 fi
 rm -f core conftest.err conftest.$ac_objext \
     conftest$ac_exeext conftest.$ac_ext
-if test x$gfortran_use_symver = xno; then
-  case "$target_os" in
-    solaris2*)
-      LDFLAGS="$save_LDFLAGS"
-      LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
-      # Sun ld cannot handle wildcards and treats all entries as undefined.
-      cat > conftest.map <<EOF
+  if test x$gfortran_use_symver = xno; then
+    case "$target_os" in
+      solaris2*)
+        LDFLAGS="$save_LDFLAGS"
+        LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
+        # Sun ld cannot handle wildcards and treats all entries as undefined.
+        cat > conftest.map <<EOF
 FOO_1.0 {
   global: foo; local: *;
 };
 EOF
-      if test x$gcc_no_link = xyes; then
+        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
@@ -4495,10 +5865,11 @@ else
 fi
 rm -f core conftest.err conftest.$ac_objext \
     conftest$ac_exeext conftest.$ac_ext
-      ;;
-  esac
+        ;;
+    esac
+  fi
+  LDFLAGS="$save_LDFLAGS"
 fi
-LDFLAGS="$save_LDFLAGS"
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
 $as_echo "$gfortran_use_symver" >&6; }
  if test "x$gfortran_use_symver" != xno; then
@@ -4526,6 +5897,25 @@ else
 fi
 
 
+# For GPU offloading, not everything in libfortran can be supported.
+# Currently, the only target that has this problem is nvptx.  The
+# following is a (partial) list of features that are unsupportable on
+# this particular target:
+# * Constructors
+# * alloca
+# * C library support for I/O, with printf as the one notable exception
+# * C library support for other features such as signal, environment
+#   variables, time functions
+
+ if test "x${target_cpu}" = xnvptx; then
+  LIBGFOR_MINIMAL_TRUE=
+  LIBGFOR_MINIMAL_FALSE='#'
+else
+  LIBGFOR_MINIMAL_TRUE='#'
+  LIBGFOR_MINIMAL_FALSE=
+fi
+
+
 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
 # similarly to how libstdc++ does it
 ac_test_CFLAGS="${CFLAGS+set}"
@@ -5057,136 +6447,6 @@ Xsed="$SED -e 1s/^X//"
 
 
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
-$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
-if test "${ac_cv_path_GREP+set}" = set; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -z "$GREP"; then
-  ac_path_GREP_found=false
-  # Loop through the user's path and test for each of PROGNAME-LIST
-  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_prog in grep ggrep; do
-    for ac_exec_ext in '' $ac_executable_extensions; do
-      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
-      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
-# Check for GNU ac_path_GREP and select it if it is found.
-  # Check for GNU $ac_path_GREP
-case `"$ac_path_GREP" --version 2>&1` in
-*GNU*)
-  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
-*)
-  ac_count=0
-  $as_echo_n 0123456789 >"conftest.in"
-  while :
-  do
-    cat "conftest.in" "conftest.in" >"conftest.tmp"
-    mv "conftest.tmp" "conftest.in"
-    cp "conftest.in" "conftest.nl"
-    $as_echo 'GREP' >> "conftest.nl"
-    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
-    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
-    as_fn_arith $ac_count + 1 && ac_count=$as_val
-    if test $ac_count -gt ${ac_path_GREP_max-0}; then
-      # Best one so far, save it but keep looking for a better one
-      ac_cv_path_GREP="$ac_path_GREP"
-      ac_path_GREP_max=$ac_count
-    fi
-    # 10*(2^10) chars as input seems more than enough
-    test $ac_count -gt 10 && break
-  done
-  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
-esac
-
-      $ac_path_GREP_found && break 3
-    done
-  done
-  done
-IFS=$as_save_IFS
-  if test -z "$ac_cv_path_GREP"; then
-    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
-  fi
-else
-  ac_cv_path_GREP=$GREP
-fi
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
-$as_echo "$ac_cv_path_GREP" >&6; }
- GREP="$ac_cv_path_GREP"
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
-$as_echo_n "checking for egrep... " >&6; }
-if test "${ac_cv_path_EGREP+set}" = set; then :
-  $as_echo_n "(cached) " >&6
-else
-  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
-   then ac_cv_path_EGREP="$GREP -E"
-   else
-     if test -z "$EGREP"; then
-  ac_path_EGREP_found=false
-  # Loop through the user's path and test for each of PROGNAME-LIST
-  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_prog in egrep; do
-    for ac_exec_ext in '' $ac_executable_extensions; do
-      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
-      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
-# Check for GNU ac_path_EGREP and select it if it is found.
-  # Check for GNU $ac_path_EGREP
-case `"$ac_path_EGREP" --version 2>&1` in
-*GNU*)
-  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
-*)
-  ac_count=0
-  $as_echo_n 0123456789 >"conftest.in"
-  while :
-  do
-    cat "conftest.in" "conftest.in" >"conftest.tmp"
-    mv "conftest.tmp" "conftest.in"
-    cp "conftest.in" "conftest.nl"
-    $as_echo 'EGREP' >> "conftest.nl"
-    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
-    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
-    as_fn_arith $ac_count + 1 && ac_count=$as_val
-    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
-      # Best one so far, save it but keep looking for a better one
-      ac_cv_path_EGREP="$ac_path_EGREP"
-      ac_path_EGREP_max=$ac_count
-    fi
-    # 10*(2^10) chars as input seems more than enough
-    test $ac_count -gt 10 && break
-  done
-  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
-esac
-
-      $ac_path_EGREP_found && break 3
-    done
-  done
-  done
-IFS=$as_save_IFS
-  if test -z "$ac_cv_path_EGREP"; then
-    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
-  fi
-else
-  ac_cv_path_EGREP=$EGREP
-fi
-
-   fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
-$as_echo "$ac_cv_path_EGREP" >&6; }
- EGREP="$ac_cv_path_EGREP"
-
-
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 $as_echo_n "checking for fgrep... " >&6; }
 if test "${ac_cv_path_FGREP+set}" = set; then :
@@ -6839,7 +8099,7 @@ ia64-*-hpux*)
   rm -rf conftest*
   ;;
 
-x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
+x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
   # Find out which ABI we are using.
   echo 'int i;' > conftest.$ac_ext
@@ -6855,9 +8115,19 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
            LD="${LD-ld} -m elf_i386_fbsd"
            ;;
          x86_64-*linux*)
-           LD="${LD-ld} -m elf_i386"
+           case `/usr/bin/file conftest.o` in
+             *x86-64*)
+               LD="${LD-ld} -m elf32_x86_64"
+               ;;
+             *)
+               LD="${LD-ld} -m elf_i386"
+               ;;
+           esac
            ;;
-         ppc64-*linux*|powerpc64-*linux*)
+         powerpc64le-*linux*)
+           LD="${LD-ld} -m elf32lppclinux"
+           ;;
+         powerpc64-*linux*)
            LD="${LD-ld} -m elf32ppclinux"
            ;;
          s390x-*linux*)
@@ -6876,7 +8146,10 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
          x86_64-*linux*)
            LD="${LD-ld} -m elf_x86_64"
            ;;
-         ppc*-*linux*|powerpc*-*linux*)
+         powerpcle-*linux*)
+           LD="${LD-ld} -m elf64lppc"
+           ;;
+         powerpc-*linux*)
            LD="${LD-ld} -m elf64ppc"
            ;;
          s390*-*linux*|s390*-*tpf*)
@@ -7266,99 +8539,7 @@ do
   test -z "$as_dir" && as_dir=.
     for ac_exec_ext in '' $ac_executable_extensions; do
   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-OTOOL=$ac_cv_prog_OTOOL
-if test -n "$OTOOL"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
-$as_echo "$OTOOL" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-fi
-if test -z "$ac_cv_prog_OTOOL"; then
-  ac_ct_OTOOL=$OTOOL
-  # Extract the first word of "otool", so it can be a program name with args.
-set dummy otool; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$ac_ct_OTOOL"; then
-  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_ac_ct_OTOOL="otool"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
-if test -n "$ac_ct_OTOOL"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
-$as_echo "$ac_ct_OTOOL" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-  if test "x$ac_ct_OTOOL" = x; then
-    OTOOL=":"
-  else
-    case $cross_compiling:$ac_tool_warned in
-yes:)
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
-ac_tool_warned=yes ;;
-esac
-    OTOOL=$ac_ct_OTOOL
-  fi
-else
-  OTOOL="$ac_cv_prog_OTOOL"
-fi
-
-    if test -n "$ac_tool_prefix"; then
-  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
-set dummy ${ac_tool_prefix}otool64; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_OTOOL64+set}" = set; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$OTOOL64"; then
-  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
+    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     break 2
   fi
@@ -7368,10 +8549,10 @@ IFS=$as_save_IFS
 
 fi
 fi
-OTOOL64=$ac_cv_prog_OTOOL64
-if test -n "$OTOOL64"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
-$as_echo "$OTOOL64" >&6; }
+OTOOL=$ac_cv_prog_OTOOL
+if test -n "$OTOOL"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
+$as_echo "$OTOOL" >&6; }
 else
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
@@ -7379,17 +8560,17 @@ fi
 
 
 fi
-if test -z "$ac_cv_prog_OTOOL64"; then
-  ac_ct_OTOOL64=$OTOOL64
-  # Extract the first word of "otool64", so it can be a program name with args.
-set dummy otool64; ac_word=$2
+if test -z "$ac_cv_prog_OTOOL"; then
+  ac_ct_OTOOL=$OTOOL
+  # Extract the first word of "otool", so it can be a program name with args.
+set dummy otool; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 $as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
+if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
   $as_echo_n "(cached) " >&6
 else
-  if test -n "$ac_ct_OTOOL64"; then
-  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
+  if test -n "$ac_ct_OTOOL"; then
+  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 else
 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 for as_dir in $PATH
@@ -7398,7 +8579,7 @@ do
   test -z "$as_dir" && as_dir=.
     for ac_exec_ext in '' $ac_executable_extensions; do
   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_ac_ct_OTOOL64="otool64"
+    ac_cv_prog_ac_ct_OTOOL="otool"
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     break 2
   fi
@@ -7408,452 +8589,276 @@ IFS=$as_save_IFS
 
 fi
 fi
-ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
-if test -n "$ac_ct_OTOOL64"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
-$as_echo "$ac_ct_OTOOL64" >&6; }
+ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
+if test -n "$ac_ct_OTOOL"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
+$as_echo "$ac_ct_OTOOL" >&6; }
 else
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
 fi
 
-  if test "x$ac_ct_OTOOL64" = x; then
-    OTOOL64=":"
-  else
-    case $cross_compiling:$ac_tool_warned in
-yes:)
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
-ac_tool_warned=yes ;;
-esac
-    OTOOL64=$ac_ct_OTOOL64
-  fi
-else
-  OTOOL64="$ac_cv_prog_OTOOL64"
-fi
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
-$as_echo_n "checking for -single_module linker flag... " >&6; }
-if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
-  $as_echo_n "(cached) " >&6
-else
-  lt_cv_apple_cc_single_mod=no
-      if test -z "${LT_MULTI_MODULE}"; then
-       # By default we will add the -single_module flag. You can override
-       # by either setting the environment variable LT_MULTI_MODULE
-       # non-empty at configure time, or by adding -multi_module to the
-       # link flags.
-       rm -rf libconftest.dylib*
-       echo "int foo(void){return 1;}" > conftest.c
-       echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
--dynamiclib -Wl,-single_module conftest.c" >&5
-       $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
-         -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
-        _lt_result=$?
-       if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
-         lt_cv_apple_cc_single_mod=yes
-       else
-         cat conftest.err >&5
-       fi
-       rm -rf libconftest.dylib*
-       rm -f conftest.*
-      fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
-$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
-$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
-if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
-  $as_echo_n "(cached) " >&6
-else
-  lt_cv_ld_exported_symbols_list=no
-      save_LDFLAGS=$LDFLAGS
-      echo "_main" > conftest.sym
-      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
-      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.  */
-
-int
-main ()
-{
-
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-  lt_cv_ld_exported_symbols_list=yes
-else
-  lt_cv_ld_exported_symbols_list=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext conftest.$ac_ext
-       LDFLAGS="$save_LDFLAGS"
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
-$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
-$as_echo_n "checking for -force_load linker flag... " >&6; }
-if test "${lt_cv_ld_force_load+set}" = set; then :
-  $as_echo_n "(cached) " >&6
-else
-  lt_cv_ld_force_load=no
-      cat > conftest.c << _LT_EOF
-int forced_loaded() { return 2;}
-_LT_EOF
-      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
-      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
-      echo "$AR cru libconftest.a conftest.o" >&5
-      $AR cru libconftest.a conftest.o 2>&5
-      cat > conftest.c << _LT_EOF
-int main() { return 0;}
-_LT_EOF
-      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
-      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
-      _lt_result=$?
-      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
-       lt_cv_ld_force_load=yes
-      else
-       cat conftest.err >&5
-      fi
-        rm -f conftest.err libconftest.a conftest conftest.c
-        rm -rf conftest.dSYM
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
-$as_echo "$lt_cv_ld_force_load" >&6; }
-    case $host_os in
-    rhapsody* | darwin1.[012])
-      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
-    darwin1.*)
-      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
-    darwin*) # darwin 5.x on
-      # if running on 10.5 or later, the deployment target defaults
-      # to the OS version, if on x86, and 10.4, the deployment
-      # target defaults to 10.4. Don't you love it?
-      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
-       10.0,*86*-darwin8*|10.0,*-darwin[91]*)
-         _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
-       10.[012]*)
-         _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
-       10.*)
-         _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
-      esac
-    ;;
-  esac
-    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
-      _lt_dar_single_mod='$single_module'
-    fi
-    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
-      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
-    else
-      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
-    fi
-    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
-      _lt_dsymutil='~$DSYMUTIL $lib || :'
-    else
-      _lt_dsymutil=
-    fi
-    ;;
-  esac
-
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
-$as_echo_n "checking how to run the C preprocessor... " >&6; }
-# On Suns, sometimes $CPP names a directory.
-if test -n "$CPP" && test -d "$CPP"; then
-  CPP=
-fi
-if test -z "$CPP"; then
-  if test "${ac_cv_prog_CPP+set}" = set; then :
-  $as_echo_n "(cached) " >&6
-else
-      # Double quotes because CPP needs to be expanded
-    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
-    do
-      ac_preproc_ok=false
-for ac_c_preproc_warn_flag in '' yes
-do
-  # Use a header file that comes with gcc, so configuring glibc
-  # with a fresh cross-compiler works.
-  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
-  # <limits.h> exists even on freestanding compilers.
-  # On the NeXT, cc -E runs the code through the compiler's parser,
-  # not just through cpp. "Syntax error" is here to catch this case.
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
-                    Syntax error
-_ACEOF
-if ac_fn_c_try_cpp "$LINENO"; then :
-
-else
-  # Broken: fails on valid input.
-continue
-fi
-rm -f conftest.err conftest.$ac_ext
-
-  # OK, works on sane cases.  Now check whether nonexistent headers
-  # can be detected and how.
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <ac_nonexistent.h>
-_ACEOF
-if ac_fn_c_try_cpp "$LINENO"; then :
-  # Broken: success on invalid input.
-continue
+  if test "x$ac_ct_OTOOL" = x; then
+    OTOOL=":"
+  else
+    case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+    OTOOL=$ac_ct_OTOOL
+  fi
 else
-  # Passes both tests.
-ac_preproc_ok=:
-break
+  OTOOL="$ac_cv_prog_OTOOL"
 fi
-rm -f conftest.err conftest.$ac_ext
 
+    if test -n "$ac_tool_prefix"; then
+  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
+set dummy ${ac_tool_prefix}otool64; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_OTOOL64+set}" = set; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$OTOOL64"; then
+  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
 done
-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
-rm -f conftest.err conftest.$ac_ext
-if $ac_preproc_ok; then :
-  break
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+OTOOL64=$ac_cv_prog_OTOOL64
+if test -n "$OTOOL64"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
+$as_echo "$OTOOL64" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
 fi
 
-    done
-    ac_cv_prog_CPP=$CPP
 
 fi
-  CPP=$ac_cv_prog_CPP
+if test -z "$ac_cv_prog_OTOOL64"; then
+  ac_ct_OTOOL64=$OTOOL64
+  # Extract the first word of "otool64", so it can be a program name with args.
+set dummy otool64; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
+  $as_echo_n "(cached) " >&6
 else
-  ac_cv_prog_CPP=$CPP
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
-$as_echo "$CPP" >&6; }
-ac_preproc_ok=false
-for ac_c_preproc_warn_flag in '' yes
+  if test -n "$ac_ct_OTOOL64"; then
+  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
 do
-  # Use a header file that comes with gcc, so configuring glibc
-  # with a fresh cross-compiler works.
-  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
-  # <limits.h> exists even on freestanding compilers.
-  # On the NeXT, cc -E runs the code through the compiler's parser,
-  # not just through cpp. "Syntax error" is here to catch this case.
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
-                    Syntax error
-_ACEOF
-if ac_fn_c_try_cpp "$LINENO"; then :
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+    ac_cv_prog_ac_ct_OTOOL64="otool64"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
 
+fi
+fi
+ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
+if test -n "$ac_ct_OTOOL64"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
+$as_echo "$ac_ct_OTOOL64" >&6; }
 else
-  # Broken: fails on valid input.
-continue
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
 fi
-rm -f conftest.err conftest.$ac_ext
 
-  # OK, works on sane cases.  Now check whether nonexistent headers
-  # can be detected and how.
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <ac_nonexistent.h>
-_ACEOF
-if ac_fn_c_try_cpp "$LINENO"; then :
-  # Broken: success on invalid input.
-continue
+  if test "x$ac_ct_OTOOL64" = x; then
+    OTOOL64=":"
+  else
+    case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+    OTOOL64=$ac_ct_OTOOL64
+  fi
 else
-  # Passes both tests.
-ac_preproc_ok=:
-break
+  OTOOL64="$ac_cv_prog_OTOOL64"
 fi
-rm -f conftest.err conftest.$ac_ext
 
-done
-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
-rm -f conftest.err conftest.$ac_ext
-if $ac_preproc_ok; then :
 
-else
-  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error "C preprocessor \"$CPP\" fails sanity check
-See \`config.log' for more details." "$LINENO" 5; }
-fi
 
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
-$as_echo_n "checking for ANSI C header files... " >&6; }
-if test "${ac_cv_header_stdc+set}" = set; then :
-  $as_echo_n "(cached) " >&6
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <stdlib.h>
-#include <stdarg.h>
-#include <string.h>
-#include <float.h>
 
-int
-main ()
-{
 
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-  ac_cv_header_stdc=yes
-else
-  ac_cv_header_stdc=no
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
-if test $ac_cv_header_stdc = yes; then
-  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <string.h>
 
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-  $EGREP "memchr" >/dev/null 2>&1; then :
 
-else
-  ac_cv_header_stdc=no
-fi
-rm -f conftest*
 
-fi
 
-if test $ac_cv_header_stdc = yes; then
-  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <stdlib.h>
 
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-  $EGREP "free" >/dev/null 2>&1; then :
 
-else
-  ac_cv_header_stdc=no
-fi
-rm -f conftest*
 
-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 :
-  :
+
+
+
+
+
+
+
+
+
+
+
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
+$as_echo_n "checking for -single_module linker flag... " >&6; }
+if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
+  $as_echo_n "(cached) " >&6
 else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+  lt_cv_apple_cc_single_mod=no
+      if test -z "${LT_MULTI_MODULE}"; then
+       # By default we will add the -single_module flag. You can override
+       # by either setting the environment variable LT_MULTI_MODULE
+       # non-empty at configure time, or by adding -multi_module to the
+       # link flags.
+       rm -rf libconftest.dylib*
+       echo "int foo(void){return 1;}" > conftest.c
+       echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
+-dynamiclib -Wl,-single_module conftest.c" >&5
+       $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
+         -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
+        _lt_result=$?
+       if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
+         lt_cv_apple_cc_single_mod=yes
+       else
+         cat conftest.err >&5
+       fi
+       rm -rf libconftest.dylib*
+       rm -f conftest.*
+      fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
+$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
+$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
+if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
+  $as_echo_n "(cached) " >&6
+else
+  lt_cv_ld_exported_symbols_list=no
+      save_LDFLAGS=$LDFLAGS
+      echo "_main" > conftest.sym
+      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
+      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.  */
-#include <ctype.h>
-#include <stdlib.h>
-#if ((' ' & 0x0FF) == 0x020)
-# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
-# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
-#else
-# define ISLOWER(c) \
-                  (('a' <= (c) && (c) <= 'i') \
-                    || ('j' <= (c) && (c) <= 'r') \
-                    || ('s' <= (c) && (c) <= 'z'))
-# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
-#endif
 
-#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))
-      return 2;
+
+  ;
   return 0;
 }
 _ACEOF
-if ac_fn_c_try_run "$LINENO"; then :
-
+if ac_fn_c_try_link "$LINENO"; then :
+  lt_cv_ld_exported_symbols_list=yes
 else
-  ac_cv_header_stdc=no
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
-  conftest.$ac_objext conftest.beam conftest.$ac_ext
-fi
-
-fi
+  lt_cv_ld_exported_symbols_list=no
 fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
-$as_echo "$ac_cv_header_stdc" >&6; }
-if test $ac_cv_header_stdc = yes; then
-
-$as_echo "#define STDC_HEADERS 1" >>confdefs.h
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+       LDFLAGS="$save_LDFLAGS"
 
 fi
-
-# On IRIX 5.3, sys/types and inttypes.h are conflicting.
-for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
-                 inttypes.h stdint.h unistd.h
-do :
-  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
-ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
-"
-eval as_val=\$$as_ac_Header
-   if test "x$as_val" = x""yes; then :
-  cat >>confdefs.h <<_ACEOF
-#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
-_ACEOF
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
+$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
+$as_echo_n "checking for -force_load linker flag... " >&6; }
+if test "${lt_cv_ld_force_load+set}" = set; then :
+  $as_echo_n "(cached) " >&6
+else
+  lt_cv_ld_force_load=no
+      cat > conftest.c << _LT_EOF
+int forced_loaded() { return 2;}
+_LT_EOF
+      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
+      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
+      echo "$AR cru libconftest.a conftest.o" >&5
+      $AR cru libconftest.a conftest.o 2>&5
+      cat > conftest.c << _LT_EOF
+int main() { return 0;}
+_LT_EOF
+      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
+      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
+      _lt_result=$?
+      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
+       lt_cv_ld_force_load=yes
+      else
+       cat conftest.err >&5
+      fi
+        rm -f conftest.err libconftest.a conftest conftest.c
+        rm -rf conftest.dSYM
 
 fi
-
-done
-
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
+$as_echo "$lt_cv_ld_force_load" >&6; }
+    case $host_os in
+    rhapsody* | darwin1.[012])
+      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
+    darwin1.*)
+      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
+    darwin*) # darwin 5.x on
+      # if running on 10.5 or later, the deployment target defaults
+      # to the OS version, if on x86, and 10.4, the deployment
+      # target defaults to 10.4. Don't you love it?
+      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
+       10.0,*86*-darwin8*|10.0,*-darwin[91]*)
+         _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
+       10.[012][,.]*)
+         _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
+       10.*)
+         _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
+      esac
+    ;;
+  esac
+    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
+      _lt_dar_single_mod='$single_module'
+    fi
+    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
+      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
+    else
+      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
+    fi
+    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
+      _lt_dsymutil='~$DSYMUTIL $lib || :'
+    else
+      _lt_dsymutil=
+    fi
+    ;;
+  esac
 
 for ac_header in dlfcn.h
 do :
@@ -8397,6 +9402,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
        # AIX 5 now supports IA64 processor
        lt_prog_compiler_static='-Bstatic'
       fi
+      lt_prog_compiler_pic='-fPIC'
       ;;
 
     amigaos*)
@@ -9133,7 +10139,7 @@ _LT_EOF
       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
         && test "$tmp_diet" = no
       then
-       tmp_addflag=
+       tmp_addflag=' $pic_flag'
        tmp_sharedflag='-shared'
        case $cc_basename,$host_cpu in
         pgcc*)                         # Portland Group C compiler
@@ -9572,10 +10578,6 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
       hardcode_shlibpath_var=no
       ;;
 
-    freebsd1*)
-      ld_shlibs=no
-      ;;
-
     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
     # support.  Future versions do this automatically, but an explicit c++rt0.o
     # does not break anything, and helps significantly (at the cost of a little
@@ -9588,7 +10590,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
       ;;
 
     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
-    freebsd2*)
+    freebsd2.*)
       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
       hardcode_direct=yes
       hardcode_minus_L=yes
@@ -10497,10 +11499,6 @@ dgux*)
   shlibpath_var=LD_LIBRARY_PATH
   ;;
 
-freebsd1*)
-  dynamic_linker=no
-  ;;
-
 freebsd* | dragonfly*)
   # DragonFly does not have aout.  When/if they implement a new
   # versioning mechanism, adjust this.
@@ -10508,7 +11506,7 @@ freebsd* | dragonfly*)
     objformat=`/usr/bin/objformat`
   else
     case $host_os in
-    freebsd[123]*) objformat=aout ;;
+    freebsd[23].*) objformat=aout ;;
     *) objformat=elf ;;
     esac
   fi
@@ -10526,7 +11524,7 @@ freebsd* | dragonfly*)
   esac
   shlibpath_var=LD_LIBRARY_PATH
   case $host_os in
-  freebsd2*)
+  freebsd2.*)
     shlibpath_overrides_runpath=yes
     ;;
   freebsd3.[01]* | freebsdelf3.[01]*)
@@ -11378,7 +12376,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11381 "configure"
+#line 12379 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -11484,7 +12482,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11487 "configure"
+#line 12485 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -12268,6 +13266,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
        # AIX 5 now supports IA64 processor
        lt_prog_compiler_static_FC='-Bstatic'
       fi
+      lt_prog_compiler_pic_FC='-fPIC'
       ;;
 
     amigaos*)
@@ -12989,7 +13988,7 @@ _LT_EOF
       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
         && test "$tmp_diet" = no
       then
-       tmp_addflag=
+       tmp_addflag=' $pic_flag'
        tmp_sharedflag='-shared'
        case $cc_basename,$host_cpu in
         pgcc*)                         # Portland Group C compiler
@@ -13416,10 +14415,6 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
       hardcode_shlibpath_var_FC=no
       ;;
 
-    freebsd1*)
-      ld_shlibs_FC=no
-      ;;
-
     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
     # support.  Future versions do this automatically, but an explicit c++rt0.o
     # does not break anything, and helps significantly (at the cost of a little
@@ -13432,7 +14427,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
       ;;
 
     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
-    freebsd2*)
+    freebsd2.*)
       archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
       hardcode_direct_FC=yes
       hardcode_minus_L_FC=yes
@@ -14133,10 +15128,6 @@ dgux*)
   shlibpath_var=LD_LIBRARY_PATH
   ;;
 
-freebsd1*)
-  dynamic_linker=no
-  ;;
-
 freebsd* | dragonfly*)
   # DragonFly does not have aout.  When/if they implement a new
   # versioning mechanism, adjust this.
@@ -14144,7 +15135,7 @@ freebsd* | dragonfly*)
     objformat=`/usr/bin/objformat`
   else
     case $host_os in
-    freebsd[123]*) objformat=aout ;;
+    freebsd[23].*) objformat=aout ;;
     *) objformat=elf ;;
     esac
   fi
@@ -14162,7 +15153,7 @@ freebsd* | dragonfly*)
   esac
   shlibpath_var=LD_LIBRARY_PATH
   case $host_os in
-  freebsd2*)
+  freebsd2.*)
     shlibpath_overrides_runpath=yes
     ;;
   freebsd3.[01]* | freebsdelf3.[01]*)
@@ -14908,6 +15899,8 @@ rm -rf conftest*
   fi
 fi
 
+
+# Types
 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
 if test "x$ac_cv_type_off_t" = x""yes; then :
 
@@ -14920,200 +15913,96 @@ _ACEOF
 fi
 
 
-# check header files
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
-$as_echo_n "checking for ANSI C header files... " >&6; }
-if test "${ac_cv_header_stdc+set}" = set; then :
-  $as_echo_n "(cached) " >&6
+  ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
+if test "x$ac_cv_type_intptr_t" = x""yes; then :
+
+$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
+
 else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+  for ac_type in 'int' 'long int' 'long long int'; do
+       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
-#include <stdlib.h>
-#include <stdarg.h>
-#include <string.h>
-#include <float.h>
-
+$ac_includes_default
 int
 main ()
 {
+static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
+test_array [0] = 0
 
   ;
   return 0;
 }
 _ACEOF
 if ac_fn_c_try_compile "$LINENO"; then :
-  ac_cv_header_stdc=yes
-else
-  ac_cv_header_stdc=no
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-
-if test $ac_cv_header_stdc = yes; then
-  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <string.h>
 
+cat >>confdefs.h <<_ACEOF
+#define intptr_t $ac_type
 _ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-  $EGREP "memchr" >/dev/null 2>&1; then :
 
-else
-  ac_cv_header_stdc=no
+         ac_type=
 fi
-rm -f conftest*
-
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+       test -z "$ac_type" && break
+     done
 fi
 
-if test $ac_cv_header_stdc = yes; then
-  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <stdlib.h>
 
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-  $EGREP "free" >/dev/null 2>&1; then :
 
-else
-  ac_cv_header_stdc=no
-fi
-rm -f conftest*
+  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
+if test "x$ac_cv_type_uintptr_t" = x""yes; then :
 
-fi
+$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
 
-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 :
-  :
 else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+  for ac_type in 'unsigned int' 'unsigned long int' \
+       'unsigned long long int'; do
+       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
-#include <ctype.h>
-#include <stdlib.h>
-#if ((' ' & 0x0FF) == 0x020)
-# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
-# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
-#else
-# define ISLOWER(c) \
-                  (('a' <= (c) && (c) <= 'i') \
-                    || ('j' <= (c) && (c) <= 'r') \
-                    || ('s' <= (c) && (c) <= 'z'))
-# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
-#endif
-
-#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
+$ac_includes_default
 int
 main ()
 {
-  int i;
-  for (i = 0; i < 256; i++)
-    if (XOR (islower (i), ISLOWER (i))
-       || toupper (i) != TOUPPER (i))
-      return 2;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_run "$LINENO"; then :
-
-else
-  ac_cv_header_stdc=no
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
-  conftest.$ac_objext conftest.beam conftest.$ac_ext
-fi
-
-fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
-$as_echo "$ac_cv_header_stdc" >&6; }
-if test $ac_cv_header_stdc = yes; then
-
-$as_echo "#define STDC_HEADERS 1" >>confdefs.h
-
-fi
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
-$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
-if test "${ac_cv_header_time+set}" = set; then :
-  $as_echo_n "(cached) " >&6
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <sys/types.h>
-#include <sys/time.h>
-#include <time.h>
+static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
+test_array [0] = 0
 
-int
-main ()
-{
-if ((struct tm *) 0)
-return 0;
   ;
   return 0;
 }
 _ACEOF
 if ac_fn_c_try_compile "$LINENO"; then :
-  ac_cv_header_time=yes
-else
-  ac_cv_header_time=no
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
-$as_echo "$ac_cv_header_time" >&6; }
-if test $ac_cv_header_time = yes; then
-
-$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
 
-fi
-
-for ac_header in stdio.h stdlib.h string.h unistd.h signal.h stdarg.h
-do :
-  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
-ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
-eval as_val=\$$as_ac_Header
-   if test "x$as_val" = x""yes; then :
-  cat >>confdefs.h <<_ACEOF
-#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+cat >>confdefs.h <<_ACEOF
+#define uintptr_t $ac_type
 _ACEOF
 
+         ac_type=
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+       test -z "$ac_type" && break
+     done
 fi
 
-done
 
-for ac_header in time.h sys/time.h sys/times.h sys/resource.h
-do :
-  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
-ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
-eval as_val=\$$as_ac_Header
-   if test "x$as_val" = x""yes; then :
-  cat >>confdefs.h <<_ACEOF
-#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
+if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_PTRDIFF_T 1
 _ACEOF
 
+
 fi
 
-done
 
-for ac_header in sys/types.h sys/stat.h sys/wait.h floatingpoint.h ieeefp.h
-do :
-  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
-ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
-eval as_val=\$$as_ac_Header
-   if test "x$as_val" = x""yes; then :
-  cat >>confdefs.h <<_ACEOF
-#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
-_ACEOF
+# check header files (we assume C89 is available, so don't check for that)
 
-fi
 
-done
 
-for ac_header in fenv.h fptrap.h float.h execinfo.h pwd.h
+  for ac_header in $ac_header_list
 do :
   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
-ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
+ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
+"
 eval as_val=\$$as_ac_Header
    if test "x$as_val" = x""yes; then :
   cat >>confdefs.h <<_ACEOF
 
 done
 
-ac_fn_c_check_header_mongrel "$LINENO" "complex.h" "ac_cv_header_complex_h" "$ac_includes_default"
-if test "x$ac_cv_header_complex_h" = x""yes; then :
 
-$as_echo "#define HAVE_COMPLEX_H 1" >>confdefs.h
 
-fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
 
 
 
@@ -15464,417 +16377,351 @@ See \`config.log' for more details." "$LINENO" 5; }; }
    fi
 fi
 
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
-$as_echo "$ac_cv_sizeof_char" >&6; }
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
+$as_echo "$ac_cv_sizeof_char" >&6; }
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define SIZEOF_CHAR $ac_cv_sizeof_char
+_ACEOF
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
+$as_echo_n "checking for type equivalent to int8_t... " >&6; }
+  case "$ac_cv_sizeof_char" in
+    1) acx_cv_type_int8_t=char ;;
+    *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
+  esac
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
+$as_echo "$acx_cv_type_int8_t" >&6; }
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
+$as_echo_n "checking for type equivalent to int16_t... " >&6; }
+  case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
+    2:*) acx_cv_type_int16_t=int ;;
+    *:2) acx_cv_type_int16_t=short ;;
+    *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
+  esac
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
+$as_echo "$acx_cv_type_int16_t" >&6; }
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
+$as_echo_n "checking for type equivalent to int32_t... " >&6; }
+  case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
+    4:*) acx_cv_type_int32_t=int ;;
+    *:4) acx_cv_type_int32_t=long ;;
+    *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
+  esac
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
+$as_echo "$acx_cv_type_int32_t" >&6; }
+fi
+
+# These tests are here to make the output prettier
+
+if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
+  case "$ac_cv_sizeof_long" in
+    8) acx_cv_type_int64_t=long ;;
+  esac
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
+$as_echo_n "checking for type equivalent to int64_t... " >&6; }
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
+$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
+fi
+
+# Now we can use the above types
+
+if test "$ac_cv_type_uintptr_t" != yes; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
+$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
+  case $ac_cv_sizeof_void_p in
+    2) acx_cv_type_intptr_t=int16_t ;;
+    4) acx_cv_type_intptr_t=int32_t ;;
+    8) acx_cv_type_intptr_t=int64_t ;;
+    *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
+  esac
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
+$as_echo "$acx_cv_type_intptr_t" >&6; }
+fi
+
+# ----------------- done all checks, emit header -------------
+ac_config_commands="$ac_config_commands gstdint.h"
+
+
+
+
+ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
+if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
+_ACEOF
+
+
+fi
+ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
+if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_STRUCT_STAT_ST_BLOCKS 1
+_ACEOF
+
+
+fi
+ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
+if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_STRUCT_STAT_ST_RDEV 1
+_ACEOF
+
+
+fi
+
+
+# Check for library functions.
+if test "x${with_newlib}" = "xyes"; then
+   # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
+   # may not work correctly, because the compiler may not be able to
+   # link executables.
+
+$as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
+
+
+$as_echo "#define HAVE_STRTOF 1" >>confdefs.h
+
+
+$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
+
+
+$as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
+
+
+$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
+
+
+$as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
+
+
+$as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
+
+
+$as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
+
+
+$as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
+
+
+$as_echo "#define HAVE_STRTOK_R 1" >>confdefs.h
+
+
+   # At some point, we should differentiate between architectures
+   # like x86, which have long double versions, and alpha/powerpc/etc.,
+   # which don't. For the time being, punt.
+   if test x"long_double_math_on_this_cpu" = x"yes"; then
+
+$as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
+
+   fi
+else
+
+
+
+  for ac_func in $ac_func_list
+do :
+  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
+eval as_val=\$$as_ac_var
+   if test "x$as_val" = x""yes; then :
+  cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
 
 
 
-cat >>confdefs.h <<_ACEOF
-#define SIZEOF_CHAR $ac_cv_sizeof_char
-_ACEOF
 
 
 
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
-$as_echo_n "checking for type equivalent to int8_t... " >&6; }
-  case "$ac_cv_sizeof_char" in
-    1) acx_cv_type_int8_t=char ;;
-    *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
-  esac
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
-$as_echo "$acx_cv_type_int8_t" >&6; }
 
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
-$as_echo_n "checking for type equivalent to int16_t... " >&6; }
-  case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
-    2:*) acx_cv_type_int16_t=int ;;
-    *:2) acx_cv_type_int16_t=short ;;
-    *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
-  esac
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
-$as_echo "$acx_cv_type_int16_t" >&6; }
 
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
-$as_echo_n "checking for type equivalent to int32_t... " >&6; }
-  case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
-    4:*) acx_cv_type_int32_t=int ;;
-    *:4) acx_cv_type_int32_t=long ;;
-    *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
-  esac
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
-$as_echo "$acx_cv_type_int32_t" >&6; }
-fi
 
-# These tests are here to make the output prettier
 
-if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
-  case "$ac_cv_sizeof_long" in
-    8) acx_cv_type_int64_t=long ;;
-  esac
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
-$as_echo_n "checking for type equivalent to int64_t... " >&6; }
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
-$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
-fi
 
-# Now we can use the above types
 
-if test "$ac_cv_type_uintptr_t" != yes; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
-$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
-  case $ac_cv_sizeof_void_p in
-    2) acx_cv_type_intptr_t=int16_t ;;
-    4) acx_cv_type_intptr_t=int32_t ;;
-    8) acx_cv_type_intptr_t=int64_t ;;
-    *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
-  esac
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
-$as_echo "$acx_cv_type_intptr_t" >&6; }
-fi
 
-# ----------------- done all checks, emit header -------------
-ac_config_commands="$ac_config_commands gstdint.h"
 
 
 
 
-ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
-if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
 
-cat >>confdefs.h <<_ACEOF
-#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
-_ACEOF
 
 
-fi
 
-ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
-if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
 
-cat >>confdefs.h <<_ACEOF
-#define HAVE_STRUCT_STAT_ST_BLOCKS 1
-_ACEOF
 
 
-fi
 
-ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
-if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
 
-cat >>confdefs.h <<_ACEOF
-#define HAVE_STRUCT_STAT_ST_RDEV 1
-_ACEOF
 
 
-fi
 
 
-# Check for library functions.
-for ac_func in getrusage times mkstemp strtof strtold snprintf ftruncate chsize
-do :
-  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
-ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
-eval as_val=\$$as_ac_var
-   if test "x$as_val" = x""yes; then :
-  cat >>confdefs.h <<_ACEOF
-#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
-_ACEOF
 
-fi
-done
 
-for ac_func in chdir strerror getlogin gethostname kill link symlink perror
-do :
-  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
-ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
-eval as_val=\$$as_ac_var
-   if test "x$as_val" = x""yes; then :
-  cat >>confdefs.h <<_ACEOF
-#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
-_ACEOF
 
-fi
-done
 
-for ac_func in sleep time ttyname signal alarm ctime clock access fork execl
-do :
-  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
-ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
-eval as_val=\$$as_ac_var
-   if test "x$as_val" = x""yes; then :
-  cat >>confdefs.h <<_ACEOF
-#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
-_ACEOF
 
-fi
-done
 
-for ac_func in wait setmode execvp pipe dup2 close fdopen strcasestr getrlimit
-do :
-  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
-ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
-eval as_val=\$$as_ac_var
-   if test "x$as_val" = x""yes; then :
-  cat >>confdefs.h <<_ACEOF
-#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
-_ACEOF
 
-fi
-done
 
-for ac_func in gettimeofday stat fstat lstat getpwuid vsnprintf dup getcwd
-do :
-  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
-ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
-eval as_val=\$$as_ac_var
-   if test "x$as_val" = x""yes; then :
-  cat >>confdefs.h <<_ACEOF
-#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
-_ACEOF
 
-fi
-done
 
-for ac_func in localtime_r gmtime_r strerror_r
-do :
-  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
-ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
-eval as_val=\$$as_ac_var
-   if test "x$as_val" = x""yes; then :
-  cat >>confdefs.h <<_ACEOF
-#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
-_ACEOF
 
-fi
-done
 
 
-# Check for glibc backtrace functions
-for ac_func in backtrace backtrace_symbols
-do :
-  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
-ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
-eval as_val=\$$as_ac_var
-   if test "x$as_val" = x""yes; then :
-  cat >>confdefs.h <<_ACEOF
-#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
-_ACEOF
 
-fi
-done
 
 
-# Check for types
-ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
-if test "x$ac_cv_type_intptr_t" = x""yes; then :
 
-cat >>confdefs.h <<_ACEOF
-#define HAVE_INTPTR_T 1
-_ACEOF
 
 
-fi
 
-ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
-if test "x$ac_cv_type_uintptr_t" = x""yes; then :
 
-cat >>confdefs.h <<_ACEOF
-#define HAVE_UINTPTR_T 1
-_ACEOF
 
 
-fi
 
 
-# Check libc for getgid, getpid, getuid
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgid in -lc" >&5
-$as_echo_n "checking for getgid in -lc... " >&6; }
-if test "${ac_cv_lib_c_getgid+set}" = set; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-lc  $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 getgid ();
-int
-main ()
-{
-return getgid ();
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_c_getgid=yes
-else
-  ac_cv_lib_c_getgid=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_c_getgid" >&5
-$as_echo "$ac_cv_lib_c_getgid" >&6; }
-if test "x$ac_cv_lib_c_getgid" = x""yes; then :
 
-$as_echo "#define HAVE_GETGID 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpid in -lc" >&5
-$as_echo_n "checking for getpid in -lc... " >&6; }
-if test "${ac_cv_lib_c_getpid+set}" = set; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-lc  $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 getpid ();
-int
-main ()
-{
-return getpid ();
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_c_getpid=yes
-else
-  ac_cv_lib_c_getpid=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_c_getpid" >&5
-$as_echo "$ac_cv_lib_c_getpid" >&6; }
-if test "x$ac_cv_lib_c_getpid" = x""yes; then :
 
-$as_echo "#define HAVE_GETPID 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getppid in -lc" >&5
-$as_echo_n "checking for getppid in -lc... " >&6; }
-if test "${ac_cv_lib_c_getppid+set}" = set; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-lc  $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 getppid ();
+# Check strerror_r, cannot be above as versions with two and three arguments exist
+
+    ac_save_CFLAGS="$CFLAGS"
+  CFLAGS="-Wimplicit-function-declaration -Werror"
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#define _GNU_SOURCE 1
+                 #include <string.h>
+                 #include <locale.h>
 int
 main ()
 {
-return getppid ();
+char s[128]; strerror_r(5, s, 128);
   ;
   return 0;
 }
 _ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_c_getppid=yes
-else
-  ac_cv_lib_c_getppid=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_c_getppid" >&5
-$as_echo "$ac_cv_lib_c_getppid" >&6; }
-if test "x$ac_cv_lib_c_getppid" = x""yes; then :
-
-$as_echo "#define HAVE_GETPPID 1" >>confdefs.h
-
-fi
+if ac_fn_c_try_compile "$LINENO"; then :
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getuid in -lc" >&5
-$as_echo_n "checking for getuid in -lc... " >&6; }
-if test "${ac_cv_lib_c_getuid+set}" = set; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-lc  $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.  */
+$as_echo "#define HAVE_STRERROR_R 1" >>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 getuid ();
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+  CFLAGS="$ac_save_CFLAGS"
+
+    ac_save_CFLAGS="$CFLAGS"
+  CFLAGS="-Wimplicit-function-declaration -Werror"
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#define _GNU_SOURCE 1
+                 #include <string.h>
+                 #include <locale.h>
 int
 main ()
 {
-return getuid ();
+char s[128]; strerror_r(5, s);
   ;
   return 0;
 }
 _ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_c_getuid=yes
-else
-  ac_cv_lib_c_getuid=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_c_getuid" >&5
-$as_echo "$ac_cv_lib_c_getuid" >&6; }
-if test "x$ac_cv_lib_c_getuid" = x""yes; then :
+if ac_fn_c_try_compile "$LINENO"; then :
 
-$as_echo "#define HAVE_GETUID 1" >>confdefs.h
+$as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h
 
 fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+  CFLAGS="$ac_save_CFLAGS"
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for geteuid in -lc" >&5
-$as_echo_n "checking for geteuid in -lc... " >&6; }
-if test "${ac_cv_lib_c_geteuid+set}" = set; then :
+
+# Check for C99 (and other IEEE) math functions
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
+$as_echo_n "checking for sin in -lm... " >&6; }
+if test "${ac_cv_lib_m_sin+set}" = set; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lc  $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
@@ -15887,8270 +16734,8823 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 #ifdef __cplusplus
 extern "C"
 #endif
-char geteuid ();
+char sin ();
 int
 main ()
 {
-return geteuid ();
+return sin ();
   ;
   return 0;
 }
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_c_geteuid=yes
+  ac_cv_lib_m_sin=yes
 else
-  ac_cv_lib_c_geteuid=no
+  ac_cv_lib_m_sin=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_c_geteuid" >&5
-$as_echo "$ac_cv_lib_c_geteuid" >&6; }
-if test "x$ac_cv_lib_c_geteuid" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
+$as_echo "$ac_cv_lib_m_sin" >&6; }
+if test "x$ac_cv_lib_m_sin" = x""yes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBM 1
+_ACEOF
 
-$as_echo "#define HAVE_GETEUID 1" >>confdefs.h
+  LIBS="-lm $LIBS"
 
 fi
 
 
-# Check for C99 (and other IEEE) math functions
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf in -lm" >&5
-$as_echo_n "checking for acosf in -lm... " >&6; }
-if test "${ac_cv_lib_m_acosf+set}" = set; then :
+
+
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
+$as_echo_n "checking for acosf... " >&6; }
+if test "${gcc_cv_math_func_acosf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char acosf ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())acosf;
+
 int
 main ()
 {
-return acosf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_acosf=yes
+  gcc_cv_math_func_acosf=yes
 else
-  ac_cv_lib_m_acosf=no
+  gcc_cv_math_func_acosf=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_acosf" >&5
-$as_echo "$ac_cv_lib_m_acosf" >&6; }
-if test "x$ac_cv_lib_m_acosf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
+$as_echo "$gcc_cv_math_func_acosf" >&6; }
+  if test $gcc_cv_math_func_acosf = yes; then
 
-$as_echo "#define HAVE_ACOSF 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ACOSF 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos in -lm" >&5
-$as_echo_n "checking for acos in -lm... " >&6; }
-if test "${ac_cv_lib_m_acos+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
+$as_echo_n "checking for acos... " >&6; }
+if test "${gcc_cv_math_func_acos+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char acos ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())acos;
+
 int
 main ()
 {
-return acos ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_acos=yes
+  gcc_cv_math_func_acos=yes
 else
-  ac_cv_lib_m_acos=no
+  gcc_cv_math_func_acos=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_acos" >&5
-$as_echo "$ac_cv_lib_m_acos" >&6; }
-if test "x$ac_cv_lib_m_acos" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
+$as_echo "$gcc_cv_math_func_acos" >&6; }
+  if test $gcc_cv_math_func_acos = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ACOS 1
+_ACEOF
+
+  fi
 
-$as_echo "#define HAVE_ACOS 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl in -lm" >&5
-$as_echo_n "checking for acosl in -lm... " >&6; }
-if test "${ac_cv_lib_m_acosl+set}" = set; then :
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
+$as_echo_n "checking for acosl... " >&6; }
+if test "${gcc_cv_math_func_acosl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char acosl ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())acosl;
+
 int
 main ()
 {
-return acosl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_acosl=yes
+  gcc_cv_math_func_acosl=yes
 else
-  ac_cv_lib_m_acosl=no
+  gcc_cv_math_func_acosl=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_acosl" >&5
-$as_echo "$ac_cv_lib_m_acosl" >&6; }
-if test "x$ac_cv_lib_m_acosl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
+$as_echo "$gcc_cv_math_func_acosl" >&6; }
+  if test $gcc_cv_math_func_acosl = yes; then
 
-$as_echo "#define HAVE_ACOSL 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ACOSL 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf in -lm" >&5
-$as_echo_n "checking for acoshf in -lm... " >&6; }
-if test "${ac_cv_lib_m_acoshf+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
+$as_echo_n "checking for acoshf... " >&6; }
+if test "${gcc_cv_math_func_acoshf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char acoshf ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())acoshf;
+
 int
 main ()
 {
-return acoshf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_acoshf=yes
+  gcc_cv_math_func_acoshf=yes
 else
-  ac_cv_lib_m_acoshf=no
+  gcc_cv_math_func_acoshf=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_acoshf" >&5
-$as_echo "$ac_cv_lib_m_acoshf" >&6; }
-if test "x$ac_cv_lib_m_acoshf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
+$as_echo "$gcc_cv_math_func_acoshf" >&6; }
+  if test $gcc_cv_math_func_acoshf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ACOSHF 1
+_ACEOF
+
+  fi
 
-$as_echo "#define HAVE_ACOSHF 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh in -lm" >&5
-$as_echo_n "checking for acosh in -lm... " >&6; }
-if test "${ac_cv_lib_m_acosh+set}" = set; then :
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
+$as_echo_n "checking for acosh... " >&6; }
+if test "${gcc_cv_math_func_acosh+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char acosh ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())acosh;
+
 int
 main ()
 {
-return acosh ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_acosh=yes
+  gcc_cv_math_func_acosh=yes
 else
-  ac_cv_lib_m_acosh=no
+  gcc_cv_math_func_acosh=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_acosh" >&5
-$as_echo "$ac_cv_lib_m_acosh" >&6; }
-if test "x$ac_cv_lib_m_acosh" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
+$as_echo "$gcc_cv_math_func_acosh" >&6; }
+  if test $gcc_cv_math_func_acosh = yes; then
 
-$as_echo "#define HAVE_ACOSH 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ACOSH 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl in -lm" >&5
-$as_echo_n "checking for acoshl in -lm... " >&6; }
-if test "${ac_cv_lib_m_acoshl+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
+$as_echo_n "checking for acoshl... " >&6; }
+if test "${gcc_cv_math_func_acoshl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char acoshl ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())acoshl;
+
 int
 main ()
 {
-return acoshl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_acoshl=yes
+  gcc_cv_math_func_acoshl=yes
 else
-  ac_cv_lib_m_acoshl=no
+  gcc_cv_math_func_acoshl=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_acoshl" >&5
-$as_echo "$ac_cv_lib_m_acoshl" >&6; }
-if test "x$ac_cv_lib_m_acoshl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
+$as_echo "$gcc_cv_math_func_acoshl" >&6; }
+  if test $gcc_cv_math_func_acoshl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ACOSHL 1
+_ACEOF
+
+  fi
 
-$as_echo "#define HAVE_ACOSHL 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf in -lm" >&5
-$as_echo_n "checking for asinf in -lm... " >&6; }
-if test "${ac_cv_lib_m_asinf+set}" = set; then :
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
+$as_echo_n "checking for asinf... " >&6; }
+if test "${gcc_cv_math_func_asinf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char asinf ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())asinf;
+
 int
 main ()
 {
-return asinf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_asinf=yes
+  gcc_cv_math_func_asinf=yes
 else
-  ac_cv_lib_m_asinf=no
+  gcc_cv_math_func_asinf=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_asinf" >&5
-$as_echo "$ac_cv_lib_m_asinf" >&6; }
-if test "x$ac_cv_lib_m_asinf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
+$as_echo "$gcc_cv_math_func_asinf" >&6; }
+  if test $gcc_cv_math_func_asinf = yes; then
 
-$as_echo "#define HAVE_ASINF 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ASINF 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin in -lm" >&5
-$as_echo_n "checking for asin in -lm... " >&6; }
-if test "${ac_cv_lib_m_asin+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
+$as_echo_n "checking for asin... " >&6; }
+if test "${gcc_cv_math_func_asin+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char asin ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())asin;
+
 int
 main ()
 {
-return asin ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_asin=yes
+  gcc_cv_math_func_asin=yes
 else
-  ac_cv_lib_m_asin=no
+  gcc_cv_math_func_asin=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_asin" >&5
-$as_echo "$ac_cv_lib_m_asin" >&6; }
-if test "x$ac_cv_lib_m_asin" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
+$as_echo "$gcc_cv_math_func_asin" >&6; }
+  if test $gcc_cv_math_func_asin = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ASIN 1
+_ACEOF
+
+  fi
 
-$as_echo "#define HAVE_ASIN 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl in -lm" >&5
-$as_echo_n "checking for asinl in -lm... " >&6; }
-if test "${ac_cv_lib_m_asinl+set}" = set; then :
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
+$as_echo_n "checking for asinl... " >&6; }
+if test "${gcc_cv_math_func_asinl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char asinl ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())asinl;
+
 int
 main ()
 {
-return asinl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_asinl=yes
+  gcc_cv_math_func_asinl=yes
 else
-  ac_cv_lib_m_asinl=no
+  gcc_cv_math_func_asinl=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_asinl" >&5
-$as_echo "$ac_cv_lib_m_asinl" >&6; }
-if test "x$ac_cv_lib_m_asinl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
+$as_echo "$gcc_cv_math_func_asinl" >&6; }
+  if test $gcc_cv_math_func_asinl = yes; then
 
-$as_echo "#define HAVE_ASINL 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ASINL 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf in -lm" >&5
-$as_echo_n "checking for asinhf in -lm... " >&6; }
-if test "${ac_cv_lib_m_asinhf+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
+$as_echo_n "checking for asinhf... " >&6; }
+if test "${gcc_cv_math_func_asinhf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char asinhf ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())asinhf;
+
 int
 main ()
 {
-return asinhf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_asinhf=yes
+  gcc_cv_math_func_asinhf=yes
 else
-  ac_cv_lib_m_asinhf=no
+  gcc_cv_math_func_asinhf=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_asinhf" >&5
-$as_echo "$ac_cv_lib_m_asinhf" >&6; }
-if test "x$ac_cv_lib_m_asinhf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
+$as_echo "$gcc_cv_math_func_asinhf" >&6; }
+  if test $gcc_cv_math_func_asinhf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ASINHF 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_ASINHF 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh in -lm" >&5
-$as_echo_n "checking for asinh in -lm... " >&6; }
-if test "${ac_cv_lib_m_asinh+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
+$as_echo_n "checking for asinh... " >&6; }
+if test "${gcc_cv_math_func_asinh+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char asinh ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())asinh;
+
 int
 main ()
 {
-return asinh ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_asinh=yes
+  gcc_cv_math_func_asinh=yes
 else
-  ac_cv_lib_m_asinh=no
+  gcc_cv_math_func_asinh=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_asinh" >&5
-$as_echo "$ac_cv_lib_m_asinh" >&6; }
-if test "x$ac_cv_lib_m_asinh" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
+$as_echo "$gcc_cv_math_func_asinh" >&6; }
+  if test $gcc_cv_math_func_asinh = yes; then
 
-$as_echo "#define HAVE_ASINH 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ASINH 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl in -lm" >&5
-$as_echo_n "checking for asinhl in -lm... " >&6; }
-if test "${ac_cv_lib_m_asinhl+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
+$as_echo_n "checking for asinhl... " >&6; }
+if test "${gcc_cv_math_func_asinhl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char asinhl ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())asinhl;
+
 int
 main ()
 {
-return asinhl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_asinhl=yes
+  gcc_cv_math_func_asinhl=yes
 else
-  ac_cv_lib_m_asinhl=no
+  gcc_cv_math_func_asinhl=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_asinhl" >&5
-$as_echo "$ac_cv_lib_m_asinhl" >&6; }
-if test "x$ac_cv_lib_m_asinhl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
+$as_echo "$gcc_cv_math_func_asinhl" >&6; }
+  if test $gcc_cv_math_func_asinhl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ASINHL 1
+_ACEOF
+
+  fi
 
-$as_echo "#define HAVE_ASINHL 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f in -lm" >&5
-$as_echo_n "checking for atan2f in -lm... " >&6; }
-if test "${ac_cv_lib_m_atan2f+set}" = set; then :
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
+$as_echo_n "checking for atan2f... " >&6; }
+if test "${gcc_cv_math_func_atan2f+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char atan2f ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())atan2f;
+
 int
 main ()
 {
-return atan2f ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_atan2f=yes
+  gcc_cv_math_func_atan2f=yes
 else
-  ac_cv_lib_m_atan2f=no
+  gcc_cv_math_func_atan2f=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_atan2f" >&5
-$as_echo "$ac_cv_lib_m_atan2f" >&6; }
-if test "x$ac_cv_lib_m_atan2f" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
+$as_echo "$gcc_cv_math_func_atan2f" >&6; }
+  if test $gcc_cv_math_func_atan2f = yes; then
 
-$as_echo "#define HAVE_ATAN2F 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ATAN2F 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2 in -lm" >&5
-$as_echo_n "checking for atan2 in -lm... " >&6; }
-if test "${ac_cv_lib_m_atan2+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
+$as_echo_n "checking for atan2... " >&6; }
+if test "${gcc_cv_math_func_atan2+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char atan2 ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())atan2;
+
 int
 main ()
 {
-return atan2 ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_atan2=yes
+  gcc_cv_math_func_atan2=yes
 else
-  ac_cv_lib_m_atan2=no
+  gcc_cv_math_func_atan2=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_atan2" >&5
-$as_echo "$ac_cv_lib_m_atan2" >&6; }
-if test "x$ac_cv_lib_m_atan2" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
+$as_echo "$gcc_cv_math_func_atan2" >&6; }
+  if test $gcc_cv_math_func_atan2 = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ATAN2 1
+_ACEOF
+
+  fi
 
-$as_echo "#define HAVE_ATAN2 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l in -lm" >&5
-$as_echo_n "checking for atan2l in -lm... " >&6; }
-if test "${ac_cv_lib_m_atan2l+set}" = set; then :
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
+$as_echo_n "checking for atan2l... " >&6; }
+if test "${gcc_cv_math_func_atan2l+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char atan2l ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())atan2l;
+
 int
 main ()
 {
-return atan2l ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_atan2l=yes
+  gcc_cv_math_func_atan2l=yes
 else
-  ac_cv_lib_m_atan2l=no
+  gcc_cv_math_func_atan2l=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_atan2l" >&5
-$as_echo "$ac_cv_lib_m_atan2l" >&6; }
-if test "x$ac_cv_lib_m_atan2l" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
+$as_echo "$gcc_cv_math_func_atan2l" >&6; }
+  if test $gcc_cv_math_func_atan2l = yes; then
 
-$as_echo "#define HAVE_ATAN2L 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ATAN2L 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf in -lm" >&5
-$as_echo_n "checking for atanf in -lm... " >&6; }
-if test "${ac_cv_lib_m_atanf+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
+$as_echo_n "checking for atanf... " >&6; }
+if test "${gcc_cv_math_func_atanf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char atanf ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())atanf;
+
 int
 main ()
 {
-return atanf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_atanf=yes
+  gcc_cv_math_func_atanf=yes
 else
-  ac_cv_lib_m_atanf=no
+  gcc_cv_math_func_atanf=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_atanf" >&5
-$as_echo "$ac_cv_lib_m_atanf" >&6; }
-if test "x$ac_cv_lib_m_atanf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
+$as_echo "$gcc_cv_math_func_atanf" >&6; }
+  if test $gcc_cv_math_func_atanf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ATANF 1
+_ACEOF
+
+  fi
 
-$as_echo "#define HAVE_ATANF 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan in -lm" >&5
-$as_echo_n "checking for atan in -lm... " >&6; }
-if test "${ac_cv_lib_m_atan+set}" = set; then :
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
+$as_echo_n "checking for atan... " >&6; }
+if test "${gcc_cv_math_func_atan+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char atan ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())atan;
+
 int
 main ()
 {
-return atan ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_atan=yes
+  gcc_cv_math_func_atan=yes
 else
-  ac_cv_lib_m_atan=no
+  gcc_cv_math_func_atan=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_atan" >&5
-$as_echo "$ac_cv_lib_m_atan" >&6; }
-if test "x$ac_cv_lib_m_atan" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
+$as_echo "$gcc_cv_math_func_atan" >&6; }
+  if test $gcc_cv_math_func_atan = yes; then
 
-$as_echo "#define HAVE_ATAN 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ATAN 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl in -lm" >&5
-$as_echo_n "checking for atanl in -lm... " >&6; }
-if test "${ac_cv_lib_m_atanl+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
+$as_echo_n "checking for atanl... " >&6; }
+if test "${gcc_cv_math_func_atanl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char atanl ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())atanl;
+
 int
 main ()
 {
-return atanl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_atanl=yes
+  gcc_cv_math_func_atanl=yes
 else
-  ac_cv_lib_m_atanl=no
+  gcc_cv_math_func_atanl=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_atanl" >&5
-$as_echo "$ac_cv_lib_m_atanl" >&6; }
-if test "x$ac_cv_lib_m_atanl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
+$as_echo "$gcc_cv_math_func_atanl" >&6; }
+  if test $gcc_cv_math_func_atanl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ATANL 1
+_ACEOF
+
+  fi
 
-$as_echo "#define HAVE_ATANL 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf in -lm" >&5
-$as_echo_n "checking for atanhf in -lm... " >&6; }
-if test "${ac_cv_lib_m_atanhf+set}" = set; then :
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
+$as_echo_n "checking for atanhf... " >&6; }
+if test "${gcc_cv_math_func_atanhf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char atanhf ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())atanhf;
+
 int
 main ()
 {
-return atanhf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_atanhf=yes
+  gcc_cv_math_func_atanhf=yes
 else
-  ac_cv_lib_m_atanhf=no
+  gcc_cv_math_func_atanhf=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_atanhf" >&5
-$as_echo "$ac_cv_lib_m_atanhf" >&6; }
-if test "x$ac_cv_lib_m_atanhf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
+$as_echo "$gcc_cv_math_func_atanhf" >&6; }
+  if test $gcc_cv_math_func_atanhf = yes; then
 
-$as_echo "#define HAVE_ATANHF 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ATANHF 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh in -lm" >&5
-$as_echo_n "checking for atanh in -lm... " >&6; }
-if test "${ac_cv_lib_m_atanh+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
+$as_echo_n "checking for atanh... " >&6; }
+if test "${gcc_cv_math_func_atanh+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char atanh ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())atanh;
+
 int
 main ()
 {
-return atanh ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_atanh=yes
+  gcc_cv_math_func_atanh=yes
 else
-  ac_cv_lib_m_atanh=no
+  gcc_cv_math_func_atanh=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_atanh" >&5
-$as_echo "$ac_cv_lib_m_atanh" >&6; }
-if test "x$ac_cv_lib_m_atanh" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
+$as_echo "$gcc_cv_math_func_atanh" >&6; }
+  if test $gcc_cv_math_func_atanh = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ATANH 1
+_ACEOF
+
+  fi
 
-$as_echo "#define HAVE_ATANH 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl in -lm" >&5
-$as_echo_n "checking for atanhl in -lm... " >&6; }
-if test "${ac_cv_lib_m_atanhl+set}" = set; then :
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
+$as_echo_n "checking for atanhl... " >&6; }
+if test "${gcc_cv_math_func_atanhl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char atanhl ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())atanhl;
+
 int
 main ()
 {
-return atanhl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_atanhl=yes
+  gcc_cv_math_func_atanhl=yes
 else
-  ac_cv_lib_m_atanhl=no
+  gcc_cv_math_func_atanhl=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_atanhl" >&5
-$as_echo "$ac_cv_lib_m_atanhl" >&6; }
-if test "x$ac_cv_lib_m_atanhl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
+$as_echo "$gcc_cv_math_func_atanhl" >&6; }
+  if test $gcc_cv_math_func_atanhl = yes; then
 
-$as_echo "#define HAVE_ATANHL 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ATANHL 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf in -lm" >&5
-$as_echo_n "checking for cargf in -lm... " >&6; }
-if test "${ac_cv_lib_m_cargf+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
+$as_echo_n "checking for cargf... " >&6; }
+if test "${gcc_cv_math_func_cargf+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
+  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"
+fi
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char cargf ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())cargf;
+
 int
 main ()
 {
-return cargf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_cargf=yes
+  gcc_cv_math_func_cargf=yes
 else
-  ac_cv_lib_m_cargf=no
+  gcc_cv_math_func_cargf=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_cargf" >&5
-$as_echo "$ac_cv_lib_m_cargf" >&6; }
-if test "x$ac_cv_lib_m_cargf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
+$as_echo "$gcc_cv_math_func_cargf" >&6; }
+  if test $gcc_cv_math_func_cargf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CARGF 1
+_ACEOF
+
+  fi
 
-$as_echo "#define HAVE_CARGF 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg in -lm" >&5
-$as_echo_n "checking for carg in -lm... " >&6; }
-if test "${ac_cv_lib_m_carg+set}" = set; then :
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
+$as_echo_n "checking for carg... " >&6; }
+if test "${gcc_cv_math_func_carg+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char carg ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())carg;
+
 int
 main ()
 {
-return carg ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_carg=yes
+  gcc_cv_math_func_carg=yes
 else
-  ac_cv_lib_m_carg=no
+  gcc_cv_math_func_carg=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_carg" >&5
-$as_echo "$ac_cv_lib_m_carg" >&6; }
-if test "x$ac_cv_lib_m_carg" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
+$as_echo "$gcc_cv_math_func_carg" >&6; }
+  if test $gcc_cv_math_func_carg = yes; then
 
-$as_echo "#define HAVE_CARG 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CARG 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl in -lm" >&5
-$as_echo_n "checking for cargl in -lm... " >&6; }
-if test "${ac_cv_lib_m_cargl+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
+$as_echo_n "checking for cargl... " >&6; }
+if test "${gcc_cv_math_func_cargl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char cargl ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())cargl;
+
 int
 main ()
 {
-return cargl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_cargl=yes
+  gcc_cv_math_func_cargl=yes
 else
-  ac_cv_lib_m_cargl=no
+  gcc_cv_math_func_cargl=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_cargl" >&5
-$as_echo "$ac_cv_lib_m_cargl" >&6; }
-if test "x$ac_cv_lib_m_cargl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
+$as_echo "$gcc_cv_math_func_cargl" >&6; }
+  if test $gcc_cv_math_func_cargl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CARGL 1
+_ACEOF
+
+  fi
 
-$as_echo "#define HAVE_CARGL 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf in -lm" >&5
-$as_echo_n "checking for ceilf in -lm... " >&6; }
-if test "${ac_cv_lib_m_ceilf+set}" = set; then :
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
+$as_echo_n "checking for ceilf... " >&6; }
+if test "${gcc_cv_math_func_ceilf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char ceilf ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())ceilf;
+
 int
 main ()
 {
-return ceilf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_ceilf=yes
+  gcc_cv_math_func_ceilf=yes
 else
-  ac_cv_lib_m_ceilf=no
+  gcc_cv_math_func_ceilf=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_ceilf" >&5
-$as_echo "$ac_cv_lib_m_ceilf" >&6; }
-if test "x$ac_cv_lib_m_ceilf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
+$as_echo "$gcc_cv_math_func_ceilf" >&6; }
+  if test $gcc_cv_math_func_ceilf = yes; then
 
-$as_echo "#define HAVE_CEILF 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CEILF 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil in -lm" >&5
-$as_echo_n "checking for ceil in -lm... " >&6; }
-if test "${ac_cv_lib_m_ceil+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
+$as_echo_n "checking for ceil... " >&6; }
+if test "${gcc_cv_math_func_ceil+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char ceil ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())ceil;
+
 int
 main ()
 {
-return ceil ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_ceil=yes
+  gcc_cv_math_func_ceil=yes
 else
-  ac_cv_lib_m_ceil=no
+  gcc_cv_math_func_ceil=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_ceil" >&5
-$as_echo "$ac_cv_lib_m_ceil" >&6; }
-if test "x$ac_cv_lib_m_ceil" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
+$as_echo "$gcc_cv_math_func_ceil" >&6; }
+  if test $gcc_cv_math_func_ceil = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CEIL 1
+_ACEOF
+
+  fi
 
-$as_echo "#define HAVE_CEIL 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill in -lm" >&5
-$as_echo_n "checking for ceill in -lm... " >&6; }
-if test "${ac_cv_lib_m_ceill+set}" = set; then :
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
+$as_echo_n "checking for ceill... " >&6; }
+if test "${gcc_cv_math_func_ceill+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char ceill ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())ceill;
+
 int
 main ()
 {
-return ceill ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_ceill=yes
+  gcc_cv_math_func_ceill=yes
 else
-  ac_cv_lib_m_ceill=no
+  gcc_cv_math_func_ceill=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_ceill" >&5
-$as_echo "$ac_cv_lib_m_ceill" >&6; }
-if test "x$ac_cv_lib_m_ceill" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
+$as_echo "$gcc_cv_math_func_ceill" >&6; }
+  if test $gcc_cv_math_func_ceill = yes; then
 
-$as_echo "#define HAVE_CEILL 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CEILL 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf in -lm" >&5
-$as_echo_n "checking for copysignf in -lm... " >&6; }
-if test "${ac_cv_lib_m_copysignf+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
+$as_echo_n "checking for copysignf... " >&6; }
+if test "${gcc_cv_math_func_copysignf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char copysignf ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())copysignf;
+
 int
 main ()
 {
-return copysignf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_copysignf=yes
+  gcc_cv_math_func_copysignf=yes
 else
-  ac_cv_lib_m_copysignf=no
+  gcc_cv_math_func_copysignf=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_copysignf" >&5
-$as_echo "$ac_cv_lib_m_copysignf" >&6; }
-if test "x$ac_cv_lib_m_copysignf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
+$as_echo "$gcc_cv_math_func_copysignf" >&6; }
+  if test $gcc_cv_math_func_copysignf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_COPYSIGNF 1
+_ACEOF
+
+  fi
 
-$as_echo "#define HAVE_COPYSIGNF 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign in -lm" >&5
-$as_echo_n "checking for copysign in -lm... " >&6; }
-if test "${ac_cv_lib_m_copysign+set}" = set; then :
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
+$as_echo_n "checking for copysign... " >&6; }
+if test "${gcc_cv_math_func_copysign+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char copysign ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())copysign;
+
 int
 main ()
 {
-return copysign ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_copysign=yes
+  gcc_cv_math_func_copysign=yes
 else
-  ac_cv_lib_m_copysign=no
+  gcc_cv_math_func_copysign=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_copysign" >&5
-$as_echo "$ac_cv_lib_m_copysign" >&6; }
-if test "x$ac_cv_lib_m_copysign" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
+$as_echo "$gcc_cv_math_func_copysign" >&6; }
+  if test $gcc_cv_math_func_copysign = yes; then
 
-$as_echo "#define HAVE_COPYSIGN 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_COPYSIGN 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl in -lm" >&5
-$as_echo_n "checking for copysignl in -lm... " >&6; }
-if test "${ac_cv_lib_m_copysignl+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
+$as_echo_n "checking for copysignl... " >&6; }
+if test "${gcc_cv_math_func_copysignl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char copysignl ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())copysignl;
+
 int
 main ()
 {
-return copysignl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_copysignl=yes
+  gcc_cv_math_func_copysignl=yes
 else
-  ac_cv_lib_m_copysignl=no
+  gcc_cv_math_func_copysignl=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_copysignl" >&5
-$as_echo "$ac_cv_lib_m_copysignl" >&6; }
-if test "x$ac_cv_lib_m_copysignl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
+$as_echo "$gcc_cv_math_func_copysignl" >&6; }
+  if test $gcc_cv_math_func_copysignl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_COPYSIGNL 1
+_ACEOF
+
+  fi
 
-$as_echo "#define HAVE_COPYSIGNL 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf in -lm" >&5
-$as_echo_n "checking for cosf in -lm... " >&6; }
-if test "${ac_cv_lib_m_cosf+set}" = set; then :
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
+$as_echo_n "checking for cosf... " >&6; }
+if test "${gcc_cv_math_func_cosf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char cosf ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())cosf;
+
 int
 main ()
 {
-return cosf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_cosf=yes
+  gcc_cv_math_func_cosf=yes
 else
-  ac_cv_lib_m_cosf=no
+  gcc_cv_math_func_cosf=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_cosf" >&5
-$as_echo "$ac_cv_lib_m_cosf" >&6; }
-if test "x$ac_cv_lib_m_cosf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
+$as_echo "$gcc_cv_math_func_cosf" >&6; }
+  if test $gcc_cv_math_func_cosf = yes; then
 
-$as_echo "#define HAVE_COSF 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_COSF 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
-$as_echo_n "checking for cos in -lm... " >&6; }
-if test "${ac_cv_lib_m_cos+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
+$as_echo_n "checking for cos... " >&6; }
+if test "${gcc_cv_math_func_cos+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char cos ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())cos;
+
 int
 main ()
 {
-return cos ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_cos=yes
+  gcc_cv_math_func_cos=yes
 else
-  ac_cv_lib_m_cos=no
+  gcc_cv_math_func_cos=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_cos" >&5
-$as_echo "$ac_cv_lib_m_cos" >&6; }
-if test "x$ac_cv_lib_m_cos" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
+$as_echo "$gcc_cv_math_func_cos" >&6; }
+  if test $gcc_cv_math_func_cos = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_COS 1
+_ACEOF
+
+  fi
 
-$as_echo "#define HAVE_COS 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl in -lm" >&5
-$as_echo_n "checking for cosl in -lm... " >&6; }
-if test "${ac_cv_lib_m_cosl+set}" = set; then :
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
+$as_echo_n "checking for cosl... " >&6; }
+if test "${gcc_cv_math_func_cosl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char cosl ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())cosl;
+
 int
 main ()
 {
-return cosl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_cosl=yes
+  gcc_cv_math_func_cosl=yes
 else
-  ac_cv_lib_m_cosl=no
+  gcc_cv_math_func_cosl=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_cosl" >&5
-$as_echo "$ac_cv_lib_m_cosl" >&6; }
-if test "x$ac_cv_lib_m_cosl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
+$as_echo "$gcc_cv_math_func_cosl" >&6; }
+  if test $gcc_cv_math_func_cosl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_COSL 1
+_ACEOF
+
+  fi
 
-$as_echo "#define HAVE_COSL 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf in -lm" >&5
-$as_echo_n "checking for ccosf in -lm... " >&6; }
-if test "${ac_cv_lib_m_ccosf+set}" = set; then :
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
+$as_echo_n "checking for ccosf... " >&6; }
+if test "${gcc_cv_math_func_ccosf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char ccosf ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())ccosf;
+
 int
 main ()
 {
-return ccosf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_ccosf=yes
+  gcc_cv_math_func_ccosf=yes
 else
-  ac_cv_lib_m_ccosf=no
+  gcc_cv_math_func_ccosf=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_ccosf" >&5
-$as_echo "$ac_cv_lib_m_ccosf" >&6; }
-if test "x$ac_cv_lib_m_ccosf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
+$as_echo "$gcc_cv_math_func_ccosf" >&6; }
+  if test $gcc_cv_math_func_ccosf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CCOSF 1
+_ACEOF
+
+  fi
 
-$as_echo "#define HAVE_CCOSF 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos in -lm" >&5
-$as_echo_n "checking for ccos in -lm... " >&6; }
-if test "${ac_cv_lib_m_ccos+set}" = set; then :
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
+$as_echo_n "checking for ccos... " >&6; }
+if test "${gcc_cv_math_func_ccos+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char ccos ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())ccos;
+
 int
 main ()
 {
-return ccos ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_ccos=yes
+  gcc_cv_math_func_ccos=yes
 else
-  ac_cv_lib_m_ccos=no
+  gcc_cv_math_func_ccos=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_ccos" >&5
-$as_echo "$ac_cv_lib_m_ccos" >&6; }
-if test "x$ac_cv_lib_m_ccos" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
+$as_echo "$gcc_cv_math_func_ccos" >&6; }
+  if test $gcc_cv_math_func_ccos = yes; then
 
-$as_echo "#define HAVE_CCOS 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CCOS 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl in -lm" >&5
-$as_echo_n "checking for ccosl in -lm... " >&6; }
-if test "${ac_cv_lib_m_ccosl+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
+$as_echo_n "checking for ccosl... " >&6; }
+if test "${gcc_cv_math_func_ccosl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char ccosl ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())ccosl;
+
 int
 main ()
 {
-return ccosl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_ccosl=yes
+  gcc_cv_math_func_ccosl=yes
 else
-  ac_cv_lib_m_ccosl=no
+  gcc_cv_math_func_ccosl=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_ccosl" >&5
-$as_echo "$ac_cv_lib_m_ccosl" >&6; }
-if test "x$ac_cv_lib_m_ccosl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
+$as_echo "$gcc_cv_math_func_ccosl" >&6; }
+  if test $gcc_cv_math_func_ccosl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CCOSL 1
+_ACEOF
+
+  fi
 
-$as_echo "#define HAVE_CCOSL 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf in -lm" >&5
-$as_echo_n "checking for coshf in -lm... " >&6; }
-if test "${ac_cv_lib_m_coshf+set}" = set; then :
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
+$as_echo_n "checking for coshf... " >&6; }
+if test "${gcc_cv_math_func_coshf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char coshf ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())coshf;
+
 int
 main ()
 {
-return coshf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_coshf=yes
+  gcc_cv_math_func_coshf=yes
 else
-  ac_cv_lib_m_coshf=no
+  gcc_cv_math_func_coshf=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_coshf" >&5
-$as_echo "$ac_cv_lib_m_coshf" >&6; }
-if test "x$ac_cv_lib_m_coshf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
+$as_echo "$gcc_cv_math_func_coshf" >&6; }
+  if test $gcc_cv_math_func_coshf = yes; then
 
-$as_echo "#define HAVE_COSHF 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_COSHF 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh in -lm" >&5
-$as_echo_n "checking for cosh in -lm... " >&6; }
-if test "${ac_cv_lib_m_cosh+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
+$as_echo_n "checking for cosh... " >&6; }
+if test "${gcc_cv_math_func_cosh+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char cosh ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())cosh;
+
 int
 main ()
 {
-return cosh ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_cosh=yes
+  gcc_cv_math_func_cosh=yes
 else
-  ac_cv_lib_m_cosh=no
+  gcc_cv_math_func_cosh=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_cosh" >&5
-$as_echo "$ac_cv_lib_m_cosh" >&6; }
-if test "x$ac_cv_lib_m_cosh" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
+$as_echo "$gcc_cv_math_func_cosh" >&6; }
+  if test $gcc_cv_math_func_cosh = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_COSH 1
+_ACEOF
+
+  fi
 
-$as_echo "#define HAVE_COSH 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl in -lm" >&5
-$as_echo_n "checking for coshl in -lm... " >&6; }
-if test "${ac_cv_lib_m_coshl+set}" = set; then :
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
+$as_echo_n "checking for coshl... " >&6; }
+if test "${gcc_cv_math_func_coshl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char coshl ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())coshl;
+
 int
 main ()
 {
-return coshl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_coshl=yes
+  gcc_cv_math_func_coshl=yes
 else
-  ac_cv_lib_m_coshl=no
+  gcc_cv_math_func_coshl=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_coshl" >&5
-$as_echo "$ac_cv_lib_m_coshl" >&6; }
-if test "x$ac_cv_lib_m_coshl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
+$as_echo "$gcc_cv_math_func_coshl" >&6; }
+  if test $gcc_cv_math_func_coshl = yes; then
 
-$as_echo "#define HAVE_COSHL 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_COSHL 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf in -lm" >&5
-$as_echo_n "checking for ccoshf in -lm... " >&6; }
-if test "${ac_cv_lib_m_ccoshf+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
+$as_echo_n "checking for ccoshf... " >&6; }
+if test "${gcc_cv_math_func_ccoshf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char ccoshf ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())ccoshf;
+
 int
 main ()
 {
-return ccoshf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_ccoshf=yes
+  gcc_cv_math_func_ccoshf=yes
 else
-  ac_cv_lib_m_ccoshf=no
+  gcc_cv_math_func_ccoshf=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_ccoshf" >&5
-$as_echo "$ac_cv_lib_m_ccoshf" >&6; }
-if test "x$ac_cv_lib_m_ccoshf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
+$as_echo "$gcc_cv_math_func_ccoshf" >&6; }
+  if test $gcc_cv_math_func_ccoshf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CCOSHF 1
+_ACEOF
+
+  fi
 
-$as_echo "#define HAVE_CCOSHF 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh in -lm" >&5
-$as_echo_n "checking for ccosh in -lm... " >&6; }
-if test "${ac_cv_lib_m_ccosh+set}" = set; then :
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
+$as_echo_n "checking for ccosh... " >&6; }
+if test "${gcc_cv_math_func_ccosh+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char ccosh ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())ccosh;
+
 int
 main ()
 {
-return ccosh ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_ccosh=yes
+  gcc_cv_math_func_ccosh=yes
 else
-  ac_cv_lib_m_ccosh=no
+  gcc_cv_math_func_ccosh=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_ccosh" >&5
-$as_echo "$ac_cv_lib_m_ccosh" >&6; }
-if test "x$ac_cv_lib_m_ccosh" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
+$as_echo "$gcc_cv_math_func_ccosh" >&6; }
+  if test $gcc_cv_math_func_ccosh = yes; then
 
-$as_echo "#define HAVE_CCOSH 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CCOSH 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl in -lm" >&5
-$as_echo_n "checking for ccoshl in -lm... " >&6; }
-if test "${ac_cv_lib_m_ccoshl+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
+$as_echo_n "checking for ccoshl... " >&6; }
+if test "${gcc_cv_math_func_ccoshl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char ccoshl ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())ccoshl;
+
 int
 main ()
 {
-return ccoshl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_ccoshl=yes
+  gcc_cv_math_func_ccoshl=yes
 else
-  ac_cv_lib_m_ccoshl=no
+  gcc_cv_math_func_ccoshl=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_ccoshl" >&5
-$as_echo "$ac_cv_lib_m_ccoshl" >&6; }
-if test "x$ac_cv_lib_m_ccoshl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
+$as_echo "$gcc_cv_math_func_ccoshl" >&6; }
+  if test $gcc_cv_math_func_ccoshl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CCOSHL 1
+_ACEOF
+
+  fi
 
-$as_echo "#define HAVE_CCOSHL 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf in -lm" >&5
-$as_echo_n "checking for expf in -lm... " >&6; }
-if test "${ac_cv_lib_m_expf+set}" = set; then :
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
+$as_echo_n "checking for expf... " >&6; }
+if test "${gcc_cv_math_func_expf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char expf ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())expf;
+
 int
 main ()
 {
-return expf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_expf=yes
+  gcc_cv_math_func_expf=yes
 else
-  ac_cv_lib_m_expf=no
+  gcc_cv_math_func_expf=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_expf" >&5
-$as_echo "$ac_cv_lib_m_expf" >&6; }
-if test "x$ac_cv_lib_m_expf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
+$as_echo "$gcc_cv_math_func_expf" >&6; }
+  if test $gcc_cv_math_func_expf = yes; then
 
-$as_echo "#define HAVE_EXPF 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_EXPF 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp in -lm" >&5
-$as_echo_n "checking for exp in -lm... " >&6; }
-if test "${ac_cv_lib_m_exp+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
+$as_echo_n "checking for exp... " >&6; }
+if test "${gcc_cv_math_func_exp+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char exp ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())exp;
+
 int
 main ()
 {
-return exp ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_exp=yes
+  gcc_cv_math_func_exp=yes
 else
-  ac_cv_lib_m_exp=no
+  gcc_cv_math_func_exp=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_exp" >&5
-$as_echo "$ac_cv_lib_m_exp" >&6; }
-if test "x$ac_cv_lib_m_exp" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
+$as_echo "$gcc_cv_math_func_exp" >&6; }
+  if test $gcc_cv_math_func_exp = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_EXP 1
+_ACEOF
+
+  fi
 
-$as_echo "#define HAVE_EXP 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl in -lm" >&5
-$as_echo_n "checking for expl in -lm... " >&6; }
-if test "${ac_cv_lib_m_expl+set}" = set; then :
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
+$as_echo_n "checking for expl... " >&6; }
+if test "${gcc_cv_math_func_expl+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
+  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"
+/* end confdefs.h.  */
+
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char expl ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())expl;
+
 int
 main ()
 {
-return expl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_expl=yes
+  gcc_cv_math_func_expl=yes
 else
-  ac_cv_lib_m_expl=no
+  gcc_cv_math_func_expl=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_expl" >&5
-$as_echo "$ac_cv_lib_m_expl" >&6; }
-if test "x$ac_cv_lib_m_expl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
+$as_echo "$gcc_cv_math_func_expl" >&6; }
+  if test $gcc_cv_math_func_expl = yes; then
 
-$as_echo "#define HAVE_EXPL 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_EXPL 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf in -lm" >&5
-$as_echo_n "checking for cexpf in -lm... " >&6; }
-if test "${ac_cv_lib_m_cexpf+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
+$as_echo_n "checking for cexpf... " >&6; }
+if test "${gcc_cv_math_func_cexpf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char cexpf ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())cexpf;
+
 int
 main ()
 {
-return cexpf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_cexpf=yes
+  gcc_cv_math_func_cexpf=yes
 else
-  ac_cv_lib_m_cexpf=no
+  gcc_cv_math_func_cexpf=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_cexpf" >&5
-$as_echo "$ac_cv_lib_m_cexpf" >&6; }
-if test "x$ac_cv_lib_m_cexpf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
+$as_echo "$gcc_cv_math_func_cexpf" >&6; }
+  if test $gcc_cv_math_func_cexpf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CEXPF 1
+_ACEOF
+
+  fi
 
-$as_echo "#define HAVE_CEXPF 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp in -lm" >&5
-$as_echo_n "checking for cexp in -lm... " >&6; }
-if test "${ac_cv_lib_m_cexp+set}" = set; then :
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
+$as_echo_n "checking for cexp... " >&6; }
+if test "${gcc_cv_math_func_cexp+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char cexp ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())cexp;
+
 int
 main ()
 {
-return cexp ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_cexp=yes
+  gcc_cv_math_func_cexp=yes
 else
-  ac_cv_lib_m_cexp=no
+  gcc_cv_math_func_cexp=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_cexp" >&5
-$as_echo "$ac_cv_lib_m_cexp" >&6; }
-if test "x$ac_cv_lib_m_cexp" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
+$as_echo "$gcc_cv_math_func_cexp" >&6; }
+  if test $gcc_cv_math_func_cexp = yes; then
 
-$as_echo "#define HAVE_CEXP 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CEXP 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl in -lm" >&5
-$as_echo_n "checking for cexpl in -lm... " >&6; }
-if test "${ac_cv_lib_m_cexpl+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
+$as_echo_n "checking for cexpl... " >&6; }
+if test "${gcc_cv_math_func_cexpl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char cexpl ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())cexpl;
+
 int
 main ()
 {
-return cexpl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_cexpl=yes
+  gcc_cv_math_func_cexpl=yes
 else
-  ac_cv_lib_m_cexpl=no
+  gcc_cv_math_func_cexpl=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_cexpl" >&5
-$as_echo "$ac_cv_lib_m_cexpl" >&6; }
-if test "x$ac_cv_lib_m_cexpl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
+$as_echo "$gcc_cv_math_func_cexpl" >&6; }
+  if test $gcc_cv_math_func_cexpl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CEXPL 1
+_ACEOF
+
+  fi
 
-$as_echo "#define HAVE_CEXPL 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf in -lm" >&5
-$as_echo_n "checking for fabsf in -lm... " >&6; }
-if test "${ac_cv_lib_m_fabsf+set}" = set; then :
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
+$as_echo_n "checking for fabsf... " >&6; }
+if test "${gcc_cv_math_func_fabsf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char fabsf ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())fabsf;
+
 int
 main ()
 {
-return fabsf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_fabsf=yes
+  gcc_cv_math_func_fabsf=yes
 else
-  ac_cv_lib_m_fabsf=no
+  gcc_cv_math_func_fabsf=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_fabsf" >&5
-$as_echo "$ac_cv_lib_m_fabsf" >&6; }
-if test "x$ac_cv_lib_m_fabsf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
+$as_echo "$gcc_cv_math_func_fabsf" >&6; }
+  if test $gcc_cv_math_func_fabsf = yes; then
 
-$as_echo "#define HAVE_FABSF 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_FABSF 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
-$as_echo_n "checking for fabs in -lm... " >&6; }
-if test "${ac_cv_lib_m_fabs+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
+$as_echo_n "checking for fabs... " >&6; }
+if test "${gcc_cv_math_func_fabs+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char fabs ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())fabs;
+
 int
 main ()
 {
-return fabs ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_fabs=yes
+  gcc_cv_math_func_fabs=yes
 else
-  ac_cv_lib_m_fabs=no
+  gcc_cv_math_func_fabs=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_fabs" >&5
-$as_echo "$ac_cv_lib_m_fabs" >&6; }
-if test "x$ac_cv_lib_m_fabs" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
+$as_echo "$gcc_cv_math_func_fabs" >&6; }
+  if test $gcc_cv_math_func_fabs = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_FABS 1
+_ACEOF
+
+  fi
 
-$as_echo "#define HAVE_FABS 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl in -lm" >&5
-$as_echo_n "checking for fabsl in -lm... " >&6; }
-if test "${ac_cv_lib_m_fabsl+set}" = set; then :
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
+$as_echo_n "checking for fabsl... " >&6; }
+if test "${gcc_cv_math_func_fabsl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char fabsl ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())fabsl;
+
 int
 main ()
 {
-return fabsl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_fabsl=yes
+  gcc_cv_math_func_fabsl=yes
 else
-  ac_cv_lib_m_fabsl=no
+  gcc_cv_math_func_fabsl=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_fabsl" >&5
-$as_echo "$ac_cv_lib_m_fabsl" >&6; }
-if test "x$ac_cv_lib_m_fabsl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
+$as_echo "$gcc_cv_math_func_fabsl" >&6; }
+  if test $gcc_cv_math_func_fabsl = yes; then
 
-$as_echo "#define HAVE_FABSL 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_FABSL 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf in -lm" >&5
-$as_echo_n "checking for cabsf in -lm... " >&6; }
-if test "${ac_cv_lib_m_cabsf+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
+$as_echo_n "checking for cabsf... " >&6; }
+if test "${gcc_cv_math_func_cabsf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char cabsf ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())cabsf;
+
 int
 main ()
 {
-return cabsf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_cabsf=yes
+  gcc_cv_math_func_cabsf=yes
 else
-  ac_cv_lib_m_cabsf=no
+  gcc_cv_math_func_cabsf=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_cabsf" >&5
-$as_echo "$ac_cv_lib_m_cabsf" >&6; }
-if test "x$ac_cv_lib_m_cabsf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
+$as_echo "$gcc_cv_math_func_cabsf" >&6; }
+  if test $gcc_cv_math_func_cabsf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CABSF 1
+_ACEOF
+
+  fi
 
-$as_echo "#define HAVE_CABSF 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs in -lm" >&5
-$as_echo_n "checking for cabs in -lm... " >&6; }
-if test "${ac_cv_lib_m_cabs+set}" = set; then :
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
+$as_echo_n "checking for cabs... " >&6; }
+if test "${gcc_cv_math_func_cabs+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char cabs ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())cabs;
+
 int
 main ()
 {
-return cabs ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_cabs=yes
+  gcc_cv_math_func_cabs=yes
 else
-  ac_cv_lib_m_cabs=no
+  gcc_cv_math_func_cabs=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_cabs" >&5
-$as_echo "$ac_cv_lib_m_cabs" >&6; }
-if test "x$ac_cv_lib_m_cabs" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
+$as_echo "$gcc_cv_math_func_cabs" >&6; }
+  if test $gcc_cv_math_func_cabs = yes; then
 
-$as_echo "#define HAVE_CABS 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CABS 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl in -lm" >&5
-$as_echo_n "checking for cabsl in -lm... " >&6; }
-if test "${ac_cv_lib_m_cabsl+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
+$as_echo_n "checking for cabsl... " >&6; }
+if test "${gcc_cv_math_func_cabsl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char cabsl ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())cabsl;
+
 int
 main ()
 {
-return cabsl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_cabsl=yes
+  gcc_cv_math_func_cabsl=yes
 else
-  ac_cv_lib_m_cabsl=no
+  gcc_cv_math_func_cabsl=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_cabsl" >&5
-$as_echo "$ac_cv_lib_m_cabsl" >&6; }
-if test "x$ac_cv_lib_m_cabsl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
+$as_echo "$gcc_cv_math_func_cabsl" >&6; }
+  if test $gcc_cv_math_func_cabsl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CABSL 1
+_ACEOF
+
+  fi
 
-$as_echo "#define HAVE_CABSL 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf in -lm" >&5
-$as_echo_n "checking for floorf in -lm... " >&6; }
-if test "${ac_cv_lib_m_floorf+set}" = set; then :
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
+$as_echo_n "checking for floorf... " >&6; }
+if test "${gcc_cv_math_func_floorf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char floorf ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())floorf;
+
 int
 main ()
 {
-return floorf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_floorf=yes
+  gcc_cv_math_func_floorf=yes
 else
-  ac_cv_lib_m_floorf=no
+  gcc_cv_math_func_floorf=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_floorf" >&5
-$as_echo "$ac_cv_lib_m_floorf" >&6; }
-if test "x$ac_cv_lib_m_floorf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
+$as_echo "$gcc_cv_math_func_floorf" >&6; }
+  if test $gcc_cv_math_func_floorf = yes; then
 
-$as_echo "#define HAVE_FLOORF 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_FLOORF 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
-$as_echo_n "checking for floor in -lm... " >&6; }
-if test "${ac_cv_lib_m_floor+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
+$as_echo_n "checking for floor... " >&6; }
+if test "${gcc_cv_math_func_floor+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char floor ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())floor;
+
 int
 main ()
 {
-return floor ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_floor=yes
+  gcc_cv_math_func_floor=yes
 else
-  ac_cv_lib_m_floor=no
+  gcc_cv_math_func_floor=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_floor" >&5
-$as_echo "$ac_cv_lib_m_floor" >&6; }
-if test "x$ac_cv_lib_m_floor" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
+$as_echo "$gcc_cv_math_func_floor" >&6; }
+  if test $gcc_cv_math_func_floor = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_FLOOR 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_FLOOR 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl in -lm" >&5
-$as_echo_n "checking for floorl in -lm... " >&6; }
-if test "${ac_cv_lib_m_floorl+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
+$as_echo_n "checking for floorl... " >&6; }
+if test "${gcc_cv_math_func_floorl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char floorl ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())floorl;
+
 int
 main ()
 {
-return floorl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_floorl=yes
+  gcc_cv_math_func_floorl=yes
 else
-  ac_cv_lib_m_floorl=no
+  gcc_cv_math_func_floorl=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_floorl" >&5
-$as_echo "$ac_cv_lib_m_floorl" >&6; }
-if test "x$ac_cv_lib_m_floorl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
+$as_echo "$gcc_cv_math_func_floorl" >&6; }
+  if test $gcc_cv_math_func_floorl = yes; then
 
-$as_echo "#define HAVE_FLOORL 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_FLOORL 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf in -lm" >&5
-$as_echo_n "checking for fmodf in -lm... " >&6; }
-if test "${ac_cv_lib_m_fmodf+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
+$as_echo_n "checking for fmodf... " >&6; }
+if test "${gcc_cv_math_func_fmodf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char fmodf ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())fmodf;
+
 int
 main ()
 {
-return fmodf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_fmodf=yes
+  gcc_cv_math_func_fmodf=yes
 else
-  ac_cv_lib_m_fmodf=no
+  gcc_cv_math_func_fmodf=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_fmodf" >&5
-$as_echo "$ac_cv_lib_m_fmodf" >&6; }
-if test "x$ac_cv_lib_m_fmodf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
+$as_echo "$gcc_cv_math_func_fmodf" >&6; }
+  if test $gcc_cv_math_func_fmodf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_FMODF 1
+_ACEOF
+
+  fi
 
-$as_echo "#define HAVE_FMODF 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5
-$as_echo_n "checking for fmod in -lm... " >&6; }
-if test "${ac_cv_lib_m_fmod+set}" = set; then :
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
+$as_echo_n "checking for fmod... " >&6; }
+if test "${gcc_cv_math_func_fmod+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char fmod ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())fmod;
+
 int
 main ()
 {
-return fmod ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_fmod=yes
+  gcc_cv_math_func_fmod=yes
 else
-  ac_cv_lib_m_fmod=no
+  gcc_cv_math_func_fmod=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_fmod" >&5
-$as_echo "$ac_cv_lib_m_fmod" >&6; }
-if test "x$ac_cv_lib_m_fmod" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
+$as_echo "$gcc_cv_math_func_fmod" >&6; }
+  if test $gcc_cv_math_func_fmod = yes; then
 
-$as_echo "#define HAVE_FMOD 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_FMOD 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl in -lm" >&5
-$as_echo_n "checking for fmodl in -lm... " >&6; }
-if test "${ac_cv_lib_m_fmodl+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
+$as_echo_n "checking for fmodl... " >&6; }
+if test "${gcc_cv_math_func_fmodl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char fmodl ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())fmodl;
+
 int
 main ()
 {
-return fmodl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_fmodl=yes
+  gcc_cv_math_func_fmodl=yes
 else
-  ac_cv_lib_m_fmodl=no
+  gcc_cv_math_func_fmodl=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_fmodl" >&5
-$as_echo "$ac_cv_lib_m_fmodl" >&6; }
-if test "x$ac_cv_lib_m_fmodl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
+$as_echo "$gcc_cv_math_func_fmodl" >&6; }
+  if test $gcc_cv_math_func_fmodl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_FMODL 1
+_ACEOF
+
+  fi
 
-$as_echo "#define HAVE_FMODL 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf in -lm" >&5
-$as_echo_n "checking for frexpf in -lm... " >&6; }
-if test "${ac_cv_lib_m_frexpf+set}" = set; then :
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
+$as_echo_n "checking for frexpf... " >&6; }
+if test "${gcc_cv_math_func_frexpf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char frexpf ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())frexpf;
+
 int
 main ()
 {
-return frexpf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_frexpf=yes
+  gcc_cv_math_func_frexpf=yes
 else
-  ac_cv_lib_m_frexpf=no
+  gcc_cv_math_func_frexpf=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_frexpf" >&5
-$as_echo "$ac_cv_lib_m_frexpf" >&6; }
-if test "x$ac_cv_lib_m_frexpf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
+$as_echo "$gcc_cv_math_func_frexpf" >&6; }
+  if test $gcc_cv_math_func_frexpf = yes; then
 
-$as_echo "#define HAVE_FREXPF 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_FREXPF 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp in -lm" >&5
-$as_echo_n "checking for frexp in -lm... " >&6; }
-if test "${ac_cv_lib_m_frexp+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
+$as_echo_n "checking for frexp... " >&6; }
+if test "${gcc_cv_math_func_frexp+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char frexp ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())frexp;
+
 int
 main ()
 {
-return frexp ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_frexp=yes
+  gcc_cv_math_func_frexp=yes
 else
-  ac_cv_lib_m_frexp=no
+  gcc_cv_math_func_frexp=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_frexp" >&5
-$as_echo "$ac_cv_lib_m_frexp" >&6; }
-if test "x$ac_cv_lib_m_frexp" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
+$as_echo "$gcc_cv_math_func_frexp" >&6; }
+  if test $gcc_cv_math_func_frexp = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_FREXP 1
+_ACEOF
+
+  fi
 
-$as_echo "#define HAVE_FREXP 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl in -lm" >&5
-$as_echo_n "checking for frexpl in -lm... " >&6; }
-if test "${ac_cv_lib_m_frexpl+set}" = set; then :
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
+$as_echo_n "checking for frexpl... " >&6; }
+if test "${gcc_cv_math_func_frexpl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char frexpl ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())frexpl;
+
 int
 main ()
 {
-return frexpl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_frexpl=yes
+  gcc_cv_math_func_frexpl=yes
 else
-  ac_cv_lib_m_frexpl=no
+  gcc_cv_math_func_frexpl=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_frexpl" >&5
-$as_echo "$ac_cv_lib_m_frexpl" >&6; }
-if test "x$ac_cv_lib_m_frexpl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
+$as_echo "$gcc_cv_math_func_frexpl" >&6; }
+  if test $gcc_cv_math_func_frexpl = yes; then
 
-$as_echo "#define HAVE_FREXPL 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_FREXPL 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf in -lm" >&5
-$as_echo_n "checking for hypotf in -lm... " >&6; }
-if test "${ac_cv_lib_m_hypotf+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
+$as_echo_n "checking for hypotf... " >&6; }
+if test "${gcc_cv_math_func_hypotf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char hypotf ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())hypotf;
+
 int
 main ()
 {
-return hypotf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_hypotf=yes
+  gcc_cv_math_func_hypotf=yes
 else
-  ac_cv_lib_m_hypotf=no
+  gcc_cv_math_func_hypotf=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_hypotf" >&5
-$as_echo "$ac_cv_lib_m_hypotf" >&6; }
-if test "x$ac_cv_lib_m_hypotf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
+$as_echo "$gcc_cv_math_func_hypotf" >&6; }
+  if test $gcc_cv_math_func_hypotf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_HYPOTF 1
+_ACEOF
+
+  fi
 
-$as_echo "#define HAVE_HYPOTF 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot in -lm" >&5
-$as_echo_n "checking for hypot in -lm... " >&6; }
-if test "${ac_cv_lib_m_hypot+set}" = set; then :
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
+$as_echo_n "checking for hypot... " >&6; }
+if test "${gcc_cv_math_func_hypot+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char hypot ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())hypot;
+
 int
 main ()
 {
-return hypot ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_hypot=yes
+  gcc_cv_math_func_hypot=yes
 else
-  ac_cv_lib_m_hypot=no
+  gcc_cv_math_func_hypot=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_hypot" >&5
-$as_echo "$ac_cv_lib_m_hypot" >&6; }
-if test "x$ac_cv_lib_m_hypot" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
+$as_echo "$gcc_cv_math_func_hypot" >&6; }
+  if test $gcc_cv_math_func_hypot = yes; then
 
-$as_echo "#define HAVE_HYPOT 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_HYPOT 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl in -lm" >&5
-$as_echo_n "checking for hypotl in -lm... " >&6; }
-if test "${ac_cv_lib_m_hypotl+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
+$as_echo_n "checking for hypotl... " >&6; }
+if test "${gcc_cv_math_func_hypotl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char hypotl ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())hypotl;
+
 int
 main ()
 {
-return hypotl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_hypotl=yes
+  gcc_cv_math_func_hypotl=yes
 else
-  ac_cv_lib_m_hypotl=no
+  gcc_cv_math_func_hypotl=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_hypotl" >&5
-$as_echo "$ac_cv_lib_m_hypotl" >&6; }
-if test "x$ac_cv_lib_m_hypotl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
+$as_echo "$gcc_cv_math_func_hypotl" >&6; }
+  if test $gcc_cv_math_func_hypotl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_HYPOTL 1
+_ACEOF
+
+  fi
 
-$as_echo "#define HAVE_HYPOTL 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf in -lm" >&5
-$as_echo_n "checking for ldexpf in -lm... " >&6; }
-if test "${ac_cv_lib_m_ldexpf+set}" = set; then :
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
+$as_echo_n "checking for ldexpf... " >&6; }
+if test "${gcc_cv_math_func_ldexpf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char ldexpf ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())ldexpf;
+
 int
 main ()
 {
-return ldexpf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_ldexpf=yes
+  gcc_cv_math_func_ldexpf=yes
 else
-  ac_cv_lib_m_ldexpf=no
+  gcc_cv_math_func_ldexpf=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_ldexpf" >&5
-$as_echo "$ac_cv_lib_m_ldexpf" >&6; }
-if test "x$ac_cv_lib_m_ldexpf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
+$as_echo "$gcc_cv_math_func_ldexpf" >&6; }
+  if test $gcc_cv_math_func_ldexpf = yes; then
 
-$as_echo "#define HAVE_LDEXPF 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_LDEXPF 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp in -lm" >&5
-$as_echo_n "checking for ldexp in -lm... " >&6; }
-if test "${ac_cv_lib_m_ldexp+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
+$as_echo_n "checking for ldexp... " >&6; }
+if test "${gcc_cv_math_func_ldexp+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char ldexp ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())ldexp;
+
 int
 main ()
 {
-return ldexp ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_ldexp=yes
+  gcc_cv_math_func_ldexp=yes
 else
-  ac_cv_lib_m_ldexp=no
+  gcc_cv_math_func_ldexp=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_ldexp" >&5
-$as_echo "$ac_cv_lib_m_ldexp" >&6; }
-if test "x$ac_cv_lib_m_ldexp" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
+$as_echo "$gcc_cv_math_func_ldexp" >&6; }
+  if test $gcc_cv_math_func_ldexp = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_LDEXP 1
+_ACEOF
+
+  fi
 
-$as_echo "#define HAVE_LDEXP 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl in -lm" >&5
-$as_echo_n "checking for ldexpl in -lm... " >&6; }
-if test "${ac_cv_lib_m_ldexpl+set}" = set; then :
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
+$as_echo_n "checking for ldexpl... " >&6; }
+if test "${gcc_cv_math_func_ldexpl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char ldexpl ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())ldexpl;
+
 int
 main ()
 {
-return ldexpl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_ldexpl=yes
+  gcc_cv_math_func_ldexpl=yes
 else
-  ac_cv_lib_m_ldexpl=no
+  gcc_cv_math_func_ldexpl=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_ldexpl" >&5
-$as_echo "$ac_cv_lib_m_ldexpl" >&6; }
-if test "x$ac_cv_lib_m_ldexpl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
+$as_echo "$gcc_cv_math_func_ldexpl" >&6; }
+  if test $gcc_cv_math_func_ldexpl = yes; then
 
-$as_echo "#define HAVE_LDEXPL 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_LDEXPL 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf in -lm" >&5
-$as_echo_n "checking for logf in -lm... " >&6; }
-if test "${ac_cv_lib_m_logf+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
+$as_echo_n "checking for logf... " >&6; }
+if test "${gcc_cv_math_func_logf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char logf ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())logf;
+
 int
 main ()
 {
-return logf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_logf=yes
+  gcc_cv_math_func_logf=yes
 else
-  ac_cv_lib_m_logf=no
+  gcc_cv_math_func_logf=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_logf" >&5
-$as_echo "$ac_cv_lib_m_logf" >&6; }
-if test "x$ac_cv_lib_m_logf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
+$as_echo "$gcc_cv_math_func_logf" >&6; }
+  if test $gcc_cv_math_func_logf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_LOGF 1
+_ACEOF
+
+  fi
 
-$as_echo "#define HAVE_LOGF 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log in -lm" >&5
-$as_echo_n "checking for log in -lm... " >&6; }
-if test "${ac_cv_lib_m_log+set}" = set; then :
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
+$as_echo_n "checking for log... " >&6; }
+if test "${gcc_cv_math_func_log+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char log ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())log;
+
 int
 main ()
 {
-return log ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_log=yes
+  gcc_cv_math_func_log=yes
 else
-  ac_cv_lib_m_log=no
+  gcc_cv_math_func_log=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_log" >&5
-$as_echo "$ac_cv_lib_m_log" >&6; }
-if test "x$ac_cv_lib_m_log" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
+$as_echo "$gcc_cv_math_func_log" >&6; }
+  if test $gcc_cv_math_func_log = yes; then
 
-$as_echo "#define HAVE_LOG 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_LOG 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl in -lm" >&5
-$as_echo_n "checking for logl in -lm... " >&6; }
-if test "${ac_cv_lib_m_logl+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
+$as_echo_n "checking for logl... " >&6; }
+if test "${gcc_cv_math_func_logl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char logl ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())logl;
+
 int
 main ()
 {
-return logl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_logl=yes
+  gcc_cv_math_func_logl=yes
 else
-  ac_cv_lib_m_logl=no
+  gcc_cv_math_func_logl=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_logl" >&5
-$as_echo "$ac_cv_lib_m_logl" >&6; }
-if test "x$ac_cv_lib_m_logl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
+$as_echo "$gcc_cv_math_func_logl" >&6; }
+  if test $gcc_cv_math_func_logl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_LOGL 1
+_ACEOF
+
+  fi
 
-$as_echo "#define HAVE_LOGL 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf in -lm" >&5
-$as_echo_n "checking for clogf in -lm... " >&6; }
-if test "${ac_cv_lib_m_clogf+set}" = set; then :
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
+$as_echo_n "checking for clogf... " >&6; }
+if test "${gcc_cv_math_func_clogf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char clogf ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())clogf;
+
 int
 main ()
 {
-return clogf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_clogf=yes
+  gcc_cv_math_func_clogf=yes
 else
-  ac_cv_lib_m_clogf=no
+  gcc_cv_math_func_clogf=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_clogf" >&5
-$as_echo "$ac_cv_lib_m_clogf" >&6; }
-if test "x$ac_cv_lib_m_clogf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
+$as_echo "$gcc_cv_math_func_clogf" >&6; }
+  if test $gcc_cv_math_func_clogf = yes; then
 
-$as_echo "#define HAVE_CLOGF 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CLOGF 1
+_ACEOF
 
-fi
+  fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog in -lm" >&5
-$as_echo_n "checking for clog in -lm... " >&6; }
-if test "${ac_cv_lib_m_clog+set}" = set; then :
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
+$as_echo_n "checking for clog... " >&6; }
+if test "${gcc_cv_math_func_clog+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char clog ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())clog;
+
 int
 main ()
 {
-return clog ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_clog=yes
+  gcc_cv_math_func_clog=yes
 else
-  ac_cv_lib_m_clog=no
+  gcc_cv_math_func_clog=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_clog" >&5
-$as_echo "$ac_cv_lib_m_clog" >&6; }
-if test "x$ac_cv_lib_m_clog" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
+$as_echo "$gcc_cv_math_func_clog" >&6; }
+  if test $gcc_cv_math_func_clog = yes; then
 
-$as_echo "#define HAVE_CLOG 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CLOG 1
+_ACEOF
+
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl in -lm" >&5
-$as_echo_n "checking for clogl in -lm... " >&6; }
-if test "${ac_cv_lib_m_clogl+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
+$as_echo_n "checking for clogl... " >&6; }
+if test "${gcc_cv_math_func_clogl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char clogl ();
+
+int (*ptr)() = (int (*)())clogl;
+
 int
 main ()
 {
-return clogl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_clogl=yes
+  gcc_cv_math_func_clogl=yes
 else
-  ac_cv_lib_m_clogl=no
+  gcc_cv_math_func_clogl=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_clogl" >&5
-$as_echo "$ac_cv_lib_m_clogl" >&6; }
-if test "x$ac_cv_lib_m_clogl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
+$as_echo "$gcc_cv_math_func_clogl" >&6; }
+  if test $gcc_cv_math_func_clogl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CLOGL 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_CLOGL 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f in -lm" >&5
-$as_echo_n "checking for log10f in -lm... " >&6; }
-if test "${ac_cv_lib_m_log10f+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
+$as_echo_n "checking for log10f... " >&6; }
+if test "${gcc_cv_math_func_log10f+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char log10f ();
+
+int (*ptr)() = (int (*)())log10f;
+
 int
 main ()
 {
-return log10f ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_log10f=yes
+  gcc_cv_math_func_log10f=yes
 else
-  ac_cv_lib_m_log10f=no
+  gcc_cv_math_func_log10f=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_log10f" >&5
-$as_echo "$ac_cv_lib_m_log10f" >&6; }
-if test "x$ac_cv_lib_m_log10f" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
+$as_echo "$gcc_cv_math_func_log10f" >&6; }
+  if test $gcc_cv_math_func_log10f = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_LOG10F 1
+_ACEOF
 
-$as_echo "#define HAVE_LOG10F 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10 in -lm" >&5
-$as_echo_n "checking for log10 in -lm... " >&6; }
-if test "${ac_cv_lib_m_log10+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
+$as_echo_n "checking for log10... " >&6; }
+if test "${gcc_cv_math_func_log10+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char log10 ();
+
+int (*ptr)() = (int (*)())log10;
+
 int
 main ()
 {
-return log10 ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_log10=yes
+  gcc_cv_math_func_log10=yes
 else
-  ac_cv_lib_m_log10=no
+  gcc_cv_math_func_log10=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_log10" >&5
-$as_echo "$ac_cv_lib_m_log10" >&6; }
-if test "x$ac_cv_lib_m_log10" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
+$as_echo "$gcc_cv_math_func_log10" >&6; }
+  if test $gcc_cv_math_func_log10 = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_LOG10 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_LOG10 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l in -lm" >&5
-$as_echo_n "checking for log10l in -lm... " >&6; }
-if test "${ac_cv_lib_m_log10l+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
+$as_echo_n "checking for log10l... " >&6; }
+if test "${gcc_cv_math_func_log10l+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char log10l ();
+
+int (*ptr)() = (int (*)())log10l;
+
 int
 main ()
 {
-return log10l ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_log10l=yes
+  gcc_cv_math_func_log10l=yes
 else
-  ac_cv_lib_m_log10l=no
+  gcc_cv_math_func_log10l=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_log10l" >&5
-$as_echo "$ac_cv_lib_m_log10l" >&6; }
-if test "x$ac_cv_lib_m_log10l" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
+$as_echo "$gcc_cv_math_func_log10l" >&6; }
+  if test $gcc_cv_math_func_log10l = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_LOG10L 1
+_ACEOF
 
-$as_echo "#define HAVE_LOG10L 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f in -lm" >&5
-$as_echo_n "checking for clog10f in -lm... " >&6; }
-if test "${ac_cv_lib_m_clog10f+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
+$as_echo_n "checking for clog10f... " >&6; }
+if test "${gcc_cv_math_func_clog10f+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char clog10f ();
+
+int (*ptr)() = (int (*)())clog10f;
+
 int
 main ()
 {
-return clog10f ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_clog10f=yes
+  gcc_cv_math_func_clog10f=yes
 else
-  ac_cv_lib_m_clog10f=no
+  gcc_cv_math_func_clog10f=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_clog10f" >&5
-$as_echo "$ac_cv_lib_m_clog10f" >&6; }
-if test "x$ac_cv_lib_m_clog10f" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
+$as_echo "$gcc_cv_math_func_clog10f" >&6; }
+  if test $gcc_cv_math_func_clog10f = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CLOG10F 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_CLOG10F 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10 in -lm" >&5
-$as_echo_n "checking for clog10 in -lm... " >&6; }
-if test "${ac_cv_lib_m_clog10+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
+$as_echo_n "checking for clog10... " >&6; }
+if test "${gcc_cv_math_func_clog10+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char clog10 ();
+
+int (*ptr)() = (int (*)())clog10;
+
 int
 main ()
 {
-return clog10 ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_clog10=yes
+  gcc_cv_math_func_clog10=yes
 else
-  ac_cv_lib_m_clog10=no
+  gcc_cv_math_func_clog10=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_clog10" >&5
-$as_echo "$ac_cv_lib_m_clog10" >&6; }
-if test "x$ac_cv_lib_m_clog10" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
+$as_echo "$gcc_cv_math_func_clog10" >&6; }
+  if test $gcc_cv_math_func_clog10 = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CLOG10 1
+_ACEOF
 
-$as_echo "#define HAVE_CLOG10 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l in -lm" >&5
-$as_echo_n "checking for clog10l in -lm... " >&6; }
-if test "${ac_cv_lib_m_clog10l+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
+$as_echo_n "checking for clog10l... " >&6; }
+if test "${gcc_cv_math_func_clog10l+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char clog10l ();
+
+int (*ptr)() = (int (*)())clog10l;
+
 int
 main ()
 {
-return clog10l ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_clog10l=yes
+  gcc_cv_math_func_clog10l=yes
 else
-  ac_cv_lib_m_clog10l=no
+  gcc_cv_math_func_clog10l=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_clog10l" >&5
-$as_echo "$ac_cv_lib_m_clog10l" >&6; }
-if test "x$ac_cv_lib_m_clog10l" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
+$as_echo "$gcc_cv_math_func_clog10l" >&6; }
+  if test $gcc_cv_math_func_clog10l = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CLOG10L 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_CLOG10L 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf in -lm" >&5
-$as_echo_n "checking for nextafterf in -lm... " >&6; }
-if test "${ac_cv_lib_m_nextafterf+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
+$as_echo_n "checking for nextafterf... " >&6; }
+if test "${gcc_cv_math_func_nextafterf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char nextafterf ();
+
+int (*ptr)() = (int (*)())nextafterf;
+
 int
 main ()
 {
-return nextafterf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_nextafterf=yes
+  gcc_cv_math_func_nextafterf=yes
 else
-  ac_cv_lib_m_nextafterf=no
+  gcc_cv_math_func_nextafterf=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_nextafterf" >&5
-$as_echo "$ac_cv_lib_m_nextafterf" >&6; }
-if test "x$ac_cv_lib_m_nextafterf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
+$as_echo "$gcc_cv_math_func_nextafterf" >&6; }
+  if test $gcc_cv_math_func_nextafterf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_NEXTAFTERF 1
+_ACEOF
 
-$as_echo "#define HAVE_NEXTAFTERF 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter in -lm" >&5
-$as_echo_n "checking for nextafter in -lm... " >&6; }
-if test "${ac_cv_lib_m_nextafter+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
+$as_echo_n "checking for nextafter... " >&6; }
+if test "${gcc_cv_math_func_nextafter+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char nextafter ();
+
+int (*ptr)() = (int (*)())nextafter;
+
 int
 main ()
 {
-return nextafter ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_nextafter=yes
+  gcc_cv_math_func_nextafter=yes
 else
-  ac_cv_lib_m_nextafter=no
+  gcc_cv_math_func_nextafter=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_nextafter" >&5
-$as_echo "$ac_cv_lib_m_nextafter" >&6; }
-if test "x$ac_cv_lib_m_nextafter" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
+$as_echo "$gcc_cv_math_func_nextafter" >&6; }
+  if test $gcc_cv_math_func_nextafter = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_NEXTAFTER 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_NEXTAFTER 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl in -lm" >&5
-$as_echo_n "checking for nextafterl in -lm... " >&6; }
-if test "${ac_cv_lib_m_nextafterl+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
+$as_echo_n "checking for nextafterl... " >&6; }
+if test "${gcc_cv_math_func_nextafterl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char nextafterl ();
+
+int (*ptr)() = (int (*)())nextafterl;
+
 int
 main ()
 {
-return nextafterl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_nextafterl=yes
+  gcc_cv_math_func_nextafterl=yes
 else
-  ac_cv_lib_m_nextafterl=no
+  gcc_cv_math_func_nextafterl=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_nextafterl" >&5
-$as_echo "$ac_cv_lib_m_nextafterl" >&6; }
-if test "x$ac_cv_lib_m_nextafterl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
+$as_echo "$gcc_cv_math_func_nextafterl" >&6; }
+  if test $gcc_cv_math_func_nextafterl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_NEXTAFTERL 1
+_ACEOF
 
-$as_echo "#define HAVE_NEXTAFTERL 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf in -lm" >&5
-$as_echo_n "checking for powf in -lm... " >&6; }
-if test "${ac_cv_lib_m_powf+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
+$as_echo_n "checking for powf... " >&6; }
+if test "${gcc_cv_math_func_powf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char powf ();
+
+int (*ptr)() = (int (*)())powf;
+
 int
 main ()
 {
-return powf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_powf=yes
+  gcc_cv_math_func_powf=yes
 else
-  ac_cv_lib_m_powf=no
+  gcc_cv_math_func_powf=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_powf" >&5
-$as_echo "$ac_cv_lib_m_powf" >&6; }
-if test "x$ac_cv_lib_m_powf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
+$as_echo "$gcc_cv_math_func_powf" >&6; }
+  if test $gcc_cv_math_func_powf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_POWF 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_POWF 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
-$as_echo_n "checking for pow in -lm... " >&6; }
-if test "${ac_cv_lib_m_pow+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
+$as_echo_n "checking for pow... " >&6; }
+if test "${gcc_cv_math_func_pow+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char pow ();
+
+int (*ptr)() = (int (*)())pow;
+
 int
 main ()
 {
-return pow ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_pow=yes
+  gcc_cv_math_func_pow=yes
 else
-  ac_cv_lib_m_pow=no
+  gcc_cv_math_func_pow=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_pow" >&5
-$as_echo "$ac_cv_lib_m_pow" >&6; }
-if test "x$ac_cv_lib_m_pow" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
+$as_echo "$gcc_cv_math_func_pow" >&6; }
+  if test $gcc_cv_math_func_pow = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_POW 1
+_ACEOF
 
-$as_echo "#define HAVE_POW 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl in -lm" >&5
-$as_echo_n "checking for powl in -lm... " >&6; }
-if test "${ac_cv_lib_m_powl+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl" >&5
+$as_echo_n "checking for powl... " >&6; }
+if test "${gcc_cv_math_func_powl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char powl ();
+
+int (*ptr)() = (int (*)())powl;
+
 int
 main ()
 {
-return powl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_powl=yes
+  gcc_cv_math_func_powl=yes
 else
-  ac_cv_lib_m_powl=no
+  gcc_cv_math_func_powl=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_powl" >&5
-$as_echo "$ac_cv_lib_m_powl" >&6; }
-if test "x$ac_cv_lib_m_powl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powl" >&5
+$as_echo "$gcc_cv_math_func_powl" >&6; }
+  if test $gcc_cv_math_func_powl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_POWL 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_POWL 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf in -lm" >&5
-$as_echo_n "checking for cpowf in -lm... " >&6; }
-if test "${ac_cv_lib_m_cpowf+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
+$as_echo_n "checking for cpowf... " >&6; }
+if test "${gcc_cv_math_func_cpowf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char cpowf ();
+
+int (*ptr)() = (int (*)())cpowf;
+
 int
 main ()
 {
-return cpowf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_cpowf=yes
+  gcc_cv_math_func_cpowf=yes
 else
-  ac_cv_lib_m_cpowf=no
+  gcc_cv_math_func_cpowf=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_cpowf" >&5
-$as_echo "$ac_cv_lib_m_cpowf" >&6; }
-if test "x$ac_cv_lib_m_cpowf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
+$as_echo "$gcc_cv_math_func_cpowf" >&6; }
+  if test $gcc_cv_math_func_cpowf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CPOWF 1
+_ACEOF
 
-$as_echo "#define HAVE_CPOWF 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow in -lm" >&5
-$as_echo_n "checking for cpow in -lm... " >&6; }
-if test "${ac_cv_lib_m_cpow+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
+$as_echo_n "checking for cpow... " >&6; }
+if test "${gcc_cv_math_func_cpow+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char cpow ();
+
+int (*ptr)() = (int (*)())cpow;
+
 int
 main ()
 {
-return cpow ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_cpow=yes
+  gcc_cv_math_func_cpow=yes
 else
-  ac_cv_lib_m_cpow=no
+  gcc_cv_math_func_cpow=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_cpow" >&5
-$as_echo "$ac_cv_lib_m_cpow" >&6; }
-if test "x$ac_cv_lib_m_cpow" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
+$as_echo "$gcc_cv_math_func_cpow" >&6; }
+  if test $gcc_cv_math_func_cpow = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CPOW 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_CPOW 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl in -lm" >&5
-$as_echo_n "checking for cpowl in -lm... " >&6; }
-if test "${ac_cv_lib_m_cpowl+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
+$as_echo_n "checking for cpowl... " >&6; }
+if test "${gcc_cv_math_func_cpowl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char cpowl ();
+
+int (*ptr)() = (int (*)())cpowl;
+
 int
 main ()
 {
-return cpowl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_cpowl=yes
+  gcc_cv_math_func_cpowl=yes
 else
-  ac_cv_lib_m_cpowl=no
+  gcc_cv_math_func_cpowl=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_cpowl" >&5
-$as_echo "$ac_cv_lib_m_cpowl" >&6; }
-if test "x$ac_cv_lib_m_cpowl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
+$as_echo "$gcc_cv_math_func_cpowl" >&6; }
+  if test $gcc_cv_math_func_cpowl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CPOWL 1
+_ACEOF
 
-$as_echo "#define HAVE_CPOWL 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf in -lm" >&5
-$as_echo_n "checking for roundf in -lm... " >&6; }
-if test "${ac_cv_lib_m_roundf+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
+$as_echo_n "checking for roundf... " >&6; }
+if test "${gcc_cv_math_func_roundf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char roundf ();
+
+int (*ptr)() = (int (*)())roundf;
+
 int
 main ()
 {
-return roundf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_roundf=yes
+  gcc_cv_math_func_roundf=yes
 else
-  ac_cv_lib_m_roundf=no
+  gcc_cv_math_func_roundf=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_roundf" >&5
-$as_echo "$ac_cv_lib_m_roundf" >&6; }
-if test "x$ac_cv_lib_m_roundf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
+$as_echo "$gcc_cv_math_func_roundf" >&6; }
+  if test $gcc_cv_math_func_roundf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ROUNDF 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_ROUNDF 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for round in -lm" >&5
-$as_echo_n "checking for round in -lm... " >&6; }
-if test "${ac_cv_lib_m_round+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
+$as_echo_n "checking for round... " >&6; }
+if test "${gcc_cv_math_func_round+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char round ();
+
+int (*ptr)() = (int (*)())round;
+
 int
 main ()
 {
-return round ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_round=yes
+  gcc_cv_math_func_round=yes
 else
-  ac_cv_lib_m_round=no
+  gcc_cv_math_func_round=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_round" >&5
-$as_echo "$ac_cv_lib_m_round" >&6; }
-if test "x$ac_cv_lib_m_round" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
+$as_echo "$gcc_cv_math_func_round" >&6; }
+  if test $gcc_cv_math_func_round = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ROUND 1
+_ACEOF
 
-$as_echo "#define HAVE_ROUND 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl in -lm" >&5
-$as_echo_n "checking for roundl in -lm... " >&6; }
-if test "${ac_cv_lib_m_roundl+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
+$as_echo_n "checking for roundl... " >&6; }
+if test "${gcc_cv_math_func_roundl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char roundl ();
+
+int (*ptr)() = (int (*)())roundl;
+
 int
 main ()
 {
-return roundl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_roundl=yes
+  gcc_cv_math_func_roundl=yes
 else
-  ac_cv_lib_m_roundl=no
+  gcc_cv_math_func_roundl=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_roundl" >&5
-$as_echo "$ac_cv_lib_m_roundl" >&6; }
-if test "x$ac_cv_lib_m_roundl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
+$as_echo "$gcc_cv_math_func_roundl" >&6; }
+  if test $gcc_cv_math_func_roundl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ROUNDL 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_ROUNDL 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf in -lm" >&5
-$as_echo_n "checking for lroundf in -lm... " >&6; }
-if test "${ac_cv_lib_m_lroundf+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
+$as_echo_n "checking for lroundf... " >&6; }
+if test "${gcc_cv_math_func_lroundf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char lroundf ();
+
+int (*ptr)() = (int (*)())lroundf;
+
 int
 main ()
 {
-return lroundf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_lroundf=yes
+  gcc_cv_math_func_lroundf=yes
 else
-  ac_cv_lib_m_lroundf=no
+  gcc_cv_math_func_lroundf=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_lroundf" >&5
-$as_echo "$ac_cv_lib_m_lroundf" >&6; }
-if test "x$ac_cv_lib_m_lroundf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
+$as_echo "$gcc_cv_math_func_lroundf" >&6; }
+  if test $gcc_cv_math_func_lroundf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_LROUNDF 1
+_ACEOF
 
-$as_echo "#define HAVE_LROUNDF 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround in -lm" >&5
-$as_echo_n "checking for lround in -lm... " >&6; }
-if test "${ac_cv_lib_m_lround+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
+$as_echo_n "checking for lround... " >&6; }
+if test "${gcc_cv_math_func_lround+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char lround ();
+
+int (*ptr)() = (int (*)())lround;
+
 int
 main ()
 {
-return lround ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_lround=yes
+  gcc_cv_math_func_lround=yes
 else
-  ac_cv_lib_m_lround=no
+  gcc_cv_math_func_lround=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_lround" >&5
-$as_echo "$ac_cv_lib_m_lround" >&6; }
-if test "x$ac_cv_lib_m_lround" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
+$as_echo "$gcc_cv_math_func_lround" >&6; }
+  if test $gcc_cv_math_func_lround = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_LROUND 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_LROUND 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl in -lm" >&5
-$as_echo_n "checking for lroundl in -lm... " >&6; }
-if test "${ac_cv_lib_m_lroundl+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
+$as_echo_n "checking for lroundl... " >&6; }
+if test "${gcc_cv_math_func_lroundl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char lroundl ();
+
+int (*ptr)() = (int (*)())lroundl;
+
 int
 main ()
 {
-return lroundl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_lroundl=yes
+  gcc_cv_math_func_lroundl=yes
 else
-  ac_cv_lib_m_lroundl=no
+  gcc_cv_math_func_lroundl=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_lroundl" >&5
-$as_echo "$ac_cv_lib_m_lroundl" >&6; }
-if test "x$ac_cv_lib_m_lroundl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
+$as_echo "$gcc_cv_math_func_lroundl" >&6; }
+  if test $gcc_cv_math_func_lroundl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_LROUNDL 1
+_ACEOF
 
-$as_echo "#define HAVE_LROUNDL 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf in -lm" >&5
-$as_echo_n "checking for llroundf in -lm... " >&6; }
-if test "${ac_cv_lib_m_llroundf+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
+$as_echo_n "checking for llroundf... " >&6; }
+if test "${gcc_cv_math_func_llroundf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char llroundf ();
+
+int (*ptr)() = (int (*)())llroundf;
+
 int
 main ()
 {
-return llroundf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_llroundf=yes
+  gcc_cv_math_func_llroundf=yes
 else
-  ac_cv_lib_m_llroundf=no
+  gcc_cv_math_func_llroundf=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_llroundf" >&5
-$as_echo "$ac_cv_lib_m_llroundf" >&6; }
-if test "x$ac_cv_lib_m_llroundf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
+$as_echo "$gcc_cv_math_func_llroundf" >&6; }
+  if test $gcc_cv_math_func_llroundf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_LLROUNDF 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_LLROUNDF 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround in -lm" >&5
-$as_echo_n "checking for llround in -lm... " >&6; }
-if test "${ac_cv_lib_m_llround+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
+$as_echo_n "checking for llround... " >&6; }
+if test "${gcc_cv_math_func_llround+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char llround ();
+
+int (*ptr)() = (int (*)())llround;
+
 int
 main ()
 {
-return llround ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_llround=yes
+  gcc_cv_math_func_llround=yes
 else
-  ac_cv_lib_m_llround=no
+  gcc_cv_math_func_llround=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_llround" >&5
-$as_echo "$ac_cv_lib_m_llround" >&6; }
-if test "x$ac_cv_lib_m_llround" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
+$as_echo "$gcc_cv_math_func_llround" >&6; }
+  if test $gcc_cv_math_func_llround = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_LLROUND 1
+_ACEOF
 
-$as_echo "#define HAVE_LLROUND 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl in -lm" >&5
-$as_echo_n "checking for llroundl in -lm... " >&6; }
-if test "${ac_cv_lib_m_llroundl+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
+$as_echo_n "checking for llroundl... " >&6; }
+if test "${gcc_cv_math_func_llroundl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char llroundl ();
+
+int (*ptr)() = (int (*)())llroundl;
+
 int
 main ()
 {
-return llroundl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_llroundl=yes
+  gcc_cv_math_func_llroundl=yes
 else
-  ac_cv_lib_m_llroundl=no
+  gcc_cv_math_func_llroundl=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_llroundl" >&5
-$as_echo "$ac_cv_lib_m_llroundl" >&6; }
-if test "x$ac_cv_lib_m_llroundl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
+$as_echo "$gcc_cv_math_func_llroundl" >&6; }
+  if test $gcc_cv_math_func_llroundl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_LLROUNDL 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_LLROUNDL 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf in -lm" >&5
-$as_echo_n "checking for scalbnf in -lm... " >&6; }
-if test "${ac_cv_lib_m_scalbnf+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
+$as_echo_n "checking for scalbnf... " >&6; }
+if test "${gcc_cv_math_func_scalbnf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char scalbnf ();
+
+int (*ptr)() = (int (*)())scalbnf;
+
 int
 main ()
 {
-return scalbnf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_scalbnf=yes
+  gcc_cv_math_func_scalbnf=yes
 else
-  ac_cv_lib_m_scalbnf=no
+  gcc_cv_math_func_scalbnf=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_scalbnf" >&5
-$as_echo "$ac_cv_lib_m_scalbnf" >&6; }
-if test "x$ac_cv_lib_m_scalbnf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
+$as_echo "$gcc_cv_math_func_scalbnf" >&6; }
+  if test $gcc_cv_math_func_scalbnf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_SCALBNF 1
+_ACEOF
 
-$as_echo "#define HAVE_SCALBNF 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn in -lm" >&5
-$as_echo_n "checking for scalbn in -lm... " >&6; }
-if test "${ac_cv_lib_m_scalbn+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
+$as_echo_n "checking for scalbn... " >&6; }
+if test "${gcc_cv_math_func_scalbn+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char scalbn ();
+
+int (*ptr)() = (int (*)())scalbn;
+
 int
 main ()
 {
-return scalbn ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_scalbn=yes
+  gcc_cv_math_func_scalbn=yes
 else
-  ac_cv_lib_m_scalbn=no
+  gcc_cv_math_func_scalbn=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_scalbn" >&5
-$as_echo "$ac_cv_lib_m_scalbn" >&6; }
-if test "x$ac_cv_lib_m_scalbn" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
+$as_echo "$gcc_cv_math_func_scalbn" >&6; }
+  if test $gcc_cv_math_func_scalbn = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_SCALBN 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_SCALBN 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl in -lm" >&5
-$as_echo_n "checking for scalbnl in -lm... " >&6; }
-if test "${ac_cv_lib_m_scalbnl+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
+$as_echo_n "checking for scalbnl... " >&6; }
+if test "${gcc_cv_math_func_scalbnl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char scalbnl ();
+
+int (*ptr)() = (int (*)())scalbnl;
+
 int
 main ()
 {
-return scalbnl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_scalbnl=yes
+  gcc_cv_math_func_scalbnl=yes
 else
-  ac_cv_lib_m_scalbnl=no
+  gcc_cv_math_func_scalbnl=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_scalbnl" >&5
-$as_echo "$ac_cv_lib_m_scalbnl" >&6; }
-if test "x$ac_cv_lib_m_scalbnl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
+$as_echo "$gcc_cv_math_func_scalbnl" >&6; }
+  if test $gcc_cv_math_func_scalbnl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_SCALBNL 1
+_ACEOF
 
-$as_echo "#define HAVE_SCALBNL 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf in -lm" >&5
-$as_echo_n "checking for sinf in -lm... " >&6; }
-if test "${ac_cv_lib_m_sinf+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
+$as_echo_n "checking for sinf... " >&6; }
+if test "${gcc_cv_math_func_sinf+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
+  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"
+
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char sinf ();
+
+int (*ptr)() = (int (*)())sinf;
+
 int
 main ()
 {
-return sinf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_sinf=yes
+  gcc_cv_math_func_sinf=yes
 else
-  ac_cv_lib_m_sinf=no
+  gcc_cv_math_func_sinf=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_sinf" >&5
-$as_echo "$ac_cv_lib_m_sinf" >&6; }
-if test "x$ac_cv_lib_m_sinf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
+$as_echo "$gcc_cv_math_func_sinf" >&6; }
+  if test $gcc_cv_math_func_sinf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_SINF 1
+_ACEOF
 
-$as_echo "#define HAVE_SINF 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
-$as_echo_n "checking for sin in -lm... " >&6; }
-if test "${ac_cv_lib_m_sin+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
+$as_echo_n "checking for sin... " >&6; }
+if test "${gcc_cv_math_func_sin+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
 #endif
-char sin ();
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+int (*ptr)() = (int (*)())sin;
+
 int
 main ()
 {
-return sin ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_sin=yes
+  gcc_cv_math_func_sin=yes
 else
-  ac_cv_lib_m_sin=no
+  gcc_cv_math_func_sin=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_sin" >&5
-$as_echo "$ac_cv_lib_m_sin" >&6; }
-if test "x$ac_cv_lib_m_sin" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
+$as_echo "$gcc_cv_math_func_sin" >&6; }
+  if test $gcc_cv_math_func_sin = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_SIN 1
+_ACEOF
 
-$as_echo "#define HAVE_SIN 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl in -lm" >&5
-$as_echo_n "checking for sinl in -lm... " >&6; }
-if test "${ac_cv_lib_m_sinl+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
+$as_echo_n "checking for sinl... " >&6; }
+if test "${gcc_cv_math_func_sinl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char sinl ();
+
+int (*ptr)() = (int (*)())sinl;
+
 int
 main ()
 {
-return sinl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_sinl=yes
+  gcc_cv_math_func_sinl=yes
 else
-  ac_cv_lib_m_sinl=no
+  gcc_cv_math_func_sinl=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_sinl" >&5
-$as_echo "$ac_cv_lib_m_sinl" >&6; }
-if test "x$ac_cv_lib_m_sinl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
+$as_echo "$gcc_cv_math_func_sinl" >&6; }
+  if test $gcc_cv_math_func_sinl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_SINL 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_SINL 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf in -lm" >&5
-$as_echo_n "checking for csinf in -lm... " >&6; }
-if test "${ac_cv_lib_m_csinf+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
+$as_echo_n "checking for csinf... " >&6; }
+if test "${gcc_cv_math_func_csinf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char csinf ();
+
+int (*ptr)() = (int (*)())csinf;
+
 int
 main ()
 {
-return csinf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_csinf=yes
+  gcc_cv_math_func_csinf=yes
 else
-  ac_cv_lib_m_csinf=no
+  gcc_cv_math_func_csinf=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_csinf" >&5
-$as_echo "$ac_cv_lib_m_csinf" >&6; }
-if test "x$ac_cv_lib_m_csinf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
+$as_echo "$gcc_cv_math_func_csinf" >&6; }
+  if test $gcc_cv_math_func_csinf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CSINF 1
+_ACEOF
 
-$as_echo "#define HAVE_CSINF 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin in -lm" >&5
-$as_echo_n "checking for csin in -lm... " >&6; }
-if test "${ac_cv_lib_m_csin+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
+$as_echo_n "checking for csin... " >&6; }
+if test "${gcc_cv_math_func_csin+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char csin ();
+
+int (*ptr)() = (int (*)())csin;
+
 int
 main ()
 {
-return csin ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_csin=yes
+  gcc_cv_math_func_csin=yes
 else
-  ac_cv_lib_m_csin=no
+  gcc_cv_math_func_csin=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_csin" >&5
-$as_echo "$ac_cv_lib_m_csin" >&6; }
-if test "x$ac_cv_lib_m_csin" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
+$as_echo "$gcc_cv_math_func_csin" >&6; }
+  if test $gcc_cv_math_func_csin = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CSIN 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_CSIN 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl in -lm" >&5
-$as_echo_n "checking for csinl in -lm... " >&6; }
-if test "${ac_cv_lib_m_csinl+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
+$as_echo_n "checking for csinl... " >&6; }
+if test "${gcc_cv_math_func_csinl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char csinl ();
+
+int (*ptr)() = (int (*)())csinl;
+
 int
 main ()
 {
-return csinl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_csinl=yes
+  gcc_cv_math_func_csinl=yes
 else
-  ac_cv_lib_m_csinl=no
+  gcc_cv_math_func_csinl=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_csinl" >&5
-$as_echo "$ac_cv_lib_m_csinl" >&6; }
-if test "x$ac_cv_lib_m_csinl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
+$as_echo "$gcc_cv_math_func_csinl" >&6; }
+  if test $gcc_cv_math_func_csinl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CSINL 1
+_ACEOF
 
-$as_echo "#define HAVE_CSINL 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf in -lm" >&5
-$as_echo_n "checking for sinhf in -lm... " >&6; }
-if test "${ac_cv_lib_m_sinhf+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
+$as_echo_n "checking for sinhf... " >&6; }
+if test "${gcc_cv_math_func_sinhf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char sinhf ();
+
+int (*ptr)() = (int (*)())sinhf;
+
 int
 main ()
 {
-return sinhf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_sinhf=yes
+  gcc_cv_math_func_sinhf=yes
 else
-  ac_cv_lib_m_sinhf=no
+  gcc_cv_math_func_sinhf=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_sinhf" >&5
-$as_echo "$ac_cv_lib_m_sinhf" >&6; }
-if test "x$ac_cv_lib_m_sinhf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
+$as_echo "$gcc_cv_math_func_sinhf" >&6; }
+  if test $gcc_cv_math_func_sinhf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_SINHF 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_SINHF 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh in -lm" >&5
-$as_echo_n "checking for sinh in -lm... " >&6; }
-if test "${ac_cv_lib_m_sinh+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
+$as_echo_n "checking for sinh... " >&6; }
+if test "${gcc_cv_math_func_sinh+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char sinh ();
+
+int (*ptr)() = (int (*)())sinh;
+
 int
 main ()
 {
-return sinh ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_sinh=yes
+  gcc_cv_math_func_sinh=yes
 else
-  ac_cv_lib_m_sinh=no
+  gcc_cv_math_func_sinh=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_sinh" >&5
-$as_echo "$ac_cv_lib_m_sinh" >&6; }
-if test "x$ac_cv_lib_m_sinh" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
+$as_echo "$gcc_cv_math_func_sinh" >&6; }
+  if test $gcc_cv_math_func_sinh = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_SINH 1
+_ACEOF
 
-$as_echo "#define HAVE_SINH 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl in -lm" >&5
-$as_echo_n "checking for sinhl in -lm... " >&6; }
-if test "${ac_cv_lib_m_sinhl+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
+$as_echo_n "checking for sinhl... " >&6; }
+if test "${gcc_cv_math_func_sinhl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char sinhl ();
+
+int (*ptr)() = (int (*)())sinhl;
+
 int
 main ()
 {
-return sinhl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_sinhl=yes
+  gcc_cv_math_func_sinhl=yes
 else
-  ac_cv_lib_m_sinhl=no
+  gcc_cv_math_func_sinhl=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_sinhl" >&5
-$as_echo "$ac_cv_lib_m_sinhl" >&6; }
-if test "x$ac_cv_lib_m_sinhl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
+$as_echo "$gcc_cv_math_func_sinhl" >&6; }
+  if test $gcc_cv_math_func_sinhl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_SINHL 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_SINHL 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf in -lm" >&5
-$as_echo_n "checking for csinhf in -lm... " >&6; }
-if test "${ac_cv_lib_m_csinhf+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
+$as_echo_n "checking for csinhf... " >&6; }
+if test "${gcc_cv_math_func_csinhf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char csinhf ();
+
+int (*ptr)() = (int (*)())csinhf;
+
 int
 main ()
 {
-return csinhf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_csinhf=yes
+  gcc_cv_math_func_csinhf=yes
 else
-  ac_cv_lib_m_csinhf=no
+  gcc_cv_math_func_csinhf=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_csinhf" >&5
-$as_echo "$ac_cv_lib_m_csinhf" >&6; }
-if test "x$ac_cv_lib_m_csinhf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
+$as_echo "$gcc_cv_math_func_csinhf" >&6; }
+  if test $gcc_cv_math_func_csinhf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CSINHF 1
+_ACEOF
 
-$as_echo "#define HAVE_CSINHF 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh in -lm" >&5
-$as_echo_n "checking for csinh in -lm... " >&6; }
-if test "${ac_cv_lib_m_csinh+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
+$as_echo_n "checking for csinh... " >&6; }
+if test "${gcc_cv_math_func_csinh+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char csinh ();
+
+int (*ptr)() = (int (*)())csinh;
+
 int
 main ()
 {
-return csinh ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_csinh=yes
+  gcc_cv_math_func_csinh=yes
 else
-  ac_cv_lib_m_csinh=no
+  gcc_cv_math_func_csinh=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_csinh" >&5
-$as_echo "$ac_cv_lib_m_csinh" >&6; }
-if test "x$ac_cv_lib_m_csinh" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
+$as_echo "$gcc_cv_math_func_csinh" >&6; }
+  if test $gcc_cv_math_func_csinh = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CSINH 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_CSINH 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl in -lm" >&5
-$as_echo_n "checking for csinhl in -lm... " >&6; }
-if test "${ac_cv_lib_m_csinhl+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
+$as_echo_n "checking for csinhl... " >&6; }
+if test "${gcc_cv_math_func_csinhl+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
+  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"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char csinhl ();
+
+int (*ptr)() = (int (*)())csinhl;
+
 int
 main ()
 {
-return csinhl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_csinhl=yes
+  gcc_cv_math_func_csinhl=yes
 else
-  ac_cv_lib_m_csinhl=no
+  gcc_cv_math_func_csinhl=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_csinhl" >&5
-$as_echo "$ac_cv_lib_m_csinhl" >&6; }
-if test "x$ac_cv_lib_m_csinhl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
+$as_echo "$gcc_cv_math_func_csinhl" >&6; }
+  if test $gcc_cv_math_func_csinhl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CSINHL 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_CSINHL 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf in -lm" >&5
-$as_echo_n "checking for sqrtf in -lm... " >&6; }
-if test "${ac_cv_lib_m_sqrtf+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
+$as_echo_n "checking for sqrtf... " >&6; }
+if test "${gcc_cv_math_func_sqrtf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char sqrtf ();
+
+int (*ptr)() = (int (*)())sqrtf;
+
 int
 main ()
 {
-return sqrtf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_sqrtf=yes
+  gcc_cv_math_func_sqrtf=yes
 else
-  ac_cv_lib_m_sqrtf=no
+  gcc_cv_math_func_sqrtf=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_sqrtf" >&5
-$as_echo "$ac_cv_lib_m_sqrtf" >&6; }
-if test "x$ac_cv_lib_m_sqrtf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
+$as_echo "$gcc_cv_math_func_sqrtf" >&6; }
+  if test $gcc_cv_math_func_sqrtf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_SQRTF 1
+_ACEOF
 
-$as_echo "#define HAVE_SQRTF 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
-$as_echo_n "checking for sqrt in -lm... " >&6; }
-if test "${ac_cv_lib_m_sqrt+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
+$as_echo_n "checking for sqrt... " >&6; }
+if test "${gcc_cv_math_func_sqrt+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char sqrt ();
+
+int (*ptr)() = (int (*)())sqrt;
+
 int
 main ()
 {
-return sqrt ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_sqrt=yes
+  gcc_cv_math_func_sqrt=yes
 else
-  ac_cv_lib_m_sqrt=no
+  gcc_cv_math_func_sqrt=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_sqrt" >&5
-$as_echo "$ac_cv_lib_m_sqrt" >&6; }
-if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
+$as_echo "$gcc_cv_math_func_sqrt" >&6; }
+  if test $gcc_cv_math_func_sqrt = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_SQRT 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_SQRT 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5
-$as_echo_n "checking for sqrtl in -lm... " >&6; }
-if test "${ac_cv_lib_m_sqrtl+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
+$as_echo_n "checking for sqrtl... " >&6; }
+if test "${gcc_cv_math_func_sqrtl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char sqrtl ();
+
+int (*ptr)() = (int (*)())sqrtl;
+
 int
 main ()
 {
-return sqrtl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_sqrtl=yes
+  gcc_cv_math_func_sqrtl=yes
 else
-  ac_cv_lib_m_sqrtl=no
+  gcc_cv_math_func_sqrtl=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_sqrtl" >&5
-$as_echo "$ac_cv_lib_m_sqrtl" >&6; }
-if test "x$ac_cv_lib_m_sqrtl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
+$as_echo "$gcc_cv_math_func_sqrtl" >&6; }
+  if test $gcc_cv_math_func_sqrtl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_SQRTL 1
+_ACEOF
 
-$as_echo "#define HAVE_SQRTL 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf in -lm" >&5
-$as_echo_n "checking for csqrtf in -lm... " >&6; }
-if test "${ac_cv_lib_m_csqrtf+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
+$as_echo_n "checking for csqrtf... " >&6; }
+if test "${gcc_cv_math_func_csqrtf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char csqrtf ();
+
+int (*ptr)() = (int (*)())csqrtf;
+
 int
 main ()
 {
-return csqrtf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_csqrtf=yes
+  gcc_cv_math_func_csqrtf=yes
 else
-  ac_cv_lib_m_csqrtf=no
+  gcc_cv_math_func_csqrtf=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_csqrtf" >&5
-$as_echo "$ac_cv_lib_m_csqrtf" >&6; }
-if test "x$ac_cv_lib_m_csqrtf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
+$as_echo "$gcc_cv_math_func_csqrtf" >&6; }
+  if test $gcc_cv_math_func_csqrtf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CSQRTF 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_CSQRTF 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt in -lm" >&5
-$as_echo_n "checking for csqrt in -lm... " >&6; }
-if test "${ac_cv_lib_m_csqrt+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
+$as_echo_n "checking for csqrt... " >&6; }
+if test "${gcc_cv_math_func_csqrt+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char csqrt ();
+
+int (*ptr)() = (int (*)())csqrt;
+
 int
 main ()
 {
-return csqrt ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_csqrt=yes
+  gcc_cv_math_func_csqrt=yes
 else
-  ac_cv_lib_m_csqrt=no
+  gcc_cv_math_func_csqrt=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_csqrt" >&5
-$as_echo "$ac_cv_lib_m_csqrt" >&6; }
-if test "x$ac_cv_lib_m_csqrt" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
+$as_echo "$gcc_cv_math_func_csqrt" >&6; }
+  if test $gcc_cv_math_func_csqrt = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CSQRT 1
+_ACEOF
 
-$as_echo "#define HAVE_CSQRT 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl in -lm" >&5
-$as_echo_n "checking for csqrtl in -lm... " >&6; }
-if test "${ac_cv_lib_m_csqrtl+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
+$as_echo_n "checking for csqrtl... " >&6; }
+if test "${gcc_cv_math_func_csqrtl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char csqrtl ();
+
+int (*ptr)() = (int (*)())csqrtl;
+
 int
 main ()
 {
-return csqrtl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_csqrtl=yes
+  gcc_cv_math_func_csqrtl=yes
 else
-  ac_cv_lib_m_csqrtl=no
+  gcc_cv_math_func_csqrtl=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_csqrtl" >&5
-$as_echo "$ac_cv_lib_m_csqrtl" >&6; }
-if test "x$ac_cv_lib_m_csqrtl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
+$as_echo "$gcc_cv_math_func_csqrtl" >&6; }
+  if test $gcc_cv_math_func_csqrtl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CSQRTL 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_CSQRTL 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf in -lm" >&5
-$as_echo_n "checking for tanf in -lm... " >&6; }
-if test "${ac_cv_lib_m_tanf+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
+$as_echo_n "checking for tanf... " >&6; }
+if test "${gcc_cv_math_func_tanf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char tanf ();
+
+int (*ptr)() = (int (*)())tanf;
+
 int
 main ()
 {
-return tanf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_tanf=yes
+  gcc_cv_math_func_tanf=yes
 else
-  ac_cv_lib_m_tanf=no
+  gcc_cv_math_func_tanf=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_tanf" >&5
-$as_echo "$ac_cv_lib_m_tanf" >&6; }
-if test "x$ac_cv_lib_m_tanf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
+$as_echo "$gcc_cv_math_func_tanf" >&6; }
+  if test $gcc_cv_math_func_tanf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_TANF 1
+_ACEOF
 
-$as_echo "#define HAVE_TANF 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan in -lm" >&5
-$as_echo_n "checking for tan in -lm... " >&6; }
-if test "${ac_cv_lib_m_tan+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
+$as_echo_n "checking for tan... " >&6; }
+if test "${gcc_cv_math_func_tan+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char tan ();
+
+int (*ptr)() = (int (*)())tan;
+
 int
 main ()
 {
-return tan ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_tan=yes
+  gcc_cv_math_func_tan=yes
 else
-  ac_cv_lib_m_tan=no
+  gcc_cv_math_func_tan=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_tan" >&5
-$as_echo "$ac_cv_lib_m_tan" >&6; }
-if test "x$ac_cv_lib_m_tan" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
+$as_echo "$gcc_cv_math_func_tan" >&6; }
+  if test $gcc_cv_math_func_tan = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_TAN 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_TAN 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl in -lm" >&5
-$as_echo_n "checking for tanl in -lm... " >&6; }
-if test "${ac_cv_lib_m_tanl+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
+$as_echo_n "checking for tanl... " >&6; }
+if test "${gcc_cv_math_func_tanl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char tanl ();
+
+int (*ptr)() = (int (*)())tanl;
+
 int
 main ()
 {
-return tanl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_tanl=yes
+  gcc_cv_math_func_tanl=yes
 else
-  ac_cv_lib_m_tanl=no
+  gcc_cv_math_func_tanl=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_tanl" >&5
-$as_echo "$ac_cv_lib_m_tanl" >&6; }
-if test "x$ac_cv_lib_m_tanl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
+$as_echo "$gcc_cv_math_func_tanl" >&6; }
+  if test $gcc_cv_math_func_tanl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_TANL 1
+_ACEOF
 
-$as_echo "#define HAVE_TANL 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf in -lm" >&5
-$as_echo_n "checking for ctanf in -lm... " >&6; }
-if test "${ac_cv_lib_m_ctanf+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
+$as_echo_n "checking for ctanf... " >&6; }
+if test "${gcc_cv_math_func_ctanf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char ctanf ();
+
+int (*ptr)() = (int (*)())ctanf;
+
 int
 main ()
 {
-return ctanf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_ctanf=yes
+  gcc_cv_math_func_ctanf=yes
 else
-  ac_cv_lib_m_ctanf=no
+  gcc_cv_math_func_ctanf=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_ctanf" >&5
-$as_echo "$ac_cv_lib_m_ctanf" >&6; }
-if test "x$ac_cv_lib_m_ctanf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
+$as_echo "$gcc_cv_math_func_ctanf" >&6; }
+  if test $gcc_cv_math_func_ctanf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CTANF 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_CTANF 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan in -lm" >&5
-$as_echo_n "checking for ctan in -lm... " >&6; }
-if test "${ac_cv_lib_m_ctan+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
+$as_echo_n "checking for ctan... " >&6; }
+if test "${gcc_cv_math_func_ctan+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char ctan ();
+
+int (*ptr)() = (int (*)())ctan;
+
 int
 main ()
 {
-return ctan ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_ctan=yes
+  gcc_cv_math_func_ctan=yes
 else
-  ac_cv_lib_m_ctan=no
+  gcc_cv_math_func_ctan=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_ctan" >&5
-$as_echo "$ac_cv_lib_m_ctan" >&6; }
-if test "x$ac_cv_lib_m_ctan" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
+$as_echo "$gcc_cv_math_func_ctan" >&6; }
+  if test $gcc_cv_math_func_ctan = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CTAN 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_CTAN 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl in -lm" >&5
-$as_echo_n "checking for ctanl in -lm... " >&6; }
-if test "${ac_cv_lib_m_ctanl+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
+$as_echo_n "checking for ctanl... " >&6; }
+if test "${gcc_cv_math_func_ctanl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char ctanl ();
+
+int (*ptr)() = (int (*)())ctanl;
+
 int
 main ()
 {
-return ctanl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_ctanl=yes
+  gcc_cv_math_func_ctanl=yes
 else
-  ac_cv_lib_m_ctanl=no
+  gcc_cv_math_func_ctanl=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_ctanl" >&5
-$as_echo "$ac_cv_lib_m_ctanl" >&6; }
-if test "x$ac_cv_lib_m_ctanl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
+$as_echo "$gcc_cv_math_func_ctanl" >&6; }
+  if test $gcc_cv_math_func_ctanl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CTANL 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_CTANL 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf in -lm" >&5
-$as_echo_n "checking for tanhf in -lm... " >&6; }
-if test "${ac_cv_lib_m_tanhf+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
+$as_echo_n "checking for tanhf... " >&6; }
+if test "${gcc_cv_math_func_tanhf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char tanhf ();
+
+int (*ptr)() = (int (*)())tanhf;
+
 int
 main ()
 {
-return tanhf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_tanhf=yes
+  gcc_cv_math_func_tanhf=yes
 else
-  ac_cv_lib_m_tanhf=no
+  gcc_cv_math_func_tanhf=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_tanhf" >&5
-$as_echo "$ac_cv_lib_m_tanhf" >&6; }
-if test "x$ac_cv_lib_m_tanhf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
+$as_echo "$gcc_cv_math_func_tanhf" >&6; }
+  if test $gcc_cv_math_func_tanhf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_TANHF 1
+_ACEOF
 
-$as_echo "#define HAVE_TANHF 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh in -lm" >&5
-$as_echo_n "checking for tanh in -lm... " >&6; }
-if test "${ac_cv_lib_m_tanh+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
+$as_echo_n "checking for tanh... " >&6; }
+if test "${gcc_cv_math_func_tanh+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char tanh ();
+
+int (*ptr)() = (int (*)())tanh;
+
 int
 main ()
 {
-return tanh ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_tanh=yes
+  gcc_cv_math_func_tanh=yes
 else
-  ac_cv_lib_m_tanh=no
+  gcc_cv_math_func_tanh=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_tanh" >&5
-$as_echo "$ac_cv_lib_m_tanh" >&6; }
-if test "x$ac_cv_lib_m_tanh" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
+$as_echo "$gcc_cv_math_func_tanh" >&6; }
+  if test $gcc_cv_math_func_tanh = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_TANH 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_TANH 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl in -lm" >&5
-$as_echo_n "checking for tanhl in -lm... " >&6; }
-if test "${ac_cv_lib_m_tanhl+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
+$as_echo_n "checking for tanhl... " >&6; }
+if test "${gcc_cv_math_func_tanhl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char tanhl ();
+
+int (*ptr)() = (int (*)())tanhl;
+
 int
 main ()
 {
-return tanhl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_tanhl=yes
+  gcc_cv_math_func_tanhl=yes
 else
-  ac_cv_lib_m_tanhl=no
+  gcc_cv_math_func_tanhl=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_tanhl" >&5
-$as_echo "$ac_cv_lib_m_tanhl" >&6; }
-if test "x$ac_cv_lib_m_tanhl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
+$as_echo "$gcc_cv_math_func_tanhl" >&6; }
+  if test $gcc_cv_math_func_tanhl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_TANHL 1
+_ACEOF
 
-$as_echo "#define HAVE_TANHL 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf in -lm" >&5
-$as_echo_n "checking for ctanhf in -lm... " >&6; }
-if test "${ac_cv_lib_m_ctanhf+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
+$as_echo_n "checking for ctanhf... " >&6; }
+if test "${gcc_cv_math_func_ctanhf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char ctanhf ();
+
+int (*ptr)() = (int (*)())ctanhf;
+
 int
 main ()
 {
-return ctanhf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_ctanhf=yes
+  gcc_cv_math_func_ctanhf=yes
 else
-  ac_cv_lib_m_ctanhf=no
+  gcc_cv_math_func_ctanhf=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_ctanhf" >&5
-$as_echo "$ac_cv_lib_m_ctanhf" >&6; }
-if test "x$ac_cv_lib_m_ctanhf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
+$as_echo "$gcc_cv_math_func_ctanhf" >&6; }
+  if test $gcc_cv_math_func_ctanhf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CTANHF 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_CTANHF 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh in -lm" >&5
-$as_echo_n "checking for ctanh in -lm... " >&6; }
-if test "${ac_cv_lib_m_ctanh+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
+$as_echo_n "checking for ctanh... " >&6; }
+if test "${gcc_cv_math_func_ctanh+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char ctanh ();
+
+int (*ptr)() = (int (*)())ctanh;
+
 int
 main ()
 {
-return ctanh ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_ctanh=yes
+  gcc_cv_math_func_ctanh=yes
 else
-  ac_cv_lib_m_ctanh=no
+  gcc_cv_math_func_ctanh=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_ctanh" >&5
-$as_echo "$ac_cv_lib_m_ctanh" >&6; }
-if test "x$ac_cv_lib_m_ctanh" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
+$as_echo "$gcc_cv_math_func_ctanh" >&6; }
+  if test $gcc_cv_math_func_ctanh = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CTANH 1
+_ACEOF
 
-$as_echo "#define HAVE_CTANH 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl in -lm" >&5
-$as_echo_n "checking for ctanhl in -lm... " >&6; }
-if test "${ac_cv_lib_m_ctanhl+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
+$as_echo_n "checking for ctanhl... " >&6; }
+if test "${gcc_cv_math_func_ctanhl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char ctanhl ();
+
+int (*ptr)() = (int (*)())ctanhl;
+
 int
 main ()
 {
-return ctanhl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_ctanhl=yes
+  gcc_cv_math_func_ctanhl=yes
 else
-  ac_cv_lib_m_ctanhl=no
+  gcc_cv_math_func_ctanhl=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_ctanhl" >&5
-$as_echo "$ac_cv_lib_m_ctanhl" >&6; }
-if test "x$ac_cv_lib_m_ctanhl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
+$as_echo "$gcc_cv_math_func_ctanhl" >&6; }
+  if test $gcc_cv_math_func_ctanhl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CTANHL 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_CTANHL 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf in -lm" >&5
-$as_echo_n "checking for truncf in -lm... " >&6; }
-if test "${ac_cv_lib_m_truncf+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
+$as_echo_n "checking for truncf... " >&6; }
+if test "${gcc_cv_math_func_truncf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char truncf ();
+
+int (*ptr)() = (int (*)())truncf;
+
 int
 main ()
 {
-return truncf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_truncf=yes
+  gcc_cv_math_func_truncf=yes
 else
-  ac_cv_lib_m_truncf=no
+  gcc_cv_math_func_truncf=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_truncf" >&5
-$as_echo "$ac_cv_lib_m_truncf" >&6; }
-if test "x$ac_cv_lib_m_truncf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
+$as_echo "$gcc_cv_math_func_truncf" >&6; }
+  if test $gcc_cv_math_func_truncf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_TRUNCF 1
+_ACEOF
 
-$as_echo "#define HAVE_TRUNCF 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc in -lm" >&5
-$as_echo_n "checking for trunc in -lm... " >&6; }
-if test "${ac_cv_lib_m_trunc+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
+$as_echo_n "checking for trunc... " >&6; }
+if test "${gcc_cv_math_func_trunc+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char trunc ();
+
+int (*ptr)() = (int (*)())trunc;
+
 int
 main ()
 {
-return trunc ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_trunc=yes
+  gcc_cv_math_func_trunc=yes
 else
-  ac_cv_lib_m_trunc=no
+  gcc_cv_math_func_trunc=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_trunc" >&5
-$as_echo "$ac_cv_lib_m_trunc" >&6; }
-if test "x$ac_cv_lib_m_trunc" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
+$as_echo "$gcc_cv_math_func_trunc" >&6; }
+  if test $gcc_cv_math_func_trunc = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_TRUNC 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_TRUNC 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl in -lm" >&5
-$as_echo_n "checking for truncl in -lm... " >&6; }
-if test "${ac_cv_lib_m_truncl+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
+$as_echo_n "checking for truncl... " >&6; }
+if test "${gcc_cv_math_func_truncl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char truncl ();
+
+int (*ptr)() = (int (*)())truncl;
+
 int
 main ()
 {
-return truncl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_truncl=yes
+  gcc_cv_math_func_truncl=yes
 else
-  ac_cv_lib_m_truncl=no
+  gcc_cv_math_func_truncl=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_truncl" >&5
-$as_echo "$ac_cv_lib_m_truncl" >&6; }
-if test "x$ac_cv_lib_m_truncl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
+$as_echo "$gcc_cv_math_func_truncl" >&6; }
+  if test $gcc_cv_math_func_truncl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_TRUNCL 1
+_ACEOF
 
-$as_echo "#define HAVE_TRUNCL 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff in -lm" >&5
-$as_echo_n "checking for erff in -lm... " >&6; }
-if test "${ac_cv_lib_m_erff+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
+$as_echo_n "checking for erff... " >&6; }
+if test "${gcc_cv_math_func_erff+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char erff ();
+
+int (*ptr)() = (int (*)())erff;
+
 int
 main ()
 {
-return erff ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_erff=yes
+  gcc_cv_math_func_erff=yes
 else
-  ac_cv_lib_m_erff=no
+  gcc_cv_math_func_erff=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_erff" >&5
-$as_echo "$ac_cv_lib_m_erff" >&6; }
-if test "x$ac_cv_lib_m_erff" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
+$as_echo "$gcc_cv_math_func_erff" >&6; }
+  if test $gcc_cv_math_func_erff = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ERFF 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_ERFF 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf in -lm" >&5
-$as_echo_n "checking for erf in -lm... " >&6; }
-if test "${ac_cv_lib_m_erf+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
+$as_echo_n "checking for erf... " >&6; }
+if test "${gcc_cv_math_func_erf+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
+  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"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char erf ();
+
+int (*ptr)() = (int (*)())erf;
+
 int
 main ()
 {
-return erf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_erf=yes
+  gcc_cv_math_func_erf=yes
 else
-  ac_cv_lib_m_erf=no
+  gcc_cv_math_func_erf=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_erf" >&5
-$as_echo "$ac_cv_lib_m_erf" >&6; }
-if test "x$ac_cv_lib_m_erf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
+$as_echo "$gcc_cv_math_func_erf" >&6; }
+  if test $gcc_cv_math_func_erf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ERF 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_ERF 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfl in -lm" >&5
-$as_echo_n "checking for erfl in -lm... " >&6; }
-if test "${ac_cv_lib_m_erfl+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfl" >&5
+$as_echo_n "checking for erfl... " >&6; }
+if test "${gcc_cv_math_func_erfl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char erfl ();
+
+int (*ptr)() = (int (*)())erfl;
+
 int
 main ()
 {
-return erfl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_erfl=yes
+  gcc_cv_math_func_erfl=yes
 else
-  ac_cv_lib_m_erfl=no
+  gcc_cv_math_func_erfl=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_erfl" >&5
-$as_echo "$ac_cv_lib_m_erfl" >&6; }
-if test "x$ac_cv_lib_m_erfl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfl" >&5
+$as_echo "$gcc_cv_math_func_erfl" >&6; }
+  if test $gcc_cv_math_func_erfl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ERFL 1
+_ACEOF
 
-$as_echo "#define HAVE_ERFL 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf in -lm" >&5
-$as_echo_n "checking for erfcf in -lm... " >&6; }
-if test "${ac_cv_lib_m_erfcf+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
+$as_echo_n "checking for erfcf... " >&6; }
+if test "${gcc_cv_math_func_erfcf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char erfcf ();
+
+int (*ptr)() = (int (*)())erfcf;
+
 int
 main ()
 {
-return erfcf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_erfcf=yes
+  gcc_cv_math_func_erfcf=yes
 else
-  ac_cv_lib_m_erfcf=no
+  gcc_cv_math_func_erfcf=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_erfcf" >&5
-$as_echo "$ac_cv_lib_m_erfcf" >&6; }
-if test "x$ac_cv_lib_m_erfcf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
+$as_echo "$gcc_cv_math_func_erfcf" >&6; }
+  if test $gcc_cv_math_func_erfcf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ERFCF 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_ERFCF 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc in -lm" >&5
-$as_echo_n "checking for erfc in -lm... " >&6; }
-if test "${ac_cv_lib_m_erfc+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
+$as_echo_n "checking for erfc... " >&6; }
+if test "${gcc_cv_math_func_erfc+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char erfc ();
+
+int (*ptr)() = (int (*)())erfc;
+
 int
 main ()
 {
-return erfc ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_erfc=yes
+  gcc_cv_math_func_erfc=yes
 else
-  ac_cv_lib_m_erfc=no
+  gcc_cv_math_func_erfc=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_erfc" >&5
-$as_echo "$ac_cv_lib_m_erfc" >&6; }
-if test "x$ac_cv_lib_m_erfc" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
+$as_echo "$gcc_cv_math_func_erfc" >&6; }
+  if test $gcc_cv_math_func_erfc = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ERFC 1
+_ACEOF
 
-$as_echo "#define HAVE_ERFC 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl in -lm" >&5
-$as_echo_n "checking for erfcl in -lm... " >&6; }
-if test "${ac_cv_lib_m_erfcl+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
+$as_echo_n "checking for erfcl... " >&6; }
+if test "${gcc_cv_math_func_erfcl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char erfcl ();
+
+int (*ptr)() = (int (*)())erfcl;
+
 int
 main ()
 {
-return erfcl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_erfcl=yes
+  gcc_cv_math_func_erfcl=yes
 else
-  ac_cv_lib_m_erfcl=no
+  gcc_cv_math_func_erfcl=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_erfcl" >&5
-$as_echo "$ac_cv_lib_m_erfcl" >&6; }
-if test "x$ac_cv_lib_m_erfcl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
+$as_echo "$gcc_cv_math_func_erfcl" >&6; }
+  if test $gcc_cv_math_func_erfcl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_ERFCL 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_ERFCL 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f in -lm" >&5
-$as_echo_n "checking for j0f in -lm... " >&6; }
-if test "${ac_cv_lib_m_j0f+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
+$as_echo_n "checking for j0f... " >&6; }
+if test "${gcc_cv_math_func_j0f+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char j0f ();
+
+int (*ptr)() = (int (*)())j0f;
+
 int
 main ()
 {
-return j0f ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_j0f=yes
+  gcc_cv_math_func_j0f=yes
 else
-  ac_cv_lib_m_j0f=no
+  gcc_cv_math_func_j0f=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_j0f" >&5
-$as_echo "$ac_cv_lib_m_j0f" >&6; }
-if test "x$ac_cv_lib_m_j0f" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
+$as_echo "$gcc_cv_math_func_j0f" >&6; }
+  if test $gcc_cv_math_func_j0f = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_J0F 1
+_ACEOF
 
-$as_echo "#define HAVE_J0F 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0 in -lm" >&5
-$as_echo_n "checking for j0 in -lm... " >&6; }
-if test "${ac_cv_lib_m_j0+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
+$as_echo_n "checking for j0... " >&6; }
+if test "${gcc_cv_math_func_j0+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char j0 ();
+
+int (*ptr)() = (int (*)())j0;
+
 int
 main ()
 {
-return j0 ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_j0=yes
+  gcc_cv_math_func_j0=yes
 else
-  ac_cv_lib_m_j0=no
+  gcc_cv_math_func_j0=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_j0" >&5
-$as_echo "$ac_cv_lib_m_j0" >&6; }
-if test "x$ac_cv_lib_m_j0" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
+$as_echo "$gcc_cv_math_func_j0" >&6; }
+  if test $gcc_cv_math_func_j0 = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_J0 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_J0 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0l in -lm" >&5
-$as_echo_n "checking for j0l in -lm... " >&6; }
-if test "${ac_cv_lib_m_j0l+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0l" >&5
+$as_echo_n "checking for j0l... " >&6; }
+if test "${gcc_cv_math_func_j0l+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char j0l ();
+
+int (*ptr)() = (int (*)())j0l;
+
 int
 main ()
 {
-return j0l ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_j0l=yes
+  gcc_cv_math_func_j0l=yes
 else
-  ac_cv_lib_m_j0l=no
+  gcc_cv_math_func_j0l=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_j0l" >&5
-$as_echo "$ac_cv_lib_m_j0l" >&6; }
-if test "x$ac_cv_lib_m_j0l" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0l" >&5
+$as_echo "$gcc_cv_math_func_j0l" >&6; }
+  if test $gcc_cv_math_func_j0l = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_J0L 1
+_ACEOF
 
-$as_echo "#define HAVE_J0L 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f in -lm" >&5
-$as_echo_n "checking for j1f in -lm... " >&6; }
-if test "${ac_cv_lib_m_j1f+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
+$as_echo_n "checking for j1f... " >&6; }
+if test "${gcc_cv_math_func_j1f+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char j1f ();
+
+int (*ptr)() = (int (*)())j1f;
+
 int
 main ()
 {
-return j1f ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_j1f=yes
+  gcc_cv_math_func_j1f=yes
 else
-  ac_cv_lib_m_j1f=no
+  gcc_cv_math_func_j1f=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_j1f" >&5
-$as_echo "$ac_cv_lib_m_j1f" >&6; }
-if test "x$ac_cv_lib_m_j1f" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
+$as_echo "$gcc_cv_math_func_j1f" >&6; }
+  if test $gcc_cv_math_func_j1f = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_J1F 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_J1F 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1 in -lm" >&5
-$as_echo_n "checking for j1 in -lm... " >&6; }
-if test "${ac_cv_lib_m_j1+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
+$as_echo_n "checking for j1... " >&6; }
+if test "${gcc_cv_math_func_j1+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char j1 ();
+
+int (*ptr)() = (int (*)())j1;
+
 int
 main ()
 {
-return j1 ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_j1=yes
+  gcc_cv_math_func_j1=yes
 else
-  ac_cv_lib_m_j1=no
+  gcc_cv_math_func_j1=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_j1" >&5
-$as_echo "$ac_cv_lib_m_j1" >&6; }
-if test "x$ac_cv_lib_m_j1" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
+$as_echo "$gcc_cv_math_func_j1" >&6; }
+  if test $gcc_cv_math_func_j1 = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_J1 1
+_ACEOF
 
-$as_echo "#define HAVE_J1 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1l in -lm" >&5
-$as_echo_n "checking for j1l in -lm... " >&6; }
-if test "${ac_cv_lib_m_j1l+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1l" >&5
+$as_echo_n "checking for j1l... " >&6; }
+if test "${gcc_cv_math_func_j1l+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char j1l ();
+
+int (*ptr)() = (int (*)())j1l;
+
 int
 main ()
 {
-return j1l ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_j1l=yes
+  gcc_cv_math_func_j1l=yes
 else
-  ac_cv_lib_m_j1l=no
+  gcc_cv_math_func_j1l=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_j1l" >&5
-$as_echo "$ac_cv_lib_m_j1l" >&6; }
-if test "x$ac_cv_lib_m_j1l" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1l" >&5
+$as_echo "$gcc_cv_math_func_j1l" >&6; }
+  if test $gcc_cv_math_func_j1l = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_J1L 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_J1L 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf in -lm" >&5
-$as_echo_n "checking for jnf in -lm... " >&6; }
-if test "${ac_cv_lib_m_jnf+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
+$as_echo_n "checking for jnf... " >&6; }
+if test "${gcc_cv_math_func_jnf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char jnf ();
+
+int (*ptr)() = (int (*)())jnf;
+
 int
 main ()
 {
-return jnf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_jnf=yes
+  gcc_cv_math_func_jnf=yes
 else
-  ac_cv_lib_m_jnf=no
+  gcc_cv_math_func_jnf=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_jnf" >&5
-$as_echo "$ac_cv_lib_m_jnf" >&6; }
-if test "x$ac_cv_lib_m_jnf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
+$as_echo "$gcc_cv_math_func_jnf" >&6; }
+  if test $gcc_cv_math_func_jnf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_JNF 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_JNF 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn in -lm" >&5
-$as_echo_n "checking for jn in -lm... " >&6; }
-if test "${ac_cv_lib_m_jn+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
+$as_echo_n "checking for jn... " >&6; }
+if test "${gcc_cv_math_func_jn+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char jn ();
+
+int (*ptr)() = (int (*)())jn;
+
 int
 main ()
 {
-return jn ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_jn=yes
+  gcc_cv_math_func_jn=yes
 else
-  ac_cv_lib_m_jn=no
+  gcc_cv_math_func_jn=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_jn" >&5
-$as_echo "$ac_cv_lib_m_jn" >&6; }
-if test "x$ac_cv_lib_m_jn" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
+$as_echo "$gcc_cv_math_func_jn" >&6; }
+  if test $gcc_cv_math_func_jn = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_JN 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_JN 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl in -lm" >&5
-$as_echo_n "checking for jnl in -lm... " >&6; }
-if test "${ac_cv_lib_m_jnl+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
+$as_echo_n "checking for jnl... " >&6; }
+if test "${gcc_cv_math_func_jnl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char jnl ();
+
+int (*ptr)() = (int (*)())jnl;
+
 int
 main ()
 {
-return jnl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_jnl=yes
+  gcc_cv_math_func_jnl=yes
 else
-  ac_cv_lib_m_jnl=no
+  gcc_cv_math_func_jnl=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_jnl" >&5
-$as_echo "$ac_cv_lib_m_jnl" >&6; }
-if test "x$ac_cv_lib_m_jnl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
+$as_echo "$gcc_cv_math_func_jnl" >&6; }
+  if test $gcc_cv_math_func_jnl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_JNL 1
+_ACEOF
 
-$as_echo "#define HAVE_JNL 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f in -lm" >&5
-$as_echo_n "checking for y0f in -lm... " >&6; }
-if test "${ac_cv_lib_m_y0f+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
+$as_echo_n "checking for y0f... " >&6; }
+if test "${gcc_cv_math_func_y0f+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char y0f ();
+
+int (*ptr)() = (int (*)())y0f;
+
 int
 main ()
 {
-return y0f ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_y0f=yes
+  gcc_cv_math_func_y0f=yes
 else
-  ac_cv_lib_m_y0f=no
+  gcc_cv_math_func_y0f=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_y0f" >&5
-$as_echo "$ac_cv_lib_m_y0f" >&6; }
-if test "x$ac_cv_lib_m_y0f" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
+$as_echo "$gcc_cv_math_func_y0f" >&6; }
+  if test $gcc_cv_math_func_y0f = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_Y0F 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_Y0F 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0 in -lm" >&5
-$as_echo_n "checking for y0 in -lm... " >&6; }
-if test "${ac_cv_lib_m_y0+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
+$as_echo_n "checking for y0... " >&6; }
+if test "${gcc_cv_math_func_y0+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char y0 ();
+
+int (*ptr)() = (int (*)())y0;
+
 int
 main ()
 {
-return y0 ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_y0=yes
+  gcc_cv_math_func_y0=yes
 else
-  ac_cv_lib_m_y0=no
+  gcc_cv_math_func_y0=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_y0" >&5
-$as_echo "$ac_cv_lib_m_y0" >&6; }
-if test "x$ac_cv_lib_m_y0" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
+$as_echo "$gcc_cv_math_func_y0" >&6; }
+  if test $gcc_cv_math_func_y0 = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_Y0 1
+_ACEOF
 
-$as_echo "#define HAVE_Y0 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0l in -lm" >&5
-$as_echo_n "checking for y0l in -lm... " >&6; }
-if test "${ac_cv_lib_m_y0l+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0l" >&5
+$as_echo_n "checking for y0l... " >&6; }
+if test "${gcc_cv_math_func_y0l+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char y0l ();
+
+int (*ptr)() = (int (*)())y0l;
+
 int
 main ()
 {
-return y0l ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_y0l=yes
+  gcc_cv_math_func_y0l=yes
 else
-  ac_cv_lib_m_y0l=no
+  gcc_cv_math_func_y0l=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_y0l" >&5
-$as_echo "$ac_cv_lib_m_y0l" >&6; }
-if test "x$ac_cv_lib_m_y0l" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0l" >&5
+$as_echo "$gcc_cv_math_func_y0l" >&6; }
+  if test $gcc_cv_math_func_y0l = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_Y0L 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_Y0L 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f in -lm" >&5
-$as_echo_n "checking for y1f in -lm... " >&6; }
-if test "${ac_cv_lib_m_y1f+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
+$as_echo_n "checking for y1f... " >&6; }
+if test "${gcc_cv_math_func_y1f+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char y1f ();
+
+int (*ptr)() = (int (*)())y1f;
+
 int
 main ()
 {
-return y1f ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_y1f=yes
+  gcc_cv_math_func_y1f=yes
 else
-  ac_cv_lib_m_y1f=no
+  gcc_cv_math_func_y1f=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_y1f" >&5
-$as_echo "$ac_cv_lib_m_y1f" >&6; }
-if test "x$ac_cv_lib_m_y1f" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
+$as_echo "$gcc_cv_math_func_y1f" >&6; }
+  if test $gcc_cv_math_func_y1f = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_Y1F 1
+_ACEOF
 
-$as_echo "#define HAVE_Y1F 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1 in -lm" >&5
-$as_echo_n "checking for y1 in -lm... " >&6; }
-if test "${ac_cv_lib_m_y1+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
+$as_echo_n "checking for y1... " >&6; }
+if test "${gcc_cv_math_func_y1+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char y1 ();
+
+int (*ptr)() = (int (*)())y1;
+
 int
 main ()
 {
-return y1 ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_y1=yes
+  gcc_cv_math_func_y1=yes
 else
-  ac_cv_lib_m_y1=no
+  gcc_cv_math_func_y1=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_y1" >&5
-$as_echo "$ac_cv_lib_m_y1" >&6; }
-if test "x$ac_cv_lib_m_y1" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
+$as_echo "$gcc_cv_math_func_y1" >&6; }
+  if test $gcc_cv_math_func_y1 = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_Y1 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_Y1 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1l in -lm" >&5
-$as_echo_n "checking for y1l in -lm... " >&6; }
-if test "${ac_cv_lib_m_y1l+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1l" >&5
+$as_echo_n "checking for y1l... " >&6; }
+if test "${gcc_cv_math_func_y1l+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char y1l ();
+
+int (*ptr)() = (int (*)())y1l;
+
 int
 main ()
 {
-return y1l ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_y1l=yes
+  gcc_cv_math_func_y1l=yes
 else
-  ac_cv_lib_m_y1l=no
+  gcc_cv_math_func_y1l=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_y1l" >&5
-$as_echo "$ac_cv_lib_m_y1l" >&6; }
-if test "x$ac_cv_lib_m_y1l" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1l" >&5
+$as_echo "$gcc_cv_math_func_y1l" >&6; }
+  if test $gcc_cv_math_func_y1l = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_Y1L 1
+_ACEOF
 
-$as_echo "#define HAVE_Y1L 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf in -lm" >&5
-$as_echo_n "checking for ynf in -lm... " >&6; }
-if test "${ac_cv_lib_m_ynf+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
+$as_echo_n "checking for ynf... " >&6; }
+if test "${gcc_cv_math_func_ynf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char ynf ();
+
+int (*ptr)() = (int (*)())ynf;
+
 int
 main ()
 {
-return ynf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_ynf=yes
+  gcc_cv_math_func_ynf=yes
 else
-  ac_cv_lib_m_ynf=no
+  gcc_cv_math_func_ynf=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_ynf" >&5
-$as_echo "$ac_cv_lib_m_ynf" >&6; }
-if test "x$ac_cv_lib_m_ynf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
+$as_echo "$gcc_cv_math_func_ynf" >&6; }
+  if test $gcc_cv_math_func_ynf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_YNF 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_YNF 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn in -lm" >&5
-$as_echo_n "checking for yn in -lm... " >&6; }
-if test "${ac_cv_lib_m_yn+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
+$as_echo_n "checking for yn... " >&6; }
+if test "${gcc_cv_math_func_yn+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char yn ();
+
+int (*ptr)() = (int (*)())yn;
+
 int
 main ()
 {
-return yn ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_yn=yes
+  gcc_cv_math_func_yn=yes
 else
-  ac_cv_lib_m_yn=no
+  gcc_cv_math_func_yn=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_yn" >&5
-$as_echo "$ac_cv_lib_m_yn" >&6; }
-if test "x$ac_cv_lib_m_yn" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
+$as_echo "$gcc_cv_math_func_yn" >&6; }
+  if test $gcc_cv_math_func_yn = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_YN 1
+_ACEOF
 
-$as_echo "#define HAVE_YN 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl in -lm" >&5
-$as_echo_n "checking for ynl in -lm... " >&6; }
-if test "${ac_cv_lib_m_ynl+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
+$as_echo_n "checking for ynl... " >&6; }
+if test "${gcc_cv_math_func_ynl+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char ynl ();
+
+int (*ptr)() = (int (*)())ynl;
+
 int
 main ()
 {
-return ynl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_ynl=yes
+  gcc_cv_math_func_ynl=yes
 else
-  ac_cv_lib_m_ynl=no
+  gcc_cv_math_func_ynl=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_ynl" >&5
-$as_echo "$ac_cv_lib_m_ynl" >&6; }
-if test "x$ac_cv_lib_m_ynl" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
+$as_echo "$gcc_cv_math_func_ynl" >&6; }
+  if test $gcc_cv_math_func_ynl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_YNL 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_YNL 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma in -lm" >&5
-$as_echo_n "checking for tgamma in -lm... " >&6; }
-if test "${ac_cv_lib_m_tgamma+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
+$as_echo_n "checking for tgamma... " >&6; }
+if test "${gcc_cv_math_func_tgamma+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
+  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"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char tgamma ();
+
+int (*ptr)() = (int (*)())tgamma;
+
 int
 main ()
 {
-return tgamma ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_tgamma=yes
+  gcc_cv_math_func_tgamma=yes
 else
-  ac_cv_lib_m_tgamma=no
+  gcc_cv_math_func_tgamma=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_tgamma" >&5
-$as_echo "$ac_cv_lib_m_tgamma" >&6; }
-if test "x$ac_cv_lib_m_tgamma" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
+$as_echo "$gcc_cv_math_func_tgamma" >&6; }
+  if test $gcc_cv_math_func_tgamma = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_TGAMMA 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_TGAMMA 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf in -lm" >&5
-$as_echo_n "checking for tgammaf in -lm... " >&6; }
-if test "${ac_cv_lib_m_tgammaf+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
+$as_echo_n "checking for tgammaf... " >&6; }
+if test "${gcc_cv_math_func_tgammaf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char tgammaf ();
+
+int (*ptr)() = (int (*)())tgammaf;
+
 int
 main ()
 {
-return tgammaf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_tgammaf=yes
+  gcc_cv_math_func_tgammaf=yes
 else
-  ac_cv_lib_m_tgammaf=no
+  gcc_cv_math_func_tgammaf=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_tgammaf" >&5
-$as_echo "$ac_cv_lib_m_tgammaf" >&6; }
-if test "x$ac_cv_lib_m_tgammaf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
+$as_echo "$gcc_cv_math_func_tgammaf" >&6; }
+  if test $gcc_cv_math_func_tgammaf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_TGAMMAF 1
+_ACEOF
 
-$as_echo "#define HAVE_TGAMMAF 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammal in -lm" >&5
-$as_echo_n "checking for tgammal in -lm... " >&6; }
-if test "${ac_cv_lib_m_tgammal+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammal" >&5
+$as_echo_n "checking for tgammal... " >&6; }
+if test "${gcc_cv_math_func_tgammal+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char tgammal ();
+
+int (*ptr)() = (int (*)())tgammal;
+
 int
 main ()
 {
-return tgammal ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_tgammal=yes
+  gcc_cv_math_func_tgammal=yes
 else
-  ac_cv_lib_m_tgammal=no
+  gcc_cv_math_func_tgammal=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_tgammal" >&5
-$as_echo "$ac_cv_lib_m_tgammal" >&6; }
-if test "x$ac_cv_lib_m_tgammal" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammal" >&5
+$as_echo "$gcc_cv_math_func_tgammal" >&6; }
+  if test $gcc_cv_math_func_tgammal = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_TGAMMAL 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_TGAMMAL 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma in -lm" >&5
-$as_echo_n "checking for lgamma in -lm... " >&6; }
-if test "${ac_cv_lib_m_lgamma+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
+$as_echo_n "checking for lgamma... " >&6; }
+if test "${gcc_cv_math_func_lgamma+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char lgamma ();
+
+int (*ptr)() = (int (*)())lgamma;
+
 int
 main ()
 {
-return lgamma ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_lgamma=yes
+  gcc_cv_math_func_lgamma=yes
 else
-  ac_cv_lib_m_lgamma=no
+  gcc_cv_math_func_lgamma=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_lgamma" >&5
-$as_echo "$ac_cv_lib_m_lgamma" >&6; }
-if test "x$ac_cv_lib_m_lgamma" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
+$as_echo "$gcc_cv_math_func_lgamma" >&6; }
+  if test $gcc_cv_math_func_lgamma = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_LGAMMA 1
+_ACEOF
 
-$as_echo "#define HAVE_LGAMMA 1" >>confdefs.h
+  fi
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf in -lm" >&5
-$as_echo_n "checking for lgammaf in -lm... " >&6; }
-if test "${ac_cv_lib_m_lgammaf+set}" = set; then :
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
+$as_echo_n "checking for lgammaf... " >&6; }
+if test "${gcc_cv_math_func_lgammaf+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char lgammaf ();
+
+int (*ptr)() = (int (*)())lgammaf;
+
 int
 main ()
 {
-return lgammaf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_lgammaf=yes
+  gcc_cv_math_func_lgammaf=yes
 else
-  ac_cv_lib_m_lgammaf=no
+  gcc_cv_math_func_lgammaf=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_lgammaf" >&5
-$as_echo "$ac_cv_lib_m_lgammaf" >&6; }
-if test "x$ac_cv_lib_m_lgammaf" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
+$as_echo "$gcc_cv_math_func_lgammaf" >&6; }
+  if test $gcc_cv_math_func_lgammaf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_LGAMMAF 1
+_ACEOF
+
+  fi
+
 
-$as_echo "#define HAVE_LGAMMAF 1" >>confdefs.h
 
-fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammal in -lm" >&5
-$as_echo_n "checking for lgammal in -lm... " >&6; }
-if test "${ac_cv_lib_m_lgammal+set}" = set; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammal" >&5
+$as_echo_n "checking for lgammal... " >&6; }
+if test "${gcc_cv_math_func_lgammal+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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char lgammal ();
+
+int (*ptr)() = (int (*)())lgammal;
+
 int
 main ()
 {
-return lgammal ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_lgammal=yes
+  gcc_cv_math_func_lgammal=yes
 else
-  ac_cv_lib_m_lgammal=no
+  gcc_cv_math_func_lgammal=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_lgammal" >&5
-$as_echo "$ac_cv_lib_m_lgammal" >&6; }
-if test "x$ac_cv_lib_m_lgammal" = x""yes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammal" >&5
+$as_echo "$gcc_cv_math_func_lgammal" >&6; }
+  if test $gcc_cv_math_func_lgammal = yes; then
 
-$as_echo "#define HAVE_LGAMMAL 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_LGAMMAL 1
+_ACEOF
 
-fi
+  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 "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
+$as_echo_n "checking for cacos... " >&6; }
+if test "${gcc_cv_math_func_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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char cacos ();
+
+int (*ptr)() = (int (*)())cacos;
+
 int
 main ()
 {
-return cacos ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_cacos=yes
+  gcc_cv_math_func_cacos=yes
 else
-  ac_cv_lib_m_cacos=no
+  gcc_cv_math_func_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 "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
+$as_echo "$gcc_cv_math_func_cacos" >&6; }
+  if test $gcc_cv_math_func_cacos = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CACOS 1
+_ACEOF
+
+  fi
+
 
-$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 "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
+$as_echo_n "checking for cacosf... " >&6; }
+if test "${gcc_cv_math_func_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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char cacosf ();
+
+int (*ptr)() = (int (*)())cacosf;
+
 int
 main ()
 {
-return cacosf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_cacosf=yes
+  gcc_cv_math_func_cacosf=yes
 else
-  ac_cv_lib_m_cacosf=no
+  gcc_cv_math_func_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 "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
+$as_echo "$gcc_cv_math_func_cacosf" >&6; }
+  if test $gcc_cv_math_func_cacosf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CACOSF 1
+_ACEOF
 
-$as_echo "#define HAVE_CACOSF 1" >>confdefs.h
+  fi
 
-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 "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
+$as_echo_n "checking for cacosh... " >&6; }
+if test "${gcc_cv_math_func_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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char cacosh ();
+
+int (*ptr)() = (int (*)())cacosh;
+
 int
 main ()
 {
-return cacosh ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_cacosh=yes
+  gcc_cv_math_func_cacosh=yes
 else
-  ac_cv_lib_m_cacosh=no
+  gcc_cv_math_func_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 "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
+$as_echo "$gcc_cv_math_func_cacosh" >&6; }
+  if test $gcc_cv_math_func_cacosh = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CACOSH 1
+_ACEOF
+
+  fi
+
 
-$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 "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
+$as_echo_n "checking for cacoshf... " >&6; }
+if test "${gcc_cv_math_func_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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char cacoshf ();
+
+int (*ptr)() = (int (*)())cacoshf;
+
 int
 main ()
 {
-return cacoshf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_cacoshf=yes
+  gcc_cv_math_func_cacoshf=yes
 else
-  ac_cv_lib_m_cacoshf=no
+  gcc_cv_math_func_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 "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
+$as_echo "$gcc_cv_math_func_cacoshf" >&6; }
+  if test $gcc_cv_math_func_cacoshf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CACOSHF 1
+_ACEOF
 
-$as_echo "#define HAVE_CACOSHF 1" >>confdefs.h
+  fi
 
-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 "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
+$as_echo_n "checking for cacoshl... " >&6; }
+if test "${gcc_cv_math_func_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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char cacoshl ();
+
+int (*ptr)() = (int (*)())cacoshl;
+
 int
 main ()
 {
-return cacoshl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_cacoshl=yes
+  gcc_cv_math_func_cacoshl=yes
 else
-  ac_cv_lib_m_cacoshl=no
+  gcc_cv_math_func_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 "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
+$as_echo "$gcc_cv_math_func_cacoshl" >&6; }
+  if test $gcc_cv_math_func_cacoshl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CACOSHL 1
+_ACEOF
+
+  fi
+
 
-$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 "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
+$as_echo_n "checking for cacosl... " >&6; }
+if test "${gcc_cv_math_func_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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char cacosl ();
+
+int (*ptr)() = (int (*)())cacosl;
+
 int
 main ()
 {
-return cacosl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_cacosl=yes
+  gcc_cv_math_func_cacosl=yes
 else
-  ac_cv_lib_m_cacosl=no
+  gcc_cv_math_func_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 "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
+$as_echo "$gcc_cv_math_func_cacosl" >&6; }
+  if test $gcc_cv_math_func_cacosl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CACOSL 1
+_ACEOF
+
+  fi
+
 
-$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 "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
+$as_echo_n "checking for casin... " >&6; }
+if test "${gcc_cv_math_func_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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char casin ();
+
+int (*ptr)() = (int (*)())casin;
+
 int
 main ()
 {
-return casin ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_casin=yes
+  gcc_cv_math_func_casin=yes
 else
-  ac_cv_lib_m_casin=no
+  gcc_cv_math_func_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 "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
+$as_echo "$gcc_cv_math_func_casin" >&6; }
+  if test $gcc_cv_math_func_casin = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CASIN 1
+_ACEOF
+
+  fi
+
 
-$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 "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
+$as_echo_n "checking for casinf... " >&6; }
+if test "${gcc_cv_math_func_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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char casinf ();
+
+int (*ptr)() = (int (*)())casinf;
+
 int
 main ()
 {
-return casinf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_casinf=yes
+  gcc_cv_math_func_casinf=yes
 else
-  ac_cv_lib_m_casinf=no
+  gcc_cv_math_func_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 "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
+$as_echo "$gcc_cv_math_func_casinf" >&6; }
+  if test $gcc_cv_math_func_casinf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CASINF 1
+_ACEOF
 
-$as_echo "#define HAVE_CASINF 1" >>confdefs.h
+  fi
 
-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 "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
+$as_echo_n "checking for casinh... " >&6; }
+if test "${gcc_cv_math_func_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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char casinh ();
+
+int (*ptr)() = (int (*)())casinh;
+
 int
 main ()
 {
-return casinh ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_casinh=yes
+  gcc_cv_math_func_casinh=yes
 else
-  ac_cv_lib_m_casinh=no
+  gcc_cv_math_func_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 "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
+$as_echo "$gcc_cv_math_func_casinh" >&6; }
+  if test $gcc_cv_math_func_casinh = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CASINH 1
+_ACEOF
+
+  fi
+
 
-$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 "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
+$as_echo_n "checking for casinhf... " >&6; }
+if test "${gcc_cv_math_func_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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char casinhf ();
+
+int (*ptr)() = (int (*)())casinhf;
+
 int
 main ()
 {
-return casinhf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_casinhf=yes
+  gcc_cv_math_func_casinhf=yes
 else
-  ac_cv_lib_m_casinhf=no
+  gcc_cv_math_func_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 "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
+$as_echo "$gcc_cv_math_func_casinhf" >&6; }
+  if test $gcc_cv_math_func_casinhf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CASINHF 1
+_ACEOF
 
-$as_echo "#define HAVE_CASINHF 1" >>confdefs.h
+  fi
 
-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 "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
+$as_echo_n "checking for casinhl... " >&6; }
+if test "${gcc_cv_math_func_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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char casinhl ();
+
+int (*ptr)() = (int (*)())casinhl;
+
 int
 main ()
 {
-return casinhl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_casinhl=yes
+  gcc_cv_math_func_casinhl=yes
 else
-  ac_cv_lib_m_casinhl=no
+  gcc_cv_math_func_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 "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
+$as_echo "$gcc_cv_math_func_casinhl" >&6; }
+  if test $gcc_cv_math_func_casinhl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CASINHL 1
+_ACEOF
+
+  fi
+
 
-$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 "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
+$as_echo_n "checking for casinl... " >&6; }
+if test "${gcc_cv_math_func_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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char casinl ();
+
+int (*ptr)() = (int (*)())casinl;
+
 int
 main ()
 {
-return casinl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_casinl=yes
+  gcc_cv_math_func_casinl=yes
 else
-  ac_cv_lib_m_casinl=no
+  gcc_cv_math_func_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 "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
+$as_echo "$gcc_cv_math_func_casinl" >&6; }
+  if test $gcc_cv_math_func_casinl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CASINL 1
+_ACEOF
 
-$as_echo "#define HAVE_CASINL 1" >>confdefs.h
+  fi
 
-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 "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
+$as_echo_n "checking for catan... " >&6; }
+if test "${gcc_cv_math_func_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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char catan ();
+
+int (*ptr)() = (int (*)())catan;
+
 int
 main ()
 {
-return catan ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_catan=yes
+  gcc_cv_math_func_catan=yes
 else
-  ac_cv_lib_m_catan=no
+  gcc_cv_math_func_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 "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
+$as_echo "$gcc_cv_math_func_catan" >&6; }
+  if test $gcc_cv_math_func_catan = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CATAN 1
+_ACEOF
+
+  fi
+
 
-$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 "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
+$as_echo_n "checking for catanf... " >&6; }
+if test "${gcc_cv_math_func_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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char catanf ();
+
+int (*ptr)() = (int (*)())catanf;
+
 int
 main ()
 {
-return catanf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_catanf=yes
+  gcc_cv_math_func_catanf=yes
 else
-  ac_cv_lib_m_catanf=no
+  gcc_cv_math_func_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 "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
+$as_echo "$gcc_cv_math_func_catanf" >&6; }
+  if test $gcc_cv_math_func_catanf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CATANF 1
+_ACEOF
 
-$as_echo "#define HAVE_CATANF 1" >>confdefs.h
+  fi
 
-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 "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
+$as_echo_n "checking for catanh... " >&6; }
+if test "${gcc_cv_math_func_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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char catanh ();
+
+int (*ptr)() = (int (*)())catanh;
+
 int
 main ()
 {
-return catanh ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_catanh=yes
+  gcc_cv_math_func_catanh=yes
 else
-  ac_cv_lib_m_catanh=no
+  gcc_cv_math_func_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 "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
+$as_echo "$gcc_cv_math_func_catanh" >&6; }
+  if test $gcc_cv_math_func_catanh = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CATANH 1
+_ACEOF
+
+  fi
+
 
-$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 "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
+$as_echo_n "checking for catanhf... " >&6; }
+if test "${gcc_cv_math_func_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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char catanhf ();
+
+int (*ptr)() = (int (*)())catanhf;
+
 int
 main ()
 {
-return catanhf ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_catanhf=yes
+  gcc_cv_math_func_catanhf=yes
 else
-  ac_cv_lib_m_catanhf=no
+  gcc_cv_math_func_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 "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
+$as_echo "$gcc_cv_math_func_catanhf" >&6; }
+  if test $gcc_cv_math_func_catanhf = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CATANHF 1
+_ACEOF
 
-$as_echo "#define HAVE_CATANHF 1" >>confdefs.h
+  fi
 
-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 "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
+$as_echo_n "checking for catanhl... " >&6; }
+if test "${gcc_cv_math_func_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
+  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"
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char catanhl ();
+
+int (*ptr)() = (int (*)())catanhl;
+
 int
 main ()
 {
-return catanhl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_catanhl=yes
+  gcc_cv_math_func_catanhl=yes
 else
-  ac_cv_lib_m_catanhl=no
+  gcc_cv_math_func_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 "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
+$as_echo "$gcc_cv_math_func_catanhl" >&6; }
+  if test $gcc_cv_math_func_catanhl = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CATANHL 1
+_ACEOF
+
+  fi
+
 
-$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 "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
+$as_echo_n "checking for catanl... " >&6; }
+if test "${gcc_cv_math_func_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
+  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"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+#ifdef HAVE_COMPLEX_H
+#include <complex.h>
+#endif
+#ifdef HAVE_MATH_H
+#include <math.h>
 #endif
-char catanl ();
+
+int (*ptr)() = (int (*)())catanl;
+
 int
 main ()
 {
-return catanl ();
-  ;
   return 0;
 }
+
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_m_catanl=yes
+  gcc_cv_math_func_catanl=yes
 else
-  ac_cv_lib_m_catanl=no
+  gcc_cv_math_func_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 "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
+$as_echo "$gcc_cv_math_func_catanl" >&6; }
+  if test $gcc_cv_math_func_catanl = yes; then
 
-$as_echo "#define HAVE_CATANL 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define HAVE_CATANL 1
+_ACEOF
 
-fi
+  fi
 
 
 # On AIX, clog is present in libm as __clog
@@ -24302,28 +25702,6 @@ $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
   fi
 
 
-# Check for a broken powf implementation
-
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether powf is broken" >&5
-$as_echo_n "checking whether powf is broken... " >&6; }
-if test "${libgfor_cv_have_broken_powf+set}" = set; then :
-  $as_echo_n "(cached) " >&6
-else
-
-case "${target}" in
-  hppa*64*-*-hpux*) libgfor_cv_have_broken_powf=yes ;;
-  *) libgfor_cv_have_broken_powf=no;;
-esac
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_broken_powf" >&5
-$as_echo "$libgfor_cv_have_broken_powf" >&6; }
-  if test x"$libgfor_cv_have_broken_powf" = xyes; then
-
-$as_echo "#define HAVE_BROKEN_POWF 1" >>confdefs.h
-
-  fi
-
-
 # Check whether libquadmath should be used
 # Check whether --enable-libquadmath-support was given.
 if test "${enable_libquadmath_support+set}" = set; then :
@@ -24349,42 +25727,99 @@ if test "${libgfor_cv_have_float128+set}" = set; then :
   $as_echo_n "(cached) " >&6
 else
 
-    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
+   if test x$gcc_no_link = xyes; then
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
-/* no header */
+    typedef _Complex float __attribute__((mode(TC))) __complex128;
+
+    __float128 foo (__float128 x)
+    {
+
+     __complex128 z1, z2;
+
+     z1 = x;
+     z2 = x / 7.Q;
+     z2 /= z1;
+
+     return (__float128) z2;
+    }
+
+    __float128 bar (__float128 x)
+    {
+      return x * __builtin_huge_valq ();
+    }
 
 int
 main ()
 {
 
-  typedef _Complex float __attribute__((mode(TC))) __complex128;
+    foo (1.2Q);
+    bar (1.2Q);
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+
+    libgfor_cv_have_float128=yes
+
+else
+
+    libgfor_cv_have_float128=no
+
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+else
+  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.  */
+
+    typedef _Complex float __attribute__((mode(TC))) __complex128;
+
+    __float128 foo (__float128 x)
+    {
+
+     __complex128 z1, z2;
+
+     z1 = x;
+     z2 = x / 7.Q;
+     z2 /= z1;
+
+     return (__float128) z2;
+    }
 
-  __float128 x;
-  x = __builtin_huge_valq() - 2.e1000Q;
+    __float128 bar (__float128 x)
+    {
+      return x * __builtin_huge_valq ();
+    }
 
-  __complex128 z1, z2;
-  z1 = x;
-  z2 = 2.Q;
+int
+main ()
+{
 
-  z1 /= z2;
-  z1 /= 7.Q;
+    foo (1.2Q);
+    bar (1.2Q);
 
   ;
   return 0;
 }
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  libgfor_cv_have_float128=yes
+
+    libgfor_cv_have_float128=yes
+
 else
-  libgfor_cv_have_float128=no
+
+    libgfor_cv_have_float128=no
+
 fi
 rm -f core conftest.err conftest.$ac_objext \
     conftest$ac_exeext conftest.$ac_ext
-
+fi
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
 $as_echo "$libgfor_cv_have_float128" >&6; }
@@ -24395,14 +25830,18 @@ $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
 
 
                                 ac_xsave_c_werror_flag=$ac_c_werror_flag
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed works" >&5
-$as_echo_n "checking whether --as-needed works... " >&6; }
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5
+$as_echo_n "checking whether --as-needed/-z ignore works... " >&6; }
 if test "${libgfor_cv_have_as_needed+set}" = set; then :
   $as_echo_n "(cached) " >&6
 else
 
+      # Test for native Solaris options first.
+      # No whitespace after -z to pass it through -Wl.
+      libgfor_cv_as_needed_option="-zignore"
+      libgfor_cv_no_as_needed_option="-zrecord"
       save_LDFLAGS="$LDFLAGS"
-      LDFLAGS="$LDFLAGS -Wl,--as-needed -lm -Wl,--no-as-needed"
+      LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
       libgfor_cv_have_as_needed=no
 
 ac_c_werror_flag=yes
 rm -f core conftest.err conftest.$ac_objext \
     conftest$ac_exeext conftest.$ac_ext
       LDFLAGS="$save_LDFLAGS"
+      if test "x$libgfor_cv_have_as_needed" = xno; then
+       libgfor_cv_as_needed_option="--as-needed"
+       libgfor_cv_no_as_needed_option="--no-as-needed"
+       save_LDFLAGS="$LDFLAGS"
+       LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
+       libgfor_cv_have_as_needed=no
+
+ac_c_werror_flag=yes
+       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.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+  libgfor_cv_have_as_needed=yes
+else
+  libgfor_cv_have_as_needed=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+       LDFLAGS="$save_LDFLAGS"
+      fi
       ac_c_werror_flag=$ac_xsave_c_werror_flag
 
 fi
@@ -24435,7 +25905,7 @@ fi
 $as_echo "$libgfor_cv_have_as_needed" >&6; }
 
         if test "x$libgfor_cv_have_as_needed" = xyes; then
-      LIBQUADSPEC="%{static-libgfortran:--as-needed} -lquadmath %{static-libgfortran:--no-as-needed}"
+      LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}"
     else
       LIBQUADSPEC="-lquadmath"
     fi
@@ -24518,6 +25988,59 @@ $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
 fi
 
 
+# At least for glibc, clock_gettime is in librt.  But don't
+# pull that in if it still doesn't give us the function we want.  This
+# test is copied from libgomp, and modified to not link in -lrt as
+# libgfortran calls clock_gettime via a weak reference if it's found
+# in librt.
+if test "$ac_cv_func_clock_gettime" = no; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
+$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
+if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
+  $as_echo_n "(cached) " >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-lrt  $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 clock_gettime ();
+int
+main ()
+{
+return clock_gettime ();
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+  ac_cv_lib_rt_clock_gettime=yes
+else
+  ac_cv_lib_rt_clock_gettime=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_rt_clock_gettime" >&5
+$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
+if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
+
+$as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
+
+fi
+
+fi
+
 # Check for SysV fpsetmask
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
 $as_echo "$libgfor_cv_have_fpsetmask" >&6; }
   if test x"$libgfor_cv_have_fpsetmask" = xyes; then
+    have_fpsetmask=yes
 
 $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
 
   fi
 
+ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "
+#ifdef HAVE_IEEEFP_H
+#include <ieeefp.h>
+#endif
+#include <math.h>
+
+"
+if test "x$ac_cv_type_fp_except" = x""yes; then :
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_FP_EXCEPT 1
+_ACEOF
+
+
+fi
+ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "
+#ifdef HAVE_IEEEFP_H
+#include <ieeefp.h>
+#endif
+#include <math.h>
+
+"
+if test "x$ac_cv_type_fp_except_t" = x""yes; then :
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_FP_EXCEPT_T 1
+_ACEOF
+
+
+fi
+
+ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" "
+#ifdef HAVE_IEEEFP_H
+#include <ieeefp.h>
+#endif
+#include <math.h>
+
+"
+if test "x$ac_cv_type_fp_rnd" = x""yes; then :
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_FP_RND 1
+_ACEOF
+
+
+fi
+ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" "
+#ifdef HAVE_IEEEFP_H
+#include <ieeefp.h>
+#endif
+#include <math.h>
+
+"
+if test "x$ac_cv_type_fp_rnd_t" = x""yes; then :
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_FP_RND_T 1
+_ACEOF
+
+
+fi
+
+
+# Check whether we have fpsetsticky or fpresetsticky
+ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky"
+if test "x$ac_cv_func_fpsetsticky" = x""yes; then :
+  have_fpsetsticky=yes
+$as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h
+
+fi
+
+ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky"
+if test "x$ac_cv_func_fpresetsticky" = x""yes; then :
+  have_fpresetsticky=yes
+$as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h
+
+fi
+
 
 # Check for AIX fp_trap and fp_enable
 ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
 . ${srcdir}/configure.host
 { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
 $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
+{ $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5
+$as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;}
 FPU_HOST_HEADER=config/${fpu_host}.h
 
 
+# Whether we will build the IEEE modules
+ if test x${ieee_support} = xyes; then
+  IEEE_SUPPORT_TRUE=
+  IEEE_SUPPORT_FALSE='#'
+else
+  IEEE_SUPPORT_TRUE='#'
+  IEEE_SUPPORT_FALSE=
+fi
+
+
+
 # Some targets require additional compiler options for IEEE compatibility.
 IEEE_FLAGS="${ieee_flags}"
 
 
+
+# Check for POSIX getpwuid_r
+#
+# There are two versions of getpwuid_r, the POSIX one with 5
+# arguments, and another one with 4 arguments used by at least HP-UX
+# 10.2.
+if test "$ac_cv_func_getpwuid_r" = "yes"; then
+   { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
+$as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
+if test "${libgfor_cv_posix_getpwuid_r+set}" = set; then :
+  $as_echo_n "(cached) " >&6
+else
+
+   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.  */
+
+#include <stdio.h>
+#include <sys/types.h>
+#include <pwd.h>
+int
+main ()
+{
+
+    getpwuid_r(0, NULL, NULL, 0, NULL);
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+  libgfor_cv_posix_getpwuid_r="yes"
+else
+  libgfor_cv_posix_getpwuid_r="no"
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
+$as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
+fi
+if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
+
+$as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
+
+fi
+
+
 # Check out attribute support.
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
@@ -24743,25 +26408,6 @@ $as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h
 
   fi
 
-# Check out thread support.
-
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking configured target thread model" >&5
-$as_echo_n "checking configured target thread model... " >&6; }
-if test "${libgfor_cv_target_thread_file+set}" = set; then :
-  $as_echo_n "(cached) " >&6
-else
-
-libgfor_cv_target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_target_thread_file" >&5
-$as_echo "$libgfor_cv_target_thread_file" >&6; }
-
-  if test $libgfor_cv_target_thread_file != single; then
-
-$as_echo "#define HAVE_GTHR_DEFAULT 1" >>confdefs.h
-
-  fi
-
 # Check out #pragma weak.
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
@@ -24774,8 +26420,10 @@ else
   CFLAGS="$CFLAGS -Wunknown-pragmas"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
+
 void foo (void);
 #pragma weak foo
+
 int
 main ()
 {
@@ -24833,7 +26481,7 @@ int main ()
 {
   int fd;
 
-  fd = open ("testfile", O_RDWR | O_CREAT, S_IWRITE | S_IREAD);
+  fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
   if (fd <= 0)
     return 0;
   if (unlink ("testfile") == -1)
@@ -24841,7 +26489,7 @@ int main ()
   write (fd, "This is a test\n", 15);
   close (fd);
 
-  if (open ("testfile", O_RDONLY, S_IWRITE | S_IREAD) == -1 && errno == ENOENT)
+  if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
     return 0;
   else
     return 1;
@@ -24936,6 +26584,44 @@ $as_echo "#define HAVE_CRLF 1" >>confdefs.h
 
 fi
 
+# Check whether we have _Unwind_GetIPInfo for backtrace
+
+
+# Check whether --with-system-libunwind was given.
+if test "${with_system_libunwind+set}" = set; then :
+  withval=$with_system_libunwind;
+fi
+
+  # If system-libunwind was not specifically set, pick a default setting.
+  if test x$with_system_libunwind = x; then
+    case ${target} in
+      ia64-*-hpux*) with_system_libunwind=yes ;;
+      *) with_system_libunwind=no ;;
+    esac
+  fi
+  # Based on system-libunwind and target, do we have ipinfo?
+  if  test x$with_system_libunwind = xyes; then
+    case ${target} in
+      ia64-*-*) have_unwind_getipinfo=no ;;
+      *) have_unwind_getipinfo=yes ;;
+    esac
+  else
+    # Darwin before version 9 does not have _Unwind_GetIPInfo.
+
+    case ${target} in
+      *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
+      *) have_unwind_getipinfo=yes ;;
+    esac
+
+  fi
+
+  if test x$have_unwind_getipinfo = xyes; then
+
+$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
+
+  fi
+
+
 cat >confcache <<\_ACEOF
 # This file is a shell script that caches the results of configure
 # tests run on this system so they can be shared between configure
@@ -25141,6 +26827,10 @@ if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
   as_fn_error "conditional \"am__fastdepCC\" was never defined.
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
 fi
+if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
+  as_fn_error "conditional \"am__fastdepCC\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
 if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
   as_fn_error "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
@@ -25153,10 +26843,18 @@ if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN
   as_fn_error "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
 fi
+if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then
+  as_fn_error "conditional \"LIBGFOR_MINIMAL\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
 if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
   as_fn_error "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
 fi
+if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then
+  as_fn_error "conditional \"IEEE_SUPPORT\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
 
 : ${CONFIG_STATUS=./config.status}
 ac_write_fail=0