1 # This is the target specific configuration file. This is invoked by the
2 # autoconf generated configure script. Putting it in a separate shell file
3 # lets us skip running autoconf when modifying target specific information.
5 # This file switches on the shell variable ${target}, and sets the
6 # following shell variables:
7 # config_path An ordered list of directories to search for
8 # sources and headers. This is relative to the
9 # config subdirectory of the source tree.
10 # XCFLAGS Add extra compile flags to use.
11 # XLDFLAGS Add extra link flags to use.
13 # Optimize TLS usage by avoiding the overhead of dynamic allocation.
14 if test $have_tls = yes ; then
18 XCFLAGS="${XCFLAGS} -ftls-model=initial-exec"
23 # Since we require POSIX threads, assume a POSIX system by default.
26 # Check for futex enabled all at once.
27 if test $enable_linux_futex = yes; then
31 config_path="linux/alpha linux posix"
35 config_path="linux/ia64 linux posix"
39 config_path="linux/powerpc linux posix"
43 config_path="linux/s390 linux posix"
46 # Note that bare i386 is not included here. We need cmpxchg.
48 config_path="linux/x86 linux posix"
49 case " ${CC} ${CFLAGS} " in
53 if test -z "$with_arch"; then
54 XCFLAGS="${XCFLAGS} -march=i486 -mtune=${target_cpu}"
59 # Similar jiggery-pokery for x86_64 multilibs, except here we
60 # can't rely on the --with-arch configure option, since that
61 # applies to the 64-bit side.
63 config_path="linux/x86 linux posix"
64 case " ${CC} ${CFLAGS} " in
66 XCFLAGS="${XCFLAGS} -march=i486 -mtune=i686"
71 # Note that sparcv7 and sparcv8 is not included here. We need cas.
72 sparcv9-*-linux* | sparc64-*-linux*)
73 echo "int i;" > conftestx.c
74 if ${CC} ${CFLAGS} -c -o conftestx.o conftestx.c > /dev/null 2>&1; then
75 config_path="linux/sparc linux posix"
76 case "`/usr/bin/file conftestx.o`" in
78 case " ${CC} ${CFLAGS}" in
79 *" -mcpu=ultrasparc"*)
82 XCFLAGS="${XCFLAGS} -mcpu=v9"
88 rm -f conftestx.c conftestx.o
93 # Other system configury
97 # HPUX v11.x requires -lrt to resolve sem_init in libgomp.la
98 XLDFLAGS="${XLDFLAGS} -lrt"
102 config_path="mingw32 posix"
106 config_path="posix95 posix"
107 XLDFLAGS="${XLDFLAGS} -lposix4"