gcc_AC_C_LONG_DOUBLE
-AC_MSG_CHECKING(whether ${CC-cc} accepts -Wno-long-long)
-echo 'void f(){}' > conftest.c
-if test -z "`${CC-cc} -Wno-long-long -c conftest.c 2>&1`"; then
- ac_cv_prog_cc_no_long_long=yes
-else
- ac_cv_prog_cc_no_long_long=no
-fi
-rm -f conftest*
-echo "$ac_t"$ac_cv_prog_cc_no_long_long 1>&6
+AC_CACHE_CHECK(whether ${CC-cc} accepts -Wno-long-long,
+ac_cv_prog_cc_no_long_long,
+[save_CFLAGS="$CFLAGS"
+CFLAGS="-Wno-long-long"
+AC_TRY_COMPILE(,,ac_cv_prog_cc_no_long_long=yes,
+ ac_cv_prog_cc_no_long_long=no)
+CFLAGS="$save_CFLAGS"])
# If the native compiler is GCC, we can enable warnings even in stage1.
# That's useful for people building cross-compilers, or just running a
AC_CHECK_TYPE(ssize_t, int)
+# Try to determine the array type of the second argument of getgroups
+# for the target system (int or gid_t).
+AC_TYPE_GETGROUPS
+if test "${target}" = "${build}"; then
+ TARGET_GETGROUPS_T=$ac_cv_type_getgroups
+else
+ case "${target}" in
+ # This condition may need some tweaking. It should include all
+ # targets where the array type of the second argument of getgroups
+ # is int and the type of gid_t is not equivalent to int.
+ *-*-sunos* | *-*-ultrix*)
+ TARGET_GETGROUPS_T=int
+ ;;
+ *)
+ TARGET_GETGROUPS_T=gid_t
+ ;;
+ esac
+fi
+AC_SUBST(TARGET_GETGROUPS_T)
+
gcc_AC_FUNC_VFPRINTF_DOPRNT
gcc_AC_FUNC_PRINTF_PTR
if test x$enable_threads = x; then
enable_threads=$have_pthread_h
fi
- if test x$enable_threads = xyes; then
- thread_file='dce'
+ case x${enable_threads} in
+ xyes | xdce)
tmake_file="${tmake_file} pa/t-dce-thr"
- fi
+ ;;
+ esac
install_headers_dir=install-headers-cpio
use_collect2=yes
;;
if test x$enable_threads = x; then
enable_threads=$have_pthread_h
fi
- if test x$enable_threads = xyes; then
- thread_file='dce'
+ case x${enable_threads} in
+ xyes | xdce)
tmake_file="${tmake_file} pa/t-dce-thr"
- fi
+ ;;
+ esac
install_headers_dir=install-headers-cpio
use_collect2=yes
;;
tmake_file=i386/t-i386bare
;;
changequote(,)dnl
- i[34567]86-*-beospe*)
-changequote([,])dnl
- xm_file=i386/xm-beos.h
- xm_defines="USE_C_ALLOCA"
- tmake_file=i386/t-beos
- tm_file=i386/beos-pe.h
- xmake_file=i386/x-beos
- extra_objs=winnt.o
- ;;
-changequote(,)dnl
i[34567]86-*-beoself* | i[34567]86-*-beos*)
changequote([,])dnl
xm_file=i386/xm-beos.h
tmake_file='i386/t-beos i386/t-crtpic'
tm_file=i386/beos-elf.h
xmake_file=i386/x-beos
- extra_objs=winnt.o
extra_parts='crtbegin.o crtend.o'
;;
changequote(,)dnl
# On NetBSD, the headers are already okay, except for math.h.
tmake_file=t-netbsd
;;
- mips*-*-linux*) # Linux MIPS, either endian.
+ mips*-*-linux*) # Linux MIPS, either endian.
xmake_file=x-linux
- case $machine in
- mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
- *) tm_file="mips/elf.h mips/linux.h" ;;
- esac
+ case $machine in
+ mips*el-*) tm_file="mips/elfl.h mips/linux.h" ;;
+ *) tm_file="mips/elf.h mips/linux.h" ;;
+ esac
+ tmake_file=t-linux
extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
gnu_ld=yes
gas=yes
- if test x$enable_threads = xyes; then
- thread_file='posix'
- fi
+ if test x$enable_threads = xyes; then
+ thread_file='posix'
+ fi
;;
mips*el-*-openbsd*) # mips little endian
target_cpu_default="MASK_GAS|MASK_ABICALLS"
;;
vax-*-openbsd*)
tmake_file="${tmake_file} vax/t-openbsd"
+ tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
+ xm_file="xm-openbsd.h vax/xm-vax.h"
+ float_format=vax
+ use_collect2=yes
;;
vax-*-ultrix*) # vaxen running ultrix
tm_file="${tm_file} vax/ultrix.h"