| 1 | #! /bin/sh | 
|---|
| 2 |  | 
|---|
| 3 | # Guess values for system-dependent variables and create Makefiles. | 
|---|
| 4 | # Generated automatically using autoconf version 2.13 | 
|---|
| 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | 
|---|
| 6 | # | 
|---|
| 7 | # This configure script is free software; the Free Software Foundation | 
|---|
| 8 | # gives unlimited permission to copy, distribute and modify it. | 
|---|
| 9 |  | 
|---|
| 10 | # Defaults: | 
|---|
| 11 | ac_help= | 
|---|
| 12 | ac_default_prefix=/usr/local | 
|---|
| 13 | # Any additions from configure.in: | 
|---|
| 14 | ac_help="$ac_help | 
|---|
| 15 | --enable-shared[=PKGS]  build shared libraries [default=yes]" | 
|---|
| 16 | ac_help="$ac_help | 
|---|
| 17 | --enable-static[=PKGS]  build static libraries [default=yes]" | 
|---|
| 18 | ac_help="$ac_help | 
|---|
| 19 | --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]" | 
|---|
| 20 | ac_help="$ac_help | 
|---|
| 21 | --with-gnu-ld           assume the C compiler uses GNU ld [default=no]" | 
|---|
| 22 | ac_help="$ac_help | 
|---|
| 23 | --disable-libtool-lock  avoid locking (might break parallel builds)" | 
|---|
| 24 | ac_help="$ac_help | 
|---|
| 25 | --with-pic              try to use only PIC/non-PIC objects [default=use both]" | 
|---|
| 26 | ac_help="$ac_help | 
|---|
| 27 | --enable-bfd-assembler  use BFD back end for writing object files" | 
|---|
| 28 | ac_help="$ac_help | 
|---|
| 29 | targets            alternative target configurations besides the primary" | 
|---|
| 30 | ac_help="$ac_help | 
|---|
| 31 | --enable-commonbfdlib   build shared BFD/opcodes/libiberty library" | 
|---|
| 32 | ac_help="$ac_help | 
|---|
| 33 | --enable-build-warnings Enable build-time compiler warnings if gcc is used" | 
|---|
| 34 | ac_help="$ac_help | 
|---|
| 35 | --disable-nls           do not use Native Language Support" | 
|---|
| 36 | ac_help="$ac_help | 
|---|
| 37 | --with-included-gettext use the GNU gettext library included here" | 
|---|
| 38 | ac_help="$ac_help | 
|---|
| 39 | --enable-maintainer-mode enable make rules and dependencies not useful | 
|---|
| 40 | (and sometimes confusing) to the casual installer" | 
|---|
| 41 |  | 
|---|
| 42 | # Initialize some variables set by options. | 
|---|
| 43 | # The variables have the same names as the options, with | 
|---|
| 44 | # dashes changed to underlines. | 
|---|
| 45 | build=NONE | 
|---|
| 46 | cache_file=./config.cache | 
|---|
| 47 | exec_prefix=NONE | 
|---|
| 48 | host=NONE | 
|---|
| 49 | no_create= | 
|---|
| 50 | nonopt=NONE | 
|---|
| 51 | no_recursion= | 
|---|
| 52 | prefix=NONE | 
|---|
| 53 | program_prefix=NONE | 
|---|
| 54 | program_suffix=NONE | 
|---|
| 55 | program_transform_name=s,x,x, | 
|---|
| 56 | silent= | 
|---|
| 57 | site= | 
|---|
| 58 | srcdir= | 
|---|
| 59 | target=NONE | 
|---|
| 60 | verbose= | 
|---|
| 61 | x_includes=NONE | 
|---|
| 62 | x_libraries=NONE | 
|---|
| 63 | bindir='${exec_prefix}/bin' | 
|---|
| 64 | sbindir='${exec_prefix}/sbin' | 
|---|
| 65 | libexecdir='${exec_prefix}/libexec' | 
|---|
| 66 | datadir='${prefix}/share' | 
|---|
| 67 | sysconfdir='${prefix}/etc' | 
|---|
| 68 | sharedstatedir='${prefix}/com' | 
|---|
| 69 | localstatedir='${prefix}/var' | 
|---|
| 70 | libdir='${exec_prefix}/lib' | 
|---|
| 71 | includedir='${prefix}/include' | 
|---|
| 72 | oldincludedir='/usr/include' | 
|---|
| 73 | infodir='${prefix}/info' | 
|---|
| 74 | mandir='${prefix}/man' | 
|---|
| 75 |  | 
|---|
| 76 | # Initialize some other variables. | 
|---|
| 77 | subdirs= | 
|---|
| 78 | MFLAGS= MAKEFLAGS= | 
|---|
| 79 | SHELL=${CONFIG_SHELL-/bin/sh} | 
|---|
| 80 | # Maximum number of lines to put in a shell here document. | 
|---|
| 81 | ac_max_here_lines=12 | 
|---|
| 82 |  | 
|---|
| 83 | ac_prev= | 
|---|
| 84 | for ac_option | 
|---|
| 85 | do | 
|---|
| 86 |  | 
|---|
| 87 | # If the previous option needs an argument, assign it. | 
|---|
| 88 | if test -n "$ac_prev"; then | 
|---|
| 89 | eval "$ac_prev=\$ac_option" | 
|---|
| 90 | ac_prev= | 
|---|
| 91 | continue | 
|---|
| 92 | fi | 
|---|
| 93 |  | 
|---|
| 94 | case "$ac_option" in | 
|---|
| 95 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | 
|---|
| 96 | *) ac_optarg= ;; | 
|---|
| 97 | esac | 
|---|
| 98 |  | 
|---|
| 99 | # Accept the important Cygnus configure options, so we can diagnose typos. | 
|---|
| 100 |  | 
|---|
| 101 | case "$ac_option" in | 
|---|
| 102 |  | 
|---|
| 103 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
|---|
| 104 | ac_prev=bindir ;; | 
|---|
| 105 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
|---|
| 106 | bindir="$ac_optarg" ;; | 
|---|
| 107 |  | 
|---|
| 108 | -build | --build | --buil | --bui | --bu) | 
|---|
| 109 | ac_prev=build ;; | 
|---|
| 110 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
|---|
| 111 | build="$ac_optarg" ;; | 
|---|
| 112 |  | 
|---|
| 113 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
|---|
| 114 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
|---|
| 115 | ac_prev=cache_file ;; | 
|---|
| 116 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
|---|
| 117 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
|---|
| 118 | cache_file="$ac_optarg" ;; | 
|---|
| 119 |  | 
|---|
| 120 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | 
|---|
| 121 | ac_prev=datadir ;; | 
|---|
| 122 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | 
|---|
| 123 | | --da=*) | 
|---|
| 124 | datadir="$ac_optarg" ;; | 
|---|
| 125 |  | 
|---|
| 126 | -disable-* | --disable-*) | 
|---|
| 127 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | 
|---|
| 128 | # Reject names that are not valid shell variable names. | 
|---|
| 129 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | 
|---|
| 130 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | 
|---|
| 131 | fi | 
|---|
| 132 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | 
|---|
| 133 | eval "enable_${ac_feature}=no" ;; | 
|---|
| 134 |  | 
|---|
| 135 | -enable-* | --enable-*) | 
|---|
| 136 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | 
|---|
| 137 | # Reject names that are not valid shell variable names. | 
|---|
| 138 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | 
|---|
| 139 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | 
|---|
| 140 | fi | 
|---|
| 141 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | 
|---|
| 142 | case "$ac_option" in | 
|---|
| 143 | *=*) ;; | 
|---|
| 144 | *) ac_optarg=yes ;; | 
|---|
| 145 | esac | 
|---|
| 146 | eval "enable_${ac_feature}='$ac_optarg'" ;; | 
|---|
| 147 |  | 
|---|
| 148 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
|---|
| 149 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
|---|
| 150 | | --exec | --exe | --ex) | 
|---|
| 151 | ac_prev=exec_prefix ;; | 
|---|
| 152 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
|---|
| 153 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
|---|
| 154 | | --exec=* | --exe=* | --ex=*) | 
|---|
| 155 | exec_prefix="$ac_optarg" ;; | 
|---|
| 156 |  | 
|---|
| 157 | -gas | --gas | --ga | --g) | 
|---|
| 158 | # Obsolete; use --with-gas. | 
|---|
| 159 | with_gas=yes ;; | 
|---|
| 160 |  | 
|---|
| 161 | -help | --help | --hel | --he) | 
|---|
| 162 | # Omit some internal or obsolete options to make the list less imposing. | 
|---|
| 163 | # This message is too long to be a string in the A/UX 3.1 sh. | 
|---|
| 164 | cat << EOF | 
|---|
| 165 | Usage: configure [options] [host] | 
|---|
| 166 | Options: [defaults in brackets after descriptions] | 
|---|
| 167 | Configuration: | 
|---|
| 168 | --cache-file=FILE       cache test results in FILE | 
|---|
| 169 | --help                  print this message | 
|---|
| 170 | --no-create             do not create output files | 
|---|
| 171 | --quiet, --silent       do not print \`checking...' messages | 
|---|
| 172 | --version               print the version of autoconf that created configure | 
|---|
| 173 | Directory and file names: | 
|---|
| 174 | --prefix=PREFIX         install architecture-independent files in PREFIX | 
|---|
| 175 | [$ac_default_prefix] | 
|---|
| 176 | --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
|---|
| 177 | [same as prefix] | 
|---|
| 178 | --bindir=DIR            user executables in DIR [EPREFIX/bin] | 
|---|
| 179 | --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin] | 
|---|
| 180 | --libexecdir=DIR        program executables in DIR [EPREFIX/libexec] | 
|---|
| 181 | --datadir=DIR           read-only architecture-independent data in DIR | 
|---|
| 182 | [PREFIX/share] | 
|---|
| 183 | --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc] | 
|---|
| 184 | --sharedstatedir=DIR    modifiable architecture-independent data in DIR | 
|---|
| 185 | [PREFIX/com] | 
|---|
| 186 | --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var] | 
|---|
| 187 | --libdir=DIR            object code libraries in DIR [EPREFIX/lib] | 
|---|
| 188 | --includedir=DIR        C header files in DIR [PREFIX/include] | 
|---|
| 189 | --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include] | 
|---|
| 190 | --infodir=DIR           info documentation in DIR [PREFIX/info] | 
|---|
| 191 | --mandir=DIR            man documentation in DIR [PREFIX/man] | 
|---|
| 192 | --srcdir=DIR            find the sources in DIR [configure dir or ..] | 
|---|
| 193 | --program-prefix=PREFIX prepend PREFIX to installed program names | 
|---|
| 194 | --program-suffix=SUFFIX append SUFFIX to installed program names | 
|---|
| 195 | --program-transform-name=PROGRAM | 
|---|
| 196 | run sed PROGRAM on installed program names | 
|---|
| 197 | EOF | 
|---|
| 198 | cat << EOF | 
|---|
| 199 | Host type: | 
|---|
| 200 | --build=BUILD           configure for building on BUILD [BUILD=HOST] | 
|---|
| 201 | --host=HOST             configure for HOST [guessed] | 
|---|
| 202 | --target=TARGET         configure for TARGET [TARGET=HOST] | 
|---|
| 203 | Features and packages: | 
|---|
| 204 | --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
|---|
| 205 | --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
|---|
| 206 | --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
|---|
| 207 | --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
|---|
| 208 | --x-includes=DIR        X include files are in DIR | 
|---|
| 209 | --x-libraries=DIR       X library files are in DIR | 
|---|
| 210 | EOF | 
|---|
| 211 | if test -n "$ac_help"; then | 
|---|
| 212 | echo "--enable and --with options recognized:$ac_help" | 
|---|
| 213 | fi | 
|---|
| 214 | exit 0 ;; | 
|---|
| 215 |  | 
|---|
| 216 | -host | --host | --hos | --ho) | 
|---|
| 217 | ac_prev=host ;; | 
|---|
| 218 | -host=* | --host=* | --hos=* | --ho=*) | 
|---|
| 219 | host="$ac_optarg" ;; | 
|---|
| 220 |  | 
|---|
| 221 | -includedir | --includedir | --includedi | --included | --include \ | 
|---|
| 222 | | --includ | --inclu | --incl | --inc) | 
|---|
| 223 | ac_prev=includedir ;; | 
|---|
| 224 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
|---|
| 225 | | --includ=* | --inclu=* | --incl=* | --inc=*) | 
|---|
| 226 | includedir="$ac_optarg" ;; | 
|---|
| 227 |  | 
|---|
| 228 | -infodir | --infodir | --infodi | --infod | --info | --inf) | 
|---|
| 229 | ac_prev=infodir ;; | 
|---|
| 230 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
|---|
| 231 | infodir="$ac_optarg" ;; | 
|---|
| 232 |  | 
|---|
| 233 | -libdir | --libdir | --libdi | --libd) | 
|---|
| 234 | ac_prev=libdir ;; | 
|---|
| 235 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
|---|
| 236 | libdir="$ac_optarg" ;; | 
|---|
| 237 |  | 
|---|
| 238 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
|---|
| 239 | | --libexe | --libex | --libe) | 
|---|
| 240 | ac_prev=libexecdir ;; | 
|---|
| 241 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
|---|
| 242 | | --libexe=* | --libex=* | --libe=*) | 
|---|
| 243 | libexecdir="$ac_optarg" ;; | 
|---|
| 244 |  | 
|---|
| 245 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
|---|
| 246 | | --localstate | --localstat | --localsta | --localst \ | 
|---|
| 247 | | --locals | --local | --loca | --loc | --lo) | 
|---|
| 248 | ac_prev=localstatedir ;; | 
|---|
| 249 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
|---|
| 250 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | 
|---|
| 251 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | 
|---|
| 252 | localstatedir="$ac_optarg" ;; | 
|---|
| 253 |  | 
|---|
| 254 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
|---|
| 255 | ac_prev=mandir ;; | 
|---|
| 256 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
|---|
| 257 | mandir="$ac_optarg" ;; | 
|---|
| 258 |  | 
|---|
| 259 | -nfp | --nfp | --nf) | 
|---|
| 260 | # Obsolete; use --without-fp. | 
|---|
| 261 | with_fp=no ;; | 
|---|
| 262 |  | 
|---|
| 263 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
|---|
| 264 | | --no-cr | --no-c) | 
|---|
| 265 | no_create=yes ;; | 
|---|
| 266 |  | 
|---|
| 267 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
|---|
| 268 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
|---|
| 269 | no_recursion=yes ;; | 
|---|
| 270 |  | 
|---|
| 271 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
|---|
| 272 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
|---|
| 273 | | --oldin | --oldi | --old | --ol | --o) | 
|---|
| 274 | ac_prev=oldincludedir ;; | 
|---|
| 275 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
|---|
| 276 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
|---|
| 277 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
|---|
| 278 | oldincludedir="$ac_optarg" ;; | 
|---|
| 279 |  | 
|---|
| 280 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
|---|
| 281 | ac_prev=prefix ;; | 
|---|
| 282 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
|---|
| 283 | prefix="$ac_optarg" ;; | 
|---|
| 284 |  | 
|---|
| 285 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
|---|
| 286 | | --program-pre | --program-pr | --program-p) | 
|---|
| 287 | ac_prev=program_prefix ;; | 
|---|
| 288 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
|---|
| 289 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
|---|
| 290 | program_prefix="$ac_optarg" ;; | 
|---|
| 291 |  | 
|---|
| 292 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
|---|
| 293 | | --program-suf | --program-su | --program-s) | 
|---|
| 294 | ac_prev=program_suffix ;; | 
|---|
| 295 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
|---|
| 296 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
|---|
| 297 | program_suffix="$ac_optarg" ;; | 
|---|
| 298 |  | 
|---|
| 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 | ac_prev=program_transform_name ;; | 
|---|
| 307 | -program-transform-name=* | --program-transform-name=* \ | 
|---|
| 308 | | --program-transform-nam=* | --program-transform-na=* \ | 
|---|
| 309 | | --program-transform-n=* | --program-transform-=* \ | 
|---|
| 310 | | --program-transform=* | --program-transfor=* \ | 
|---|
| 311 | | --program-transfo=* | --program-transf=* \ | 
|---|
| 312 | | --program-trans=* | --program-tran=* \ | 
|---|
| 313 | | --progr-tra=* | --program-tr=* | --program-t=*) | 
|---|
| 314 | program_transform_name="$ac_optarg" ;; | 
|---|
| 315 |  | 
|---|
| 316 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|---|
| 317 | | -silent | --silent | --silen | --sile | --sil) | 
|---|
| 318 | silent=yes ;; | 
|---|
| 319 |  | 
|---|
| 320 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
|---|
| 321 | ac_prev=sbindir ;; | 
|---|
| 322 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
|---|
| 323 | | --sbi=* | --sb=*) | 
|---|
| 324 | sbindir="$ac_optarg" ;; | 
|---|
| 325 |  | 
|---|
| 326 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
|---|
| 327 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
|---|
| 328 | | --sharedst | --shareds | --shared | --share | --shar \ | 
|---|
| 329 | | --sha | --sh) | 
|---|
| 330 | ac_prev=sharedstatedir ;; | 
|---|
| 331 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
|---|
| 332 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
|---|
| 333 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
|---|
| 334 | | --sha=* | --sh=*) | 
|---|
| 335 | sharedstatedir="$ac_optarg" ;; | 
|---|
| 336 |  | 
|---|
| 337 | -site | --site | --sit) | 
|---|
| 338 | ac_prev=site ;; | 
|---|
| 339 | -site=* | --site=* | --sit=*) | 
|---|
| 340 | site="$ac_optarg" ;; | 
|---|
| 341 |  | 
|---|
| 342 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
|---|
| 343 | ac_prev=srcdir ;; | 
|---|
| 344 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
|---|
| 345 | srcdir="$ac_optarg" ;; | 
|---|
| 346 |  | 
|---|
| 347 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
|---|
| 348 | | --syscon | --sysco | --sysc | --sys | --sy) | 
|---|
| 349 | ac_prev=sysconfdir ;; | 
|---|
| 350 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
|---|
| 351 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
|---|
| 352 | sysconfdir="$ac_optarg" ;; | 
|---|
| 353 |  | 
|---|
| 354 | -target | --target | --targe | --targ | --tar | --ta | --t) | 
|---|
| 355 | ac_prev=target ;; | 
|---|
| 356 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
|---|
| 357 | target="$ac_optarg" ;; | 
|---|
| 358 |  | 
|---|
| 359 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
|---|
| 360 | verbose=yes ;; | 
|---|
| 361 |  | 
|---|
| 362 | -version | --version | --versio | --versi | --vers) | 
|---|
| 363 | echo "configure generated by autoconf version 2.13" | 
|---|
| 364 | exit 0 ;; | 
|---|
| 365 |  | 
|---|
| 366 | -with-* | --with-*) | 
|---|
| 367 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | 
|---|
| 368 | # Reject names that are not valid shell variable names. | 
|---|
| 369 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | 
|---|
| 370 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | 
|---|
| 371 | fi | 
|---|
| 372 | ac_package=`echo $ac_package| sed 's/-/_/g'` | 
|---|
| 373 | case "$ac_option" in | 
|---|
| 374 | *=*) ;; | 
|---|
| 375 | *) ac_optarg=yes ;; | 
|---|
| 376 | esac | 
|---|
| 377 | eval "with_${ac_package}='$ac_optarg'" ;; | 
|---|
| 378 |  | 
|---|
| 379 | -without-* | --without-*) | 
|---|
| 380 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | 
|---|
| 381 | # Reject names that are not valid shell variable names. | 
|---|
| 382 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | 
|---|
| 383 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | 
|---|
| 384 | fi | 
|---|
| 385 | ac_package=`echo $ac_package| sed 's/-/_/g'` | 
|---|
| 386 | eval "with_${ac_package}=no" ;; | 
|---|
| 387 |  | 
|---|
| 388 | --x) | 
|---|
| 389 | # Obsolete; use --with-x. | 
|---|
| 390 | with_x=yes ;; | 
|---|
| 391 |  | 
|---|
| 392 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
|---|
| 393 | | --x-incl | --x-inc | --x-in | --x-i) | 
|---|
| 394 | ac_prev=x_includes ;; | 
|---|
| 395 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
|---|
| 396 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
|---|
| 397 | x_includes="$ac_optarg" ;; | 
|---|
| 398 |  | 
|---|
| 399 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
|---|
| 400 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
|---|
| 401 | ac_prev=x_libraries ;; | 
|---|
| 402 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
|---|
| 403 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | 
|---|
| 404 | x_libraries="$ac_optarg" ;; | 
|---|
| 405 |  | 
|---|
| 406 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | 
|---|
| 407 | ;; | 
|---|
| 408 |  | 
|---|
| 409 | *) | 
|---|
| 410 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | 
|---|
| 411 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | 
|---|
| 412 | fi | 
|---|
| 413 | if test "x$nonopt" != xNONE; then | 
|---|
| 414 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | 
|---|
| 415 | fi | 
|---|
| 416 | nonopt="$ac_option" | 
|---|
| 417 | ;; | 
|---|
| 418 |  | 
|---|
| 419 | esac | 
|---|
| 420 | done | 
|---|
| 421 |  | 
|---|
| 422 | if test -n "$ac_prev"; then | 
|---|
| 423 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | 
|---|
| 424 | fi | 
|---|
| 425 |  | 
|---|
| 426 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | 
|---|
| 427 |  | 
|---|
| 428 | # File descriptor usage: | 
|---|
| 429 | # 0 standard input | 
|---|
| 430 | # 1 file creation | 
|---|
| 431 | # 2 errors and warnings | 
|---|
| 432 | # 3 some systems may open it to /dev/tty | 
|---|
| 433 | # 4 used on the Kubota Titan | 
|---|
| 434 | # 6 checking for... messages and results | 
|---|
| 435 | # 5 compiler messages saved in config.log | 
|---|
| 436 | if test "$silent" = yes; then | 
|---|
| 437 | exec 6>/dev/null | 
|---|
| 438 | else | 
|---|
| 439 | exec 6>&1 | 
|---|
| 440 | fi | 
|---|
| 441 | exec 5>./config.log | 
|---|
| 442 |  | 
|---|
| 443 | echo "\ | 
|---|
| 444 | This file contains any messages produced by compilers while | 
|---|
| 445 | running configure, to aid debugging if configure makes a mistake. | 
|---|
| 446 | " 1>&5 | 
|---|
| 447 |  | 
|---|
| 448 | # Strip out --no-create and --no-recursion so they do not pile up. | 
|---|
| 449 | # Also quote any args containing shell metacharacters. | 
|---|
| 450 | ac_configure_args= | 
|---|
| 451 | for ac_arg | 
|---|
| 452 | do | 
|---|
| 453 | case "$ac_arg" in | 
|---|
| 454 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
|---|
| 455 | | --no-cr | --no-c) ;; | 
|---|
| 456 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
|---|
| 457 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | 
|---|
| 458 | *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | 
|---|
| 459 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | 
|---|
| 460 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | 
|---|
| 461 | esac | 
|---|
| 462 | done | 
|---|
| 463 |  | 
|---|
| 464 | # NLS nuisances. | 
|---|
| 465 | # Only set these to C if already set.  These must not be set unconditionally | 
|---|
| 466 | # because not all systems understand e.g. LANG=C (notably SCO). | 
|---|
| 467 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | 
|---|
| 468 | # Non-C LC_CTYPE values break the ctype check. | 
|---|
| 469 | if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi | 
|---|
| 470 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | 
|---|
| 471 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | 
|---|
| 472 | if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi | 
|---|
| 473 |  | 
|---|
| 474 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
|---|
| 475 | rm -rf conftest* confdefs.h | 
|---|
| 476 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | 
|---|
| 477 | echo > confdefs.h | 
|---|
| 478 |  | 
|---|
| 479 | # A filename unique to this package, relative to the directory that | 
|---|
| 480 | # configure is in, which we can look for to find out if srcdir is correct. | 
|---|
| 481 | ac_unique_file=as.h | 
|---|
| 482 |  | 
|---|
| 483 | # Find the source files, if location was not specified. | 
|---|
| 484 | if test -z "$srcdir"; then | 
|---|
| 485 | ac_srcdir_defaulted=yes | 
|---|
| 486 | # Try the directory containing this script, then its parent. | 
|---|
| 487 | ac_prog=$0 | 
|---|
| 488 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | 
|---|
| 489 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | 
|---|
| 490 | srcdir=$ac_confdir | 
|---|
| 491 | if test ! -r $srcdir/$ac_unique_file; then | 
|---|
| 492 | srcdir=.. | 
|---|
| 493 | fi | 
|---|
| 494 | else | 
|---|
| 495 | ac_srcdir_defaulted=no | 
|---|
| 496 | fi | 
|---|
| 497 | if test ! -r $srcdir/$ac_unique_file; then | 
|---|
| 498 | if test "$ac_srcdir_defaulted" = yes; then | 
|---|
| 499 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | 
|---|
| 500 | else | 
|---|
| 501 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | 
|---|
| 502 | fi | 
|---|
| 503 | fi | 
|---|
| 504 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | 
|---|
| 505 |  | 
|---|
| 506 | # Prefer explicitly selected file to automatically selected ones. | 
|---|
| 507 | if test -z "$CONFIG_SITE"; then | 
|---|
| 508 | if test "x$prefix" != xNONE; then | 
|---|
| 509 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | 
|---|
| 510 | else | 
|---|
| 511 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | 
|---|
| 512 | fi | 
|---|
| 513 | fi | 
|---|
| 514 | for ac_site_file in $CONFIG_SITE; do | 
|---|
| 515 | if test -r "$ac_site_file"; then | 
|---|
| 516 | echo "loading site script $ac_site_file" | 
|---|
| 517 | . "$ac_site_file" | 
|---|
| 518 | fi | 
|---|
| 519 | done | 
|---|
| 520 |  | 
|---|
| 521 | if test -r "$cache_file"; then | 
|---|
| 522 | echo "loading cache $cache_file" | 
|---|
| 523 | . $cache_file | 
|---|
| 524 | else | 
|---|
| 525 | echo "creating cache $cache_file" | 
|---|
| 526 | > $cache_file | 
|---|
| 527 | fi | 
|---|
| 528 |  | 
|---|
| 529 | ac_ext=c | 
|---|
| 530 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
|---|
| 531 | ac_cpp='$CPP $CPPFLAGS' | 
|---|
| 532 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
|---|
| 533 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
|---|
| 534 | cross_compiling=$ac_cv_prog_cc_cross | 
|---|
| 535 |  | 
|---|
| 536 | ac_exeext= | 
|---|
| 537 | ac_objext=o | 
|---|
| 538 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | 
|---|
| 539 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | 
|---|
| 540 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | 
|---|
| 541 | ac_n= ac_c=' | 
|---|
| 542 | ' ac_t='        ' | 
|---|
| 543 | else | 
|---|
| 544 | ac_n=-n ac_c= ac_t= | 
|---|
| 545 | fi | 
|---|
| 546 | else | 
|---|
| 547 | ac_n= ac_c='\c' ac_t= | 
|---|
| 548 | fi | 
|---|
| 549 |  | 
|---|
| 550 | echo $ac_n "checking for path separator""... $ac_c" 1>&6 | 
|---|
| 551 | echo "configure:552: checking for path separator" >&5 | 
|---|
| 552 | # Filter path to get backslahes into forwardslashes | 
|---|
| 553 | case "`uname -s 2> /dev/null`" in | 
|---|
| 554 | OS/2) | 
|---|
| 555 | PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'` | 
|---|
| 556 | PATH_IFS=';' | 
|---|
| 557 | ;; | 
|---|
| 558 | *) | 
|---|
| 559 | PATH_IFS=':' | 
|---|
| 560 | ;; | 
|---|
| 561 | esac | 
|---|
| 562 | echo "$ac_t""${PATH_IFS}" 1>&6 | 
|---|
| 563 |  | 
|---|
| 564 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 | 
|---|
| 565 | echo "configure:566: checking for Cygwin environment" >&5 | 
|---|
| 566 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then | 
|---|
| 567 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 568 | else | 
|---|
| 569 | cat > conftest.$ac_ext <<EOF | 
|---|
| 570 | #line 571 "configure" | 
|---|
| 571 | #include "confdefs.h" | 
|---|
| 572 |  | 
|---|
| 573 | int main() { | 
|---|
| 574 |  | 
|---|
| 575 | #ifndef __CYGWIN__ | 
|---|
| 576 | #define __CYGWIN__ __CYGWIN32__ | 
|---|
| 577 | #endif | 
|---|
| 578 | return __CYGWIN__; | 
|---|
| 579 | ; return 0; } | 
|---|
| 580 | EOF | 
|---|
| 581 | if { (eval echo configure:582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 582 | rm -rf conftest* | 
|---|
| 583 | ac_cv_cygwin=yes | 
|---|
| 584 | else | 
|---|
| 585 | echo "configure: failed program was:" >&5 | 
|---|
| 586 | cat conftest.$ac_ext >&5 | 
|---|
| 587 | rm -rf conftest* | 
|---|
| 588 | ac_cv_cygwin=no | 
|---|
| 589 | fi | 
|---|
| 590 | rm -f conftest* | 
|---|
| 591 | rm -f conftest* | 
|---|
| 592 | fi | 
|---|
| 593 |  | 
|---|
| 594 | echo "$ac_t""$ac_cv_cygwin" 1>&6 | 
|---|
| 595 | CYGWIN= | 
|---|
| 596 | test "$ac_cv_cygwin" = yes && CYGWIN=yes | 
|---|
| 597 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 | 
|---|
| 598 | echo "configure:599: checking for mingw32 environment" >&5 | 
|---|
| 599 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then | 
|---|
| 600 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 601 | else | 
|---|
| 602 | cat > conftest.$ac_ext <<EOF | 
|---|
| 603 | #line 604 "configure" | 
|---|
| 604 | #include "confdefs.h" | 
|---|
| 605 |  | 
|---|
| 606 | int main() { | 
|---|
| 607 | return __MINGW32__; | 
|---|
| 608 | ; return 0; } | 
|---|
| 609 | EOF | 
|---|
| 610 | if { (eval echo configure:611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 611 | rm -rf conftest* | 
|---|
| 612 | ac_cv_mingw32=yes | 
|---|
| 613 | else | 
|---|
| 614 | echo "configure: failed program was:" >&5 | 
|---|
| 615 | cat conftest.$ac_ext >&5 | 
|---|
| 616 | rm -rf conftest* | 
|---|
| 617 | ac_cv_mingw32=no | 
|---|
| 618 | fi | 
|---|
| 619 | rm -f conftest* | 
|---|
| 620 | rm -f conftest* | 
|---|
| 621 | fi | 
|---|
| 622 |  | 
|---|
| 623 | echo "$ac_t""$ac_cv_mingw32" 1>&6 | 
|---|
| 624 | MINGW32= | 
|---|
| 625 | test "$ac_cv_mingw32" = yes && MINGW32=yes | 
|---|
| 626 | echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6 | 
|---|
| 627 | echo "configure:628: checking for EMX/OS2 environment" >&5 | 
|---|
| 628 | if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then | 
|---|
| 629 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 630 | else | 
|---|
| 631 | : ${CC=gcc.exe} | 
|---|
| 632 | cat > conftest.$ac_ext <<EOF | 
|---|
| 633 | #line 634 "configure" | 
|---|
| 634 | #include "confdefs.h" | 
|---|
| 635 |  | 
|---|
| 636 | int main() { | 
|---|
| 637 | return __EMX__; | 
|---|
| 638 | ; return 0; } | 
|---|
| 639 | EOF | 
|---|
| 640 | if { (eval echo configure:641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 641 | rm -rf conftest* | 
|---|
| 642 | ac_cv_emxos2=yes | 
|---|
| 643 | else | 
|---|
| 644 | echo "configure: failed program was:" >&5 | 
|---|
| 645 | cat conftest.$ac_ext >&5 | 
|---|
| 646 | rm -rf conftest* | 
|---|
| 647 | ac_cv_emxos2=no | 
|---|
| 648 | fi | 
|---|
| 649 | rm -f conftest* | 
|---|
| 650 | rm -f conftest* | 
|---|
| 651 | fi | 
|---|
| 652 |  | 
|---|
| 653 | echo "$ac_t""$ac_cv_emxos2" 1>&6 | 
|---|
| 654 | if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then | 
|---|
| 655 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 656 | else | 
|---|
| 657 | if test "$ac_cv_emxos2" = yes ; then | 
|---|
| 658 | ac_cv_libpre= | 
|---|
| 659 | else | 
|---|
| 660 | ac_cv_libpre=lib | 
|---|
| 661 | fi | 
|---|
| 662 |  | 
|---|
| 663 | fi | 
|---|
| 664 |  | 
|---|
| 665 | EMXOS2= | 
|---|
| 666 | test "$ac_cv_emxos2" = yes && EMXOS2=yes | 
|---|
| 667 |  | 
|---|
| 668 |  | 
|---|
| 669 |  | 
|---|
| 670 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | 
|---|
| 671 | echo "configure:672: checking for executable suffix" >&5 | 
|---|
| 672 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then | 
|---|
| 673 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 674 | else | 
|---|
| 675 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then | 
|---|
| 676 | ac_cv_exeext=.exe | 
|---|
| 677 | else | 
|---|
| 678 | rm -f conftest* | 
|---|
| 679 | echo 'int main () { return 0; }' > conftest.$ac_ext | 
|---|
| 680 | ac_cv_exeext= | 
|---|
| 681 | if { (eval echo configure:682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then | 
|---|
| 682 | for file in conftest.*; do | 
|---|
| 683 | case $file in | 
|---|
| 684 | *.c | *.o | *.obj) ;; | 
|---|
| 685 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; | 
|---|
| 686 | esac | 
|---|
| 687 | done | 
|---|
| 688 | else | 
|---|
| 689 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | 
|---|
| 690 | fi | 
|---|
| 691 | rm -f conftest* | 
|---|
| 692 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | 
|---|
| 693 | fi | 
|---|
| 694 | fi | 
|---|
| 695 |  | 
|---|
| 696 | EXEEXT="" | 
|---|
| 697 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | 
|---|
| 698 | echo "$ac_t""${ac_cv_exeext}" 1>&6 | 
|---|
| 699 | ac_exeext=$EXEEXT | 
|---|
| 700 |  | 
|---|
| 701 |  | 
|---|
| 702 |  | 
|---|
| 703 | ac_aux_dir= | 
|---|
| 704 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | 
|---|
| 705 | if test -f $ac_dir/install-sh; then | 
|---|
| 706 | ac_aux_dir=$ac_dir | 
|---|
| 707 | ac_install_sh="$ac_aux_dir/install-sh -c" | 
|---|
| 708 | break | 
|---|
| 709 | elif test -f $ac_dir/install.sh; then | 
|---|
| 710 | ac_aux_dir=$ac_dir | 
|---|
| 711 | ac_install_sh="$ac_aux_dir/install.sh -c" | 
|---|
| 712 | break | 
|---|
| 713 | fi | 
|---|
| 714 | done | 
|---|
| 715 | if test -z "$ac_aux_dir"; then | 
|---|
| 716 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | 
|---|
| 717 | fi | 
|---|
| 718 | ac_config_guess=$ac_aux_dir/config.guess | 
|---|
| 719 | ac_config_sub=$ac_aux_dir/config.sub | 
|---|
| 720 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | 
|---|
| 721 |  | 
|---|
| 722 |  | 
|---|
| 723 | # Do some error checking and defaulting for the host and target type. | 
|---|
| 724 | # The inputs are: | 
|---|
| 725 | #    configure --host=HOST --target=TARGET --build=BUILD NONOPT | 
|---|
| 726 | # | 
|---|
| 727 | # The rules are: | 
|---|
| 728 | # 1. You are not allowed to specify --host, --target, and nonopt at the | 
|---|
| 729 | #    same time. | 
|---|
| 730 | # 2. Host defaults to nonopt. | 
|---|
| 731 | # 3. If nonopt is not specified, then host defaults to the current host, | 
|---|
| 732 | #    as determined by config.guess. | 
|---|
| 733 | # 4. Target and build default to nonopt. | 
|---|
| 734 | # 5. If nonopt is not specified, then target and build default to host. | 
|---|
| 735 |  | 
|---|
| 736 | # The aliases save the names the user supplied, while $host etc. | 
|---|
| 737 | # will get canonicalized. | 
|---|
| 738 | case $host---$target---$nonopt in | 
|---|
| 739 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | 
|---|
| 740 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | 
|---|
| 741 | esac | 
|---|
| 742 |  | 
|---|
| 743 |  | 
|---|
| 744 | # Make sure we can run config.sub. | 
|---|
| 745 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | 
|---|
| 746 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | 
|---|
| 747 | fi | 
|---|
| 748 |  | 
|---|
| 749 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | 
|---|
| 750 | echo "configure:751: checking host system type" >&5 | 
|---|
| 751 |  | 
|---|
| 752 | host_alias=$host | 
|---|
| 753 | case "$host_alias" in | 
|---|
| 754 | NONE) | 
|---|
| 755 | case $nonopt in | 
|---|
| 756 | NONE) | 
|---|
| 757 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | 
|---|
| 758 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | 
|---|
| 759 | fi ;; | 
|---|
| 760 | *) host_alias=$nonopt ;; | 
|---|
| 761 | esac ;; | 
|---|
| 762 | esac | 
|---|
| 763 |  | 
|---|
| 764 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | 
|---|
| 765 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
|---|
| 766 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
|---|
| 767 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
|---|
| 768 | echo "$ac_t""$host" 1>&6 | 
|---|
| 769 |  | 
|---|
| 770 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | 
|---|
| 771 | echo "configure:772: checking target system type" >&5 | 
|---|
| 772 |  | 
|---|
| 773 | target_alias=$target | 
|---|
| 774 | case "$target_alias" in | 
|---|
| 775 | NONE) | 
|---|
| 776 | case $nonopt in | 
|---|
| 777 | NONE) target_alias=$host_alias ;; | 
|---|
| 778 | *) target_alias=$nonopt ;; | 
|---|
| 779 | esac ;; | 
|---|
| 780 | esac | 
|---|
| 781 |  | 
|---|
| 782 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | 
|---|
| 783 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
|---|
| 784 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
|---|
| 785 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
|---|
| 786 | echo "$ac_t""$target" 1>&6 | 
|---|
| 787 |  | 
|---|
| 788 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | 
|---|
| 789 | echo "configure:790: checking build system type" >&5 | 
|---|
| 790 |  | 
|---|
| 791 | build_alias=$build | 
|---|
| 792 | case "$build_alias" in | 
|---|
| 793 | NONE) | 
|---|
| 794 | case $nonopt in | 
|---|
| 795 | NONE) build_alias=$host_alias ;; | 
|---|
| 796 | *) build_alias=$nonopt ;; | 
|---|
| 797 | esac ;; | 
|---|
| 798 | esac | 
|---|
| 799 |  | 
|---|
| 800 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | 
|---|
| 801 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
|---|
| 802 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
|---|
| 803 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
|---|
| 804 | echo "$ac_t""$build" 1>&6 | 
|---|
| 805 |  | 
|---|
| 806 | test "$host_alias" != "$target_alias" && | 
|---|
| 807 | test "$program_prefix$program_suffix$program_transform_name" = \ | 
|---|
| 808 | NONENONEs,x,x, && | 
|---|
| 809 | program_prefix=${target_alias}- | 
|---|
| 810 |  | 
|---|
| 811 | # Extract the first word of "gcc", so it can be a program name with args. | 
|---|
| 812 | set dummy gcc; ac_word=$2 | 
|---|
| 813 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 814 | echo "configure:815: checking for $ac_word" >&5 | 
|---|
| 815 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 
|---|
| 816 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 817 | else | 
|---|
| 818 | if test -n "$CC"; then | 
|---|
| 819 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|---|
| 820 | else | 
|---|
| 821 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 822 | ac_dummy="$PATH" | 
|---|
| 823 | for ac_dir in $ac_dummy; do | 
|---|
| 824 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 825 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 826 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 827 | ac_cv_prog_CC="gcc" | 
|---|
| 828 | break | 
|---|
| 829 | fi | 
|---|
| 830 | done | 
|---|
| 831 | IFS="$ac_save_ifs" | 
|---|
| 832 | fi | 
|---|
| 833 | fi | 
|---|
| 834 | CC="$ac_cv_prog_CC" | 
|---|
| 835 | if test -n "$CC"; then | 
|---|
| 836 | echo "$ac_t""$CC" 1>&6 | 
|---|
| 837 | else | 
|---|
| 838 | echo "$ac_t""no" 1>&6 | 
|---|
| 839 | fi | 
|---|
| 840 |  | 
|---|
| 841 | if test -z "$CC"; then | 
|---|
| 842 | # Extract the first word of "cc", so it can be a program name with args. | 
|---|
| 843 | set dummy cc; ac_word=$2 | 
|---|
| 844 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 845 | echo "configure:846: checking for $ac_word" >&5 | 
|---|
| 846 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 
|---|
| 847 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 848 | else | 
|---|
| 849 | if test -n "$CC"; then | 
|---|
| 850 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|---|
| 851 | else | 
|---|
| 852 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 853 | ac_prog_rejected=no | 
|---|
| 854 | ac_dummy="$PATH" | 
|---|
| 855 | for ac_dir in $ac_dummy; do | 
|---|
| 856 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 857 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 858 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 859 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \ | 
|---|
| 860 | "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then | 
|---|
| 861 | ac_prog_rejected=yes | 
|---|
| 862 | continue | 
|---|
| 863 | fi | 
|---|
| 864 | ac_cv_prog_CC="cc" | 
|---|
| 865 | break | 
|---|
| 866 | fi | 
|---|
| 867 | done | 
|---|
| 868 | IFS="$ac_save_ifs" | 
|---|
| 869 | if test $ac_prog_rejected = yes; then | 
|---|
| 870 | # We found a bogon in the path, so make sure we never use it. | 
|---|
| 871 | set dummy $ac_cv_prog_CC | 
|---|
| 872 | shift | 
|---|
| 873 | if test $# -gt 0; then | 
|---|
| 874 | # We chose a different compiler from the bogus one. | 
|---|
| 875 | # However, it has the same basename, so the bogon will be chosen | 
|---|
| 876 | # first if we set CC to just the basename; use the full file name. | 
|---|
| 877 | shift | 
|---|
| 878 | set dummy "$ac_dir/$ac_word" "$@" | 
|---|
| 879 | shift | 
|---|
| 880 | ac_cv_prog_CC="$@" | 
|---|
| 881 | fi | 
|---|
| 882 | fi | 
|---|
| 883 | fi | 
|---|
| 884 | fi | 
|---|
| 885 | CC="$ac_cv_prog_CC" | 
|---|
| 886 | if test -n "$CC"; then | 
|---|
| 887 | echo "$ac_t""$CC" 1>&6 | 
|---|
| 888 | else | 
|---|
| 889 | echo "$ac_t""no" 1>&6 | 
|---|
| 890 | fi | 
|---|
| 891 |  | 
|---|
| 892 | if test -z "$CC"; then | 
|---|
| 893 | case "`uname -s`" in | 
|---|
| 894 | *win32* | *WIN32*) | 
|---|
| 895 | # Extract the first word of "cl", so it can be a program name with args. | 
|---|
| 896 | set dummy cl; ac_word=$2 | 
|---|
| 897 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 898 | echo "configure:899: checking for $ac_word" >&5 | 
|---|
| 899 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 
|---|
| 900 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 901 | else | 
|---|
| 902 | if test -n "$CC"; then | 
|---|
| 903 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|---|
| 904 | else | 
|---|
| 905 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 906 | ac_dummy="$PATH" | 
|---|
| 907 | for ac_dir in $ac_dummy; do | 
|---|
| 908 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 909 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 910 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 911 | ac_cv_prog_CC="cl" | 
|---|
| 912 | break | 
|---|
| 913 | fi | 
|---|
| 914 | done | 
|---|
| 915 | IFS="$ac_save_ifs" | 
|---|
| 916 | fi | 
|---|
| 917 | fi | 
|---|
| 918 | CC="$ac_cv_prog_CC" | 
|---|
| 919 | if test -n "$CC"; then | 
|---|
| 920 | echo "$ac_t""$CC" 1>&6 | 
|---|
| 921 | else | 
|---|
| 922 | echo "$ac_t""no" 1>&6 | 
|---|
| 923 | fi | 
|---|
| 924 | ;; | 
|---|
| 925 | esac | 
|---|
| 926 | fi | 
|---|
| 927 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | 
|---|
| 928 | fi | 
|---|
| 929 |  | 
|---|
| 930 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | 
|---|
| 931 | echo "configure:932: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | 
|---|
| 932 |  | 
|---|
| 933 | ac_ext=c | 
|---|
| 934 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
|---|
| 935 | ac_cpp='$CPP $CPPFLAGS' | 
|---|
| 936 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
|---|
| 937 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
|---|
| 938 | cross_compiling=$ac_cv_prog_cc_cross | 
|---|
| 939 |  | 
|---|
| 940 | cat > conftest.$ac_ext << EOF | 
|---|
| 941 |  | 
|---|
| 942 | #line 943 "configure" | 
|---|
| 943 | #include "confdefs.h" | 
|---|
| 944 |  | 
|---|
| 945 | main(){return(0);} | 
|---|
| 946 | EOF | 
|---|
| 947 | if { (eval echo configure:948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 948 | ac_cv_prog_cc_works=yes | 
|---|
| 949 | # If we can't run a trivial program, we are probably using a cross compiler. | 
|---|
| 950 | if (./conftest; exit) 2>/dev/null; then | 
|---|
| 951 | ac_cv_prog_cc_cross=no | 
|---|
| 952 | else | 
|---|
| 953 | ac_cv_prog_cc_cross=yes | 
|---|
| 954 | fi | 
|---|
| 955 | else | 
|---|
| 956 | echo "configure: failed program was:" >&5 | 
|---|
| 957 | cat conftest.$ac_ext >&5 | 
|---|
| 958 | ac_cv_prog_cc_works=no | 
|---|
| 959 | fi | 
|---|
| 960 | rm -fr conftest* | 
|---|
| 961 | ac_ext=c | 
|---|
| 962 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
|---|
| 963 | ac_cpp='$CPP $CPPFLAGS' | 
|---|
| 964 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
|---|
| 965 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
|---|
| 966 | cross_compiling=$ac_cv_prog_cc_cross | 
|---|
| 967 |  | 
|---|
| 968 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | 
|---|
| 969 | if test $ac_cv_prog_cc_works = no; then | 
|---|
| 970 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | 
|---|
| 971 | fi | 
|---|
| 972 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | 
|---|
| 973 | echo "configure:974: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | 
|---|
| 974 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | 
|---|
| 975 | cross_compiling=$ac_cv_prog_cc_cross | 
|---|
| 976 |  | 
|---|
| 977 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | 
|---|
| 978 | echo "configure:979: checking whether we are using GNU C" >&5 | 
|---|
| 979 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | 
|---|
| 980 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 981 | else | 
|---|
| 982 | cat > conftest.c <<EOF | 
|---|
| 983 | #ifdef __GNUC__ | 
|---|
| 984 | yes; | 
|---|
| 985 | #endif | 
|---|
| 986 | EOF | 
|---|
| 987 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | 
|---|
| 988 | ac_cv_prog_gcc=yes | 
|---|
| 989 | else | 
|---|
| 990 | ac_cv_prog_gcc=no | 
|---|
| 991 | fi | 
|---|
| 992 | fi | 
|---|
| 993 |  | 
|---|
| 994 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | 
|---|
| 995 |  | 
|---|
| 996 | if test $ac_cv_prog_gcc = yes; then | 
|---|
| 997 | GCC=yes | 
|---|
| 998 | else | 
|---|
| 999 | GCC= | 
|---|
| 1000 | fi | 
|---|
| 1001 |  | 
|---|
| 1002 | ac_test_CFLAGS="${CFLAGS+set}" | 
|---|
| 1003 | ac_save_CFLAGS="$CFLAGS" | 
|---|
| 1004 | CFLAGS= | 
|---|
| 1005 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | 
|---|
| 1006 | echo "configure:1007: checking whether ${CC-cc} accepts -g" >&5 | 
|---|
| 1007 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | 
|---|
| 1008 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1009 | else | 
|---|
| 1010 | echo 'void f(){}' > conftest.c | 
|---|
| 1011 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | 
|---|
| 1012 | ac_cv_prog_cc_g=yes | 
|---|
| 1013 | else | 
|---|
| 1014 | ac_cv_prog_cc_g=no | 
|---|
| 1015 | fi | 
|---|
| 1016 | rm -f conftest* | 
|---|
| 1017 |  | 
|---|
| 1018 | fi | 
|---|
| 1019 |  | 
|---|
| 1020 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | 
|---|
| 1021 | if test "$ac_test_CFLAGS" = set; then | 
|---|
| 1022 | CFLAGS="$ac_save_CFLAGS" | 
|---|
| 1023 | elif test $ac_cv_prog_cc_g = yes; then | 
|---|
| 1024 | if test "$GCC" = yes; then | 
|---|
| 1025 | CFLAGS="-g -O2" | 
|---|
| 1026 | else | 
|---|
| 1027 | CFLAGS="-g" | 
|---|
| 1028 | fi | 
|---|
| 1029 | else | 
|---|
| 1030 | if test "$GCC" = yes; then | 
|---|
| 1031 | CFLAGS="-O2" | 
|---|
| 1032 | else | 
|---|
| 1033 | CFLAGS= | 
|---|
| 1034 | fi | 
|---|
| 1035 | fi | 
|---|
| 1036 |  | 
|---|
| 1037 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 | 
|---|
| 1038 | echo "configure:1039: checking for POSIXized ISC" >&5 | 
|---|
| 1039 | if test -d /etc/conf/kconfig.d && | 
|---|
| 1040 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 | 
|---|
| 1041 | then | 
|---|
| 1042 | echo "$ac_t""yes" 1>&6 | 
|---|
| 1043 | ISC=yes # If later tests want to check for ISC. | 
|---|
| 1044 | cat >> confdefs.h <<\EOF | 
|---|
| 1045 | #define _POSIX_SOURCE 1 | 
|---|
| 1046 | EOF | 
|---|
| 1047 |  | 
|---|
| 1048 | if test "$GCC" = yes; then | 
|---|
| 1049 | CC="$CC -posix" | 
|---|
| 1050 | else | 
|---|
| 1051 | CC="$CC -Xp" | 
|---|
| 1052 | fi | 
|---|
| 1053 | else | 
|---|
| 1054 | echo "$ac_t""no" 1>&6 | 
|---|
| 1055 | ISC= | 
|---|
| 1056 | fi | 
|---|
| 1057 |  | 
|---|
| 1058 |  | 
|---|
| 1059 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[         ]*\([^  ]*\)[   ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` | 
|---|
| 1060 | # Find a good install program.  We prefer a C program (faster), | 
|---|
| 1061 | # so one script is as good as another.  But avoid the broken or | 
|---|
| 1062 | # incompatible versions: | 
|---|
| 1063 | # SysV /etc/install, /usr/sbin/install | 
|---|
| 1064 | # SunOS /usr/etc/install | 
|---|
| 1065 | # IRIX /sbin/install | 
|---|
| 1066 | # AIX /bin/install | 
|---|
| 1067 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
|---|
| 1068 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
|---|
| 1069 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
|---|
| 1070 | # ./install, which can be erroneously created by make from ./install.sh. | 
|---|
| 1071 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | 
|---|
| 1072 | echo "configure:1073: checking for a BSD compatible install" >&5 | 
|---|
| 1073 | if test -z "$INSTALL"; then | 
|---|
| 1074 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | 
|---|
| 1075 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1076 | else | 
|---|
| 1077 | IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS" | 
|---|
| 1078 | for ac_dir in $PATH; do | 
|---|
| 1079 | # Account for people who put trailing slashes in PATH elements. | 
|---|
| 1080 | case "$ac_dir/" in | 
|---|
| 1081 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | 
|---|
| 1082 | # We reject the install program from OS/2 or W3.1 | 
|---|
| 1083 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;; | 
|---|
| 1084 | *) | 
|---|
| 1085 | # OSF1 and SCO ODT 3.0 have their own names for install. | 
|---|
| 1086 | # Don't use installbsd from OSF since it installs stuff as root | 
|---|
| 1087 | # by default. | 
|---|
| 1088 | for ac_prog in ginstall scoinst install; do | 
|---|
| 1089 | if test -f $ac_dir/$ac_prog$ac_exeext; then | 
|---|
| 1090 | if test $ac_prog = install && | 
|---|
| 1091 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | 
|---|
| 1092 | # AIX install.  It has an incompatible calling convention. | 
|---|
| 1093 | : | 
|---|
| 1094 | else | 
|---|
| 1095 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c" | 
|---|
| 1096 | break 2 | 
|---|
| 1097 | fi | 
|---|
| 1098 | fi | 
|---|
| 1099 | done | 
|---|
| 1100 | ;; | 
|---|
| 1101 | esac | 
|---|
| 1102 | done | 
|---|
| 1103 | IFS="$ac_save_IFS" | 
|---|
| 1104 |  | 
|---|
| 1105 | fi | 
|---|
| 1106 | if test "${ac_cv_path_install+set}" = set; then | 
|---|
| 1107 | INSTALL="$ac_cv_path_install" | 
|---|
| 1108 | else | 
|---|
| 1109 | # As a last resort, use the slow shell script.  We don't cache a | 
|---|
| 1110 | # path for INSTALL within a source directory, because that will | 
|---|
| 1111 | # break other packages using the cache if that directory is | 
|---|
| 1112 | # removed, or if the path is relative. | 
|---|
| 1113 | INSTALL="$ac_install_sh" | 
|---|
| 1114 | fi | 
|---|
| 1115 | fi | 
|---|
| 1116 | echo "$ac_t""$INSTALL" 1>&6 | 
|---|
| 1117 |  | 
|---|
| 1118 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
|---|
| 1119 | # It thinks the first close brace ends the variable substitution. | 
|---|
| 1120 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
|---|
| 1121 |  | 
|---|
| 1122 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | 
|---|
| 1123 |  | 
|---|
| 1124 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
|---|
| 1125 |  | 
|---|
| 1126 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 | 
|---|
| 1127 | echo "configure:1128: checking whether build environment is sane" >&5 | 
|---|
| 1128 | # Just in case | 
|---|
| 1129 | sleep 1 | 
|---|
| 1130 | echo timestamp > conftestfile | 
|---|
| 1131 | # Do `set' in a subshell so we don't clobber the current shell's | 
|---|
| 1132 | # arguments.  Must try -L first in case configure is actually a | 
|---|
| 1133 | # symlink; some systems play weird games with the mod time of symlinks | 
|---|
| 1134 | # (eg FreeBSD returns the mod time of the symlink's containing | 
|---|
| 1135 | # directory). | 
|---|
| 1136 | if ( | 
|---|
| 1137 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` | 
|---|
| 1138 | if test "$*" = "X"; then | 
|---|
| 1139 | # -L didn't work. | 
|---|
| 1140 | set X `ls -t $srcdir/configure conftestfile` | 
|---|
| 1141 | fi | 
|---|
| 1142 | if test "$*" != "X $srcdir/configure conftestfile" \ | 
|---|
| 1143 | && test "$*" != "X conftestfile $srcdir/configure"; then | 
|---|
| 1144 |  | 
|---|
| 1145 | # If neither matched, then we have a broken ls.  This can happen | 
|---|
| 1146 | # if, for instance, CONFIG_SHELL is bash and it inherits a | 
|---|
| 1147 | # broken ls alias from the environment.  This has actually | 
|---|
| 1148 | # happened.  Such a system could not be considered "sane". | 
|---|
| 1149 | { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken | 
|---|
| 1150 | alias in your environment" 1>&2; exit 1; } | 
|---|
| 1151 | fi | 
|---|
| 1152 |  | 
|---|
| 1153 | test "$2" = conftestfile | 
|---|
| 1154 | ) | 
|---|
| 1155 | then | 
|---|
| 1156 | # Ok. | 
|---|
| 1157 | : | 
|---|
| 1158 | else | 
|---|
| 1159 | { echo "configure: error: newly created file is older than distributed files! | 
|---|
| 1160 | Check your system clock" 1>&2; exit 1; } | 
|---|
| 1161 | fi | 
|---|
| 1162 | rm -f conftest* | 
|---|
| 1163 | echo "$ac_t""yes" 1>&6 | 
|---|
| 1164 | if test "$program_transform_name" = s,x,x,; then | 
|---|
| 1165 | program_transform_name= | 
|---|
| 1166 | else | 
|---|
| 1167 | # Double any \ or $.  echo might interpret backslashes. | 
|---|
| 1168 | cat <<\EOF_SED > conftestsed | 
|---|
| 1169 | s,\\,\\\\,g; s,\$,$$,g | 
|---|
| 1170 | EOF_SED | 
|---|
| 1171 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" | 
|---|
| 1172 | rm -f conftestsed | 
|---|
| 1173 | fi | 
|---|
| 1174 | test "$program_prefix" != NONE && | 
|---|
| 1175 | program_transform_name="s,^,${program_prefix},; $program_transform_name" | 
|---|
| 1176 | # Use a double $ so make ignores it. | 
|---|
| 1177 | test "$program_suffix" != NONE && | 
|---|
| 1178 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" | 
|---|
| 1179 |  | 
|---|
| 1180 | # sed with no file args requires a program. | 
|---|
| 1181 | test "$program_transform_name" = "" && program_transform_name="s,x,x," | 
|---|
| 1182 |  | 
|---|
| 1183 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | 
|---|
| 1184 | echo "configure:1185: checking whether ${MAKE-make} sets \${MAKE}" >&5 | 
|---|
| 1185 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | 
|---|
| 1186 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | 
|---|
| 1187 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1188 | else | 
|---|
| 1189 | cat > conftestmake <<\EOF | 
|---|
| 1190 | all: | 
|---|
| 1191 | @echo 'ac_maketemp="${MAKE}"' | 
|---|
| 1192 | EOF | 
|---|
| 1193 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | 
|---|
| 1194 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | 
|---|
| 1195 | if test -n "$ac_maketemp"; then | 
|---|
| 1196 | eval ac_cv_prog_make_${ac_make}_set=yes | 
|---|
| 1197 | else | 
|---|
| 1198 | eval ac_cv_prog_make_${ac_make}_set=no | 
|---|
| 1199 | fi | 
|---|
| 1200 | rm -f conftestmake | 
|---|
| 1201 | fi | 
|---|
| 1202 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | 
|---|
| 1203 | echo "$ac_t""yes" 1>&6 | 
|---|
| 1204 | SET_MAKE= | 
|---|
| 1205 | else | 
|---|
| 1206 | echo "$ac_t""no" 1>&6 | 
|---|
| 1207 | SET_MAKE="MAKE=${MAKE-make}" | 
|---|
| 1208 | fi | 
|---|
| 1209 |  | 
|---|
| 1210 |  | 
|---|
| 1211 | PACKAGE=gas | 
|---|
| 1212 |  | 
|---|
| 1213 | VERSION=${BFD_VERSION} | 
|---|
| 1214 |  | 
|---|
| 1215 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then | 
|---|
| 1216 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } | 
|---|
| 1217 | fi | 
|---|
| 1218 | cat >> confdefs.h <<EOF | 
|---|
| 1219 | #define PACKAGE "$PACKAGE" | 
|---|
| 1220 | EOF | 
|---|
| 1221 |  | 
|---|
| 1222 | cat >> confdefs.h <<EOF | 
|---|
| 1223 | #define VERSION "$VERSION" | 
|---|
| 1224 | EOF | 
|---|
| 1225 |  | 
|---|
| 1226 |  | 
|---|
| 1227 |  | 
|---|
| 1228 | missing_dir=`cd $ac_aux_dir && pwd` | 
|---|
| 1229 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 | 
|---|
| 1230 | echo "configure:1231: checking for working aclocal" >&5 | 
|---|
| 1231 | # Run test in a subshell; some versions of sh will print an error if | 
|---|
| 1232 | # an executable is not found, even if stderr is redirected. | 
|---|
| 1233 | # Redirect stdin to placate older versions of autoconf.  Sigh. | 
|---|
| 1234 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then | 
|---|
| 1235 | ACLOCAL=aclocal | 
|---|
| 1236 | echo "$ac_t""found" 1>&6 | 
|---|
| 1237 | else | 
|---|
| 1238 | ACLOCAL="$missing_dir/missing aclocal" | 
|---|
| 1239 | echo "$ac_t""missing" 1>&6 | 
|---|
| 1240 | fi | 
|---|
| 1241 |  | 
|---|
| 1242 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 | 
|---|
| 1243 | echo "configure:1244: checking for working autoconf" >&5 | 
|---|
| 1244 | # Run test in a subshell; some versions of sh will print an error if | 
|---|
| 1245 | # an executable is not found, even if stderr is redirected. | 
|---|
| 1246 | # Redirect stdin to placate older versions of autoconf.  Sigh. | 
|---|
| 1247 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then | 
|---|
| 1248 | AUTOCONF=autoconf | 
|---|
| 1249 | echo "$ac_t""found" 1>&6 | 
|---|
| 1250 | else | 
|---|
| 1251 | AUTOCONF="$missing_dir/missing autoconf" | 
|---|
| 1252 | echo "$ac_t""missing" 1>&6 | 
|---|
| 1253 | fi | 
|---|
| 1254 |  | 
|---|
| 1255 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 | 
|---|
| 1256 | echo "configure:1257: checking for working automake" >&5 | 
|---|
| 1257 | # Run test in a subshell; some versions of sh will print an error if | 
|---|
| 1258 | # an executable is not found, even if stderr is redirected. | 
|---|
| 1259 | # Redirect stdin to placate older versions of autoconf.  Sigh. | 
|---|
| 1260 | if (automake --version) < /dev/null > /dev/null 2>&1; then | 
|---|
| 1261 | AUTOMAKE=automake | 
|---|
| 1262 | echo "$ac_t""found" 1>&6 | 
|---|
| 1263 | else | 
|---|
| 1264 | AUTOMAKE="$missing_dir/missing automake" | 
|---|
| 1265 | echo "$ac_t""missing" 1>&6 | 
|---|
| 1266 | fi | 
|---|
| 1267 |  | 
|---|
| 1268 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 | 
|---|
| 1269 | echo "configure:1270: checking for working autoheader" >&5 | 
|---|
| 1270 | # Run test in a subshell; some versions of sh will print an error if | 
|---|
| 1271 | # an executable is not found, even if stderr is redirected. | 
|---|
| 1272 | # Redirect stdin to placate older versions of autoconf.  Sigh. | 
|---|
| 1273 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then | 
|---|
| 1274 | AUTOHEADER=autoheader | 
|---|
| 1275 | echo "$ac_t""found" 1>&6 | 
|---|
| 1276 | else | 
|---|
| 1277 | AUTOHEADER="$missing_dir/missing autoheader" | 
|---|
| 1278 | echo "$ac_t""missing" 1>&6 | 
|---|
| 1279 | fi | 
|---|
| 1280 |  | 
|---|
| 1281 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 | 
|---|
| 1282 | echo "configure:1283: checking for working makeinfo" >&5 | 
|---|
| 1283 | # Run test in a subshell; some versions of sh will print an error if | 
|---|
| 1284 | # an executable is not found, even if stderr is redirected. | 
|---|
| 1285 | # Redirect stdin to placate older versions of autoconf.  Sigh. | 
|---|
| 1286 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then | 
|---|
| 1287 | MAKEINFO=makeinfo | 
|---|
| 1288 | echo "$ac_t""found" 1>&6 | 
|---|
| 1289 | else | 
|---|
| 1290 | MAKEINFO="$missing_dir/missing makeinfo" | 
|---|
| 1291 | echo "$ac_t""missing" 1>&6 | 
|---|
| 1292 | fi | 
|---|
| 1293 |  | 
|---|
| 1294 |  | 
|---|
| 1295 |  | 
|---|
| 1296 | # Check whether --enable-shared or --disable-shared was given. | 
|---|
| 1297 | if test "${enable_shared+set}" = set; then | 
|---|
| 1298 | enableval="$enable_shared" | 
|---|
| 1299 | p=${PACKAGE-default} | 
|---|
| 1300 | case "$enableval" in | 
|---|
| 1301 | yes) enable_shared=yes ;; | 
|---|
| 1302 | no) enable_shared=no ;; | 
|---|
| 1303 | *) | 
|---|
| 1304 | enable_shared=no | 
|---|
| 1305 | # Look at the argument we got.  We use all the common list separators. | 
|---|
| 1306 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | 
|---|
| 1307 | for pkg in $enableval; do | 
|---|
| 1308 | if test "X$pkg" = "X$p"; then | 
|---|
| 1309 | enable_shared=yes | 
|---|
| 1310 | fi | 
|---|
| 1311 | done | 
|---|
| 1312 | IFS="$ac_save_ifs" | 
|---|
| 1313 | ;; | 
|---|
| 1314 | esac | 
|---|
| 1315 | else | 
|---|
| 1316 | enable_shared=yes | 
|---|
| 1317 | fi | 
|---|
| 1318 |  | 
|---|
| 1319 | # Check whether --enable-static or --disable-static was given. | 
|---|
| 1320 | if test "${enable_static+set}" = set; then | 
|---|
| 1321 | enableval="$enable_static" | 
|---|
| 1322 | p=${PACKAGE-default} | 
|---|
| 1323 | case "$enableval" in | 
|---|
| 1324 | yes) enable_static=yes ;; | 
|---|
| 1325 | no) enable_static=no ;; | 
|---|
| 1326 | *) | 
|---|
| 1327 | enable_static=no | 
|---|
| 1328 | # Look at the argument we got.  We use all the common list separators. | 
|---|
| 1329 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | 
|---|
| 1330 | for pkg in $enableval; do | 
|---|
| 1331 | if test "X$pkg" = "X$p"; then | 
|---|
| 1332 | enable_static=yes | 
|---|
| 1333 | fi | 
|---|
| 1334 | done | 
|---|
| 1335 | IFS="$ac_save_ifs" | 
|---|
| 1336 | ;; | 
|---|
| 1337 | esac | 
|---|
| 1338 | else | 
|---|
| 1339 | enable_static=yes | 
|---|
| 1340 | fi | 
|---|
| 1341 |  | 
|---|
| 1342 | # Check whether --enable-fast-install or --disable-fast-install was given. | 
|---|
| 1343 | if test "${enable_fast_install+set}" = set; then | 
|---|
| 1344 | enableval="$enable_fast_install" | 
|---|
| 1345 | p=${PACKAGE-default} | 
|---|
| 1346 | case "$enableval" in | 
|---|
| 1347 | yes) enable_fast_install=yes ;; | 
|---|
| 1348 | no) enable_fast_install=no ;; | 
|---|
| 1349 | *) | 
|---|
| 1350 | enable_fast_install=no | 
|---|
| 1351 | # Look at the argument we got.  We use all the common list separators. | 
|---|
| 1352 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | 
|---|
| 1353 | for pkg in $enableval; do | 
|---|
| 1354 | if test "X$pkg" = "X$p"; then | 
|---|
| 1355 | enable_fast_install=yes | 
|---|
| 1356 | fi | 
|---|
| 1357 | done | 
|---|
| 1358 | IFS="$ac_save_ifs" | 
|---|
| 1359 | ;; | 
|---|
| 1360 | esac | 
|---|
| 1361 | else | 
|---|
| 1362 | enable_fast_install=yes | 
|---|
| 1363 | fi | 
|---|
| 1364 |  | 
|---|
| 1365 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | 
|---|
| 1366 | if test "${with_gnu_ld+set}" = set; then | 
|---|
| 1367 | withval="$with_gnu_ld" | 
|---|
| 1368 | test "$withval" = no || with_gnu_ld=yes | 
|---|
| 1369 | else | 
|---|
| 1370 | with_gnu_ld=no | 
|---|
| 1371 | fi | 
|---|
| 1372 |  | 
|---|
| 1373 | ac_prog=ld | 
|---|
| 1374 | if test "$ac_cv_prog_gcc" = yes; then | 
|---|
| 1375 | # Check if gcc -print-prog-name=ld gives a path. | 
|---|
| 1376 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 | 
|---|
| 1377 | echo "configure:1378: checking for ld used by GCC" >&5 | 
|---|
| 1378 | case $host in | 
|---|
| 1379 | *-*-mingw*) | 
|---|
| 1380 | # gcc leaves a trailing carriage return which upsets mingw | 
|---|
| 1381 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | 
|---|
| 1382 | *) | 
|---|
| 1383 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | 
|---|
| 1384 | esac | 
|---|
| 1385 | case "$ac_prog" in | 
|---|
| 1386 | # Accept absolute paths. | 
|---|
| 1387 | [\\/]* | [A-Za-z]:[\\/]*) | 
|---|
| 1388 | re_direlt='/[^/][^/]*/\.\./' | 
|---|
| 1389 | # Canonicalize the path of ld | 
|---|
| 1390 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | 
|---|
| 1391 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | 
|---|
| 1392 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | 
|---|
| 1393 | done | 
|---|
| 1394 | test -z "$LD" && LD="$ac_prog" | 
|---|
| 1395 | ;; | 
|---|
| 1396 | "") | 
|---|
| 1397 | # If it fails, then pretend we aren't using GCC. | 
|---|
| 1398 | ac_prog=ld | 
|---|
| 1399 | ;; | 
|---|
| 1400 | *) | 
|---|
| 1401 | # If it is relative, then search for the first ld in PATH. | 
|---|
| 1402 | with_gnu_ld=unknown | 
|---|
| 1403 | ;; | 
|---|
| 1404 | esac | 
|---|
| 1405 | elif test "$with_gnu_ld" = yes; then | 
|---|
| 1406 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 | 
|---|
| 1407 | echo "configure:1408: checking for GNU ld" >&5 | 
|---|
| 1408 | else | 
|---|
| 1409 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 | 
|---|
| 1410 | echo "configure:1411: checking for non-GNU ld" >&5 | 
|---|
| 1411 | fi | 
|---|
| 1412 | if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then | 
|---|
| 1413 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1414 | else | 
|---|
| 1415 | if test -z "$LD"; then | 
|---|
| 1416 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | 
|---|
| 1417 | for ac_dir in $PATH; do | 
|---|
| 1418 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 1419 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | 
|---|
| 1420 | ac_cv_path_LD="$ac_dir/$ac_prog" | 
|---|
| 1421 | # Check to see if the program is GNU ld.  I'd rather use --version, | 
|---|
| 1422 | # but apparently some GNU ld's only accept -v. | 
|---|
| 1423 | # Break only if it was the GNU/non-GNU ld that we prefer. | 
|---|
| 1424 | if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | 
|---|
| 1425 | test "$with_gnu_ld" != no && break | 
|---|
| 1426 | else | 
|---|
| 1427 | test "$with_gnu_ld" != yes && break | 
|---|
| 1428 | fi | 
|---|
| 1429 | fi | 
|---|
| 1430 | done | 
|---|
| 1431 | IFS="$ac_save_ifs" | 
|---|
| 1432 | else | 
|---|
| 1433 | ac_cv_path_LD="$LD" # Let the user override the test with a path. | 
|---|
| 1434 | fi | 
|---|
| 1435 | fi | 
|---|
| 1436 |  | 
|---|
| 1437 | LD="$ac_cv_path_LD" | 
|---|
| 1438 | if test -n "$LD"; then | 
|---|
| 1439 | echo "$ac_t""$LD" 1>&6 | 
|---|
| 1440 | else | 
|---|
| 1441 | echo "$ac_t""no" 1>&6 | 
|---|
| 1442 | fi | 
|---|
| 1443 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } | 
|---|
| 1444 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 | 
|---|
| 1445 | echo "configure:1446: checking if the linker ($LD) is GNU ld" >&5 | 
|---|
| 1446 | if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then | 
|---|
| 1447 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1448 | else | 
|---|
| 1449 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | 
|---|
| 1450 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | 
|---|
| 1451 | ac_cv_prog_gnu_ld=yes | 
|---|
| 1452 | else | 
|---|
| 1453 | ac_cv_prog_gnu_ld=no | 
|---|
| 1454 | fi | 
|---|
| 1455 | fi | 
|---|
| 1456 |  | 
|---|
| 1457 | echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 | 
|---|
| 1458 | with_gnu_ld=$ac_cv_prog_gnu_ld | 
|---|
| 1459 |  | 
|---|
| 1460 |  | 
|---|
| 1461 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6 | 
|---|
| 1462 | echo "configure:1463: checking for $LD option to reload object files" >&5 | 
|---|
| 1463 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then | 
|---|
| 1464 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1465 | else | 
|---|
| 1466 | lt_cv_ld_reload_flag='-r' | 
|---|
| 1467 | fi | 
|---|
| 1468 |  | 
|---|
| 1469 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6 | 
|---|
| 1470 | reload_flag=$lt_cv_ld_reload_flag | 
|---|
| 1471 | test -n "$reload_flag" && reload_flag=" $reload_flag" | 
|---|
| 1472 |  | 
|---|
| 1473 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 | 
|---|
| 1474 | echo "configure:1475: checking for BSD-compatible nm" >&5 | 
|---|
| 1475 | if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then | 
|---|
| 1476 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1477 | else | 
|---|
| 1478 | if test -n "$NM"; then | 
|---|
| 1479 | # Let the user override the test. | 
|---|
| 1480 | ac_cv_path_NM="$NM" | 
|---|
| 1481 | else | 
|---|
| 1482 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | 
|---|
| 1483 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | 
|---|
| 1484 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 1485 | tmp_nm=$ac_dir/${ac_tool_prefix}nm | 
|---|
| 1486 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | 
|---|
| 1487 | # Check to see if the nm accepts a BSD-compat flag. | 
|---|
| 1488 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | 
|---|
| 1489 | #   nm: unknown option "B" ignored | 
|---|
| 1490 | # Tru64's nm complains that /dev/null is an invalid object file | 
|---|
| 1491 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | 
|---|
| 1492 | ac_cv_path_NM="$tmp_nm -B" | 
|---|
| 1493 | break | 
|---|
| 1494 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | 
|---|
| 1495 | ac_cv_path_NM="$tmp_nm -p" | 
|---|
| 1496 | break | 
|---|
| 1497 | else | 
|---|
| 1498 | ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but | 
|---|
| 1499 | continue # so that we can try to find one that supports BSD flags | 
|---|
| 1500 | fi | 
|---|
| 1501 | fi | 
|---|
| 1502 | done | 
|---|
| 1503 | IFS="$ac_save_ifs" | 
|---|
| 1504 | test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm | 
|---|
| 1505 | fi | 
|---|
| 1506 | fi | 
|---|
| 1507 |  | 
|---|
| 1508 | NM="$ac_cv_path_NM" | 
|---|
| 1509 | echo "$ac_t""$NM" 1>&6 | 
|---|
| 1510 |  | 
|---|
| 1511 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | 
|---|
| 1512 | echo "configure:1513: checking whether ln -s works" >&5 | 
|---|
| 1513 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then | 
|---|
| 1514 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1515 | else | 
|---|
| 1516 | rm -f conftestdata | 
|---|
| 1517 | if ln -s X conftestdata 2>/dev/null | 
|---|
| 1518 | then | 
|---|
| 1519 | rm -f conftestdata | 
|---|
| 1520 | ac_cv_prog_LN_S="ln -s" | 
|---|
| 1521 | else | 
|---|
| 1522 | echo A > conftestdata; | 
|---|
| 1523 | if ln conftestdata conftestdata2 2>/dev/null; then | 
|---|
| 1524 | ac_cv_prog_LN_S=ln | 
|---|
| 1525 | else | 
|---|
| 1526 | ac_cv_prog_LN_S=cp | 
|---|
| 1527 | fi | 
|---|
| 1528 | fi | 
|---|
| 1529 | rm -f conftestdata* | 
|---|
| 1530 | fi | 
|---|
| 1531 | LN_S="$ac_cv_prog_LN_S" | 
|---|
| 1532 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | 
|---|
| 1533 | echo "$ac_t""yes" 1>&6 | 
|---|
| 1534 | else | 
|---|
| 1535 | echo "$ac_t""no" 1>&6 | 
|---|
| 1536 | fi | 
|---|
| 1537 |  | 
|---|
| 1538 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 | 
|---|
| 1539 | echo "configure:1540: checking how to recognise dependant libraries" >&5 | 
|---|
| 1540 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then | 
|---|
| 1541 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1542 | else | 
|---|
| 1543 | lt_cv_file_magic_cmd='$MAGIC_CMD' | 
|---|
| 1544 | lt_cv_file_magic_test_file= | 
|---|
| 1545 | lt_cv_deplibs_check_method='unknown' | 
|---|
| 1546 | # Need to set the preceding variable on all platforms that support | 
|---|
| 1547 | # interlibrary dependencies. | 
|---|
| 1548 | # 'none' -- dependencies not supported. | 
|---|
| 1549 | # `unknown' -- same as none, but documents that we really don't know. | 
|---|
| 1550 | # 'pass_all' -- all dependencies passed with no checks. | 
|---|
| 1551 | # 'test_compile' -- check by making test program. | 
|---|
| 1552 | # 'file_magic [regex]' -- check by looking for files in library path | 
|---|
| 1553 | # which responds to the $file_magic_cmd with a given egrep regex. | 
|---|
| 1554 | # If you have `file' or equivalent on your system and you're not sure | 
|---|
| 1555 | # whether `pass_all' will *always* work, you probably want this one. | 
|---|
| 1556 |  | 
|---|
| 1557 | case "$host_os" in | 
|---|
| 1558 | aix4*) | 
|---|
| 1559 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 1560 | ;; | 
|---|
| 1561 |  | 
|---|
| 1562 | beos*) | 
|---|
| 1563 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 1564 | ;; | 
|---|
| 1565 |  | 
|---|
| 1566 | bsdi4*) | 
|---|
| 1567 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | 
|---|
| 1568 | lt_cv_file_magic_cmd='/usr/bin/file -L' | 
|---|
| 1569 | lt_cv_file_magic_test_file=/shlib/libc.so | 
|---|
| 1570 | ;; | 
|---|
| 1571 |  | 
|---|
| 1572 | cygwin* | mingw* |pw32*) | 
|---|
| 1573 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | 
|---|
| 1574 | lt_cv_file_magic_cmd='$OBJDUMP -f' | 
|---|
| 1575 | ;; | 
|---|
| 1576 |  | 
|---|
| 1577 | freebsd* ) | 
|---|
| 1578 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 
|---|
| 1579 | case "$host_cpu" in | 
|---|
| 1580 | i*86 ) | 
|---|
| 1581 | # Not sure whether the presence of OpenBSD here was a mistake. | 
|---|
| 1582 | # Let's accept both of them until this is cleared up. | 
|---|
| 1583 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | 
|---|
| 1584 | lt_cv_file_magic_cmd=/usr/bin/file | 
|---|
| 1585 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | 
|---|
| 1586 | ;; | 
|---|
| 1587 | esac | 
|---|
| 1588 | else | 
|---|
| 1589 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 1590 | fi | 
|---|
| 1591 | ;; | 
|---|
| 1592 |  | 
|---|
| 1593 | gnu*) | 
|---|
| 1594 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 1595 | ;; | 
|---|
| 1596 |  | 
|---|
| 1597 | hpux10.20*) | 
|---|
| 1598 | # TODO:  Does this work for hpux-11 too? | 
|---|
| 1599 | lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library' | 
|---|
| 1600 | lt_cv_file_magic_cmd=/usr/bin/file | 
|---|
| 1601 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | 
|---|
| 1602 | ;; | 
|---|
| 1603 |  | 
|---|
| 1604 | irix5* | irix6*) | 
|---|
| 1605 | case "$host_os" in | 
|---|
| 1606 | irix5*) | 
|---|
| 1607 | # this will be overridden with pass_all, but let us keep it just in case | 
|---|
| 1608 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | 
|---|
| 1609 | ;; | 
|---|
| 1610 | *) | 
|---|
| 1611 | case "$LD" in | 
|---|
| 1612 | *-32|*"-32 ") libmagic=32-bit;; | 
|---|
| 1613 | *-n32|*"-n32 ") libmagic=N32;; | 
|---|
| 1614 | *-64|*"-64 ") libmagic=64-bit;; | 
|---|
| 1615 | *) libmagic=never-match;; | 
|---|
| 1616 | esac | 
|---|
| 1617 | # this will be overridden with pass_all, but let us keep it just in case | 
|---|
| 1618 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" | 
|---|
| 1619 | ;; | 
|---|
| 1620 | esac | 
|---|
| 1621 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | 
|---|
| 1622 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 1623 | ;; | 
|---|
| 1624 |  | 
|---|
| 1625 | # This must be Linux ELF. | 
|---|
| 1626 | linux-gnu*) | 
|---|
| 1627 | case "$host_cpu" in | 
|---|
| 1628 | alpha* | i*86 | powerpc* | sparc* | ia64* ) | 
|---|
| 1629 | lt_cv_deplibs_check_method=pass_all ;; | 
|---|
| 1630 | *) | 
|---|
| 1631 | # glibc up to 2.1.1 does not perform some relocations on ARM | 
|---|
| 1632 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; | 
|---|
| 1633 | esac | 
|---|
| 1634 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` | 
|---|
| 1635 | ;; | 
|---|
| 1636 |  | 
|---|
| 1637 | netbsd*) | 
|---|
| 1638 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then : | 
|---|
| 1639 | else | 
|---|
| 1640 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' | 
|---|
| 1641 | lt_cv_file_magic_cmd='/usr/bin/file -L' | 
|---|
| 1642 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | 
|---|
| 1643 | fi | 
|---|
| 1644 | ;; | 
|---|
| 1645 |  | 
|---|
| 1646 | osf3* | osf4* | osf5*) | 
|---|
| 1647 | # this will be overridden with pass_all, but let us keep it just in case | 
|---|
| 1648 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | 
|---|
| 1649 | lt_cv_file_magic_test_file=/shlib/libc.so | 
|---|
| 1650 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 1651 | ;; | 
|---|
| 1652 |  | 
|---|
| 1653 | sco3.2v5*) | 
|---|
| 1654 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 1655 | ;; | 
|---|
| 1656 |  | 
|---|
| 1657 | solaris*) | 
|---|
| 1658 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 1659 | lt_cv_file_magic_test_file=/lib/libc.so | 
|---|
| 1660 | ;; | 
|---|
| 1661 |  | 
|---|
| 1662 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
|---|
| 1663 | case "$host_vendor" in | 
|---|
| 1664 | ncr) | 
|---|
| 1665 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 1666 | ;; | 
|---|
| 1667 | motorola) | 
|---|
| 1668 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' | 
|---|
| 1669 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | 
|---|
| 1670 | ;; | 
|---|
| 1671 | esac | 
|---|
| 1672 | ;; | 
|---|
| 1673 | esac | 
|---|
| 1674 |  | 
|---|
| 1675 | fi | 
|---|
| 1676 |  | 
|---|
| 1677 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6 | 
|---|
| 1678 | file_magic_cmd=$lt_cv_file_magic_cmd | 
|---|
| 1679 | deplibs_check_method=$lt_cv_deplibs_check_method | 
|---|
| 1680 |  | 
|---|
| 1681 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6 | 
|---|
| 1682 | echo "configure:1683: checking for object suffix" >&5 | 
|---|
| 1683 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then | 
|---|
| 1684 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1685 | else | 
|---|
| 1686 | rm -f conftest* | 
|---|
| 1687 | echo 'int i = 1;' > conftest.$ac_ext | 
|---|
| 1688 | if { (eval echo configure:1689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 1689 | for ac_file in conftest.*; do | 
|---|
| 1690 | case $ac_file in | 
|---|
| 1691 | *.c) ;; | 
|---|
| 1692 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; | 
|---|
| 1693 | esac | 
|---|
| 1694 | done | 
|---|
| 1695 | else | 
|---|
| 1696 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } | 
|---|
| 1697 | fi | 
|---|
| 1698 | rm -f conftest* | 
|---|
| 1699 | fi | 
|---|
| 1700 |  | 
|---|
| 1701 | echo "$ac_t""$ac_cv_objext" 1>&6 | 
|---|
| 1702 | OBJEXT=$ac_cv_objext | 
|---|
| 1703 | ac_objext=$ac_cv_objext | 
|---|
| 1704 |  | 
|---|
| 1705 | if test $host != $build; then | 
|---|
| 1706 | ac_tool_prefix=${host_alias}- | 
|---|
| 1707 | else | 
|---|
| 1708 | ac_tool_prefix= | 
|---|
| 1709 | fi | 
|---|
| 1710 |  | 
|---|
| 1711 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | 
|---|
| 1712 |  | 
|---|
| 1713 | # Only perform the check for file, if the check method requires it | 
|---|
| 1714 | case "$deplibs_check_method" in | 
|---|
| 1715 | file_magic*) | 
|---|
| 1716 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | 
|---|
| 1717 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 | 
|---|
| 1718 | echo "configure:1719: checking for ${ac_tool_prefix}file" >&5 | 
|---|
| 1719 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then | 
|---|
| 1720 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1721 | else | 
|---|
| 1722 | case "$MAGIC_CMD" in | 
|---|
| 1723 | /*) | 
|---|
| 1724 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 
|---|
| 1725 | ;; | 
|---|
| 1726 | ?:/*) | 
|---|
| 1727 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | 
|---|
| 1728 | ;; | 
|---|
| 1729 | *) | 
|---|
| 1730 | ac_save_MAGIC_CMD="$MAGIC_CMD" | 
|---|
| 1731 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" | 
|---|
| 1732 | ac_dummy="/usr/bin:$PATH" | 
|---|
| 1733 | for ac_dir in $ac_dummy; do | 
|---|
| 1734 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 1735 | if test -f $ac_dir/${ac_tool_prefix}file; then | 
|---|
| 1736 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | 
|---|
| 1737 | if test -n "$file_magic_test_file"; then | 
|---|
| 1738 | case "$deplibs_check_method" in | 
|---|
| 1739 | "file_magic "*) | 
|---|
| 1740 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | 
|---|
| 1741 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|---|
| 1742 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 
|---|
| 1743 | egrep "$file_magic_regex" > /dev/null; then | 
|---|
| 1744 | : | 
|---|
| 1745 | else | 
|---|
| 1746 | cat <<EOF 1>&2 | 
|---|
| 1747 |  | 
|---|
| 1748 | *** Warning: the command libtool uses to detect shared libraries, | 
|---|
| 1749 | *** $file_magic_cmd, produces output that libtool cannot recognize. | 
|---|
| 1750 | *** The result is that libtool may fail to recognize shared libraries | 
|---|
| 1751 | *** as such.  This will affect the creation of libtool libraries that | 
|---|
| 1752 | *** depend on shared libraries, but programs linked with such libtool | 
|---|
| 1753 | *** libraries will work regardless of this problem.  Nevertheless, you | 
|---|
| 1754 | *** may want to report the problem to your system manager and/or to | 
|---|
| 1755 | *** bug-libtool@gnu.org | 
|---|
| 1756 |  | 
|---|
| 1757 | EOF | 
|---|
| 1758 | fi ;; | 
|---|
| 1759 | esac | 
|---|
| 1760 | fi | 
|---|
| 1761 | break | 
|---|
| 1762 | fi | 
|---|
| 1763 | done | 
|---|
| 1764 | IFS="$ac_save_ifs" | 
|---|
| 1765 | MAGIC_CMD="$ac_save_MAGIC_CMD" | 
|---|
| 1766 | ;; | 
|---|
| 1767 | esac | 
|---|
| 1768 | fi | 
|---|
| 1769 |  | 
|---|
| 1770 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|---|
| 1771 | if test -n "$MAGIC_CMD"; then | 
|---|
| 1772 | echo "$ac_t""$MAGIC_CMD" 1>&6 | 
|---|
| 1773 | else | 
|---|
| 1774 | echo "$ac_t""no" 1>&6 | 
|---|
| 1775 | fi | 
|---|
| 1776 |  | 
|---|
| 1777 | if test -z "$lt_cv_path_MAGIC_CMD"; then | 
|---|
| 1778 | if test -n "$ac_tool_prefix"; then | 
|---|
| 1779 | echo $ac_n "checking for file""... $ac_c" 1>&6 | 
|---|
| 1780 | echo "configure:1781: checking for file" >&5 | 
|---|
| 1781 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then | 
|---|
| 1782 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1783 | else | 
|---|
| 1784 | case "$MAGIC_CMD" in | 
|---|
| 1785 | /*) | 
|---|
| 1786 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 
|---|
| 1787 | ;; | 
|---|
| 1788 | ?:/*) | 
|---|
| 1789 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | 
|---|
| 1790 | ;; | 
|---|
| 1791 | *) | 
|---|
| 1792 | ac_save_MAGIC_CMD="$MAGIC_CMD" | 
|---|
| 1793 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" | 
|---|
| 1794 | ac_dummy="/usr/bin:$PATH" | 
|---|
| 1795 | for ac_dir in $ac_dummy; do | 
|---|
| 1796 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 1797 | if test -f $ac_dir/file; then | 
|---|
| 1798 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | 
|---|
| 1799 | if test -n "$file_magic_test_file"; then | 
|---|
| 1800 | case "$deplibs_check_method" in | 
|---|
| 1801 | "file_magic "*) | 
|---|
| 1802 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | 
|---|
| 1803 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|---|
| 1804 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 
|---|
| 1805 | egrep "$file_magic_regex" > /dev/null; then | 
|---|
| 1806 | : | 
|---|
| 1807 | else | 
|---|
| 1808 | cat <<EOF 1>&2 | 
|---|
| 1809 |  | 
|---|
| 1810 | *** Warning: the command libtool uses to detect shared libraries, | 
|---|
| 1811 | *** $file_magic_cmd, produces output that libtool cannot recognize. | 
|---|
| 1812 | *** The result is that libtool may fail to recognize shared libraries | 
|---|
| 1813 | *** as such.  This will affect the creation of libtool libraries that | 
|---|
| 1814 | *** depend on shared libraries, but programs linked with such libtool | 
|---|
| 1815 | *** libraries will work regardless of this problem.  Nevertheless, you | 
|---|
| 1816 | *** may want to report the problem to your system manager and/or to | 
|---|
| 1817 | *** bug-libtool@gnu.org | 
|---|
| 1818 |  | 
|---|
| 1819 | EOF | 
|---|
| 1820 | fi ;; | 
|---|
| 1821 | esac | 
|---|
| 1822 | fi | 
|---|
| 1823 | break | 
|---|
| 1824 | fi | 
|---|
| 1825 | done | 
|---|
| 1826 | IFS="$ac_save_ifs" | 
|---|
| 1827 | MAGIC_CMD="$ac_save_MAGIC_CMD" | 
|---|
| 1828 | ;; | 
|---|
| 1829 | esac | 
|---|
| 1830 | fi | 
|---|
| 1831 |  | 
|---|
| 1832 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|---|
| 1833 | if test -n "$MAGIC_CMD"; then | 
|---|
| 1834 | echo "$ac_t""$MAGIC_CMD" 1>&6 | 
|---|
| 1835 | else | 
|---|
| 1836 | echo "$ac_t""no" 1>&6 | 
|---|
| 1837 | fi | 
|---|
| 1838 |  | 
|---|
| 1839 | else | 
|---|
| 1840 | MAGIC_CMD=: | 
|---|
| 1841 | fi | 
|---|
| 1842 | fi | 
|---|
| 1843 |  | 
|---|
| 1844 | fi | 
|---|
| 1845 | ;; | 
|---|
| 1846 | esac | 
|---|
| 1847 |  | 
|---|
| 1848 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
|---|
| 1849 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
|---|
| 1850 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 1851 | echo "configure:1852: checking for $ac_word" >&5 | 
|---|
| 1852 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | 
|---|
| 1853 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1854 | else | 
|---|
| 1855 | if test -n "$RANLIB"; then | 
|---|
| 1856 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
|---|
| 1857 | else | 
|---|
| 1858 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 1859 | ac_dummy="$PATH" | 
|---|
| 1860 | for ac_dir in $ac_dummy; do | 
|---|
| 1861 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 1862 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 1863 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 1864 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
|---|
| 1865 | break | 
|---|
| 1866 | fi | 
|---|
| 1867 | done | 
|---|
| 1868 | IFS="$ac_save_ifs" | 
|---|
| 1869 | fi | 
|---|
| 1870 | fi | 
|---|
| 1871 | RANLIB="$ac_cv_prog_RANLIB" | 
|---|
| 1872 | if test -n "$RANLIB"; then | 
|---|
| 1873 | echo "$ac_t""$RANLIB" 1>&6 | 
|---|
| 1874 | else | 
|---|
| 1875 | echo "$ac_t""no" 1>&6 | 
|---|
| 1876 | fi | 
|---|
| 1877 |  | 
|---|
| 1878 |  | 
|---|
| 1879 | if test -z "$ac_cv_prog_RANLIB"; then | 
|---|
| 1880 | if test -n "$ac_tool_prefix"; then | 
|---|
| 1881 | # Extract the first word of "ranlib", so it can be a program name with args. | 
|---|
| 1882 | set dummy ranlib; ac_word=$2 | 
|---|
| 1883 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 1884 | echo "configure:1885: checking for $ac_word" >&5 | 
|---|
| 1885 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | 
|---|
| 1886 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1887 | else | 
|---|
| 1888 | if test -n "$RANLIB"; then | 
|---|
| 1889 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
|---|
| 1890 | else | 
|---|
| 1891 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 1892 | ac_dummy="$PATH" | 
|---|
| 1893 | for ac_dir in $ac_dummy; do | 
|---|
| 1894 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 1895 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 1896 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 1897 | ac_cv_prog_RANLIB="ranlib" | 
|---|
| 1898 | break | 
|---|
| 1899 | fi | 
|---|
| 1900 | done | 
|---|
| 1901 | IFS="$ac_save_ifs" | 
|---|
| 1902 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | 
|---|
| 1903 | fi | 
|---|
| 1904 | fi | 
|---|
| 1905 | RANLIB="$ac_cv_prog_RANLIB" | 
|---|
| 1906 | if test -n "$RANLIB"; then | 
|---|
| 1907 | echo "$ac_t""$RANLIB" 1>&6 | 
|---|
| 1908 | else | 
|---|
| 1909 | echo "$ac_t""no" 1>&6 | 
|---|
| 1910 | fi | 
|---|
| 1911 |  | 
|---|
| 1912 | else | 
|---|
| 1913 | RANLIB=":" | 
|---|
| 1914 | fi | 
|---|
| 1915 | fi | 
|---|
| 1916 |  | 
|---|
| 1917 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | 
|---|
| 1918 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | 
|---|
| 1919 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 1920 | echo "configure:1921: checking for $ac_word" >&5 | 
|---|
| 1921 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then | 
|---|
| 1922 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1923 | else | 
|---|
| 1924 | if test -n "$STRIP"; then | 
|---|
| 1925 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | 
|---|
| 1926 | else | 
|---|
| 1927 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 1928 | ac_dummy="$PATH" | 
|---|
| 1929 | for ac_dir in $ac_dummy; do | 
|---|
| 1930 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 1931 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 1932 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 1933 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | 
|---|
| 1934 | break | 
|---|
| 1935 | fi | 
|---|
| 1936 | done | 
|---|
| 1937 | IFS="$ac_save_ifs" | 
|---|
| 1938 | fi | 
|---|
| 1939 | fi | 
|---|
| 1940 | STRIP="$ac_cv_prog_STRIP" | 
|---|
| 1941 | if test -n "$STRIP"; then | 
|---|
| 1942 | echo "$ac_t""$STRIP" 1>&6 | 
|---|
| 1943 | else | 
|---|
| 1944 | echo "$ac_t""no" 1>&6 | 
|---|
| 1945 | fi | 
|---|
| 1946 |  | 
|---|
| 1947 |  | 
|---|
| 1948 | if test -z "$ac_cv_prog_STRIP"; then | 
|---|
| 1949 | if test -n "$ac_tool_prefix"; then | 
|---|
| 1950 | # Extract the first word of "strip", so it can be a program name with args. | 
|---|
| 1951 | set dummy strip; ac_word=$2 | 
|---|
| 1952 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 1953 | echo "configure:1954: checking for $ac_word" >&5 | 
|---|
| 1954 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then | 
|---|
| 1955 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1956 | else | 
|---|
| 1957 | if test -n "$STRIP"; then | 
|---|
| 1958 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | 
|---|
| 1959 | else | 
|---|
| 1960 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 1961 | ac_dummy="$PATH" | 
|---|
| 1962 | for ac_dir in $ac_dummy; do | 
|---|
| 1963 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 1964 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 1965 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 1966 | ac_cv_prog_STRIP="strip" | 
|---|
| 1967 | break | 
|---|
| 1968 | fi | 
|---|
| 1969 | done | 
|---|
| 1970 | IFS="$ac_save_ifs" | 
|---|
| 1971 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" | 
|---|
| 1972 | fi | 
|---|
| 1973 | fi | 
|---|
| 1974 | STRIP="$ac_cv_prog_STRIP" | 
|---|
| 1975 | if test -n "$STRIP"; then | 
|---|
| 1976 | echo "$ac_t""$STRIP" 1>&6 | 
|---|
| 1977 | else | 
|---|
| 1978 | echo "$ac_t""no" 1>&6 | 
|---|
| 1979 | fi | 
|---|
| 1980 |  | 
|---|
| 1981 | else | 
|---|
| 1982 | STRIP=":" | 
|---|
| 1983 | fi | 
|---|
| 1984 | fi | 
|---|
| 1985 |  | 
|---|
| 1986 |  | 
|---|
| 1987 | # Check for any special flags to pass to ltconfig. | 
|---|
| 1988 | libtool_flags="--cache-file=$cache_file" | 
|---|
| 1989 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | 
|---|
| 1990 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | 
|---|
| 1991 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | 
|---|
| 1992 | test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" | 
|---|
| 1993 | test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | 
|---|
| 1994 |  | 
|---|
| 1995 |  | 
|---|
| 1996 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | 
|---|
| 1997 | if test "${enable_libtool_lock+set}" = set; then | 
|---|
| 1998 | enableval="$enable_libtool_lock" | 
|---|
| 1999 | : | 
|---|
| 2000 | fi | 
|---|
| 2001 |  | 
|---|
| 2002 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" | 
|---|
| 2003 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | 
|---|
| 2004 |  | 
|---|
| 2005 | # Check whether --with-pic or --without-pic was given. | 
|---|
| 2006 | if test "${with_pic+set}" = set; then | 
|---|
| 2007 | withval="$with_pic" | 
|---|
| 2008 | pic_mode="$withval" | 
|---|
| 2009 | else | 
|---|
| 2010 | pic_mode=default | 
|---|
| 2011 | fi | 
|---|
| 2012 |  | 
|---|
| 2013 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" | 
|---|
| 2014 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | 
|---|
| 2015 |  | 
|---|
| 2016 | # Some flags need to be propagated to the compiler or linker for good | 
|---|
| 2017 | # libtool support. | 
|---|
| 2018 | case "$host" in | 
|---|
| 2019 | *-*-irix6*) | 
|---|
| 2020 | # Find out which ABI we are using. | 
|---|
| 2021 | echo '#line 2022 "configure"' > conftest.$ac_ext | 
|---|
| 2022 | if { (eval echo configure:2023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 2023 | case "`/usr/bin/file conftest.o`" in | 
|---|
| 2024 | *32-bit*) | 
|---|
| 2025 | LD="${LD-ld} -32" | 
|---|
| 2026 | ;; | 
|---|
| 2027 | *N32*) | 
|---|
| 2028 | LD="${LD-ld} -n32" | 
|---|
| 2029 | ;; | 
|---|
| 2030 | *64-bit*) | 
|---|
| 2031 | LD="${LD-ld} -64" | 
|---|
| 2032 | ;; | 
|---|
| 2033 | esac | 
|---|
| 2034 | fi | 
|---|
| 2035 | rm -rf conftest* | 
|---|
| 2036 | ;; | 
|---|
| 2037 |  | 
|---|
| 2038 | *-*-sco3.2v5*) | 
|---|
| 2039 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | 
|---|
| 2040 | SAVE_CFLAGS="$CFLAGS" | 
|---|
| 2041 | CFLAGS="$CFLAGS -belf" | 
|---|
| 2042 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 | 
|---|
| 2043 | echo "configure:2044: checking whether the C compiler needs -belf" >&5 | 
|---|
| 2044 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then | 
|---|
| 2045 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 2046 | else | 
|---|
| 2047 |  | 
|---|
| 2048 | ac_ext=c | 
|---|
| 2049 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
|---|
| 2050 | ac_cpp='$CPP $CPPFLAGS' | 
|---|
| 2051 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
|---|
| 2052 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
|---|
| 2053 | cross_compiling=$ac_cv_prog_cc_cross | 
|---|
| 2054 |  | 
|---|
| 2055 | cat > conftest.$ac_ext <<EOF | 
|---|
| 2056 | #line 2057 "configure" | 
|---|
| 2057 | #include "confdefs.h" | 
|---|
| 2058 |  | 
|---|
| 2059 | int main() { | 
|---|
| 2060 |  | 
|---|
| 2061 | ; return 0; } | 
|---|
| 2062 | EOF | 
|---|
| 2063 | if { (eval echo configure:2064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 2064 | rm -rf conftest* | 
|---|
| 2065 | lt_cv_cc_needs_belf=yes | 
|---|
| 2066 | else | 
|---|
| 2067 | echo "configure: failed program was:" >&5 | 
|---|
| 2068 | cat conftest.$ac_ext >&5 | 
|---|
| 2069 | rm -rf conftest* | 
|---|
| 2070 | lt_cv_cc_needs_belf=no | 
|---|
| 2071 | fi | 
|---|
| 2072 | rm -f conftest* | 
|---|
| 2073 | ac_ext=c | 
|---|
| 2074 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
|---|
| 2075 | ac_cpp='$CPP $CPPFLAGS' | 
|---|
| 2076 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
|---|
| 2077 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
|---|
| 2078 | cross_compiling=$ac_cv_prog_cc_cross | 
|---|
| 2079 |  | 
|---|
| 2080 | fi | 
|---|
| 2081 |  | 
|---|
| 2082 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 | 
|---|
| 2083 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | 
|---|
| 2084 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | 
|---|
| 2085 | CFLAGS="$SAVE_CFLAGS" | 
|---|
| 2086 | fi | 
|---|
| 2087 | ;; | 
|---|
| 2088 |  | 
|---|
| 2089 |  | 
|---|
| 2090 | esac | 
|---|
| 2091 |  | 
|---|
| 2092 |  | 
|---|
| 2093 | # Save cache, so that ltconfig can load it | 
|---|
| 2094 | cat > confcache <<\EOF | 
|---|
| 2095 | # This file is a shell script that caches the results of configure | 
|---|
| 2096 | # tests run on this system so they can be shared between configure | 
|---|
| 2097 | # scripts and configure runs.  It is not useful on other systems. | 
|---|
| 2098 | # If it contains results you don't want to keep, you may remove or edit it. | 
|---|
| 2099 | # | 
|---|
| 2100 | # By default, configure uses ./config.cache as the cache file, | 
|---|
| 2101 | # creating it if it does not exist already.  You can give configure | 
|---|
| 2102 | # the --cache-file=FILE option to use a different cache file; that is | 
|---|
| 2103 | # what configure does when it calls configure scripts in | 
|---|
| 2104 | # subdirectories, so they share the cache. | 
|---|
| 2105 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | 
|---|
| 2106 | # config.status only pays attention to the cache file if you give it the | 
|---|
| 2107 | # --recheck option to rerun configure. | 
|---|
| 2108 | # | 
|---|
| 2109 | EOF | 
|---|
| 2110 | # The following way of writing the cache mishandles newlines in values, | 
|---|
| 2111 | # but we know of no workaround that is simple, portable, and efficient. | 
|---|
| 2112 | # So, don't put newlines in cache variables' values. | 
|---|
| 2113 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
|---|
| 2114 | # and sets the high bit in the cache file unless we assign to the vars. | 
|---|
| 2115 | (set) 2>&1 | | 
|---|
| 2116 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | 
|---|
| 2117 | *ac_space=\ *) | 
|---|
| 2118 | # `set' does not quote correctly, so add quotes (double-quote substitution | 
|---|
| 2119 | # turns \\\\ into \\, and sed turns \\ into \). | 
|---|
| 2120 | sed -n \ | 
|---|
| 2121 | -e "s/'/'\\\\''/g" \ | 
|---|
| 2122 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | 
|---|
| 2123 | ;; | 
|---|
| 2124 | *) | 
|---|
| 2125 | # `set' quotes correctly as required by POSIX, so do not add quotes. | 
|---|
| 2126 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | 
|---|
| 2127 | ;; | 
|---|
| 2128 | esac >> confcache | 
|---|
| 2129 | if cmp -s $cache_file confcache; then | 
|---|
| 2130 | : | 
|---|
| 2131 | else | 
|---|
| 2132 | if test -w $cache_file; then | 
|---|
| 2133 | echo "updating cache $cache_file" | 
|---|
| 2134 | cat confcache > $cache_file | 
|---|
| 2135 | else | 
|---|
| 2136 | echo "not updating unwritable cache $cache_file" | 
|---|
| 2137 | fi | 
|---|
| 2138 | fi | 
|---|
| 2139 | rm -f confcache | 
|---|
| 2140 |  | 
|---|
| 2141 |  | 
|---|
| 2142 | # Actually configure libtool.  ac_aux_dir is where install-sh is found. | 
|---|
| 2143 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ | 
|---|
| 2144 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ | 
|---|
| 2145 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ | 
|---|
| 2146 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | 
|---|
| 2147 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | 
|---|
| 2148 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | 
|---|
| 2149 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ | 
|---|
| 2150 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ | 
|---|
| 2151 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } | 
|---|
| 2152 |  | 
|---|
| 2153 | # Reload cache, that may have been modified by ltconfig | 
|---|
| 2154 | if test -r "$cache_file"; then | 
|---|
| 2155 | echo "loading cache $cache_file" | 
|---|
| 2156 | . $cache_file | 
|---|
| 2157 | else | 
|---|
| 2158 | echo "creating cache $cache_file" | 
|---|
| 2159 | > $cache_file | 
|---|
| 2160 | fi | 
|---|
| 2161 |  | 
|---|
| 2162 |  | 
|---|
| 2163 | # This can be used to rebuild libtool when needed | 
|---|
| 2164 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" | 
|---|
| 2165 |  | 
|---|
| 2166 | # Always use our own libtool. | 
|---|
| 2167 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | 
|---|
| 2168 |  | 
|---|
| 2169 | # Redirect the config.log output again, so that the ltconfig log is not | 
|---|
| 2170 | # clobbered by the next message. | 
|---|
| 2171 | exec 5>>./config.log | 
|---|
| 2172 |  | 
|---|
| 2173 |  | 
|---|
| 2174 |  | 
|---|
| 2175 |  | 
|---|
| 2176 |  | 
|---|
| 2177 |  | 
|---|
| 2178 |  | 
|---|
| 2179 |  | 
|---|
| 2180 | user_bfd_gas= | 
|---|
| 2181 | # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given. | 
|---|
| 2182 | if test "${enable_bfd_assembler+set}" = set; then | 
|---|
| 2183 | enableval="$enable_bfd_assembler" | 
|---|
| 2184 | case "${enableval}" in | 
|---|
| 2185 | yes) need_bfd=yes user_bfd_gas=yes ;; | 
|---|
| 2186 | no)  user_bfd_gas=no ;; | 
|---|
| 2187 | *)   { echo "configure: error: bad value ${enableval} given for bfd-assembler option" 1>&2; exit 1; } ;; | 
|---|
| 2188 | esac | 
|---|
| 2189 | fi | 
|---|
| 2190 | # Check whether --enable-targets or --disable-targets was given. | 
|---|
| 2191 | if test "${enable_targets+set}" = set; then | 
|---|
| 2192 | enableval="$enable_targets" | 
|---|
| 2193 | case "${enableval}" in | 
|---|
| 2194 | yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; } | 
|---|
| 2195 | ;; | 
|---|
| 2196 | no)       enable_targets= ;; | 
|---|
| 2197 | *)        enable_targets=$enableval ;; | 
|---|
| 2198 | esac | 
|---|
| 2199 | fi | 
|---|
| 2200 | # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given. | 
|---|
| 2201 | if test "${enable_commonbfdlib+set}" = set; then | 
|---|
| 2202 | enableval="$enable_commonbfdlib" | 
|---|
| 2203 | case "${enableval}" in | 
|---|
| 2204 | yes) commonbfdlib=true ;; | 
|---|
| 2205 | no)  commonbfdlib=false ;; | 
|---|
| 2206 | *)   { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;; | 
|---|
| 2207 | esac | 
|---|
| 2208 | fi | 
|---|
| 2209 |  | 
|---|
| 2210 | using_cgen=no | 
|---|
| 2211 |  | 
|---|
| 2212 | build_warnings="-W -Wall" | 
|---|
| 2213 | # Check whether --enable-build-warnings or --disable-build-warnings was given. | 
|---|
| 2214 | if test "${enable_build_warnings+set}" = set; then | 
|---|
| 2215 | enableval="$enable_build_warnings" | 
|---|
| 2216 | case "${enableval}" in | 
|---|
| 2217 | yes)  ;; | 
|---|
| 2218 | no)   build_warnings="-w";; | 
|---|
| 2219 | ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"` | 
|---|
| 2220 | build_warnings="${build_warnings} ${t}";; | 
|---|
| 2221 | *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"` | 
|---|
| 2222 | build_warnings="${t} ${build_warnings}";; | 
|---|
| 2223 | *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | 
|---|
| 2224 | esac | 
|---|
| 2225 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | 
|---|
| 2226 | echo "Setting warning flags = $build_warnings" 6>&1 | 
|---|
| 2227 | fi | 
|---|
| 2228 | fi | 
|---|
| 2229 | WARN_CFLAGS="" | 
|---|
| 2230 | if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then | 
|---|
| 2231 | WARN_CFLAGS="${build_warnings}" | 
|---|
| 2232 | fi | 
|---|
| 2233 |  | 
|---|
| 2234 |  | 
|---|
| 2235 | # Generate a header file | 
|---|
| 2236 |  | 
|---|
| 2237 |  | 
|---|
| 2238 |  | 
|---|
| 2239 |  | 
|---|
| 2240 | # If we are on a DOS filesystem, we must use gdb.ini rather than | 
|---|
| 2241 | # .gdbinit. | 
|---|
| 2242 | GDBINIT=".gdbinit" | 
|---|
| 2243 | case "${host}" in | 
|---|
| 2244 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) | 
|---|
| 2245 | GDBINIT="gdb.ini" | 
|---|
| 2246 | ;; | 
|---|
| 2247 | esac | 
|---|
| 2248 |  | 
|---|
| 2249 |  | 
|---|
| 2250 | te_file=generic | 
|---|
| 2251 |  | 
|---|
| 2252 | # Makefile target for installing gas in $(tooldir)/bin. | 
|---|
| 2253 | install_tooldir=install-exec-tooldir | 
|---|
| 2254 |  | 
|---|
| 2255 | canon_targets="" | 
|---|
| 2256 | all_targets=no | 
|---|
| 2257 | if test -n "$enable_targets" ; then | 
|---|
| 2258 | for t in `echo $enable_targets | sed 's/,/ /g'`; do | 
|---|
| 2259 | if test $t = "all"; then | 
|---|
| 2260 | all_targets=yes | 
|---|
| 2261 | continue | 
|---|
| 2262 | fi | 
|---|
| 2263 | result=`$ac_config_sub $t 2>/dev/null` | 
|---|
| 2264 | if test -n "$result" ; then | 
|---|
| 2265 | canon_targets="$canon_targets $result" | 
|---|
| 2266 | #    else | 
|---|
| 2267 | #      # Permit "all", etc.  We don't support it yet though. | 
|---|
| 2268 | #      canon_targets="$canon_targets $t" | 
|---|
| 2269 | fi | 
|---|
| 2270 | done | 
|---|
| 2271 | _gas_uniq_list="$canon_targets" | 
|---|
| 2272 | _gas_uniq_newlist="" | 
|---|
| 2273 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | 
|---|
| 2274 | case $_gas_uniq_i in | 
|---|
| 2275 | _gas_uniq_dummy) ;; | 
|---|
| 2276 | *) case " $_gas_uniq_newlist " in | 
|---|
| 2277 | *" $_gas_uniq_i "*) ;; | 
|---|
| 2278 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | 
|---|
| 2279 | esac ;; | 
|---|
| 2280 | esac | 
|---|
| 2281 | done | 
|---|
| 2282 | canon_targets=$_gas_uniq_newlist | 
|---|
| 2283 |  | 
|---|
| 2284 | fi | 
|---|
| 2285 |  | 
|---|
| 2286 | emulations="" | 
|---|
| 2287 |  | 
|---|
| 2288 | for this_target in $target $canon_targets ; do | 
|---|
| 2289 |  | 
|---|
| 2290 | eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'` | 
|---|
| 2291 |  | 
|---|
| 2292 | # check for architecture variants | 
|---|
| 2293 | arch= | 
|---|
| 2294 | endian= | 
|---|
| 2295 | case ${cpu} in | 
|---|
| 2296 | alpha*)           cpu_type=alpha ;; | 
|---|
| 2297 | armeb)            cpu_type=arm endian=big ;; | 
|---|
| 2298 | arm*)             cpu_type=arm endian=little ;; | 
|---|
| 2299 | armb*)            cpu_type=arm endian=little ;; | 
|---|
| 2300 | armv*l)           cpu_type=arm endian=little ;; | 
|---|
| 2301 | armv*b)           cpu_type=arm endian=big ;; | 
|---|
| 2302 | xscale*)          cpu_type=arm endian=little ;; | 
|---|
| 2303 | strongarm*)       cpu_type=arm endian=little ;; | 
|---|
| 2304 | thumb*)           cpu_type=arm endian=little ;; | 
|---|
| 2305 | hppa*)            cpu_type=hppa ;; | 
|---|
| 2306 | i[3456]86)        cpu_type=i386 arch=i386;; | 
|---|
| 2307 | x86_64)           cpu_type=i386 arch=x86_64;; | 
|---|
| 2308 | ia64)             cpu_type=ia64 ;; | 
|---|
| 2309 | m6811|m6812|m68hc12) cpu_type=m68hc11 ;; | 
|---|
| 2310 | m680[012346]0)    cpu_type=m68k ;; | 
|---|
| 2311 | m68008)           cpu_type=m68k ;; | 
|---|
| 2312 | m683??)           cpu_type=m68k ;; | 
|---|
| 2313 | m5200)            cpu_type=m68k ;; | 
|---|
| 2314 | m8*)              cpu_type=m88k ;; | 
|---|
| 2315 | mips*el)          cpu_type=mips endian=little ;; | 
|---|
| 2316 | mips*)            cpu_type=mips endian=big ;; | 
|---|
| 2317 | pjl*)             cpu_type=pj endian=little ;; | 
|---|
| 2318 | pj*)              cpu_type=pj endian=big ;; | 
|---|
| 2319 | powerpcle*)       cpu_type=ppc endian=little ;; | 
|---|
| 2320 | powerpc*)         cpu_type=ppc endian=big ;; | 
|---|
| 2321 | rs6000*)          cpu_type=ppc ;; | 
|---|
| 2322 | sparclite*)       cpu_type=sparc arch=sparclite ;; | 
|---|
| 2323 | sparclet*)        cpu_type=sparc arch=sparclet ;; | 
|---|
| 2324 | sparc64*)         cpu_type=sparc arch=v9-64 ;; | 
|---|
| 2325 | sparc86x*)        cpu_type=sparc arch=sparc86x  ;; | 
|---|
| 2326 | sparc*)           cpu_type=sparc arch=sparclite ;; # ??? See tc-sparc.c. | 
|---|
| 2327 | v850*)            cpu_type=v850 ;; | 
|---|
| 2328 | *)                cpu_type=${cpu} ;; | 
|---|
| 2329 | esac | 
|---|
| 2330 |  | 
|---|
| 2331 | if test ${this_target} = $target ; then | 
|---|
| 2332 | target_cpu_type=${cpu_type} | 
|---|
| 2333 | elif test ${target_cpu_type} != ${cpu_type} ; then | 
|---|
| 2334 | continue | 
|---|
| 2335 | fi | 
|---|
| 2336 |  | 
|---|
| 2337 | generic_target=${cpu_type}-$vendor-$os | 
|---|
| 2338 | dev=no | 
|---|
| 2339 | bfd_gas=no | 
|---|
| 2340 | em=generic | 
|---|
| 2341 |  | 
|---|
| 2342 | # assign object format | 
|---|
| 2343 | case ${generic_target} in | 
|---|
| 2344 | a29k-*-coff)          fmt=coff ;; | 
|---|
| 2345 | a29k-amd-udi)         fmt=coff ;; | 
|---|
| 2346 | a29k-amd-ebmon)       fmt=coff ;; | 
|---|
| 2347 | a29k-nyu-sym1)        fmt=coff ;; | 
|---|
| 2348 | a29k-*-rtems*)        fmt=coff ;; | 
|---|
| 2349 | a29k-*-vxworks*)      fmt=coff ;; | 
|---|
| 2350 |  | 
|---|
| 2351 | alpha*-*-*vms*)       fmt=evax ;; | 
|---|
| 2352 | alpha*-*-netware*)    fmt=ecoff ;; | 
|---|
| 2353 | alpha*-*-openbsd*)    fmt=ecoff ;; | 
|---|
| 2354 | alpha*-*-osf*)        fmt=ecoff ;; | 
|---|
| 2355 | alpha*-*-linuxecoff*) fmt=ecoff ;; | 
|---|
| 2356 | alpha*-*-linux-gnu*)  fmt=elf em=linux ;; | 
|---|
| 2357 | alpha*-*-netbsd*)     fmt=elf em=nbsd ;; | 
|---|
| 2358 |  | 
|---|
| 2359 | arc-*-elf*)           fmt=elf bfd_gas=yes ;; | 
|---|
| 2360 |  | 
|---|
| 2361 | arm-*-aout)                       fmt=aout ;; | 
|---|
| 2362 | arm-*-coff | thumb-*-coff)        fmt=coff ;; | 
|---|
| 2363 | arm-*-rtems | thumb-*-rtems)      fmt=elf ;; | 
|---|
| 2364 | arm-*-elf | thumb-*-elf)          fmt=elf ;; | 
|---|
| 2365 | arm*-*-conix*)                    fmt=elf ;; | 
|---|
| 2366 | arm-*-linux*aout*)                fmt=aout em=linux ;; | 
|---|
| 2367 | arm*-*-linux-gnu* | arm*-*-uclinux*) | 
|---|
| 2368 | fmt=elf  em=linux ;; | 
|---|
| 2369 | arm-*-netbsd*)                    fmt=aout em=nbsd ;; | 
|---|
| 2370 | arm-*-oabi | thumb-*-oabi)        fmt=elf ;; | 
|---|
| 2371 | arm-epoc-pe | thumb-epoc-pe)      fmt=coff em=epoc-pe ;; | 
|---|
| 2372 | arm-*-wince)                      fmt=coff em=wince-pe ;; | 
|---|
| 2373 | arm-*-pe | thumb-*-pe)            fmt=coff em=pe ;; | 
|---|
| 2374 | arm-*-riscix*)                    fmt=aout em=riscix ;; | 
|---|
| 2375 | arm-*-vxworks)                    fmt=coff ;; | 
|---|
| 2376 |  | 
|---|
| 2377 | avr-*-*)              fmt=elf bfd_gas=yes ;; | 
|---|
| 2378 |  | 
|---|
| 2379 | cris-*-*)             fmt=multi bfd_gas=yes ;; | 
|---|
| 2380 |  | 
|---|
| 2381 | d10v-*-*)             fmt=elf bfd_gas=yes ;; | 
|---|
| 2382 | d30v-*-*)             fmt=elf bfd_gas=yes ;; | 
|---|
| 2383 |  | 
|---|
| 2384 |  | 
|---|
| 2385 | fr30-*-*)             fmt=elf bfd_gas=yes ;; | 
|---|
| 2386 |  | 
|---|
| 2387 | hppa-*-linux-gnu*)    case ${cpu} in | 
|---|
| 2388 | hppa*64*) | 
|---|
| 2389 | fmt=elf em=hppalinux64;; | 
|---|
| 2390 | hppa*) | 
|---|
| 2391 | fmt=elf em=linux;; | 
|---|
| 2392 | esac ;; | 
|---|
| 2393 | hppa-*-*elf*)         fmt=elf em=hppa ;; | 
|---|
| 2394 | hppa-*-lites*)        fmt=elf em=hppa ;; | 
|---|
| 2395 | hppa-*-osf*)          fmt=som em=hppa ;; | 
|---|
| 2396 | hppa-*-rtems*)        fmt=elf em=hppa ;; | 
|---|
| 2397 | hppa-*-hpux11*)       case ${cpu} in | 
|---|
| 2398 | hppa*64*) | 
|---|
| 2399 | fmt=elf em=hppa64 ;; | 
|---|
| 2400 | hppa*) | 
|---|
| 2401 | fmt=som em=hppa ;; | 
|---|
| 2402 | esac ;; | 
|---|
| 2403 | hppa-*-hpux*)         fmt=som em=hppa ;; | 
|---|
| 2404 | hppa-*-mpeix*)        fmt=som em=hppa ;; | 
|---|
| 2405 | hppa-*-bsd*)          fmt=som em=hppa ;; | 
|---|
| 2406 | hppa-*-hiux*)         fmt=som em=hppa ;; | 
|---|
| 2407 |  | 
|---|
| 2408 | h8300-*-rtems*)       fmt=coff ;; | 
|---|
| 2409 | h8300-*-coff)         fmt=coff ;; | 
|---|
| 2410 | h8500-*-rtems*)       fmt=coff ;; | 
|---|
| 2411 | h8500-*-coff)         fmt=coff ;; | 
|---|
| 2412 |  | 
|---|
| 2413 | i370-*-elf* | i370-*-linux*) fmt=elf ;; | 
|---|
| 2414 | i386-ibm-aix*)        fmt=coff em=i386aix ;; | 
|---|
| 2415 | i386-sequent-bsd*)    fmt=aout em=dynix bfd_gas=yes ;; | 
|---|
| 2416 | i386-*-beospe*)       fmt=coff em=pe bfd_gas=yes ;; | 
|---|
| 2417 | i386-*-beoself* | i386-*-beos*) fmt=elf bfd_gas=yes ;; | 
|---|
| 2418 | i386-*-bsd*)          fmt=aout em=386bsd ;; | 
|---|
| 2419 | i386-*-netbsd0.8)     fmt=aout em=386bsd ;; | 
|---|
| 2420 | i386-*-netbsd*)       fmt=aout em=nbsd bfd_gas=yes;; | 
|---|
| 2421 | i386-*-openbsd*)      fmt=aout em=nbsd bfd_gas=yes;; | 
|---|
| 2422 | i386-*-linux*aout* | i386-*-linux*oldld)   fmt=aout em=linux ;; | 
|---|
| 2423 | i386-*-linux*coff*)   fmt=coff em=linux ;; | 
|---|
| 2424 | i386-*-linux-gnu*)    fmt=elf em=linux bfd_gas=yes ;; | 
|---|
| 2425 | x86_64-*-linux-gnu*)  fmt=elf em=linux bfd_gas=yes ;; | 
|---|
| 2426 | i386-*-lynxos*)       fmt=coff em=lynx ;; | 
|---|
| 2427 | i386-*-sysv[45]* | i386-*-solaris* | i386-*-elf) | 
|---|
| 2428 | fmt=elf bfd_gas=yes ;; | 
|---|
| 2429 | i386-*-freebsdaout* | i386-*-freebsd[12].* | i386-*-freebsd[12]) | 
|---|
| 2430 | fmt=aout em=386bsd ;; | 
|---|
| 2431 | i386-*-coff | i386-*-sysv* | i386-*-sco3.2v5*coff | i386-*-isc*) | 
|---|
| 2432 | fmt=coff ;; | 
|---|
| 2433 | i386-*-sco3.2v5*)      fmt=elf | 
|---|
| 2434 | if test ${this_target} = $target; then | 
|---|
| 2435 | cat >> confdefs.h <<\EOF | 
|---|
| 2436 | #define SCO_ELF 1 | 
|---|
| 2437 | EOF | 
|---|
| 2438 |  | 
|---|
| 2439 | fi | 
|---|
| 2440 | ;; | 
|---|
| 2441 | i386-*-sco3.2*)       fmt=coff ;; | 
|---|
| 2442 | i386-*-vsta)          fmt=aout ;; | 
|---|
| 2443 | i386-*-msdosdjgpp* | i386-*-go32* | i386-go32-rtems*) | 
|---|
| 2444 | fmt=coff em=go32 bfd_gas=yes | 
|---|
| 2445 | cat >> confdefs.h <<\EOF | 
|---|
| 2446 | #define STRICTCOFF 1 | 
|---|
| 2447 | EOF | 
|---|
| 2448 |  | 
|---|
| 2449 | ;; | 
|---|
| 2450 | i386-*-rtemself*)     fmt=elf ;; | 
|---|
| 2451 | i386-*-rtems*)        fmt=coff ;; | 
|---|
| 2452 | i386-*-gnu*)          fmt=elf ;; | 
|---|
| 2453 | i386-*-mach*) | 
|---|
| 2454 | fmt=aout em=mach bfd_gas=yes ;; | 
|---|
| 2455 | i386-*-msdos*)        fmt=aout ;; | 
|---|
| 2456 | i386-*-moss*)         fmt=elf ;; | 
|---|
| 2457 | i386-*-pe)            fmt=coff em=pe bfd_gas=yes ;; | 
|---|
| 2458 | i386-*-cygwin*)       fmt=coff em=pe bfd_gas=yes ;; | 
|---|
| 2459 | i386-*-interix*)      fmt=coff em=interix bfd_gas=yes ;; | 
|---|
| 2460 | i386-*-mingw32*)      fmt=coff em=pe bfd_gas=yes ;; | 
|---|
| 2461 | i386-*-*nt*)          fmt=coff em=pe bfd_gas=yes ;; | 
|---|
| 2462 | i386-*-os2*)          fmt=aout em=emx bfd_gas=yes ;; | 
|---|
| 2463 | i386-*-vxworks*)      fmt=aout ;; | 
|---|
| 2464 | i386-*-chaos)         fmt=elf ;; | 
|---|
| 2465 | i860-stardent-sysv4* | i860-stardent-elf*) | 
|---|
| 2466 | fmt=elf bfd_gas=yes endian=little | 
|---|
| 2467 | echo "configure: warning: GAS support for ${generic_target} is preliminary and a work in progress" 1>&2 ;; | 
|---|
| 2468 | i960-*-bout)          fmt=bout ;; | 
|---|
| 2469 | i960-*-coff)          fmt=coff em=ic960 ;; | 
|---|
| 2470 | i960-*-rtems*)        fmt=coff em=ic960 ;; | 
|---|
| 2471 | i960-*-nindy*)        fmt=bout ;; | 
|---|
| 2472 | i960-*-vxworks4*)     fmt=bout ;; | 
|---|
| 2473 | i960-*-vxworks5.0)    fmt=bout ;; | 
|---|
| 2474 | i960-*-vxworks5.*)    fmt=coff em=ic960 ;; | 
|---|
| 2475 | i960-*-vxworks*)      fmt=bout ;; | 
|---|
| 2476 | i960-*-elf*)          fmt=elf ;; | 
|---|
| 2477 |  | 
|---|
| 2478 | ia64-*-elf*)          fmt=elf ;; | 
|---|
| 2479 | ia64-*-linux-gnu*)    fmt=elf em=linux ;; | 
|---|
| 2480 | ia64-*-hpux*)         fmt=elf em=hpux ;; | 
|---|
| 2481 |  | 
|---|
| 2482 | m32r-*-*)             fmt=elf bfd_gas=yes ;; | 
|---|
| 2483 |  | 
|---|
| 2484 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)fmt=elf bfd_gas=yes ;; | 
|---|
| 2485 |  | 
|---|
| 2486 | m68k-*-vxworks* | m68k-ericsson-ose | m68k-*-sunos*) | 
|---|
| 2487 | fmt=aout em=sun3 ;; | 
|---|
| 2488 | m68k-motorola-sysv*)  fmt=coff em=delta ;; | 
|---|
| 2489 | m68k-bull-sysv3*)     fmt=coff em=dpx2 ;; | 
|---|
| 2490 | m68k-apollo-*)        fmt=coff em=apollo ;; | 
|---|
| 2491 | m68k-*-sysv4*) # must be before -sysv* | 
|---|
| 2492 | fmt=elf em=svr4 ;; | 
|---|
| 2493 | m68k-*-elf*)          fmt=elf ;; | 
|---|
| 2494 | m68k-*-coff | m68k-*-sysv* | m68k-*-rtems*) | 
|---|
| 2495 | fmt=coff ;; | 
|---|
| 2496 | m68k-*-hpux*)         fmt=hp300 em=hp300 ;; | 
|---|
| 2497 | m68k-*-linux*aout*)   fmt=aout em=linux ;; | 
|---|
| 2498 | m68k-*-linux-gnu*)    fmt=elf em=linux ;; | 
|---|
| 2499 | m68k-*-gnu*)          fmt=elf ;; | 
|---|
| 2500 | m68k-*-lynxos*)       fmt=coff em=lynx ;; | 
|---|
| 2501 | m68k-*-netbsd*)       fmt=aout em=nbsd bfd_gas=yes ;; | 
|---|
| 2502 | m68k-*-openbsd*)      fmt=aout em=nbsd bfd_gas=yes ;; | 
|---|
| 2503 | m68k-apple-aux*)      fmt=coff em=aux ;; | 
|---|
| 2504 | m68k-*-psos*)         fmt=elf em=psos;; | 
|---|
| 2505 |  | 
|---|
| 2506 | m88k-motorola-sysv3*) fmt=coff em=delt88 ;; | 
|---|
| 2507 | m88k-*-coff*)         fmt=coff ;; | 
|---|
| 2508 |  | 
|---|
| 2509 | mcore-*-elf)          fmt=elf bfd_gas=yes ;; | 
|---|
| 2510 | mcore-*-pe)           fmt=coff em=pe bfd_gas=yes ;; | 
|---|
| 2511 |  | 
|---|
| 2512 | # don't change em like *-*-bsd does | 
|---|
| 2513 | mips-dec-netbsd*)     fmt=elf endian=little ;; | 
|---|
| 2514 | mips-dec-openbsd*)    fmt=elf endian=little ;; | 
|---|
| 2515 | mips-dec-bsd*)        fmt=aout endian=little ;; | 
|---|
| 2516 | mips-sony-bsd*)       fmt=ecoff ;; | 
|---|
| 2517 | mips-*-bsd*)          { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;; | 
|---|
| 2518 | mips-*-ultrix*)       fmt=ecoff endian=little ;; | 
|---|
| 2519 | mips-*-osf*)          fmt=ecoff endian=little ;; | 
|---|
| 2520 | mips-*-ecoff*)        fmt=ecoff ;; | 
|---|
| 2521 | mips-*-pe*)           fmt=coff endian=little em=pe ;; | 
|---|
| 2522 | mips-*-irix6*)        fmt=elf ;; | 
|---|
| 2523 | mips-*-irix5*)        fmt=elf ;; | 
|---|
| 2524 | mips-*-irix*)         fmt=ecoff ;; | 
|---|
| 2525 | mips-*-lnews*)        fmt=ecoff em=lnews ;; | 
|---|
| 2526 | mips-*-riscos*)       fmt=ecoff ;; | 
|---|
| 2527 | mips-*-linux-gnu*) | 
|---|
| 2528 | fmt=elf em=tmips | 
|---|
| 2529 | cat >> confdefs.h <<\EOF | 
|---|
| 2530 | #define MIPS_STABS_ELF 1 | 
|---|
| 2531 | EOF | 
|---|
| 2532 |  | 
|---|
| 2533 | ;; | 
|---|
| 2534 | mips-*-sysv4*MP* | mips-*-gnu*) | 
|---|
| 2535 | fmt=elf em=tmips ;; | 
|---|
| 2536 | mips-*-sysv*)         fmt=ecoff ;; | 
|---|
| 2537 | mips-*-elf* | mips-*-rtems* | mips-*-openbsd*) | 
|---|
| 2538 | fmt=elf ;; | 
|---|
| 2539 | mips-*-vxworks*)      fmt=elf | 
|---|
| 2540 | cat >> confdefs.h <<\EOF | 
|---|
| 2541 | #define MIPS_STABS_ELF 1 | 
|---|
| 2542 | EOF | 
|---|
| 2543 |  | 
|---|
| 2544 | ;; | 
|---|
| 2545 | mn10200-*-*)          fmt=elf bfd_gas=yes ;; | 
|---|
| 2546 | mn10300-*-*)          fmt=elf bfd_gas=yes ;; | 
|---|
| 2547 | pj*)                  fmt=elf ;; | 
|---|
| 2548 | ppc-*-pe | ppc-*-cygwin* | ppc-*-winnt*) | 
|---|
| 2549 | fmt=coff em=pe ;; | 
|---|
| 2550 | ppc-*-aix*)           fmt=coff ;; | 
|---|
| 2551 | ppc-*-beos*)          fmt=coff ;; | 
|---|
| 2552 | ppc-*-*bsd* | ppc-*-elf* | ppc-*-eabi* | ppc-*-sysv4*) | 
|---|
| 2553 | fmt=elf ;; | 
|---|
| 2554 | ppc-*-linux-gnu*)     fmt=elf | 
|---|
| 2555 | case "$endian" in | 
|---|
| 2556 | big)  ;; | 
|---|
| 2557 | *)    { echo "configure: error: GNU/Linux must be configured big endian" 1>&2; exit 1; } ;; | 
|---|
| 2558 | esac | 
|---|
| 2559 | ;; | 
|---|
| 2560 | ppc-*-solaris*)       fmt=elf | 
|---|
| 2561 | if test ${this_target} = $target; then | 
|---|
| 2562 | cat >> confdefs.h <<\EOF | 
|---|
| 2563 | #define TARGET_SOLARIS_COMMENT 1 | 
|---|
| 2564 | EOF | 
|---|
| 2565 |  | 
|---|
| 2566 | fi | 
|---|
| 2567 | if test x${endian} = xbig; then | 
|---|
| 2568 | { echo "configure: error: Solaris must be configured little endian" 1>&2; exit 1; } | 
|---|
| 2569 | fi | 
|---|
| 2570 | ;; | 
|---|
| 2571 | ppc-*-rtems*)         fmt=elf ;; | 
|---|
| 2572 | ppc-*-macos* | ppc-*-mpw*) | 
|---|
| 2573 | fmt=coff em=macos ;; | 
|---|
| 2574 | ppc-*-netware*)       fmt=elf em=ppcnw ;; | 
|---|
| 2575 | ppc-*-vxworks*)       fmt=elf ;; | 
|---|
| 2576 |  | 
|---|
| 2577 | sh-*-linux*)          fmt=elf em=linux ;; | 
|---|
| 2578 | sh-*-elf*)            fmt=elf ;; | 
|---|
| 2579 | sh-*-coff*)           fmt=coff ;; | 
|---|
| 2580 | sh-*-pe*)             fmt=coff em=pe bfd_gas=yes;; | 
|---|
| 2581 | sh-*-rtemself*)       fmt=elf ;; | 
|---|
| 2582 | sh-*-rtems*)          fmt=coff ;; | 
|---|
| 2583 |  | 
|---|
| 2584 | ns32k-pc532-mach* | ns32k-pc532-ux*)    fmt=aout em=pc532mach ;; | 
|---|
| 2585 | ns32k-pc532-netbsd* | ns32k-pc532-lites*)  fmt=aout em=nbsd532 ;; | 
|---|
| 2586 | ns32k-pc532-openbsd*) fmt=aout em=nbsd532 ;; | 
|---|
| 2587 |  | 
|---|
| 2588 | sparc-*-rtemsaout*)   fmt=aout ;; | 
|---|
| 2589 | sparc-*-rtemself*)    fmt=elf ;; | 
|---|
| 2590 | sparc-*-rtems*)       fmt=elf ;; | 
|---|
| 2591 | sparc-*-sunos4*)      fmt=aout em=sun3 ;; | 
|---|
| 2592 | sparc-*-aout | sparc*-*-vxworks*) | 
|---|
| 2593 | fmt=aout em=sparcaout ;; | 
|---|
| 2594 | sparc-*-coff)         fmt=coff ;; | 
|---|
| 2595 | sparc-*-linux*aout*)  fmt=aout em=linux ;; | 
|---|
| 2596 | sparc-*-linux-gnu*)   fmt=elf em=linux ;; | 
|---|
| 2597 | sparc-*-lynxos*)      fmt=coff em=lynx ;; | 
|---|
| 2598 | sparc-fujitsu-none)   fmt=aout ;; | 
|---|
| 2599 | sparc-*-elf | sparc-*-sysv4* | sparc-*-solaris*) | 
|---|
| 2600 | fmt=elf ;; | 
|---|
| 2601 | sparc-*-netbsd*)      em=nbsd bfd_gas=yes | 
|---|
| 2602 | case ${cpu} in | 
|---|
| 2603 | sparc) case ${os} in | 
|---|
| 2604 | *elf*) fmt=elf ;; | 
|---|
| 2605 | *)     fmt=aout ;; | 
|---|
| 2606 | esac ;; | 
|---|
| 2607 | sparc64) fmt=elf ;; | 
|---|
| 2608 | esac | 
|---|
| 2609 | ;; | 
|---|
| 2610 | sparc-*-openbsd*)     fmt=aout em=nbsd ;; | 
|---|
| 2611 |  | 
|---|
| 2612 | strongarm-*-coff)     fmt=coff ;; | 
|---|
| 2613 | strongarm-*-elf)      fmt=elf ;; | 
|---|
| 2614 | xscale-*-coff)     fmt=coff ;; | 
|---|
| 2615 | xscale-*-elf)      fmt=elf ;; | 
|---|
| 2616 |  | 
|---|
| 2617 | tic30-*-*aout*)       fmt=aout bfd_gas=yes ;; | 
|---|
| 2618 | tic30-*-*coff*)       fmt=coff bfd_gas=yes ;; | 
|---|
| 2619 | tic54x-*-* | c54x*-*-*) | 
|---|
| 2620 | fmt=coff bfd_gas=yes need_libm=yes;; | 
|---|
| 2621 | tic80-*-*)            fmt=coff ;; | 
|---|
| 2622 |  | 
|---|
| 2623 | v850-*-*)             fmt=elf bfd_gas=yes ;; | 
|---|
| 2624 | v850e-*-*)            fmt=elf bfd_gas=yes ;; | 
|---|
| 2625 | v850ea-*-*)           fmt=elf bfd_gas=yes ;; | 
|---|
| 2626 |  | 
|---|
| 2627 | vax-*-bsd* | vax-*-ultrix*) | 
|---|
| 2628 | fmt=aout ;; | 
|---|
| 2629 | vax-*-vms)            fmt=vms ;; | 
|---|
| 2630 |  | 
|---|
| 2631 |  | 
|---|
| 2632 | z8k-*-coff | z8k-*-sim) | 
|---|
| 2633 | fmt=coff ;; | 
|---|
| 2634 |  | 
|---|
| 2635 | w65-*-*)              fmt=coff ;; | 
|---|
| 2636 |  | 
|---|
| 2637 | *-*-aout | *-*-scout) | 
|---|
| 2638 | fmt=aout ;; | 
|---|
| 2639 | *-*-freebsd*)         fmt=elf em=freebsd bfd_gas=yes ;; | 
|---|
| 2640 | *-*-nindy*) | 
|---|
| 2641 | fmt=bout ;; | 
|---|
| 2642 | *-*-bsd*) | 
|---|
| 2643 | fmt=aout em=sun3 ;; | 
|---|
| 2644 | *-*-generic)          fmt=generic ;; | 
|---|
| 2645 | *-*-xray | *-*-hms)   fmt=coff ;; | 
|---|
| 2646 | *-*-sim)              fmt=coff ;; | 
|---|
| 2647 | *-*-elf | *-*-sysv4* | *-*-solaris*) | 
|---|
| 2648 | echo "configure: warning: GAS support for ${generic_target} is incomplete." 1>&2 | 
|---|
| 2649 | fmt=elf dev=yes ;; | 
|---|
| 2650 | *-*-vxworks)          fmt=aout ;; | 
|---|
| 2651 | *-*-netware)          fmt=elf ;; | 
|---|
| 2652 | esac | 
|---|
| 2653 |  | 
|---|
| 2654 | if test ${this_target} = $target ; then | 
|---|
| 2655 | endian_def= | 
|---|
| 2656 | if test x${endian} = xbig; then | 
|---|
| 2657 | endian_def=1 | 
|---|
| 2658 | elif test x${endian} = xlittle; then | 
|---|
| 2659 | endian_def=0 | 
|---|
| 2660 | fi | 
|---|
| 2661 | if test x${endian_def} != x; then | 
|---|
| 2662 | cat >> confdefs.h <<EOF | 
|---|
| 2663 | #define TARGET_BYTES_BIG_ENDIAN $endian_def | 
|---|
| 2664 | EOF | 
|---|
| 2665 |  | 
|---|
| 2666 | fi | 
|---|
| 2667 | fi | 
|---|
| 2668 |  | 
|---|
| 2669 | case ${cpu_type}-${fmt} in | 
|---|
| 2670 | alpha*-*) bfd_gas=yes ;; | 
|---|
| 2671 | arm-*)    bfd_gas=yes ;; | 
|---|
| 2672 | # not yet | 
|---|
| 2673 | # i386-aout)        bfd_gas=preferred ;; | 
|---|
| 2674 | ia64*-*)  bfd_gas=yes ;; | 
|---|
| 2675 | mips-*)   bfd_gas=yes ;; | 
|---|
| 2676 | ns32k-*)  bfd_gas=yes ;; | 
|---|
| 2677 | ppc-*)    bfd_gas=yes ;; | 
|---|
| 2678 | sparc-*)  bfd_gas=yes ;; | 
|---|
| 2679 | strongarm-*)      bfd_gas=yes ;; | 
|---|
| 2680 | xscale-*) bfd_gas=yes ;; | 
|---|
| 2681 | *-elf)    bfd_gas=yes ;; | 
|---|
| 2682 | *-ecoff)  bfd_gas=yes ;; | 
|---|
| 2683 | *-som)    bfd_gas=yes ;; | 
|---|
| 2684 | #enable bfd for coff and aout to allow testing if a bfd target is | 
|---|
| 2685 | #the primary target, but not for coff or aout as the primary target | 
|---|
| 2686 | i386-coff)        if test x${primary_bfd_gas} = xyes; then bfd_gas=yes; fi ;; | 
|---|
| 2687 | i386-aout)        if test x${primary_bfd_gas} = xyes; then bfd_gas=yes; fi ;; | 
|---|
| 2688 | *)                ;; | 
|---|
| 2689 | esac | 
|---|
| 2690 |  | 
|---|
| 2691 | # Other random stuff. | 
|---|
| 2692 |  | 
|---|
| 2693 | # Do we need the opcodes library? | 
|---|
| 2694 | case ${cpu_type} in | 
|---|
| 2695 | vax | i386 | tic30) | 
|---|
| 2696 | ;; | 
|---|
| 2697 |  | 
|---|
| 2698 | *) | 
|---|
| 2699 | need_opcodes=yes | 
|---|
| 2700 |  | 
|---|
| 2701 | case "${enable_shared}" in | 
|---|
| 2702 | yes) shared_opcodes=true ;; | 
|---|
| 2703 | *opcodes*) shared_opcodes=true ;; | 
|---|
| 2704 | *) shared_opcodes=false ;; | 
|---|
| 2705 | esac | 
|---|
| 2706 | if test "${shared_opcodes}" = "true"; then | 
|---|
| 2707 | # A shared libopcodes must be linked against libbfd. | 
|---|
| 2708 | need_bfd=yes | 
|---|
| 2709 | fi | 
|---|
| 2710 | ;; | 
|---|
| 2711 | esac | 
|---|
| 2712 |  | 
|---|
| 2713 | # Any other special object files needed ? | 
|---|
| 2714 | case ${cpu_type} in | 
|---|
| 2715 | fr30 | m32r) | 
|---|
| 2716 | using_cgen=yes | 
|---|
| 2717 | ;; | 
|---|
| 2718 |  | 
|---|
| 2719 | m68k) | 
|---|
| 2720 | case ${extra_objects} in | 
|---|
| 2721 | *m68k-parse.o*) ;; | 
|---|
| 2722 | *) extra_objects="$extra_objects m68k-parse.o" ;; | 
|---|
| 2723 | esac | 
|---|
| 2724 | ;; | 
|---|
| 2725 |  | 
|---|
| 2726 | mips) | 
|---|
| 2727 | echo ${extra_objects} | grep -s "itbl-parse.o" | 
|---|
| 2728 | if test $? -ne 0 ; then | 
|---|
| 2729 | extra_objects="$extra_objects itbl-parse.o" | 
|---|
| 2730 | fi | 
|---|
| 2731 |  | 
|---|
| 2732 | echo ${extra_objects} | grep -s "itbl-lex.o" | 
|---|
| 2733 | if test $? -ne 0 ; then | 
|---|
| 2734 | extra_objects="$extra_objects itbl-lex.o" | 
|---|
| 2735 | fi | 
|---|
| 2736 |  | 
|---|
| 2737 | echo ${extra_objects} | grep -s "itbl-ops.o" | 
|---|
| 2738 | if test $? -ne 0 ; then | 
|---|
| 2739 | extra_objects="$extra_objects itbl-ops.o" | 
|---|
| 2740 | fi | 
|---|
| 2741 | ;; | 
|---|
| 2742 |  | 
|---|
| 2743 | i386) | 
|---|
| 2744 | if test $this_target = $target ; then | 
|---|
| 2745 | cat >> confdefs.h <<EOF | 
|---|
| 2746 | #define DEFAULT_ARCH "${arch}" | 
|---|
| 2747 | EOF | 
|---|
| 2748 |  | 
|---|
| 2749 | fi | 
|---|
| 2750 | ;; | 
|---|
| 2751 | sparc) | 
|---|
| 2752 | if test $this_target = $target ; then | 
|---|
| 2753 | cat >> confdefs.h <<EOF | 
|---|
| 2754 | #define DEFAULT_ARCH "${arch}" | 
|---|
| 2755 | EOF | 
|---|
| 2756 |  | 
|---|
| 2757 | fi | 
|---|
| 2758 | ;; | 
|---|
| 2759 | *) | 
|---|
| 2760 | ;; | 
|---|
| 2761 | esac | 
|---|
| 2762 |  | 
|---|
| 2763 | if test $using_cgen = yes ; then | 
|---|
| 2764 | case "x${extra_objects}" in | 
|---|
| 2765 | *cgen.o*) ;; | 
|---|
| 2766 | *) extra_objects="$extra_objects cgen.o" ;; | 
|---|
| 2767 | esac | 
|---|
| 2768 | fi | 
|---|
| 2769 |  | 
|---|
| 2770 | # See if we really can support this configuration with the emulation code. | 
|---|
| 2771 |  | 
|---|
| 2772 | if test $this_target = $target ; then | 
|---|
| 2773 | primary_bfd_gas=$bfd_gas | 
|---|
| 2774 | obj_format=$fmt | 
|---|
| 2775 | te_file=$em | 
|---|
| 2776 |  | 
|---|
| 2777 | if test $bfd_gas = no ; then | 
|---|
| 2778 | # Can't support other configurations this way. | 
|---|
| 2779 | break | 
|---|
| 2780 | fi | 
|---|
| 2781 | elif test $bfd_gas = no ; then | 
|---|
| 2782 | # Can't support this configuration. | 
|---|
| 2783 | break | 
|---|
| 2784 | fi | 
|---|
| 2785 |  | 
|---|
| 2786 | # From target name and format, produce a list of supported emulations. | 
|---|
| 2787 |  | 
|---|
| 2788 | case ${generic_target}-${fmt} in | 
|---|
| 2789 | mips-*-irix5*-*)  emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;; | 
|---|
| 2790 | mips-*-linux-gnu*-*) case "$endian" in | 
|---|
| 2791 | big)    emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;; | 
|---|
| 2792 | *)      emulation="mipslelf mipsbelf mipself mipslecoff mipsbecoff mipsecoff" ;; | 
|---|
| 2793 | esac ;; | 
|---|
| 2794 | mips-*-lnews*-ecoff) ;; | 
|---|
| 2795 | mips-*-*-ecoff)   case "$endian" in | 
|---|
| 2796 | big)    emulation="mipsbecoff mipslecoff mipsecoff" ;; | 
|---|
| 2797 | *)      emulation="mipslecoff mipsbecoff mipsecoff" ;; | 
|---|
| 2798 | esac ;; | 
|---|
| 2799 | mips-*-*-elf)     case "$endian" in | 
|---|
| 2800 | big)    emulation="mipsbelf mipslelf mipself" ;; | 
|---|
| 2801 | *)      emulation="mipslelf mipsbelf mipself" ;; | 
|---|
| 2802 | esac ;; | 
|---|
| 2803 | mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;; | 
|---|
| 2804 | # i386-pc-pe-coff != i386-pc-coff. | 
|---|
| 2805 | i386-*-pe-coff)   ;; | 
|---|
| 2806 | # Uncommenting the next line will turn on support for i386 AOUT | 
|---|
| 2807 | # for the default linux configuration | 
|---|
| 2808 | # i386-*-linux*-elf) emulation="i386elf i386aout" ;; | 
|---|
| 2809 | # | 
|---|
| 2810 | i386-*-aout)      emulation="i386aout" ;; | 
|---|
| 2811 | i386-*-coff)      emulation="i386coff" ;; | 
|---|
| 2812 | i386-*-elf)       emulation="i386elf" ;; | 
|---|
| 2813 |  | 
|---|
| 2814 | # Always all formats.  The first stated emulation becomes the default. | 
|---|
| 2815 | cris-*-*aout*)    emulation="crisaout criself" ;; | 
|---|
| 2816 | cris-*-*)         emulation="criself crisaout" ;; | 
|---|
| 2817 | esac | 
|---|
| 2818 |  | 
|---|
| 2819 | emulations="$emulations $emulation" | 
|---|
| 2820 |  | 
|---|
| 2821 | done | 
|---|
| 2822 |  | 
|---|
| 2823 | # Turn on all targets if possible | 
|---|
| 2824 | if test ${all_targets} = "yes"; then | 
|---|
| 2825 | case ${target_cpu_type} in | 
|---|
| 2826 | i386) | 
|---|
| 2827 | case ${obj_format} in | 
|---|
| 2828 | aout) | 
|---|
| 2829 | emulations="$emulations i386coff i386elf" | 
|---|
| 2830 | ;; | 
|---|
| 2831 | coff) | 
|---|
| 2832 | emulations="$emulations i386aout i386elf" | 
|---|
| 2833 | ;; | 
|---|
| 2834 | elf) | 
|---|
| 2835 | emulations="$emulations i386aout i386coff" | 
|---|
| 2836 | ;; | 
|---|
| 2837 | esac | 
|---|
| 2838 | ;; | 
|---|
| 2839 | esac | 
|---|
| 2840 | fi | 
|---|
| 2841 |  | 
|---|
| 2842 | # Assign floating point type.  Most processors with FP support | 
|---|
| 2843 | # IEEE FP.  On those that don't support FP at all, usually IEEE | 
|---|
| 2844 | # is emulated. | 
|---|
| 2845 | case ${target_cpu} in | 
|---|
| 2846 | vax | tahoe ) atof=${target_cpu} ;; | 
|---|
| 2847 | *)            atof=ieee ;; | 
|---|
| 2848 | esac | 
|---|
| 2849 |  | 
|---|
| 2850 | case "${obj_format}" in | 
|---|
| 2851 | "") { echo "configure: error: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;; | 
|---|
| 2852 | esac | 
|---|
| 2853 |  | 
|---|
| 2854 | # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU). | 
|---|
| 2855 | cgen_cpu_prefix="" | 
|---|
| 2856 | if test $using_cgen = yes ; then | 
|---|
| 2857 | case ${target_cpu} in | 
|---|
| 2858 | *) cgen_cpu_prefix=${target_cpu} ;; | 
|---|
| 2859 | esac | 
|---|
| 2860 |  | 
|---|
| 2861 | cat >> confdefs.h <<\EOF | 
|---|
| 2862 | #define USING_CGEN 1 | 
|---|
| 2863 | EOF | 
|---|
| 2864 |  | 
|---|
| 2865 | fi | 
|---|
| 2866 |  | 
|---|
| 2867 |  | 
|---|
| 2868 | if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then | 
|---|
| 2869 | { echo "configure: error: GAS does not support target CPU ${target_cpu_type}" 1>&2; exit 1; } | 
|---|
| 2870 | fi | 
|---|
| 2871 |  | 
|---|
| 2872 | if test ! -r ${srcdir}/config/obj-${obj_format}.c; then | 
|---|
| 2873 | { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; } | 
|---|
| 2874 | fi | 
|---|
| 2875 |  | 
|---|
| 2876 | case ${user_bfd_gas}-${primary_bfd_gas} in | 
|---|
| 2877 | yes-yes | no-no) | 
|---|
| 2878 | # We didn't override user's choice. | 
|---|
| 2879 | ;; | 
|---|
| 2880 | no-yes) | 
|---|
| 2881 | echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2 | 
|---|
| 2882 | ;; | 
|---|
| 2883 | no-preferred) | 
|---|
| 2884 | primary_bfd_gas=no | 
|---|
| 2885 | ;; | 
|---|
| 2886 | *-preferred) | 
|---|
| 2887 | primary_bfd_gas=yes | 
|---|
| 2888 | ;; | 
|---|
| 2889 | yes-*) | 
|---|
| 2890 | primary_bfd_gas=yes | 
|---|
| 2891 | ;; | 
|---|
| 2892 | -*) | 
|---|
| 2893 | # User specified nothing. | 
|---|
| 2894 | ;; | 
|---|
| 2895 | esac | 
|---|
| 2896 |  | 
|---|
| 2897 | # Some COFF configurations want these random other flags set. | 
|---|
| 2898 | case ${obj_format} in | 
|---|
| 2899 | coff) | 
|---|
| 2900 | case ${target_cpu_type} in | 
|---|
| 2901 | i386) cat >> confdefs.h <<\EOF | 
|---|
| 2902 | #define I386COFF 1 | 
|---|
| 2903 | EOF | 
|---|
| 2904 | ;; | 
|---|
| 2905 | m68k) cat >> confdefs.h <<\EOF | 
|---|
| 2906 | #define M68KCOFF 1 | 
|---|
| 2907 | EOF | 
|---|
| 2908 | ;; | 
|---|
| 2909 | m88k) cat >> confdefs.h <<\EOF | 
|---|
| 2910 | #define M88KCOFF 1 | 
|---|
| 2911 | EOF | 
|---|
| 2912 | ;; | 
|---|
| 2913 | esac | 
|---|
| 2914 | ;; | 
|---|
| 2915 | esac | 
|---|
| 2916 |  | 
|---|
| 2917 | # Getting this done right is going to be a bitch.  Each configuration specified | 
|---|
| 2918 | # with --enable-targets=... should be checked for environment, format, cpu, and | 
|---|
| 2919 | # bfd_gas setting. | 
|---|
| 2920 | # | 
|---|
| 2921 | # For each configuration, the necessary object file support code must be linked | 
|---|
| 2922 | # in.  This might be only one, it might be up to four.  The necessary emulation | 
|---|
| 2923 | # code needs to be provided, too. | 
|---|
| 2924 | # | 
|---|
| 2925 | # And then there's "--enable-targets=all".... | 
|---|
| 2926 | # | 
|---|
| 2927 | # For now, just always do it for MIPS ELF or ECOFF configurations.  Sigh. | 
|---|
| 2928 |  | 
|---|
| 2929 | formats="${obj_format}" | 
|---|
| 2930 | emfiles="" | 
|---|
| 2931 | EMULATIONS="" | 
|---|
| 2932 | _gas_uniq_list="$emulations" | 
|---|
| 2933 | _gas_uniq_newlist="" | 
|---|
| 2934 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | 
|---|
| 2935 | case $_gas_uniq_i in | 
|---|
| 2936 | _gas_uniq_dummy) ;; | 
|---|
| 2937 | *) case " $_gas_uniq_newlist " in | 
|---|
| 2938 | *" $_gas_uniq_i "*) ;; | 
|---|
| 2939 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | 
|---|
| 2940 | esac ;; | 
|---|
| 2941 | esac | 
|---|
| 2942 | done | 
|---|
| 2943 | emulations=$_gas_uniq_newlist | 
|---|
| 2944 |  | 
|---|
| 2945 | for em in . $emulations ; do | 
|---|
| 2946 | case $em in | 
|---|
| 2947 | .)  continue ;; | 
|---|
| 2948 | mipsbelf | mipslelf | mipself) | 
|---|
| 2949 | fmt=elf   file=mipself ;; | 
|---|
| 2950 | mipsbecoff | mipslecoff | mipsecoff) | 
|---|
| 2951 | fmt=ecoff file=mipsecoff ;; | 
|---|
| 2952 | *coff) | 
|---|
| 2953 | fmt=coff  file=$em ;; | 
|---|
| 2954 | *aout) | 
|---|
| 2955 | fmt=aout file=$em ;; | 
|---|
| 2956 | *elf) | 
|---|
| 2957 | fmt=elf file=$em ;; | 
|---|
| 2958 | esac | 
|---|
| 2959 | formats="$formats $fmt" | 
|---|
| 2960 | emfiles="$emfiles e-$file.o" | 
|---|
| 2961 | EMULATIONS="$EMULATIONS &$em," | 
|---|
| 2962 | done | 
|---|
| 2963 | _gas_uniq_list="$formats" | 
|---|
| 2964 | _gas_uniq_newlist="" | 
|---|
| 2965 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | 
|---|
| 2966 | case $_gas_uniq_i in | 
|---|
| 2967 | _gas_uniq_dummy) ;; | 
|---|
| 2968 | *) case " $_gas_uniq_newlist " in | 
|---|
| 2969 | *" $_gas_uniq_i "*) ;; | 
|---|
| 2970 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | 
|---|
| 2971 | esac ;; | 
|---|
| 2972 | esac | 
|---|
| 2973 | done | 
|---|
| 2974 | formats=$_gas_uniq_newlist | 
|---|
| 2975 |  | 
|---|
| 2976 | _gas_uniq_list="$emfiles" | 
|---|
| 2977 | _gas_uniq_newlist="" | 
|---|
| 2978 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | 
|---|
| 2979 | case $_gas_uniq_i in | 
|---|
| 2980 | _gas_uniq_dummy) ;; | 
|---|
| 2981 | *) case " $_gas_uniq_newlist " in | 
|---|
| 2982 | *" $_gas_uniq_i "*) ;; | 
|---|
| 2983 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | 
|---|
| 2984 | esac ;; | 
|---|
| 2985 | esac | 
|---|
| 2986 | done | 
|---|
| 2987 | emfiles=$_gas_uniq_newlist | 
|---|
| 2988 |  | 
|---|
| 2989 | if test `set . $formats ; shift ; echo $#` -gt 1 ; then | 
|---|
| 2990 | for fmt in $formats ; do | 
|---|
| 2991 | case $fmt in | 
|---|
| 2992 | aout)     cat >> confdefs.h <<\EOF | 
|---|
| 2993 | #define OBJ_MAYBE_AOUT 1 | 
|---|
| 2994 | EOF | 
|---|
| 2995 | ;; | 
|---|
| 2996 | bout)     cat >> confdefs.h <<\EOF | 
|---|
| 2997 | #define OBJ_MAYBE_BOUT 1 | 
|---|
| 2998 | EOF | 
|---|
| 2999 | ;; | 
|---|
| 3000 | coff)     cat >> confdefs.h <<\EOF | 
|---|
| 3001 | #define OBJ_MAYBE_COFF 1 | 
|---|
| 3002 | EOF | 
|---|
| 3003 | ;; | 
|---|
| 3004 | ecoff)    cat >> confdefs.h <<\EOF | 
|---|
| 3005 | #define OBJ_MAYBE_ECOFF 1 | 
|---|
| 3006 | EOF | 
|---|
| 3007 | ;; | 
|---|
| 3008 | elf)      cat >> confdefs.h <<\EOF | 
|---|
| 3009 | #define OBJ_MAYBE_ELF 1 | 
|---|
| 3010 | EOF | 
|---|
| 3011 | ;; | 
|---|
| 3012 | generic)  cat >> confdefs.h <<\EOF | 
|---|
| 3013 | #define OBJ_MAYBE_GENERIC 1 | 
|---|
| 3014 | EOF | 
|---|
| 3015 | ;; | 
|---|
| 3016 | hp300)    cat >> confdefs.h <<\EOF | 
|---|
| 3017 | #define OBJ_MAYBE_HP300 1 | 
|---|
| 3018 | EOF | 
|---|
| 3019 | ;; | 
|---|
| 3020 | ieee)     cat >> confdefs.h <<\EOF | 
|---|
| 3021 | #define OBJ_MAYBE_IEEE 1 | 
|---|
| 3022 | EOF | 
|---|
| 3023 | ;; | 
|---|
| 3024 | som)      cat >> confdefs.h <<\EOF | 
|---|
| 3025 | #define OBJ_MAYBE_SOM 1 | 
|---|
| 3026 | EOF | 
|---|
| 3027 | ;; | 
|---|
| 3028 | vms)      cat >> confdefs.h <<\EOF | 
|---|
| 3029 | #define OBJ_MAYBE_VMS 1 | 
|---|
| 3030 | EOF | 
|---|
| 3031 | ;; | 
|---|
| 3032 | esac | 
|---|
| 3033 | extra_objects="$extra_objects obj-$fmt.o" | 
|---|
| 3034 | done | 
|---|
| 3035 | obj_format=multi | 
|---|
| 3036 | fi | 
|---|
| 3037 | if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then | 
|---|
| 3038 | DEFAULT_EMULATION=`set . $emulations ; echo $2` | 
|---|
| 3039 | # e-mips* has more than one emulation per file, e-i386* has just one at the | 
|---|
| 3040 | # moment.  If only one emulation is specified, then don't define | 
|---|
| 3041 | # USE_EMULATIONS or include any of the e-files as they will only be bloat. | 
|---|
| 3042 | case "${obj_format}${emfiles}" in | 
|---|
| 3043 | multi* | *mips*) | 
|---|
| 3044 | extra_objects="$extra_objects $emfiles" | 
|---|
| 3045 | cat >> confdefs.h <<\EOF | 
|---|
| 3046 | #define USE_EMULATIONS 1 | 
|---|
| 3047 | EOF | 
|---|
| 3048 | ;; | 
|---|
| 3049 | esac | 
|---|
| 3050 | fi | 
|---|
| 3051 |  | 
|---|
| 3052 | cat >> confdefs.h <<EOF | 
|---|
| 3053 | #define EMULATIONS $EMULATIONS | 
|---|
| 3054 | EOF | 
|---|
| 3055 |  | 
|---|
| 3056 | cat >> confdefs.h <<EOF | 
|---|
| 3057 | #define DEFAULT_EMULATION "$DEFAULT_EMULATION" | 
|---|
| 3058 | EOF | 
|---|
| 3059 |  | 
|---|
| 3060 |  | 
|---|
| 3061 | case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in | 
|---|
| 3062 | yes-*-coff)   need_bfd=yes ;; | 
|---|
| 3063 | no-*-coff)    need_bfd=yes | 
|---|
| 3064 | cat >> confdefs.h <<\EOF | 
|---|
| 3065 | #define MANY_SEGMENTS 1 | 
|---|
| 3066 | EOF | 
|---|
| 3067 | ;; | 
|---|
| 3068 | esac | 
|---|
| 3069 |  | 
|---|
| 3070 | reject_dev_configs=yes | 
|---|
| 3071 |  | 
|---|
| 3072 | case ${reject_dev_configs}-${dev} in | 
|---|
| 3073 | yes-yes) # Oops. | 
|---|
| 3074 | { echo "configure: error: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; } | 
|---|
| 3075 | ;; | 
|---|
| 3076 | esac | 
|---|
| 3077 |  | 
|---|
| 3078 |  | 
|---|
| 3079 |  | 
|---|
| 3080 |  | 
|---|
| 3081 |  | 
|---|
| 3082 |  | 
|---|
| 3083 |  | 
|---|
| 3084 | case "${primary_bfd_gas}" in | 
|---|
| 3085 | yes)  cat >> confdefs.h <<\EOF | 
|---|
| 3086 | #define BFD_ASSEMBLER 1 | 
|---|
| 3087 | EOF | 
|---|
| 3088 |  | 
|---|
| 3089 | need_bfd=yes ;; | 
|---|
| 3090 | esac | 
|---|
| 3091 |  | 
|---|
| 3092 | # do we need the opcodes library? | 
|---|
| 3093 | case "${need_opcodes}" in | 
|---|
| 3094 | yes) | 
|---|
| 3095 | OPCODES_LIB=../opcodes/libopcodes.la | 
|---|
| 3096 | ;; | 
|---|
| 3097 | esac | 
|---|
| 3098 |  | 
|---|
| 3099 | case "${need_bfd}" in | 
|---|
| 3100 | yes) | 
|---|
| 3101 | BFDLIB=../bfd/libbfd.la | 
|---|
| 3102 | ALL_OBJ_DEPS="$ALL_OBJ_DEPS ../bfd/bfd.h" | 
|---|
| 3103 | ;; | 
|---|
| 3104 | esac | 
|---|
| 3105 |  | 
|---|
| 3106 |  | 
|---|
| 3107 |  | 
|---|
| 3108 |  | 
|---|
| 3109 |  | 
|---|
| 3110 |  | 
|---|
| 3111 | cat >> confdefs.h <<EOF | 
|---|
| 3112 | #define TARGET_ALIAS "${target_alias}" | 
|---|
| 3113 | EOF | 
|---|
| 3114 |  | 
|---|
| 3115 | cat >> confdefs.h <<EOF | 
|---|
| 3116 | #define TARGET_CANONICAL "${target}" | 
|---|
| 3117 | EOF | 
|---|
| 3118 |  | 
|---|
| 3119 | cat >> confdefs.h <<EOF | 
|---|
| 3120 | #define TARGET_CPU "${target_cpu}" | 
|---|
| 3121 | EOF | 
|---|
| 3122 |  | 
|---|
| 3123 | cat >> confdefs.h <<EOF | 
|---|
| 3124 | #define TARGET_VENDOR "${target_vendor}" | 
|---|
| 3125 | EOF | 
|---|
| 3126 |  | 
|---|
| 3127 | cat >> confdefs.h <<EOF | 
|---|
| 3128 | #define TARGET_OS "${target_os}" | 
|---|
| 3129 | EOF | 
|---|
| 3130 |  | 
|---|
| 3131 |  | 
|---|
| 3132 | # Extract the first word of "gcc", so it can be a program name with args. | 
|---|
| 3133 | set dummy gcc; ac_word=$2 | 
|---|
| 3134 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 3135 | echo "configure:3136: checking for $ac_word" >&5 | 
|---|
| 3136 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 
|---|
| 3137 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3138 | else | 
|---|
| 3139 | if test -n "$CC"; then | 
|---|
| 3140 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|---|
| 3141 | else | 
|---|
| 3142 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 3143 | ac_dummy="$PATH" | 
|---|
| 3144 | for ac_dir in $ac_dummy; do | 
|---|
| 3145 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 3146 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 3147 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 3148 | ac_cv_prog_CC="gcc" | 
|---|
| 3149 | break | 
|---|
| 3150 | fi | 
|---|
| 3151 | done | 
|---|
| 3152 | IFS="$ac_save_ifs" | 
|---|
| 3153 | fi | 
|---|
| 3154 | fi | 
|---|
| 3155 | CC="$ac_cv_prog_CC" | 
|---|
| 3156 | if test -n "$CC"; then | 
|---|
| 3157 | echo "$ac_t""$CC" 1>&6 | 
|---|
| 3158 | else | 
|---|
| 3159 | echo "$ac_t""no" 1>&6 | 
|---|
| 3160 | fi | 
|---|
| 3161 |  | 
|---|
| 3162 | if test -z "$CC"; then | 
|---|
| 3163 | # Extract the first word of "cc", so it can be a program name with args. | 
|---|
| 3164 | set dummy cc; ac_word=$2 | 
|---|
| 3165 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 3166 | echo "configure:3167: checking for $ac_word" >&5 | 
|---|
| 3167 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 
|---|
| 3168 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3169 | else | 
|---|
| 3170 | if test -n "$CC"; then | 
|---|
| 3171 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|---|
| 3172 | else | 
|---|
| 3173 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 3174 | ac_prog_rejected=no | 
|---|
| 3175 | ac_dummy="$PATH" | 
|---|
| 3176 | for ac_dir in $ac_dummy; do | 
|---|
| 3177 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 3178 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 3179 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 3180 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \ | 
|---|
| 3181 | "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then | 
|---|
| 3182 | ac_prog_rejected=yes | 
|---|
| 3183 | continue | 
|---|
| 3184 | fi | 
|---|
| 3185 | ac_cv_prog_CC="cc" | 
|---|
| 3186 | break | 
|---|
| 3187 | fi | 
|---|
| 3188 | done | 
|---|
| 3189 | IFS="$ac_save_ifs" | 
|---|
| 3190 | if test $ac_prog_rejected = yes; then | 
|---|
| 3191 | # We found a bogon in the path, so make sure we never use it. | 
|---|
| 3192 | set dummy $ac_cv_prog_CC | 
|---|
| 3193 | shift | 
|---|
| 3194 | if test $# -gt 0; then | 
|---|
| 3195 | # We chose a different compiler from the bogus one. | 
|---|
| 3196 | # However, it has the same basename, so the bogon will be chosen | 
|---|
| 3197 | # first if we set CC to just the basename; use the full file name. | 
|---|
| 3198 | shift | 
|---|
| 3199 | set dummy "$ac_dir/$ac_word" "$@" | 
|---|
| 3200 | shift | 
|---|
| 3201 | ac_cv_prog_CC="$@" | 
|---|
| 3202 | fi | 
|---|
| 3203 | fi | 
|---|
| 3204 | fi | 
|---|
| 3205 | fi | 
|---|
| 3206 | CC="$ac_cv_prog_CC" | 
|---|
| 3207 | if test -n "$CC"; then | 
|---|
| 3208 | echo "$ac_t""$CC" 1>&6 | 
|---|
| 3209 | else | 
|---|
| 3210 | echo "$ac_t""no" 1>&6 | 
|---|
| 3211 | fi | 
|---|
| 3212 |  | 
|---|
| 3213 | if test -z "$CC"; then | 
|---|
| 3214 | case "`uname -s`" in | 
|---|
| 3215 | *win32* | *WIN32*) | 
|---|
| 3216 | # Extract the first word of "cl", so it can be a program name with args. | 
|---|
| 3217 | set dummy cl; ac_word=$2 | 
|---|
| 3218 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 3219 | echo "configure:3220: checking for $ac_word" >&5 | 
|---|
| 3220 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 
|---|
| 3221 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3222 | else | 
|---|
| 3223 | if test -n "$CC"; then | 
|---|
| 3224 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|---|
| 3225 | else | 
|---|
| 3226 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 3227 | ac_dummy="$PATH" | 
|---|
| 3228 | for ac_dir in $ac_dummy; do | 
|---|
| 3229 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 3230 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 3231 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 3232 | ac_cv_prog_CC="cl" | 
|---|
| 3233 | break | 
|---|
| 3234 | fi | 
|---|
| 3235 | done | 
|---|
| 3236 | IFS="$ac_save_ifs" | 
|---|
| 3237 | fi | 
|---|
| 3238 | fi | 
|---|
| 3239 | CC="$ac_cv_prog_CC" | 
|---|
| 3240 | if test -n "$CC"; then | 
|---|
| 3241 | echo "$ac_t""$CC" 1>&6 | 
|---|
| 3242 | else | 
|---|
| 3243 | echo "$ac_t""no" 1>&6 | 
|---|
| 3244 | fi | 
|---|
| 3245 | ;; | 
|---|
| 3246 | esac | 
|---|
| 3247 | fi | 
|---|
| 3248 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | 
|---|
| 3249 | fi | 
|---|
| 3250 |  | 
|---|
| 3251 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | 
|---|
| 3252 | echo "configure:3253: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | 
|---|
| 3253 |  | 
|---|
| 3254 | ac_ext=c | 
|---|
| 3255 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
|---|
| 3256 | ac_cpp='$CPP $CPPFLAGS' | 
|---|
| 3257 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
|---|
| 3258 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
|---|
| 3259 | cross_compiling=$ac_cv_prog_cc_cross | 
|---|
| 3260 |  | 
|---|
| 3261 | cat > conftest.$ac_ext << EOF | 
|---|
| 3262 |  | 
|---|
| 3263 | #line 3264 "configure" | 
|---|
| 3264 | #include "confdefs.h" | 
|---|
| 3265 |  | 
|---|
| 3266 | main(){return(0);} | 
|---|
| 3267 | EOF | 
|---|
| 3268 | if { (eval echo configure:3269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 3269 | ac_cv_prog_cc_works=yes | 
|---|
| 3270 | # If we can't run a trivial program, we are probably using a cross compiler. | 
|---|
| 3271 | if (./conftest; exit) 2>/dev/null; then | 
|---|
| 3272 | ac_cv_prog_cc_cross=no | 
|---|
| 3273 | else | 
|---|
| 3274 | ac_cv_prog_cc_cross=yes | 
|---|
| 3275 | fi | 
|---|
| 3276 | else | 
|---|
| 3277 | echo "configure: failed program was:" >&5 | 
|---|
| 3278 | cat conftest.$ac_ext >&5 | 
|---|
| 3279 | ac_cv_prog_cc_works=no | 
|---|
| 3280 | fi | 
|---|
| 3281 | rm -fr conftest* | 
|---|
| 3282 | ac_ext=c | 
|---|
| 3283 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
|---|
| 3284 | ac_cpp='$CPP $CPPFLAGS' | 
|---|
| 3285 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
|---|
| 3286 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
|---|
| 3287 | cross_compiling=$ac_cv_prog_cc_cross | 
|---|
| 3288 |  | 
|---|
| 3289 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | 
|---|
| 3290 | if test $ac_cv_prog_cc_works = no; then | 
|---|
| 3291 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | 
|---|
| 3292 | fi | 
|---|
| 3293 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | 
|---|
| 3294 | echo "configure:3295: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | 
|---|
| 3295 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | 
|---|
| 3296 | cross_compiling=$ac_cv_prog_cc_cross | 
|---|
| 3297 |  | 
|---|
| 3298 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | 
|---|
| 3299 | echo "configure:3300: checking whether we are using GNU C" >&5 | 
|---|
| 3300 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | 
|---|
| 3301 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3302 | else | 
|---|
| 3303 | cat > conftest.c <<EOF | 
|---|
| 3304 | #ifdef __GNUC__ | 
|---|
| 3305 | yes; | 
|---|
| 3306 | #endif | 
|---|
| 3307 | EOF | 
|---|
| 3308 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | 
|---|
| 3309 | ac_cv_prog_gcc=yes | 
|---|
| 3310 | else | 
|---|
| 3311 | ac_cv_prog_gcc=no | 
|---|
| 3312 | fi | 
|---|
| 3313 | fi | 
|---|
| 3314 |  | 
|---|
| 3315 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | 
|---|
| 3316 |  | 
|---|
| 3317 | if test $ac_cv_prog_gcc = yes; then | 
|---|
| 3318 | GCC=yes | 
|---|
| 3319 | else | 
|---|
| 3320 | GCC= | 
|---|
| 3321 | fi | 
|---|
| 3322 |  | 
|---|
| 3323 | ac_test_CFLAGS="${CFLAGS+set}" | 
|---|
| 3324 | ac_save_CFLAGS="$CFLAGS" | 
|---|
| 3325 | CFLAGS= | 
|---|
| 3326 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | 
|---|
| 3327 | echo "configure:3328: checking whether ${CC-cc} accepts -g" >&5 | 
|---|
| 3328 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | 
|---|
| 3329 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3330 | else | 
|---|
| 3331 | echo 'void f(){}' > conftest.c | 
|---|
| 3332 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | 
|---|
| 3333 | ac_cv_prog_cc_g=yes | 
|---|
| 3334 | else | 
|---|
| 3335 | ac_cv_prog_cc_g=no | 
|---|
| 3336 | fi | 
|---|
| 3337 | rm -f conftest* | 
|---|
| 3338 |  | 
|---|
| 3339 | fi | 
|---|
| 3340 |  | 
|---|
| 3341 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | 
|---|
| 3342 | if test "$ac_test_CFLAGS" = set; then | 
|---|
| 3343 | CFLAGS="$ac_save_CFLAGS" | 
|---|
| 3344 | elif test $ac_cv_prog_cc_g = yes; then | 
|---|
| 3345 | if test "$GCC" = yes; then | 
|---|
| 3346 | CFLAGS="-g -O2" | 
|---|
| 3347 | else | 
|---|
| 3348 | CFLAGS="-g" | 
|---|
| 3349 | fi | 
|---|
| 3350 | else | 
|---|
| 3351 | if test "$GCC" = yes; then | 
|---|
| 3352 | CFLAGS="-O2" | 
|---|
| 3353 | else | 
|---|
| 3354 | CFLAGS= | 
|---|
| 3355 | fi | 
|---|
| 3356 | fi | 
|---|
| 3357 |  | 
|---|
| 3358 |  | 
|---|
| 3359 | for ac_prog in 'bison -y' byacc | 
|---|
| 3360 | do | 
|---|
| 3361 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|---|
| 3362 | set dummy $ac_prog; ac_word=$2 | 
|---|
| 3363 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 3364 | echo "configure:3365: checking for $ac_word" >&5 | 
|---|
| 3365 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then | 
|---|
| 3366 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3367 | else | 
|---|
| 3368 | if test -n "$YACC"; then | 
|---|
| 3369 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | 
|---|
| 3370 | else | 
|---|
| 3371 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 3372 | ac_dummy="$PATH" | 
|---|
| 3373 | for ac_dir in $ac_dummy; do | 
|---|
| 3374 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 3375 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 3376 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 3377 | ac_cv_prog_YACC="$ac_prog" | 
|---|
| 3378 | break | 
|---|
| 3379 | fi | 
|---|
| 3380 | done | 
|---|
| 3381 | IFS="$ac_save_ifs" | 
|---|
| 3382 | fi | 
|---|
| 3383 | fi | 
|---|
| 3384 | YACC="$ac_cv_prog_YACC" | 
|---|
| 3385 | if test -n "$YACC"; then | 
|---|
| 3386 | echo "$ac_t""$YACC" 1>&6 | 
|---|
| 3387 | else | 
|---|
| 3388 | echo "$ac_t""no" 1>&6 | 
|---|
| 3389 | fi | 
|---|
| 3390 |  | 
|---|
| 3391 | test -n "$YACC" && break | 
|---|
| 3392 | done | 
|---|
| 3393 | test -n "$YACC" || YACC="yacc" | 
|---|
| 3394 |  | 
|---|
| 3395 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | 
|---|
| 3396 | echo "configure:3397: checking how to run the C preprocessor" >&5 | 
|---|
| 3397 | # On Suns, sometimes $CPP names a directory. | 
|---|
| 3398 | if test -n "$CPP" && test -d "$CPP"; then | 
|---|
| 3399 | CPP= | 
|---|
| 3400 | fi | 
|---|
| 3401 | if test -z "$CPP"; then | 
|---|
| 3402 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | 
|---|
| 3403 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3404 | else | 
|---|
| 3405 | # This must be in double quotes, not single quotes, because CPP may get | 
|---|
| 3406 | # substituted into the Makefile and "${CC-cc}" will confuse make. | 
|---|
| 3407 | CPP="${CC-cc} -E" | 
|---|
| 3408 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|---|
| 3409 | # not just through cpp. | 
|---|
| 3410 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3411 | #include <sys/types.h> | 
|---|
| 3412 | #line 3413 "configure" | 
|---|
| 3413 | #include "confdefs.h" | 
|---|
| 3414 | #include <assert.h> | 
|---|
| 3415 | Syntax Error | 
|---|
| 3416 | EOF | 
|---|
| 3417 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 3418 | { (eval echo configure:3419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 3419 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 3420 | if test -z "$ac_err"; then | 
|---|
| 3421 | : | 
|---|
| 3422 | else | 
|---|
| 3423 | echo "$ac_err" >&5 | 
|---|
| 3424 | echo "configure: failed program was:" >&5 | 
|---|
| 3425 | cat conftest.$ac_ext >&5 | 
|---|
| 3426 | rm -rf conftest* | 
|---|
| 3427 | CPP="${CC-cc} -E -traditional-cpp" | 
|---|
| 3428 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3429 | #include <sys/types.h> | 
|---|
| 3430 | #line 3431 "configure" | 
|---|
| 3431 | #include "confdefs.h" | 
|---|
| 3432 | #include <assert.h> | 
|---|
| 3433 | Syntax Error | 
|---|
| 3434 | EOF | 
|---|
| 3435 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 3436 | { (eval echo configure:3437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 3437 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 3438 | if test -z "$ac_err"; then | 
|---|
| 3439 | : | 
|---|
| 3440 | else | 
|---|
| 3441 | echo "$ac_err" >&5 | 
|---|
| 3442 | echo "configure: failed program was:" >&5 | 
|---|
| 3443 | cat conftest.$ac_ext >&5 | 
|---|
| 3444 | rm -rf conftest* | 
|---|
| 3445 | CPP="${CC-cc} -nologo -E" | 
|---|
| 3446 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3447 | #include <sys/types.h> | 
|---|
| 3448 | #line 3449 "configure" | 
|---|
| 3449 | #include "confdefs.h" | 
|---|
| 3450 | #include <assert.h> | 
|---|
| 3451 | Syntax Error | 
|---|
| 3452 | EOF | 
|---|
| 3453 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 3454 | { (eval echo configure:3455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 3455 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 3456 | if test -z "$ac_err"; then | 
|---|
| 3457 | : | 
|---|
| 3458 | else | 
|---|
| 3459 | echo "$ac_err" >&5 | 
|---|
| 3460 | echo "configure: failed program was:" >&5 | 
|---|
| 3461 | cat conftest.$ac_ext >&5 | 
|---|
| 3462 | rm -rf conftest* | 
|---|
| 3463 | CPP=/lib/cpp | 
|---|
| 3464 | fi | 
|---|
| 3465 | rm -f conftest* | 
|---|
| 3466 | fi | 
|---|
| 3467 | rm -f conftest* | 
|---|
| 3468 | fi | 
|---|
| 3469 | rm -f conftest* | 
|---|
| 3470 | ac_cv_prog_CPP="$CPP" | 
|---|
| 3471 | fi | 
|---|
| 3472 | CPP="$ac_cv_prog_CPP" | 
|---|
| 3473 | else | 
|---|
| 3474 | ac_cv_prog_CPP="$CPP" | 
|---|
| 3475 | fi | 
|---|
| 3476 | echo "$ac_t""$CPP" 1>&6 | 
|---|
| 3477 |  | 
|---|
| 3478 | missing_dir=`cd $ac_aux_dir && pwd` | 
|---|
| 3479 | for ac_prog in flex lex | 
|---|
| 3480 | do | 
|---|
| 3481 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|---|
| 3482 | set dummy $ac_prog; ac_word=$2 | 
|---|
| 3483 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 3484 | echo "configure:3485: checking for $ac_word" >&5 | 
|---|
| 3485 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then | 
|---|
| 3486 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3487 | else | 
|---|
| 3488 | if test -n "$LEX"; then | 
|---|
| 3489 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | 
|---|
| 3490 | else | 
|---|
| 3491 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 3492 | ac_dummy="$PATH" | 
|---|
| 3493 | for ac_dir in $ac_dummy; do | 
|---|
| 3494 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 3495 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 3496 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 3497 | ac_cv_prog_LEX="$ac_prog" | 
|---|
| 3498 | break | 
|---|
| 3499 | fi | 
|---|
| 3500 | done | 
|---|
| 3501 | IFS="$ac_save_ifs" | 
|---|
| 3502 | fi | 
|---|
| 3503 | fi | 
|---|
| 3504 | LEX="$ac_cv_prog_LEX" | 
|---|
| 3505 | if test -n "$LEX"; then | 
|---|
| 3506 | echo "$ac_t""$LEX" 1>&6 | 
|---|
| 3507 | else | 
|---|
| 3508 | echo "$ac_t""no" 1>&6 | 
|---|
| 3509 | fi | 
|---|
| 3510 |  | 
|---|
| 3511 | test -n "$LEX" && break | 
|---|
| 3512 | done | 
|---|
| 3513 | test -n "$LEX" || LEX=""$missing_dir/missing flex"" | 
|---|
| 3514 |  | 
|---|
| 3515 | # Extract the first word of "flex", so it can be a program name with args. | 
|---|
| 3516 | set dummy flex; ac_word=$2 | 
|---|
| 3517 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 3518 | echo "configure:3519: checking for $ac_word" >&5 | 
|---|
| 3519 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then | 
|---|
| 3520 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3521 | else | 
|---|
| 3522 | if test -n "$LEX"; then | 
|---|
| 3523 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | 
|---|
| 3524 | else | 
|---|
| 3525 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 3526 | ac_dummy="$PATH" | 
|---|
| 3527 | for ac_dir in $ac_dummy; do | 
|---|
| 3528 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 3529 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 3530 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 3531 | ac_cv_prog_LEX="flex" | 
|---|
| 3532 | break | 
|---|
| 3533 | fi | 
|---|
| 3534 | done | 
|---|
| 3535 | IFS="$ac_save_ifs" | 
|---|
| 3536 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | 
|---|
| 3537 | fi | 
|---|
| 3538 | fi | 
|---|
| 3539 | LEX="$ac_cv_prog_LEX" | 
|---|
| 3540 | if test -n "$LEX"; then | 
|---|
| 3541 | echo "$ac_t""$LEX" 1>&6 | 
|---|
| 3542 | else | 
|---|
| 3543 | echo "$ac_t""no" 1>&6 | 
|---|
| 3544 | fi | 
|---|
| 3545 |  | 
|---|
| 3546 | if test -z "$LEXLIB" | 
|---|
| 3547 | then | 
|---|
| 3548 | case "$LEX" in | 
|---|
| 3549 | flex*) ac_lib=fl ;; | 
|---|
| 3550 | *) ac_lib=l ;; | 
|---|
| 3551 | esac | 
|---|
| 3552 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | 
|---|
| 3553 | echo "configure:3554: checking for yywrap in -l$ac_lib" >&5 | 
|---|
| 3554 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` | 
|---|
| 3555 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|---|
| 3556 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3557 | else | 
|---|
| 3558 | ac_save_LIBS="$LIBS" | 
|---|
| 3559 | LIBS="-l$ac_lib  $LIBS" | 
|---|
| 3560 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3561 | #line 3562 "configure" | 
|---|
| 3562 | #include "confdefs.h" | 
|---|
| 3563 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 3564 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 3565 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 3566 | char yywrap(); | 
|---|
| 3567 |  | 
|---|
| 3568 | int main() { | 
|---|
| 3569 | yywrap() | 
|---|
| 3570 | ; return 0; } | 
|---|
| 3571 | EOF | 
|---|
| 3572 | if { (eval echo configure:3573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 3573 | rm -rf conftest* | 
|---|
| 3574 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|---|
| 3575 | else | 
|---|
| 3576 | echo "configure: failed program was:" >&5 | 
|---|
| 3577 | cat conftest.$ac_ext >&5 | 
|---|
| 3578 | rm -rf conftest* | 
|---|
| 3579 | eval "ac_cv_lib_$ac_lib_var=no" | 
|---|
| 3580 | fi | 
|---|
| 3581 | rm -f conftest* | 
|---|
| 3582 | LIBS="$ac_save_LIBS" | 
|---|
| 3583 |  | 
|---|
| 3584 | fi | 
|---|
| 3585 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|---|
| 3586 | echo "$ac_t""yes" 1>&6 | 
|---|
| 3587 | LEXLIB="-l$ac_lib" | 
|---|
| 3588 | else | 
|---|
| 3589 | echo "$ac_t""no" 1>&6 | 
|---|
| 3590 | fi | 
|---|
| 3591 |  | 
|---|
| 3592 | fi | 
|---|
| 3593 |  | 
|---|
| 3594 | echo $ac_n "checking lex output file root""... $ac_c" 1>&6 | 
|---|
| 3595 | echo "configure:3596: checking lex output file root" >&5 | 
|---|
| 3596 | if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then | 
|---|
| 3597 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3598 | else | 
|---|
| 3599 | # The minimal lex program is just a single line: %%.  But some broken lexes | 
|---|
| 3600 | # (Solaris, I think it was) want two %% lines, so accommodate them. | 
|---|
| 3601 | echo '%% | 
|---|
| 3602 | %%' | $LEX | 
|---|
| 3603 | if test -f lex.yy.c; then | 
|---|
| 3604 | ac_cv_prog_lex_root=lex.yy | 
|---|
| 3605 | elif test -f lexyy.c; then | 
|---|
| 3606 | ac_cv_prog_lex_root=lexyy | 
|---|
| 3607 | else | 
|---|
| 3608 | { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; } | 
|---|
| 3609 | fi | 
|---|
| 3610 | fi | 
|---|
| 3611 |  | 
|---|
| 3612 | echo "$ac_t""$ac_cv_prog_lex_root" 1>&6 | 
|---|
| 3613 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | 
|---|
| 3614 |  | 
|---|
| 3615 | echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6 | 
|---|
| 3616 | echo "configure:3617: checking whether yytext is a pointer" >&5 | 
|---|
| 3617 | if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then | 
|---|
| 3618 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3619 | else | 
|---|
| 3620 | # POSIX says lex can declare yytext either as a pointer or an array; the | 
|---|
| 3621 | # default is implementation-dependent. Figure out which it is, since | 
|---|
| 3622 | # not all implementations provide the %pointer and %array declarations. | 
|---|
| 3623 | ac_cv_prog_lex_yytext_pointer=no | 
|---|
| 3624 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | 
|---|
| 3625 | ac_save_LIBS="$LIBS" | 
|---|
| 3626 | LIBS="$LIBS $LEXLIB" | 
|---|
| 3627 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3628 | #line 3629 "configure" | 
|---|
| 3629 | #include "confdefs.h" | 
|---|
| 3630 | `cat $LEX_OUTPUT_ROOT.c` | 
|---|
| 3631 | int main() { | 
|---|
| 3632 |  | 
|---|
| 3633 | ; return 0; } | 
|---|
| 3634 | EOF | 
|---|
| 3635 | if { (eval echo configure:3636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 3636 | rm -rf conftest* | 
|---|
| 3637 | ac_cv_prog_lex_yytext_pointer=yes | 
|---|
| 3638 | else | 
|---|
| 3639 | echo "configure: failed program was:" >&5 | 
|---|
| 3640 | cat conftest.$ac_ext >&5 | 
|---|
| 3641 | fi | 
|---|
| 3642 | rm -f conftest* | 
|---|
| 3643 | LIBS="$ac_save_LIBS" | 
|---|
| 3644 | rm -f "${LEX_OUTPUT_ROOT}.c" | 
|---|
| 3645 |  | 
|---|
| 3646 | fi | 
|---|
| 3647 |  | 
|---|
| 3648 | echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6 | 
|---|
| 3649 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | 
|---|
| 3650 | cat >> confdefs.h <<\EOF | 
|---|
| 3651 | #define YYTEXT_POINTER 1 | 
|---|
| 3652 | EOF | 
|---|
| 3653 |  | 
|---|
| 3654 | fi | 
|---|
| 3655 |  | 
|---|
| 3656 |  | 
|---|
| 3657 | ALL_LINGUAS= | 
|---|
| 3658 | # Extract the first word of "ranlib", so it can be a program name with args. | 
|---|
| 3659 | set dummy ranlib; ac_word=$2 | 
|---|
| 3660 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 3661 | echo "configure:3662: checking for $ac_word" >&5 | 
|---|
| 3662 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | 
|---|
| 3663 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3664 | else | 
|---|
| 3665 | if test -n "$RANLIB"; then | 
|---|
| 3666 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
|---|
| 3667 | else | 
|---|
| 3668 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 3669 | ac_dummy="$PATH" | 
|---|
| 3670 | for ac_dir in $ac_dummy; do | 
|---|
| 3671 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 3672 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 3673 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 3674 | ac_cv_prog_RANLIB="ranlib" | 
|---|
| 3675 | break | 
|---|
| 3676 | fi | 
|---|
| 3677 | done | 
|---|
| 3678 | IFS="$ac_save_ifs" | 
|---|
| 3679 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | 
|---|
| 3680 | fi | 
|---|
| 3681 | fi | 
|---|
| 3682 | RANLIB="$ac_cv_prog_RANLIB" | 
|---|
| 3683 | if test -n "$RANLIB"; then | 
|---|
| 3684 | echo "$ac_t""$RANLIB" 1>&6 | 
|---|
| 3685 | else | 
|---|
| 3686 | echo "$ac_t""no" 1>&6 | 
|---|
| 3687 | fi | 
|---|
| 3688 |  | 
|---|
| 3689 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | 
|---|
| 3690 | echo "configure:3691: checking for ANSI C header files" >&5 | 
|---|
| 3691 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | 
|---|
| 3692 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3693 | else | 
|---|
| 3694 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3695 | #include <sys/types.h> | 
|---|
| 3696 | #line 3697 "configure" | 
|---|
| 3697 | #include "confdefs.h" | 
|---|
| 3698 | #include <stdlib.h> | 
|---|
| 3699 | #include <stdarg.h> | 
|---|
| 3700 | #include <string.h> | 
|---|
| 3701 | #include <float.h> | 
|---|
| 3702 | EOF | 
|---|
| 3703 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 3704 | { (eval echo configure:3705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 3705 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 3706 | if test -z "$ac_err"; then | 
|---|
| 3707 | rm -rf conftest* | 
|---|
| 3708 | ac_cv_header_stdc=yes | 
|---|
| 3709 | else | 
|---|
| 3710 | echo "$ac_err" >&5 | 
|---|
| 3711 | echo "configure: failed program was:" >&5 | 
|---|
| 3712 | cat conftest.$ac_ext >&5 | 
|---|
| 3713 | rm -rf conftest* | 
|---|
| 3714 | ac_cv_header_stdc=no | 
|---|
| 3715 | fi | 
|---|
| 3716 | rm -f conftest* | 
|---|
| 3717 |  | 
|---|
| 3718 | if test $ac_cv_header_stdc = yes; then | 
|---|
| 3719 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
|---|
| 3720 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3721 | #line 3722 "configure" | 
|---|
| 3722 | #include "confdefs.h" | 
|---|
| 3723 | #include <string.h> | 
|---|
| 3724 | EOF | 
|---|
| 3725 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|---|
| 3726 | egrep "memchr" >/dev/null 2>&1; then | 
|---|
| 3727 | : | 
|---|
| 3728 | else | 
|---|
| 3729 | rm -rf conftest* | 
|---|
| 3730 | ac_cv_header_stdc=no | 
|---|
| 3731 | fi | 
|---|
| 3732 | rm -f conftest* | 
|---|
| 3733 |  | 
|---|
| 3734 | fi | 
|---|
| 3735 |  | 
|---|
| 3736 | if test $ac_cv_header_stdc = yes; then | 
|---|
| 3737 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
|---|
| 3738 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3739 | #line 3740 "configure" | 
|---|
| 3740 | #include "confdefs.h" | 
|---|
| 3741 | #include <stdlib.h> | 
|---|
| 3742 | EOF | 
|---|
| 3743 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|---|
| 3744 | egrep "free" >/dev/null 2>&1; then | 
|---|
| 3745 | : | 
|---|
| 3746 | else | 
|---|
| 3747 | rm -rf conftest* | 
|---|
| 3748 | ac_cv_header_stdc=no | 
|---|
| 3749 | fi | 
|---|
| 3750 | rm -f conftest* | 
|---|
| 3751 |  | 
|---|
| 3752 | fi | 
|---|
| 3753 |  | 
|---|
| 3754 | if test $ac_cv_header_stdc = yes; then | 
|---|
| 3755 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
|---|
| 3756 | if test "$cross_compiling" = yes; then | 
|---|
| 3757 | : | 
|---|
| 3758 | else | 
|---|
| 3759 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3760 | #line 3761 "configure" | 
|---|
| 3761 | #include "confdefs.h" | 
|---|
| 3762 | #include <ctype.h> | 
|---|
| 3763 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|---|
| 3764 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|---|
| 3765 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|---|
| 3766 | int main () { int i; for (i = 0; i < 256; i++) | 
|---|
| 3767 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | 
|---|
| 3768 | exit (0); } | 
|---|
| 3769 |  | 
|---|
| 3770 | EOF | 
|---|
| 3771 | if { (eval echo configure:3772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
|---|
| 3772 | then | 
|---|
| 3773 | : | 
|---|
| 3774 | else | 
|---|
| 3775 | echo "configure: failed program was:" >&5 | 
|---|
| 3776 | cat conftest.$ac_ext >&5 | 
|---|
| 3777 | rm -fr conftest* | 
|---|
| 3778 | ac_cv_header_stdc=no | 
|---|
| 3779 | fi | 
|---|
| 3780 | rm -fr conftest* | 
|---|
| 3781 | fi | 
|---|
| 3782 |  | 
|---|
| 3783 | fi | 
|---|
| 3784 | fi | 
|---|
| 3785 |  | 
|---|
| 3786 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | 
|---|
| 3787 | if test $ac_cv_header_stdc = yes; then | 
|---|
| 3788 | cat >> confdefs.h <<\EOF | 
|---|
| 3789 | #define STDC_HEADERS 1 | 
|---|
| 3790 | EOF | 
|---|
| 3791 |  | 
|---|
| 3792 | fi | 
|---|
| 3793 |  | 
|---|
| 3794 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | 
|---|
| 3795 | echo "configure:3796: checking for working const" >&5 | 
|---|
| 3796 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then | 
|---|
| 3797 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3798 | else | 
|---|
| 3799 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3800 | #line 3801 "configure" | 
|---|
| 3801 | #include "confdefs.h" | 
|---|
| 3802 |  | 
|---|
| 3803 | int main() { | 
|---|
| 3804 |  | 
|---|
| 3805 | /* Ultrix mips cc rejects this.  */ | 
|---|
| 3806 | typedef int charset[2]; const charset x; | 
|---|
| 3807 | /* SunOS 4.1.1 cc rejects this.  */ | 
|---|
| 3808 | char const *const *ccp; | 
|---|
| 3809 | char **p; | 
|---|
| 3810 | /* NEC SVR4.0.2 mips cc rejects this.  */ | 
|---|
| 3811 | struct point {int x, y;}; | 
|---|
| 3812 | static struct point const zero = {0,0}; | 
|---|
| 3813 | /* AIX XL C 1.02.0.0 rejects this. | 
|---|
| 3814 | It does not let you subtract one const X* pointer from another in an arm | 
|---|
| 3815 | of an if-expression whose if-part is not a constant expression */ | 
|---|
| 3816 | const char *g = "string"; | 
|---|
| 3817 | ccp = &g + (g ? g-g : 0); | 
|---|
| 3818 | /* HPUX 7.0 cc rejects these. */ | 
|---|
| 3819 | ++ccp; | 
|---|
| 3820 | p = (char**) ccp; | 
|---|
| 3821 | ccp = (char const *const *) p; | 
|---|
| 3822 | { /* SCO 3.2v4 cc rejects this.  */ | 
|---|
| 3823 | char *t; | 
|---|
| 3824 | char const *s = 0 ? (char *) 0 : (char const *) 0; | 
|---|
| 3825 |  | 
|---|
| 3826 | *t++ = 0; | 
|---|
| 3827 | } | 
|---|
| 3828 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ | 
|---|
| 3829 | int x[] = {25, 17}; | 
|---|
| 3830 | const int *foo = &x[0]; | 
|---|
| 3831 | ++foo; | 
|---|
| 3832 | } | 
|---|
| 3833 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 
|---|
| 3834 | typedef const int *iptr; | 
|---|
| 3835 | iptr p = 0; | 
|---|
| 3836 | ++p; | 
|---|
| 3837 | } | 
|---|
| 3838 | { /* AIX XL C 1.02.0.0 rejects this saying | 
|---|
| 3839 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | 
|---|
| 3840 | struct s { int j; const int *ap[3]; }; | 
|---|
| 3841 | struct s *b; b->j = 5; | 
|---|
| 3842 | } | 
|---|
| 3843 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 
|---|
| 3844 | const int foo = 10; | 
|---|
| 3845 | } | 
|---|
| 3846 |  | 
|---|
| 3847 | ; return 0; } | 
|---|
| 3848 | EOF | 
|---|
| 3849 | if { (eval echo configure:3850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 3850 | rm -rf conftest* | 
|---|
| 3851 | ac_cv_c_const=yes | 
|---|
| 3852 | else | 
|---|
| 3853 | echo "configure: failed program was:" >&5 | 
|---|
| 3854 | cat conftest.$ac_ext >&5 | 
|---|
| 3855 | rm -rf conftest* | 
|---|
| 3856 | ac_cv_c_const=no | 
|---|
| 3857 | fi | 
|---|
| 3858 | rm -f conftest* | 
|---|
| 3859 | fi | 
|---|
| 3860 |  | 
|---|
| 3861 | echo "$ac_t""$ac_cv_c_const" 1>&6 | 
|---|
| 3862 | if test $ac_cv_c_const = no; then | 
|---|
| 3863 | cat >> confdefs.h <<\EOF | 
|---|
| 3864 | #define const | 
|---|
| 3865 | EOF | 
|---|
| 3866 |  | 
|---|
| 3867 | fi | 
|---|
| 3868 |  | 
|---|
| 3869 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | 
|---|
| 3870 | echo "configure:3871: checking for inline" >&5 | 
|---|
| 3871 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then | 
|---|
| 3872 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3873 | else | 
|---|
| 3874 | ac_cv_c_inline=no | 
|---|
| 3875 | for ac_kw in inline __inline__ __inline; do | 
|---|
| 3876 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3877 | #line 3878 "configure" | 
|---|
| 3878 | #include "confdefs.h" | 
|---|
| 3879 |  | 
|---|
| 3880 | int main() { | 
|---|
| 3881 | } $ac_kw foo() { | 
|---|
| 3882 | ; return 0; } | 
|---|
| 3883 | EOF | 
|---|
| 3884 | if { (eval echo configure:3885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 3885 | rm -rf conftest* | 
|---|
| 3886 | ac_cv_c_inline=$ac_kw; break | 
|---|
| 3887 | else | 
|---|
| 3888 | echo "configure: failed program was:" >&5 | 
|---|
| 3889 | cat conftest.$ac_ext >&5 | 
|---|
| 3890 | fi | 
|---|
| 3891 | rm -f conftest* | 
|---|
| 3892 | done | 
|---|
| 3893 |  | 
|---|
| 3894 | fi | 
|---|
| 3895 |  | 
|---|
| 3896 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | 
|---|
| 3897 | case "$ac_cv_c_inline" in | 
|---|
| 3898 | inline | yes) ;; | 
|---|
| 3899 | no) cat >> confdefs.h <<\EOF | 
|---|
| 3900 | #define inline | 
|---|
| 3901 | EOF | 
|---|
| 3902 | ;; | 
|---|
| 3903 | *)  cat >> confdefs.h <<EOF | 
|---|
| 3904 | #define inline $ac_cv_c_inline | 
|---|
| 3905 | EOF | 
|---|
| 3906 | ;; | 
|---|
| 3907 | esac | 
|---|
| 3908 |  | 
|---|
| 3909 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | 
|---|
| 3910 | echo "configure:3911: checking for off_t" >&5 | 
|---|
| 3911 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then | 
|---|
| 3912 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3913 | else | 
|---|
| 3914 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3915 | #line 3916 "configure" | 
|---|
| 3916 | #include "confdefs.h" | 
|---|
| 3917 | #include <sys/types.h> | 
|---|
| 3918 | #if STDC_HEADERS | 
|---|
| 3919 | #include <stdlib.h> | 
|---|
| 3920 | #include <stddef.h> | 
|---|
| 3921 | #endif | 
|---|
| 3922 | EOF | 
|---|
| 3923 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|---|
| 3924 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | 
|---|
| 3925 | rm -rf conftest* | 
|---|
| 3926 | ac_cv_type_off_t=yes | 
|---|
| 3927 | else | 
|---|
| 3928 | rm -rf conftest* | 
|---|
| 3929 | ac_cv_type_off_t=no | 
|---|
| 3930 | fi | 
|---|
| 3931 | rm -f conftest* | 
|---|
| 3932 |  | 
|---|
| 3933 | fi | 
|---|
| 3934 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | 
|---|
| 3935 | if test $ac_cv_type_off_t = no; then | 
|---|
| 3936 | cat >> confdefs.h <<\EOF | 
|---|
| 3937 | #define off_t long | 
|---|
| 3938 | EOF | 
|---|
| 3939 |  | 
|---|
| 3940 | fi | 
|---|
| 3941 |  | 
|---|
| 3942 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | 
|---|
| 3943 | echo "configure:3944: checking for size_t" >&5 | 
|---|
| 3944 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then | 
|---|
| 3945 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3946 | else | 
|---|
| 3947 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3948 | #line 3949 "configure" | 
|---|
| 3949 | #include "confdefs.h" | 
|---|
| 3950 | #include <sys/types.h> | 
|---|
| 3951 | #if STDC_HEADERS | 
|---|
| 3952 | #include <stdlib.h> | 
|---|
| 3953 | #include <stddef.h> | 
|---|
| 3954 | #endif | 
|---|
| 3955 | EOF | 
|---|
| 3956 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|---|
| 3957 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | 
|---|
| 3958 | rm -rf conftest* | 
|---|
| 3959 | ac_cv_type_size_t=yes | 
|---|
| 3960 | else | 
|---|
| 3961 | rm -rf conftest* | 
|---|
| 3962 | ac_cv_type_size_t=no | 
|---|
| 3963 | fi | 
|---|
| 3964 | rm -f conftest* | 
|---|
| 3965 |  | 
|---|
| 3966 | fi | 
|---|
| 3967 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | 
|---|
| 3968 | if test $ac_cv_type_size_t = no; then | 
|---|
| 3969 | cat >> confdefs.h <<\EOF | 
|---|
| 3970 | #define size_t unsigned | 
|---|
| 3971 | EOF | 
|---|
| 3972 |  | 
|---|
| 3973 | fi | 
|---|
| 3974 |  | 
|---|
| 3975 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | 
|---|
| 3976 | # for constant arguments.  Useless! | 
|---|
| 3977 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | 
|---|
| 3978 | echo "configure:3979: checking for working alloca.h" >&5 | 
|---|
| 3979 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then | 
|---|
| 3980 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3981 | else | 
|---|
| 3982 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3983 | #line 3984 "configure" | 
|---|
| 3984 | #include "confdefs.h" | 
|---|
| 3985 | #include <alloca.h> | 
|---|
| 3986 | int main() { | 
|---|
| 3987 | char *p = alloca(2 * sizeof(int)); | 
|---|
| 3988 | ; return 0; } | 
|---|
| 3989 | EOF | 
|---|
| 3990 | if { (eval echo configure:3991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 3991 | rm -rf conftest* | 
|---|
| 3992 | ac_cv_header_alloca_h=yes | 
|---|
| 3993 | else | 
|---|
| 3994 | echo "configure: failed program was:" >&5 | 
|---|
| 3995 | cat conftest.$ac_ext >&5 | 
|---|
| 3996 | rm -rf conftest* | 
|---|
| 3997 | ac_cv_header_alloca_h=no | 
|---|
| 3998 | fi | 
|---|
| 3999 | rm -f conftest* | 
|---|
| 4000 | fi | 
|---|
| 4001 |  | 
|---|
| 4002 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | 
|---|
| 4003 | if test $ac_cv_header_alloca_h = yes; then | 
|---|
| 4004 | cat >> confdefs.h <<\EOF | 
|---|
| 4005 | #define HAVE_ALLOCA_H 1 | 
|---|
| 4006 | EOF | 
|---|
| 4007 |  | 
|---|
| 4008 | fi | 
|---|
| 4009 |  | 
|---|
| 4010 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 | 
|---|
| 4011 | echo "configure:4012: checking for alloca" >&5 | 
|---|
| 4012 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then | 
|---|
| 4013 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4014 | else | 
|---|
| 4015 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4016 | #line 4017 "configure" | 
|---|
| 4017 | #include "confdefs.h" | 
|---|
| 4018 |  | 
|---|
| 4019 | #ifdef __GNUC__ | 
|---|
| 4020 | # define alloca __builtin_alloca | 
|---|
| 4021 | #else | 
|---|
| 4022 | # ifdef _MSC_VER | 
|---|
| 4023 | #  include <malloc.h> | 
|---|
| 4024 | #  define alloca _alloca | 
|---|
| 4025 | # else | 
|---|
| 4026 | #  if HAVE_ALLOCA_H | 
|---|
| 4027 | #   include <alloca.h> | 
|---|
| 4028 | #  else | 
|---|
| 4029 | #   ifdef _AIX | 
|---|
| 4030 | #pragma alloca | 
|---|
| 4031 | #   else | 
|---|
| 4032 | #    ifndef alloca /* predefined by HP cc +Olibcalls */ | 
|---|
| 4033 | char *alloca (); | 
|---|
| 4034 | #    endif | 
|---|
| 4035 | #   endif | 
|---|
| 4036 | #  endif | 
|---|
| 4037 | # endif | 
|---|
| 4038 | #endif | 
|---|
| 4039 |  | 
|---|
| 4040 | int main() { | 
|---|
| 4041 | char *p = (char *) alloca(1); | 
|---|
| 4042 | ; return 0; } | 
|---|
| 4043 | EOF | 
|---|
| 4044 | if { (eval echo configure:4045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4045 | rm -rf conftest* | 
|---|
| 4046 | ac_cv_func_alloca_works=yes | 
|---|
| 4047 | else | 
|---|
| 4048 | echo "configure: failed program was:" >&5 | 
|---|
| 4049 | cat conftest.$ac_ext >&5 | 
|---|
| 4050 | rm -rf conftest* | 
|---|
| 4051 | ac_cv_func_alloca_works=no | 
|---|
| 4052 | fi | 
|---|
| 4053 | rm -f conftest* | 
|---|
| 4054 | fi | 
|---|
| 4055 |  | 
|---|
| 4056 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 | 
|---|
| 4057 | if test $ac_cv_func_alloca_works = yes; then | 
|---|
| 4058 | cat >> confdefs.h <<\EOF | 
|---|
| 4059 | #define HAVE_ALLOCA 1 | 
|---|
| 4060 | EOF | 
|---|
| 4061 |  | 
|---|
| 4062 | fi | 
|---|
| 4063 |  | 
|---|
| 4064 | if test $ac_cv_func_alloca_works = no; then | 
|---|
| 4065 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | 
|---|
| 4066 | # that cause trouble.  Some versions do not even contain alloca or | 
|---|
| 4067 | # contain a buggy version.  If you still want to use their alloca, | 
|---|
| 4068 | # use ar to extract alloca.o from them instead of compiling alloca.c. | 
|---|
| 4069 | ALLOCA=alloca.${ac_objext} | 
|---|
| 4070 | cat >> confdefs.h <<\EOF | 
|---|
| 4071 | #define C_ALLOCA 1 | 
|---|
| 4072 | EOF | 
|---|
| 4073 |  | 
|---|
| 4074 |  | 
|---|
| 4075 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | 
|---|
| 4076 | echo "configure:4077: checking whether alloca needs Cray hooks" >&5 | 
|---|
| 4077 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then | 
|---|
| 4078 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4079 | else | 
|---|
| 4080 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4081 | #line 4082 "configure" | 
|---|
| 4082 | #include "confdefs.h" | 
|---|
| 4083 | #if defined(CRAY) && ! defined(CRAY2) | 
|---|
| 4084 | webecray | 
|---|
| 4085 | #else | 
|---|
| 4086 | wenotbecray | 
|---|
| 4087 | #endif | 
|---|
| 4088 |  | 
|---|
| 4089 | EOF | 
|---|
| 4090 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|---|
| 4091 | egrep "webecray" >/dev/null 2>&1; then | 
|---|
| 4092 | rm -rf conftest* | 
|---|
| 4093 | ac_cv_os_cray=yes | 
|---|
| 4094 | else | 
|---|
| 4095 | rm -rf conftest* | 
|---|
| 4096 | ac_cv_os_cray=no | 
|---|
| 4097 | fi | 
|---|
| 4098 | rm -f conftest* | 
|---|
| 4099 |  | 
|---|
| 4100 | fi | 
|---|
| 4101 |  | 
|---|
| 4102 | echo "$ac_t""$ac_cv_os_cray" 1>&6 | 
|---|
| 4103 | if test $ac_cv_os_cray = yes; then | 
|---|
| 4104 | for ac_func in _getb67 GETB67 getb67; do | 
|---|
| 4105 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
|---|
| 4106 | echo "configure:4107: checking for $ac_func" >&5 | 
|---|
| 4107 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
|---|
| 4108 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4109 | else | 
|---|
| 4110 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4111 | #line 4112 "configure" | 
|---|
| 4112 | #include "confdefs.h" | 
|---|
| 4113 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 4114 | which can conflict with char $ac_func(); below.  */ | 
|---|
| 4115 | #include <assert.h> | 
|---|
| 4116 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 4117 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 4118 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 4119 | char $ac_func(); | 
|---|
| 4120 |  | 
|---|
| 4121 | int main() { | 
|---|
| 4122 |  | 
|---|
| 4123 | /* The GNU C library defines this for functions which it implements | 
|---|
| 4124 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 4125 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 4126 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|---|
| 4127 | choke me | 
|---|
| 4128 | #else | 
|---|
| 4129 | $ac_func(); | 
|---|
| 4130 | #endif | 
|---|
| 4131 |  | 
|---|
| 4132 | ; return 0; } | 
|---|
| 4133 | EOF | 
|---|
| 4134 | if { (eval echo configure:4135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4135 | rm -rf conftest* | 
|---|
| 4136 | eval "ac_cv_func_$ac_func=yes" | 
|---|
| 4137 | else | 
|---|
| 4138 | echo "configure: failed program was:" >&5 | 
|---|
| 4139 | cat conftest.$ac_ext >&5 | 
|---|
| 4140 | rm -rf conftest* | 
|---|
| 4141 | eval "ac_cv_func_$ac_func=no" | 
|---|
| 4142 | fi | 
|---|
| 4143 | rm -f conftest* | 
|---|
| 4144 | fi | 
|---|
| 4145 |  | 
|---|
| 4146 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|---|
| 4147 | echo "$ac_t""yes" 1>&6 | 
|---|
| 4148 | cat >> confdefs.h <<EOF | 
|---|
| 4149 | #define CRAY_STACKSEG_END $ac_func | 
|---|
| 4150 | EOF | 
|---|
| 4151 |  | 
|---|
| 4152 | break | 
|---|
| 4153 | else | 
|---|
| 4154 | echo "$ac_t""no" 1>&6 | 
|---|
| 4155 | fi | 
|---|
| 4156 |  | 
|---|
| 4157 | done | 
|---|
| 4158 | fi | 
|---|
| 4159 |  | 
|---|
| 4160 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | 
|---|
| 4161 | echo "configure:4162: checking stack direction for C alloca" >&5 | 
|---|
| 4162 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then | 
|---|
| 4163 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4164 | else | 
|---|
| 4165 | if test "$cross_compiling" = yes; then | 
|---|
| 4166 | ac_cv_c_stack_direction=0 | 
|---|
| 4167 | else | 
|---|
| 4168 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4169 | #line 4170 "configure" | 
|---|
| 4170 | #include "confdefs.h" | 
|---|
| 4171 | find_stack_direction () | 
|---|
| 4172 | { | 
|---|
| 4173 | static char *addr = 0; | 
|---|
| 4174 | auto char dummy; | 
|---|
| 4175 | if (addr == 0) | 
|---|
| 4176 | { | 
|---|
| 4177 | addr = &dummy; | 
|---|
| 4178 | return find_stack_direction (); | 
|---|
| 4179 | } | 
|---|
| 4180 | else | 
|---|
| 4181 | return (&dummy > addr) ? 1 : -1; | 
|---|
| 4182 | } | 
|---|
| 4183 | main () | 
|---|
| 4184 | { | 
|---|
| 4185 | exit (find_stack_direction() < 0); | 
|---|
| 4186 | } | 
|---|
| 4187 | EOF | 
|---|
| 4188 | if { (eval echo configure:4189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
|---|
| 4189 | then | 
|---|
| 4190 | ac_cv_c_stack_direction=1 | 
|---|
| 4191 | else | 
|---|
| 4192 | echo "configure: failed program was:" >&5 | 
|---|
| 4193 | cat conftest.$ac_ext >&5 | 
|---|
| 4194 | rm -fr conftest* | 
|---|
| 4195 | ac_cv_c_stack_direction=-1 | 
|---|
| 4196 | fi | 
|---|
| 4197 | rm -fr conftest* | 
|---|
| 4198 | fi | 
|---|
| 4199 |  | 
|---|
| 4200 | fi | 
|---|
| 4201 |  | 
|---|
| 4202 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 | 
|---|
| 4203 | cat >> confdefs.h <<EOF | 
|---|
| 4204 | #define STACK_DIRECTION $ac_cv_c_stack_direction | 
|---|
| 4205 | EOF | 
|---|
| 4206 |  | 
|---|
| 4207 | fi | 
|---|
| 4208 |  | 
|---|
| 4209 | for ac_hdr in unistd.h | 
|---|
| 4210 | do | 
|---|
| 4211 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 
|---|
| 4212 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 
|---|
| 4213 | echo "configure:4214: checking for $ac_hdr" >&5 | 
|---|
| 4214 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 
|---|
| 4215 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4216 | else | 
|---|
| 4217 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4218 | #include <sys/types.h> | 
|---|
| 4219 | #line 4220 "configure" | 
|---|
| 4220 | #include "confdefs.h" | 
|---|
| 4221 | #include <$ac_hdr> | 
|---|
| 4222 | EOF | 
|---|
| 4223 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 4224 | { (eval echo configure:4225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 4225 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 4226 | if test -z "$ac_err"; then | 
|---|
| 4227 | rm -rf conftest* | 
|---|
| 4228 | eval "ac_cv_header_$ac_safe=yes" | 
|---|
| 4229 | else | 
|---|
| 4230 | echo "$ac_err" >&5 | 
|---|
| 4231 | echo "configure: failed program was:" >&5 | 
|---|
| 4232 | cat conftest.$ac_ext >&5 | 
|---|
| 4233 | rm -rf conftest* | 
|---|
| 4234 | eval "ac_cv_header_$ac_safe=no" | 
|---|
| 4235 | fi | 
|---|
| 4236 | rm -f conftest* | 
|---|
| 4237 | fi | 
|---|
| 4238 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
|---|
| 4239 | echo "$ac_t""yes" 1>&6 | 
|---|
| 4240 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 
|---|
| 4241 | cat >> confdefs.h <<EOF | 
|---|
| 4242 | #define $ac_tr_hdr 1 | 
|---|
| 4243 | EOF | 
|---|
| 4244 |  | 
|---|
| 4245 | else | 
|---|
| 4246 | echo "$ac_t""no" 1>&6 | 
|---|
| 4247 | fi | 
|---|
| 4248 | done | 
|---|
| 4249 |  | 
|---|
| 4250 | for ac_func in getpagesize | 
|---|
| 4251 | do | 
|---|
| 4252 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
|---|
| 4253 | echo "configure:4254: checking for $ac_func" >&5 | 
|---|
| 4254 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
|---|
| 4255 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4256 | else | 
|---|
| 4257 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4258 | #line 4259 "configure" | 
|---|
| 4259 | #include "confdefs.h" | 
|---|
| 4260 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 4261 | which can conflict with char $ac_func(); below.  */ | 
|---|
| 4262 | #include <assert.h> | 
|---|
| 4263 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 4264 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 4265 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 4266 | char $ac_func(); | 
|---|
| 4267 |  | 
|---|
| 4268 | int main() { | 
|---|
| 4269 |  | 
|---|
| 4270 | /* The GNU C library defines this for functions which it implements | 
|---|
| 4271 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 4272 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 4273 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|---|
| 4274 | choke me | 
|---|
| 4275 | #else | 
|---|
| 4276 | $ac_func(); | 
|---|
| 4277 | #endif | 
|---|
| 4278 |  | 
|---|
| 4279 | ; return 0; } | 
|---|
| 4280 | EOF | 
|---|
| 4281 | if { (eval echo configure:4282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4282 | rm -rf conftest* | 
|---|
| 4283 | eval "ac_cv_func_$ac_func=yes" | 
|---|
| 4284 | else | 
|---|
| 4285 | echo "configure: failed program was:" >&5 | 
|---|
| 4286 | cat conftest.$ac_ext >&5 | 
|---|
| 4287 | rm -rf conftest* | 
|---|
| 4288 | eval "ac_cv_func_$ac_func=no" | 
|---|
| 4289 | fi | 
|---|
| 4290 | rm -f conftest* | 
|---|
| 4291 | fi | 
|---|
| 4292 |  | 
|---|
| 4293 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|---|
| 4294 | echo "$ac_t""yes" 1>&6 | 
|---|
| 4295 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|---|
| 4296 | cat >> confdefs.h <<EOF | 
|---|
| 4297 | #define $ac_tr_func 1 | 
|---|
| 4298 | EOF | 
|---|
| 4299 |  | 
|---|
| 4300 | else | 
|---|
| 4301 | echo "$ac_t""no" 1>&6 | 
|---|
| 4302 | fi | 
|---|
| 4303 | done | 
|---|
| 4304 |  | 
|---|
| 4305 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 | 
|---|
| 4306 | echo "configure:4307: checking for working mmap" >&5 | 
|---|
| 4307 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then | 
|---|
| 4308 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4309 | else | 
|---|
| 4310 | if test "$cross_compiling" = yes; then | 
|---|
| 4311 | ac_cv_func_mmap_fixed_mapped=no | 
|---|
| 4312 | else | 
|---|
| 4313 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4314 | #line 4315 "configure" | 
|---|
| 4315 | #include "confdefs.h" | 
|---|
| 4316 |  | 
|---|
| 4317 | /* Thanks to Mike Haertel and Jim Avera for this test. | 
|---|
| 4318 | Here is a matrix of mmap possibilities: | 
|---|
| 4319 | mmap private not fixed | 
|---|
| 4320 | mmap private fixed at somewhere currently unmapped | 
|---|
| 4321 | mmap private fixed at somewhere already mapped | 
|---|
| 4322 | mmap shared not fixed | 
|---|
| 4323 | mmap shared fixed at somewhere currently unmapped | 
|---|
| 4324 | mmap shared fixed at somewhere already mapped | 
|---|
| 4325 | For private mappings, we should verify that changes cannot be read() | 
|---|
| 4326 | back from the file, nor mmap's back from the file at a different | 
|---|
| 4327 | address.  (There have been systems where private was not correctly | 
|---|
| 4328 | implemented like the infamous i386 svr4.0, and systems where the | 
|---|
| 4329 | VM page cache was not coherent with the filesystem buffer cache | 
|---|
| 4330 | like early versions of FreeBSD and possibly contemporary NetBSD.) | 
|---|
| 4331 | For shared mappings, we should conversely verify that changes get | 
|---|
| 4332 | propogated back to all the places they're supposed to be. | 
|---|
| 4333 |  | 
|---|
| 4334 | Grep wants private fixed already mapped. | 
|---|
| 4335 | The main things grep needs to know about mmap are: | 
|---|
| 4336 | * does it exist and is it safe to write into the mmap'd area | 
|---|
| 4337 | * how to use it (BSD variants)  */ | 
|---|
| 4338 | #include <sys/types.h> | 
|---|
| 4339 | #include <fcntl.h> | 
|---|
| 4340 | #include <sys/mman.h> | 
|---|
| 4341 |  | 
|---|
| 4342 | /* This mess was copied from the GNU getpagesize.h.  */ | 
|---|
| 4343 | #ifndef HAVE_GETPAGESIZE | 
|---|
| 4344 | # ifdef HAVE_UNISTD_H | 
|---|
| 4345 | #  include <unistd.h> | 
|---|
| 4346 | # endif | 
|---|
| 4347 |  | 
|---|
| 4348 | /* Assume that all systems that can run configure have sys/param.h.  */ | 
|---|
| 4349 | # ifndef HAVE_SYS_PARAM_H | 
|---|
| 4350 | #  define HAVE_SYS_PARAM_H 1 | 
|---|
| 4351 | # endif | 
|---|
| 4352 |  | 
|---|
| 4353 | # ifdef _SC_PAGESIZE | 
|---|
| 4354 | #  define getpagesize() sysconf(_SC_PAGESIZE) | 
|---|
| 4355 | # else /* no _SC_PAGESIZE */ | 
|---|
| 4356 | #  ifdef HAVE_SYS_PARAM_H | 
|---|
| 4357 | #   include <sys/param.h> | 
|---|
| 4358 | #   ifdef EXEC_PAGESIZE | 
|---|
| 4359 | #    define getpagesize() EXEC_PAGESIZE | 
|---|
| 4360 | #   else /* no EXEC_PAGESIZE */ | 
|---|
| 4361 | #    ifdef NBPG | 
|---|
| 4362 | #     define getpagesize() NBPG * CLSIZE | 
|---|
| 4363 | #     ifndef CLSIZE | 
|---|
| 4364 | #      define CLSIZE 1 | 
|---|
| 4365 | #     endif /* no CLSIZE */ | 
|---|
| 4366 | #    else /* no NBPG */ | 
|---|
| 4367 | #     ifdef NBPC | 
|---|
| 4368 | #      define getpagesize() NBPC | 
|---|
| 4369 | #     else /* no NBPC */ | 
|---|
| 4370 | #      ifdef PAGESIZE | 
|---|
| 4371 | #       define getpagesize() PAGESIZE | 
|---|
| 4372 | #      endif /* PAGESIZE */ | 
|---|
| 4373 | #     endif /* no NBPC */ | 
|---|
| 4374 | #    endif /* no NBPG */ | 
|---|
| 4375 | #   endif /* no EXEC_PAGESIZE */ | 
|---|
| 4376 | #  else /* no HAVE_SYS_PARAM_H */ | 
|---|
| 4377 | #   define getpagesize() 8192   /* punt totally */ | 
|---|
| 4378 | #  endif /* no HAVE_SYS_PARAM_H */ | 
|---|
| 4379 | # endif /* no _SC_PAGESIZE */ | 
|---|
| 4380 |  | 
|---|
| 4381 | #endif /* no HAVE_GETPAGESIZE */ | 
|---|
| 4382 |  | 
|---|
| 4383 | #ifdef __cplusplus | 
|---|
| 4384 | extern "C" { void *malloc(unsigned); } | 
|---|
| 4385 | #else | 
|---|
| 4386 | char *malloc(); | 
|---|
| 4387 | #endif | 
|---|
| 4388 |  | 
|---|
| 4389 | int | 
|---|
| 4390 | main() | 
|---|
| 4391 | { | 
|---|
| 4392 | char *data, *data2, *data3; | 
|---|
| 4393 | int i, pagesize; | 
|---|
| 4394 | int fd; | 
|---|
| 4395 |  | 
|---|
| 4396 | pagesize = getpagesize(); | 
|---|
| 4397 |  | 
|---|
| 4398 | /* | 
|---|
| 4399 | * First, make a file with some known garbage in it. | 
|---|
| 4400 | */ | 
|---|
| 4401 | data = malloc(pagesize); | 
|---|
| 4402 | if (!data) | 
|---|
| 4403 | exit(1); | 
|---|
| 4404 | for (i = 0; i < pagesize; ++i) | 
|---|
| 4405 | *(data + i) = rand(); | 
|---|
| 4406 | umask(0); | 
|---|
| 4407 | fd = creat("conftestmmap", 0600); | 
|---|
| 4408 | if (fd < 0) | 
|---|
| 4409 | exit(1); | 
|---|
| 4410 | if (write(fd, data, pagesize) != pagesize) | 
|---|
| 4411 | exit(1); | 
|---|
| 4412 | close(fd); | 
|---|
| 4413 |  | 
|---|
| 4414 | /* | 
|---|
| 4415 | * Next, try to mmap the file at a fixed address which | 
|---|
| 4416 | * already has something else allocated at it.  If we can, | 
|---|
| 4417 | * also make sure that we see the same garbage. | 
|---|
| 4418 | */ | 
|---|
| 4419 | fd = open("conftestmmap", O_RDWR); | 
|---|
| 4420 | if (fd < 0) | 
|---|
| 4421 | exit(1); | 
|---|
| 4422 | data2 = malloc(2 * pagesize); | 
|---|
| 4423 | if (!data2) | 
|---|
| 4424 | exit(1); | 
|---|
| 4425 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | 
|---|
| 4426 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, | 
|---|
| 4427 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | 
|---|
| 4428 | exit(1); | 
|---|
| 4429 | for (i = 0; i < pagesize; ++i) | 
|---|
| 4430 | if (*(data + i) != *(data2 + i)) | 
|---|
| 4431 | exit(1); | 
|---|
| 4432 |  | 
|---|
| 4433 | /* | 
|---|
| 4434 | * Finally, make sure that changes to the mapped area | 
|---|
| 4435 | * do not percolate back to the file as seen by read(). | 
|---|
| 4436 | * (This is a bug on some variants of i386 svr4.0.) | 
|---|
| 4437 | */ | 
|---|
| 4438 | for (i = 0; i < pagesize; ++i) | 
|---|
| 4439 | *(data2 + i) = *(data2 + i) + 1; | 
|---|
| 4440 | data3 = malloc(pagesize); | 
|---|
| 4441 | if (!data3) | 
|---|
| 4442 | exit(1); | 
|---|
| 4443 | if (read(fd, data3, pagesize) != pagesize) | 
|---|
| 4444 | exit(1); | 
|---|
| 4445 | for (i = 0; i < pagesize; ++i) | 
|---|
| 4446 | if (*(data + i) != *(data3 + i)) | 
|---|
| 4447 | exit(1); | 
|---|
| 4448 | close(fd); | 
|---|
| 4449 | unlink("conftestmmap"); | 
|---|
| 4450 | exit(0); | 
|---|
| 4451 | } | 
|---|
| 4452 |  | 
|---|
| 4453 | EOF | 
|---|
| 4454 | if { (eval echo configure:4455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
|---|
| 4455 | then | 
|---|
| 4456 | ac_cv_func_mmap_fixed_mapped=yes | 
|---|
| 4457 | else | 
|---|
| 4458 | echo "configure: failed program was:" >&5 | 
|---|
| 4459 | cat conftest.$ac_ext >&5 | 
|---|
| 4460 | rm -fr conftest* | 
|---|
| 4461 | ac_cv_func_mmap_fixed_mapped=no | 
|---|
| 4462 | fi | 
|---|
| 4463 | rm -fr conftest* | 
|---|
| 4464 | fi | 
|---|
| 4465 |  | 
|---|
| 4466 | fi | 
|---|
| 4467 |  | 
|---|
| 4468 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 | 
|---|
| 4469 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | 
|---|
| 4470 | cat >> confdefs.h <<\EOF | 
|---|
| 4471 | #define HAVE_MMAP 1 | 
|---|
| 4472 | EOF | 
|---|
| 4473 |  | 
|---|
| 4474 | fi | 
|---|
| 4475 |  | 
|---|
| 4476 |  | 
|---|
| 4477 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | 
|---|
| 4478 | unistd.h values.h sys/param.h | 
|---|
| 4479 | do | 
|---|
| 4480 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 
|---|
| 4481 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 
|---|
| 4482 | echo "configure:4483: checking for $ac_hdr" >&5 | 
|---|
| 4483 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 
|---|
| 4484 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4485 | else | 
|---|
| 4486 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4487 | #include <sys/types.h> | 
|---|
| 4488 | #line 4489 "configure" | 
|---|
| 4489 | #include "confdefs.h" | 
|---|
| 4490 | #include <$ac_hdr> | 
|---|
| 4491 | EOF | 
|---|
| 4492 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 4493 | { (eval echo configure:4494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 4494 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 4495 | if test -z "$ac_err"; then | 
|---|
| 4496 | rm -rf conftest* | 
|---|
| 4497 | eval "ac_cv_header_$ac_safe=yes" | 
|---|
| 4498 | else | 
|---|
| 4499 | echo "$ac_err" >&5 | 
|---|
| 4500 | echo "configure: failed program was:" >&5 | 
|---|
| 4501 | cat conftest.$ac_ext >&5 | 
|---|
| 4502 | rm -rf conftest* | 
|---|
| 4503 | eval "ac_cv_header_$ac_safe=no" | 
|---|
| 4504 | fi | 
|---|
| 4505 | rm -f conftest* | 
|---|
| 4506 | fi | 
|---|
| 4507 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
|---|
| 4508 | echo "$ac_t""yes" 1>&6 | 
|---|
| 4509 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 
|---|
| 4510 | cat >> confdefs.h <<EOF | 
|---|
| 4511 | #define $ac_tr_hdr 1 | 
|---|
| 4512 | EOF | 
|---|
| 4513 |  | 
|---|
| 4514 | else | 
|---|
| 4515 | echo "$ac_t""no" 1>&6 | 
|---|
| 4516 | fi | 
|---|
| 4517 | done | 
|---|
| 4518 |  | 
|---|
| 4519 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | 
|---|
| 4520 | __argz_count __argz_stringify __argz_next | 
|---|
| 4521 | do | 
|---|
| 4522 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
|---|
| 4523 | echo "configure:4524: checking for $ac_func" >&5 | 
|---|
| 4524 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
|---|
| 4525 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4526 | else | 
|---|
| 4527 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4528 | #line 4529 "configure" | 
|---|
| 4529 | #include "confdefs.h" | 
|---|
| 4530 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 4531 | which can conflict with char $ac_func(); below.  */ | 
|---|
| 4532 | #include <assert.h> | 
|---|
| 4533 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 4534 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 4535 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 4536 | char $ac_func(); | 
|---|
| 4537 |  | 
|---|
| 4538 | int main() { | 
|---|
| 4539 |  | 
|---|
| 4540 | /* The GNU C library defines this for functions which it implements | 
|---|
| 4541 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 4542 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 4543 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|---|
| 4544 | choke me | 
|---|
| 4545 | #else | 
|---|
| 4546 | $ac_func(); | 
|---|
| 4547 | #endif | 
|---|
| 4548 |  | 
|---|
| 4549 | ; return 0; } | 
|---|
| 4550 | EOF | 
|---|
| 4551 | if { (eval echo configure:4552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4552 | rm -rf conftest* | 
|---|
| 4553 | eval "ac_cv_func_$ac_func=yes" | 
|---|
| 4554 | else | 
|---|
| 4555 | echo "configure: failed program was:" >&5 | 
|---|
| 4556 | cat conftest.$ac_ext >&5 | 
|---|
| 4557 | rm -rf conftest* | 
|---|
| 4558 | eval "ac_cv_func_$ac_func=no" | 
|---|
| 4559 | fi | 
|---|
| 4560 | rm -f conftest* | 
|---|
| 4561 | fi | 
|---|
| 4562 |  | 
|---|
| 4563 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|---|
| 4564 | echo "$ac_t""yes" 1>&6 | 
|---|
| 4565 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|---|
| 4566 | cat >> confdefs.h <<EOF | 
|---|
| 4567 | #define $ac_tr_func 1 | 
|---|
| 4568 | EOF | 
|---|
| 4569 |  | 
|---|
| 4570 | else | 
|---|
| 4571 | echo "$ac_t""no" 1>&6 | 
|---|
| 4572 | fi | 
|---|
| 4573 | done | 
|---|
| 4574 |  | 
|---|
| 4575 |  | 
|---|
| 4576 | if test "${ac_cv_func_stpcpy+set}" != "set"; then | 
|---|
| 4577 | for ac_func in stpcpy | 
|---|
| 4578 | do | 
|---|
| 4579 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
|---|
| 4580 | echo "configure:4581: checking for $ac_func" >&5 | 
|---|
| 4581 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
|---|
| 4582 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4583 | else | 
|---|
| 4584 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4585 | #line 4586 "configure" | 
|---|
| 4586 | #include "confdefs.h" | 
|---|
| 4587 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 4588 | which can conflict with char $ac_func(); below.  */ | 
|---|
| 4589 | #include <assert.h> | 
|---|
| 4590 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 4591 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 4592 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 4593 | char $ac_func(); | 
|---|
| 4594 |  | 
|---|
| 4595 | int main() { | 
|---|
| 4596 |  | 
|---|
| 4597 | /* The GNU C library defines this for functions which it implements | 
|---|
| 4598 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 4599 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 4600 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|---|
| 4601 | choke me | 
|---|
| 4602 | #else | 
|---|
| 4603 | $ac_func(); | 
|---|
| 4604 | #endif | 
|---|
| 4605 |  | 
|---|
| 4606 | ; return 0; } | 
|---|
| 4607 | EOF | 
|---|
| 4608 | if { (eval echo configure:4609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4609 | rm -rf conftest* | 
|---|
| 4610 | eval "ac_cv_func_$ac_func=yes" | 
|---|
| 4611 | else | 
|---|
| 4612 | echo "configure: failed program was:" >&5 | 
|---|
| 4613 | cat conftest.$ac_ext >&5 | 
|---|
| 4614 | rm -rf conftest* | 
|---|
| 4615 | eval "ac_cv_func_$ac_func=no" | 
|---|
| 4616 | fi | 
|---|
| 4617 | rm -f conftest* | 
|---|
| 4618 | fi | 
|---|
| 4619 |  | 
|---|
| 4620 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|---|
| 4621 | echo "$ac_t""yes" 1>&6 | 
|---|
| 4622 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|---|
| 4623 | cat >> confdefs.h <<EOF | 
|---|
| 4624 | #define $ac_tr_func 1 | 
|---|
| 4625 | EOF | 
|---|
| 4626 |  | 
|---|
| 4627 | else | 
|---|
| 4628 | echo "$ac_t""no" 1>&6 | 
|---|
| 4629 | fi | 
|---|
| 4630 | done | 
|---|
| 4631 |  | 
|---|
| 4632 | fi | 
|---|
| 4633 | if test "${ac_cv_func_stpcpy}" = "yes"; then | 
|---|
| 4634 | cat >> confdefs.h <<\EOF | 
|---|
| 4635 | #define HAVE_STPCPY 1 | 
|---|
| 4636 | EOF | 
|---|
| 4637 |  | 
|---|
| 4638 | fi | 
|---|
| 4639 |  | 
|---|
| 4640 | if test $ac_cv_header_locale_h = yes; then | 
|---|
| 4641 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 | 
|---|
| 4642 | echo "configure:4643: checking for LC_MESSAGES" >&5 | 
|---|
| 4643 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then | 
|---|
| 4644 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4645 | else | 
|---|
| 4646 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4647 | #line 4648 "configure" | 
|---|
| 4648 | #include "confdefs.h" | 
|---|
| 4649 | #include <locale.h> | 
|---|
| 4650 | int main() { | 
|---|
| 4651 | return LC_MESSAGES | 
|---|
| 4652 | ; return 0; } | 
|---|
| 4653 | EOF | 
|---|
| 4654 | if { (eval echo configure:4655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4655 | rm -rf conftest* | 
|---|
| 4656 | am_cv_val_LC_MESSAGES=yes | 
|---|
| 4657 | else | 
|---|
| 4658 | echo "configure: failed program was:" >&5 | 
|---|
| 4659 | cat conftest.$ac_ext >&5 | 
|---|
| 4660 | rm -rf conftest* | 
|---|
| 4661 | am_cv_val_LC_MESSAGES=no | 
|---|
| 4662 | fi | 
|---|
| 4663 | rm -f conftest* | 
|---|
| 4664 | fi | 
|---|
| 4665 |  | 
|---|
| 4666 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 | 
|---|
| 4667 | if test $am_cv_val_LC_MESSAGES = yes; then | 
|---|
| 4668 | cat >> confdefs.h <<\EOF | 
|---|
| 4669 | #define HAVE_LC_MESSAGES 1 | 
|---|
| 4670 | EOF | 
|---|
| 4671 |  | 
|---|
| 4672 | fi | 
|---|
| 4673 | fi | 
|---|
| 4674 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 | 
|---|
| 4675 | echo "configure:4676: checking whether NLS is requested" >&5 | 
|---|
| 4676 | # Check whether --enable-nls or --disable-nls was given. | 
|---|
| 4677 | if test "${enable_nls+set}" = set; then | 
|---|
| 4678 | enableval="$enable_nls" | 
|---|
| 4679 | USE_NLS=$enableval | 
|---|
| 4680 | else | 
|---|
| 4681 | USE_NLS=yes | 
|---|
| 4682 | fi | 
|---|
| 4683 |  | 
|---|
| 4684 | echo "$ac_t""$USE_NLS" 1>&6 | 
|---|
| 4685 |  | 
|---|
| 4686 |  | 
|---|
| 4687 | USE_INCLUDED_LIBINTL=no | 
|---|
| 4688 |  | 
|---|
| 4689 | if test "$USE_NLS" = "yes"; then | 
|---|
| 4690 | cat >> confdefs.h <<\EOF | 
|---|
| 4691 | #define ENABLE_NLS 1 | 
|---|
| 4692 | EOF | 
|---|
| 4693 |  | 
|---|
| 4694 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 | 
|---|
| 4695 | echo "configure:4696: checking whether included gettext is requested" >&5 | 
|---|
| 4696 | # Check whether --with-included-gettext or --without-included-gettext was given. | 
|---|
| 4697 | if test "${with_included_gettext+set}" = set; then | 
|---|
| 4698 | withval="$with_included_gettext" | 
|---|
| 4699 | nls_cv_force_use_gnu_gettext=$withval | 
|---|
| 4700 | else | 
|---|
| 4701 | nls_cv_force_use_gnu_gettext=no | 
|---|
| 4702 | fi | 
|---|
| 4703 |  | 
|---|
| 4704 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 | 
|---|
| 4705 |  | 
|---|
| 4706 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | 
|---|
| 4707 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | 
|---|
| 4708 | nls_cv_header_intl= | 
|---|
| 4709 | nls_cv_header_libgt= | 
|---|
| 4710 | CATOBJEXT=NONE | 
|---|
| 4711 |  | 
|---|
| 4712 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` | 
|---|
| 4713 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 | 
|---|
| 4714 | echo "configure:4715: checking for libintl.h" >&5 | 
|---|
| 4715 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 
|---|
| 4716 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4717 | else | 
|---|
| 4718 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4719 | #include <sys/types.h> | 
|---|
| 4720 | #line 4721 "configure" | 
|---|
| 4721 | #include "confdefs.h" | 
|---|
| 4722 | #include <libintl.h> | 
|---|
| 4723 | EOF | 
|---|
| 4724 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 4725 | { (eval echo configure:4726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 4726 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 4727 | if test -z "$ac_err"; then | 
|---|
| 4728 | rm -rf conftest* | 
|---|
| 4729 | eval "ac_cv_header_$ac_safe=yes" | 
|---|
| 4730 | else | 
|---|
| 4731 | echo "$ac_err" >&5 | 
|---|
| 4732 | echo "configure: failed program was:" >&5 | 
|---|
| 4733 | cat conftest.$ac_ext >&5 | 
|---|
| 4734 | rm -rf conftest* | 
|---|
| 4735 | eval "ac_cv_header_$ac_safe=no" | 
|---|
| 4736 | fi | 
|---|
| 4737 | rm -f conftest* | 
|---|
| 4738 | fi | 
|---|
| 4739 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
|---|
| 4740 | echo "$ac_t""yes" 1>&6 | 
|---|
| 4741 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 | 
|---|
| 4742 | echo "configure:4743: checking for gettext in libc" >&5 | 
|---|
| 4743 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then | 
|---|
| 4744 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4745 | else | 
|---|
| 4746 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4747 | #line 4748 "configure" | 
|---|
| 4748 | #include "confdefs.h" | 
|---|
| 4749 | #include <libintl.h> | 
|---|
| 4750 | int main() { | 
|---|
| 4751 | return (int) gettext ("") | 
|---|
| 4752 | ; return 0; } | 
|---|
| 4753 | EOF | 
|---|
| 4754 | if { (eval echo configure:4755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4755 | rm -rf conftest* | 
|---|
| 4756 | gt_cv_func_gettext_libc=yes | 
|---|
| 4757 | else | 
|---|
| 4758 | echo "configure: failed program was:" >&5 | 
|---|
| 4759 | cat conftest.$ac_ext >&5 | 
|---|
| 4760 | rm -rf conftest* | 
|---|
| 4761 | gt_cv_func_gettext_libc=no | 
|---|
| 4762 | fi | 
|---|
| 4763 | rm -f conftest* | 
|---|
| 4764 | fi | 
|---|
| 4765 |  | 
|---|
| 4766 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 | 
|---|
| 4767 |  | 
|---|
| 4768 | if test "$gt_cv_func_gettext_libc" != "yes"; then | 
|---|
| 4769 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 | 
|---|
| 4770 | echo "configure:4771: checking for bindtextdomain in -lintl" >&5 | 
|---|
| 4771 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` | 
|---|
| 4772 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|---|
| 4773 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4774 | else | 
|---|
| 4775 | ac_save_LIBS="$LIBS" | 
|---|
| 4776 | LIBS="-lintl  $LIBS" | 
|---|
| 4777 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4778 | #line 4779 "configure" | 
|---|
| 4779 | #include "confdefs.h" | 
|---|
| 4780 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 4781 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 4782 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 4783 | char bindtextdomain(); | 
|---|
| 4784 |  | 
|---|
| 4785 | int main() { | 
|---|
| 4786 | bindtextdomain() | 
|---|
| 4787 | ; return 0; } | 
|---|
| 4788 | EOF | 
|---|
| 4789 | if { (eval echo configure:4790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4790 | rm -rf conftest* | 
|---|
| 4791 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|---|
| 4792 | else | 
|---|
| 4793 | echo "configure: failed program was:" >&5 | 
|---|
| 4794 | cat conftest.$ac_ext >&5 | 
|---|
| 4795 | rm -rf conftest* | 
|---|
| 4796 | eval "ac_cv_lib_$ac_lib_var=no" | 
|---|
| 4797 | fi | 
|---|
| 4798 | rm -f conftest* | 
|---|
| 4799 | LIBS="$ac_save_LIBS" | 
|---|
| 4800 |  | 
|---|
| 4801 | fi | 
|---|
| 4802 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|---|
| 4803 | echo "$ac_t""yes" 1>&6 | 
|---|
| 4804 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 | 
|---|
| 4805 | echo "configure:4806: checking for gettext in libintl" >&5 | 
|---|
| 4806 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then | 
|---|
| 4807 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4808 | else | 
|---|
| 4809 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4810 | #line 4811 "configure" | 
|---|
| 4811 | #include "confdefs.h" | 
|---|
| 4812 |  | 
|---|
| 4813 | int main() { | 
|---|
| 4814 | return (int) gettext ("") | 
|---|
| 4815 | ; return 0; } | 
|---|
| 4816 | EOF | 
|---|
| 4817 | if { (eval echo configure:4818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4818 | rm -rf conftest* | 
|---|
| 4819 | gt_cv_func_gettext_libintl=yes | 
|---|
| 4820 | else | 
|---|
| 4821 | echo "configure: failed program was:" >&5 | 
|---|
| 4822 | cat conftest.$ac_ext >&5 | 
|---|
| 4823 | rm -rf conftest* | 
|---|
| 4824 | gt_cv_func_gettext_libintl=no | 
|---|
| 4825 | fi | 
|---|
| 4826 | rm -f conftest* | 
|---|
| 4827 | fi | 
|---|
| 4828 |  | 
|---|
| 4829 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 | 
|---|
| 4830 | else | 
|---|
| 4831 | echo "$ac_t""no" 1>&6 | 
|---|
| 4832 | fi | 
|---|
| 4833 |  | 
|---|
| 4834 | fi | 
|---|
| 4835 |  | 
|---|
| 4836 | if test "$gt_cv_func_gettext_libc" = "yes" \ | 
|---|
| 4837 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | 
|---|
| 4838 | cat >> confdefs.h <<\EOF | 
|---|
| 4839 | #define HAVE_GETTEXT 1 | 
|---|
| 4840 | EOF | 
|---|
| 4841 |  | 
|---|
| 4842 | # Extract the first word of "msgfmt", so it can be a program name with args. | 
|---|
| 4843 | set dummy msgfmt; ac_word=$2 | 
|---|
| 4844 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 4845 | echo "configure:4846: checking for $ac_word" >&5 | 
|---|
| 4846 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then | 
|---|
| 4847 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4848 | else | 
|---|
| 4849 | case "$MSGFMT" in | 
|---|
| 4850 | /*) | 
|---|
| 4851 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | 
|---|
| 4852 | ;; | 
|---|
| 4853 | *) | 
|---|
| 4854 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}" | 
|---|
| 4855 | for ac_dir in $PATH; do | 
|---|
| 4856 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 4857 | if test -f $ac_dir/$ac_word; then | 
|---|
| 4858 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | 
|---|
| 4859 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | 
|---|
| 4860 | break | 
|---|
| 4861 | fi | 
|---|
| 4862 | fi | 
|---|
| 4863 | done | 
|---|
| 4864 | IFS="$ac_save_ifs" | 
|---|
| 4865 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | 
|---|
| 4866 | ;; | 
|---|
| 4867 | esac | 
|---|
| 4868 | fi | 
|---|
| 4869 | MSGFMT="$ac_cv_path_MSGFMT" | 
|---|
| 4870 | if test -n "$MSGFMT"; then | 
|---|
| 4871 | echo "$ac_t""$MSGFMT" 1>&6 | 
|---|
| 4872 | else | 
|---|
| 4873 | echo "$ac_t""no" 1>&6 | 
|---|
| 4874 | fi | 
|---|
| 4875 | if test "$MSGFMT" != "no"; then | 
|---|
| 4876 | for ac_func in dcgettext | 
|---|
| 4877 | do | 
|---|
| 4878 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
|---|
| 4879 | echo "configure:4880: checking for $ac_func" >&5 | 
|---|
| 4880 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
|---|
| 4881 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4882 | else | 
|---|
| 4883 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4884 | #line 4885 "configure" | 
|---|
| 4885 | #include "confdefs.h" | 
|---|
| 4886 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 4887 | which can conflict with char $ac_func(); below.  */ | 
|---|
| 4888 | #include <assert.h> | 
|---|
| 4889 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 4890 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 4891 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 4892 | char $ac_func(); | 
|---|
| 4893 |  | 
|---|
| 4894 | int main() { | 
|---|
| 4895 |  | 
|---|
| 4896 | /* The GNU C library defines this for functions which it implements | 
|---|
| 4897 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 4898 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 4899 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|---|
| 4900 | choke me | 
|---|
| 4901 | #else | 
|---|
| 4902 | $ac_func(); | 
|---|
| 4903 | #endif | 
|---|
| 4904 |  | 
|---|
| 4905 | ; return 0; } | 
|---|
| 4906 | EOF | 
|---|
| 4907 | if { (eval echo configure:4908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4908 | rm -rf conftest* | 
|---|
| 4909 | eval "ac_cv_func_$ac_func=yes" | 
|---|
| 4910 | else | 
|---|
| 4911 | echo "configure: failed program was:" >&5 | 
|---|
| 4912 | cat conftest.$ac_ext >&5 | 
|---|
| 4913 | rm -rf conftest* | 
|---|
| 4914 | eval "ac_cv_func_$ac_func=no" | 
|---|
| 4915 | fi | 
|---|
| 4916 | rm -f conftest* | 
|---|
| 4917 | fi | 
|---|
| 4918 |  | 
|---|
| 4919 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|---|
| 4920 | echo "$ac_t""yes" 1>&6 | 
|---|
| 4921 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|---|
| 4922 | cat >> confdefs.h <<EOF | 
|---|
| 4923 | #define $ac_tr_func 1 | 
|---|
| 4924 | EOF | 
|---|
| 4925 |  | 
|---|
| 4926 | else | 
|---|
| 4927 | echo "$ac_t""no" 1>&6 | 
|---|
| 4928 | fi | 
|---|
| 4929 | done | 
|---|
| 4930 |  | 
|---|
| 4931 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | 
|---|
| 4932 | set dummy gmsgfmt; ac_word=$2 | 
|---|
| 4933 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 4934 | echo "configure:4935: checking for $ac_word" >&5 | 
|---|
| 4935 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then | 
|---|
| 4936 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4937 | else | 
|---|
| 4938 | case "$GMSGFMT" in | 
|---|
| 4939 | /* | [a-zA-Z]:*) | 
|---|
| 4940 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | 
|---|
| 4941 | ;; | 
|---|
| 4942 | ?:/*) | 
|---|
| 4943 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | 
|---|
| 4944 | ;; | 
|---|
| 4945 | *) | 
|---|
| 4946 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 4947 | ac_dummy="$PATH" | 
|---|
| 4948 | for ac_dir in $ac_dummy; do | 
|---|
| 4949 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 4950 | if test -f $ac_dir/$ac_word; then | 
|---|
| 4951 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | 
|---|
| 4952 | break | 
|---|
| 4953 | fi | 
|---|
| 4954 | if test -f $ac_dir/$ac_word$ac_exeext; then | 
|---|
| 4955 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext" | 
|---|
| 4956 | break | 
|---|
| 4957 | fi | 
|---|
| 4958 | done | 
|---|
| 4959 | IFS="$ac_save_ifs" | 
|---|
| 4960 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | 
|---|
| 4961 | ;; | 
|---|
| 4962 | esac | 
|---|
| 4963 | fi | 
|---|
| 4964 | GMSGFMT="$ac_cv_path_GMSGFMT" | 
|---|
| 4965 | if test -n "$GMSGFMT"; then | 
|---|
| 4966 | echo "$ac_t""$GMSGFMT" 1>&6 | 
|---|
| 4967 | else | 
|---|
| 4968 | echo "$ac_t""no" 1>&6 | 
|---|
| 4969 | fi | 
|---|
| 4970 |  | 
|---|
| 4971 | # Extract the first word of "xgettext", so it can be a program name with args. | 
|---|
| 4972 | set dummy xgettext; ac_word=$2 | 
|---|
| 4973 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 4974 | echo "configure:4975: checking for $ac_word" >&5 | 
|---|
| 4975 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then | 
|---|
| 4976 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4977 | else | 
|---|
| 4978 | case "$XGETTEXT" in | 
|---|
| 4979 | /*) | 
|---|
| 4980 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | 
|---|
| 4981 | ;; | 
|---|
| 4982 | *) | 
|---|
| 4983 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}" | 
|---|
| 4984 | for ac_dir in $PATH; do | 
|---|
| 4985 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 4986 | if test -f $ac_dir/$ac_word; then | 
|---|
| 4987 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | 
|---|
| 4988 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | 
|---|
| 4989 | break | 
|---|
| 4990 | fi | 
|---|
| 4991 | fi | 
|---|
| 4992 | done | 
|---|
| 4993 | IFS="$ac_save_ifs" | 
|---|
| 4994 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | 
|---|
| 4995 | ;; | 
|---|
| 4996 | esac | 
|---|
| 4997 | fi | 
|---|
| 4998 | XGETTEXT="$ac_cv_path_XGETTEXT" | 
|---|
| 4999 | if test -n "$XGETTEXT"; then | 
|---|
| 5000 | echo "$ac_t""$XGETTEXT" 1>&6 | 
|---|
| 5001 | else | 
|---|
| 5002 | echo "$ac_t""no" 1>&6 | 
|---|
| 5003 | fi | 
|---|
| 5004 |  | 
|---|
| 5005 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5006 | #line 5007 "configure" | 
|---|
| 5007 | #include "confdefs.h" | 
|---|
| 5008 |  | 
|---|
| 5009 | int main() { | 
|---|
| 5010 | extern int _nl_msg_cat_cntr; | 
|---|
| 5011 | return _nl_msg_cat_cntr | 
|---|
| 5012 | ; return 0; } | 
|---|
| 5013 | EOF | 
|---|
| 5014 | if { (eval echo configure:5015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 5015 | rm -rf conftest* | 
|---|
| 5016 | CATOBJEXT=.gmo | 
|---|
| 5017 | DATADIRNAME=share | 
|---|
| 5018 | else | 
|---|
| 5019 | echo "configure: failed program was:" >&5 | 
|---|
| 5020 | cat conftest.$ac_ext >&5 | 
|---|
| 5021 | rm -rf conftest* | 
|---|
| 5022 | CATOBJEXT=.mo | 
|---|
| 5023 | DATADIRNAME=lib | 
|---|
| 5024 | fi | 
|---|
| 5025 | rm -f conftest* | 
|---|
| 5026 | INSTOBJEXT=.mo | 
|---|
| 5027 | fi | 
|---|
| 5028 | fi | 
|---|
| 5029 |  | 
|---|
| 5030 | else | 
|---|
| 5031 | echo "$ac_t""no" 1>&6 | 
|---|
| 5032 | fi | 
|---|
| 5033 |  | 
|---|
| 5034 |  | 
|---|
| 5035 |  | 
|---|
| 5036 | if test "$CATOBJEXT" = "NONE"; then | 
|---|
| 5037 | nls_cv_use_gnu_gettext=yes | 
|---|
| 5038 | fi | 
|---|
| 5039 | fi | 
|---|
| 5040 |  | 
|---|
| 5041 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | 
|---|
| 5042 | INTLOBJS="\$(GETTOBJS)" | 
|---|
| 5043 | # Extract the first word of "msgfmt", so it can be a program name with args. | 
|---|
| 5044 | set dummy msgfmt; ac_word=$2 | 
|---|
| 5045 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 5046 | echo "configure:5047: checking for $ac_word" >&5 | 
|---|
| 5047 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then | 
|---|
| 5048 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5049 | else | 
|---|
| 5050 | case "$MSGFMT" in | 
|---|
| 5051 | /*) | 
|---|
| 5052 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | 
|---|
| 5053 | ;; | 
|---|
| 5054 | *) | 
|---|
| 5055 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}" | 
|---|
| 5056 | for ac_dir in $PATH; do | 
|---|
| 5057 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 5058 | if test -f $ac_dir/$ac_word; then | 
|---|
| 5059 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | 
|---|
| 5060 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | 
|---|
| 5061 | break | 
|---|
| 5062 | fi | 
|---|
| 5063 | fi | 
|---|
| 5064 | done | 
|---|
| 5065 | IFS="$ac_save_ifs" | 
|---|
| 5066 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | 
|---|
| 5067 | ;; | 
|---|
| 5068 | esac | 
|---|
| 5069 | fi | 
|---|
| 5070 | MSGFMT="$ac_cv_path_MSGFMT" | 
|---|
| 5071 | if test -n "$MSGFMT"; then | 
|---|
| 5072 | echo "$ac_t""$MSGFMT" 1>&6 | 
|---|
| 5073 | else | 
|---|
| 5074 | echo "$ac_t""no" 1>&6 | 
|---|
| 5075 | fi | 
|---|
| 5076 |  | 
|---|
| 5077 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | 
|---|
| 5078 | set dummy gmsgfmt; ac_word=$2 | 
|---|
| 5079 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 5080 | echo "configure:5081: checking for $ac_word" >&5 | 
|---|
| 5081 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then | 
|---|
| 5082 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5083 | else | 
|---|
| 5084 | case "$GMSGFMT" in | 
|---|
| 5085 | /* | [a-zA-Z]:*) | 
|---|
| 5086 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | 
|---|
| 5087 | ;; | 
|---|
| 5088 | ?:/*) | 
|---|
| 5089 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | 
|---|
| 5090 | ;; | 
|---|
| 5091 | *) | 
|---|
| 5092 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 5093 | ac_dummy="$PATH" | 
|---|
| 5094 | for ac_dir in $ac_dummy; do | 
|---|
| 5095 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 5096 | if test -f $ac_dir/$ac_word; then | 
|---|
| 5097 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | 
|---|
| 5098 | break | 
|---|
| 5099 | fi | 
|---|
| 5100 | if test -f $ac_dir/$ac_word$ac_exeext; then | 
|---|
| 5101 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext" | 
|---|
| 5102 | break | 
|---|
| 5103 | fi | 
|---|
| 5104 | done | 
|---|
| 5105 | IFS="$ac_save_ifs" | 
|---|
| 5106 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | 
|---|
| 5107 | ;; | 
|---|
| 5108 | esac | 
|---|
| 5109 | fi | 
|---|
| 5110 | GMSGFMT="$ac_cv_path_GMSGFMT" | 
|---|
| 5111 | if test -n "$GMSGFMT"; then | 
|---|
| 5112 | echo "$ac_t""$GMSGFMT" 1>&6 | 
|---|
| 5113 | else | 
|---|
| 5114 | echo "$ac_t""no" 1>&6 | 
|---|
| 5115 | fi | 
|---|
| 5116 |  | 
|---|
| 5117 | # Extract the first word of "xgettext", so it can be a program name with args. | 
|---|
| 5118 | set dummy xgettext; ac_word=$2 | 
|---|
| 5119 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 5120 | echo "configure:5121: checking for $ac_word" >&5 | 
|---|
| 5121 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then | 
|---|
| 5122 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5123 | else | 
|---|
| 5124 | case "$XGETTEXT" in | 
|---|
| 5125 | /*) | 
|---|
| 5126 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | 
|---|
| 5127 | ;; | 
|---|
| 5128 | *) | 
|---|
| 5129 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}" | 
|---|
| 5130 | for ac_dir in $PATH; do | 
|---|
| 5131 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 5132 | if test -f $ac_dir/$ac_word; then | 
|---|
| 5133 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | 
|---|
| 5134 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | 
|---|
| 5135 | break | 
|---|
| 5136 | fi | 
|---|
| 5137 | fi | 
|---|
| 5138 | done | 
|---|
| 5139 | IFS="$ac_save_ifs" | 
|---|
| 5140 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | 
|---|
| 5141 | ;; | 
|---|
| 5142 | esac | 
|---|
| 5143 | fi | 
|---|
| 5144 | XGETTEXT="$ac_cv_path_XGETTEXT" | 
|---|
| 5145 | if test -n "$XGETTEXT"; then | 
|---|
| 5146 | echo "$ac_t""$XGETTEXT" 1>&6 | 
|---|
| 5147 | else | 
|---|
| 5148 | echo "$ac_t""no" 1>&6 | 
|---|
| 5149 | fi | 
|---|
| 5150 |  | 
|---|
| 5151 |  | 
|---|
| 5152 | USE_INCLUDED_LIBINTL=yes | 
|---|
| 5153 | CATOBJEXT=.gmo | 
|---|
| 5154 | INSTOBJEXT=.mo | 
|---|
| 5155 | DATADIRNAME=share | 
|---|
| 5156 | INTLDEPS='$(top_builddir)/../intl/libintl.a' | 
|---|
| 5157 | INTLLIBS=$INTLDEPS | 
|---|
| 5158 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | 
|---|
| 5159 | nls_cv_header_intl=libintl.h | 
|---|
| 5160 | nls_cv_header_libgt=libgettext.h | 
|---|
| 5161 | fi | 
|---|
| 5162 |  | 
|---|
| 5163 | if test "$XGETTEXT" != ":"; then | 
|---|
| 5164 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | 
|---|
| 5165 | : ; | 
|---|
| 5166 | else | 
|---|
| 5167 | echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6 | 
|---|
| 5168 | XGETTEXT=":" | 
|---|
| 5169 | fi | 
|---|
| 5170 | fi | 
|---|
| 5171 |  | 
|---|
| 5172 | # We need to process the po/ directory. | 
|---|
| 5173 | POSUB=po | 
|---|
| 5174 | else | 
|---|
| 5175 | DATADIRNAME=share | 
|---|
| 5176 | nls_cv_header_intl=libintl.h | 
|---|
| 5177 | nls_cv_header_libgt=libgettext.h | 
|---|
| 5178 | fi | 
|---|
| 5179 |  | 
|---|
| 5180 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | 
|---|
| 5181 | # because some of the sources are only built for this goal. | 
|---|
| 5182 | if test "$PACKAGE" = gettext; then | 
|---|
| 5183 | USE_NLS=yes | 
|---|
| 5184 | USE_INCLUDED_LIBINTL=yes | 
|---|
| 5185 | fi | 
|---|
| 5186 |  | 
|---|
| 5187 | for lang in $ALL_LINGUAS; do | 
|---|
| 5188 | GMOFILES="$GMOFILES $lang.gmo" | 
|---|
| 5189 | POFILES="$POFILES $lang.po" | 
|---|
| 5190 | done | 
|---|
| 5191 |  | 
|---|
| 5192 |  | 
|---|
| 5193 |  | 
|---|
| 5194 |  | 
|---|
| 5195 |  | 
|---|
| 5196 |  | 
|---|
| 5197 |  | 
|---|
| 5198 |  | 
|---|
| 5199 |  | 
|---|
| 5200 |  | 
|---|
| 5201 |  | 
|---|
| 5202 |  | 
|---|
| 5203 |  | 
|---|
| 5204 |  | 
|---|
| 5205 | if test "x$CATOBJEXT" != "x"; then | 
|---|
| 5206 | if test "x$ALL_LINGUAS" = "x"; then | 
|---|
| 5207 | LINGUAS= | 
|---|
| 5208 | else | 
|---|
| 5209 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 | 
|---|
| 5210 | echo "configure:5211: checking for catalogs to be installed" >&5 | 
|---|
| 5211 | NEW_LINGUAS= | 
|---|
| 5212 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | 
|---|
| 5213 | case "$ALL_LINGUAS" in | 
|---|
| 5214 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | 
|---|
| 5215 | esac | 
|---|
| 5216 | done | 
|---|
| 5217 | LINGUAS=$NEW_LINGUAS | 
|---|
| 5218 | echo "$ac_t""$LINGUAS" 1>&6 | 
|---|
| 5219 | fi | 
|---|
| 5220 |  | 
|---|
| 5221 | if test -n "$LINGUAS"; then | 
|---|
| 5222 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | 
|---|
| 5223 | fi | 
|---|
| 5224 | fi | 
|---|
| 5225 |  | 
|---|
| 5226 | if test $ac_cv_header_locale_h = yes; then | 
|---|
| 5227 | INCLUDE_LOCALE_H="#include <locale.h>" | 
|---|
| 5228 | else | 
|---|
| 5229 | INCLUDE_LOCALE_H="\ | 
|---|
| 5230 | /* The system does not provide the header <locale.h>.  Take care yourself.  */" | 
|---|
| 5231 | fi | 
|---|
| 5232 |  | 
|---|
| 5233 |  | 
|---|
| 5234 | if test -f $srcdir/po2tbl.sed.in; then | 
|---|
| 5235 | if test "$CATOBJEXT" = ".cat"; then | 
|---|
| 5236 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` | 
|---|
| 5237 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 | 
|---|
| 5238 | echo "configure:5239: checking for linux/version.h" >&5 | 
|---|
| 5239 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 
|---|
| 5240 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5241 | else | 
|---|
| 5242 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5243 | #include <sys/types.h> | 
|---|
| 5244 | #line 5245 "configure" | 
|---|
| 5245 | #include "confdefs.h" | 
|---|
| 5246 | #include <linux/version.h> | 
|---|
| 5247 | EOF | 
|---|
| 5248 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 5249 | { (eval echo configure:5250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 5250 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 5251 | if test -z "$ac_err"; then | 
|---|
| 5252 | rm -rf conftest* | 
|---|
| 5253 | eval "ac_cv_header_$ac_safe=yes" | 
|---|
| 5254 | else | 
|---|
| 5255 | echo "$ac_err" >&5 | 
|---|
| 5256 | echo "configure: failed program was:" >&5 | 
|---|
| 5257 | cat conftest.$ac_ext >&5 | 
|---|
| 5258 | rm -rf conftest* | 
|---|
| 5259 | eval "ac_cv_header_$ac_safe=no" | 
|---|
| 5260 | fi | 
|---|
| 5261 | rm -f conftest* | 
|---|
| 5262 | fi | 
|---|
| 5263 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
|---|
| 5264 | echo "$ac_t""yes" 1>&6 | 
|---|
| 5265 | msgformat=linux | 
|---|
| 5266 | else | 
|---|
| 5267 | echo "$ac_t""no" 1>&6 | 
|---|
| 5268 | msgformat=xopen | 
|---|
| 5269 | fi | 
|---|
| 5270 |  | 
|---|
| 5271 |  | 
|---|
| 5272 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed | 
|---|
| 5273 | fi | 
|---|
| 5274 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | 
|---|
| 5275 | $srcdir/po2tbl.sed.in > po2tbl.sed | 
|---|
| 5276 | fi | 
|---|
| 5277 |  | 
|---|
| 5278 | if test "$PACKAGE" = "gettext"; then | 
|---|
| 5279 | GT_NO="#NO#" | 
|---|
| 5280 | GT_YES= | 
|---|
| 5281 | else | 
|---|
| 5282 | GT_NO= | 
|---|
| 5283 | GT_YES="#YES#" | 
|---|
| 5284 | fi | 
|---|
| 5285 |  | 
|---|
| 5286 |  | 
|---|
| 5287 |  | 
|---|
| 5288 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" | 
|---|
| 5289 |  | 
|---|
| 5290 |  | 
|---|
| 5291 | l= | 
|---|
| 5292 |  | 
|---|
| 5293 |  | 
|---|
| 5294 | if test -d $srcdir/po; then | 
|---|
| 5295 | test -d po || mkdir po | 
|---|
| 5296 | if test "x$srcdir" != "x."; then | 
|---|
| 5297 | if test "x`echo $srcdir | sed -e 's@.\:/.*@@'  -e 's@/.*@@' `" = "x"; then | 
|---|
| 5298 | posrcprefix="$srcdir/" | 
|---|
| 5299 | else | 
|---|
| 5300 | posrcprefix="../$srcdir/" | 
|---|
| 5301 | fi | 
|---|
| 5302 | else | 
|---|
| 5303 | posrcprefix="../" | 
|---|
| 5304 | fi | 
|---|
| 5305 | rm -f po/POTFILES | 
|---|
| 5306 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*,      $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | 
|---|
| 5307 | < $srcdir/po/POTFILES.in > po/POTFILES | 
|---|
| 5308 | fi | 
|---|
| 5309 |  | 
|---|
| 5310 |  | 
|---|
| 5311 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 | 
|---|
| 5312 | echo "configure:5313: checking whether to enable maintainer-specific portions of Makefiles" >&5 | 
|---|
| 5313 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | 
|---|
| 5314 | if test "${enable_maintainer_mode+set}" = set; then | 
|---|
| 5315 | enableval="$enable_maintainer_mode" | 
|---|
| 5316 | USE_MAINTAINER_MODE=$enableval | 
|---|
| 5317 | else | 
|---|
| 5318 | USE_MAINTAINER_MODE=no | 
|---|
| 5319 | fi | 
|---|
| 5320 |  | 
|---|
| 5321 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 | 
|---|
| 5322 |  | 
|---|
| 5323 |  | 
|---|
| 5324 | if test $USE_MAINTAINER_MODE = yes; then | 
|---|
| 5325 | MAINTAINER_MODE_TRUE= | 
|---|
| 5326 | MAINTAINER_MODE_FALSE='#' | 
|---|
| 5327 | else | 
|---|
| 5328 | MAINTAINER_MODE_TRUE='#' | 
|---|
| 5329 | MAINTAINER_MODE_FALSE= | 
|---|
| 5330 | fi | 
|---|
| 5331 | MAINT=$MAINTAINER_MODE_TRUE | 
|---|
| 5332 |  | 
|---|
| 5333 |  | 
|---|
| 5334 |  | 
|---|
| 5335 |  | 
|---|
| 5336 |  | 
|---|
| 5337 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | 
|---|
| 5338 | echo "configure:5339: checking for executable suffix" >&5 | 
|---|
| 5339 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then | 
|---|
| 5340 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5341 | else | 
|---|
| 5342 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then | 
|---|
| 5343 | ac_cv_exeext=.exe | 
|---|
| 5344 | else | 
|---|
| 5345 | rm -f conftest* | 
|---|
| 5346 | echo 'int main () { return 0; }' > conftest.$ac_ext | 
|---|
| 5347 | ac_cv_exeext= | 
|---|
| 5348 | if { (eval echo configure:5349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then | 
|---|
| 5349 | for file in conftest.*; do | 
|---|
| 5350 | case $file in | 
|---|
| 5351 | *.c | *.o | *.obj) ;; | 
|---|
| 5352 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; | 
|---|
| 5353 | esac | 
|---|
| 5354 | done | 
|---|
| 5355 | else | 
|---|
| 5356 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | 
|---|
| 5357 | fi | 
|---|
| 5358 | rm -f conftest* | 
|---|
| 5359 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | 
|---|
| 5360 | fi | 
|---|
| 5361 | fi | 
|---|
| 5362 |  | 
|---|
| 5363 | EXEEXT="" | 
|---|
| 5364 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | 
|---|
| 5365 | echo "$ac_t""${ac_cv_exeext}" 1>&6 | 
|---|
| 5366 | ac_exeext=$EXEEXT | 
|---|
| 5367 |  | 
|---|
| 5368 |  | 
|---|
| 5369 | for ac_hdr in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h | 
|---|
| 5370 | do | 
|---|
| 5371 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 
|---|
| 5372 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 
|---|
| 5373 | echo "configure:5374: checking for $ac_hdr" >&5 | 
|---|
| 5374 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 
|---|
| 5375 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5376 | else | 
|---|
| 5377 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5378 | #include <sys/types.h> | 
|---|
| 5379 | #line 5380 "configure" | 
|---|
| 5380 | #include "confdefs.h" | 
|---|
| 5381 | #include <$ac_hdr> | 
|---|
| 5382 | EOF | 
|---|
| 5383 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 5384 | { (eval echo configure:5385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 5385 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 5386 | if test -z "$ac_err"; then | 
|---|
| 5387 | rm -rf conftest* | 
|---|
| 5388 | eval "ac_cv_header_$ac_safe=yes" | 
|---|
| 5389 | else | 
|---|
| 5390 | echo "$ac_err" >&5 | 
|---|
| 5391 | echo "configure: failed program was:" >&5 | 
|---|
| 5392 | cat conftest.$ac_ext >&5 | 
|---|
| 5393 | rm -rf conftest* | 
|---|
| 5394 | eval "ac_cv_header_$ac_safe=no" | 
|---|
| 5395 | fi | 
|---|
| 5396 | rm -f conftest* | 
|---|
| 5397 | fi | 
|---|
| 5398 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
|---|
| 5399 | echo "$ac_t""yes" 1>&6 | 
|---|
| 5400 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 
|---|
| 5401 | cat >> confdefs.h <<EOF | 
|---|
| 5402 | #define $ac_tr_hdr 1 | 
|---|
| 5403 | EOF | 
|---|
| 5404 |  | 
|---|
| 5405 | else | 
|---|
| 5406 | echo "$ac_t""no" 1>&6 | 
|---|
| 5407 | fi | 
|---|
| 5408 | done | 
|---|
| 5409 |  | 
|---|
| 5410 |  | 
|---|
| 5411 | # Put this here so that autoconf's "cross-compiling" message doesn't confuse | 
|---|
| 5412 | # people who are not cross-compiling but are compiling cross-assemblers. | 
|---|
| 5413 | echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6 | 
|---|
| 5414 | echo "configure:5415: checking whether compiling a cross-assembler" >&5 | 
|---|
| 5415 | if test "${host}" = "${target}"; then | 
|---|
| 5416 | cross_gas=no | 
|---|
| 5417 | else | 
|---|
| 5418 | cross_gas=yes | 
|---|
| 5419 | cat >> confdefs.h <<\EOF | 
|---|
| 5420 | #define CROSS_COMPILE 1 | 
|---|
| 5421 | EOF | 
|---|
| 5422 |  | 
|---|
| 5423 | fi | 
|---|
| 5424 | echo "$ac_t""$cross_gas" 1>&6 | 
|---|
| 5425 |  | 
|---|
| 5426 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | 
|---|
| 5427 | # for constant arguments.  Useless! | 
|---|
| 5428 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | 
|---|
| 5429 | echo "configure:5430: checking for working alloca.h" >&5 | 
|---|
| 5430 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then | 
|---|
| 5431 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5432 | else | 
|---|
| 5433 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5434 | #line 5435 "configure" | 
|---|
| 5435 | #include "confdefs.h" | 
|---|
| 5436 | #include <alloca.h> | 
|---|
| 5437 | int main() { | 
|---|
| 5438 | char *p = alloca(2 * sizeof(int)); | 
|---|
| 5439 | ; return 0; } | 
|---|
| 5440 | EOF | 
|---|
| 5441 | if { (eval echo configure:5442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 5442 | rm -rf conftest* | 
|---|
| 5443 | ac_cv_header_alloca_h=yes | 
|---|
| 5444 | else | 
|---|
| 5445 | echo "configure: failed program was:" >&5 | 
|---|
| 5446 | cat conftest.$ac_ext >&5 | 
|---|
| 5447 | rm -rf conftest* | 
|---|
| 5448 | ac_cv_header_alloca_h=no | 
|---|
| 5449 | fi | 
|---|
| 5450 | rm -f conftest* | 
|---|
| 5451 | fi | 
|---|
| 5452 |  | 
|---|
| 5453 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | 
|---|
| 5454 | if test $ac_cv_header_alloca_h = yes; then | 
|---|
| 5455 | cat >> confdefs.h <<\EOF | 
|---|
| 5456 | #define HAVE_ALLOCA_H 1 | 
|---|
| 5457 | EOF | 
|---|
| 5458 |  | 
|---|
| 5459 | fi | 
|---|
| 5460 |  | 
|---|
| 5461 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 | 
|---|
| 5462 | echo "configure:5463: checking for alloca" >&5 | 
|---|
| 5463 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then | 
|---|
| 5464 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5465 | else | 
|---|
| 5466 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5467 | #line 5468 "configure" | 
|---|
| 5468 | #include "confdefs.h" | 
|---|
| 5469 |  | 
|---|
| 5470 | #ifdef __GNUC__ | 
|---|
| 5471 | # define alloca __builtin_alloca | 
|---|
| 5472 | #else | 
|---|
| 5473 | # ifdef _MSC_VER | 
|---|
| 5474 | #  include <malloc.h> | 
|---|
| 5475 | #  define alloca _alloca | 
|---|
| 5476 | # else | 
|---|
| 5477 | #  if HAVE_ALLOCA_H | 
|---|
| 5478 | #   include <alloca.h> | 
|---|
| 5479 | #  else | 
|---|
| 5480 | #   ifdef _AIX | 
|---|
| 5481 | #pragma alloca | 
|---|
| 5482 | #   else | 
|---|
| 5483 | #    ifndef alloca /* predefined by HP cc +Olibcalls */ | 
|---|
| 5484 | char *alloca (); | 
|---|
| 5485 | #    endif | 
|---|
| 5486 | #   endif | 
|---|
| 5487 | #  endif | 
|---|
| 5488 | # endif | 
|---|
| 5489 | #endif | 
|---|
| 5490 |  | 
|---|
| 5491 | int main() { | 
|---|
| 5492 | char *p = (char *) alloca(1); | 
|---|
| 5493 | ; return 0; } | 
|---|
| 5494 | EOF | 
|---|
| 5495 | if { (eval echo configure:5496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 5496 | rm -rf conftest* | 
|---|
| 5497 | ac_cv_func_alloca_works=yes | 
|---|
| 5498 | else | 
|---|
| 5499 | echo "configure: failed program was:" >&5 | 
|---|
| 5500 | cat conftest.$ac_ext >&5 | 
|---|
| 5501 | rm -rf conftest* | 
|---|
| 5502 | ac_cv_func_alloca_works=no | 
|---|
| 5503 | fi | 
|---|
| 5504 | rm -f conftest* | 
|---|
| 5505 | fi | 
|---|
| 5506 |  | 
|---|
| 5507 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 | 
|---|
| 5508 | if test $ac_cv_func_alloca_works = yes; then | 
|---|
| 5509 | cat >> confdefs.h <<\EOF | 
|---|
| 5510 | #define HAVE_ALLOCA 1 | 
|---|
| 5511 | EOF | 
|---|
| 5512 |  | 
|---|
| 5513 | fi | 
|---|
| 5514 |  | 
|---|
| 5515 | if test $ac_cv_func_alloca_works = no; then | 
|---|
| 5516 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | 
|---|
| 5517 | # that cause trouble.  Some versions do not even contain alloca or | 
|---|
| 5518 | # contain a buggy version.  If you still want to use their alloca, | 
|---|
| 5519 | # use ar to extract alloca.o from them instead of compiling alloca.c. | 
|---|
| 5520 | ALLOCA=alloca.${ac_objext} | 
|---|
| 5521 | cat >> confdefs.h <<\EOF | 
|---|
| 5522 | #define C_ALLOCA 1 | 
|---|
| 5523 | EOF | 
|---|
| 5524 |  | 
|---|
| 5525 |  | 
|---|
| 5526 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | 
|---|
| 5527 | echo "configure:5528: checking whether alloca needs Cray hooks" >&5 | 
|---|
| 5528 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then | 
|---|
| 5529 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5530 | else | 
|---|
| 5531 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5532 | #line 5533 "configure" | 
|---|
| 5533 | #include "confdefs.h" | 
|---|
| 5534 | #if defined(CRAY) && ! defined(CRAY2) | 
|---|
| 5535 | webecray | 
|---|
| 5536 | #else | 
|---|
| 5537 | wenotbecray | 
|---|
| 5538 | #endif | 
|---|
| 5539 |  | 
|---|
| 5540 | EOF | 
|---|
| 5541 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|---|
| 5542 | egrep "webecray" >/dev/null 2>&1; then | 
|---|
| 5543 | rm -rf conftest* | 
|---|
| 5544 | ac_cv_os_cray=yes | 
|---|
| 5545 | else | 
|---|
| 5546 | rm -rf conftest* | 
|---|
| 5547 | ac_cv_os_cray=no | 
|---|
| 5548 | fi | 
|---|
| 5549 | rm -f conftest* | 
|---|
| 5550 |  | 
|---|
| 5551 | fi | 
|---|
| 5552 |  | 
|---|
| 5553 | echo "$ac_t""$ac_cv_os_cray" 1>&6 | 
|---|
| 5554 | if test $ac_cv_os_cray = yes; then | 
|---|
| 5555 | for ac_func in _getb67 GETB67 getb67; do | 
|---|
| 5556 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
|---|
| 5557 | echo "configure:5558: checking for $ac_func" >&5 | 
|---|
| 5558 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
|---|
| 5559 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5560 | else | 
|---|
| 5561 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5562 | #line 5563 "configure" | 
|---|
| 5563 | #include "confdefs.h" | 
|---|
| 5564 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 5565 | which can conflict with char $ac_func(); below.  */ | 
|---|
| 5566 | #include <assert.h> | 
|---|
| 5567 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 5568 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 5569 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 5570 | char $ac_func(); | 
|---|
| 5571 |  | 
|---|
| 5572 | int main() { | 
|---|
| 5573 |  | 
|---|
| 5574 | /* The GNU C library defines this for functions which it implements | 
|---|
| 5575 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 5576 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 5577 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|---|
| 5578 | choke me | 
|---|
| 5579 | #else | 
|---|
| 5580 | $ac_func(); | 
|---|
| 5581 | #endif | 
|---|
| 5582 |  | 
|---|
| 5583 | ; return 0; } | 
|---|
| 5584 | EOF | 
|---|
| 5585 | if { (eval echo configure:5586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 5586 | rm -rf conftest* | 
|---|
| 5587 | eval "ac_cv_func_$ac_func=yes" | 
|---|
| 5588 | else | 
|---|
| 5589 | echo "configure: failed program was:" >&5 | 
|---|
| 5590 | cat conftest.$ac_ext >&5 | 
|---|
| 5591 | rm -rf conftest* | 
|---|
| 5592 | eval "ac_cv_func_$ac_func=no" | 
|---|
| 5593 | fi | 
|---|
| 5594 | rm -f conftest* | 
|---|
| 5595 | fi | 
|---|
| 5596 |  | 
|---|
| 5597 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|---|
| 5598 | echo "$ac_t""yes" 1>&6 | 
|---|
| 5599 | cat >> confdefs.h <<EOF | 
|---|
| 5600 | #define CRAY_STACKSEG_END $ac_func | 
|---|
| 5601 | EOF | 
|---|
| 5602 |  | 
|---|
| 5603 | break | 
|---|
| 5604 | else | 
|---|
| 5605 | echo "$ac_t""no" 1>&6 | 
|---|
| 5606 | fi | 
|---|
| 5607 |  | 
|---|
| 5608 | done | 
|---|
| 5609 | fi | 
|---|
| 5610 |  | 
|---|
| 5611 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | 
|---|
| 5612 | echo "configure:5613: checking stack direction for C alloca" >&5 | 
|---|
| 5613 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then | 
|---|
| 5614 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5615 | else | 
|---|
| 5616 | if test "$cross_compiling" = yes; then | 
|---|
| 5617 | ac_cv_c_stack_direction=0 | 
|---|
| 5618 | else | 
|---|
| 5619 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5620 | #line 5621 "configure" | 
|---|
| 5621 | #include "confdefs.h" | 
|---|
| 5622 | find_stack_direction () | 
|---|
| 5623 | { | 
|---|
| 5624 | static char *addr = 0; | 
|---|
| 5625 | auto char dummy; | 
|---|
| 5626 | if (addr == 0) | 
|---|
| 5627 | { | 
|---|
| 5628 | addr = &dummy; | 
|---|
| 5629 | return find_stack_direction (); | 
|---|
| 5630 | } | 
|---|
| 5631 | else | 
|---|
| 5632 | return (&dummy > addr) ? 1 : -1; | 
|---|
| 5633 | } | 
|---|
| 5634 | main () | 
|---|
| 5635 | { | 
|---|
| 5636 | exit (find_stack_direction() < 0); | 
|---|
| 5637 | } | 
|---|
| 5638 | EOF | 
|---|
| 5639 | if { (eval echo configure:5640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
|---|
| 5640 | then | 
|---|
| 5641 | ac_cv_c_stack_direction=1 | 
|---|
| 5642 | else | 
|---|
| 5643 | echo "configure: failed program was:" >&5 | 
|---|
| 5644 | cat conftest.$ac_ext >&5 | 
|---|
| 5645 | rm -fr conftest* | 
|---|
| 5646 | ac_cv_c_stack_direction=-1 | 
|---|
| 5647 | fi | 
|---|
| 5648 | rm -fr conftest* | 
|---|
| 5649 | fi | 
|---|
| 5650 |  | 
|---|
| 5651 | fi | 
|---|
| 5652 |  | 
|---|
| 5653 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 | 
|---|
| 5654 | cat >> confdefs.h <<EOF | 
|---|
| 5655 | #define STACK_DIRECTION $ac_cv_c_stack_direction | 
|---|
| 5656 | EOF | 
|---|
| 5657 |  | 
|---|
| 5658 | fi | 
|---|
| 5659 |  | 
|---|
| 5660 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | 
|---|
| 5661 | echo "configure:5662: checking for inline" >&5 | 
|---|
| 5662 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then | 
|---|
| 5663 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5664 | else | 
|---|
| 5665 | ac_cv_c_inline=no | 
|---|
| 5666 | for ac_kw in inline __inline__ __inline; do | 
|---|
| 5667 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5668 | #line 5669 "configure" | 
|---|
| 5669 | #include "confdefs.h" | 
|---|
| 5670 |  | 
|---|
| 5671 | int main() { | 
|---|
| 5672 | } $ac_kw foo() { | 
|---|
| 5673 | ; return 0; } | 
|---|
| 5674 | EOF | 
|---|
| 5675 | if { (eval echo configure:5676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 5676 | rm -rf conftest* | 
|---|
| 5677 | ac_cv_c_inline=$ac_kw; break | 
|---|
| 5678 | else | 
|---|
| 5679 | echo "configure: failed program was:" >&5 | 
|---|
| 5680 | cat conftest.$ac_ext >&5 | 
|---|
| 5681 | fi | 
|---|
| 5682 | rm -f conftest* | 
|---|
| 5683 | done | 
|---|
| 5684 |  | 
|---|
| 5685 | fi | 
|---|
| 5686 |  | 
|---|
| 5687 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | 
|---|
| 5688 | case "$ac_cv_c_inline" in | 
|---|
| 5689 | inline | yes) ;; | 
|---|
| 5690 | no) cat >> confdefs.h <<\EOF | 
|---|
| 5691 | #define inline | 
|---|
| 5692 | EOF | 
|---|
| 5693 | ;; | 
|---|
| 5694 | *)  cat >> confdefs.h <<EOF | 
|---|
| 5695 | #define inline $ac_cv_c_inline | 
|---|
| 5696 | EOF | 
|---|
| 5697 | ;; | 
|---|
| 5698 | esac | 
|---|
| 5699 |  | 
|---|
| 5700 |  | 
|---|
| 5701 | # VMS doesn't have unlink. | 
|---|
| 5702 | for ac_func in unlink remove | 
|---|
| 5703 | do | 
|---|
| 5704 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
|---|
| 5705 | echo "configure:5706: checking for $ac_func" >&5 | 
|---|
| 5706 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
|---|
| 5707 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5708 | else | 
|---|
| 5709 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5710 | #line 5711 "configure" | 
|---|
| 5711 | #include "confdefs.h" | 
|---|
| 5712 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 5713 | which can conflict with char $ac_func(); below.  */ | 
|---|
| 5714 | #include <assert.h> | 
|---|
| 5715 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 5716 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 5717 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 5718 | char $ac_func(); | 
|---|
| 5719 |  | 
|---|
| 5720 | int main() { | 
|---|
| 5721 |  | 
|---|
| 5722 | /* The GNU C library defines this for functions which it implements | 
|---|
| 5723 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 5724 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 5725 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|---|
| 5726 | choke me | 
|---|
| 5727 | #else | 
|---|
| 5728 | $ac_func(); | 
|---|
| 5729 | #endif | 
|---|
| 5730 |  | 
|---|
| 5731 | ; return 0; } | 
|---|
| 5732 | EOF | 
|---|
| 5733 | if { (eval echo configure:5734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 5734 | rm -rf conftest* | 
|---|
| 5735 | eval "ac_cv_func_$ac_func=yes" | 
|---|
| 5736 | else | 
|---|
| 5737 | echo "configure: failed program was:" >&5 | 
|---|
| 5738 | cat conftest.$ac_ext >&5 | 
|---|
| 5739 | rm -rf conftest* | 
|---|
| 5740 | eval "ac_cv_func_$ac_func=no" | 
|---|
| 5741 | fi | 
|---|
| 5742 | rm -f conftest* | 
|---|
| 5743 | fi | 
|---|
| 5744 |  | 
|---|
| 5745 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|---|
| 5746 | echo "$ac_t""yes" 1>&6 | 
|---|
| 5747 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|---|
| 5748 | cat >> confdefs.h <<EOF | 
|---|
| 5749 | #define $ac_tr_func 1 | 
|---|
| 5750 | EOF | 
|---|
| 5751 | break | 
|---|
| 5752 | else | 
|---|
| 5753 | echo "$ac_t""no" 1>&6 | 
|---|
| 5754 | fi | 
|---|
| 5755 | done | 
|---|
| 5756 |  | 
|---|
| 5757 |  | 
|---|
| 5758 | # Some systems don't have sbrk(). | 
|---|
| 5759 | for ac_func in sbrk | 
|---|
| 5760 | do | 
|---|
| 5761 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
|---|
| 5762 | echo "configure:5763: checking for $ac_func" >&5 | 
|---|
| 5763 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
|---|
| 5764 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5765 | else | 
|---|
| 5766 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5767 | #line 5768 "configure" | 
|---|
| 5768 | #include "confdefs.h" | 
|---|
| 5769 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 5770 | which can conflict with char $ac_func(); below.  */ | 
|---|
| 5771 | #include <assert.h> | 
|---|
| 5772 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 5773 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 5774 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 5775 | char $ac_func(); | 
|---|
| 5776 |  | 
|---|
| 5777 | int main() { | 
|---|
| 5778 |  | 
|---|
| 5779 | /* The GNU C library defines this for functions which it implements | 
|---|
| 5780 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 5781 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 5782 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|---|
| 5783 | choke me | 
|---|
| 5784 | #else | 
|---|
| 5785 | $ac_func(); | 
|---|
| 5786 | #endif | 
|---|
| 5787 |  | 
|---|
| 5788 | ; return 0; } | 
|---|
| 5789 | EOF | 
|---|
| 5790 | if { (eval echo configure:5791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 5791 | rm -rf conftest* | 
|---|
| 5792 | eval "ac_cv_func_$ac_func=yes" | 
|---|
| 5793 | else | 
|---|
| 5794 | echo "configure: failed program was:" >&5 | 
|---|
| 5795 | cat conftest.$ac_ext >&5 | 
|---|
| 5796 | rm -rf conftest* | 
|---|
| 5797 | eval "ac_cv_func_$ac_func=no" | 
|---|
| 5798 | fi | 
|---|
| 5799 | rm -f conftest* | 
|---|
| 5800 | fi | 
|---|
| 5801 |  | 
|---|
| 5802 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|---|
| 5803 | echo "$ac_t""yes" 1>&6 | 
|---|
| 5804 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|---|
| 5805 | cat >> confdefs.h <<EOF | 
|---|
| 5806 | #define $ac_tr_func 1 | 
|---|
| 5807 | EOF | 
|---|
| 5808 |  | 
|---|
| 5809 | else | 
|---|
| 5810 | echo "$ac_t""no" 1>&6 | 
|---|
| 5811 | fi | 
|---|
| 5812 | done | 
|---|
| 5813 |  | 
|---|
| 5814 |  | 
|---|
| 5815 | # do we need the math library? | 
|---|
| 5816 | case "${need_libm}" in | 
|---|
| 5817 | yes) | 
|---|
| 5818 | LIBM= | 
|---|
| 5819 | case "$host" in | 
|---|
| 5820 | *-*-beos* | *-*-cygwin* | *-*-pw32*) | 
|---|
| 5821 | # These system don't have libm | 
|---|
| 5822 | ;; | 
|---|
| 5823 | *-ncr-sysv4.3*) | 
|---|
| 5824 | echo $ac_n "checking for _mwvalidcheckl in -lmw""... $ac_c" 1>&6 | 
|---|
| 5825 | echo "configure:5826: checking for _mwvalidcheckl in -lmw" >&5 | 
|---|
| 5826 | ac_lib_var=`echo mw'_'_mwvalidcheckl | sed 'y%./+-%__p_%'` | 
|---|
| 5827 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|---|
| 5828 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5829 | else | 
|---|
| 5830 | ac_save_LIBS="$LIBS" | 
|---|
| 5831 | LIBS="-lmw  $LIBS" | 
|---|
| 5832 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5833 | #line 5834 "configure" | 
|---|
| 5834 | #include "confdefs.h" | 
|---|
| 5835 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 5836 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 5837 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 5838 | char _mwvalidcheckl(); | 
|---|
| 5839 |  | 
|---|
| 5840 | int main() { | 
|---|
| 5841 | _mwvalidcheckl() | 
|---|
| 5842 | ; return 0; } | 
|---|
| 5843 | EOF | 
|---|
| 5844 | if { (eval echo configure:5845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 5845 | rm -rf conftest* | 
|---|
| 5846 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|---|
| 5847 | else | 
|---|
| 5848 | echo "configure: failed program was:" >&5 | 
|---|
| 5849 | cat conftest.$ac_ext >&5 | 
|---|
| 5850 | rm -rf conftest* | 
|---|
| 5851 | eval "ac_cv_lib_$ac_lib_var=no" | 
|---|
| 5852 | fi | 
|---|
| 5853 | rm -f conftest* | 
|---|
| 5854 | LIBS="$ac_save_LIBS" | 
|---|
| 5855 |  | 
|---|
| 5856 | fi | 
|---|
| 5857 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|---|
| 5858 | echo "$ac_t""yes" 1>&6 | 
|---|
| 5859 | LIBM="-lmw" | 
|---|
| 5860 | else | 
|---|
| 5861 | echo "$ac_t""no" 1>&6 | 
|---|
| 5862 | fi | 
|---|
| 5863 |  | 
|---|
| 5864 | echo $ac_n "checking for main in -lm""... $ac_c" 1>&6 | 
|---|
| 5865 | echo "configure:5866: checking for main in -lm" >&5 | 
|---|
| 5866 | ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'` | 
|---|
| 5867 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|---|
| 5868 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5869 | else | 
|---|
| 5870 | ac_save_LIBS="$LIBS" | 
|---|
| 5871 | LIBS="-lm  $LIBS" | 
|---|
| 5872 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5873 | #line 5874 "configure" | 
|---|
| 5874 | #include "confdefs.h" | 
|---|
| 5875 |  | 
|---|
| 5876 | int main() { | 
|---|
| 5877 | main() | 
|---|
| 5878 | ; return 0; } | 
|---|
| 5879 | EOF | 
|---|
| 5880 | if { (eval echo configure:5881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 5881 | rm -rf conftest* | 
|---|
| 5882 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|---|
| 5883 | else | 
|---|
| 5884 | echo "configure: failed program was:" >&5 | 
|---|
| 5885 | cat conftest.$ac_ext >&5 | 
|---|
| 5886 | rm -rf conftest* | 
|---|
| 5887 | eval "ac_cv_lib_$ac_lib_var=no" | 
|---|
| 5888 | fi | 
|---|
| 5889 | rm -f conftest* | 
|---|
| 5890 | LIBS="$ac_save_LIBS" | 
|---|
| 5891 |  | 
|---|
| 5892 | fi | 
|---|
| 5893 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|---|
| 5894 | echo "$ac_t""yes" 1>&6 | 
|---|
| 5895 | LIBM="$LIBM -lm" | 
|---|
| 5896 | else | 
|---|
| 5897 | echo "$ac_t""no" 1>&6 | 
|---|
| 5898 | fi | 
|---|
| 5899 |  | 
|---|
| 5900 | ;; | 
|---|
| 5901 | *) | 
|---|
| 5902 | echo $ac_n "checking for main in -lm""... $ac_c" 1>&6 | 
|---|
| 5903 | echo "configure:5904: checking for main in -lm" >&5 | 
|---|
| 5904 | ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'` | 
|---|
| 5905 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|---|
| 5906 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5907 | else | 
|---|
| 5908 | ac_save_LIBS="$LIBS" | 
|---|
| 5909 | LIBS="-lm  $LIBS" | 
|---|
| 5910 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5911 | #line 5912 "configure" | 
|---|
| 5912 | #include "confdefs.h" | 
|---|
| 5913 |  | 
|---|
| 5914 | int main() { | 
|---|
| 5915 | main() | 
|---|
| 5916 | ; return 0; } | 
|---|
| 5917 | EOF | 
|---|
| 5918 | if { (eval echo configure:5919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 5919 | rm -rf conftest* | 
|---|
| 5920 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|---|
| 5921 | else | 
|---|
| 5922 | echo "configure: failed program was:" >&5 | 
|---|
| 5923 | cat conftest.$ac_ext >&5 | 
|---|
| 5924 | rm -rf conftest* | 
|---|
| 5925 | eval "ac_cv_lib_$ac_lib_var=no" | 
|---|
| 5926 | fi | 
|---|
| 5927 | rm -f conftest* | 
|---|
| 5928 | LIBS="$ac_save_LIBS" | 
|---|
| 5929 |  | 
|---|
| 5930 | fi | 
|---|
| 5931 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|---|
| 5932 | echo "$ac_t""yes" 1>&6 | 
|---|
| 5933 | LIBM="-lm" | 
|---|
| 5934 | else | 
|---|
| 5935 | echo "$ac_t""no" 1>&6 | 
|---|
| 5936 | fi | 
|---|
| 5937 |  | 
|---|
| 5938 | ;; | 
|---|
| 5939 | esac | 
|---|
| 5940 |  | 
|---|
| 5941 |  | 
|---|
| 5942 | ;; | 
|---|
| 5943 | esac | 
|---|
| 5944 |  | 
|---|
| 5945 | # Some non-ANSI preprocessors botch requoting inside strings.  That's bad | 
|---|
| 5946 | # enough, but on some of those systems, the assert macro relies on requoting | 
|---|
| 5947 | # working properly! | 
|---|
| 5948 | echo $ac_n "checking for working assert macro""... $ac_c" 1>&6 | 
|---|
| 5949 | echo "configure:5950: checking for working assert macro" >&5 | 
|---|
| 5950 | if eval "test \"`echo '$''{'gas_cv_assert_ok'+set}'`\" = set"; then | 
|---|
| 5951 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5952 | else | 
|---|
| 5953 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5954 | #line 5955 "configure" | 
|---|
| 5955 | #include "confdefs.h" | 
|---|
| 5956 | #include <assert.h> | 
|---|
| 5957 | #include <stdio.h> | 
|---|
| 5958 | int main() { | 
|---|
| 5959 |  | 
|---|
| 5960 | /* check for requoting problems */ | 
|---|
| 5961 | static int a, b, c, d; | 
|---|
| 5962 | static char *s; | 
|---|
| 5963 | assert (!strcmp(s, "foo bar baz quux")); | 
|---|
| 5964 | /* check for newline handling */ | 
|---|
| 5965 | assert (a == b | 
|---|
| 5966 | || c == d); | 
|---|
| 5967 |  | 
|---|
| 5968 | ; return 0; } | 
|---|
| 5969 | EOF | 
|---|
| 5970 | if { (eval echo configure:5971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 5971 | rm -rf conftest* | 
|---|
| 5972 | gas_cv_assert_ok=yes | 
|---|
| 5973 | else | 
|---|
| 5974 | echo "configure: failed program was:" >&5 | 
|---|
| 5975 | cat conftest.$ac_ext >&5 | 
|---|
| 5976 | rm -rf conftest* | 
|---|
| 5977 | gas_cv_assert_ok=no | 
|---|
| 5978 | fi | 
|---|
| 5979 | rm -f conftest* | 
|---|
| 5980 | fi | 
|---|
| 5981 | echo "$ac_t""$gas_cv_assert_ok" 1>&6 | 
|---|
| 5982 | test $gas_cv_assert_ok = yes || cat >> confdefs.h <<\EOF | 
|---|
| 5983 | #define BROKEN_ASSERT 1 | 
|---|
| 5984 | EOF | 
|---|
| 5985 |  | 
|---|
| 5986 |  | 
|---|
| 5987 |  | 
|---|
| 5988 | # On some systems, the system header files may not declare malloc, realloc, | 
|---|
| 5989 | # and free.  There are places where gas needs these functions to have been | 
|---|
| 5990 | # declared -- such as when taking their addresses. | 
|---|
| 5991 | gas_test_headers=" | 
|---|
| 5992 | #ifdef HAVE_MEMORY_H | 
|---|
| 5993 | #include <memory.h> | 
|---|
| 5994 | #endif | 
|---|
| 5995 | #ifdef HAVE_STRING_H | 
|---|
| 5996 | #include <string.h> | 
|---|
| 5997 | #else | 
|---|
| 5998 | #ifdef HAVE_STRINGS_H | 
|---|
| 5999 | #include <strings.h> | 
|---|
| 6000 | #endif | 
|---|
| 6001 | #endif | 
|---|
| 6002 | #ifdef HAVE_STDLIB_H | 
|---|
| 6003 | #include <stdlib.h> | 
|---|
| 6004 | #endif | 
|---|
| 6005 | #ifdef HAVE_UNISTD_H | 
|---|
| 6006 | #include <unistd.h> | 
|---|
| 6007 | #endif | 
|---|
| 6008 | " | 
|---|
| 6009 |  | 
|---|
| 6010 | echo $ac_n "checking whether declaration is required for strstr""... $ac_c" 1>&6 | 
|---|
| 6011 | echo "configure:6012: checking whether declaration is required for strstr" >&5 | 
|---|
| 6012 | if eval "test \"`echo '$''{'gas_cv_decl_needed_strstr'+set}'`\" = set"; then | 
|---|
| 6013 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6014 | else | 
|---|
| 6015 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6016 | #line 6017 "configure" | 
|---|
| 6017 | #include "confdefs.h" | 
|---|
| 6018 | $gas_test_headers | 
|---|
| 6019 | int main() { | 
|---|
| 6020 |  | 
|---|
| 6021 | typedef char *(*f)(); | 
|---|
| 6022 | f x; | 
|---|
| 6023 | x = (f) strstr; | 
|---|
| 6024 |  | 
|---|
| 6025 | ; return 0; } | 
|---|
| 6026 | EOF | 
|---|
| 6027 | if { (eval echo configure:6028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 6028 | rm -rf conftest* | 
|---|
| 6029 | gas_cv_decl_needed_strstr=no | 
|---|
| 6030 | else | 
|---|
| 6031 | echo "configure: failed program was:" >&5 | 
|---|
| 6032 | cat conftest.$ac_ext >&5 | 
|---|
| 6033 | rm -rf conftest* | 
|---|
| 6034 | gas_cv_decl_needed_strstr=yes | 
|---|
| 6035 | fi | 
|---|
| 6036 | rm -f conftest* | 
|---|
| 6037 | fi | 
|---|
| 6038 | echo "$ac_t""$gas_cv_decl_needed_strstr" 1>&6 | 
|---|
| 6039 | if test $gas_cv_decl_needed_strstr = yes; then | 
|---|
| 6040 | cat >> confdefs.h <<\EOF | 
|---|
| 6041 | #define NEED_DECLARATION_STRSTR 1 | 
|---|
| 6042 | EOF | 
|---|
| 6043 |  | 
|---|
| 6044 | fi | 
|---|
| 6045 |  | 
|---|
| 6046 |  | 
|---|
| 6047 | echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6 | 
|---|
| 6048 | echo "configure:6049: checking whether declaration is required for malloc" >&5 | 
|---|
| 6049 | if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then | 
|---|
| 6050 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6051 | else | 
|---|
| 6052 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6053 | #line 6054 "configure" | 
|---|
| 6054 | #include "confdefs.h" | 
|---|
| 6055 | $gas_test_headers | 
|---|
| 6056 | int main() { | 
|---|
| 6057 |  | 
|---|
| 6058 | typedef char *(*f)(); | 
|---|
| 6059 | f x; | 
|---|
| 6060 | x = (f) malloc; | 
|---|
| 6061 |  | 
|---|
| 6062 | ; return 0; } | 
|---|
| 6063 | EOF | 
|---|
| 6064 | if { (eval echo configure:6065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 6065 | rm -rf conftest* | 
|---|
| 6066 | gas_cv_decl_needed_malloc=no | 
|---|
| 6067 | else | 
|---|
| 6068 | echo "configure: failed program was:" >&5 | 
|---|
| 6069 | cat conftest.$ac_ext >&5 | 
|---|
| 6070 | rm -rf conftest* | 
|---|
| 6071 | gas_cv_decl_needed_malloc=yes | 
|---|
| 6072 | fi | 
|---|
| 6073 | rm -f conftest* | 
|---|
| 6074 | fi | 
|---|
| 6075 | echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&6 | 
|---|
| 6076 | if test $gas_cv_decl_needed_malloc = yes; then | 
|---|
| 6077 | cat >> confdefs.h <<\EOF | 
|---|
| 6078 | #define NEED_DECLARATION_MALLOC 1 | 
|---|
| 6079 | EOF | 
|---|
| 6080 |  | 
|---|
| 6081 | fi | 
|---|
| 6082 |  | 
|---|
| 6083 |  | 
|---|
| 6084 | echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6 | 
|---|
| 6085 | echo "configure:6086: checking whether declaration is required for free" >&5 | 
|---|
| 6086 | if eval "test \"`echo '$''{'gas_cv_decl_needed_free'+set}'`\" = set"; then | 
|---|
| 6087 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6088 | else | 
|---|
| 6089 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6090 | #line 6091 "configure" | 
|---|
| 6091 | #include "confdefs.h" | 
|---|
| 6092 | $gas_test_headers | 
|---|
| 6093 | int main() { | 
|---|
| 6094 |  | 
|---|
| 6095 | typedef void (*f)(); | 
|---|
| 6096 | f x; | 
|---|
| 6097 | x = (f) free; | 
|---|
| 6098 |  | 
|---|
| 6099 | ; return 0; } | 
|---|
| 6100 | EOF | 
|---|
| 6101 | if { (eval echo configure:6102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 6102 | rm -rf conftest* | 
|---|
| 6103 | gas_cv_decl_needed_free=no | 
|---|
| 6104 | else | 
|---|
| 6105 | echo "configure: failed program was:" >&5 | 
|---|
| 6106 | cat conftest.$ac_ext >&5 | 
|---|
| 6107 | rm -rf conftest* | 
|---|
| 6108 | gas_cv_decl_needed_free=yes | 
|---|
| 6109 | fi | 
|---|
| 6110 | rm -f conftest* | 
|---|
| 6111 | fi | 
|---|
| 6112 | echo "$ac_t""$gas_cv_decl_needed_free" 1>&6 | 
|---|
| 6113 | if test $gas_cv_decl_needed_free = yes; then | 
|---|
| 6114 | cat >> confdefs.h <<\EOF | 
|---|
| 6115 | #define NEED_DECLARATION_FREE 1 | 
|---|
| 6116 | EOF | 
|---|
| 6117 |  | 
|---|
| 6118 | fi | 
|---|
| 6119 |  | 
|---|
| 6120 |  | 
|---|
| 6121 | echo $ac_n "checking whether declaration is required for sbrk""... $ac_c" 1>&6 | 
|---|
| 6122 | echo "configure:6123: checking whether declaration is required for sbrk" >&5 | 
|---|
| 6123 | if eval "test \"`echo '$''{'gas_cv_decl_needed_sbrk'+set}'`\" = set"; then | 
|---|
| 6124 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6125 | else | 
|---|
| 6126 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6127 | #line 6128 "configure" | 
|---|
| 6128 | #include "confdefs.h" | 
|---|
| 6129 | $gas_test_headers | 
|---|
| 6130 | int main() { | 
|---|
| 6131 |  | 
|---|
| 6132 | typedef char *(*f)(); | 
|---|
| 6133 | f x; | 
|---|
| 6134 | x = (f) sbrk; | 
|---|
| 6135 |  | 
|---|
| 6136 | ; return 0; } | 
|---|
| 6137 | EOF | 
|---|
| 6138 | if { (eval echo configure:6139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 6139 | rm -rf conftest* | 
|---|
| 6140 | gas_cv_decl_needed_sbrk=no | 
|---|
| 6141 | else | 
|---|
| 6142 | echo "configure: failed program was:" >&5 | 
|---|
| 6143 | cat conftest.$ac_ext >&5 | 
|---|
| 6144 | rm -rf conftest* | 
|---|
| 6145 | gas_cv_decl_needed_sbrk=yes | 
|---|
| 6146 | fi | 
|---|
| 6147 | rm -f conftest* | 
|---|
| 6148 | fi | 
|---|
| 6149 | echo "$ac_t""$gas_cv_decl_needed_sbrk" 1>&6 | 
|---|
| 6150 | if test $gas_cv_decl_needed_sbrk = yes; then | 
|---|
| 6151 | cat >> confdefs.h <<\EOF | 
|---|
| 6152 | #define NEED_DECLARATION_SBRK 1 | 
|---|
| 6153 | EOF | 
|---|
| 6154 |  | 
|---|
| 6155 | fi | 
|---|
| 6156 |  | 
|---|
| 6157 |  | 
|---|
| 6158 | echo $ac_n "checking whether declaration is required for environ""... $ac_c" 1>&6 | 
|---|
| 6159 | echo "configure:6160: checking whether declaration is required for environ" >&5 | 
|---|
| 6160 | if eval "test \"`echo '$''{'gas_cv_decl_needed_environ'+set}'`\" = set"; then | 
|---|
| 6161 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6162 | else | 
|---|
| 6163 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6164 | #line 6165 "configure" | 
|---|
| 6165 | #include "confdefs.h" | 
|---|
| 6166 | $gas_test_headers | 
|---|
| 6167 | int main() { | 
|---|
| 6168 |  | 
|---|
| 6169 | typedef char **f; | 
|---|
| 6170 | f x; | 
|---|
| 6171 | x = (f) environ; | 
|---|
| 6172 |  | 
|---|
| 6173 | ; return 0; } | 
|---|
| 6174 | EOF | 
|---|
| 6175 | if { (eval echo configure:6176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 6176 | rm -rf conftest* | 
|---|
| 6177 | gas_cv_decl_needed_environ=no | 
|---|
| 6178 | else | 
|---|
| 6179 | echo "configure: failed program was:" >&5 | 
|---|
| 6180 | cat conftest.$ac_ext >&5 | 
|---|
| 6181 | rm -rf conftest* | 
|---|
| 6182 | gas_cv_decl_needed_environ=yes | 
|---|
| 6183 | fi | 
|---|
| 6184 | rm -f conftest* | 
|---|
| 6185 | fi | 
|---|
| 6186 | echo "$ac_t""$gas_cv_decl_needed_environ" 1>&6 | 
|---|
| 6187 | if test $gas_cv_decl_needed_environ = yes; then | 
|---|
| 6188 | cat >> confdefs.h <<\EOF | 
|---|
| 6189 | #define NEED_DECLARATION_ENVIRON 1 | 
|---|
| 6190 | EOF | 
|---|
| 6191 |  | 
|---|
| 6192 | fi | 
|---|
| 6193 |  | 
|---|
| 6194 |  | 
|---|
| 6195 | # Does errno.h declare errno, or do we have to add a separate declaration | 
|---|
| 6196 | # for it? | 
|---|
| 6197 |  | 
|---|
| 6198 | echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6 | 
|---|
| 6199 | echo "configure:6200: checking whether declaration is required for errno" >&5 | 
|---|
| 6200 | if eval "test \"`echo '$''{'gas_cv_decl_needed_errno'+set}'`\" = set"; then | 
|---|
| 6201 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6202 | else | 
|---|
| 6203 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6204 | #line 6205 "configure" | 
|---|
| 6205 | #include "confdefs.h" | 
|---|
| 6206 |  | 
|---|
| 6207 | #ifdef HAVE_ERRNO_H | 
|---|
| 6208 | #include <errno.h> | 
|---|
| 6209 | #endif | 
|---|
| 6210 |  | 
|---|
| 6211 | int main() { | 
|---|
| 6212 |  | 
|---|
| 6213 | typedef int f; | 
|---|
| 6214 | f x; | 
|---|
| 6215 | x = (f) errno; | 
|---|
| 6216 |  | 
|---|
| 6217 | ; return 0; } | 
|---|
| 6218 | EOF | 
|---|
| 6219 | if { (eval echo configure:6220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 6220 | rm -rf conftest* | 
|---|
| 6221 | gas_cv_decl_needed_errno=no | 
|---|
| 6222 | else | 
|---|
| 6223 | echo "configure: failed program was:" >&5 | 
|---|
| 6224 | cat conftest.$ac_ext >&5 | 
|---|
| 6225 | rm -rf conftest* | 
|---|
| 6226 | gas_cv_decl_needed_errno=yes | 
|---|
| 6227 | fi | 
|---|
| 6228 | rm -f conftest* | 
|---|
| 6229 | fi | 
|---|
| 6230 | echo "$ac_t""$gas_cv_decl_needed_errno" 1>&6 | 
|---|
| 6231 | if test $gas_cv_decl_needed_errno = yes; then | 
|---|
| 6232 | cat >> confdefs.h <<\EOF | 
|---|
| 6233 | #define NEED_DECLARATION_ERRNO 1 | 
|---|
| 6234 | EOF | 
|---|
| 6235 |  | 
|---|
| 6236 | fi | 
|---|
| 6237 |  | 
|---|
| 6238 |  | 
|---|
| 6239 |  | 
|---|
| 6240 |  | 
|---|
| 6241 | trap '' 1 2 15 | 
|---|
| 6242 | cat > confcache <<\EOF | 
|---|
| 6243 | # This file is a shell script that caches the results of configure | 
|---|
| 6244 | # tests run on this system so they can be shared between configure | 
|---|
| 6245 | # scripts and configure runs.  It is not useful on other systems. | 
|---|
| 6246 | # If it contains results you don't want to keep, you may remove or edit it. | 
|---|
| 6247 | # | 
|---|
| 6248 | # By default, configure uses ./config.cache as the cache file, | 
|---|
| 6249 | # creating it if it does not exist already.  You can give configure | 
|---|
| 6250 | # the --cache-file=FILE option to use a different cache file; that is | 
|---|
| 6251 | # what configure does when it calls configure scripts in | 
|---|
| 6252 | # subdirectories, so they share the cache. | 
|---|
| 6253 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | 
|---|
| 6254 | # config.status only pays attention to the cache file if you give it the | 
|---|
| 6255 | # --recheck option to rerun configure. | 
|---|
| 6256 | # | 
|---|
| 6257 | EOF | 
|---|
| 6258 | # The following way of writing the cache mishandles newlines in values, | 
|---|
| 6259 | # but we know of no workaround that is simple, portable, and efficient. | 
|---|
| 6260 | # So, don't put newlines in cache variables' values. | 
|---|
| 6261 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
|---|
| 6262 | # and sets the high bit in the cache file unless we assign to the vars. | 
|---|
| 6263 | (set) 2>&1 | | 
|---|
| 6264 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | 
|---|
| 6265 | *ac_space=\ *) | 
|---|
| 6266 | # `set' does not quote correctly, so add quotes (double-quote substitution | 
|---|
| 6267 | # turns \\\\ into \\, and sed turns \\ into \). | 
|---|
| 6268 | sed -n \ | 
|---|
| 6269 | -e "s/'/'\\\\''/g" \ | 
|---|
| 6270 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | 
|---|
| 6271 | ;; | 
|---|
| 6272 | *) | 
|---|
| 6273 | # `set' quotes correctly as required by POSIX, so do not add quotes. | 
|---|
| 6274 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | 
|---|
| 6275 | ;; | 
|---|
| 6276 | esac >> confcache | 
|---|
| 6277 | if cmp -s $cache_file confcache; then | 
|---|
| 6278 | : | 
|---|
| 6279 | else | 
|---|
| 6280 | if test -w $cache_file; then | 
|---|
| 6281 | echo "updating cache $cache_file" | 
|---|
| 6282 | cat confcache > $cache_file | 
|---|
| 6283 | else | 
|---|
| 6284 | echo "not updating unwritable cache $cache_file" | 
|---|
| 6285 | fi | 
|---|
| 6286 | fi | 
|---|
| 6287 | rm -f confcache | 
|---|
| 6288 |  | 
|---|
| 6289 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | 
|---|
| 6290 |  | 
|---|
| 6291 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
|---|
| 6292 | # Let make expand exec_prefix. | 
|---|
| 6293 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
|---|
| 6294 |  | 
|---|
| 6295 | # Any assignment to VPATH causes Sun make to only execute | 
|---|
| 6296 | # the first set of double-colon rules, so remove it if not needed. | 
|---|
| 6297 | # If there is a colon in the path, we need to keep it. | 
|---|
| 6298 | if test "x$srcdir" = x.; then | 
|---|
| 6299 | ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d' | 
|---|
| 6300 | fi | 
|---|
| 6301 |  | 
|---|
| 6302 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | 
|---|
| 6303 |  | 
|---|
| 6304 | DEFS=-DHAVE_CONFIG_H | 
|---|
| 6305 |  | 
|---|
| 6306 | # Without the "./", some shells look in PATH for config.status. | 
|---|
| 6307 | : ${CONFIG_STATUS=./config.status} | 
|---|
| 6308 |  | 
|---|
| 6309 | echo creating $CONFIG_STATUS | 
|---|
| 6310 | rm -f $CONFIG_STATUS | 
|---|
| 6311 | cat > $CONFIG_STATUS <<EOF | 
|---|
| 6312 | #! /bin/sh | 
|---|
| 6313 | # Generated automatically by configure. | 
|---|
| 6314 | # Run this file to recreate the current configuration. | 
|---|
| 6315 | # This directory was configured as follows, | 
|---|
| 6316 | EOF | 
|---|
| 6317 | echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS | 
|---|
| 6318 | cat >> $CONFIG_STATUS <<EOF | 
|---|
| 6319 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
|---|
| 6320 | # | 
|---|
| 6321 | # $0 $ac_configure_args | 
|---|
| 6322 | # | 
|---|
| 6323 | # Compiler output produced by configure, useful for debugging | 
|---|
| 6324 | # configure, is in ./config.log if it exists. | 
|---|
| 6325 |  | 
|---|
| 6326 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | 
|---|
| 6327 | for ac_option | 
|---|
| 6328 | do | 
|---|
| 6329 | case "\$ac_option" in | 
|---|
| 6330 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
|---|
| 6331 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | 
|---|
| 6332 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | 
|---|
| 6333 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | 
|---|
| 6334 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | 
|---|
| 6335 | exit 0 ;; | 
|---|
| 6336 | -help | --help | --hel | --he | --h) | 
|---|
| 6337 | echo "\$ac_cs_usage"; exit 0 ;; | 
|---|
| 6338 | *) echo "\$ac_cs_usage"; exit 1 ;; | 
|---|
| 6339 | esac | 
|---|
| 6340 | done | 
|---|
| 6341 |  | 
|---|
| 6342 | ac_given_srcdir=$srcdir | 
|---|
| 6343 | ac_given_INSTALL="$INSTALL" | 
|---|
| 6344 | PATHIFS="$PATH_IFS" | 
|---|
| 6345 |  | 
|---|
| 6346 | trap 'rm -fr `echo "Makefile doc/Makefile ${GDBINIT}:gdbinit.in po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | 
|---|
| 6347 | EOF | 
|---|
| 6348 | cat >> $CONFIG_STATUS <<EOF | 
|---|
| 6349 |  | 
|---|
| 6350 | # Protect against being on the right side of a sed subst in config.status. | 
|---|
| 6351 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | 
|---|
| 6352 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | 
|---|
| 6353 | $ac_vpsub | 
|---|
| 6354 | $extrasub | 
|---|
| 6355 | s,\([^a-zA-Z0-9:]\)/bin/sh\(.exe\),\1${CONFIG_SHELL-/bin/sh}\2,g | 
|---|
| 6356 | s%@SHELL@%$SHELL%g | 
|---|
| 6357 | s%@CFLAGS@%$CFLAGS%g | 
|---|
| 6358 | s%@CPPFLAGS@%$CPPFLAGS%g | 
|---|
| 6359 | s%@CXXFLAGS@%$CXXFLAGS%g | 
|---|
| 6360 | s%@FFLAGS@%$FFLAGS%g | 
|---|
| 6361 | s%@DEFS@%$DEFS%g | 
|---|
| 6362 | s%@LDFLAGS@%$LDFLAGS%g | 
|---|
| 6363 | s%@LIBS@%$LIBS%g | 
|---|
| 6364 | s%@exec_prefix@%$exec_prefix%g | 
|---|
| 6365 | s%@prefix@%$prefix%g | 
|---|
| 6366 | s%@program_transform_name@%$program_transform_name%g | 
|---|
| 6367 | s%@bindir@%$bindir%g | 
|---|
| 6368 | s%@sbindir@%$sbindir%g | 
|---|
| 6369 | s%@libexecdir@%$libexecdir%g | 
|---|
| 6370 | s%@datadir@%$datadir%g | 
|---|
| 6371 | s%@sysconfdir@%$sysconfdir%g | 
|---|
| 6372 | s%@sharedstatedir@%$sharedstatedir%g | 
|---|
| 6373 | s%@localstatedir@%$localstatedir%g | 
|---|
| 6374 | s%@libdir@%$libdir%g | 
|---|
| 6375 | s%@includedir@%$includedir%g | 
|---|
| 6376 | s%@oldincludedir@%$oldincludedir%g | 
|---|
| 6377 | s%@infodir@%$infodir%g | 
|---|
| 6378 | s%@mandir@%$mandir%g | 
|---|
| 6379 | s%@PATH_IFS@%$PATH_IFS%g | 
|---|
| 6380 | s%@EXEEXT@%$EXEEXT%g | 
|---|
| 6381 | s%@host@%$host%g | 
|---|
| 6382 | s%@host_alias@%$host_alias%g | 
|---|
| 6383 | s%@host_cpu@%$host_cpu%g | 
|---|
| 6384 | s%@host_vendor@%$host_vendor%g | 
|---|
| 6385 | s%@host_os@%$host_os%g | 
|---|
| 6386 | s%@target@%$target%g | 
|---|
| 6387 | s%@target_alias@%$target_alias%g | 
|---|
| 6388 | s%@target_cpu@%$target_cpu%g | 
|---|
| 6389 | s%@target_vendor@%$target_vendor%g | 
|---|
| 6390 | s%@target_os@%$target_os%g | 
|---|
| 6391 | s%@build@%$build%g | 
|---|
| 6392 | s%@build_alias@%$build_alias%g | 
|---|
| 6393 | s%@build_cpu@%$build_cpu%g | 
|---|
| 6394 | s%@build_vendor@%$build_vendor%g | 
|---|
| 6395 | s%@build_os@%$build_os%g | 
|---|
| 6396 | s%@CC@%$CC%g | 
|---|
| 6397 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | 
|---|
| 6398 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | 
|---|
| 6399 | s%@INSTALL_DATA@%$INSTALL_DATA%g | 
|---|
| 6400 | s%@PACKAGE@%$PACKAGE%g | 
|---|
| 6401 | s%@VERSION@%$VERSION%g | 
|---|
| 6402 | s%@ACLOCAL@%$ACLOCAL%g | 
|---|
| 6403 | s%@AUTOCONF@%$AUTOCONF%g | 
|---|
| 6404 | s%@AUTOMAKE@%$AUTOMAKE%g | 
|---|
| 6405 | s%@AUTOHEADER@%$AUTOHEADER%g | 
|---|
| 6406 | s%@MAKEINFO@%$MAKEINFO%g | 
|---|
| 6407 | s%@SET_MAKE@%$SET_MAKE%g | 
|---|
| 6408 | s%@LN_S@%$LN_S%g | 
|---|
| 6409 | s%@OBJEXT@%$OBJEXT%g | 
|---|
| 6410 | s%@RANLIB@%$RANLIB%g | 
|---|
| 6411 | s%@STRIP@%$STRIP%g | 
|---|
| 6412 | s%@LIBTOOL@%$LIBTOOL%g | 
|---|
| 6413 | s%@WARN_CFLAGS@%$WARN_CFLAGS%g | 
|---|
| 6414 | s%@GDBINIT@%$GDBINIT%g | 
|---|
| 6415 | s%@cgen_cpu_prefix@%$cgen_cpu_prefix%g | 
|---|
| 6416 | s%@extra_objects@%$extra_objects%g | 
|---|
| 6417 | s%@target_cpu_type@%$target_cpu_type%g | 
|---|
| 6418 | s%@obj_format@%$obj_format%g | 
|---|
| 6419 | s%@te_file@%$te_file%g | 
|---|
| 6420 | s%@install_tooldir@%$install_tooldir%g | 
|---|
| 6421 | s%@atof@%$atof%g | 
|---|
| 6422 | s%@BFDLIB@%$BFDLIB%g | 
|---|
| 6423 | s%@OPCODES_LIB@%$OPCODES_LIB%g | 
|---|
| 6424 | s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g | 
|---|
| 6425 | s%@YACC@%$YACC%g | 
|---|
| 6426 | s%@LEX@%$LEX%g | 
|---|
| 6427 | s%@LEXLIB@%$LEXLIB%g | 
|---|
| 6428 | s%@CPP@%$CPP%g | 
|---|
| 6429 | s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g | 
|---|
| 6430 | s%@ALLOCA@%$ALLOCA%g | 
|---|
| 6431 | s%@USE_NLS@%$USE_NLS%g | 
|---|
| 6432 | s%@MSGFMT@%$MSGFMT%g | 
|---|
| 6433 | s%@GMSGFMT@%$GMSGFMT%g | 
|---|
| 6434 | s%@XGETTEXT@%$XGETTEXT%g | 
|---|
| 6435 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g | 
|---|
| 6436 | s%@CATALOGS@%$CATALOGS%g | 
|---|
| 6437 | s%@CATOBJEXT@%$CATOBJEXT%g | 
|---|
| 6438 | s%@DATADIRNAME@%$DATADIRNAME%g | 
|---|
| 6439 | s%@GMOFILES@%$GMOFILES%g | 
|---|
| 6440 | s%@INSTOBJEXT@%$INSTOBJEXT%g | 
|---|
| 6441 | s%@INTLDEPS@%$INTLDEPS%g | 
|---|
| 6442 | s%@INTLLIBS@%$INTLLIBS%g | 
|---|
| 6443 | s%@INTLOBJS@%$INTLOBJS%g | 
|---|
| 6444 | s%@POFILES@%$POFILES%g | 
|---|
| 6445 | s%@POSUB@%$POSUB%g | 
|---|
| 6446 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g | 
|---|
| 6447 | s%@GT_NO@%$GT_NO%g | 
|---|
| 6448 | s%@GT_YES@%$GT_YES%g | 
|---|
| 6449 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g | 
|---|
| 6450 | s%@l@%$l%g | 
|---|
| 6451 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g | 
|---|
| 6452 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g | 
|---|
| 6453 | s%@MAINT@%$MAINT%g | 
|---|
| 6454 | s%@LIBM@%$LIBM%g | 
|---|
| 6455 |  | 
|---|
| 6456 | CEOF | 
|---|
| 6457 | EOF | 
|---|
| 6458 |  | 
|---|
| 6459 | cat >> $CONFIG_STATUS <<\EOF | 
|---|
| 6460 |  | 
|---|
| 6461 | # Split the substitutions into bite-sized pieces for seds with | 
|---|
| 6462 | # small command number limits, like on Digital OSF/1 and HP-UX. | 
|---|
| 6463 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | 
|---|
| 6464 | ac_file=1 # Number of current file. | 
|---|
| 6465 | ac_beg=1 # First line for current file. | 
|---|
| 6466 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | 
|---|
| 6467 | ac_more_lines=: | 
|---|
| 6468 | ac_sed_cmds="" | 
|---|
| 6469 | while $ac_more_lines; do | 
|---|
| 6470 | if test $ac_beg -gt 1; then | 
|---|
| 6471 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | 
|---|
| 6472 | else | 
|---|
| 6473 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | 
|---|
| 6474 | fi | 
|---|
| 6475 | if test ! -s conftest.s$ac_file; then | 
|---|
| 6476 | ac_more_lines=false | 
|---|
| 6477 | rm -f conftest.s$ac_file | 
|---|
| 6478 | else | 
|---|
| 6479 | if test -z "$ac_sed_cmds"; then | 
|---|
| 6480 | ac_sed_cmds="sed -f conftest.s$ac_file" | 
|---|
| 6481 | else | 
|---|
| 6482 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | 
|---|
| 6483 | fi | 
|---|
| 6484 | ac_file=`expr $ac_file + 1` | 
|---|
| 6485 | ac_beg=$ac_end | 
|---|
| 6486 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | 
|---|
| 6487 | fi | 
|---|
| 6488 | done | 
|---|
| 6489 | if test -z "$ac_sed_cmds"; then | 
|---|
| 6490 | ac_sed_cmds=cat | 
|---|
| 6491 | fi | 
|---|
| 6492 | EOF | 
|---|
| 6493 |  | 
|---|
| 6494 | cat >> $CONFIG_STATUS <<EOF | 
|---|
| 6495 |  | 
|---|
| 6496 | CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile ${GDBINIT}:gdbinit.in po/Makefile.in:po/Make-in"} | 
|---|
| 6497 | EOF | 
|---|
| 6498 | cat >> $CONFIG_STATUS <<\EOF | 
|---|
| 6499 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | 
|---|
| 6500 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 
|---|
| 6501 | case "$ac_file" in | 
|---|
| 6502 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | 
|---|
| 6503 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | 
|---|
| 6504 | *) ac_file_in="${ac_file}.in" ;; | 
|---|
| 6505 | esac | 
|---|
| 6506 |  | 
|---|
| 6507 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | 
|---|
| 6508 |  | 
|---|
| 6509 | # Remove last slash and all that follows it.  Not all systems have dirname. | 
|---|
| 6510 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | 
|---|
| 6511 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | 
|---|
| 6512 | # The file is in a subdirectory. | 
|---|
| 6513 | test ! -d "$ac_dir" && mkdir "$ac_dir" | 
|---|
| 6514 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | 
|---|
| 6515 | # A "../" for each directory in $ac_dir_suffix. | 
|---|
| 6516 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | 
|---|
| 6517 | else | 
|---|
| 6518 | ac_dir_suffix= ac_dots= | 
|---|
| 6519 | fi | 
|---|
| 6520 |  | 
|---|
| 6521 | case "$ac_given_srcdir" in | 
|---|
| 6522 | .)  srcdir=. | 
|---|
| 6523 | if test -z "$ac_dots"; then top_srcdir=. | 
|---|
| 6524 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | 
|---|
| 6525 | /* | [A-Za-z]:*) | 
|---|
| 6526 | srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | 
|---|
| 6527 | *) # Relative path. | 
|---|
| 6528 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | 
|---|
| 6529 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | 
|---|
| 6530 | esac | 
|---|
| 6531 |  | 
|---|
| 6532 | case "$ac_given_INSTALL" in | 
|---|
| 6533 | [/$]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;; | 
|---|
| 6534 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | 
|---|
| 6535 | esac | 
|---|
| 6536 |  | 
|---|
| 6537 | echo creating "$ac_file" | 
|---|
| 6538 | rm -f "$ac_file" | 
|---|
| 6539 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | 
|---|
| 6540 | case "$ac_file" in | 
|---|
| 6541 | *Makefile*) ac_comsub="1i\\ | 
|---|
| 6542 | # $configure_input" ;; | 
|---|
| 6543 | *) ac_comsub= ;; | 
|---|
| 6544 | esac | 
|---|
| 6545 |  | 
|---|
| 6546 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%$PATHIFS% $ac_given_srcdir/%g"` | 
|---|
| 6547 | sed -e "$ac_comsub | 
|---|
| 6548 | s%@configure_input@%$configure_input%g | 
|---|
| 6549 | s%@srcdir@%$srcdir%g | 
|---|
| 6550 | s%@top_srcdir@%$top_srcdir%g | 
|---|
| 6551 | s%@INSTALL@%$INSTALL%g | 
|---|
| 6552 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | 
|---|
| 6553 | fi; done | 
|---|
| 6554 | rm -f conftest.s* | 
|---|
| 6555 |  | 
|---|
| 6556 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | 
|---|
| 6557 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | 
|---|
| 6558 | # | 
|---|
| 6559 | # ac_d sets the value in "#define NAME VALUE" lines. | 
|---|
| 6560 | ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)' | 
|---|
| 6561 | ac_dB='\([      ][      ]*\)[^  ]*%\1#\2' | 
|---|
| 6562 | ac_dC='\3' | 
|---|
| 6563 | ac_dD='%g' | 
|---|
| 6564 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | 
|---|
| 6565 | ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)' | 
|---|
| 6566 | ac_uB='\([      ]\)%\1#\2define\3' | 
|---|
| 6567 | ac_uC=' ' | 
|---|
| 6568 | ac_uD='\4%g' | 
|---|
| 6569 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | 
|---|
| 6570 | ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)' | 
|---|
| 6571 | ac_eB='$%\1#\2define\3' | 
|---|
| 6572 | ac_eC=' ' | 
|---|
| 6573 | ac_eD='%g' | 
|---|
| 6574 |  | 
|---|
| 6575 | if test "${CONFIG_HEADERS+set}" != set; then | 
|---|
| 6576 | EOF | 
|---|
| 6577 | cat >> $CONFIG_STATUS <<EOF | 
|---|
| 6578 | CONFIG_HEADERS="config.h:config.in" | 
|---|
| 6579 | EOF | 
|---|
| 6580 | cat >> $CONFIG_STATUS <<\EOF | 
|---|
| 6581 | fi | 
|---|
| 6582 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | 
|---|
| 6583 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 
|---|
| 6584 | case "$ac_file" in | 
|---|
| 6585 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | 
|---|
| 6586 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | 
|---|
| 6587 | *) ac_file_in="${ac_file}.in" ;; | 
|---|
| 6588 | esac | 
|---|
| 6589 |  | 
|---|
| 6590 | echo creating $ac_file | 
|---|
| 6591 |  | 
|---|
| 6592 | rm -f conftest.frag conftest.in conftest.out | 
|---|
| 6593 | # kso the other way around might work better with drive letters and such. | 
|---|
| 6594 | #  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | 
|---|
| 6595 | ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%" ` | 
|---|
| 6596 | cat $ac_file_inputs > conftest.in | 
|---|
| 6597 |  | 
|---|
| 6598 | EOF | 
|---|
| 6599 |  | 
|---|
| 6600 | # Transform confdefs.h into a sed script conftest.vals that substitutes | 
|---|
| 6601 | # the proper values into config.h.in to produce config.h.  And first: | 
|---|
| 6602 | # Protect against being on the right side of a sed subst in config.status. | 
|---|
| 6603 | # Protect against being in an unquoted here document in config.status. | 
|---|
| 6604 | rm -f conftest.vals | 
|---|
| 6605 | cat > conftest.hdr <<\EOF | 
|---|
| 6606 | s/[\\&%]/\\&/g | 
|---|
| 6607 | s%[\\$`]%\\&%g | 
|---|
| 6608 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | 
|---|
| 6609 | s%ac_d%ac_u%gp | 
|---|
| 6610 | s%ac_u%ac_e%gp | 
|---|
| 6611 | EOF | 
|---|
| 6612 | sed -n -f conftest.hdr confdefs.h > conftest.vals | 
|---|
| 6613 | rm -f conftest.hdr | 
|---|
| 6614 |  | 
|---|
| 6615 | # This sed command replaces #undef with comments.  This is necessary, for | 
|---|
| 6616 | # example, in the case of _POSIX_SOURCE, which is predefined and required | 
|---|
| 6617 | # on some systems where configure will not decide to define it. | 
|---|
| 6618 | cat >> conftest.vals <<\EOF | 
|---|
| 6619 | s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | 
|---|
| 6620 | EOF | 
|---|
| 6621 |  | 
|---|
| 6622 | # Break up conftest.vals because some shells have a limit on | 
|---|
| 6623 | # the size of here documents, and old seds have small limits too. | 
|---|
| 6624 |  | 
|---|
| 6625 | rm -f conftest.tail | 
|---|
| 6626 | while : | 
|---|
| 6627 | do | 
|---|
| 6628 | ac_lines=`grep -c . conftest.vals` | 
|---|
| 6629 | # grep -c gives empty output for an empty file on some AIX systems. | 
|---|
| 6630 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | 
|---|
| 6631 | # Write a limited-size here document to conftest.frag. | 
|---|
| 6632 | echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | 
|---|
| 6633 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | 
|---|
| 6634 | echo 'CEOF | 
|---|
| 6635 | sed -f conftest.frag conftest.in > conftest.out | 
|---|
| 6636 | rm -f conftest.in | 
|---|
| 6637 | mv conftest.out conftest.in | 
|---|
| 6638 | ' >> $CONFIG_STATUS | 
|---|
| 6639 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | 
|---|
| 6640 | rm -f conftest.vals | 
|---|
| 6641 | mv conftest.tail conftest.vals | 
|---|
| 6642 | done | 
|---|
| 6643 | rm -f conftest.vals | 
|---|
| 6644 |  | 
|---|
| 6645 | cat >> $CONFIG_STATUS <<\EOF | 
|---|
| 6646 | rm -f conftest.frag conftest.h | 
|---|
| 6647 | echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h | 
|---|
| 6648 | cat conftest.in >> conftest.h | 
|---|
| 6649 | rm -f conftest.in | 
|---|
| 6650 | if cmp -s $ac_file conftest.h 2>/dev/null; then | 
|---|
| 6651 | echo "$ac_file is unchanged" | 
|---|
| 6652 | rm -f conftest.h | 
|---|
| 6653 | else | 
|---|
| 6654 | # Remove last slash and all that follows it.  Not all systems have dirname. | 
|---|
| 6655 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | 
|---|
| 6656 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | 
|---|
| 6657 | # The file is in a subdirectory. | 
|---|
| 6658 | test ! -d "$ac_dir" && mkdir "$ac_dir" | 
|---|
| 6659 | fi | 
|---|
| 6660 | rm -f $ac_file | 
|---|
| 6661 | mv conftest.h $ac_file | 
|---|
| 6662 | fi | 
|---|
| 6663 | fi; done | 
|---|
| 6664 |  | 
|---|
| 6665 | EOF | 
|---|
| 6666 | cat >> $CONFIG_STATUS <<EOF | 
|---|
| 6667 |  | 
|---|
| 6668 | target_cpu_type=${target_cpu_type} | 
|---|
| 6669 | cgen_cpu_prefix=${cgen_cpu_prefix} | 
|---|
| 6670 | obj_format=${obj_format} | 
|---|
| 6671 | te_file=${te_file} | 
|---|
| 6672 | EOF | 
|---|
| 6673 | cat >> $CONFIG_STATUS <<\EOF | 
|---|
| 6674 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h | 
|---|
| 6675 | rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h | 
|---|
| 6676 | echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h | 
|---|
| 6677 | echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h | 
|---|
| 6678 | echo '#include "te-'"${te_file}"'.h"' > targ-env.h | 
|---|
| 6679 | echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h | 
|---|
| 6680 | if test "x$cgen_cpu_prefix" != x ; then | 
|---|
| 6681 | echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h | 
|---|
| 6682 | fi | 
|---|
| 6683 |  | 
|---|
| 6684 | sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile | 
|---|
| 6685 | exit 0 | 
|---|
| 6686 | EOF | 
|---|
| 6687 | chmod +x $CONFIG_STATUS | 
|---|
| 6688 | rm -fr confdefs* $ac_clean_files | 
|---|
| 6689 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | 
|---|
| 6690 |  | 
|---|