1 dnl For each directory which we may or may not want, we define a name
2 dnl for the library and an automake conditional for whether we should
5 AM_CONDITIONAL(HAVE_SIGNAL_DIR, test x${signal_dir} != x)
6 AM_CONDITIONAL(HAVE_STDIO_DIR, test x${stdio_dir} != x)
7 AM_CONDITIONAL(HAVE_STDIO64_DIR, test x${stdio64_dir} != x)
8 AM_CONDITIONAL(HAVE_POSIX_DIR, test x${posix_dir} != x)
9 AM_CONDITIONAL(HAVE_XDR_DIR, test x${xdr_dir} != x)
10 AM_CONDITIONAL(HAVE_SYSCALL_DIR, test x${syscall_dir} != x)
11 AM_CONDITIONAL(HAVE_UNIX_DIR, test x${unix_dir} != x)
13 dnl We always recur into sys and machine, and let them decide what to do.
14 m4_foreach_w([SYS_DIR], [
23 sh sysmec sysnec810 sysnecv850 sysvi386 sysvnecv70
27 ], [AM_CONDITIONAL([HAVE_LIBC_SYS_]m4_toupper(SYS_DIR)[_DIR], test "${sys_dir}" = SYS_DIR)])
30 AM_CONDITIONAL(HAVE_LONG_DOUBLE, test x"$ac_cv_type_long_double" = x"yes")
32 dnl iconv library will be compiled if --enable-newlib-iconv option is enabled
33 AM_CONDITIONAL(ENABLE_NEWLIB_ICONV, test x${newlib_iconv} != x)
35 dnl We have to include these unconditionally since machines might want to use
36 dnl AM_CONDITIONAL in their subdirs.
37 m4_include([libc/machine/nds32/acinclude.m4])
38 m4_include([libc/machine/powerpc/acinclude.m4])
39 m4_include([libc/machine/sh/acinclude.m4])
40 m4_include([libc/machine/spu/acinclude.m4])
41 m4_include([libc/machine/xtensa/acinclude.m4])
43 m4_foreach_w([MACHINE], [
44 aarch64 amdgcn arc arc64 arm
53 m32c m32r m68hc11 m68k m88k mep microblaze mips mn10200 mn10300 moxie msp430 mt
54 nds32 necv70 nios2 nvptx
62 x86_64 xc16x xstormy16 xtensa
64 ], [AM_CONDITIONAL([HAVE_LIBC_MACHINE_]m4_toupper(MACHINE), test "${machine_dir}" = MACHINE)])
66 AM_CONDITIONAL(HAVE_FPMATH_H, test -r "${srcdir}/libc/machine/${machine_dir}/machine/_fpmath.h")
69 AM_CONDITIONAL(MACH_ADD_SETJMP, test "x$mach_add_setjmp" = "xtrue")