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