Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2009-04-18 00:50:44 +0400
committerJeff Johnston <jjohnstn@redhat.com>2009-04-18 00:50:44 +0400
commit34d6b436e29b758213c977e6bf2dfa9c908ebe3a (patch)
treef08c13d105778380e40838faaa534600da067fd6 /newlib/libc/configure.in
parente3228f89a4d745afcc0bd6973cb22be46d75cf57 (diff)
2009-04-17 Ken Werner <ken.werner@de.ibm.com>
* libc/configure.in: Change AC_TRY_COMPILE to AC_TRY_COMMAND to avoid executable test. * libc/configure: Regenerate.
Diffstat (limited to 'newlib/libc/configure.in')
-rw-r--r--newlib/libc/configure.in24
1 files changed, 17 insertions, 7 deletions
diff --git a/newlib/libc/configure.in b/newlib/libc/configure.in
index d88c38679..1254cf69b 100644
--- a/newlib/libc/configure.in
+++ b/newlib/libc/configure.in
@@ -137,19 +137,29 @@ fi
AC_SUBST(LIBC_SYS_LIB)
AC_SUBST(sys_dir)
-dnl iconv library will be compiled if --enable-newlib-iconv option is enabled
-AM_CONDITIONAL(ENABLE_NEWLIB_ICONV, test x${newlib_iconv} != x)
-
dnl Autoconf 2.59 doesn't support the AC_TYPE_LONG_DOUBLE macro. Instead of:
dnl AC_TYPE_LONG_DOUBLE
dnl AM_CONDITIONAL(HAVE_LONG_DOUBLE, test x"$ac_cv_type_long_double" = x"yes")
dnl we specify our own long double test.
-AC_CACHE_CHECK([Checking long double support], [acnewlib_cv_type_long_double],
- [AC_TRY_COMPILE([], [long double foo = 0.0L;],
- [acnewlib_cv_type_long_double = yes;],
- [acnewlib_cv_type_long_double = no;])])
+AC_CACHE_CHECK([Checking long double support], [acnewlib_cv_type_long_double],[dnl
+cat > conftest.c <<EOF
+int main() {
+long double x = 0.0L;
+return 0;
+}
+EOF
+if AC_TRY_COMMAND([${CC} $CFLAGS $CPPFLAGS -c conftest.c 1>&AS_MESSAGE_LOG_FD])
+then
+ acnewlib_cv_type_long_double=yes
+else
+ acnewlib_cv_type_long_double=no
+fi
+rm -f conftest*])
AM_CONDITIONAL(HAVE_LONG_DOUBLE, test x"$acnewlib_cv_type_long_double" = x"yes")
+dnl iconv library will be compiled if --enable-newlib-iconv option is enabled
+AM_CONDITIONAL(ENABLE_NEWLIB_ICONV, test x${newlib_iconv} != x)
+
if test -n "${machine_dir}"; then
if test "${use_libtool}" = "yes"; then
LIBC_MACHINE_LIB=machine/${machine_dir}/lib${machine_dir}.${aext}