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