2003-03-28 06:11:03 +00:00
|
|
|
# This file is generated from configure.in by Autoconf. DO NOT EDIT!
|
|
|
|
# Local configure fragment for sysdeps/unix/sysv/linux/mips.
|
|
|
|
|
2012-10-29 18:42:39 +00:00
|
|
|
|
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
|
/* end confdefs.h. */
|
|
|
|
|
|
|
|
#if (_MIPS_SIM != _ABIO32)
|
|
|
|
#error Not O32 ABI
|
|
|
|
#endif
|
|
|
|
int
|
|
|
|
main ()
|
|
|
|
{
|
|
|
|
|
|
|
|
;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
_ACEOF
|
|
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
|
|
libc_mips_abi=o32
|
|
|
|
else
|
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
|
/* end confdefs.h. */
|
|
|
|
|
|
|
|
#if (_MIPS_SIM != _ABIN32)
|
|
|
|
#error Not N32 ABI
|
|
|
|
#endif
|
|
|
|
int
|
|
|
|
main ()
|
|
|
|
{
|
|
|
|
|
|
|
|
;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
_ACEOF
|
|
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
|
|
libc_mips_abi=n32
|
|
|
|
else
|
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
|
/* end confdefs.h. */
|
|
|
|
|
|
|
|
#if (_MIPS_SIM != _ABI64)
|
|
|
|
#error Not 64 ABI
|
|
|
|
#endif
|
|
|
|
int
|
|
|
|
main ()
|
|
|
|
{
|
|
|
|
|
|
|
|
;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
_ACEOF
|
|
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
|
|
libc_mips_abi=n64
|
|
|
|
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
|
|
|
|
|
|
|
|
if test -z "$libc_mips_abi"; then
|
2012-11-01 17:04:56 +00:00
|
|
|
as_fn_error $? "could not determine what ABI the compiler is using" "$LINENO" 5
|
2012-10-29 18:42:39 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
|
/* end confdefs.h. */
|
|
|
|
|
|
|
|
#if !defined(__mips_soft_float)
|
|
|
|
#error Not soft ABI
|
|
|
|
#endif
|
|
|
|
int
|
|
|
|
main ()
|
|
|
|
{
|
|
|
|
|
|
|
|
;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
_ACEOF
|
|
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
|
|
libc_mips_float=soft
|
|
|
|
else
|
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
|
/* end confdefs.h. */
|
|
|
|
|
|
|
|
#if !defined(__mips_hard_float)
|
|
|
|
#error Not hard ABI
|
|
|
|
#endif
|
|
|
|
int
|
|
|
|
main ()
|
|
|
|
{
|
|
|
|
|
|
|
|
;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
_ACEOF
|
|
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
|
|
libc_mips_float=hard
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
|
|
|
if test -z "$libc_mips_float"; then
|
2012-11-01 17:04:56 +00:00
|
|
|
as_fn_error $? "could not determine if compiler is using hard or soft floating point ABI" "$LINENO" 5
|
2012-10-29 18:42:39 +00:00
|
|
|
fi
|
|
|
|
|
2013-03-21 00:41:56 +00:00
|
|
|
config_vars="$config_vars
|
|
|
|
default-abi = ${libc_mips_abi}_${libc_mips_float}"
|
2012-10-29 18:42:39 +00:00
|
|
|
|
2006-03-11 16:18:41 +00:00
|
|
|
case "$prefix" in
|
|
|
|
/usr | /usr/)
|
|
|
|
# 64-bit libraries on bi-arch platforms go in /lib64 instead of /lib.
|
|
|
|
# Allow earlier configure scripts to handle libc_cv_slibdir, libdir,
|
|
|
|
# and libc_cv_localedir.
|
|
|
|
test -n "$libc_cv_slibdir" || \
|
|
|
|
case $machine in
|
|
|
|
mips/mips64/n64/* )
|
|
|
|
libc_cv_slibdir="/lib64"
|
|
|
|
if test "$libdir" = '${exec_prefix}/lib'; then
|
|
|
|
libdir='${exec_prefix}/lib64';
|
|
|
|
# Locale data can be shared between 32bit and 64bit libraries
|
|
|
|
libc_cv_localedir='${exec_prefix}/lib/locale'
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
mips/mips64/n32/* )
|
|
|
|
libc_cv_slibdir="/lib32"
|
|
|
|
if test "$libdir" = '${exec_prefix}/lib'; then
|
|
|
|
libdir='${exec_prefix}/lib32';
|
|
|
|
# Locale data can be shared between 32bit and 64bit libraries
|
|
|
|
libc_cv_localedir='${exec_prefix}/lib/locale'
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
libc_cv_slibdir="/lib"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
esac
|
|
|
|
|
2012-08-07 16:40:32 +00:00
|
|
|
libc_cv_gcc_unwind_find_fde=yes
|