| 1 | #! /bin/sh |
| 2 | |
| 3 | # Guess values for system-dependent variables and create Makefiles. |
| 4 | # Generated automatically using autoconf version 2.12.2 |
| 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
| 6 | # |
| 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
| 9 | |
| 10 | # Defaults: |
| 11 | ac_help= |
| 12 | ac_default_prefix=/usr/local |
| 13 | # Any additions from configure.in: |
| 14 | ac_help="$ac_help |
| 15 | --enable-shared[=PKGS] build shared libraries [default=yes]" |
| 16 | ac_help="$ac_help |
| 17 | --enable-static[=PKGS] build static libraries [default=yes]" |
| 18 | ac_help="$ac_help |
| 19 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]" |
| 20 | ac_help="$ac_help |
| 21 | --enable-bfd-assembler use BFD back end for writing object files" |
| 22 | ac_help="$ac_help |
| 23 | targets alternative target configurations besides the primary" |
| 24 | ac_help="$ac_help |
| 25 | --enable-commonbfdlib build shared BFD/opcodes/libiberty library" |
| 26 | ac_help="$ac_help |
| 27 | --disable-nls do not use Native Language Support" |
| 28 | ac_help="$ac_help |
| 29 | --with-included-gettext use the GNU gettext library included here" |
| 30 | ac_help="$ac_help |
| 31 | --enable-maintainer-mode enable make rules and dependencies not useful |
| 32 | (and sometimes confusing) to the casual installer" |
| 33 | |
| 34 | # Initialize some variables set by options. |
| 35 | # The variables have the same names as the options, with |
| 36 | # dashes changed to underlines. |
| 37 | build=NONE |
| 38 | cache_file=./config.cache |
| 39 | exec_prefix=NONE |
| 40 | host=NONE |
| 41 | no_create= |
| 42 | nonopt=NONE |
| 43 | no_recursion= |
| 44 | prefix=NONE |
| 45 | program_prefix=NONE |
| 46 | program_suffix=NONE |
| 47 | program_transform_name=s,x,x, |
| 48 | silent= |
| 49 | site= |
| 50 | srcdir= |
| 51 | target=NONE |
| 52 | verbose= |
| 53 | x_includes=NONE |
| 54 | x_libraries=NONE |
| 55 | bindir='${exec_prefix}/bin' |
| 56 | sbindir='${exec_prefix}/sbin' |
| 57 | libexecdir='${exec_prefix}/libexec' |
| 58 | datadir='${prefix}/share' |
| 59 | sysconfdir='${prefix}/etc' |
| 60 | sharedstatedir='${prefix}/com' |
| 61 | localstatedir='${prefix}/var' |
| 62 | libdir='${exec_prefix}/lib' |
| 63 | includedir='${prefix}/include' |
| 64 | oldincludedir='/usr/include' |
| 65 | infodir='${prefix}/info' |
| 66 | mandir='${prefix}/man' |
| 67 | |
| 68 | # Initialize some other variables. |
| 69 | subdirs= |
| 70 | MFLAGS= MAKEFLAGS= |
| 71 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 72 | # Maximum number of lines to put in a shell here document. |
| 73 | ac_max_here_lines=12 |
| 74 | |
| 75 | ac_prev= |
| 76 | for ac_option |
| 77 | do |
| 78 | |
| 79 | # If the previous option needs an argument, assign it. |
| 80 | if test -n "$ac_prev"; then |
| 81 | eval "$ac_prev=\$ac_option" |
| 82 | ac_prev= |
| 83 | continue |
| 84 | fi |
| 85 | |
| 86 | case "$ac_option" in |
| 87 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 88 | *) ac_optarg= ;; |
| 89 | esac |
| 90 | |
| 91 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 92 | |
| 93 | case "$ac_option" in |
| 94 | |
| 95 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 96 | ac_prev=bindir ;; |
| 97 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 98 | bindir="$ac_optarg" ;; |
| 99 | |
| 100 | -build | --build | --buil | --bui | --bu) |
| 101 | ac_prev=build ;; |
| 102 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 103 | build="$ac_optarg" ;; |
| 104 | |
| 105 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 106 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 107 | ac_prev=cache_file ;; |
| 108 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 109 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 110 | cache_file="$ac_optarg" ;; |
| 111 | |
| 112 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 113 | ac_prev=datadir ;; |
| 114 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 115 | | --da=*) |
| 116 | datadir="$ac_optarg" ;; |
| 117 | |
| 118 | -disable-* | --disable-*) |
| 119 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
| 120 | # Reject names that are not valid shell variable names. |
| 121 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 122 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 123 | fi |
| 124 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 125 | eval "enable_${ac_feature}=no" ;; |
| 126 | |
| 127 | -enable-* | --enable-*) |
| 128 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
| 129 | # Reject names that are not valid shell variable names. |
| 130 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 131 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 132 | fi |
| 133 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 134 | case "$ac_option" in |
| 135 | *=*) ;; |
| 136 | *) ac_optarg=yes ;; |
| 137 | esac |
| 138 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 139 | |
| 140 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 141 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 142 | | --exec | --exe | --ex) |
| 143 | ac_prev=exec_prefix ;; |
| 144 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 145 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 146 | | --exec=* | --exe=* | --ex=*) |
| 147 | exec_prefix="$ac_optarg" ;; |
| 148 | |
| 149 | -gas | --gas | --ga | --g) |
| 150 | # Obsolete; use --with-gas. |
| 151 | with_gas=yes ;; |
| 152 | |
| 153 | -help | --help | --hel | --he) |
| 154 | # Omit some internal or obsolete options to make the list less imposing. |
| 155 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 156 | cat << EOF |
| 157 | Usage: configure [options] [host] |
| 158 | Options: [defaults in brackets after descriptions] |
| 159 | Configuration: |
| 160 | --cache-file=FILE cache test results in FILE |
| 161 | --help print this message |
| 162 | --no-create do not create output files |
| 163 | --quiet, --silent do not print \`checking...' messages |
| 164 | --version print the version of autoconf that created configure |
| 165 | Directory and file names: |
| 166 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 167 | [$ac_default_prefix] |
| 168 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 169 | [same as prefix] |
| 170 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 171 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 172 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 173 | --datadir=DIR read-only architecture-independent data in DIR |
| 174 | [PREFIX/share] |
| 175 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 176 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 177 | [PREFIX/com] |
| 178 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 179 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 180 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 181 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 182 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 183 | --mandir=DIR man documentation in DIR [PREFIX/man] |
| 184 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 185 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 186 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 187 | --program-transform-name=PROGRAM |
| 188 | run sed PROGRAM on installed program names |
| 189 | EOF |
| 190 | cat << EOF |
| 191 | Host type: |
| 192 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 193 | --host=HOST configure for HOST [guessed] |
| 194 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 195 | Features and packages: |
| 196 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 197 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 198 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 199 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 200 | --x-includes=DIR X include files are in DIR |
| 201 | --x-libraries=DIR X library files are in DIR |
| 202 | EOF |
| 203 | if test -n "$ac_help"; then |
| 204 | echo "--enable and --with options recognized:$ac_help" |
| 205 | fi |
| 206 | exit 0 ;; |
| 207 | |
| 208 | -host | --host | --hos | --ho) |
| 209 | ac_prev=host ;; |
| 210 | -host=* | --host=* | --hos=* | --ho=*) |
| 211 | host="$ac_optarg" ;; |
| 212 | |
| 213 | -includedir | --includedir | --includedi | --included | --include \ |
| 214 | | --includ | --inclu | --incl | --inc) |
| 215 | ac_prev=includedir ;; |
| 216 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 217 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 218 | includedir="$ac_optarg" ;; |
| 219 | |
| 220 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 221 | ac_prev=infodir ;; |
| 222 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 223 | infodir="$ac_optarg" ;; |
| 224 | |
| 225 | -libdir | --libdir | --libdi | --libd) |
| 226 | ac_prev=libdir ;; |
| 227 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 228 | libdir="$ac_optarg" ;; |
| 229 | |
| 230 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 231 | | --libexe | --libex | --libe) |
| 232 | ac_prev=libexecdir ;; |
| 233 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 234 | | --libexe=* | --libex=* | --libe=*) |
| 235 | libexecdir="$ac_optarg" ;; |
| 236 | |
| 237 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 238 | | --localstate | --localstat | --localsta | --localst \ |
| 239 | | --locals | --local | --loca | --loc | --lo) |
| 240 | ac_prev=localstatedir ;; |
| 241 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 242 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 243 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 244 | localstatedir="$ac_optarg" ;; |
| 245 | |
| 246 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 247 | ac_prev=mandir ;; |
| 248 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 249 | mandir="$ac_optarg" ;; |
| 250 | |
| 251 | -nfp | --nfp | --nf) |
| 252 | # Obsolete; use --without-fp. |
| 253 | with_fp=no ;; |
| 254 | |
| 255 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 256 | | --no-cr | --no-c) |
| 257 | no_create=yes ;; |
| 258 | |
| 259 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 260 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 261 | no_recursion=yes ;; |
| 262 | |
| 263 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 264 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 265 | | --oldin | --oldi | --old | --ol | --o) |
| 266 | ac_prev=oldincludedir ;; |
| 267 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 268 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 269 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 270 | oldincludedir="$ac_optarg" ;; |
| 271 | |
| 272 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 273 | ac_prev=prefix ;; |
| 274 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 275 | prefix="$ac_optarg" ;; |
| 276 | |
| 277 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 278 | | --program-pre | --program-pr | --program-p) |
| 279 | ac_prev=program_prefix ;; |
| 280 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 281 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 282 | program_prefix="$ac_optarg" ;; |
| 283 | |
| 284 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 285 | | --program-suf | --program-su | --program-s) |
| 286 | ac_prev=program_suffix ;; |
| 287 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 288 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 289 | program_suffix="$ac_optarg" ;; |
| 290 | |
| 291 | -program-transform-name | --program-transform-name \ |
| 292 | | --program-transform-nam | --program-transform-na \ |
| 293 | | --program-transform-n | --program-transform- \ |
| 294 | | --program-transform | --program-transfor \ |
| 295 | | --program-transfo | --program-transf \ |
| 296 | | --program-trans | --program-tran \ |
| 297 | | --progr-tra | --program-tr | --program-t) |
| 298 | ac_prev=program_transform_name ;; |
| 299 | -program-transform-name=* | --program-transform-name=* \ |
| 300 | | --program-transform-nam=* | --program-transform-na=* \ |
| 301 | | --program-transform-n=* | --program-transform-=* \ |
| 302 | | --program-transform=* | --program-transfor=* \ |
| 303 | | --program-transfo=* | --program-transf=* \ |
| 304 | | --program-trans=* | --program-tran=* \ |
| 305 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 306 | program_transform_name="$ac_optarg" ;; |
| 307 | |
| 308 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 309 | | -silent | --silent | --silen | --sile | --sil) |
| 310 | silent=yes ;; |
| 311 | |
| 312 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 313 | ac_prev=sbindir ;; |
| 314 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 315 | | --sbi=* | --sb=*) |
| 316 | sbindir="$ac_optarg" ;; |
| 317 | |
| 318 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 319 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 320 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 321 | | --sha | --sh) |
| 322 | ac_prev=sharedstatedir ;; |
| 323 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 324 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 325 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 326 | | --sha=* | --sh=*) |
| 327 | sharedstatedir="$ac_optarg" ;; |
| 328 | |
| 329 | -site | --site | --sit) |
| 330 | ac_prev=site ;; |
| 331 | -site=* | --site=* | --sit=*) |
| 332 | site="$ac_optarg" ;; |
| 333 | |
| 334 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 335 | ac_prev=srcdir ;; |
| 336 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 337 | srcdir="$ac_optarg" ;; |
| 338 | |
| 339 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 340 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 341 | ac_prev=sysconfdir ;; |
| 342 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 343 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 344 | sysconfdir="$ac_optarg" ;; |
| 345 | |
| 346 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 347 | ac_prev=target ;; |
| 348 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 349 | target="$ac_optarg" ;; |
| 350 | |
| 351 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 352 | verbose=yes ;; |
| 353 | |
| 354 | -version | --version | --versio | --versi | --vers) |
| 355 | echo "configure generated by autoconf version 2.12.2" |
| 356 | exit 0 ;; |
| 357 | |
| 358 | -with-* | --with-*) |
| 359 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
| 360 | # Reject names that are not valid shell variable names. |
| 361 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 362 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 363 | fi |
| 364 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 365 | case "$ac_option" in |
| 366 | *=*) ;; |
| 367 | *) ac_optarg=yes ;; |
| 368 | esac |
| 369 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 370 | |
| 371 | -without-* | --without-*) |
| 372 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
| 373 | # Reject names that are not valid shell variable names. |
| 374 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 375 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 376 | fi |
| 377 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 378 | eval "with_${ac_package}=no" ;; |
| 379 | |
| 380 | --x) |
| 381 | # Obsolete; use --with-x. |
| 382 | with_x=yes ;; |
| 383 | |
| 384 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 385 | | --x-incl | --x-inc | --x-in | --x-i) |
| 386 | ac_prev=x_includes ;; |
| 387 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 388 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 389 | x_includes="$ac_optarg" ;; |
| 390 | |
| 391 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 392 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 393 | ac_prev=x_libraries ;; |
| 394 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 395 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 396 | x_libraries="$ac_optarg" ;; |
| 397 | |
| 398 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
| 399 | ;; |
| 400 | |
| 401 | *) |
| 402 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
| 403 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
| 404 | fi |
| 405 | if test "x$nonopt" != xNONE; then |
| 406 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
| 407 | fi |
| 408 | nonopt="$ac_option" |
| 409 | ;; |
| 410 | |
| 411 | esac |
| 412 | done |
| 413 | |
| 414 | if test -n "$ac_prev"; then |
| 415 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
| 416 | fi |
| 417 | |
| 418 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 419 | |
| 420 | # File descriptor usage: |
| 421 | # 0 standard input |
| 422 | # 1 file creation |
| 423 | # 2 errors and warnings |
| 424 | # 3 some systems may open it to /dev/tty |
| 425 | # 4 used on the Kubota Titan |
| 426 | # 6 checking for... messages and results |
| 427 | # 5 compiler messages saved in config.log |
| 428 | if test "$silent" = yes; then |
| 429 | exec 6>/dev/null |
| 430 | else |
| 431 | exec 6>&1 |
| 432 | fi |
| 433 | exec 5>./config.log |
| 434 | |
| 435 | echo "\ |
| 436 | This file contains any messages produced by compilers while |
| 437 | running configure, to aid debugging if configure makes a mistake. |
| 438 | " 1>&5 |
| 439 | |
| 440 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 441 | # Also quote any args containing shell metacharacters. |
| 442 | ac_configure_args= |
| 443 | for ac_arg |
| 444 | do |
| 445 | case "$ac_arg" in |
| 446 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 447 | | --no-cr | --no-c) ;; |
| 448 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 449 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 450 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 451 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 452 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
| 453 | esac |
| 454 | done |
| 455 | |
| 456 | # NLS nuisances. |
| 457 | # Only set these to C if already set. These must not be set unconditionally |
| 458 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 459 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 460 | # Non-C LC_CTYPE values break the ctype check. |
| 461 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
| 462 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 463 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 464 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
| 465 | |
| 466 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 467 | rm -rf conftest* confdefs.h |
| 468 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 469 | echo > confdefs.h |
| 470 | |
| 471 | # A filename unique to this package, relative to the directory that |
| 472 | # configure is in, which we can look for to find out if srcdir is correct. |
| 473 | ac_unique_file=as.h |
| 474 | |
| 475 | # Find the source files, if location was not specified. |
| 476 | if test -z "$srcdir"; then |
| 477 | ac_srcdir_defaulted=yes |
| 478 | # Try the directory containing this script, then its parent. |
| 479 | ac_prog=$0 |
| 480 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 481 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 482 | srcdir=$ac_confdir |
| 483 | if test ! -r $srcdir/$ac_unique_file; then |
| 484 | srcdir=.. |
| 485 | fi |
| 486 | else |
| 487 | ac_srcdir_defaulted=no |
| 488 | fi |
| 489 | if test ! -r $srcdir/$ac_unique_file; then |
| 490 | if test "$ac_srcdir_defaulted" = yes; then |
| 491 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
| 492 | else |
| 493 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
| 494 | fi |
| 495 | fi |
| 496 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 497 | |
| 498 | # Prefer explicitly selected file to automatically selected ones. |
| 499 | if test -z "$CONFIG_SITE"; then |
| 500 | if test "x$prefix" != xNONE; then |
| 501 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 502 | else |
| 503 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 504 | fi |
| 505 | fi |
| 506 | for ac_site_file in $CONFIG_SITE; do |
| 507 | if test -r "$ac_site_file"; then |
| 508 | echo "loading site script $ac_site_file" |
| 509 | . "$ac_site_file" |
| 510 | fi |
| 511 | done |
| 512 | |
| 513 | if test -r "$cache_file"; then |
| 514 | echo "loading cache $cache_file" |
| 515 | . $cache_file |
| 516 | else |
| 517 | echo "creating cache $cache_file" |
| 518 | > $cache_file |
| 519 | fi |
| 520 | |
| 521 | ac_ext=c |
| 522 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 523 | ac_cpp='$CPP $CPPFLAGS' |
| 524 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 525 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 526 | cross_compiling=$ac_cv_prog_cc_cross |
| 527 | |
| 528 | ac_exeext= |
| 529 | ac_objext=o |
| 530 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 531 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 532 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 533 | ac_n= ac_c=' |
| 534 | ' ac_t=' ' |
| 535 | else |
| 536 | ac_n=-n ac_c= ac_t= |
| 537 | fi |
| 538 | else |
| 539 | ac_n= ac_c='\c' ac_t= |
| 540 | fi |
| 541 | |
| 542 | |
| 543 | |
| 544 | ac_aux_dir= |
| 545 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 546 | if test -f $ac_dir/install-sh; then |
| 547 | ac_aux_dir=$ac_dir |
| 548 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 549 | break |
| 550 | elif test -f $ac_dir/install.sh; then |
| 551 | ac_aux_dir=$ac_dir |
| 552 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 553 | break |
| 554 | fi |
| 555 | done |
| 556 | if test -z "$ac_aux_dir"; then |
| 557 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
| 558 | fi |
| 559 | ac_config_guess=$ac_aux_dir/config.guess |
| 560 | ac_config_sub=$ac_aux_dir/config.sub |
| 561 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
| 562 | |
| 563 | |
| 564 | # Do some error checking and defaulting for the host and target type. |
| 565 | # The inputs are: |
| 566 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT |
| 567 | # |
| 568 | # The rules are: |
| 569 | # 1. You are not allowed to specify --host, --target, and nonopt at the |
| 570 | # same time. |
| 571 | # 2. Host defaults to nonopt. |
| 572 | # 3. If nonopt is not specified, then host defaults to the current host, |
| 573 | # as determined by config.guess. |
| 574 | # 4. Target and build default to nonopt. |
| 575 | # 5. If nonopt is not specified, then target and build default to host. |
| 576 | |
| 577 | # The aliases save the names the user supplied, while $host etc. |
| 578 | # will get canonicalized. |
| 579 | case $host---$target---$nonopt in |
| 580 | NONE---*---* | *---NONE---* | *---*---NONE) ;; |
| 581 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; |
| 582 | esac |
| 583 | |
| 584 | |
| 585 | # Make sure we can run config.sub. |
| 586 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
| 587 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
| 588 | fi |
| 589 | |
| 590 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
| 591 | echo "configure:592: checking host system type" >&5 |
| 592 | |
| 593 | host_alias=$host |
| 594 | case "$host_alias" in |
| 595 | NONE) |
| 596 | case $nonopt in |
| 597 | NONE) |
| 598 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
| 599 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
| 600 | fi ;; |
| 601 | *) host_alias=$nonopt ;; |
| 602 | esac ;; |
| 603 | esac |
| 604 | |
| 605 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
| 606 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 607 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 608 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 609 | echo "$ac_t""$host" 1>&6 |
| 610 | |
| 611 | echo $ac_n "checking target system type""... $ac_c" 1>&6 |
| 612 | echo "configure:613: checking target system type" >&5 |
| 613 | |
| 614 | target_alias=$target |
| 615 | case "$target_alias" in |
| 616 | NONE) |
| 617 | case $nonopt in |
| 618 | NONE) target_alias=$host_alias ;; |
| 619 | *) target_alias=$nonopt ;; |
| 620 | esac ;; |
| 621 | esac |
| 622 | |
| 623 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
| 624 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 625 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 626 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 627 | echo "$ac_t""$target" 1>&6 |
| 628 | |
| 629 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
| 630 | echo "configure:631: checking build system type" >&5 |
| 631 | |
| 632 | build_alias=$build |
| 633 | case "$build_alias" in |
| 634 | NONE) |
| 635 | case $nonopt in |
| 636 | NONE) build_alias=$host_alias ;; |
| 637 | *) build_alias=$nonopt ;; |
| 638 | esac ;; |
| 639 | esac |
| 640 | |
| 641 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
| 642 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 643 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 644 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 645 | echo "$ac_t""$build" 1>&6 |
| 646 | |
| 647 | test "$host_alias" != "$target_alias" && |
| 648 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 649 | NONENONEs,x,x, && |
| 650 | program_prefix=${target_alias}- |
| 651 | |
| 652 | |
| 653 | # Find a good install program. We prefer a C program (faster), |
| 654 | # so one script is as good as another. But avoid the broken or |
| 655 | # incompatible versions: |
| 656 | # SysV /etc/install, /usr/sbin/install |
| 657 | # SunOS /usr/etc/install |
| 658 | # IRIX /sbin/install |
| 659 | # AIX /bin/install |
| 660 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 661 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 662 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 663 | # ./install, which can be erroneously created by make from ./install.sh. |
| 664 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
| 665 | echo "configure:666: checking for a BSD compatible install" >&5 |
| 666 | if test -z "$INSTALL"; then |
| 667 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 668 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 669 | else |
| 670 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
| 671 | for ac_dir in $PATH; do |
| 672 | # Account for people who put trailing slashes in PATH elements. |
| 673 | case "$ac_dir/" in |
| 674 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
| 675 | *) |
| 676 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 677 | # Don't use installbsd from OSF since it installs stuff as root |
| 678 | # by default. |
| 679 | for ac_prog in ginstall scoinst install; do |
| 680 | if test -f $ac_dir/$ac_prog; then |
| 681 | if test $ac_prog = install && |
| 682 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
| 683 | # AIX install. It has an incompatible calling convention. |
| 684 | : |
| 685 | else |
| 686 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 687 | break 2 |
| 688 | fi |
| 689 | fi |
| 690 | done |
| 691 | ;; |
| 692 | esac |
| 693 | done |
| 694 | IFS="$ac_save_IFS" |
| 695 | |
| 696 | fi |
| 697 | if test "${ac_cv_path_install+set}" = set; then |
| 698 | INSTALL="$ac_cv_path_install" |
| 699 | else |
| 700 | # As a last resort, use the slow shell script. We don't cache a |
| 701 | # path for INSTALL within a source directory, because that will |
| 702 | # break other packages using the cache if that directory is |
| 703 | # removed, or if the path is relative. |
| 704 | INSTALL="$ac_install_sh" |
| 705 | fi |
| 706 | fi |
| 707 | echo "$ac_t""$INSTALL" 1>&6 |
| 708 | |
| 709 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 710 | # It thinks the first close brace ends the variable substitution. |
| 711 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 712 | |
| 713 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 714 | |
| 715 | |
| 716 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
| 717 | |
| 718 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
| 719 | echo "configure:720: checking whether build environment is sane" >&5 |
| 720 | # Just in case |
| 721 | sleep 1 |
| 722 | echo timestamp > conftestfile |
| 723 | # Do `set' in a subshell so we don't clobber the current shell's |
| 724 | # arguments. Must try -L first in case configure is actually a |
| 725 | # symlink; some systems play weird games with the mod time of symlinks |
| 726 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 727 | # directory). |
| 728 | if ( |
| 729 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
| 730 | if test "$*" = "X"; then |
| 731 | # -L didn't work. |
| 732 | set X `ls -t $srcdir/configure conftestfile` |
| 733 | fi |
| 734 | if test "$*" != "X $srcdir/configure conftestfile" \ |
| 735 | && test "$*" != "X conftestfile $srcdir/configure"; then |
| 736 | |
| 737 | # If neither matched, then we have a broken ls. This can happen |
| 738 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 739 | # broken ls alias from the environment. This has actually |
| 740 | # happened. Such a system could not be considered "sane". |
| 741 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken |
| 742 | alias in your environment" 1>&2; exit 1; } |
| 743 | fi |
| 744 | |
| 745 | test "$2" = conftestfile |
| 746 | ) |
| 747 | then |
| 748 | # Ok. |
| 749 | : |
| 750 | else |
| 751 | { echo "configure: error: newly created file is older than distributed files! |
| 752 | Check your system clock" 1>&2; exit 1; } |
| 753 | fi |
| 754 | rm -f conftest* |
| 755 | echo "$ac_t""yes" 1>&6 |
| 756 | if test "$program_transform_name" = s,x,x,; then |
| 757 | program_transform_name= |
| 758 | else |
| 759 | # Double any \ or $. echo might interpret backslashes. |
| 760 | cat <<\EOF_SED > conftestsed |
| 761 | s,\\,\\\\,g; s,\$,$$,g |
| 762 | EOF_SED |
| 763 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" |
| 764 | rm -f conftestsed |
| 765 | fi |
| 766 | test "$program_prefix" != NONE && |
| 767 | program_transform_name="s,^,${program_prefix},; $program_transform_name" |
| 768 | # Use a double $ so make ignores it. |
| 769 | test "$program_suffix" != NONE && |
| 770 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" |
| 771 | |
| 772 | # sed with no file args requires a program. |
| 773 | test "$program_transform_name" = "" && program_transform_name="s,x,x," |
| 774 | |
| 775 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
| 776 | echo "configure:777: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
| 777 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
| 778 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
| 779 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 780 | else |
| 781 | cat > conftestmake <<\EOF |
| 782 | all: |
| 783 | @echo 'ac_maketemp="${MAKE}"' |
| 784 | EOF |
| 785 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 786 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
| 787 | if test -n "$ac_maketemp"; then |
| 788 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 789 | else |
| 790 | eval ac_cv_prog_make_${ac_make}_set=no |
| 791 | fi |
| 792 | rm -f conftestmake |
| 793 | fi |
| 794 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 795 | echo "$ac_t""yes" 1>&6 |
| 796 | SET_MAKE= |
| 797 | else |
| 798 | echo "$ac_t""no" 1>&6 |
| 799 | SET_MAKE="MAKE=${MAKE-make}" |
| 800 | fi |
| 801 | |
| 802 | |
| 803 | PACKAGE=gas |
| 804 | |
| 805 | VERSION=2.9.4 |
| 806 | |
| 807 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
| 808 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } |
| 809 | fi |
| 810 | cat >> confdefs.h <<EOF |
| 811 | #define PACKAGE "$PACKAGE" |
| 812 | EOF |
| 813 | |
| 814 | cat >> confdefs.h <<EOF |
| 815 | #define VERSION "$VERSION" |
| 816 | EOF |
| 817 | |
| 818 | |
| 819 | |
| 820 | missing_dir=`cd $ac_aux_dir && pwd` |
| 821 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 |
| 822 | echo "configure:823: checking for working aclocal" >&5 |
| 823 | # Run test in a subshell; some versions of sh will print an error if |
| 824 | # an executable is not found, even if stderr is redirected. |
| 825 | # Redirect stdin to placate older versions of autoconf. Sigh. |
| 826 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then |
| 827 | ACLOCAL=aclocal |
| 828 | echo "$ac_t""found" 1>&6 |
| 829 | else |
| 830 | ACLOCAL="$missing_dir/missing aclocal" |
| 831 | echo "$ac_t""missing" 1>&6 |
| 832 | fi |
| 833 | |
| 834 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 |
| 835 | echo "configure:836: checking for working autoconf" >&5 |
| 836 | # Run test in a subshell; some versions of sh will print an error if |
| 837 | # an executable is not found, even if stderr is redirected. |
| 838 | # Redirect stdin to placate older versions of autoconf. Sigh. |
| 839 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
| 840 | AUTOCONF=autoconf |
| 841 | echo "$ac_t""found" 1>&6 |
| 842 | else |
| 843 | AUTOCONF="$missing_dir/missing autoconf" |
| 844 | echo "$ac_t""missing" 1>&6 |
| 845 | fi |
| 846 | |
| 847 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 |
| 848 | echo "configure:849: checking for working automake" >&5 |
| 849 | # Run test in a subshell; some versions of sh will print an error if |
| 850 | # an executable is not found, even if stderr is redirected. |
| 851 | # Redirect stdin to placate older versions of autoconf. Sigh. |
| 852 | if (automake --version) < /dev/null > /dev/null 2>&1; then |
| 853 | AUTOMAKE=automake |
| 854 | echo "$ac_t""found" 1>&6 |
| 855 | else |
| 856 | AUTOMAKE="$missing_dir/missing automake" |
| 857 | echo "$ac_t""missing" 1>&6 |
| 858 | fi |
| 859 | |
| 860 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 |
| 861 | echo "configure:862: checking for working autoheader" >&5 |
| 862 | # Run test in a subshell; some versions of sh will print an error if |
| 863 | # an executable is not found, even if stderr is redirected. |
| 864 | # Redirect stdin to placate older versions of autoconf. Sigh. |
| 865 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
| 866 | AUTOHEADER=autoheader |
| 867 | echo "$ac_t""found" 1>&6 |
| 868 | else |
| 869 | AUTOHEADER="$missing_dir/missing autoheader" |
| 870 | echo "$ac_t""missing" 1>&6 |
| 871 | fi |
| 872 | |
| 873 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 |
| 874 | echo "configure:875: checking for working makeinfo" >&5 |
| 875 | # Run test in a subshell; some versions of sh will print an error if |
| 876 | # an executable is not found, even if stderr is redirected. |
| 877 | # Redirect stdin to placate older versions of autoconf. Sigh. |
| 878 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
| 879 | MAKEINFO=makeinfo |
| 880 | echo "$ac_t""found" 1>&6 |
| 881 | else |
| 882 | MAKEINFO="$missing_dir/missing makeinfo" |
| 883 | echo "$ac_t""missing" 1>&6 |
| 884 | fi |
| 885 | |
| 886 | |
| 887 | |
| 888 | # Check whether --enable-shared or --disable-shared was given. |
| 889 | if test "${enable_shared+set}" = set; then |
| 890 | enableval="$enable_shared" |
| 891 | p=${PACKAGE-default} |
| 892 | case "$enableval" in |
| 893 | yes) enable_shared=yes ;; |
| 894 | no) enable_shared=no ;; |
| 895 | *) |
| 896 | enable_shared=no |
| 897 | # Look at the argument we got. We use all the common list separators. |
| 898 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 899 | for pkg in $enableval; do |
| 900 | if test "X$pkg" = "X$p"; then |
| 901 | enable_shared=yes |
| 902 | fi |
| 903 | done |
| 904 | IFS="$ac_save_ifs" |
| 905 | ;; |
| 906 | esac |
| 907 | else |
| 908 | enable_shared=yes |
| 909 | fi |
| 910 | |
| 911 | # Check whether --enable-static or --disable-static was given. |
| 912 | if test "${enable_static+set}" = set; then |
| 913 | enableval="$enable_static" |
| 914 | p=${PACKAGE-default} |
| 915 | case "$enableval" in |
| 916 | yes) enable_static=yes ;; |
| 917 | no) enable_static=no ;; |
| 918 | *) |
| 919 | enable_static=no |
| 920 | # Look at the argument we got. We use all the common list separators. |
| 921 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 922 | for pkg in $enableval; do |
| 923 | if test "X$pkg" = "X$p"; then |
| 924 | enable_static=yes |
| 925 | fi |
| 926 | done |
| 927 | IFS="$ac_save_ifs" |
| 928 | ;; |
| 929 | esac |
| 930 | else |
| 931 | enable_static=yes |
| 932 | fi |
| 933 | |
| 934 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 935 | set dummy ranlib; ac_word=$2 |
| 936 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 937 | echo "configure:938: checking for $ac_word" >&5 |
| 938 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 939 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 940 | else |
| 941 | if test -n "$RANLIB"; then |
| 942 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 943 | else |
| 944 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 945 | for ac_dir in $PATH; do |
| 946 | test -z "$ac_dir" && ac_dir=. |
| 947 | if test -f $ac_dir/$ac_word; then |
| 948 | ac_cv_prog_RANLIB="ranlib" |
| 949 | break |
| 950 | fi |
| 951 | done |
| 952 | IFS="$ac_save_ifs" |
| 953 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
| 954 | fi |
| 955 | fi |
| 956 | RANLIB="$ac_cv_prog_RANLIB" |
| 957 | if test -n "$RANLIB"; then |
| 958 | echo "$ac_t""$RANLIB" 1>&6 |
| 959 | else |
| 960 | echo "$ac_t""no" 1>&6 |
| 961 | fi |
| 962 | |
| 963 | # Extract the first word of "gcc", so it can be a program name with args. |
| 964 | set dummy gcc; ac_word=$2 |
| 965 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 966 | echo "configure:967: checking for $ac_word" >&5 |
| 967 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 968 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 969 | else |
| 970 | if test -n "$CC"; then |
| 971 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 972 | else |
| 973 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 974 | for ac_dir in $PATH; do |
| 975 | test -z "$ac_dir" && ac_dir=. |
| 976 | if test -f $ac_dir/$ac_word; then |
| 977 | ac_cv_prog_CC="gcc" |
| 978 | break |
| 979 | fi |
| 980 | done |
| 981 | IFS="$ac_save_ifs" |
| 982 | fi |
| 983 | fi |
| 984 | CC="$ac_cv_prog_CC" |
| 985 | if test -n "$CC"; then |
| 986 | echo "$ac_t""$CC" 1>&6 |
| 987 | else |
| 988 | echo "$ac_t""no" 1>&6 |
| 989 | fi |
| 990 | |
| 991 | if test -z "$CC"; then |
| 992 | # Extract the first word of "cc", so it can be a program name with args. |
| 993 | set dummy cc; ac_word=$2 |
| 994 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 995 | echo "configure:996: checking for $ac_word" >&5 |
| 996 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 997 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 998 | else |
| 999 | if test -n "$CC"; then |
| 1000 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1001 | else |
| 1002 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1003 | ac_prog_rejected=no |
| 1004 | for ac_dir in $PATH; do |
| 1005 | test -z "$ac_dir" && ac_dir=. |
| 1006 | if test -f $ac_dir/$ac_word; then |
| 1007 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 1008 | ac_prog_rejected=yes |
| 1009 | continue |
| 1010 | fi |
| 1011 | ac_cv_prog_CC="cc" |
| 1012 | break |
| 1013 | fi |
| 1014 | done |
| 1015 | IFS="$ac_save_ifs" |
| 1016 | if test $ac_prog_rejected = yes; then |
| 1017 | # We found a bogon in the path, so make sure we never use it. |
| 1018 | set dummy $ac_cv_prog_CC |
| 1019 | shift |
| 1020 | if test $# -gt 0; then |
| 1021 | # We chose a different compiler from the bogus one. |
| 1022 | # However, it has the same basename, so the bogon will be chosen |
| 1023 | # first if we set CC to just the basename; use the full file name. |
| 1024 | shift |
| 1025 | set dummy "$ac_dir/$ac_word" "$@" |
| 1026 | shift |
| 1027 | ac_cv_prog_CC="$@" |
| 1028 | fi |
| 1029 | fi |
| 1030 | fi |
| 1031 | fi |
| 1032 | CC="$ac_cv_prog_CC" |
| 1033 | if test -n "$CC"; then |
| 1034 | echo "$ac_t""$CC" 1>&6 |
| 1035 | else |
| 1036 | echo "$ac_t""no" 1>&6 |
| 1037 | fi |
| 1038 | |
| 1039 | if test -z "$CC"; then |
| 1040 | case "`uname -s`" in |
| 1041 | *win32* | *WIN32*) |
| 1042 | # Extract the first word of "cl", so it can be a program name with args. |
| 1043 | set dummy cl; ac_word=$2 |
| 1044 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1045 | echo "configure:1046: checking for $ac_word" >&5 |
| 1046 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 1047 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1048 | else |
| 1049 | if test -n "$CC"; then |
| 1050 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1051 | else |
| 1052 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1053 | for ac_dir in $PATH; do |
| 1054 | test -z "$ac_dir" && ac_dir=. |
| 1055 | if test -f $ac_dir/$ac_word; then |
| 1056 | ac_cv_prog_CC="cl" |
| 1057 | break |
| 1058 | fi |
| 1059 | done |
| 1060 | IFS="$ac_save_ifs" |
| 1061 | fi |
| 1062 | fi |
| 1063 | CC="$ac_cv_prog_CC" |
| 1064 | if test -n "$CC"; then |
| 1065 | echo "$ac_t""$CC" 1>&6 |
| 1066 | else |
| 1067 | echo "$ac_t""no" 1>&6 |
| 1068 | fi |
| 1069 | ;; |
| 1070 | esac |
| 1071 | fi |
| 1072 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 1073 | fi |
| 1074 | |
| 1075 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
| 1076 | echo "configure:1077: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
| 1077 | |
| 1078 | ac_ext=c |
| 1079 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 1080 | ac_cpp='$CPP $CPPFLAGS' |
| 1081 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 1082 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 1083 | cross_compiling=$ac_cv_prog_cc_cross |
| 1084 | |
| 1085 | cat > conftest.$ac_ext <<EOF |
| 1086 | #line 1087 "configure" |
| 1087 | #include "confdefs.h" |
| 1088 | main(){return(0);} |
| 1089 | EOF |
| 1090 | if { (eval echo configure:1091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1091 | ac_cv_prog_cc_works=yes |
| 1092 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 1093 | if (./conftest; exit) 2>/dev/null; then |
| 1094 | ac_cv_prog_cc_cross=no |
| 1095 | else |
| 1096 | ac_cv_prog_cc_cross=yes |
| 1097 | fi |
| 1098 | else |
| 1099 | echo "configure: failed program was:" >&5 |
| 1100 | cat conftest.$ac_ext >&5 |
| 1101 | ac_cv_prog_cc_works=no |
| 1102 | fi |
| 1103 | rm -fr conftest* |
| 1104 | |
| 1105 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 1106 | if test $ac_cv_prog_cc_works = no; then |
| 1107 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 1108 | fi |
| 1109 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
| 1110 | echo "configure:1111: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
| 1111 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 1112 | cross_compiling=$ac_cv_prog_cc_cross |
| 1113 | |
| 1114 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
| 1115 | echo "configure:1116: checking whether we are using GNU C" >&5 |
| 1116 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 1117 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1118 | else |
| 1119 | cat > conftest.c <<EOF |
| 1120 | #ifdef __GNUC__ |
| 1121 | yes; |
| 1122 | #endif |
| 1123 | EOF |
| 1124 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
| 1125 | ac_cv_prog_gcc=yes |
| 1126 | else |
| 1127 | ac_cv_prog_gcc=no |
| 1128 | fi |
| 1129 | fi |
| 1130 | |
| 1131 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
| 1132 | |
| 1133 | if test $ac_cv_prog_gcc = yes; then |
| 1134 | GCC=yes |
| 1135 | else |
| 1136 | GCC= |
| 1137 | fi |
| 1138 | |
| 1139 | ac_test_CFLAGS="${CFLAGS+set}" |
| 1140 | ac_save_CFLAGS="$CFLAGS" |
| 1141 | CFLAGS= |
| 1142 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
| 1143 | echo "configure:1144: checking whether ${CC-cc} accepts -g" >&5 |
| 1144 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
| 1145 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1146 | else |
| 1147 | echo 'void f(){}' > conftest.c |
| 1148 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
| 1149 | ac_cv_prog_cc_g=yes |
| 1150 | else |
| 1151 | ac_cv_prog_cc_g=no |
| 1152 | fi |
| 1153 | rm -f conftest* |
| 1154 | |
| 1155 | fi |
| 1156 | |
| 1157 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
| 1158 | if test "$ac_test_CFLAGS" = set; then |
| 1159 | CFLAGS="$ac_save_CFLAGS" |
| 1160 | elif test $ac_cv_prog_cc_g = yes; then |
| 1161 | if test "$GCC" = yes; then |
| 1162 | CFLAGS="-g -O2" |
| 1163 | else |
| 1164 | CFLAGS="-g" |
| 1165 | fi |
| 1166 | else |
| 1167 | if test "$GCC" = yes; then |
| 1168 | CFLAGS="-O2" |
| 1169 | else |
| 1170 | CFLAGS= |
| 1171 | fi |
| 1172 | fi |
| 1173 | |
| 1174 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 1175 | if test "${with_gnu_ld+set}" = set; then |
| 1176 | withval="$with_gnu_ld" |
| 1177 | test "$withval" = no || with_gnu_ld=yes |
| 1178 | else |
| 1179 | with_gnu_ld=no |
| 1180 | fi |
| 1181 | |
| 1182 | |
| 1183 | ac_prog=ld |
| 1184 | if test "$ac_cv_prog_gcc" = yes; then |
| 1185 | # Check if gcc -print-prog-name=ld gives a path. |
| 1186 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 |
| 1187 | echo "configure:1188: checking for ld used by GCC" >&5 |
| 1188 | ac_prog=`($CC -print-prog-name=ld) 2>&5` |
| 1189 | case "$ac_prog" in |
| 1190 | # Accept absolute paths. |
| 1191 | /* | [A-Za-z]:\\*) |
| 1192 | test -z "$LD" && LD="$ac_prog" |
| 1193 | ;; |
| 1194 | "") |
| 1195 | # If it fails, then pretend we aren't using GCC. |
| 1196 | ac_prog=ld |
| 1197 | ;; |
| 1198 | *) |
| 1199 | # If it is relative, then search for the first ld in PATH. |
| 1200 | with_gnu_ld=unknown |
| 1201 | ;; |
| 1202 | esac |
| 1203 | elif test "$with_gnu_ld" = yes; then |
| 1204 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 |
| 1205 | echo "configure:1206: checking for GNU ld" >&5 |
| 1206 | else |
| 1207 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 |
| 1208 | echo "configure:1209: checking for non-GNU ld" >&5 |
| 1209 | fi |
| 1210 | if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then |
| 1211 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1212 | else |
| 1213 | if test -z "$LD"; then |
| 1214 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1215 | for ac_dir in $PATH; do |
| 1216 | test -z "$ac_dir" && ac_dir=. |
| 1217 | if test -f "$ac_dir/$ac_prog"; then |
| 1218 | ac_cv_path_LD="$ac_dir/$ac_prog" |
| 1219 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 1220 | # but apparently some GNU ld's only accept -v. |
| 1221 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 1222 | if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
| 1223 | test "$with_gnu_ld" != no && break |
| 1224 | else |
| 1225 | test "$with_gnu_ld" != yes && break |
| 1226 | fi |
| 1227 | fi |
| 1228 | done |
| 1229 | IFS="$ac_save_ifs" |
| 1230 | else |
| 1231 | ac_cv_path_LD="$LD" # Let the user override the test with a path. |
| 1232 | fi |
| 1233 | fi |
| 1234 | |
| 1235 | LD="$ac_cv_path_LD" |
| 1236 | if test -n "$LD"; then |
| 1237 | echo "$ac_t""$LD" 1>&6 |
| 1238 | else |
| 1239 | echo "$ac_t""no" 1>&6 |
| 1240 | fi |
| 1241 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } |
| 1242 | |
| 1243 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 |
| 1244 | echo "configure:1245: checking if the linker ($LD) is GNU ld" >&5 |
| 1245 | if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then |
| 1246 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1247 | else |
| 1248 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 1249 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
| 1250 | ac_cv_prog_gnu_ld=yes |
| 1251 | else |
| 1252 | ac_cv_prog_gnu_ld=no |
| 1253 | fi |
| 1254 | fi |
| 1255 | |
| 1256 | echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 |
| 1257 | |
| 1258 | |
| 1259 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 |
| 1260 | echo "configure:1261: checking for BSD-compatible nm" >&5 |
| 1261 | if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then |
| 1262 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1263 | else |
| 1264 | if test -n "$NM"; then |
| 1265 | # Let the user override the test. |
| 1266 | ac_cv_path_NM="$NM" |
| 1267 | else |
| 1268 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1269 | for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do |
| 1270 | test -z "$ac_dir" && ac_dir=. |
| 1271 | if test -f $ac_dir/nm; then |
| 1272 | # Check to see if the nm accepts a BSD-compat flag. |
| 1273 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 1274 | # nm: unknown option "B" ignored |
| 1275 | if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
| 1276 | ac_cv_path_NM="$ac_dir/nm -B" |
| 1277 | elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
| 1278 | ac_cv_path_NM="$ac_dir/nm -p" |
| 1279 | else |
| 1280 | ac_cv_path_NM="$ac_dir/nm" |
| 1281 | fi |
| 1282 | break |
| 1283 | fi |
| 1284 | done |
| 1285 | IFS="$ac_save_ifs" |
| 1286 | test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm |
| 1287 | fi |
| 1288 | fi |
| 1289 | |
| 1290 | NM="$ac_cv_path_NM" |
| 1291 | echo "$ac_t""$NM" 1>&6 |
| 1292 | |
| 1293 | |
| 1294 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
| 1295 | echo "configure:1296: checking whether ln -s works" >&5 |
| 1296 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
| 1297 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1298 | else |
| 1299 | rm -f conftestdata |
| 1300 | if ln -s X conftestdata 2>/dev/null |
| 1301 | then |
| 1302 | rm -f conftestdata |
| 1303 | ac_cv_prog_LN_S="ln -s" |
| 1304 | else |
| 1305 | ac_cv_prog_LN_S=ln |
| 1306 | fi |
| 1307 | fi |
| 1308 | LN_S="$ac_cv_prog_LN_S" |
| 1309 | if test "$ac_cv_prog_LN_S" = "ln -s"; then |
| 1310 | echo "$ac_t""yes" 1>&6 |
| 1311 | else |
| 1312 | echo "$ac_t""no" 1>&6 |
| 1313 | fi |
| 1314 | |
| 1315 | if test $host != $build; then |
| 1316 | ac_tool_prefix=${host_alias}- |
| 1317 | else |
| 1318 | ac_tool_prefix= |
| 1319 | fi |
| 1320 | |
| 1321 | # Always use our own libtool. |
| 1322 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 1323 | |
| 1324 | # Check for any special flags to pass to ltconfig. |
| 1325 | libtool_flags= |
| 1326 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" |
| 1327 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" |
| 1328 | test "$silent" = yes && libtool_flags="$libtool_flags --silent" |
| 1329 | test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" |
| 1330 | test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" |
| 1331 | |
| 1332 | # Some flags need to be propagated to the compiler or linker for good |
| 1333 | # libtool support. |
| 1334 | case "$host" in |
| 1335 | *-*-irix6*) |
| 1336 | # Find out which ABI we are using. |
| 1337 | echo '#line 1338 "configure"' > conftest.$ac_ext |
| 1338 | if { (eval echo configure:1339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1339 | case "`/usr/bin/file conftest.o`" in |
| 1340 | *32-bit*) |
| 1341 | LD="${LD-ld} -32" |
| 1342 | ;; |
| 1343 | *N32*) |
| 1344 | LD="${LD-ld} -n32" |
| 1345 | ;; |
| 1346 | *64-bit*) |
| 1347 | LD="${LD-ld} -64" |
| 1348 | ;; |
| 1349 | esac |
| 1350 | fi |
| 1351 | rm -rf conftest* |
| 1352 | ;; |
| 1353 | |
| 1354 | *-*-sco3.2v5*) |
| 1355 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 1356 | CFLAGS="$CFLAGS -belf" |
| 1357 | ;; |
| 1358 | |
| 1359 | *-*-cygwin32*) |
| 1360 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 1361 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 1362 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1363 | echo "configure:1364: checking for $ac_word" >&5 |
| 1364 | if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then |
| 1365 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1366 | else |
| 1367 | if test -n "$DLLTOOL"; then |
| 1368 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 1369 | else |
| 1370 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1371 | for ac_dir in $PATH; do |
| 1372 | test -z "$ac_dir" && ac_dir=. |
| 1373 | if test -f $ac_dir/$ac_word; then |
| 1374 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 1375 | break |
| 1376 | fi |
| 1377 | done |
| 1378 | IFS="$ac_save_ifs" |
| 1379 | fi |
| 1380 | fi |
| 1381 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 1382 | if test -n "$DLLTOOL"; then |
| 1383 | echo "$ac_t""$DLLTOOL" 1>&6 |
| 1384 | else |
| 1385 | echo "$ac_t""no" 1>&6 |
| 1386 | fi |
| 1387 | |
| 1388 | |
| 1389 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 1390 | if test -n "$ac_tool_prefix"; then |
| 1391 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 1392 | set dummy dlltool; ac_word=$2 |
| 1393 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1394 | echo "configure:1395: checking for $ac_word" >&5 |
| 1395 | if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then |
| 1396 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1397 | else |
| 1398 | if test -n "$DLLTOOL"; then |
| 1399 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 1400 | else |
| 1401 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1402 | for ac_dir in $PATH; do |
| 1403 | test -z "$ac_dir" && ac_dir=. |
| 1404 | if test -f $ac_dir/$ac_word; then |
| 1405 | ac_cv_prog_DLLTOOL="dlltool" |
| 1406 | break |
| 1407 | fi |
| 1408 | done |
| 1409 | IFS="$ac_save_ifs" |
| 1410 | test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false" |
| 1411 | fi |
| 1412 | fi |
| 1413 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 1414 | if test -n "$DLLTOOL"; then |
| 1415 | echo "$ac_t""$DLLTOOL" 1>&6 |
| 1416 | else |
| 1417 | echo "$ac_t""no" 1>&6 |
| 1418 | fi |
| 1419 | |
| 1420 | else |
| 1421 | DLLTOOL="false" |
| 1422 | fi |
| 1423 | fi |
| 1424 | |
| 1425 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. |
| 1426 | set dummy ${ac_tool_prefix}as; ac_word=$2 |
| 1427 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1428 | echo "configure:1429: checking for $ac_word" >&5 |
| 1429 | if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then |
| 1430 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1431 | else |
| 1432 | if test -n "$AS"; then |
| 1433 | ac_cv_prog_AS="$AS" # Let the user override the test. |
| 1434 | else |
| 1435 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1436 | for ac_dir in $PATH; do |
| 1437 | test -z "$ac_dir" && ac_dir=. |
| 1438 | if test -f $ac_dir/$ac_word; then |
| 1439 | ac_cv_prog_AS="${ac_tool_prefix}as" |
| 1440 | break |
| 1441 | fi |
| 1442 | done |
| 1443 | IFS="$ac_save_ifs" |
| 1444 | fi |
| 1445 | fi |
| 1446 | AS="$ac_cv_prog_AS" |
| 1447 | if test -n "$AS"; then |
| 1448 | echo "$ac_t""$AS" 1>&6 |
| 1449 | else |
| 1450 | echo "$ac_t""no" 1>&6 |
| 1451 | fi |
| 1452 | |
| 1453 | |
| 1454 | if test -z "$ac_cv_prog_AS"; then |
| 1455 | if test -n "$ac_tool_prefix"; then |
| 1456 | # Extract the first word of "as", so it can be a program name with args. |
| 1457 | set dummy as; ac_word=$2 |
| 1458 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1459 | echo "configure:1460: checking for $ac_word" >&5 |
| 1460 | if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then |
| 1461 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1462 | else |
| 1463 | if test -n "$AS"; then |
| 1464 | ac_cv_prog_AS="$AS" # Let the user override the test. |
| 1465 | else |
| 1466 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1467 | for ac_dir in $PATH; do |
| 1468 | test -z "$ac_dir" && ac_dir=. |
| 1469 | if test -f $ac_dir/$ac_word; then |
| 1470 | ac_cv_prog_AS="as" |
| 1471 | break |
| 1472 | fi |
| 1473 | done |
| 1474 | IFS="$ac_save_ifs" |
| 1475 | test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false" |
| 1476 | fi |
| 1477 | fi |
| 1478 | AS="$ac_cv_prog_AS" |
| 1479 | if test -n "$AS"; then |
| 1480 | echo "$ac_t""$AS" 1>&6 |
| 1481 | else |
| 1482 | echo "$ac_t""no" 1>&6 |
| 1483 | fi |
| 1484 | |
| 1485 | else |
| 1486 | AS="false" |
| 1487 | fi |
| 1488 | fi |
| 1489 | |
| 1490 | |
| 1491 | ;; |
| 1492 | |
| 1493 | esac |
| 1494 | |
| 1495 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
| 1496 | CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
| 1497 | LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \ |
| 1498 | DLLTOOL="$DLLTOOL" AS="$AS" \ |
| 1499 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
| 1500 | $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \ |
| 1501 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } |
| 1502 | |
| 1503 | # Redirect the config.log output again, so that the ltconfig log is not |
| 1504 | # clobbered by the next message. |
| 1505 | exec 5>>./config.log |
| 1506 | |
| 1507 | |
| 1508 | user_bfd_gas= |
| 1509 | # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given. |
| 1510 | if test "${enable_bfd_assembler+set}" = set; then |
| 1511 | enableval="$enable_bfd_assembler" |
| 1512 | case "${enableval}" in |
| 1513 | yes) need_bfd=yes user_bfd_gas=yes ;; |
| 1514 | no) user_bfd_gas=no ;; |
| 1515 | *) { echo "configure: error: bad value ${enableval} given for bfd-assembler option" 1>&2; exit 1; } ;; |
| 1516 | esac |
| 1517 | fi |
| 1518 | # Check whether --enable-targets or --disable-targets was given. |
| 1519 | if test "${enable_targets+set}" = set; then |
| 1520 | enableval="$enable_targets" |
| 1521 | case "${enableval}" in |
| 1522 | yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; } |
| 1523 | ;; |
| 1524 | no) enable_targets= ;; |
| 1525 | *) enable_targets=$enableval ;; |
| 1526 | esac |
| 1527 | fi |
| 1528 | # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given. |
| 1529 | if test "${enable_commonbfdlib+set}" = set; then |
| 1530 | enableval="$enable_commonbfdlib" |
| 1531 | case "${enableval}" in |
| 1532 | yes) commonbfdlib=true ;; |
| 1533 | no) commonbfdlib=false ;; |
| 1534 | *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;; |
| 1535 | esac |
| 1536 | fi |
| 1537 | |
| 1538 | # Generate a header file |
| 1539 | |
| 1540 | |
| 1541 | |
| 1542 | |
| 1543 | te_file=generic |
| 1544 | |
| 1545 | # Makefile target for installing gas in $(tooldir)/bin. |
| 1546 | install_tooldir=install-exec-tooldir |
| 1547 | |
| 1548 | canon_targets="" |
| 1549 | if test -n "$enable_targets" ; then |
| 1550 | for t in `echo $enable_targets | sed 's/,/ /g'`; do |
| 1551 | result=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $t 2>/dev/null` |
| 1552 | if test -n "$result" ; then |
| 1553 | canon_targets="$canon_targets $result" |
| 1554 | # else |
| 1555 | # # Permit "all", etc. We don't support it yet though. |
| 1556 | # canon_targets="$canon_targets $t" |
| 1557 | fi |
| 1558 | done |
| 1559 | _gas_uniq_list="$canon_targets" |
| 1560 | _gas_uniq_newlist="" |
| 1561 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do |
| 1562 | case $_gas_uniq_i in |
| 1563 | _gas_uniq_dummy) ;; |
| 1564 | *) case " $_gas_uniq_newlist " in |
| 1565 | *" $_gas_uniq_i "*) ;; |
| 1566 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; |
| 1567 | esac ;; |
| 1568 | esac |
| 1569 | done |
| 1570 | canon_targets=$_gas_uniq_newlist |
| 1571 | |
| 1572 | fi |
| 1573 | |
| 1574 | emulations="" |
| 1575 | |
| 1576 | for this_target in $target $canon_targets ; do |
| 1577 | |
| 1578 | eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'` |
| 1579 | |
| 1580 | # check for architecture variants |
| 1581 | arch= |
| 1582 | endian= |
| 1583 | case ${cpu} in |
| 1584 | alpha*) cpu_type=alpha ;; |
| 1585 | armeb) cpu_type=arm endian=big ;; |
| 1586 | arm*) cpu_type=arm endian=little ;; |
| 1587 | thumb*) cpu_type=arm endian=little ;; |
| 1588 | hppa*) cpu_type=hppa ;; |
| 1589 | i[456]86) cpu_type=i386 ;; |
| 1590 | m680[012346]0) cpu_type=m68k ;; |
| 1591 | m68008) cpu_type=m68k ;; |
| 1592 | m683??) cpu_type=m68k ;; |
| 1593 | m5200) cpu_type=m68k ;; |
| 1594 | m8*) cpu_type=m88k ;; |
| 1595 | mips*el) cpu_type=mips endian=little ;; |
| 1596 | # start-sanitize-r5900 |
| 1597 | mips*5900*) cpu_type=mips endian=little ;; |
| 1598 | # end-sanitize-r5900 |
| 1599 | mips*) cpu_type=mips endian=big ;; |
| 1600 | powerpcle*) cpu_type=ppc endian=little ;; |
| 1601 | powerpc*) cpu_type=ppc endian=big ;; |
| 1602 | rs6000*) cpu_type=ppc ;; |
| 1603 | sparclite*) cpu_type=sparc arch=sparclite ;; |
| 1604 | sparclet*) cpu_type=sparc arch=sparclet ;; |
| 1605 | sparc64*) cpu_type=sparc arch=v9-64 ;; |
| 1606 | sparc86x*) cpu_type=sparc arch=sparc86x ;; |
| 1607 | sparc*) cpu_type=sparc arch=sparclite ;; # ??? See tc-sparc.c. |
| 1608 | v850*) cpu_type=v850 ;; |
| 1609 | *) cpu_type=${cpu} ;; |
| 1610 | esac |
| 1611 | |
| 1612 | if test ${this_target} = $target ; then |
| 1613 | target_cpu_type=${cpu_type} |
| 1614 | if test x${endian} = xbig; then |
| 1615 | cat >> confdefs.h <<\EOF |
| 1616 | #define TARGET_BYTES_BIG_ENDIAN 1 |
| 1617 | EOF |
| 1618 | |
| 1619 | elif test x${endian} = xlittle; then |
| 1620 | cat >> confdefs.h <<\EOF |
| 1621 | #define TARGET_BYTES_BIG_ENDIAN 0 |
| 1622 | EOF |
| 1623 | |
| 1624 | fi |
| 1625 | elif test ${target_cpu_type} != ${cpu_type} ; then |
| 1626 | continue |
| 1627 | fi |
| 1628 | |
| 1629 | generic_target=${cpu_type}-$vendor-$os |
| 1630 | dev=no |
| 1631 | bfd_gas=no |
| 1632 | em=generic |
| 1633 | |
| 1634 | # assign object format |
| 1635 | case ${generic_target} in |
| 1636 | a29k-*-coff) fmt=coff ;; |
| 1637 | a29k-amd-udi) fmt=coff ;; |
| 1638 | a29k-amd-ebmon) fmt=coff ;; |
| 1639 | a29k-nyu-sym1) fmt=coff ;; |
| 1640 | a29k-*-vxworks*) fmt=coff ;; |
| 1641 | |
| 1642 | alpha*-*-*vms*) fmt=evax ;; |
| 1643 | alpha*-*-netware*) fmt=ecoff ;; |
| 1644 | alpha*-*-openbsd*) fmt=ecoff ;; |
| 1645 | alpha*-*-osf*) fmt=ecoff ;; |
| 1646 | alpha*-*-linuxecoff*) fmt=ecoff ;; |
| 1647 | alpha*-*-linux-gnu*) fmt=elf em=linux ;; |
| 1648 | alpha*-*-netbsd*) fmt=elf em=nbsd ;; |
| 1649 | |
| 1650 | arc-*-elf*) fmt=elf bfd_gas=yes ;; |
| 1651 | |
| 1652 | arm-*-riscix*) fmt=aout em=riscix ;; |
| 1653 | arm-*-aout) fmt=aout ;; |
| 1654 | arm-*-coff | thumb-*-coff) fmt=coff ;; |
| 1655 | arm-*-elf | thumb-*-elf) fmt=elf ;; |
| 1656 | arm-*-riscix*) fmt=aout ;; |
| 1657 | arm-*-pe | thumb-*-pe) fmt=coff em=pe ;; |
| 1658 | |
| 1659 | d10v-*-*) fmt=elf bfd_gas=yes ;; |
| 1660 | d30v-*-*) fmt=elf bfd_gas=yes ;; |
| 1661 | |
| 1662 | # start-sanitize-sky |
| 1663 | dvp-*-*) fmt=elf bfd_gas=yes install_tooldir= ;; |
| 1664 | # end-sanitize-sky |
| 1665 | |
| 1666 | hppa-*-*elf*) fmt=elf em=hppa ;; |
| 1667 | hppa-*-lites*) fmt=elf em=hppa ;; |
| 1668 | hppa-*-osf*) fmt=som em=hppa ;; |
| 1669 | hppa-*-rtems*) fmt=elf em=hppa ;; |
| 1670 | hppa-*-hpux*) fmt=som em=hppa ;; |
| 1671 | hppa-*-bsd*) fmt=som em=hppa ;; |
| 1672 | hppa-*-hiux*) fmt=som em=hppa ;; |
| 1673 | |
| 1674 | h8300-*-coff) fmt=coff ;; |
| 1675 | |
| 1676 | i386-ibm-aix*) fmt=coff em=i386aix ;; |
| 1677 | i386-sequent-bsd*) fmt=aout em=dynix bfd_gas=yes ;; |
| 1678 | i386-*-beospe*) fmt=coff em=pe bfd_gas=yes ;; |
| 1679 | i386-*-beoself* | i386-*-beos*) fmt=elf bfd_gas=yes ;; |
| 1680 | i386-*-bsd*) fmt=aout em=386bsd ;; |
| 1681 | i386-*-netbsd0.8) fmt=aout em=386bsd ;; |
| 1682 | i386-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes;; |
| 1683 | i386-*-openbsd*) fmt=aout em=nbsd bfd_gas=yes;; |
| 1684 | i386-*-linux*aout* | i386-*-linuxoldld) fmt=aout em=linux ;; |
| 1685 | i386-*-linux*coff*) fmt=coff em=linux ;; |
| 1686 | i386-*-linux-gnu*) fmt=elf em=linux bfd_gas=yes ;; |
| 1687 | i386-*-lynxos*) fmt=coff em=lynx ;; |
| 1688 | i386-*-sysv4* | i386-*-solaris* | i386-*-elf) |
| 1689 | fmt=elf bfd_gas=yes ;; |
| 1690 | i386-*-freebsdelf*) fmt=elf bfd_gas=yes ;; |
| 1691 | i386-*-freebsd*) fmt=aout em=386bsd ;; |
| 1692 | i386-*-coff | i386-*-sysv* | i386-*-sco3.2v5*coff | i386-*-isc*) |
| 1693 | fmt=coff ;; |
| 1694 | i386-*-sco3.2v5*) fmt=elf |
| 1695 | if test ${this_target} = $target; then |
| 1696 | cat >> confdefs.h <<\EOF |
| 1697 | #define SCO_ELF 1 |
| 1698 | EOF |
| 1699 | |
| 1700 | fi |
| 1701 | ;; |
| 1702 | i386-*-sco3.2*) fmt=coff ;; |
| 1703 | i386-*-vsta) fmt=aout ;; |
| 1704 | i386-*-msdosdjgpp* | i386-*-go32* | i386-go32-rtems*) |
| 1705 | fmt=coff em=go32;; |
| 1706 | i386-*-rtems*) fmt=coff ;; |
| 1707 | i386-*-gnu*) fmt=elf ;; |
| 1708 | i386-*-mach*) |
| 1709 | fmt=aout em=mach bfd_gas=yes ;; |
| 1710 | i386-*-msdos*) fmt=aout ;; |
| 1711 | i386-*-moss*) fmt=elf ;; |
| 1712 | i386-*-pe) fmt=coff em=pe ;; |
| 1713 | i386-*-cygwin32*) fmt=coff em=pe bfd_gas=yes ;; |
| 1714 | i386-*-mingw32*) fmt=coff em=pe bfd_gas=yes ;; |
| 1715 | i386-*-*nt*) fmt=coff em=pe ;; |
| 1716 | i960-*-bout) fmt=bout ;; |
| 1717 | i960-*-coff) fmt=coff em=ic960 ;; |
| 1718 | i960-*-rtems*) fmt=coff em=ic960 ;; |
| 1719 | i960-*-nindy*) fmt=bout ;; |
| 1720 | i960-*-vxworks4*) fmt=bout ;; |
| 1721 | i960-*-vxworks5.0) fmt=bout ;; |
| 1722 | i960-*-vxworks5.*) fmt=coff em=ic960 ;; |
| 1723 | i960-*-vxworks*) fmt=bout ;; |
| 1724 | |
| 1725 | m32r-*-*) fmt=elf bfd_gas=yes ;; |
| 1726 | |
| 1727 | m68k-*-vxworks* | m68k-ericsson-ose | m68k-*-sunos*) |
| 1728 | fmt=aout em=sun3 ;; |
| 1729 | m68k-motorola-sysv*) fmt=coff em=delta ;; |
| 1730 | m68k-bull-sysv3*) fmt=coff em=dpx2 ;; |
| 1731 | m68k-apollo-*) fmt=coff em=apollo ;; |
| 1732 | m68k-*-sysv4*) # must be before -sysv* |
| 1733 | fmt=elf em=svr4 ;; |
| 1734 | m68k-*-elf*) fmt=elf ;; |
| 1735 | m68k-*-coff | m68k-*-sysv* | m68k-*-rtems*) |
| 1736 | fmt=coff ;; |
| 1737 | m68k-*-hpux*) fmt=hp300 em=hp300 ;; |
| 1738 | m68k-*-linux*aout*) fmt=aout em=linux ;; |
| 1739 | m68k-*-linux-gnu*) fmt=elf em=linux ;; |
| 1740 | m68k-*-lynxos*) fmt=coff em=lynx ;; |
| 1741 | m68k-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;; |
| 1742 | m68k-*-openbsd*) fmt=aout em=nbsd bfd_gas=yes ;; |
| 1743 | m68k-apple-aux*) fmt=coff em=aux ;; |
| 1744 | m68k-*-psos*) fmt=elf em=psos;; |
| 1745 | |
| 1746 | m88k-motorola-sysv3*) fmt=coff em=delt88 ;; |
| 1747 | m88k-*-coff*) fmt=coff ;; |
| 1748 | |
| 1749 | # don't change em like *-*-bsd does |
| 1750 | mips-dec-netbsd*) fmt=elf endian=little ;; |
| 1751 | mips-dec-openbsd*) fmt=elf endian=little ;; |
| 1752 | mips-dec-bsd*) fmt=aout ;; |
| 1753 | mips-sony-bsd*) fmt=ecoff ;; |
| 1754 | mips-*-bsd*) { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;; |
| 1755 | mips-*-ultrix*) fmt=ecoff endian=little ;; |
| 1756 | mips-*-osf*) fmt=ecoff endian=little ;; |
| 1757 | mips-*-ecoff*) fmt=ecoff ;; |
| 1758 | mips-*-ecoff*) fmt=ecoff ;; |
| 1759 | mips-*-irix6*) fmt=elf ;; |
| 1760 | mips-*-irix5*) fmt=elf ;; |
| 1761 | mips-*-irix*) fmt=ecoff ;; |
| 1762 | mips-*-lnews*) fmt=ecoff em=lnews ;; |
| 1763 | mips-*-riscos*) fmt=ecoff ;; |
| 1764 | mips-*-sysv*) fmt=ecoff ;; |
| 1765 | mips-*-elf* | mips-*-rtems* | mips-*-linux-gnu* | mips-*-gnu* | mips-*-openbsd*) |
| 1766 | fmt=elf ;; |
| 1767 | mn10200-*-*) fmt=elf bfd_gas=yes ;; |
| 1768 | mn10300-*-*) fmt=elf bfd_gas=yes ;; |
| 1769 | ppc-*-pe | ppc-*-cygwin32 | ppc-*-winnt*) |
| 1770 | fmt=coff em=pe ;; |
| 1771 | ppc-*-aix*) fmt=coff ;; |
| 1772 | ppc-*-beos*) fmt=coff ;; |
| 1773 | ppc-*-*bsd* | ppc-*-elf* | ppc-*-eabi* | ppc-*-sysv4*) |
| 1774 | fmt=elf ;; |
| 1775 | ppc-*-linux-gnu*) fmt=elf |
| 1776 | case "$endian" in |
| 1777 | big) ;; |
| 1778 | *) { echo "configure: error: GNU/Linux must be configured big endian" 1>&2; exit 1; } ;; |
| 1779 | esac |
| 1780 | ;; |
| 1781 | ppc-*-solaris*) fmt=elf |
| 1782 | if test ${this_target} = $target; then |
| 1783 | cat >> confdefs.h <<\EOF |
| 1784 | #define TARGET_SOLARIS_COMMENT 1 |
| 1785 | EOF |
| 1786 | |
| 1787 | fi |
| 1788 | if test x${endian} = xbig; then |
| 1789 | { echo "configure: error: Solaris must be configured little endian" 1>&2; exit 1; } |
| 1790 | fi |
| 1791 | ;; |
| 1792 | ppc-*-rtems*) fmt=elf ;; |
| 1793 | ppc-*-macos* | ppc-*-mpw*) |
| 1794 | fmt=coff em=macos ;; |
| 1795 | ppc-*-netware*) fmt=elf em=ppcnw ;; |
| 1796 | |
| 1797 | sh-*-elf*) fmt=elf ;; |
| 1798 | sh-*-coff*) fmt=coff ;; |
| 1799 | sh-*-rtems*) fmt=coff ;; |
| 1800 | |
| 1801 | ns32k-pc532-mach* | ns32k-pc532-ux*) fmt=aout em=pc532mach ;; |
| 1802 | ns32k-pc532-netbsd* | ns32k-pc532-lites*) fmt=aout em=nbsd532 ;; |
| 1803 | ns32k-pc532-openbsd*) fmt=aout em=nbsd532 ;; |
| 1804 | |
| 1805 | sparc-*-rtems*) fmt=aout ;; |
| 1806 | sparc-*-sunos4*) fmt=aout em=sun3 ;; |
| 1807 | sparc-*-aout | sparc*-*-vxworks*) |
| 1808 | fmt=aout em=sparcaout ;; |
| 1809 | sparc-*-coff) fmt=coff ;; |
| 1810 | sparc-*-linux*aout*) fmt=aout em=linux ;; |
| 1811 | sparc-*-linux-gnu*) fmt=elf em=linux ;; |
| 1812 | sparc-*-lynxos*) fmt=coff em=lynx ;; |
| 1813 | sparc-fujitsu-none) fmt=aout ;; |
| 1814 | sparc-*-elf | sparc-*-sysv4* | sparc-*-solaris*) |
| 1815 | fmt=elf ;; |
| 1816 | sparc-*-netbsd*) fmt=aout em=nbsd ;; |
| 1817 | sparc-*-openbsd*) fmt=aout em=nbsd ;; |
| 1818 | |
| 1819 | tic30-*-*aout*) fmt=aout bfd_gas=yes ;; |
| 1820 | tic30-*-*coff*) fmt=coff bfd_gas=yes ;; |
| 1821 | # start-sanitize-tic80 |
| 1822 | tic80-*-*) fmt=coff ;; |
| 1823 | # end-sanitize-tic80 |
| 1824 | |
| 1825 | v850-*-*) fmt=elf bfd_gas=yes ;; |
| 1826 | |
| 1827 | # start-sanitize-v850e |
| 1828 | v850e-*-*) fmt=elf bfd_gas=yes ;; |
| 1829 | v850ea-*-*) fmt=elf bfd_gas=yes ;; |
| 1830 | # end-sanitize-v850e |
| 1831 | vax-*-bsd* | vax-*-ultrix*) |
| 1832 | fmt=aout ;; |
| 1833 | vax-*-vms) fmt=vms ;; |
| 1834 | |
| 1835 | z8k-*-coff | z8k-*-sim) |
| 1836 | fmt=coff ;; |
| 1837 | |
| 1838 | w65-*-*) fmt=coff ;; |
| 1839 | |
| 1840 | *-*-aout | *-*-scout) |
| 1841 | fmt=aout ;; |
| 1842 | *-*-nindy*) |
| 1843 | fmt=bout ;; |
| 1844 | *-*-bsd*) |
| 1845 | fmt=aout em=sun3 ;; |
| 1846 | *-*-generic) fmt=generic ;; |
| 1847 | *-*-xray | *-*-hms) fmt=coff ;; |
| 1848 | *-*-sim) fmt=coff ;; |
| 1849 | *-*-elf | *-*-sysv4* | *-*-solaris*) |
| 1850 | echo "configure: warning: GAS support for ${generic_target} is incomplete." 1>&2 |
| 1851 | fmt=elf dev=yes ;; |
| 1852 | *-*-vxworks) fmt=aout ;; |
| 1853 | *-*-netware) fmt=elf ;; |
| 1854 | esac |
| 1855 | |
| 1856 | case ${cpu_type}-${fmt} in |
| 1857 | alpha*-*) bfd_gas=yes ;; |
| 1858 | arm-*) bfd_gas=yes ;; |
| 1859 | # not yet |
| 1860 | # i386-aout) bfd_gas=preferred ;; |
| 1861 | mips-*) bfd_gas=yes ;; |
| 1862 | ns32k-*) bfd_gas=yes ;; |
| 1863 | ppc-*) bfd_gas=yes ;; |
| 1864 | sparc-*) bfd_gas=yes ;; |
| 1865 | *-elf) bfd_gas=yes ;; |
| 1866 | *-ecoff) bfd_gas=yes ;; |
| 1867 | *-som) bfd_gas=yes ;; |
| 1868 | *) ;; |
| 1869 | esac |
| 1870 | |
| 1871 | # Other random stuff. |
| 1872 | |
| 1873 | # do we need the opcodes library? |
| 1874 | case ${cpu_type} in |
| 1875 | vax | i386 | tic30) |
| 1876 | ;; |
| 1877 | *) |
| 1878 | need_opcodes=yes |
| 1879 | |
| 1880 | case "${enable_shared}" in |
| 1881 | yes) shared_opcodes=true ;; |
| 1882 | *opcodes*) shared_opcodes=true ;; |
| 1883 | *) shared_opcodes=false ;; |
| 1884 | esac |
| 1885 | if test "${shared_opcodes}" = "true"; then |
| 1886 | # A shared libopcodes must be linked against libbfd. |
| 1887 | need_bfd=yes |
| 1888 | fi |
| 1889 | ;; |
| 1890 | esac |
| 1891 | |
| 1892 | case ${cpu_type} in |
| 1893 | m32r) |
| 1894 | case "x${extra_objects}" in |
| 1895 | *cgen.o*) ;; |
| 1896 | *) extra_objects="$extra_objects cgen.o" |
| 1897 | cat >> confdefs.h <<\EOF |
| 1898 | #define USING_CGEN 1 |
| 1899 | EOF |
| 1900 | |
| 1901 | ;; |
| 1902 | esac |
| 1903 | ;; |
| 1904 | |
| 1905 | m68k) |
| 1906 | case ${extra_objects} in |
| 1907 | *m68k-parse.o*) ;; |
| 1908 | *) extra_objects="$extra_objects m68k-parse.o" ;; |
| 1909 | esac |
| 1910 | ;; |
| 1911 | |
| 1912 | mips) |
| 1913 | echo ${extra_objects} | grep -s "itbl-parse.o" |
| 1914 | if test $? -ne 0 ; then |
| 1915 | extra_objects="$extra_objects itbl-parse.o" |
| 1916 | fi |
| 1917 | |
| 1918 | echo ${extra_objects} | grep -s "itbl-lex.o" |
| 1919 | if test $? -ne 0 ; then |
| 1920 | extra_objects="$extra_objects itbl-lex.o" |
| 1921 | fi |
| 1922 | |
| 1923 | echo ${extra_objects} | grep -s "itbl-ops.o" |
| 1924 | if test $? -ne 0 ; then |
| 1925 | extra_objects="$extra_objects itbl-ops.o" |
| 1926 | fi |
| 1927 | ;; |
| 1928 | |
| 1929 | sparc) |
| 1930 | if test $this_target = $target ; then |
| 1931 | cat >> confdefs.h <<EOF |
| 1932 | #define DEFAULT_ARCH "${arch}" |
| 1933 | EOF |
| 1934 | |
| 1935 | fi |
| 1936 | ;; |
| 1937 | |
| 1938 | *) |
| 1939 | ;; |
| 1940 | esac |
| 1941 | |
| 1942 | # See if we really can support this configuration with the emulation code. |
| 1943 | |
| 1944 | if test $this_target = $target ; then |
| 1945 | primary_bfd_gas=$bfd_gas |
| 1946 | obj_format=$fmt |
| 1947 | te_file=$em |
| 1948 | |
| 1949 | if test $bfd_gas = no ; then |
| 1950 | # Can't support other configurations this way. |
| 1951 | break |
| 1952 | fi |
| 1953 | elif test $bfd_gas = no ; then |
| 1954 | # Can't support this configuration. |
| 1955 | break |
| 1956 | fi |
| 1957 | |
| 1958 | # From target name and format, produce a list of supported emulations. |
| 1959 | |
| 1960 | case ${generic_target}-${fmt} in |
| 1961 | mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;; |
| 1962 | mips-*-linux-gnu*-*) case "$endian" in |
| 1963 | big) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;; |
| 1964 | *) emulation="mipslelf mipsbelf mipself mipslecoff mipsbecoff mipsecoff" ;; |
| 1965 | esac ;; |
| 1966 | mips-*-lnews*-ecoff) ;; |
| 1967 | mips-*-*-ecoff) case "$endian" in |
| 1968 | big) emulation="mipsbecoff mipslecoff mipsecoff" ;; |
| 1969 | *) emulation="mipslecoff mipsbecoff mipsecoff" ;; |
| 1970 | esac ;; |
| 1971 | mips-*-*-elf) case "$endian" in |
| 1972 | big) emulation="mipsbelf mipslelf mipself" ;; |
| 1973 | *) emulation="mipslelf mipsbelf mipself" ;; |
| 1974 | # Uncommenting the next line will turn on support for i386 COFF |
| 1975 | # in any i386 ELF configuration. This probably doesn't work |
| 1976 | # correctly. |
| 1977 | # i386-*-*-elf) emulation="i386coff i386elf" ;; |
| 1978 | esac ;; |
| 1979 | esac |
| 1980 | |
| 1981 | emulations="$emulations $emulation" |
| 1982 | |
| 1983 | done |
| 1984 | |
| 1985 | # Assign floating point type. Most processors with FP support |
| 1986 | # IEEE FP. On those that don't support FP at all, usually IEEE |
| 1987 | # is emulated. |
| 1988 | case ${target_cpu} in |
| 1989 | vax | tahoe ) atof=${target_cpu} ;; |
| 1990 | *) atof=ieee ;; |
| 1991 | esac |
| 1992 | |
| 1993 | case "${obj_format}" in |
| 1994 | "") { echo "configure: error: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;; |
| 1995 | esac |
| 1996 | |
| 1997 | # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU). |
| 1998 | cgen_cpu_prefix="" |
| 1999 | case "x${extra_objects}" in |
| 2000 | *cgen.o*) |
| 2001 | case ${target_cpu} in |
| 2002 | *) cgen_cpu_prefix=${target_cpu} ;; |
| 2003 | esac |
| 2004 | ;; |
| 2005 | esac |
| 2006 | |
| 2007 | |
| 2008 | |
| 2009 | if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then |
| 2010 | { echo "configure: error: GAS does not support target CPU ${target_cpu_type}" 1>&2; exit 1; } |
| 2011 | fi |
| 2012 | |
| 2013 | if test ! -r ${srcdir}/config/obj-${obj_format}.c; then |
| 2014 | { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; } |
| 2015 | fi |
| 2016 | |
| 2017 | case ${user_bfd_gas}-${primary_bfd_gas} in |
| 2018 | yes-yes | no-no) |
| 2019 | # We didn't override user's choice. |
| 2020 | ;; |
| 2021 | no-yes) |
| 2022 | echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2 |
| 2023 | ;; |
| 2024 | no-preferred) |
| 2025 | primary_bfd_gas=no |
| 2026 | ;; |
| 2027 | *-preferred) |
| 2028 | primary_bfd_gas=yes |
| 2029 | ;; |
| 2030 | yes-*) |
| 2031 | primary_bfd_gas=yes |
| 2032 | ;; |
| 2033 | -*) |
| 2034 | # User specified nothing. |
| 2035 | ;; |
| 2036 | esac |
| 2037 | |
| 2038 | # Some COFF configurations want these random other flags set. |
| 2039 | case ${obj_format} in |
| 2040 | coff) |
| 2041 | case ${target_cpu_type} in |
| 2042 | i386) cat >> confdefs.h <<\EOF |
| 2043 | #define I386COFF 1 |
| 2044 | EOF |
| 2045 | ;; |
| 2046 | m68k) cat >> confdefs.h <<\EOF |
| 2047 | #define M68KCOFF 1 |
| 2048 | EOF |
| 2049 | ;; |
| 2050 | m88k) cat >> confdefs.h <<\EOF |
| 2051 | #define M88KCOFF 1 |
| 2052 | EOF |
| 2053 | ;; |
| 2054 | esac |
| 2055 | ;; |
| 2056 | esac |
| 2057 | |
| 2058 | # Getting this done right is going to be a bitch. Each configuration specified |
| 2059 | # with --enable-targets=... should be checked for environment, format, cpu, and |
| 2060 | # bfd_gas setting. |
| 2061 | # |
| 2062 | # For each configuration, the necessary object file support code must be linked |
| 2063 | # in. This might be only one, it might be up to four. The necessary emulation |
| 2064 | # code needs to be provided, too. |
| 2065 | # |
| 2066 | # And then there's "--enable-targets=all".... |
| 2067 | # |
| 2068 | # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh. |
| 2069 | |
| 2070 | formats="${obj_format}" |
| 2071 | emfiles="" |
| 2072 | EMULATIONS="" |
| 2073 | _gas_uniq_list="$emulations" |
| 2074 | _gas_uniq_newlist="" |
| 2075 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do |
| 2076 | case $_gas_uniq_i in |
| 2077 | _gas_uniq_dummy) ;; |
| 2078 | *) case " $_gas_uniq_newlist " in |
| 2079 | *" $_gas_uniq_i "*) ;; |
| 2080 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; |
| 2081 | esac ;; |
| 2082 | esac |
| 2083 | done |
| 2084 | emulations=$_gas_uniq_newlist |
| 2085 | |
| 2086 | for em in . $emulations ; do |
| 2087 | case $em in |
| 2088 | .) continue ;; |
| 2089 | mipsbelf | mipslelf) |
| 2090 | fmt=elf file=mipself ;; |
| 2091 | mipsbecoff | mipslecoff) |
| 2092 | fmt=ecoff file=mipsecoff ;; |
| 2093 | i386coff) |
| 2094 | fmt=coff file=i386coff ;; |
| 2095 | i386elf) |
| 2096 | fmt=elf file=i386elf ;; |
| 2097 | esac |
| 2098 | formats="$formats $fmt" |
| 2099 | emfiles="$emfiles e-$file.o" |
| 2100 | EMULATIONS="$EMULATIONS &$em," |
| 2101 | done |
| 2102 | _gas_uniq_list="$formats" |
| 2103 | _gas_uniq_newlist="" |
| 2104 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do |
| 2105 | case $_gas_uniq_i in |
| 2106 | _gas_uniq_dummy) ;; |
| 2107 | *) case " $_gas_uniq_newlist " in |
| 2108 | *" $_gas_uniq_i "*) ;; |
| 2109 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; |
| 2110 | esac ;; |
| 2111 | esac |
| 2112 | done |
| 2113 | formats=$_gas_uniq_newlist |
| 2114 | |
| 2115 | _gas_uniq_list="$emfiles" |
| 2116 | _gas_uniq_newlist="" |
| 2117 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do |
| 2118 | case $_gas_uniq_i in |
| 2119 | _gas_uniq_dummy) ;; |
| 2120 | *) case " $_gas_uniq_newlist " in |
| 2121 | *" $_gas_uniq_i "*) ;; |
| 2122 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; |
| 2123 | esac ;; |
| 2124 | esac |
| 2125 | done |
| 2126 | emfiles=$_gas_uniq_newlist |
| 2127 | |
| 2128 | if test `set . $formats ; shift ; echo $#` -gt 1 ; then |
| 2129 | for fmt in $formats ; do |
| 2130 | case $fmt in |
| 2131 | aout) cat >> confdefs.h <<\EOF |
| 2132 | #define OBJ_MAYBE_AOUT 1 |
| 2133 | EOF |
| 2134 | ;; |
| 2135 | bout) cat >> confdefs.h <<\EOF |
| 2136 | #define OBJ_MAYBE_BOUT 1 |
| 2137 | EOF |
| 2138 | ;; |
| 2139 | coff) cat >> confdefs.h <<\EOF |
| 2140 | #define OBJ_MAYBE_COFF 1 |
| 2141 | EOF |
| 2142 | ;; |
| 2143 | ecoff) cat >> confdefs.h <<\EOF |
| 2144 | #define OBJ_MAYBE_ECOFF 1 |
| 2145 | EOF |
| 2146 | ;; |
| 2147 | elf) cat >> confdefs.h <<\EOF |
| 2148 | #define OBJ_MAYBE_ELF 1 |
| 2149 | EOF |
| 2150 | ;; |
| 2151 | generic) cat >> confdefs.h <<\EOF |
| 2152 | #define OBJ_MAYBE_GENERIC 1 |
| 2153 | EOF |
| 2154 | ;; |
| 2155 | hp300) cat >> confdefs.h <<\EOF |
| 2156 | #define OBJ_MAYBE_HP300 1 |
| 2157 | EOF |
| 2158 | ;; |
| 2159 | ieee) cat >> confdefs.h <<\EOF |
| 2160 | #define OBJ_MAYBE_IEEE 1 |
| 2161 | EOF |
| 2162 | ;; |
| 2163 | som) cat >> confdefs.h <<\EOF |
| 2164 | #define OBJ_MAYBE_SOM 1 |
| 2165 | EOF |
| 2166 | ;; |
| 2167 | vms) cat >> confdefs.h <<\EOF |
| 2168 | #define OBJ_MAYBE_VMS 1 |
| 2169 | EOF |
| 2170 | ;; |
| 2171 | esac |
| 2172 | extra_objects="$extra_objects obj-$fmt.o" |
| 2173 | done |
| 2174 | obj_format=multi |
| 2175 | fi |
| 2176 | if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then |
| 2177 | te_file=multi |
| 2178 | extra_objects="$extra_objects $emfiles" |
| 2179 | DEFAULT_EMULATION=`set . $emulations ; echo $2` |
| 2180 | cat >> confdefs.h <<\EOF |
| 2181 | #define USE_EMULATIONS 1 |
| 2182 | EOF |
| 2183 | |
| 2184 | fi |
| 2185 | |
| 2186 | cat >> confdefs.h <<EOF |
| 2187 | #define EMULATIONS $EMULATIONS |
| 2188 | EOF |
| 2189 | |
| 2190 | cat >> confdefs.h <<EOF |
| 2191 | #define DEFAULT_EMULATION "$DEFAULT_EMULATION" |
| 2192 | EOF |
| 2193 | |
| 2194 | |
| 2195 | case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in |
| 2196 | yes-*-coff) need_bfd=yes ;; |
| 2197 | no-*-coff) need_bfd=yes |
| 2198 | cat >> confdefs.h <<\EOF |
| 2199 | #define MANY_SEGMENTS 1 |
| 2200 | EOF |
| 2201 | ;; |
| 2202 | esac |
| 2203 | |
| 2204 | reject_dev_configs=yes |
| 2205 | |
| 2206 | case ${reject_dev_configs}-${dev} in |
| 2207 | yes-yes) # Oops. |
| 2208 | { echo "configure: error: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; } |
| 2209 | ;; |
| 2210 | esac |
| 2211 | |
| 2212 | |
| 2213 | |
| 2214 | |
| 2215 | |
| 2216 | |
| 2217 | |
| 2218 | case "${primary_bfd_gas}" in |
| 2219 | yes) cat >> confdefs.h <<\EOF |
| 2220 | #define BFD_ASSEMBLER 1 |
| 2221 | EOF |
| 2222 | |
| 2223 | need_bfd=yes ;; |
| 2224 | esac |
| 2225 | |
| 2226 | # do we need the opcodes library? |
| 2227 | case "${need_opcodes}" in |
| 2228 | yes) |
| 2229 | OPCODES_LIB=../opcodes/libopcodes.la |
| 2230 | ;; |
| 2231 | esac |
| 2232 | |
| 2233 | case "${need_bfd}" in |
| 2234 | yes) |
| 2235 | BFDLIB=../bfd/libbfd.la |
| 2236 | ALL_OBJ_DEPS="$ALL_OBJ_DEPS ../bfd/bfd.h" |
| 2237 | ;; |
| 2238 | esac |
| 2239 | |
| 2240 | |
| 2241 | |
| 2242 | |
| 2243 | |
| 2244 | |
| 2245 | cat >> confdefs.h <<EOF |
| 2246 | #define TARGET_ALIAS "${target_alias}" |
| 2247 | EOF |
| 2248 | |
| 2249 | cat >> confdefs.h <<EOF |
| 2250 | #define TARGET_CANONICAL "${target}" |
| 2251 | EOF |
| 2252 | |
| 2253 | cat >> confdefs.h <<EOF |
| 2254 | #define TARGET_CPU "${target_cpu}" |
| 2255 | EOF |
| 2256 | |
| 2257 | cat >> confdefs.h <<EOF |
| 2258 | #define TARGET_VENDOR "${target_vendor}" |
| 2259 | EOF |
| 2260 | |
| 2261 | cat >> confdefs.h <<EOF |
| 2262 | #define TARGET_OS "${target_os}" |
| 2263 | EOF |
| 2264 | |
| 2265 | |
| 2266 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2267 | set dummy gcc; ac_word=$2 |
| 2268 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 2269 | echo "configure:2270: checking for $ac_word" >&5 |
| 2270 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 2271 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2272 | else |
| 2273 | if test -n "$CC"; then |
| 2274 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2275 | else |
| 2276 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2277 | for ac_dir in $PATH; do |
| 2278 | test -z "$ac_dir" && ac_dir=. |
| 2279 | if test -f $ac_dir/$ac_word; then |
| 2280 | ac_cv_prog_CC="gcc" |
| 2281 | break |
| 2282 | fi |
| 2283 | done |
| 2284 | IFS="$ac_save_ifs" |
| 2285 | fi |
| 2286 | fi |
| 2287 | CC="$ac_cv_prog_CC" |
| 2288 | if test -n "$CC"; then |
| 2289 | echo "$ac_t""$CC" 1>&6 |
| 2290 | else |
| 2291 | echo "$ac_t""no" 1>&6 |
| 2292 | fi |
| 2293 | |
| 2294 | if test -z "$CC"; then |
| 2295 | # Extract the first word of "cc", so it can be a program name with args. |
| 2296 | set dummy cc; ac_word=$2 |
| 2297 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 2298 | echo "configure:2299: checking for $ac_word" >&5 |
| 2299 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 2300 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2301 | else |
| 2302 | if test -n "$CC"; then |
| 2303 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2304 | else |
| 2305 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2306 | ac_prog_rejected=no |
| 2307 | for ac_dir in $PATH; do |
| 2308 | test -z "$ac_dir" && ac_dir=. |
| 2309 | if test -f $ac_dir/$ac_word; then |
| 2310 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 2311 | ac_prog_rejected=yes |
| 2312 | continue |
| 2313 | fi |
| 2314 | ac_cv_prog_CC="cc" |
| 2315 | break |
| 2316 | fi |
| 2317 | done |
| 2318 | IFS="$ac_save_ifs" |
| 2319 | if test $ac_prog_rejected = yes; then |
| 2320 | # We found a bogon in the path, so make sure we never use it. |
| 2321 | set dummy $ac_cv_prog_CC |
| 2322 | shift |
| 2323 | if test $# -gt 0; then |
| 2324 | # We chose a different compiler from the bogus one. |
| 2325 | # However, it has the same basename, so the bogon will be chosen |
| 2326 | # first if we set CC to just the basename; use the full file name. |
| 2327 | shift |
| 2328 | set dummy "$ac_dir/$ac_word" "$@" |
| 2329 | shift |
| 2330 | ac_cv_prog_CC="$@" |
| 2331 | fi |
| 2332 | fi |
| 2333 | fi |
| 2334 | fi |
| 2335 | CC="$ac_cv_prog_CC" |
| 2336 | if test -n "$CC"; then |
| 2337 | echo "$ac_t""$CC" 1>&6 |
| 2338 | else |
| 2339 | echo "$ac_t""no" 1>&6 |
| 2340 | fi |
| 2341 | |
| 2342 | if test -z "$CC"; then |
| 2343 | case "`uname -s`" in |
| 2344 | *win32* | *WIN32*) |
| 2345 | # Extract the first word of "cl", so it can be a program name with args. |
| 2346 | set dummy cl; ac_word=$2 |
| 2347 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 2348 | echo "configure:2349: checking for $ac_word" >&5 |
| 2349 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 2350 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2351 | else |
| 2352 | if test -n "$CC"; then |
| 2353 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2354 | else |
| 2355 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2356 | for ac_dir in $PATH; do |
| 2357 | test -z "$ac_dir" && ac_dir=. |
| 2358 | if test -f $ac_dir/$ac_word; then |
| 2359 | ac_cv_prog_CC="cl" |
| 2360 | break |
| 2361 | fi |
| 2362 | done |
| 2363 | IFS="$ac_save_ifs" |
| 2364 | fi |
| 2365 | fi |
| 2366 | CC="$ac_cv_prog_CC" |
| 2367 | if test -n "$CC"; then |
| 2368 | echo "$ac_t""$CC" 1>&6 |
| 2369 | else |
| 2370 | echo "$ac_t""no" 1>&6 |
| 2371 | fi |
| 2372 | ;; |
| 2373 | esac |
| 2374 | fi |
| 2375 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 2376 | fi |
| 2377 | |
| 2378 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
| 2379 | echo "configure:2380: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
| 2380 | |
| 2381 | ac_ext=c |
| 2382 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 2383 | ac_cpp='$CPP $CPPFLAGS' |
| 2384 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 2385 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 2386 | cross_compiling=$ac_cv_prog_cc_cross |
| 2387 | |
| 2388 | cat > conftest.$ac_ext <<EOF |
| 2389 | #line 2390 "configure" |
| 2390 | #include "confdefs.h" |
| 2391 | main(){return(0);} |
| 2392 | EOF |
| 2393 | if { (eval echo configure:2394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2394 | ac_cv_prog_cc_works=yes |
| 2395 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 2396 | if (./conftest; exit) 2>/dev/null; then |
| 2397 | ac_cv_prog_cc_cross=no |
| 2398 | else |
| 2399 | ac_cv_prog_cc_cross=yes |
| 2400 | fi |
| 2401 | else |
| 2402 | echo "configure: failed program was:" >&5 |
| 2403 | cat conftest.$ac_ext >&5 |
| 2404 | ac_cv_prog_cc_works=no |
| 2405 | fi |
| 2406 | rm -fr conftest* |
| 2407 | |
| 2408 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 2409 | if test $ac_cv_prog_cc_works = no; then |
| 2410 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 2411 | fi |
| 2412 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
| 2413 | echo "configure:2414: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
| 2414 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 2415 | cross_compiling=$ac_cv_prog_cc_cross |
| 2416 | |
| 2417 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
| 2418 | echo "configure:2419: checking whether we are using GNU C" >&5 |
| 2419 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 2420 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2421 | else |
| 2422 | cat > conftest.c <<EOF |
| 2423 | #ifdef __GNUC__ |
| 2424 | yes; |
| 2425 | #endif |
| 2426 | EOF |
| 2427 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
| 2428 | ac_cv_prog_gcc=yes |
| 2429 | else |
| 2430 | ac_cv_prog_gcc=no |
| 2431 | fi |
| 2432 | fi |
| 2433 | |
| 2434 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
| 2435 | |
| 2436 | if test $ac_cv_prog_gcc = yes; then |
| 2437 | GCC=yes |
| 2438 | else |
| 2439 | GCC= |
| 2440 | fi |
| 2441 | |
| 2442 | ac_test_CFLAGS="${CFLAGS+set}" |
| 2443 | ac_save_CFLAGS="$CFLAGS" |
| 2444 | CFLAGS= |
| 2445 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
| 2446 | echo "configure:2447: checking whether ${CC-cc} accepts -g" >&5 |
| 2447 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
| 2448 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2449 | else |
| 2450 | echo 'void f(){}' > conftest.c |
| 2451 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
| 2452 | ac_cv_prog_cc_g=yes |
| 2453 | else |
| 2454 | ac_cv_prog_cc_g=no |
| 2455 | fi |
| 2456 | rm -f conftest* |
| 2457 | |
| 2458 | fi |
| 2459 | |
| 2460 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
| 2461 | if test "$ac_test_CFLAGS" = set; then |
| 2462 | CFLAGS="$ac_save_CFLAGS" |
| 2463 | elif test $ac_cv_prog_cc_g = yes; then |
| 2464 | if test "$GCC" = yes; then |
| 2465 | CFLAGS="-g -O2" |
| 2466 | else |
| 2467 | CFLAGS="-g" |
| 2468 | fi |
| 2469 | else |
| 2470 | if test "$GCC" = yes; then |
| 2471 | CFLAGS="-O2" |
| 2472 | else |
| 2473 | CFLAGS= |
| 2474 | fi |
| 2475 | fi |
| 2476 | |
| 2477 | |
| 2478 | for ac_prog in 'bison -y' byacc |
| 2479 | do |
| 2480 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2481 | set dummy $ac_prog; ac_word=$2 |
| 2482 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 2483 | echo "configure:2484: checking for $ac_word" >&5 |
| 2484 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
| 2485 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2486 | else |
| 2487 | if test -n "$YACC"; then |
| 2488 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 2489 | else |
| 2490 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2491 | for ac_dir in $PATH; do |
| 2492 | test -z "$ac_dir" && ac_dir=. |
| 2493 | if test -f $ac_dir/$ac_word; then |
| 2494 | ac_cv_prog_YACC="$ac_prog" |
| 2495 | break |
| 2496 | fi |
| 2497 | done |
| 2498 | IFS="$ac_save_ifs" |
| 2499 | fi |
| 2500 | fi |
| 2501 | YACC="$ac_cv_prog_YACC" |
| 2502 | if test -n "$YACC"; then |
| 2503 | echo "$ac_t""$YACC" 1>&6 |
| 2504 | else |
| 2505 | echo "$ac_t""no" 1>&6 |
| 2506 | fi |
| 2507 | |
| 2508 | test -n "$YACC" && break |
| 2509 | done |
| 2510 | test -n "$YACC" || YACC="yacc" |
| 2511 | |
| 2512 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
| 2513 | echo "configure:2514: checking how to run the C preprocessor" >&5 |
| 2514 | # On Suns, sometimes $CPP names a directory. |
| 2515 | if test -n "$CPP" && test -d "$CPP"; then |
| 2516 | CPP= |
| 2517 | fi |
| 2518 | if test -z "$CPP"; then |
| 2519 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
| 2520 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2521 | else |
| 2522 | # This must be in double quotes, not single quotes, because CPP may get |
| 2523 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
| 2524 | CPP="${CC-cc} -E" |
| 2525 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2526 | # not just through cpp. |
| 2527 | cat > conftest.$ac_ext <<EOF |
| 2528 | #line 2529 "configure" |
| 2529 | #include "confdefs.h" |
| 2530 | #include <assert.h> |
| 2531 | Syntax Error |
| 2532 | EOF |
| 2533 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 2534 | { (eval echo configure:2535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 2535 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 2536 | if test -z "$ac_err"; then |
| 2537 | : |
| 2538 | else |
| 2539 | echo "$ac_err" >&5 |
| 2540 | echo "configure: failed program was:" >&5 |
| 2541 | cat conftest.$ac_ext >&5 |
| 2542 | rm -rf conftest* |
| 2543 | CPP="${CC-cc} -E -traditional-cpp" |
| 2544 | cat > conftest.$ac_ext <<EOF |
| 2545 | #line 2546 "configure" |
| 2546 | #include "confdefs.h" |
| 2547 | #include <assert.h> |
| 2548 | Syntax Error |
| 2549 | EOF |
| 2550 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 2551 | { (eval echo configure:2552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 2552 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 2553 | if test -z "$ac_err"; then |
| 2554 | : |
| 2555 | else |
| 2556 | echo "$ac_err" >&5 |
| 2557 | echo "configure: failed program was:" >&5 |
| 2558 | cat conftest.$ac_ext >&5 |
| 2559 | rm -rf conftest* |
| 2560 | CPP="${CC-cc} -nologo -E" |
| 2561 | cat > conftest.$ac_ext <<EOF |
| 2562 | #line 2563 "configure" |
| 2563 | #include "confdefs.h" |
| 2564 | #include <assert.h> |
| 2565 | Syntax Error |
| 2566 | EOF |
| 2567 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 2568 | { (eval echo configure:2569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 2569 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 2570 | if test -z "$ac_err"; then |
| 2571 | : |
| 2572 | else |
| 2573 | echo "$ac_err" >&5 |
| 2574 | echo "configure: failed program was:" >&5 |
| 2575 | cat conftest.$ac_ext >&5 |
| 2576 | rm -rf conftest* |
| 2577 | CPP=/lib/cpp |
| 2578 | fi |
| 2579 | rm -f conftest* |
| 2580 | fi |
| 2581 | rm -f conftest* |
| 2582 | fi |
| 2583 | rm -f conftest* |
| 2584 | ac_cv_prog_CPP="$CPP" |
| 2585 | fi |
| 2586 | CPP="$ac_cv_prog_CPP" |
| 2587 | else |
| 2588 | ac_cv_prog_CPP="$CPP" |
| 2589 | fi |
| 2590 | echo "$ac_t""$CPP" 1>&6 |
| 2591 | |
| 2592 | missing_dir=`cd $ac_aux_dir && pwd` |
| 2593 | for ac_prog in flex lex |
| 2594 | do |
| 2595 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2596 | set dummy $ac_prog; ac_word=$2 |
| 2597 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 2598 | echo "configure:2599: checking for $ac_word" >&5 |
| 2599 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
| 2600 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2601 | else |
| 2602 | if test -n "$LEX"; then |
| 2603 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 2604 | else |
| 2605 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2606 | for ac_dir in $PATH; do |
| 2607 | test -z "$ac_dir" && ac_dir=. |
| 2608 | if test -f $ac_dir/$ac_word; then |
| 2609 | ac_cv_prog_LEX="$ac_prog" |
| 2610 | break |
| 2611 | fi |
| 2612 | done |
| 2613 | IFS="$ac_save_ifs" |
| 2614 | fi |
| 2615 | fi |
| 2616 | LEX="$ac_cv_prog_LEX" |
| 2617 | if test -n "$LEX"; then |
| 2618 | echo "$ac_t""$LEX" 1>&6 |
| 2619 | else |
| 2620 | echo "$ac_t""no" 1>&6 |
| 2621 | fi |
| 2622 | |
| 2623 | test -n "$LEX" && break |
| 2624 | done |
| 2625 | test -n "$LEX" || LEX=""$missing_dir/missing flex"" |
| 2626 | |
| 2627 | # Extract the first word of "flex", so it can be a program name with args. |
| 2628 | set dummy flex; ac_word=$2 |
| 2629 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 2630 | echo "configure:2631: checking for $ac_word" >&5 |
| 2631 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
| 2632 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2633 | else |
| 2634 | if test -n "$LEX"; then |
| 2635 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 2636 | else |
| 2637 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2638 | for ac_dir in $PATH; do |
| 2639 | test -z "$ac_dir" && ac_dir=. |
| 2640 | if test -f $ac_dir/$ac_word; then |
| 2641 | ac_cv_prog_LEX="flex" |
| 2642 | break |
| 2643 | fi |
| 2644 | done |
| 2645 | IFS="$ac_save_ifs" |
| 2646 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" |
| 2647 | fi |
| 2648 | fi |
| 2649 | LEX="$ac_cv_prog_LEX" |
| 2650 | if test -n "$LEX"; then |
| 2651 | echo "$ac_t""$LEX" 1>&6 |
| 2652 | else |
| 2653 | echo "$ac_t""no" 1>&6 |
| 2654 | fi |
| 2655 | |
| 2656 | if test -z "$LEXLIB" |
| 2657 | then |
| 2658 | case "$LEX" in |
| 2659 | flex*) ac_lib=fl ;; |
| 2660 | *) ac_lib=l ;; |
| 2661 | esac |
| 2662 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 |
| 2663 | echo "configure:2664: checking for yywrap in -l$ac_lib" >&5 |
| 2664 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
| 2665 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2666 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2667 | else |
| 2668 | ac_save_LIBS="$LIBS" |
| 2669 | LIBS="-l$ac_lib $LIBS" |
| 2670 | cat > conftest.$ac_ext <<EOF |
| 2671 | #line 2672 "configure" |
| 2672 | #include "confdefs.h" |
| 2673 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2674 | /* We use char because int might match the return type of a gcc2 |
| 2675 | builtin and then its argument prototype would still apply. */ |
| 2676 | char yywrap(); |
| 2677 | |
| 2678 | int main() { |
| 2679 | yywrap() |
| 2680 | ; return 0; } |
| 2681 | EOF |
| 2682 | if { (eval echo configure:2683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2683 | rm -rf conftest* |
| 2684 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2685 | else |
| 2686 | echo "configure: failed program was:" >&5 |
| 2687 | cat conftest.$ac_ext >&5 |
| 2688 | rm -rf conftest* |
| 2689 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2690 | fi |
| 2691 | rm -f conftest* |
| 2692 | LIBS="$ac_save_LIBS" |
| 2693 | |
| 2694 | fi |
| 2695 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2696 | echo "$ac_t""yes" 1>&6 |
| 2697 | LEXLIB="-l$ac_lib" |
| 2698 | else |
| 2699 | echo "$ac_t""no" 1>&6 |
| 2700 | fi |
| 2701 | |
| 2702 | fi |
| 2703 | |
| 2704 | echo $ac_n "checking lex output file root""... $ac_c" 1>&6 |
| 2705 | echo "configure:2706: checking lex output file root" >&5 |
| 2706 | if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then |
| 2707 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2708 | else |
| 2709 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 2710 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
| 2711 | echo '%% |
| 2712 | %%' | $LEX |
| 2713 | if test -f lex.yy.c; then |
| 2714 | ac_cv_prog_lex_root=lex.yy |
| 2715 | elif test -f lexyy.c; then |
| 2716 | ac_cv_prog_lex_root=lexyy |
| 2717 | else |
| 2718 | { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; } |
| 2719 | fi |
| 2720 | fi |
| 2721 | |
| 2722 | echo "$ac_t""$ac_cv_prog_lex_root" 1>&6 |
| 2723 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 2724 | |
| 2725 | echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6 |
| 2726 | echo "configure:2727: checking whether yytext is a pointer" >&5 |
| 2727 | if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then |
| 2728 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2729 | else |
| 2730 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 2731 | # default is implementation-dependent. Figure out which it is, since |
| 2732 | # not all implementations provide the %pointer and %array declarations. |
| 2733 | ac_cv_prog_lex_yytext_pointer=no |
| 2734 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 2735 | ac_save_LIBS="$LIBS" |
| 2736 | LIBS="$LIBS $LEXLIB" |
| 2737 | cat > conftest.$ac_ext <<EOF |
| 2738 | #line 2739 "configure" |
| 2739 | #include "confdefs.h" |
| 2740 | `cat $LEX_OUTPUT_ROOT.c` |
| 2741 | int main() { |
| 2742 | |
| 2743 | ; return 0; } |
| 2744 | EOF |
| 2745 | if { (eval echo configure:2746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2746 | rm -rf conftest* |
| 2747 | ac_cv_prog_lex_yytext_pointer=yes |
| 2748 | else |
| 2749 | echo "configure: failed program was:" >&5 |
| 2750 | cat conftest.$ac_ext >&5 |
| 2751 | fi |
| 2752 | rm -f conftest* |
| 2753 | LIBS="$ac_save_LIBS" |
| 2754 | rm -f "${LEX_OUTPUT_ROOT}.c" |
| 2755 | |
| 2756 | fi |
| 2757 | |
| 2758 | echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6 |
| 2759 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 2760 | cat >> confdefs.h <<\EOF |
| 2761 | #define YYTEXT_POINTER 1 |
| 2762 | EOF |
| 2763 | |
| 2764 | fi |
| 2765 | |
| 2766 | |
| 2767 | ALL_LINGUAS= |
| 2768 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 |
| 2769 | echo "configure:2770: checking for POSIXized ISC" >&5 |
| 2770 | if test -d /etc/conf/kconfig.d && |
| 2771 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 |
| 2772 | then |
| 2773 | echo "$ac_t""yes" 1>&6 |
| 2774 | ISC=yes # If later tests want to check for ISC. |
| 2775 | cat >> confdefs.h <<\EOF |
| 2776 | #define _POSIX_SOURCE 1 |
| 2777 | EOF |
| 2778 | |
| 2779 | if test "$GCC" = yes; then |
| 2780 | CC="$CC -posix" |
| 2781 | else |
| 2782 | CC="$CC -Xp" |
| 2783 | fi |
| 2784 | else |
| 2785 | echo "$ac_t""no" 1>&6 |
| 2786 | ISC= |
| 2787 | fi |
| 2788 | |
| 2789 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
| 2790 | echo "configure:2791: checking for ANSI C header files" >&5 |
| 2791 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
| 2792 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2793 | else |
| 2794 | cat > conftest.$ac_ext <<EOF |
| 2795 | #line 2796 "configure" |
| 2796 | #include "confdefs.h" |
| 2797 | #include <stdlib.h> |
| 2798 | #include <stdarg.h> |
| 2799 | #include <string.h> |
| 2800 | #include <float.h> |
| 2801 | EOF |
| 2802 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 2803 | { (eval echo configure:2804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 2804 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 2805 | if test -z "$ac_err"; then |
| 2806 | rm -rf conftest* |
| 2807 | ac_cv_header_stdc=yes |
| 2808 | else |
| 2809 | echo "$ac_err" >&5 |
| 2810 | echo "configure: failed program was:" >&5 |
| 2811 | cat conftest.$ac_ext >&5 |
| 2812 | rm -rf conftest* |
| 2813 | ac_cv_header_stdc=no |
| 2814 | fi |
| 2815 | rm -f conftest* |
| 2816 | |
| 2817 | if test $ac_cv_header_stdc = yes; then |
| 2818 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 2819 | cat > conftest.$ac_ext <<EOF |
| 2820 | #line 2821 "configure" |
| 2821 | #include "confdefs.h" |
| 2822 | #include <string.h> |
| 2823 | EOF |
| 2824 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2825 | egrep "memchr" >/dev/null 2>&1; then |
| 2826 | : |
| 2827 | else |
| 2828 | rm -rf conftest* |
| 2829 | ac_cv_header_stdc=no |
| 2830 | fi |
| 2831 | rm -f conftest* |
| 2832 | |
| 2833 | fi |
| 2834 | |
| 2835 | if test $ac_cv_header_stdc = yes; then |
| 2836 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 2837 | cat > conftest.$ac_ext <<EOF |
| 2838 | #line 2839 "configure" |
| 2839 | #include "confdefs.h" |
| 2840 | #include <stdlib.h> |
| 2841 | EOF |
| 2842 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2843 | egrep "free" >/dev/null 2>&1; then |
| 2844 | : |
| 2845 | else |
| 2846 | rm -rf conftest* |
| 2847 | ac_cv_header_stdc=no |
| 2848 | fi |
| 2849 | rm -f conftest* |
| 2850 | |
| 2851 | fi |
| 2852 | |
| 2853 | if test $ac_cv_header_stdc = yes; then |
| 2854 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 2855 | if test "$cross_compiling" = yes; then |
| 2856 | : |
| 2857 | else |
| 2858 | cat > conftest.$ac_ext <<EOF |
| 2859 | #line 2860 "configure" |
| 2860 | #include "confdefs.h" |
| 2861 | #include <ctype.h> |
| 2862 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2863 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 2864 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 2865 | int main () { int i; for (i = 0; i < 256; i++) |
| 2866 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 2867 | exit (0); } |
| 2868 | |
| 2869 | EOF |
| 2870 | if { (eval echo configure:2871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 2871 | then |
| 2872 | : |
| 2873 | else |
| 2874 | echo "configure: failed program was:" >&5 |
| 2875 | cat conftest.$ac_ext >&5 |
| 2876 | rm -fr conftest* |
| 2877 | ac_cv_header_stdc=no |
| 2878 | fi |
| 2879 | rm -fr conftest* |
| 2880 | fi |
| 2881 | |
| 2882 | fi |
| 2883 | fi |
| 2884 | |
| 2885 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
| 2886 | if test $ac_cv_header_stdc = yes; then |
| 2887 | cat >> confdefs.h <<\EOF |
| 2888 | #define STDC_HEADERS 1 |
| 2889 | EOF |
| 2890 | |
| 2891 | fi |
| 2892 | |
| 2893 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
| 2894 | echo "configure:2895: checking for working const" >&5 |
| 2895 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
| 2896 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2897 | else |
| 2898 | cat > conftest.$ac_ext <<EOF |
| 2899 | #line 2900 "configure" |
| 2900 | #include "confdefs.h" |
| 2901 | |
| 2902 | int main() { |
| 2903 | |
| 2904 | /* Ultrix mips cc rejects this. */ |
| 2905 | typedef int charset[2]; const charset x; |
| 2906 | /* SunOS 4.1.1 cc rejects this. */ |
| 2907 | char const *const *ccp; |
| 2908 | char **p; |
| 2909 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 2910 | struct point {int x, y;}; |
| 2911 | static struct point const zero = {0,0}; |
| 2912 | /* AIX XL C 1.02.0.0 rejects this. |
| 2913 | It does not let you subtract one const X* pointer from another in an arm |
| 2914 | of an if-expression whose if-part is not a constant expression */ |
| 2915 | const char *g = "string"; |
| 2916 | ccp = &g + (g ? g-g : 0); |
| 2917 | /* HPUX 7.0 cc rejects these. */ |
| 2918 | ++ccp; |
| 2919 | p = (char**) ccp; |
| 2920 | ccp = (char const *const *) p; |
| 2921 | { /* SCO 3.2v4 cc rejects this. */ |
| 2922 | char *t; |
| 2923 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 2924 | |
| 2925 | *t++ = 0; |
| 2926 | } |
| 2927 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 2928 | int x[] = {25, 17}; |
| 2929 | const int *foo = &x[0]; |
| 2930 | ++foo; |
| 2931 | } |
| 2932 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 2933 | typedef const int *iptr; |
| 2934 | iptr p = 0; |
| 2935 | ++p; |
| 2936 | } |
| 2937 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 2938 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 2939 | struct s { int j; const int *ap[3]; }; |
| 2940 | struct s *b; b->j = 5; |
| 2941 | } |
| 2942 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 2943 | const int foo = 10; |
| 2944 | } |
| 2945 | |
| 2946 | ; return 0; } |
| 2947 | EOF |
| 2948 | if { (eval echo configure:2949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2949 | rm -rf conftest* |
| 2950 | ac_cv_c_const=yes |
| 2951 | else |
| 2952 | echo "configure: failed program was:" >&5 |
| 2953 | cat conftest.$ac_ext >&5 |
| 2954 | rm -rf conftest* |
| 2955 | ac_cv_c_const=no |
| 2956 | fi |
| 2957 | rm -f conftest* |
| 2958 | fi |
| 2959 | |
| 2960 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
| 2961 | if test $ac_cv_c_const = no; then |
| 2962 | cat >> confdefs.h <<\EOF |
| 2963 | #define const |
| 2964 | EOF |
| 2965 | |
| 2966 | fi |
| 2967 | |
| 2968 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
| 2969 | echo "configure:2970: checking for inline" >&5 |
| 2970 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
| 2971 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2972 | else |
| 2973 | ac_cv_c_inline=no |
| 2974 | for ac_kw in inline __inline__ __inline; do |
| 2975 | cat > conftest.$ac_ext <<EOF |
| 2976 | #line 2977 "configure" |
| 2977 | #include "confdefs.h" |
| 2978 | |
| 2979 | int main() { |
| 2980 | } $ac_kw foo() { |
| 2981 | ; return 0; } |
| 2982 | EOF |
| 2983 | if { (eval echo configure:2984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2984 | rm -rf conftest* |
| 2985 | ac_cv_c_inline=$ac_kw; break |
| 2986 | else |
| 2987 | echo "configure: failed program was:" >&5 |
| 2988 | cat conftest.$ac_ext >&5 |
| 2989 | fi |
| 2990 | rm -f conftest* |
| 2991 | done |
| 2992 | |
| 2993 | fi |
| 2994 | |
| 2995 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
| 2996 | case "$ac_cv_c_inline" in |
| 2997 | inline | yes) ;; |
| 2998 | no) cat >> confdefs.h <<\EOF |
| 2999 | #define inline |
| 3000 | EOF |
| 3001 | ;; |
| 3002 | *) cat >> confdefs.h <<EOF |
| 3003 | #define inline $ac_cv_c_inline |
| 3004 | EOF |
| 3005 | ;; |
| 3006 | esac |
| 3007 | |
| 3008 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
| 3009 | echo "configure:3010: checking for off_t" >&5 |
| 3010 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
| 3011 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3012 | else |
| 3013 | cat > conftest.$ac_ext <<EOF |
| 3014 | #line 3015 "configure" |
| 3015 | #include "confdefs.h" |
| 3016 | #include <sys/types.h> |
| 3017 | #if STDC_HEADERS |
| 3018 | #include <stdlib.h> |
| 3019 | #include <stddef.h> |
| 3020 | #endif |
| 3021 | EOF |
| 3022 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3023 | egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 3024 | rm -rf conftest* |
| 3025 | ac_cv_type_off_t=yes |
| 3026 | else |
| 3027 | rm -rf conftest* |
| 3028 | ac_cv_type_off_t=no |
| 3029 | fi |
| 3030 | rm -f conftest* |
| 3031 | |
| 3032 | fi |
| 3033 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
| 3034 | if test $ac_cv_type_off_t = no; then |
| 3035 | cat >> confdefs.h <<\EOF |
| 3036 | #define off_t long |
| 3037 | EOF |
| 3038 | |
| 3039 | fi |
| 3040 | |
| 3041 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
| 3042 | echo "configure:3043: checking for size_t" >&5 |
| 3043 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
| 3044 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3045 | else |
| 3046 | cat > conftest.$ac_ext <<EOF |
| 3047 | #line 3048 "configure" |
| 3048 | #include "confdefs.h" |
| 3049 | #include <sys/types.h> |
| 3050 | #if STDC_HEADERS |
| 3051 | #include <stdlib.h> |
| 3052 | #include <stddef.h> |
| 3053 | #endif |
| 3054 | EOF |
| 3055 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3056 | egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 3057 | rm -rf conftest* |
| 3058 | ac_cv_type_size_t=yes |
| 3059 | else |
| 3060 | rm -rf conftest* |
| 3061 | ac_cv_type_size_t=no |
| 3062 | fi |
| 3063 | rm -f conftest* |
| 3064 | |
| 3065 | fi |
| 3066 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
| 3067 | if test $ac_cv_type_size_t = no; then |
| 3068 | cat >> confdefs.h <<\EOF |
| 3069 | #define size_t unsigned |
| 3070 | EOF |
| 3071 | |
| 3072 | fi |
| 3073 | |
| 3074 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 3075 | # for constant arguments. Useless! |
| 3076 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
| 3077 | echo "configure:3078: checking for working alloca.h" >&5 |
| 3078 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
| 3079 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3080 | else |
| 3081 | cat > conftest.$ac_ext <<EOF |
| 3082 | #line 3083 "configure" |
| 3083 | #include "confdefs.h" |
| 3084 | #include <alloca.h> |
| 3085 | int main() { |
| 3086 | char *p = alloca(2 * sizeof(int)); |
| 3087 | ; return 0; } |
| 3088 | EOF |
| 3089 | if { (eval echo configure:3090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3090 | rm -rf conftest* |
| 3091 | ac_cv_header_alloca_h=yes |
| 3092 | else |
| 3093 | echo "configure: failed program was:" >&5 |
| 3094 | cat conftest.$ac_ext >&5 |
| 3095 | rm -rf conftest* |
| 3096 | ac_cv_header_alloca_h=no |
| 3097 | fi |
| 3098 | rm -f conftest* |
| 3099 | fi |
| 3100 | |
| 3101 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 |
| 3102 | if test $ac_cv_header_alloca_h = yes; then |
| 3103 | cat >> confdefs.h <<\EOF |
| 3104 | #define HAVE_ALLOCA_H 1 |
| 3105 | EOF |
| 3106 | |
| 3107 | fi |
| 3108 | |
| 3109 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
| 3110 | echo "configure:3111: checking for alloca" >&5 |
| 3111 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
| 3112 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3113 | else |
| 3114 | cat > conftest.$ac_ext <<EOF |
| 3115 | #line 3116 "configure" |
| 3116 | #include "confdefs.h" |
| 3117 | |
| 3118 | #ifdef __GNUC__ |
| 3119 | # define alloca __builtin_alloca |
| 3120 | #else |
| 3121 | # ifdef _MSC_VER |
| 3122 | # include <malloc.h> |
| 3123 | # define alloca _alloca |
| 3124 | # else |
| 3125 | # if HAVE_ALLOCA_H |
| 3126 | # include <alloca.h> |
| 3127 | # else |
| 3128 | # ifdef _AIX |
| 3129 | #pragma alloca |
| 3130 | # else |
| 3131 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 3132 | char *alloca (); |
| 3133 | # endif |
| 3134 | # endif |
| 3135 | # endif |
| 3136 | # endif |
| 3137 | #endif |
| 3138 | |
| 3139 | int main() { |
| 3140 | char *p = (char *) alloca(1); |
| 3141 | ; return 0; } |
| 3142 | EOF |
| 3143 | if { (eval echo configure:3144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3144 | rm -rf conftest* |
| 3145 | ac_cv_func_alloca_works=yes |
| 3146 | else |
| 3147 | echo "configure: failed program was:" >&5 |
| 3148 | cat conftest.$ac_ext >&5 |
| 3149 | rm -rf conftest* |
| 3150 | ac_cv_func_alloca_works=no |
| 3151 | fi |
| 3152 | rm -f conftest* |
| 3153 | fi |
| 3154 | |
| 3155 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 |
| 3156 | if test $ac_cv_func_alloca_works = yes; then |
| 3157 | cat >> confdefs.h <<\EOF |
| 3158 | #define HAVE_ALLOCA 1 |
| 3159 | EOF |
| 3160 | |
| 3161 | fi |
| 3162 | |
| 3163 | if test $ac_cv_func_alloca_works = no; then |
| 3164 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 3165 | # that cause trouble. Some versions do not even contain alloca or |
| 3166 | # contain a buggy version. If you still want to use their alloca, |
| 3167 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 3168 | ALLOCA=alloca.${ac_objext} |
| 3169 | cat >> confdefs.h <<\EOF |
| 3170 | #define C_ALLOCA 1 |
| 3171 | EOF |
| 3172 | |
| 3173 | |
| 3174 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
| 3175 | echo "configure:3176: checking whether alloca needs Cray hooks" >&5 |
| 3176 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
| 3177 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3178 | else |
| 3179 | cat > conftest.$ac_ext <<EOF |
| 3180 | #line 3181 "configure" |
| 3181 | #include "confdefs.h" |
| 3182 | #if defined(CRAY) && ! defined(CRAY2) |
| 3183 | webecray |
| 3184 | #else |
| 3185 | wenotbecray |
| 3186 | #endif |
| 3187 | |
| 3188 | EOF |
| 3189 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3190 | egrep "webecray" >/dev/null 2>&1; then |
| 3191 | rm -rf conftest* |
| 3192 | ac_cv_os_cray=yes |
| 3193 | else |
| 3194 | rm -rf conftest* |
| 3195 | ac_cv_os_cray=no |
| 3196 | fi |
| 3197 | rm -f conftest* |
| 3198 | |
| 3199 | fi |
| 3200 | |
| 3201 | echo "$ac_t""$ac_cv_os_cray" 1>&6 |
| 3202 | if test $ac_cv_os_cray = yes; then |
| 3203 | for ac_func in _getb67 GETB67 getb67; do |
| 3204 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 3205 | echo "configure:3206: checking for $ac_func" >&5 |
| 3206 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 3207 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3208 | else |
| 3209 | cat > conftest.$ac_ext <<EOF |
| 3210 | #line 3211 "configure" |
| 3211 | #include "confdefs.h" |
| 3212 | /* System header to define __stub macros and hopefully few prototypes, |
| 3213 | which can conflict with char $ac_func(); below. */ |
| 3214 | #include <assert.h> |
| 3215 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3216 | /* We use char because int might match the return type of a gcc2 |
| 3217 | builtin and then its argument prototype would still apply. */ |
| 3218 | char $ac_func(); |
| 3219 | |
| 3220 | int main() { |
| 3221 | |
| 3222 | /* The GNU C library defines this for functions which it implements |
| 3223 | to always fail with ENOSYS. Some functions are actually named |
| 3224 | something starting with __ and the normal name is an alias. */ |
| 3225 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3226 | choke me |
| 3227 | #else |
| 3228 | $ac_func(); |
| 3229 | #endif |
| 3230 | |
| 3231 | ; return 0; } |
| 3232 | EOF |
| 3233 | if { (eval echo configure:3234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3234 | rm -rf conftest* |
| 3235 | eval "ac_cv_func_$ac_func=yes" |
| 3236 | else |
| 3237 | echo "configure: failed program was:" >&5 |
| 3238 | cat conftest.$ac_ext >&5 |
| 3239 | rm -rf conftest* |
| 3240 | eval "ac_cv_func_$ac_func=no" |
| 3241 | fi |
| 3242 | rm -f conftest* |
| 3243 | fi |
| 3244 | |
| 3245 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 3246 | echo "$ac_t""yes" 1>&6 |
| 3247 | cat >> confdefs.h <<EOF |
| 3248 | #define CRAY_STACKSEG_END $ac_func |
| 3249 | EOF |
| 3250 | |
| 3251 | break |
| 3252 | else |
| 3253 | echo "$ac_t""no" 1>&6 |
| 3254 | fi |
| 3255 | |
| 3256 | done |
| 3257 | fi |
| 3258 | |
| 3259 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
| 3260 | echo "configure:3261: checking stack direction for C alloca" >&5 |
| 3261 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
| 3262 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3263 | else |
| 3264 | if test "$cross_compiling" = yes; then |
| 3265 | ac_cv_c_stack_direction=0 |
| 3266 | else |
| 3267 | cat > conftest.$ac_ext <<EOF |
| 3268 | #line 3269 "configure" |
| 3269 | #include "confdefs.h" |
| 3270 | find_stack_direction () |
| 3271 | { |
| 3272 | static char *addr = 0; |
| 3273 | auto char dummy; |
| 3274 | if (addr == 0) |
| 3275 | { |
| 3276 | addr = &dummy; |
| 3277 | return find_stack_direction (); |
| 3278 | } |
| 3279 | else |
| 3280 | return (&dummy > addr) ? 1 : -1; |
| 3281 | } |
| 3282 | main () |
| 3283 | { |
| 3284 | exit (find_stack_direction() < 0); |
| 3285 | } |
| 3286 | EOF |
| 3287 | if { (eval echo configure:3288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 3288 | then |
| 3289 | ac_cv_c_stack_direction=1 |
| 3290 | else |
| 3291 | echo "configure: failed program was:" >&5 |
| 3292 | cat conftest.$ac_ext >&5 |
| 3293 | rm -fr conftest* |
| 3294 | ac_cv_c_stack_direction=-1 |
| 3295 | fi |
| 3296 | rm -fr conftest* |
| 3297 | fi |
| 3298 | |
| 3299 | fi |
| 3300 | |
| 3301 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
| 3302 | cat >> confdefs.h <<EOF |
| 3303 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 3304 | EOF |
| 3305 | |
| 3306 | fi |
| 3307 | |
| 3308 | for ac_hdr in unistd.h |
| 3309 | do |
| 3310 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 3311 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 3312 | echo "configure:3313: checking for $ac_hdr" >&5 |
| 3313 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 3314 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3315 | else |
| 3316 | cat > conftest.$ac_ext <<EOF |
| 3317 | #line 3318 "configure" |
| 3318 | #include "confdefs.h" |
| 3319 | #include <$ac_hdr> |
| 3320 | EOF |
| 3321 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 3322 | { (eval echo configure:3323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 3323 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 3324 | if test -z "$ac_err"; then |
| 3325 | rm -rf conftest* |
| 3326 | eval "ac_cv_header_$ac_safe=yes" |
| 3327 | else |
| 3328 | echo "$ac_err" >&5 |
| 3329 | echo "configure: failed program was:" >&5 |
| 3330 | cat conftest.$ac_ext >&5 |
| 3331 | rm -rf conftest* |
| 3332 | eval "ac_cv_header_$ac_safe=no" |
| 3333 | fi |
| 3334 | rm -f conftest* |
| 3335 | fi |
| 3336 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3337 | echo "$ac_t""yes" 1>&6 |
| 3338 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 3339 | cat >> confdefs.h <<EOF |
| 3340 | #define $ac_tr_hdr 1 |
| 3341 | EOF |
| 3342 | |
| 3343 | else |
| 3344 | echo "$ac_t""no" 1>&6 |
| 3345 | fi |
| 3346 | done |
| 3347 | |
| 3348 | for ac_func in getpagesize |
| 3349 | do |
| 3350 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 3351 | echo "configure:3352: checking for $ac_func" >&5 |
| 3352 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 3353 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3354 | else |
| 3355 | cat > conftest.$ac_ext <<EOF |
| 3356 | #line 3357 "configure" |
| 3357 | #include "confdefs.h" |
| 3358 | /* System header to define __stub macros and hopefully few prototypes, |
| 3359 | which can conflict with char $ac_func(); below. */ |
| 3360 | #include <assert.h> |
| 3361 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3362 | /* We use char because int might match the return type of a gcc2 |
| 3363 | builtin and then its argument prototype would still apply. */ |
| 3364 | char $ac_func(); |
| 3365 | |
| 3366 | int main() { |
| 3367 | |
| 3368 | /* The GNU C library defines this for functions which it implements |
| 3369 | to always fail with ENOSYS. Some functions are actually named |
| 3370 | something starting with __ and the normal name is an alias. */ |
| 3371 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3372 | choke me |
| 3373 | #else |
| 3374 | $ac_func(); |
| 3375 | #endif |
| 3376 | |
| 3377 | ; return 0; } |
| 3378 | EOF |
| 3379 | if { (eval echo configure:3380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3380 | rm -rf conftest* |
| 3381 | eval "ac_cv_func_$ac_func=yes" |
| 3382 | else |
| 3383 | echo "configure: failed program was:" >&5 |
| 3384 | cat conftest.$ac_ext >&5 |
| 3385 | rm -rf conftest* |
| 3386 | eval "ac_cv_func_$ac_func=no" |
| 3387 | fi |
| 3388 | rm -f conftest* |
| 3389 | fi |
| 3390 | |
| 3391 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 3392 | echo "$ac_t""yes" 1>&6 |
| 3393 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3394 | cat >> confdefs.h <<EOF |
| 3395 | #define $ac_tr_func 1 |
| 3396 | EOF |
| 3397 | |
| 3398 | else |
| 3399 | echo "$ac_t""no" 1>&6 |
| 3400 | fi |
| 3401 | done |
| 3402 | |
| 3403 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
| 3404 | echo "configure:3405: checking for working mmap" >&5 |
| 3405 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
| 3406 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3407 | else |
| 3408 | if test "$cross_compiling" = yes; then |
| 3409 | ac_cv_func_mmap_fixed_mapped=no |
| 3410 | else |
| 3411 | cat > conftest.$ac_ext <<EOF |
| 3412 | #line 3413 "configure" |
| 3413 | #include "confdefs.h" |
| 3414 | |
| 3415 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 3416 | Here is a matrix of mmap possibilities: |
| 3417 | mmap private not fixed |
| 3418 | mmap private fixed at somewhere currently unmapped |
| 3419 | mmap private fixed at somewhere already mapped |
| 3420 | mmap shared not fixed |
| 3421 | mmap shared fixed at somewhere currently unmapped |
| 3422 | mmap shared fixed at somewhere already mapped |
| 3423 | For private mappings, we should verify that changes cannot be read() |
| 3424 | back from the file, nor mmap's back from the file at a different |
| 3425 | address. (There have been systems where private was not correctly |
| 3426 | implemented like the infamous i386 svr4.0, and systems where the |
| 3427 | VM page cache was not coherent with the filesystem buffer cache |
| 3428 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 3429 | For shared mappings, we should conversely verify that changes get |
| 3430 | propogated back to all the places they're supposed to be. |
| 3431 | |
| 3432 | Grep wants private fixed already mapped. |
| 3433 | The main things grep needs to know about mmap are: |
| 3434 | * does it exist and is it safe to write into the mmap'd area |
| 3435 | * how to use it (BSD variants) */ |
| 3436 | #include <sys/types.h> |
| 3437 | #include <fcntl.h> |
| 3438 | #include <sys/mman.h> |
| 3439 | |
| 3440 | /* This mess was copied from the GNU getpagesize.h. */ |
| 3441 | #ifndef HAVE_GETPAGESIZE |
| 3442 | # ifdef HAVE_UNISTD_H |
| 3443 | # include <unistd.h> |
| 3444 | # endif |
| 3445 | |
| 3446 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 3447 | # ifndef HAVE_SYS_PARAM_H |
| 3448 | # define HAVE_SYS_PARAM_H 1 |
| 3449 | # endif |
| 3450 | |
| 3451 | # ifdef _SC_PAGESIZE |
| 3452 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 3453 | # else /* no _SC_PAGESIZE */ |
| 3454 | # ifdef HAVE_SYS_PARAM_H |
| 3455 | # include <sys/param.h> |
| 3456 | # ifdef EXEC_PAGESIZE |
| 3457 | # define getpagesize() EXEC_PAGESIZE |
| 3458 | # else /* no EXEC_PAGESIZE */ |
| 3459 | # ifdef NBPG |
| 3460 | # define getpagesize() NBPG * CLSIZE |
| 3461 | # ifndef CLSIZE |
| 3462 | # define CLSIZE 1 |
| 3463 | # endif /* no CLSIZE */ |
| 3464 | # else /* no NBPG */ |
| 3465 | # ifdef NBPC |
| 3466 | # define getpagesize() NBPC |
| 3467 | # else /* no NBPC */ |
| 3468 | # ifdef PAGESIZE |
| 3469 | # define getpagesize() PAGESIZE |
| 3470 | # endif /* PAGESIZE */ |
| 3471 | # endif /* no NBPC */ |
| 3472 | # endif /* no NBPG */ |
| 3473 | # endif /* no EXEC_PAGESIZE */ |
| 3474 | # else /* no HAVE_SYS_PARAM_H */ |
| 3475 | # define getpagesize() 8192 /* punt totally */ |
| 3476 | # endif /* no HAVE_SYS_PARAM_H */ |
| 3477 | # endif /* no _SC_PAGESIZE */ |
| 3478 | |
| 3479 | #endif /* no HAVE_GETPAGESIZE */ |
| 3480 | |
| 3481 | #ifdef __cplusplus |
| 3482 | extern "C" { void *malloc(unsigned); } |
| 3483 | #else |
| 3484 | char *malloc(); |
| 3485 | #endif |
| 3486 | |
| 3487 | int |
| 3488 | main() |
| 3489 | { |
| 3490 | char *data, *data2, *data3; |
| 3491 | int i, pagesize; |
| 3492 | int fd; |
| 3493 | |
| 3494 | pagesize = getpagesize(); |
| 3495 | |
| 3496 | /* |
| 3497 | * First, make a file with some known garbage in it. |
| 3498 | */ |
| 3499 | data = malloc(pagesize); |
| 3500 | if (!data) |
| 3501 | exit(1); |
| 3502 | for (i = 0; i < pagesize; ++i) |
| 3503 | *(data + i) = rand(); |
| 3504 | umask(0); |
| 3505 | fd = creat("conftestmmap", 0600); |
| 3506 | if (fd < 0) |
| 3507 | exit(1); |
| 3508 | if (write(fd, data, pagesize) != pagesize) |
| 3509 | exit(1); |
| 3510 | close(fd); |
| 3511 | |
| 3512 | /* |
| 3513 | * Next, try to mmap the file at a fixed address which |
| 3514 | * already has something else allocated at it. If we can, |
| 3515 | * also make sure that we see the same garbage. |
| 3516 | */ |
| 3517 | fd = open("conftestmmap", O_RDWR); |
| 3518 | if (fd < 0) |
| 3519 | exit(1); |
| 3520 | data2 = malloc(2 * pagesize); |
| 3521 | if (!data2) |
| 3522 | exit(1); |
| 3523 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); |
| 3524 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, |
| 3525 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
| 3526 | exit(1); |
| 3527 | for (i = 0; i < pagesize; ++i) |
| 3528 | if (*(data + i) != *(data2 + i)) |
| 3529 | exit(1); |
| 3530 | |
| 3531 | /* |
| 3532 | * Finally, make sure that changes to the mapped area |
| 3533 | * do not percolate back to the file as seen by read(). |
| 3534 | * (This is a bug on some variants of i386 svr4.0.) |
| 3535 | */ |
| 3536 | for (i = 0; i < pagesize; ++i) |
| 3537 | *(data2 + i) = *(data2 + i) + 1; |
| 3538 | data3 = malloc(pagesize); |
| 3539 | if (!data3) |
| 3540 | exit(1); |
| 3541 | if (read(fd, data3, pagesize) != pagesize) |
| 3542 | exit(1); |
| 3543 | for (i = 0; i < pagesize; ++i) |
| 3544 | if (*(data + i) != *(data3 + i)) |
| 3545 | exit(1); |
| 3546 | close(fd); |
| 3547 | unlink("conftestmmap"); |
| 3548 | exit(0); |
| 3549 | } |
| 3550 | |
| 3551 | EOF |
| 3552 | if { (eval echo configure:3553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 3553 | then |
| 3554 | ac_cv_func_mmap_fixed_mapped=yes |
| 3555 | else |
| 3556 | echo "configure: failed program was:" >&5 |
| 3557 | cat conftest.$ac_ext >&5 |
| 3558 | rm -fr conftest* |
| 3559 | ac_cv_func_mmap_fixed_mapped=no |
| 3560 | fi |
| 3561 | rm -fr conftest* |
| 3562 | fi |
| 3563 | |
| 3564 | fi |
| 3565 | |
| 3566 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 |
| 3567 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 3568 | cat >> confdefs.h <<\EOF |
| 3569 | #define HAVE_MMAP 1 |
| 3570 | EOF |
| 3571 | |
| 3572 | fi |
| 3573 | |
| 3574 | |
| 3575 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ |
| 3576 | unistd.h values.h sys/param.h |
| 3577 | do |
| 3578 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 3579 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 3580 | echo "configure:3581: checking for $ac_hdr" >&5 |
| 3581 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 3582 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3583 | else |
| 3584 | cat > conftest.$ac_ext <<EOF |
| 3585 | #line 3586 "configure" |
| 3586 | #include "confdefs.h" |
| 3587 | #include <$ac_hdr> |
| 3588 | EOF |
| 3589 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 3590 | { (eval echo configure:3591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 3591 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 3592 | if test -z "$ac_err"; then |
| 3593 | rm -rf conftest* |
| 3594 | eval "ac_cv_header_$ac_safe=yes" |
| 3595 | else |
| 3596 | echo "$ac_err" >&5 |
| 3597 | echo "configure: failed program was:" >&5 |
| 3598 | cat conftest.$ac_ext >&5 |
| 3599 | rm -rf conftest* |
| 3600 | eval "ac_cv_header_$ac_safe=no" |
| 3601 | fi |
| 3602 | rm -f conftest* |
| 3603 | fi |
| 3604 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3605 | echo "$ac_t""yes" 1>&6 |
| 3606 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 3607 | cat >> confdefs.h <<EOF |
| 3608 | #define $ac_tr_hdr 1 |
| 3609 | EOF |
| 3610 | |
| 3611 | else |
| 3612 | echo "$ac_t""no" 1>&6 |
| 3613 | fi |
| 3614 | done |
| 3615 | |
| 3616 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ |
| 3617 | __argz_count __argz_stringify __argz_next |
| 3618 | do |
| 3619 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 3620 | echo "configure:3621: checking for $ac_func" >&5 |
| 3621 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 3622 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3623 | else |
| 3624 | cat > conftest.$ac_ext <<EOF |
| 3625 | #line 3626 "configure" |
| 3626 | #include "confdefs.h" |
| 3627 | /* System header to define __stub macros and hopefully few prototypes, |
| 3628 | which can conflict with char $ac_func(); below. */ |
| 3629 | #include <assert.h> |
| 3630 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3631 | /* We use char because int might match the return type of a gcc2 |
| 3632 | builtin and then its argument prototype would still apply. */ |
| 3633 | char $ac_func(); |
| 3634 | |
| 3635 | int main() { |
| 3636 | |
| 3637 | /* The GNU C library defines this for functions which it implements |
| 3638 | to always fail with ENOSYS. Some functions are actually named |
| 3639 | something starting with __ and the normal name is an alias. */ |
| 3640 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3641 | choke me |
| 3642 | #else |
| 3643 | $ac_func(); |
| 3644 | #endif |
| 3645 | |
| 3646 | ; return 0; } |
| 3647 | EOF |
| 3648 | if { (eval echo configure:3649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3649 | rm -rf conftest* |
| 3650 | eval "ac_cv_func_$ac_func=yes" |
| 3651 | else |
| 3652 | echo "configure: failed program was:" >&5 |
| 3653 | cat conftest.$ac_ext >&5 |
| 3654 | rm -rf conftest* |
| 3655 | eval "ac_cv_func_$ac_func=no" |
| 3656 | fi |
| 3657 | rm -f conftest* |
| 3658 | fi |
| 3659 | |
| 3660 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 3661 | echo "$ac_t""yes" 1>&6 |
| 3662 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3663 | cat >> confdefs.h <<EOF |
| 3664 | #define $ac_tr_func 1 |
| 3665 | EOF |
| 3666 | |
| 3667 | else |
| 3668 | echo "$ac_t""no" 1>&6 |
| 3669 | fi |
| 3670 | done |
| 3671 | |
| 3672 | |
| 3673 | if test "${ac_cv_func_stpcpy+set}" != "set"; then |
| 3674 | for ac_func in stpcpy |
| 3675 | do |
| 3676 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 3677 | echo "configure:3678: checking for $ac_func" >&5 |
| 3678 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 3679 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3680 | else |
| 3681 | cat > conftest.$ac_ext <<EOF |
| 3682 | #line 3683 "configure" |
| 3683 | #include "confdefs.h" |
| 3684 | /* System header to define __stub macros and hopefully few prototypes, |
| 3685 | which can conflict with char $ac_func(); below. */ |
| 3686 | #include <assert.h> |
| 3687 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3688 | /* We use char because int might match the return type of a gcc2 |
| 3689 | builtin and then its argument prototype would still apply. */ |
| 3690 | char $ac_func(); |
| 3691 | |
| 3692 | int main() { |
| 3693 | |
| 3694 | /* The GNU C library defines this for functions which it implements |
| 3695 | to always fail with ENOSYS. Some functions are actually named |
| 3696 | something starting with __ and the normal name is an alias. */ |
| 3697 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3698 | choke me |
| 3699 | #else |
| 3700 | $ac_func(); |
| 3701 | #endif |
| 3702 | |
| 3703 | ; return 0; } |
| 3704 | EOF |
| 3705 | if { (eval echo configure:3706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3706 | rm -rf conftest* |
| 3707 | eval "ac_cv_func_$ac_func=yes" |
| 3708 | else |
| 3709 | echo "configure: failed program was:" >&5 |
| 3710 | cat conftest.$ac_ext >&5 |
| 3711 | rm -rf conftest* |
| 3712 | eval "ac_cv_func_$ac_func=no" |
| 3713 | fi |
| 3714 | rm -f conftest* |
| 3715 | fi |
| 3716 | |
| 3717 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 3718 | echo "$ac_t""yes" 1>&6 |
| 3719 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3720 | cat >> confdefs.h <<EOF |
| 3721 | #define $ac_tr_func 1 |
| 3722 | EOF |
| 3723 | |
| 3724 | else |
| 3725 | echo "$ac_t""no" 1>&6 |
| 3726 | fi |
| 3727 | done |
| 3728 | |
| 3729 | fi |
| 3730 | if test "${ac_cv_func_stpcpy}" = "yes"; then |
| 3731 | cat >> confdefs.h <<\EOF |
| 3732 | #define HAVE_STPCPY 1 |
| 3733 | EOF |
| 3734 | |
| 3735 | fi |
| 3736 | |
| 3737 | if test $ac_cv_header_locale_h = yes; then |
| 3738 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 |
| 3739 | echo "configure:3740: checking for LC_MESSAGES" >&5 |
| 3740 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then |
| 3741 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3742 | else |
| 3743 | cat > conftest.$ac_ext <<EOF |
| 3744 | #line 3745 "configure" |
| 3745 | #include "confdefs.h" |
| 3746 | #include <locale.h> |
| 3747 | int main() { |
| 3748 | return LC_MESSAGES |
| 3749 | ; return 0; } |
| 3750 | EOF |
| 3751 | if { (eval echo configure:3752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3752 | rm -rf conftest* |
| 3753 | am_cv_val_LC_MESSAGES=yes |
| 3754 | else |
| 3755 | echo "configure: failed program was:" >&5 |
| 3756 | cat conftest.$ac_ext >&5 |
| 3757 | rm -rf conftest* |
| 3758 | am_cv_val_LC_MESSAGES=no |
| 3759 | fi |
| 3760 | rm -f conftest* |
| 3761 | fi |
| 3762 | |
| 3763 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 |
| 3764 | if test $am_cv_val_LC_MESSAGES = yes; then |
| 3765 | cat >> confdefs.h <<\EOF |
| 3766 | #define HAVE_LC_MESSAGES 1 |
| 3767 | EOF |
| 3768 | |
| 3769 | fi |
| 3770 | fi |
| 3771 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 |
| 3772 | echo "configure:3773: checking whether NLS is requested" >&5 |
| 3773 | # Check whether --enable-nls or --disable-nls was given. |
| 3774 | if test "${enable_nls+set}" = set; then |
| 3775 | enableval="$enable_nls" |
| 3776 | USE_NLS=$enableval |
| 3777 | else |
| 3778 | USE_NLS=yes |
| 3779 | fi |
| 3780 | |
| 3781 | echo "$ac_t""$USE_NLS" 1>&6 |
| 3782 | |
| 3783 | |
| 3784 | USE_INCLUDED_LIBINTL=no |
| 3785 | |
| 3786 | if test "$USE_NLS" = "yes"; then |
| 3787 | cat >> confdefs.h <<\EOF |
| 3788 | #define ENABLE_NLS 1 |
| 3789 | EOF |
| 3790 | |
| 3791 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 |
| 3792 | echo "configure:3793: checking whether included gettext is requested" >&5 |
| 3793 | # Check whether --with-included-gettext or --without-included-gettext was given. |
| 3794 | if test "${with_included_gettext+set}" = set; then |
| 3795 | withval="$with_included_gettext" |
| 3796 | nls_cv_force_use_gnu_gettext=$withval |
| 3797 | else |
| 3798 | nls_cv_force_use_gnu_gettext=no |
| 3799 | fi |
| 3800 | |
| 3801 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 |
| 3802 | |
| 3803 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 3804 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
| 3805 | nls_cv_header_intl= |
| 3806 | nls_cv_header_libgt= |
| 3807 | CATOBJEXT=NONE |
| 3808 | |
| 3809 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` |
| 3810 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 |
| 3811 | echo "configure:3812: checking for libintl.h" >&5 |
| 3812 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 3813 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3814 | else |
| 3815 | cat > conftest.$ac_ext <<EOF |
| 3816 | #line 3817 "configure" |
| 3817 | #include "confdefs.h" |
| 3818 | #include <libintl.h> |
| 3819 | EOF |
| 3820 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 3821 | { (eval echo configure:3822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 3822 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 3823 | if test -z "$ac_err"; then |
| 3824 | rm -rf conftest* |
| 3825 | eval "ac_cv_header_$ac_safe=yes" |
| 3826 | else |
| 3827 | echo "$ac_err" >&5 |
| 3828 | echo "configure: failed program was:" >&5 |
| 3829 | cat conftest.$ac_ext >&5 |
| 3830 | rm -rf conftest* |
| 3831 | eval "ac_cv_header_$ac_safe=no" |
| 3832 | fi |
| 3833 | rm -f conftest* |
| 3834 | fi |
| 3835 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3836 | echo "$ac_t""yes" 1>&6 |
| 3837 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 |
| 3838 | echo "configure:3839: checking for gettext in libc" >&5 |
| 3839 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then |
| 3840 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3841 | else |
| 3842 | cat > conftest.$ac_ext <<EOF |
| 3843 | #line 3844 "configure" |
| 3844 | #include "confdefs.h" |
| 3845 | #include <libintl.h> |
| 3846 | int main() { |
| 3847 | return (int) gettext ("") |
| 3848 | ; return 0; } |
| 3849 | EOF |
| 3850 | if { (eval echo configure:3851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3851 | rm -rf conftest* |
| 3852 | gt_cv_func_gettext_libc=yes |
| 3853 | else |
| 3854 | echo "configure: failed program was:" >&5 |
| 3855 | cat conftest.$ac_ext >&5 |
| 3856 | rm -rf conftest* |
| 3857 | gt_cv_func_gettext_libc=no |
| 3858 | fi |
| 3859 | rm -f conftest* |
| 3860 | fi |
| 3861 | |
| 3862 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 |
| 3863 | |
| 3864 | if test "$gt_cv_func_gettext_libc" != "yes"; then |
| 3865 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 |
| 3866 | echo "configure:3867: checking for bindtextdomain in -lintl" >&5 |
| 3867 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` |
| 3868 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3869 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3870 | else |
| 3871 | ac_save_LIBS="$LIBS" |
| 3872 | LIBS="-lintl $LIBS" |
| 3873 | cat > conftest.$ac_ext <<EOF |
| 3874 | #line 3875 "configure" |
| 3875 | #include "confdefs.h" |
| 3876 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3877 | /* We use char because int might match the return type of a gcc2 |
| 3878 | builtin and then its argument prototype would still apply. */ |
| 3879 | char bindtextdomain(); |
| 3880 | |
| 3881 | int main() { |
| 3882 | bindtextdomain() |
| 3883 | ; return 0; } |
| 3884 | EOF |
| 3885 | if { (eval echo configure:3886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3886 | rm -rf conftest* |
| 3887 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3888 | else |
| 3889 | echo "configure: failed program was:" >&5 |
| 3890 | cat conftest.$ac_ext >&5 |
| 3891 | rm -rf conftest* |
| 3892 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3893 | fi |
| 3894 | rm -f conftest* |
| 3895 | LIBS="$ac_save_LIBS" |
| 3896 | |
| 3897 | fi |
| 3898 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3899 | echo "$ac_t""yes" 1>&6 |
| 3900 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 |
| 3901 | echo "configure:3902: checking for gettext in libintl" >&5 |
| 3902 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then |
| 3903 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3904 | else |
| 3905 | cat > conftest.$ac_ext <<EOF |
| 3906 | #line 3907 "configure" |
| 3907 | #include "confdefs.h" |
| 3908 | |
| 3909 | int main() { |
| 3910 | return (int) gettext ("") |
| 3911 | ; return 0; } |
| 3912 | EOF |
| 3913 | if { (eval echo configure:3914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3914 | rm -rf conftest* |
| 3915 | gt_cv_func_gettext_libintl=yes |
| 3916 | else |
| 3917 | echo "configure: failed program was:" >&5 |
| 3918 | cat conftest.$ac_ext >&5 |
| 3919 | rm -rf conftest* |
| 3920 | gt_cv_func_gettext_libintl=no |
| 3921 | fi |
| 3922 | rm -f conftest* |
| 3923 | fi |
| 3924 | |
| 3925 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 |
| 3926 | else |
| 3927 | echo "$ac_t""no" 1>&6 |
| 3928 | fi |
| 3929 | |
| 3930 | fi |
| 3931 | |
| 3932 | if test "$gt_cv_func_gettext_libc" = "yes" \ |
| 3933 | || test "$gt_cv_func_gettext_libintl" = "yes"; then |
| 3934 | cat >> confdefs.h <<\EOF |
| 3935 | #define HAVE_GETTEXT 1 |
| 3936 | EOF |
| 3937 | |
| 3938 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 3939 | set dummy msgfmt; ac_word=$2 |
| 3940 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 3941 | echo "configure:3942: checking for $ac_word" >&5 |
| 3942 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
| 3943 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3944 | else |
| 3945 | case "$MSGFMT" in |
| 3946 | /*) |
| 3947 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 3948 | ;; |
| 3949 | *) |
| 3950 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 3951 | for ac_dir in $PATH; do |
| 3952 | test -z "$ac_dir" && ac_dir=. |
| 3953 | if test -f $ac_dir/$ac_word; then |
| 3954 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then |
| 3955 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" |
| 3956 | break |
| 3957 | fi |
| 3958 | fi |
| 3959 | done |
| 3960 | IFS="$ac_save_ifs" |
| 3961 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" |
| 3962 | ;; |
| 3963 | esac |
| 3964 | fi |
| 3965 | MSGFMT="$ac_cv_path_MSGFMT" |
| 3966 | if test -n "$MSGFMT"; then |
| 3967 | echo "$ac_t""$MSGFMT" 1>&6 |
| 3968 | else |
| 3969 | echo "$ac_t""no" 1>&6 |
| 3970 | fi |
| 3971 | if test "$MSGFMT" != "no"; then |
| 3972 | for ac_func in dcgettext |
| 3973 | do |
| 3974 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 3975 | echo "configure:3976: checking for $ac_func" >&5 |
| 3976 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 3977 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3978 | else |
| 3979 | cat > conftest.$ac_ext <<EOF |
| 3980 | #line 3981 "configure" |
| 3981 | #include "confdefs.h" |
| 3982 | /* System header to define __stub macros and hopefully few prototypes, |
| 3983 | which can conflict with char $ac_func(); below. */ |
| 3984 | #include <assert.h> |
| 3985 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3986 | /* We use char because int might match the return type of a gcc2 |
| 3987 | builtin and then its argument prototype would still apply. */ |
| 3988 | char $ac_func(); |
| 3989 | |
| 3990 | int main() { |
| 3991 | |
| 3992 | /* The GNU C library defines this for functions which it implements |
| 3993 | to always fail with ENOSYS. Some functions are actually named |
| 3994 | something starting with __ and the normal name is an alias. */ |
| 3995 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3996 | choke me |
| 3997 | #else |
| 3998 | $ac_func(); |
| 3999 | #endif |
| 4000 | |
| 4001 | ; return 0; } |
| 4002 | EOF |
| 4003 | if { (eval echo configure:4004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4004 | rm -rf conftest* |
| 4005 | eval "ac_cv_func_$ac_func=yes" |
| 4006 | else |
| 4007 | echo "configure: failed program was:" >&5 |
| 4008 | cat conftest.$ac_ext >&5 |
| 4009 | rm -rf conftest* |
| 4010 | eval "ac_cv_func_$ac_func=no" |
| 4011 | fi |
| 4012 | rm -f conftest* |
| 4013 | fi |
| 4014 | |
| 4015 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4016 | echo "$ac_t""yes" 1>&6 |
| 4017 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4018 | cat >> confdefs.h <<EOF |
| 4019 | #define $ac_tr_func 1 |
| 4020 | EOF |
| 4021 | |
| 4022 | else |
| 4023 | echo "$ac_t""no" 1>&6 |
| 4024 | fi |
| 4025 | done |
| 4026 | |
| 4027 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 4028 | set dummy gmsgfmt; ac_word=$2 |
| 4029 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 4030 | echo "configure:4031: checking for $ac_word" >&5 |
| 4031 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
| 4032 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4033 | else |
| 4034 | case "$GMSGFMT" in |
| 4035 | /*) |
| 4036 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 4037 | ;; |
| 4038 | ?:/*) |
| 4039 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. |
| 4040 | ;; |
| 4041 | *) |
| 4042 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4043 | for ac_dir in $PATH; do |
| 4044 | test -z "$ac_dir" && ac_dir=. |
| 4045 | if test -f $ac_dir/$ac_word; then |
| 4046 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" |
| 4047 | break |
| 4048 | fi |
| 4049 | done |
| 4050 | IFS="$ac_save_ifs" |
| 4051 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 4052 | ;; |
| 4053 | esac |
| 4054 | fi |
| 4055 | GMSGFMT="$ac_cv_path_GMSGFMT" |
| 4056 | if test -n "$GMSGFMT"; then |
| 4057 | echo "$ac_t""$GMSGFMT" 1>&6 |
| 4058 | else |
| 4059 | echo "$ac_t""no" 1>&6 |
| 4060 | fi |
| 4061 | |
| 4062 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 4063 | set dummy xgettext; ac_word=$2 |
| 4064 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 4065 | echo "configure:4066: checking for $ac_word" >&5 |
| 4066 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
| 4067 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4068 | else |
| 4069 | case "$XGETTEXT" in |
| 4070 | /*) |
| 4071 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 4072 | ;; |
| 4073 | *) |
| 4074 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 4075 | for ac_dir in $PATH; do |
| 4076 | test -z "$ac_dir" && ac_dir=. |
| 4077 | if test -f $ac_dir/$ac_word; then |
| 4078 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then |
| 4079 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" |
| 4080 | break |
| 4081 | fi |
| 4082 | fi |
| 4083 | done |
| 4084 | IFS="$ac_save_ifs" |
| 4085 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 4086 | ;; |
| 4087 | esac |
| 4088 | fi |
| 4089 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 4090 | if test -n "$XGETTEXT"; then |
| 4091 | echo "$ac_t""$XGETTEXT" 1>&6 |
| 4092 | else |
| 4093 | echo "$ac_t""no" 1>&6 |
| 4094 | fi |
| 4095 | |
| 4096 | cat > conftest.$ac_ext <<EOF |
| 4097 | #line 4098 "configure" |
| 4098 | #include "confdefs.h" |
| 4099 | |
| 4100 | int main() { |
| 4101 | extern int _nl_msg_cat_cntr; |
| 4102 | return _nl_msg_cat_cntr |
| 4103 | ; return 0; } |
| 4104 | EOF |
| 4105 | if { (eval echo configure:4106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4106 | rm -rf conftest* |
| 4107 | CATOBJEXT=.gmo |
| 4108 | DATADIRNAME=share |
| 4109 | else |
| 4110 | echo "configure: failed program was:" >&5 |
| 4111 | cat conftest.$ac_ext >&5 |
| 4112 | rm -rf conftest* |
| 4113 | CATOBJEXT=.mo |
| 4114 | DATADIRNAME=lib |
| 4115 | fi |
| 4116 | rm -f conftest* |
| 4117 | INSTOBJEXT=.mo |
| 4118 | fi |
| 4119 | fi |
| 4120 | |
| 4121 | else |
| 4122 | echo "$ac_t""no" 1>&6 |
| 4123 | fi |
| 4124 | |
| 4125 | |
| 4126 | |
| 4127 | if test "$CATOBJEXT" = "NONE"; then |
| 4128 | nls_cv_use_gnu_gettext=yes |
| 4129 | fi |
| 4130 | fi |
| 4131 | |
| 4132 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 4133 | INTLOBJS="\$(GETTOBJS)" |
| 4134 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 4135 | set dummy msgfmt; ac_word=$2 |
| 4136 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 4137 | echo "configure:4138: checking for $ac_word" >&5 |
| 4138 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
| 4139 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4140 | else |
| 4141 | case "$MSGFMT" in |
| 4142 | /*) |
| 4143 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 4144 | ;; |
| 4145 | *) |
| 4146 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 4147 | for ac_dir in $PATH; do |
| 4148 | test -z "$ac_dir" && ac_dir=. |
| 4149 | if test -f $ac_dir/$ac_word; then |
| 4150 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then |
| 4151 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" |
| 4152 | break |
| 4153 | fi |
| 4154 | fi |
| 4155 | done |
| 4156 | IFS="$ac_save_ifs" |
| 4157 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" |
| 4158 | ;; |
| 4159 | esac |
| 4160 | fi |
| 4161 | MSGFMT="$ac_cv_path_MSGFMT" |
| 4162 | if test -n "$MSGFMT"; then |
| 4163 | echo "$ac_t""$MSGFMT" 1>&6 |
| 4164 | else |
| 4165 | echo "$ac_t""no" 1>&6 |
| 4166 | fi |
| 4167 | |
| 4168 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 4169 | set dummy gmsgfmt; ac_word=$2 |
| 4170 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 4171 | echo "configure:4172: checking for $ac_word" >&5 |
| 4172 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
| 4173 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4174 | else |
| 4175 | case "$GMSGFMT" in |
| 4176 | /*) |
| 4177 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 4178 | ;; |
| 4179 | ?:/*) |
| 4180 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. |
| 4181 | ;; |
| 4182 | *) |
| 4183 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4184 | for ac_dir in $PATH; do |
| 4185 | test -z "$ac_dir" && ac_dir=. |
| 4186 | if test -f $ac_dir/$ac_word; then |
| 4187 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" |
| 4188 | break |
| 4189 | fi |
| 4190 | done |
| 4191 | IFS="$ac_save_ifs" |
| 4192 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 4193 | ;; |
| 4194 | esac |
| 4195 | fi |
| 4196 | GMSGFMT="$ac_cv_path_GMSGFMT" |
| 4197 | if test -n "$GMSGFMT"; then |
| 4198 | echo "$ac_t""$GMSGFMT" 1>&6 |
| 4199 | else |
| 4200 | echo "$ac_t""no" 1>&6 |
| 4201 | fi |
| 4202 | |
| 4203 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 4204 | set dummy xgettext; ac_word=$2 |
| 4205 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 4206 | echo "configure:4207: checking for $ac_word" >&5 |
| 4207 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
| 4208 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4209 | else |
| 4210 | case "$XGETTEXT" in |
| 4211 | /*) |
| 4212 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 4213 | ;; |
| 4214 | *) |
| 4215 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 4216 | for ac_dir in $PATH; do |
| 4217 | test -z "$ac_dir" && ac_dir=. |
| 4218 | if test -f $ac_dir/$ac_word; then |
| 4219 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then |
| 4220 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" |
| 4221 | break |
| 4222 | fi |
| 4223 | fi |
| 4224 | done |
| 4225 | IFS="$ac_save_ifs" |
| 4226 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 4227 | ;; |
| 4228 | esac |
| 4229 | fi |
| 4230 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 4231 | if test -n "$XGETTEXT"; then |
| 4232 | echo "$ac_t""$XGETTEXT" 1>&6 |
| 4233 | else |
| 4234 | echo "$ac_t""no" 1>&6 |
| 4235 | fi |
| 4236 | |
| 4237 | |
| 4238 | USE_INCLUDED_LIBINTL=yes |
| 4239 | CATOBJEXT=.gmo |
| 4240 | INSTOBJEXT=.mo |
| 4241 | DATADIRNAME=share |
| 4242 | INTLDEPS='$(top_builddir)/../intl/libintl.a' |
| 4243 | INTLLIBS=$INTLDEPS |
| 4244 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` |
| 4245 | nls_cv_header_intl=libintl.h |
| 4246 | nls_cv_header_libgt=libgettext.h |
| 4247 | fi |
| 4248 | |
| 4249 | if test "$XGETTEXT" != ":"; then |
| 4250 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then |
| 4251 | : ; |
| 4252 | else |
| 4253 | echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6 |
| 4254 | XGETTEXT=":" |
| 4255 | fi |
| 4256 | fi |
| 4257 | |
| 4258 | # We need to process the po/ directory. |
| 4259 | POSUB=po |
| 4260 | else |
| 4261 | DATADIRNAME=share |
| 4262 | nls_cv_header_intl=libintl.h |
| 4263 | nls_cv_header_libgt=libgettext.h |
| 4264 | fi |
| 4265 | |
| 4266 | # If this is used in GNU gettext we have to set USE_NLS to `yes' |
| 4267 | # because some of the sources are only built for this goal. |
| 4268 | if test "$PACKAGE" = gettext; then |
| 4269 | USE_NLS=yes |
| 4270 | USE_INCLUDED_LIBINTL=yes |
| 4271 | fi |
| 4272 | |
| 4273 | for lang in $ALL_LINGUAS; do |
| 4274 | GMOFILES="$GMOFILES $lang.gmo" |
| 4275 | POFILES="$POFILES $lang.po" |
| 4276 | done |
| 4277 | |
| 4278 | |
| 4279 | |
| 4280 | |
| 4281 | |
| 4282 | |
| 4283 | |
| 4284 | |
| 4285 | |
| 4286 | |
| 4287 | |
| 4288 | |
| 4289 | |
| 4290 | |
| 4291 | if test "x$CATOBJEXT" != "x"; then |
| 4292 | if test "x$ALL_LINGUAS" = "x"; then |
| 4293 | LINGUAS= |
| 4294 | else |
| 4295 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 |
| 4296 | echo "configure:4297: checking for catalogs to be installed" >&5 |
| 4297 | NEW_LINGUAS= |
| 4298 | for lang in ${LINGUAS=$ALL_LINGUAS}; do |
| 4299 | case "$ALL_LINGUAS" in |
| 4300 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; |
| 4301 | esac |
| 4302 | done |
| 4303 | LINGUAS=$NEW_LINGUAS |
| 4304 | echo "$ac_t""$LINGUAS" 1>&6 |
| 4305 | fi |
| 4306 | |
| 4307 | if test -n "$LINGUAS"; then |
| 4308 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done |
| 4309 | fi |
| 4310 | fi |
| 4311 | |
| 4312 | if test $ac_cv_header_locale_h = yes; then |
| 4313 | INCLUDE_LOCALE_H="#include <locale.h>" |
| 4314 | else |
| 4315 | INCLUDE_LOCALE_H="\ |
| 4316 | /* The system does not provide the header <locale.h>. Take care yourself. */" |
| 4317 | fi |
| 4318 | |
| 4319 | |
| 4320 | if test -f $srcdir/po2tbl.sed.in; then |
| 4321 | if test "$CATOBJEXT" = ".cat"; then |
| 4322 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` |
| 4323 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 |
| 4324 | echo "configure:4325: checking for linux/version.h" >&5 |
| 4325 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 4326 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4327 | else |
| 4328 | cat > conftest.$ac_ext <<EOF |
| 4329 | #line 4330 "configure" |
| 4330 | #include "confdefs.h" |
| 4331 | #include <linux/version.h> |
| 4332 | EOF |
| 4333 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 4334 | { (eval echo configure:4335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 4335 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 4336 | if test -z "$ac_err"; then |
| 4337 | rm -rf conftest* |
| 4338 | eval "ac_cv_header_$ac_safe=yes" |
| 4339 | else |
| 4340 | echo "$ac_err" >&5 |
| 4341 | echo "configure: failed program was:" >&5 |
| 4342 | cat conftest.$ac_ext >&5 |
| 4343 | rm -rf conftest* |
| 4344 | eval "ac_cv_header_$ac_safe=no" |
| 4345 | fi |
| 4346 | rm -f conftest* |
| 4347 | fi |
| 4348 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 4349 | echo "$ac_t""yes" 1>&6 |
| 4350 | msgformat=linux |
| 4351 | else |
| 4352 | echo "$ac_t""no" 1>&6 |
| 4353 | msgformat=xopen |
| 4354 | fi |
| 4355 | |
| 4356 | |
| 4357 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed |
| 4358 | fi |
| 4359 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ |
| 4360 | $srcdir/po2tbl.sed.in > po2tbl.sed |
| 4361 | fi |
| 4362 | |
| 4363 | if test "$PACKAGE" = "gettext"; then |
| 4364 | GT_NO="#NO#" |
| 4365 | GT_YES= |
| 4366 | else |
| 4367 | GT_NO= |
| 4368 | GT_YES="#YES#" |
| 4369 | fi |
| 4370 | |
| 4371 | |
| 4372 | |
| 4373 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" |
| 4374 | |
| 4375 | |
| 4376 | l= |
| 4377 | |
| 4378 | |
| 4379 | if test -d $srcdir/po; then |
| 4380 | test -d po || mkdir po |
| 4381 | if test "x$srcdir" != "x."; then |
| 4382 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then |
| 4383 | posrcprefix="$srcdir/" |
| 4384 | else |
| 4385 | posrcprefix="../$srcdir/" |
| 4386 | fi |
| 4387 | else |
| 4388 | posrcprefix="../" |
| 4389 | fi |
| 4390 | rm -f po/POTFILES |
| 4391 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ |
| 4392 | < $srcdir/po/POTFILES.in > po/POTFILES |
| 4393 | fi |
| 4394 | |
| 4395 | |
| 4396 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 |
| 4397 | echo "configure:4398: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 4398 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
| 4399 | if test "${enable_maintainer_mode+set}" = set; then |
| 4400 | enableval="$enable_maintainer_mode" |
| 4401 | USE_MAINTAINER_MODE=$enableval |
| 4402 | else |
| 4403 | USE_MAINTAINER_MODE=no |
| 4404 | fi |
| 4405 | |
| 4406 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 |
| 4407 | if test $USE_MAINTAINER_MODE = yes; then |
| 4408 | MAINT= |
| 4409 | else |
| 4410 | MAINT='#M#' |
| 4411 | fi |
| 4412 | |
| 4413 | |
| 4414 | echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6 |
| 4415 | echo "configure:4416: checking for Cygwin32 environment" >&5 |
| 4416 | if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then |
| 4417 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4418 | else |
| 4419 | cat > conftest.$ac_ext <<EOF |
| 4420 | #line 4421 "configure" |
| 4421 | #include "confdefs.h" |
| 4422 | |
| 4423 | int main() { |
| 4424 | return __CYGWIN32__; |
| 4425 | ; return 0; } |
| 4426 | EOF |
| 4427 | if { (eval echo configure:4428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 4428 | rm -rf conftest* |
| 4429 | am_cv_cygwin32=yes |
| 4430 | else |
| 4431 | echo "configure: failed program was:" >&5 |
| 4432 | cat conftest.$ac_ext >&5 |
| 4433 | rm -rf conftest* |
| 4434 | am_cv_cygwin32=no |
| 4435 | fi |
| 4436 | rm -f conftest* |
| 4437 | rm -f conftest* |
| 4438 | fi |
| 4439 | |
| 4440 | echo "$ac_t""$am_cv_cygwin32" 1>&6 |
| 4441 | CYGWIN32= |
| 4442 | test "$am_cv_cygwin32" = yes && CYGWIN32=yes |
| 4443 | echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6 |
| 4444 | echo "configure:4445: checking for Mingw32 environment" >&5 |
| 4445 | if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then |
| 4446 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4447 | else |
| 4448 | cat > conftest.$ac_ext <<EOF |
| 4449 | #line 4450 "configure" |
| 4450 | #include "confdefs.h" |
| 4451 | |
| 4452 | int main() { |
| 4453 | return __MINGW32__; |
| 4454 | ; return 0; } |
| 4455 | EOF |
| 4456 | if { (eval echo configure:4457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 4457 | rm -rf conftest* |
| 4458 | am_cv_mingw32=yes |
| 4459 | else |
| 4460 | echo "configure: failed program was:" >&5 |
| 4461 | cat conftest.$ac_ext >&5 |
| 4462 | rm -rf conftest* |
| 4463 | am_cv_mingw32=no |
| 4464 | fi |
| 4465 | rm -f conftest* |
| 4466 | rm -f conftest* |
| 4467 | fi |
| 4468 | |
| 4469 | echo "$ac_t""$am_cv_mingw32" 1>&6 |
| 4470 | MINGW32= |
| 4471 | test "$am_cv_mingw32" = yes && MINGW32=yes |
| 4472 | |
| 4473 | |
| 4474 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 |
| 4475 | echo "configure:4476: checking for executable suffix" >&5 |
| 4476 | if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then |
| 4477 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4478 | else |
| 4479 | if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then |
| 4480 | am_cv_exeext=.exe |
| 4481 | else |
| 4482 | cat > am_c_test.c << 'EOF' |
| 4483 | int main() { |
| 4484 | /* Nothing needed here */ |
| 4485 | } |
| 4486 | EOF |
| 4487 | ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5 |
| 4488 | am_cv_exeext= |
| 4489 | for file in am_c_test.*; do |
| 4490 | case $file in |
| 4491 | *.c) ;; |
| 4492 | *.o) ;; |
| 4493 | *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;; |
| 4494 | esac |
| 4495 | done |
| 4496 | rm -f am_c_test* |
| 4497 | fi |
| 4498 | |
| 4499 | test x"${am_cv_exeext}" = x && am_cv_exeext=no |
| 4500 | fi |
| 4501 | EXEEXT="" |
| 4502 | test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext} |
| 4503 | echo "$ac_t""${am_cv_exeext}" 1>&6 |
| 4504 | |
| 4505 | |
| 4506 | for ac_hdr in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h |
| 4507 | do |
| 4508 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 4509 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 4510 | echo "configure:4511: checking for $ac_hdr" >&5 |
| 4511 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 4512 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4513 | else |
| 4514 | cat > conftest.$ac_ext <<EOF |
| 4515 | #line 4516 "configure" |
| 4516 | #include "confdefs.h" |
| 4517 | #include <$ac_hdr> |
| 4518 | EOF |
| 4519 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 4520 | { (eval echo configure:4521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 4521 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 4522 | if test -z "$ac_err"; then |
| 4523 | rm -rf conftest* |
| 4524 | eval "ac_cv_header_$ac_safe=yes" |
| 4525 | else |
| 4526 | echo "$ac_err" >&5 |
| 4527 | echo "configure: failed program was:" >&5 |
| 4528 | cat conftest.$ac_ext >&5 |
| 4529 | rm -rf conftest* |
| 4530 | eval "ac_cv_header_$ac_safe=no" |
| 4531 | fi |
| 4532 | rm -f conftest* |
| 4533 | fi |
| 4534 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 4535 | echo "$ac_t""yes" 1>&6 |
| 4536 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 4537 | cat >> confdefs.h <<EOF |
| 4538 | #define $ac_tr_hdr 1 |
| 4539 | EOF |
| 4540 | |
| 4541 | else |
| 4542 | echo "$ac_t""no" 1>&6 |
| 4543 | fi |
| 4544 | done |
| 4545 | |
| 4546 | |
| 4547 | # Put this here so that autoconf's "cross-compiling" message doesn't confuse |
| 4548 | # people who are not cross-compiling but are compiling cross-assemblers. |
| 4549 | echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6 |
| 4550 | echo "configure:4551: checking whether compiling a cross-assembler" >&5 |
| 4551 | if test "${host}" = "${target}"; then |
| 4552 | cross_gas=no |
| 4553 | else |
| 4554 | cross_gas=yes |
| 4555 | cat >> confdefs.h <<\EOF |
| 4556 | #define CROSS_COMPILE 1 |
| 4557 | EOF |
| 4558 | |
| 4559 | fi |
| 4560 | echo "$ac_t""$cross_gas" 1>&6 |
| 4561 | |
| 4562 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 4563 | # for constant arguments. Useless! |
| 4564 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
| 4565 | echo "configure:4566: checking for working alloca.h" >&5 |
| 4566 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
| 4567 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4568 | else |
| 4569 | cat > conftest.$ac_ext <<EOF |
| 4570 | #line 4571 "configure" |
| 4571 | #include "confdefs.h" |
| 4572 | #include <alloca.h> |
| 4573 | int main() { |
| 4574 | char *p = alloca(2 * sizeof(int)); |
| 4575 | ; return 0; } |
| 4576 | EOF |
| 4577 | if { (eval echo configure:4578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4578 | rm -rf conftest* |
| 4579 | ac_cv_header_alloca_h=yes |
| 4580 | else |
| 4581 | echo "configure: failed program was:" >&5 |
| 4582 | cat conftest.$ac_ext >&5 |
| 4583 | rm -rf conftest* |
| 4584 | ac_cv_header_alloca_h=no |
| 4585 | fi |
| 4586 | rm -f conftest* |
| 4587 | fi |
| 4588 | |
| 4589 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 |
| 4590 | if test $ac_cv_header_alloca_h = yes; then |
| 4591 | cat >> confdefs.h <<\EOF |
| 4592 | #define HAVE_ALLOCA_H 1 |
| 4593 | EOF |
| 4594 | |
| 4595 | fi |
| 4596 | |
| 4597 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
| 4598 | echo "configure:4599: checking for alloca" >&5 |
| 4599 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
| 4600 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4601 | else |
| 4602 | cat > conftest.$ac_ext <<EOF |
| 4603 | #line 4604 "configure" |
| 4604 | #include "confdefs.h" |
| 4605 | |
| 4606 | #ifdef __GNUC__ |
| 4607 | # define alloca __builtin_alloca |
| 4608 | #else |
| 4609 | # ifdef _MSC_VER |
| 4610 | # include <malloc.h> |
| 4611 | # define alloca _alloca |
| 4612 | # else |
| 4613 | # if HAVE_ALLOCA_H |
| 4614 | # include <alloca.h> |
| 4615 | # else |
| 4616 | # ifdef _AIX |
| 4617 | #pragma alloca |
| 4618 | # else |
| 4619 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 4620 | char *alloca (); |
| 4621 | # endif |
| 4622 | # endif |
| 4623 | # endif |
| 4624 | # endif |
| 4625 | #endif |
| 4626 | |
| 4627 | int main() { |
| 4628 | char *p = (char *) alloca(1); |
| 4629 | ; return 0; } |
| 4630 | EOF |
| 4631 | if { (eval echo configure:4632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4632 | rm -rf conftest* |
| 4633 | ac_cv_func_alloca_works=yes |
| 4634 | else |
| 4635 | echo "configure: failed program was:" >&5 |
| 4636 | cat conftest.$ac_ext >&5 |
| 4637 | rm -rf conftest* |
| 4638 | ac_cv_func_alloca_works=no |
| 4639 | fi |
| 4640 | rm -f conftest* |
| 4641 | fi |
| 4642 | |
| 4643 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 |
| 4644 | if test $ac_cv_func_alloca_works = yes; then |
| 4645 | cat >> confdefs.h <<\EOF |
| 4646 | #define HAVE_ALLOCA 1 |
| 4647 | EOF |
| 4648 | |
| 4649 | fi |
| 4650 | |
| 4651 | if test $ac_cv_func_alloca_works = no; then |
| 4652 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 4653 | # that cause trouble. Some versions do not even contain alloca or |
| 4654 | # contain a buggy version. If you still want to use their alloca, |
| 4655 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 4656 | ALLOCA=alloca.${ac_objext} |
| 4657 | cat >> confdefs.h <<\EOF |
| 4658 | #define C_ALLOCA 1 |
| 4659 | EOF |
| 4660 | |
| 4661 | |
| 4662 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
| 4663 | echo "configure:4664: checking whether alloca needs Cray hooks" >&5 |
| 4664 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
| 4665 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4666 | else |
| 4667 | cat > conftest.$ac_ext <<EOF |
| 4668 | #line 4669 "configure" |
| 4669 | #include "confdefs.h" |
| 4670 | #if defined(CRAY) && ! defined(CRAY2) |
| 4671 | webecray |
| 4672 | #else |
| 4673 | wenotbecray |
| 4674 | #endif |
| 4675 | |
| 4676 | EOF |
| 4677 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4678 | egrep "webecray" >/dev/null 2>&1; then |
| 4679 | rm -rf conftest* |
| 4680 | ac_cv_os_cray=yes |
| 4681 | else |
| 4682 | rm -rf conftest* |
| 4683 | ac_cv_os_cray=no |
| 4684 | fi |
| 4685 | rm -f conftest* |
| 4686 | |
| 4687 | fi |
| 4688 | |
| 4689 | echo "$ac_t""$ac_cv_os_cray" 1>&6 |
| 4690 | if test $ac_cv_os_cray = yes; then |
| 4691 | for ac_func in _getb67 GETB67 getb67; do |
| 4692 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 4693 | echo "configure:4694: checking for $ac_func" >&5 |
| 4694 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 4695 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4696 | else |
| 4697 | cat > conftest.$ac_ext <<EOF |
| 4698 | #line 4699 "configure" |
| 4699 | #include "confdefs.h" |
| 4700 | /* System header to define __stub macros and hopefully few prototypes, |
| 4701 | which can conflict with char $ac_func(); below. */ |
| 4702 | #include <assert.h> |
| 4703 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4704 | /* We use char because int might match the return type of a gcc2 |
| 4705 | builtin and then its argument prototype would still apply. */ |
| 4706 | char $ac_func(); |
| 4707 | |
| 4708 | int main() { |
| 4709 | |
| 4710 | /* The GNU C library defines this for functions which it implements |
| 4711 | to always fail with ENOSYS. Some functions are actually named |
| 4712 | something starting with __ and the normal name is an alias. */ |
| 4713 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4714 | choke me |
| 4715 | #else |
| 4716 | $ac_func(); |
| 4717 | #endif |
| 4718 | |
| 4719 | ; return 0; } |
| 4720 | EOF |
| 4721 | if { (eval echo configure:4722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4722 | rm -rf conftest* |
| 4723 | eval "ac_cv_func_$ac_func=yes" |
| 4724 | else |
| 4725 | echo "configure: failed program was:" >&5 |
| 4726 | cat conftest.$ac_ext >&5 |
| 4727 | rm -rf conftest* |
| 4728 | eval "ac_cv_func_$ac_func=no" |
| 4729 | fi |
| 4730 | rm -f conftest* |
| 4731 | fi |
| 4732 | |
| 4733 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4734 | echo "$ac_t""yes" 1>&6 |
| 4735 | cat >> confdefs.h <<EOF |
| 4736 | #define CRAY_STACKSEG_END $ac_func |
| 4737 | EOF |
| 4738 | |
| 4739 | break |
| 4740 | else |
| 4741 | echo "$ac_t""no" 1>&6 |
| 4742 | fi |
| 4743 | |
| 4744 | done |
| 4745 | fi |
| 4746 | |
| 4747 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
| 4748 | echo "configure:4749: checking stack direction for C alloca" >&5 |
| 4749 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
| 4750 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4751 | else |
| 4752 | if test "$cross_compiling" = yes; then |
| 4753 | ac_cv_c_stack_direction=0 |
| 4754 | else |
| 4755 | cat > conftest.$ac_ext <<EOF |
| 4756 | #line 4757 "configure" |
| 4757 | #include "confdefs.h" |
| 4758 | find_stack_direction () |
| 4759 | { |
| 4760 | static char *addr = 0; |
| 4761 | auto char dummy; |
| 4762 | if (addr == 0) |
| 4763 | { |
| 4764 | addr = &dummy; |
| 4765 | return find_stack_direction (); |
| 4766 | } |
| 4767 | else |
| 4768 | return (&dummy > addr) ? 1 : -1; |
| 4769 | } |
| 4770 | main () |
| 4771 | { |
| 4772 | exit (find_stack_direction() < 0); |
| 4773 | } |
| 4774 | EOF |
| 4775 | if { (eval echo configure:4776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 4776 | then |
| 4777 | ac_cv_c_stack_direction=1 |
| 4778 | else |
| 4779 | echo "configure: failed program was:" >&5 |
| 4780 | cat conftest.$ac_ext >&5 |
| 4781 | rm -fr conftest* |
| 4782 | ac_cv_c_stack_direction=-1 |
| 4783 | fi |
| 4784 | rm -fr conftest* |
| 4785 | fi |
| 4786 | |
| 4787 | fi |
| 4788 | |
| 4789 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
| 4790 | cat >> confdefs.h <<EOF |
| 4791 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 4792 | EOF |
| 4793 | |
| 4794 | fi |
| 4795 | |
| 4796 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
| 4797 | echo "configure:4798: checking for inline" >&5 |
| 4798 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
| 4799 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4800 | else |
| 4801 | ac_cv_c_inline=no |
| 4802 | for ac_kw in inline __inline__ __inline; do |
| 4803 | cat > conftest.$ac_ext <<EOF |
| 4804 | #line 4805 "configure" |
| 4805 | #include "confdefs.h" |
| 4806 | |
| 4807 | int main() { |
| 4808 | } $ac_kw foo() { |
| 4809 | ; return 0; } |
| 4810 | EOF |
| 4811 | if { (eval echo configure:4812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 4812 | rm -rf conftest* |
| 4813 | ac_cv_c_inline=$ac_kw; break |
| 4814 | else |
| 4815 | echo "configure: failed program was:" >&5 |
| 4816 | cat conftest.$ac_ext >&5 |
| 4817 | fi |
| 4818 | rm -f conftest* |
| 4819 | done |
| 4820 | |
| 4821 | fi |
| 4822 | |
| 4823 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
| 4824 | case "$ac_cv_c_inline" in |
| 4825 | inline | yes) ;; |
| 4826 | no) cat >> confdefs.h <<\EOF |
| 4827 | #define inline |
| 4828 | EOF |
| 4829 | ;; |
| 4830 | *) cat >> confdefs.h <<EOF |
| 4831 | #define inline $ac_cv_c_inline |
| 4832 | EOF |
| 4833 | ;; |
| 4834 | esac |
| 4835 | |
| 4836 | |
| 4837 | # VMS doesn't have unlink. |
| 4838 | for ac_func in unlink remove |
| 4839 | do |
| 4840 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 4841 | echo "configure:4842: checking for $ac_func" >&5 |
| 4842 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 4843 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4844 | else |
| 4845 | cat > conftest.$ac_ext <<EOF |
| 4846 | #line 4847 "configure" |
| 4847 | #include "confdefs.h" |
| 4848 | /* System header to define __stub macros and hopefully few prototypes, |
| 4849 | which can conflict with char $ac_func(); below. */ |
| 4850 | #include <assert.h> |
| 4851 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4852 | /* We use char because int might match the return type of a gcc2 |
| 4853 | builtin and then its argument prototype would still apply. */ |
| 4854 | char $ac_func(); |
| 4855 | |
| 4856 | int main() { |
| 4857 | |
| 4858 | /* The GNU C library defines this for functions which it implements |
| 4859 | to always fail with ENOSYS. Some functions are actually named |
| 4860 | something starting with __ and the normal name is an alias. */ |
| 4861 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4862 | choke me |
| 4863 | #else |
| 4864 | $ac_func(); |
| 4865 | #endif |
| 4866 | |
| 4867 | ; return 0; } |
| 4868 | EOF |
| 4869 | if { (eval echo configure:4870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4870 | rm -rf conftest* |
| 4871 | eval "ac_cv_func_$ac_func=yes" |
| 4872 | else |
| 4873 | echo "configure: failed program was:" >&5 |
| 4874 | cat conftest.$ac_ext >&5 |
| 4875 | rm -rf conftest* |
| 4876 | eval "ac_cv_func_$ac_func=no" |
| 4877 | fi |
| 4878 | rm -f conftest* |
| 4879 | fi |
| 4880 | |
| 4881 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4882 | echo "$ac_t""yes" 1>&6 |
| 4883 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4884 | cat >> confdefs.h <<EOF |
| 4885 | #define $ac_tr_func 1 |
| 4886 | EOF |
| 4887 | break |
| 4888 | else |
| 4889 | echo "$ac_t""no" 1>&6 |
| 4890 | fi |
| 4891 | done |
| 4892 | |
| 4893 | |
| 4894 | # Some systems don't have sbrk(). |
| 4895 | for ac_func in sbrk |
| 4896 | do |
| 4897 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 4898 | echo "configure:4899: checking for $ac_func" >&5 |
| 4899 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 4900 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4901 | else |
| 4902 | cat > conftest.$ac_ext <<EOF |
| 4903 | #line 4904 "configure" |
| 4904 | #include "confdefs.h" |
| 4905 | /* System header to define __stub macros and hopefully few prototypes, |
| 4906 | which can conflict with char $ac_func(); below. */ |
| 4907 | #include <assert.h> |
| 4908 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4909 | /* We use char because int might match the return type of a gcc2 |
| 4910 | builtin and then its argument prototype would still apply. */ |
| 4911 | char $ac_func(); |
| 4912 | |
| 4913 | int main() { |
| 4914 | |
| 4915 | /* The GNU C library defines this for functions which it implements |
| 4916 | to always fail with ENOSYS. Some functions are actually named |
| 4917 | something starting with __ and the normal name is an alias. */ |
| 4918 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4919 | choke me |
| 4920 | #else |
| 4921 | $ac_func(); |
| 4922 | #endif |
| 4923 | |
| 4924 | ; return 0; } |
| 4925 | EOF |
| 4926 | if { (eval echo configure:4927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4927 | rm -rf conftest* |
| 4928 | eval "ac_cv_func_$ac_func=yes" |
| 4929 | else |
| 4930 | echo "configure: failed program was:" >&5 |
| 4931 | cat conftest.$ac_ext >&5 |
| 4932 | rm -rf conftest* |
| 4933 | eval "ac_cv_func_$ac_func=no" |
| 4934 | fi |
| 4935 | rm -f conftest* |
| 4936 | fi |
| 4937 | |
| 4938 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4939 | echo "$ac_t""yes" 1>&6 |
| 4940 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4941 | cat >> confdefs.h <<EOF |
| 4942 | #define $ac_tr_func 1 |
| 4943 | EOF |
| 4944 | |
| 4945 | else |
| 4946 | echo "$ac_t""no" 1>&6 |
| 4947 | fi |
| 4948 | done |
| 4949 | |
| 4950 | |
| 4951 | # Some non-ANSI preprocessors botch requoting inside strings. That's bad |
| 4952 | # enough, but on some of those systems, the assert macro relies on requoting |
| 4953 | # working properly! |
| 4954 | echo $ac_n "checking for working assert macro""... $ac_c" 1>&6 |
| 4955 | echo "configure:4956: checking for working assert macro" >&5 |
| 4956 | if eval "test \"`echo '$''{'gas_cv_assert_ok'+set}'`\" = set"; then |
| 4957 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4958 | else |
| 4959 | cat > conftest.$ac_ext <<EOF |
| 4960 | #line 4961 "configure" |
| 4961 | #include "confdefs.h" |
| 4962 | #include <assert.h> |
| 4963 | #include <stdio.h> |
| 4964 | int main() { |
| 4965 | |
| 4966 | /* check for requoting problems */ |
| 4967 | static int a, b, c, d; |
| 4968 | static char *s; |
| 4969 | assert (!strcmp(s, "foo bar baz quux")); |
| 4970 | /* check for newline handling */ |
| 4971 | assert (a == b |
| 4972 | || c == d); |
| 4973 | |
| 4974 | ; return 0; } |
| 4975 | EOF |
| 4976 | if { (eval echo configure:4977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4977 | rm -rf conftest* |
| 4978 | gas_cv_assert_ok=yes |
| 4979 | else |
| 4980 | echo "configure: failed program was:" >&5 |
| 4981 | cat conftest.$ac_ext >&5 |
| 4982 | rm -rf conftest* |
| 4983 | gas_cv_assert_ok=no |
| 4984 | fi |
| 4985 | rm -f conftest* |
| 4986 | fi |
| 4987 | echo "$ac_t""$gas_cv_assert_ok" 1>&6 |
| 4988 | test $gas_cv_assert_ok = yes || cat >> confdefs.h <<\EOF |
| 4989 | #define BROKEN_ASSERT 1 |
| 4990 | EOF |
| 4991 | |
| 4992 | |
| 4993 | |
| 4994 | # On some systems, the system header files may not declare malloc, realloc, |
| 4995 | # and free. There are places where gas needs these functions to have been |
| 4996 | # declared -- such as when taking their addresses. |
| 4997 | gas_test_headers=" |
| 4998 | #ifdef HAVE_MEMORY_H |
| 4999 | #include <memory.h> |
| 5000 | #endif |
| 5001 | #ifdef HAVE_STRING_H |
| 5002 | #include <string.h> |
| 5003 | #else |
| 5004 | #ifdef HAVE_STRINGS_H |
| 5005 | #include <strings.h> |
| 5006 | #endif |
| 5007 | #endif |
| 5008 | #ifdef HAVE_STDLIB_H |
| 5009 | #include <stdlib.h> |
| 5010 | #endif |
| 5011 | #ifdef HAVE_UNISTD_H |
| 5012 | #include <unistd.h> |
| 5013 | #endif |
| 5014 | " |
| 5015 | |
| 5016 | echo $ac_n "checking whether declaration is required for strstr""... $ac_c" 1>&6 |
| 5017 | echo "configure:5018: checking whether declaration is required for strstr" >&5 |
| 5018 | if eval "test \"`echo '$''{'gas_cv_decl_needed_strstr'+set}'`\" = set"; then |
| 5019 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5020 | else |
| 5021 | cat > conftest.$ac_ext <<EOF |
| 5022 | #line 5023 "configure" |
| 5023 | #include "confdefs.h" |
| 5024 | $gas_test_headers |
| 5025 | int main() { |
| 5026 | |
| 5027 | typedef char *(*f)(); |
| 5028 | f x; |
| 5029 | x = (f) strstr; |
| 5030 | |
| 5031 | ; return 0; } |
| 5032 | EOF |
| 5033 | if { (eval echo configure:5034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 5034 | rm -rf conftest* |
| 5035 | gas_cv_decl_needed_strstr=no |
| 5036 | else |
| 5037 | echo "configure: failed program was:" >&5 |
| 5038 | cat conftest.$ac_ext >&5 |
| 5039 | rm -rf conftest* |
| 5040 | gas_cv_decl_needed_strstr=yes |
| 5041 | fi |
| 5042 | rm -f conftest* |
| 5043 | fi |
| 5044 | echo "$ac_t""$gas_cv_decl_needed_strstr" 1>&6 |
| 5045 | test $gas_cv_decl_needed_strstr = no || { |
| 5046 | cat >> confdefs.h <<\EOF |
| 5047 | #define NEED_DECLARATION_STRSTR 1 |
| 5048 | EOF |
| 5049 | |
| 5050 | } |
| 5051 | |
| 5052 | |
| 5053 | echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6 |
| 5054 | echo "configure:5055: checking whether declaration is required for malloc" >&5 |
| 5055 | if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then |
| 5056 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5057 | else |
| 5058 | cat > conftest.$ac_ext <<EOF |
| 5059 | #line 5060 "configure" |
| 5060 | #include "confdefs.h" |
| 5061 | $gas_test_headers |
| 5062 | int main() { |
| 5063 | |
| 5064 | typedef char *(*f)(); |
| 5065 | f x; |
| 5066 | x = (f) malloc; |
| 5067 | |
| 5068 | ; return 0; } |
| 5069 | EOF |
| 5070 | if { (eval echo configure:5071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 5071 | rm -rf conftest* |
| 5072 | gas_cv_decl_needed_malloc=no |
| 5073 | else |
| 5074 | echo "configure: failed program was:" >&5 |
| 5075 | cat conftest.$ac_ext >&5 |
| 5076 | rm -rf conftest* |
| 5077 | gas_cv_decl_needed_malloc=yes |
| 5078 | fi |
| 5079 | rm -f conftest* |
| 5080 | fi |
| 5081 | echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&6 |
| 5082 | test $gas_cv_decl_needed_malloc = no || { |
| 5083 | cat >> confdefs.h <<\EOF |
| 5084 | #define NEED_DECLARATION_MALLOC 1 |
| 5085 | EOF |
| 5086 | |
| 5087 | } |
| 5088 | |
| 5089 | |
| 5090 | echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6 |
| 5091 | echo "configure:5092: checking whether declaration is required for free" >&5 |
| 5092 | if eval "test \"`echo '$''{'gas_cv_decl_needed_free'+set}'`\" = set"; then |
| 5093 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5094 | else |
| 5095 | cat > conftest.$ac_ext <<EOF |
| 5096 | #line 5097 "configure" |
| 5097 | #include "confdefs.h" |
| 5098 | $gas_test_headers |
| 5099 | int main() { |
| 5100 | |
| 5101 | typedef void (*f)(); |
| 5102 | f x; |
| 5103 | x = (f) free; |
| 5104 | |
| 5105 | ; return 0; } |
| 5106 | EOF |
| 5107 | if { (eval echo configure:5108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 5108 | rm -rf conftest* |
| 5109 | gas_cv_decl_needed_free=no |
| 5110 | else |
| 5111 | echo "configure: failed program was:" >&5 |
| 5112 | cat conftest.$ac_ext >&5 |
| 5113 | rm -rf conftest* |
| 5114 | gas_cv_decl_needed_free=yes |
| 5115 | fi |
| 5116 | rm -f conftest* |
| 5117 | fi |
| 5118 | echo "$ac_t""$gas_cv_decl_needed_free" 1>&6 |
| 5119 | test $gas_cv_decl_needed_free = no || { |
| 5120 | cat >> confdefs.h <<\EOF |
| 5121 | #define NEED_DECLARATION_FREE 1 |
| 5122 | EOF |
| 5123 | |
| 5124 | } |
| 5125 | |
| 5126 | |
| 5127 | echo $ac_n "checking whether declaration is required for sbrk""... $ac_c" 1>&6 |
| 5128 | echo "configure:5129: checking whether declaration is required for sbrk" >&5 |
| 5129 | if eval "test \"`echo '$''{'gas_cv_decl_needed_sbrk'+set}'`\" = set"; then |
| 5130 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5131 | else |
| 5132 | cat > conftest.$ac_ext <<EOF |
| 5133 | #line 5134 "configure" |
| 5134 | #include "confdefs.h" |
| 5135 | $gas_test_headers |
| 5136 | int main() { |
| 5137 | |
| 5138 | typedef char *(*f)(); |
| 5139 | f x; |
| 5140 | x = (f) sbrk; |
| 5141 | |
| 5142 | ; return 0; } |
| 5143 | EOF |
| 5144 | if { (eval echo configure:5145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 5145 | rm -rf conftest* |
| 5146 | gas_cv_decl_needed_sbrk=no |
| 5147 | else |
| 5148 | echo "configure: failed program was:" >&5 |
| 5149 | cat conftest.$ac_ext >&5 |
| 5150 | rm -rf conftest* |
| 5151 | gas_cv_decl_needed_sbrk=yes |
| 5152 | fi |
| 5153 | rm -f conftest* |
| 5154 | fi |
| 5155 | echo "$ac_t""$gas_cv_decl_needed_sbrk" 1>&6 |
| 5156 | test $gas_cv_decl_needed_sbrk = no || { |
| 5157 | cat >> confdefs.h <<\EOF |
| 5158 | #define NEED_DECLARATION_SBRK 1 |
| 5159 | EOF |
| 5160 | |
| 5161 | } |
| 5162 | |
| 5163 | |
| 5164 | # Does errno.h declare errno, or do we have to add a separate declaration |
| 5165 | # for it? |
| 5166 | |
| 5167 | echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6 |
| 5168 | echo "configure:5169: checking whether declaration is required for errno" >&5 |
| 5169 | if eval "test \"`echo '$''{'gas_cv_decl_needed_errno'+set}'`\" = set"; then |
| 5170 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5171 | else |
| 5172 | cat > conftest.$ac_ext <<EOF |
| 5173 | #line 5174 "configure" |
| 5174 | #include "confdefs.h" |
| 5175 | |
| 5176 | #ifdef HAVE_ERRNO_H |
| 5177 | #include <errno.h> |
| 5178 | #endif |
| 5179 | |
| 5180 | int main() { |
| 5181 | |
| 5182 | typedef int f; |
| 5183 | f x; |
| 5184 | x = (f) errno; |
| 5185 | |
| 5186 | ; return 0; } |
| 5187 | EOF |
| 5188 | if { (eval echo configure:5189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 5189 | rm -rf conftest* |
| 5190 | gas_cv_decl_needed_errno=no |
| 5191 | else |
| 5192 | echo "configure: failed program was:" >&5 |
| 5193 | cat conftest.$ac_ext >&5 |
| 5194 | rm -rf conftest* |
| 5195 | gas_cv_decl_needed_errno=yes |
| 5196 | fi |
| 5197 | rm -f conftest* |
| 5198 | fi |
| 5199 | echo "$ac_t""$gas_cv_decl_needed_errno" 1>&6 |
| 5200 | test $gas_cv_decl_needed_errno = no || { |
| 5201 | cat >> confdefs.h <<\EOF |
| 5202 | #define NEED_DECLARATION_ERRNO 1 |
| 5203 | EOF |
| 5204 | |
| 5205 | } |
| 5206 | |
| 5207 | |
| 5208 | |
| 5209 | |
| 5210 | trap '' 1 2 15 |
| 5211 | cat > confcache <<\EOF |
| 5212 | # This file is a shell script that caches the results of configure |
| 5213 | # tests run on this system so they can be shared between configure |
| 5214 | # scripts and configure runs. It is not useful on other systems. |
| 5215 | # If it contains results you don't want to keep, you may remove or edit it. |
| 5216 | # |
| 5217 | # By default, configure uses ./config.cache as the cache file, |
| 5218 | # creating it if it does not exist already. You can give configure |
| 5219 | # the --cache-file=FILE option to use a different cache file; that is |
| 5220 | # what configure does when it calls configure scripts in |
| 5221 | # subdirectories, so they share the cache. |
| 5222 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 5223 | # config.status only pays attention to the cache file if you give it the |
| 5224 | # --recheck option to rerun configure. |
| 5225 | # |
| 5226 | EOF |
| 5227 | # The following way of writing the cache mishandles newlines in values, |
| 5228 | # but we know of no workaround that is simple, portable, and efficient. |
| 5229 | # So, don't put newlines in cache variables' values. |
| 5230 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 5231 | # and sets the high bit in the cache file unless we assign to the vars. |
| 5232 | (set) 2>&1 | |
| 5233 | case `(ac_space=' '; set) 2>&1 | grep ac_space` in |
| 5234 | *ac_space=\ *) |
| 5235 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 5236 | # turns \\\\ into \\, and sed turns \\ into \). |
| 5237 | sed -n \ |
| 5238 | -e "s/'/'\\\\''/g" \ |
| 5239 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 5240 | ;; |
| 5241 | *) |
| 5242 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 5243 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 5244 | ;; |
| 5245 | esac >> confcache |
| 5246 | if cmp -s $cache_file confcache; then |
| 5247 | : |
| 5248 | else |
| 5249 | if test -w $cache_file; then |
| 5250 | echo "updating cache $cache_file" |
| 5251 | cat confcache > $cache_file |
| 5252 | else |
| 5253 | echo "not updating unwritable cache $cache_file" |
| 5254 | fi |
| 5255 | fi |
| 5256 | rm -f confcache |
| 5257 | |
| 5258 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 5259 | |
| 5260 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 5261 | # Let make expand exec_prefix. |
| 5262 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 5263 | |
| 5264 | # Any assignment to VPATH causes Sun make to only execute |
| 5265 | # the first set of double-colon rules, so remove it if not needed. |
| 5266 | # If there is a colon in the path, we need to keep it. |
| 5267 | if test "x$srcdir" = x.; then |
| 5268 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 5269 | fi |
| 5270 | |
| 5271 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
| 5272 | |
| 5273 | DEFS=-DHAVE_CONFIG_H |
| 5274 | |
| 5275 | # Without the "./", some shells look in PATH for config.status. |
| 5276 | : ${CONFIG_STATUS=./config.status} |
| 5277 | |
| 5278 | echo creating $CONFIG_STATUS |
| 5279 | rm -f $CONFIG_STATUS |
| 5280 | cat > $CONFIG_STATUS <<EOF |
| 5281 | #! /bin/sh |
| 5282 | # Generated automatically by configure. |
| 5283 | # Run this file to recreate the current configuration. |
| 5284 | # This directory was configured as follows, |
| 5285 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 5286 | # |
| 5287 | # $0 $ac_configure_args |
| 5288 | # |
| 5289 | # Compiler output produced by configure, useful for debugging |
| 5290 | # configure, is in ./config.log if it exists. |
| 5291 | |
| 5292 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
| 5293 | for ac_option |
| 5294 | do |
| 5295 | case "\$ac_option" in |
| 5296 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 5297 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 5298 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
| 5299 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
| 5300 | echo "$CONFIG_STATUS generated by autoconf version 2.12.2" |
| 5301 | exit 0 ;; |
| 5302 | -help | --help | --hel | --he | --h) |
| 5303 | echo "\$ac_cs_usage"; exit 0 ;; |
| 5304 | *) echo "\$ac_cs_usage"; exit 1 ;; |
| 5305 | esac |
| 5306 | done |
| 5307 | |
| 5308 | ac_given_srcdir=$srcdir |
| 5309 | ac_given_INSTALL="$INSTALL" |
| 5310 | |
| 5311 | trap 'rm -fr `echo "Makefile doc/Makefile .gdbinit:gdbinit.in po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
| 5312 | EOF |
| 5313 | cat >> $CONFIG_STATUS <<EOF |
| 5314 | |
| 5315 | # Protect against being on the right side of a sed subst in config.status. |
| 5316 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 5317 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
| 5318 | $ac_vpsub |
| 5319 | $extrasub |
| 5320 | s%@SHELL@%$SHELL%g |
| 5321 | s%@CFLAGS@%$CFLAGS%g |
| 5322 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 5323 | s%@CXXFLAGS@%$CXXFLAGS%g |
| 5324 | s%@DEFS@%$DEFS%g |
| 5325 | s%@LDFLAGS@%$LDFLAGS%g |
| 5326 | s%@LIBS@%$LIBS%g |
| 5327 | s%@exec_prefix@%$exec_prefix%g |
| 5328 | s%@prefix@%$prefix%g |
| 5329 | s%@program_transform_name@%$program_transform_name%g |
| 5330 | s%@bindir@%$bindir%g |
| 5331 | s%@sbindir@%$sbindir%g |
| 5332 | s%@libexecdir@%$libexecdir%g |
| 5333 | s%@datadir@%$datadir%g |
| 5334 | s%@sysconfdir@%$sysconfdir%g |
| 5335 | s%@sharedstatedir@%$sharedstatedir%g |
| 5336 | s%@localstatedir@%$localstatedir%g |
| 5337 | s%@libdir@%$libdir%g |
| 5338 | s%@includedir@%$includedir%g |
| 5339 | s%@oldincludedir@%$oldincludedir%g |
| 5340 | s%@infodir@%$infodir%g |
| 5341 | s%@mandir@%$mandir%g |
| 5342 | s%@host@%$host%g |
| 5343 | s%@host_alias@%$host_alias%g |
| 5344 | s%@host_cpu@%$host_cpu%g |
| 5345 | s%@host_vendor@%$host_vendor%g |
| 5346 | s%@host_os@%$host_os%g |
| 5347 | s%@target@%$target%g |
| 5348 | s%@target_alias@%$target_alias%g |
| 5349 | s%@target_cpu@%$target_cpu%g |
| 5350 | s%@target_vendor@%$target_vendor%g |
| 5351 | s%@target_os@%$target_os%g |
| 5352 | s%@build@%$build%g |
| 5353 | s%@build_alias@%$build_alias%g |
| 5354 | s%@build_cpu@%$build_cpu%g |
| 5355 | s%@build_vendor@%$build_vendor%g |
| 5356 | s%@build_os@%$build_os%g |
| 5357 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
| 5358 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
| 5359 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
| 5360 | s%@PACKAGE@%$PACKAGE%g |
| 5361 | s%@VERSION@%$VERSION%g |
| 5362 | s%@ACLOCAL@%$ACLOCAL%g |
| 5363 | s%@AUTOCONF@%$AUTOCONF%g |
| 5364 | s%@AUTOMAKE@%$AUTOMAKE%g |
| 5365 | s%@AUTOHEADER@%$AUTOHEADER%g |
| 5366 | s%@MAKEINFO@%$MAKEINFO%g |
| 5367 | s%@SET_MAKE@%$SET_MAKE%g |
| 5368 | s%@RANLIB@%$RANLIB%g |
| 5369 | s%@CC@%$CC%g |
| 5370 | s%@LD@%$LD%g |
| 5371 | s%@NM@%$NM%g |
| 5372 | s%@LN_S@%$LN_S%g |
| 5373 | s%@LIBTOOL@%$LIBTOOL%g |
| 5374 | s%@DLLTOOL@%$DLLTOOL%g |
| 5375 | s%@AS@%$AS%g |
| 5376 | s%@cgen_cpu_prefix@%$cgen_cpu_prefix%g |
| 5377 | s%@extra_objects@%$extra_objects%g |
| 5378 | s%@target_cpu_type@%$target_cpu_type%g |
| 5379 | s%@obj_format@%$obj_format%g |
| 5380 | s%@te_file@%$te_file%g |
| 5381 | s%@install_tooldir@%$install_tooldir%g |
| 5382 | s%@atof@%$atof%g |
| 5383 | s%@BFDLIB@%$BFDLIB%g |
| 5384 | s%@OPCODES_LIB@%$OPCODES_LIB%g |
| 5385 | s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g |
| 5386 | s%@YACC@%$YACC%g |
| 5387 | s%@LEX@%$LEX%g |
| 5388 | s%@LEXLIB@%$LEXLIB%g |
| 5389 | s%@CPP@%$CPP%g |
| 5390 | s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g |
| 5391 | s%@ALLOCA@%$ALLOCA%g |
| 5392 | s%@USE_NLS@%$USE_NLS%g |
| 5393 | s%@MSGFMT@%$MSGFMT%g |
| 5394 | s%@GMSGFMT@%$GMSGFMT%g |
| 5395 | s%@XGETTEXT@%$XGETTEXT%g |
| 5396 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g |
| 5397 | s%@CATALOGS@%$CATALOGS%g |
| 5398 | s%@CATOBJEXT@%$CATOBJEXT%g |
| 5399 | s%@DATADIRNAME@%$DATADIRNAME%g |
| 5400 | s%@GMOFILES@%$GMOFILES%g |
| 5401 | s%@INSTOBJEXT@%$INSTOBJEXT%g |
| 5402 | s%@INTLDEPS@%$INTLDEPS%g |
| 5403 | s%@INTLLIBS@%$INTLLIBS%g |
| 5404 | s%@INTLOBJS@%$INTLOBJS%g |
| 5405 | s%@POFILES@%$POFILES%g |
| 5406 | s%@POSUB@%$POSUB%g |
| 5407 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g |
| 5408 | s%@GT_NO@%$GT_NO%g |
| 5409 | s%@GT_YES@%$GT_YES%g |
| 5410 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g |
| 5411 | s%@l@%$l%g |
| 5412 | s%@MAINT@%$MAINT%g |
| 5413 | s%@EXEEXT@%$EXEEXT%g |
| 5414 | |
| 5415 | CEOF |
| 5416 | EOF |
| 5417 | |
| 5418 | cat >> $CONFIG_STATUS <<\EOF |
| 5419 | |
| 5420 | # Split the substitutions into bite-sized pieces for seds with |
| 5421 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 5422 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 5423 | ac_file=1 # Number of current file. |
| 5424 | ac_beg=1 # First line for current file. |
| 5425 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 5426 | ac_more_lines=: |
| 5427 | ac_sed_cmds="" |
| 5428 | while $ac_more_lines; do |
| 5429 | if test $ac_beg -gt 1; then |
| 5430 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 5431 | else |
| 5432 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 5433 | fi |
| 5434 | if test ! -s conftest.s$ac_file; then |
| 5435 | ac_more_lines=false |
| 5436 | rm -f conftest.s$ac_file |
| 5437 | else |
| 5438 | if test -z "$ac_sed_cmds"; then |
| 5439 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 5440 | else |
| 5441 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 5442 | fi |
| 5443 | ac_file=`expr $ac_file + 1` |
| 5444 | ac_beg=$ac_end |
| 5445 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 5446 | fi |
| 5447 | done |
| 5448 | if test -z "$ac_sed_cmds"; then |
| 5449 | ac_sed_cmds=cat |
| 5450 | fi |
| 5451 | EOF |
| 5452 | |
| 5453 | cat >> $CONFIG_STATUS <<EOF |
| 5454 | |
| 5455 | CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile .gdbinit:gdbinit.in po/Makefile.in:po/Make-in"} |
| 5456 | EOF |
| 5457 | cat >> $CONFIG_STATUS <<\EOF |
| 5458 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
| 5459 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 5460 | case "$ac_file" in |
| 5461 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
| 5462 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 5463 | *) ac_file_in="${ac_file}.in" ;; |
| 5464 | esac |
| 5465 | |
| 5466 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
| 5467 | |
| 5468 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 5469 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 5470 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 5471 | # The file is in a subdirectory. |
| 5472 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 5473 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
| 5474 | # A "../" for each directory in $ac_dir_suffix. |
| 5475 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 5476 | else |
| 5477 | ac_dir_suffix= ac_dots= |
| 5478 | fi |
| 5479 | |
| 5480 | case "$ac_given_srcdir" in |
| 5481 | .) srcdir=. |
| 5482 | if test -z "$ac_dots"; then top_srcdir=. |
| 5483 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 5484 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 5485 | *) # Relative path. |
| 5486 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 5487 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 5488 | esac |
| 5489 | |
| 5490 | case "$ac_given_INSTALL" in |
| 5491 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
| 5492 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
| 5493 | esac |
| 5494 | |
| 5495 | echo creating "$ac_file" |
| 5496 | rm -f "$ac_file" |
| 5497 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 5498 | case "$ac_file" in |
| 5499 | *Makefile*) ac_comsub="1i\\ |
| 5500 | # $configure_input" ;; |
| 5501 | *) ac_comsub= ;; |
| 5502 | esac |
| 5503 | |
| 5504 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 5505 | sed -e "$ac_comsub |
| 5506 | s%@configure_input@%$configure_input%g |
| 5507 | s%@srcdir@%$srcdir%g |
| 5508 | s%@top_srcdir@%$top_srcdir%g |
| 5509 | s%@INSTALL@%$INSTALL%g |
| 5510 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
| 5511 | fi; done |
| 5512 | rm -f conftest.s* |
| 5513 | |
| 5514 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 5515 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 5516 | # |
| 5517 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 5518 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 5519 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
| 5520 | ac_dC='\3' |
| 5521 | ac_dD='%g' |
| 5522 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
| 5523 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 5524 | ac_uB='\([ ]\)%\1#\2define\3' |
| 5525 | ac_uC=' ' |
| 5526 | ac_uD='\4%g' |
| 5527 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 5528 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 5529 | ac_eB='$%\1#\2define\3' |
| 5530 | ac_eC=' ' |
| 5531 | ac_eD='%g' |
| 5532 | |
| 5533 | if test "${CONFIG_HEADERS+set}" != set; then |
| 5534 | EOF |
| 5535 | cat >> $CONFIG_STATUS <<EOF |
| 5536 | CONFIG_HEADERS="config.h:config.in" |
| 5537 | EOF |
| 5538 | cat >> $CONFIG_STATUS <<\EOF |
| 5539 | fi |
| 5540 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
| 5541 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 5542 | case "$ac_file" in |
| 5543 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
| 5544 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 5545 | *) ac_file_in="${ac_file}.in" ;; |
| 5546 | esac |
| 5547 | |
| 5548 | echo creating $ac_file |
| 5549 | |
| 5550 | rm -f conftest.frag conftest.in conftest.out |
| 5551 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 5552 | cat $ac_file_inputs > conftest.in |
| 5553 | |
| 5554 | EOF |
| 5555 | |
| 5556 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
| 5557 | # the proper values into config.h.in to produce config.h. And first: |
| 5558 | # Protect against being on the right side of a sed subst in config.status. |
| 5559 | # Protect against being in an unquoted here document in config.status. |
| 5560 | rm -f conftest.vals |
| 5561 | cat > conftest.hdr <<\EOF |
| 5562 | s/[\\&%]/\\&/g |
| 5563 | s%[\\$`]%\\&%g |
| 5564 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
| 5565 | s%ac_d%ac_u%gp |
| 5566 | s%ac_u%ac_e%gp |
| 5567 | EOF |
| 5568 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
| 5569 | rm -f conftest.hdr |
| 5570 | |
| 5571 | # This sed command replaces #undef with comments. This is necessary, for |
| 5572 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 5573 | # on some systems where configure will not decide to define it. |
| 5574 | cat >> conftest.vals <<\EOF |
| 5575 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| 5576 | EOF |
| 5577 | |
| 5578 | # Break up conftest.vals because some shells have a limit on |
| 5579 | # the size of here documents, and old seds have small limits too. |
| 5580 | |
| 5581 | rm -f conftest.tail |
| 5582 | while : |
| 5583 | do |
| 5584 | ac_lines=`grep -c . conftest.vals` |
| 5585 | # grep -c gives empty output for an empty file on some AIX systems. |
| 5586 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 5587 | # Write a limited-size here document to conftest.frag. |
| 5588 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 5589 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| 5590 | echo 'CEOF |
| 5591 | sed -f conftest.frag conftest.in > conftest.out |
| 5592 | rm -f conftest.in |
| 5593 | mv conftest.out conftest.in |
| 5594 | ' >> $CONFIG_STATUS |
| 5595 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 5596 | rm -f conftest.vals |
| 5597 | mv conftest.tail conftest.vals |
| 5598 | done |
| 5599 | rm -f conftest.vals |
| 5600 | |
| 5601 | cat >> $CONFIG_STATUS <<\EOF |
| 5602 | rm -f conftest.frag conftest.h |
| 5603 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
| 5604 | cat conftest.in >> conftest.h |
| 5605 | rm -f conftest.in |
| 5606 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
| 5607 | echo "$ac_file is unchanged" |
| 5608 | rm -f conftest.h |
| 5609 | else |
| 5610 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 5611 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 5612 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 5613 | # The file is in a subdirectory. |
| 5614 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 5615 | fi |
| 5616 | rm -f $ac_file |
| 5617 | mv conftest.h $ac_file |
| 5618 | fi |
| 5619 | fi; done |
| 5620 | |
| 5621 | EOF |
| 5622 | cat >> $CONFIG_STATUS <<EOF |
| 5623 | |
| 5624 | target_cpu_type=${target_cpu_type} |
| 5625 | obj_format=${obj_format} |
| 5626 | te_file=${te_file} |
| 5627 | EOF |
| 5628 | cat >> $CONFIG_STATUS <<\EOF |
| 5629 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h |
| 5630 | rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h |
| 5631 | echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h |
| 5632 | echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h |
| 5633 | echo '#include "te-'"${te_file}"'.h"' > targ-env.h |
| 5634 | echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h |
| 5635 | case ${target_cpu_type} in |
| 5636 | m32r) echo '#include "opcodes/'"${target_cpu_type}"'-opc.h"' > cgen-opc.h ;; |
| 5637 | esac |
| 5638 | |
| 5639 | sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile |
| 5640 | exit 0 |
| 5641 | EOF |
| 5642 | chmod +x $CONFIG_STATUS |
| 5643 | rm -fr confdefs* $ac_clean_files |
| 5644 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
| 5645 | |