[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-posix enable posix interface" |
---|
| 23 | ac_help="$ac_help |
---|
| 24 | --enable-rtems-inlines enable RTEMS inline functions |
---|
| 25 | (default:enabled, disable to use macros)" |
---|
| 26 | ac_help="$ac_help |
---|
| 27 | --enable-gcc28 enable use of gcc 2.8.x features" |
---|
| 28 | ac_help="$ac_help |
---|
| 29 | --enable-libcdir=directory set the directory for the C library" |
---|
| 30 | |
---|
| 31 | # Initialize some variables set by options. |
---|
| 32 | # The variables have the same names as the options, with |
---|
| 33 | # dashes changed to underlines. |
---|
| 34 | build=NONE |
---|
| 35 | cache_file=./config.cache |
---|
| 36 | exec_prefix=NONE |
---|
| 37 | host=NONE |
---|
| 38 | no_create= |
---|
| 39 | nonopt=NONE |
---|
| 40 | no_recursion= |
---|
| 41 | prefix=NONE |
---|
| 42 | program_prefix=NONE |
---|
| 43 | program_suffix=NONE |
---|
| 44 | program_transform_name=s,x,x, |
---|
| 45 | silent= |
---|
| 46 | site= |
---|
| 47 | srcdir= |
---|
| 48 | target=NONE |
---|
| 49 | verbose= |
---|
| 50 | x_includes=NONE |
---|
| 51 | x_libraries=NONE |
---|
| 52 | bindir='${exec_prefix}/bin' |
---|
| 53 | sbindir='${exec_prefix}/sbin' |
---|
| 54 | libexecdir='${exec_prefix}/libexec' |
---|
| 55 | datadir='${prefix}/share' |
---|
| 56 | sysconfdir='${prefix}/etc' |
---|
| 57 | sharedstatedir='${prefix}/com' |
---|
| 58 | localstatedir='${prefix}/var' |
---|
| 59 | libdir='${exec_prefix}/lib' |
---|
| 60 | includedir='${prefix}/include' |
---|
| 61 | oldincludedir='/usr/include' |
---|
| 62 | infodir='${prefix}/info' |
---|
| 63 | mandir='${prefix}/man' |
---|
| 64 | |
---|
| 65 | # Initialize some other variables. |
---|
| 66 | subdirs= |
---|
| 67 | MFLAGS= MAKEFLAGS= |
---|
| 68 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
| 69 | # Maximum number of lines to put in a shell here document. |
---|
| 70 | ac_max_here_lines=12 |
---|
| 71 | |
---|
| 72 | ac_prev= |
---|
| 73 | for ac_option |
---|
| 74 | do |
---|
| 75 | |
---|
| 76 | # If the previous option needs an argument, assign it. |
---|
| 77 | if test -n "$ac_prev"; then |
---|
| 78 | eval "$ac_prev=\$ac_option" |
---|
| 79 | ac_prev= |
---|
| 80 | continue |
---|
| 81 | fi |
---|
| 82 | |
---|
| 83 | case "$ac_option" in |
---|
| 84 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
| 85 | *) ac_optarg= ;; |
---|
| 86 | esac |
---|
| 87 | |
---|
| 88 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
| 89 | |
---|
| 90 | case "$ac_option" in |
---|
| 91 | |
---|
| 92 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
| 93 | ac_prev=bindir ;; |
---|
| 94 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
| 95 | bindir="$ac_optarg" ;; |
---|
| 96 | |
---|
| 97 | -build | --build | --buil | --bui | --bu) |
---|
| 98 | ac_prev=build ;; |
---|
| 99 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
| 100 | build="$ac_optarg" ;; |
---|
| 101 | |
---|
| 102 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 103 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 104 | ac_prev=cache_file ;; |
---|
| 105 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 106 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 107 | cache_file="$ac_optarg" ;; |
---|
| 108 | |
---|
| 109 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
| 110 | ac_prev=datadir ;; |
---|
| 111 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
| 112 | | --da=*) |
---|
| 113 | datadir="$ac_optarg" ;; |
---|
| 114 | |
---|
| 115 | -disable-* | --disable-*) |
---|
| 116 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
---|
| 117 | # Reject names that are not valid shell variable names. |
---|
| 118 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
| 119 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
| 120 | fi |
---|
| 121 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
| 122 | eval "enable_${ac_feature}=no" ;; |
---|
| 123 | |
---|
| 124 | -enable-* | --enable-*) |
---|
| 125 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
---|
| 126 | # Reject names that are not valid shell variable names. |
---|
| 127 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
| 128 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
| 129 | fi |
---|
| 130 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
| 131 | case "$ac_option" in |
---|
| 132 | *=*) ;; |
---|
| 133 | *) ac_optarg=yes ;; |
---|
| 134 | esac |
---|
| 135 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
---|
| 136 | |
---|
| 137 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
| 138 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
| 139 | | --exec | --exe | --ex) |
---|
| 140 | ac_prev=exec_prefix ;; |
---|
| 141 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
| 142 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
| 143 | | --exec=* | --exe=* | --ex=*) |
---|
| 144 | exec_prefix="$ac_optarg" ;; |
---|
| 145 | |
---|
| 146 | -gas | --gas | --ga | --g) |
---|
| 147 | # Obsolete; use --with-gas. |
---|
| 148 | with_gas=yes ;; |
---|
| 149 | |
---|
| 150 | -help | --help | --hel | --he) |
---|
| 151 | # Omit some internal or obsolete options to make the list less imposing. |
---|
| 152 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
| 153 | cat << EOF |
---|
| 154 | Usage: configure [options] [host] |
---|
| 155 | Options: [defaults in brackets after descriptions] |
---|
| 156 | Configuration: |
---|
| 157 | --cache-file=FILE cache test results in FILE |
---|
| 158 | --help print this message |
---|
| 159 | --no-create do not create output files |
---|
| 160 | --quiet, --silent do not print \`checking...' messages |
---|
| 161 | --version print the version of autoconf that created configure |
---|
| 162 | Directory and file names: |
---|
| 163 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
| 164 | [$ac_default_prefix] |
---|
| 165 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
| 166 | [same as prefix] |
---|
| 167 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
---|
| 168 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
---|
| 169 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
---|
| 170 | --datadir=DIR read-only architecture-independent data in DIR |
---|
| 171 | [PREFIX/share] |
---|
| 172 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
---|
| 173 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
---|
| 174 | [PREFIX/com] |
---|
| 175 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
---|
| 176 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
---|
| 177 | --includedir=DIR C header files in DIR [PREFIX/include] |
---|
| 178 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
---|
| 179 | --infodir=DIR info documentation in DIR [PREFIX/info] |
---|
| 180 | --mandir=DIR man documentation in DIR [PREFIX/man] |
---|
| 181 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
---|
| 182 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
| 183 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
| 184 | --program-transform-name=PROGRAM |
---|
| 185 | run sed PROGRAM on installed program names |
---|
| 186 | EOF |
---|
| 187 | cat << EOF |
---|
| 188 | Host type: |
---|
| 189 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
---|
| 190 | --host=HOST configure for HOST [guessed] |
---|
| 191 | --target=TARGET configure for TARGET [TARGET=HOST] |
---|
| 192 | Features and packages: |
---|
| 193 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
| 194 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
| 195 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
| 196 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
| 197 | --x-includes=DIR X include files are in DIR |
---|
| 198 | --x-libraries=DIR X library files are in DIR |
---|
| 199 | EOF |
---|
| 200 | if test -n "$ac_help"; then |
---|
| 201 | echo "--enable and --with options recognized:$ac_help" |
---|
| 202 | fi |
---|
| 203 | exit 0 ;; |
---|
| 204 | |
---|
| 205 | -host | --host | --hos | --ho) |
---|
| 206 | ac_prev=host ;; |
---|
| 207 | -host=* | --host=* | --hos=* | --ho=*) |
---|
| 208 | host="$ac_optarg" ;; |
---|
| 209 | |
---|
| 210 | -includedir | --includedir | --includedi | --included | --include \ |
---|
| 211 | | --includ | --inclu | --incl | --inc) |
---|
| 212 | ac_prev=includedir ;; |
---|
| 213 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
| 214 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
| 215 | includedir="$ac_optarg" ;; |
---|
| 216 | |
---|
| 217 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
| 218 | ac_prev=infodir ;; |
---|
| 219 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
| 220 | infodir="$ac_optarg" ;; |
---|
| 221 | |
---|
| 222 | -libdir | --libdir | --libdi | --libd) |
---|
| 223 | ac_prev=libdir ;; |
---|
| 224 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
| 225 | libdir="$ac_optarg" ;; |
---|
| 226 | |
---|
| 227 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
| 228 | | --libexe | --libex | --libe) |
---|
| 229 | ac_prev=libexecdir ;; |
---|
| 230 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
| 231 | | --libexe=* | --libex=* | --libe=*) |
---|
| 232 | libexecdir="$ac_optarg" ;; |
---|
| 233 | |
---|
| 234 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
| 235 | | --localstate | --localstat | --localsta | --localst \ |
---|
| 236 | | --locals | --local | --loca | --loc | --lo) |
---|
| 237 | ac_prev=localstatedir ;; |
---|
| 238 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
| 239 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
| 240 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
| 241 | localstatedir="$ac_optarg" ;; |
---|
| 242 | |
---|
| 243 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
| 244 | ac_prev=mandir ;; |
---|
| 245 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
| 246 | mandir="$ac_optarg" ;; |
---|
| 247 | |
---|
| 248 | -nfp | --nfp | --nf) |
---|
| 249 | # Obsolete; use --without-fp. |
---|
| 250 | with_fp=no ;; |
---|
| 251 | |
---|
| 252 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 253 | | --no-cr | --no-c) |
---|
| 254 | no_create=yes ;; |
---|
| 255 | |
---|
| 256 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 257 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
| 258 | no_recursion=yes ;; |
---|
| 259 | |
---|
| 260 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
| 261 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
| 262 | | --oldin | --oldi | --old | --ol | --o) |
---|
| 263 | ac_prev=oldincludedir ;; |
---|
| 264 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
| 265 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
| 266 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
| 267 | oldincludedir="$ac_optarg" ;; |
---|
| 268 | |
---|
| 269 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
| 270 | ac_prev=prefix ;; |
---|
| 271 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
| 272 | prefix="$ac_optarg" ;; |
---|
| 273 | |
---|
| 274 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
| 275 | | --program-pre | --program-pr | --program-p) |
---|
| 276 | ac_prev=program_prefix ;; |
---|
| 277 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
| 278 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
| 279 | program_prefix="$ac_optarg" ;; |
---|
| 280 | |
---|
| 281 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
| 282 | | --program-suf | --program-su | --program-s) |
---|
| 283 | ac_prev=program_suffix ;; |
---|
| 284 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
| 285 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
| 286 | program_suffix="$ac_optarg" ;; |
---|
| 287 | |
---|
| 288 | -program-transform-name | --program-transform-name \ |
---|
| 289 | | --program-transform-nam | --program-transform-na \ |
---|
| 290 | | --program-transform-n | --program-transform- \ |
---|
| 291 | | --program-transform | --program-transfor \ |
---|
| 292 | | --program-transfo | --program-transf \ |
---|
| 293 | | --program-trans | --program-tran \ |
---|
| 294 | | --progr-tra | --program-tr | --program-t) |
---|
| 295 | ac_prev=program_transform_name ;; |
---|
| 296 | -program-transform-name=* | --program-transform-name=* \ |
---|
| 297 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
| 298 | | --program-transform-n=* | --program-transform-=* \ |
---|
| 299 | | --program-transform=* | --program-transfor=* \ |
---|
| 300 | | --program-transfo=* | --program-transf=* \ |
---|
| 301 | | --program-trans=* | --program-tran=* \ |
---|
| 302 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
| 303 | program_transform_name="$ac_optarg" ;; |
---|
| 304 | |
---|
| 305 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 306 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 307 | silent=yes ;; |
---|
| 308 | |
---|
| 309 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
| 310 | ac_prev=sbindir ;; |
---|
| 311 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
| 312 | | --sbi=* | --sb=*) |
---|
| 313 | sbindir="$ac_optarg" ;; |
---|
| 314 | |
---|
| 315 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
| 316 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
| 317 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
| 318 | | --sha | --sh) |
---|
| 319 | ac_prev=sharedstatedir ;; |
---|
| 320 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
| 321 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
| 322 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
| 323 | | --sha=* | --sh=*) |
---|
| 324 | sharedstatedir="$ac_optarg" ;; |
---|
| 325 | |
---|
| 326 | -site | --site | --sit) |
---|
| 327 | ac_prev=site ;; |
---|
| 328 | -site=* | --site=* | --sit=*) |
---|
| 329 | site="$ac_optarg" ;; |
---|
| 330 | |
---|
| 331 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 332 | ac_prev=srcdir ;; |
---|
| 333 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 334 | srcdir="$ac_optarg" ;; |
---|
| 335 | |
---|
| 336 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
| 337 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
| 338 | ac_prev=sysconfdir ;; |
---|
| 339 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
| 340 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
| 341 | sysconfdir="$ac_optarg" ;; |
---|
| 342 | |
---|
| 343 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
| 344 | ac_prev=target ;; |
---|
| 345 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
| 346 | target="$ac_optarg" ;; |
---|
| 347 | |
---|
| 348 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
| 349 | verbose=yes ;; |
---|
| 350 | |
---|
| 351 | -version | --version | --versio | --versi | --vers) |
---|
| 352 | echo "configure generated by autoconf version 2.13" |
---|
| 353 | exit 0 ;; |
---|
| 354 | |
---|
| 355 | -with-* | --with-*) |
---|
| 356 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
---|
| 357 | # Reject names that are not valid shell variable names. |
---|
| 358 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
| 359 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
| 360 | fi |
---|
| 361 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
| 362 | case "$ac_option" in |
---|
| 363 | *=*) ;; |
---|
| 364 | *) ac_optarg=yes ;; |
---|
| 365 | esac |
---|
| 366 | eval "with_${ac_package}='$ac_optarg'" ;; |
---|
| 367 | |
---|
| 368 | -without-* | --without-*) |
---|
| 369 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
---|
| 370 | # Reject names that are not valid shell variable names. |
---|
| 371 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
| 372 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
| 373 | fi |
---|
| 374 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
| 375 | eval "with_${ac_package}=no" ;; |
---|
| 376 | |
---|
| 377 | --x) |
---|
| 378 | # Obsolete; use --with-x. |
---|
| 379 | with_x=yes ;; |
---|
| 380 | |
---|
| 381 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
| 382 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
| 383 | ac_prev=x_includes ;; |
---|
| 384 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
| 385 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
| 386 | x_includes="$ac_optarg" ;; |
---|
| 387 | |
---|
| 388 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
| 389 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
| 390 | ac_prev=x_libraries ;; |
---|
| 391 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
| 392 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
| 393 | x_libraries="$ac_optarg" ;; |
---|
| 394 | |
---|
| 395 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
---|
| 396 | ;; |
---|
| 397 | |
---|
| 398 | *) |
---|
| 399 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
---|
| 400 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
---|
| 401 | fi |
---|
| 402 | if test "x$nonopt" != xNONE; then |
---|
| 403 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
---|
| 404 | fi |
---|
| 405 | nonopt="$ac_option" |
---|
| 406 | ;; |
---|
| 407 | |
---|
| 408 | esac |
---|
| 409 | done |
---|
| 410 | |
---|
| 411 | if test -n "$ac_prev"; then |
---|
| 412 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
---|
| 413 | fi |
---|
| 414 | |
---|
| 415 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
| 416 | |
---|
| 417 | # File descriptor usage: |
---|
| 418 | # 0 standard input |
---|
| 419 | # 1 file creation |
---|
| 420 | # 2 errors and warnings |
---|
| 421 | # 3 some systems may open it to /dev/tty |
---|
| 422 | # 4 used on the Kubota Titan |
---|
| 423 | # 6 checking for... messages and results |
---|
| 424 | # 5 compiler messages saved in config.log |
---|
| 425 | if test "$silent" = yes; then |
---|
| 426 | exec 6>/dev/null |
---|
| 427 | else |
---|
| 428 | exec 6>&1 |
---|
| 429 | fi |
---|
| 430 | exec 5>./config.log |
---|
| 431 | |
---|
| 432 | echo "\ |
---|
| 433 | This file contains any messages produced by compilers while |
---|
| 434 | running configure, to aid debugging if configure makes a mistake. |
---|
| 435 | " 1>&5 |
---|
| 436 | |
---|
| 437 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 438 | # Also quote any args containing shell metacharacters. |
---|
| 439 | ac_configure_args= |
---|
| 440 | for ac_arg |
---|
| 441 | do |
---|
| 442 | case "$ac_arg" in |
---|
| 443 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 444 | | --no-cr | --no-c) ;; |
---|
| 445 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 446 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
---|
| 447 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
---|
| 448 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
| 449 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
---|
| 450 | esac |
---|
| 451 | done |
---|
| 452 | |
---|
| 453 | # NLS nuisances. |
---|
| 454 | # Only set these to C if already set. These must not be set unconditionally |
---|
| 455 | # because not all systems understand e.g. LANG=C (notably SCO). |
---|
| 456 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
---|
| 457 | # Non-C LC_CTYPE values break the ctype check. |
---|
| 458 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
---|
| 459 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
---|
| 460 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
---|
| 461 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
---|
| 462 | |
---|
| 463 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 464 | rm -rf conftest* confdefs.h |
---|
| 465 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
| 466 | echo > confdefs.h |
---|
| 467 | |
---|
| 468 | # A filename unique to this package, relative to the directory that |
---|
| 469 | # configure is in, which we can look for to find out if srcdir is correct. |
---|
| 470 | ac_unique_file=score |
---|
| 471 | |
---|
| 472 | # Find the source files, if location was not specified. |
---|
| 473 | if test -z "$srcdir"; then |
---|
| 474 | ac_srcdir_defaulted=yes |
---|
| 475 | # Try the directory containing this script, then its parent. |
---|
| 476 | ac_prog=$0 |
---|
| 477 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
---|
| 478 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
---|
| 479 | srcdir=$ac_confdir |
---|
| 480 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 481 | srcdir=.. |
---|
| 482 | fi |
---|
| 483 | else |
---|
| 484 | ac_srcdir_defaulted=no |
---|
| 485 | fi |
---|
| 486 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 487 | if test "$ac_srcdir_defaulted" = yes; then |
---|
| 488 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
---|
| 489 | else |
---|
| 490 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
---|
| 491 | fi |
---|
| 492 | fi |
---|
| 493 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
---|
| 494 | |
---|
| 495 | # Prefer explicitly selected file to automatically selected ones. |
---|
| 496 | if test -z "$CONFIG_SITE"; then |
---|
| 497 | if test "x$prefix" != xNONE; then |
---|
| 498 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
| 499 | else |
---|
| 500 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
| 501 | fi |
---|
| 502 | fi |
---|
| 503 | for ac_site_file in $CONFIG_SITE; do |
---|
| 504 | if test -r "$ac_site_file"; then |
---|
| 505 | echo "loading site script $ac_site_file" |
---|
| 506 | . "$ac_site_file" |
---|
| 507 | fi |
---|
| 508 | done |
---|
| 509 | |
---|
| 510 | if test -r "$cache_file"; then |
---|
| 511 | echo "loading cache $cache_file" |
---|
| 512 | . $cache_file |
---|
| 513 | else |
---|
| 514 | echo "creating cache $cache_file" |
---|
| 515 | > $cache_file |
---|
| 516 | fi |
---|
| 517 | |
---|
| 518 | ac_ext=c |
---|
| 519 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 520 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 521 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 522 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 523 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 524 | |
---|
| 525 | ac_exeext= |
---|
| 526 | ac_objext=o |
---|
| 527 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
| 528 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
---|
| 529 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
| 530 | ac_n= ac_c=' |
---|
| 531 | ' ac_t=' ' |
---|
| 532 | else |
---|
| 533 | ac_n=-n ac_c= ac_t= |
---|
| 534 | fi |
---|
| 535 | else |
---|
| 536 | ac_n= ac_c='\c' ac_t= |
---|
| 537 | fi |
---|
| 538 | |
---|
| 539 | |
---|
| 540 | # Check whether --with-target-subdir or --without-target-subdir was given. |
---|
| 541 | if test "${with_target_subdir+set}" = set; then |
---|
| 542 | withval="$with_target_subdir" |
---|
| 543 | TARGET_SUBDIR="$withval" |
---|
| 544 | else |
---|
| 545 | TARGET_SUBDIR="." |
---|
| 546 | fi |
---|
| 547 | |
---|
| 548 | |
---|
| 549 | RTEMS_TOPdir="../../.."; |
---|
| 550 | |
---|
| 551 | |
---|
| 552 | echo $ac_n "checking for RTEMS Version""... $ac_c" 1>&6 |
---|
[e1d8abb] | 553 | echo "configure:554: checking for RTEMS Version" >&5 |
---|
[eb299afc] | 554 | if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then |
---|
| 555 | RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \ |
---|
| 556 | sed -e 's%RTEMS[ ]*Version[ ]*\(.*\)[ ]*%\1%g'` |
---|
| 557 | else |
---|
| 558 | { echo "configure: error: Unable to find ${RTEMS_TOPdir}/VERSION" 1>&2; exit 1; } |
---|
| 559 | fi |
---|
| 560 | if test -z "$RTEMS_VERSION"; then |
---|
| 561 | { echo "configure: error: Unable to determine version" 1>&2; exit 1; } |
---|
| 562 | fi |
---|
| 563 | echo "$ac_t""$RTEMS_VERSION" 1>&6 |
---|
| 564 | |
---|
| 565 | ac_aux_dir= |
---|
| 566 | for ac_dir in ../../.. $srcdir/../../..; do |
---|
| 567 | if test -f $ac_dir/install-sh; then |
---|
| 568 | ac_aux_dir=$ac_dir |
---|
| 569 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
| 570 | break |
---|
| 571 | elif test -f $ac_dir/install.sh; then |
---|
| 572 | ac_aux_dir=$ac_dir |
---|
| 573 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
| 574 | break |
---|
| 575 | fi |
---|
| 576 | done |
---|
| 577 | if test -z "$ac_aux_dir"; then |
---|
| 578 | { echo "configure: error: can not find install-sh or install.sh in ../../.. $srcdir/../../.." 1>&2; exit 1; } |
---|
| 579 | fi |
---|
| 580 | ac_config_guess=$ac_aux_dir/config.guess |
---|
| 581 | ac_config_sub=$ac_aux_dir/config.sub |
---|
| 582 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
---|
| 583 | |
---|
| 584 | |
---|
| 585 | |
---|
| 586 | |
---|
| 587 | # Do some error checking and defaulting for the host and target type. |
---|
| 588 | # The inputs are: |
---|
| 589 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT |
---|
| 590 | # |
---|
| 591 | # The rules are: |
---|
| 592 | # 1. You are not allowed to specify --host, --target, and nonopt at the |
---|
| 593 | # same time. |
---|
| 594 | # 2. Host defaults to nonopt. |
---|
| 595 | # 3. If nonopt is not specified, then host defaults to the current host, |
---|
| 596 | # as determined by config.guess. |
---|
| 597 | # 4. Target and build default to nonopt. |
---|
| 598 | # 5. If nonopt is not specified, then target and build default to host. |
---|
| 599 | |
---|
| 600 | # The aliases save the names the user supplied, while $host etc. |
---|
| 601 | # will get canonicalized. |
---|
| 602 | case $host---$target---$nonopt in |
---|
| 603 | NONE---*---* | *---NONE---* | *---*---NONE) ;; |
---|
| 604 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; |
---|
| 605 | esac |
---|
| 606 | |
---|
| 607 | |
---|
| 608 | # Make sure we can run config.sub. |
---|
| 609 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
---|
| 610 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
---|
| 611 | fi |
---|
| 612 | |
---|
| 613 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
---|
[e1d8abb] | 614 | echo "configure:615: checking host system type" >&5 |
---|
[eb299afc] | 615 | |
---|
| 616 | host_alias=$host |
---|
| 617 | case "$host_alias" in |
---|
| 618 | NONE) |
---|
| 619 | case $nonopt in |
---|
| 620 | NONE) |
---|
| 621 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
---|
| 622 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
---|
| 623 | fi ;; |
---|
| 624 | *) host_alias=$nonopt ;; |
---|
| 625 | esac ;; |
---|
| 626 | esac |
---|
| 627 | |
---|
| 628 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
---|
| 629 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 630 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 631 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 632 | echo "$ac_t""$host" 1>&6 |
---|
| 633 | |
---|
| 634 | echo $ac_n "checking target system type""... $ac_c" 1>&6 |
---|
[e1d8abb] | 635 | echo "configure:636: checking target system type" >&5 |
---|
[eb299afc] | 636 | |
---|
| 637 | target_alias=$target |
---|
| 638 | case "$target_alias" in |
---|
| 639 | NONE) |
---|
| 640 | case $nonopt in |
---|
| 641 | NONE) target_alias=$host_alias ;; |
---|
| 642 | *) target_alias=$nonopt ;; |
---|
| 643 | esac ;; |
---|
| 644 | esac |
---|
| 645 | |
---|
| 646 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
---|
| 647 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 648 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 649 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 650 | echo "$ac_t""$target" 1>&6 |
---|
| 651 | |
---|
| 652 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
---|
[e1d8abb] | 653 | echo "configure:654: checking build system type" >&5 |
---|
[eb299afc] | 654 | |
---|
| 655 | build_alias=$build |
---|
| 656 | case "$build_alias" in |
---|
| 657 | NONE) |
---|
| 658 | case $nonopt in |
---|
| 659 | NONE) build_alias=$host_alias ;; |
---|
| 660 | *) build_alias=$nonopt ;; |
---|
| 661 | esac ;; |
---|
| 662 | esac |
---|
| 663 | |
---|
| 664 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
---|
| 665 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 666 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 667 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 668 | echo "$ac_t""$build" 1>&6 |
---|
| 669 | |
---|
| 670 | test "$host_alias" != "$target_alias" && |
---|
| 671 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
| 672 | NONENONEs,x,x, && |
---|
| 673 | program_prefix=${target_alias}- |
---|
| 674 | |
---|
| 675 | echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6 |
---|
[e1d8abb] | 676 | echo "configure:677: checking rtems target cpu" >&5 |
---|
[eb299afc] | 677 | case "${target}" in |
---|
| 678 | # hpux unix port should go here |
---|
| 679 | i[3456]86-go32-rtems*) |
---|
| 680 | RTEMS_CPU=i386 |
---|
| 681 | ;; |
---|
| 682 | i[3456]86-pc-linux*) # unix "simulator" port |
---|
| 683 | RTEMS_CPU=unix |
---|
| 684 | ;; |
---|
| 685 | i[3456]86-*freebsd2*) # unix "simulator" port |
---|
| 686 | RTEMS_CPU=unix |
---|
| 687 | ;; |
---|
| 688 | no_cpu-*rtems*) |
---|
| 689 | RTEMS_CPU=no_cpu |
---|
| 690 | ;; |
---|
| 691 | sparc-sun-solaris*) # unix "simulator" port |
---|
| 692 | RTEMS_CPU=unix |
---|
| 693 | ;; |
---|
| 694 | *) |
---|
| 695 | RTEMS_CPU=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'` |
---|
| 696 | ;; |
---|
| 697 | esac |
---|
| 698 | |
---|
| 699 | echo "$ac_t""$RTEMS_CPU" 1>&6 |
---|
| 700 | |
---|
| 701 | |
---|
[e1d8abb] | 702 | # Find a good install program. We prefer a C program (faster), |
---|
| 703 | # so one script is as good as another. But avoid the broken or |
---|
| 704 | # incompatible versions: |
---|
| 705 | # SysV /etc/install, /usr/sbin/install |
---|
| 706 | # SunOS /usr/etc/install |
---|
| 707 | # IRIX /sbin/install |
---|
| 708 | # AIX /bin/install |
---|
| 709 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
| 710 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
| 711 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
| 712 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
| 713 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
---|
| 714 | echo "configure:715: checking for a BSD compatible install" >&5 |
---|
| 715 | if test -z "$INSTALL"; then |
---|
| 716 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
---|
| 717 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 718 | else |
---|
| 719 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
---|
| 720 | for ac_dir in $PATH; do |
---|
| 721 | # Account for people who put trailing slashes in PATH elements. |
---|
| 722 | case "$ac_dir/" in |
---|
| 723 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
---|
| 724 | *) |
---|
| 725 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
| 726 | # Don't use installbsd from OSF since it installs stuff as root |
---|
| 727 | # by default. |
---|
| 728 | for ac_prog in ginstall scoinst install; do |
---|
| 729 | if test -f $ac_dir/$ac_prog; then |
---|
| 730 | if test $ac_prog = install && |
---|
| 731 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
---|
| 732 | # AIX install. It has an incompatible calling convention. |
---|
| 733 | : |
---|
| 734 | else |
---|
| 735 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
---|
| 736 | break 2 |
---|
| 737 | fi |
---|
| 738 | fi |
---|
| 739 | done |
---|
| 740 | ;; |
---|
| 741 | esac |
---|
| 742 | done |
---|
| 743 | IFS="$ac_save_IFS" |
---|
| 744 | |
---|
| 745 | fi |
---|
| 746 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 747 | INSTALL="$ac_cv_path_install" |
---|
| 748 | else |
---|
| 749 | # As a last resort, use the slow shell script. We don't cache a |
---|
| 750 | # path for INSTALL within a source directory, because that will |
---|
| 751 | # break other packages using the cache if that directory is |
---|
| 752 | # removed, or if the path is relative. |
---|
| 753 | INSTALL="$ac_install_sh" |
---|
| 754 | fi |
---|
| 755 | fi |
---|
| 756 | echo "$ac_t""$INSTALL" 1>&6 |
---|
| 757 | |
---|
| 758 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
| 759 | # It thinks the first close brace ends the variable substitution. |
---|
| 760 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
| 761 | |
---|
| 762 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
---|
| 763 | |
---|
| 764 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
| 765 | |
---|
| 766 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
---|
| 767 | echo "configure:768: checking whether build environment is sane" >&5 |
---|
| 768 | # Just in case |
---|
| 769 | sleep 1 |
---|
| 770 | echo timestamp > conftestfile |
---|
| 771 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
| 772 | # arguments. Must try -L first in case configure is actually a |
---|
| 773 | # symlink; some systems play weird games with the mod time of symlinks |
---|
| 774 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
| 775 | # directory). |
---|
| 776 | if ( |
---|
| 777 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
---|
| 778 | if test "$*" = "X"; then |
---|
| 779 | # -L didn't work. |
---|
| 780 | set X `ls -t $srcdir/configure conftestfile` |
---|
| 781 | fi |
---|
| 782 | if test "$*" != "X $srcdir/configure conftestfile" \ |
---|
| 783 | && test "$*" != "X conftestfile $srcdir/configure"; then |
---|
| 784 | |
---|
| 785 | # If neither matched, then we have a broken ls. This can happen |
---|
| 786 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
| 787 | # broken ls alias from the environment. This has actually |
---|
| 788 | # happened. Such a system could not be considered "sane". |
---|
| 789 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken |
---|
| 790 | alias in your environment" 1>&2; exit 1; } |
---|
| 791 | fi |
---|
| 792 | |
---|
| 793 | test "$2" = conftestfile |
---|
| 794 | ) |
---|
| 795 | then |
---|
| 796 | # Ok. |
---|
| 797 | : |
---|
| 798 | else |
---|
| 799 | { echo "configure: error: newly created file is older than distributed files! |
---|
| 800 | Check your system clock" 1>&2; exit 1; } |
---|
| 801 | fi |
---|
| 802 | rm -f conftest* |
---|
| 803 | echo "$ac_t""yes" 1>&6 |
---|
| 804 | if test "$program_transform_name" = s,x,x,; then |
---|
| 805 | program_transform_name= |
---|
| 806 | else |
---|
| 807 | # Double any \ or $. echo might interpret backslashes. |
---|
| 808 | cat <<\EOF_SED > conftestsed |
---|
| 809 | s,\\,\\\\,g; s,\$,$$,g |
---|
| 810 | EOF_SED |
---|
| 811 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" |
---|
| 812 | rm -f conftestsed |
---|
| 813 | fi |
---|
| 814 | test "$program_prefix" != NONE && |
---|
| 815 | program_transform_name="s,^,${program_prefix},; $program_transform_name" |
---|
| 816 | # Use a double $ so make ignores it. |
---|
| 817 | test "$program_suffix" != NONE && |
---|
| 818 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" |
---|
| 819 | |
---|
| 820 | # sed with no file args requires a program. |
---|
| 821 | test "$program_transform_name" = "" && program_transform_name="s,x,x," |
---|
| 822 | |
---|
| 823 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
---|
| 824 | echo "configure:825: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
---|
| 825 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
---|
| 826 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
---|
| 827 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 828 | else |
---|
| 829 | cat > conftestmake <<\EOF |
---|
| 830 | all: |
---|
| 831 | @echo 'ac_maketemp="${MAKE}"' |
---|
| 832 | EOF |
---|
| 833 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
| 834 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
---|
| 835 | if test -n "$ac_maketemp"; then |
---|
| 836 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
| 837 | else |
---|
| 838 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
| 839 | fi |
---|
| 840 | rm -f conftestmake |
---|
| 841 | fi |
---|
| 842 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
| 843 | echo "$ac_t""yes" 1>&6 |
---|
| 844 | SET_MAKE= |
---|
| 845 | else |
---|
| 846 | echo "$ac_t""no" 1>&6 |
---|
| 847 | SET_MAKE="MAKE=${MAKE-make}" |
---|
| 848 | fi |
---|
| 849 | |
---|
| 850 | |
---|
[473b4e5] | 851 | |
---|
[e1d8abb] | 852 | PACKAGE=rtems-c-src-exec |
---|
| 853 | |
---|
| 854 | VERSION=$RTEMS_VERSION |
---|
| 855 | |
---|
| 856 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
---|
| 857 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } |
---|
| 858 | fi |
---|
| 859 | |
---|
| 860 | |
---|
| 861 | |
---|
| 862 | missing_dir=`cd $ac_aux_dir && pwd` |
---|
| 863 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 |
---|
[473b4e5] | 864 | echo "configure:865: checking for working aclocal" >&5 |
---|
[e1d8abb] | 865 | # Run test in a subshell; some versions of sh will print an error if |
---|
| 866 | # an executable is not found, even if stderr is redirected. |
---|
| 867 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
| 868 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then |
---|
| 869 | ACLOCAL=aclocal |
---|
| 870 | echo "$ac_t""found" 1>&6 |
---|
| 871 | else |
---|
| 872 | ACLOCAL="$missing_dir/missing aclocal" |
---|
| 873 | echo "$ac_t""missing" 1>&6 |
---|
| 874 | fi |
---|
| 875 | |
---|
| 876 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 |
---|
[473b4e5] | 877 | echo "configure:878: checking for working autoconf" >&5 |
---|
[e1d8abb] | 878 | # Run test in a subshell; some versions of sh will print an error if |
---|
| 879 | # an executable is not found, even if stderr is redirected. |
---|
| 880 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
| 881 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
---|
| 882 | AUTOCONF=autoconf |
---|
| 883 | echo "$ac_t""found" 1>&6 |
---|
| 884 | else |
---|
| 885 | AUTOCONF="$missing_dir/missing autoconf" |
---|
| 886 | echo "$ac_t""missing" 1>&6 |
---|
| 887 | fi |
---|
| 888 | |
---|
| 889 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 |
---|
[473b4e5] | 890 | echo "configure:891: checking for working automake" >&5 |
---|
[e1d8abb] | 891 | # Run test in a subshell; some versions of sh will print an error if |
---|
| 892 | # an executable is not found, even if stderr is redirected. |
---|
| 893 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
| 894 | if (automake --version) < /dev/null > /dev/null 2>&1; then |
---|
| 895 | AUTOMAKE=automake |
---|
| 896 | echo "$ac_t""found" 1>&6 |
---|
| 897 | else |
---|
| 898 | AUTOMAKE="$missing_dir/missing automake" |
---|
| 899 | echo "$ac_t""missing" 1>&6 |
---|
| 900 | fi |
---|
| 901 | |
---|
| 902 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 |
---|
[473b4e5] | 903 | echo "configure:904: checking for working autoheader" >&5 |
---|
[e1d8abb] | 904 | # Run test in a subshell; some versions of sh will print an error if |
---|
| 905 | # an executable is not found, even if stderr is redirected. |
---|
| 906 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
| 907 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
---|
| 908 | AUTOHEADER=autoheader |
---|
| 909 | echo "$ac_t""found" 1>&6 |
---|
| 910 | else |
---|
| 911 | AUTOHEADER="$missing_dir/missing autoheader" |
---|
| 912 | echo "$ac_t""missing" 1>&6 |
---|
| 913 | fi |
---|
| 914 | |
---|
| 915 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 |
---|
[473b4e5] | 916 | echo "configure:917: checking for working makeinfo" >&5 |
---|
[e1d8abb] | 917 | # Run test in a subshell; some versions of sh will print an error if |
---|
| 918 | # an executable is not found, even if stderr is redirected. |
---|
| 919 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
| 920 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
---|
| 921 | MAKEINFO=makeinfo |
---|
| 922 | echo "$ac_t""found" 1>&6 |
---|
| 923 | else |
---|
| 924 | MAKEINFO="$missing_dir/missing makeinfo" |
---|
| 925 | echo "$ac_t""missing" 1>&6 |
---|
| 926 | fi |
---|
| 927 | |
---|
| 928 | |
---|
[eb299afc] | 929 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 |
---|
[473b4e5] | 930 | echo "configure:931: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
---|
[eb299afc] | 931 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
---|
| 932 | if test "${enable_maintainer_mode+set}" = set; then |
---|
| 933 | enableval="$enable_maintainer_mode" |
---|
| 934 | USE_MAINTAINER_MODE=$enableval |
---|
| 935 | else |
---|
| 936 | USE_MAINTAINER_MODE=no |
---|
| 937 | fi |
---|
| 938 | |
---|
| 939 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 |
---|
| 940 | |
---|
| 941 | |
---|
| 942 | if test $USE_MAINTAINER_MODE = yes; then |
---|
| 943 | MAINTAINER_MODE_TRUE= |
---|
| 944 | MAINTAINER_MODE_FALSE='#' |
---|
| 945 | else |
---|
| 946 | MAINTAINER_MODE_TRUE='#' |
---|
| 947 | MAINTAINER_MODE_FALSE= |
---|
| 948 | fi |
---|
| 949 | MAINT=$MAINTAINER_MODE_TRUE |
---|
| 950 | |
---|
| 951 | |
---|
| 952 | |
---|
| 953 | # Check whether --enable-multiprocessing or --disable-multiprocessing was given. |
---|
| 954 | if test "${enable_multiprocessing+set}" = set; then |
---|
| 955 | enableval="$enable_multiprocessing" |
---|
| 956 | case "${enableval}" in |
---|
| 957 | yes) RTEMS_HAS_MULTIPROCESSING=yes ;; |
---|
| 958 | no) RTEMS_HAS_MULTIPROCESSING=no ;; |
---|
| 959 | *) { echo "configure: error: bad value ${enableval} for enable-multiprocessing option" 1>&2; exit 1; } ;; |
---|
| 960 | esac |
---|
| 961 | else |
---|
| 962 | RTEMS_HAS_MULTIPROCESSING=no |
---|
| 963 | fi |
---|
| 964 | |
---|
| 965 | |
---|
| 966 | |
---|
| 967 | # Check whether --enable-posix or --disable-posix was given. |
---|
| 968 | if test "${enable_posix+set}" = set; then |
---|
| 969 | enableval="$enable_posix" |
---|
| 970 | case "${enableval}" in |
---|
| 971 | yes) RTEMS_HAS_POSIX_API=yes ;; |
---|
| 972 | no) RTEMS_HAS_POSIX_API=no ;; |
---|
| 973 | *) { echo "configure: error: bad value ${enableval} for enable-posix option" 1>&2; exit 1; } ;; |
---|
| 974 | esac |
---|
| 975 | else |
---|
| 976 | RTEMS_HAS_POSIX_API=yes |
---|
| 977 | fi |
---|
| 978 | |
---|
| 979 | |
---|
| 980 | |
---|
| 981 | case "${target}" in |
---|
| 982 | # hpux unix port should go here |
---|
| 983 | i[3456]86-go32-rtems*) |
---|
| 984 | RTEMS_HAS_POSIX_API=no |
---|
| 985 | ;; |
---|
| 986 | i[3456]86-pc-linux*) # unix "simulator" port |
---|
| 987 | RTEMS_HAS_POSIX_API=no |
---|
| 988 | ;; |
---|
| 989 | i[3456]86-*freebsd2*) # unix "simulator" port |
---|
| 990 | RTEMS_HAS_POSIX_API=no |
---|
| 991 | ;; |
---|
| 992 | no_cpu-*rtems*) |
---|
| 993 | RTEMS_HAS_POSIX_API=no |
---|
| 994 | ;; |
---|
| 995 | sparc-sun-solaris*) # unix "simulator" port |
---|
| 996 | RTEMS_HAS_POSIX_API=no |
---|
| 997 | ;; |
---|
| 998 | *) |
---|
| 999 | ;; |
---|
| 1000 | esac |
---|
| 1001 | |
---|
| 1002 | |
---|
| 1003 | # Check whether --enable-rtems-inlines or --disable-rtems-inlines was given. |
---|
| 1004 | if test "${enable_rtems_inlines+set}" = set; then |
---|
| 1005 | enableval="$enable_rtems_inlines" |
---|
| 1006 | case "${enableval}" in |
---|
| 1007 | yes) RTEMS_USE_MACROS=no ;; |
---|
| 1008 | no) RTEMS_USE_MACROS=yes ;; |
---|
| 1009 | *) { echo "configure: error: bad value ${enableval} for disable-rtems-inlines option" 1>&2; exit 1; } ;; |
---|
| 1010 | esac |
---|
| 1011 | else |
---|
| 1012 | RTEMS_USE_MACROS=no |
---|
| 1013 | fi |
---|
| 1014 | |
---|
| 1015 | |
---|
| 1016 | |
---|
| 1017 | # Check whether --enable-gcc28 or --disable-gcc28 was given. |
---|
| 1018 | if test "${enable_gcc28+set}" = set; then |
---|
| 1019 | enableval="$enable_gcc28" |
---|
| 1020 | case "${enableval}" in |
---|
| 1021 | yes) RTEMS_USE_GCC272=no ;; |
---|
| 1022 | no) RTEMS_USE_GCC272=yes ;; |
---|
| 1023 | *) { echo "configure: error: bad value ${enableval} for gcc-28 option" 1>&2; exit 1; } ;; |
---|
| 1024 | esac |
---|
| 1025 | else |
---|
| 1026 | RTEMS_USE_GCC272=no |
---|
| 1027 | fi |
---|
| 1028 | |
---|
| 1029 | |
---|
| 1030 | |
---|
| 1031 | # Check whether --enable-libcdir or --disable-libcdir was given. |
---|
| 1032 | if test "${enable_libcdir+set}" = set; then |
---|
| 1033 | enableval="$enable_libcdir" |
---|
| 1034 | RTEMS_LIBC_DIR="${enableval}" ; \ |
---|
| 1035 | test -d ${enableval} || { echo "configure: error: "$enableval is not a directory" " 1>&2; exit 1; } |
---|
| 1036 | fi |
---|
| 1037 | |
---|
| 1038 | |
---|
| 1039 | |
---|
| 1040 | echo $ac_n "checking for RTEMS_BSP""... $ac_c" 1>&6 |
---|
[473b4e5] | 1041 | echo "configure:1042: checking for RTEMS_BSP" >&5 |
---|
[eb299afc] | 1042 | if eval "test \"`echo '$''{'rtems_cv_RTEMS_BSP'+set}'`\" = set"; then |
---|
| 1043 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1044 | else |
---|
| 1045 | test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP"; |
---|
| 1046 | |
---|
| 1047 | fi |
---|
| 1048 | if test -z "$rtems_cv_RTEMS_BSP"; then |
---|
| 1049 | { echo "configure: error: Missing RTEMS_BSP" 1>&2; exit 1; } |
---|
| 1050 | fi |
---|
| 1051 | RTEMS_BSP="$rtems_cv_RTEMS_BSP" |
---|
| 1052 | echo "$ac_t""${RTEMS_BSP}" 1>&6 |
---|
| 1053 | |
---|
| 1054 | |
---|
| 1055 | |
---|
[e1d8abb] | 1056 | |
---|
| 1057 | |
---|
| 1058 | # Is this a supported CPU? |
---|
| 1059 | echo $ac_n "checking if cpu $RTEMS_CPU is supported""... $ac_c" 1>&6 |
---|
[473b4e5] | 1060 | echo "configure:1061: checking if cpu $RTEMS_CPU is supported" >&5 |
---|
[e1d8abb] | 1061 | if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$RTEMS_CPU"; then |
---|
[eb299afc] | 1062 | echo "$ac_t""yes" 1>&6 |
---|
| 1063 | else |
---|
[e1d8abb] | 1064 | { echo "configure: error: no" 1>&2; exit 1; } |
---|
[eb299afc] | 1065 | fi |
---|
| 1066 | |
---|
| 1067 | |
---|
[e1d8abb] | 1068 | RTEMS_HOST=$host_os |
---|
| 1069 | case "${target}" in |
---|
| 1070 | # hpux unix port should go here |
---|
| 1071 | i[3456]86-pc-linux*) # unix "simulator" port |
---|
| 1072 | RTEMS_HOST=Linux |
---|
| 1073 | ;; |
---|
| 1074 | i[3456]86-*freebsd2*) # unix "simulator" port |
---|
| 1075 | RTEMS_HOST=FreeBSD |
---|
| 1076 | ;; |
---|
| 1077 | sparc-sun-solaris*) # unix "simulator" port |
---|
| 1078 | RTEMS_HOST=Solaris |
---|
| 1079 | ;; |
---|
| 1080 | *) |
---|
| 1081 | ;; |
---|
| 1082 | esac |
---|
| 1083 | |
---|
| 1084 | |
---|
| 1085 | |
---|
| 1086 | |
---|
| 1087 | if test "$TARGET_SUBDIR" = "." ; then |
---|
| 1088 | PROJECT_ROOT=$RTEMS_TOPdir/'$(top_builddir)'; |
---|
| 1089 | else |
---|
| 1090 | PROJECT_ROOT=../$RTEMS_TOPdir/'$(top_builddir)' |
---|
[eb299afc] | 1091 | fi |
---|
| 1092 | |
---|
| 1093 | |
---|
[e1d8abb] | 1094 | RTEMS_ROOT=$RTEMS_TOPdir/'$(top_builddir)'/c/$RTEMS_BSP |
---|
[eb299afc] | 1095 | |
---|
| 1096 | |
---|
[e1d8abb] | 1097 | INSTALL_CHANGE="\$(KSH) \$(PROJECT_ROOT)/tools/build/install-if-change" |
---|
[eb299afc] | 1098 | |
---|
| 1099 | |
---|
| 1100 | PACKHEX="\$(PROJECT_ROOT)/tools/build/packhex" |
---|
| 1101 | |
---|
| 1102 | |
---|
| 1103 | |
---|
| 1104 | |
---|
| 1105 | if [ "${program_prefix}" = "NONE" ] ; then |
---|
| 1106 | if [ "${target}" = "${host}" ] ; then |
---|
| 1107 | program_prefix= |
---|
| 1108 | else |
---|
| 1109 | program_prefix=${target}- |
---|
| 1110 | fi |
---|
| 1111 | fi |
---|
| 1112 | |
---|
| 1113 | |
---|
| 1114 | |
---|
| 1115 | |
---|
| 1116 | for ac_prog in "$program_prefix"gcc "$program_prefix"cc |
---|
| 1117 | do |
---|
| 1118 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1119 | set dummy $ac_prog; ac_word=$2 |
---|
| 1120 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[473b4e5] | 1121 | echo "configure:1122: checking for $ac_word" >&5 |
---|
[eb299afc] | 1122 | if eval "test \"`echo '$''{'ac_cv_path_CC_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1123 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1124 | else |
---|
| 1125 | case "$CC_FOR_TARGET" in |
---|
| 1126 | /*) |
---|
| 1127 | ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a path. |
---|
| 1128 | ;; |
---|
| 1129 | ?:/*) |
---|
| 1130 | ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 1131 | ;; |
---|
| 1132 | *) |
---|
| 1133 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1134 | ac_dummy="$PATH" |
---|
| 1135 | for ac_dir in $ac_dummy; do |
---|
| 1136 | test -z "$ac_dir" && ac_dir=. |
---|
| 1137 | if test -f $ac_dir/$ac_word; then |
---|
| 1138 | ac_cv_path_CC_FOR_TARGET="$ac_dir/$ac_word" |
---|
| 1139 | break |
---|
| 1140 | fi |
---|
| 1141 | done |
---|
| 1142 | IFS="$ac_save_ifs" |
---|
| 1143 | ;; |
---|
| 1144 | esac |
---|
| 1145 | fi |
---|
| 1146 | CC_FOR_TARGET="$ac_cv_path_CC_FOR_TARGET" |
---|
| 1147 | if test -n "$CC_FOR_TARGET"; then |
---|
| 1148 | echo "$ac_t""$CC_FOR_TARGET" 1>&6 |
---|
| 1149 | else |
---|
| 1150 | echo "$ac_t""no" 1>&6 |
---|
| 1151 | fi |
---|
| 1152 | |
---|
| 1153 | test -n "$CC_FOR_TARGET" && break |
---|
| 1154 | done |
---|
| 1155 | |
---|
| 1156 | test -z "$CC_FOR_TARGET" \ |
---|
| 1157 | && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
| 1158 | |
---|
| 1159 | rtems_save_CC=$CC |
---|
| 1160 | rtems_save_CFLAGS=$CFLAGS |
---|
| 1161 | |
---|
| 1162 | CC=$CC_FOR_TARGET |
---|
| 1163 | |
---|
| 1164 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
[473b4e5] | 1165 | echo "configure:1166: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
[eb299afc] | 1166 | |
---|
| 1167 | ac_ext=c |
---|
| 1168 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 1169 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1170 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 1171 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 1172 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 1173 | |
---|
| 1174 | cat > conftest.$ac_ext << EOF |
---|
| 1175 | |
---|
[473b4e5] | 1176 | #line 1177 "configure" |
---|
[eb299afc] | 1177 | #include "confdefs.h" |
---|
| 1178 | |
---|
| 1179 | main(){return(0);} |
---|
| 1180 | EOF |
---|
[473b4e5] | 1181 | if { (eval echo configure:1182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
[eb299afc] | 1182 | ac_cv_prog_cc_works=yes |
---|
| 1183 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
| 1184 | if (./conftest; exit) 2>/dev/null; then |
---|
| 1185 | ac_cv_prog_cc_cross=no |
---|
| 1186 | else |
---|
| 1187 | ac_cv_prog_cc_cross=yes |
---|
| 1188 | fi |
---|
| 1189 | else |
---|
| 1190 | echo "configure: failed program was:" >&5 |
---|
| 1191 | cat conftest.$ac_ext >&5 |
---|
| 1192 | ac_cv_prog_cc_works=no |
---|
| 1193 | fi |
---|
| 1194 | rm -fr conftest* |
---|
| 1195 | ac_ext=c |
---|
| 1196 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 1197 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1198 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 1199 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 1200 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 1201 | |
---|
| 1202 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
| 1203 | if test $ac_cv_prog_cc_works = no; then |
---|
| 1204 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
| 1205 | fi |
---|
| 1206 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
[473b4e5] | 1207 | echo "configure:1208: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
[eb299afc] | 1208 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
| 1209 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 1210 | |
---|
| 1211 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
[473b4e5] | 1212 | echo "configure:1213: checking whether we are using GNU C" >&5 |
---|
[eb299afc] | 1213 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
| 1214 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1215 | else |
---|
| 1216 | cat > conftest.c <<EOF |
---|
| 1217 | #ifdef __GNUC__ |
---|
| 1218 | yes; |
---|
| 1219 | #endif |
---|
| 1220 | EOF |
---|
[473b4e5] | 1221 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
[eb299afc] | 1222 | ac_cv_prog_gcc=yes |
---|
| 1223 | else |
---|
| 1224 | ac_cv_prog_gcc=no |
---|
| 1225 | fi |
---|
| 1226 | fi |
---|
| 1227 | |
---|
| 1228 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
| 1229 | |
---|
| 1230 | if test $ac_cv_prog_gcc = yes; then |
---|
| 1231 | GCC=yes |
---|
| 1232 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
| 1233 | ac_save_CFLAGS="$CFLAGS" |
---|
| 1234 | CFLAGS= |
---|
| 1235 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
[473b4e5] | 1236 | echo "configure:1237: checking whether ${CC-cc} accepts -g" >&5 |
---|
[eb299afc] | 1237 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
| 1238 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1239 | else |
---|
| 1240 | echo 'void f(){}' > conftest.c |
---|
| 1241 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
| 1242 | ac_cv_prog_cc_g=yes |
---|
| 1243 | else |
---|
| 1244 | ac_cv_prog_cc_g=no |
---|
| 1245 | fi |
---|
| 1246 | rm -f conftest* |
---|
| 1247 | |
---|
| 1248 | fi |
---|
| 1249 | |
---|
| 1250 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
| 1251 | if test "$ac_test_CFLAGS" = set; then |
---|
| 1252 | CFLAGS="$ac_save_CFLAGS" |
---|
| 1253 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 1254 | CFLAGS="-g -O2" |
---|
| 1255 | else |
---|
| 1256 | CFLAGS="-O2" |
---|
| 1257 | fi |
---|
| 1258 | else |
---|
| 1259 | GCC= |
---|
| 1260 | test "${CFLAGS+set}" = set || CFLAGS="-g" |
---|
| 1261 | fi |
---|
| 1262 | |
---|
| 1263 | rtems_cv_prog_gcc=$ac_cv_prog_gcc |
---|
| 1264 | rtems_cv_prog_cc_g=$ac_cv_prog_cc_g |
---|
| 1265 | rtems_cv_prog_cc_works=$ac_cv_prog_cc_works |
---|
| 1266 | rtems_cv_prog_cc_cross=$ac_cv_prog_cc_cross |
---|
| 1267 | |
---|
| 1268 | CC=$rtems_save_CC |
---|
| 1269 | CFLAGS=$rtems_save_CFLAGS |
---|
| 1270 | |
---|
| 1271 | unset ac_cv_prog_gcc |
---|
| 1272 | unset ac_cv_prog_cc_g |
---|
| 1273 | unset ac_cv_prog_cc_works |
---|
| 1274 | unset ac_cv_prog_cc_cross |
---|
| 1275 | |
---|
| 1276 | |
---|
| 1277 | echo $ac_n "checking whether $CC_FOR_TARGET accepts -specs""... $ac_c" 1>&6 |
---|
[473b4e5] | 1278 | echo "configure:1279: checking whether $CC_FOR_TARGET accepts -specs" >&5 |
---|
[eb299afc] | 1279 | if eval "test \"`echo '$''{'rtems_cv_gcc_specs'+set}'`\" = set"; then |
---|
| 1280 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1281 | else |
---|
| 1282 | |
---|
| 1283 | rtems_cv_gcc_specs=no |
---|
| 1284 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 1285 | touch confspec |
---|
| 1286 | echo 'void f(){}' >conftest.c |
---|
| 1287 | if test -z "`${CC_FOR_TARGET} -specs confspec -c conftest.c 2>&1`";then |
---|
| 1288 | rtems_cv_gcc_specs=yes |
---|
| 1289 | fi |
---|
| 1290 | fi |
---|
| 1291 | rm -f confspec conftest* |
---|
| 1292 | |
---|
| 1293 | fi |
---|
| 1294 | |
---|
| 1295 | echo "$ac_t""$rtems_cv_gcc_specs" 1>&6 |
---|
| 1296 | |
---|
| 1297 | |
---|
| 1298 | echo $ac_n "checking whether $CC_FOR_TARGET accepts --pipe""... $ac_c" 1>&6 |
---|
[473b4e5] | 1299 | echo "configure:1300: checking whether $CC_FOR_TARGET accepts --pipe" >&5 |
---|
[eb299afc] | 1300 | if eval "test \"`echo '$''{'rtems_cv_gcc_pipe'+set}'`\" = set"; then |
---|
| 1301 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1302 | else |
---|
| 1303 | |
---|
| 1304 | rtems_cv_gcc_pipe=no |
---|
| 1305 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 1306 | case "$host_os" in |
---|
| 1307 | cygwin*) |
---|
| 1308 | ;; |
---|
| 1309 | *) |
---|
| 1310 | echo 'void f(){}' >conftest.c |
---|
| 1311 | if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then |
---|
| 1312 | rtems_cv_gcc_pipe=yes |
---|
| 1313 | fi |
---|
| 1314 | rm -f conftest* |
---|
| 1315 | ;; |
---|
| 1316 | esac |
---|
| 1317 | fi |
---|
| 1318 | |
---|
| 1319 | fi |
---|
| 1320 | |
---|
| 1321 | echo "$ac_t""$rtems_cv_gcc_pipe" 1>&6 |
---|
| 1322 | |
---|
| 1323 | if test "$RTEMS_USE_GCC272" != "yes" ; then |
---|
| 1324 | if test "$rtems_cv_gcc_specs" = "no"; then |
---|
| 1325 | echo "configure: warning: *** disabling --enable-gcc28" 1>&2 |
---|
| 1326 | RTEMS_USE_GCC272=yes |
---|
| 1327 | fi |
---|
| 1328 | fi |
---|
| 1329 | test "$rtems_cv_gcc_pipe" = "yes" && CC_FOR_TARGET="$CC_FOR_TARGET --pipe" |
---|
| 1330 | |
---|
| 1331 | case $host_os in |
---|
| 1332 | *cygwin*) GCCSED="| sed 's%\\\\%/%g'" ;; |
---|
| 1333 | *) ;; |
---|
| 1334 | esac |
---|
| 1335 | |
---|
| 1336 | |
---|
| 1337 | |
---|
| 1338 | |
---|
| 1339 | echo $ac_n "checking target's ar""... $ac_c" 1>&6 |
---|
[473b4e5] | 1340 | echo "configure:1341: checking target's ar" >&5 |
---|
[eb299afc] | 1341 | if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1342 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1343 | else |
---|
| 1344 | : |
---|
| 1345 | fi |
---|
| 1346 | |
---|
| 1347 | echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6 |
---|
| 1348 | |
---|
| 1349 | if test -n "$ac_cv_path_AR_FOR_TARGET"; then |
---|
| 1350 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
---|
| 1351 | else |
---|
| 1352 | if test -z "$AR_FOR_TARGET" ; then |
---|
| 1353 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 1354 | # We are using gcc, ask it about its tool |
---|
| 1355 | # NOTE: Necessary if gcc was configured to use the target's |
---|
| 1356 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
| 1357 | case $host_os in |
---|
| 1358 | *cygwin*) |
---|
| 1359 | AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar | sed -e 's%\\\\%/%g' ` |
---|
| 1360 | ;; |
---|
| 1361 | *) |
---|
| 1362 | AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar` |
---|
| 1363 | ;; |
---|
| 1364 | esac |
---|
| 1365 | |
---|
| 1366 | fi |
---|
| 1367 | else |
---|
| 1368 | # The user set an environment variable. |
---|
| 1369 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
| 1370 | # will override the environment variable, which isn't what the user |
---|
| 1371 | # intends |
---|
| 1372 | echo $ac_n "checking whether environment variable AR_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
[473b4e5] | 1373 | echo "configure:1374: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5 |
---|
[eb299afc] | 1374 | case "$AR_FOR_TARGET" in |
---|
| 1375 | /*) # valid |
---|
| 1376 | echo "$ac_t"""yes"" 1>&6 |
---|
| 1377 | ;; |
---|
| 1378 | *) # invalid for AC_PATH_PROG |
---|
| 1379 | echo "$ac_t"""no"" 1>&6 |
---|
| 1380 | { echo "configure: error: *** |
---|
| 1381 | Environment variable AR_FOR_TARGET should either |
---|
| 1382 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
| 1383 | ;; |
---|
| 1384 | esac |
---|
| 1385 | fi |
---|
| 1386 | |
---|
| 1387 | # Extract the first word of ""$program_prefix"ar", so it can be a program name with args. |
---|
| 1388 | set dummy "$program_prefix"ar; ac_word=$2 |
---|
| 1389 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[473b4e5] | 1390 | echo "configure:1391: checking for $ac_word" >&5 |
---|
[eb299afc] | 1391 | if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1392 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1393 | else |
---|
| 1394 | case "$AR_FOR_TARGET" in |
---|
| 1395 | /*) |
---|
| 1396 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
---|
| 1397 | ;; |
---|
| 1398 | ?:/*) |
---|
| 1399 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 1400 | ;; |
---|
| 1401 | *) |
---|
| 1402 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1403 | ac_dummy="$PATH" |
---|
| 1404 | for ac_dir in $ac_dummy; do |
---|
| 1405 | test -z "$ac_dir" && ac_dir=. |
---|
| 1406 | if test -f $ac_dir/$ac_word; then |
---|
| 1407 | ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word" |
---|
| 1408 | break |
---|
| 1409 | fi |
---|
| 1410 | done |
---|
| 1411 | IFS="$ac_save_ifs" |
---|
| 1412 | test -z "$ac_cv_path_AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET="no" |
---|
| 1413 | ;; |
---|
| 1414 | esac |
---|
| 1415 | fi |
---|
| 1416 | AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET" |
---|
| 1417 | if test -n "$AR_FOR_TARGET"; then |
---|
| 1418 | echo "$ac_t""$AR_FOR_TARGET" 1>&6 |
---|
| 1419 | else |
---|
| 1420 | echo "$ac_t""no" 1>&6 |
---|
| 1421 | fi |
---|
| 1422 | |
---|
| 1423 | fi |
---|
| 1424 | |
---|
| 1425 | |
---|
| 1426 | echo $ac_n "checking target's as""... $ac_c" 1>&6 |
---|
[473b4e5] | 1427 | echo "configure:1428: checking target's as" >&5 |
---|
[eb299afc] | 1428 | if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1429 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1430 | else |
---|
| 1431 | : |
---|
| 1432 | fi |
---|
| 1433 | |
---|
| 1434 | echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6 |
---|
| 1435 | |
---|
| 1436 | if test -n "$ac_cv_path_AS_FOR_TARGET"; then |
---|
| 1437 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
---|
| 1438 | else |
---|
| 1439 | if test -z "$AS_FOR_TARGET" ; then |
---|
| 1440 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 1441 | # We are using gcc, ask it about its tool |
---|
| 1442 | # NOTE: Necessary if gcc was configured to use the target's |
---|
| 1443 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
| 1444 | case $host_os in |
---|
| 1445 | *cygwin*) |
---|
| 1446 | AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as | sed -e 's%\\\\%/%g' ` |
---|
| 1447 | ;; |
---|
| 1448 | *) |
---|
| 1449 | AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as` |
---|
| 1450 | ;; |
---|
| 1451 | esac |
---|
| 1452 | |
---|
| 1453 | fi |
---|
| 1454 | else |
---|
| 1455 | # The user set an environment variable. |
---|
| 1456 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
| 1457 | # will override the environment variable, which isn't what the user |
---|
| 1458 | # intends |
---|
| 1459 | echo $ac_n "checking whether environment variable AS_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
[473b4e5] | 1460 | echo "configure:1461: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5 |
---|
[eb299afc] | 1461 | case "$AS_FOR_TARGET" in |
---|
| 1462 | /*) # valid |
---|
| 1463 | echo "$ac_t"""yes"" 1>&6 |
---|
| 1464 | ;; |
---|
| 1465 | *) # invalid for AC_PATH_PROG |
---|
| 1466 | echo "$ac_t"""no"" 1>&6 |
---|
| 1467 | { echo "configure: error: *** |
---|
| 1468 | Environment variable AS_FOR_TARGET should either |
---|
| 1469 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
| 1470 | ;; |
---|
| 1471 | esac |
---|
| 1472 | fi |
---|
| 1473 | |
---|
| 1474 | # Extract the first word of ""$program_prefix"as", so it can be a program name with args. |
---|
| 1475 | set dummy "$program_prefix"as; ac_word=$2 |
---|
| 1476 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[473b4e5] | 1477 | echo "configure:1478: checking for $ac_word" >&5 |
---|
[eb299afc] | 1478 | if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1479 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1480 | else |
---|
| 1481 | case "$AS_FOR_TARGET" in |
---|
| 1482 | /*) |
---|
| 1483 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
---|
| 1484 | ;; |
---|
| 1485 | ?:/*) |
---|
| 1486 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 1487 | ;; |
---|
| 1488 | *) |
---|
| 1489 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1490 | ac_dummy="$PATH" |
---|
| 1491 | for ac_dir in $ac_dummy; do |
---|
| 1492 | test -z "$ac_dir" && ac_dir=. |
---|
| 1493 | if test -f $ac_dir/$ac_word; then |
---|
| 1494 | ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word" |
---|
| 1495 | break |
---|
| 1496 | fi |
---|
| 1497 | done |
---|
| 1498 | IFS="$ac_save_ifs" |
---|
| 1499 | test -z "$ac_cv_path_AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET="no" |
---|
| 1500 | ;; |
---|
| 1501 | esac |
---|
| 1502 | fi |
---|
| 1503 | AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET" |
---|
| 1504 | if test -n "$AS_FOR_TARGET"; then |
---|
| 1505 | echo "$ac_t""$AS_FOR_TARGET" 1>&6 |
---|
| 1506 | else |
---|
| 1507 | echo "$ac_t""no" 1>&6 |
---|
| 1508 | fi |
---|
| 1509 | |
---|
| 1510 | fi |
---|
| 1511 | |
---|
| 1512 | |
---|
| 1513 | echo $ac_n "checking target's ld""... $ac_c" 1>&6 |
---|
[473b4e5] | 1514 | echo "configure:1515: checking target's ld" >&5 |
---|
[eb299afc] | 1515 | if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1516 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1517 | else |
---|
| 1518 | : |
---|
| 1519 | fi |
---|
| 1520 | |
---|
| 1521 | echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6 |
---|
| 1522 | |
---|
| 1523 | if test -n "$ac_cv_path_LD_FOR_TARGET"; then |
---|
| 1524 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
---|
| 1525 | else |
---|
| 1526 | if test -z "$LD_FOR_TARGET" ; then |
---|
| 1527 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 1528 | # We are using gcc, ask it about its tool |
---|
| 1529 | # NOTE: Necessary if gcc was configured to use the target's |
---|
| 1530 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
| 1531 | case $host_os in |
---|
| 1532 | *cygwin*) |
---|
| 1533 | LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld | sed -e 's%\\\\%/%g' ` |
---|
| 1534 | ;; |
---|
| 1535 | *) |
---|
| 1536 | LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld` |
---|
| 1537 | ;; |
---|
| 1538 | esac |
---|
| 1539 | |
---|
| 1540 | fi |
---|
| 1541 | else |
---|
| 1542 | # The user set an environment variable. |
---|
| 1543 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
| 1544 | # will override the environment variable, which isn't what the user |
---|
| 1545 | # intends |
---|
| 1546 | echo $ac_n "checking whether environment variable LD_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
[473b4e5] | 1547 | echo "configure:1548: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5 |
---|
[eb299afc] | 1548 | case "$LD_FOR_TARGET" in |
---|
| 1549 | /*) # valid |
---|
| 1550 | echo "$ac_t"""yes"" 1>&6 |
---|
| 1551 | ;; |
---|
| 1552 | *) # invalid for AC_PATH_PROG |
---|
| 1553 | echo "$ac_t"""no"" 1>&6 |
---|
| 1554 | { echo "configure: error: *** |
---|
| 1555 | Environment variable LD_FOR_TARGET should either |
---|
| 1556 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
| 1557 | ;; |
---|
| 1558 | esac |
---|
| 1559 | fi |
---|
| 1560 | |
---|
| 1561 | # Extract the first word of ""$program_prefix"ld", so it can be a program name with args. |
---|
| 1562 | set dummy "$program_prefix"ld; ac_word=$2 |
---|
| 1563 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[473b4e5] | 1564 | echo "configure:1565: checking for $ac_word" >&5 |
---|
[eb299afc] | 1565 | if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1566 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1567 | else |
---|
| 1568 | case "$LD_FOR_TARGET" in |
---|
| 1569 | /*) |
---|
| 1570 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
---|
| 1571 | ;; |
---|
| 1572 | ?:/*) |
---|
| 1573 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 1574 | ;; |
---|
| 1575 | *) |
---|
| 1576 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1577 | ac_dummy="$PATH" |
---|
| 1578 | for ac_dir in $ac_dummy; do |
---|
| 1579 | test -z "$ac_dir" && ac_dir=. |
---|
| 1580 | if test -f $ac_dir/$ac_word; then |
---|
| 1581 | ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word" |
---|
| 1582 | break |
---|
| 1583 | fi |
---|
| 1584 | done |
---|
| 1585 | IFS="$ac_save_ifs" |
---|
| 1586 | test -z "$ac_cv_path_LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET="no" |
---|
| 1587 | ;; |
---|
| 1588 | esac |
---|
| 1589 | fi |
---|
| 1590 | LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET" |
---|
| 1591 | if test -n "$LD_FOR_TARGET"; then |
---|
| 1592 | echo "$ac_t""$LD_FOR_TARGET" 1>&6 |
---|
| 1593 | else |
---|
| 1594 | echo "$ac_t""no" 1>&6 |
---|
| 1595 | fi |
---|
| 1596 | |
---|
| 1597 | fi |
---|
| 1598 | |
---|
| 1599 | |
---|
| 1600 | echo $ac_n "checking target's nm""... $ac_c" 1>&6 |
---|
[473b4e5] | 1601 | echo "configure:1602: checking target's nm" >&5 |
---|
[eb299afc] | 1602 | if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1603 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1604 | else |
---|
| 1605 | : |
---|
| 1606 | fi |
---|
| 1607 | |
---|
| 1608 | echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6 |
---|
| 1609 | |
---|
| 1610 | if test -n "$ac_cv_path_NM_FOR_TARGET"; then |
---|
| 1611 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
---|
| 1612 | else |
---|
| 1613 | if test -z "$NM_FOR_TARGET" ; then |
---|
| 1614 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 1615 | # We are using gcc, ask it about its tool |
---|
| 1616 | # NOTE: Necessary if gcc was configured to use the target's |
---|
| 1617 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
| 1618 | case $host_os in |
---|
| 1619 | *cygwin*) |
---|
| 1620 | NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm | sed -e 's%\\\\%/%g' ` |
---|
| 1621 | ;; |
---|
| 1622 | *) |
---|
| 1623 | NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm` |
---|
| 1624 | ;; |
---|
| 1625 | esac |
---|
| 1626 | |
---|
| 1627 | fi |
---|
| 1628 | else |
---|
| 1629 | # The user set an environment variable. |
---|
| 1630 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
| 1631 | # will override the environment variable, which isn't what the user |
---|
| 1632 | # intends |
---|
| 1633 | echo $ac_n "checking whether environment variable NM_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
[473b4e5] | 1634 | echo "configure:1635: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5 |
---|
[eb299afc] | 1635 | case "$NM_FOR_TARGET" in |
---|
| 1636 | /*) # valid |
---|
| 1637 | echo "$ac_t"""yes"" 1>&6 |
---|
| 1638 | ;; |
---|
| 1639 | *) # invalid for AC_PATH_PROG |
---|
| 1640 | echo "$ac_t"""no"" 1>&6 |
---|
| 1641 | { echo "configure: error: *** |
---|
| 1642 | Environment variable NM_FOR_TARGET should either |
---|
| 1643 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
| 1644 | ;; |
---|
| 1645 | esac |
---|
| 1646 | fi |
---|
| 1647 | |
---|
| 1648 | # Extract the first word of ""$program_prefix"nm", so it can be a program name with args. |
---|
| 1649 | set dummy "$program_prefix"nm; ac_word=$2 |
---|
| 1650 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[473b4e5] | 1651 | echo "configure:1652: checking for $ac_word" >&5 |
---|
[eb299afc] | 1652 | if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1653 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1654 | else |
---|
| 1655 | case "$NM_FOR_TARGET" in |
---|
| 1656 | /*) |
---|
| 1657 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
---|
| 1658 | ;; |
---|
| 1659 | ?:/*) |
---|
| 1660 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 1661 | ;; |
---|
| 1662 | *) |
---|
| 1663 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1664 | ac_dummy="$PATH" |
---|
| 1665 | for ac_dir in $ac_dummy; do |
---|
| 1666 | test -z "$ac_dir" && ac_dir=. |
---|
| 1667 | if test -f $ac_dir/$ac_word; then |
---|
| 1668 | ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word" |
---|
| 1669 | break |
---|
| 1670 | fi |
---|
| 1671 | done |
---|
| 1672 | IFS="$ac_save_ifs" |
---|
| 1673 | test -z "$ac_cv_path_NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET="no" |
---|
| 1674 | ;; |
---|
| 1675 | esac |
---|
| 1676 | fi |
---|
| 1677 | NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET" |
---|
| 1678 | if test -n "$NM_FOR_TARGET"; then |
---|
| 1679 | echo "$ac_t""$NM_FOR_TARGET" 1>&6 |
---|
| 1680 | else |
---|
| 1681 | echo "$ac_t""no" 1>&6 |
---|
| 1682 | fi |
---|
| 1683 | |
---|
| 1684 | fi |
---|
| 1685 | |
---|
| 1686 | |
---|
| 1687 | |
---|
| 1688 | echo $ac_n "checking target's ranlib""... $ac_c" 1>&6 |
---|
[473b4e5] | 1689 | echo "configure:1690: checking target's ranlib" >&5 |
---|
[eb299afc] | 1690 | if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1691 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1692 | else |
---|
| 1693 | : |
---|
| 1694 | fi |
---|
| 1695 | |
---|
| 1696 | echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6 |
---|
| 1697 | |
---|
| 1698 | if test -n "$ac_cv_path_RANLIB_FOR_TARGET"; then |
---|
| 1699 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
---|
| 1700 | else |
---|
| 1701 | if test -z "$RANLIB_FOR_TARGET" ; then |
---|
| 1702 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 1703 | # We are using gcc, ask it about its tool |
---|
| 1704 | # NOTE: Necessary if gcc was configured to use the target's |
---|
| 1705 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
| 1706 | case $host_os in |
---|
| 1707 | *cygwin*) |
---|
| 1708 | RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib | sed -e 's%\\\\%/%g' ` |
---|
| 1709 | ;; |
---|
| 1710 | *) |
---|
| 1711 | RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib` |
---|
| 1712 | ;; |
---|
| 1713 | esac |
---|
| 1714 | |
---|
| 1715 | fi |
---|
| 1716 | else |
---|
| 1717 | # The user set an environment variable. |
---|
| 1718 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
| 1719 | # will override the environment variable, which isn't what the user |
---|
| 1720 | # intends |
---|
| 1721 | echo $ac_n "checking whether environment variable RANLIB_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
[473b4e5] | 1722 | echo "configure:1723: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5 |
---|
[eb299afc] | 1723 | case "$RANLIB_FOR_TARGET" in |
---|
| 1724 | /*) # valid |
---|
| 1725 | echo "$ac_t"""yes"" 1>&6 |
---|
| 1726 | ;; |
---|
| 1727 | *) # invalid for AC_PATH_PROG |
---|
| 1728 | echo "$ac_t"""no"" 1>&6 |
---|
| 1729 | { echo "configure: error: *** |
---|
| 1730 | Environment variable RANLIB_FOR_TARGET should either |
---|
| 1731 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
| 1732 | ;; |
---|
| 1733 | esac |
---|
| 1734 | fi |
---|
| 1735 | |
---|
| 1736 | # Extract the first word of ""$program_prefix"ranlib", so it can be a program name with args. |
---|
| 1737 | set dummy "$program_prefix"ranlib; ac_word=$2 |
---|
| 1738 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[473b4e5] | 1739 | echo "configure:1740: checking for $ac_word" >&5 |
---|
[eb299afc] | 1740 | if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1741 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1742 | else |
---|
| 1743 | case "$RANLIB_FOR_TARGET" in |
---|
| 1744 | /*) |
---|
| 1745 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
---|
| 1746 | ;; |
---|
| 1747 | ?:/*) |
---|
| 1748 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 1749 | ;; |
---|
| 1750 | *) |
---|
| 1751 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1752 | ac_dummy="$PATH" |
---|
| 1753 | for ac_dir in $ac_dummy; do |
---|
| 1754 | test -z "$ac_dir" && ac_dir=. |
---|
| 1755 | if test -f $ac_dir/$ac_word; then |
---|
| 1756 | ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word" |
---|
| 1757 | break |
---|
| 1758 | fi |
---|
| 1759 | done |
---|
| 1760 | IFS="$ac_save_ifs" |
---|
| 1761 | test -z "$ac_cv_path_RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET="no" |
---|
| 1762 | ;; |
---|
| 1763 | esac |
---|
| 1764 | fi |
---|
| 1765 | RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET" |
---|
| 1766 | if test -n "$RANLIB_FOR_TARGET"; then |
---|
| 1767 | echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6 |
---|
| 1768 | else |
---|
| 1769 | echo "$ac_t""no" 1>&6 |
---|
| 1770 | fi |
---|
| 1771 | |
---|
| 1772 | fi |
---|
| 1773 | |
---|
| 1774 | if test "$RANLIB_FOR_TARGET" = "no"; then |
---|
| 1775 | # ranlib wasn't found; check if ar -s is available |
---|
| 1776 | |
---|
| 1777 | echo $ac_n "checking whether $AR_FOR_TARGET -s works""... $ac_c" 1>&6 |
---|
[473b4e5] | 1778 | echo "configure:1779: checking whether $AR_FOR_TARGET -s works" >&5 |
---|
[eb299afc] | 1779 | if eval "test \"`echo '$''{'rtems_cv_AR_FOR_TARGET_S'+set}'`\" = set"; then |
---|
| 1780 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1781 | else |
---|
| 1782 | |
---|
| 1783 | cat > conftest.$ac_ext <<EOF |
---|
| 1784 | int foo( int b ) |
---|
| 1785 | { return b; } |
---|
| 1786 | EOF |
---|
[473b4e5] | 1787 | if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:1788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \ |
---|
| 1788 | && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:1789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \ |
---|
[eb299afc] | 1789 | && test -s conftest.a ; \ |
---|
| 1790 | then |
---|
| 1791 | rtems_cv_AR_FOR_TARGET_S="yes" |
---|
| 1792 | else |
---|
| 1793 | rtems_cv_AR_FOR_TARGET_S="no" |
---|
| 1794 | fi |
---|
| 1795 | rm -f conftest* |
---|
| 1796 | |
---|
| 1797 | fi |
---|
| 1798 | |
---|
| 1799 | echo "$ac_t""$rtems_cv_AR_FOR_TARGET_S" 1>&6 |
---|
| 1800 | |
---|
| 1801 | if test $rtems_cv_AR_FOR_TARGET_S = "yes" ; then |
---|
| 1802 | ac_cv_path_RANLIB_FOR_TARGET="$AR_FOR_TARGET -s" |
---|
| 1803 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
---|
| 1804 | else |
---|
| 1805 | { echo "configure: error: *** |
---|
| 1806 | Can't figure out how to build a library index |
---|
| 1807 | Neither ranlib nor ar -s seem to be available " 1>&2; exit 1; } |
---|
| 1808 | fi |
---|
| 1809 | fi |
---|
| 1810 | |
---|
| 1811 | |
---|
| 1812 | echo $ac_n "checking target's objcopy""... $ac_c" 1>&6 |
---|
[473b4e5] | 1813 | echo "configure:1814: checking target's objcopy" >&5 |
---|
[eb299afc] | 1814 | if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1815 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1816 | else |
---|
| 1817 | : |
---|
| 1818 | fi |
---|
| 1819 | |
---|
| 1820 | echo "$ac_t""$ac_cv_path_OBJCOPY_FOR_TARGET" 1>&6 |
---|
| 1821 | |
---|
| 1822 | if test -n "$ac_cv_path_OBJCOPY_FOR_TARGET"; then |
---|
| 1823 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET |
---|
| 1824 | else |
---|
| 1825 | if test -z "$OBJCOPY_FOR_TARGET" ; then |
---|
| 1826 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 1827 | # We are using gcc, ask it about its tool |
---|
| 1828 | # NOTE: Necessary if gcc was configured to use the target's |
---|
| 1829 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
| 1830 | case $host_os in |
---|
| 1831 | *cygwin*) |
---|
| 1832 | OBJCOPY_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=objcopy | sed -e 's%\\\\%/%g' ` |
---|
| 1833 | ;; |
---|
| 1834 | *) |
---|
| 1835 | OBJCOPY_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=objcopy` |
---|
| 1836 | ;; |
---|
| 1837 | esac |
---|
| 1838 | |
---|
| 1839 | fi |
---|
| 1840 | else |
---|
| 1841 | # The user set an environment variable. |
---|
| 1842 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
| 1843 | # will override the environment variable, which isn't what the user |
---|
| 1844 | # intends |
---|
| 1845 | echo $ac_n "checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
[473b4e5] | 1846 | echo "configure:1847: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5 |
---|
[eb299afc] | 1847 | case "$OBJCOPY_FOR_TARGET" in |
---|
| 1848 | /*) # valid |
---|
| 1849 | echo "$ac_t"""yes"" 1>&6 |
---|
| 1850 | ;; |
---|
| 1851 | *) # invalid for AC_PATH_PROG |
---|
| 1852 | echo "$ac_t"""no"" 1>&6 |
---|
| 1853 | { echo "configure: error: *** |
---|
| 1854 | Environment variable OBJCOPY_FOR_TARGET should either |
---|
| 1855 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
| 1856 | ;; |
---|
| 1857 | esac |
---|
| 1858 | fi |
---|
| 1859 | |
---|
| 1860 | # Extract the first word of ""$program_prefix"objcopy", so it can be a program name with args. |
---|
| 1861 | set dummy "$program_prefix"objcopy; ac_word=$2 |
---|
| 1862 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[473b4e5] | 1863 | echo "configure:1864: checking for $ac_word" >&5 |
---|
[eb299afc] | 1864 | if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1865 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1866 | else |
---|
| 1867 | case "$OBJCOPY_FOR_TARGET" in |
---|
| 1868 | /*) |
---|
| 1869 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. |
---|
| 1870 | ;; |
---|
| 1871 | ?:/*) |
---|
| 1872 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 1873 | ;; |
---|
| 1874 | *) |
---|
| 1875 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1876 | ac_dummy="$PATH" |
---|
| 1877 | for ac_dir in $ac_dummy; do |
---|
| 1878 | test -z "$ac_dir" && ac_dir=. |
---|
| 1879 | if test -f $ac_dir/$ac_word; then |
---|
| 1880 | ac_cv_path_OBJCOPY_FOR_TARGET="$ac_dir/$ac_word" |
---|
| 1881 | break |
---|
| 1882 | fi |
---|
| 1883 | done |
---|
| 1884 | IFS="$ac_save_ifs" |
---|
| 1885 | test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET="no" |
---|
| 1886 | ;; |
---|
| 1887 | esac |
---|
| 1888 | fi |
---|
| 1889 | OBJCOPY_FOR_TARGET="$ac_cv_path_OBJCOPY_FOR_TARGET" |
---|
| 1890 | if test -n "$OBJCOPY_FOR_TARGET"; then |
---|
| 1891 | echo "$ac_t""$OBJCOPY_FOR_TARGET" 1>&6 |
---|
| 1892 | else |
---|
| 1893 | echo "$ac_t""no" 1>&6 |
---|
| 1894 | fi |
---|
| 1895 | |
---|
| 1896 | fi |
---|
| 1897 | |
---|
| 1898 | |
---|
| 1899 | echo $ac_n "checking target's size""... $ac_c" 1>&6 |
---|
[473b4e5] | 1900 | echo "configure:1901: checking target's size" >&5 |
---|
[eb299afc] | 1901 | if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1902 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1903 | else |
---|
| 1904 | : |
---|
| 1905 | fi |
---|
| 1906 | |
---|
| 1907 | echo "$ac_t""$ac_cv_path_SIZE_FOR_TARGET" 1>&6 |
---|
| 1908 | |
---|
| 1909 | if test -n "$ac_cv_path_SIZE_FOR_TARGET"; then |
---|
| 1910 | SIZE_FOR_TARGET=$ac_cv_path_SIZE_FOR_TARGET |
---|
| 1911 | else |
---|
| 1912 | if test -z "$SIZE_FOR_TARGET" ; then |
---|
| 1913 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 1914 | # We are using gcc, ask it about its tool |
---|
| 1915 | # NOTE: Necessary if gcc was configured to use the target's |
---|
| 1916 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
| 1917 | case $host_os in |
---|
| 1918 | *cygwin*) |
---|
| 1919 | SIZE_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=size | sed -e 's%\\\\%/%g' ` |
---|
| 1920 | ;; |
---|
| 1921 | *) |
---|
| 1922 | SIZE_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=size` |
---|
| 1923 | ;; |
---|
| 1924 | esac |
---|
| 1925 | |
---|
| 1926 | fi |
---|
| 1927 | else |
---|
| 1928 | # The user set an environment variable. |
---|
| 1929 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
| 1930 | # will override the environment variable, which isn't what the user |
---|
| 1931 | # intends |
---|
| 1932 | echo $ac_n "checking whether environment variable SIZE_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
[473b4e5] | 1933 | echo "configure:1934: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5 |
---|
[eb299afc] | 1934 | case "$SIZE_FOR_TARGET" in |
---|
| 1935 | /*) # valid |
---|
| 1936 | echo "$ac_t"""yes"" 1>&6 |
---|
| 1937 | ;; |
---|
| 1938 | *) # invalid for AC_PATH_PROG |
---|
| 1939 | echo "$ac_t"""no"" 1>&6 |
---|
| 1940 | { echo "configure: error: *** |
---|
| 1941 | Environment variable SIZE_FOR_TARGET should either |
---|
| 1942 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
| 1943 | ;; |
---|
| 1944 | esac |
---|
| 1945 | fi |
---|
| 1946 | |
---|
| 1947 | # Extract the first word of ""$program_prefix"size", so it can be a program name with args. |
---|
| 1948 | set dummy "$program_prefix"size; ac_word=$2 |
---|
| 1949 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[473b4e5] | 1950 | echo "configure:1951: checking for $ac_word" >&5 |
---|
[eb299afc] | 1951 | if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1952 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1953 | else |
---|
| 1954 | case "$SIZE_FOR_TARGET" in |
---|
| 1955 | /*) |
---|
| 1956 | ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a path. |
---|
| 1957 | ;; |
---|
| 1958 | ?:/*) |
---|
| 1959 | ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 1960 | ;; |
---|
| 1961 | *) |
---|
| 1962 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1963 | ac_dummy="$PATH" |
---|
| 1964 | for ac_dir in $ac_dummy; do |
---|
| 1965 | test -z "$ac_dir" && ac_dir=. |
---|
| 1966 | if test -f $ac_dir/$ac_word; then |
---|
| 1967 | ac_cv_path_SIZE_FOR_TARGET="$ac_dir/$ac_word" |
---|
| 1968 | break |
---|
| 1969 | fi |
---|
| 1970 | done |
---|
| 1971 | IFS="$ac_save_ifs" |
---|
| 1972 | test -z "$ac_cv_path_SIZE_FOR_TARGET" && ac_cv_path_SIZE_FOR_TARGET="no" |
---|
| 1973 | ;; |
---|
| 1974 | esac |
---|
| 1975 | fi |
---|
| 1976 | SIZE_FOR_TARGET="$ac_cv_path_SIZE_FOR_TARGET" |
---|
| 1977 | if test -n "$SIZE_FOR_TARGET"; then |
---|
| 1978 | echo "$ac_t""$SIZE_FOR_TARGET" 1>&6 |
---|
| 1979 | else |
---|
| 1980 | echo "$ac_t""no" 1>&6 |
---|
| 1981 | fi |
---|
| 1982 | |
---|
| 1983 | fi |
---|
| 1984 | |
---|
| 1985 | |
---|
| 1986 | echo $ac_n "checking target's strip""... $ac_c" 1>&6 |
---|
[473b4e5] | 1987 | echo "configure:1988: checking target's strip" >&5 |
---|
[eb299afc] | 1988 | if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then |
---|
| 1989 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1990 | else |
---|
| 1991 | : |
---|
| 1992 | fi |
---|
| 1993 | |
---|
| 1994 | echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6 |
---|
| 1995 | |
---|
| 1996 | if test -n "$ac_cv_path_STRIP_FOR_TARGET"; then |
---|
| 1997 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
---|
| 1998 | else |
---|
| 1999 | if test -z "$STRIP_FOR_TARGET" ; then |
---|
| 2000 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
| 2001 | # We are using gcc, ask it about its tool |
---|
| 2002 | # NOTE: Necessary if gcc was configured to use the target's |
---|
| 2003 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
| 2004 | case $host_os in |
---|
| 2005 | *cygwin*) |
---|
| 2006 | STRIP_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=strip | sed -e 's%\\\\%/%g' ` |
---|
| 2007 | ;; |
---|
| 2008 | *) |
---|
| 2009 | STRIP_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=strip` |
---|
| 2010 | ;; |
---|
| 2011 | esac |
---|
| 2012 | |
---|
| 2013 | fi |
---|
| 2014 | else |
---|
| 2015 | # The user set an environment variable. |
---|
| 2016 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
| 2017 | # will override the environment variable, which isn't what the user |
---|
| 2018 | # intends |
---|
| 2019 | echo $ac_n "checking whether environment variable STRIP_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
[473b4e5] | 2020 | echo "configure:2021: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5 |
---|
[eb299afc] | 2021 | case "$STRIP_FOR_TARGET" in |
---|
| 2022 | /*) # valid |
---|
| 2023 | echo "$ac_t"""yes"" 1>&6 |
---|
| 2024 | ;; |
---|
| 2025 | *) # invalid for AC_PATH_PROG |
---|
| 2026 | echo "$ac_t"""no"" 1>&6 |
---|
| 2027 | { echo "configure: error: *** |
---|
| 2028 | Environment variable STRIP_FOR_TARGET should either |
---|
| 2029 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
| 2030 | ;; |
---|
| 2031 | esac |
---|
| 2032 | fi |
---|
| 2033 | |
---|
| 2034 | # Extract the first word of ""$program_prefix"strip", so it can be a program name with args. |
---|
| 2035 | set dummy "$program_prefix"strip; ac_word=$2 |
---|
| 2036 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[473b4e5] | 2037 | echo "configure:2038: checking for $ac_word" >&5 |
---|
[eb299afc] | 2038 | if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then |
---|
| 2039 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2040 | else |
---|
| 2041 | case "$STRIP_FOR_TARGET" in |
---|
| 2042 | /*) |
---|
| 2043 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
---|
| 2044 | ;; |
---|
| 2045 | ?:/*) |
---|
| 2046 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a dos path. |
---|
| 2047 | ;; |
---|
| 2048 | *) |
---|
| 2049 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 2050 | ac_dummy="$PATH" |
---|
| 2051 | for ac_dir in $ac_dummy; do |
---|
| 2052 | test -z "$ac_dir" && ac_dir=. |
---|
| 2053 | if test -f $ac_dir/$ac_word; then |
---|
| 2054 | ac_cv_path_STRIP_FOR_TARGET="$ac_dir/$ac_word" |
---|
| 2055 | break |
---|
| 2056 | fi |
---|
| 2057 | done |
---|
| 2058 | IFS="$ac_save_ifs" |
---|
| 2059 | test -z "$ac_cv_path_STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET="no" |
---|
| 2060 | ;; |
---|
| 2061 | esac |
---|
| 2062 | fi |
---|
| 2063 | STRIP_FOR_TARGET="$ac_cv_path_STRIP_FOR_TARGET" |
---|
| 2064 | if test -n "$STRIP_FOR_TARGET"; then |
---|
| 2065 | echo "$ac_t""$STRIP_FOR_TARGET" 1>&6 |
---|
| 2066 | else |
---|
| 2067 | echo "$ac_t""no" 1>&6 |
---|
| 2068 | fi |
---|
| 2069 | |
---|
| 2070 | fi |
---|
| 2071 | |
---|
| 2072 | |
---|
| 2073 | |
---|
| 2074 | echo $ac_n "checking for newlib""... $ac_c" 1>&6 |
---|
[473b4e5] | 2075 | echo "configure:2076: checking for newlib" >&5 |
---|
[eb299afc] | 2076 | if eval "test \"`echo '$''{'rtems_cv_use_newlib'+set}'`\" = set"; then |
---|
| 2077 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2078 | else |
---|
| 2079 | |
---|
| 2080 | rtems_save_CC=$CC |
---|
| 2081 | CC=$CC_FOR_TARGET |
---|
| 2082 | |
---|
| 2083 | cat > conftest.$ac_ext <<EOF |
---|
[473b4e5] | 2084 | #line 2085 "configure" |
---|
[eb299afc] | 2085 | #include "confdefs.h" |
---|
| 2086 | extern int not_required_by_rtems() ; |
---|
| 2087 | int main() { |
---|
| 2088 | not_required_by_rtems() |
---|
| 2089 | ; return 0; } |
---|
| 2090 | EOF |
---|
[473b4e5] | 2091 | if { (eval echo configure:2092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
[eb299afc] | 2092 | rm -rf conftest* |
---|
| 2093 | rtems_cv_use_newlib="yes" |
---|
| 2094 | else |
---|
| 2095 | echo "configure: failed program was:" >&5 |
---|
| 2096 | cat conftest.$ac_ext >&5 |
---|
| 2097 | fi |
---|
| 2098 | rm -f conftest* |
---|
| 2099 | |
---|
| 2100 | if test -z "$rtems_cv_use_newlib"; then |
---|
| 2101 | cat > conftest.$ac_ext <<EOF |
---|
[473b4e5] | 2102 | #line 2103 "configure" |
---|
[eb299afc] | 2103 | #include "confdefs.h" |
---|
| 2104 | extern int rtems_provides_crt0 ; |
---|
| 2105 | int main() { |
---|
| 2106 | rtems_provides_crt0 = 0 |
---|
| 2107 | ; return 0; } |
---|
| 2108 | EOF |
---|
[473b4e5] | 2109 | if { (eval echo configure:2110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
[eb299afc] | 2110 | rm -rf conftest* |
---|
| 2111 | rtems_cv_use_newlib="yes" |
---|
| 2112 | else |
---|
| 2113 | echo "configure: failed program was:" >&5 |
---|
| 2114 | cat conftest.$ac_ext >&5 |
---|
| 2115 | rm -rf conftest* |
---|
| 2116 | rtems_cv_use_newlib="no" |
---|
| 2117 | fi |
---|
| 2118 | rm -f conftest* |
---|
| 2119 | fi |
---|
| 2120 | CC=$rtems_save_CC |
---|
| 2121 | fi |
---|
| 2122 | |
---|
| 2123 | echo "$ac_t""$rtems_cv_use_newlib" 1>&6 |
---|
| 2124 | RTEMS_USE_NEWLIB="$rtems_cv_use_newlib" |
---|
| 2125 | |
---|
| 2126 | |
---|
| 2127 | |
---|
[1896a650] | 2128 | # Check if there is custom/*.cfg for this BSP |
---|
| 2129 | echo $ac_n "checking for make/custom/$RTEMS_BSP.cfg""... $ac_c" 1>&6 |
---|
[473b4e5] | 2130 | echo "configure:2131: checking for make/custom/$RTEMS_BSP.cfg" >&5 |
---|
[1896a650] | 2131 | if test -r "$srcdir/$RTEMS_TOPdir/make/custom/$RTEMS_BSP.cfg"; then |
---|
| 2132 | echo "$ac_t""yes" 1>&6 |
---|
[eb299afc] | 2133 | else |
---|
[1896a650] | 2134 | { echo "configure: error: no" 1>&2; exit 1; } |
---|
[eb299afc] | 2135 | fi |
---|
| 2136 | |
---|
[1896a650] | 2137 | echo $ac_n "checking whether BSP supports multiprocessing""... $ac_c" 1>&6 |
---|
[473b4e5] | 2138 | echo "configure:2139: checking whether BSP supports multiprocessing" >&5 |
---|
[1896a650] | 2139 | if eval "test \"`echo '$''{'rtems_cv_HAS_MP'+set}'`\" = set"; then |
---|
| 2140 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2141 | else |
---|
| 2142 | if test -d "$srcdir/${RTEMS_TOPdir}/c/src/lib/libbsp/${RTEMS_CPU}/${RTEMS_BSP}/shmsupp"; then |
---|
| 2143 | if test "$RTEMS_HAS_MULTIPROCESSING" = "yes"; then |
---|
| 2144 | rtems_cv_HAS_MP="yes" ; |
---|
| 2145 | else |
---|
| 2146 | rtems_cv_HAS_MP="disabled"; |
---|
| 2147 | fi |
---|
| 2148 | else |
---|
| 2149 | rtems_cv_HAS_MP="no"; |
---|
| 2150 | fi |
---|
| 2151 | fi |
---|
[eb299afc] | 2152 | |
---|
[1896a650] | 2153 | echo "$ac_t""$rtems_cv_HAS_MP" 1>&6 |
---|
| 2154 | if test "$rtems_cv_HAS_MP" = "yes"; then |
---|
| 2155 | HAS_MP="yes" |
---|
[eb299afc] | 2156 | else |
---|
[1896a650] | 2157 | HAS_MP="no" |
---|
[eb299afc] | 2158 | fi |
---|
| 2159 | |
---|
| 2160 | |
---|
[3a8915e] | 2161 | echo $ac_n "checking whether BSP supports libposix""... $ac_c" 1>&6 |
---|
[473b4e5] | 2162 | echo "configure:2163: checking whether BSP supports libposix" >&5 |
---|
[3a8915e] | 2163 | if eval "test \"`echo '$''{'rtems_cv_HAS_POSIX_API'+set}'`\" = set"; then |
---|
| 2164 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2165 | else |
---|
| 2166 | case "$RTEMS_CPU" in |
---|
| 2167 | unix*) |
---|
| 2168 | rtems_cv_HAS_POSIX_API="no" |
---|
| 2169 | ;; |
---|
| 2170 | *) |
---|
| 2171 | if test "${RTEMS_HAS_POSIX_API}" = "yes"; then |
---|
| 2172 | rtems_cv_HAS_POSIX_API="yes"; |
---|
| 2173 | else |
---|
| 2174 | rtems_cv_HAS_POSIX_API="disabled"; |
---|
| 2175 | fi |
---|
| 2176 | ;; |
---|
| 2177 | esac |
---|
| 2178 | fi |
---|
| 2179 | |
---|
| 2180 | echo "$ac_t""$rtems_cv_HAS_POSIX_API" 1>&6 |
---|
| 2181 | if test "$rtems_cv_HAS_POSIX_API" = "yes"; then |
---|
| 2182 | HAS_POSIX_API="yes"; |
---|
| 2183 | else |
---|
| 2184 | HAS_POSIX_API="no"; |
---|
| 2185 | fi |
---|
| 2186 | |
---|
[eb299afc] | 2187 | |
---|
| 2188 | # If RTEMS macros are enabled, then use them. Otherwise, use inlines. |
---|
| 2189 | if test "$RTEMS_USE_MACROS" = "yes"; then |
---|
[e1d8abb] | 2190 | INLINEdir="macros" |
---|
[3a8915e] | 2191 | if test "$HAS_POSIX_API" = "yes"; then |
---|
[eb299afc] | 2192 | # The problem is that there is currently no code in posix/macros :) |
---|
| 2193 | { echo "configure: error: Macros are not implemented for the POSIX API" 1>&2; exit 1; } |
---|
| 2194 | fi |
---|
| 2195 | else |
---|
[e1d8abb] | 2196 | INLINEdir="inline" |
---|
[1896a650] | 2197 | fi |
---|
| 2198 | |
---|
| 2199 | |
---|
[e1d8abb] | 2200 | if test "$INLINEdir" = "inline" ; then |
---|
| 2201 | INLINE_TRUE= |
---|
| 2202 | INLINE_FALSE='#' |
---|
| 2203 | else |
---|
| 2204 | INLINE_TRUE='#' |
---|
| 2205 | INLINE_FALSE= |
---|
[eb299afc] | 2206 | fi |
---|
| 2207 | |
---|
| 2208 | |
---|
[e1d8abb] | 2209 | if test "$INLINEdir" = "macros" ; then |
---|
| 2210 | MACROS_TRUE= |
---|
| 2211 | MACROS_FALSE='#' |
---|
| 2212 | else |
---|
| 2213 | MACROS_TRUE='#' |
---|
| 2214 | MACROS_FALSE= |
---|
| 2215 | fi |
---|
[eb299afc] | 2216 | |
---|
| 2217 | |
---|
| 2218 | |
---|
| 2219 | |
---|
| 2220 | |
---|
[e1d8abb] | 2221 | if test "$HAS_POSIX_API" = "yes"; then |
---|
| 2222 | HAS_POSIX_TRUE= |
---|
| 2223 | HAS_POSIX_FALSE='#' |
---|
| 2224 | else |
---|
| 2225 | HAS_POSIX_TRUE='#' |
---|
| 2226 | HAS_POSIX_FALSE= |
---|
| 2227 | fi |
---|
| 2228 | |
---|
| 2229 | if test "$HAS_POSIX_API" = "yes"; then |
---|
| 2230 | cfg_subdirs="posix" |
---|
| 2231 | fi |
---|
| 2232 | subdirs="$cfg_subdirs" |
---|
[eb299afc] | 2233 | |
---|
[e1d8abb] | 2234 | subdirs="$cfg_subdirs score/cpu" |
---|
[eb299afc] | 2235 | |
---|
| 2236 | |
---|
[e1d8abb] | 2237 | PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include" |
---|
| 2238 | |
---|
[eb299afc] | 2239 | |
---|
| 2240 | # Try to explicitly list a Makefile here |
---|
| 2241 | trap '' 1 2 15 |
---|
| 2242 | cat > confcache <<\EOF |
---|
| 2243 | # This file is a shell script that caches the results of configure |
---|
| 2244 | # tests run on this system so they can be shared between configure |
---|
| 2245 | # scripts and configure runs. It is not useful on other systems. |
---|
| 2246 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
| 2247 | # |
---|
| 2248 | # By default, configure uses ./config.cache as the cache file, |
---|
| 2249 | # creating it if it does not exist already. You can give configure |
---|
| 2250 | # the --cache-file=FILE option to use a different cache file; that is |
---|
| 2251 | # what configure does when it calls configure scripts in |
---|
| 2252 | # subdirectories, so they share the cache. |
---|
| 2253 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
| 2254 | # config.status only pays attention to the cache file if you give it the |
---|
| 2255 | # --recheck option to rerun configure. |
---|
| 2256 | # |
---|
| 2257 | EOF |
---|
| 2258 | # The following way of writing the cache mishandles newlines in values, |
---|
| 2259 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 2260 | # So, don't put newlines in cache variables' values. |
---|
| 2261 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 2262 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 2263 | (set) 2>&1 | |
---|
| 2264 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
| 2265 | *ac_space=\ *) |
---|
| 2266 | # `set' does not quote correctly, so add quotes (double-quote substitution |
---|
| 2267 | # turns \\\\ into \\, and sed turns \\ into \). |
---|
| 2268 | sed -n \ |
---|
| 2269 | -e "s/'/'\\\\''/g" \ |
---|
| 2270 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
---|
| 2271 | ;; |
---|
| 2272 | *) |
---|
| 2273 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 2274 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
---|
| 2275 | ;; |
---|
| 2276 | esac >> confcache |
---|
| 2277 | if cmp -s $cache_file confcache; then |
---|
| 2278 | : |
---|
| 2279 | else |
---|
| 2280 | if test -w $cache_file; then |
---|
| 2281 | echo "updating cache $cache_file" |
---|
| 2282 | cat confcache > $cache_file |
---|
| 2283 | else |
---|
| 2284 | echo "not updating unwritable cache $cache_file" |
---|
| 2285 | fi |
---|
| 2286 | fi |
---|
| 2287 | rm -f confcache |
---|
| 2288 | |
---|
| 2289 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
| 2290 | |
---|
| 2291 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 2292 | # Let make expand exec_prefix. |
---|
| 2293 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 2294 | |
---|
| 2295 | # Any assignment to VPATH causes Sun make to only execute |
---|
| 2296 | # the first set of double-colon rules, so remove it if not needed. |
---|
| 2297 | # If there is a colon in the path, we need to keep it. |
---|
| 2298 | if test "x$srcdir" = x.; then |
---|
| 2299 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
---|
| 2300 | fi |
---|
| 2301 | |
---|
| 2302 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
---|
| 2303 | |
---|
| 2304 | # Transform confdefs.h into DEFS. |
---|
| 2305 | # Protect against shell expansion while executing Makefile rules. |
---|
| 2306 | # Protect against Makefile macro expansion. |
---|
| 2307 | cat > conftest.defs <<\EOF |
---|
| 2308 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g |
---|
| 2309 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g |
---|
| 2310 | s%\[%\\&%g |
---|
| 2311 | s%\]%\\&%g |
---|
| 2312 | s%\$%$$%g |
---|
| 2313 | EOF |
---|
| 2314 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` |
---|
| 2315 | rm -f conftest.defs |
---|
| 2316 | |
---|
| 2317 | |
---|
| 2318 | # Without the "./", some shells look in PATH for config.status. |
---|
| 2319 | : ${CONFIG_STATUS=./config.status} |
---|
| 2320 | |
---|
| 2321 | echo creating $CONFIG_STATUS |
---|
| 2322 | rm -f $CONFIG_STATUS |
---|
| 2323 | cat > $CONFIG_STATUS <<EOF |
---|
| 2324 | #! /bin/sh |
---|
| 2325 | # Generated automatically by configure. |
---|
| 2326 | # Run this file to recreate the current configuration. |
---|
| 2327 | # This directory was configured as follows, |
---|
| 2328 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
| 2329 | # |
---|
| 2330 | # $0 $ac_configure_args |
---|
| 2331 | # |
---|
| 2332 | # Compiler output produced by configure, useful for debugging |
---|
| 2333 | # configure, is in ./config.log if it exists. |
---|
| 2334 | |
---|
| 2335 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
---|
| 2336 | for ac_option |
---|
| 2337 | do |
---|
| 2338 | case "\$ac_option" in |
---|
| 2339 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 2340 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
---|
| 2341 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
---|
| 2342 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
---|
| 2343 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
---|
| 2344 | exit 0 ;; |
---|
| 2345 | -help | --help | --hel | --he | --h) |
---|
| 2346 | echo "\$ac_cs_usage"; exit 0 ;; |
---|
| 2347 | *) echo "\$ac_cs_usage"; exit 1 ;; |
---|
| 2348 | esac |
---|
| 2349 | done |
---|
| 2350 | |
---|
| 2351 | ac_given_srcdir=$srcdir |
---|
| 2352 | ac_given_INSTALL="$INSTALL" |
---|
| 2353 | |
---|
| 2354 | trap 'rm -fr `echo "Makefile |
---|
[1896a650] | 2355 | rtems/Makefile |
---|
| 2356 | rtems/src/Makefile |
---|
| 2357 | rtems/include/Makefile |
---|
| 2358 | rtems/include/rtems/Makefile |
---|
| 2359 | rtems/include/rtems/rtems/Makefile |
---|
| 2360 | rtems/optman/Makefile |
---|
[e1d8abb] | 2361 | rtems/inline/Makefile |
---|
| 2362 | rtems/inline/rtems/Makefile |
---|
| 2363 | rtems/inline/rtems/rtems/Makefile |
---|
| 2364 | rtems/macros/Makefile |
---|
| 2365 | rtems/macros/rtems/Makefile |
---|
| 2366 | rtems/macros/rtems/rtems/Makefile |
---|
[1896a650] | 2367 | sapi/Makefile |
---|
| 2368 | sapi/src/Makefile |
---|
| 2369 | sapi/include/Makefile |
---|
| 2370 | sapi/include/rtems/Makefile |
---|
| 2371 | sapi/include/rtems/sptables.h |
---|
[e1d8abb] | 2372 | sapi/inline/Makefile |
---|
| 2373 | sapi/inline/rtems/Makefile |
---|
| 2374 | sapi/macros/Makefile |
---|
| 2375 | sapi/macros/rtems/Makefile |
---|
[1896a650] | 2376 | sapi/optman/Makefile |
---|
[eb299afc] | 2377 | score/Makefile |
---|
| 2378 | score/cpu/Makefile |
---|
| 2379 | score/include/Makefile |
---|
| 2380 | score/include/rtems/Makefile |
---|
| 2381 | score/include/rtems/score/Makefile |
---|
[e1d8abb] | 2382 | score/inline/Makefile |
---|
| 2383 | score/inline/rtems/Makefile |
---|
| 2384 | score/inline/rtems/score/Makefile |
---|
| 2385 | score/macros/Makefile |
---|
| 2386 | score/macros/rtems/Makefile |
---|
| 2387 | score/macros/rtems/score/Makefile |
---|
[eb299afc] | 2388 | score/src/Makefile |
---|
| 2389 | wrapup/Makefile |
---|
| 2390 | wrapup/rtems/Makefile |
---|
[e1d8abb] | 2391 | wrapup/posix/Makefile |
---|
[eb299afc] | 2392 | " | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
---|
| 2393 | EOF |
---|
| 2394 | cat >> $CONFIG_STATUS <<EOF |
---|
| 2395 | |
---|
| 2396 | # Protect against being on the right side of a sed subst in config.status. |
---|
| 2397 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
---|
| 2398 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
---|
| 2399 | $ac_vpsub |
---|
| 2400 | $extrasub |
---|
| 2401 | s%@SHELL@%$SHELL%g |
---|
| 2402 | s%@CFLAGS@%$CFLAGS%g |
---|
| 2403 | s%@CPPFLAGS@%$CPPFLAGS%g |
---|
| 2404 | s%@CXXFLAGS@%$CXXFLAGS%g |
---|
| 2405 | s%@FFLAGS@%$FFLAGS%g |
---|
| 2406 | s%@DEFS@%$DEFS%g |
---|
| 2407 | s%@LDFLAGS@%$LDFLAGS%g |
---|
| 2408 | s%@LIBS@%$LIBS%g |
---|
| 2409 | s%@exec_prefix@%$exec_prefix%g |
---|
| 2410 | s%@prefix@%$prefix%g |
---|
| 2411 | s%@program_transform_name@%$program_transform_name%g |
---|
| 2412 | s%@bindir@%$bindir%g |
---|
| 2413 | s%@sbindir@%$sbindir%g |
---|
| 2414 | s%@libexecdir@%$libexecdir%g |
---|
| 2415 | s%@datadir@%$datadir%g |
---|
| 2416 | s%@sysconfdir@%$sysconfdir%g |
---|
| 2417 | s%@sharedstatedir@%$sharedstatedir%g |
---|
| 2418 | s%@localstatedir@%$localstatedir%g |
---|
| 2419 | s%@libdir@%$libdir%g |
---|
| 2420 | s%@includedir@%$includedir%g |
---|
| 2421 | s%@oldincludedir@%$oldincludedir%g |
---|
| 2422 | s%@infodir@%$infodir%g |
---|
| 2423 | s%@mandir@%$mandir%g |
---|
| 2424 | s%@RTEMS_TOPdir@%$RTEMS_TOPdir%g |
---|
| 2425 | s%@host@%$host%g |
---|
| 2426 | s%@host_alias@%$host_alias%g |
---|
| 2427 | s%@host_cpu@%$host_cpu%g |
---|
| 2428 | s%@host_vendor@%$host_vendor%g |
---|
| 2429 | s%@host_os@%$host_os%g |
---|
| 2430 | s%@target@%$target%g |
---|
| 2431 | s%@target_alias@%$target_alias%g |
---|
| 2432 | s%@target_cpu@%$target_cpu%g |
---|
| 2433 | s%@target_vendor@%$target_vendor%g |
---|
| 2434 | s%@target_os@%$target_os%g |
---|
| 2435 | s%@build@%$build%g |
---|
| 2436 | s%@build_alias@%$build_alias%g |
---|
| 2437 | s%@build_cpu@%$build_cpu%g |
---|
| 2438 | s%@build_vendor@%$build_vendor%g |
---|
| 2439 | s%@build_os@%$build_os%g |
---|
| 2440 | s%@RTEMS_CPU@%$RTEMS_CPU%g |
---|
[e1d8abb] | 2441 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
---|
| 2442 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
---|
| 2443 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
---|
| 2444 | s%@PACKAGE@%$PACKAGE%g |
---|
| 2445 | s%@VERSION@%$VERSION%g |
---|
| 2446 | s%@ACLOCAL@%$ACLOCAL%g |
---|
| 2447 | s%@AUTOCONF@%$AUTOCONF%g |
---|
| 2448 | s%@AUTOMAKE@%$AUTOMAKE%g |
---|
| 2449 | s%@AUTOHEADER@%$AUTOHEADER%g |
---|
| 2450 | s%@MAKEINFO@%$MAKEINFO%g |
---|
| 2451 | s%@SET_MAKE@%$SET_MAKE%g |
---|
[eb299afc] | 2452 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g |
---|
| 2453 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g |
---|
| 2454 | s%@MAINT@%$MAINT%g |
---|
| 2455 | s%@RTEMS_HAS_MULTIPROCESSING@%$RTEMS_HAS_MULTIPROCESSING%g |
---|
| 2456 | s%@RTEMS_HAS_POSIX_API@%$RTEMS_HAS_POSIX_API%g |
---|
| 2457 | s%@RTEMS_USE_MACROS@%$RTEMS_USE_MACROS%g |
---|
| 2458 | s%@RTEMS_LIBC_DIR@%$RTEMS_LIBC_DIR%g |
---|
| 2459 | s%@RTEMS_BSP@%$RTEMS_BSP%g |
---|
| 2460 | s%@RTEMS_HOST@%$RTEMS_HOST%g |
---|
| 2461 | s%@PROJECT_ROOT@%$PROJECT_ROOT%g |
---|
| 2462 | s%@RTEMS_ROOT@%$RTEMS_ROOT%g |
---|
| 2463 | s%@INSTALL_CHANGE@%$INSTALL_CHANGE%g |
---|
| 2464 | s%@PACKHEX@%$PACKHEX%g |
---|
| 2465 | s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g |
---|
| 2466 | s%@GCCSED@%$GCCSED%g |
---|
| 2467 | s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g |
---|
| 2468 | s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g |
---|
| 2469 | s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g |
---|
| 2470 | s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g |
---|
| 2471 | s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g |
---|
| 2472 | s%@OBJCOPY_FOR_TARGET@%$OBJCOPY_FOR_TARGET%g |
---|
| 2473 | s%@SIZE_FOR_TARGET@%$SIZE_FOR_TARGET%g |
---|
| 2474 | s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g |
---|
| 2475 | s%@RTEMS_USE_NEWLIB@%$RTEMS_USE_NEWLIB%g |
---|
[1896a650] | 2476 | s%@HAS_MP@%$HAS_MP%g |
---|
[3a8915e] | 2477 | s%@HAS_POSIX_API@%$HAS_POSIX_API%g |
---|
[e1d8abb] | 2478 | s%@INLINE_TRUE@%$INLINE_TRUE%g |
---|
| 2479 | s%@INLINE_FALSE@%$INLINE_FALSE%g |
---|
| 2480 | s%@MACROS_TRUE@%$MACROS_TRUE%g |
---|
| 2481 | s%@MACROS_FALSE@%$MACROS_FALSE%g |
---|
[eb299afc] | 2482 | s%@RTEMS_VERSION@%$RTEMS_VERSION%g |
---|
[e1d8abb] | 2483 | s%@HAS_POSIX_TRUE@%$HAS_POSIX_TRUE%g |
---|
| 2484 | s%@HAS_POSIX_FALSE@%$HAS_POSIX_FALSE%g |
---|
| 2485 | s%@subdirs@%$subdirs%g |
---|
| 2486 | s%@PROJECT_INCLUDE@%$PROJECT_INCLUDE%g |
---|
[eb299afc] | 2487 | |
---|
| 2488 | CEOF |
---|
| 2489 | EOF |
---|
| 2490 | |
---|
| 2491 | cat >> $CONFIG_STATUS <<\EOF |
---|
| 2492 | |
---|
| 2493 | # Split the substitutions into bite-sized pieces for seds with |
---|
| 2494 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
| 2495 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
---|
| 2496 | ac_file=1 # Number of current file. |
---|
| 2497 | ac_beg=1 # First line for current file. |
---|
| 2498 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
---|
| 2499 | ac_more_lines=: |
---|
| 2500 | ac_sed_cmds="" |
---|
| 2501 | while $ac_more_lines; do |
---|
| 2502 | if test $ac_beg -gt 1; then |
---|
| 2503 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
| 2504 | else |
---|
| 2505 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
| 2506 | fi |
---|
| 2507 | if test ! -s conftest.s$ac_file; then |
---|
| 2508 | ac_more_lines=false |
---|
| 2509 | rm -f conftest.s$ac_file |
---|
| 2510 | else |
---|
| 2511 | if test -z "$ac_sed_cmds"; then |
---|
| 2512 | ac_sed_cmds="sed -f conftest.s$ac_file" |
---|
| 2513 | else |
---|
| 2514 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
---|
| 2515 | fi |
---|
| 2516 | ac_file=`expr $ac_file + 1` |
---|
| 2517 | ac_beg=$ac_end |
---|
| 2518 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
---|
| 2519 | fi |
---|
| 2520 | done |
---|
| 2521 | if test -z "$ac_sed_cmds"; then |
---|
| 2522 | ac_sed_cmds=cat |
---|
| 2523 | fi |
---|
| 2524 | EOF |
---|
| 2525 | |
---|
| 2526 | cat >> $CONFIG_STATUS <<EOF |
---|
| 2527 | |
---|
| 2528 | CONFIG_FILES=\${CONFIG_FILES-"Makefile |
---|
[1896a650] | 2529 | rtems/Makefile |
---|
| 2530 | rtems/src/Makefile |
---|
| 2531 | rtems/include/Makefile |
---|
| 2532 | rtems/include/rtems/Makefile |
---|
| 2533 | rtems/include/rtems/rtems/Makefile |
---|
| 2534 | rtems/optman/Makefile |
---|
[e1d8abb] | 2535 | rtems/inline/Makefile |
---|
| 2536 | rtems/inline/rtems/Makefile |
---|
| 2537 | rtems/inline/rtems/rtems/Makefile |
---|
| 2538 | rtems/macros/Makefile |
---|
| 2539 | rtems/macros/rtems/Makefile |
---|
| 2540 | rtems/macros/rtems/rtems/Makefile |
---|
[1896a650] | 2541 | sapi/Makefile |
---|
| 2542 | sapi/src/Makefile |
---|
| 2543 | sapi/include/Makefile |
---|
| 2544 | sapi/include/rtems/Makefile |
---|
| 2545 | sapi/include/rtems/sptables.h |
---|
[e1d8abb] | 2546 | sapi/inline/Makefile |
---|
| 2547 | sapi/inline/rtems/Makefile |
---|
| 2548 | sapi/macros/Makefile |
---|
| 2549 | sapi/macros/rtems/Makefile |
---|
[1896a650] | 2550 | sapi/optman/Makefile |
---|
[eb299afc] | 2551 | score/Makefile |
---|
| 2552 | score/cpu/Makefile |
---|
| 2553 | score/include/Makefile |
---|
| 2554 | score/include/rtems/Makefile |
---|
| 2555 | score/include/rtems/score/Makefile |
---|
[e1d8abb] | 2556 | score/inline/Makefile |
---|
| 2557 | score/inline/rtems/Makefile |
---|
| 2558 | score/inline/rtems/score/Makefile |
---|
| 2559 | score/macros/Makefile |
---|
| 2560 | score/macros/rtems/Makefile |
---|
| 2561 | score/macros/rtems/score/Makefile |
---|
[eb299afc] | 2562 | score/src/Makefile |
---|
| 2563 | wrapup/Makefile |
---|
| 2564 | wrapup/rtems/Makefile |
---|
[e1d8abb] | 2565 | wrapup/posix/Makefile |
---|
[eb299afc] | 2566 | "} |
---|
| 2567 | EOF |
---|
| 2568 | cat >> $CONFIG_STATUS <<\EOF |
---|
| 2569 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
---|
| 2570 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 2571 | case "$ac_file" in |
---|
| 2572 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
| 2573 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
| 2574 | *) ac_file_in="${ac_file}.in" ;; |
---|
| 2575 | esac |
---|
| 2576 | |
---|
| 2577 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
---|
| 2578 | |
---|
| 2579 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
| 2580 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
| 2581 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
| 2582 | # The file is in a subdirectory. |
---|
| 2583 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
| 2584 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
---|
| 2585 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 2586 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
| 2587 | else |
---|
| 2588 | ac_dir_suffix= ac_dots= |
---|
| 2589 | fi |
---|
| 2590 | |
---|
| 2591 | case "$ac_given_srcdir" in |
---|
| 2592 | .) srcdir=. |
---|
| 2593 | if test -z "$ac_dots"; then top_srcdir=. |
---|
| 2594 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
---|
| 2595 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
---|
| 2596 | *) # Relative path. |
---|
| 2597 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
---|
| 2598 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
---|
| 2599 | esac |
---|
| 2600 | |
---|
| 2601 | case "$ac_given_INSTALL" in |
---|
| 2602 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
| 2603 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
| 2604 | esac |
---|
| 2605 | |
---|
| 2606 | echo creating "$ac_file" |
---|
| 2607 | rm -f "$ac_file" |
---|
| 2608 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
---|
| 2609 | case "$ac_file" in |
---|
| 2610 | *Makefile*) ac_comsub="1i\\ |
---|
| 2611 | # $configure_input" ;; |
---|
| 2612 | *) ac_comsub= ;; |
---|
| 2613 | esac |
---|
| 2614 | |
---|
| 2615 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
| 2616 | sed -e "$ac_comsub |
---|
| 2617 | s%@configure_input@%$configure_input%g |
---|
| 2618 | s%@srcdir@%$srcdir%g |
---|
| 2619 | s%@top_srcdir@%$top_srcdir%g |
---|
| 2620 | s%@INSTALL@%$INSTALL%g |
---|
| 2621 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
---|
| 2622 | fi; done |
---|
| 2623 | rm -f conftest.s* |
---|
| 2624 | |
---|
| 2625 | EOF |
---|
| 2626 | cat >> $CONFIG_STATUS <<EOF |
---|
| 2627 | |
---|
| 2628 | EOF |
---|
| 2629 | cat >> $CONFIG_STATUS <<\EOF |
---|
| 2630 | |
---|
| 2631 | exit 0 |
---|
| 2632 | EOF |
---|
| 2633 | chmod +x $CONFIG_STATUS |
---|
| 2634 | rm -fr confdefs* $ac_clean_files |
---|
| 2635 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
---|
| 2636 | |
---|
[e1d8abb] | 2637 | if test "$no_recursion" != yes; then |
---|
| 2638 | |
---|
| 2639 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
---|
| 2640 | ac_sub_configure_args= |
---|
| 2641 | ac_prev= |
---|
| 2642 | for ac_arg in $ac_configure_args; do |
---|
| 2643 | if test -n "$ac_prev"; then |
---|
| 2644 | ac_prev= |
---|
| 2645 | continue |
---|
| 2646 | fi |
---|
| 2647 | case "$ac_arg" in |
---|
| 2648 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 2649 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 2650 | ac_prev=cache_file ;; |
---|
| 2651 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 2652 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 2653 | ;; |
---|
| 2654 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 2655 | ac_prev=srcdir ;; |
---|
| 2656 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 2657 | ;; |
---|
| 2658 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
---|
| 2659 | esac |
---|
| 2660 | done |
---|
| 2661 | |
---|
| 2662 | for ac_config_dir in $cfg_subdirs score/cpu; do |
---|
| 2663 | |
---|
| 2664 | # Do not complain, so a configure script can configure whichever |
---|
| 2665 | # parts of a large source tree are present. |
---|
| 2666 | if test ! -d $srcdir/$ac_config_dir; then |
---|
| 2667 | continue |
---|
| 2668 | fi |
---|
| 2669 | |
---|
| 2670 | echo configuring in $ac_config_dir |
---|
| 2671 | |
---|
| 2672 | case "$srcdir" in |
---|
| 2673 | .) ;; |
---|
| 2674 | *) |
---|
| 2675 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
---|
| 2676 | else |
---|
| 2677 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } |
---|
| 2678 | fi |
---|
| 2679 | ;; |
---|
| 2680 | esac |
---|
| 2681 | |
---|
| 2682 | ac_popdir=`pwd` |
---|
| 2683 | cd $ac_config_dir |
---|
| 2684 | |
---|
| 2685 | # A "../" for each directory in /$ac_config_dir. |
---|
| 2686 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` |
---|
| 2687 | |
---|
| 2688 | case "$srcdir" in |
---|
| 2689 | .) # No --srcdir option. We are building in place. |
---|
| 2690 | ac_sub_srcdir=$srcdir ;; |
---|
| 2691 | /*) # Absolute path. |
---|
| 2692 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; |
---|
| 2693 | *) # Relative path. |
---|
| 2694 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
---|
| 2695 | esac |
---|
| 2696 | |
---|
| 2697 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
| 2698 | if test -f $ac_sub_srcdir/configure; then |
---|
| 2699 | ac_sub_configure=$ac_sub_srcdir/configure |
---|
| 2700 | elif test -f $ac_sub_srcdir/configure.in; then |
---|
| 2701 | ac_sub_configure=$ac_configure |
---|
| 2702 | else |
---|
| 2703 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
---|
| 2704 | ac_sub_configure= |
---|
| 2705 | fi |
---|
| 2706 | |
---|
| 2707 | # The recursion is here. |
---|
| 2708 | if test -n "$ac_sub_configure"; then |
---|
| 2709 | |
---|
| 2710 | # Make the cache file name correct relative to the subdirectory. |
---|
| 2711 | case "$cache_file" in |
---|
| 2712 | /*) ac_sub_cache_file=$cache_file ;; |
---|
| 2713 | *) # Relative path. |
---|
| 2714 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
---|
| 2715 | esac |
---|
| 2716 | case "$ac_given_INSTALL" in |
---|
| 2717 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
| 2718 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
| 2719 | esac |
---|
| 2720 | |
---|
| 2721 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
---|
| 2722 | # The eval makes quoting arguments work. |
---|
| 2723 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
---|
| 2724 | then : |
---|
| 2725 | else |
---|
| 2726 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } |
---|
| 2727 | fi |
---|
| 2728 | fi |
---|
| 2729 | |
---|
| 2730 | cd $ac_popdir |
---|
| 2731 | done |
---|
| 2732 | fi |
---|
| 2733 | |
---|