| 1 | #! /bin/bash
|
|---|
| 2 | ##############################################################################
|
|---|
| 3 |
|
|---|
| 4 | ## This file is a shell script fragment that supplies the information
|
|---|
| 5 | ## necessary to tailor a template configure script into the configure
|
|---|
| 6 | ## script appropriate for this directory. For more information, check
|
|---|
| 7 | ## any existing configure script.
|
|---|
| 8 |
|
|---|
| 9 | ## Be warned, there are two types of configure.in files. There are those
|
|---|
| 10 | ## used by Autoconf, which are macros which are expanded into a configure
|
|---|
| 11 | ## script by autoconf. The other sort, of which this is one, is executed
|
|---|
| 12 | ## by Cygnus configure.
|
|---|
| 13 |
|
|---|
| 14 | ## For more information on these two systems, check out the documentation
|
|---|
| 15 | ## for 'Autoconf' (autoconf.texi) and 'Configure' (configure.texi).
|
|---|
| 16 |
|
|---|
| 17 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998,
|
|---|
| 18 | # 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
|
|---|
| 19 | #
|
|---|
| 20 | # This file is free software; you can redistribute it and/or modify it
|
|---|
| 21 | # under the terms of the GNU General Public License as published by
|
|---|
| 22 | # the Free Software Foundation; either version 2 of the License, or
|
|---|
| 23 | # (at your option) any later version.
|
|---|
| 24 | #
|
|---|
| 25 | # This program is distributed in the hope that it will be useful, but
|
|---|
| 26 | # WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 27 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|---|
| 28 | # General Public License for more details.
|
|---|
| 29 | #
|
|---|
| 30 | # You should have received a copy of the GNU General Public License
|
|---|
| 31 | # along with this program; if not, write to the Free Software
|
|---|
| 32 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|---|
| 33 |
|
|---|
| 34 | ##############################################################################
|
|---|
| 35 |
|
|---|
| 36 | ### To add a new directory to the tree, first choose whether it is a target
|
|---|
| 37 | ### or a host dependent tool. Then put it into the appropriate list
|
|---|
| 38 | ### (library or tools, host or target), doing a dependency sort. For
|
|---|
| 39 | ### example, gdb requires that byacc (or bison) be built first, so it is in
|
|---|
| 40 | ### the ${host_tools} list after byacc and bison.
|
|---|
| 41 |
|
|---|
| 42 |
|
|---|
| 43 | # these libraries are used by various programs built for the host environment
|
|---|
| 44 | #
|
|---|
| 45 | host_libs="intl mmalloc libiberty opcodes bfd readline gash db tcl tk tcl8.1 tk8.1 tclX itcl tix libgui zlib"
|
|---|
| 46 |
|
|---|
| 47 | if [ "${enable_gdbgui}" = "yes" ] ; then
|
|---|
| 48 | host_libs="${host_libs} libgui"
|
|---|
| 49 | fi
|
|---|
| 50 |
|
|---|
| 51 | libstdcxx_version="target-libstdc++-v3"
|
|---|
| 52 | # Don't use libstdc++-v3's flags to configure/build itself.
|
|---|
| 53 | libstdcxx_flags='`case $$dir in libstdc++-v3 | libjava) ;; *) test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/testsuite_flags --build-includes;; esac` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
|
|---|
| 54 |
|
|---|
| 55 | # these tools are built for the host environment
|
|---|
| 56 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
|
|---|
| 57 | # know that we are building the simulator.
|
|---|
| 58 | host_tools="texinfo byacc flex bison binutils ld gas gcc sim gdb make patch prms send-pr gprof gdbtest tgas etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool ispell grep diff rcs cvssrc fileutils shellutils time textutils wdiff find emacs emacs19 uudecode hello tar gzip indent recode release sed utils guile perl apache inet gawk findutils snavigator libtool gettext zip fastjar"
|
|---|
| 59 |
|
|---|
| 60 | # libgcj represents the runtime libraries only used by gcj.
|
|---|
| 61 | libgcj="target-libffi \
|
|---|
| 62 | target-boehm-gc \
|
|---|
| 63 | target-zlib \
|
|---|
| 64 | target-qthreads \
|
|---|
| 65 | target-libjava"
|
|---|
| 66 |
|
|---|
| 67 | # these libraries are built for the target environment, and are built after
|
|---|
| 68 | # the host libraries and the host tools (which may be a cross compiler)
|
|---|
| 69 | #
|
|---|
| 70 | target_libs="target-libiberty \
|
|---|
| 71 | target-libgloss \
|
|---|
| 72 | target-newlib \
|
|---|
| 73 | target-librx \
|
|---|
| 74 | ${libstdcxx_version} \
|
|---|
| 75 | target-libf2c \
|
|---|
| 76 | ${libgcj}
|
|---|
| 77 | target-libobjc"
|
|---|
| 78 |
|
|---|
| 79 | # these tools are built using the target libs, and are intended to run only
|
|---|
| 80 | # in the target environment
|
|---|
| 81 | #
|
|---|
| 82 | # note: any program that *uses* libraries that are in the "target_libs"
|
|---|
| 83 | # list belongs in this list. those programs are also very likely
|
|---|
| 84 | # candidates for the "native_only" list which follows
|
|---|
| 85 | #
|
|---|
| 86 | target_tools="target-examples target-groff target-gperf"
|
|---|
| 87 |
|
|---|
| 88 | ################################################################################
|
|---|
| 89 |
|
|---|
| 90 | ## These two lists are of directories that are to be removed from the
|
|---|
| 91 | ## ${configdirs} list for either cross-compilations or for native-
|
|---|
| 92 | ## compilations. For example, it doesn't make that much sense to
|
|---|
| 93 | ## cross-compile Emacs, nor is it terribly useful to compile target-libiberty in
|
|---|
| 94 | ## a native environment.
|
|---|
| 95 |
|
|---|
| 96 | # directories to be built in the native environment only
|
|---|
| 97 | #
|
|---|
| 98 | # This must be a single line because of the way it is searched by grep in
|
|---|
| 99 | # the code below.
|
|---|
| 100 | native_only="autoconf automake libtool cvssrc emacs emacs19 fileutils find gawk gettext grep gzip hello indent ispell m4 rcs recode sed shellutils tar textutils gash uudecode wdiff gprof target-groff guile perl apache inet time ash bash bzip2 prms snavigator gnuserv target-gperf"
|
|---|
| 101 |
|
|---|
| 102 | # directories to be built in a cross environment only
|
|---|
| 103 | #
|
|---|
| 104 | cross_only="target-libgloss target-newlib target-cygmon target-opcodes target-libstub"
|
|---|
| 105 |
|
|---|
| 106 | ## All tools belong in one of the four categories, and are assigned above
|
|---|
| 107 | ## We assign ${configdirs} this way to remove all embedded newlines. This
|
|---|
| 108 | ## is important because configure will choke if they ever get through.
|
|---|
| 109 | ## ${configdirs} is directories we build using the host tools.
|
|---|
| 110 | ## ${target_configdirs} is directories we build using the target tools.
|
|---|
| 111 | #
|
|---|
| 112 | configdirs=`echo ${host_libs} ${host_tools}`
|
|---|
| 113 | target_configdirs=`echo ${target_libs} ${target_tools}`
|
|---|
| 114 |
|
|---|
| 115 | ################################################################################
|
|---|
| 116 |
|
|---|
| 117 | srctrigger=move-if-change
|
|---|
| 118 | srcname="gnu development package"
|
|---|
| 119 |
|
|---|
| 120 | # This gets set non-empty for some net releases of packages.
|
|---|
| 121 | appdirs=""
|
|---|
| 122 |
|
|---|
| 123 | # per-host:
|
|---|
| 124 |
|
|---|
| 125 | # Work in distributions that contain no compiler tools, like Autoconf.
|
|---|
| 126 | if [ -d ${srcdir}/config ]; then
|
|---|
| 127 | case "${host}" in
|
|---|
| 128 | m68k-hp-hpux*)
|
|---|
| 129 | host_makefile_frag="${host_makefile_frag} config/mh-hp300"
|
|---|
| 130 | ;;
|
|---|
| 131 | m68k-apollo-sysv*)
|
|---|
| 132 | host_makefile_frag="${host_makefile_frag} config/mh-apollo68"
|
|---|
| 133 | ;;
|
|---|
| 134 | m68k-apollo-bsd*)
|
|---|
| 135 | host_makefile_frag="${host_makefile_frag} config/mh-a68bsd"
|
|---|
| 136 | ;;
|
|---|
| 137 | m88k-dg-dgux*)
|
|---|
| 138 | host_makefile_frag="${host_makefile_frag} config/mh-dgux"
|
|---|
| 139 | ;;
|
|---|
| 140 | m88k-harris-cxux*)
|
|---|
| 141 | host_makefile_frag="${host_makefile_frag} config/mh-cxux"
|
|---|
| 142 | ;;
|
|---|
| 143 | m88k-motorola-sysv*)
|
|---|
| 144 | host_makefile_frag="${host_makefile_frag} config/mh-delta88"
|
|---|
| 145 | ;;
|
|---|
| 146 | mips*-dec-ultrix*)
|
|---|
| 147 | host_makefile_frag="${host_makefile_frag} config/mh-decstation"
|
|---|
| 148 | ;;
|
|---|
| 149 | mips*-nec-sysv4*)
|
|---|
| 150 | host_makefile_frag="${host_makefile_frag} config/mh-necv4"
|
|---|
| 151 | ;;
|
|---|
| 152 | mips*-sgi-irix6*)
|
|---|
| 153 | host_makefile_frag="${host_makefile_frag} config/mh-irix6"
|
|---|
| 154 | ;;
|
|---|
| 155 | mips*-sgi-irix5*)
|
|---|
| 156 | host_makefile_frag="${host_makefile_frag} config/mh-irix5"
|
|---|
| 157 | ;;
|
|---|
| 158 | mips*-sgi-irix4*)
|
|---|
| 159 | host_makefile_frag="${host_makefile_frag} config/mh-irix4"
|
|---|
| 160 | ;;
|
|---|
| 161 | mips*-sgi-irix3*)
|
|---|
| 162 | host_makefile_frag="${host_makefile_frag} config/mh-sysv"
|
|---|
| 163 | ;;
|
|---|
| 164 | mips*-*-sysv4*)
|
|---|
| 165 | host_makefile_frag="${host_makefile_frag} config/mh-sysv4"
|
|---|
| 166 | ;;
|
|---|
| 167 | mips*-*-sysv*)
|
|---|
| 168 | host_makefile_frag="${host_makefile_frag} config/mh-riscos"
|
|---|
| 169 | ;;
|
|---|
| 170 | i370-ibm-opened*)
|
|---|
| 171 | host_makefile_frag="${host_makefile_frag} config/mh-openedition"
|
|---|
| 172 | ;;
|
|---|
| 173 | i[3456]86-*-sysv5*)
|
|---|
| 174 | host_makefile_frag="${host_makefile_frag} config/mh-sysv5"
|
|---|
| 175 | ;;
|
|---|
| 176 | i[3456]86-*-dgux*)
|
|---|
| 177 | host_makefile_frag="${host_makefile_frag} config/mh-dgux386"
|
|---|
| 178 | ;;
|
|---|
| 179 | i[3456]86-ncr-sysv4.3*)
|
|---|
| 180 | host_makefile_frag="${host_makefile_frag} config/mh-ncrsvr43"
|
|---|
| 181 | ;;
|
|---|
| 182 | i[3456]86-ncr-sysv4*)
|
|---|
| 183 | host_makefile_frag="${host_makefile_frag} config/mh-ncr3000"
|
|---|
| 184 | ;;
|
|---|
| 185 | i[3456]86-*-sco3.2v5*)
|
|---|
| 186 | host_makefile_frag="${host_makefile_frag} config/mh-sysv"
|
|---|
| 187 | ;;
|
|---|
| 188 | i[3456]86-*-sco*)
|
|---|
| 189 | host_makefile_frag="${host_makefile_frag} config/mh-sco"
|
|---|
| 190 | ;;
|
|---|
| 191 | i[3456]86-*-udk*)
|
|---|
| 192 | host_makefile_frag="${host_makefile_frag} config/mh-sysv5"
|
|---|
| 193 | ;;
|
|---|
| 194 | i[3456]86-*-isc*)
|
|---|
| 195 | host_makefile_frag="${host_makefile_frag} config/mh-sysv"
|
|---|
| 196 | ;;
|
|---|
| 197 | i[3456]86-*-solaris2*)
|
|---|
| 198 | host_makefile_frag="${host_makefile_frag} config/mh-sysv4"
|
|---|
| 199 | ;;
|
|---|
| 200 | i[3456]86-*-aix*)
|
|---|
| 201 | host_makefile_frag="${host_makefile_frag} config/mh-aix386"
|
|---|
| 202 | ;;
|
|---|
| 203 | i[3456]86-*-msdosdjgpp*)
|
|---|
| 204 | host_makefile_frag="${host_makefile_frag} config/mh-djgpp"
|
|---|
| 205 | ;;
|
|---|
| 206 | *-cygwin*)
|
|---|
| 207 | host_makefile_frag="${host_makefile_frag} config/mh-cygwin"
|
|---|
| 208 | ;;
|
|---|
| 209 | *-mingw32*)
|
|---|
| 210 | host_makefile_frag="${host_makefile_frag} config/mh-mingw32"
|
|---|
| 211 | ;;
|
|---|
| 212 | *-interix*)
|
|---|
| 213 | host_makefile_frag="${host_makefile_frag} config/mh-interix"
|
|---|
| 214 | ;;
|
|---|
| 215 | *-windows*)
|
|---|
| 216 | host_makefile_frag="${host_makefile_frag} config/mh-windows"
|
|---|
| 217 | ;;
|
|---|
| 218 | vax-*-ultrix2*)
|
|---|
| 219 | host_makefile_frag="${host_makefile_frag} config/mh-vaxult2"
|
|---|
| 220 | ;;
|
|---|
| 221 | *-*-solaris2*)
|
|---|
| 222 | host_makefile_frag="${host_makefile_frag} config/mh-solaris"
|
|---|
| 223 | ;;
|
|---|
| 224 | m68k-sun-sunos*)
|
|---|
| 225 | host_makefile_frag="${host_makefile_frag} config/mh-sun3"
|
|---|
| 226 | ;;
|
|---|
| 227 | *-hp-hpux[78]*)
|
|---|
| 228 | host_makefile_frag="${host_makefile_frag} config/mh-hpux8"
|
|---|
| 229 | ;;
|
|---|
| 230 | *-hp-hpux*)
|
|---|
| 231 | host_makefile_frag="${host_makefile_frag} config/mh-hpux"
|
|---|
| 232 | ;;
|
|---|
| 233 | *-*-hiux*)
|
|---|
| 234 | host_makefile_frag="${host_makefile_frag} config/mh-hpux"
|
|---|
| 235 | ;;
|
|---|
| 236 | rs6000-*-lynxos*)
|
|---|
| 237 | host_makefile_frag="${host_makefile_frag} config/mh-lynxrs6k"
|
|---|
| 238 | ;;
|
|---|
| 239 | *-*-lynxos*)
|
|---|
| 240 | host_makefile_frag="${host_makefile_frag} config/mh-lynxos"
|
|---|
| 241 | ;;
|
|---|
| 242 | *-*-sysv4*)
|
|---|
| 243 | host_makefile_frag="${host_makefile_frag} config/mh-sysv4"
|
|---|
| 244 | ;;
|
|---|
| 245 | *-*-sysv*)
|
|---|
| 246 | host_makefile_frag="${host_makefile_frag} config/mh-sysv"
|
|---|
| 247 | ;;
|
|---|
| 248 | i[3456]86-*-os2*)
|
|---|
| 249 | host_makefile_frag="${host_makefile_frag} config/mh-emx"
|
|---|
| 250 | ;;
|
|---|
| 251 | esac
|
|---|
| 252 | fi
|
|---|
| 253 |
|
|---|
| 254 | # If we aren't going to be using gcc, see if we can extract a definition
|
|---|
| 255 | # of CC from the fragment.
|
|---|
| 256 | if [ -z "${CC}" ] && [ "${build}" = "${host}" ]; then
|
|---|
| 257 | IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
|
|---|
| 258 | found=
|
|---|
| 259 | for dir in $PATH; do
|
|---|
| 260 | test -z "$dir" && dir=.
|
|---|
| 261 | if test -f $dir/gcc; then
|
|---|
| 262 | found=yes
|
|---|
| 263 | break
|
|---|
| 264 | fi
|
|---|
| 265 | done
|
|---|
| 266 | IFS="$save_ifs"
|
|---|
| 267 | if [ -z "${found}" ] && [ -n "${host_makefile_frag}" ] && [ -f "${srcdir}/${host_makefile_frag}" ]; then
|
|---|
| 268 | xx=`sed -n -e 's/^[ ]*CC[ ]*=[ ]*\(.*\)$/\1/p' < ${srcdir}/${host_makefile_frag}`
|
|---|
| 269 | if [ -n "${xx}" ] ; then
|
|---|
| 270 | CC=$xx
|
|---|
| 271 | fi
|
|---|
| 272 | fi
|
|---|
| 273 | fi
|
|---|
| 274 |
|
|---|
| 275 | # We default to --with-shared on platforms where -fpic is meaningless.
|
|---|
| 276 | # Well, we don't yet, but we will.
|
|---|
| 277 | if false && [ "${host}" = "${target}" ] && [ x${enable_shared} = x ]; then
|
|---|
| 278 | case "${target}" in
|
|---|
| 279 | alpha*-dec-osf*) enable_shared=yes ;;
|
|---|
| 280 | alpha*-*-linux*) enable_shared=yes ;;
|
|---|
| 281 | mips-sgi-irix5*) enable_shared=yes ;;
|
|---|
| 282 | *) enable_shared=no ;;
|
|---|
| 283 | esac
|
|---|
| 284 | fi
|
|---|
| 285 |
|
|---|
| 286 | # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
|
|---|
| 287 | # them automatically.
|
|---|
| 288 | case "${host}" in
|
|---|
| 289 | hppa*64*-*-hpux11*)
|
|---|
| 290 | withoptions="$withoptions -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
|
|---|
| 291 | ;;
|
|---|
| 292 | esac
|
|---|
| 293 |
|
|---|
| 294 | case "${enable_shared}" in
|
|---|
| 295 | yes) shared=yes ;;
|
|---|
| 296 | no) shared=no ;;
|
|---|
| 297 | "") shared=no ;;
|
|---|
| 298 | *) shared=yes ;;
|
|---|
| 299 | esac
|
|---|
| 300 |
|
|---|
| 301 | if [ x${shared} = xyes ]; then
|
|---|
| 302 | case "${host}" in
|
|---|
| 303 | alpha*-*-linux*)
|
|---|
| 304 | host_makefile_frag="${host_makefile_frag} config/mh-elfalphapic"
|
|---|
| 305 | ;;
|
|---|
| 306 | arm*-*-*)
|
|---|
| 307 | host_makefile_frag="${host_makefile_frag} config/mh-armpic"
|
|---|
| 308 | ;;
|
|---|
| 309 | parisc*-*-* | hppa*-*-*)
|
|---|
| 310 | host_makefile_frag="${host_makefile_frag} config/mh-papic"
|
|---|
| 311 | ;;
|
|---|
| 312 | i[3456]86-*-cygwin*)
|
|---|
| 313 | # We don't want -fPIC on Cygwin.
|
|---|
| 314 | ;;
|
|---|
| 315 | i[3456]86-*-os2-emx)
|
|---|
| 316 | # We don't want -fPIC on OS/2 EMX.
|
|---|
| 317 | ;;
|
|---|
| 318 | i[3456]86-*-*)
|
|---|
| 319 | host_makefile_frag="${host_makefile_frag} config/mh-x86pic"
|
|---|
| 320 | ;;
|
|---|
| 321 | i370-*-*)
|
|---|
| 322 | host_makefile_frag="${host_makefile_frag} config/mh-i370pic"
|
|---|
| 323 | ;;
|
|---|
| 324 | ia64-*-*)
|
|---|
| 325 | host_makefile_frag="${host_makefile_frag} config/mh-ia64pic"
|
|---|
| 326 | ;;
|
|---|
| 327 | sparc64-*-*)
|
|---|
| 328 | host_makefile_frag="${host_makefile_frag} config/mh-sparcpic"
|
|---|
| 329 | ;;
|
|---|
| 330 | powerpc*-*-aix*)
|
|---|
| 331 | # We don't want -fPIC on AIX.
|
|---|
| 332 | ;;
|
|---|
| 333 | powerpc*-*-*)
|
|---|
| 334 | host_makefile_frag="${host_makefile_frag} config/mh-ppcpic"
|
|---|
| 335 | ;;
|
|---|
| 336 | *-*-*)
|
|---|
| 337 | if test -f ${srcdir}/config/mh-${host_cpu}pic; then
|
|---|
| 338 | host_makefile_frag="${host_makefile_frag} config/mh-${host_cpu}pic"
|
|---|
| 339 | fi
|
|---|
| 340 | ;;
|
|---|
| 341 | esac
|
|---|
| 342 | fi
|
|---|
| 343 |
|
|---|
| 344 | rm -f mh-frag
|
|---|
| 345 | if [ -n "${host_makefile_frag}" ] ; then
|
|---|
| 346 | for f in ${host_makefile_frag}
|
|---|
| 347 | do
|
|---|
| 348 | cat ${srcdir}/$f >> mh-frag
|
|---|
| 349 | done
|
|---|
| 350 | host_makefile_frag=mh-frag
|
|---|
| 351 | fi
|
|---|
| 352 |
|
|---|
| 353 | # per-target:
|
|---|
| 354 |
|
|---|
| 355 | case "${target}" in
|
|---|
| 356 | v810*)
|
|---|
| 357 | target_makefile_frag="${target_makefile_frag} config/mt-v810"
|
|---|
| 358 | ;;
|
|---|
| 359 | i[3456]86-*-netware*)
|
|---|
| 360 | target_makefile_frag="${target_makefile_frag} config/mt-netware"
|
|---|
| 361 | ;;
|
|---|
| 362 | powerpc-*-netware*)
|
|---|
| 363 | target_makefile_frag="${target_makefile_frag} config/mt-netware"
|
|---|
| 364 | ;;
|
|---|
| 365 | alpha*-*-linux*)
|
|---|
| 366 | target_makefile_frag="${target_makefile_frag} config/mt-linux"
|
|---|
| 367 | target_makefile_frag="${target_makefile_frag} config/mt-alphaieee"
|
|---|
| 368 | ;;
|
|---|
| 369 | alpha*-*-*)
|
|---|
| 370 | target_makefile_frag="${target_makefile_frag} config/mt-alphaieee"
|
|---|
| 371 | ;;
|
|---|
| 372 | *-*-linux*)
|
|---|
| 373 | target_makefile_frag="${target_makefile_frag} config/mt-linux"
|
|---|
| 374 | ;;
|
|---|
| 375 | *-*-aix4.[3456789]* | *-*-aix[56789].*)
|
|---|
| 376 | target_makefile_frag="${target_makefile_frag} config/mt-aix43"
|
|---|
| 377 | ;;
|
|---|
| 378 | mips*-*-pe | sh*-*-pe | *arm-wince-pe)
|
|---|
| 379 | target_makefile_frag="${target_makefile_frag} config/mt-wince"
|
|---|
| 380 | ;;
|
|---|
| 381 | esac
|
|---|
| 382 |
|
|---|
| 383 | # If --enable-target-optspace always use -Os instead of -O2 to build
|
|---|
| 384 | # the target libraries, similarly if it is not specified, use -Os
|
|---|
| 385 | # on selected platforms.
|
|---|
| 386 | case "${enable_target_optspace}:${target}" in
|
|---|
| 387 | yes:*)
|
|---|
| 388 | target_makefile_frag="${target_makefile_frag} config/mt-ospace"
|
|---|
| 389 | ;;
|
|---|
| 390 | :d30v-*)
|
|---|
| 391 | target_makefile_frag="${target_makefile_frag} config/mt-d30v"
|
|---|
| 392 | ;;
|
|---|
| 393 | :m32r-* | :d10v-* | :fr30-*)
|
|---|
| 394 | target_makefile_frag="${target_makefile_frag} config/mt-ospace"
|
|---|
| 395 | ;;
|
|---|
| 396 | no:* | :*)
|
|---|
| 397 | ;;
|
|---|
| 398 | *)
|
|---|
| 399 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
|
|---|
| 400 | ;;
|
|---|
| 401 | esac
|
|---|
| 402 |
|
|---|
| 403 | skipdirs=
|
|---|
| 404 | gasdir=gas
|
|---|
| 405 | use_gnu_ld=
|
|---|
| 406 | use_gnu_as=
|
|---|
| 407 |
|
|---|
| 408 | # some tools are so dependent upon X11 that if we're not building with X,
|
|---|
| 409 | # it's not even worth trying to configure, much less build, that tool.
|
|---|
| 410 |
|
|---|
| 411 | case ${with_x} in
|
|---|
| 412 | yes | "") # the default value for this tree is that X11 is available
|
|---|
| 413 | ;;
|
|---|
| 414 | no)
|
|---|
| 415 | skipdirs="${skipdirs} tk libgui gash"
|
|---|
| 416 | ;;
|
|---|
| 417 | *)
|
|---|
| 418 | echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2
|
|---|
| 419 | ;;
|
|---|
| 420 | esac
|
|---|
| 421 |
|
|---|
| 422 | # Some tools are only suitable for building in a "native" situation.
|
|---|
| 423 | # Those are added when we have a host==target configuration. For cross
|
|---|
| 424 | # toolchains, we add some directories that should only be useful in a
|
|---|
| 425 | # cross-compiler.
|
|---|
| 426 |
|
|---|
| 427 | is_cross_compiler=
|
|---|
| 428 |
|
|---|
| 429 | if [ x"${host}" = x"${target}" ] ; then
|
|---|
| 430 | # when doing a native toolchain, don't build the targets
|
|---|
| 431 | # that are in the 'cross only' list
|
|---|
| 432 | skipdirs="${skipdirs} ${cross_only}"
|
|---|
| 433 | is_cross_compiler=no
|
|---|
| 434 | else
|
|---|
| 435 | # similarly, don't build the targets in the 'native only'
|
|---|
| 436 | # list when building a cross compiler
|
|---|
| 437 | skipdirs="${skipdirs} ${native_only}"
|
|---|
| 438 | is_cross_compiler=yes
|
|---|
| 439 | fi
|
|---|
| 440 |
|
|---|
| 441 | # We always want to use the same name for this directory, so that dejagnu
|
|---|
| 442 | # can reliably find it.
|
|---|
| 443 | target_subdir=${target_alias}
|
|---|
| 444 |
|
|---|
| 445 | if [ ! -d ${target_subdir} ] ; then
|
|---|
| 446 | if mkdir ${target_subdir} ; then true
|
|---|
| 447 | else
|
|---|
| 448 | echo "'*** could not make ${PWD=`pwd`}/${target_subdir}" 1>&2
|
|---|
| 449 | exit 1
|
|---|
| 450 | fi
|
|---|
| 451 | fi
|
|---|
| 452 |
|
|---|
| 453 | build_subdir=${build_alias}
|
|---|
| 454 |
|
|---|
| 455 | if [ x"${build_alias}" != x"${host}" ] ; then
|
|---|
| 456 | if [ ! -d ${build_subdir} ] ; then
|
|---|
| 457 | if mkdir ${build_subdir} ; then true
|
|---|
| 458 | else
|
|---|
| 459 | echo "'*** could not make ${PWD=`pwd`}/${build_subdir}" 1>&2
|
|---|
| 460 | exit 1
|
|---|
| 461 | fi
|
|---|
| 462 | fi
|
|---|
| 463 | fi
|
|---|
| 464 |
|
|---|
| 465 | copy_dirs=
|
|---|
| 466 |
|
|---|
| 467 | # Handle --with-headers=XXX. The contents of the named directory are
|
|---|
| 468 | # copied to $(tooldir)/sys-include.
|
|---|
| 469 | if [ x"${with_headers}" != x ]; then
|
|---|
| 470 | if [ x${is_cross_compiler} = xno ]; then
|
|---|
| 471 | echo 1>&2 '***' --with-headers is only supported when cross compiling
|
|---|
| 472 | exit 1
|
|---|
| 473 | fi
|
|---|
| 474 | case "${exec_prefixoption}" in
|
|---|
| 475 | "") x=${prefix} ;;
|
|---|
| 476 | *) x=${exec_prefix} ;;
|
|---|
| 477 | esac
|
|---|
| 478 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
|
|---|
| 479 | fi
|
|---|
| 480 |
|
|---|
| 481 | # Handle --with-libs=XXX. Multiple directories are permitted. The
|
|---|
| 482 | # contents are copied to $(tooldir)/lib.
|
|---|
| 483 | if [ x"${with_libs}" != x ]; then
|
|---|
| 484 | if [ x${is_cross_compiler} = xno ]; then
|
|---|
| 485 | echo 1>&2 '***' --with-libs is only supported when cross compiling
|
|---|
| 486 | exit 1
|
|---|
| 487 | fi
|
|---|
| 488 | # Copy the libraries in reverse order, so that files in the first named
|
|---|
| 489 | # library override files in subsequent libraries.
|
|---|
| 490 | case "${exec_prefixoption}" in
|
|---|
| 491 | "") x=${prefix} ;;
|
|---|
| 492 | *) x=${exec_prefix} ;;
|
|---|
| 493 | esac
|
|---|
| 494 | for l in ${with_libs}; do
|
|---|
| 495 | copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
|
|---|
| 496 | done
|
|---|
| 497 | fi
|
|---|
| 498 |
|
|---|
| 499 | # If both --with-headers and --with-libs are specified, default to
|
|---|
| 500 | # --without-newlib.
|
|---|
| 501 | if [ x"${with_headers}" != x ] && [ x"${with_libs}" != x ]; then
|
|---|
| 502 | if [ x"${with_newlib}" = x ]; then
|
|---|
| 503 | with_newlib=no
|
|---|
| 504 | fi
|
|---|
| 505 | fi
|
|---|
| 506 |
|
|---|
| 507 | # Recognize --with-newlib/--without-newlib.
|
|---|
| 508 | if [ x${with_newlib} = xno ]; then
|
|---|
| 509 | skipdirs="${skipdirs} target-newlib"
|
|---|
| 510 | elif [ x${with_newlib} = xyes ]; then
|
|---|
| 511 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
|
|---|
| 512 | fi
|
|---|
| 513 |
|
|---|
| 514 | # Default to using --with-stabs for certain targets.
|
|---|
| 515 | if [ x${with_stabs} = x ]; then
|
|---|
| 516 | case "${target}" in
|
|---|
| 517 | mips*-*-irix6*)
|
|---|
| 518 | ;;
|
|---|
| 519 | mips*-*-* | alpha*-*-osf*)
|
|---|
| 520 | with_stabs=yes;
|
|---|
| 521 | withoptions="${withoptions} --with-stabs"
|
|---|
| 522 | ;;
|
|---|
| 523 | esac
|
|---|
| 524 | fi
|
|---|
| 525 |
|
|---|
| 526 | # Handle ${copy_dirs}
|
|---|
| 527 | set fnord ${copy_dirs}
|
|---|
| 528 | shift
|
|---|
| 529 | while [ $# != 0 ]; do
|
|---|
| 530 | if [ -f $2/COPIED ] && [ x"`cat $2/COPIED`" = x"$1" ]; then
|
|---|
| 531 | :
|
|---|
| 532 | else
|
|---|
| 533 | echo Copying $1 to $2
|
|---|
| 534 |
|
|---|
| 535 | # Use the install script to create the directory and all required
|
|---|
| 536 | # parent directories.
|
|---|
| 537 | if [ -d $2 ]; then
|
|---|
| 538 | :
|
|---|
| 539 | else
|
|---|
| 540 | echo >config.temp
|
|---|
| 541 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
|
|---|
| 542 | fi
|
|---|
| 543 |
|
|---|
| 544 | # Copy the directory, assuming we have tar.
|
|---|
| 545 | # FIXME: Should we use B in the second tar? Not all systems support it.
|
|---|
| 546 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
|
|---|
| 547 |
|
|---|
| 548 | # It is the responsibility of the user to correctly adjust all
|
|---|
| 549 | # symlinks. If somebody can figure out how to handle them correctly
|
|---|
| 550 | # here, feel free to add the code.
|
|---|
| 551 |
|
|---|
| 552 | echo $1 > $2/COPIED
|
|---|
| 553 | fi
|
|---|
| 554 | shift; shift
|
|---|
| 555 | done
|
|---|
| 556 |
|
|---|
| 557 | # Configure extra directories which are host specific
|
|---|
| 558 |
|
|---|
| 559 | case "${host}" in
|
|---|
| 560 | i[3456]86-*-go32*)
|
|---|
| 561 | configdirs="$configdirs dosrel" ;;
|
|---|
| 562 | i[3456]86-*-mingw32*)
|
|---|
| 563 | configdirs="$configdirs dosrel" ;;
|
|---|
| 564 | *-cygwin*)
|
|---|
| 565 | configdirs="$configdirs libtermcap dosrel" ;;
|
|---|
| 566 | esac
|
|---|
| 567 |
|
|---|
| 568 | # Remove more programs from consideration, based on the host or
|
|---|
| 569 | # target this usually means that a port of the program doesn't
|
|---|
| 570 | # exist yet.
|
|---|
| 571 |
|
|---|
| 572 | noconfigdirs=""
|
|---|
| 573 |
|
|---|
| 574 | case "${host}" in
|
|---|
| 575 | hppa*64*-*-*)
|
|---|
| 576 | noconfigdirs="$noconfigdirs byacc"
|
|---|
| 577 | ;;
|
|---|
| 578 | i[3456]86-*-vsta)
|
|---|
| 579 | noconfigdirs="tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl apache inet itcl tix db snavigator gnuserv gettext"
|
|---|
| 580 | ;;
|
|---|
| 581 | i[3456]86-*-go32* | i[3456]86-*-msdosdjgpp*)
|
|---|
| 582 | noconfigdirs="tcl tk expect dejagnu send-pr uudecode guile apache inet itcl tix db snavigator gnuserv libffi"
|
|---|
| 583 | ;;
|
|---|
| 584 | i[3456]86-*-mingw32*)
|
|---|
| 585 | # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl apache inet itcl tix db snavigator gnuserv"
|
|---|
| 586 | noconfigdirs="expect dejagnu cvs autoconf automake send-pr rcs guile perl texinfo apache inet libtool"
|
|---|
| 587 | ;;
|
|---|
| 588 | i[3456]86-*-beos*)
|
|---|
| 589 | noconfigdirs="$noconfigdirs tk itcl tix libgui gdb"
|
|---|
| 590 | ;;
|
|---|
| 591 | *-*-cygwin*)
|
|---|
| 592 | noconfigdirs="autoconf automake send-pr rcs guile perl apache inet"
|
|---|
| 593 | ;;
|
|---|
| 594 | *-*-netbsd*)
|
|---|
| 595 | noconfigdirs="rcs"
|
|---|
| 596 | ;;
|
|---|
| 597 | ppc*-*-pe)
|
|---|
| 598 | noconfigdirs="patch diff make tk tcl expect dejagnu cvssrc autoconf automake texinfo bison send-pr gprof rcs guile perl apache inet itcl tix db snavigator gnuserv"
|
|---|
| 599 | ;;
|
|---|
| 600 | powerpc-*-beos*)
|
|---|
| 601 | noconfigdirs="$noconfigdirs tk itcl tix libgui gdb dejagnu readline"
|
|---|
| 602 | ;;
|
|---|
| 603 | esac
|
|---|
| 604 |
|
|---|
| 605 | # Save it here so that, even in case of --enable-libgcj, if the Java
|
|---|
| 606 | # front-end isn't enabled, we still get libgcj disabled.
|
|---|
| 607 | libgcj_saved=$libgcj
|
|---|
| 608 | case $enable_libgcj in
|
|---|
| 609 | yes)
|
|---|
| 610 | # If we reset it here, it won't get added to noconfigdirs in the
|
|---|
| 611 | # target-specific build rules, so it will be forcibly enabled
|
|---|
| 612 | # (unless the Java language itself isn't enabled).
|
|---|
| 613 | libgcj=
|
|---|
| 614 | ;;
|
|---|
| 615 | no)
|
|---|
| 616 | # Make sure we get it printed in the list of not supported target libs.
|
|---|
| 617 | noconfigdirs="$noconfigdirs ${libgcj}"
|
|---|
| 618 | ;;
|
|---|
| 619 | esac
|
|---|
| 620 |
|
|---|
| 621 | case "${target}" in
|
|---|
| 622 | *-*-chorusos)
|
|---|
| 623 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
|
|---|
| 624 | ;;
|
|---|
| 625 | *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
|
|---|
| 626 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
|
|---|
| 627 | ;;
|
|---|
| 628 | *-*-netbsd*)
|
|---|
| 629 | # Skip some stuff on all NetBSD configurations.
|
|---|
| 630 | skipdirs="$skipdirs target-newlib target-libiberty target-libgloss"
|
|---|
| 631 |
|
|---|
| 632 | # Skip some stuff that's unsupported on some NetBSD configurations.
|
|---|
| 633 | case "${target}" in
|
|---|
| 634 | i*86-*-netbsdelf*) ;;
|
|---|
| 635 | *)
|
|---|
| 636 | noconfigdirs="$noconfigdirs ${libgcj}"
|
|---|
| 637 | ;;
|
|---|
| 638 | esac
|
|---|
| 639 | ;;
|
|---|
| 640 | *-*-netware)
|
|---|
| 641 | noconfigdirs="$noconfigdirs ${libstdcxx_version} target-librx target-newlib target-libiberty target-libgloss ${libgcj}"
|
|---|
| 642 | ;;
|
|---|
| 643 | *-*-rtems*)
|
|---|
| 644 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
|
|---|
| 645 | case ${target} in
|
|---|
| 646 | h8300*-*-* | h8500-*-*)
|
|---|
| 647 | noconfigdirs="$noconfigdirs target-libf2c"
|
|---|
| 648 | ;;
|
|---|
| 649 | *) ;;
|
|---|
| 650 | esac
|
|---|
| 651 | ;;
|
|---|
| 652 | *-*-vxworks*)
|
|---|
| 653 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
|
|---|
| 654 | ;;
|
|---|
| 655 | alpha*-dec-osf*)
|
|---|
| 656 | # ld works, but does not support shared libraries. emacs doesn't
|
|---|
| 657 | # work. newlib is not 64 bit ready. I'm not sure about fileutils.
|
|---|
| 658 | # gas doesn't generate exception information.
|
|---|
| 659 | noconfigdirs="$noconfigdirs gas ld emacs fileutils target-newlib target-libgloss"
|
|---|
| 660 | ;;
|
|---|
| 661 | alpha*-*-*vms*)
|
|---|
| 662 | noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
|
|---|
| 663 | ;;
|
|---|
| 664 | alpha*-*-linux*)
|
|---|
| 665 | # newlib is not 64 bit ready
|
|---|
| 666 | noconfigdirs="$noconfigdirs target-newlib target-libgloss"
|
|---|
| 667 | # linux has rx in libc
|
|---|
| 668 | skipdirs="$skipdirs target-librx"
|
|---|
| 669 | ;;
|
|---|
| 670 | alpha*-*-freebsd*)
|
|---|
| 671 | noconfigdirs="$noconfigdirs target-newlib target-libgloss"
|
|---|
| 672 | ;;
|
|---|
| 673 | alpha*-*-*)
|
|---|
| 674 | # newlib is not 64 bit ready
|
|---|
| 675 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
|
|---|
| 676 | ;;
|
|---|
| 677 | sh-*-linux*)
|
|---|
| 678 | noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
|
|---|
| 679 | # linux has rx in libc
|
|---|
| 680 | skipdirs="$skipdirs target-librx"
|
|---|
| 681 | ;;
|
|---|
| 682 | sh*-*-pe|mips*-*-pe|*arm-wince-pe)
|
|---|
| 683 | noconfigdirs="$noconfigdirs ${libgcj}"
|
|---|
| 684 | noconfigdirs="$noconfigdirs target-examples"
|
|---|
| 685 | noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
|
|---|
| 686 | noconfigdirs="$noconfigdirs tcl tix tk itcl libgui sim"
|
|---|
| 687 | noconfigdirs="$noconfigdirs expect dejagnu"
|
|---|
| 688 | # the C++ libraries don't build on top of CE's C libraries
|
|---|
| 689 | noconfigdirs="$noconfigdirs ${libstdcxx_version}"
|
|---|
| 690 | skipdirs="$skipdirs target-newlib"
|
|---|
| 691 | case "${host}" in
|
|---|
| 692 | *-*-cygwin*) ;; # keep gdb and readline
|
|---|
| 693 | *) noconfigdirs="$noconfigdirs gdb readline ${libstdcxx_version}"
|
|---|
| 694 | ;;
|
|---|
| 695 | esac
|
|---|
| 696 | ;;
|
|---|
| 697 | arc-*-*)
|
|---|
| 698 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
|
|---|
| 699 | ;;
|
|---|
| 700 | arm-*-pe*)
|
|---|
| 701 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
|
|---|
| 702 | ;;
|
|---|
| 703 | arm-*-coff*)
|
|---|
| 704 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
|
|---|
| 705 | if [ x${is_cross_compiler} != xno ] ; then
|
|---|
| 706 | target_configdirs="${target_configdirs} target-bsp target-cygmon"
|
|---|
| 707 | fi
|
|---|
| 708 | ;;
|
|---|
| 709 | arm-*-elf*)
|
|---|
| 710 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
|
|---|
| 711 | if [ x${is_cross_compiler} != xno ] ; then
|
|---|
| 712 | target_configdirs="${target_configdirs} target-bsp target-cygmon"
|
|---|
| 713 | fi
|
|---|
| 714 | ;;
|
|---|
| 715 | arm-*-oabi*)
|
|---|
| 716 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
|
|---|
| 717 | ;;
|
|---|
| 718 | c4x-*-*)
|
|---|
| 719 | noconfigdirs="$noconfigdirs ${libstdcxx_version} target-librx target-libgloss ${libgcj}"
|
|---|
| 720 | ;;
|
|---|
| 721 | c54x*-*-* | tic54x-*-*)
|
|---|
| 722 | noconfigdirs="$noconfigdirs ${libstdcxx_version} target-libgloss ${libgcj} gcc gdb newlib"
|
|---|
| 723 | ;;
|
|---|
| 724 | thumb-*-coff)
|
|---|
| 725 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
|
|---|
| 726 | ;;
|
|---|
| 727 | thumb-*-elf)
|
|---|
| 728 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
|
|---|
| 729 | ;;
|
|---|
| 730 | thumb-*-oabi)
|
|---|
| 731 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
|
|---|
| 732 | ;;
|
|---|
| 733 | strongarm-*-elf)
|
|---|
| 734 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
|
|---|
| 735 | if [ x${is_cross_compiler} != xno ] ; then
|
|---|
| 736 | target_configdirs="${target_configdirs} target-bsp target-cygmon"
|
|---|
| 737 | fi
|
|---|
| 738 | ;;
|
|---|
| 739 | strongarm-*-coff)
|
|---|
| 740 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
|
|---|
| 741 | if [ x${is_cross_compiler} != xno ] ; then
|
|---|
| 742 | target_configdirs="${target_configdirs} target-bsp target-cygmon"
|
|---|
| 743 | fi
|
|---|
| 744 | ;;
|
|---|
| 745 | xscale-*-elf)
|
|---|
| 746 | noconfigdirs="$noconfigdirs target-libgloss target-libffi target-qthreads"
|
|---|
| 747 | if [ x${is_cross_compiler} != xno ] ; then
|
|---|
| 748 | target_configdirs="${target_configdirs} target-bsp target-cygmon"
|
|---|
| 749 | fi
|
|---|
| 750 | ;;
|
|---|
| 751 | xscale-*-coff)
|
|---|
| 752 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
|
|---|
| 753 | if [ x${is_cross_compiler} != xno ] ; then
|
|---|
| 754 | target_configdirs="${target_configdirs} target-bsp target-cygmon"
|
|---|
| 755 | fi
|
|---|
| 756 | ;;
|
|---|
| 757 | thumb-*-pe)
|
|---|
| 758 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
|
|---|
| 759 | ;;
|
|---|
| 760 | arm-*-riscix*)
|
|---|
| 761 | noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
|
|---|
| 762 | ;;
|
|---|
| 763 | cris-*-*)
|
|---|
| 764 | noconfigdirs="$noconfigdirs ${libgcj}"
|
|---|
| 765 | ;;
|
|---|
| 766 | d10v-*-*)
|
|---|
| 767 | noconfigdirs="$noconfigdirs target-librx ${libstdcxx_version} target-libgloss ${libgcj}"
|
|---|
| 768 | ;;
|
|---|
| 769 | d30v-*-*)
|
|---|
| 770 | noconfigdirs="$noconfigdirs ${libgcj}"
|
|---|
| 771 | ;;
|
|---|
| 772 | fr30-*-elf*)
|
|---|
| 773 | noconfigdirs="$noconfigdirs ${libgcj}"
|
|---|
| 774 | if [ x${is_cross_compiler} != xno ] ; then
|
|---|
| 775 | target_configdirs="${target_configdirs} target-bsp target-libstub target-cygmon"
|
|---|
| 776 | fi
|
|---|
| 777 | ;;
|
|---|
| 778 | h8300*-*-* | \
|
|---|
| 779 | h8500-*-*)
|
|---|
| 780 | noconfigdirs="$noconfigdirs ${libstdcxx_version} target-librx target-libgloss ${libgcj} target-libf2c"
|
|---|
| 781 | ;;
|
|---|
| 782 | hppa*64*-*-linux* | parisc*64*-*-linux*)
|
|---|
| 783 | # In this case, it's because the hppa64-linux target is for
|
|---|
| 784 | # the kernel only at this point and has no libc, and thus no
|
|---|
| 785 | # headers, crt*.o, etc., all of which are needed by these.
|
|---|
| 786 | noconfigdirs="$noconfigdirs target-zlib"
|
|---|
| 787 | ;;
|
|---|
| 788 | hppa*-*-*elf* | \
|
|---|
| 789 | parisc*-*-linux* | hppa*-*-linux* | \
|
|---|
| 790 | hppa*-*-lites* | \
|
|---|
| 791 | hppa*64*-*-*)
|
|---|
| 792 | noconfigdirs="$noconfigdirs ${libgcj}"
|
|---|
| 793 | # Do configure ld/binutils/gas for this case.
|
|---|
| 794 | ;;
|
|---|
| 795 | hppa*-*-*)
|
|---|
| 796 | # HP's C compiler doesn't handle Emacs correctly (but on BSD and Mach
|
|---|
| 797 | # cc is gcc, and on any system a user should be able to link cc to
|
|---|
| 798 | # whatever they want. FIXME, emacs emacs19).
|
|---|
| 799 | case "${CC}" in
|
|---|
| 800 | "" | cc*) noconfigdirs="$noconfigdirs emacs emacs19" ;;
|
|---|
| 801 | *) ;;
|
|---|
| 802 | esac
|
|---|
| 803 | # According to Alexandre Oliva <[email protected]>, libjava won't
|
|---|
| 804 | # build on HP-UX 10.20.
|
|---|
| 805 | noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
|
|---|
| 806 | ;;
|
|---|
| 807 | ia64*-*-elf*)
|
|---|
| 808 | # No gdb support yet.
|
|---|
| 809 | noconfigdirs="$noconfigdirs tix readline mmalloc libgui itcl gdb"
|
|---|
| 810 | ;;
|
|---|
| 811 | i[3456]86-*-coff | i[3456]86-*-elf)
|
|---|
| 812 | noconfigdirs="$noconfigdirs ${libgcj}"
|
|---|
| 813 | if [ x${is_cross_compiler} != xno ] ; then
|
|---|
| 814 | target_configdirs="${target_configdirs} target-libstub target-cygmon"
|
|---|
| 815 | fi
|
|---|
| 816 | ;;
|
|---|
| 817 | i[34567]86-*-freebsd*)
|
|---|
| 818 | noconfigdirs="$noconfigdirs target-newlib target-libgloss"
|
|---|
| 819 | ;;
|
|---|
| 820 | s390*-*-linux*)
|
|---|
| 821 | # The libffi port is not yet in the GCC tree
|
|---|
| 822 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
|
|---|
| 823 | # linux has rx in libc
|
|---|
| 824 | skipdirs="$skipdirs target-librx"
|
|---|
| 825 | ;;
|
|---|
| 826 | *-*-linux*)
|
|---|
|
|---|