removed unneeded text from configure.ac
This commit is contained in:
parent
1e46aab4ba
commit
8cb48d5665
198
mio/configure
vendored
198
mio/configure
vendored
@ -21166,204 +21166,6 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
if test ${ac_cv_sizeof___int128_t} -gt 0
|
|
||||||
then
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __int128_t with % and va_arg" >&5
|
|
||||||
$as_echo_n "checking __int128_t with % and va_arg... " >&6; }
|
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
||||||
/* end confdefs.h. */
|
|
||||||
#include <stdarg.h>
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
volatile __int128_t x, base;
|
|
||||||
va_list ap;
|
|
||||||
va_arg(ap, __int128_t);
|
|
||||||
x = (__int128_t)&base;
|
|
||||||
base = (__int128_t)&x;
|
|
||||||
x = x % base;
|
|
||||||
return (int)x;
|
|
||||||
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
_ACEOF
|
|
||||||
if ac_fn_c_try_compile "$LINENO"; 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; }
|
|
||||||
ac_cv_sizeof___int128_t=0
|
|
||||||
ac_cv_sizeof___uint128_t=0
|
|
||||||
|
|
||||||
|
|
||||||
fi
|
|
||||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test ${ac_cv_sizeof___float128} -gt 0
|
|
||||||
then
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __float128 with linking" >&5
|
|
||||||
$as_echo_n "checking __float128 with linking... " >&6; }
|
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
||||||
/* end confdefs.h. */
|
|
||||||
#include <stdio.h>
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
|
|
||||||
__float128 x, y, z;
|
|
||||||
z = x * y + x;
|
|
||||||
printf ("%p", (char*)(int)z);
|
|
||||||
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
_ACEOF
|
|
||||||
if ac_fn_c_try_link "$LINENO"; 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; }
|
|
||||||
ac_cv_sizeof___float128=0
|
|
||||||
|
|
||||||
|
|
||||||
fi
|
|
||||||
rm -f core conftest.err conftest.$ac_objext \
|
|
||||||
conftest$ac_exeext conftest.$ac_ext
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test ${ac_cv_sizeof___float128} -gt 0
|
|
||||||
then
|
|
||||||
for ac_func in quadmath_snprintf
|
|
||||||
do :
|
|
||||||
ac_fn_c_check_func "$LINENO" "quadmath_snprintf" "ac_cv_func_quadmath_snprintf"
|
|
||||||
if test "x$ac_cv_func_quadmath_snprintf" = xyes; then :
|
|
||||||
cat >>confdefs.h <<_ACEOF
|
|
||||||
#define HAVE_QUADMATH_SNPRINTF 1
|
|
||||||
_ACEOF
|
|
||||||
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if test "$ac_cv_func_quadmath_snprintf" = "no"
|
|
||||||
then
|
|
||||||
OLDLIBS="$LIBS"
|
|
||||||
LIBS="$LIBM $LIBS"
|
|
||||||
for ac_func in quadmath_snprintf
|
|
||||||
do :
|
|
||||||
ac_fn_c_check_func "$LINENO" "quadmath_snprintf" "ac_cv_func_quadmath_snprintf"
|
|
||||||
if test "x$ac_cv_func_quadmath_snprintf" = xyes; then :
|
|
||||||
cat >>confdefs.h <<_ACEOF
|
|
||||||
#define HAVE_QUADMATH_SNPRINTF 1
|
|
||||||
_ACEOF
|
|
||||||
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
LIBS="$OLDLIBS"
|
|
||||||
|
|
||||||
if test "$ac_cv_func_quadmath_snprintf" = "no"
|
|
||||||
then
|
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for quadmath_snprintf in -lquadmath" >&5
|
|
||||||
$as_echo_n "checking for quadmath_snprintf in -lquadmath... " >&6; }
|
|
||||||
if ${ac_cv_lib_quadmath_quadmath_snprintf+:} false; then :
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
ac_check_lib_save_LIBS=$LIBS
|
|
||||||
LIBS="-lquadmath $LIBS"
|
|
||||||
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 quadmath_snprintf ();
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
return quadmath_snprintf ();
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
_ACEOF
|
|
||||||
if ac_fn_c_try_link "$LINENO"; then :
|
|
||||||
ac_cv_lib_quadmath_quadmath_snprintf=yes
|
|
||||||
else
|
|
||||||
ac_cv_lib_quadmath_quadmath_snprintf=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_quadmath_quadmath_snprintf" >&5
|
|
||||||
$as_echo "$ac_cv_lib_quadmath_quadmath_snprintf" >&6; }
|
|
||||||
if test "x$ac_cv_lib_quadmath_quadmath_snprintf" = xyes; then :
|
|
||||||
|
|
||||||
QUADMATH_LIBS="-lquadmath"
|
|
||||||
LIBM="$LIBM -lquadmath"
|
|
||||||
$as_echo "#define HAVE_QUADMATH_SNPRINTF 1" >>confdefs.h
|
|
||||||
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
if test "$ac_cv_lib_quadmath_quadmath_snprintf" = "no"
|
|
||||||
then
|
|
||||||
|
|
||||||
ac_cv_sizeof___float128=0
|
|
||||||
fi
|
|
||||||
|
|
||||||
else
|
|
||||||
QUADMATH_LIBS="$LIBM"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test ${ac_cv_sizeof___float128} -gt 0
|
|
||||||
then
|
|
||||||
OLDLIBS="$LIBS"
|
|
||||||
LIBS="$LIBM $LIBS"
|
|
||||||
for ac_func in powq fmodq sinq cosq tanq sinhq coshq tanhq asinq acosq atanq atan2q logq log10q expq sqrtq ceilq floorq roundq
|
|
||||||
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"
|
|
||||||
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
|
||||||
cat >>confdefs.h <<_ACEOF
|
|
||||||
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
||||||
_ACEOF
|
|
||||||
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
for ac_func in strtoflt128
|
|
||||||
do :
|
|
||||||
ac_fn_c_check_func "$LINENO" "strtoflt128" "ac_cv_func_strtoflt128"
|
|
||||||
if test "x$ac_cv_func_strtoflt128" = xyes; then :
|
|
||||||
cat >>confdefs.h <<_ACEOF
|
|
||||||
#define HAVE_STRTOFLT128 1
|
|
||||||
_ACEOF
|
|
||||||
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
LIBS="$OLDLIBS"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
cat >>confdefs.h <<_ACEOF
|
cat >>confdefs.h <<_ACEOF
|
||||||
#define MIO_SIZEOF_CHAR ${ac_cv_sizeof_char}
|
#define MIO_SIZEOF_CHAR ${ac_cv_sizeof_char}
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
105
mio/configure.ac
105
mio/configure.ac
@ -676,111 +676,6 @@ then
|
|||||||
fi
|
fi
|
||||||
AC_SUBST(QUADMATH_LIBS)
|
AC_SUBST(QUADMATH_LIBS)
|
||||||
|
|
||||||
|
|
||||||
dnl gcc 3.4.3 on opensolaris x86 gave this warning without -msse or
|
|
||||||
dnl something similar.
|
|
||||||
dnl SSE vector argument without SSE enabled changes the ABI
|
|
||||||
dnl it also ended with an internal compiler error while compiling
|
|
||||||
dnl some expressions like 'v % base' where v is of the __int128_t type.
|
|
||||||
dnl so i've added this check to determine if the compiler has
|
|
||||||
dnl proper support for __int128_t.
|
|
||||||
dnl
|
|
||||||
dnl Changing ac_cv_sizeof___int128_t here doesn't corret SIZEOF___INT128_T
|
|
||||||
dnl since it's already generated. It only affects MIO_SIZEOF___INT128_T below.
|
|
||||||
if test ${ac_cv_sizeof___int128_t} -gt 0
|
|
||||||
then
|
|
||||||
AC_MSG_CHECKING([__int128_t with % and va_arg])
|
|
||||||
AC_COMPILE_IFELSE(
|
|
||||||
[AC_LANG_PROGRAM([#include <stdarg.h>], [
|
|
||||||
volatile __int128_t x, base;
|
|
||||||
va_list ap;
|
|
||||||
va_arg(ap, __int128_t);
|
|
||||||
x = (__int128_t)&base;
|
|
||||||
base = (__int128_t)&x;
|
|
||||||
x = x % base;
|
|
||||||
return (int)x;
|
|
||||||
])],
|
|
||||||
|
|
||||||
[
|
|
||||||
AC_MSG_RESULT(yes)
|
|
||||||
],
|
|
||||||
[
|
|
||||||
AC_MSG_RESULT(no)
|
|
||||||
ac_cv_sizeof___int128_t=0
|
|
||||||
ac_cv_sizeof___uint128_t=0
|
|
||||||
]
|
|
||||||
)
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl Some compilers doesn't seem to have full support for __float128
|
|
||||||
dnl even if the type is available.
|
|
||||||
if test ${ac_cv_sizeof___float128} -gt 0
|
|
||||||
then
|
|
||||||
AC_MSG_CHECKING([__float128 with linking])
|
|
||||||
AC_TRY_LINK(
|
|
||||||
[#include <stdio.h>],
|
|
||||||
[
|
|
||||||
__float128 x, y, z;
|
|
||||||
z = x * y + x;
|
|
||||||
printf ("%p", (char*)(int)z);
|
|
||||||
],
|
|
||||||
[AC_MSG_RESULT(yes)],
|
|
||||||
[
|
|
||||||
AC_MSG_RESULT(no)
|
|
||||||
ac_cv_sizeof___float128=0
|
|
||||||
]
|
|
||||||
)
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl Quadmath functions may not be in the default c library.
|
|
||||||
dnl Find a library containing them. Disable the float128 type
|
|
||||||
dnl if they are not available.
|
|
||||||
if test ${ac_cv_sizeof___float128} -gt 0
|
|
||||||
then
|
|
||||||
AC_CHECK_FUNCS([quadmath_snprintf])
|
|
||||||
if test "$ac_cv_func_quadmath_snprintf" = "no"
|
|
||||||
then
|
|
||||||
OLDLIBS="$LIBS"
|
|
||||||
LIBS="$LIBM $LIBS"
|
|
||||||
AC_CHECK_FUNCS([quadmath_snprintf])
|
|
||||||
LIBS="$OLDLIBS"
|
|
||||||
|
|
||||||
if test "$ac_cv_func_quadmath_snprintf" = "no"
|
|
||||||
then
|
|
||||||
dnl quadmath_snprintf not avalable in the
|
|
||||||
dnl standard math lib.
|
|
||||||
|
|
||||||
AC_CHECK_LIB([quadmath], [quadmath_snprintf], [
|
|
||||||
QUADMATH_LIBS="-lquadmath"
|
|
||||||
LIBM="$LIBM -lquadmath"
|
|
||||||
AC_DEFINE(HAVE_QUADMATH_SNPRINTF, 1)
|
|
||||||
])
|
|
||||||
|
|
||||||
if test "$ac_cv_lib_quadmath_quadmath_snprintf" = "no"
|
|
||||||
then
|
|
||||||
dnl quadmath_snprintf not avalable in the
|
|
||||||
dnl quadmath lib.
|
|
||||||
|
|
||||||
ac_cv_sizeof___float128=0
|
|
||||||
fi
|
|
||||||
|
|
||||||
else
|
|
||||||
QUADMATH_LIBS="$LIBM"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test ${ac_cv_sizeof___float128} -gt 0
|
|
||||||
then
|
|
||||||
OLDLIBS="$LIBS"
|
|
||||||
LIBS="$LIBM $LIBS"
|
|
||||||
AC_CHECK_FUNCS([powq fmodq sinq cosq tanq sinhq coshq tanhq asinq acosq atanq atan2q logq log10q expq sqrtq ceilq floorq roundq])
|
|
||||||
AC_CHECK_FUNCS([strtoflt128])
|
|
||||||
LIBS="$OLDLIBS"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
AC_SUBST(QUADMATH_LIBS)
|
|
||||||
|
|
||||||
|
|
||||||
AC_DEFINE_UNQUOTED(MIO_SIZEOF_CHAR, ${ac_cv_sizeof_char}, [sizeof(char)])
|
AC_DEFINE_UNQUOTED(MIO_SIZEOF_CHAR, ${ac_cv_sizeof_char}, [sizeof(char)])
|
||||||
AC_DEFINE_UNQUOTED(MIO_SIZEOF_SHORT, ${ac_cv_sizeof_short}, [sizeof(short)])
|
AC_DEFINE_UNQUOTED(MIO_SIZEOF_SHORT, ${ac_cv_sizeof_short}, [sizeof(short)])
|
||||||
AC_DEFINE_UNQUOTED(MIO_SIZEOF_INT, ${ac_cv_sizeof_int}, [sizeof(int)])
|
AC_DEFINE_UNQUOTED(MIO_SIZEOF_INT, ${ac_cv_sizeof_int}, [sizeof(int)])
|
||||||
|
Loading…
Reference in New Issue
Block a user