| 1 | #! /bin/sh |
| 2 | |
| 3 | # Guess values for system-dependent variables and create Makefiles. |
| 4 | # Generated automatically using autoconf version 2.12.1 |
| 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
| 6 | # |
| 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
| 9 | |
| 10 | # Defaults: |
| 11 | ac_help= |
| 12 | ac_default_prefix=/usr/local |
| 13 | # Any additions from configure.in: |
| 14 | ac_help="$ac_help |
| 15 | --enable-shared[=PKGS] build shared libraries [default=no]" |
| 16 | ac_help="$ac_help |
| 17 | --enable-static[=PKGS] build static libraries [default=yes]" |
| 18 | ac_help="$ac_help |
| 19 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]" |
| 20 | ac_help="$ac_help |
| 21 | --enable-targets alternative target configurations" |
| 22 | ac_help="$ac_help |
| 23 | --enable-commonbfdlib build shared BFD/opcodes/libiberty library" |
| 24 | ac_help="$ac_help |
| 25 | --enable-maintainer-mode enable make rules and dependencies not useful |
| 26 | (and sometimes confusing) to the casual installer" |
| 27 | ac_help="$ac_help |
| 28 | --disable-nls do not use Native Language Support" |
| 29 | ac_help="$ac_help |
| 30 | --with-included-gettext use the GNU gettext library included here" |
| 31 | ac_help="$ac_help |
| 32 | --enable-cgen-maint build cgen generated files" |
| 33 | |
| 34 | # Initialize some variables set by options. |
| 35 | # The variables have the same names as the options, with |
| 36 | # dashes changed to underlines. |
| 37 | build=NONE |
| 38 | cache_file=./config.cache |
| 39 | exec_prefix=NONE |
| 40 | host=NONE |
| 41 | no_create= |
| 42 | nonopt=NONE |
| 43 | no_recursion= |
| 44 | prefix=NONE |
| 45 | program_prefix=NONE |
| 46 | program_suffix=NONE |
| 47 | program_transform_name=s,x,x, |
| 48 | silent= |
| 49 | site= |
| 50 | srcdir= |
| 51 | target=NONE |
| 52 | verbose= |
| 53 | x_includes=NONE |
| 54 | x_libraries=NONE |
| 55 | bindir='${exec_prefix}/bin' |
| 56 | sbindir='${exec_prefix}/sbin' |
| 57 | libexecdir='${exec_prefix}/libexec' |
| 58 | datadir='${prefix}/share' |
| 59 | sysconfdir='${prefix}/etc' |
| 60 | sharedstatedir='${prefix}/com' |
| 61 | localstatedir='${prefix}/var' |
| 62 | libdir='${exec_prefix}/lib' |
| 63 | includedir='${prefix}/include' |
| 64 | oldincludedir='/usr/include' |
| 65 | infodir='${prefix}/info' |
| 66 | mandir='${prefix}/man' |
| 67 | |
| 68 | # Initialize some other variables. |
| 69 | subdirs= |
| 70 | MFLAGS= MAKEFLAGS= |
| 71 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 72 | # Maximum number of lines to put in a shell here document. |
| 73 | ac_max_here_lines=12 |
| 74 | |
| 75 | ac_prev= |
| 76 | for ac_option |
| 77 | do |
| 78 | |
| 79 | # If the previous option needs an argument, assign it. |
| 80 | if test -n "$ac_prev"; then |
| 81 | eval "$ac_prev=\$ac_option" |
| 82 | ac_prev= |
| 83 | continue |
| 84 | fi |
| 85 | |
| 86 | case "$ac_option" in |
| 87 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 88 | *) ac_optarg= ;; |
| 89 | esac |
| 90 | |
| 91 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 92 | |
| 93 | case "$ac_option" in |
| 94 | |
| 95 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 96 | ac_prev=bindir ;; |
| 97 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 98 | bindir="$ac_optarg" ;; |
| 99 | |
| 100 | -build | --build | --buil | --bui | --bu) |
| 101 | ac_prev=build ;; |
| 102 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 103 | build="$ac_optarg" ;; |
| 104 | |
| 105 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 106 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 107 | ac_prev=cache_file ;; |
| 108 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 109 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 110 | cache_file="$ac_optarg" ;; |
| 111 | |
| 112 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 113 | ac_prev=datadir ;; |
| 114 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 115 | | --da=*) |
| 116 | datadir="$ac_optarg" ;; |
| 117 | |
| 118 | -disable-* | --disable-*) |
| 119 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
| 120 | # Reject names that are not valid shell variable names. |
| 121 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 122 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 123 | fi |
| 124 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 125 | eval "enable_${ac_feature}=no" ;; |
| 126 | |
| 127 | -enable-* | --enable-*) |
| 128 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
| 129 | # Reject names that are not valid shell variable names. |
| 130 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 131 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 132 | fi |
| 133 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 134 | case "$ac_option" in |
| 135 | *=*) ;; |
| 136 | *) ac_optarg=yes ;; |
| 137 | esac |
| 138 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 139 | |
| 140 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 141 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 142 | | --exec | --exe | --ex) |
| 143 | ac_prev=exec_prefix ;; |
| 144 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 145 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 146 | | --exec=* | --exe=* | --ex=*) |
| 147 | exec_prefix="$ac_optarg" ;; |
| 148 | |
| 149 | -gas | --gas | --ga | --g) |
| 150 | # Obsolete; use --with-gas. |
| 151 | with_gas=yes ;; |
| 152 | |
| 153 | -help | --help | --hel | --he) |
| 154 | # Omit some internal or obsolete options to make the list less imposing. |
| 155 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 156 | cat << EOF |
| 157 | Usage: configure [options] [host] |
| 158 | Options: [defaults in brackets after descriptions] |
| 159 | Configuration: |
| 160 | --cache-file=FILE cache test results in FILE |
| 161 | --help print this message |
| 162 | --no-create do not create output files |
| 163 | --quiet, --silent do not print \`checking...' messages |
| 164 | --version print the version of autoconf that created configure |
| 165 | Directory and file names: |
| 166 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 167 | [$ac_default_prefix] |
| 168 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 169 | [same as prefix] |
| 170 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 171 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 172 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 173 | --datadir=DIR read-only architecture-independent data in DIR |
| 174 | [PREFIX/share] |
| 175 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 176 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 177 | [PREFIX/com] |
| 178 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 179 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 180 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 181 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 182 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 183 | --mandir=DIR man documentation in DIR [PREFIX/man] |
| 184 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 185 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 186 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 187 | --program-transform-name=PROGRAM |
| 188 | run sed PROGRAM on installed program names |
| 189 | EOF |
| 190 | cat << EOF |
| 191 | Host type: |
| 192 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 193 | --host=HOST configure for HOST [guessed] |
| 194 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 195 | Features and packages: |
| 196 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 197 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 198 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 199 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 200 | --x-includes=DIR X include files are in DIR |
| 201 | --x-libraries=DIR X library files are in DIR |
| 202 | EOF |
| 203 | if test -n "$ac_help"; then |
| 204 | echo "--enable and --with options recognized:$ac_help" |
| 205 | fi |
| 206 | exit 0 ;; |
| 207 | |
| 208 | -host | --host | --hos | --ho) |
| 209 | ac_prev=host ;; |
| 210 | -host=* | --host=* | --hos=* | --ho=*) |
| 211 | host="$ac_optarg" ;; |
| 212 | |
| 213 | -includedir | --includedir | --includedi | --included | --include \ |
| 214 | | --includ | --inclu | --incl | --inc) |
| 215 | ac_prev=includedir ;; |
| 216 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 217 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 218 | includedir="$ac_optarg" ;; |
| 219 | |
| 220 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 221 | ac_prev=infodir ;; |
| 222 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 223 | infodir="$ac_optarg" ;; |
| 224 | |
| 225 | -libdir | --libdir | --libdi | --libd) |
| 226 | ac_prev=libdir ;; |
| 227 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 228 | libdir="$ac_optarg" ;; |
| 229 | |
| 230 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 231 | | --libexe | --libex | --libe) |
| 232 | ac_prev=libexecdir ;; |
| 233 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 234 | | --libexe=* | --libex=* | --libe=*) |
| 235 | libexecdir="$ac_optarg" ;; |
| 236 | |
| 237 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 238 | | --localstate | --localstat | --localsta | --localst \ |
| 239 | | --locals | --local | --loca | --loc | --lo) |
| 240 | ac_prev=localstatedir ;; |
| 241 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 242 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 243 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 244 | localstatedir="$ac_optarg" ;; |
| 245 | |
| 246 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 247 | ac_prev=mandir ;; |
| 248 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 249 | mandir="$ac_optarg" ;; |
| 250 | |
| 251 | -nfp | --nfp | --nf) |
| 252 | # Obsolete; use --without-fp. |
| 253 | with_fp=no ;; |
| 254 | |
| 255 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 256 | | --no-cr | --no-c) |
| 257 | no_create=yes ;; |
| 258 | |
| 259 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 260 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 261 | no_recursion=yes ;; |
| 262 | |
| 263 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 264 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 265 | | --oldin | --oldi | --old | --ol | --o) |
| 266 | ac_prev=oldincludedir ;; |
| 267 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 268 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 269 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 270 | oldincludedir="$ac_optarg" ;; |
| 271 | |
| 272 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 273 | ac_prev=prefix ;; |
| 274 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 275 | prefix="$ac_optarg" ;; |
| 276 | |
| 277 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 278 | | --program-pre | --program-pr | --program-p) |
| 279 | ac_prev=program_prefix ;; |
| 280 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 281 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 282 | program_prefix="$ac_optarg" ;; |
| 283 | |
| 284 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 285 | | --program-suf | --program-su | --program-s) |
| 286 | ac_prev=program_suffix ;; |
| 287 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 288 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 289 | program_suffix="$ac_optarg" ;; |
| 290 | |
| 291 | -program-transform-name | --program-transform-name \ |
| 292 | | --program-transform-nam | --program-transform-na \ |
| 293 | | --program-transform-n | --program-transform- \ |
| 294 | | --program-transform | --program-transfor \ |
| 295 | | --program-transfo | --program-transf \ |
| 296 | | --program-trans | --program-tran \ |
| 297 | | --progr-tra | --program-tr | --program-t) |
| 298 | ac_prev=program_transform_name ;; |
| 299 | -program-transform-name=* | --program-transform-name=* \ |
| 300 | | --program-transform-nam=* | --program-transform-na=* \ |
| 301 | | --program-transform-n=* | --program-transform-=* \ |
| 302 | | --program-transform=* | --program-transfor=* \ |
| 303 | | --program-transfo=* | --program-transf=* \ |
| 304 | | --program-trans=* | --program-tran=* \ |
| 305 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 306 | program_transform_name="$ac_optarg" ;; |
| 307 | |
| 308 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 309 | | -silent | --silent | --silen | --sile | --sil) |
| 310 | silent=yes ;; |
| 311 | |
| 312 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 313 | ac_prev=sbindir ;; |
| 314 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 315 | | --sbi=* | --sb=*) |
| 316 | sbindir="$ac_optarg" ;; |
| 317 | |
| 318 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 319 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 320 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 321 | | --sha | --sh) |
| 322 | ac_prev=sharedstatedir ;; |
| 323 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 324 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 325 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 326 | | --sha=* | --sh=*) |
| 327 | sharedstatedir="$ac_optarg" ;; |
| 328 | |
| 329 | -site | --site | --sit) |
| 330 | ac_prev=site ;; |
| 331 | -site=* | --site=* | --sit=*) |
| 332 | site="$ac_optarg" ;; |
| 333 | |
| 334 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 335 | ac_prev=srcdir ;; |
| 336 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 337 | srcdir="$ac_optarg" ;; |
| 338 | |
| 339 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 340 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 341 | ac_prev=sysconfdir ;; |
| 342 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 343 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 344 | sysconfdir="$ac_optarg" ;; |
| 345 | |
| 346 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 347 | ac_prev=target ;; |
| 348 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 349 | target="$ac_optarg" ;; |
| 350 | |
| 351 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 352 | verbose=yes ;; |
| 353 | |
| 354 | -version | --version | --versio | --versi | --vers) |
| 355 | echo "configure generated by autoconf version 2.12.1" |
| 356 | exit 0 ;; |
| 357 | |
| 358 | -with-* | --with-*) |
| 359 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
| 360 | # Reject names that are not valid shell variable names. |
| 361 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 362 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 363 | fi |
| 364 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 365 | case "$ac_option" in |
| 366 | *=*) ;; |
| 367 | *) ac_optarg=yes ;; |
| 368 | esac |
| 369 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 370 | |
| 371 | -without-* | --without-*) |
| 372 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
| 373 | # Reject names that are not valid shell variable names. |
| 374 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 375 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 376 | fi |
| 377 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 378 | eval "with_${ac_package}=no" ;; |
| 379 | |
| 380 | --x) |
| 381 | # Obsolete; use --with-x. |
| 382 | with_x=yes ;; |
| 383 | |
| 384 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 385 | | --x-incl | --x-inc | --x-in | --x-i) |
| 386 | ac_prev=x_includes ;; |
| 387 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 388 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 389 | x_includes="$ac_optarg" ;; |
| 390 | |
| 391 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 392 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 393 | ac_prev=x_libraries ;; |
| 394 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 395 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 396 | x_libraries="$ac_optarg" ;; |
| 397 | |
| 398 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
| 399 | ;; |
| 400 | |
| 401 | *) |
| 402 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
| 403 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
| 404 | fi |
| 405 | if test "x$nonopt" != xNONE; then |
| 406 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
| 407 | fi |
| 408 | nonopt="$ac_option" |
| 409 | ;; |
| 410 | |
| 411 | esac |
| 412 | done |
| 413 | |
| 414 | if test -n "$ac_prev"; then |
| 415 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
| 416 | fi |
| 417 | |
| 418 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 419 | |
| 420 | # File descriptor usage: |
| 421 | # 0 standard input |
| 422 | # 1 file creation |
| 423 | # 2 errors and warnings |
| 424 | # 3 some systems may open it to /dev/tty |
| 425 | # 4 used on the Kubota Titan |
| 426 | # 6 checking for... messages and results |
| 427 | # 5 compiler messages saved in config.log |
| 428 | if test "$silent" = yes; then |
| 429 | exec 6>/dev/null |
| 430 | else |
| 431 | exec 6>&1 |
| 432 | fi |
| 433 | exec 5>./config.log |
| 434 | |
| 435 | echo "\ |
| 436 | This file contains any messages produced by compilers while |
| 437 | running configure, to aid debugging if configure makes a mistake. |
| 438 | " 1>&5 |
| 439 | |
| 440 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 441 | # Also quote any args containing shell metacharacters. |
| 442 | ac_configure_args= |
| 443 | for ac_arg |
| 444 | do |
| 445 | case "$ac_arg" in |
| 446 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 447 | | --no-cr | --no-c) ;; |
| 448 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 449 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 450 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 451 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 452 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
| 453 | esac |
| 454 | done |
| 455 | |
| 456 | # NLS nuisances. |
| 457 | # Only set these to C if already set. These must not be set unconditionally |
| 458 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 459 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 460 | # Non-C LC_CTYPE values break the ctype check. |
| 461 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
| 462 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 463 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 464 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
| 465 | |
| 466 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 467 | rm -rf conftest* confdefs.h |
| 468 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 469 | echo > confdefs.h |
| 470 | |
| 471 | # A filename unique to this package, relative to the directory that |
| 472 | # configure is in, which we can look for to find out if srcdir is correct. |
| 473 | ac_unique_file=z8k-dis.c |
| 474 | |
| 475 | # Find the source files, if location was not specified. |
| 476 | if test -z "$srcdir"; then |
| 477 | ac_srcdir_defaulted=yes |
| 478 | # Try the directory containing this script, then its parent. |
| 479 | ac_prog=$0 |
| 480 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 481 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 482 | srcdir=$ac_confdir |
| 483 | if test ! -r $srcdir/$ac_unique_file; then |
| 484 | srcdir=.. |
| 485 | fi |
| 486 | else |
| 487 | ac_srcdir_defaulted=no |
| 488 | fi |
| 489 | if test ! -r $srcdir/$ac_unique_file; then |
| 490 | if test "$ac_srcdir_defaulted" = yes; then |
| 491 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
| 492 | else |
| 493 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
| 494 | fi |
| 495 | fi |
| 496 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 497 | |
| 498 | # Prefer explicitly selected file to automatically selected ones. |
| 499 | if test -z "$CONFIG_SITE"; then |
| 500 | if test "x$prefix" != xNONE; then |
| 501 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 502 | else |
| 503 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 504 | fi |
| 505 | fi |
| 506 | for ac_site_file in $CONFIG_SITE; do |
| 507 | if test -r "$ac_site_file"; then |
| 508 | echo "loading site script $ac_site_file" |
| 509 | . "$ac_site_file" |
| 510 | fi |
| 511 | done |
| 512 | |
| 513 | if test -r "$cache_file"; then |
| 514 | echo "loading cache $cache_file" |
| 515 | . $cache_file |
| 516 | else |
| 517 | echo "creating cache $cache_file" |
| 518 | > $cache_file |
| 519 | fi |
| 520 | |
| 521 | ac_ext=c |
| 522 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 523 | ac_cpp='$CPP $CPPFLAGS' |
| 524 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 525 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 526 | cross_compiling=$ac_cv_prog_cc_cross |
| 527 | |
| 528 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 529 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 530 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 531 | ac_n= ac_c=' |
| 532 | ' ac_t=' ' |
| 533 | else |
| 534 | ac_n=-n ac_c= ac_t= |
| 535 | fi |
| 536 | else |
| 537 | ac_n= ac_c='\c' ac_t= |
| 538 | fi |
| 539 | |
| 540 | |
| 541 | |
| 542 | ac_aux_dir= |
| 543 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 544 | if test -f $ac_dir/install-sh; then |
| 545 | ac_aux_dir=$ac_dir |
| 546 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 547 | break |
| 548 | elif test -f $ac_dir/install.sh; then |
| 549 | ac_aux_dir=$ac_dir |
| 550 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 551 | break |
| 552 | fi |
| 553 | done |
| 554 | if test -z "$ac_aux_dir"; then |
| 555 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
| 556 | fi |
| 557 | ac_config_guess=$ac_aux_dir/config.guess |
| 558 | ac_config_sub=$ac_aux_dir/config.sub |
| 559 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
| 560 | |
| 561 | |
| 562 | # Do some error checking and defaulting for the host and target type. |
| 563 | # The inputs are: |
| 564 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT |
| 565 | # |
| 566 | # The rules are: |
| 567 | # 1. You are not allowed to specify --host, --target, and nonopt at the |
| 568 | # same time. |
| 569 | # 2. Host defaults to nonopt. |
| 570 | # 3. If nonopt is not specified, then host defaults to the current host, |
| 571 | # as determined by config.guess. |
| 572 | # 4. Target and build default to nonopt. |
| 573 | # 5. If nonopt is not specified, then target and build default to host. |
| 574 | |
| 575 | # The aliases save the names the user supplied, while $host etc. |
| 576 | # will get canonicalized. |
| 577 | case $host---$target---$nonopt in |
| 578 | NONE---*---* | *---NONE---* | *---*---NONE) ;; |
| 579 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; |
| 580 | esac |
| 581 | |
| 582 | |
| 583 | # Make sure we can run config.sub. |
| 584 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
| 585 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
| 586 | fi |
| 587 | |
| 588 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
| 589 | echo "configure:590: checking host system type" >&5 |
| 590 | |
| 591 | host_alias=$host |
| 592 | case "$host_alias" in |
| 593 | NONE) |
| 594 | case $nonopt in |
| 595 | NONE) |
| 596 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
| 597 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
| 598 | fi ;; |
| 599 | *) host_alias=$nonopt ;; |
| 600 | esac ;; |
| 601 | esac |
| 602 | |
| 603 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
| 604 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 605 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 606 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 607 | echo "$ac_t""$host" 1>&6 |
| 608 | |
| 609 | echo $ac_n "checking target system type""... $ac_c" 1>&6 |
| 610 | echo "configure:611: checking target system type" >&5 |
| 611 | |
| 612 | target_alias=$target |
| 613 | case "$target_alias" in |
| 614 | NONE) |
| 615 | case $nonopt in |
| 616 | NONE) target_alias=$host_alias ;; |
| 617 | *) target_alias=$nonopt ;; |
| 618 | esac ;; |
| 619 | esac |
| 620 | |
| 621 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
| 622 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 623 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 624 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 625 | echo "$ac_t""$target" 1>&6 |
| 626 | |
| 627 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
| 628 | echo "configure:629: checking build system type" >&5 |
| 629 | |
| 630 | build_alias=$build |
| 631 | case "$build_alias" in |
| 632 | NONE) |
| 633 | case $nonopt in |
| 634 | NONE) build_alias=$host_alias ;; |
| 635 | *) build_alias=$nonopt ;; |
| 636 | esac ;; |
| 637 | esac |
| 638 | |
| 639 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
| 640 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 641 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 642 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 643 | echo "$ac_t""$build" 1>&6 |
| 644 | |
| 645 | test "$host_alias" != "$target_alias" && |
| 646 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 647 | NONENONEs,x,x, && |
| 648 | program_prefix=${target_alias}- |
| 649 | |
| 650 | # Extract the first word of "gcc", so it can be a program name with args. |
| 651 | set dummy gcc; ac_word=$2 |
| 652 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 653 | echo "configure:654: checking for $ac_word" >&5 |
| 654 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 655 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 656 | else |
| 657 | if test -n "$CC"; then |
| 658 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 659 | else |
| 660 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 661 | for ac_dir in $PATH; do |
| 662 | test -z "$ac_dir" && ac_dir=. |
| 663 | if test -f $ac_dir/$ac_word; then |
| 664 | ac_cv_prog_CC="gcc" |
| 665 | break |
| 666 | fi |
| 667 | done |
| 668 | IFS="$ac_save_ifs" |
| 669 | fi |
| 670 | fi |
| 671 | CC="$ac_cv_prog_CC" |
| 672 | if test -n "$CC"; then |
| 673 | echo "$ac_t""$CC" 1>&6 |
| 674 | else |
| 675 | echo "$ac_t""no" 1>&6 |
| 676 | fi |
| 677 | |
| 678 | if test -z "$CC"; then |
| 679 | # Extract the first word of "cc", so it can be a program name with args. |
| 680 | set dummy cc; ac_word=$2 |
| 681 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 682 | echo "configure:683: checking for $ac_word" >&5 |
| 683 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 684 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 685 | else |
| 686 | if test -n "$CC"; then |
| 687 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 688 | else |
| 689 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 690 | ac_prog_rejected=no |
| 691 | for ac_dir in $PATH; do |
| 692 | test -z "$ac_dir" && ac_dir=. |
| 693 | if test -f $ac_dir/$ac_word; then |
| 694 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 695 | ac_prog_rejected=yes |
| 696 | continue |
| 697 | fi |
| 698 | ac_cv_prog_CC="cc" |
| 699 | break |
| 700 | fi |
| 701 | done |
| 702 | IFS="$ac_save_ifs" |
| 703 | if test $ac_prog_rejected = yes; then |
| 704 | # We found a bogon in the path, so make sure we never use it. |
| 705 | set dummy $ac_cv_prog_CC |
| 706 | shift |
| 707 | if test $# -gt 0; then |
| 708 | # We chose a different compiler from the bogus one. |
| 709 | # However, it has the same basename, so the bogon will be chosen |
| 710 | # first if we set CC to just the basename; use the full file name. |
| 711 | shift |
| 712 | set dummy "$ac_dir/$ac_word" "$@" |
| 713 | shift |
| 714 | ac_cv_prog_CC="$@" |
| 715 | fi |
| 716 | fi |
| 717 | fi |
| 718 | fi |
| 719 | CC="$ac_cv_prog_CC" |
| 720 | if test -n "$CC"; then |
| 721 | echo "$ac_t""$CC" 1>&6 |
| 722 | else |
| 723 | echo "$ac_t""no" 1>&6 |
| 724 | fi |
| 725 | |
| 726 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 727 | fi |
| 728 | |
| 729 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
| 730 | echo "configure:731: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
| 731 | |
| 732 | ac_ext=c |
| 733 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 734 | ac_cpp='$CPP $CPPFLAGS' |
| 735 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 736 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 737 | cross_compiling=$ac_cv_prog_cc_cross |
| 738 | |
| 739 | cat > conftest.$ac_ext <<EOF |
| 740 | #line 741 "configure" |
| 741 | #include "confdefs.h" |
| 742 | main(){return(0);} |
| 743 | EOF |
| 744 | if { (eval echo configure:745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 745 | ac_cv_prog_cc_works=yes |
| 746 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 747 | if (./conftest; exit) 2>/dev/null; then |
| 748 | ac_cv_prog_cc_cross=no |
| 749 | else |
| 750 | ac_cv_prog_cc_cross=yes |
| 751 | fi |
| 752 | else |
| 753 | echo "configure: failed program was:" >&5 |
| 754 | cat conftest.$ac_ext >&5 |
| 755 | ac_cv_prog_cc_works=no |
| 756 | fi |
| 757 | rm -fr conftest* |
| 758 | |
| 759 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 760 | if test $ac_cv_prog_cc_works = no; then |
| 761 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 762 | fi |
| 763 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
| 764 | echo "configure:765: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
| 765 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 766 | cross_compiling=$ac_cv_prog_cc_cross |
| 767 | |
| 768 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
| 769 | echo "configure:770: checking whether we are using GNU C" >&5 |
| 770 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 771 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 772 | else |
| 773 | cat > conftest.c <<EOF |
| 774 | #ifdef __GNUC__ |
| 775 | yes; |
| 776 | #endif |
| 777 | EOF |
| 778 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
| 779 | ac_cv_prog_gcc=yes |
| 780 | else |
| 781 | ac_cv_prog_gcc=no |
| 782 | fi |
| 783 | fi |
| 784 | |
| 785 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
| 786 | |
| 787 | if test $ac_cv_prog_gcc = yes; then |
| 788 | GCC=yes |
| 789 | ac_test_CFLAGS="${CFLAGS+set}" |
| 790 | ac_save_CFLAGS="$CFLAGS" |
| 791 | CFLAGS= |
| 792 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
| 793 | echo "configure:794: checking whether ${CC-cc} accepts -g" >&5 |
| 794 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
| 795 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 796 | else |
| 797 | echo 'void f(){}' > conftest.c |
| 798 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
| 799 | ac_cv_prog_cc_g=yes |
| 800 | else |
| 801 | ac_cv_prog_cc_g=no |
| 802 | fi |
| 803 | rm -f conftest* |
| 804 | |
| 805 | fi |
| 806 | |
| 807 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
| 808 | if test "$ac_test_CFLAGS" = set; then |
| 809 | CFLAGS="$ac_save_CFLAGS" |
| 810 | elif test $ac_cv_prog_cc_g = yes; then |
| 811 | CFLAGS="-g -O2" |
| 812 | else |
| 813 | CFLAGS="-O2" |
| 814 | fi |
| 815 | else |
| 816 | GCC= |
| 817 | test "${CFLAGS+set}" = set || CFLAGS="-g" |
| 818 | fi |
| 819 | |
| 820 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 |
| 821 | echo "configure:822: checking for POSIXized ISC" >&5 |
| 822 | if test -d /etc/conf/kconfig.d && |
| 823 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 |
| 824 | then |
| 825 | echo "$ac_t""yes" 1>&6 |
| 826 | ISC=yes # If later tests want to check for ISC. |
| 827 | cat >> confdefs.h <<\EOF |
| 828 | #define _POSIX_SOURCE 1 |
| 829 | EOF |
| 830 | |
| 831 | if test "$GCC" = yes; then |
| 832 | CC="$CC -posix" |
| 833 | else |
| 834 | CC="$CC -Xp" |
| 835 | fi |
| 836 | else |
| 837 | echo "$ac_t""no" 1>&6 |
| 838 | ISC= |
| 839 | fi |
| 840 | |
| 841 | |
| 842 | # We currently only use the version number for the name of any shared |
| 843 | # library. For user convenience, we always use the same version |
| 844 | # number that BFD is using. |
| 845 | BFD_VERSION=`grep INIT_AUTOMAKE ${srcdir}/../bfd/configure.in | sed -n -e 's/[ ]//g' -e 's/^.*,\(.*\)).*$/\1/p'` |
| 846 | |
| 847 | # Find a good install program. We prefer a C program (faster), |
| 848 | # so one script is as good as another. But avoid the broken or |
| 849 | # incompatible versions: |
| 850 | # SysV /etc/install, /usr/sbin/install |
| 851 | # SunOS /usr/etc/install |
| 852 | # IRIX /sbin/install |
| 853 | # AIX /bin/install |
| 854 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 855 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 856 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 857 | # ./install, which can be erroneously created by make from ./install.sh. |
| 858 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
| 859 | echo "configure:860: checking for a BSD compatible install" >&5 |
| 860 | if test -z "$INSTALL"; then |
| 861 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 862 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 863 | else |
| 864 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" |
| 865 | for ac_dir in $PATH; do |
| 866 | # Account for people who put trailing slashes in PATH elements. |
| 867 | case "$ac_dir/" in |
| 868 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
| 869 | *) |
| 870 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 871 | # Don't use installbsd from OSF since it installs stuff as root |
| 872 | # by default. |
| 873 | for ac_prog in ginstall scoinst install; do |
| 874 | if test -f $ac_dir/$ac_prog; then |
| 875 | if test $ac_prog = install && |
| 876 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
| 877 | # AIX install. It has an incompatible calling convention. |
| 878 | : |
| 879 | else |
| 880 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 881 | break 2 |
| 882 | fi |
| 883 | fi |
| 884 | done |
| 885 | ;; |
| 886 | esac |
| 887 | done |
| 888 | IFS="$ac_save_IFS" |
| 889 | |
| 890 | fi |
| 891 | if test "${ac_cv_path_install+set}" = set; then |
| 892 | INSTALL="$ac_cv_path_install" |
| 893 | else |
| 894 | # As a last resort, use the slow shell script. We don't cache a |
| 895 | # path for INSTALL within a source directory, because that will |
| 896 | # break other packages using the cache if that directory is |
| 897 | # removed, or if the path is relative. |
| 898 | INSTALL="$ac_install_sh" |
| 899 | fi |
| 900 | fi |
| 901 | echo "$ac_t""$INSTALL" 1>&6 |
| 902 | |
| 903 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 904 | # It thinks the first close brace ends the variable substitution. |
| 905 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 906 | |
| 907 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 908 | |
| 909 | |
| 910 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
| 911 | |
| 912 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
| 913 | echo "configure:914: checking whether build environment is sane" >&5 |
| 914 | # Just in case |
| 915 | sleep 1 |
| 916 | echo timestamp > conftestfile |
| 917 | # Do `set' in a subshell so we don't clobber the current shell's |
| 918 | # arguments. Must try -L first in case configure is actually a |
| 919 | # symlink; some systems play weird games with the mod time of symlinks |
| 920 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 921 | # directory). |
| 922 | if ( |
| 923 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
| 924 | if test "$*" = "X"; then |
| 925 | # -L didn't work. |
| 926 | set X `ls -t $srcdir/configure conftestfile` |
| 927 | fi |
| 928 | if test "$*" != "X $srcdir/configure conftestfile" \ |
| 929 | && test "$*" != "X conftestfile $srcdir/configure"; then |
| 930 | |
| 931 | # If neither matched, then we have a broken ls. This can happen |
| 932 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 933 | # broken ls alias from the environment. This has actually |
| 934 | # happened. Such a system could not be considered "sane". |
| 935 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken |
| 936 | alias in your environment" 1>&2; exit 1; } |
| 937 | fi |
| 938 | |
| 939 | test "$2" = conftestfile |
| 940 | ) |
| 941 | then |
| 942 | # Ok. |
| 943 | : |
| 944 | else |
| 945 | { echo "configure: error: newly created file is older than distributed files! |
| 946 | Check your system clock" 1>&2; exit 1; } |
| 947 | fi |
| 948 | rm -f conftest* |
| 949 | echo "$ac_t""yes" 1>&6 |
| 950 | if test "$program_transform_name" = s,x,x,; then |
| 951 | program_transform_name= |
| 952 | else |
| 953 | # Double any \ or $. echo might interpret backslashes. |
| 954 | cat <<\EOF_SED > conftestsed |
| 955 | s,\\,\\\\,g; s,\$,$$,g |
| 956 | EOF_SED |
| 957 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" |
| 958 | rm -f conftestsed |
| 959 | fi |
| 960 | test "$program_prefix" != NONE && |
| 961 | program_transform_name="s,^,${program_prefix},; $program_transform_name" |
| 962 | # Use a double $ so make ignores it. |
| 963 | test "$program_suffix" != NONE && |
| 964 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" |
| 965 | |
| 966 | # sed with no file args requires a program. |
| 967 | test "$program_transform_name" = "" && program_transform_name="s,x,x," |
| 968 | |
| 969 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
| 970 | echo "configure:971: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
| 971 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
| 972 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
| 973 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 974 | else |
| 975 | cat > conftestmake <<\EOF |
| 976 | all: |
| 977 | @echo 'ac_maketemp="${MAKE}"' |
| 978 | EOF |
| 979 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 980 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
| 981 | if test -n "$ac_maketemp"; then |
| 982 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 983 | else |
| 984 | eval ac_cv_prog_make_${ac_make}_set=no |
| 985 | fi |
| 986 | rm -f conftestmake |
| 987 | fi |
| 988 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 989 | echo "$ac_t""yes" 1>&6 |
| 990 | SET_MAKE= |
| 991 | else |
| 992 | echo "$ac_t""no" 1>&6 |
| 993 | SET_MAKE="MAKE=${MAKE-make}" |
| 994 | fi |
| 995 | |
| 996 | |
| 997 | PACKAGE=opcodes |
| 998 | |
| 999 | VERSION=${BFD_VERSION} |
| 1000 | |
| 1001 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
| 1002 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } |
| 1003 | fi |
| 1004 | cat >> confdefs.h <<EOF |
| 1005 | #define PACKAGE "$PACKAGE" |
| 1006 | EOF |
| 1007 | |
| 1008 | cat >> confdefs.h <<EOF |
| 1009 | #define VERSION "$VERSION" |
| 1010 | EOF |
| 1011 | |
| 1012 | |
| 1013 | |
| 1014 | missing_dir=`cd $ac_aux_dir && pwd` |
| 1015 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 |
| 1016 | echo "configure:1017: checking for working aclocal" >&5 |
| 1017 | # Run test in a subshell; some versions of sh will print an error if |
| 1018 | # an executable is not found, even if stderr is redirected. |
| 1019 | # Redirect stdin to placate older versions of autoconf. Sigh. |
| 1020 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then |
| 1021 | ACLOCAL=aclocal |
| 1022 | echo "$ac_t""found" 1>&6 |
| 1023 | else |
| 1024 | ACLOCAL="$missing_dir/missing aclocal" |
| 1025 | echo "$ac_t""missing" 1>&6 |
| 1026 | fi |
| 1027 | |
| 1028 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 |
| 1029 | echo "configure:1030: checking for working autoconf" >&5 |
| 1030 | # Run test in a subshell; some versions of sh will print an error if |
| 1031 | # an executable is not found, even if stderr is redirected. |
| 1032 | # Redirect stdin to placate older versions of autoconf. Sigh. |
| 1033 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
| 1034 | AUTOCONF=autoconf |
| 1035 | echo "$ac_t""found" 1>&6 |
| 1036 | else |
| 1037 | AUTOCONF="$missing_dir/missing autoconf" |
| 1038 | echo "$ac_t""missing" 1>&6 |
| 1039 | fi |
| 1040 | |
| 1041 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 |
| 1042 | echo "configure:1043: checking for working automake" >&5 |
| 1043 | # Run test in a subshell; some versions of sh will print an error if |
| 1044 | # an executable is not found, even if stderr is redirected. |
| 1045 | # Redirect stdin to placate older versions of autoconf. Sigh. |
| 1046 | if (automake --version) < /dev/null > /dev/null 2>&1; then |
| 1047 | AUTOMAKE=automake |
| 1048 | echo "$ac_t""found" 1>&6 |
| 1049 | else |
| 1050 | AUTOMAKE="$missing_dir/missing automake" |
| 1051 | echo "$ac_t""missing" 1>&6 |
| 1052 | fi |
| 1053 | |
| 1054 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 |
| 1055 | echo "configure:1056: checking for working autoheader" >&5 |
| 1056 | # Run test in a subshell; some versions of sh will print an error if |
| 1057 | # an executable is not found, even if stderr is redirected. |
| 1058 | # Redirect stdin to placate older versions of autoconf. Sigh. |
| 1059 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
| 1060 | AUTOHEADER=autoheader |
| 1061 | echo "$ac_t""found" 1>&6 |
| 1062 | else |
| 1063 | AUTOHEADER="$missing_dir/missing autoheader" |
| 1064 | echo "$ac_t""missing" 1>&6 |
| 1065 | fi |
| 1066 | |
| 1067 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 |
| 1068 | echo "configure:1069: checking for working makeinfo" >&5 |
| 1069 | # Run test in a subshell; some versions of sh will print an error if |
| 1070 | # an executable is not found, even if stderr is redirected. |
| 1071 | # Redirect stdin to placate older versions of autoconf. Sigh. |
| 1072 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
| 1073 | MAKEINFO=makeinfo |
| 1074 | echo "$ac_t""found" 1>&6 |
| 1075 | else |
| 1076 | MAKEINFO="$missing_dir/missing makeinfo" |
| 1077 | echo "$ac_t""missing" 1>&6 |
| 1078 | fi |
| 1079 | |
| 1080 | |
| 1081 | |
| 1082 | if test $host != $build; then |
| 1083 | ac_tool_prefix=${host_alias}- |
| 1084 | else |
| 1085 | ac_tool_prefix= |
| 1086 | fi |
| 1087 | |
| 1088 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 1089 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 1090 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1091 | echo "configure:1092: checking for $ac_word" >&5 |
| 1092 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
| 1093 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1094 | else |
| 1095 | if test -n "$AR"; then |
| 1096 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 1097 | else |
| 1098 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1099 | for ac_dir in $PATH; do |
| 1100 | test -z "$ac_dir" && ac_dir=. |
| 1101 | if test -f $ac_dir/$ac_word; then |
| 1102 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 1103 | break |
| 1104 | fi |
| 1105 | done |
| 1106 | IFS="$ac_save_ifs" |
| 1107 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
| 1108 | fi |
| 1109 | fi |
| 1110 | AR="$ac_cv_prog_AR" |
| 1111 | if test -n "$AR"; then |
| 1112 | echo "$ac_t""$AR" 1>&6 |
| 1113 | else |
| 1114 | echo "$ac_t""no" 1>&6 |
| 1115 | fi |
| 1116 | |
| 1117 | |
| 1118 | |
| 1119 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 1120 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 1121 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1122 | echo "configure:1123: checking for $ac_word" >&5 |
| 1123 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 1124 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1125 | else |
| 1126 | if test -n "$RANLIB"; then |
| 1127 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1128 | else |
| 1129 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1130 | for ac_dir in $PATH; do |
| 1131 | test -z "$ac_dir" && ac_dir=. |
| 1132 | if test -f $ac_dir/$ac_word; then |
| 1133 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 1134 | break |
| 1135 | fi |
| 1136 | done |
| 1137 | IFS="$ac_save_ifs" |
| 1138 | fi |
| 1139 | fi |
| 1140 | RANLIB="$ac_cv_prog_RANLIB" |
| 1141 | if test -n "$RANLIB"; then |
| 1142 | echo "$ac_t""$RANLIB" 1>&6 |
| 1143 | else |
| 1144 | echo "$ac_t""no" 1>&6 |
| 1145 | fi |
| 1146 | |
| 1147 | |
| 1148 | if test -z "$ac_cv_prog_RANLIB"; then |
| 1149 | if test -n "$ac_tool_prefix"; then |
| 1150 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1151 | set dummy ranlib; ac_word=$2 |
| 1152 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1153 | echo "configure:1154: checking for $ac_word" >&5 |
| 1154 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 1155 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1156 | else |
| 1157 | if test -n "$RANLIB"; then |
| 1158 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1159 | else |
| 1160 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1161 | for ac_dir in $PATH; do |
| 1162 | test -z "$ac_dir" && ac_dir=. |
| 1163 | if test -f $ac_dir/$ac_word; then |
| 1164 | ac_cv_prog_RANLIB="ranlib" |
| 1165 | break |
| 1166 | fi |
| 1167 | done |
| 1168 | IFS="$ac_save_ifs" |
| 1169 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
| 1170 | fi |
| 1171 | fi |
| 1172 | RANLIB="$ac_cv_prog_RANLIB" |
| 1173 | if test -n "$RANLIB"; then |
| 1174 | echo "$ac_t""$RANLIB" 1>&6 |
| 1175 | else |
| 1176 | echo "$ac_t""no" 1>&6 |
| 1177 | fi |
| 1178 | |
| 1179 | else |
| 1180 | RANLIB=":" |
| 1181 | fi |
| 1182 | fi |
| 1183 | |
| 1184 | |
| 1185 | # Check whether --enable-shared or --disable-shared was given. |
| 1186 | if test "${enable_shared+set}" = set; then |
| 1187 | enableval="$enable_shared" |
| 1188 | p=${PACKAGE-default} |
| 1189 | case "$enableval" in |
| 1190 | yes) enable_shared=yes ;; |
| 1191 | no) enable_shared=no ;; |
| 1192 | *) |
| 1193 | enable_shared=no |
| 1194 | # Look at the argument we got. We use all the common list separators. |
| 1195 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 1196 | for pkg in $enableval; do |
| 1197 | if test "X$pkg" = "X$p"; then |
| 1198 | enable_shared=yes |
| 1199 | fi |
| 1200 | done |
| 1201 | IFS="$ac_save_ifs" |
| 1202 | ;; |
| 1203 | esac |
| 1204 | else |
| 1205 | enable_shared=no |
| 1206 | fi |
| 1207 | |
| 1208 | |
| 1209 | # Check whether --enable-static or --disable-static was given. |
| 1210 | if test "${enable_static+set}" = set; then |
| 1211 | enableval="$enable_static" |
| 1212 | p=${PACKAGE-default} |
| 1213 | case "$enableval" in |
| 1214 | yes) enable_static=yes ;; |
| 1215 | no) enable_static=no ;; |
| 1216 | *) |
| 1217 | enable_static=no |
| 1218 | # Look at the argument we got. We use all the common list separators. |
| 1219 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 1220 | for pkg in $enableval; do |
| 1221 | if test "X$pkg" = "X$p"; then |
| 1222 | enable_static=yes |
| 1223 | fi |
| 1224 | done |
| 1225 | IFS="$ac_save_ifs" |
| 1226 | ;; |
| 1227 | esac |
| 1228 | else |
| 1229 | enable_static=yes |
| 1230 | fi |
| 1231 | |
| 1232 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1233 | set dummy ranlib; ac_word=$2 |
| 1234 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1235 | echo "configure:1236: checking for $ac_word" >&5 |
| 1236 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 1237 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1238 | else |
| 1239 | if test -n "$RANLIB"; then |
| 1240 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1241 | else |
| 1242 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1243 | for ac_dir in $PATH; do |
| 1244 | test -z "$ac_dir" && ac_dir=. |
| 1245 | if test -f $ac_dir/$ac_word; then |
| 1246 | ac_cv_prog_RANLIB="ranlib" |
| 1247 | break |
| 1248 | fi |
| 1249 | done |
| 1250 | IFS="$ac_save_ifs" |
| 1251 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
| 1252 | fi |
| 1253 | fi |
| 1254 | RANLIB="$ac_cv_prog_RANLIB" |
| 1255 | if test -n "$RANLIB"; then |
| 1256 | echo "$ac_t""$RANLIB" 1>&6 |
| 1257 | else |
| 1258 | echo "$ac_t""no" 1>&6 |
| 1259 | fi |
| 1260 | |
| 1261 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 1262 | if test "${with_gnu_ld+set}" = set; then |
| 1263 | withval="$with_gnu_ld" |
| 1264 | test "$withval" = no || with_gnu_ld=yes |
| 1265 | else |
| 1266 | with_gnu_ld=no |
| 1267 | fi |
| 1268 | |
| 1269 | |
| 1270 | ac_prog=ld |
| 1271 | if test "$ac_cv_prog_gcc" = yes; then |
| 1272 | # Check if gcc -print-prog-name=ld gives a path. |
| 1273 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 |
| 1274 | echo "configure:1275: checking for ld used by GCC" >&5 |
| 1275 | ac_prog=`($CC -print-prog-name=ld) 2>&5` |
| 1276 | case "$ac_prog" in |
| 1277 | # Accept absolute paths. |
| 1278 | /* | [A-Za-z]:\\*) |
| 1279 | test -z "$LD" && LD="$ac_prog" |
| 1280 | ;; |
| 1281 | "") |
| 1282 | # If it fails, then pretend we aren't using GCC. |
| 1283 | ac_prog=ld |
| 1284 | ;; |
| 1285 | *) |
| 1286 | # If it is relative, then search for the first ld in PATH. |
| 1287 | with_gnu_ld=unknown |
| 1288 | ;; |
| 1289 | esac |
| 1290 | elif test "$with_gnu_ld" = yes; then |
| 1291 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 |
| 1292 | echo "configure:1293: checking for GNU ld" >&5 |
| 1293 | else |
| 1294 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 |
| 1295 | echo "configure:1296: checking for non-GNU ld" >&5 |
| 1296 | fi |
| 1297 | if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then |
| 1298 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1299 | else |
| 1300 | if test -z "$LD"; then |
| 1301 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1302 | for ac_dir in $PATH; do |
| 1303 | test -z "$ac_dir" && ac_dir=. |
| 1304 | if test -f "$ac_dir/$ac_prog"; then |
| 1305 | ac_cv_path_LD="$ac_dir/$ac_prog" |
| 1306 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 1307 | # but apparently some GNU ld's only accept -v. |
| 1308 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 1309 | if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
| 1310 | test "$with_gnu_ld" != no && break |
| 1311 | else |
| 1312 | test "$with_gnu_ld" != yes && break |
| 1313 | fi |
| 1314 | fi |
| 1315 | done |
| 1316 | IFS="$ac_save_ifs" |
| 1317 | else |
| 1318 | ac_cv_path_LD="$LD" # Let the user override the test with a path. |
| 1319 | fi |
| 1320 | fi |
| 1321 | |
| 1322 | LD="$ac_cv_path_LD" |
| 1323 | if test -n "$LD"; then |
| 1324 | echo "$ac_t""$LD" 1>&6 |
| 1325 | else |
| 1326 | echo "$ac_t""no" 1>&6 |
| 1327 | fi |
| 1328 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } |
| 1329 | |
| 1330 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 |
| 1331 | echo "configure:1332: checking if the linker ($LD) is GNU ld" >&5 |
| 1332 | if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then |
| 1333 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1334 | else |
| 1335 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 1336 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
| 1337 | ac_cv_prog_gnu_ld=yes |
| 1338 | else |
| 1339 | ac_cv_prog_gnu_ld=no |
| 1340 | fi |
| 1341 | fi |
| 1342 | |
| 1343 | echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 |
| 1344 | |
| 1345 | |
| 1346 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 |
| 1347 | echo "configure:1348: checking for BSD-compatible nm" >&5 |
| 1348 | if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then |
| 1349 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1350 | else |
| 1351 | if test -n "$NM"; then |
| 1352 | # Let the user override the test. |
| 1353 | ac_cv_path_NM="$NM" |
| 1354 | else |
| 1355 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1356 | for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do |
| 1357 | test -z "$ac_dir" && ac_dir=. |
| 1358 | if test -f $ac_dir/nm; then |
| 1359 | # Check to see if the nm accepts a BSD-compat flag. |
| 1360 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 1361 | # nm: unknown option "B" ignored |
| 1362 | if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
| 1363 | ac_cv_path_NM="$ac_dir/nm -B" |
| 1364 | elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
| 1365 | ac_cv_path_NM="$ac_dir/nm -p" |
| 1366 | else |
| 1367 | ac_cv_path_NM="$ac_dir/nm" |
| 1368 | fi |
| 1369 | break |
| 1370 | fi |
| 1371 | done |
| 1372 | IFS="$ac_save_ifs" |
| 1373 | test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm |
| 1374 | fi |
| 1375 | fi |
| 1376 | |
| 1377 | NM="$ac_cv_path_NM" |
| 1378 | echo "$ac_t""$NM" 1>&6 |
| 1379 | |
| 1380 | |
| 1381 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
| 1382 | echo "configure:1383: checking whether ln -s works" >&5 |
| 1383 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
| 1384 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1385 | else |
| 1386 | rm -f conftestdata |
| 1387 | if ln -s X conftestdata 2>/dev/null |
| 1388 | then |
| 1389 | rm -f conftestdata |
| 1390 | ac_cv_prog_LN_S="ln -s" |
| 1391 | else |
| 1392 | ac_cv_prog_LN_S=ln |
| 1393 | fi |
| 1394 | fi |
| 1395 | LN_S="$ac_cv_prog_LN_S" |
| 1396 | if test "$ac_cv_prog_LN_S" = "ln -s"; then |
| 1397 | echo "$ac_t""yes" 1>&6 |
| 1398 | else |
| 1399 | echo "$ac_t""no" 1>&6 |
| 1400 | fi |
| 1401 | |
| 1402 | # Always use our own libtool. |
| 1403 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 1404 | |
| 1405 | # Check for any special flags to pass to ltconfig. |
| 1406 | libtool_flags= |
| 1407 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" |
| 1408 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" |
| 1409 | test "$silent" = yes && libtool_flags="$libtool_flags --silent" |
| 1410 | test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" |
| 1411 | test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" |
| 1412 | |
| 1413 | # Some flags need to be propagated to the compiler or linker for good |
| 1414 | # libtool support. |
| 1415 | case "$host" in |
| 1416 | *-*-irix6*) |
| 1417 | # Find out which ABI we are using. |
| 1418 | echo '#line 1419 "configure"' > conftest.$ac_ext |
| 1419 | if { (eval echo configure:1420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1420 | case "`/usr/bin/file conftest.o`" in |
| 1421 | *32-bit*) |
| 1422 | LD="${LD-ld} -32" |
| 1423 | ;; |
| 1424 | *N32*) |
| 1425 | LD="${LD-ld} -n32" |
| 1426 | ;; |
| 1427 | *64-bit*) |
| 1428 | LD="${LD-ld} -64" |
| 1429 | ;; |
| 1430 | esac |
| 1431 | fi |
| 1432 | rm -rf conftest* |
| 1433 | ;; |
| 1434 | |
| 1435 | *-*-sco3.2v5*) |
| 1436 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 1437 | CFLAGS="$CFLAGS -belf" |
| 1438 | ;; |
| 1439 | |
| 1440 | *-*-cygwin32*) |
| 1441 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 1442 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 1443 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1444 | echo "configure:1445: checking for $ac_word" >&5 |
| 1445 | if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then |
| 1446 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1447 | else |
| 1448 | if test -n "$DLLTOOL"; then |
| 1449 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 1450 | else |
| 1451 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1452 | for ac_dir in $PATH; do |
| 1453 | test -z "$ac_dir" && ac_dir=. |
| 1454 | if test -f $ac_dir/$ac_word; then |
| 1455 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 1456 | break |
| 1457 | fi |
| 1458 | done |
| 1459 | IFS="$ac_save_ifs" |
| 1460 | fi |
| 1461 | fi |
| 1462 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 1463 | if test -n "$DLLTOOL"; then |
| 1464 | echo "$ac_t""$DLLTOOL" 1>&6 |
| 1465 | else |
| 1466 | echo "$ac_t""no" 1>&6 |
| 1467 | fi |
| 1468 | |
| 1469 | |
| 1470 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 1471 | if test -n "$ac_tool_prefix"; then |
| 1472 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 1473 | set dummy dlltool; ac_word=$2 |
| 1474 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1475 | echo "configure:1476: checking for $ac_word" >&5 |
| 1476 | if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then |
| 1477 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1478 | else |
| 1479 | if test -n "$DLLTOOL"; then |
| 1480 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 1481 | else |
| 1482 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1483 | for ac_dir in $PATH; do |
| 1484 | test -z "$ac_dir" && ac_dir=. |
| 1485 | if test -f $ac_dir/$ac_word; then |
| 1486 | ac_cv_prog_DLLTOOL="dlltool" |
| 1487 | break |
| 1488 | fi |
| 1489 | done |
| 1490 | IFS="$ac_save_ifs" |
| 1491 | test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false" |
| 1492 | fi |
| 1493 | fi |
| 1494 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 1495 | if test -n "$DLLTOOL"; then |
| 1496 | echo "$ac_t""$DLLTOOL" 1>&6 |
| 1497 | else |
| 1498 | echo "$ac_t""no" 1>&6 |
| 1499 | fi |
| 1500 | |
| 1501 | else |
| 1502 | DLLTOOL="false" |
| 1503 | fi |
| 1504 | fi |
| 1505 | |
| 1506 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. |
| 1507 | set dummy ${ac_tool_prefix}as; ac_word=$2 |
| 1508 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1509 | echo "configure:1510: checking for $ac_word" >&5 |
| 1510 | if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then |
| 1511 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1512 | else |
| 1513 | if test -n "$AS"; then |
| 1514 | ac_cv_prog_AS="$AS" # Let the user override the test. |
| 1515 | else |
| 1516 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1517 | for ac_dir in $PATH; do |
| 1518 | test -z "$ac_dir" && ac_dir=. |
| 1519 | if test -f $ac_dir/$ac_word; then |
| 1520 | ac_cv_prog_AS="${ac_tool_prefix}as" |
| 1521 | break |
| 1522 | fi |
| 1523 | done |
| 1524 | IFS="$ac_save_ifs" |
| 1525 | fi |
| 1526 | fi |
| 1527 | AS="$ac_cv_prog_AS" |
| 1528 | if test -n "$AS"; then |
| 1529 | echo "$ac_t""$AS" 1>&6 |
| 1530 | else |
| 1531 | echo "$ac_t""no" 1>&6 |
| 1532 | fi |
| 1533 | |
| 1534 | |
| 1535 | if test -z "$ac_cv_prog_AS"; then |
| 1536 | if test -n "$ac_tool_prefix"; then |
| 1537 | # Extract the first word of "as", so it can be a program name with args. |
| 1538 | set dummy as; ac_word=$2 |
| 1539 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1540 | echo "configure:1541: checking for $ac_word" >&5 |
| 1541 | if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then |
| 1542 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1543 | else |
| 1544 | if test -n "$AS"; then |
| 1545 | ac_cv_prog_AS="$AS" # Let the user override the test. |
| 1546 | else |
| 1547 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1548 | for ac_dir in $PATH; do |
| 1549 | test -z "$ac_dir" && ac_dir=. |
| 1550 | if test -f $ac_dir/$ac_word; then |
| 1551 | ac_cv_prog_AS="as" |
| 1552 | break |
| 1553 | fi |
| 1554 | done |
| 1555 | IFS="$ac_save_ifs" |
| 1556 | test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false" |
| 1557 | fi |
| 1558 | fi |
| 1559 | AS="$ac_cv_prog_AS" |
| 1560 | if test -n "$AS"; then |
| 1561 | echo "$ac_t""$AS" 1>&6 |
| 1562 | else |
| 1563 | echo "$ac_t""no" 1>&6 |
| 1564 | fi |
| 1565 | |
| 1566 | else |
| 1567 | AS="false" |
| 1568 | fi |
| 1569 | fi |
| 1570 | |
| 1571 | |
| 1572 | ;; |
| 1573 | |
| 1574 | esac |
| 1575 | |
| 1576 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
| 1577 | CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
| 1578 | LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \ |
| 1579 | DLLTOOL="$DLLTOOL" AS="$AS" \ |
| 1580 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
| 1581 | $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \ |
| 1582 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } |
| 1583 | |
| 1584 | # Redirect the config.log output again, so that the ltconfig log is not |
| 1585 | # clobbered by the next message. |
| 1586 | exec 5>>./config.log |
| 1587 | |
| 1588 | |
| 1589 | # Check whether --enable-targets or --disable-targets was given. |
| 1590 | if test "${enable_targets+set}" = set; then |
| 1591 | enableval="$enable_targets" |
| 1592 | case "${enableval}" in |
| 1593 | yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; } |
| 1594 | ;; |
| 1595 | no) enable_targets= ;; |
| 1596 | *) enable_targets=$enableval ;; |
| 1597 | esac |
| 1598 | fi |
| 1599 | # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given. |
| 1600 | if test "${enable_commonbfdlib+set}" = set; then |
| 1601 | enableval="$enable_commonbfdlib" |
| 1602 | case "${enableval}" in |
| 1603 | yes) commonbfdlib=true ;; |
| 1604 | no) commonbfdlib=false ;; |
| 1605 | *) { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;; |
| 1606 | esac |
| 1607 | fi |
| 1608 | |
| 1609 | |
| 1610 | |
| 1611 | |
| 1612 | |
| 1613 | if test -z "$target" ; then |
| 1614 | { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; } |
| 1615 | fi |
| 1616 | if test "$program_transform_name" = s,x,x,; then |
| 1617 | program_transform_name= |
| 1618 | else |
| 1619 | # Double any \ or $. echo might interpret backslashes. |
| 1620 | cat <<\EOF_SED > conftestsed |
| 1621 | s,\\,\\\\,g; s,\$,$$,g |
| 1622 | EOF_SED |
| 1623 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" |
| 1624 | rm -f conftestsed |
| 1625 | fi |
| 1626 | test "$program_prefix" != NONE && |
| 1627 | program_transform_name="s,^,${program_prefix},; $program_transform_name" |
| 1628 | # Use a double $ so make ignores it. |
| 1629 | test "$program_suffix" != NONE && |
| 1630 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" |
| 1631 | |
| 1632 | # sed with no file args requires a program. |
| 1633 | test "$program_transform_name" = "" && program_transform_name="s,x,x," |
| 1634 | |
| 1635 | |
| 1636 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 |
| 1637 | echo "configure:1638: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 1638 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
| 1639 | if test "${enable_maintainer_mode+set}" = set; then |
| 1640 | enableval="$enable_maintainer_mode" |
| 1641 | USE_MAINTAINER_MODE=$enableval |
| 1642 | else |
| 1643 | USE_MAINTAINER_MODE=no |
| 1644 | fi |
| 1645 | |
| 1646 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 |
| 1647 | if test $USE_MAINTAINER_MODE = yes; then |
| 1648 | MAINT= |
| 1649 | else |
| 1650 | MAINT='#M#' |
| 1651 | fi |
| 1652 | |
| 1653 | |
| 1654 | echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6 |
| 1655 | echo "configure:1656: checking for Cygwin32 environment" >&5 |
| 1656 | if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then |
| 1657 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1658 | else |
| 1659 | cat > conftest.$ac_ext <<EOF |
| 1660 | #line 1661 "configure" |
| 1661 | #include "confdefs.h" |
| 1662 | |
| 1663 | int main() { |
| 1664 | return __CYGWIN32__; |
| 1665 | ; return 0; } |
| 1666 | EOF |
| 1667 | if { (eval echo configure:1668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1668 | rm -rf conftest* |
| 1669 | am_cv_cygwin32=yes |
| 1670 | else |
| 1671 | echo "configure: failed program was:" >&5 |
| 1672 | cat conftest.$ac_ext >&5 |
| 1673 | rm -rf conftest* |
| 1674 | am_cv_cygwin32=no |
| 1675 | fi |
| 1676 | rm -f conftest* |
| 1677 | rm -f conftest* |
| 1678 | fi |
| 1679 | |
| 1680 | echo "$ac_t""$am_cv_cygwin32" 1>&6 |
| 1681 | CYGWIN32= |
| 1682 | test "$am_cv_cygwin32" = yes && CYGWIN32=yes |
| 1683 | echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6 |
| 1684 | echo "configure:1685: checking for Mingw32 environment" >&5 |
| 1685 | if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then |
| 1686 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1687 | else |
| 1688 | cat > conftest.$ac_ext <<EOF |
| 1689 | #line 1690 "configure" |
| 1690 | #include "confdefs.h" |
| 1691 | |
| 1692 | int main() { |
| 1693 | return __MINGW32__; |
| 1694 | ; return 0; } |
| 1695 | EOF |
| 1696 | if { (eval echo configure:1697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1697 | rm -rf conftest* |
| 1698 | am_cv_mingw32=yes |
| 1699 | else |
| 1700 | echo "configure: failed program was:" >&5 |
| 1701 | cat conftest.$ac_ext >&5 |
| 1702 | rm -rf conftest* |
| 1703 | am_cv_mingw32=no |
| 1704 | fi |
| 1705 | rm -f conftest* |
| 1706 | rm -f conftest* |
| 1707 | fi |
| 1708 | |
| 1709 | echo "$ac_t""$am_cv_mingw32" 1>&6 |
| 1710 | MINGW32= |
| 1711 | test "$am_cv_mingw32" = yes && MINGW32=yes |
| 1712 | |
| 1713 | |
| 1714 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 |
| 1715 | echo "configure:1716: checking for executable suffix" >&5 |
| 1716 | if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then |
| 1717 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1718 | else |
| 1719 | if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then |
| 1720 | am_cv_exeext=.exe |
| 1721 | else |
| 1722 | cat > am_c_test.c << 'EOF' |
| 1723 | int main() { |
| 1724 | /* Nothing needed here */ |
| 1725 | } |
| 1726 | EOF |
| 1727 | ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5 |
| 1728 | am_cv_exeext= |
| 1729 | for file in am_c_test.*; do |
| 1730 | case $file in |
| 1731 | *.c) ;; |
| 1732 | *.o) ;; |
| 1733 | *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;; |
| 1734 | esac |
| 1735 | done |
| 1736 | rm -f am_c_test* |
| 1737 | fi |
| 1738 | |
| 1739 | test x"${am_cv_exeext}" = x && am_cv_exeext=no |
| 1740 | fi |
| 1741 | EXEEXT="" |
| 1742 | test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext} |
| 1743 | echo "$ac_t""${am_cv_exeext}" 1>&6 |
| 1744 | |
| 1745 | |
| 1746 | # host-specific stuff: |
| 1747 | |
| 1748 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1749 | set dummy gcc; ac_word=$2 |
| 1750 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1751 | echo "configure:1752: checking for $ac_word" >&5 |
| 1752 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 1753 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1754 | else |
| 1755 | if test -n "$CC"; then |
| 1756 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1757 | else |
| 1758 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1759 | for ac_dir in $PATH; do |
| 1760 | test -z "$ac_dir" && ac_dir=. |
| 1761 | if test -f $ac_dir/$ac_word; then |
| 1762 | ac_cv_prog_CC="gcc" |
| 1763 | break |
| 1764 | fi |
| 1765 | done |
| 1766 | IFS="$ac_save_ifs" |
| 1767 | fi |
| 1768 | fi |
| 1769 | CC="$ac_cv_prog_CC" |
| 1770 | if test -n "$CC"; then |
| 1771 | echo "$ac_t""$CC" 1>&6 |
| 1772 | else |
| 1773 | echo "$ac_t""no" 1>&6 |
| 1774 | fi |
| 1775 | |
| 1776 | if test -z "$CC"; then |
| 1777 | # Extract the first word of "cc", so it can be a program name with args. |
| 1778 | set dummy cc; ac_word=$2 |
| 1779 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1780 | echo "configure:1781: checking for $ac_word" >&5 |
| 1781 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 1782 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1783 | else |
| 1784 | if test -n "$CC"; then |
| 1785 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1786 | else |
| 1787 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1788 | ac_prog_rejected=no |
| 1789 | for ac_dir in $PATH; do |
| 1790 | test -z "$ac_dir" && ac_dir=. |
| 1791 | if test -f $ac_dir/$ac_word; then |
| 1792 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 1793 | ac_prog_rejected=yes |
| 1794 | continue |
| 1795 | fi |
| 1796 | ac_cv_prog_CC="cc" |
| 1797 | break |
| 1798 | fi |
| 1799 | done |
| 1800 | IFS="$ac_save_ifs" |
| 1801 | if test $ac_prog_rejected = yes; then |
| 1802 | # We found a bogon in the path, so make sure we never use it. |
| 1803 | set dummy $ac_cv_prog_CC |
| 1804 | shift |
| 1805 | if test $# -gt 0; then |
| 1806 | # We chose a different compiler from the bogus one. |
| 1807 | # However, it has the same basename, so the bogon will be chosen |
| 1808 | # first if we set CC to just the basename; use the full file name. |
| 1809 | shift |
| 1810 | set dummy "$ac_dir/$ac_word" "$@" |
| 1811 | shift |
| 1812 | ac_cv_prog_CC="$@" |
| 1813 | fi |
| 1814 | fi |
| 1815 | fi |
| 1816 | fi |
| 1817 | CC="$ac_cv_prog_CC" |
| 1818 | if test -n "$CC"; then |
| 1819 | echo "$ac_t""$CC" 1>&6 |
| 1820 | else |
| 1821 | echo "$ac_t""no" 1>&6 |
| 1822 | fi |
| 1823 | |
| 1824 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 1825 | fi |
| 1826 | |
| 1827 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
| 1828 | echo "configure:1829: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
| 1829 | |
| 1830 | ac_ext=c |
| 1831 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 1832 | ac_cpp='$CPP $CPPFLAGS' |
| 1833 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 1834 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 1835 | cross_compiling=$ac_cv_prog_cc_cross |
| 1836 | |
| 1837 | cat > conftest.$ac_ext <<EOF |
| 1838 | #line 1839 "configure" |
| 1839 | #include "confdefs.h" |
| 1840 | main(){return(0);} |
| 1841 | EOF |
| 1842 | if { (eval echo configure:1843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 1843 | ac_cv_prog_cc_works=yes |
| 1844 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 1845 | if (./conftest; exit) 2>/dev/null; then |
| 1846 | ac_cv_prog_cc_cross=no |
| 1847 | else |
| 1848 | ac_cv_prog_cc_cross=yes |
| 1849 | fi |
| 1850 | else |
| 1851 | echo "configure: failed program was:" >&5 |
| 1852 | cat conftest.$ac_ext >&5 |
| 1853 | ac_cv_prog_cc_works=no |
| 1854 | fi |
| 1855 | rm -fr conftest* |
| 1856 | |
| 1857 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 1858 | if test $ac_cv_prog_cc_works = no; then |
| 1859 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 1860 | fi |
| 1861 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
| 1862 | echo "configure:1863: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
| 1863 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 1864 | cross_compiling=$ac_cv_prog_cc_cross |
| 1865 | |
| 1866 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
| 1867 | echo "configure:1868: checking whether we are using GNU C" >&5 |
| 1868 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 1869 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1870 | else |
| 1871 | cat > conftest.c <<EOF |
| 1872 | #ifdef __GNUC__ |
| 1873 | yes; |
| 1874 | #endif |
| 1875 | EOF |
| 1876 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
| 1877 | ac_cv_prog_gcc=yes |
| 1878 | else |
| 1879 | ac_cv_prog_gcc=no |
| 1880 | fi |
| 1881 | fi |
| 1882 | |
| 1883 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
| 1884 | |
| 1885 | if test $ac_cv_prog_gcc = yes; then |
| 1886 | GCC=yes |
| 1887 | ac_test_CFLAGS="${CFLAGS+set}" |
| 1888 | ac_save_CFLAGS="$CFLAGS" |
| 1889 | CFLAGS= |
| 1890 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
| 1891 | echo "configure:1892: checking whether ${CC-cc} accepts -g" >&5 |
| 1892 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
| 1893 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1894 | else |
| 1895 | echo 'void f(){}' > conftest.c |
| 1896 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
| 1897 | ac_cv_prog_cc_g=yes |
| 1898 | else |
| 1899 | ac_cv_prog_cc_g=no |
| 1900 | fi |
| 1901 | rm -f conftest* |
| 1902 | |
| 1903 | fi |
| 1904 | |
| 1905 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
| 1906 | if test "$ac_test_CFLAGS" = set; then |
| 1907 | CFLAGS="$ac_save_CFLAGS" |
| 1908 | elif test $ac_cv_prog_cc_g = yes; then |
| 1909 | CFLAGS="-g -O2" |
| 1910 | else |
| 1911 | CFLAGS="-O2" |
| 1912 | fi |
| 1913 | else |
| 1914 | GCC= |
| 1915 | test "${CFLAGS+set}" = set || CFLAGS="-g" |
| 1916 | fi |
| 1917 | |
| 1918 | |
| 1919 | ALL_LINGUAS= |
| 1920 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
| 1921 | echo "configure:1922: checking how to run the C preprocessor" >&5 |
| 1922 | # On Suns, sometimes $CPP names a directory. |
| 1923 | if test -n "$CPP" && test -d "$CPP"; then |
| 1924 | CPP= |
| 1925 | fi |
| 1926 | if test -z "$CPP"; then |
| 1927 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
| 1928 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1929 | else |
| 1930 | # This must be in double quotes, not single quotes, because CPP may get |
| 1931 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
| 1932 | CPP="${CC-cc} -E" |
| 1933 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 1934 | # not just through cpp. |
| 1935 | cat > conftest.$ac_ext <<EOF |
| 1936 | #line 1937 "configure" |
| 1937 | #include "confdefs.h" |
| 1938 | #include <assert.h> |
| 1939 | Syntax Error |
| 1940 | EOF |
| 1941 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1942 | { (eval echo configure:1943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1943 | ac_err=`grep -v '^ *+' conftest.out` |
| 1944 | if test -z "$ac_err"; then |
| 1945 | : |
| 1946 | else |
| 1947 | echo "$ac_err" >&5 |
| 1948 | echo "configure: failed program was:" >&5 |
| 1949 | cat conftest.$ac_ext >&5 |
| 1950 | rm -rf conftest* |
| 1951 | CPP="${CC-cc} -E -traditional-cpp" |
| 1952 | cat > conftest.$ac_ext <<EOF |
| 1953 | #line 1954 "configure" |
| 1954 | #include "confdefs.h" |
| 1955 | #include <assert.h> |
| 1956 | Syntax Error |
| 1957 | EOF |
| 1958 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1959 | { (eval echo configure:1960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1960 | ac_err=`grep -v '^ *+' conftest.out` |
| 1961 | if test -z "$ac_err"; then |
| 1962 | : |
| 1963 | else |
| 1964 | echo "$ac_err" >&5 |
| 1965 | echo "configure: failed program was:" >&5 |
| 1966 | cat conftest.$ac_ext >&5 |
| 1967 | rm -rf conftest* |
| 1968 | CPP=/lib/cpp |
| 1969 | fi |
| 1970 | rm -f conftest* |
| 1971 | fi |
| 1972 | rm -f conftest* |
| 1973 | ac_cv_prog_CPP="$CPP" |
| 1974 | fi |
| 1975 | CPP="$ac_cv_prog_CPP" |
| 1976 | else |
| 1977 | ac_cv_prog_CPP="$CPP" |
| 1978 | fi |
| 1979 | echo "$ac_t""$CPP" 1>&6 |
| 1980 | |
| 1981 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
| 1982 | echo "configure:1983: checking for ANSI C header files" >&5 |
| 1983 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
| 1984 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1985 | else |
| 1986 | cat > conftest.$ac_ext <<EOF |
| 1987 | #line 1988 "configure" |
| 1988 | #include "confdefs.h" |
| 1989 | #include <stdlib.h> |
| 1990 | #include <stdarg.h> |
| 1991 | #include <string.h> |
| 1992 | #include <float.h> |
| 1993 | EOF |
| 1994 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1995 | { (eval echo configure:1996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1996 | ac_err=`grep -v '^ *+' conftest.out` |
| 1997 | if test -z "$ac_err"; then |
| 1998 | rm -rf conftest* |
| 1999 | ac_cv_header_stdc=yes |
| 2000 | else |
| 2001 | echo "$ac_err" >&5 |
| 2002 | echo "configure: failed program was:" >&5 |
| 2003 | cat conftest.$ac_ext >&5 |
| 2004 | rm -rf conftest* |
| 2005 | ac_cv_header_stdc=no |
| 2006 | fi |
| 2007 | rm -f conftest* |
| 2008 | |
| 2009 | if test $ac_cv_header_stdc = yes; then |
| 2010 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 2011 | cat > conftest.$ac_ext <<EOF |
| 2012 | #line 2013 "configure" |
| 2013 | #include "confdefs.h" |
| 2014 | #include <string.h> |
| 2015 | EOF |
| 2016 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2017 | egrep "memchr" >/dev/null 2>&1; then |
| 2018 | : |
| 2019 | else |
| 2020 | rm -rf conftest* |
| 2021 | ac_cv_header_stdc=no |
| 2022 | fi |
| 2023 | rm -f conftest* |
| 2024 | |
| 2025 | fi |
| 2026 | |
| 2027 | if test $ac_cv_header_stdc = yes; then |
| 2028 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 2029 | cat > conftest.$ac_ext <<EOF |
| 2030 | #line 2031 "configure" |
| 2031 | #include "confdefs.h" |
| 2032 | #include <stdlib.h> |
| 2033 | EOF |
| 2034 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2035 | egrep "free" >/dev/null 2>&1; then |
| 2036 | : |
| 2037 | else |
| 2038 | rm -rf conftest* |
| 2039 | ac_cv_header_stdc=no |
| 2040 | fi |
| 2041 | rm -f conftest* |
| 2042 | |
| 2043 | fi |
| 2044 | |
| 2045 | if test $ac_cv_header_stdc = yes; then |
| 2046 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 2047 | if test "$cross_compiling" = yes; then |
| 2048 | : |
| 2049 | else |
| 2050 | cat > conftest.$ac_ext <<EOF |
| 2051 | #line 2052 "configure" |
| 2052 | #include "confdefs.h" |
| 2053 | #include <ctype.h> |
| 2054 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2055 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 2056 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 2057 | int main () { int i; for (i = 0; i < 256; i++) |
| 2058 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 2059 | exit (0); } |
| 2060 | |
| 2061 | EOF |
| 2062 | if { (eval echo configure:2063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
| 2063 | then |
| 2064 | : |
| 2065 | else |
| 2066 | echo "configure: failed program was:" >&5 |
| 2067 | cat conftest.$ac_ext >&5 |
| 2068 | rm -fr conftest* |
| 2069 | ac_cv_header_stdc=no |
| 2070 | fi |
| 2071 | rm -fr conftest* |
| 2072 | fi |
| 2073 | |
| 2074 | fi |
| 2075 | fi |
| 2076 | |
| 2077 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
| 2078 | if test $ac_cv_header_stdc = yes; then |
| 2079 | cat >> confdefs.h <<\EOF |
| 2080 | #define STDC_HEADERS 1 |
| 2081 | EOF |
| 2082 | |
| 2083 | fi |
| 2084 | |
| 2085 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
| 2086 | echo "configure:2087: checking for working const" >&5 |
| 2087 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
| 2088 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2089 | else |
| 2090 | cat > conftest.$ac_ext <<EOF |
| 2091 | #line 2092 "configure" |
| 2092 | #include "confdefs.h" |
| 2093 | |
| 2094 | int main() { |
| 2095 | |
| 2096 | /* Ultrix mips cc rejects this. */ |
| 2097 | typedef int charset[2]; const charset x; |
| 2098 | /* SunOS 4.1.1 cc rejects this. */ |
| 2099 | char const *const *ccp; |
| 2100 | char **p; |
| 2101 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 2102 | struct point {int x, y;}; |
| 2103 | static struct point const zero = {0,0}; |
| 2104 | /* AIX XL C 1.02.0.0 rejects this. |
| 2105 | It does not let you subtract one const X* pointer from another in an arm |
| 2106 | of an if-expression whose if-part is not a constant expression */ |
| 2107 | const char *g = "string"; |
| 2108 | ccp = &g + (g ? g-g : 0); |
| 2109 | /* HPUX 7.0 cc rejects these. */ |
| 2110 | ++ccp; |
| 2111 | p = (char**) ccp; |
| 2112 | ccp = (char const *const *) p; |
| 2113 | { /* SCO 3.2v4 cc rejects this. */ |
| 2114 | char *t; |
| 2115 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 2116 | |
| 2117 | *t++ = 0; |
| 2118 | } |
| 2119 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 2120 | int x[] = {25, 17}; |
| 2121 | const int *foo = &x[0]; |
| 2122 | ++foo; |
| 2123 | } |
| 2124 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 2125 | typedef const int *iptr; |
| 2126 | iptr p = 0; |
| 2127 | ++p; |
| 2128 | } |
| 2129 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 2130 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 2131 | struct s { int j; const int *ap[3]; }; |
| 2132 | struct s *b; b->j = 5; |
| 2133 | } |
| 2134 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 2135 | const int foo = 10; |
| 2136 | } |
| 2137 | |
| 2138 | ; return 0; } |
| 2139 | EOF |
| 2140 | if { (eval echo configure:2141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2141 | rm -rf conftest* |
| 2142 | ac_cv_c_const=yes |
| 2143 | else |
| 2144 | echo "configure: failed program was:" >&5 |
| 2145 | cat conftest.$ac_ext >&5 |
| 2146 | rm -rf conftest* |
| 2147 | ac_cv_c_const=no |
| 2148 | fi |
| 2149 | rm -f conftest* |
| 2150 | fi |
| 2151 | |
| 2152 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
| 2153 | if test $ac_cv_c_const = no; then |
| 2154 | cat >> confdefs.h <<\EOF |
| 2155 | #define const |
| 2156 | EOF |
| 2157 | |
| 2158 | fi |
| 2159 | |
| 2160 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
| 2161 | echo "configure:2162: checking for inline" >&5 |
| 2162 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
| 2163 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2164 | else |
| 2165 | ac_cv_c_inline=no |
| 2166 | for ac_kw in inline __inline__ __inline; do |
| 2167 | cat > conftest.$ac_ext <<EOF |
| 2168 | #line 2169 "configure" |
| 2169 | #include "confdefs.h" |
| 2170 | |
| 2171 | int main() { |
| 2172 | } $ac_kw foo() { |
| 2173 | ; return 0; } |
| 2174 | EOF |
| 2175 | if { (eval echo configure:2176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2176 | rm -rf conftest* |
| 2177 | ac_cv_c_inline=$ac_kw; break |
| 2178 | else |
| 2179 | echo "configure: failed program was:" >&5 |
| 2180 | cat conftest.$ac_ext >&5 |
| 2181 | fi |
| 2182 | rm -f conftest* |
| 2183 | done |
| 2184 | |
| 2185 | fi |
| 2186 | |
| 2187 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
| 2188 | case "$ac_cv_c_inline" in |
| 2189 | inline | yes) ;; |
| 2190 | no) cat >> confdefs.h <<\EOF |
| 2191 | #define inline |
| 2192 | EOF |
| 2193 | ;; |
| 2194 | *) cat >> confdefs.h <<EOF |
| 2195 | #define inline $ac_cv_c_inline |
| 2196 | EOF |
| 2197 | ;; |
| 2198 | esac |
| 2199 | |
| 2200 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
| 2201 | echo "configure:2202: checking for off_t" >&5 |
| 2202 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
| 2203 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2204 | else |
| 2205 | cat > conftest.$ac_ext <<EOF |
| 2206 | #line 2207 "configure" |
| 2207 | #include "confdefs.h" |
| 2208 | #include <sys/types.h> |
| 2209 | #if STDC_HEADERS |
| 2210 | #include <stdlib.h> |
| 2211 | #include <stddef.h> |
| 2212 | #endif |
| 2213 | EOF |
| 2214 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2215 | egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 2216 | rm -rf conftest* |
| 2217 | ac_cv_type_off_t=yes |
| 2218 | else |
| 2219 | rm -rf conftest* |
| 2220 | ac_cv_type_off_t=no |
| 2221 | fi |
| 2222 | rm -f conftest* |
| 2223 | |
| 2224 | fi |
| 2225 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
| 2226 | if test $ac_cv_type_off_t = no; then |
| 2227 | cat >> confdefs.h <<\EOF |
| 2228 | #define off_t long |
| 2229 | EOF |
| 2230 | |
| 2231 | fi |
| 2232 | |
| 2233 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
| 2234 | echo "configure:2235: checking for size_t" >&5 |
| 2235 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
| 2236 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2237 | else |
| 2238 | cat > conftest.$ac_ext <<EOF |
| 2239 | #line 2240 "configure" |
| 2240 | #include "confdefs.h" |
| 2241 | #include <sys/types.h> |
| 2242 | #if STDC_HEADERS |
| 2243 | #include <stdlib.h> |
| 2244 | #include <stddef.h> |
| 2245 | #endif |
| 2246 | EOF |
| 2247 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2248 | egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 2249 | rm -rf conftest* |
| 2250 | ac_cv_type_size_t=yes |
| 2251 | else |
| 2252 | rm -rf conftest* |
| 2253 | ac_cv_type_size_t=no |
| 2254 | fi |
| 2255 | rm -f conftest* |
| 2256 | |
| 2257 | fi |
| 2258 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
| 2259 | if test $ac_cv_type_size_t = no; then |
| 2260 | cat >> confdefs.h <<\EOF |
| 2261 | #define size_t unsigned |
| 2262 | EOF |
| 2263 | |
| 2264 | fi |
| 2265 | |
| 2266 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 2267 | # for constant arguments. Useless! |
| 2268 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
| 2269 | echo "configure:2270: checking for working alloca.h" >&5 |
| 2270 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
| 2271 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2272 | else |
| 2273 | cat > conftest.$ac_ext <<EOF |
| 2274 | #line 2275 "configure" |
| 2275 | #include "confdefs.h" |
| 2276 | #include <alloca.h> |
| 2277 | int main() { |
| 2278 | char *p = alloca(2 * sizeof(int)); |
| 2279 | ; return 0; } |
| 2280 | EOF |
| 2281 | if { (eval echo configure:2282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 2282 | rm -rf conftest* |
| 2283 | ac_cv_header_alloca_h=yes |
| 2284 | else |
| 2285 | echo "configure: failed program was:" >&5 |
| 2286 | cat conftest.$ac_ext >&5 |
| 2287 | rm -rf conftest* |
| 2288 | ac_cv_header_alloca_h=no |
| 2289 | fi |
| 2290 | rm -f conftest* |
| 2291 | fi |
| 2292 | |
| 2293 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 |
| 2294 | if test $ac_cv_header_alloca_h = yes; then |
| 2295 | cat >> confdefs.h <<\EOF |
| 2296 | #define HAVE_ALLOCA_H 1 |
| 2297 | EOF |
| 2298 | |
| 2299 | fi |
| 2300 | |
| 2301 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
| 2302 | echo "configure:2303: checking for alloca" >&5 |
| 2303 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
| 2304 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2305 | else |
| 2306 | cat > conftest.$ac_ext <<EOF |
| 2307 | #line 2308 "configure" |
| 2308 | #include "confdefs.h" |
| 2309 | |
| 2310 | #ifdef __GNUC__ |
| 2311 | # define alloca __builtin_alloca |
| 2312 | #else |
| 2313 | # if HAVE_ALLOCA_H |
| 2314 | # include <alloca.h> |
| 2315 | # else |
| 2316 | # ifdef _AIX |
| 2317 | #pragma alloca |
| 2318 | # else |
| 2319 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 2320 | char *alloca (); |
| 2321 | # endif |
| 2322 | # endif |
| 2323 | # endif |
| 2324 | #endif |
| 2325 | |
| 2326 | int main() { |
| 2327 | char *p = (char *) alloca(1); |
| 2328 | ; return 0; } |
| 2329 | EOF |
| 2330 | if { (eval echo configure:2331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 2331 | rm -rf conftest* |
| 2332 | ac_cv_func_alloca_works=yes |
| 2333 | else |
| 2334 | echo "configure: failed program was:" >&5 |
| 2335 | cat conftest.$ac_ext >&5 |
| 2336 | rm -rf conftest* |
| 2337 | ac_cv_func_alloca_works=no |
| 2338 | fi |
| 2339 | rm -f conftest* |
| 2340 | fi |
| 2341 | |
| 2342 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 |
| 2343 | if test $ac_cv_func_alloca_works = yes; then |
| 2344 | cat >> confdefs.h <<\EOF |
| 2345 | #define HAVE_ALLOCA 1 |
| 2346 | EOF |
| 2347 | |
| 2348 | fi |
| 2349 | |
| 2350 | if test $ac_cv_func_alloca_works = no; then |
| 2351 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 2352 | # that cause trouble. Some versions do not even contain alloca or |
| 2353 | # contain a buggy version. If you still want to use their alloca, |
| 2354 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 2355 | ALLOCA=alloca.o |
| 2356 | cat >> confdefs.h <<\EOF |
| 2357 | #define C_ALLOCA 1 |
| 2358 | EOF |
| 2359 | |
| 2360 | |
| 2361 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
| 2362 | echo "configure:2363: checking whether alloca needs Cray hooks" >&5 |
| 2363 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
| 2364 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2365 | else |
| 2366 | cat > conftest.$ac_ext <<EOF |
| 2367 | #line 2368 "configure" |
| 2368 | #include "confdefs.h" |
| 2369 | #if defined(CRAY) && ! defined(CRAY2) |
| 2370 | webecray |
| 2371 | #else |
| 2372 | wenotbecray |
| 2373 | #endif |
| 2374 | |
| 2375 | EOF |
| 2376 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2377 | egrep "webecray" >/dev/null 2>&1; then |
| 2378 | rm -rf conftest* |
| 2379 | ac_cv_os_cray=yes |
| 2380 | else |
| 2381 | rm -rf conftest* |
| 2382 | ac_cv_os_cray=no |
| 2383 | fi |
| 2384 | rm -f conftest* |
| 2385 | |
| 2386 | fi |
| 2387 | |
| 2388 | echo "$ac_t""$ac_cv_os_cray" 1>&6 |
| 2389 | if test $ac_cv_os_cray = yes; then |
| 2390 | for ac_func in _getb67 GETB67 getb67; do |
| 2391 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 2392 | echo "configure:2393: checking for $ac_func" >&5 |
| 2393 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2394 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2395 | else |
| 2396 | cat > conftest.$ac_ext <<EOF |
| 2397 | #line 2398 "configure" |
| 2398 | #include "confdefs.h" |
| 2399 | /* System header to define __stub macros and hopefully few prototypes, |
| 2400 | which can conflict with char $ac_func(); below. */ |
| 2401 | #include <assert.h> |
| 2402 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2403 | /* We use char because int might match the return type of a gcc2 |
| 2404 | builtin and then its argument prototype would still apply. */ |
| 2405 | char $ac_func(); |
| 2406 | |
| 2407 | int main() { |
| 2408 | |
| 2409 | /* The GNU C library defines this for functions which it implements |
| 2410 | to always fail with ENOSYS. Some functions are actually named |
| 2411 | something starting with __ and the normal name is an alias. */ |
| 2412 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2413 | choke me |
| 2414 | #else |
| 2415 | $ac_func(); |
| 2416 | #endif |
| 2417 | |
| 2418 | ; return 0; } |
| 2419 | EOF |
| 2420 | if { (eval echo configure:2421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 2421 | rm -rf conftest* |
| 2422 | eval "ac_cv_func_$ac_func=yes" |
| 2423 | else |
| 2424 | echo "configure: failed program was:" >&5 |
| 2425 | cat conftest.$ac_ext >&5 |
| 2426 | rm -rf conftest* |
| 2427 | eval "ac_cv_func_$ac_func=no" |
| 2428 | fi |
| 2429 | rm -f conftest* |
| 2430 | fi |
| 2431 | |
| 2432 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 2433 | echo "$ac_t""yes" 1>&6 |
| 2434 | cat >> confdefs.h <<EOF |
| 2435 | #define CRAY_STACKSEG_END $ac_func |
| 2436 | EOF |
| 2437 | |
| 2438 | break |
| 2439 | else |
| 2440 | echo "$ac_t""no" 1>&6 |
| 2441 | fi |
| 2442 | |
| 2443 | done |
| 2444 | fi |
| 2445 | |
| 2446 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
| 2447 | echo "configure:2448: checking stack direction for C alloca" >&5 |
| 2448 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
| 2449 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2450 | else |
| 2451 | if test "$cross_compiling" = yes; then |
| 2452 | ac_cv_c_stack_direction=0 |
| 2453 | else |
| 2454 | cat > conftest.$ac_ext <<EOF |
| 2455 | #line 2456 "configure" |
| 2456 | #include "confdefs.h" |
| 2457 | find_stack_direction () |
| 2458 | { |
| 2459 | static char *addr = 0; |
| 2460 | auto char dummy; |
| 2461 | if (addr == 0) |
| 2462 | { |
| 2463 | addr = &dummy; |
| 2464 | return find_stack_direction (); |
| 2465 | } |
| 2466 | else |
| 2467 | return (&dummy > addr) ? 1 : -1; |
| 2468 | } |
| 2469 | main () |
| 2470 | { |
| 2471 | exit (find_stack_direction() < 0); |
| 2472 | } |
| 2473 | EOF |
| 2474 | if { (eval echo configure:2475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
| 2475 | then |
| 2476 | ac_cv_c_stack_direction=1 |
| 2477 | else |
| 2478 | echo "configure: failed program was:" >&5 |
| 2479 | cat conftest.$ac_ext >&5 |
| 2480 | rm -fr conftest* |
| 2481 | ac_cv_c_stack_direction=-1 |
| 2482 | fi |
| 2483 | rm -fr conftest* |
| 2484 | fi |
| 2485 | |
| 2486 | fi |
| 2487 | |
| 2488 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
| 2489 | cat >> confdefs.h <<EOF |
| 2490 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 2491 | EOF |
| 2492 | |
| 2493 | fi |
| 2494 | |
| 2495 | for ac_hdr in unistd.h |
| 2496 | do |
| 2497 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 2498 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 2499 | echo "configure:2500: checking for $ac_hdr" >&5 |
| 2500 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2501 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2502 | else |
| 2503 | cat > conftest.$ac_ext <<EOF |
| 2504 | #line 2505 "configure" |
| 2505 | #include "confdefs.h" |
| 2506 | #include <$ac_hdr> |
| 2507 | EOF |
| 2508 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 2509 | { (eval echo configure:2510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 2510 | ac_err=`grep -v '^ *+' conftest.out` |
| 2511 | if test -z "$ac_err"; then |
| 2512 | rm -rf conftest* |
| 2513 | eval "ac_cv_header_$ac_safe=yes" |
| 2514 | else |
| 2515 | echo "$ac_err" >&5 |
| 2516 | echo "configure: failed program was:" >&5 |
| 2517 | cat conftest.$ac_ext >&5 |
| 2518 | rm -rf conftest* |
| 2519 | eval "ac_cv_header_$ac_safe=no" |
| 2520 | fi |
| 2521 | rm -f conftest* |
| 2522 | fi |
| 2523 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2524 | echo "$ac_t""yes" 1>&6 |
| 2525 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 2526 | cat >> confdefs.h <<EOF |
| 2527 | #define $ac_tr_hdr 1 |
| 2528 | EOF |
| 2529 | |
| 2530 | else |
| 2531 | echo "$ac_t""no" 1>&6 |
| 2532 | fi |
| 2533 | done |
| 2534 | |
| 2535 | for ac_func in getpagesize |
| 2536 | do |
| 2537 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 2538 | echo "configure:2539: checking for $ac_func" >&5 |
| 2539 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2540 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2541 | else |
| 2542 | cat > conftest.$ac_ext <<EOF |
| 2543 | #line 2544 "configure" |
| 2544 | #include "confdefs.h" |
| 2545 | /* System header to define __stub macros and hopefully few prototypes, |
| 2546 | which can conflict with char $ac_func(); below. */ |
| 2547 | #include <assert.h> |
| 2548 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2549 | /* We use char because int might match the return type of a gcc2 |
| 2550 | builtin and then its argument prototype would still apply. */ |
| 2551 | char $ac_func(); |
| 2552 | |
| 2553 | int main() { |
| 2554 | |
| 2555 | /* The GNU C library defines this for functions which it implements |
| 2556 | to always fail with ENOSYS. Some functions are actually named |
| 2557 | something starting with __ and the normal name is an alias. */ |
| 2558 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2559 | choke me |
| 2560 | #else |
| 2561 | $ac_func(); |
| 2562 | #endif |
| 2563 | |
| 2564 | ; return 0; } |
| 2565 | EOF |
| 2566 | if { (eval echo configure:2567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 2567 | rm -rf conftest* |
| 2568 | eval "ac_cv_func_$ac_func=yes" |
| 2569 | else |
| 2570 | echo "configure: failed program was:" >&5 |
| 2571 | cat conftest.$ac_ext >&5 |
| 2572 | rm -rf conftest* |
| 2573 | eval "ac_cv_func_$ac_func=no" |
| 2574 | fi |
| 2575 | rm -f conftest* |
| 2576 | fi |
| 2577 | |
| 2578 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 2579 | echo "$ac_t""yes" 1>&6 |
| 2580 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 2581 | cat >> confdefs.h <<EOF |
| 2582 | #define $ac_tr_func 1 |
| 2583 | EOF |
| 2584 | |
| 2585 | else |
| 2586 | echo "$ac_t""no" 1>&6 |
| 2587 | fi |
| 2588 | done |
| 2589 | |
| 2590 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
| 2591 | echo "configure:2592: checking for working mmap" >&5 |
| 2592 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
| 2593 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2594 | else |
| 2595 | if test "$cross_compiling" = yes; then |
| 2596 | ac_cv_func_mmap_fixed_mapped=no |
| 2597 | else |
| 2598 | cat > conftest.$ac_ext <<EOF |
| 2599 | #line 2600 "configure" |
| 2600 | #include "confdefs.h" |
| 2601 | |
| 2602 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 2603 | Here is a matrix of mmap possibilities: |
| 2604 | mmap private not fixed |
| 2605 | mmap private fixed at somewhere currently unmapped |
| 2606 | mmap private fixed at somewhere already mapped |
| 2607 | mmap shared not fixed |
| 2608 | mmap shared fixed at somewhere currently unmapped |
| 2609 | mmap shared fixed at somewhere already mapped |
| 2610 | For private mappings, we should verify that changes cannot be read() |
| 2611 | back from the file, nor mmap's back from the file at a different |
| 2612 | address. (There have been systems where private was not correctly |
| 2613 | implemented like the infamous i386 svr4.0, and systems where the |
| 2614 | VM page cache was not coherent with the filesystem buffer cache |
| 2615 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 2616 | For shared mappings, we should conversely verify that changes get |
| 2617 | propogated back to all the places they're supposed to be. |
| 2618 | |
| 2619 | Grep wants private fixed already mapped. |
| 2620 | The main things grep needs to know about mmap are: |
| 2621 | * does it exist and is it safe to write into the mmap'd area |
| 2622 | * how to use it (BSD variants) */ |
| 2623 | #include <sys/types.h> |
| 2624 | #include <fcntl.h> |
| 2625 | #include <sys/mman.h> |
| 2626 | |
| 2627 | /* This mess was copied from the GNU getpagesize.h. */ |
| 2628 | #ifndef HAVE_GETPAGESIZE |
| 2629 | # ifdef HAVE_UNISTD_H |
| 2630 | # include <unistd.h> |
| 2631 | # endif |
| 2632 | |
| 2633 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 2634 | # ifndef HAVE_SYS_PARAM_H |
| 2635 | # define HAVE_SYS_PARAM_H 1 |
| 2636 | # endif |
| 2637 | |
| 2638 | # ifdef _SC_PAGESIZE |
| 2639 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 2640 | # else /* no _SC_PAGESIZE */ |
| 2641 | # ifdef HAVE_SYS_PARAM_H |
| 2642 | # include <sys/param.h> |
| 2643 | # ifdef EXEC_PAGESIZE |
| 2644 | # define getpagesize() EXEC_PAGESIZE |
| 2645 | # else /* no EXEC_PAGESIZE */ |
| 2646 | # ifdef NBPG |
| 2647 | # define getpagesize() NBPG * CLSIZE |
| 2648 | # ifndef CLSIZE |
| 2649 | # define CLSIZE 1 |
| 2650 | # endif /* no CLSIZE */ |
| 2651 | # else /* no NBPG */ |
| 2652 | # ifdef NBPC |
| 2653 | # define getpagesize() NBPC |
| 2654 | # else /* no NBPC */ |
| 2655 | # ifdef PAGESIZE |
| 2656 | # define getpagesize() PAGESIZE |
| 2657 | # endif /* PAGESIZE */ |
| 2658 | # endif /* no NBPC */ |
| 2659 | # endif /* no NBPG */ |
| 2660 | # endif /* no EXEC_PAGESIZE */ |
| 2661 | # else /* no HAVE_SYS_PARAM_H */ |
| 2662 | # define getpagesize() 8192 /* punt totally */ |
| 2663 | # endif /* no HAVE_SYS_PARAM_H */ |
| 2664 | # endif /* no _SC_PAGESIZE */ |
| 2665 | |
| 2666 | #endif /* no HAVE_GETPAGESIZE */ |
| 2667 | |
| 2668 | #ifdef __cplusplus |
| 2669 | extern "C" { void *malloc(unsigned); } |
| 2670 | #else |
| 2671 | char *malloc(); |
| 2672 | #endif |
| 2673 | |
| 2674 | int |
| 2675 | main() |
| 2676 | { |
| 2677 | char *data, *data2, *data3; |
| 2678 | int i, pagesize; |
| 2679 | int fd; |
| 2680 | |
| 2681 | pagesize = getpagesize(); |
| 2682 | |
| 2683 | /* |
| 2684 | * First, make a file with some known garbage in it. |
| 2685 | */ |
| 2686 | data = malloc(pagesize); |
| 2687 | if (!data) |
| 2688 | exit(1); |
| 2689 | for (i = 0; i < pagesize; ++i) |
| 2690 | *(data + i) = rand(); |
| 2691 | umask(0); |
| 2692 | fd = creat("conftestmmap", 0600); |
| 2693 | if (fd < 0) |
| 2694 | exit(1); |
| 2695 | if (write(fd, data, pagesize) != pagesize) |
| 2696 | exit(1); |
| 2697 | close(fd); |
| 2698 | |
| 2699 | /* |
| 2700 | * Next, try to mmap the file at a fixed address which |
| 2701 | * already has something else allocated at it. If we can, |
| 2702 | * also make sure that we see the same garbage. |
| 2703 | */ |
| 2704 | fd = open("conftestmmap", O_RDWR); |
| 2705 | if (fd < 0) |
| 2706 | exit(1); |
| 2707 | data2 = malloc(2 * pagesize); |
| 2708 | if (!data2) |
| 2709 | exit(1); |
| 2710 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); |
| 2711 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, |
| 2712 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
| 2713 | exit(1); |
| 2714 | for (i = 0; i < pagesize; ++i) |
| 2715 | if (*(data + i) != *(data2 + i)) |
| 2716 | exit(1); |
| 2717 | |
| 2718 | /* |
| 2719 | * Finally, make sure that changes to the mapped area |
| 2720 | * do not percolate back to the file as seen by read(). |
| 2721 | * (This is a bug on some variants of i386 svr4.0.) |
| 2722 | */ |
| 2723 | for (i = 0; i < pagesize; ++i) |
| 2724 | *(data2 + i) = *(data2 + i) + 1; |
| 2725 | data3 = malloc(pagesize); |
| 2726 | if (!data3) |
| 2727 | exit(1); |
| 2728 | if (read(fd, data3, pagesize) != pagesize) |
| 2729 | exit(1); |
| 2730 | for (i = 0; i < pagesize; ++i) |
| 2731 | if (*(data + i) != *(data3 + i)) |
| 2732 | exit(1); |
| 2733 | close(fd); |
| 2734 | unlink("conftestmmap"); |
| 2735 | exit(0); |
| 2736 | } |
| 2737 | |
| 2738 | EOF |
| 2739 | if { (eval echo configure:2740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
| 2740 | then |
| 2741 | ac_cv_func_mmap_fixed_mapped=yes |
| 2742 | else |
| 2743 | echo "configure: failed program was:" >&5 |
| 2744 | cat conftest.$ac_ext >&5 |
| 2745 | rm -fr conftest* |
| 2746 | ac_cv_func_mmap_fixed_mapped=no |
| 2747 | fi |
| 2748 | rm -fr conftest* |
| 2749 | fi |
| 2750 | |
| 2751 | fi |
| 2752 | |
| 2753 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 |
| 2754 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 2755 | cat >> confdefs.h <<\EOF |
| 2756 | #define HAVE_MMAP 1 |
| 2757 | EOF |
| 2758 | |
| 2759 | fi |
| 2760 | |
| 2761 | |
| 2762 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ |
| 2763 | unistd.h values.h sys/param.h |
| 2764 | do |
| 2765 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 2766 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 2767 | echo "configure:2768: checking for $ac_hdr" >&5 |
| 2768 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2769 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2770 | else |
| 2771 | cat > conftest.$ac_ext <<EOF |
| 2772 | #line 2773 "configure" |
| 2773 | #include "confdefs.h" |
| 2774 | #include <$ac_hdr> |
| 2775 | EOF |
| 2776 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 2777 | { (eval echo configure:2778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 2778 | ac_err=`grep -v '^ *+' conftest.out` |
| 2779 | if test -z "$ac_err"; then |
| 2780 | rm -rf conftest* |
| 2781 | eval "ac_cv_header_$ac_safe=yes" |
| 2782 | else |
| 2783 | echo "$ac_err" >&5 |
| 2784 | echo "configure: failed program was:" >&5 |
| 2785 | cat conftest.$ac_ext >&5 |
| 2786 | rm -rf conftest* |
| 2787 | eval "ac_cv_header_$ac_safe=no" |
| 2788 | fi |
| 2789 | rm -f conftest* |
| 2790 | fi |
| 2791 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2792 | echo "$ac_t""yes" 1>&6 |
| 2793 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 2794 | cat >> confdefs.h <<EOF |
| 2795 | #define $ac_tr_hdr 1 |
| 2796 | EOF |
| 2797 | |
| 2798 | else |
| 2799 | echo "$ac_t""no" 1>&6 |
| 2800 | fi |
| 2801 | done |
| 2802 | |
| 2803 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ |
| 2804 | __argz_count __argz_stringify __argz_next |
| 2805 | do |
| 2806 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 2807 | echo "configure:2808: checking for $ac_func" >&5 |
| 2808 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2809 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2810 | else |
| 2811 | cat > conftest.$ac_ext <<EOF |
| 2812 | #line 2813 "configure" |
| 2813 | #include "confdefs.h" |
| 2814 | /* System header to define __stub macros and hopefully few prototypes, |
| 2815 | which can conflict with char $ac_func(); below. */ |
| 2816 | #include <assert.h> |
| 2817 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2818 | /* We use char because int might match the return type of a gcc2 |
| 2819 | builtin and then its argument prototype would still apply. */ |
| 2820 | char $ac_func(); |
| 2821 | |
| 2822 | int main() { |
| 2823 | |
| 2824 | /* The GNU C library defines this for functions which it implements |
| 2825 | to always fail with ENOSYS. Some functions are actually named |
| 2826 | something starting with __ and the normal name is an alias. */ |
| 2827 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2828 | choke me |
| 2829 | #else |
| 2830 | $ac_func(); |
| 2831 | #endif |
| 2832 | |
| 2833 | ; return 0; } |
| 2834 | EOF |
| 2835 | if { (eval echo configure:2836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 2836 | rm -rf conftest* |
| 2837 | eval "ac_cv_func_$ac_func=yes" |
| 2838 | else |
| 2839 | echo "configure: failed program was:" >&5 |
| 2840 | cat conftest.$ac_ext >&5 |
| 2841 | rm -rf conftest* |
| 2842 | eval "ac_cv_func_$ac_func=no" |
| 2843 | fi |
| 2844 | rm -f conftest* |
| 2845 | fi |
| 2846 | |
| 2847 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 2848 | echo "$ac_t""yes" 1>&6 |
| 2849 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 2850 | cat >> confdefs.h <<EOF |
| 2851 | #define $ac_tr_func 1 |
| 2852 | EOF |
| 2853 | |
| 2854 | else |
| 2855 | echo "$ac_t""no" 1>&6 |
| 2856 | fi |
| 2857 | done |
| 2858 | |
| 2859 | |
| 2860 | if test "${ac_cv_func_stpcpy+set}" != "set"; then |
| 2861 | for ac_func in stpcpy |
| 2862 | do |
| 2863 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 2864 | echo "configure:2865: checking for $ac_func" >&5 |
| 2865 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2866 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2867 | else |
| 2868 | cat > conftest.$ac_ext <<EOF |
| 2869 | #line 2870 "configure" |
| 2870 | #include "confdefs.h" |
| 2871 | /* System header to define __stub macros and hopefully few prototypes, |
| 2872 | which can conflict with char $ac_func(); below. */ |
| 2873 | #include <assert.h> |
| 2874 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2875 | /* We use char because int might match the return type of a gcc2 |
| 2876 | builtin and then its argument prototype would still apply. */ |
| 2877 | char $ac_func(); |
| 2878 | |
| 2879 | int main() { |
| 2880 | |
| 2881 | /* The GNU C library defines this for functions which it implements |
| 2882 | to always fail with ENOSYS. Some functions are actually named |
| 2883 | something starting with __ and the normal name is an alias. */ |
| 2884 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2885 | choke me |
| 2886 | #else |
| 2887 | $ac_func(); |
| 2888 | #endif |
| 2889 | |
| 2890 | ; return 0; } |
| 2891 | EOF |
| 2892 | if { (eval echo configure:2893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 2893 | rm -rf conftest* |
| 2894 | eval "ac_cv_func_$ac_func=yes" |
| 2895 | else |
| 2896 | echo "configure: failed program was:" >&5 |
| 2897 | cat conftest.$ac_ext >&5 |
| 2898 | rm -rf conftest* |
| 2899 | eval "ac_cv_func_$ac_func=no" |
| 2900 | fi |
| 2901 | rm -f conftest* |
| 2902 | fi |
| 2903 | |
| 2904 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 2905 | echo "$ac_t""yes" 1>&6 |
| 2906 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 2907 | cat >> confdefs.h <<EOF |
| 2908 | #define $ac_tr_func 1 |
| 2909 | EOF |
| 2910 | |
| 2911 | else |
| 2912 | echo "$ac_t""no" 1>&6 |
| 2913 | fi |
| 2914 | done |
| 2915 | |
| 2916 | fi |
| 2917 | if test "${ac_cv_func_stpcpy}" = "yes"; then |
| 2918 | cat >> confdefs.h <<\EOF |
| 2919 | #define HAVE_STPCPY 1 |
| 2920 | EOF |
| 2921 | |
| 2922 | fi |
| 2923 | |
| 2924 | if test $ac_cv_header_locale_h = yes; then |
| 2925 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 |
| 2926 | echo "configure:2927: checking for LC_MESSAGES" >&5 |
| 2927 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then |
| 2928 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2929 | else |
| 2930 | cat > conftest.$ac_ext <<EOF |
| 2931 | #line 2932 "configure" |
| 2932 | #include "confdefs.h" |
| 2933 | #include <locale.h> |
| 2934 | int main() { |
| 2935 | return LC_MESSAGES |
| 2936 | ; return 0; } |
| 2937 | EOF |
| 2938 | if { (eval echo configure:2939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 2939 | rm -rf conftest* |
| 2940 | am_cv_val_LC_MESSAGES=yes |
| 2941 | else |
| 2942 | echo "configure: failed program was:" >&5 |
| 2943 | cat conftest.$ac_ext >&5 |
| 2944 | rm -rf conftest* |
| 2945 | am_cv_val_LC_MESSAGES=no |
| 2946 | fi |
| 2947 | rm -f conftest* |
| 2948 | fi |
| 2949 | |
| 2950 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 |
| 2951 | if test $am_cv_val_LC_MESSAGES = yes; then |
| 2952 | cat >> confdefs.h <<\EOF |
| 2953 | #define HAVE_LC_MESSAGES 1 |
| 2954 | EOF |
| 2955 | |
| 2956 | fi |
| 2957 | fi |
| 2958 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 |
| 2959 | echo "configure:2960: checking whether NLS is requested" >&5 |
| 2960 | # Check whether --enable-nls or --disable-nls was given. |
| 2961 | if test "${enable_nls+set}" = set; then |
| 2962 | enableval="$enable_nls" |
| 2963 | USE_NLS=$enableval |
| 2964 | else |
| 2965 | USE_NLS=yes |
| 2966 | fi |
| 2967 | |
| 2968 | echo "$ac_t""$USE_NLS" 1>&6 |
| 2969 | |
| 2970 | |
| 2971 | USE_INCLUDED_LIBINTL=no |
| 2972 | |
| 2973 | if test "$USE_NLS" = "yes"; then |
| 2974 | cat >> confdefs.h <<\EOF |
| 2975 | #define ENABLE_NLS 1 |
| 2976 | EOF |
| 2977 | |
| 2978 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 |
| 2979 | echo "configure:2980: checking whether included gettext is requested" >&5 |
| 2980 | # Check whether --with-included-gettext or --without-included-gettext was given. |
| 2981 | if test "${with_included_gettext+set}" = set; then |
| 2982 | withval="$with_included_gettext" |
| 2983 | nls_cv_force_use_gnu_gettext=$withval |
| 2984 | else |
| 2985 | nls_cv_force_use_gnu_gettext=no |
| 2986 | fi |
| 2987 | |
| 2988 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 |
| 2989 | |
| 2990 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 2991 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
| 2992 | nls_cv_header_intl= |
| 2993 | nls_cv_header_libgt= |
| 2994 | CATOBJEXT=NONE |
| 2995 | |
| 2996 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` |
| 2997 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 |
| 2998 | echo "configure:2999: checking for libintl.h" >&5 |
| 2999 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 3000 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3001 | else |
| 3002 | cat > conftest.$ac_ext <<EOF |
| 3003 | #line 3004 "configure" |
| 3004 | #include "confdefs.h" |
| 3005 | #include <libintl.h> |
| 3006 | EOF |
| 3007 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 3008 | { (eval echo configure:3009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 3009 | ac_err=`grep -v '^ *+' conftest.out` |
| 3010 | if test -z "$ac_err"; then |
| 3011 | rm -rf conftest* |
| 3012 | eval "ac_cv_header_$ac_safe=yes" |
| 3013 | else |
| 3014 | echo "$ac_err" >&5 |
| 3015 | echo "configure: failed program was:" >&5 |
| 3016 | cat conftest.$ac_ext >&5 |
| 3017 | rm -rf conftest* |
| 3018 | eval "ac_cv_header_$ac_safe=no" |
| 3019 | fi |
| 3020 | rm -f conftest* |
| 3021 | fi |
| 3022 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3023 | echo "$ac_t""yes" 1>&6 |
| 3024 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 |
| 3025 | echo "configure:3026: checking for gettext in libc" >&5 |
| 3026 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then |
| 3027 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3028 | else |
| 3029 | cat > conftest.$ac_ext <<EOF |
| 3030 | #line 3031 "configure" |
| 3031 | #include "confdefs.h" |
| 3032 | #include <libintl.h> |
| 3033 | int main() { |
| 3034 | return (int) gettext ("") |
| 3035 | ; return 0; } |
| 3036 | EOF |
| 3037 | if { (eval echo configure:3038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 3038 | rm -rf conftest* |
| 3039 | gt_cv_func_gettext_libc=yes |
| 3040 | else |
| 3041 | echo "configure: failed program was:" >&5 |
| 3042 | cat conftest.$ac_ext >&5 |
| 3043 | rm -rf conftest* |
| 3044 | gt_cv_func_gettext_libc=no |
| 3045 | fi |
| 3046 | rm -f conftest* |
| 3047 | fi |
| 3048 | |
| 3049 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 |
| 3050 | |
| 3051 | if test "$gt_cv_func_gettext_libc" != "yes"; then |
| 3052 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 |
| 3053 | echo "configure:3054: checking for bindtextdomain in -lintl" >&5 |
| 3054 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` |
| 3055 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3056 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3057 | else |
| 3058 | ac_save_LIBS="$LIBS" |
| 3059 | LIBS="-lintl $LIBS" |
| 3060 | cat > conftest.$ac_ext <<EOF |
| 3061 | #line 3062 "configure" |
| 3062 | #include "confdefs.h" |
| 3063 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3064 | /* We use char because int might match the return type of a gcc2 |
| 3065 | builtin and then its argument prototype would still apply. */ |
| 3066 | char bindtextdomain(); |
| 3067 | |
| 3068 | int main() { |
| 3069 | bindtextdomain() |
| 3070 | ; return 0; } |
| 3071 | EOF |
| 3072 | if { (eval echo configure:3073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 3073 | rm -rf conftest* |
| 3074 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3075 | else |
| 3076 | echo "configure: failed program was:" >&5 |
| 3077 | cat conftest.$ac_ext >&5 |
| 3078 | rm -rf conftest* |
| 3079 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3080 | fi |
| 3081 | rm -f conftest* |
| 3082 | LIBS="$ac_save_LIBS" |
| 3083 | |
| 3084 | fi |
| 3085 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3086 | echo "$ac_t""yes" 1>&6 |
| 3087 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 |
| 3088 | echo "configure:3089: checking for gettext in libintl" >&5 |
| 3089 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then |
| 3090 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3091 | else |
| 3092 | cat > conftest.$ac_ext <<EOF |
| 3093 | #line 3094 "configure" |
| 3094 | #include "confdefs.h" |
| 3095 | |
| 3096 | int main() { |
| 3097 | return (int) gettext ("") |
| 3098 | ; return 0; } |
| 3099 | EOF |
| 3100 | if { (eval echo configure:3101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 3101 | rm -rf conftest* |
| 3102 | gt_cv_func_gettext_libintl=yes |
| 3103 | else |
| 3104 | echo "configure: failed program was:" >&5 |
| 3105 | cat conftest.$ac_ext >&5 |
| 3106 | rm -rf conftest* |
| 3107 | gt_cv_func_gettext_libintl=no |
| 3108 | fi |
| 3109 | rm -f conftest* |
| 3110 | fi |
| 3111 | |
| 3112 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 |
| 3113 | else |
| 3114 | echo "$ac_t""no" 1>&6 |
| 3115 | fi |
| 3116 | |
| 3117 | fi |
| 3118 | |
| 3119 | if test "$gt_cv_func_gettext_libc" = "yes" \ |
| 3120 | || test "$gt_cv_func_gettext_libintl" = "yes"; then |
| 3121 | cat >> confdefs.h <<\EOF |
| 3122 | #define HAVE_GETTEXT 1 |
| 3123 | EOF |
| 3124 | |
| 3125 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 3126 | set dummy msgfmt; ac_word=$2 |
| 3127 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 3128 | echo "configure:3129: checking for $ac_word" >&5 |
| 3129 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
| 3130 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3131 | else |
| 3132 | case "$MSGFMT" in |
| 3133 | /*) |
| 3134 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 3135 | ;; |
| 3136 | *) |
| 3137 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 3138 | for ac_dir in $PATH; do |
| 3139 | test -z "$ac_dir" && ac_dir=. |
| 3140 | if test -f $ac_dir/$ac_word; then |
| 3141 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then |
| 3142 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" |
| 3143 | break |
| 3144 | fi |
| 3145 | fi |
| 3146 | done |
| 3147 | IFS="$ac_save_ifs" |
| 3148 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" |
| 3149 | ;; |
| 3150 | esac |
| 3151 | fi |
| 3152 | MSGFMT="$ac_cv_path_MSGFMT" |
| 3153 | if test -n "$MSGFMT"; then |
| 3154 | echo "$ac_t""$MSGFMT" 1>&6 |
| 3155 | else |
| 3156 | echo "$ac_t""no" 1>&6 |
| 3157 | fi |
| 3158 | if test "$MSGFMT" != "no"; then |
| 3159 | for ac_func in dcgettext |
| 3160 | do |
| 3161 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 3162 | echo "configure:3163: checking for $ac_func" >&5 |
| 3163 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 3164 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3165 | else |
| 3166 | cat > conftest.$ac_ext <<EOF |
| 3167 | #line 3168 "configure" |
| 3168 | #include "confdefs.h" |
| 3169 | /* System header to define __stub macros and hopefully few prototypes, |
| 3170 | which can conflict with char $ac_func(); below. */ |
| 3171 | #include <assert.h> |
| 3172 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3173 | /* We use char because int might match the return type of a gcc2 |
| 3174 | builtin and then its argument prototype would still apply. */ |
| 3175 | char $ac_func(); |
| 3176 | |
| 3177 | int main() { |
| 3178 | |
| 3179 | /* The GNU C library defines this for functions which it implements |
| 3180 | to always fail with ENOSYS. Some functions are actually named |
| 3181 | something starting with __ and the normal name is an alias. */ |
| 3182 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3183 | choke me |
| 3184 | #else |
| 3185 | $ac_func(); |
| 3186 | #endif |
| 3187 | |
| 3188 | ; return 0; } |
| 3189 | EOF |
| 3190 | if { (eval echo configure:3191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 3191 | rm -rf conftest* |
| 3192 | eval "ac_cv_func_$ac_func=yes" |
| 3193 | else |
| 3194 | echo "configure: failed program was:" >&5 |
| 3195 | cat conftest.$ac_ext >&5 |
| 3196 | rm -rf conftest* |
| 3197 | eval "ac_cv_func_$ac_func=no" |
| 3198 | fi |
| 3199 | rm -f conftest* |
| 3200 | fi |
| 3201 | |
| 3202 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 3203 | echo "$ac_t""yes" 1>&6 |
| 3204 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3205 | cat >> confdefs.h <<EOF |
| 3206 | #define $ac_tr_func 1 |
| 3207 | EOF |
| 3208 | |
| 3209 | else |
| 3210 | echo "$ac_t""no" 1>&6 |
| 3211 | fi |
| 3212 | done |
| 3213 | |
| 3214 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 3215 | set dummy gmsgfmt; ac_word=$2 |
| 3216 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 3217 | echo "configure:3218: checking for $ac_word" >&5 |
| 3218 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
| 3219 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3220 | else |
| 3221 | case "$GMSGFMT" in |
| 3222 | /*) |
| 3223 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 3224 | ;; |
| 3225 | ?:/*) |
| 3226 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. |
| 3227 | ;; |
| 3228 | *) |
| 3229 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 3230 | for ac_dir in $PATH; do |
| 3231 | test -z "$ac_dir" && ac_dir=. |
| 3232 | if test -f $ac_dir/$ac_word; then |
| 3233 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" |
| 3234 | break |
| 3235 | fi |
| 3236 | done |
| 3237 | IFS="$ac_save_ifs" |
| 3238 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 3239 | ;; |
| 3240 | esac |
| 3241 | fi |
| 3242 | GMSGFMT="$ac_cv_path_GMSGFMT" |
| 3243 | if test -n "$GMSGFMT"; then |
| 3244 | echo "$ac_t""$GMSGFMT" 1>&6 |
| 3245 | else |
| 3246 | echo "$ac_t""no" 1>&6 |
| 3247 | fi |
| 3248 | |
| 3249 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 3250 | set dummy xgettext; ac_word=$2 |
| 3251 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 3252 | echo "configure:3253: checking for $ac_word" >&5 |
| 3253 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
| 3254 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3255 | else |
| 3256 | case "$XGETTEXT" in |
| 3257 | /*) |
| 3258 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 3259 | ;; |
| 3260 | *) |
| 3261 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 3262 | for ac_dir in $PATH; do |
| 3263 | test -z "$ac_dir" && ac_dir=. |
| 3264 | if test -f $ac_dir/$ac_word; then |
| 3265 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then |
| 3266 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" |
| 3267 | break |
| 3268 | fi |
| 3269 | fi |
| 3270 | done |
| 3271 | IFS="$ac_save_ifs" |
| 3272 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 3273 | ;; |
| 3274 | esac |
| 3275 | fi |
| 3276 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 3277 | if test -n "$XGETTEXT"; then |
| 3278 | echo "$ac_t""$XGETTEXT" 1>&6 |
| 3279 | else |
| 3280 | echo "$ac_t""no" 1>&6 |
| 3281 | fi |
| 3282 | |
| 3283 | cat > conftest.$ac_ext <<EOF |
| 3284 | #line 3285 "configure" |
| 3285 | #include "confdefs.h" |
| 3286 | |
| 3287 | int main() { |
| 3288 | extern int _nl_msg_cat_cntr; |
| 3289 | return _nl_msg_cat_cntr |
| 3290 | ; return 0; } |
| 3291 | EOF |
| 3292 | if { (eval echo configure:3293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 3293 | rm -rf conftest* |
| 3294 | CATOBJEXT=.gmo |
| 3295 | DATADIRNAME=share |
| 3296 | else |
| 3297 | echo "configure: failed program was:" >&5 |
| 3298 | cat conftest.$ac_ext >&5 |
| 3299 | rm -rf conftest* |
| 3300 | CATOBJEXT=.mo |
| 3301 | DATADIRNAME=lib |
| 3302 | fi |
| 3303 | rm -f conftest* |
| 3304 | INSTOBJEXT=.mo |
| 3305 | fi |
| 3306 | fi |
| 3307 | |
| 3308 | else |
| 3309 | echo "$ac_t""no" 1>&6 |
| 3310 | fi |
| 3311 | |
| 3312 | |
| 3313 | |
| 3314 | if test "$CATOBJEXT" = "NONE"; then |
| 3315 | nls_cv_use_gnu_gettext=yes |
| 3316 | fi |
| 3317 | fi |
| 3318 | |
| 3319 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 3320 | INTLOBJS="\$(GETTOBJS)" |
| 3321 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 3322 | set dummy msgfmt; ac_word=$2 |
| 3323 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 3324 | echo "configure:3325: checking for $ac_word" >&5 |
| 3325 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
| 3326 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3327 | else |
| 3328 | case "$MSGFMT" in |
| 3329 | /*) |
| 3330 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 3331 | ;; |
| 3332 | *) |
| 3333 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 3334 | for ac_dir in $PATH; do |
| 3335 | test -z "$ac_dir" && ac_dir=. |
| 3336 | if test -f $ac_dir/$ac_word; then |
| 3337 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then |
| 3338 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" |
| 3339 | break |
| 3340 | fi |
| 3341 | fi |
| 3342 | done |
| 3343 | IFS="$ac_save_ifs" |
| 3344 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" |
| 3345 | ;; |
| 3346 | esac |
| 3347 | fi |
| 3348 | MSGFMT="$ac_cv_path_MSGFMT" |
| 3349 | if test -n "$MSGFMT"; then |
| 3350 | echo "$ac_t""$MSGFMT" 1>&6 |
| 3351 | else |
| 3352 | echo "$ac_t""no" 1>&6 |
| 3353 | fi |
| 3354 | |
| 3355 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 3356 | set dummy gmsgfmt; ac_word=$2 |
| 3357 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 3358 | echo "configure:3359: checking for $ac_word" >&5 |
| 3359 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
| 3360 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3361 | else |
| 3362 | case "$GMSGFMT" in |
| 3363 | /*) |
| 3364 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 3365 | ;; |
| 3366 | ?:/*) |
| 3367 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. |
| 3368 | ;; |
| 3369 | *) |
| 3370 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 3371 | for ac_dir in $PATH; do |
| 3372 | test -z "$ac_dir" && ac_dir=. |
| 3373 | if test -f $ac_dir/$ac_word; then |
| 3374 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" |
| 3375 | break |
| 3376 | fi |
| 3377 | done |
| 3378 | IFS="$ac_save_ifs" |
| 3379 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 3380 | ;; |
| 3381 | esac |
| 3382 | fi |
| 3383 | GMSGFMT="$ac_cv_path_GMSGFMT" |
| 3384 | if test -n "$GMSGFMT"; then |
| 3385 | echo "$ac_t""$GMSGFMT" 1>&6 |
| 3386 | else |
| 3387 | echo "$ac_t""no" 1>&6 |
| 3388 | fi |
| 3389 | |
| 3390 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 3391 | set dummy xgettext; ac_word=$2 |
| 3392 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 3393 | echo "configure:3394: checking for $ac_word" >&5 |
| 3394 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
| 3395 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3396 | else |
| 3397 | case "$XGETTEXT" in |
| 3398 | /*) |
| 3399 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 3400 | ;; |
| 3401 | *) |
| 3402 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 3403 | for ac_dir in $PATH; do |
| 3404 | test -z "$ac_dir" && ac_dir=. |
| 3405 | if test -f $ac_dir/$ac_word; then |
| 3406 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then |
| 3407 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" |
| 3408 | break |
| 3409 | fi |
| 3410 | fi |
| 3411 | done |
| 3412 | IFS="$ac_save_ifs" |
| 3413 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 3414 | ;; |
| 3415 | esac |
| 3416 | fi |
| 3417 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 3418 | if test -n "$XGETTEXT"; then |
| 3419 | echo "$ac_t""$XGETTEXT" 1>&6 |
| 3420 | else |
| 3421 | echo "$ac_t""no" 1>&6 |
| 3422 | fi |
| 3423 | |
| 3424 | |
| 3425 | USE_INCLUDED_LIBINTL=yes |
| 3426 | CATOBJEXT=.gmo |
| 3427 | INSTOBJEXT=.mo |
| 3428 | DATADIRNAME=share |
| 3429 | INTLDEPS='$(top_builddir)/../intl/libintl.a' |
| 3430 | INTLLIBS=$INTLDEPS |
| 3431 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` |
| 3432 | nls_cv_header_intl=libintl.h |
| 3433 | nls_cv_header_libgt=libgettext.h |
| 3434 | fi |
| 3435 | |
| 3436 | if test "$XGETTEXT" != ":"; then |
| 3437 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then |
| 3438 | : ; |
| 3439 | else |
| 3440 | echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6 |
| 3441 | XGETTEXT=":" |
| 3442 | fi |
| 3443 | fi |
| 3444 | |
| 3445 | # We need to process the po/ directory. |
| 3446 | POSUB=po |
| 3447 | else |
| 3448 | DATADIRNAME=share |
| 3449 | nls_cv_header_intl=libintl.h |
| 3450 | nls_cv_header_libgt=libgettext.h |
| 3451 | fi |
| 3452 | |
| 3453 | # If this is used in GNU gettext we have to set USE_NLS to `yes' |
| 3454 | # because some of the sources are only built for this goal. |
| 3455 | if test "$PACKAGE" = gettext; then |
| 3456 | USE_NLS=yes |
| 3457 | USE_INCLUDED_LIBINTL=yes |
| 3458 | fi |
| 3459 | |
| 3460 | for lang in $ALL_LINGUAS; do |
| 3461 | GMOFILES="$GMOFILES $lang.gmo" |
| 3462 | POFILES="$POFILES $lang.po" |
| 3463 | done |
| 3464 | |
| 3465 | |
| 3466 | |
| 3467 | |
| 3468 | |
| 3469 | |
| 3470 | |
| 3471 | |
| 3472 | |
| 3473 | |
| 3474 | |
| 3475 | |
| 3476 | |
| 3477 | |
| 3478 | if test "x$CATOBJEXT" != "x"; then |
| 3479 | if test "x$ALL_LINGUAS" = "x"; then |
| 3480 | LINGUAS= |
| 3481 | else |
| 3482 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 |
| 3483 | echo "configure:3484: checking for catalogs to be installed" >&5 |
| 3484 | NEW_LINGUAS= |
| 3485 | for lang in ${LINGUAS=$ALL_LINGUAS}; do |
| 3486 | case "$ALL_LINGUAS" in |
| 3487 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; |
| 3488 | esac |
| 3489 | done |
| 3490 | LINGUAS=$NEW_LINGUAS |
| 3491 | echo "$ac_t""$LINGUAS" 1>&6 |
| 3492 | fi |
| 3493 | |
| 3494 | if test -n "$LINGUAS"; then |
| 3495 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done |
| 3496 | fi |
| 3497 | fi |
| 3498 | |
| 3499 | if test $ac_cv_header_locale_h = yes; then |
| 3500 | INCLUDE_LOCALE_H="#include <locale.h>" |
| 3501 | else |
| 3502 | INCLUDE_LOCALE_H="\ |
| 3503 | /* The system does not provide the header <locale.h>. Take care yourself. */" |
| 3504 | fi |
| 3505 | |
| 3506 | |
| 3507 | if test -f $srcdir/po2tbl.sed.in; then |
| 3508 | if test "$CATOBJEXT" = ".cat"; then |
| 3509 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` |
| 3510 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 |
| 3511 | echo "configure:3512: checking for linux/version.h" >&5 |
| 3512 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 3513 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3514 | else |
| 3515 | cat > conftest.$ac_ext <<EOF |
| 3516 | #line 3517 "configure" |
| 3517 | #include "confdefs.h" |
| 3518 | #include <linux/version.h> |
| 3519 | EOF |
| 3520 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 3521 | { (eval echo configure:3522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 3522 | ac_err=`grep -v '^ *+' conftest.out` |
| 3523 | if test -z "$ac_err"; then |
| 3524 | rm -rf conftest* |
| 3525 | eval "ac_cv_header_$ac_safe=yes" |
| 3526 | else |
| 3527 | echo "$ac_err" >&5 |
| 3528 | echo "configure: failed program was:" >&5 |
| 3529 | cat conftest.$ac_ext >&5 |
| 3530 | rm -rf conftest* |
| 3531 | eval "ac_cv_header_$ac_safe=no" |
| 3532 | fi |
| 3533 | rm -f conftest* |
| 3534 | fi |
| 3535 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3536 | echo "$ac_t""yes" 1>&6 |
| 3537 | msgformat=linux |
| 3538 | else |
| 3539 | echo "$ac_t""no" 1>&6 |
| 3540 | msgformat=xopen |
| 3541 | fi |
| 3542 | |
| 3543 | |
| 3544 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed |
| 3545 | fi |
| 3546 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ |
| 3547 | $srcdir/po2tbl.sed.in > po2tbl.sed |
| 3548 | fi |
| 3549 | |
| 3550 | if test "$PACKAGE" = "gettext"; then |
| 3551 | GT_NO="#NO#" |
| 3552 | GT_YES= |
| 3553 | else |
| 3554 | GT_NO= |
| 3555 | GT_YES="#YES#" |
| 3556 | fi |
| 3557 | |
| 3558 | |
| 3559 | |
| 3560 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" |
| 3561 | |
| 3562 | |
| 3563 | l= |
| 3564 | |
| 3565 | |
| 3566 | if test -d $srcdir/po; then |
| 3567 | test -d po || mkdir po |
| 3568 | if test "x$srcdir" != "x."; then |
| 3569 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then |
| 3570 | posrcprefix="$srcdir/" |
| 3571 | else |
| 3572 | posrcprefix="../$srcdir/" |
| 3573 | fi |
| 3574 | else |
| 3575 | posrcprefix="../" |
| 3576 | fi |
| 3577 | rm -f po/POTFILES |
| 3578 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ |
| 3579 | < $srcdir/po/POTFILES.in > po/POTFILES |
| 3580 | fi |
| 3581 | |
| 3582 | |
| 3583 | . ${srcdir}/../bfd/configure.host |
| 3584 | |
| 3585 | |
| 3586 | |
| 3587 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
| 3588 | |
| 3589 | |
| 3590 | for ac_hdr in string.h strings.h stdlib.h |
| 3591 | do |
| 3592 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 3593 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 3594 | echo "configure:3595: checking for $ac_hdr" >&5 |
| 3595 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 3596 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3597 | else |
| 3598 | cat > conftest.$ac_ext <<EOF |
| 3599 | #line 3600 "configure" |
| 3600 | #include "confdefs.h" |
| 3601 | #include <$ac_hdr> |
| 3602 | EOF |
| 3603 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 3604 | { (eval echo configure:3605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 3605 | ac_err=`grep -v '^ *+' conftest.out` |
| 3606 | if test -z "$ac_err"; then |
| 3607 | rm -rf conftest* |
| 3608 | eval "ac_cv_header_$ac_safe=yes" |
| 3609 | else |
| 3610 | echo "$ac_err" >&5 |
| 3611 | echo "configure: failed program was:" >&5 |
| 3612 | cat conftest.$ac_ext >&5 |
| 3613 | rm -rf conftest* |
| 3614 | eval "ac_cv_header_$ac_safe=no" |
| 3615 | fi |
| 3616 | rm -f conftest* |
| 3617 | fi |
| 3618 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3619 | echo "$ac_t""yes" 1>&6 |
| 3620 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 3621 | cat >> confdefs.h <<EOF |
| 3622 | #define $ac_tr_hdr 1 |
| 3623 | EOF |
| 3624 | |
| 3625 | else |
| 3626 | echo "$ac_t""no" 1>&6 |
| 3627 | fi |
| 3628 | done |
| 3629 | |
| 3630 | |
| 3631 | # start-sanitize-cygnus |
| 3632 | use_cgen=no |
| 3633 | cgen_maint=no |
| 3634 | # Having --enable-maintainer-mode take arguments is another way to go. |
| 3635 | # Check whether --enable-cgen-maint or --disable-cgen-maint was given. |
| 3636 | if test "${enable_cgen_maint+set}" = set; then |
| 3637 | enableval="$enable_cgen_maint" |
| 3638 | case "${enableval}" in |
| 3639 | yes) cgen_maint=yes ;; |
| 3640 | no) cgen_maint=no ;; |
| 3641 | *) { echo "configure: error: bad value ${enableval} for opcodes cgen-maint option" 1>&2; exit 1; } ;; |
| 3642 | esac |
| 3643 | fi |
| 3644 | |
| 3645 | |
| 3646 | if test x${cgen_maint} = xyes; then |
| 3647 | CGEN_MAINT_TRUE= |
| 3648 | CGEN_MAINT_FALSE='#' |
| 3649 | else |
| 3650 | CGEN_MAINT_TRUE='#' |
| 3651 | CGEN_MAINT_FALSE= |
| 3652 | fi |
| 3653 | if test "x${cgen_maint}" = xyes ; then |
| 3654 | for targ in $target $canon_targets |
| 3655 | do |
| 3656 | case $targ in |
| 3657 | all) use_cgen=yes ;; |
| 3658 | m32r-*-*) use_cgen=yes ;; |
| 3659 | esac |
| 3660 | done |
| 3661 | fi |
| 3662 | if test $use_cgen = yes ; then |
| 3663 | # Extract the first word of "guile", so it can be a program name with args. |
| 3664 | set dummy guile; ac_word=$2 |
| 3665 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 3666 | echo "configure:3667: checking for $ac_word" >&5 |
| 3667 | if eval "test \"`echo '$''{'ac_cv_prog_SCHEME'+set}'`\" = set"; then |
| 3668 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3669 | else |
| 3670 | if test -n "$SCHEME"; then |
| 3671 | ac_cv_prog_SCHEME="$SCHEME" # Let the user override the test. |
| 3672 | else |
| 3673 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 3674 | for ac_dir in $PATH; do |
| 3675 | test -z "$ac_dir" && ac_dir=. |
| 3676 | if test -f $ac_dir/$ac_word; then |
| 3677 | ac_cv_prog_SCHEME="guile" |
| 3678 | break |
| 3679 | fi |
| 3680 | done |
| 3681 | IFS="$ac_save_ifs" |
| 3682 | test -z "$ac_cv_prog_SCHEME" && ac_cv_prog_SCHEME="guile" |
| 3683 | fi |
| 3684 | fi |
| 3685 | SCHEME="$ac_cv_prog_SCHEME" |
| 3686 | if test -n "$SCHEME"; then |
| 3687 | echo "$ac_t""$SCHEME" 1>&6 |
| 3688 | else |
| 3689 | echo "$ac_t""no" 1>&6 |
| 3690 | fi |
| 3691 | |
| 3692 | fi |
| 3693 | # end-sanitize-cygnus |
| 3694 | |
| 3695 | # Horrible hacks to build DLLs on Windows. |
| 3696 | WIN32LDFLAGS= |
| 3697 | WIN32LIBADD= |
| 3698 | case "${host}" in |
| 3699 | *-*-cygwin32*) |
| 3700 | if test "$enable_shared" = "yes"; then |
| 3701 | WIN32LDFLAGS="-no-undefined" |
| 3702 | WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin" |
| 3703 | fi |
| 3704 | ;; |
| 3705 | esac |
| 3706 | |
| 3707 | |
| 3708 | |
| 3709 | # target-specific stuff: |
| 3710 | |
| 3711 | # Canonicalize the secondary target names. |
| 3712 | if test -n "$enable_targets" ; then |
| 3713 | for targ in `echo $enable_targets | sed 's/,/ /g'` |
| 3714 | do |
| 3715 | result=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null` |
| 3716 | if test -n "$result" ; then |
| 3717 | canon_targets="$canon_targets $result" |
| 3718 | else |
| 3719 | # Allow targets that config.sub doesn't recognize, like "all". |
| 3720 | canon_targets="$canon_targets $targ" |
| 3721 | fi |
| 3722 | done |
| 3723 | fi |
| 3724 | |
| 3725 | all_targets=false |
| 3726 | selarchs= |
| 3727 | for targ in $target $canon_targets |
| 3728 | do |
| 3729 | if test "x$targ" = "xall" ; then |
| 3730 | all_targets=true |
| 3731 | else |
| 3732 | . $srcdir/../bfd/config.bfd |
| 3733 | selarchs="$selarchs $targ_archs" |
| 3734 | fi |
| 3735 | done |
| 3736 | |
| 3737 | # Utility var, documents generic cgen support files. |
| 3738 | |
| 3739 | cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo" |
| 3740 | |
| 3741 | # We don't do any links based on the target system, just makefile config. |
| 3742 | |
| 3743 | if test x${all_targets} = xfalse ; then |
| 3744 | |
| 3745 | # Target architecture .o files. |
| 3746 | ta= |
| 3747 | |
| 3748 | for arch in $selarchs |
| 3749 | do |
| 3750 | ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g` |
| 3751 | archdefs="$archdefs -DARCH_$ad" |
| 3752 | case "$arch" in |
| 3753 | bfd_a29k_arch) ta="$ta a29k-dis.lo" ;; |
| 3754 | bfd_alliant_arch) ;; |
| 3755 | bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;; |
| 3756 | bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo" ;; |
| 3757 | bfd_arm_arch) ta="$ta arm-dis.lo" ;; |
| 3758 | bfd_convex_arch) ;; |
| 3759 | bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;; |
| 3760 | # start-sanitize-d30v |
| 3761 | bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;; |
| 3762 | # end-sanitize-d30v |
| 3763 | bfd_h8300_arch) ta="$ta h8300-dis.lo" ;; |
| 3764 | bfd_h8500_arch) ta="$ta h8500-dis.lo" ;; |
| 3765 | bfd_hppa_arch) ta="$ta hppa-dis.lo" ;; |
| 3766 | bfd_i386_arch) ta="$ta i386-dis.lo" ;; |
| 3767 | bfd_i860_arch) ;; |
| 3768 | bfd_i960_arch) ta="$ta i960-dis.lo" ;; |
| 3769 | bfd_m32r_arch) ta="$ta $cgen_files m32r-opc.lo m32r-asm.lo m32r-dis.lo" ;; |
| 3770 | bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;; |
| 3771 | bfd_m88k_arch) ta="$ta m88k-dis.lo" ;; |
| 3772 | bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;; |
| 3773 | bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;; |
| 3774 | bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;; |
| 3775 | bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;; |
| 3776 | bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; |
| 3777 | bfd_pyramid_arch) ;; |
| 3778 | bfd_romp_arch) ;; |
| 3779 | bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; |
| 3780 | bfd_sh_arch) ta="$ta sh-dis.lo" ;; |
| 3781 | bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;; |
| 3782 | bfd_tahoe_arch) ;; |
| 3783 | bfd_tic30_arch) ta="$ta tic30-dis.lo" ;; |
| 3784 | # start-sanitize-tic80 |
| 3785 | bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;; |
| 3786 | # end-sanitize-tic80 |
| 3787 | # start-sanitize-sky |
| 3788 | bfd_dvp_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo dvp-dis.lo dvp-opc.lo" ;; |
| 3789 | # end-sanitize-sky |
| 3790 | bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; |
| 3791 | # start-sanitize-v850e |
| 3792 | bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; |
| 3793 | bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; |
| 3794 | # end-sanitize-v850e |
| 3795 | bfd_vax_arch) ta="$ta vax-dis.lo" ;; |
| 3796 | bfd_w65_arch) ta="$ta w65-dis.lo" ;; |
| 3797 | bfd_we32k_arch) ;; |
| 3798 | bfd_z8k_arch) ta="$ta z8k-dis.lo" ;; |
| 3799 | |
| 3800 | "") ;; |
| 3801 | *) { echo "configure: error: *** unknown target architecture $arch" 1>&2; exit 1; } ;; |
| 3802 | esac |
| 3803 | done |
| 3804 | |
| 3805 | # Weed out duplicate .o files. |
| 3806 | f="" |
| 3807 | for i in $ta ; do |
| 3808 | case " $f " in |
| 3809 | *" $i "*) ;; |
| 3810 | *) f="$f $i" ;; |
| 3811 | esac |
| 3812 | done |
| 3813 | ta="$f" |
| 3814 | |
| 3815 | # And duplicate -D flags. |
| 3816 | f="" |
| 3817 | for i in $archdefs ; do |
| 3818 | case " $f " in |
| 3819 | *" $i "*) ;; |
| 3820 | *) f="$f $i" ;; |
| 3821 | esac |
| 3822 | done |
| 3823 | archdefs="$f" |
| 3824 | |
| 3825 | BFD_MACHINES="$ta" |
| 3826 | |
| 3827 | else # all_targets is true |
| 3828 | archdefs=-DARCH_all |
| 3829 | BFD_MACHINES='$(ALL_MACHINES)' |
| 3830 | fi |
| 3831 | |
| 3832 | |
| 3833 | |
| 3834 | |
| 3835 | trap '' 1 2 15 |
| 3836 | cat > confcache <<\EOF |
| 3837 | # This file is a shell script that caches the results of configure |
| 3838 | # tests run on this system so they can be shared between configure |
| 3839 | # scripts and configure runs. It is not useful on other systems. |
| 3840 | # If it contains results you don't want to keep, you may remove or edit it. |
| 3841 | # |
| 3842 | # By default, configure uses ./config.cache as the cache file, |
| 3843 | # creating it if it does not exist already. You can give configure |
| 3844 | # the --cache-file=FILE option to use a different cache file; that is |
| 3845 | # what configure does when it calls configure scripts in |
| 3846 | # subdirectories, so they share the cache. |
| 3847 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 3848 | # config.status only pays attention to the cache file if you give it the |
| 3849 | # --recheck option to rerun configure. |
| 3850 | # |
| 3851 | EOF |
| 3852 | # The following way of writing the cache mishandles newlines in values, |
| 3853 | # but we know of no workaround that is simple, portable, and efficient. |
| 3854 | # So, don't put newlines in cache variables' values. |
| 3855 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 3856 | # and sets the high bit in the cache file unless we assign to the vars. |
| 3857 | (set) 2>&1 | |
| 3858 | case `(ac_space=' '; set) 2>&1 | grep ac_space` in |
| 3859 | *ac_space=\ *) |
| 3860 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 3861 | # turns \\\\ into \\, and sed turns \\ into \). |
| 3862 | sed -n \ |
| 3863 | -e "s/'/'\\\\''/g" \ |
| 3864 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 3865 | ;; |
| 3866 | *) |
| 3867 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 3868 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 3869 | ;; |
| 3870 | esac >> confcache |
| 3871 | if cmp -s $cache_file confcache; then |
| 3872 | : |
| 3873 | else |
| 3874 | if test -w $cache_file; then |
| 3875 | echo "updating cache $cache_file" |
| 3876 | cat confcache > $cache_file |
| 3877 | else |
| 3878 | echo "not updating unwritable cache $cache_file" |
| 3879 | fi |
| 3880 | fi |
| 3881 | rm -f confcache |
| 3882 | |
| 3883 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 3884 | |
| 3885 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 3886 | # Let make expand exec_prefix. |
| 3887 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 3888 | |
| 3889 | # Any assignment to VPATH causes Sun make to only execute |
| 3890 | # the first set of double-colon rules, so remove it if not needed. |
| 3891 | # If there is a colon in the path, we need to keep it. |
| 3892 | if test "x$srcdir" = x.; then |
| 3893 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 3894 | fi |
| 3895 | |
| 3896 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
| 3897 | |
| 3898 | DEFS=-DHAVE_CONFIG_H |
| 3899 | |
| 3900 | # Without the "./", some shells look in PATH for config.status. |
| 3901 | : ${CONFIG_STATUS=./config.status} |
| 3902 | |
| 3903 | echo creating $CONFIG_STATUS |
| 3904 | rm -f $CONFIG_STATUS |
| 3905 | cat > $CONFIG_STATUS <<EOF |
| 3906 | #! /bin/sh |
| 3907 | # Generated automatically by configure. |
| 3908 | # Run this file to recreate the current configuration. |
| 3909 | # This directory was configured as follows, |
| 3910 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 3911 | # |
| 3912 | # $0 $ac_configure_args |
| 3913 | # |
| 3914 | # Compiler output produced by configure, useful for debugging |
| 3915 | # configure, is in ./config.log if it exists. |
| 3916 | |
| 3917 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
| 3918 | for ac_option |
| 3919 | do |
| 3920 | case "\$ac_option" in |
| 3921 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 3922 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 3923 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
| 3924 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
| 3925 | echo "$CONFIG_STATUS generated by autoconf version 2.12.1" |
| 3926 | exit 0 ;; |
| 3927 | -help | --help | --hel | --he | --h) |
| 3928 | echo "\$ac_cs_usage"; exit 0 ;; |
| 3929 | *) echo "\$ac_cs_usage"; exit 1 ;; |
| 3930 | esac |
| 3931 | done |
| 3932 | |
| 3933 | ac_given_srcdir=$srcdir |
| 3934 | ac_given_INSTALL="$INSTALL" |
| 3935 | |
| 3936 | trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
| 3937 | EOF |
| 3938 | cat >> $CONFIG_STATUS <<EOF |
| 3939 | |
| 3940 | # Protect against being on the right side of a sed subst in config.status. |
| 3941 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 3942 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
| 3943 | $ac_vpsub |
| 3944 | $extrasub |
| 3945 | s%@SHELL@%$SHELL%g |
| 3946 | s%@CFLAGS@%$CFLAGS%g |
| 3947 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 3948 | s%@CXXFLAGS@%$CXXFLAGS%g |
| 3949 | s%@DEFS@%$DEFS%g |
| 3950 | s%@LDFLAGS@%$LDFLAGS%g |
| 3951 | s%@LIBS@%$LIBS%g |
| 3952 | s%@exec_prefix@%$exec_prefix%g |
| 3953 | s%@prefix@%$prefix%g |
| 3954 | s%@program_transform_name@%$program_transform_name%g |
| 3955 | s%@bindir@%$bindir%g |
| 3956 | s%@sbindir@%$sbindir%g |
| 3957 | s%@libexecdir@%$libexecdir%g |
| 3958 | s%@datadir@%$datadir%g |
| 3959 | s%@sysconfdir@%$sysconfdir%g |
| 3960 | s%@sharedstatedir@%$sharedstatedir%g |
| 3961 | s%@localstatedir@%$localstatedir%g |
| 3962 | s%@libdir@%$libdir%g |
| 3963 | s%@includedir@%$includedir%g |
| 3964 | s%@oldincludedir@%$oldincludedir%g |
| 3965 | s%@infodir@%$infodir%g |
| 3966 | s%@mandir@%$mandir%g |
| 3967 | s%@host@%$host%g |
| 3968 | s%@host_alias@%$host_alias%g |
| 3969 | s%@host_cpu@%$host_cpu%g |
| 3970 | s%@host_vendor@%$host_vendor%g |
| 3971 | s%@host_os@%$host_os%g |
| 3972 | s%@target@%$target%g |
| 3973 | s%@target_alias@%$target_alias%g |
| 3974 | s%@target_cpu@%$target_cpu%g |
| 3975 | s%@target_vendor@%$target_vendor%g |
| 3976 | s%@target_os@%$target_os%g |
| 3977 | s%@build@%$build%g |
| 3978 | s%@build_alias@%$build_alias%g |
| 3979 | s%@build_cpu@%$build_cpu%g |
| 3980 | s%@build_vendor@%$build_vendor%g |
| 3981 | s%@build_os@%$build_os%g |
| 3982 | s%@CC@%$CC%g |
| 3983 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
| 3984 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
| 3985 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
| 3986 | s%@PACKAGE@%$PACKAGE%g |
| 3987 | s%@VERSION@%$VERSION%g |
| 3988 | s%@ACLOCAL@%$ACLOCAL%g |
| 3989 | s%@AUTOCONF@%$AUTOCONF%g |
| 3990 | s%@AUTOMAKE@%$AUTOMAKE%g |
| 3991 | s%@AUTOHEADER@%$AUTOHEADER%g |
| 3992 | s%@MAKEINFO@%$MAKEINFO%g |
| 3993 | s%@SET_MAKE@%$SET_MAKE%g |
| 3994 | s%@AR@%$AR%g |
| 3995 | s%@RANLIB@%$RANLIB%g |
| 3996 | s%@LD@%$LD%g |
| 3997 | s%@NM@%$NM%g |
| 3998 | s%@LN_S@%$LN_S%g |
| 3999 | s%@LIBTOOL@%$LIBTOOL%g |
| 4000 | s%@DLLTOOL@%$DLLTOOL%g |
| 4001 | s%@AS@%$AS%g |
| 4002 | s%@MAINT@%$MAINT%g |
| 4003 | s%@EXEEXT@%$EXEEXT%g |
| 4004 | s%@CPP@%$CPP%g |
| 4005 | s%@ALLOCA@%$ALLOCA%g |
| 4006 | s%@USE_NLS@%$USE_NLS%g |
| 4007 | s%@MSGFMT@%$MSGFMT%g |
| 4008 | s%@GMSGFMT@%$GMSGFMT%g |
| 4009 | s%@XGETTEXT@%$XGETTEXT%g |
| 4010 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g |
| 4011 | s%@CATALOGS@%$CATALOGS%g |
| 4012 | s%@CATOBJEXT@%$CATOBJEXT%g |
| 4013 | s%@DATADIRNAME@%$DATADIRNAME%g |
| 4014 | s%@GMOFILES@%$GMOFILES%g |
| 4015 | s%@INSTOBJEXT@%$INSTOBJEXT%g |
| 4016 | s%@INTLDEPS@%$INTLDEPS%g |
| 4017 | s%@INTLLIBS@%$INTLLIBS%g |
| 4018 | s%@INTLOBJS@%$INTLOBJS%g |
| 4019 | s%@POFILES@%$POFILES%g |
| 4020 | s%@POSUB@%$POSUB%g |
| 4021 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g |
| 4022 | s%@GT_NO@%$GT_NO%g |
| 4023 | s%@GT_YES@%$GT_YES%g |
| 4024 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g |
| 4025 | s%@l@%$l%g |
| 4026 | s%@HDEFINES@%$HDEFINES%g |
| 4027 | s%@CGEN_MAINT_TRUE@%$CGEN_MAINT_TRUE%g |
| 4028 | s%@CGEN_MAINT_FALSE@%$CGEN_MAINT_FALSE%g |
| 4029 | s%@SCHEME@%$SCHEME%g |
| 4030 | s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g |
| 4031 | s%@WIN32LIBADD@%$WIN32LIBADD%g |
| 4032 | s%@archdefs@%$archdefs%g |
| 4033 | s%@BFD_MACHINES@%$BFD_MACHINES%g |
| 4034 | |
| 4035 | CEOF |
| 4036 | EOF |
| 4037 | |
| 4038 | cat >> $CONFIG_STATUS <<\EOF |
| 4039 | |
| 4040 | # Split the substitutions into bite-sized pieces for seds with |
| 4041 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 4042 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 4043 | ac_file=1 # Number of current file. |
| 4044 | ac_beg=1 # First line for current file. |
| 4045 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 4046 | ac_more_lines=: |
| 4047 | ac_sed_cmds="" |
| 4048 | while $ac_more_lines; do |
| 4049 | if test $ac_beg -gt 1; then |
| 4050 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 4051 | else |
| 4052 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 4053 | fi |
| 4054 | if test ! -s conftest.s$ac_file; then |
| 4055 | ac_more_lines=false |
| 4056 | rm -f conftest.s$ac_file |
| 4057 | else |
| 4058 | if test -z "$ac_sed_cmds"; then |
| 4059 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 4060 | else |
| 4061 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 4062 | fi |
| 4063 | ac_file=`expr $ac_file + 1` |
| 4064 | ac_beg=$ac_end |
| 4065 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 4066 | fi |
| 4067 | done |
| 4068 | if test -z "$ac_sed_cmds"; then |
| 4069 | ac_sed_cmds=cat |
| 4070 | fi |
| 4071 | EOF |
| 4072 | |
| 4073 | cat >> $CONFIG_STATUS <<EOF |
| 4074 | |
| 4075 | CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"} |
| 4076 | EOF |
| 4077 | cat >> $CONFIG_STATUS <<\EOF |
| 4078 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
| 4079 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 4080 | case "$ac_file" in |
| 4081 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
| 4082 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 4083 | *) ac_file_in="${ac_file}.in" ;; |
| 4084 | esac |
| 4085 | |
| 4086 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
| 4087 | |
| 4088 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 4089 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 4090 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 4091 | # The file is in a subdirectory. |
| 4092 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 4093 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
| 4094 | # A "../" for each directory in $ac_dir_suffix. |
| 4095 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 4096 | else |
| 4097 | ac_dir_suffix= ac_dots= |
| 4098 | fi |
| 4099 | |
| 4100 | case "$ac_given_srcdir" in |
| 4101 | .) srcdir=. |
| 4102 | if test -z "$ac_dots"; then top_srcdir=. |
| 4103 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 4104 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 4105 | *) # Relative path. |
| 4106 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 4107 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 4108 | esac |
| 4109 | |
| 4110 | case "$ac_given_INSTALL" in |
| 4111 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
| 4112 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
| 4113 | esac |
| 4114 | |
| 4115 | echo creating "$ac_file" |
| 4116 | rm -f "$ac_file" |
| 4117 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 4118 | case "$ac_file" in |
| 4119 | *Makefile*) ac_comsub="1i\\ |
| 4120 | # $configure_input" ;; |
| 4121 | *) ac_comsub= ;; |
| 4122 | esac |
| 4123 | |
| 4124 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 4125 | sed -e "$ac_comsub |
| 4126 | s%@configure_input@%$configure_input%g |
| 4127 | s%@srcdir@%$srcdir%g |
| 4128 | s%@top_srcdir@%$top_srcdir%g |
| 4129 | s%@INSTALL@%$INSTALL%g |
| 4130 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
| 4131 | fi; done |
| 4132 | rm -f conftest.s* |
| 4133 | |
| 4134 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 4135 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 4136 | # |
| 4137 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 4138 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 4139 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
| 4140 | ac_dC='\3' |
| 4141 | ac_dD='%g' |
| 4142 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
| 4143 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 4144 | ac_uB='\([ ]\)%\1#\2define\3' |
| 4145 | ac_uC=' ' |
| 4146 | ac_uD='\4%g' |
| 4147 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 4148 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 4149 | ac_eB='$%\1#\2define\3' |
| 4150 | ac_eC=' ' |
| 4151 | ac_eD='%g' |
| 4152 | |
| 4153 | if test "${CONFIG_HEADERS+set}" != set; then |
| 4154 | EOF |
| 4155 | cat >> $CONFIG_STATUS <<EOF |
| 4156 | CONFIG_HEADERS="config.h:config.in" |
| 4157 | EOF |
| 4158 | cat >> $CONFIG_STATUS <<\EOF |
| 4159 | fi |
| 4160 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
| 4161 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 4162 | case "$ac_file" in |
| 4163 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
| 4164 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 4165 | *) ac_file_in="${ac_file}.in" ;; |
| 4166 | esac |
| 4167 | |
| 4168 | echo creating $ac_file |
| 4169 | |
| 4170 | rm -f conftest.frag conftest.in conftest.out |
| 4171 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 4172 | cat $ac_file_inputs > conftest.in |
| 4173 | |
| 4174 | EOF |
| 4175 | |
| 4176 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
| 4177 | # the proper values into config.h.in to produce config.h. And first: |
| 4178 | # Protect against being on the right side of a sed subst in config.status. |
| 4179 | # Protect against being in an unquoted here document in config.status. |
| 4180 | rm -f conftest.vals |
| 4181 | cat > conftest.hdr <<\EOF |
| 4182 | s/[\\&%]/\\&/g |
| 4183 | s%[\\$`]%\\&%g |
| 4184 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
| 4185 | s%ac_d%ac_u%gp |
| 4186 | s%ac_u%ac_e%gp |
| 4187 | EOF |
| 4188 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
| 4189 | rm -f conftest.hdr |
| 4190 | |
| 4191 | # This sed command replaces #undef with comments. This is necessary, for |
| 4192 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 4193 | # on some systems where configure will not decide to define it. |
| 4194 | cat >> conftest.vals <<\EOF |
| 4195 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| 4196 | EOF |
| 4197 | |
| 4198 | # Break up conftest.vals because some shells have a limit on |
| 4199 | # the size of here documents, and old seds have small limits too. |
| 4200 | |
| 4201 | rm -f conftest.tail |
| 4202 | while : |
| 4203 | do |
| 4204 | ac_lines=`grep -c . conftest.vals` |
| 4205 | # grep -c gives empty output for an empty file on some AIX systems. |
| 4206 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 4207 | # Write a limited-size here document to conftest.frag. |
| 4208 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 4209 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| 4210 | echo 'CEOF |
| 4211 | sed -f conftest.frag conftest.in > conftest.out |
| 4212 | rm -f conftest.in |
| 4213 | mv conftest.out conftest.in |
| 4214 | ' >> $CONFIG_STATUS |
| 4215 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 4216 | rm -f conftest.vals |
| 4217 | mv conftest.tail conftest.vals |
| 4218 | done |
| 4219 | rm -f conftest.vals |
| 4220 | |
| 4221 | cat >> $CONFIG_STATUS <<\EOF |
| 4222 | rm -f conftest.frag conftest.h |
| 4223 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
| 4224 | cat conftest.in >> conftest.h |
| 4225 | rm -f conftest.in |
| 4226 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
| 4227 | echo "$ac_file is unchanged" |
| 4228 | rm -f conftest.h |
| 4229 | else |
| 4230 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 4231 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 4232 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 4233 | # The file is in a subdirectory. |
| 4234 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 4235 | fi |
| 4236 | rm -f $ac_file |
| 4237 | mv conftest.h $ac_file |
| 4238 | fi |
| 4239 | fi; done |
| 4240 | |
| 4241 | EOF |
| 4242 | cat >> $CONFIG_STATUS <<EOF |
| 4243 | |
| 4244 | |
| 4245 | EOF |
| 4246 | cat >> $CONFIG_STATUS <<\EOF |
| 4247 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h |
| 4248 | sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile |
| 4249 | exit 0 |
| 4250 | EOF |
| 4251 | chmod +x $CONFIG_STATUS |
| 4252 | rm -fr confdefs* $ac_clean_files |
| 4253 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
| 4254 | |