pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/libnbcompat/files For the benefit of Mr. Kite...
details: https://anonhg.NetBSD.org/pkgsrc/rev/b08d4af6aecd
branches: trunk
changeset: 517950:b08d4af6aecd
user: seb <seb%pkgsrc.org@localhost>
date: Sat Aug 26 21:28:21 2006 +0000
description:
For the benefit of Mr. Kite^W^Wsnprint.c add long double type detection.
diffstat:
pkgtools/libnbcompat/files/configure | 77 +++++++++++++++++++++++++
pkgtools/libnbcompat/files/configure.ac | 4 +-
pkgtools/libnbcompat/files/nbcompat/config.h.in | 3 +
3 files changed, 82 insertions(+), 2 deletions(-)
diffs (118 lines):
diff -r d5e8fe36a418 -r b08d4af6aecd pkgtools/libnbcompat/files/configure
--- a/pkgtools/libnbcompat/files/configure Sat Aug 26 19:07:00 2006 +0000
+++ b/pkgtools/libnbcompat/files/configure Sat Aug 26 21:28:21 2006 +0000
@@ -5922,6 +5922,83 @@
fi
+echo "$as_me:$LINENO: checking for long double" >&5
+echo $ECHO_N "checking for long double... $ECHO_C" >&6
+if test "${ac_cv_type_long_double+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#if STDC_HEADERS
+#include <stdlib.h>
+#include <stddef.h>
+#endif
+#if HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
+#if HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#if HAVE_SYS_BITYPES_H
+#include <sys/bitypes.h>
+#endif
+
+int
+main ()
+{
+if ((long double *) 0)
+ return 0;
+if (sizeof (long double))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_type_long_double=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_type_long_double=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
+echo "${ECHO_T}$ac_cv_type_long_double" >&6
+if test $ac_cv_type_long_double = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_LONG_DOUBLE 1
+_ACEOF
+
+
+fi
echo "$as_me:$LINENO: checking for int8_t" >&5
echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
if test "${ac_cv_type_int8_t+set}" = set; then
diff -r d5e8fe36a418 -r b08d4af6aecd pkgtools/libnbcompat/files/configure.ac
--- a/pkgtools/libnbcompat/files/configure.ac Sat Aug 26 19:07:00 2006 +0000
+++ b/pkgtools/libnbcompat/files/configure.ac Sat Aug 26 21:28:21 2006 +0000
@@ -1,4 +1,4 @@
-dnl $NetBSD: configure.ac,v 1.51 2004/10/24 11:18:33 grant Exp $
+dnl $NetBSD: configure.ac,v 1.52 2006/08/26 21:28:21 seb Exp $
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.52)
@@ -171,7 +171,7 @@
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C___ATTRIBUTE__
AC_TYPE_SIZE_T
-AC_CHECK_TYPES([long long, int8_t, int16_t, int32_t, int64_t, u_int8_t, u_int16_t, u_int32_t, u_int64_t, uint8_t, uint16_t, uint32_t, uint64_t],[],[],
+AC_CHECK_TYPES([long long, long double, int8_t, int16_t, int32_t, int64_t, u_int8_t, u_int16_t, u_int32_t, u_int64_t, uint8_t, uint16_t, uint32_t, uint64_t],[],[],
[#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
diff -r d5e8fe36a418 -r b08d4af6aecd pkgtools/libnbcompat/files/nbcompat/config.h.in
--- a/pkgtools/libnbcompat/files/nbcompat/config.h.in Sat Aug 26 19:07:00 2006 +0000
+++ b/pkgtools/libnbcompat/files/nbcompat/config.h.in Sat Aug 26 21:28:21 2006 +0000
@@ -132,6 +132,9 @@
/* Define to 1 if you have the <limits.h> header file. */
#undef HAVE_LIMITS_H
+/* Define to 1 if the system has the type `long double'. */
+#undef HAVE_LONG_DOUBLE
+
/* Define to 1 if the system has the type `long long'. */
#undef HAVE_LONG_LONG
Home |
Main Index |
Thread Index |
Old Index