[eb299afc] | 1 | #! /bin/sh |
---|
| 2 | |
---|
| 3 | # Guess values for system-dependent variables and create Makefiles. |
---|
| 4 | # Generated automatically using autoconf version 2.13 |
---|
| 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
---|
| 6 | # |
---|
| 7 | # This configure script is free software; the Free Software Foundation |
---|
| 8 | # gives unlimited permission to copy, distribute and modify it. |
---|
| 9 | |
---|
| 10 | # Defaults: |
---|
| 11 | ac_help= |
---|
| 12 | ac_default_prefix=/usr/local |
---|
| 13 | # Any additions from configure.in: |
---|
| 14 | ac_help="$ac_help |
---|
| 15 | --with-target-subdir=DIR" |
---|
| 16 | ac_help="$ac_help |
---|
| 17 | --enable-maintainer-mode enable make rules and dependencies not useful |
---|
| 18 | (and sometimes confusing) to the casual installer" |
---|
| 19 | ac_help="$ac_help |
---|
| 20 | --enable-multiprocessing enable multiprocessing interface" |
---|
| 21 | ac_help="$ac_help |
---|
| 22 | --enable-networking enable TCP/IP stack" |
---|
| 23 | ac_help="$ac_help |
---|
| 24 | --enable-rdbg enable remote debugger" |
---|
| 25 | ac_help="$ac_help |
---|
| 26 | --enable-cxx enable C++ support, |
---|
| 27 | and build the rtems++ library" |
---|
| 28 | ac_help="$ac_help |
---|
| 29 | --enable-gcc28 enable use of gcc 2.8.x features" |
---|
| 30 | ac_help="$ac_help |
---|
| 31 | --enable-libcdir=directory set the directory for the C library" |
---|
| 32 | ac_help="$ac_help |
---|
| 33 | --enable-bare-cpu-cflags specify a particular cpu cflag |
---|
| 34 | (bare bsp specific)" |
---|
| 35 | ac_help="$ac_help |
---|
| 36 | --enable-bare-cpu-model specify a particular cpu model |
---|
| 37 | (bare bsp specific)" |
---|
| 38 | ac_help="$ac_help |
---|
| 39 | \ |
---|
| 40 | --enable-hwapi enable hardware API library" |
---|
| 41 | ac_help="$ac_help |
---|
| 42 | \ |
---|
| 43 | --enable-hwapi enable hardware API library" |
---|
| 44 | |
---|
| 45 | # Initialize some variables set by options. |
---|
| 46 | # The variables have the same names as the options, with |
---|
| 47 | # dashes changed to underlines. |
---|
| 48 | build=NONE |
---|
| 49 | cache_file=./config.cache |
---|
| 50 | exec_prefix=NONE |
---|
| 51 | host=NONE |
---|
| 52 | no_create= |
---|
| 53 | nonopt=NONE |
---|
| 54 | no_recursion= |
---|
| 55 | prefix=NONE |
---|
| 56 | program_prefix=NONE |
---|
| 57 | program_suffix=NONE |
---|
| 58 | program_transform_name=s,x,x, |
---|
| 59 | silent= |
---|
| 60 | site= |
---|
| 61 | srcdir= |
---|
| 62 | target=NONE |
---|
| 63 | verbose= |
---|
| 64 | x_includes=NONE |
---|
| 65 | x_libraries=NONE |
---|
| 66 | bindir='${exec_prefix}/bin' |
---|
| 67 | sbindir='${exec_prefix}/sbin' |
---|
| 68 | libexecdir='${exec_prefix}/libexec' |
---|
| 69 | datadir='${prefix}/share' |
---|
| 70 | sysconfdir='${prefix}/etc' |
---|
| 71 | sharedstatedir='${prefix}/com' |
---|
| 72 | localstatedir='${prefix}/var' |
---|
| 73 | libdir='${exec_prefix}/lib' |
---|
| 74 | includedir='${prefix}/include' |
---|
| 75 | oldincludedir='/usr/include' |
---|
| 76 | infodir='${prefix}/info' |
---|
| 77 | mandir='${prefix}/man' |
---|
| 78 | |
---|
| 79 | # Initialize some other variables. |
---|
| 80 | subdirs= |
---|
| 81 | MFLAGS= MAKEFLAGS= |
---|
| 82 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
| 83 | # Maximum number of lines to put in a shell here document. |
---|
| 84 | ac_max_here_lines=12 |
---|
| 85 | |
---|
| 86 | ac_prev= |
---|
| 87 | for ac_option |
---|
| 88 | do |
---|
| 89 | |
---|
| 90 | # If the previous option needs an argument, assign it. |
---|
| 91 | if test -n "$ac_prev"; then |
---|
| 92 | eval "$ac_prev=\$ac_option" |
---|
| 93 | ac_prev= |
---|
| 94 | continue |
---|
| 95 | fi |
---|
| 96 | |
---|
| 97 | case "$ac_option" in |
---|
| 98 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
| 99 | *) ac_optarg= ;; |
---|
| 100 | esac |
---|
| 101 | |
---|
| 102 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
| 103 | |
---|
| 104 | case "$ac_option" in |
---|
| 105 | |
---|
| 106 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
| 107 | ac_prev=bindir ;; |
---|
| 108 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
| 109 | bindir="$ac_optarg" ;; |
---|
| 110 | |
---|
| 111 | -build | --build | --buil | --bui | --bu) |
---|
| 112 | ac_prev=build ;; |
---|
| 113 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
| 114 | build="$ac_optarg" ;; |
---|
| 115 | |
---|
| 116 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 117 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 118 | ac_prev=cache_file ;; |
---|
| 119 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 120 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 121 | cache_file="$ac_optarg" ;; |
---|
| 122 | |
---|
| 123 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
| 124 | ac_prev=datadir ;; |
---|
| 125 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
| 126 | | --da=*) |
---|
| 127 | datadir="$ac_optarg" ;; |
---|
| 128 | |
---|
| 129 | -disable-* | --disable-*) |
---|
| 130 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
---|
| 131 | # Reject names that are not valid shell variable names. |
---|
| 132 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
| 133 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
| 134 | fi |
---|
| 135 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
| 136 | eval "enable_${ac_feature}=no" ;; |
---|
| 137 | |
---|
| 138 | -enable-* | --enable-*) |
---|
| 139 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
---|
| 140 | # Reject names that are not valid shell variable names. |
---|
| 141 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
| 142 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
| 143 | fi |
---|
| 144 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
| 145 | case "$ac_option" in |
---|
| 146 | *=*) ;; |
---|
| 147 | *) ac_optarg=yes ;; |
---|
| 148 | esac |
---|
| 149 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
---|
| 150 | |
---|
| 151 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
| 152 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
| 153 | | --exec | --exe | --ex) |
---|
| 154 | ac_prev=exec_prefix ;; |
---|
| 155 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
| 156 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
| 157 | | --exec=* | --exe=* | --ex=*) |
---|
| 158 | exec_prefix="$ac_optarg" ;; |
---|
| 159 | |
---|
| 160 | -gas | --gas | --ga | --g) |
---|
| 161 | # Obsolete; use --with-gas. |
---|
| 162 | with_gas=yes ;; |
---|
| 163 | |
---|
| 164 | -help | --help | --hel | --he) |
---|
| 165 | # Omit some internal or obsolete options to make the list less imposing. |
---|
| 166 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
| 167 | cat << EOF |
---|
| 168 | Usage: configure [options] [host] |
---|
| 169 | Options: [defaults in brackets after descriptions] |
---|
| 170 | Configuration: |
---|
| 171 | --cache-file=FILE cache test results in FILE |
---|
| 172 | --help print this message |
---|
| 173 | --no-create do not create output files |
---|
| 174 | --quiet, --silent do not print \`checking...' messages |
---|
| 175 | --version print the version of autoconf that created configure |
---|
| 176 | Directory and file names: |
---|
| 177 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
| 178 | [$ac_default_prefix] |
---|
| 179 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
| 180 | [same as prefix] |
---|
| 181 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
---|
| 182 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
---|
| 183 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
---|
| 184 | --datadir=DIR read-only architecture-independent data in DIR |
---|
| 185 | [PREFIX/share] |
---|
| 186 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
---|
| 187 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
---|
| 188 | [PREFIX/com] |
---|
| 189 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
---|
| 190 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
---|
| 191 | --includedir=DIR C header files in DIR [PREFIX/include] |
---|
| 192 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
---|
| 193 | --infodir=DIR info documentation in DIR [PREFIX/info] |
---|
| 194 | --mandir=DIR man documentation in DIR [PREFIX/man] |
---|
| 195 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
---|
| 196 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
| 197 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
| 198 | --program-transform-name=PROGRAM |
---|
| 199 | run sed PROGRAM on installed program names |
---|
| 200 | EOF |
---|
| 201 | cat << EOF |
---|
| 202 | Host type: |
---|
| 203 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
---|
| 204 | --host=HOST configure for HOST [guessed] |
---|
| 205 | --target=TARGET configure for TARGET [TARGET=HOST] |
---|
| 206 | Features and packages: |
---|
| 207 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
| 208 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
| 209 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
| 210 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
| 211 | --x-includes=DIR X include files are in DIR |
---|
| 212 | --x-libraries=DIR X library files are in DIR |
---|
| 213 | EOF |
---|
| 214 | if test -n "$ac_help"; then |
---|
| 215 | echo "--enable and --with options recognized:$ac_help" |
---|
| 216 | fi |
---|
| 217 | exit 0 ;; |
---|
| 218 | |
---|
| 219 | -host | --host | --hos | --ho) |
---|
| 220 | ac_prev=host ;; |
---|
| 221 | -host=* | --host=* | --hos=* | --ho=*) |
---|
| 222 | host="$ac_optarg" ;; |
---|
| 223 | |
---|
| 224 | -includedir | --includedir | --includedi | --included | --include \ |
---|
| 225 | | --includ | --inclu | --incl | --inc) |
---|
| 226 | ac_prev=includedir ;; |
---|
| 227 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
| 228 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
| 229 | includedir="$ac_optarg" ;; |
---|
| 230 | |
---|
| 231 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
| 232 | ac_prev=infodir ;; |
---|
| 233 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
| 234 | infodir="$ac_optarg" ;; |
---|
| 235 | |
---|
| 236 | -libdir | --libdir | --libdi | --libd) |
---|
| 237 | ac_prev=libdir ;; |
---|
| 238 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
| 239 | libdir="$ac_optarg" ;; |
---|
| 240 | |
---|
| 241 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
| 242 | | --libexe | --libex | --libe) |
---|
| 243 | ac_prev=libexecdir ;; |
---|
| 244 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
| 245 | | --libexe=* | --libex=* | --libe=*) |
---|
| 246 | libexecdir="$ac_optarg" ;; |
---|
| 247 | |
---|
| 248 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
| 249 | | --localstate | --localstat | --localsta | --localst \ |
---|
| 250 | | --locals | --local | --loca | --loc | --lo) |
---|
| 251 | ac_prev=localstatedir ;; |
---|
| 252 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
| 253 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
| 254 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
| 255 | localstatedir="$ac_optarg" ;; |
---|
| 256 | |
---|
| 257 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
| 258 | ac_prev=mandir ;; |
---|
| 259 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
| 260 | mandir="$ac_optarg" ;; |
---|
| 261 | |
---|
| 262 | -nfp | --nfp | --nf) |
---|
| 263 | # Obsolete; use --without-fp. |
---|
| 264 | with_fp=no ;; |
---|
| 265 | |
---|
| 266 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 267 | | --no-cr | --no-c) |
---|
| 268 | no_create=yes ;; |
---|
| 269 | |
---|
| 270 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 271 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
| 272 | no_recursion=yes ;; |
---|
| 273 | |
---|
| 274 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
| 275 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
| 276 | | --oldin | --oldi | --old | --ol | --o) |
---|
| 277 | ac_prev=oldincludedir ;; |
---|
| 278 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
| 279 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
| 280 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
| 281 | oldincludedir="$ac_optarg" ;; |
---|
| 282 | |
---|
| 283 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
| 284 | ac_prev=prefix ;; |
---|
| 285 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
| 286 | prefix="$ac_optarg" ;; |
---|
| 287 | |
---|
| 288 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
| 289 | | --program-pre | --program-pr | --program-p) |
---|
| 290 | ac_prev=program_prefix ;; |
---|
| 291 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
| 292 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
| 293 | program_prefix="$ac_optarg" ;; |
---|
| 294 | |
---|
| 295 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
| 296 | | --program-suf | --program-su | --program-s) |
---|
| 297 | ac_prev=program_suffix ;; |
---|
| 298 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
| 299 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
| 300 | program_suffix="$ac_optarg" ;; |
---|
| 301 | |
---|
| 302 | -program-transform-name | --program-transform-name \ |
---|
| 303 | | --program-transform-nam | --program-transform-na \ |
---|
| 304 | | --program-transform-n | --program-transform- \ |
---|
| 305 | | --program-transform | --program-transfor \ |
---|
| 306 | | --program-transfo | --program-transf \ |
---|
| 307 | | --program-trans | --program-tran \ |
---|
| 308 | | --progr-tra | --program-tr | --program-t) |
---|
| 309 | ac_prev=program_transform_name ;; |
---|
| 310 | -program-transform-name=* | --program-transform-name=* \ |
---|
| 311 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
| 312 | | --program-transform-n=* | --program-transform-=* \ |
---|
| 313 | | --program-transform=* | --program-transfor=* \ |
---|
| 314 | | --program-transfo=* | --program-transf=* \ |
---|
| 315 | | --program-trans=* | --program-tran=* \ |
---|
| 316 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
| 317 | program_transform_name="$ac_optarg" ;; |
---|
| 318 | |
---|
| 319 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 320 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 321 | silent=yes ;; |
---|
| 322 | |
---|
| 323 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
| 324 | ac_prev=sbindir ;; |
---|
| 325 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
| 326 | | --sbi=* | --sb=*) |
---|
| 327 | sbindir="$ac_optarg" ;; |
---|
| 328 | |
---|
| 329 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
| 330 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
| 331 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
| 332 | | --sha | --sh) |
---|
| 333 | ac_prev=sharedstatedir ;; |
---|
| 334 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
| 335 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
| 336 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
| 337 | | --sha=* | --sh=*) |
---|
| 338 | sharedstatedir="$ac_optarg" ;; |
---|
| 339 | |
---|
| 340 | -site | --site | --sit) |
---|
| 341 | ac_prev=site ;; |
---|
| 342 | -site=* | --site=* | --sit=*) |
---|
| 343 | site="$ac_optarg" ;; |
---|
| 344 | |
---|
| 345 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 346 | ac_prev=srcdir ;; |
---|
| 347 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 348 | srcdir="$ac_optarg" ;; |
---|
| 349 | |
---|
| 350 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
| 351 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
| 352 | ac_prev=sysconfdir ;; |
---|
| 353 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
| 354 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
| 355 | sysconfdir="$ac_optarg" ;; |
---|
| 356 | |
---|
| 357 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
| 358 | ac_prev=target ;; |
---|
| 359 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
| 360 | target="$ac_optarg" ;; |
---|
| 361 | |
---|
| 362 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
| 363 | verbose=yes ;; |
---|
| 364 | |
---|
| 365 | -version | --version | --versio | --versi | --vers) |
---|
| 366 | echo "configure generated by autoconf version 2.13" |
---|
| 367 | exit 0 ;; |
---|
| 368 | |
---|
| 369 | -with-* | --with-*) |
---|
| 370 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
---|
| 371 | # Reject names that are not valid shell variable names. |
---|
| 372 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
| 373 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
| 374 | fi |
---|
| 375 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
| 376 | case "$ac_option" in |
---|
| 377 | *=*) ;; |
---|
| 378 | *) ac_optarg=yes ;; |
---|
| 379 | esac |
---|
| 380 | eval "with_${ac_package}='$ac_optarg'" ;; |
---|
| 381 | |
---|
| 382 | -without-* | --without-*) |
---|
| 383 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
---|
| 384 | # Reject names that are not valid shell variable names. |
---|
| 385 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
| 386 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
| 387 | fi |
---|
| 388 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
| 389 | eval "with_${ac_package}=no" ;; |
---|
| 390 | |
---|
| 391 | --x) |
---|
| 392 | # Obsolete; use --with-x. |
---|
| 393 | with_x=yes ;; |
---|
| 394 | |
---|
| 395 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
| 396 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
| 397 | ac_prev=x_includes ;; |
---|
| 398 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
| 399 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
| 400 | x_includes="$ac_optarg" ;; |
---|
| 401 | |
---|
| 402 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
| 403 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
| 404 | ac_prev=x_libraries ;; |
---|
| 405 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
| 406 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
| 407 | x_libraries="$ac_optarg" ;; |
---|
| 408 | |
---|
| 409 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
---|
| 410 | ;; |
---|
| 411 | |
---|
| 412 | *) |
---|
| 413 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
---|
| 414 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
---|
| 415 | fi |
---|
| 416 | if test "x$nonopt" != xNONE; then |
---|
| 417 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
---|
| 418 | fi |
---|
| 419 | nonopt="$ac_option" |
---|
| 420 | ;; |
---|
| 421 | |
---|
| 422 | esac |
---|
| 423 | done |
---|
| 424 | |
---|
| 425 | if test -n "$ac_prev"; then |
---|
| 426 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
---|
| 427 | fi |
---|
| 428 | |
---|
| 429 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
| 430 | |
---|
| 431 | # File descriptor usage: |
---|
| 432 | # 0 standard input |
---|
| 433 | # 1 file creation |
---|
| 434 | # 2 errors and warnings |
---|
| 435 | # 3 some systems may open it to /dev/tty |
---|
| 436 | # 4 used on the Kubota Titan |
---|
| 437 | # 6 checking for... messages and results |
---|
| 438 | # 5 compiler messages saved in config.log |
---|
| 439 | if test "$silent" = yes; then |
---|
| 440 | exec 6>/dev/null |
---|
| 441 | else |
---|
| 442 | exec 6>&1 |
---|
| 443 | fi |
---|
| 444 | exec 5>./config.log |
---|
| 445 | |
---|
| 446 | echo "\ |
---|
| 447 | This file contains any messages produced by compilers while |
---|
| 448 | running configure, to aid debugging if configure makes a mistake. |
---|
| 449 | " 1>&5 |
---|
| 450 | |
---|
| 451 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 452 | # Also quote any args containing shell metacharacters. |
---|
| 453 | ac_configure_args= |
---|
| 454 | for ac_arg |
---|
| 455 | do |
---|
| 456 | case "$ac_arg" in |
---|
| 457 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 458 | | --no-cr | --no-c) ;; |
---|
| 459 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 460 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
---|
| 461 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
---|
| 462 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
| 463 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
---|
| 464 | esac |
---|
| 465 | done |
---|
| 466 | |
---|
| 467 | # NLS nuisances. |
---|
| 468 | # Only set these to C if already set. These must not be set unconditionally |
---|
| 469 | # because not all systems understand e.g. LANG=C (notably SCO). |
---|
| 470 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
---|
| 471 | # Non-C LC_CTYPE values break the ctype check. |
---|
| 472 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
---|
| 473 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
---|
| 474 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
---|
| 475 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
---|
| 476 | |
---|
| 477 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 478 | rm -rf conftest* confdefs.h |
---|
| 479 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
| 480 | echo > confdefs.h |
---|
| 481 | |
---|
| 482 | # A filename unique to this package, relative to the directory that |
---|
| 483 | # configure is in, which we can look for to find out if srcdir is correct. |
---|
| 484 | ac_unique_file=libbsp |
---|
| 485 | |
---|
| 486 | # Find the source files, if location was not specified. |
---|
| 487 | if test -z "$srcdir"; then |
---|
| 488 | ac_srcdir_defaulted=yes |
---|
| 489 | # Try the directory containing this script, then its parent. |
---|
| 490 | ac_prog=$0 |
---|
| 491 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
---|
| 492 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
---|
| 493 | srcdir=$ac_confdir |
---|
| 494 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 495 | srcdir=.. |
---|
| 496 | fi |
---|
| 497 | else |
---|
| 498 | ac_srcdir_defaulted=no |
---|
| 499 | fi |
---|
| 500 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 501 | if test "$ac_srcdir_defaulted" = yes; then |
---|
| 502 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
---|
| 503 | else |
---|
| 504 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
---|
| 505 | fi |
---|
| 506 | fi |
---|
| 507 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
---|
| 508 | |
---|
| 509 | # Prefer explicitly selected file to automatically selected ones. |
---|
| 510 | if test -z "$CONFIG_SITE"; then |
---|
| 511 | if test "x$prefix" != xNONE; then |
---|
| 512 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
| 513 | else |
---|
| 514 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
| 515 | fi |
---|
| 516 | fi |
---|
| 517 | for ac_site_file in $CONFIG_SITE; do |
---|
| 518 | if test -r "$ac_site_file"; then |
---|
| 519 | echo "loading site script $ac_site_file" |
---|
| 520 | . "$ac_site_file" |
---|
| 521 | fi |
---|
| 522 | done |
---|
| 523 | |
---|
| 524 | if test -r "$cache_file"; then |
---|
| 525 | echo "loading cache $cache_file" |
---|
| 526 | . $cache_file |
---|
| 527 | else |
---|
| 528 | echo "creating cache $cache_file" |
---|
| 529 | > $cache_file |
---|
| 530 | fi |
---|
| 531 | |
---|
| 532 | ac_ext=c |
---|
| 533 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 534 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 535 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 536 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 537 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 538 | |
---|
| 539 | ac_exeext= |
---|
| 540 | ac_objext=o |
---|
| 541 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
| 542 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
---|
| 543 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
| 544 | ac_n= ac_c=' |
---|
| 545 | ' ac_t=' ' |
---|
| 546 | else |
---|
| 547 | ac_n=-n ac_c= ac_t= |
---|
| 548 | fi |
---|
| 549 | else |
---|
| 550 | ac_n= ac_c='\c' ac_t= |
---|
| 551 | fi |
---|
| 552 | |
---|
| 553 | |
---|
| 554 | # Check whether --with-target-subdir or --without-target-subdir was given. |
---|
| 555 | if test "${with_target_subdir+set}" = set; then |
---|
| 556 | withval="$with_target_subdir" |
---|
| 557 | TARGET_SUBDIR="$withval" |
---|
| 558 | else |
---|
| 559 | TARGET_SUBDIR="." |
---|
| 560 | fi |
---|
| 561 | |
---|
| 562 | |
---|
| 563 | RTEMS_TOPdir="../../.."; |
---|
| 564 | |
---|
| 565 | |
---|
| 566 | echo $ac_n "checking for RTEMS Version""... $ac_c" 1>&6 |
---|
[3a8915e] | 567 | echo "configure:568: checking for RTEMS Version" >&5 |
---|
[eb299afc] | 568 | if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then |
---|
| 569 | RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \ |
---|
| 570 | sed -e 's%RTEMS[ ]*Version[ ]*\(.*\)[ ]*%\1%g'` |
---|
| 571 | else |
---|
| 572 | { echo "configure: error: Unable to find ${RTEMS_TOPdir}/VERSION" 1>&2; exit 1; } |
---|
| 573 | fi |
---|
| 574 | if test -z "$RTEMS_VERSION"; then |
---|
| 575 | { echo "configure: error: Unable to determine version" 1>&2; exit 1; } |
---|
| 576 | fi |
---|
| 577 | echo "$ac_t""$RTEMS_VERSION" 1>&6 |
---|
| 578 | |
---|
| 579 | ac_aux_dir= |
---|
| 580 | for ac_dir in ../../.. $srcdir/../../..; do |
---|
| 581 | if test -f $ac_dir/install-sh; then |
---|
| 582 | ac_aux_dir=$ac_dir |
---|
| 583 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
| 584 | break |
---|
| 585 | elif test -f $ac_dir/install.sh; then |
---|
| 586 | ac_aux_dir=$ac_dir |
---|
| 587 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
| 588 | break |
---|
| 589 | fi |
---|
| 590 | done |
---|
| 591 | if test -z "$ac_aux_dir"; then |
---|
| 592 | { echo "configure: error: can not find install-sh or install.sh in ../../.. $srcdir/../../.." 1>&2; exit 1; } |
---|
| 593 | fi |
---|
| 594 | ac_config_guess=$ac_aux_dir/config.guess |
---|
| 595 | ac_config_sub=$ac_aux_dir/config.sub |
---|
| 596 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
---|
| 597 | |
---|
| 598 | |
---|
| 599 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
---|
[3a8915e] | 600 | echo "configure:601: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
---|
[eb299afc] | 601 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
---|
| 602 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
---|
| 603 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 604 | else |
---|
| 605 | cat > conftestmake <<\EOF |
---|
| 606 | all: |
---|
| 607 | @echo 'ac_maketemp="${MAKE}"' |
---|
| 608 | EOF |
---|
| 609 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
| 610 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
---|
| 611 | if test -n "$ac_maketemp"; then |
---|
| 612 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
| 613 | else |
---|
| 614 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
| 615 | fi |
---|
| 616 | rm -f conftestmake |
---|
| 617 | fi |
---|
| 618 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
| 619 | echo "$ac_t""yes" 1>&6 |
---|
| 620 | SET_MAKE= |
---|
| 621 | else |
---|
| 622 | echo "$ac_t""no" 1>&6 |
---|
| 623 | SET_MAKE="MAKE=${MAKE-make}" |
---|
| 624 | fi |
---|
| 625 | |
---|
| 626 | |
---|
| 627 | |
---|
| 628 | # Do some error checking and defaulting for the host and target type. |
---|
| 629 | # The inputs are: |
---|
| 630 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT |
---|
| 631 | # |
---|
| 632 | # The rules are: |
---|
| 633 | # 1. You are not allowed to specify --host, --target, and nonopt at the |
---|
| 634 | # same time. |
---|
| 635 | # 2. Host defaults to nonopt. |
---|
| 636 | # 3. If nonopt is not specified, then host defaults to the current host, |
---|
| 637 | # as determined by config.guess. |
---|
| 638 | # 4. Target and build default to nonopt. |
---|
| 639 | # 5. If nonopt is not specified, then target and build default to host. |
---|
| 640 | |
---|
| 641 | # The aliases save the names the user supplied, while $host etc. |
---|
| 642 | # will get canonicalized. |
---|
| 643 | case $host---$target---$nonopt in |
---|
| 644 | NONE---*---* | *---NONE---* | *---*---NONE) ;; |
---|
| 645 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; |
---|
| 646 | esac |
---|
| 647 | |
---|
| 648 | |
---|
| 649 | # Make sure we can run config.sub. |
---|
| 650 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
---|
| 651 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
---|
| 652 | fi |
---|
| 653 | |
---|
| 654 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
---|
[3a8915e] | 655 | echo "configure:656: checking host system type" >&5 |
---|
[eb299afc] | 656 | |
---|
| 657 | host_alias=$host |
---|
| 658 | case "$host_alias" in |
---|
| 659 | NONE) |
---|
| 660 | case $nonopt in |
---|
| 661 | NONE) |
---|
| 662 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
---|
| 663 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
---|
| 664 | fi ;; |
---|
| 665 | *) host_alias=$nonopt ;; |
---|
| 666 | esac ;; |
---|
| 667 | esac |
---|
| 668 | |
---|
| 669 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
---|
| 670 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 671 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 672 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 673 | echo "$ac_t""$host" 1>&6 |
---|
| 674 | |
---|
| 675 | echo $ac_n "checking target system type""... $ac_c" 1>&6 |
---|
[3a8915e] | 676 | echo "configure:677: checking target system type" >&5 |
---|
[eb299afc] | 677 | |
---|
| 678 | target_alias=$target |
---|
| 679 | case "$target_alias" in |
---|
| 680 | NONE) |
---|
| 681 | case $nonopt in |
---|
| 682 | NONE) target_alias=$host_alias ;; |
---|
| 683 | *) target_alias=$nonopt ;; |
---|
| 684 | esac ;; |
---|
| 685 | esac |
---|
| 686 | |
---|
| 687 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
---|
| 688 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 689 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 690 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 691 | echo "$ac_t""$target" 1>&6 |
---|
| 692 | |
---|
| 693 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
---|
[3a8915e] | 694 | echo "configure:695: checking build system type" >&5 |
---|
[eb299afc] | 695 | |
---|
| 696 | build_alias=$build |
---|
| 697 | case "$build_alias" in |
---|
| 698 | NONE) |
---|
| 699 | case $nonopt in |
---|
| 700 | NONE) build_alias=$host_alias ;; |
---|
| 701 | *) build_alias=$nonopt ;; |
---|
| 702 | esac ;; |
---|
| 703 | esac |
---|
| 704 | |
---|
| 705 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
---|
| 706 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 707 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 708 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 709 | echo "$ac_t""$build" 1>&6 |
---|
| 710 | |
---|
| 711 | test "$host_alias" != "$target_alias" && |
---|
| 712 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
| 713 | NONENONEs,x,x, && |
---|
| 714 | program_prefix=${target_alias}- |
---|
| 715 | |
---|
| 716 | echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6 |
---|
[3a8915e] | 717 | echo "configure:718: checking rtems target cpu" >&5 |
---|
[eb299afc] | 718 | case "${target}" in |
---|
| 719 | # hpux unix port should go here |
---|
| 720 | i[3456]86-go32-rtems*) |
---|
| 721 | RTEMS_CPU=i386 |
---|
| 722 | ;; |
---|
| 723 | i[3456]86-pc-linux*) # unix "simulator" port |
---|
| 724 | RTEMS_CPU=unix |
---|
| 725 | ;; |
---|
| 726 | i[3456]86-*freebsd2*) # unix "simulator" port |
---|
| 727 | RTEMS_CPU=unix |
---|
| 728 | ;; |
---|
| 729 | no_cpu-*rtems*) |
---|
| 730 | RTEMS_CPU=no_cpu |
---|
| 731 | ;; |
---|
| 732 | sparc-sun-solaris*) # unix "simulator" port |
---|
| 733 | RTEMS_CPU=unix |
---|
| 734 | ;; |
---|
| 735 | *) |
---|
| 736 | RTEMS_CPU=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'` |
---|
| 737 | ;; |
---|
| 738 | esac |
---|
| 739 | |
---|
| 740 | echo "$ac_t""$RTEMS_CPU" 1>&6 |
---|
| 741 | |
---|
| 742 | |
---|
| 743 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 |
---|
[3a8915e] | 744 | echo "configure:745: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
---|
[eb299afc] | 745 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
---|
| 746 | if test "${enable_maintainer_mode+set}" = set; then |
---|
| 747 | enableval="$enable_maintainer_mode" |
---|
| 748 | USE_MAINTAINER_MODE=$enableval |
---|
| 749 | else |
---|
| 750 | USE_MAINTAINER_MODE=no |
---|
| 751 | fi |
---|
| 752 | |
---|
| 753 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 |
---|
| 754 | |
---|
| 755 | |
---|
| 756 | if test $USE_MAINTAINER_MODE = yes; then |
---|
| 757 | MAINTAINER_MODE_TRUE= |
---|
| 758 | MAINTAINER_MODE_FALSE='#' |
---|
| 759 | else |
---|
| 760 | MAINTAINER_MODE_TRUE='#' |
---|
| 761 | MAINTAINER_MODE_FALSE= |
---|
| 762 | fi |
---|
| 763 | MAINT=$MAINTAINER_MODE_TRUE |
---|
| 764 | |
---|
| 765 | |
---|
| 766 | |
---|
| 767 | |
---|
| 768 | # Check whether --enable-multiprocessing or --disable-multiprocessing was given. |
---|
| 769 | if test "${enable_multiprocessing+set}" = set; then |
---|
| 770 | enableval="$enable_multiprocessing" |
---|
| 771 | case "${enableval}" in |
---|
| 772 | yes) RTEMS_HAS_MULTIPROCESSING=yes ;; |
---|
| 773 | no) RTEMS_HAS_MULTIPROCESSING=no ;; |
---|
| 774 | *) { echo "configure: error: bad value ${enableval} for enable-multiprocessing option" 1>&2; exit 1; } ;; |
---|
| 775 | esac |
---|
| 776 | else |
---|
| 777 | RTEMS_HAS_MULTIPROCESSING=no |
---|
| 778 | fi |
---|
| 779 | |
---|
| 780 | |
---|
| 781 | |
---|
| 782 | # Check whether --enable-networking or --disable-networking was given. |
---|
| 783 | if test "${enable_networking+set}" = set; then |
---|
| 784 | enableval="$enable_networking" |
---|
| 785 | case "${enableval}" in |
---|
| 786 | yes) RTEMS_HAS_NETWORKING=yes ;; |
---|
| 787 | no) RTEMS_HAS_NETWORKING=no ;; |
---|
| 788 | *) { echo "configure: error: bad value ${enableval} for enable-networking option" 1>&2; exit 1; } ;; |
---|
| 789 | esac |
---|
| 790 | else |
---|
| 791 | RTEMS_HAS_NETWORKING=yes |
---|
| 792 | fi |
---|
| 793 | |
---|
| 794 | |
---|
| 795 | |
---|
| 796 | # Check whether --enable-rdbg or --disable-rdbg was given. |
---|
| 797 | if test "${enable_rdbg+set}" = set; then |
---|
| 798 | enableval="$enable_rdbg" |
---|
| 799 | case "${enableval}" in |
---|
| 800 | yes) RTEMS_HAS_RDBG=yes ;; |
---|
| 801 | no) RTEMS_HAS_RDBG=no ;; |
---|
| 802 | *) { echo "configure: error: bad value ${enableval} for enable-rdbg option" 1>&2; exit 1; } ;; |
---|
| 803 | esac |
---|
| 804 | else |
---|
| 805 | RTEMS_HAS_RDBG=no |
---|
| 806 | fi |
---|
| 807 | |
---|
| 808 | |
---|
| 809 | |
---|
| 810 | # Check whether --enable-cxx or --disable-cxx was given. |
---|
| 811 | if test "${enable_cxx+set}" = set; then |
---|
| 812 | enableval="$enable_cxx" |
---|
| 813 | case "${enableval}" in |
---|
| 814 | yes) RTEMS_HAS_CPLUSPLUS=yes ;; |
---|
| 815 | no) RTEMS_HAS_CPLUSPLUS=no ;; |
---|
| 816 | *) { echo "configure: error: bad value ${enableval} for enable-cxx option" 1>&2; exit 1; } ;; |
---|
| 817 | esac |
---|
| 818 | else |
---|
| 819 | RTEMS_HAS_CPLUSPLUS=no |
---|
| 820 | fi |
---|
| 821 | |
---|
| 822 | |
---|
| 823 | |
---|
| 824 | # Check whether --enable-gcc28 or --disable-gcc28 was given. |
---|
| 825 | if test "${enable_gcc28+set}" = set; then |
---|
| 826 | enableval="$enable_gcc28" |
---|
| 827 | case "${enableval}" in |
---|
| 828 | yes) RTEMS_USE_GCC272=no ;; |
---|
| 829 | no) RTEMS_USE_GCC272=yes ;; |
---|
| 830 | *) { echo "configure: error: bad value ${enableval} for gcc-28 option" 1>&2; exit 1; } ;; |
---|
| 831 | esac |
---|
| 832 | else |
---|
| 833 | RTEMS_USE_GCC272=no |
---|
| 834 | fi |
---|
| 835 | |
---|
| 836 | |
---|
| 837 | |
---|
| 838 | # Check whether --enable-libcdir or --disable-libcdir was given. |
---|
| 839 | if test "${enable_libcdir+set}" = set; then |
---|
| 840 | enableval="$enable_libcdir" |
---|
| 841 | RTEMS_LIBC_DIR="${enableval}" ; \ |
---|
| 842 | test -d ${enableval} || { echo "configure: error: "$enableval is not a directory" " 1>&2; exit 1; } |
---|
| 843 | fi |
---|
| 844 | |
---|
| 845 | |
---|
| 846 | |
---|
| 847 | # Check whether --enable-bare-cpu-cflags or --disable-bare-cpu-cflags was given. |
---|
| 848 | if test "${enable_bare_cpu_cflags+set}" = set; then |
---|
| 849 | enableval="$enable_bare_cpu_cflags" |
---|
| 850 | case "${enableval}" in |
---|
| 851 | no) BARE_CPU_CFLAGS="" ;; |
---|
| 852 | *) BARE_CPU_CFLAGS="${enableval}" ;; |
---|
| 853 | esac |
---|
| 854 | else |
---|
| 855 | BARE_CPU_CFLAGS="" |
---|
| 856 | fi |
---|
| 857 | |
---|
| 858 | |
---|
| 859 | # Check whether --enable-bare-cpu-model or --disable-bare-cpu-model was given. |
---|
| 860 | if test "${enable_bare_cpu_model+set}" = set; then |
---|
| 861 | enableval="$enable_bare_cpu_model" |
---|
| 862 | case "${enableval}" in |
---|
| 863 | no) BARE_CPU_MODEL="" ;; |
---|
| 864 | *) BARE_CPU_MODEL="${enableval}" ;; |
---|
| 865 | esac |
---|
| 866 | else |
---|
| 867 | BARE_CPU_MODEL="" |
---|
| 868 | fi |
---|
| 869 | |
---|
| 870 | |
---|
| 871 | # Check whether --enable-hwapi or --disable-hwapi was given. |
---|
| 872 | if test "${enable_hwapi+set}" = set; then |
---|
| 873 | enableval="$enable_hwapi" |
---|
| 874 | case "${enableval}" in |
---|
| 875 | yes) RTEMS_HAS_HWAPI=yes ;; |
---|
| 876 | no) RTEMS_HAS_HWAPI=no ;; |
---|
| 877 | *) { echo "configure: error: bad value ${enableval} for hwapi option" 1>&2; exit 1; } ;; |
---|
| 878 | esac |
---|
| 879 | else |
---|
| 880 | RTEMS_HAS_HWAPI=no |
---|
| 881 | fi |
---|
| 882 | |
---|
| 883 | |
---|
| 884 | |
---|
| 885 | echo $ac_n "checking for RTEMS_BSP""... $ac_c" 1>&6 |
---|
[3a8915e] | 886 | echo "configure:887: checking for RTEMS_BSP" >&5 |
---|
[eb299afc] | 887 | if eval "test \"`echo '$''{'rtems_cv_RTEMS_BSP'+set}'`\" = set"; then |
---|
| 888 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 889 | else |
---|
| 890 | test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP"; |
---|
| 891 | |
---|
| 892 | fi |
---|
| 893 | if test -z "$rtems_cv_RTEMS_BSP"; then |
---|
| 894 | { echo "configure: error: Missing RTEMS_BSP" 1>&2; exit 1; } |
---|
| 895 | fi |
---|
| 896 | RTEMS_BSP="$rtems_cv_RTEMS_BSP" |
---|
| 897 | echo "$ac_t""${RTEMS_BSP}" 1>&6 |
---|
| 898 | |
---|
| 899 | |
---|
| 900 | |
---|
| 901 | # Find a good install program. We prefer a C program (faster), |
---|
| 902 | # so one script is as good as another. But avoid the broken or |
---|
| 903 | # incompatible versions: |
---|
| 904 | # SysV /etc/install, /usr/sbin/install |
---|
| 905 | # SunOS /usr/etc/install |
---|
| 906 | # IRIX /sbin/install |
---|
| 907 | # AIX /bin/install |
---|
| 908 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
| 909 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
| 910 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
| 911 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
| 912 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
---|
[3a8915e] | 913 | echo "configure:914: checking for a BSD compatible install" >&5 |
---|
[eb299afc] | 914 | if test -z "$INSTALL"; then |
---|
| 915 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
---|
| 916 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 917 | else |
---|
| 918 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
---|
| 919 | for ac_dir in $PATH; do |
---|
| 920 | # Account for people who put trailing slashes in PATH elements. |
---|
| 921 | case "$ac_dir/" in |
---|
| 922 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
---|
| 923 | *) |
---|
| 924 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
| 925 | # Don't use installbsd from OSF since it installs stuff as root |
---|
| 926 | # by default. |
---|
| 927 | for ac_prog in ginstall scoinst install; do |
---|
| 928 | if test -f $ac_dir/$ac_prog; then |
---|
| 929 | if test $ac_prog = install && |
---|
| 930 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
---|
| 931 | # AIX install. It has an incompatible calling convention. |
---|
| 932 | : |
---|
| 933 | else |
---|
| 934 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
---|
| 935 | break 2 |
---|
| 936 | fi |
---|
| 937 | fi |
---|
| 938 | done |
---|
| 939 | ;; |
---|
| 940 | esac |
---|
| 941 | done |
---|
| 942 | IFS="$ac_save_IFS" |
---|
| 943 | |
---|
| 944 | fi |
---|
| 945 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 946 | INSTALL="$ac_cv_path_install" |
---|
| 947 | else |
---|
| 948 | # As a last resort, use the slow shell script. We don't cache a |
---|
| 949 | # path for INSTALL within a source directory, because that will |
---|
| 950 | # break other packages using the cache if that directory is |
---|
| 951 | # removed, or if the path is relative. |
---|
| 952 | INSTALL="$ac_install_sh" |
---|
| 953 | fi |
---|
| 954 | fi |
---|
| 955 | echo "$ac_t""$INSTALL" 1>&6 |
---|
| 956 | |
---|
| 957 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
| 958 | # It thinks the first close brace ends the variable substitution. |
---|
| 959 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
| 960 | |
---|
| 961 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
---|
| 962 | |
---|
| 963 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
| 964 | |
---|
| 965 | |
---|
| 966 | |
---|
| 967 | |
---|
| 968 | # Is this a supported CPU? |
---|
| 969 | echo $ac_n "checking if cpu $RTEMS_CPU is supported""... $ac_c" 1>&6 |
---|
[3a8915e] | 970 | echo "configure:971: checking if cpu $RTEMS_CPU is supported" >&5 |
---|
[eb299afc] | 971 | if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$RTEMS_CPU"; then |
---|
| 972 | echo "$ac_t""yes" 1>&6 |
---|
| 973 | else |
---|
| 974 | { echo "configure: error: no" 1>&2; exit 1; } |
---|
| 975 | fi |
---|
| 976 | |
---|
| 977 | |
---|
| 978 | RTEMS_HOST=$host_os |
---|
| 979 | case "${target}" in |
---|
| 980 | # hpux unix port should go here |
---|
| 981 | i[3456]86-pc-linux*) # unix "simulator" port |
---|
| 982 | RTEMS_HOST=Linux |
---|
| 983 | ;; |
---|
| 984 | i[3456]86-*freebsd2*) # unix "simulator" port |
---|
| 985 | RTEMS_HOST=FreeBSD |
---|
| 986 | ;; |
---|
| 987 | sparc-sun-solaris*) # unix "simulator" port |
---|
| 988 | RTEMS_HOST=Solaris |
---|
| 989 | ;; |
---|
| 990 | *) |
---|
| 991 | ;; |
---|
| 992 | esac |
---|
| 993 | |
---|
| 994 | |
---|
| 995 | |
---|
| 996 | |
---|
| 997 | if test "$TARGET_SUBDIR" = "." ; then |
---|
| 998 | PROJECT_ROOT=$RTEMS_TOPdir/'$(top_builddir)'; |
---|
| 999 | else |
---|
| 1000 | PROJECT_ROOT=../$RTEMS_TOPdir/'$(top_builddir)' |
---|
| 1001 | fi |
---|
| 1002 | |
---|
| 1003 | |
---|
| 1004 | RTEMS_ROOT=$RTEMS_TOPdir/'$(top_builddir)'/c/$RTEMS_BSP |
---|
| 1005 | |
---|
| 1006 | |
---|
| 1007 | INSTALL_CHANGE="\$(KSH) \$(PROJECT_ROOT)/tools/build/install-if-change" |
---|
| 1008 | |
---|
| 1009 | |
---|
| 1010 | PACKHEX="\$(PROJECT_ROOT)/tools/build/packhex" |
---|
| 1011 | |
---|
| 1012 | |
---|
| 1013 | |
---|
| 1014 | |
---|
| 1015 | if [ "${program_prefix}" = "NONE" ] ; then |
---|
| 1016 | if [ "${target}" = "${host}" ] ; then |
---|
| 1017 | program_prefix= |
---|
| 1018 | else |
---|
| 1019 | program_prefix=${target}- |
---|
| 1020 | fi |
---|
| 1021 | fi |
---|
| 1022 | |
---|
| 1023 | |
---|
| 1024 | |
---|
| 1025 | |
---|
| 1026 | for ac_prog in "$program_prefix"gcc "$program_prefix"cc |
---|
| 1027 | do |
---|
| 1028 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1029 | set dummy $ac_prog; ac_word=$2 |
---|
| 1030 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[3a8915e] | 1031 | echo "configure:1032: checking for $ac_word" >&5 |
---|
[eb299afc] | 1032 | if eval "test \"`echo '$''{'ac_cv_path_CC_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1033 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1034 | else |
---|
| 1035 | case "$CC_FOR_TARGET" in |
---|
| 1036 | /*) |
---|
| 1037 | ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a path. |
---|
| 1038 | ;; |
---|
| 1039 | ?:/*) |
---|
| 1040 | ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 1041 | ;; |
---|
| 1042 | *) |
---|
| 1043 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1044 | ac_dummy="$PATH" |
---|
| 1045 | for ac_dir in $ac_dummy; do |
---|
| 1046 | test -z "$ac_dir" && ac_dir=. |
---|
| 1047 | if test -f $ac_dir/$ac_word; then |
---|
| 1048 | ac_cv_path_CC_FOR_TARGET="$ac_dir/$ac_word" |
---|
| 1049 | break |
---|
| 1050 | fi |
---|
| 1051 | done |
---|
| 1052 | IFS="$ac_save_ifs" |
---|
| 1053 | ;; |
---|
| 1054 | esac |
---|
| 1055 | fi |
---|
| 1056 | CC_FOR_TARGET="$ac_cv_path_CC_FOR_TARGET" |
---|
| 1057 | if test -n "$CC_FOR_TARGET"; then |
---|
| 1058 | echo "$ac_t""$CC_FOR_TARGET" 1>&6 |
---|
| 1059 | else |
---|
| 1060 | echo "$ac_t""no" 1>&6 |
---|
| 1061 | fi |
---|
| 1062 | |
---|
| 1063 | test -n "$CC_FOR_TARGET" && break |
---|
| 1064 | done |
---|
| 1065 | |
---|
| 1066 | test -z "$CC_FOR_TARGET" \ |
---|
| 1067 | && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
| 1068 | |
---|
| 1069 | rtems_save_CC=$CC |
---|
| 1070 | rtems_save_CFLAGS=$CFLAGS |
---|
| 1071 | |
---|
| 1072 | CC=$CC_FOR_TARGET |
---|
| 1073 | |
---|
| 1074 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
[3a8915e] | 1075 | echo "configure:1076: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
[eb299afc] | 1076 | |
---|
| 1077 | ac_ext=c |
---|
| 1078 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 1079 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1080 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 1081 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 1082 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 1083 | |
---|
| 1084 | cat > conftest.$ac_ext << EOF |
---|
| 1085 | |
---|
[3a8915e] | 1086 | #line 1087 "configure" |
---|
[eb299afc] | 1087 | #include "confdefs.h" |
---|
| 1088 | |
---|
| 1089 | main(){return(0);} |
---|
| 1090 | EOF |
---|
[3a8915e] | 1091 | if { (eval echo configure:1092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
[eb299afc] | 1092 | ac_cv_prog_cc_works=yes |
---|
| 1093 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
| 1094 | if (./conftest; exit) 2>/dev/null; then |
---|
| 1095 | ac_cv_prog_cc_cross=no |
---|
| 1096 | else |
---|
| 1097 | ac_cv_prog_cc_cross=yes |
---|
| 1098 | fi |
---|
| 1099 | else |
---|
| 1100 | echo "configure: failed program was:" >&5 |
---|
| 1101 | cat conftest.$ac_ext >&5 |
---|
| 1102 | ac_cv_prog_cc_works=no |
---|
| 1103 | fi |
---|
| 1104 | rm -fr conftest* |
---|
| 1105 | ac_ext=c |
---|
| 1106 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 1107 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1108 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 1109 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 1110 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 1111 | |
---|
| 1112 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
| 1113 | if test $ac_cv_prog_cc_works = no; then |
---|
| 1114 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
| 1115 | fi |
---|
| 1116 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
[3a8915e] | 1117 | echo "configure:1118: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
[eb299afc] | 1118 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
| 1119 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 1120 | |
---|
| 1121 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
[3a8915e] | 1122 | echo "configure:1123: checking whether we are using GNU C" >&5 |
---|
[eb299afc] | 1123 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
| 1124 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1125 | else |
---|
| 1126 | cat > conftest.c <<EOF |
---|
| 1127 | #ifdef __GNUC__ |
---|
| 1128 | yes; |
---|
| 1129 | #endif |
---|
| 1130 | EOF |
---|
[3a8915e] | 1131 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
[eb299afc] | 1132 | ac_cv_prog_gcc=yes |
---|
| 1133 | else |
---|
| 1134 | ac_cv_prog_gcc=no |
---|
| 1135 | fi |
---|
| 1136 | fi |
---|
| 1137 | |
---|
| 1138 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
| 1139 | |
---|
| 1140 | if test $ac_cv_prog_gcc = yes; then |
---|
| 1141 | GCC=yes |
---|
| 1142 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
| 1143 | ac_save_CFLAGS="$CFLAGS" |
---|
| 1144 | CFLAGS= |
---|
| 1145 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
[3a8915e] | 1146 | echo "configure:1147: checking whether ${CC-cc} accepts -g" >&5 |
---|
[eb299afc] | 1147 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
| 1148 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1149 | else |
---|
| 1150 | echo 'void f(){}' > conftest.c |
---|
| 1151 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
| 1152 | ac_cv_prog_cc_g=yes |
---|
| 1153 | else |
---|
| 1154 | ac_cv_prog_cc_g=no |
---|
| 1155 | fi |
---|
| 1156 | rm -f conftest* |
---|
| 1157 | |
---|
| 1158 | fi |
---|
| 1159 | |
---|
| 1160 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
| 1161 | if test "$ac_test_CFLAGS" = set; then |
---|
| 1162 | CFLAGS="$ac_save_CFLAGS" |
---|
| 1163 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 1164 | CFLAGS="-g -O2" |
---|
| 1165 | else |
---|
| 1166 | CFLAGS="-O2" |
---|
| 1167 | fi |
---|
| 1168 | else |
---|
| 1169 | GCC= |
---|
| 1170 | test "${CFLAGS+set}" = set || CFLAGS="-g" |
---|
| 1171 | fi |
---|
| 1172 | |
---|
| 1173 | rtems_cv_prog_gcc=$ac_cv_prog_gcc |
---|
| 1174 | rtems_cv_prog_cc_g=$ac_cv_prog_cc_g |
---|
| 1175 | rtems_cv_prog_cc_works=$ac_cv_prog_cc_works |
---|
| 1176 | rtems_cv_prog_cc_cross=$ac_cv_prog_cc_cross |
---|
| 1177 | |
---|
| 1178 | CC=$rtems_save_CC |
---|
| 1179 | CFLAGS=$rtems_save_CFLAGS |
---|
| 1180 | |
---|
| 1181 | unset ac_cv_prog_gcc |
---|
| 1182 | unset ac_cv_prog_cc_g |
---|
| 1183 | unset ac_cv_prog_cc_works |
---|
| 1184 | unset ac_cv_prog_cc_cross |
---|
| 1185 | |
---|
| 1186 | |
---|
| 1187 | echo $ac_n "checking whether $CC_FOR_TARGET accepts -specs""... $ac_c" 1>&6 |
---|
[3a8915e] | 1188 | echo "configure:1189: checking whether $CC_FOR_TARGET accepts -specs" >&5 |
---|
[eb299afc] | 1189 | if eval "test \"`echo '$''{'rtems_cv_gcc_specs'+set}'`\" = set"; then |
---|
| 1190 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1191 | else |
---|
| 1192 | |
---|
| 1193 | rtems_cv_gcc_specs=no |
---|
| 1194 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 1195 | touch confspec |
---|
| 1196 | echo 'void f(){}' >conftest.c |
---|
| 1197 | if test -z "`${CC_FOR_TARGET} -specs confspec -c conftest.c 2>&1`";then |
---|
| 1198 | rtems_cv_gcc_specs=yes |
---|
| 1199 | fi |
---|
| 1200 | fi |
---|
| 1201 | rm -f confspec conftest* |
---|
| 1202 | |
---|
| 1203 | fi |
---|
| 1204 | |
---|
| 1205 | echo "$ac_t""$rtems_cv_gcc_specs" 1>&6 |
---|
| 1206 | |
---|
| 1207 | |
---|
| 1208 | echo $ac_n "checking whether $CC_FOR_TARGET accepts --pipe""... $ac_c" 1>&6 |
---|
[3a8915e] | 1209 | echo "configure:1210: checking whether $CC_FOR_TARGET accepts --pipe" >&5 |
---|
[eb299afc] | 1210 | if eval "test \"`echo '$''{'rtems_cv_gcc_pipe'+set}'`\" = set"; then |
---|
| 1211 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1212 | else |
---|
| 1213 | |
---|
| 1214 | rtems_cv_gcc_pipe=no |
---|
| 1215 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 1216 | case "$host_os" in |
---|
| 1217 | cygwin*) |
---|
| 1218 | ;; |
---|
| 1219 | *) |
---|
| 1220 | echo 'void f(){}' >conftest.c |
---|
| 1221 | if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then |
---|
| 1222 | rtems_cv_gcc_pipe=yes |
---|
| 1223 | fi |
---|
| 1224 | rm -f conftest* |
---|
| 1225 | ;; |
---|
| 1226 | esac |
---|
| 1227 | fi |
---|
| 1228 | |
---|
| 1229 | fi |
---|
| 1230 | |
---|
| 1231 | echo "$ac_t""$rtems_cv_gcc_pipe" 1>&6 |
---|
| 1232 | |
---|
| 1233 | if test "$RTEMS_USE_GCC272" != "yes" ; then |
---|
| 1234 | if test "$rtems_cv_gcc_specs" = "no"; then |
---|
| 1235 | echo "configure: warning: *** disabling --enable-gcc28" 1>&2 |
---|
| 1236 | RTEMS_USE_GCC272=yes |
---|
| 1237 | fi |
---|
| 1238 | fi |
---|
| 1239 | test "$rtems_cv_gcc_pipe" = "yes" && CC_FOR_TARGET="$CC_FOR_TARGET --pipe" |
---|
| 1240 | |
---|
| 1241 | case $host_os in |
---|
| 1242 | *cygwin*) GCCSED="| sed 's%\\\\%/%g'" ;; |
---|
| 1243 | *) ;; |
---|
| 1244 | esac |
---|
| 1245 | |
---|
| 1246 | |
---|
| 1247 | |
---|
| 1248 | if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then |
---|
| 1249 | |
---|
| 1250 | |
---|
| 1251 | |
---|
| 1252 | for ac_prog in "$program_prefix"g++ "$program_prefix"c++ |
---|
| 1253 | do |
---|
| 1254 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1255 | set dummy $ac_prog; ac_word=$2 |
---|
| 1256 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[3a8915e] | 1257 | echo "configure:1258: checking for $ac_word" >&5 |
---|
[eb299afc] | 1258 | if eval "test \"`echo '$''{'ac_cv_path_CXX_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1259 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1260 | else |
---|
| 1261 | case "$CXX_FOR_TARGET" in |
---|
| 1262 | /*) |
---|
| 1263 | ac_cv_path_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test with a path. |
---|
| 1264 | ;; |
---|
| 1265 | ?:/*) |
---|
| 1266 | ac_cv_path_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 1267 | ;; |
---|
| 1268 | *) |
---|
| 1269 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1270 | ac_dummy="$PATH" |
---|
| 1271 | for ac_dir in $ac_dummy; do |
---|
| 1272 | test -z "$ac_dir" && ac_dir=. |
---|
| 1273 | if test -f $ac_dir/$ac_word; then |
---|
| 1274 | ac_cv_path_CXX_FOR_TARGET="$ac_dir/$ac_word" |
---|
| 1275 | break |
---|
| 1276 | fi |
---|
| 1277 | done |
---|
| 1278 | IFS="$ac_save_ifs" |
---|
| 1279 | ;; |
---|
| 1280 | esac |
---|
| 1281 | fi |
---|
| 1282 | CXX_FOR_TARGET="$ac_cv_path_CXX_FOR_TARGET" |
---|
| 1283 | if test -n "$CXX_FOR_TARGET"; then |
---|
| 1284 | echo "$ac_t""$CXX_FOR_TARGET" 1>&6 |
---|
| 1285 | else |
---|
| 1286 | echo "$ac_t""no" 1>&6 |
---|
| 1287 | fi |
---|
| 1288 | |
---|
| 1289 | test -n "$CXX_FOR_TARGET" && break |
---|
| 1290 | done |
---|
| 1291 | |
---|
| 1292 | test -z "$CXX_FOR_TARGET" \ |
---|
| 1293 | && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; } |
---|
| 1294 | |
---|
| 1295 | rtems_save_CXX=$CXX |
---|
| 1296 | rtems_save_CXXFLAGS=$CXXFLAGS |
---|
| 1297 | |
---|
| 1298 | CXX=$CXX_FOR_TARGET |
---|
| 1299 | |
---|
| 1300 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
[3a8915e] | 1301 | echo "configure:1302: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
---|
[eb299afc] | 1302 | |
---|
| 1303 | ac_ext=C |
---|
| 1304 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 1305 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 1306 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 1307 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 1308 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
| 1309 | |
---|
| 1310 | cat > conftest.$ac_ext << EOF |
---|
| 1311 | |
---|
[3a8915e] | 1312 | #line 1313 "configure" |
---|
[eb299afc] | 1313 | #include "confdefs.h" |
---|
| 1314 | |
---|
| 1315 | int main(){return(0);} |
---|
| 1316 | EOF |
---|
[3a8915e] | 1317 | if { (eval echo configure:1318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
[eb299afc] | 1318 | ac_cv_prog_cxx_works=yes |
---|
| 1319 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
| 1320 | if (./conftest; exit) 2>/dev/null; then |
---|
| 1321 | ac_cv_prog_cxx_cross=no |
---|
| 1322 | else |
---|
| 1323 | ac_cv_prog_cxx_cross=yes |
---|
| 1324 | fi |
---|
| 1325 | else |
---|
| 1326 | echo "configure: failed program was:" >&5 |
---|
| 1327 | cat conftest.$ac_ext >&5 |
---|
| 1328 | ac_cv_prog_cxx_works=no |
---|
| 1329 | fi |
---|
| 1330 | rm -fr conftest* |
---|
| 1331 | ac_ext=c |
---|
| 1332 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 1333 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1334 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 1335 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 1336 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 1337 | |
---|
| 1338 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
---|
| 1339 | if test $ac_cv_prog_cxx_works = no; then |
---|
| 1340 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } |
---|
| 1341 | fi |
---|
| 1342 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
[3a8915e] | 1343 | echo "configure:1344: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
[eb299afc] | 1344 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
---|
| 1345 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
| 1346 | |
---|
| 1347 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
---|
[3a8915e] | 1348 | echo "configure:1349: checking whether we are using GNU C++" >&5 |
---|
[eb299afc] | 1349 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
---|
| 1350 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1351 | else |
---|
| 1352 | cat > conftest.C <<EOF |
---|
| 1353 | #ifdef __GNUC__ |
---|
| 1354 | yes; |
---|
| 1355 | #endif |
---|
| 1356 | EOF |
---|
[3a8915e] | 1357 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
[eb299afc] | 1358 | ac_cv_prog_gxx=yes |
---|
| 1359 | else |
---|
| 1360 | ac_cv_prog_gxx=no |
---|
| 1361 | fi |
---|
| 1362 | fi |
---|
| 1363 | |
---|
| 1364 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
---|
| 1365 | |
---|
| 1366 | if test $ac_cv_prog_gxx = yes; then |
---|
| 1367 | GXX=yes |
---|
| 1368 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
---|
| 1369 | ac_save_CXXFLAGS="$CXXFLAGS" |
---|
| 1370 | CXXFLAGS= |
---|
| 1371 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 |
---|
[3a8915e] | 1372 | echo "configure:1373: checking whether ${CXX-g++} accepts -g" >&5 |
---|
[eb299afc] | 1373 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
---|
| 1374 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1375 | else |
---|
| 1376 | echo 'void f(){}' > conftest.cc |
---|
| 1377 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then |
---|
| 1378 | ac_cv_prog_cxx_g=yes |
---|
| 1379 | else |
---|
| 1380 | ac_cv_prog_cxx_g=no |
---|
| 1381 | fi |
---|
| 1382 | rm -f conftest* |
---|
| 1383 | |
---|
| 1384 | fi |
---|
| 1385 | |
---|
| 1386 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 |
---|
| 1387 | if test "$ac_test_CXXFLAGS" = set; then |
---|
| 1388 | CXXFLAGS="$ac_save_CXXFLAGS" |
---|
| 1389 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
| 1390 | CXXFLAGS="-g -O2" |
---|
| 1391 | else |
---|
| 1392 | CXXFLAGS="-O2" |
---|
| 1393 | fi |
---|
| 1394 | else |
---|
| 1395 | GXX= |
---|
| 1396 | test "${CXXFLAGS+set}" = set || CXXFLAGS="-g" |
---|
| 1397 | fi |
---|
| 1398 | |
---|
| 1399 | rtems_cv_prog_gxx=$ac_cv_prog_gxx |
---|
| 1400 | rtems_cv_prog_cxx_g=$ac_cv_prog_cxx_g |
---|
| 1401 | rtems_cv_prog_cxx_works=$ac_cv_prog_cxx_works |
---|
| 1402 | rtems_cv_prog_cxx_cross=$ac_cv_prog_cxx_cross |
---|
| 1403 | |
---|
| 1404 | CXX=$rtems_save_CXX |
---|
| 1405 | CXXFLAGS=$rtems_save_CXXFLAGS |
---|
| 1406 | |
---|
| 1407 | unset ac_cv_prog_gxx |
---|
| 1408 | unset ac_cv_prog_cc_g |
---|
| 1409 | unset ac_cv_prog_cxx_works |
---|
| 1410 | unset ac_cv_prog_cxx_cross |
---|
| 1411 | |
---|
| 1412 | if test "$rtems_cv_prog_cc_cross" != "$rtems_cv_prog_cxx_cross"; then |
---|
| 1413 | { echo "configure: error: *** |
---|
| 1414 | Inconsistency in compiler configuration: |
---|
| 1415 | Target C compiler and Target C++ compiler |
---|
| 1416 | must both either be cross compilers or native compilers |
---|
| 1417 | Hint: If building a posix bsp: LD_LIBRARY_PATH? " 1>&2; exit 1; } |
---|
| 1418 | fi |
---|
| 1419 | |
---|
| 1420 | fi |
---|
| 1421 | |
---|
| 1422 | |
---|
| 1423 | |
---|
| 1424 | echo $ac_n "checking target's ar""... $ac_c" 1>&6 |
---|
[3a8915e] | 1425 | echo "configure:1426: checking target's ar" >&5 |
---|
[eb299afc] | 1426 | if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1427 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1428 | else |
---|
| 1429 | : |
---|
| 1430 | fi |
---|
| 1431 | |
---|
| 1432 | echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6 |
---|
| 1433 | |
---|
| 1434 | if test -n "$ac_cv_path_AR_FOR_TARGET"; then |
---|
| 1435 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
---|
| 1436 | else |
---|
| 1437 | if test -z "$AR_FOR_TARGET" ; then |
---|
| 1438 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 1439 | # We are using gcc, ask it about its tool |
---|
| 1440 | # NOTE: Necessary if gcc was configured to use the target's |
---|
| 1441 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
| 1442 | case $host_os in |
---|
| 1443 | *cygwin*) |
---|
| 1444 | AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar | sed -e 's%\\\\%/%g' ` |
---|
| 1445 | ;; |
---|
| 1446 | *) |
---|
| 1447 | AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar` |
---|
| 1448 | ;; |
---|
| 1449 | esac |
---|
| 1450 | |
---|
| 1451 | fi |
---|
| 1452 | else |
---|
| 1453 | # The user set an environment variable. |
---|
| 1454 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
| 1455 | # will override the environment variable, which isn't what the user |
---|
| 1456 | # intends |
---|
| 1457 | echo $ac_n "checking whether environment variable AR_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
[3a8915e] | 1458 | echo "configure:1459: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5 |
---|
[eb299afc] | 1459 | case "$AR_FOR_TARGET" in |
---|
| 1460 | /*) # valid |
---|
| 1461 | echo "$ac_t"""yes"" 1>&6 |
---|
| 1462 | ;; |
---|
| 1463 | *) # invalid for AC_PATH_PROG |
---|
| 1464 | echo "$ac_t"""no"" 1>&6 |
---|
| 1465 | { echo "configure: error: *** |
---|
| 1466 | Environment variable AR_FOR_TARGET should either |
---|
| 1467 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
| 1468 | ;; |
---|
| 1469 | esac |
---|
| 1470 | fi |
---|
| 1471 | |
---|
| 1472 | # Extract the first word of ""$program_prefix"ar", so it can be a program name with args. |
---|
| 1473 | set dummy "$program_prefix"ar; ac_word=$2 |
---|
| 1474 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[3a8915e] | 1475 | echo "configure:1476: checking for $ac_word" >&5 |
---|
[eb299afc] | 1476 | if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1477 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1478 | else |
---|
| 1479 | case "$AR_FOR_TARGET" in |
---|
| 1480 | /*) |
---|
| 1481 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
---|
| 1482 | ;; |
---|
| 1483 | ?:/*) |
---|
| 1484 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 1485 | ;; |
---|
| 1486 | *) |
---|
| 1487 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1488 | ac_dummy="$PATH" |
---|
| 1489 | for ac_dir in $ac_dummy; do |
---|
| 1490 | test -z "$ac_dir" && ac_dir=. |
---|
| 1491 | if test -f $ac_dir/$ac_word; then |
---|
| 1492 | ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word" |
---|
| 1493 | break |
---|
| 1494 | fi |
---|
| 1495 | done |
---|
| 1496 | IFS="$ac_save_ifs" |
---|
| 1497 | test -z "$ac_cv_path_AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET="no" |
---|
| 1498 | ;; |
---|
| 1499 | esac |
---|
| 1500 | fi |
---|
| 1501 | AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET" |
---|
| 1502 | if test -n "$AR_FOR_TARGET"; then |
---|
| 1503 | echo "$ac_t""$AR_FOR_TARGET" 1>&6 |
---|
| 1504 | else |
---|
| 1505 | echo "$ac_t""no" 1>&6 |
---|
| 1506 | fi |
---|
| 1507 | |
---|
| 1508 | fi |
---|
| 1509 | |
---|
| 1510 | |
---|
| 1511 | echo $ac_n "checking target's as""... $ac_c" 1>&6 |
---|
[3a8915e] | 1512 | echo "configure:1513: checking target's as" >&5 |
---|
[eb299afc] | 1513 | if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1514 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1515 | else |
---|
| 1516 | : |
---|
| 1517 | fi |
---|
| 1518 | |
---|
| 1519 | echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6 |
---|
| 1520 | |
---|
| 1521 | if test -n "$ac_cv_path_AS_FOR_TARGET"; then |
---|
| 1522 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
---|
| 1523 | else |
---|
| 1524 | if test -z "$AS_FOR_TARGET" ; then |
---|
| 1525 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 1526 | # We are using gcc, ask it about its tool |
---|
| 1527 | # NOTE: Necessary if gcc was configured to use the target's |
---|
| 1528 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
| 1529 | case $host_os in |
---|
| 1530 | *cygwin*) |
---|
| 1531 | AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as | sed -e 's%\\\\%/%g' ` |
---|
| 1532 | ;; |
---|
| 1533 | *) |
---|
| 1534 | AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as` |
---|
| 1535 | ;; |
---|
| 1536 | esac |
---|
| 1537 | |
---|
| 1538 | fi |
---|
| 1539 | else |
---|
| 1540 | # The user set an environment variable. |
---|
| 1541 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
| 1542 | # will override the environment variable, which isn't what the user |
---|
| 1543 | # intends |
---|
| 1544 | echo $ac_n "checking whether environment variable AS_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
[3a8915e] | 1545 | echo "configure:1546: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5 |
---|
[eb299afc] | 1546 | case "$AS_FOR_TARGET" in |
---|
| 1547 | /*) # valid |
---|
| 1548 | echo "$ac_t"""yes"" 1>&6 |
---|
| 1549 | ;; |
---|
| 1550 | *) # invalid for AC_PATH_PROG |
---|
| 1551 | echo "$ac_t"""no"" 1>&6 |
---|
| 1552 | { echo "configure: error: *** |
---|
| 1553 | Environment variable AS_FOR_TARGET should either |
---|
| 1554 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
| 1555 | ;; |
---|
| 1556 | esac |
---|
| 1557 | fi |
---|
| 1558 | |
---|
| 1559 | # Extract the first word of ""$program_prefix"as", so it can be a program name with args. |
---|
| 1560 | set dummy "$program_prefix"as; ac_word=$2 |
---|
| 1561 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[3a8915e] | 1562 | echo "configure:1563: checking for $ac_word" >&5 |
---|
[eb299afc] | 1563 | if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1564 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1565 | else |
---|
| 1566 | case "$AS_FOR_TARGET" in |
---|
| 1567 | /*) |
---|
| 1568 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
---|
| 1569 | ;; |
---|
| 1570 | ?:/*) |
---|
| 1571 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 1572 | ;; |
---|
| 1573 | *) |
---|
| 1574 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1575 | ac_dummy="$PATH" |
---|
| 1576 | for ac_dir in $ac_dummy; do |
---|
| 1577 | test -z "$ac_dir" && ac_dir=. |
---|
| 1578 | if test -f $ac_dir/$ac_word; then |
---|
| 1579 | ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word" |
---|
| 1580 | break |
---|
| 1581 | fi |
---|
| 1582 | done |
---|
| 1583 | IFS="$ac_save_ifs" |
---|
| 1584 | test -z "$ac_cv_path_AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET="no" |
---|
| 1585 | ;; |
---|
| 1586 | esac |
---|
| 1587 | fi |
---|
| 1588 | AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET" |
---|
| 1589 | if test -n "$AS_FOR_TARGET"; then |
---|
| 1590 | echo "$ac_t""$AS_FOR_TARGET" 1>&6 |
---|
| 1591 | else |
---|
| 1592 | echo "$ac_t""no" 1>&6 |
---|
| 1593 | fi |
---|
| 1594 | |
---|
| 1595 | fi |
---|
| 1596 | |
---|
| 1597 | |
---|
| 1598 | echo $ac_n "checking target's ld""... $ac_c" 1>&6 |
---|
[3a8915e] | 1599 | echo "configure:1600: checking target's ld" >&5 |
---|
[eb299afc] | 1600 | if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1601 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1602 | else |
---|
| 1603 | : |
---|
| 1604 | fi |
---|
| 1605 | |
---|
| 1606 | echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6 |
---|
| 1607 | |
---|
| 1608 | if test -n "$ac_cv_path_LD_FOR_TARGET"; then |
---|
| 1609 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
---|
| 1610 | else |
---|
| 1611 | if test -z "$LD_FOR_TARGET" ; then |
---|
| 1612 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 1613 | # We are using gcc, ask it about its tool |
---|
| 1614 | # NOTE: Necessary if gcc was configured to use the target's |
---|
| 1615 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
| 1616 | case $host_os in |
---|
| 1617 | *cygwin*) |
---|
| 1618 | LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld | sed -e 's%\\\\%/%g' ` |
---|
| 1619 | ;; |
---|
| 1620 | *) |
---|
| 1621 | LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld` |
---|
| 1622 | ;; |
---|
| 1623 | esac |
---|
| 1624 | |
---|
| 1625 | fi |
---|
| 1626 | else |
---|
| 1627 | # The user set an environment variable. |
---|
| 1628 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
| 1629 | # will override the environment variable, which isn't what the user |
---|
| 1630 | # intends |
---|
| 1631 | echo $ac_n "checking whether environment variable LD_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
[3a8915e] | 1632 | echo "configure:1633: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5 |
---|
[eb299afc] | 1633 | case "$LD_FOR_TARGET" in |
---|
| 1634 | /*) # valid |
---|
| 1635 | echo "$ac_t"""yes"" 1>&6 |
---|
| 1636 | ;; |
---|
| 1637 | *) # invalid for AC_PATH_PROG |
---|
| 1638 | echo "$ac_t"""no"" 1>&6 |
---|
| 1639 | { echo "configure: error: *** |
---|
| 1640 | Environment variable LD_FOR_TARGET should either |
---|
| 1641 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
| 1642 | ;; |
---|
| 1643 | esac |
---|
| 1644 | fi |
---|
| 1645 | |
---|
| 1646 | # Extract the first word of ""$program_prefix"ld", so it can be a program name with args. |
---|
| 1647 | set dummy "$program_prefix"ld; ac_word=$2 |
---|
| 1648 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[3a8915e] | 1649 | echo "configure:1650: checking for $ac_word" >&5 |
---|
[eb299afc] | 1650 | if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1651 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1652 | else |
---|
| 1653 | case "$LD_FOR_TARGET" in |
---|
| 1654 | /*) |
---|
| 1655 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
---|
| 1656 | ;; |
---|
| 1657 | ?:/*) |
---|
| 1658 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 1659 | ;; |
---|
| 1660 | *) |
---|
| 1661 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1662 | ac_dummy="$PATH" |
---|
| 1663 | for ac_dir in $ac_dummy; do |
---|
| 1664 | test -z "$ac_dir" && ac_dir=. |
---|
| 1665 | if test -f $ac_dir/$ac_word; then |
---|
| 1666 | ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word" |
---|
| 1667 | break |
---|
| 1668 | fi |
---|
| 1669 | done |
---|
| 1670 | IFS="$ac_save_ifs" |
---|
| 1671 | test -z "$ac_cv_path_LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET="no" |
---|
| 1672 | ;; |
---|
| 1673 | esac |
---|
| 1674 | fi |
---|
| 1675 | LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET" |
---|
| 1676 | if test -n "$LD_FOR_TARGET"; then |
---|
| 1677 | echo "$ac_t""$LD_FOR_TARGET" 1>&6 |
---|
| 1678 | else |
---|
| 1679 | echo "$ac_t""no" 1>&6 |
---|
| 1680 | fi |
---|
| 1681 | |
---|
| 1682 | fi |
---|
| 1683 | |
---|
| 1684 | |
---|
| 1685 | echo $ac_n "checking target's nm""... $ac_c" 1>&6 |
---|
[3a8915e] | 1686 | echo "configure:1687: checking target's nm" >&5 |
---|
[eb299afc] | 1687 | if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1688 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1689 | else |
---|
| 1690 | : |
---|
| 1691 | fi |
---|
| 1692 | |
---|
| 1693 | echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6 |
---|
| 1694 | |
---|
| 1695 | if test -n "$ac_cv_path_NM_FOR_TARGET"; then |
---|
| 1696 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
---|
| 1697 | else |
---|
| 1698 | if test -z "$NM_FOR_TARGET" ; then |
---|
| 1699 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 1700 | # We are using gcc, ask it about its tool |
---|
| 1701 | # NOTE: Necessary if gcc was configured to use the target's |
---|
| 1702 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
| 1703 | case $host_os in |
---|
| 1704 | *cygwin*) |
---|
| 1705 | NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm | sed -e 's%\\\\%/%g' ` |
---|
| 1706 | ;; |
---|
| 1707 | *) |
---|
| 1708 | NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm` |
---|
| 1709 | ;; |
---|
| 1710 | esac |
---|
| 1711 | |
---|
| 1712 | fi |
---|
| 1713 | else |
---|
| 1714 | # The user set an environment variable. |
---|
| 1715 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
| 1716 | # will override the environment variable, which isn't what the user |
---|
| 1717 | # intends |
---|
| 1718 | echo $ac_n "checking whether environment variable NM_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
[3a8915e] | 1719 | echo "configure:1720: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5 |
---|
[eb299afc] | 1720 | case "$NM_FOR_TARGET" in |
---|
| 1721 | /*) # valid |
---|
| 1722 | echo "$ac_t"""yes"" 1>&6 |
---|
| 1723 | ;; |
---|
| 1724 | *) # invalid for AC_PATH_PROG |
---|
| 1725 | echo "$ac_t"""no"" 1>&6 |
---|
| 1726 | { echo "configure: error: *** |
---|
| 1727 | Environment variable NM_FOR_TARGET should either |
---|
| 1728 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
| 1729 | ;; |
---|
| 1730 | esac |
---|
| 1731 | fi |
---|
| 1732 | |
---|
| 1733 | # Extract the first word of ""$program_prefix"nm", so it can be a program name with args. |
---|
| 1734 | set dummy "$program_prefix"nm; ac_word=$2 |
---|
| 1735 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[3a8915e] | 1736 | echo "configure:1737: checking for $ac_word" >&5 |
---|
[eb299afc] | 1737 | if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1738 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1739 | else |
---|
| 1740 | case "$NM_FOR_TARGET" in |
---|
| 1741 | /*) |
---|
| 1742 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
---|
| 1743 | ;; |
---|
| 1744 | ?:/*) |
---|
| 1745 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 1746 | ;; |
---|
| 1747 | *) |
---|
| 1748 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1749 | ac_dummy="$PATH" |
---|
| 1750 | for ac_dir in $ac_dummy; do |
---|
| 1751 | test -z "$ac_dir" && ac_dir=. |
---|
| 1752 | if test -f $ac_dir/$ac_word; then |
---|
| 1753 | ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word" |
---|
| 1754 | break |
---|
| 1755 | fi |
---|
| 1756 | done |
---|
| 1757 | IFS="$ac_save_ifs" |
---|
| 1758 | test -z "$ac_cv_path_NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET="no" |
---|
| 1759 | ;; |
---|
| 1760 | esac |
---|
| 1761 | fi |
---|
| 1762 | NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET" |
---|
| 1763 | if test -n "$NM_FOR_TARGET"; then |
---|
| 1764 | echo "$ac_t""$NM_FOR_TARGET" 1>&6 |
---|
| 1765 | else |
---|
| 1766 | echo "$ac_t""no" 1>&6 |
---|
| 1767 | fi |
---|
| 1768 | |
---|
| 1769 | fi |
---|
| 1770 | |
---|
| 1771 | |
---|
| 1772 | |
---|
| 1773 | echo $ac_n "checking target's ranlib""... $ac_c" 1>&6 |
---|
[3a8915e] | 1774 | echo "configure:1775: checking target's ranlib" >&5 |
---|
[eb299afc] | 1775 | if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1776 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1777 | else |
---|
| 1778 | : |
---|
| 1779 | fi |
---|
| 1780 | |
---|
| 1781 | echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6 |
---|
| 1782 | |
---|
| 1783 | if test -n "$ac_cv_path_RANLIB_FOR_TARGET"; then |
---|
| 1784 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
---|
| 1785 | else |
---|
| 1786 | if test -z "$RANLIB_FOR_TARGET" ; then |
---|
| 1787 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 1788 | # We are using gcc, ask it about its tool |
---|
| 1789 | # NOTE: Necessary if gcc was configured to use the target's |
---|
| 1790 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
| 1791 | case $host_os in |
---|
| 1792 | *cygwin*) |
---|
| 1793 | RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib | sed -e 's%\\\\%/%g' ` |
---|
| 1794 | ;; |
---|
| 1795 | *) |
---|
| 1796 | RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib` |
---|
| 1797 | ;; |
---|
| 1798 | esac |
---|
| 1799 | |
---|
| 1800 | fi |
---|
| 1801 | else |
---|
| 1802 | # The user set an environment variable. |
---|
| 1803 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
| 1804 | # will override the environment variable, which isn't what the user |
---|
| 1805 | # intends |
---|
| 1806 | echo $ac_n "checking whether environment variable RANLIB_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
[3a8915e] | 1807 | echo "configure:1808: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5 |
---|
[eb299afc] | 1808 | case "$RANLIB_FOR_TARGET" in |
---|
| 1809 | /*) # valid |
---|
| 1810 | echo "$ac_t"""yes"" 1>&6 |
---|
| 1811 | ;; |
---|
| 1812 | *) # invalid for AC_PATH_PROG |
---|
| 1813 | echo "$ac_t"""no"" 1>&6 |
---|
| 1814 | { echo "configure: error: *** |
---|
| 1815 | Environment variable RANLIB_FOR_TARGET should either |
---|
| 1816 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
| 1817 | ;; |
---|
| 1818 | esac |
---|
| 1819 | fi |
---|
| 1820 | |
---|
| 1821 | # Extract the first word of ""$program_prefix"ranlib", so it can be a program name with args. |
---|
| 1822 | set dummy "$program_prefix"ranlib; ac_word=$2 |
---|
| 1823 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[3a8915e] | 1824 | echo "configure:1825: checking for $ac_word" >&5 |
---|
[eb299afc] | 1825 | if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1826 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1827 | else |
---|
| 1828 | case "$RANLIB_FOR_TARGET" in |
---|
| 1829 | /*) |
---|
| 1830 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
---|
| 1831 | ;; |
---|
| 1832 | ?:/*) |
---|
| 1833 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 1834 | ;; |
---|
| 1835 | *) |
---|
| 1836 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1837 | ac_dummy="$PATH" |
---|
| 1838 | for ac_dir in $ac_dummy; do |
---|
| 1839 | test -z "$ac_dir" && ac_dir=. |
---|
| 1840 | if test -f $ac_dir/$ac_word; then |
---|
| 1841 | ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word" |
---|
| 1842 | break |
---|
| 1843 | fi |
---|
| 1844 | done |
---|
| 1845 | IFS="$ac_save_ifs" |
---|
| 1846 | test -z "$ac_cv_path_RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET="no" |
---|
| 1847 | ;; |
---|
| 1848 | esac |
---|
| 1849 | fi |
---|
| 1850 | RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET" |
---|
| 1851 | if test -n "$RANLIB_FOR_TARGET"; then |
---|
| 1852 | echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6 |
---|
| 1853 | else |
---|
| 1854 | echo "$ac_t""no" 1>&6 |
---|
| 1855 | fi |
---|
| 1856 | |
---|
| 1857 | fi |
---|
| 1858 | |
---|
| 1859 | if test "$RANLIB_FOR_TARGET" = "no"; then |
---|
| 1860 | # ranlib wasn't found; check if ar -s is available |
---|
| 1861 | |
---|
| 1862 | echo $ac_n "checking whether $AR_FOR_TARGET -s works""... $ac_c" 1>&6 |
---|
[3a8915e] | 1863 | echo "configure:1864: checking whether $AR_FOR_TARGET -s works" >&5 |
---|
[eb299afc] | 1864 | if eval "test \"`echo '$''{'rtems_cv_AR_FOR_TARGET_S'+set}'`\" = set"; then |
---|
| 1865 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1866 | else |
---|
| 1867 | |
---|
| 1868 | cat > conftest.$ac_ext <<EOF |
---|
| 1869 | int foo( int b ) |
---|
| 1870 | { return b; } |
---|
| 1871 | EOF |
---|
[3a8915e] | 1872 | if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:1873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \ |
---|
| 1873 | && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:1874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \ |
---|
[eb299afc] | 1874 | && test -s conftest.a ; \ |
---|
| 1875 | then |
---|
| 1876 | rtems_cv_AR_FOR_TARGET_S="yes" |
---|
| 1877 | else |
---|
| 1878 | rtems_cv_AR_FOR_TARGET_S="no" |
---|
| 1879 | fi |
---|
| 1880 | rm -f conftest* |
---|
| 1881 | |
---|
| 1882 | fi |
---|
| 1883 | |
---|
| 1884 | echo "$ac_t""$rtems_cv_AR_FOR_TARGET_S" 1>&6 |
---|
| 1885 | |
---|
| 1886 | if test $rtems_cv_AR_FOR_TARGET_S = "yes" ; then |
---|
| 1887 | ac_cv_path_RANLIB_FOR_TARGET="$AR_FOR_TARGET -s" |
---|
| 1888 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
---|
| 1889 | else |
---|
| 1890 | { echo "configure: error: *** |
---|
| 1891 | Can't figure out how to build a library index |
---|
| 1892 | Neither ranlib nor ar -s seem to be available " 1>&2; exit 1; } |
---|
| 1893 | fi |
---|
| 1894 | fi |
---|
| 1895 | |
---|
| 1896 | |
---|
| 1897 | echo $ac_n "checking target's objcopy""... $ac_c" 1>&6 |
---|
[3a8915e] | 1898 | echo "configure:1899: checking target's objcopy" >&5 |
---|
[eb299afc] | 1899 | if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1900 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1901 | else |
---|
| 1902 | : |
---|
| 1903 | fi |
---|
| 1904 | |
---|
| 1905 | echo "$ac_t""$ac_cv_path_OBJCOPY_FOR_TARGET" 1>&6 |
---|
| 1906 | |
---|
| 1907 | if test -n "$ac_cv_path_OBJCOPY_FOR_TARGET"; then |
---|
| 1908 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET |
---|
| 1909 | else |
---|
| 1910 | if test -z "$OBJCOPY_FOR_TARGET" ; then |
---|
| 1911 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 1912 | # We are using gcc, ask it about its tool |
---|
| 1913 | # NOTE: Necessary if gcc was configured to use the target's |
---|
| 1914 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
| 1915 | case $host_os in |
---|
| 1916 | *cygwin*) |
---|
| 1917 | OBJCOPY_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=objcopy | sed -e 's%\\\\%/%g' ` |
---|
| 1918 | ;; |
---|
| 1919 | *) |
---|
| 1920 | OBJCOPY_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=objcopy` |
---|
| 1921 | ;; |
---|
| 1922 | esac |
---|
| 1923 | |
---|
| 1924 | fi |
---|
| 1925 | else |
---|
| 1926 | # The user set an environment variable. |
---|
| 1927 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
| 1928 | # will override the environment variable, which isn't what the user |
---|
| 1929 | # intends |
---|
| 1930 | echo $ac_n "checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
[3a8915e] | 1931 | echo "configure:1932: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5 |
---|
[eb299afc] | 1932 | case "$OBJCOPY_FOR_TARGET" in |
---|
| 1933 | /*) # valid |
---|
| 1934 | echo "$ac_t"""yes"" 1>&6 |
---|
| 1935 | ;; |
---|
| 1936 | *) # invalid for AC_PATH_PROG |
---|
| 1937 | echo "$ac_t"""no"" 1>&6 |
---|
| 1938 | { echo "configure: error: *** |
---|
| 1939 | Environment variable OBJCOPY_FOR_TARGET should either |
---|
| 1940 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
| 1941 | ;; |
---|
| 1942 | esac |
---|
| 1943 | fi |
---|
| 1944 | |
---|
| 1945 | # Extract the first word of ""$program_prefix"objcopy", so it can be a program name with args. |
---|
| 1946 | set dummy "$program_prefix"objcopy; ac_word=$2 |
---|
| 1947 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[3a8915e] | 1948 | echo "configure:1949: checking for $ac_word" >&5 |
---|
[eb299afc] | 1949 | if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1950 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1951 | else |
---|
| 1952 | case "$OBJCOPY_FOR_TARGET" in |
---|
| 1953 | /*) |
---|
| 1954 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. |
---|
| 1955 | ;; |
---|
| 1956 | ?:/*) |
---|
| 1957 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 1958 | ;; |
---|
| 1959 | *) |
---|
| 1960 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1961 | ac_dummy="$PATH" |
---|
| 1962 | for ac_dir in $ac_dummy; do |
---|
| 1963 | test -z "$ac_dir" && ac_dir=. |
---|
| 1964 | if test -f $ac_dir/$ac_word; then |
---|
| 1965 | ac_cv_path_OBJCOPY_FOR_TARGET="$ac_dir/$ac_word" |
---|
| 1966 | break |
---|
| 1967 | fi |
---|
| 1968 | done |
---|
| 1969 | IFS="$ac_save_ifs" |
---|
| 1970 | test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET="no" |
---|
| 1971 | ;; |
---|
| 1972 | esac |
---|
| 1973 | fi |
---|
| 1974 | OBJCOPY_FOR_TARGET="$ac_cv_path_OBJCOPY_FOR_TARGET" |
---|
| 1975 | if test -n "$OBJCOPY_FOR_TARGET"; then |
---|
| 1976 | echo "$ac_t""$OBJCOPY_FOR_TARGET" 1>&6 |
---|
| 1977 | else |
---|
| 1978 | echo "$ac_t""no" 1>&6 |
---|
| 1979 | fi |
---|
| 1980 | |
---|
| 1981 | fi |
---|
| 1982 | |
---|
| 1983 | |
---|
| 1984 | echo $ac_n "checking target's size""... $ac_c" 1>&6 |
---|
[3a8915e] | 1985 | echo "configure:1986: checking target's size" >&5 |
---|
[eb299afc] | 1986 | if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1987 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1988 | else |
---|
| 1989 | : |
---|
| 1990 | fi |
---|
| 1991 | |
---|
| 1992 | echo "$ac_t""$ac_cv_path_SIZE_FOR_TARGET" 1>&6 |
---|
| 1993 | |
---|
| 1994 | if test -n "$ac_cv_path_SIZE_FOR_TARGET"; then |
---|
| 1995 | SIZE_FOR_TARGET=$ac_cv_path_SIZE_FOR_TARGET |
---|
| 1996 | else |
---|
| 1997 | if test -z "$SIZE_FOR_TARGET" ; then |
---|
| 1998 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 1999 | # We are using gcc, ask it about its tool |
---|
| 2000 | # NOTE: Necessary if gcc was configured to use the target's |
---|
| 2001 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
| 2002 | case $host_os in |
---|
| 2003 | *cygwin*) |
---|
| 2004 | SIZE_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=size | sed -e 's%\\\\%/%g' ` |
---|
| 2005 | ;; |
---|
| 2006 | *) |
---|
| 2007 | SIZE_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=size` |
---|
| 2008 | ;; |
---|
| 2009 | esac |
---|
| 2010 | |
---|
| 2011 | fi |
---|
| 2012 | else |
---|
| 2013 | # The user set an environment variable. |
---|
| 2014 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
| 2015 | # will override the environment variable, which isn't what the user |
---|
| 2016 | # intends |
---|
| 2017 | echo $ac_n "checking whether environment variable SIZE_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
[3a8915e] | 2018 | echo "configure:2019: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5 |
---|
[eb299afc] | 2019 | case "$SIZE_FOR_TARGET" in |
---|
| 2020 | /*) # valid |
---|
| 2021 | echo "$ac_t"""yes"" 1>&6 |
---|
| 2022 | ;; |
---|
| 2023 | *) # invalid for AC_PATH_PROG |
---|
| 2024 | echo "$ac_t"""no"" 1>&6 |
---|
| 2025 | { echo "configure: error: *** |
---|
| 2026 | Environment variable SIZE_FOR_TARGET should either |
---|
| 2027 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
| 2028 | ;; |
---|
| 2029 | esac |
---|
| 2030 | fi |
---|
| 2031 | |
---|
| 2032 | # Extract the first word of ""$program_prefix"size", so it can be a program name with args. |
---|
| 2033 | set dummy "$program_prefix"size; ac_word=$2 |
---|
| 2034 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[3a8915e] | 2035 | echo "configure:2036: checking for $ac_word" >&5 |
---|
[eb299afc] | 2036 | if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then |
---|
| 2037 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2038 | else |
---|
| 2039 | case "$SIZE_FOR_TARGET" in |
---|
| 2040 | /*) |
---|
| 2041 | ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a path. |
---|
| 2042 | ;; |
---|
| 2043 | ?:/*) |
---|
| 2044 | ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 2045 | ;; |
---|
| 2046 | *) |
---|
| 2047 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 2048 | ac_dummy="$PATH" |
---|
| 2049 | for ac_dir in $ac_dummy; do |
---|
| 2050 | test -z "$ac_dir" && ac_dir=. |
---|
| 2051 | if test -f $ac_dir/$ac_word; then |
---|
| 2052 | ac_cv_path_SIZE_FOR_TARGET="$ac_dir/$ac_word" |
---|
| 2053 | break |
---|
| 2054 | fi |
---|
| 2055 | done |
---|
| 2056 | IFS="$ac_save_ifs" |
---|
| 2057 | test -z "$ac_cv_path_SIZE_FOR_TARGET" && ac_cv_path_SIZE_FOR_TARGET="no" |
---|
| 2058 | ;; |
---|
| 2059 | esac |
---|
| 2060 | fi |
---|
| 2061 | SIZE_FOR_TARGET="$ac_cv_path_SIZE_FOR_TARGET" |
---|
| 2062 | if test -n "$SIZE_FOR_TARGET"; then |
---|
| 2063 | echo "$ac_t""$SIZE_FOR_TARGET" 1>&6 |
---|
| 2064 | else |
---|
| 2065 | echo "$ac_t""no" 1>&6 |
---|
| 2066 | fi |
---|
| 2067 | |
---|
| 2068 | fi |
---|
| 2069 | |
---|
| 2070 | |
---|
| 2071 | echo $ac_n "checking target's strip""... $ac_c" 1>&6 |
---|
[3a8915e] | 2072 | echo "configure:2073: checking target's strip" >&5 |
---|
[eb299afc] | 2073 | if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then |
---|
| 2074 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2075 | else |
---|
| 2076 | : |
---|
| 2077 | fi |
---|
| 2078 | |
---|
| 2079 | echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6 |
---|
| 2080 | |
---|
| 2081 | if test -n "$ac_cv_path_STRIP_FOR_TARGET"; then |
---|
| 2082 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
---|
| 2083 | else |
---|
| 2084 | if test -z "$STRIP_FOR_TARGET" ; then |
---|
| 2085 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 2086 | # We are using gcc, ask it about its tool |
---|
| 2087 | # NOTE: Necessary if gcc was configured to use the target's |
---|
| 2088 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
| 2089 | case $host_os in |
---|
| 2090 | *cygwin*) |
---|
| 2091 | STRIP_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=strip | sed -e 's%\\\\%/%g' ` |
---|
| 2092 | ;; |
---|
| 2093 | *) |
---|
| 2094 | STRIP_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=strip` |
---|
| 2095 | ;; |
---|
| 2096 | esac |
---|
| 2097 | |
---|
| 2098 | fi |
---|
| 2099 | else |
---|
| 2100 | # The user set an environment variable. |
---|
| 2101 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
| 2102 | # will override the environment variable, which isn't what the user |
---|
| 2103 | # intends |
---|
| 2104 | echo $ac_n "checking whether environment variable STRIP_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
[3a8915e] | 2105 | echo "configure:2106: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5 |
---|
[eb299afc] | 2106 | case "$STRIP_FOR_TARGET" in |
---|
| 2107 | /*) # valid |
---|
| 2108 | echo "$ac_t"""yes"" 1>&6 |
---|
| 2109 | ;; |
---|
| 2110 | *) # invalid for AC_PATH_PROG |
---|
| 2111 | echo "$ac_t"""no"" 1>&6 |
---|
| 2112 | { echo "configure: error: *** |
---|
| 2113 | Environment variable STRIP_FOR_TARGET should either |
---|
| 2114 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
| 2115 | ;; |
---|
| 2116 | esac |
---|
| 2117 | fi |
---|
| 2118 | |
---|
| 2119 | # Extract the first word of ""$program_prefix"strip", so it can be a program name with args. |
---|
| 2120 | set dummy "$program_prefix"strip; ac_word=$2 |
---|
| 2121 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[3a8915e] | 2122 | echo "configure:2123: checking for $ac_word" >&5 |
---|
[eb299afc] | 2123 | if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then |
---|
| 2124 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2125 | else |
---|
| 2126 | case "$STRIP_FOR_TARGET" in |
---|
| 2127 | /*) |
---|
| 2128 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
---|
| 2129 | ;; |
---|
| 2130 | ?:/*) |
---|
| 2131 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 2132 | ;; |
---|
| 2133 | *) |
---|
| 2134 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 2135 | ac_dummy="$PATH" |
---|
| 2136 | for ac_dir in $ac_dummy; do |
---|
| 2137 | test -z "$ac_dir" && ac_dir=. |
---|
| 2138 | if test -f $ac_dir/$ac_word; then |
---|
| 2139 | ac_cv_path_STRIP_FOR_TARGET="$ac_dir/$ac_word" |
---|
| 2140 | break |
---|
| 2141 | fi |
---|
| 2142 | done |
---|
| 2143 | IFS="$ac_save_ifs" |
---|
| 2144 | test -z "$ac_cv_path_STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET="no" |
---|
| 2145 | ;; |
---|
| 2146 | esac |
---|
| 2147 | fi |
---|
| 2148 | STRIP_FOR_TARGET="$ac_cv_path_STRIP_FOR_TARGET" |
---|
| 2149 | if test -n "$STRIP_FOR_TARGET"; then |
---|
| 2150 | echo "$ac_t""$STRIP_FOR_TARGET" 1>&6 |
---|
| 2151 | else |
---|
| 2152 | echo "$ac_t""no" 1>&6 |
---|
| 2153 | fi |
---|
| 2154 | |
---|
| 2155 | fi |
---|
| 2156 | |
---|
| 2157 | |
---|
| 2158 | |
---|
| 2159 | if test "${target_cpu}" = "i386"; then |
---|
| 2160 | echo $ac_n "checking for 16 bit mode assembler support""... $ac_c" 1>&6 |
---|
[3a8915e] | 2161 | echo "configure:2162: checking for 16 bit mode assembler support" >&5 |
---|
[eb299afc] | 2162 | if eval "test \"`echo '$''{'rtems_cv_prog_gas_code16'+set}'`\" = set"; then |
---|
| 2163 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2164 | else |
---|
| 2165 | cat > conftest.s << EOF |
---|
| 2166 | .code16 |
---|
| 2167 | data32 |
---|
| 2168 | addr32 |
---|
| 2169 | lgdt 0 |
---|
| 2170 | EOF |
---|
[3a8915e] | 2171 | if { ac_try='$AS_FOR_TARGET -o conftest.o conftest.s'; { (eval echo configure:2172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
---|
[eb299afc] | 2172 | rtems_cv_prog_gas_code16=yes |
---|
| 2173 | else |
---|
| 2174 | rtems_cv_prog_gas_code16=no |
---|
| 2175 | fi |
---|
| 2176 | fi |
---|
| 2177 | |
---|
| 2178 | echo "$ac_t""$rtems_cv_prog_gas_code16" 1>&6 |
---|
| 2179 | RTEMS_GAS_CODE16="$rtems_cv_prog_gas_code16" |
---|
| 2180 | fi |
---|
| 2181 | |
---|
| 2182 | |
---|
| 2183 | |
---|
| 2184 | |
---|
| 2185 | if test "$RTEMS_GAS_CODE16" = "yes"; then |
---|
| 2186 | RTEMS_GAS_CODE16_TRUE= |
---|
| 2187 | RTEMS_GAS_CODE16_FALSE='#' |
---|
| 2188 | else |
---|
| 2189 | RTEMS_GAS_CODE16_TRUE='#' |
---|
| 2190 | RTEMS_GAS_CODE16_FALSE= |
---|
| 2191 | fi; |
---|
| 2192 | |
---|
| 2193 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 2194 | set dummy gcc; ac_word=$2 |
---|
| 2195 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[3a8915e] | 2196 | echo "configure:2197: checking for $ac_word" >&5 |
---|
[eb299afc] | 2197 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
| 2198 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2199 | else |
---|
| 2200 | if test -n "$CC"; then |
---|
| 2201 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2202 | else |
---|
| 2203 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 2204 | ac_dummy="$PATH" |
---|
| 2205 | for ac_dir in $ac_dummy; do |
---|
| 2206 | test -z "$ac_dir" && ac_dir=. |
---|
| 2207 | if test -f $ac_dir/$ac_word; then |
---|
| 2208 | ac_cv_prog_CC="gcc" |
---|
| 2209 | break |
---|
| 2210 | fi |
---|
| 2211 | done |
---|
| 2212 | IFS="$ac_save_ifs" |
---|
| 2213 | fi |
---|
| 2214 | fi |
---|
| 2215 | CC="$ac_cv_prog_CC" |
---|
| 2216 | if test -n "$CC"; then |
---|
| 2217 | echo "$ac_t""$CC" 1>&6 |
---|
| 2218 | else |
---|
| 2219 | echo "$ac_t""no" 1>&6 |
---|
| 2220 | fi |
---|
| 2221 | |
---|
| 2222 | if test -z "$CC"; then |
---|
| 2223 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2224 | set dummy cc; ac_word=$2 |
---|
| 2225 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[3a8915e] | 2226 | echo "configure:2227: checking for $ac_word" >&5 |
---|
[eb299afc] | 2227 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
| 2228 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2229 | else |
---|
| 2230 | if test -n "$CC"; then |
---|
| 2231 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2232 | else |
---|
| 2233 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 2234 | ac_prog_rejected=no |
---|
| 2235 | ac_dummy="$PATH" |
---|
| 2236 | for ac_dir in $ac_dummy; do |
---|
| 2237 | test -z "$ac_dir" && ac_dir=. |
---|
| 2238 | if test -f $ac_dir/$ac_word; then |
---|
| 2239 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
---|
| 2240 | ac_prog_rejected=yes |
---|
| 2241 | continue |
---|
| 2242 | fi |
---|
| 2243 | ac_cv_prog_CC="cc" |
---|
| 2244 | break |
---|
| 2245 | fi |
---|
| 2246 | done |
---|
| 2247 | IFS="$ac_save_ifs" |
---|
| 2248 | if test $ac_prog_rejected = yes; then |
---|
| 2249 | # We found a bogon in the path, so make sure we never use it. |
---|
| 2250 | set dummy $ac_cv_prog_CC |
---|
| 2251 | shift |
---|
| 2252 | if test $# -gt 0; then |
---|
| 2253 | # We chose a different compiler from the bogus one. |
---|
| 2254 | # However, it has the same basename, so the bogon will be chosen |
---|
| 2255 | # first if we set CC to just the basename; use the full file name. |
---|
| 2256 | shift |
---|
| 2257 | set dummy "$ac_dir/$ac_word" "$@" |
---|
| 2258 | shift |
---|
| 2259 | ac_cv_prog_CC="$@" |
---|
| 2260 | fi |
---|
| 2261 | fi |
---|
| 2262 | fi |
---|
| 2263 | fi |
---|
| 2264 | CC="$ac_cv_prog_CC" |
---|
| 2265 | if test -n "$CC"; then |
---|
| 2266 | echo "$ac_t""$CC" 1>&6 |
---|
| 2267 | else |
---|
| 2268 | echo "$ac_t""no" 1>&6 |
---|
| 2269 | fi |
---|
| 2270 | |
---|
| 2271 | if test -z "$CC"; then |
---|
| 2272 | case "`uname -s`" in |
---|
| 2273 | *win32* | *WIN32*) |
---|
| 2274 | # Extract the first word of "cl", so it can be a program name with args. |
---|
| 2275 | set dummy cl; ac_word=$2 |
---|
| 2276 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[3a8915e] | 2277 | echo "configure:2278: checking for $ac_word" >&5 |
---|
[eb299afc] | 2278 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
| 2279 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2280 | else |
---|
| 2281 | if test -n "$CC"; then |
---|
| 2282 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2283 | else |
---|
| 2284 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 2285 | ac_dummy="$PATH" |
---|
| 2286 | for ac_dir in $ac_dummy; do |
---|
| 2287 | test -z "$ac_dir" && ac_dir=. |
---|
| 2288 | if test -f $ac_dir/$ac_word; then |
---|
| 2289 | ac_cv_prog_CC="cl" |
---|
| 2290 | break |
---|
| 2291 | fi |
---|
| 2292 | done |
---|
| 2293 | IFS="$ac_save_ifs" |
---|
| 2294 | fi |
---|
| 2295 | fi |
---|
| 2296 | CC="$ac_cv_prog_CC" |
---|
| 2297 | if test -n "$CC"; then |
---|
| 2298 | echo "$ac_t""$CC" 1>&6 |
---|
| 2299 | else |
---|
| 2300 | echo "$ac_t""no" 1>&6 |
---|
| 2301 | fi |
---|
| 2302 | ;; |
---|
| 2303 | esac |
---|
| 2304 | fi |
---|
| 2305 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
| 2306 | fi |
---|
| 2307 | |
---|
| 2308 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
[3a8915e] | 2309 | echo "configure:2310: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
[eb299afc] | 2310 | |
---|
| 2311 | ac_ext=c |
---|
| 2312 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 2313 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2314 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 2315 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 2316 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 2317 | |
---|
| 2318 | cat > conftest.$ac_ext << EOF |
---|
| 2319 | |
---|
[3a8915e] | 2320 | #line 2321 "configure" |
---|
[eb299afc] | 2321 | #include "confdefs.h" |
---|
| 2322 | |
---|
| 2323 | main(){return(0);} |
---|
| 2324 | EOF |
---|
[3a8915e] | 2325 | if { (eval echo configure:2326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
[eb299afc] | 2326 | ac_cv_prog_cc_works=yes |
---|
| 2327 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
| 2328 | if (./conftest; exit) 2>/dev/null; then |
---|
| 2329 | ac_cv_prog_cc_cross=no |
---|
| 2330 | else |
---|
| 2331 | ac_cv_prog_cc_cross=yes |
---|
| 2332 | fi |
---|
| 2333 | else |
---|
| 2334 | echo "configure: failed program was:" >&5 |
---|
| 2335 | cat conftest.$ac_ext >&5 |
---|
| 2336 | ac_cv_prog_cc_works=no |
---|
| 2337 | fi |
---|
| 2338 | rm -fr conftest* |
---|
| 2339 | ac_ext=c |
---|
| 2340 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 2341 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2342 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 2343 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 2344 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 2345 | |
---|
| 2346 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
| 2347 | if test $ac_cv_prog_cc_works = no; then |
---|
| 2348 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
| 2349 | fi |
---|
| 2350 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
[3a8915e] | 2351 | echo "configure:2352: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
[eb299afc] | 2352 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
| 2353 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 2354 | |
---|
| 2355 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
[3a8915e] | 2356 | echo "configure:2357: checking whether we are using GNU C" >&5 |
---|
[eb299afc] | 2357 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
| 2358 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2359 | else |
---|
| 2360 | cat > conftest.c <<EOF |
---|
| 2361 | #ifdef __GNUC__ |
---|
| 2362 | yes; |
---|
| 2363 | #endif |
---|
| 2364 | EOF |
---|
[3a8915e] | 2365 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
[eb299afc] | 2366 | ac_cv_prog_gcc=yes |
---|
| 2367 | else |
---|
| 2368 | ac_cv_prog_gcc=no |
---|
| 2369 | fi |
---|
| 2370 | fi |
---|
| 2371 | |
---|
| 2372 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
| 2373 | |
---|
| 2374 | if test $ac_cv_prog_gcc = yes; then |
---|
| 2375 | GCC=yes |
---|
| 2376 | else |
---|
| 2377 | GCC= |
---|
| 2378 | fi |
---|
| 2379 | |
---|
| 2380 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
| 2381 | ac_save_CFLAGS="$CFLAGS" |
---|
| 2382 | CFLAGS= |
---|
| 2383 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
[3a8915e] | 2384 | echo "configure:2385: checking whether ${CC-cc} accepts -g" >&5 |
---|
[eb299afc] | 2385 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
| 2386 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2387 | else |
---|
| 2388 | echo 'void f(){}' > conftest.c |
---|
| 2389 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
| 2390 | ac_cv_prog_cc_g=yes |
---|
| 2391 | else |
---|
| 2392 | ac_cv_prog_cc_g=no |
---|
| 2393 | fi |
---|
| 2394 | rm -f conftest* |
---|
| 2395 | |
---|
| 2396 | fi |
---|
| 2397 | |
---|
| 2398 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
| 2399 | if test "$ac_test_CFLAGS" = set; then |
---|
| 2400 | CFLAGS="$ac_save_CFLAGS" |
---|
| 2401 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 2402 | if test "$GCC" = yes; then |
---|
| 2403 | CFLAGS="-g -O2" |
---|
| 2404 | else |
---|
| 2405 | CFLAGS="-g" |
---|
| 2406 | fi |
---|
| 2407 | else |
---|
| 2408 | if test "$GCC" = yes; then |
---|
| 2409 | CFLAGS="-O2" |
---|
| 2410 | else |
---|
| 2411 | CFLAGS= |
---|
| 2412 | fi |
---|
| 2413 | fi |
---|
| 2414 | |
---|
| 2415 | |
---|
| 2416 | if test "$RTEMS_CPU" = "unix" ; then |
---|
| 2417 | |
---|
| 2418 | |
---|
| 2419 | echo $ac_n "checking whether $RTEMS_HOST supports System V semaphores""... $ac_c" 1>&6 |
---|
[3a8915e] | 2420 | echo "configure:2421: checking whether $RTEMS_HOST supports System V semaphores" >&5 |
---|
[eb299afc] | 2421 | if eval "test \"`echo '$''{'rtems_cv_sysv_sem'+set}'`\" = set"; then |
---|
| 2422 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2423 | else |
---|
| 2424 | |
---|
| 2425 | if test "$cross_compiling" = yes; then |
---|
| 2426 | : |
---|
| 2427 | else |
---|
| 2428 | cat > conftest.$ac_ext <<EOF |
---|
[3a8915e] | 2429 | #line 2430 "configure" |
---|
[eb299afc] | 2430 | #include "confdefs.h" |
---|
| 2431 | |
---|
| 2432 | #include <sys/types.h> |
---|
| 2433 | #include <sys/ipc.h> |
---|
| 2434 | #include <sys/sem.h> |
---|
| 2435 | int main () { |
---|
| 2436 | #if !defined(sun) |
---|
| 2437 | union semun arg ; |
---|
| 2438 | #else |
---|
| 2439 | union semun { |
---|
| 2440 | int val; |
---|
| 2441 | struct semid_ds *buf; |
---|
| 2442 | ushort *array; |
---|
| 2443 | } arg; |
---|
| 2444 | #endif |
---|
| 2445 | int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400); |
---|
| 2446 | if (id == -1) |
---|
| 2447 | exit(1); |
---|
| 2448 | arg.val = 0; /* avoid implicit type cast to union */ |
---|
| 2449 | if (semctl(id, 0, IPC_RMID, arg) == -1) |
---|
| 2450 | exit(1); |
---|
| 2451 | exit(0); |
---|
| 2452 | } |
---|
| 2453 | |
---|
| 2454 | EOF |
---|
[3a8915e] | 2455 | if { (eval echo configure:2456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
[eb299afc] | 2456 | then |
---|
| 2457 | rtems_cv_sysv_sem="yes" |
---|
| 2458 | else |
---|
| 2459 | echo "configure: failed program was:" >&5 |
---|
| 2460 | cat conftest.$ac_ext >&5 |
---|
| 2461 | rm -fr conftest* |
---|
| 2462 | rtems_cv_sysv_sem="no" |
---|
| 2463 | fi |
---|
| 2464 | rm -fr conftest* |
---|
| 2465 | fi |
---|
| 2466 | |
---|
| 2467 | |
---|
| 2468 | fi |
---|
| 2469 | |
---|
| 2470 | echo "$ac_t""$rtems_cv_sysv_sem" 1>&6 |
---|
| 2471 | |
---|
| 2472 | if test "$rtems_cv_sysv_sem" != "yes" ; then |
---|
| 2473 | { echo "configure: error: System V semaphores don't work, required by simulator" 1>&2; exit 1; } |
---|
| 2474 | fi |
---|
| 2475 | |
---|
| 2476 | |
---|
| 2477 | echo $ac_n "checking whether $RTEMS_HOST supports System V shared memory""... $ac_c" 1>&6 |
---|
[3a8915e] | 2478 | echo "configure:2479: checking whether $RTEMS_HOST supports System V shared memory" >&5 |
---|
[eb299afc] | 2479 | if eval "test \"`echo '$''{'rtems_cv_sysv_shm'+set}'`\" = set"; then |
---|
| 2480 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2481 | else |
---|
| 2482 | |
---|
| 2483 | if test "$cross_compiling" = yes; then |
---|
| 2484 | : |
---|
| 2485 | else |
---|
| 2486 | cat > conftest.$ac_ext <<EOF |
---|
[3a8915e] | 2487 | #line 2488 "configure" |
---|
[eb299afc] | 2488 | #include "confdefs.h" |
---|
| 2489 | |
---|
| 2490 | #include <sys/types.h> |
---|
| 2491 | #include <sys/ipc.h> |
---|
| 2492 | #include <sys/shm.h> |
---|
| 2493 | int main () { |
---|
| 2494 | int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400); |
---|
| 2495 | if (id == -1) |
---|
| 2496 | exit(1); |
---|
| 2497 | if (shmctl(id, IPC_RMID, 0) == -1) |
---|
| 2498 | exit(1); |
---|
| 2499 | exit(0); |
---|
| 2500 | } |
---|
| 2501 | |
---|
| 2502 | EOF |
---|
[3a8915e] | 2503 | if { (eval echo configure:2504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
[eb299afc] | 2504 | then |
---|
| 2505 | rtems_cv_sysv_shm="yes" |
---|
| 2506 | else |
---|
| 2507 | echo "configure: failed program was:" >&5 |
---|
| 2508 | cat conftest.$ac_ext >&5 |
---|
| 2509 | rm -fr conftest* |
---|
| 2510 | rtems_cv_sysv_shm="no" |
---|
| 2511 | fi |
---|
| 2512 | rm -fr conftest* |
---|
| 2513 | fi |
---|
| 2514 | |
---|
| 2515 | |
---|
| 2516 | fi |
---|
| 2517 | |
---|
| 2518 | echo "$ac_t""$rtems_cv_sysv_shm" 1>&6 |
---|
| 2519 | |
---|
| 2520 | if test "$rtems_cv_sysv_shm" != "yes" ; then |
---|
| 2521 | { echo "configure: error: System V shared memory doesn't work, required by simulator" 1>&2; exit 1; } |
---|
| 2522 | fi |
---|
| 2523 | |
---|
| 2524 | |
---|
| 2525 | echo $ac_n "checking whether $RTEMS_HOST supports System V messages""... $ac_c" 1>&6 |
---|
[3a8915e] | 2526 | echo "configure:2527: checking whether $RTEMS_HOST supports System V messages" >&5 |
---|
[eb299afc] | 2527 | if eval "test \"`echo '$''{'rtems_cv_sysv_msg'+set}'`\" = set"; then |
---|
| 2528 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2529 | else |
---|
| 2530 | |
---|
| 2531 | if test "$cross_compiling" = yes; then |
---|
| 2532 | : |
---|
| 2533 | else |
---|
| 2534 | cat > conftest.$ac_ext <<EOF |
---|
[3a8915e] | 2535 | #line 2536 "configure" |
---|
[eb299afc] | 2536 | #include "confdefs.h" |
---|
| 2537 | |
---|
| 2538 | #include <sys/types.h> |
---|
| 2539 | #include <sys/ipc.h> |
---|
| 2540 | #include <sys/msg.h> |
---|
| 2541 | int main () { |
---|
| 2542 | int id=msgget(IPC_PRIVATE,IPC_CREAT|0400); |
---|
| 2543 | if (id == -1) |
---|
| 2544 | exit(1); |
---|
| 2545 | if (msgctl(id, IPC_RMID, 0) == -1) |
---|
| 2546 | exit(1); |
---|
| 2547 | exit(0); |
---|
| 2548 | } |
---|
| 2549 | |
---|
| 2550 | EOF |
---|
[3a8915e] | 2551 | if { (eval echo configure:2552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
[eb299afc] | 2552 | then |
---|
| 2553 | rtems_cv_sysv_msg="yes" |
---|
| 2554 | else |
---|
| 2555 | echo "configure: failed program was:" >&5 |
---|
| 2556 | cat conftest.$ac_ext >&5 |
---|
| 2557 | rm -fr conftest* |
---|
| 2558 | rtems_cv_sysv_msg="no" |
---|
| 2559 | fi |
---|
| 2560 | rm -fr conftest* |
---|
| 2561 | fi |
---|
| 2562 | |
---|
| 2563 | |
---|
| 2564 | fi |
---|
| 2565 | |
---|
| 2566 | echo "$ac_t""$rtems_cv_sysv_msg" 1>&6 |
---|
| 2567 | |
---|
| 2568 | if test "$rtems_cv_sysv_msg" != "yes" ; then |
---|
| 2569 | { echo "configure: error: System V messages don't work, required by simulator" 1>&2; exit 1; } |
---|
| 2570 | fi |
---|
| 2571 | fi |
---|
| 2572 | |
---|
| 2573 | |
---|
| 2574 | # find all the Makefiles for the BSPs |
---|
| 2575 | makefiles="$makefiles libbsp/$RTEMS_CPU/Makefile" |
---|
| 2576 | |
---|
| 2577 | if test "${RTEMS_BSP}" = "bare"; then |
---|
| 2578 | makefiles="$makefiles libbsp/bare/Makefile" |
---|
| 2579 | fi |
---|
| 2580 | |
---|
| 2581 | echo $ac_n "checking for make/custom/$RTEMS_BSP.cfg""... $ac_c" 1>&6 |
---|
[3a8915e] | 2582 | echo "configure:2583: checking for make/custom/$RTEMS_BSP.cfg" >&5 |
---|
[eb299afc] | 2583 | if test -r "$srcdir/$RTEMS_TOPdir/make/custom/$RTEMS_BSP.cfg"; then |
---|
| 2584 | echo "$ac_t""yes" 1>&6 |
---|
| 2585 | else |
---|
| 2586 | { echo "configure: error: no" 1>&2; exit 1; } |
---|
| 2587 | fi |
---|
| 2588 | |
---|
[1896a650] | 2589 | echo $ac_n "checking whether BSP supports multiprocessing""... $ac_c" 1>&6 |
---|
[3a8915e] | 2590 | echo "configure:2591: checking whether BSP supports multiprocessing" >&5 |
---|
[1896a650] | 2591 | if eval "test \"`echo '$''{'rtems_cv_HAS_MP'+set}'`\" = set"; then |
---|
| 2592 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2593 | else |
---|
| 2594 | if test -d "$srcdir/${RTEMS_TOPdir}/c/src/lib/libbsp/${RTEMS_CPU}/${RTEMS_BSP}/shmsupp"; then |
---|
| 2595 | if test "$RTEMS_HAS_MULTIPROCESSING" = "yes"; then |
---|
| 2596 | rtems_cv_HAS_MP="yes" ; |
---|
| 2597 | else |
---|
| 2598 | rtems_cv_HAS_MP="disabled"; |
---|
| 2599 | fi |
---|
| 2600 | else |
---|
| 2601 | rtems_cv_HAS_MP="no"; |
---|
| 2602 | fi |
---|
| 2603 | fi |
---|
| 2604 | |
---|
| 2605 | echo "$ac_t""$rtems_cv_HAS_MP" 1>&6 |
---|
| 2606 | if test "$rtems_cv_HAS_MP" = "yes"; then |
---|
| 2607 | HAS_MP="yes" |
---|
| 2608 | else |
---|
| 2609 | HAS_MP="no" |
---|
| 2610 | fi |
---|
| 2611 | |
---|
| 2612 | |
---|
[3a8915e] | 2613 | if eval "test \"`echo '$''{'rtems_cv_HAS_CPLUSPLUS'+set}'`\" = set"; then |
---|
| 2614 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2615 | else |
---|
| 2616 | if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then |
---|
| 2617 | if test -n "$CXX_FOR_TARGET"; then |
---|
| 2618 | rtems_cv_HAS_CPLUSPLUS="yes"; |
---|
| 2619 | else |
---|
| 2620 | rtems_cv_HAS_CPLUSPLUS="no"; |
---|
| 2621 | fi |
---|
| 2622 | else |
---|
| 2623 | rtems_cv_HAS_CPLUSPLUS="no"; |
---|
| 2624 | fi |
---|
| 2625 | |
---|
| 2626 | fi |
---|
| 2627 | HAS_CPLUSPLUS="$rtems_cv_HAS_CPLUSPLUS"; |
---|
| 2628 | |
---|
| 2629 | if eval "test \"`echo '$''{'rtems_cv_HAS_NETWORKING'+set}'`\" = set"; then |
---|
| 2630 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2631 | else |
---|
| 2632 | if test "$RTEMS_HAS_NETWORKING" = "yes"; then |
---|
| 2633 | rtems_cv_HAS_NETWORKING="yes"; |
---|
| 2634 | else |
---|
| 2635 | rtems_cv_HAS_NETWORKING="no"; |
---|
| 2636 | fi |
---|
| 2637 | |
---|
| 2638 | fi |
---|
| 2639 | HAS_NETWORKING="$rtems_cv_HAS_NETWORKING"; |
---|
| 2640 | |
---|
[eb299afc] | 2641 | |
---|
| 2642 | |
---|
| 2643 | # account for "aliased" bsps which share source code |
---|
| 2644 | case ${RTEMS_BSP} in |
---|
| 2645 | mvme162lx) bspdir=mvme162 ;; # mvme162 board variant |
---|
| 2646 | gen68360_040) bspdir=gen68360 ;; # 68360 in companion mode |
---|
| 2647 | go32_p5) bspdir=go32 ;; # go32 on Pentium class CPU |
---|
| 2648 | p4600) bspdir=p4000 ;; # p4000 board with IDT 4600 |
---|
| 2649 | p4650) bspdir=p4000 ;; # p4000 board with IDT 4650 |
---|
| 2650 | *) bspdir=${RTEMS_BSP};; |
---|
| 2651 | esac |
---|
| 2652 | |
---|
| 2653 | |
---|
| 2654 | # Is there code where there should be for this BSP? |
---|
| 2655 | # The bare bsp is a special case as it is not under the RTEMS_CPU path |
---|
| 2656 | case ${RTEMS_BSP} in |
---|
| 2657 | bare) |
---|
| 2658 | bspcpudir= |
---|
| 2659 | if test "X${BARE_CPU_CFLAGS}" = "X" ; then |
---|
| 2660 | { echo "configure: error: --enable-bare-cpu-cflags not specified for bare bsp" 1>&2; exit 1; } |
---|
| 2661 | fi |
---|
| 2662 | if test "X${BARE_CPU_MODEL}" = "X" ; then |
---|
| 2663 | { echo "configure: error: --enable-bare-cpu-model not specified for bare bsp" 1>&2; exit 1; } |
---|
| 2664 | fi |
---|
| 2665 | ;; |
---|
| 2666 | *) |
---|
| 2667 | bspcpudir=$RTEMS_CPU/ |
---|
| 2668 | ;; |
---|
| 2669 | esac |
---|
| 2670 | |
---|
| 2671 | if test "$RTEMS_BSP" = "bare" ; then |
---|
| 2672 | RTEMS_LIBBSP_CPU_SUBDIR="bare" |
---|
| 2673 | else |
---|
| 2674 | RTEMS_LIBBSP_CPU_SUBDIR='$(RTEMS_CPU)' |
---|
| 2675 | fi |
---|
| 2676 | |
---|
| 2677 | |
---|
| 2678 | if test -d "$srcdir/libbsp/$bspcpudir$bspdir"; then |
---|
| 2679 | |
---|
| 2680 | echo $ac_n "checking for Makefile.in in libbsp/${bspcpudir}$bspdir""... $ac_c" 1>&6 |
---|
[3a8915e] | 2681 | echo "configure:2682: checking for Makefile.in in libbsp/${bspcpudir}$bspdir" >&5 |
---|
[eb299afc] | 2682 | if test -d $srcdir/libbsp/${bspcpudir}$bspdir; then |
---|
| 2683 | rtems_av_save_dir=`pwd`; |
---|
| 2684 | cd $srcdir; |
---|
| 2685 | rtems_av_tmp=`find libbsp/${bspcpudir}$bspdir -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
| 2686 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 2687 | cd $rtems_av_save_dir; |
---|
| 2688 | echo "$ac_t""done" 1>&6 |
---|
| 2689 | else |
---|
| 2690 | echo "$ac_t""no" 1>&6 |
---|
| 2691 | fi |
---|
| 2692 | |
---|
| 2693 | |
---|
| 2694 | |
---|
| 2695 | echo $ac_n "checking for Makefile.in in libbsp/${bspcpudir}shared""... $ac_c" 1>&6 |
---|
[3a8915e] | 2696 | echo "configure:2697: checking for Makefile.in in libbsp/${bspcpudir}shared" >&5 |
---|
[eb299afc] | 2697 | if test -d $srcdir/libbsp/${bspcpudir}shared; then |
---|
| 2698 | rtems_av_save_dir=`pwd`; |
---|
| 2699 | cd $srcdir; |
---|
| 2700 | rtems_av_tmp=`find libbsp/${bspcpudir}shared -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
| 2701 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 2702 | cd $rtems_av_save_dir; |
---|
| 2703 | echo "$ac_t""done" 1>&6 |
---|
| 2704 | else |
---|
| 2705 | echo "$ac_t""no" 1>&6 |
---|
| 2706 | fi |
---|
| 2707 | |
---|
| 2708 | |
---|
| 2709 | |
---|
| 2710 | # HACK: sed out bsp-tools from makefiles |
---|
| 2711 | t="libbsp/$bspcpudir$bspdir/tools" |
---|
| 2712 | if test -d "$srcdir/$t"; then |
---|
| 2713 | bsptools_cfgdirs="$bsptools_cfgdirs $t" |
---|
| 2714 | makefiles=`echo "$makefiles" | sed -e "s%$t/.*Makefile%%g"` |
---|
| 2715 | fi |
---|
| 2716 | else |
---|
| 2717 | { echo "configure: error: unable to find libbsp directory ($bspdir) for ${RTEMS_BSP}" 1>&2; exit 1; } |
---|
| 2718 | fi |
---|
| 2719 | |
---|
[3a8915e] | 2720 | if test "$HAS_MP" = "yes"; then |
---|
| 2721 | makefiles="$makefiles libbsp/shmdr/Makefile" |
---|
| 2722 | fi |
---|
| 2723 | |
---|
[eb299afc] | 2724 | |
---|
| 2725 | |
---|
| 2726 | if test "$RTEMS_CPU" = "unix"; then |
---|
| 2727 | UNIX_TRUE= |
---|
| 2728 | UNIX_FALSE='#' |
---|
| 2729 | else |
---|
| 2730 | UNIX_TRUE='#' |
---|
| 2731 | UNIX_FALSE= |
---|
| 2732 | fi |
---|
| 2733 | # find all the CPU dependent library Makefiles |
---|
| 2734 | |
---|
| 2735 | echo $ac_n "checking for Makefile.in in libcpu/$RTEMS_CPU""... $ac_c" 1>&6 |
---|
[3a8915e] | 2736 | echo "configure:2737: checking for Makefile.in in libcpu/$RTEMS_CPU" >&5 |
---|
[eb299afc] | 2737 | if test -d $srcdir/libcpu/$RTEMS_CPU; then |
---|
| 2738 | rtems_av_save_dir=`pwd`; |
---|
| 2739 | cd $srcdir; |
---|
| 2740 | rtems_av_tmp=`find libcpu/$RTEMS_CPU -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
| 2741 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 2742 | cd $rtems_av_save_dir; |
---|
| 2743 | echo "$ac_t""done" 1>&6 |
---|
| 2744 | else |
---|
| 2745 | echo "$ac_t""no" 1>&6 |
---|
| 2746 | fi |
---|
| 2747 | |
---|
| 2748 | |
---|
| 2749 | |
---|
| 2750 | case "${target}" in |
---|
| 2751 | i[3456]86-go32-rtems*) |
---|
| 2752 | ;; |
---|
| 2753 | *) |
---|
| 2754 | |
---|
| 2755 | echo $ac_n "checking for Makefile.in in start/$RTEMS_CPU""... $ac_c" 1>&6 |
---|
[3a8915e] | 2756 | echo "configure:2757: checking for Makefile.in in start/$RTEMS_CPU" >&5 |
---|
[eb299afc] | 2757 | if test -d $srcdir/start/$RTEMS_CPU; then |
---|
| 2758 | rtems_av_save_dir=`pwd`; |
---|
| 2759 | cd $srcdir; |
---|
| 2760 | rtems_av_tmp=`find start/$RTEMS_CPU -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
| 2761 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 2762 | cd $rtems_av_save_dir; |
---|
| 2763 | echo "$ac_t""done" 1>&6 |
---|
| 2764 | else |
---|
| 2765 | echo "$ac_t""no" 1>&6 |
---|
| 2766 | fi |
---|
| 2767 | |
---|
| 2768 | |
---|
| 2769 | ;; |
---|
| 2770 | esac |
---|
| 2771 | |
---|
| 2772 | # If the TCP/IP stack is enabled, then find all TCP/IP Makefiles |
---|
| 2773 | echo $ac_n "checking if networking is enabled? ""... $ac_c" 1>&6 |
---|
[3a8915e] | 2774 | echo "configure:2775: checking if networking is enabled? " >&5 |
---|
[eb299afc] | 2775 | echo "$ac_t""$RTEMS_HAS_NETWORKING" 1>&6 |
---|
| 2776 | if test "$RTEMS_HAS_NETWORKING" = "yes"; then |
---|
| 2777 | |
---|
| 2778 | echo $ac_n "checking for Makefile.in in libnetworking""... $ac_c" 1>&6 |
---|
[3a8915e] | 2779 | echo "configure:2780: checking for Makefile.in in libnetworking" >&5 |
---|
[eb299afc] | 2780 | if test -d $srcdir/libnetworking; then |
---|
| 2781 | rtems_av_save_dir=`pwd`; |
---|
| 2782 | cd $srcdir; |
---|
| 2783 | rtems_av_tmp=`find libnetworking -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
| 2784 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 2785 | cd $rtems_av_save_dir; |
---|
| 2786 | echo "$ac_t""done" 1>&6 |
---|
| 2787 | else |
---|
| 2788 | echo "$ac_t""no" 1>&6 |
---|
| 2789 | fi |
---|
| 2790 | |
---|
| 2791 | |
---|
| 2792 | |
---|
| 2793 | echo $ac_n "checking for Makefile.in in librpc""... $ac_c" 1>&6 |
---|
[3a8915e] | 2794 | echo "configure:2795: checking for Makefile.in in librpc" >&5 |
---|
[eb299afc] | 2795 | if test -d $srcdir/librpc; then |
---|
| 2796 | rtems_av_save_dir=`pwd`; |
---|
| 2797 | cd $srcdir; |
---|
| 2798 | rtems_av_tmp=`find librpc -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
| 2799 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 2800 | cd $rtems_av_save_dir; |
---|
| 2801 | echo "$ac_t""done" 1>&6 |
---|
| 2802 | else |
---|
| 2803 | echo "$ac_t""no" 1>&6 |
---|
| 2804 | fi |
---|
| 2805 | |
---|
| 2806 | |
---|
| 2807 | |
---|
| 2808 | if test "$RTEMS_HAS_RDBG" = "yes"; then |
---|
[1896a650] | 2809 | echo $ac_n "checking whether BSP supports librdbg""... $ac_c" 1>&6 |
---|
[3a8915e] | 2810 | echo "configure:2811: checking whether BSP supports librdbg" >&5 |
---|
[1896a650] | 2811 | if eval "test \"`echo '$''{'rtems_cv_HAS_RDBG'+set}'`\" = set"; then |
---|
[eb299afc] | 2812 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2813 | else |
---|
| 2814 | |
---|
[1896a650] | 2815 | if test -d "$srcdir/${RTEMS_TOPdir}/c/src/lib/librdbg/${RTEMS_CPU}/${RTEMS_BSP}"; then |
---|
| 2816 | rtems_cv_HAS_RDBG="yes" ; |
---|
[eb299afc] | 2817 | else |
---|
[1896a650] | 2818 | rtems_cv_HAS_RDBG="no"; |
---|
[eb299afc] | 2819 | fi |
---|
| 2820 | |
---|
| 2821 | fi |
---|
| 2822 | |
---|
[1896a650] | 2823 | echo "$ac_t""$rtems_cv_HAS_RDBG" 1>&6 |
---|
| 2824 | HAS_RDBG="$rtems_cv_HAS_RDBG" |
---|
| 2825 | |
---|
[eb299afc] | 2826 | |
---|
| 2827 | |
---|
[1896a650] | 2828 | if test "$HAS_RDBG" = "yes"; then |
---|
[eb299afc] | 2829 | # Extract the first word of "rpcgen", so it can be a program name with args. |
---|
| 2830 | set dummy rpcgen; ac_word=$2 |
---|
| 2831 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[3a8915e] | 2832 | echo "configure:2833: checking for $ac_word" >&5 |
---|
[eb299afc] | 2833 | if eval "test \"`echo '$''{'ac_cv_prog_RPCGEN'+set}'`\" = set"; then |
---|
| 2834 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2835 | else |
---|
| 2836 | if test -n "$RPCGEN"; then |
---|
| 2837 | ac_cv_prog_RPCGEN="$RPCGEN" # Let the user override the test. |
---|
| 2838 | else |
---|
| 2839 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 2840 | ac_dummy="$PATH" |
---|
| 2841 | for ac_dir in $ac_dummy; do |
---|
| 2842 | test -z "$ac_dir" && ac_dir=. |
---|
| 2843 | if test -f $ac_dir/$ac_word; then |
---|
| 2844 | ac_cv_prog_RPCGEN="rpcgen" |
---|
| 2845 | break |
---|
| 2846 | fi |
---|
| 2847 | done |
---|
| 2848 | IFS="$ac_save_ifs" |
---|
| 2849 | fi |
---|
| 2850 | fi |
---|
| 2851 | RPCGEN="$ac_cv_prog_RPCGEN" |
---|
| 2852 | if test -n "$RPCGEN"; then |
---|
| 2853 | echo "$ac_t""$RPCGEN" 1>&6 |
---|
| 2854 | else |
---|
| 2855 | echo "$ac_t""no" 1>&6 |
---|
| 2856 | fi |
---|
| 2857 | |
---|
| 2858 | for ac_prog in mawk gawk nawk awk |
---|
| 2859 | do |
---|
| 2860 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 2861 | set dummy $ac_prog; ac_word=$2 |
---|
| 2862 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[3a8915e] | 2863 | echo "configure:2864: checking for $ac_word" >&5 |
---|
[eb299afc] | 2864 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
---|
| 2865 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2866 | else |
---|
| 2867 | if test -n "$AWK"; then |
---|
| 2868 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
| 2869 | else |
---|
| 2870 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 2871 | ac_dummy="$PATH" |
---|
| 2872 | for ac_dir in $ac_dummy; do |
---|
| 2873 | test -z "$ac_dir" && ac_dir=. |
---|
| 2874 | if test -f $ac_dir/$ac_word; then |
---|
| 2875 | ac_cv_prog_AWK="$ac_prog" |
---|
| 2876 | break |
---|
| 2877 | fi |
---|
| 2878 | done |
---|
| 2879 | IFS="$ac_save_ifs" |
---|
| 2880 | fi |
---|
| 2881 | fi |
---|
| 2882 | AWK="$ac_cv_prog_AWK" |
---|
| 2883 | if test -n "$AWK"; then |
---|
| 2884 | echo "$ac_t""$AWK" 1>&6 |
---|
| 2885 | else |
---|
| 2886 | echo "$ac_t""no" 1>&6 |
---|
| 2887 | fi |
---|
| 2888 | |
---|
| 2889 | test -n "$AWK" && break |
---|
| 2890 | done |
---|
| 2891 | |
---|
| 2892 | if test -z "$RPCGEN"; then |
---|
| 2893 | { echo "configure: error: missing rpcgen, required to build librdbg" 1>&2; exit 1; } |
---|
| 2894 | fi |
---|
| 2895 | if test -z "$AWK"; then |
---|
| 2896 | { echo "configure: error: missing awk, required to build librdbg" 1>&2; exit 1; } |
---|
| 2897 | fi |
---|
| 2898 | fi |
---|
[1896a650] | 2899 | if test "$HAS_RDBG" = "yes"; then |
---|
[eb299afc] | 2900 | |
---|
| 2901 | echo $ac_n "checking for Makefile.in in librdbg""... $ac_c" 1>&6 |
---|
[3a8915e] | 2902 | echo "configure:2903: checking for Makefile.in in librdbg" >&5 |
---|
[eb299afc] | 2903 | if test -d $srcdir/librdbg; then |
---|
| 2904 | rtems_av_save_dir=`pwd`; |
---|
| 2905 | cd $srcdir; |
---|
| 2906 | rtems_av_tmp=`find librdbg -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
| 2907 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 2908 | cd $rtems_av_save_dir; |
---|
| 2909 | echo "$ac_t""done" 1>&6 |
---|
| 2910 | else |
---|
| 2911 | echo "$ac_t""no" 1>&6 |
---|
| 2912 | fi |
---|
| 2913 | |
---|
| 2914 | |
---|
| 2915 | fi |
---|
| 2916 | fi |
---|
| 2917 | fi |
---|
| 2918 | |
---|
| 2919 | # If the C++ support is enabled, then include the Makefiles |
---|
| 2920 | if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then |
---|
| 2921 | |
---|
| 2922 | echo $ac_n "checking for Makefile.in in librtems++""... $ac_c" 1>&6 |
---|
[3a8915e] | 2923 | echo "configure:2924: checking for Makefile.in in librtems++" >&5 |
---|
[eb299afc] | 2924 | if test -d $srcdir/librtems++; then |
---|
| 2925 | rtems_av_save_dir=`pwd`; |
---|
| 2926 | cd $srcdir; |
---|
| 2927 | rtems_av_tmp=`find librtems++ -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
| 2928 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 2929 | cd $rtems_av_save_dir; |
---|
| 2930 | echo "$ac_t""done" 1>&6 |
---|
| 2931 | else |
---|
| 2932 | echo "$ac_t""no" 1>&6 |
---|
| 2933 | fi |
---|
| 2934 | |
---|
| 2935 | |
---|
| 2936 | fi |
---|
| 2937 | |
---|
| 2938 | # If the HWAPI is enabled, the find the HWAPI Makefiles |
---|
| 2939 | # Check whether --enable-hwapi or --disable-hwapi was given. |
---|
| 2940 | if test "${enable_hwapi+set}" = set; then |
---|
| 2941 | enableval="$enable_hwapi" |
---|
| 2942 | case "${enableval}" in |
---|
| 2943 | yes) RTEMS_HAS_HWAPI=yes ;; |
---|
| 2944 | no) RTEMS_HAS_HWAPI=no ;; |
---|
| 2945 | *) { echo "configure: error: bad value ${enableval} for hwapi option" 1>&2; exit 1; } ;; |
---|
| 2946 | esac |
---|
| 2947 | else |
---|
| 2948 | RTEMS_HAS_HWAPI=no |
---|
| 2949 | fi |
---|
| 2950 | |
---|
| 2951 | |
---|
| 2952 | if test "$RTEMS_HAS_HWAPI" = "yes"; then |
---|
| 2953 | echo $ac_n "checking whether libwapi is present""... $ac_c" 1>&6 |
---|
[3a8915e] | 2954 | echo "configure:2955: checking whether libwapi is present" >&5 |
---|
[eb299afc] | 2955 | if test -f ${srcdir}/libhwapi/Makefile.in ; then |
---|
| 2956 | echo "$ac_t""yes" 1>&6 |
---|
| 2957 | makefiles="$makefiles libhwapi/Makefile" |
---|
| 2958 | |
---|
| 2959 | echo $ac_n "checking for Makefile.in in libhwapi/analog""... $ac_c" 1>&6 |
---|
[3a8915e] | 2960 | echo "configure:2961: checking for Makefile.in in libhwapi/analog" >&5 |
---|
[eb299afc] | 2961 | if test -d $srcdir/libhwapi/analog; then |
---|
| 2962 | rtems_av_save_dir=`pwd`; |
---|
| 2963 | cd $srcdir; |
---|
| 2964 | rtems_av_tmp=`find libhwapi/analog -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
| 2965 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 2966 | cd $rtems_av_save_dir; |
---|
| 2967 | echo "$ac_t""done" 1>&6 |
---|
| 2968 | else |
---|
| 2969 | echo "$ac_t""no" 1>&6 |
---|
| 2970 | fi |
---|
| 2971 | |
---|
| 2972 | |
---|
| 2973 | |
---|
| 2974 | echo $ac_n "checking for Makefile.in in libhwapi/discrete""... $ac_c" 1>&6 |
---|
[3a8915e] | 2975 | echo "configure:2976: checking for Makefile.in in libhwapi/discrete" >&5 |
---|
[eb299afc] | 2976 | if test -d $srcdir/libhwapi/discrete; then |
---|
| 2977 | rtems_av_save_dir=`pwd`; |
---|
| 2978 | cd $srcdir; |
---|
| 2979 | rtems_av_tmp=`find libhwapi/discrete -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
| 2980 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 2981 | cd $rtems_av_save_dir; |
---|
| 2982 | echo "$ac_t""done" 1>&6 |
---|
| 2983 | else |
---|
| 2984 | echo "$ac_t""no" 1>&6 |
---|
| 2985 | fi |
---|
| 2986 | |
---|
| 2987 | |
---|
| 2988 | |
---|
| 2989 | echo $ac_n "checking for Makefile.in in libhwapi/drivers""... $ac_c" 1>&6 |
---|
[3a8915e] | 2990 | echo "configure:2991: checking for Makefile.in in libhwapi/drivers" >&5 |
---|
[eb299afc] | 2991 | if test -d $srcdir/libhwapi/drivers; then |
---|
| 2992 | rtems_av_save_dir=`pwd`; |
---|
| 2993 | cd $srcdir; |
---|
| 2994 | rtems_av_tmp=`find libhwapi/drivers -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
| 2995 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 2996 | cd $rtems_av_save_dir; |
---|
| 2997 | echo "$ac_t""done" 1>&6 |
---|
| 2998 | else |
---|
| 2999 | echo "$ac_t""no" 1>&6 |
---|
| 3000 | fi |
---|
| 3001 | |
---|
| 3002 | |
---|
| 3003 | |
---|
| 3004 | echo $ac_n "checking for Makefile.in in libhwapi/non_volatile_memory""... $ac_c" 1>&6 |
---|
[3a8915e] | 3005 | echo "configure:3006: checking for Makefile.in in libhwapi/non_volatile_memory" >&5 |
---|
[eb299afc] | 3006 | if test -d $srcdir/libhwapi/non_volatile_memory; then |
---|
| 3007 | rtems_av_save_dir=`pwd`; |
---|
| 3008 | cd $srcdir; |
---|
| 3009 | rtems_av_tmp=`find libhwapi/non_volatile_memory -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
| 3010 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 3011 | cd $rtems_av_save_dir; |
---|
| 3012 | echo "$ac_t""done" 1>&6 |
---|
| 3013 | else |
---|
| 3014 | echo "$ac_t""no" 1>&6 |
---|
| 3015 | fi |
---|
| 3016 | |
---|
| 3017 | |
---|
| 3018 | |
---|
| 3019 | echo $ac_n "checking for Makefile.in in libhwapi/serial""... $ac_c" 1>&6 |
---|
[3a8915e] | 3020 | echo "configure:3021: checking for Makefile.in in libhwapi/serial" >&5 |
---|
[eb299afc] | 3021 | if test -d $srcdir/libhwapi/serial; then |
---|
| 3022 | rtems_av_save_dir=`pwd`; |
---|
| 3023 | cd $srcdir; |
---|
| 3024 | rtems_av_tmp=`find libhwapi/serial -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
| 3025 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 3026 | cd $rtems_av_save_dir; |
---|
| 3027 | echo "$ac_t""done" 1>&6 |
---|
| 3028 | else |
---|
| 3029 | echo "$ac_t""no" 1>&6 |
---|
| 3030 | fi |
---|
| 3031 | |
---|
| 3032 | |
---|
| 3033 | |
---|
| 3034 | echo $ac_n "checking for Makefile.in in libhwapi/support""... $ac_c" 1>&6 |
---|
[3a8915e] | 3035 | echo "configure:3036: checking for Makefile.in in libhwapi/support" >&5 |
---|
[eb299afc] | 3036 | if test -d $srcdir/libhwapi/support; then |
---|
| 3037 | rtems_av_save_dir=`pwd`; |
---|
| 3038 | cd $srcdir; |
---|
| 3039 | rtems_av_tmp=`find libhwapi/support -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
| 3040 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 3041 | cd $rtems_av_save_dir; |
---|
| 3042 | echo "$ac_t""done" 1>&6 |
---|
| 3043 | else |
---|
| 3044 | echo "$ac_t""no" 1>&6 |
---|
| 3045 | fi |
---|
| 3046 | |
---|
| 3047 | |
---|
| 3048 | |
---|
| 3049 | echo $ac_n "checking for Makefile.in in libhwapi/wrapup""... $ac_c" 1>&6 |
---|
[3a8915e] | 3050 | echo "configure:3051: checking for Makefile.in in libhwapi/wrapup" >&5 |
---|
[eb299afc] | 3051 | if test -d $srcdir/libhwapi/wrapup; then |
---|
| 3052 | rtems_av_save_dir=`pwd`; |
---|
| 3053 | cd $srcdir; |
---|
| 3054 | rtems_av_tmp=`find libhwapi/wrapup -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
| 3055 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 3056 | cd $rtems_av_save_dir; |
---|
| 3057 | echo "$ac_t""done" 1>&6 |
---|
| 3058 | else |
---|
| 3059 | echo "$ac_t""no" 1>&6 |
---|
| 3060 | fi |
---|
| 3061 | |
---|
| 3062 | |
---|
| 3063 | else |
---|
| 3064 | { echo "configure: error: No source code found for the HWAPI" 1>&2; exit 1; } |
---|
| 3065 | fi |
---|
| 3066 | fi |
---|
| 3067 | |
---|
| 3068 | |
---|
| 3069 | |
---|
| 3070 | |
---|
| 3071 | |
---|
| 3072 | |
---|
| 3073 | |
---|
| 3074 | |
---|
| 3075 | # pick up all the Makefiles in required parts of the tree |
---|
| 3076 | |
---|
| 3077 | echo $ac_n "checking for Makefile.in in libchip""... $ac_c" 1>&6 |
---|
[3a8915e] | 3078 | echo "configure:3079: checking for Makefile.in in libchip" >&5 |
---|
[eb299afc] | 3079 | if test -d $srcdir/libchip; then |
---|
| 3080 | rtems_av_save_dir=`pwd`; |
---|
| 3081 | cd $srcdir; |
---|
| 3082 | rtems_av_tmp=`find libchip -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
| 3083 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 3084 | cd $rtems_av_save_dir; |
---|
| 3085 | echo "$ac_t""done" 1>&6 |
---|
| 3086 | else |
---|
| 3087 | echo "$ac_t""no" 1>&6 |
---|
| 3088 | fi |
---|
| 3089 | |
---|
| 3090 | |
---|
| 3091 | |
---|
| 3092 | echo $ac_n "checking for Makefile.in in libmisc""... $ac_c" 1>&6 |
---|
[3a8915e] | 3093 | echo "configure:3094: checking for Makefile.in in libmisc" >&5 |
---|
[eb299afc] | 3094 | if test -d $srcdir/libmisc; then |
---|
| 3095 | rtems_av_save_dir=`pwd`; |
---|
| 3096 | cd $srcdir; |
---|
| 3097 | rtems_av_tmp=`find libmisc -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` |
---|
| 3098 | makefiles="$makefiles $rtems_av_tmp"; |
---|
| 3099 | cd $rtems_av_save_dir; |
---|
| 3100 | echo "$ac_t""done" 1>&6 |
---|
| 3101 | else |
---|
| 3102 | echo "$ac_t""no" 1>&6 |
---|
| 3103 | fi |
---|
| 3104 | |
---|
| 3105 | |
---|
| 3106 | |
---|
| 3107 | subdirs="$bsptools_cfgdirs" |
---|
| 3108 | |
---|
| 3109 | |
---|
| 3110 | # FIXME: libhwapi needs a separate configure.in in future ;- |
---|
| 3111 | # AC_CONFIG_SUBDIRS(libhwapi) |
---|
| 3112 | |
---|
| 3113 | # try to explicitly list a Makefile here |
---|
| 3114 | trap '' 1 2 15 |
---|
| 3115 | cat > confcache <<\EOF |
---|
| 3116 | # This file is a shell script that caches the results of configure |
---|
| 3117 | # tests run on this system so they can be shared between configure |
---|
| 3118 | # scripts and configure runs. It is not useful on other systems. |
---|
| 3119 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
| 3120 | # |
---|
| 3121 | # By default, configure uses ./config.cache as the cache file, |
---|
| 3122 | # creating it if it does not exist already. You can give configure |
---|
| 3123 | # the --cache-file=FILE option to use a different cache file; that is |
---|
| 3124 | # what configure does when it calls configure scripts in |
---|
| 3125 | # subdirectories, so they share the cache. |
---|
| 3126 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
| 3127 | # config.status only pays attention to the cache file if you give it the |
---|
| 3128 | # --recheck option to rerun configure. |
---|
| 3129 | # |
---|
| 3130 | EOF |
---|
| 3131 | # The following way of writing the cache mishandles newlines in values, |
---|
| 3132 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 3133 | # So, don't put newlines in cache variables' values. |
---|
| 3134 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 3135 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 3136 | (set) 2>&1 | |
---|
| 3137 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
| 3138 | *ac_space=\ *) |
---|
| 3139 | # `set' does not quote correctly, so add quotes (double-quote substitution |
---|
| 3140 | # turns \\\\ into \\, and sed turns \\ into \). |
---|
| 3141 | sed -n \ |
---|
| 3142 | -e "s/'/'\\\\''/g" \ |
---|
| 3143 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
---|
| 3144 | ;; |
---|
| 3145 | *) |
---|
| 3146 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 3147 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
---|
| 3148 | ;; |
---|
| 3149 | esac >> confcache |
---|
| 3150 | if cmp -s $cache_file confcache; then |
---|
| 3151 | : |
---|
| 3152 | else |
---|
| 3153 | if test -w $cache_file; then |
---|
| 3154 | echo "updating cache $cache_file" |
---|
| 3155 | cat confcache > $cache_file |
---|
| 3156 | else |
---|
| 3157 | echo "not updating unwritable cache $cache_file" |
---|
| 3158 | fi |
---|
| 3159 | fi |
---|
| 3160 | rm -f confcache |
---|
| 3161 | |
---|
| 3162 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
| 3163 | |
---|
| 3164 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 3165 | # Let make expand exec_prefix. |
---|
| 3166 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 3167 | |
---|
| 3168 | # Any assignment to VPATH causes Sun make to only execute |
---|
| 3169 | # the first set of double-colon rules, so remove it if not needed. |
---|
| 3170 | # If there is a colon in the path, we need to keep it. |
---|
| 3171 | if test "x$srcdir" = x.; then |
---|
| 3172 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
---|
| 3173 | fi |
---|
| 3174 | |
---|
| 3175 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
---|
| 3176 | |
---|
| 3177 | # Transform confdefs.h into DEFS. |
---|
| 3178 | # Protect against shell expansion while executing Makefile rules. |
---|
| 3179 | # Protect against Makefile macro expansion. |
---|
| 3180 | cat > conftest.defs <<\EOF |
---|
| 3181 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g |
---|
| 3182 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g |
---|
| 3183 | s%\[%\\&%g |
---|
| 3184 | s%\]%\\&%g |
---|
| 3185 | s%\$%$$%g |
---|
| 3186 | EOF |
---|
| 3187 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` |
---|
| 3188 | rm -f conftest.defs |
---|
| 3189 | |
---|
| 3190 | |
---|
| 3191 | # Without the "./", some shells look in PATH for config.status. |
---|
| 3192 | : ${CONFIG_STATUS=./config.status} |
---|
| 3193 | |
---|
| 3194 | echo creating $CONFIG_STATUS |
---|
| 3195 | rm -f $CONFIG_STATUS |
---|
| 3196 | cat > $CONFIG_STATUS <<EOF |
---|
| 3197 | #! /bin/sh |
---|
| 3198 | # Generated automatically by configure. |
---|
| 3199 | # Run this file to recreate the current configuration. |
---|
| 3200 | # This directory was configured as follows, |
---|
| 3201 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
| 3202 | # |
---|
| 3203 | # $0 $ac_configure_args |
---|
| 3204 | # |
---|
| 3205 | # Compiler output produced by configure, useful for debugging |
---|
| 3206 | # configure, is in ./config.log if it exists. |
---|
| 3207 | |
---|
| 3208 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
---|
| 3209 | for ac_option |
---|
| 3210 | do |
---|
| 3211 | case "\$ac_option" in |
---|
| 3212 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 3213 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
---|
| 3214 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
---|
| 3215 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
---|
| 3216 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
---|
| 3217 | exit 0 ;; |
---|
| 3218 | -help | --help | --hel | --he | --h) |
---|
| 3219 | echo "\$ac_cs_usage"; exit 0 ;; |
---|
| 3220 | *) echo "\$ac_cs_usage"; exit 1 ;; |
---|
| 3221 | esac |
---|
| 3222 | done |
---|
| 3223 | |
---|
| 3224 | ac_given_srcdir=$srcdir |
---|
| 3225 | ac_given_INSTALL="$INSTALL" |
---|
| 3226 | |
---|
| 3227 | trap 'rm -fr `echo "Makefile |
---|
| 3228 | include/Makefile |
---|
| 3229 | libbsp/Makefile |
---|
| 3230 | libc/Makefile |
---|
| 3231 | libcpu/Makefile |
---|
| 3232 | start/Makefile |
---|
| 3233 | wrapup/Makefile |
---|
| 3234 | $makefiles" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
---|
| 3235 | EOF |
---|
| 3236 | cat >> $CONFIG_STATUS <<EOF |
---|
| 3237 | |
---|
| 3238 | # Protect against being on the right side of a sed subst in config.status. |
---|
| 3239 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
---|
| 3240 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
---|
| 3241 | $ac_vpsub |
---|
| 3242 | $extrasub |
---|
| 3243 | s%@SHELL@%$SHELL%g |
---|
| 3244 | s%@CFLAGS@%$CFLAGS%g |
---|
| 3245 | s%@CPPFLAGS@%$CPPFLAGS%g |
---|
| 3246 | s%@CXXFLAGS@%$CXXFLAGS%g |
---|
| 3247 | s%@FFLAGS@%$FFLAGS%g |
---|
| 3248 | s%@DEFS@%$DEFS%g |
---|
| 3249 | s%@LDFLAGS@%$LDFLAGS%g |
---|
| 3250 | s%@LIBS@%$LIBS%g |
---|
| 3251 | s%@exec_prefix@%$exec_prefix%g |
---|
| 3252 | s%@prefix@%$prefix%g |
---|
| 3253 | s%@program_transform_name@%$program_transform_name%g |
---|
| 3254 | s%@bindir@%$bindir%g |
---|
| 3255 | s%@sbindir@%$sbindir%g |
---|
| 3256 | s%@libexecdir@%$libexecdir%g |
---|
| 3257 | s%@datadir@%$datadir%g |
---|
| 3258 | s%@sysconfdir@%$sysconfdir%g |
---|
| 3259 | s%@sharedstatedir@%$sharedstatedir%g |
---|
| 3260 | s%@localstatedir@%$localstatedir%g |
---|
| 3261 | s%@libdir@%$libdir%g |
---|
| 3262 | s%@includedir@%$includedir%g |
---|
| 3263 | s%@oldincludedir@%$oldincludedir%g |
---|
| 3264 | s%@infodir@%$infodir%g |
---|
| 3265 | s%@mandir@%$mandir%g |
---|
| 3266 | s%@RTEMS_TOPdir@%$RTEMS_TOPdir%g |
---|
| 3267 | s%@SET_MAKE@%$SET_MAKE%g |
---|
| 3268 | s%@host@%$host%g |
---|
| 3269 | s%@host_alias@%$host_alias%g |
---|
| 3270 | s%@host_cpu@%$host_cpu%g |
---|
| 3271 | s%@host_vendor@%$host_vendor%g |
---|
| 3272 | s%@host_os@%$host_os%g |
---|
| 3273 | s%@target@%$target%g |
---|
| 3274 | s%@target_alias@%$target_alias%g |
---|
| 3275 | s%@target_cpu@%$target_cpu%g |
---|
| 3276 | s%@target_vendor@%$target_vendor%g |
---|
| 3277 | s%@target_os@%$target_os%g |
---|
| 3278 | s%@build@%$build%g |
---|
| 3279 | s%@build_alias@%$build_alias%g |
---|
| 3280 | s%@build_cpu@%$build_cpu%g |
---|
| 3281 | s%@build_vendor@%$build_vendor%g |
---|
| 3282 | s%@build_os@%$build_os%g |
---|
| 3283 | s%@RTEMS_CPU@%$RTEMS_CPU%g |
---|
| 3284 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g |
---|
| 3285 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g |
---|
| 3286 | s%@MAINT@%$MAINT%g |
---|
| 3287 | s%@RTEMS_HAS_MULTIPROCESSING@%$RTEMS_HAS_MULTIPROCESSING%g |
---|
| 3288 | s%@RTEMS_HAS_NETWORKING@%$RTEMS_HAS_NETWORKING%g |
---|
| 3289 | s%@RTEMS_HAS_RDBG@%$RTEMS_HAS_RDBG%g |
---|
| 3290 | s%@RTEMS_LIBC_DIR@%$RTEMS_LIBC_DIR%g |
---|
| 3291 | s%@RTEMS_HAS_HWAPI@%$RTEMS_HAS_HWAPI%g |
---|
| 3292 | s%@RTEMS_BSP@%$RTEMS_BSP%g |
---|
| 3293 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
---|
| 3294 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
---|
| 3295 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
---|
| 3296 | s%@RTEMS_HOST@%$RTEMS_HOST%g |
---|
| 3297 | s%@PROJECT_ROOT@%$PROJECT_ROOT%g |
---|
| 3298 | s%@RTEMS_ROOT@%$RTEMS_ROOT%g |
---|
| 3299 | s%@INSTALL_CHANGE@%$INSTALL_CHANGE%g |
---|
| 3300 | s%@PACKHEX@%$PACKHEX%g |
---|
| 3301 | s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g |
---|
| 3302 | s%@GCCSED@%$GCCSED%g |
---|
| 3303 | s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g |
---|
| 3304 | s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g |
---|
| 3305 | s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g |
---|
| 3306 | s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g |
---|
| 3307 | s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g |
---|
| 3308 | s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g |
---|
| 3309 | s%@OBJCOPY_FOR_TARGET@%$OBJCOPY_FOR_TARGET%g |
---|
| 3310 | s%@SIZE_FOR_TARGET@%$SIZE_FOR_TARGET%g |
---|
| 3311 | s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g |
---|
| 3312 | s%@RTEMS_GAS_CODE16@%$RTEMS_GAS_CODE16%g |
---|
| 3313 | s%@RTEMS_GAS_CODE16_TRUE@%$RTEMS_GAS_CODE16_TRUE%g |
---|
| 3314 | s%@RTEMS_GAS_CODE16_FALSE@%$RTEMS_GAS_CODE16_FALSE%g |
---|
| 3315 | s%@CC@%$CC%g |
---|
[1896a650] | 3316 | s%@HAS_MP@%$HAS_MP%g |
---|
[3a8915e] | 3317 | s%@HAS_CPLUSPLUS@%$HAS_CPLUSPLUS%g |
---|
| 3318 | s%@HAS_NETWORKING@%$HAS_NETWORKING%g |
---|
[eb299afc] | 3319 | s%@RTEMS_LIBBSP_CPU_SUBDIR@%$RTEMS_LIBBSP_CPU_SUBDIR%g |
---|
| 3320 | s%@UNIX_TRUE@%$UNIX_TRUE%g |
---|
| 3321 | s%@UNIX_FALSE@%$UNIX_FALSE%g |
---|
[1896a650] | 3322 | s%@HAS_RDBG@%$HAS_RDBG%g |
---|
[eb299afc] | 3323 | s%@RPCGEN@%$RPCGEN%g |
---|
| 3324 | s%@AWK@%$AWK%g |
---|
| 3325 | s%@RTEMS_HAS_CPLUSPLUS@%$RTEMS_HAS_CPLUSPLUS%g |
---|
| 3326 | s%@RTEMS_USE_GCC272@%$RTEMS_USE_GCC272%g |
---|
| 3327 | s%@CC_CFLAGS_DEFAULT@%$CC_CFLAGS_DEFAULT%g |
---|
| 3328 | s%@CC_CFLAGS_DEBUG_V@%$CC_CFLAGS_DEBUG_V%g |
---|
| 3329 | s%@CC_CFLAGS_PROFILE_V@%$CC_CFLAGS_PROFILE_V%g |
---|
| 3330 | s%@CC_LDFLAGS_PROFILE_V@%$CC_LDFLAGS_PROFILE_V%g |
---|
| 3331 | s%@subdirs@%$subdirs%g |
---|
| 3332 | |
---|
| 3333 | CEOF |
---|
| 3334 | EOF |
---|
| 3335 | |
---|
| 3336 | cat >> $CONFIG_STATUS <<\EOF |
---|
| 3337 | |
---|
| 3338 | # Split the substitutions into bite-sized pieces for seds with |
---|
| 3339 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
| 3340 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
---|
| 3341 | ac_file=1 # Number of current file. |
---|
| 3342 | ac_beg=1 # First line for current file. |
---|
| 3343 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
---|
| 3344 | ac_more_lines=: |
---|
| 3345 | ac_sed_cmds="" |
---|
| 3346 | while $ac_more_lines; do |
---|
| 3347 | if test $ac_beg -gt 1; then |
---|
| 3348 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
| 3349 | else |
---|
| 3350 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
| 3351 | fi |
---|
| 3352 | if test ! -s conftest.s$ac_file; then |
---|
| 3353 | ac_more_lines=false |
---|
| 3354 | rm -f conftest.s$ac_file |
---|
| 3355 | else |
---|
| 3356 | if test -z "$ac_sed_cmds"; then |
---|
| 3357 | ac_sed_cmds="sed -f conftest.s$ac_file" |
---|
| 3358 | else |
---|
| 3359 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
---|
| 3360 | fi |
---|
| 3361 | ac_file=`expr $ac_file + 1` |
---|
| 3362 | ac_beg=$ac_end |
---|
| 3363 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
---|
| 3364 | fi |
---|
| 3365 | done |
---|
| 3366 | if test -z "$ac_sed_cmds"; then |
---|
| 3367 | ac_sed_cmds=cat |
---|
| 3368 | fi |
---|
| 3369 | EOF |
---|
| 3370 | |
---|
| 3371 | cat >> $CONFIG_STATUS <<EOF |
---|
| 3372 | |
---|
| 3373 | CONFIG_FILES=\${CONFIG_FILES-"Makefile |
---|
| 3374 | include/Makefile |
---|
| 3375 | libbsp/Makefile |
---|
| 3376 | libc/Makefile |
---|
| 3377 | libcpu/Makefile |
---|
| 3378 | start/Makefile |
---|
| 3379 | wrapup/Makefile |
---|
| 3380 | $makefiles"} |
---|
| 3381 | EOF |
---|
| 3382 | cat >> $CONFIG_STATUS <<\EOF |
---|
| 3383 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
---|
| 3384 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 3385 | case "$ac_file" in |
---|
| 3386 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
| 3387 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
| 3388 | *) ac_file_in="${ac_file}.in" ;; |
---|
| 3389 | esac |
---|
| 3390 | |
---|
| 3391 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
---|
| 3392 | |
---|
| 3393 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
| 3394 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
| 3395 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
| 3396 | # The file is in a subdirectory. |
---|
| 3397 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
| 3398 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
---|
| 3399 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 3400 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
| 3401 | else |
---|
| 3402 | ac_dir_suffix= ac_dots= |
---|
| 3403 | fi |
---|
| 3404 | |
---|
| 3405 | case "$ac_given_srcdir" in |
---|
| 3406 | .) srcdir=. |
---|
| 3407 | if test -z "$ac_dots"; then top_srcdir=. |
---|
| 3408 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
---|
| 3409 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
---|
| 3410 | *) # Relative path. |
---|
| 3411 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
---|
| 3412 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
---|
| 3413 | esac |
---|
| 3414 | |
---|
| 3415 | case "$ac_given_INSTALL" in |
---|
| 3416 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
| 3417 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
| 3418 | esac |
---|
| 3419 | |
---|
| 3420 | echo creating "$ac_file" |
---|
| 3421 | rm -f "$ac_file" |
---|
| 3422 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
---|
| 3423 | case "$ac_file" in |
---|
| 3424 | *Makefile*) ac_comsub="1i\\ |
---|
| 3425 | # $configure_input" ;; |
---|
| 3426 | *) ac_comsub= ;; |
---|
| 3427 | esac |
---|
| 3428 | |
---|
| 3429 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
| 3430 | sed -e "$ac_comsub |
---|
| 3431 | s%@configure_input@%$configure_input%g |
---|
| 3432 | s%@srcdir@%$srcdir%g |
---|
| 3433 | s%@top_srcdir@%$top_srcdir%g |
---|
| 3434 | s%@INSTALL@%$INSTALL%g |
---|
| 3435 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
---|
| 3436 | fi; done |
---|
| 3437 | rm -f conftest.s* |
---|
| 3438 | |
---|
| 3439 | EOF |
---|
| 3440 | cat >> $CONFIG_STATUS <<EOF |
---|
| 3441 | |
---|
| 3442 | EOF |
---|
| 3443 | cat >> $CONFIG_STATUS <<\EOF |
---|
| 3444 | |
---|
| 3445 | exit 0 |
---|
| 3446 | EOF |
---|
| 3447 | chmod +x $CONFIG_STATUS |
---|
| 3448 | rm -fr confdefs* $ac_clean_files |
---|
| 3449 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
---|
| 3450 | |
---|
| 3451 | if test "$no_recursion" != yes; then |
---|
| 3452 | |
---|
| 3453 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
---|
| 3454 | ac_sub_configure_args= |
---|
| 3455 | ac_prev= |
---|
| 3456 | for ac_arg in $ac_configure_args; do |
---|
| 3457 | if test -n "$ac_prev"; then |
---|
| 3458 | ac_prev= |
---|
| 3459 | continue |
---|
| 3460 | fi |
---|
| 3461 | case "$ac_arg" in |
---|
| 3462 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 3463 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 3464 | ac_prev=cache_file ;; |
---|
| 3465 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 3466 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 3467 | ;; |
---|
| 3468 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 3469 | ac_prev=srcdir ;; |
---|
| 3470 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 3471 | ;; |
---|
| 3472 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
---|
| 3473 | esac |
---|
| 3474 | done |
---|
| 3475 | |
---|
| 3476 | for ac_config_dir in $bsptools_cfgdirs; do |
---|
| 3477 | |
---|
| 3478 | # Do not complain, so a configure script can configure whichever |
---|
| 3479 | # parts of a large source tree are present. |
---|
| 3480 | if test ! -d $srcdir/$ac_config_dir; then |
---|
| 3481 | continue |
---|
| 3482 | fi |
---|
| 3483 | |
---|
| 3484 | echo configuring in $ac_config_dir |
---|
| 3485 | |
---|
| 3486 | case "$srcdir" in |
---|
| 3487 | .) ;; |
---|
| 3488 | *) |
---|
| 3489 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
---|
| 3490 | else |
---|
| 3491 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } |
---|
| 3492 | fi |
---|
| 3493 | ;; |
---|
| 3494 | esac |
---|
| 3495 | |
---|
| 3496 | ac_popdir=`pwd` |
---|
| 3497 | cd $ac_config_dir |
---|
| 3498 | |
---|
| 3499 | # A "../" for each directory in /$ac_config_dir. |
---|
| 3500 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` |
---|
| 3501 | |
---|
| 3502 | case "$srcdir" in |
---|
| 3503 | .) # No --srcdir option. We are building in place. |
---|
| 3504 | ac_sub_srcdir=$srcdir ;; |
---|
| 3505 | /*) # Absolute path. |
---|
| 3506 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; |
---|
| 3507 | *) # Relative path. |
---|
| 3508 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
---|
| 3509 | esac |
---|
| 3510 | |
---|
| 3511 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
| 3512 | if test -f $ac_sub_srcdir/configure; then |
---|
| 3513 | ac_sub_configure=$ac_sub_srcdir/configure |
---|
| 3514 | elif test -f $ac_sub_srcdir/configure.in; then |
---|
| 3515 | ac_sub_configure=$ac_configure |
---|
| 3516 | else |
---|
| 3517 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
---|
| 3518 | ac_sub_configure= |
---|
| 3519 | fi |
---|
| 3520 | |
---|
| 3521 | # The recursion is here. |
---|
| 3522 | if test -n "$ac_sub_configure"; then |
---|
| 3523 | |
---|
| 3524 | # Make the cache file name correct relative to the subdirectory. |
---|
| 3525 | case "$cache_file" in |
---|
| 3526 | /*) ac_sub_cache_file=$cache_file ;; |
---|
| 3527 | *) # Relative path. |
---|
| 3528 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
---|
| 3529 | esac |
---|
| 3530 | case "$ac_given_INSTALL" in |
---|
| 3531 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
| 3532 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
| 3533 | esac |
---|
| 3534 | |
---|
| 3535 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
---|
| 3536 | # The eval makes quoting arguments work. |
---|
| 3537 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
---|
| 3538 | then : |
---|
| 3539 | else |
---|
| 3540 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } |
---|
| 3541 | fi |
---|
| 3542 | fi |
---|
| 3543 | |
---|
| 3544 | cd $ac_popdir |
---|
| 3545 | done |
---|
| 3546 | fi |
---|
| 3547 | |
---|