[244ecd9] | 1 | #! /bin/sh |
---|
| 2 | |
---|
| 3 | # Guess values for system-dependent variables and create Makefiles. |
---|
[8cdb582] | 4 | # Generated automatically using autoconf version 2.13 |
---|
[244ecd9] | 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: |
---|
[8cdb582] | 14 | ac_help="$ac_help |
---|
| 15 | --with-target-subdir=DIR" |
---|
[244ecd9] | 16 | |
---|
| 17 | # Initialize some variables set by options. |
---|
| 18 | # The variables have the same names as the options, with |
---|
| 19 | # dashes changed to underlines. |
---|
| 20 | build=NONE |
---|
| 21 | cache_file=./config.cache |
---|
| 22 | exec_prefix=NONE |
---|
| 23 | host=NONE |
---|
| 24 | no_create= |
---|
| 25 | nonopt=NONE |
---|
| 26 | no_recursion= |
---|
| 27 | prefix=NONE |
---|
| 28 | program_prefix=NONE |
---|
| 29 | program_suffix=NONE |
---|
| 30 | program_transform_name=s,x,x, |
---|
| 31 | silent= |
---|
| 32 | site= |
---|
| 33 | srcdir= |
---|
| 34 | target=NONE |
---|
| 35 | verbose= |
---|
| 36 | x_includes=NONE |
---|
| 37 | x_libraries=NONE |
---|
| 38 | bindir='${exec_prefix}/bin' |
---|
| 39 | sbindir='${exec_prefix}/sbin' |
---|
| 40 | libexecdir='${exec_prefix}/libexec' |
---|
| 41 | datadir='${prefix}/share' |
---|
| 42 | sysconfdir='${prefix}/etc' |
---|
| 43 | sharedstatedir='${prefix}/com' |
---|
| 44 | localstatedir='${prefix}/var' |
---|
| 45 | libdir='${exec_prefix}/lib' |
---|
| 46 | includedir='${prefix}/include' |
---|
| 47 | oldincludedir='/usr/include' |
---|
| 48 | infodir='${prefix}/info' |
---|
| 49 | mandir='${prefix}/man' |
---|
| 50 | |
---|
| 51 | # Initialize some other variables. |
---|
| 52 | subdirs= |
---|
| 53 | MFLAGS= MAKEFLAGS= |
---|
[8cdb582] | 54 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
[244ecd9] | 55 | # Maximum number of lines to put in a shell here document. |
---|
| 56 | ac_max_here_lines=12 |
---|
| 57 | |
---|
| 58 | ac_prev= |
---|
| 59 | for ac_option |
---|
| 60 | do |
---|
| 61 | |
---|
| 62 | # If the previous option needs an argument, assign it. |
---|
| 63 | if test -n "$ac_prev"; then |
---|
| 64 | eval "$ac_prev=\$ac_option" |
---|
| 65 | ac_prev= |
---|
| 66 | continue |
---|
| 67 | fi |
---|
| 68 | |
---|
| 69 | case "$ac_option" in |
---|
| 70 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
| 71 | *) ac_optarg= ;; |
---|
| 72 | esac |
---|
| 73 | |
---|
| 74 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
| 75 | |
---|
| 76 | case "$ac_option" in |
---|
| 77 | |
---|
| 78 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
| 79 | ac_prev=bindir ;; |
---|
| 80 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
| 81 | bindir="$ac_optarg" ;; |
---|
| 82 | |
---|
| 83 | -build | --build | --buil | --bui | --bu) |
---|
| 84 | ac_prev=build ;; |
---|
| 85 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
| 86 | build="$ac_optarg" ;; |
---|
| 87 | |
---|
| 88 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 89 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 90 | ac_prev=cache_file ;; |
---|
| 91 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 92 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 93 | cache_file="$ac_optarg" ;; |
---|
| 94 | |
---|
| 95 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
| 96 | ac_prev=datadir ;; |
---|
| 97 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
| 98 | | --da=*) |
---|
| 99 | datadir="$ac_optarg" ;; |
---|
| 100 | |
---|
| 101 | -disable-* | --disable-*) |
---|
| 102 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
---|
| 103 | # Reject names that are not valid shell variable names. |
---|
| 104 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
| 105 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
| 106 | fi |
---|
| 107 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
| 108 | eval "enable_${ac_feature}=no" ;; |
---|
| 109 | |
---|
| 110 | -enable-* | --enable-*) |
---|
| 111 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
---|
| 112 | # Reject names that are not valid shell variable names. |
---|
| 113 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
| 114 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
| 115 | fi |
---|
| 116 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
| 117 | case "$ac_option" in |
---|
| 118 | *=*) ;; |
---|
| 119 | *) ac_optarg=yes ;; |
---|
| 120 | esac |
---|
| 121 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
---|
| 122 | |
---|
| 123 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
| 124 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
| 125 | | --exec | --exe | --ex) |
---|
| 126 | ac_prev=exec_prefix ;; |
---|
| 127 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
| 128 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
| 129 | | --exec=* | --exe=* | --ex=*) |
---|
| 130 | exec_prefix="$ac_optarg" ;; |
---|
| 131 | |
---|
| 132 | -gas | --gas | --ga | --g) |
---|
| 133 | # Obsolete; use --with-gas. |
---|
| 134 | with_gas=yes ;; |
---|
| 135 | |
---|
| 136 | -help | --help | --hel | --he) |
---|
| 137 | # Omit some internal or obsolete options to make the list less imposing. |
---|
| 138 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
| 139 | cat << EOF |
---|
| 140 | Usage: configure [options] [host] |
---|
| 141 | Options: [defaults in brackets after descriptions] |
---|
| 142 | Configuration: |
---|
| 143 | --cache-file=FILE cache test results in FILE |
---|
| 144 | --help print this message |
---|
| 145 | --no-create do not create output files |
---|
| 146 | --quiet, --silent do not print \`checking...' messages |
---|
| 147 | --version print the version of autoconf that created configure |
---|
| 148 | Directory and file names: |
---|
| 149 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
| 150 | [$ac_default_prefix] |
---|
| 151 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
| 152 | [same as prefix] |
---|
| 153 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
---|
| 154 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
---|
| 155 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
---|
| 156 | --datadir=DIR read-only architecture-independent data in DIR |
---|
| 157 | [PREFIX/share] |
---|
| 158 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
---|
| 159 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
---|
| 160 | [PREFIX/com] |
---|
| 161 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
---|
| 162 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
---|
| 163 | --includedir=DIR C header files in DIR [PREFIX/include] |
---|
| 164 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
---|
| 165 | --infodir=DIR info documentation in DIR [PREFIX/info] |
---|
| 166 | --mandir=DIR man documentation in DIR [PREFIX/man] |
---|
| 167 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
---|
| 168 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
| 169 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
| 170 | --program-transform-name=PROGRAM |
---|
| 171 | run sed PROGRAM on installed program names |
---|
| 172 | EOF |
---|
| 173 | cat << EOF |
---|
| 174 | Host type: |
---|
| 175 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
---|
| 176 | --host=HOST configure for HOST [guessed] |
---|
| 177 | --target=TARGET configure for TARGET [TARGET=HOST] |
---|
| 178 | Features and packages: |
---|
| 179 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
| 180 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
| 181 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
| 182 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
| 183 | --x-includes=DIR X include files are in DIR |
---|
| 184 | --x-libraries=DIR X library files are in DIR |
---|
| 185 | EOF |
---|
| 186 | if test -n "$ac_help"; then |
---|
| 187 | echo "--enable and --with options recognized:$ac_help" |
---|
| 188 | fi |
---|
| 189 | exit 0 ;; |
---|
| 190 | |
---|
| 191 | -host | --host | --hos | --ho) |
---|
| 192 | ac_prev=host ;; |
---|
| 193 | -host=* | --host=* | --hos=* | --ho=*) |
---|
| 194 | host="$ac_optarg" ;; |
---|
| 195 | |
---|
| 196 | -includedir | --includedir | --includedi | --included | --include \ |
---|
| 197 | | --includ | --inclu | --incl | --inc) |
---|
| 198 | ac_prev=includedir ;; |
---|
| 199 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
| 200 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
| 201 | includedir="$ac_optarg" ;; |
---|
| 202 | |
---|
| 203 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
| 204 | ac_prev=infodir ;; |
---|
| 205 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
| 206 | infodir="$ac_optarg" ;; |
---|
| 207 | |
---|
| 208 | -libdir | --libdir | --libdi | --libd) |
---|
| 209 | ac_prev=libdir ;; |
---|
| 210 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
| 211 | libdir="$ac_optarg" ;; |
---|
| 212 | |
---|
| 213 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
| 214 | | --libexe | --libex | --libe) |
---|
| 215 | ac_prev=libexecdir ;; |
---|
| 216 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
| 217 | | --libexe=* | --libex=* | --libe=*) |
---|
| 218 | libexecdir="$ac_optarg" ;; |
---|
| 219 | |
---|
| 220 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
| 221 | | --localstate | --localstat | --localsta | --localst \ |
---|
| 222 | | --locals | --local | --loca | --loc | --lo) |
---|
| 223 | ac_prev=localstatedir ;; |
---|
| 224 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
| 225 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
| 226 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
| 227 | localstatedir="$ac_optarg" ;; |
---|
| 228 | |
---|
| 229 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
| 230 | ac_prev=mandir ;; |
---|
| 231 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
| 232 | mandir="$ac_optarg" ;; |
---|
| 233 | |
---|
| 234 | -nfp | --nfp | --nf) |
---|
| 235 | # Obsolete; use --without-fp. |
---|
| 236 | with_fp=no ;; |
---|
| 237 | |
---|
| 238 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 239 | | --no-cr | --no-c) |
---|
| 240 | no_create=yes ;; |
---|
| 241 | |
---|
| 242 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 243 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
| 244 | no_recursion=yes ;; |
---|
| 245 | |
---|
| 246 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
| 247 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
| 248 | | --oldin | --oldi | --old | --ol | --o) |
---|
| 249 | ac_prev=oldincludedir ;; |
---|
| 250 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
| 251 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
| 252 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
| 253 | oldincludedir="$ac_optarg" ;; |
---|
| 254 | |
---|
| 255 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
| 256 | ac_prev=prefix ;; |
---|
| 257 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
| 258 | prefix="$ac_optarg" ;; |
---|
| 259 | |
---|
| 260 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
| 261 | | --program-pre | --program-pr | --program-p) |
---|
| 262 | ac_prev=program_prefix ;; |
---|
| 263 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
| 264 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
| 265 | program_prefix="$ac_optarg" ;; |
---|
| 266 | |
---|
| 267 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
| 268 | | --program-suf | --program-su | --program-s) |
---|
| 269 | ac_prev=program_suffix ;; |
---|
| 270 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
| 271 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
| 272 | program_suffix="$ac_optarg" ;; |
---|
| 273 | |
---|
| 274 | -program-transform-name | --program-transform-name \ |
---|
| 275 | | --program-transform-nam | --program-transform-na \ |
---|
| 276 | | --program-transform-n | --program-transform- \ |
---|
| 277 | | --program-transform | --program-transfor \ |
---|
| 278 | | --program-transfo | --program-transf \ |
---|
| 279 | | --program-trans | --program-tran \ |
---|
| 280 | | --progr-tra | --program-tr | --program-t) |
---|
| 281 | ac_prev=program_transform_name ;; |
---|
| 282 | -program-transform-name=* | --program-transform-name=* \ |
---|
| 283 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
| 284 | | --program-transform-n=* | --program-transform-=* \ |
---|
| 285 | | --program-transform=* | --program-transfor=* \ |
---|
| 286 | | --program-transfo=* | --program-transf=* \ |
---|
| 287 | | --program-trans=* | --program-tran=* \ |
---|
| 288 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
| 289 | program_transform_name="$ac_optarg" ;; |
---|
| 290 | |
---|
| 291 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 292 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 293 | silent=yes ;; |
---|
| 294 | |
---|
| 295 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
| 296 | ac_prev=sbindir ;; |
---|
| 297 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
| 298 | | --sbi=* | --sb=*) |
---|
| 299 | sbindir="$ac_optarg" ;; |
---|
| 300 | |
---|
| 301 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
| 302 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
| 303 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
| 304 | | --sha | --sh) |
---|
| 305 | ac_prev=sharedstatedir ;; |
---|
| 306 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
| 307 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
| 308 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
| 309 | | --sha=* | --sh=*) |
---|
| 310 | sharedstatedir="$ac_optarg" ;; |
---|
| 311 | |
---|
| 312 | -site | --site | --sit) |
---|
| 313 | ac_prev=site ;; |
---|
| 314 | -site=* | --site=* | --sit=*) |
---|
| 315 | site="$ac_optarg" ;; |
---|
| 316 | |
---|
| 317 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 318 | ac_prev=srcdir ;; |
---|
| 319 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 320 | srcdir="$ac_optarg" ;; |
---|
| 321 | |
---|
| 322 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
| 323 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
| 324 | ac_prev=sysconfdir ;; |
---|
| 325 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
| 326 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
| 327 | sysconfdir="$ac_optarg" ;; |
---|
| 328 | |
---|
| 329 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
| 330 | ac_prev=target ;; |
---|
| 331 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
| 332 | target="$ac_optarg" ;; |
---|
| 333 | |
---|
| 334 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
| 335 | verbose=yes ;; |
---|
| 336 | |
---|
| 337 | -version | --version | --versio | --versi | --vers) |
---|
[8cdb582] | 338 | echo "configure generated by autoconf version 2.13" |
---|
[244ecd9] | 339 | exit 0 ;; |
---|
| 340 | |
---|
| 341 | -with-* | --with-*) |
---|
| 342 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
---|
| 343 | # Reject names that are not valid shell variable names. |
---|
| 344 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
| 345 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
| 346 | fi |
---|
| 347 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
| 348 | case "$ac_option" in |
---|
| 349 | *=*) ;; |
---|
| 350 | *) ac_optarg=yes ;; |
---|
| 351 | esac |
---|
| 352 | eval "with_${ac_package}='$ac_optarg'" ;; |
---|
| 353 | |
---|
| 354 | -without-* | --without-*) |
---|
| 355 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
---|
| 356 | # Reject names that are not valid shell variable names. |
---|
| 357 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
| 358 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
| 359 | fi |
---|
| 360 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
| 361 | eval "with_${ac_package}=no" ;; |
---|
| 362 | |
---|
| 363 | --x) |
---|
| 364 | # Obsolete; use --with-x. |
---|
| 365 | with_x=yes ;; |
---|
| 366 | |
---|
| 367 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
| 368 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
| 369 | ac_prev=x_includes ;; |
---|
| 370 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
| 371 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
| 372 | x_includes="$ac_optarg" ;; |
---|
| 373 | |
---|
| 374 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
| 375 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
| 376 | ac_prev=x_libraries ;; |
---|
| 377 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
| 378 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
| 379 | x_libraries="$ac_optarg" ;; |
---|
| 380 | |
---|
| 381 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
---|
| 382 | ;; |
---|
| 383 | |
---|
| 384 | *) |
---|
| 385 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
---|
| 386 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
---|
| 387 | fi |
---|
| 388 | if test "x$nonopt" != xNONE; then |
---|
| 389 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
---|
| 390 | fi |
---|
| 391 | nonopt="$ac_option" |
---|
| 392 | ;; |
---|
| 393 | |
---|
| 394 | esac |
---|
| 395 | done |
---|
| 396 | |
---|
| 397 | if test -n "$ac_prev"; then |
---|
| 398 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
---|
| 399 | fi |
---|
| 400 | |
---|
| 401 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
| 402 | |
---|
| 403 | # File descriptor usage: |
---|
| 404 | # 0 standard input |
---|
| 405 | # 1 file creation |
---|
| 406 | # 2 errors and warnings |
---|
| 407 | # 3 some systems may open it to /dev/tty |
---|
| 408 | # 4 used on the Kubota Titan |
---|
| 409 | # 6 checking for... messages and results |
---|
| 410 | # 5 compiler messages saved in config.log |
---|
| 411 | if test "$silent" = yes; then |
---|
| 412 | exec 6>/dev/null |
---|
| 413 | else |
---|
| 414 | exec 6>&1 |
---|
| 415 | fi |
---|
| 416 | exec 5>./config.log |
---|
| 417 | |
---|
| 418 | echo "\ |
---|
| 419 | This file contains any messages produced by compilers while |
---|
| 420 | running configure, to aid debugging if configure makes a mistake. |
---|
| 421 | " 1>&5 |
---|
| 422 | |
---|
| 423 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 424 | # Also quote any args containing shell metacharacters. |
---|
| 425 | ac_configure_args= |
---|
| 426 | for ac_arg |
---|
| 427 | do |
---|
| 428 | case "$ac_arg" in |
---|
| 429 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 430 | | --no-cr | --no-c) ;; |
---|
| 431 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 432 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
---|
| 433 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
---|
| 434 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
| 435 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
---|
| 436 | esac |
---|
| 437 | done |
---|
| 438 | |
---|
| 439 | # NLS nuisances. |
---|
| 440 | # Only set these to C if already set. These must not be set unconditionally |
---|
| 441 | # because not all systems understand e.g. LANG=C (notably SCO). |
---|
| 442 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
---|
| 443 | # Non-C LC_CTYPE values break the ctype check. |
---|
| 444 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
---|
| 445 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
---|
| 446 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
---|
| 447 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
---|
| 448 | |
---|
| 449 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 450 | rm -rf conftest* confdefs.h |
---|
| 451 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
| 452 | echo > confdefs.h |
---|
| 453 | |
---|
| 454 | # A filename unique to this package, relative to the directory that |
---|
| 455 | # configure is in, which we can look for to find out if srcdir is correct. |
---|
| 456 | ac_unique_file=genoffsets.c |
---|
| 457 | |
---|
| 458 | # Find the source files, if location was not specified. |
---|
| 459 | if test -z "$srcdir"; then |
---|
| 460 | ac_srcdir_defaulted=yes |
---|
| 461 | # Try the directory containing this script, then its parent. |
---|
| 462 | ac_prog=$0 |
---|
| 463 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
---|
| 464 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
---|
| 465 | srcdir=$ac_confdir |
---|
| 466 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 467 | srcdir=.. |
---|
| 468 | fi |
---|
| 469 | else |
---|
| 470 | ac_srcdir_defaulted=no |
---|
| 471 | fi |
---|
| 472 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 473 | if test "$ac_srcdir_defaulted" = yes; then |
---|
| 474 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
---|
| 475 | else |
---|
| 476 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
---|
| 477 | fi |
---|
| 478 | fi |
---|
| 479 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
---|
| 480 | |
---|
| 481 | # Prefer explicitly selected file to automatically selected ones. |
---|
| 482 | if test -z "$CONFIG_SITE"; then |
---|
| 483 | if test "x$prefix" != xNONE; then |
---|
| 484 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
| 485 | else |
---|
| 486 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
| 487 | fi |
---|
| 488 | fi |
---|
| 489 | for ac_site_file in $CONFIG_SITE; do |
---|
| 490 | if test -r "$ac_site_file"; then |
---|
| 491 | echo "loading site script $ac_site_file" |
---|
| 492 | . "$ac_site_file" |
---|
| 493 | fi |
---|
| 494 | done |
---|
| 495 | |
---|
| 496 | if test -r "$cache_file"; then |
---|
| 497 | echo "loading cache $cache_file" |
---|
| 498 | . $cache_file |
---|
| 499 | else |
---|
| 500 | echo "creating cache $cache_file" |
---|
| 501 | > $cache_file |
---|
| 502 | fi |
---|
| 503 | |
---|
| 504 | ac_ext=c |
---|
| 505 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 506 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 507 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
[8cdb582] | 508 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
[244ecd9] | 509 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 510 | |
---|
[8cdb582] | 511 | ac_exeext= |
---|
| 512 | ac_objext=o |
---|
[244ecd9] | 513 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
| 514 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
---|
| 515 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
| 516 | ac_n= ac_c=' |
---|
| 517 | ' ac_t=' ' |
---|
| 518 | else |
---|
| 519 | ac_n=-n ac_c= ac_t= |
---|
| 520 | fi |
---|
| 521 | else |
---|
| 522 | ac_n= ac_c='\c' ac_t= |
---|
| 523 | fi |
---|
| 524 | |
---|
| 525 | |
---|
| 526 | ac_aux_dir= |
---|
| 527 | for ac_dir in ../../../../../.. $srcdir/../../../../../..; do |
---|
| 528 | if test -f $ac_dir/install-sh; then |
---|
| 529 | ac_aux_dir=$ac_dir |
---|
| 530 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
| 531 | break |
---|
| 532 | elif test -f $ac_dir/install.sh; then |
---|
| 533 | ac_aux_dir=$ac_dir |
---|
| 534 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
| 535 | break |
---|
| 536 | fi |
---|
| 537 | done |
---|
| 538 | if test -z "$ac_aux_dir"; then |
---|
| 539 | { echo "configure: error: can not find install-sh or install.sh in ../../../../../.. $srcdir/../../../../../.." 1>&2; exit 1; } |
---|
| 540 | fi |
---|
| 541 | ac_config_guess=$ac_aux_dir/config.guess |
---|
| 542 | ac_config_sub=$ac_aux_dir/config.sub |
---|
| 543 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
---|
| 544 | |
---|
| 545 | |
---|
[8cdb582] | 546 | # Check whether --with-target-subdir or --without-target-subdir was given. |
---|
| 547 | if test "${with_target_subdir+set}" = set; then |
---|
| 548 | withval="$with_target_subdir" |
---|
| 549 | TARGET_SUBDIR="$withval" |
---|
| 550 | else |
---|
| 551 | TARGET_SUBDIR="." |
---|
| 552 | fi |
---|
| 553 | |
---|
| 554 | |
---|
[244ecd9] | 555 | RTEMS_TOPdir="../../../../../.."; |
---|
| 556 | |
---|
| 557 | |
---|
| 558 | PROJECT_ROOT=`pwd`/$RTEMS_TOPdir; |
---|
[8cdb582] | 559 | test "$TARGET_SUBDIR" = "." || PROJECT_ROOT="$PROJECT_ROOT/.." |
---|
[244ecd9] | 560 | |
---|
| 561 | |
---|
| 562 | echo $ac_n "checking for RTEMS Version""... $ac_c" 1>&6 |
---|
[8cdb582] | 563 | echo "configure:564: checking for RTEMS Version" >&5 |
---|
[244ecd9] | 564 | if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then |
---|
| 565 | RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \ |
---|
| 566 | sed -e 's%RTEMS[ ]*Version[ ]*\(.*\)[ ]*%\1%g'` |
---|
| 567 | else |
---|
| 568 | { echo "configure: error: Unable to find ${RTEMS_TOPdir}/VERSION" 1>&2; exit 1; } |
---|
| 569 | fi |
---|
| 570 | if test -z "$RTEMS_VERSION"; then |
---|
| 571 | { echo "configure: error: Unable to determine version" 1>&2; exit 1; } |
---|
| 572 | fi |
---|
| 573 | echo "$ac_t""$RTEMS_VERSION" 1>&6 |
---|
| 574 | |
---|
[8cdb582] | 575 | RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir; |
---|
| 576 | |
---|
[244ecd9] | 577 | |
---|
| 578 | |
---|
| 579 | # Do some error checking and defaulting for the host and target type. |
---|
| 580 | # The inputs are: |
---|
| 581 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT |
---|
| 582 | # |
---|
| 583 | # The rules are: |
---|
| 584 | # 1. You are not allowed to specify --host, --target, and nonopt at the |
---|
| 585 | # same time. |
---|
| 586 | # 2. Host defaults to nonopt. |
---|
| 587 | # 3. If nonopt is not specified, then host defaults to the current host, |
---|
| 588 | # as determined by config.guess. |
---|
| 589 | # 4. Target and build default to nonopt. |
---|
| 590 | # 5. If nonopt is not specified, then target and build default to host. |
---|
| 591 | |
---|
| 592 | # The aliases save the names the user supplied, while $host etc. |
---|
| 593 | # will get canonicalized. |
---|
| 594 | case $host---$target---$nonopt in |
---|
| 595 | NONE---*---* | *---NONE---* | *---*---NONE) ;; |
---|
| 596 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; |
---|
| 597 | esac |
---|
| 598 | |
---|
| 599 | |
---|
| 600 | # Make sure we can run config.sub. |
---|
[8cdb582] | 601 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
---|
[244ecd9] | 602 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
---|
| 603 | fi |
---|
| 604 | |
---|
| 605 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
---|
[8cdb582] | 606 | echo "configure:607: checking host system type" >&5 |
---|
[244ecd9] | 607 | |
---|
| 608 | host_alias=$host |
---|
| 609 | case "$host_alias" in |
---|
| 610 | NONE) |
---|
| 611 | case $nonopt in |
---|
| 612 | NONE) |
---|
[8cdb582] | 613 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
---|
[244ecd9] | 614 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
---|
| 615 | fi ;; |
---|
| 616 | *) host_alias=$nonopt ;; |
---|
| 617 | esac ;; |
---|
| 618 | esac |
---|
| 619 | |
---|
[8cdb582] | 620 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
---|
[244ecd9] | 621 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 622 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 623 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 624 | echo "$ac_t""$host" 1>&6 |
---|
| 625 | |
---|
| 626 | echo $ac_n "checking target system type""... $ac_c" 1>&6 |
---|
[8cdb582] | 627 | echo "configure:628: checking target system type" >&5 |
---|
[244ecd9] | 628 | |
---|
| 629 | target_alias=$target |
---|
| 630 | case "$target_alias" in |
---|
| 631 | NONE) |
---|
| 632 | case $nonopt in |
---|
| 633 | NONE) target_alias=$host_alias ;; |
---|
| 634 | *) target_alias=$nonopt ;; |
---|
| 635 | esac ;; |
---|
| 636 | esac |
---|
| 637 | |
---|
[8cdb582] | 638 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
---|
[244ecd9] | 639 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 640 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 641 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 642 | echo "$ac_t""$target" 1>&6 |
---|
| 643 | |
---|
| 644 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
---|
[8cdb582] | 645 | echo "configure:646: checking build system type" >&5 |
---|
[244ecd9] | 646 | |
---|
| 647 | build_alias=$build |
---|
| 648 | case "$build_alias" in |
---|
| 649 | NONE) |
---|
| 650 | case $nonopt in |
---|
| 651 | NONE) build_alias=$host_alias ;; |
---|
| 652 | *) build_alias=$nonopt ;; |
---|
| 653 | esac ;; |
---|
| 654 | esac |
---|
| 655 | |
---|
[8cdb582] | 656 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
---|
[244ecd9] | 657 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 658 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 659 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 660 | echo "$ac_t""$build" 1>&6 |
---|
| 661 | |
---|
| 662 | test "$host_alias" != "$target_alias" && |
---|
| 663 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
| 664 | NONENONEs,x,x, && |
---|
| 665 | program_prefix=${target_alias}- |
---|
| 666 | |
---|
| 667 | |
---|
| 668 | |
---|
| 669 | echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6 |
---|
[8cdb582] | 670 | echo "configure:671: checking rtems target cpu" >&5 |
---|
[244ecd9] | 671 | case "${target}" in |
---|
| 672 | # hpux unix port should go here |
---|
| 673 | i[3456]86-go32-rtems*) |
---|
| 674 | target_cpu=i386 |
---|
| 675 | ;; |
---|
| 676 | i[3456]86-pc-linux*) # unix "simulator" port |
---|
| 677 | target_cpu=unix |
---|
| 678 | ;; |
---|
| 679 | i[3456]86-*freebsd2*) # unix "simulator" port |
---|
| 680 | target_cpu=unix |
---|
| 681 | ;; |
---|
| 682 | no_cpu-*rtems*) |
---|
| 683 | target_cpu=no_cpu |
---|
| 684 | ;; |
---|
| 685 | ppc*-*rtems*) |
---|
| 686 | target_cpu=powerpc |
---|
| 687 | ;; |
---|
| 688 | sparc-sun-solaris*) # unix "simulator" port |
---|
| 689 | target_cpu=unix |
---|
| 690 | ;; |
---|
| 691 | *) |
---|
| 692 | target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'` |
---|
| 693 | ;; |
---|
| 694 | esac |
---|
| 695 | echo "$ac_t""$target_cpu" 1>&6 |
---|
| 696 | |
---|
| 697 | |
---|
| 698 | # Find a good install program. We prefer a C program (faster), |
---|
| 699 | # so one script is as good as another. But avoid the broken or |
---|
| 700 | # incompatible versions: |
---|
| 701 | # SysV /etc/install, /usr/sbin/install |
---|
| 702 | # SunOS /usr/etc/install |
---|
| 703 | # IRIX /sbin/install |
---|
| 704 | # AIX /bin/install |
---|
[8cdb582] | 705 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
[244ecd9] | 706 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
| 707 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
| 708 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
| 709 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
---|
[8cdb582] | 710 | echo "configure:711: checking for a BSD compatible install" >&5 |
---|
[244ecd9] | 711 | if test -z "$INSTALL"; then |
---|
| 712 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
---|
| 713 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 714 | else |
---|
[8cdb582] | 715 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
---|
[244ecd9] | 716 | for ac_dir in $PATH; do |
---|
| 717 | # Account for people who put trailing slashes in PATH elements. |
---|
| 718 | case "$ac_dir/" in |
---|
| 719 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
---|
| 720 | *) |
---|
| 721 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
[8cdb582] | 722 | # Don't use installbsd from OSF since it installs stuff as root |
---|
| 723 | # by default. |
---|
| 724 | for ac_prog in ginstall scoinst install; do |
---|
[244ecd9] | 725 | if test -f $ac_dir/$ac_prog; then |
---|
| 726 | if test $ac_prog = install && |
---|
| 727 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
---|
| 728 | # AIX install. It has an incompatible calling convention. |
---|
| 729 | : |
---|
| 730 | else |
---|
| 731 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
---|
| 732 | break 2 |
---|
| 733 | fi |
---|
| 734 | fi |
---|
| 735 | done |
---|
| 736 | ;; |
---|
| 737 | esac |
---|
| 738 | done |
---|
| 739 | IFS="$ac_save_IFS" |
---|
| 740 | |
---|
| 741 | fi |
---|
| 742 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 743 | INSTALL="$ac_cv_path_install" |
---|
| 744 | else |
---|
| 745 | # As a last resort, use the slow shell script. We don't cache a |
---|
| 746 | # path for INSTALL within a source directory, because that will |
---|
| 747 | # break other packages using the cache if that directory is |
---|
| 748 | # removed, or if the path is relative. |
---|
| 749 | INSTALL="$ac_install_sh" |
---|
| 750 | fi |
---|
| 751 | fi |
---|
| 752 | echo "$ac_t""$INSTALL" 1>&6 |
---|
| 753 | |
---|
| 754 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
| 755 | # It thinks the first close brace ends the variable substitution. |
---|
| 756 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
| 757 | |
---|
| 758 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
---|
| 759 | |
---|
[8cdb582] | 760 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
[244ecd9] | 761 | |
---|
| 762 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
---|
[8cdb582] | 763 | echo "configure:764: checking whether build environment is sane" >&5 |
---|
[244ecd9] | 764 | # Just in case |
---|
| 765 | sleep 1 |
---|
| 766 | echo timestamp > conftestfile |
---|
| 767 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
| 768 | # arguments. Must try -L first in case configure is actually a |
---|
| 769 | # symlink; some systems play weird games with the mod time of symlinks |
---|
| 770 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
| 771 | # directory). |
---|
| 772 | if ( |
---|
| 773 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
---|
[8cdb582] | 774 | if test "$*" = "X"; then |
---|
[244ecd9] | 775 | # -L didn't work. |
---|
| 776 | set X `ls -t $srcdir/configure conftestfile` |
---|
| 777 | fi |
---|
[8cdb582] | 778 | if test "$*" != "X $srcdir/configure conftestfile" \ |
---|
| 779 | && test "$*" != "X conftestfile $srcdir/configure"; then |
---|
| 780 | |
---|
| 781 | # If neither matched, then we have a broken ls. This can happen |
---|
| 782 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
| 783 | # broken ls alias from the environment. This has actually |
---|
| 784 | # happened. Such a system could not be considered "sane". |
---|
| 785 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken |
---|
| 786 | alias in your environment" 1>&2; exit 1; } |
---|
| 787 | fi |
---|
| 788 | |
---|
[244ecd9] | 789 | test "$2" = conftestfile |
---|
| 790 | ) |
---|
| 791 | then |
---|
| 792 | # Ok. |
---|
| 793 | : |
---|
| 794 | else |
---|
| 795 | { echo "configure: error: newly created file is older than distributed files! |
---|
| 796 | Check your system clock" 1>&2; exit 1; } |
---|
| 797 | fi |
---|
| 798 | rm -f conftest* |
---|
| 799 | echo "$ac_t""yes" 1>&6 |
---|
| 800 | if test "$program_transform_name" = s,x,x,; then |
---|
| 801 | program_transform_name= |
---|
| 802 | else |
---|
| 803 | # Double any \ or $. echo might interpret backslashes. |
---|
| 804 | cat <<\EOF_SED > conftestsed |
---|
| 805 | s,\\,\\\\,g; s,\$,$$,g |
---|
| 806 | EOF_SED |
---|
| 807 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" |
---|
| 808 | rm -f conftestsed |
---|
| 809 | fi |
---|
| 810 | test "$program_prefix" != NONE && |
---|
| 811 | program_transform_name="s,^,${program_prefix},; $program_transform_name" |
---|
| 812 | # Use a double $ so make ignores it. |
---|
| 813 | test "$program_suffix" != NONE && |
---|
| 814 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" |
---|
| 815 | |
---|
| 816 | # sed with no file args requires a program. |
---|
| 817 | test "$program_transform_name" = "" && program_transform_name="s,x,x," |
---|
| 818 | |
---|
[8cdb582] | 819 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
---|
| 820 | echo "configure:821: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
---|
| 821 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
---|
| 822 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
---|
| 823 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 824 | else |
---|
| 825 | cat > conftestmake <<\EOF |
---|
| 826 | all: |
---|
| 827 | @echo 'ac_maketemp="${MAKE}"' |
---|
| 828 | EOF |
---|
| 829 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
| 830 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
---|
| 831 | if test -n "$ac_maketemp"; then |
---|
| 832 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
| 833 | else |
---|
| 834 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
| 835 | fi |
---|
| 836 | rm -f conftestmake |
---|
| 837 | fi |
---|
| 838 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
| 839 | echo "$ac_t""yes" 1>&6 |
---|
| 840 | SET_MAKE= |
---|
| 841 | else |
---|
| 842 | echo "$ac_t""no" 1>&6 |
---|
| 843 | SET_MAKE="MAKE=${MAKE-make}" |
---|
| 844 | fi |
---|
| 845 | |
---|
| 846 | |
---|
| 847 | PACKAGE=rtems-exec-score-tools-hppa |
---|
| 848 | |
---|
| 849 | VERSION=$RTEMS_VERSION |
---|
| 850 | |
---|
| 851 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
---|
| 852 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } |
---|
| 853 | fi |
---|
| 854 | |
---|
| 855 | |
---|
| 856 | |
---|
[244ecd9] | 857 | missing_dir=`cd $ac_aux_dir && pwd` |
---|
| 858 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 |
---|
[8cdb582] | 859 | echo "configure:860: checking for working aclocal" >&5 |
---|
[244ecd9] | 860 | # Run test in a subshell; some versions of sh will print an error if |
---|
| 861 | # an executable is not found, even if stderr is redirected. |
---|
| 862 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
| 863 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then |
---|
| 864 | ACLOCAL=aclocal |
---|
| 865 | echo "$ac_t""found" 1>&6 |
---|
| 866 | else |
---|
| 867 | ACLOCAL="$missing_dir/missing aclocal" |
---|
| 868 | echo "$ac_t""missing" 1>&6 |
---|
| 869 | fi |
---|
| 870 | |
---|
| 871 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 |
---|
[8cdb582] | 872 | echo "configure:873: checking for working autoconf" >&5 |
---|
[244ecd9] | 873 | # Run test in a subshell; some versions of sh will print an error if |
---|
| 874 | # an executable is not found, even if stderr is redirected. |
---|
| 875 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
| 876 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
---|
| 877 | AUTOCONF=autoconf |
---|
| 878 | echo "$ac_t""found" 1>&6 |
---|
| 879 | else |
---|
| 880 | AUTOCONF="$missing_dir/missing autoconf" |
---|
| 881 | echo "$ac_t""missing" 1>&6 |
---|
| 882 | fi |
---|
| 883 | |
---|
| 884 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 |
---|
[8cdb582] | 885 | echo "configure:886: checking for working automake" >&5 |
---|
[244ecd9] | 886 | # Run test in a subshell; some versions of sh will print an error if |
---|
| 887 | # an executable is not found, even if stderr is redirected. |
---|
| 888 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
| 889 | if (automake --version) < /dev/null > /dev/null 2>&1; then |
---|
| 890 | AUTOMAKE=automake |
---|
| 891 | echo "$ac_t""found" 1>&6 |
---|
| 892 | else |
---|
| 893 | AUTOMAKE="$missing_dir/missing automake" |
---|
| 894 | echo "$ac_t""missing" 1>&6 |
---|
| 895 | fi |
---|
| 896 | |
---|
| 897 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 |
---|
[8cdb582] | 898 | echo "configure:899: checking for working autoheader" >&5 |
---|
[244ecd9] | 899 | # Run test in a subshell; some versions of sh will print an error if |
---|
| 900 | # an executable is not found, even if stderr is redirected. |
---|
| 901 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
| 902 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
---|
| 903 | AUTOHEADER=autoheader |
---|
| 904 | echo "$ac_t""found" 1>&6 |
---|
| 905 | else |
---|
| 906 | AUTOHEADER="$missing_dir/missing autoheader" |
---|
| 907 | echo "$ac_t""missing" 1>&6 |
---|
| 908 | fi |
---|
| 909 | |
---|
| 910 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 |
---|
[8cdb582] | 911 | echo "configure:912: checking for working makeinfo" >&5 |
---|
[244ecd9] | 912 | # Run test in a subshell; some versions of sh will print an error if |
---|
| 913 | # an executable is not found, even if stderr is redirected. |
---|
| 914 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
| 915 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
---|
| 916 | MAKEINFO=makeinfo |
---|
| 917 | echo "$ac_t""found" 1>&6 |
---|
| 918 | else |
---|
| 919 | MAKEINFO="$missing_dir/missing makeinfo" |
---|
| 920 | echo "$ac_t""missing" 1>&6 |
---|
| 921 | fi |
---|
| 922 | |
---|
| 923 | |
---|
| 924 | |
---|
| 925 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 926 | set dummy gcc; ac_word=$2 |
---|
| 927 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[8cdb582] | 928 | echo "configure:929: checking for $ac_word" >&5 |
---|
[244ecd9] | 929 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
| 930 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 931 | else |
---|
| 932 | if test -n "$CC"; then |
---|
| 933 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 934 | else |
---|
[8cdb582] | 935 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 936 | ac_dummy="$PATH" |
---|
| 937 | for ac_dir in $ac_dummy; do |
---|
[244ecd9] | 938 | test -z "$ac_dir" && ac_dir=. |
---|
| 939 | if test -f $ac_dir/$ac_word; then |
---|
| 940 | ac_cv_prog_CC="gcc" |
---|
| 941 | break |
---|
| 942 | fi |
---|
| 943 | done |
---|
| 944 | IFS="$ac_save_ifs" |
---|
| 945 | fi |
---|
| 946 | fi |
---|
| 947 | CC="$ac_cv_prog_CC" |
---|
| 948 | if test -n "$CC"; then |
---|
| 949 | echo "$ac_t""$CC" 1>&6 |
---|
| 950 | else |
---|
| 951 | echo "$ac_t""no" 1>&6 |
---|
| 952 | fi |
---|
| 953 | |
---|
| 954 | if test -z "$CC"; then |
---|
| 955 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 956 | set dummy cc; ac_word=$2 |
---|
| 957 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[8cdb582] | 958 | echo "configure:959: checking for $ac_word" >&5 |
---|
[244ecd9] | 959 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
| 960 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 961 | else |
---|
| 962 | if test -n "$CC"; then |
---|
| 963 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 964 | else |
---|
[8cdb582] | 965 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
[244ecd9] | 966 | ac_prog_rejected=no |
---|
[8cdb582] | 967 | ac_dummy="$PATH" |
---|
| 968 | for ac_dir in $ac_dummy; do |
---|
[244ecd9] | 969 | test -z "$ac_dir" && ac_dir=. |
---|
| 970 | if test -f $ac_dir/$ac_word; then |
---|
| 971 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
---|
| 972 | ac_prog_rejected=yes |
---|
| 973 | continue |
---|
| 974 | fi |
---|
| 975 | ac_cv_prog_CC="cc" |
---|
| 976 | break |
---|
| 977 | fi |
---|
| 978 | done |
---|
| 979 | IFS="$ac_save_ifs" |
---|
| 980 | if test $ac_prog_rejected = yes; then |
---|
| 981 | # We found a bogon in the path, so make sure we never use it. |
---|
| 982 | set dummy $ac_cv_prog_CC |
---|
| 983 | shift |
---|
| 984 | if test $# -gt 0; then |
---|
| 985 | # We chose a different compiler from the bogus one. |
---|
| 986 | # However, it has the same basename, so the bogon will be chosen |
---|
| 987 | # first if we set CC to just the basename; use the full file name. |
---|
| 988 | shift |
---|
| 989 | set dummy "$ac_dir/$ac_word" "$@" |
---|
| 990 | shift |
---|
| 991 | ac_cv_prog_CC="$@" |
---|
| 992 | fi |
---|
| 993 | fi |
---|
| 994 | fi |
---|
| 995 | fi |
---|
| 996 | CC="$ac_cv_prog_CC" |
---|
| 997 | if test -n "$CC"; then |
---|
| 998 | echo "$ac_t""$CC" 1>&6 |
---|
| 999 | else |
---|
| 1000 | echo "$ac_t""no" 1>&6 |
---|
| 1001 | fi |
---|
| 1002 | |
---|
[8cdb582] | 1003 | if test -z "$CC"; then |
---|
| 1004 | case "`uname -s`" in |
---|
| 1005 | *win32* | *WIN32*) |
---|
| 1006 | # Extract the first word of "cl", so it can be a program name with args. |
---|
| 1007 | set dummy cl; ac_word=$2 |
---|
| 1008 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
| 1009 | echo "configure:1010: checking for $ac_word" >&5 |
---|
| 1010 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
| 1011 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1012 | else |
---|
| 1013 | if test -n "$CC"; then |
---|
| 1014 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 1015 | else |
---|
| 1016 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1017 | ac_dummy="$PATH" |
---|
| 1018 | for ac_dir in $ac_dummy; do |
---|
| 1019 | test -z "$ac_dir" && ac_dir=. |
---|
| 1020 | if test -f $ac_dir/$ac_word; then |
---|
| 1021 | ac_cv_prog_CC="cl" |
---|
| 1022 | break |
---|
| 1023 | fi |
---|
| 1024 | done |
---|
| 1025 | IFS="$ac_save_ifs" |
---|
| 1026 | fi |
---|
| 1027 | fi |
---|
| 1028 | CC="$ac_cv_prog_CC" |
---|
| 1029 | if test -n "$CC"; then |
---|
| 1030 | echo "$ac_t""$CC" 1>&6 |
---|
| 1031 | else |
---|
| 1032 | echo "$ac_t""no" 1>&6 |
---|
| 1033 | fi |
---|
| 1034 | ;; |
---|
| 1035 | esac |
---|
| 1036 | fi |
---|
[244ecd9] | 1037 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
| 1038 | fi |
---|
| 1039 | |
---|
| 1040 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
[8cdb582] | 1041 | echo "configure:1042: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
[244ecd9] | 1042 | |
---|
| 1043 | ac_ext=c |
---|
| 1044 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 1045 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1046 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
[8cdb582] | 1047 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
[244ecd9] | 1048 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 1049 | |
---|
[8cdb582] | 1050 | cat > conftest.$ac_ext << EOF |
---|
| 1051 | |
---|
| 1052 | #line 1053 "configure" |
---|
[244ecd9] | 1053 | #include "confdefs.h" |
---|
[8cdb582] | 1054 | |
---|
[244ecd9] | 1055 | main(){return(0);} |
---|
| 1056 | EOF |
---|
[8cdb582] | 1057 | if { (eval echo configure:1058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
[244ecd9] | 1058 | ac_cv_prog_cc_works=yes |
---|
| 1059 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
| 1060 | if (./conftest; exit) 2>/dev/null; then |
---|
| 1061 | ac_cv_prog_cc_cross=no |
---|
| 1062 | else |
---|
| 1063 | ac_cv_prog_cc_cross=yes |
---|
| 1064 | fi |
---|
| 1065 | else |
---|
| 1066 | echo "configure: failed program was:" >&5 |
---|
| 1067 | cat conftest.$ac_ext >&5 |
---|
| 1068 | ac_cv_prog_cc_works=no |
---|
| 1069 | fi |
---|
| 1070 | rm -fr conftest* |
---|
[8cdb582] | 1071 | ac_ext=c |
---|
| 1072 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 1073 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1074 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 1075 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 1076 | cross_compiling=$ac_cv_prog_cc_cross |
---|
[244ecd9] | 1077 | |
---|
| 1078 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
| 1079 | if test $ac_cv_prog_cc_works = no; then |
---|
| 1080 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
| 1081 | fi |
---|
| 1082 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
[8cdb582] | 1083 | echo "configure:1084: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
[244ecd9] | 1084 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
| 1085 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 1086 | |
---|
| 1087 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
[8cdb582] | 1088 | echo "configure:1089: checking whether we are using GNU C" >&5 |
---|
[244ecd9] | 1089 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
| 1090 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1091 | else |
---|
| 1092 | cat > conftest.c <<EOF |
---|
| 1093 | #ifdef __GNUC__ |
---|
| 1094 | yes; |
---|
| 1095 | #endif |
---|
| 1096 | EOF |
---|
[8cdb582] | 1097 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
[244ecd9] | 1098 | ac_cv_prog_gcc=yes |
---|
| 1099 | else |
---|
| 1100 | ac_cv_prog_gcc=no |
---|
| 1101 | fi |
---|
| 1102 | fi |
---|
| 1103 | |
---|
| 1104 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
| 1105 | |
---|
| 1106 | if test $ac_cv_prog_gcc = yes; then |
---|
| 1107 | GCC=yes |
---|
[8cdb582] | 1108 | else |
---|
| 1109 | GCC= |
---|
| 1110 | fi |
---|
| 1111 | |
---|
| 1112 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
| 1113 | ac_save_CFLAGS="$CFLAGS" |
---|
| 1114 | CFLAGS= |
---|
| 1115 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
| 1116 | echo "configure:1117: checking whether ${CC-cc} accepts -g" >&5 |
---|
[244ecd9] | 1117 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
| 1118 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1119 | else |
---|
| 1120 | echo 'void f(){}' > conftest.c |
---|
| 1121 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
| 1122 | ac_cv_prog_cc_g=yes |
---|
| 1123 | else |
---|
| 1124 | ac_cv_prog_cc_g=no |
---|
| 1125 | fi |
---|
| 1126 | rm -f conftest* |
---|
| 1127 | |
---|
| 1128 | fi |
---|
| 1129 | |
---|
| 1130 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
[8cdb582] | 1131 | if test "$ac_test_CFLAGS" = set; then |
---|
| 1132 | CFLAGS="$ac_save_CFLAGS" |
---|
| 1133 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 1134 | if test "$GCC" = yes; then |
---|
[244ecd9] | 1135 | CFLAGS="-g -O2" |
---|
| 1136 | else |
---|
[8cdb582] | 1137 | CFLAGS="-g" |
---|
[244ecd9] | 1138 | fi |
---|
[ecab6a39] | 1139 | else |
---|
[8cdb582] | 1140 | if test "$GCC" = yes; then |
---|
| 1141 | CFLAGS="-O2" |
---|
| 1142 | else |
---|
| 1143 | CFLAGS= |
---|
| 1144 | fi |
---|
[244ecd9] | 1145 | fi |
---|
| 1146 | |
---|
| 1147 | |
---|
| 1148 | |
---|
| 1149 | # tooldir='$(exec_prefix)/'$target_alias |
---|
| 1150 | # Temporary work-around until building in source tree is supported |
---|
| 1151 | tooldir='$(PROJECT_ROOT)' |
---|
| 1152 | |
---|
| 1153 | |
---|
| 1154 | project_includedir='$(tooldir)'/include |
---|
| 1155 | |
---|
| 1156 | |
---|
| 1157 | project_libdir='$(tooldir)/lib$(MULTISUBDIR)' |
---|
| 1158 | |
---|
| 1159 | |
---|
| 1160 | project_bindir='$(tooldir)/bin' |
---|
| 1161 | |
---|
| 1162 | |
---|
| 1163 | |
---|
| 1164 | trap '' 1 2 15 |
---|
| 1165 | cat > confcache <<\EOF |
---|
| 1166 | # This file is a shell script that caches the results of configure |
---|
| 1167 | # tests run on this system so they can be shared between configure |
---|
| 1168 | # scripts and configure runs. It is not useful on other systems. |
---|
| 1169 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
| 1170 | # |
---|
| 1171 | # By default, configure uses ./config.cache as the cache file, |
---|
| 1172 | # creating it if it does not exist already. You can give configure |
---|
| 1173 | # the --cache-file=FILE option to use a different cache file; that is |
---|
| 1174 | # what configure does when it calls configure scripts in |
---|
| 1175 | # subdirectories, so they share the cache. |
---|
| 1176 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
| 1177 | # config.status only pays attention to the cache file if you give it the |
---|
| 1178 | # --recheck option to rerun configure. |
---|
| 1179 | # |
---|
| 1180 | EOF |
---|
| 1181 | # The following way of writing the cache mishandles newlines in values, |
---|
| 1182 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 1183 | # So, don't put newlines in cache variables' values. |
---|
| 1184 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 1185 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 1186 | (set) 2>&1 | |
---|
[8cdb582] | 1187 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
[244ecd9] | 1188 | *ac_space=\ *) |
---|
| 1189 | # `set' does not quote correctly, so add quotes (double-quote substitution |
---|
| 1190 | # turns \\\\ into \\, and sed turns \\ into \). |
---|
| 1191 | sed -n \ |
---|
| 1192 | -e "s/'/'\\\\''/g" \ |
---|
| 1193 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
---|
| 1194 | ;; |
---|
| 1195 | *) |
---|
| 1196 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 1197 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
---|
| 1198 | ;; |
---|
| 1199 | esac >> confcache |
---|
| 1200 | if cmp -s $cache_file confcache; then |
---|
| 1201 | : |
---|
| 1202 | else |
---|
| 1203 | if test -w $cache_file; then |
---|
| 1204 | echo "updating cache $cache_file" |
---|
| 1205 | cat confcache > $cache_file |
---|
| 1206 | else |
---|
| 1207 | echo "not updating unwritable cache $cache_file" |
---|
| 1208 | fi |
---|
| 1209 | fi |
---|
| 1210 | rm -f confcache |
---|
| 1211 | |
---|
| 1212 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
| 1213 | |
---|
| 1214 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 1215 | # Let make expand exec_prefix. |
---|
| 1216 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 1217 | |
---|
| 1218 | # Any assignment to VPATH causes Sun make to only execute |
---|
| 1219 | # the first set of double-colon rules, so remove it if not needed. |
---|
| 1220 | # If there is a colon in the path, we need to keep it. |
---|
| 1221 | if test "x$srcdir" = x.; then |
---|
| 1222 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
---|
| 1223 | fi |
---|
| 1224 | |
---|
| 1225 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
---|
| 1226 | |
---|
| 1227 | # Transform confdefs.h into DEFS. |
---|
| 1228 | # Protect against shell expansion while executing Makefile rules. |
---|
| 1229 | # Protect against Makefile macro expansion. |
---|
| 1230 | cat > conftest.defs <<\EOF |
---|
| 1231 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g |
---|
| 1232 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g |
---|
| 1233 | s%\[%\\&%g |
---|
| 1234 | s%\]%\\&%g |
---|
| 1235 | s%\$%$$%g |
---|
| 1236 | EOF |
---|
| 1237 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` |
---|
| 1238 | rm -f conftest.defs |
---|
| 1239 | |
---|
| 1240 | |
---|
| 1241 | # Without the "./", some shells look in PATH for config.status. |
---|
| 1242 | : ${CONFIG_STATUS=./config.status} |
---|
| 1243 | |
---|
| 1244 | echo creating $CONFIG_STATUS |
---|
| 1245 | rm -f $CONFIG_STATUS |
---|
| 1246 | cat > $CONFIG_STATUS <<EOF |
---|
| 1247 | #! /bin/sh |
---|
| 1248 | # Generated automatically by configure. |
---|
| 1249 | # Run this file to recreate the current configuration. |
---|
| 1250 | # This directory was configured as follows, |
---|
| 1251 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
| 1252 | # |
---|
| 1253 | # $0 $ac_configure_args |
---|
| 1254 | # |
---|
| 1255 | # Compiler output produced by configure, useful for debugging |
---|
| 1256 | # configure, is in ./config.log if it exists. |
---|
| 1257 | |
---|
| 1258 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
---|
| 1259 | for ac_option |
---|
| 1260 | do |
---|
| 1261 | case "\$ac_option" in |
---|
| 1262 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 1263 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
---|
| 1264 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
---|
| 1265 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
---|
[8cdb582] | 1266 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
---|
[244ecd9] | 1267 | exit 0 ;; |
---|
| 1268 | -help | --help | --hel | --he | --h) |
---|
| 1269 | echo "\$ac_cs_usage"; exit 0 ;; |
---|
| 1270 | *) echo "\$ac_cs_usage"; exit 1 ;; |
---|
| 1271 | esac |
---|
| 1272 | done |
---|
| 1273 | |
---|
| 1274 | ac_given_srcdir=$srcdir |
---|
| 1275 | ac_given_INSTALL="$INSTALL" |
---|
| 1276 | |
---|
| 1277 | trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
---|
| 1278 | EOF |
---|
| 1279 | cat >> $CONFIG_STATUS <<EOF |
---|
| 1280 | |
---|
| 1281 | # Protect against being on the right side of a sed subst in config.status. |
---|
| 1282 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
---|
| 1283 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
---|
| 1284 | $ac_vpsub |
---|
| 1285 | $extrasub |
---|
[8cdb582] | 1286 | s%@SHELL@%$SHELL%g |
---|
[244ecd9] | 1287 | s%@CFLAGS@%$CFLAGS%g |
---|
| 1288 | s%@CPPFLAGS@%$CPPFLAGS%g |
---|
| 1289 | s%@CXXFLAGS@%$CXXFLAGS%g |
---|
[8cdb582] | 1290 | s%@FFLAGS@%$FFLAGS%g |
---|
[244ecd9] | 1291 | s%@DEFS@%$DEFS%g |
---|
| 1292 | s%@LDFLAGS@%$LDFLAGS%g |
---|
| 1293 | s%@LIBS@%$LIBS%g |
---|
| 1294 | s%@exec_prefix@%$exec_prefix%g |
---|
| 1295 | s%@prefix@%$prefix%g |
---|
| 1296 | s%@program_transform_name@%$program_transform_name%g |
---|
| 1297 | s%@bindir@%$bindir%g |
---|
| 1298 | s%@sbindir@%$sbindir%g |
---|
| 1299 | s%@libexecdir@%$libexecdir%g |
---|
| 1300 | s%@datadir@%$datadir%g |
---|
| 1301 | s%@sysconfdir@%$sysconfdir%g |
---|
| 1302 | s%@sharedstatedir@%$sharedstatedir%g |
---|
| 1303 | s%@localstatedir@%$localstatedir%g |
---|
| 1304 | s%@libdir@%$libdir%g |
---|
| 1305 | s%@includedir@%$includedir%g |
---|
| 1306 | s%@oldincludedir@%$oldincludedir%g |
---|
| 1307 | s%@infodir@%$infodir%g |
---|
| 1308 | s%@mandir@%$mandir%g |
---|
| 1309 | s%@RTEMS_TOPdir@%$RTEMS_TOPdir%g |
---|
| 1310 | s%@PROJECT_ROOT@%$PROJECT_ROOT%g |
---|
[8cdb582] | 1311 | s%@RTEMS_ROOT@%$RTEMS_ROOT%g |
---|
[244ecd9] | 1312 | s%@host@%$host%g |
---|
| 1313 | s%@host_alias@%$host_alias%g |
---|
| 1314 | s%@host_cpu@%$host_cpu%g |
---|
| 1315 | s%@host_vendor@%$host_vendor%g |
---|
| 1316 | s%@host_os@%$host_os%g |
---|
| 1317 | s%@target@%$target%g |
---|
| 1318 | s%@target_alias@%$target_alias%g |
---|
| 1319 | s%@target_cpu@%$target_cpu%g |
---|
| 1320 | s%@target_vendor@%$target_vendor%g |
---|
| 1321 | s%@target_os@%$target_os%g |
---|
| 1322 | s%@build@%$build%g |
---|
| 1323 | s%@build_alias@%$build_alias%g |
---|
| 1324 | s%@build_cpu@%$build_cpu%g |
---|
| 1325 | s%@build_vendor@%$build_vendor%g |
---|
| 1326 | s%@build_os@%$build_os%g |
---|
| 1327 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
---|
[ecab6a39] | 1328 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
---|
[8cdb582] | 1329 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
---|
[244ecd9] | 1330 | s%@PACKAGE@%$PACKAGE%g |
---|
| 1331 | s%@VERSION@%$VERSION%g |
---|
| 1332 | s%@ACLOCAL@%$ACLOCAL%g |
---|
| 1333 | s%@AUTOCONF@%$AUTOCONF%g |
---|
| 1334 | s%@AUTOMAKE@%$AUTOMAKE%g |
---|
| 1335 | s%@AUTOHEADER@%$AUTOHEADER%g |
---|
| 1336 | s%@MAKEINFO@%$MAKEINFO%g |
---|
| 1337 | s%@SET_MAKE@%$SET_MAKE%g |
---|
| 1338 | s%@CC@%$CC%g |
---|
| 1339 | s%@tooldir@%$tooldir%g |
---|
| 1340 | s%@project_includedir@%$project_includedir%g |
---|
| 1341 | s%@project_libdir@%$project_libdir%g |
---|
| 1342 | s%@project_bindir@%$project_bindir%g |
---|
| 1343 | |
---|
| 1344 | CEOF |
---|
| 1345 | EOF |
---|
| 1346 | |
---|
| 1347 | cat >> $CONFIG_STATUS <<\EOF |
---|
| 1348 | |
---|
| 1349 | # Split the substitutions into bite-sized pieces for seds with |
---|
| 1350 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
| 1351 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
---|
| 1352 | ac_file=1 # Number of current file. |
---|
| 1353 | ac_beg=1 # First line for current file. |
---|
| 1354 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
---|
| 1355 | ac_more_lines=: |
---|
| 1356 | ac_sed_cmds="" |
---|
| 1357 | while $ac_more_lines; do |
---|
| 1358 | if test $ac_beg -gt 1; then |
---|
| 1359 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
| 1360 | else |
---|
| 1361 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
| 1362 | fi |
---|
| 1363 | if test ! -s conftest.s$ac_file; then |
---|
| 1364 | ac_more_lines=false |
---|
| 1365 | rm -f conftest.s$ac_file |
---|
| 1366 | else |
---|
| 1367 | if test -z "$ac_sed_cmds"; then |
---|
| 1368 | ac_sed_cmds="sed -f conftest.s$ac_file" |
---|
| 1369 | else |
---|
| 1370 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
---|
| 1371 | fi |
---|
| 1372 | ac_file=`expr $ac_file + 1` |
---|
| 1373 | ac_beg=$ac_end |
---|
| 1374 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
---|
| 1375 | fi |
---|
| 1376 | done |
---|
| 1377 | if test -z "$ac_sed_cmds"; then |
---|
| 1378 | ac_sed_cmds=cat |
---|
| 1379 | fi |
---|
| 1380 | EOF |
---|
| 1381 | |
---|
| 1382 | cat >> $CONFIG_STATUS <<EOF |
---|
| 1383 | |
---|
| 1384 | CONFIG_FILES=\${CONFIG_FILES-"Makefile"} |
---|
| 1385 | EOF |
---|
| 1386 | cat >> $CONFIG_STATUS <<\EOF |
---|
| 1387 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
---|
| 1388 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 1389 | case "$ac_file" in |
---|
| 1390 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
| 1391 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
| 1392 | *) ac_file_in="${ac_file}.in" ;; |
---|
| 1393 | esac |
---|
| 1394 | |
---|
| 1395 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
---|
| 1396 | |
---|
| 1397 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
| 1398 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
| 1399 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
| 1400 | # The file is in a subdirectory. |
---|
| 1401 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
| 1402 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
---|
| 1403 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 1404 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
| 1405 | else |
---|
| 1406 | ac_dir_suffix= ac_dots= |
---|
| 1407 | fi |
---|
| 1408 | |
---|
| 1409 | case "$ac_given_srcdir" in |
---|
| 1410 | .) srcdir=. |
---|
| 1411 | if test -z "$ac_dots"; then top_srcdir=. |
---|
| 1412 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
---|
| 1413 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
---|
| 1414 | *) # Relative path. |
---|
| 1415 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
---|
| 1416 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
---|
| 1417 | esac |
---|
| 1418 | |
---|
| 1419 | case "$ac_given_INSTALL" in |
---|
| 1420 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
| 1421 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
| 1422 | esac |
---|
| 1423 | |
---|
| 1424 | echo creating "$ac_file" |
---|
| 1425 | rm -f "$ac_file" |
---|
| 1426 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
---|
| 1427 | case "$ac_file" in |
---|
| 1428 | *Makefile*) ac_comsub="1i\\ |
---|
| 1429 | # $configure_input" ;; |
---|
| 1430 | *) ac_comsub= ;; |
---|
| 1431 | esac |
---|
| 1432 | |
---|
| 1433 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
| 1434 | sed -e "$ac_comsub |
---|
| 1435 | s%@configure_input@%$configure_input%g |
---|
| 1436 | s%@srcdir@%$srcdir%g |
---|
| 1437 | s%@top_srcdir@%$top_srcdir%g |
---|
| 1438 | s%@INSTALL@%$INSTALL%g |
---|
| 1439 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
---|
| 1440 | fi; done |
---|
| 1441 | rm -f conftest.s* |
---|
| 1442 | |
---|
| 1443 | EOF |
---|
| 1444 | cat >> $CONFIG_STATUS <<EOF |
---|
| 1445 | |
---|
| 1446 | EOF |
---|
| 1447 | cat >> $CONFIG_STATUS <<\EOF |
---|
| 1448 | |
---|
| 1449 | exit 0 |
---|
| 1450 | EOF |
---|
| 1451 | chmod +x $CONFIG_STATUS |
---|
| 1452 | rm -fr confdefs* $ac_clean_files |
---|
| 1453 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
---|
| 1454 | |
---|