| 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 | am__api_version="1.4" | 
|---|
| 1061 | # Find a good install program.  We prefer a C program (faster), | 
|---|
| 1062 | # so one script is as good as another.  But avoid the broken or | 
|---|
| 1063 | # incompatible versions: | 
|---|
| 1064 | # SysV /etc/install, /usr/sbin/install | 
|---|
| 1065 | # SunOS /usr/etc/install | 
|---|
| 1066 | # IRIX /sbin/install | 
|---|
| 1067 | # AIX /bin/install | 
|---|
| 1068 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
|---|
| 1069 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
|---|
| 1070 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
|---|
| 1071 | # ./install, which can be erroneously created by make from ./install.sh. | 
|---|
| 1072 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | 
|---|
| 1073 | echo "configure:1074: checking for a BSD compatible install" >&5 | 
|---|
| 1074 | if test -z "$INSTALL"; then | 
|---|
| 1075 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | 
|---|
| 1076 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1077 | else | 
|---|
| 1078 | IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS" | 
|---|
| 1079 | for ac_dir in $PATH; do | 
|---|
| 1080 | # Account for people who put trailing slashes in PATH elements. | 
|---|
| 1081 | case "$ac_dir/" in | 
|---|
| 1082 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | 
|---|
| 1083 | # We reject the install program from OS/2 or W3.1 | 
|---|
| 1084 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;; | 
|---|
| 1085 | *) | 
|---|
| 1086 | # OSF1 and SCO ODT 3.0 have their own names for install. | 
|---|
| 1087 | # Don't use installbsd from OSF since it installs stuff as root | 
|---|
| 1088 | # by default. | 
|---|
| 1089 | for ac_prog in ginstall scoinst install; do | 
|---|
| 1090 | if test -f $ac_dir/$ac_prog$ac_exeext; then | 
|---|
| 1091 | if test $ac_prog = install && | 
|---|
| 1092 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | 
|---|
| 1093 | # AIX install.  It has an incompatible calling convention. | 
|---|
| 1094 | : | 
|---|
| 1095 | else | 
|---|
| 1096 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c" | 
|---|
| 1097 | break 2 | 
|---|
| 1098 | fi | 
|---|
| 1099 | fi | 
|---|
| 1100 | done | 
|---|
| 1101 | ;; | 
|---|
| 1102 | esac | 
|---|
| 1103 | done | 
|---|
| 1104 | IFS="$ac_save_IFS" | 
|---|
| 1105 |  | 
|---|
| 1106 | fi | 
|---|
| 1107 | if test "${ac_cv_path_install+set}" = set; then | 
|---|
| 1108 | INSTALL="$ac_cv_path_install" | 
|---|
| 1109 | else | 
|---|
| 1110 | # As a last resort, use the slow shell script.  We don't cache a | 
|---|
| 1111 | # path for INSTALL within a source directory, because that will | 
|---|
| 1112 | # break other packages using the cache if that directory is | 
|---|
| 1113 | # removed, or if the path is relative. | 
|---|
| 1114 | INSTALL="$ac_install_sh" | 
|---|
| 1115 | fi | 
|---|
| 1116 | fi | 
|---|
| 1117 | echo "$ac_t""$INSTALL" 1>&6 | 
|---|
| 1118 |  | 
|---|
| 1119 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
|---|
| 1120 | # It thinks the first close brace ends the variable substitution. | 
|---|
| 1121 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
|---|
| 1122 |  | 
|---|
| 1123 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | 
|---|
| 1124 |  | 
|---|
| 1125 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
|---|
| 1126 |  | 
|---|
| 1127 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 | 
|---|
| 1128 | echo "configure:1129: checking whether build environment is sane" >&5 | 
|---|
| 1129 | # Just in case | 
|---|
| 1130 | sleep 1 | 
|---|
| 1131 | echo timestamp > conftestfile | 
|---|
| 1132 | # Do `set' in a subshell so we don't clobber the current shell's | 
|---|
| 1133 | # arguments.  Must try -L first in case configure is actually a | 
|---|
| 1134 | # symlink; some systems play weird games with the mod time of symlinks | 
|---|
| 1135 | # (eg FreeBSD returns the mod time of the symlink's containing | 
|---|
| 1136 | # directory). | 
|---|
| 1137 | if ( | 
|---|
| 1138 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` | 
|---|
| 1139 | if test "$*" = "X"; then | 
|---|
| 1140 | # -L didn't work. | 
|---|
| 1141 | set X `ls -t $srcdir/configure conftestfile` | 
|---|
| 1142 | fi | 
|---|
| 1143 | if test "$*" != "X $srcdir/configure conftestfile" \ | 
|---|
| 1144 | && test "$*" != "X conftestfile $srcdir/configure"; then | 
|---|
| 1145 |  | 
|---|
| 1146 | # If neither matched, then we have a broken ls.  This can happen | 
|---|
| 1147 | # if, for instance, CONFIG_SHELL is bash and it inherits a | 
|---|
| 1148 | # broken ls alias from the environment.  This has actually | 
|---|
| 1149 | # happened.  Such a system could not be considered "sane". | 
|---|
| 1150 | { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken | 
|---|
| 1151 | alias in your environment" 1>&2; exit 1; } | 
|---|
| 1152 | fi | 
|---|
| 1153 |  | 
|---|
| 1154 | test "$2" = conftestfile | 
|---|
| 1155 | ) | 
|---|
| 1156 | then | 
|---|
| 1157 | # Ok. | 
|---|
| 1158 | : | 
|---|
| 1159 | else | 
|---|
| 1160 | { echo "configure: error: newly created file is older than distributed files! | 
|---|
| 1161 | Check your system clock" 1>&2; exit 1; } | 
|---|
| 1162 | fi | 
|---|
| 1163 | rm -f conftest* | 
|---|
| 1164 | echo "$ac_t""yes" 1>&6 | 
|---|
| 1165 | if test "$program_transform_name" = s,x,x,; then | 
|---|
| 1166 | program_transform_name= | 
|---|
| 1167 | else | 
|---|
| 1168 | # Double any \ or $.  echo might interpret backslashes. | 
|---|
| 1169 | cat <<\EOF_SED > conftestsed | 
|---|
| 1170 | s,\\,\\\\,g; s,\$,$$,g | 
|---|
| 1171 | EOF_SED | 
|---|
| 1172 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" | 
|---|
| 1173 | rm -f conftestsed | 
|---|
| 1174 | fi | 
|---|
| 1175 | test "$program_prefix" != NONE && | 
|---|
| 1176 | program_transform_name="s,^,${program_prefix},; $program_transform_name" | 
|---|
| 1177 | # Use a double $ so make ignores it. | 
|---|
| 1178 | test "$program_suffix" != NONE && | 
|---|
| 1179 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" | 
|---|
| 1180 |  | 
|---|
| 1181 | # sed with no file args requires a program. | 
|---|
| 1182 | test "$program_transform_name" = "" && program_transform_name="s,x,x," | 
|---|
| 1183 |  | 
|---|
| 1184 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | 
|---|
| 1185 | echo "configure:1186: checking whether ${MAKE-make} sets \${MAKE}" >&5 | 
|---|
| 1186 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | 
|---|
| 1187 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | 
|---|
| 1188 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1189 | else | 
|---|
| 1190 | cat > conftestmake <<\EOF | 
|---|
| 1191 | all: | 
|---|
| 1192 | @echo 'ac_maketemp="${MAKE}"' | 
|---|
| 1193 | EOF | 
|---|
| 1194 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | 
|---|
| 1195 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | 
|---|
| 1196 | if test -n "$ac_maketemp"; then | 
|---|
| 1197 | eval ac_cv_prog_make_${ac_make}_set=yes | 
|---|
| 1198 | else | 
|---|
| 1199 | eval ac_cv_prog_make_${ac_make}_set=no | 
|---|
| 1200 | fi | 
|---|
| 1201 | rm -f conftestmake | 
|---|
| 1202 | fi | 
|---|
| 1203 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | 
|---|
| 1204 | echo "$ac_t""yes" 1>&6 | 
|---|
| 1205 | SET_MAKE= | 
|---|
| 1206 | else | 
|---|
| 1207 | echo "$ac_t""no" 1>&6 | 
|---|
| 1208 | SET_MAKE="MAKE=${MAKE-make}" | 
|---|
| 1209 | fi | 
|---|
| 1210 |  | 
|---|
| 1211 |  | 
|---|
| 1212 | PACKAGE=gas | 
|---|
| 1213 |  | 
|---|
| 1214 | VERSION=${BFD_VERSION} | 
|---|
| 1215 |  | 
|---|
| 1216 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then | 
|---|
| 1217 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } | 
|---|
| 1218 | fi | 
|---|
| 1219 | cat >> confdefs.h <<EOF | 
|---|
| 1220 | #define PACKAGE "$PACKAGE" | 
|---|
| 1221 | EOF | 
|---|
| 1222 |  | 
|---|
| 1223 | cat >> confdefs.h <<EOF | 
|---|
| 1224 | #define VERSION "$VERSION" | 
|---|
| 1225 | EOF | 
|---|
| 1226 |  | 
|---|
| 1227 |  | 
|---|
| 1228 |  | 
|---|
| 1229 | missing_dir=`cd $ac_aux_dir && pwd` | 
|---|
| 1230 | echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6 | 
|---|
| 1231 | echo "configure:1232: checking for working aclocal-${am__api_version}" >&5 | 
|---|
| 1232 | # Run test in a subshell; some versions of sh will print an error if | 
|---|
| 1233 | # an executable is not found, even if stderr is redirected. | 
|---|
| 1234 | # Redirect stdin to placate older versions of autoconf.  Sigh. | 
|---|
| 1235 | if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then | 
|---|
| 1236 | ACLOCAL=aclocal-${am__api_version} | 
|---|
| 1237 | echo "$ac_t""found" 1>&6 | 
|---|
| 1238 | else | 
|---|
| 1239 | ACLOCAL="$missing_dir/missing aclocal-${am__api_version}" | 
|---|
| 1240 | echo "$ac_t""missing" 1>&6 | 
|---|
| 1241 | fi | 
|---|
| 1242 |  | 
|---|
| 1243 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 | 
|---|
| 1244 | echo "configure:1245: checking for working autoconf" >&5 | 
|---|
| 1245 | # Run test in a subshell; some versions of sh will print an error if | 
|---|
| 1246 | # an executable is not found, even if stderr is redirected. | 
|---|
| 1247 | # Redirect stdin to placate older versions of autoconf.  Sigh. | 
|---|
| 1248 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then | 
|---|
| 1249 | AUTOCONF=autoconf | 
|---|
| 1250 | echo "$ac_t""found" 1>&6 | 
|---|
| 1251 | else | 
|---|
| 1252 | AUTOCONF="$missing_dir/missing autoconf" | 
|---|
| 1253 | echo "$ac_t""missing" 1>&6 | 
|---|
| 1254 | fi | 
|---|
| 1255 |  | 
|---|
| 1256 | echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6 | 
|---|
| 1257 | echo "configure:1258: checking for working automake-${am__api_version}" >&5 | 
|---|
| 1258 | # Run test in a subshell; some versions of sh will print an error if | 
|---|
| 1259 | # an executable is not found, even if stderr is redirected. | 
|---|
| 1260 | # Redirect stdin to placate older versions of autoconf.  Sigh. | 
|---|
| 1261 | if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then | 
|---|
| 1262 | AUTOMAKE=automake-${am__api_version} | 
|---|
| 1263 | echo "$ac_t""found" 1>&6 | 
|---|
| 1264 | else | 
|---|
| 1265 | AUTOMAKE="$missing_dir/missing automake-${am__api_version}" | 
|---|
| 1266 | echo "$ac_t""missing" 1>&6 | 
|---|
| 1267 | fi | 
|---|
| 1268 |  | 
|---|
| 1269 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 | 
|---|
| 1270 | echo "configure:1271: checking for working autoheader" >&5 | 
|---|
| 1271 | # Run test in a subshell; some versions of sh will print an error if | 
|---|
| 1272 | # an executable is not found, even if stderr is redirected. | 
|---|
| 1273 | # Redirect stdin to placate older versions of autoconf.  Sigh. | 
|---|
| 1274 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then | 
|---|
| 1275 | AUTOHEADER=autoheader | 
|---|
| 1276 | echo "$ac_t""found" 1>&6 | 
|---|
| 1277 | else | 
|---|
| 1278 | AUTOHEADER="$missing_dir/missing autoheader" | 
|---|
| 1279 | echo "$ac_t""missing" 1>&6 | 
|---|
| 1280 | fi | 
|---|
| 1281 |  | 
|---|
| 1282 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 | 
|---|
| 1283 | echo "configure:1284: checking for working makeinfo" >&5 | 
|---|
| 1284 | # Run test in a subshell; some versions of sh will print an error if | 
|---|
| 1285 | # an executable is not found, even if stderr is redirected. | 
|---|
| 1286 | # Redirect stdin to placate older versions of autoconf.  Sigh. | 
|---|
| 1287 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then | 
|---|
| 1288 | MAKEINFO=makeinfo | 
|---|
| 1289 | echo "$ac_t""found" 1>&6 | 
|---|
| 1290 | else | 
|---|
| 1291 | MAKEINFO="$missing_dir/missing makeinfo" | 
|---|
| 1292 | echo "$ac_t""missing" 1>&6 | 
|---|
| 1293 | fi | 
|---|
| 1294 |  | 
|---|
| 1295 |  | 
|---|
| 1296 |  | 
|---|
| 1297 | # Check whether --enable-shared or --disable-shared was given. | 
|---|
| 1298 | if test "${enable_shared+set}" = set; then | 
|---|
| 1299 | enableval="$enable_shared" | 
|---|
| 1300 | p=${PACKAGE-default} | 
|---|
| 1301 | case $enableval in | 
|---|
| 1302 | yes) enable_shared=yes ;; | 
|---|
| 1303 | no) enable_shared=no ;; | 
|---|
| 1304 | *) | 
|---|
| 1305 | enable_shared=no | 
|---|
| 1306 | # Look at the argument we got.  We use all the common list separators. | 
|---|
| 1307 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | 
|---|
| 1308 | for pkg in $enableval; do | 
|---|
| 1309 | if test "X$pkg" = "X$p"; then | 
|---|
| 1310 | enable_shared=yes | 
|---|
| 1311 | fi | 
|---|
| 1312 | done | 
|---|
| 1313 | IFS="$ac_save_ifs" | 
|---|
| 1314 | ;; | 
|---|
| 1315 | esac | 
|---|
| 1316 | else | 
|---|
| 1317 | enable_shared=yes | 
|---|
| 1318 | fi | 
|---|
| 1319 |  | 
|---|
| 1320 | # Check whether --enable-static or --disable-static was given. | 
|---|
| 1321 | if test "${enable_static+set}" = set; then | 
|---|
| 1322 | enableval="$enable_static" | 
|---|
| 1323 | p=${PACKAGE-default} | 
|---|
| 1324 | case $enableval in | 
|---|
| 1325 | yes) enable_static=yes ;; | 
|---|
| 1326 | no) enable_static=no ;; | 
|---|
| 1327 | *) | 
|---|
| 1328 | enable_static=no | 
|---|
| 1329 | # Look at the argument we got.  We use all the common list separators. | 
|---|
| 1330 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | 
|---|
| 1331 | for pkg in $enableval; do | 
|---|
| 1332 | if test "X$pkg" = "X$p"; then | 
|---|
| 1333 | enable_static=yes | 
|---|
| 1334 | fi | 
|---|
| 1335 | done | 
|---|
| 1336 | IFS="$ac_save_ifs" | 
|---|
| 1337 | ;; | 
|---|
| 1338 | esac | 
|---|
| 1339 | else | 
|---|
| 1340 | enable_static=yes | 
|---|
| 1341 | fi | 
|---|
| 1342 |  | 
|---|
| 1343 | # Check whether --enable-fast-install or --disable-fast-install was given. | 
|---|
| 1344 | if test "${enable_fast_install+set}" = set; then | 
|---|
| 1345 | enableval="$enable_fast_install" | 
|---|
| 1346 | p=${PACKAGE-default} | 
|---|
| 1347 | case $enableval in | 
|---|
| 1348 | yes) enable_fast_install=yes ;; | 
|---|
| 1349 | no) enable_fast_install=no ;; | 
|---|
| 1350 | *) | 
|---|
| 1351 | enable_fast_install=no | 
|---|
| 1352 | # Look at the argument we got.  We use all the common list separators. | 
|---|
| 1353 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | 
|---|
| 1354 | for pkg in $enableval; do | 
|---|
| 1355 | if test "X$pkg" = "X$p"; then | 
|---|
| 1356 | enable_fast_install=yes | 
|---|
| 1357 | fi | 
|---|
| 1358 | done | 
|---|
| 1359 | IFS="$ac_save_ifs" | 
|---|
| 1360 | ;; | 
|---|
| 1361 | esac | 
|---|
| 1362 | else | 
|---|
| 1363 | enable_fast_install=yes | 
|---|
| 1364 | fi | 
|---|
| 1365 |  | 
|---|
| 1366 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | 
|---|
| 1367 | if test "${with_gnu_ld+set}" = set; then | 
|---|
| 1368 | withval="$with_gnu_ld" | 
|---|
| 1369 | test "$withval" = no || with_gnu_ld=yes | 
|---|
| 1370 | else | 
|---|
| 1371 | with_gnu_ld=no | 
|---|
| 1372 | fi | 
|---|
| 1373 |  | 
|---|
| 1374 | ac_prog=ld | 
|---|
| 1375 | if test "$GCC" = yes; then | 
|---|
| 1376 | # Check if gcc -print-prog-name=ld gives a path. | 
|---|
| 1377 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 | 
|---|
| 1378 | echo "configure:1379: checking for ld used by GCC" >&5 | 
|---|
| 1379 | case $host in | 
|---|
| 1380 | *-*-mingw*) | 
|---|
| 1381 | # gcc leaves a trailing carriage return which upsets mingw | 
|---|
| 1382 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | 
|---|
| 1383 | *) | 
|---|
| 1384 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | 
|---|
| 1385 | esac | 
|---|
| 1386 | case $ac_prog in | 
|---|
| 1387 | # Accept absolute paths. | 
|---|
| 1388 | [\\/]* | [A-Za-z]:[\\/]*) | 
|---|
| 1389 | re_direlt='/[^/][^/]*/\.\./' | 
|---|
| 1390 | # Canonicalize the path of ld | 
|---|
| 1391 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | 
|---|
| 1392 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | 
|---|
| 1393 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | 
|---|
| 1394 | done | 
|---|
| 1395 | test -z "$LD" && LD="$ac_prog" | 
|---|
| 1396 | ;; | 
|---|
| 1397 | "") | 
|---|
| 1398 | # If it fails, then pretend we aren't using GCC. | 
|---|
| 1399 | ac_prog=ld | 
|---|
| 1400 | ;; | 
|---|
| 1401 | *) | 
|---|
| 1402 | # If it is relative, then search for the first ld in PATH. | 
|---|
| 1403 | with_gnu_ld=unknown | 
|---|
| 1404 | ;; | 
|---|
| 1405 | esac | 
|---|
| 1406 | elif test "$with_gnu_ld" = yes; then | 
|---|
| 1407 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 | 
|---|
| 1408 | echo "configure:1409: checking for GNU ld" >&5 | 
|---|
| 1409 | else | 
|---|
| 1410 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 | 
|---|
| 1411 | echo "configure:1412: checking for non-GNU ld" >&5 | 
|---|
| 1412 | fi | 
|---|
| 1413 | if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then | 
|---|
| 1414 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1415 | else | 
|---|
| 1416 | if test -z "$LD"; then | 
|---|
| 1417 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | 
|---|
| 1418 | for ac_dir in $PATH; do | 
|---|
| 1419 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 1420 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | 
|---|
| 1421 | lt_cv_path_LD="$ac_dir/$ac_prog" | 
|---|
| 1422 | # Check to see if the program is GNU ld.  I'd rather use --version, | 
|---|
| 1423 | # but apparently some GNU ld's only accept -v. | 
|---|
| 1424 | # Break only if it was the GNU/non-GNU ld that we prefer. | 
|---|
| 1425 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | 
|---|
| 1426 | test "$with_gnu_ld" != no && break | 
|---|
| 1427 | else | 
|---|
| 1428 | test "$with_gnu_ld" != yes && break | 
|---|
| 1429 | fi | 
|---|
| 1430 | fi | 
|---|
| 1431 | done | 
|---|
| 1432 | IFS="$ac_save_ifs" | 
|---|
| 1433 | else | 
|---|
| 1434 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | 
|---|
| 1435 | fi | 
|---|
| 1436 | fi | 
|---|
| 1437 |  | 
|---|
| 1438 | LD="$lt_cv_path_LD" | 
|---|
| 1439 | if test -n "$LD"; then | 
|---|
| 1440 | echo "$ac_t""$LD" 1>&6 | 
|---|
| 1441 | else | 
|---|
| 1442 | echo "$ac_t""no" 1>&6 | 
|---|
| 1443 | fi | 
|---|
| 1444 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } | 
|---|
| 1445 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 | 
|---|
| 1446 | echo "configure:1447: checking if the linker ($LD) is GNU ld" >&5 | 
|---|
| 1447 | if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then | 
|---|
| 1448 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1449 | else | 
|---|
| 1450 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | 
|---|
| 1451 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | 
|---|
| 1452 | lt_cv_prog_gnu_ld=yes | 
|---|
| 1453 | else | 
|---|
| 1454 | lt_cv_prog_gnu_ld=no | 
|---|
| 1455 | fi | 
|---|
| 1456 | fi | 
|---|
| 1457 |  | 
|---|
| 1458 | echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6 | 
|---|
| 1459 | with_gnu_ld=$lt_cv_prog_gnu_ld | 
|---|
| 1460 |  | 
|---|
| 1461 |  | 
|---|
| 1462 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6 | 
|---|
| 1463 | echo "configure:1464: checking for $LD option to reload object files" >&5 | 
|---|
| 1464 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then | 
|---|
| 1465 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1466 | else | 
|---|
| 1467 | lt_cv_ld_reload_flag='-r' | 
|---|
| 1468 | fi | 
|---|
| 1469 |  | 
|---|
| 1470 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6 | 
|---|
| 1471 | reload_flag=$lt_cv_ld_reload_flag | 
|---|
| 1472 | test -n "$reload_flag" && reload_flag=" $reload_flag" | 
|---|
| 1473 |  | 
|---|
| 1474 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 | 
|---|
| 1475 | echo "configure:1476: checking for BSD-compatible nm" >&5 | 
|---|
| 1476 | if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then | 
|---|
| 1477 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1478 | else | 
|---|
| 1479 | if test -n "$NM"; then | 
|---|
| 1480 | # Let the user override the test. | 
|---|
| 1481 | lt_cv_path_NM="$NM" | 
|---|
| 1482 | else | 
|---|
| 1483 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | 
|---|
| 1484 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | 
|---|
| 1485 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 1486 | tmp_nm=$ac_dir/${ac_tool_prefix}nm | 
|---|
| 1487 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | 
|---|
| 1488 | # Check to see if the nm accepts a BSD-compat flag. | 
|---|
| 1489 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | 
|---|
| 1490 | #   nm: unknown option "B" ignored | 
|---|
| 1491 | # Tru64's nm complains that /dev/null is an invalid object file | 
|---|
| 1492 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | 
|---|
| 1493 | lt_cv_path_NM="$tmp_nm -B" | 
|---|
| 1494 | break | 
|---|
| 1495 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | 
|---|
| 1496 | lt_cv_path_NM="$tmp_nm -p" | 
|---|
| 1497 | break | 
|---|
| 1498 | else | 
|---|
| 1499 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | 
|---|
| 1500 | continue # so that we can try to find one that supports BSD flags | 
|---|
| 1501 | fi | 
|---|
| 1502 | fi | 
|---|
| 1503 | done | 
|---|
| 1504 | IFS="$ac_save_ifs" | 
|---|
| 1505 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | 
|---|
| 1506 | fi | 
|---|
| 1507 | fi | 
|---|
| 1508 |  | 
|---|
| 1509 | NM="$lt_cv_path_NM" | 
|---|
| 1510 | echo "$ac_t""$NM" 1>&6 | 
|---|
| 1511 |  | 
|---|
| 1512 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | 
|---|
| 1513 | echo "configure:1514: checking whether ln -s works" >&5 | 
|---|
| 1514 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then | 
|---|
| 1515 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1516 | else | 
|---|
| 1517 | rm -f conftestdata | 
|---|
| 1518 | if ln -s X conftestdata 2>/dev/null | 
|---|
| 1519 | then | 
|---|
| 1520 | rm -f conftestdata | 
|---|
| 1521 | ac_cv_prog_LN_S="ln -s" | 
|---|
| 1522 | else | 
|---|
| 1523 | echo A > conftestdata; | 
|---|
| 1524 | if ln conftestdata conftestdata2 2>/dev/null; then | 
|---|
| 1525 | ac_cv_prog_LN_S=ln | 
|---|
| 1526 | else | 
|---|
| 1527 | ac_cv_prog_LN_S=cp | 
|---|
| 1528 | fi | 
|---|
| 1529 | fi | 
|---|
| 1530 | rm -f conftestdata* | 
|---|
| 1531 | fi | 
|---|
| 1532 | LN_S="$ac_cv_prog_LN_S" | 
|---|
| 1533 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | 
|---|
| 1534 | echo "$ac_t""yes" 1>&6 | 
|---|
| 1535 | else | 
|---|
| 1536 | echo "$ac_t""no" 1>&6 | 
|---|
| 1537 | fi | 
|---|
| 1538 |  | 
|---|
| 1539 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 | 
|---|
| 1540 | echo "configure:1541: checking how to recognise dependant libraries" >&5 | 
|---|
| 1541 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then | 
|---|
| 1542 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1543 | else | 
|---|
| 1544 | lt_cv_file_magic_cmd='$MAGIC_CMD' | 
|---|
| 1545 | lt_cv_file_magic_test_file= | 
|---|
| 1546 | lt_cv_deplibs_check_method='unknown' | 
|---|
| 1547 | # Need to set the preceding variable on all platforms that support | 
|---|
| 1548 | # interlibrary dependencies. | 
|---|
| 1549 | # 'none' -- dependencies not supported. | 
|---|
| 1550 | # `unknown' -- same as none, but documents that we really don't know. | 
|---|
| 1551 | # 'pass_all' -- all dependencies passed with no checks. | 
|---|
| 1552 | # 'test_compile' -- check by making test program. | 
|---|
| 1553 | # 'file_magic [regex]' -- check by looking for files in library path | 
|---|
| 1554 | # which responds to the $file_magic_cmd with a given egrep regex. | 
|---|
| 1555 | # If you have `file' or equivalent on your system and you're not sure | 
|---|
| 1556 | # whether `pass_all' will *always* work, you probably want this one. | 
|---|
| 1557 |  | 
|---|
| 1558 | case $host_os in | 
|---|
| 1559 | aix*) | 
|---|
| 1560 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 1561 | ;; | 
|---|
| 1562 |  | 
|---|
| 1563 | beos*) | 
|---|
| 1564 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 1565 | ;; | 
|---|
| 1566 |  | 
|---|
| 1567 | bsdi4*) | 
|---|
| 1568 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | 
|---|
| 1569 | lt_cv_file_magic_cmd='/usr/bin/file -L' | 
|---|
| 1570 | lt_cv_file_magic_test_file=/shlib/libc.so | 
|---|
| 1571 | ;; | 
|---|
| 1572 |  | 
|---|
| 1573 | cygwin* | mingw* |pw32*) | 
|---|
| 1574 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | 
|---|
| 1575 | lt_cv_file_magic_cmd='$OBJDUMP -f' | 
|---|
| 1576 | ;; | 
|---|
| 1577 |  | 
|---|
| 1578 | darwin* | rhapsody*) | 
|---|
| 1579 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | 
|---|
| 1580 | lt_cv_file_magic_cmd='/usr/bin/file -L' | 
|---|
| 1581 | case "$host_os" in | 
|---|
| 1582 | rhapsody* | darwin1.012) | 
|---|
| 1583 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | 
|---|
| 1584 | ;; | 
|---|
| 1585 | *) # Darwin 1.3 on | 
|---|
| 1586 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | 
|---|
| 1587 | ;; | 
|---|
| 1588 | esac | 
|---|
| 1589 | ;; | 
|---|
| 1590 |  | 
|---|
| 1591 | freebsd* ) | 
|---|
| 1592 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 
|---|
| 1593 | case $host_cpu in | 
|---|
| 1594 | i*86 ) | 
|---|
| 1595 | # Not sure whether the presence of OpenBSD here was a mistake. | 
|---|
| 1596 | # Let's accept both of them until this is cleared up. | 
|---|
| 1597 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | 
|---|
| 1598 | lt_cv_file_magic_cmd=/usr/bin/file | 
|---|
| 1599 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | 
|---|
| 1600 | ;; | 
|---|
| 1601 | esac | 
|---|
| 1602 | else | 
|---|
| 1603 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 1604 | fi | 
|---|
| 1605 | ;; | 
|---|
| 1606 |  | 
|---|
| 1607 | gnu*) | 
|---|
| 1608 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 1609 | ;; | 
|---|
| 1610 |  | 
|---|
| 1611 | hpux10.20*|hpux11*) | 
|---|
| 1612 | case $host_cpu in | 
|---|
| 1613 | hppa*) | 
|---|
| 1614 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | 
|---|
| 1615 | lt_cv_file_magic_cmd=/usr/bin/file | 
|---|
| 1616 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | 
|---|
| 1617 | ;; | 
|---|
| 1618 | ia64*) | 
|---|
| 1619 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | 
|---|
| 1620 | lt_cv_file_magic_cmd=/usr/bin/file | 
|---|
| 1621 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | 
|---|
| 1622 | ;; | 
|---|
| 1623 | esac | 
|---|
| 1624 | ;; | 
|---|
| 1625 |  | 
|---|
| 1626 | irix5* | irix6*) | 
|---|
| 1627 | case $host_os in | 
|---|
| 1628 | irix5*) | 
|---|
| 1629 | # this will be overridden with pass_all, but let us keep it just in case | 
|---|
| 1630 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | 
|---|
| 1631 | ;; | 
|---|
| 1632 | *) | 
|---|
| 1633 | case $LD in | 
|---|
| 1634 | *-32|*"-32 ") libmagic=32-bit;; | 
|---|
| 1635 | *-n32|*"-n32 ") libmagic=N32;; | 
|---|
| 1636 | *-64|*"-64 ") libmagic=64-bit;; | 
|---|
| 1637 | *) libmagic=never-match;; | 
|---|
| 1638 | esac | 
|---|
| 1639 | # this will be overridden with pass_all, but let us keep it just in case | 
|---|
| 1640 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" | 
|---|
| 1641 | ;; | 
|---|
| 1642 | esac | 
|---|
| 1643 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | 
|---|
| 1644 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 1645 | ;; | 
|---|
| 1646 |  | 
|---|
| 1647 | # This must be Linux ELF. | 
|---|
| 1648 | linux-gnu*) | 
|---|
| 1649 | case $host_cpu in | 
|---|
| 1650 | alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* ) | 
|---|
| 1651 | lt_cv_deplibs_check_method=pass_all ;; | 
|---|
| 1652 | *) | 
|---|
| 1653 | # glibc up to 2.1.1 does not perform some relocations on ARM | 
|---|
| 1654 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; | 
|---|
| 1655 | esac | 
|---|
| 1656 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` | 
|---|
| 1657 | ;; | 
|---|
| 1658 |  | 
|---|
| 1659 | netbsd*) | 
|---|
| 1660 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 
|---|
| 1661 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' | 
|---|
| 1662 | else | 
|---|
| 1663 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' | 
|---|
| 1664 | fi | 
|---|
| 1665 | ;; | 
|---|
| 1666 |  | 
|---|
| 1667 | newsos6) | 
|---|
| 1668 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | 
|---|
| 1669 | lt_cv_file_magic_cmd=/usr/bin/file | 
|---|
| 1670 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | 
|---|
| 1671 | ;; | 
|---|
| 1672 |  | 
|---|
| 1673 | os2*) | 
|---|
| 1674 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 1675 | ;; | 
|---|
| 1676 |  | 
|---|
| 1677 | osf3* | osf4* | osf5*) | 
|---|
| 1678 | # this will be overridden with pass_all, but let us keep it just in case | 
|---|
| 1679 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | 
|---|
| 1680 | lt_cv_file_magic_test_file=/shlib/libc.so | 
|---|
| 1681 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 1682 | ;; | 
|---|
| 1683 |  | 
|---|
| 1684 | sco3.2v5*) | 
|---|
| 1685 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 1686 | ;; | 
|---|
| 1687 |  | 
|---|
| 1688 | solaris*) | 
|---|
| 1689 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 1690 | lt_cv_file_magic_test_file=/lib/libc.so | 
|---|
| 1691 | ;; | 
|---|
| 1692 |  | 
|---|
| 1693 | sysv5uw[78]* | sysv4*uw2*) | 
|---|
| 1694 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 1695 | ;; | 
|---|
| 1696 |  | 
|---|
| 1697 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
|---|
| 1698 | case $host_vendor in | 
|---|
| 1699 | ncr) | 
|---|
| 1700 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 1701 | ;; | 
|---|
| 1702 | motorola) | 
|---|
| 1703 | 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]' | 
|---|
| 1704 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | 
|---|
| 1705 | ;; | 
|---|
| 1706 | esac | 
|---|
| 1707 | ;; | 
|---|
| 1708 | esac | 
|---|
| 1709 |  | 
|---|
| 1710 | fi | 
|---|
| 1711 |  | 
|---|
| 1712 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6 | 
|---|
| 1713 | file_magic_cmd=$lt_cv_file_magic_cmd | 
|---|
| 1714 | deplibs_check_method=$lt_cv_deplibs_check_method | 
|---|
| 1715 |  | 
|---|
| 1716 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6 | 
|---|
| 1717 | echo "configure:1718: checking for object suffix" >&5 | 
|---|
| 1718 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then | 
|---|
| 1719 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1720 | else | 
|---|
| 1721 | rm -f conftest* | 
|---|
| 1722 | echo 'int i = 1;' > conftest.$ac_ext | 
|---|
| 1723 | if { (eval echo configure:1724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 1724 | for ac_file in conftest.*; do | 
|---|
| 1725 | case $ac_file in | 
|---|
| 1726 | *.c) ;; | 
|---|
| 1727 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; | 
|---|
| 1728 | esac | 
|---|
| 1729 | done | 
|---|
| 1730 | else | 
|---|
| 1731 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } | 
|---|
| 1732 | fi | 
|---|
| 1733 | rm -f conftest* | 
|---|
| 1734 | fi | 
|---|
| 1735 |  | 
|---|
| 1736 | echo "$ac_t""$ac_cv_objext" 1>&6 | 
|---|
| 1737 | OBJEXT=$ac_cv_objext | 
|---|
| 1738 | ac_objext=$ac_cv_objext | 
|---|
| 1739 |  | 
|---|
| 1740 | if test $host != $build; then | 
|---|
| 1741 | ac_tool_prefix=${host_alias}- | 
|---|
| 1742 | else | 
|---|
| 1743 | ac_tool_prefix= | 
|---|
| 1744 | fi | 
|---|
| 1745 |  | 
|---|
| 1746 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | 
|---|
| 1747 |  | 
|---|
| 1748 | # Only perform the check for file, if the check method requires it | 
|---|
| 1749 | case $deplibs_check_method in | 
|---|
| 1750 | file_magic*) | 
|---|
| 1751 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | 
|---|
| 1752 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 | 
|---|
| 1753 | echo "configure:1754: checking for ${ac_tool_prefix}file" >&5 | 
|---|
| 1754 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then | 
|---|
| 1755 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1756 | else | 
|---|
| 1757 | case $MAGIC_CMD in | 
|---|
| 1758 | /*) | 
|---|
| 1759 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 
|---|
| 1760 | ;; | 
|---|
| 1761 | ?:/*) | 
|---|
| 1762 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | 
|---|
| 1763 | ;; | 
|---|
| 1764 | *) | 
|---|
| 1765 | ac_save_MAGIC_CMD="$MAGIC_CMD" | 
|---|
| 1766 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" | 
|---|
| 1767 | ac_dummy="/usr/bin:$PATH" | 
|---|
| 1768 | for ac_dir in $ac_dummy; do | 
|---|
| 1769 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 1770 | if test -f $ac_dir/${ac_tool_prefix}file; then | 
|---|
| 1771 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | 
|---|
| 1772 | if test -n "$file_magic_test_file"; then | 
|---|
| 1773 | case $deplibs_check_method in | 
|---|
| 1774 | "file_magic "*) | 
|---|
| 1775 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | 
|---|
| 1776 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|---|
| 1777 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 
|---|
| 1778 | egrep "$file_magic_regex" > /dev/null; then | 
|---|
| 1779 | : | 
|---|
| 1780 | else | 
|---|
| 1781 | cat <<EOF 1>&2 | 
|---|
| 1782 |  | 
|---|
| 1783 | *** Warning: the command libtool uses to detect shared libraries, | 
|---|
| 1784 | *** $file_magic_cmd, produces output that libtool cannot recognize. | 
|---|
| 1785 | *** The result is that libtool may fail to recognize shared libraries | 
|---|
| 1786 | *** as such.  This will affect the creation of libtool libraries that | 
|---|
| 1787 | *** depend on shared libraries, but programs linked with such libtool | 
|---|
| 1788 | *** libraries will work regardless of this problem.  Nevertheless, you | 
|---|
| 1789 | *** may want to report the problem to your system manager and/or to | 
|---|
| 1790 | *** bug-libtool@gnu.org | 
|---|
| 1791 |  | 
|---|
| 1792 | EOF | 
|---|
| 1793 | fi ;; | 
|---|
| 1794 | esac | 
|---|
| 1795 | fi | 
|---|
| 1796 | break | 
|---|
| 1797 | fi | 
|---|
| 1798 | done | 
|---|
| 1799 | IFS="$ac_save_ifs" | 
|---|
| 1800 | MAGIC_CMD="$ac_save_MAGIC_CMD" | 
|---|
| 1801 | ;; | 
|---|
| 1802 | esac | 
|---|
| 1803 | fi | 
|---|
| 1804 |  | 
|---|
| 1805 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|---|
| 1806 | if test -n "$MAGIC_CMD"; then | 
|---|
| 1807 | echo "$ac_t""$MAGIC_CMD" 1>&6 | 
|---|
| 1808 | else | 
|---|
| 1809 | echo "$ac_t""no" 1>&6 | 
|---|
| 1810 | fi | 
|---|
| 1811 |  | 
|---|
| 1812 | if test -z "$lt_cv_path_MAGIC_CMD"; then | 
|---|
| 1813 | if test -n "$ac_tool_prefix"; then | 
|---|
| 1814 | echo $ac_n "checking for file""... $ac_c" 1>&6 | 
|---|
| 1815 | echo "configure:1816: checking for file" >&5 | 
|---|
| 1816 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then | 
|---|
| 1817 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1818 | else | 
|---|
| 1819 | case $MAGIC_CMD in | 
|---|
| 1820 | /*) | 
|---|
| 1821 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 
|---|
| 1822 | ;; | 
|---|
| 1823 | ?:/*) | 
|---|
| 1824 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | 
|---|
| 1825 | ;; | 
|---|
| 1826 | *) | 
|---|
| 1827 | ac_save_MAGIC_CMD="$MAGIC_CMD" | 
|---|
| 1828 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" | 
|---|
| 1829 | ac_dummy="/usr/bin:$PATH" | 
|---|
| 1830 | for ac_dir in $ac_dummy; do | 
|---|
| 1831 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 1832 | if test -f $ac_dir/file; then | 
|---|
| 1833 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | 
|---|
| 1834 | if test -n "$file_magic_test_file"; then | 
|---|
| 1835 | case $deplibs_check_method in | 
|---|
| 1836 | "file_magic "*) | 
|---|
| 1837 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | 
|---|
| 1838 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|---|
| 1839 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 
|---|
| 1840 | egrep "$file_magic_regex" > /dev/null; then | 
|---|
| 1841 | : | 
|---|
| 1842 | else | 
|---|
| 1843 | cat <<EOF 1>&2 | 
|---|
| 1844 |  | 
|---|
| 1845 | *** Warning: the command libtool uses to detect shared libraries, | 
|---|
| 1846 | *** $file_magic_cmd, produces output that libtool cannot recognize. | 
|---|
| 1847 | *** The result is that libtool may fail to recognize shared libraries | 
|---|
| 1848 | *** as such.  This will affect the creation of libtool libraries that | 
|---|
| 1849 | *** depend on shared libraries, but programs linked with such libtool | 
|---|
| 1850 | *** libraries will work regardless of this problem.  Nevertheless, you | 
|---|
| 1851 | *** may want to report the problem to your system manager and/or to | 
|---|
| 1852 | *** bug-libtool@gnu.org | 
|---|
| 1853 |  | 
|---|
| 1854 | EOF | 
|---|
| 1855 | fi ;; | 
|---|
| 1856 | esac | 
|---|
| 1857 | fi | 
|---|
| 1858 | break | 
|---|
| 1859 | fi | 
|---|
| 1860 | done | 
|---|
| 1861 | IFS="$ac_save_ifs" | 
|---|
| 1862 | MAGIC_CMD="$ac_save_MAGIC_CMD" | 
|---|
| 1863 | ;; | 
|---|
| 1864 | esac | 
|---|
| 1865 | fi | 
|---|
| 1866 |  | 
|---|
| 1867 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|---|
| 1868 | if test -n "$MAGIC_CMD"; then | 
|---|
| 1869 | echo "$ac_t""$MAGIC_CMD" 1>&6 | 
|---|
| 1870 | else | 
|---|
| 1871 | echo "$ac_t""no" 1>&6 | 
|---|
| 1872 | fi | 
|---|
| 1873 |  | 
|---|
| 1874 | else | 
|---|
| 1875 | MAGIC_CMD=: | 
|---|
| 1876 | fi | 
|---|
| 1877 | fi | 
|---|
| 1878 |  | 
|---|
| 1879 | fi | 
|---|
| 1880 | ;; | 
|---|
| 1881 | esac | 
|---|
| 1882 |  | 
|---|
| 1883 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
|---|
| 1884 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
|---|
| 1885 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 1886 | echo "configure:1887: checking for $ac_word" >&5 | 
|---|
| 1887 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | 
|---|
| 1888 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1889 | else | 
|---|
| 1890 | if test -n "$RANLIB"; then | 
|---|
| 1891 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
|---|
| 1892 | else | 
|---|
| 1893 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 1894 | ac_dummy="$PATH" | 
|---|
| 1895 | for ac_dir in $ac_dummy; do | 
|---|
| 1896 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 1897 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 1898 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 1899 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
|---|
| 1900 | break | 
|---|
| 1901 | fi | 
|---|
| 1902 | done | 
|---|
| 1903 | IFS="$ac_save_ifs" | 
|---|
| 1904 | fi | 
|---|
| 1905 | fi | 
|---|
| 1906 | RANLIB="$ac_cv_prog_RANLIB" | 
|---|
| 1907 | if test -n "$RANLIB"; then | 
|---|
| 1908 | echo "$ac_t""$RANLIB" 1>&6 | 
|---|
| 1909 | else | 
|---|
| 1910 | echo "$ac_t""no" 1>&6 | 
|---|
| 1911 | fi | 
|---|
| 1912 |  | 
|---|
| 1913 |  | 
|---|
| 1914 | if test -z "$ac_cv_prog_RANLIB"; then | 
|---|
| 1915 | if test -n "$ac_tool_prefix"; then | 
|---|
| 1916 | # Extract the first word of "ranlib", so it can be a program name with args. | 
|---|
| 1917 | set dummy ranlib; ac_word=$2 | 
|---|
| 1918 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 1919 | echo "configure:1920: checking for $ac_word" >&5 | 
|---|
| 1920 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | 
|---|
| 1921 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1922 | else | 
|---|
| 1923 | if test -n "$RANLIB"; then | 
|---|
| 1924 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
|---|
| 1925 | else | 
|---|
| 1926 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 1927 | ac_dummy="$PATH" | 
|---|
| 1928 | for ac_dir in $ac_dummy; do | 
|---|
| 1929 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 1930 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 1931 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 1932 | ac_cv_prog_RANLIB="ranlib" | 
|---|
| 1933 | break | 
|---|
| 1934 | fi | 
|---|
| 1935 | done | 
|---|
| 1936 | IFS="$ac_save_ifs" | 
|---|
| 1937 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | 
|---|
| 1938 | fi | 
|---|
| 1939 | fi | 
|---|
| 1940 | RANLIB="$ac_cv_prog_RANLIB" | 
|---|
| 1941 | if test -n "$RANLIB"; then | 
|---|
| 1942 | echo "$ac_t""$RANLIB" 1>&6 | 
|---|
| 1943 | else | 
|---|
| 1944 | echo "$ac_t""no" 1>&6 | 
|---|
| 1945 | fi | 
|---|
| 1946 |  | 
|---|
| 1947 | else | 
|---|
| 1948 | RANLIB=":" | 
|---|
| 1949 | fi | 
|---|
| 1950 | fi | 
|---|
| 1951 |  | 
|---|
| 1952 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | 
|---|
| 1953 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | 
|---|
| 1954 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 1955 | echo "configure:1956: checking for $ac_word" >&5 | 
|---|
| 1956 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then | 
|---|
| 1957 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1958 | else | 
|---|
| 1959 | if test -n "$STRIP"; then | 
|---|
| 1960 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | 
|---|
| 1961 | else | 
|---|
| 1962 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 1963 | ac_dummy="$PATH" | 
|---|
| 1964 | for ac_dir in $ac_dummy; do | 
|---|
| 1965 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 1966 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 1967 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 1968 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | 
|---|
| 1969 | break | 
|---|
| 1970 | fi | 
|---|
| 1971 | done | 
|---|
| 1972 | IFS="$ac_save_ifs" | 
|---|
| 1973 | fi | 
|---|
| 1974 | fi | 
|---|
| 1975 | STRIP="$ac_cv_prog_STRIP" | 
|---|
| 1976 | if test -n "$STRIP"; then | 
|---|
| 1977 | echo "$ac_t""$STRIP" 1>&6 | 
|---|
| 1978 | else | 
|---|
| 1979 | echo "$ac_t""no" 1>&6 | 
|---|
| 1980 | fi | 
|---|
| 1981 |  | 
|---|
| 1982 |  | 
|---|
| 1983 | if test -z "$ac_cv_prog_STRIP"; then | 
|---|
| 1984 | if test -n "$ac_tool_prefix"; then | 
|---|
| 1985 | # Extract the first word of "strip", so it can be a program name with args. | 
|---|
| 1986 | set dummy strip; ac_word=$2 | 
|---|
| 1987 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 1988 | echo "configure:1989: checking for $ac_word" >&5 | 
|---|
| 1989 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then | 
|---|
| 1990 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1991 | else | 
|---|
| 1992 | if test -n "$STRIP"; then | 
|---|
| 1993 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | 
|---|
| 1994 | else | 
|---|
| 1995 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 1996 | ac_dummy="$PATH" | 
|---|
| 1997 | for ac_dir in $ac_dummy; do | 
|---|
| 1998 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 1999 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 2000 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 2001 | ac_cv_prog_STRIP="strip" | 
|---|
| 2002 | break | 
|---|
| 2003 | fi | 
|---|
| 2004 | done | 
|---|
| 2005 | IFS="$ac_save_ifs" | 
|---|
| 2006 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" | 
|---|
| 2007 | fi | 
|---|
| 2008 | fi | 
|---|
| 2009 | STRIP="$ac_cv_prog_STRIP" | 
|---|
| 2010 | if test -n "$STRIP"; then | 
|---|
| 2011 | echo "$ac_t""$STRIP" 1>&6 | 
|---|
| 2012 | else | 
|---|
| 2013 | echo "$ac_t""no" 1>&6 | 
|---|
| 2014 | fi | 
|---|
| 2015 |  | 
|---|
| 2016 | else | 
|---|
| 2017 | STRIP=":" | 
|---|
| 2018 | fi | 
|---|
| 2019 | fi | 
|---|
| 2020 |  | 
|---|
| 2021 |  | 
|---|
| 2022 | # Check for any special flags to pass to ltconfig. | 
|---|
| 2023 | libtool_flags="--cache-file=$cache_file" | 
|---|
| 2024 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | 
|---|
| 2025 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | 
|---|
| 2026 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | 
|---|
| 2027 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" | 
|---|
| 2028 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | 
|---|
| 2029 |  | 
|---|
| 2030 |  | 
|---|
| 2031 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | 
|---|
| 2032 | if test "${enable_libtool_lock+set}" = set; then | 
|---|
| 2033 | enableval="$enable_libtool_lock" | 
|---|
| 2034 | : | 
|---|
| 2035 | fi | 
|---|
| 2036 |  | 
|---|
| 2037 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" | 
|---|
| 2038 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | 
|---|
| 2039 |  | 
|---|
| 2040 | # Check whether --with-pic or --without-pic was given. | 
|---|
| 2041 | if test "${with_pic+set}" = set; then | 
|---|
| 2042 | withval="$with_pic" | 
|---|
| 2043 | pic_mode="$withval" | 
|---|
| 2044 | else | 
|---|
| 2045 | pic_mode=default | 
|---|
| 2046 | fi | 
|---|
| 2047 |  | 
|---|
| 2048 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" | 
|---|
| 2049 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | 
|---|
| 2050 |  | 
|---|
| 2051 | # Some flags need to be propagated to the compiler or linker for good | 
|---|
| 2052 | # libtool support. | 
|---|
| 2053 | case $host in | 
|---|
| 2054 | *-*-irix6*) | 
|---|
| 2055 | # Find out which ABI we are using. | 
|---|
| 2056 | echo '#line 2057 "configure"' > conftest.$ac_ext | 
|---|
| 2057 | if { (eval echo configure:2058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 2058 | if test "$lt_cv_prog_gnu_ld" = yes; then | 
|---|
| 2059 | case `/usr/bin/file conftest.$ac_objext` in | 
|---|
| 2060 | *32-bit*) | 
|---|
| 2061 | LD="${LD-ld} -melf32bsmip" | 
|---|
| 2062 | ;; | 
|---|
| 2063 | *N32*) | 
|---|
| 2064 | LD="${LD-ld} -melf32bmipn32" | 
|---|
| 2065 | ;; | 
|---|
| 2066 | *64-bit*) | 
|---|
| 2067 | LD="${LD-ld} -melf64bmip" | 
|---|
| 2068 | ;; | 
|---|
| 2069 | esac | 
|---|
| 2070 | else | 
|---|
| 2071 | case `/usr/bin/file conftest.$ac_objext` in | 
|---|
| 2072 | *32-bit*) | 
|---|
| 2073 | LD="${LD-ld} -32" | 
|---|
| 2074 | ;; | 
|---|
| 2075 | *N32*) | 
|---|
| 2076 | LD="${LD-ld} -n32" | 
|---|
| 2077 | ;; | 
|---|
| 2078 | *64-bit*) | 
|---|
| 2079 | LD="${LD-ld} -64" | 
|---|
| 2080 | ;; | 
|---|
| 2081 | esac | 
|---|
| 2082 | fi | 
|---|
| 2083 | fi | 
|---|
| 2084 | rm -rf conftest* | 
|---|
| 2085 | ;; | 
|---|
| 2086 |  | 
|---|
| 2087 | ia64-*-hpux*) | 
|---|
| 2088 | # Find out which ABI we are using. | 
|---|
| 2089 | echo 'int i;' > conftest.$ac_ext | 
|---|
| 2090 | if { (eval echo configure:2091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 2091 | case "`/usr/bin/file conftest.o`" in | 
|---|
| 2092 | *ELF-32*) | 
|---|
| 2093 | HPUX_IA64_MODE="32" | 
|---|
| 2094 | ;; | 
|---|
| 2095 | *ELF-64*) | 
|---|
| 2096 | HPUX_IA64_MODE="64" | 
|---|
| 2097 | ;; | 
|---|
| 2098 | esac | 
|---|
| 2099 | fi | 
|---|
| 2100 | rm -rf conftest* | 
|---|
| 2101 | ;; | 
|---|
| 2102 |  | 
|---|
| 2103 | *-*-sco3.2v5*) | 
|---|
| 2104 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | 
|---|
| 2105 | SAVE_CFLAGS="$CFLAGS" | 
|---|
| 2106 | CFLAGS="$CFLAGS -belf" | 
|---|
| 2107 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 | 
|---|
| 2108 | echo "configure:2109: checking whether the C compiler needs -belf" >&5 | 
|---|
| 2109 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then | 
|---|
| 2110 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 2111 | else | 
|---|
| 2112 |  | 
|---|
| 2113 | ac_ext=c | 
|---|
| 2114 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
|---|
| 2115 | ac_cpp='$CPP $CPPFLAGS' | 
|---|
| 2116 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
|---|
| 2117 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
|---|
| 2118 | cross_compiling=$ac_cv_prog_cc_cross | 
|---|
| 2119 |  | 
|---|
| 2120 | cat > conftest.$ac_ext <<EOF | 
|---|
| 2121 | #line 2122 "configure" | 
|---|
| 2122 | #include "confdefs.h" | 
|---|
| 2123 |  | 
|---|
| 2124 | int main() { | 
|---|
| 2125 |  | 
|---|
| 2126 | ; return 0; } | 
|---|
| 2127 | EOF | 
|---|
| 2128 | if { (eval echo configure:2129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 2129 | rm -rf conftest* | 
|---|
| 2130 | lt_cv_cc_needs_belf=yes | 
|---|
| 2131 | else | 
|---|
| 2132 | echo "configure: failed program was:" >&5 | 
|---|
| 2133 | cat conftest.$ac_ext >&5 | 
|---|
| 2134 | rm -rf conftest* | 
|---|
| 2135 | lt_cv_cc_needs_belf=no | 
|---|
| 2136 | fi | 
|---|
| 2137 | rm -f conftest* | 
|---|
| 2138 | ac_ext=c | 
|---|
| 2139 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
|---|
| 2140 | ac_cpp='$CPP $CPPFLAGS' | 
|---|
| 2141 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
|---|
| 2142 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
|---|
| 2143 | cross_compiling=$ac_cv_prog_cc_cross | 
|---|
| 2144 |  | 
|---|
| 2145 | fi | 
|---|
| 2146 |  | 
|---|
| 2147 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 | 
|---|
| 2148 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | 
|---|
| 2149 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | 
|---|
| 2150 | CFLAGS="$SAVE_CFLAGS" | 
|---|
| 2151 | fi | 
|---|
| 2152 | ;; | 
|---|
| 2153 |  | 
|---|
| 2154 |  | 
|---|
| 2155 | esac | 
|---|
| 2156 |  | 
|---|
| 2157 |  | 
|---|
| 2158 | # Save cache, so that ltconfig can load it | 
|---|
| 2159 | cat > confcache <<\EOF | 
|---|
| 2160 | # This file is a shell script that caches the results of configure | 
|---|
| 2161 | # tests run on this system so they can be shared between configure | 
|---|
| 2162 | # scripts and configure runs.  It is not useful on other systems. | 
|---|
| 2163 | # If it contains results you don't want to keep, you may remove or edit it. | 
|---|
| 2164 | # | 
|---|
| 2165 | # By default, configure uses ./config.cache as the cache file, | 
|---|
| 2166 | # creating it if it does not exist already.  You can give configure | 
|---|
| 2167 | # the --cache-file=FILE option to use a different cache file; that is | 
|---|
| 2168 | # what configure does when it calls configure scripts in | 
|---|
| 2169 | # subdirectories, so they share the cache. | 
|---|
| 2170 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | 
|---|
| 2171 | # config.status only pays attention to the cache file if you give it the | 
|---|
| 2172 | # --recheck option to rerun configure. | 
|---|
| 2173 | # | 
|---|
| 2174 | EOF | 
|---|
| 2175 | # The following way of writing the cache mishandles newlines in values, | 
|---|
| 2176 | # but we know of no workaround that is simple, portable, and efficient. | 
|---|
| 2177 | # So, don't put newlines in cache variables' values. | 
|---|
| 2178 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
|---|
| 2179 | # and sets the high bit in the cache file unless we assign to the vars. | 
|---|
| 2180 | (set) 2>&1 | | 
|---|
| 2181 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | 
|---|
| 2182 | *ac_space=\ *) | 
|---|
| 2183 | # `set' does not quote correctly, so add quotes (double-quote substitution | 
|---|
| 2184 | # turns \\\\ into \\, and sed turns \\ into \). | 
|---|
| 2185 | sed -n \ | 
|---|
| 2186 | -e "s/'/'\\\\''/g" \ | 
|---|
| 2187 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | 
|---|
| 2188 | ;; | 
|---|
| 2189 | *) | 
|---|
| 2190 | # `set' quotes correctly as required by POSIX, so do not add quotes. | 
|---|
| 2191 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | 
|---|
| 2192 | ;; | 
|---|
| 2193 | esac >> confcache | 
|---|
| 2194 | if cmp -s $cache_file confcache; then | 
|---|
| 2195 | : | 
|---|
| 2196 | else | 
|---|
| 2197 | if test -w $cache_file; then | 
|---|
| 2198 | echo "updating cache $cache_file" | 
|---|
| 2199 | cat confcache > $cache_file | 
|---|
| 2200 | else | 
|---|
| 2201 | echo "not updating unwritable cache $cache_file" | 
|---|
| 2202 | fi | 
|---|
| 2203 | fi | 
|---|
| 2204 | rm -f confcache | 
|---|
| 2205 |  | 
|---|
| 2206 |  | 
|---|
| 2207 | # Actually configure libtool.  ac_aux_dir is where install-sh is found. | 
|---|
| 2208 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ | 
|---|
| 2209 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ | 
|---|
| 2210 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ | 
|---|
| 2211 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | 
|---|
| 2212 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | 
|---|
| 2213 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | 
|---|
| 2214 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ | 
|---|
| 2215 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ | 
|---|
| 2216 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } | 
|---|
| 2217 |  | 
|---|
| 2218 | # Reload cache, that may have been modified by ltconfig | 
|---|
| 2219 | if test -r "$cache_file"; then | 
|---|
| 2220 | echo "loading cache $cache_file" | 
|---|
| 2221 | . $cache_file | 
|---|
| 2222 | else | 
|---|
| 2223 | echo "creating cache $cache_file" | 
|---|
| 2224 | > $cache_file | 
|---|
| 2225 | fi | 
|---|
| 2226 |  | 
|---|
| 2227 |  | 
|---|
| 2228 | # This can be used to rebuild libtool when needed | 
|---|
| 2229 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" | 
|---|
| 2230 |  | 
|---|
| 2231 | # Always use our own libtool. | 
|---|
| 2232 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | 
|---|
| 2233 |  | 
|---|
| 2234 | # Redirect the config.log output again, so that the ltconfig log is not | 
|---|
| 2235 | # clobbered by the next message. | 
|---|
| 2236 | exec 5>>./config.log | 
|---|
| 2237 |  | 
|---|
| 2238 |  | 
|---|
| 2239 |  | 
|---|
| 2240 |  | 
|---|
| 2241 |  | 
|---|
| 2242 |  | 
|---|
| 2243 |  | 
|---|
| 2244 | user_bfd_gas= | 
|---|
| 2245 | # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given. | 
|---|
| 2246 | if test "${enable_bfd_assembler+set}" = set; then | 
|---|
| 2247 | enableval="$enable_bfd_assembler" | 
|---|
| 2248 | case "${enableval}" in | 
|---|
| 2249 | yes) need_bfd=yes user_bfd_gas=yes ;; | 
|---|
| 2250 | no)  user_bfd_gas=no ;; | 
|---|
| 2251 | *)   { echo "configure: error: bad value ${enableval} given for bfd-assembler option" 1>&2; exit 1; } ;; | 
|---|
| 2252 | esac | 
|---|
| 2253 | fi | 
|---|
| 2254 | # Check whether --enable-targets or --disable-targets was given. | 
|---|
| 2255 | if test "${enable_targets+set}" = set; then | 
|---|
| 2256 | enableval="$enable_targets" | 
|---|
| 2257 | case "${enableval}" in | 
|---|
| 2258 | yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; } | 
|---|
| 2259 | ;; | 
|---|
| 2260 | no)       enable_targets= ;; | 
|---|
| 2261 | *)        enable_targets=$enableval ;; | 
|---|
| 2262 | esac | 
|---|
| 2263 | fi | 
|---|
| 2264 | # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given. | 
|---|
| 2265 | if test "${enable_commonbfdlib+set}" = set; then | 
|---|
| 2266 | enableval="$enable_commonbfdlib" | 
|---|
| 2267 | case "${enableval}" in | 
|---|
| 2268 | yes) commonbfdlib=true ;; | 
|---|
| 2269 | no)  commonbfdlib=false ;; | 
|---|
| 2270 | *)   { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;; | 
|---|
| 2271 | esac | 
|---|
| 2272 | fi | 
|---|
| 2273 |  | 
|---|
| 2274 | using_cgen=no | 
|---|
| 2275 |  | 
|---|
| 2276 | build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" | 
|---|
| 2277 | # Check whether --enable-build-warnings or --disable-build-warnings was given. | 
|---|
| 2278 | if test "${enable_build_warnings+set}" = set; then | 
|---|
| 2279 | enableval="$enable_build_warnings" | 
|---|
| 2280 | case "${enableval}" in | 
|---|
| 2281 | yes)  ;; | 
|---|
| 2282 | no)   build_warnings="-w";; | 
|---|
| 2283 | ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"` | 
|---|
| 2284 | build_warnings="${build_warnings} ${t}";; | 
|---|
| 2285 | *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"` | 
|---|
| 2286 | build_warnings="${t} ${build_warnings}";; | 
|---|
| 2287 | *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | 
|---|
| 2288 | esac | 
|---|
| 2289 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | 
|---|
| 2290 | echo "Setting warning flags = $build_warnings" 6>&1 | 
|---|
| 2291 | fi | 
|---|
| 2292 | fi | 
|---|
| 2293 | WARN_CFLAGS="" | 
|---|
| 2294 | if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then | 
|---|
| 2295 | WARN_CFLAGS="${build_warnings}" | 
|---|
| 2296 | fi | 
|---|
| 2297 |  | 
|---|
| 2298 |  | 
|---|
| 2299 | # Generate a header file | 
|---|
| 2300 |  | 
|---|
| 2301 |  | 
|---|
| 2302 |  | 
|---|
| 2303 |  | 
|---|
| 2304 | # If we are on a DOS filesystem, we must use gdb.ini rather than | 
|---|
| 2305 | # .gdbinit. | 
|---|
| 2306 | GDBINIT=".gdbinit" | 
|---|
| 2307 | case "${host}" in | 
|---|
| 2308 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*) | 
|---|
| 2309 | GDBINIT="gdb.ini" | 
|---|
| 2310 | ;; | 
|---|
| 2311 | esac | 
|---|
| 2312 |  | 
|---|
| 2313 |  | 
|---|
| 2314 | te_file=generic | 
|---|
| 2315 |  | 
|---|
| 2316 | # Makefile target for installing gas in $(tooldir)/bin. | 
|---|
| 2317 | install_tooldir=install-exec-tooldir | 
|---|
| 2318 |  | 
|---|
| 2319 | canon_targets="" | 
|---|
| 2320 | all_targets=no | 
|---|
| 2321 | if test -n "$enable_targets" ; then | 
|---|
| 2322 | for t in `echo $enable_targets | sed 's/,/ /g'`; do | 
|---|
| 2323 | if test $t = "all"; then | 
|---|
| 2324 | all_targets=yes | 
|---|
| 2325 | continue | 
|---|
| 2326 | fi | 
|---|
| 2327 | result=`$ac_config_sub $t 2>/dev/null` | 
|---|
| 2328 | if test -n "$result" ; then | 
|---|
| 2329 | canon_targets="$canon_targets $result" | 
|---|
| 2330 | #    else | 
|---|
| 2331 | #      # Permit "all", etc.  We don't support it yet though. | 
|---|
| 2332 | #      canon_targets="$canon_targets $t" | 
|---|
| 2333 | fi | 
|---|
| 2334 | done | 
|---|
| 2335 | _gas_uniq_list="$canon_targets" | 
|---|
| 2336 | _gas_uniq_newlist="" | 
|---|
| 2337 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | 
|---|
| 2338 | case $_gas_uniq_i in | 
|---|
| 2339 | _gas_uniq_dummy) ;; | 
|---|
| 2340 | *) case " $_gas_uniq_newlist " in | 
|---|
| 2341 | *" $_gas_uniq_i "*) ;; | 
|---|
| 2342 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | 
|---|
| 2343 | esac ;; | 
|---|
| 2344 | esac | 
|---|
| 2345 | done | 
|---|
| 2346 | canon_targets=$_gas_uniq_newlist | 
|---|
| 2347 |  | 
|---|
| 2348 | fi | 
|---|
| 2349 |  | 
|---|
| 2350 | emulations="" | 
|---|
| 2351 |  | 
|---|
| 2352 | for this_target in $target $canon_targets ; do | 
|---|
| 2353 |  | 
|---|
| 2354 | eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'` | 
|---|
| 2355 |  | 
|---|
| 2356 | # check for architecture variants | 
|---|
| 2357 | arch= | 
|---|
| 2358 | endian= | 
|---|
| 2359 | case ${cpu} in | 
|---|
| 2360 | alpha*)           cpu_type=alpha ;; | 
|---|
| 2361 | arm*b|xscale*b|strongarm*b) cpu_type=arm endian=big ;; | 
|---|
| 2362 | arm*|xscale*|strongarm*)    cpu_type=arm endian=little ;; | 
|---|
| 2363 | hppa*)            cpu_type=hppa ;; | 
|---|
| 2364 | i[3456]86)        cpu_type=i386 arch=i386;; | 
|---|
| 2365 | x86_64)           cpu_type=i386 arch=x86_64;; | 
|---|
| 2366 | ia64)             cpu_type=ia64 ;; | 
|---|
| 2367 | ip2k)             cpu_type=ip2k endian=big ;; | 
|---|
| 2368 | iq2000)           cpu_type=iq2000 endian=big ;; | 
|---|
| 2369 | m6811|m6812|m68hc12) cpu_type=m68hc11 ;; | 
|---|
| 2370 | m680[012346]0)    cpu_type=m68k ;; | 
|---|
| 2371 | m68008)           cpu_type=m68k ;; | 
|---|
| 2372 | m683??)           cpu_type=m68k ;; | 
|---|
| 2373 | m5200)            cpu_type=m68k ;; | 
|---|
| 2374 | m8*)              cpu_type=m88k ;; | 
|---|
| 2375 | mips*el)          cpu_type=mips endian=little ;; | 
|---|
| 2376 | mips*)            cpu_type=mips endian=big ;; | 
|---|
| 2377 | or32*)            cpu_type=or32 endian=big ;; | 
|---|
| 2378 | pjl*)             cpu_type=pj endian=little ;; | 
|---|
| 2379 | pj*)              cpu_type=pj endian=big ;; | 
|---|
| 2380 | powerpc*le*)      cpu_type=ppc endian=little ;; | 
|---|
| 2381 | powerpc*)         cpu_type=ppc endian=big ;; | 
|---|
| 2382 | rs6000*)          cpu_type=ppc ;; | 
|---|
| 2383 | s390x*)           cpu_type=s390 arch=s390x ;; | 
|---|
| 2384 | s390*)            cpu_type=s390 arch=s390 ;; | 
|---|
| 2385 | sh5*)             cpu_type=sh64 endian=big ;; | 
|---|
| 2386 | sh5le*)           cpu_type=sh64 endian=little ;; | 
|---|
| 2387 | sh64*)            cpu_type=sh64 endian=big ;; | 
|---|
| 2388 | sh64le*)          cpu_type=sh64 endian=little ;; | 
|---|
| 2389 | sh*le)            cpu_type=sh endian=little ;; | 
|---|
| 2390 | sh*)              cpu_type=sh endian=big ;; | 
|---|
| 2391 | sparclite*)       cpu_type=sparc arch=sparclite ;; | 
|---|
| 2392 | sparclet*)        cpu_type=sparc arch=sparclet ;; | 
|---|
| 2393 | sparc64*)         cpu_type=sparc arch=v9-64 ;; | 
|---|
| 2394 | sparc86x*)        cpu_type=sparc arch=sparc86x  ;; | 
|---|
| 2395 | sparc*)           cpu_type=sparc arch=sparclite ;; # ??? See tc-sparc.c. | 
|---|
| 2396 | v850*)            cpu_type=v850 ;; | 
|---|
| 2397 | xtensa*)          cpu_type=xtensa arch=xtensa ;; | 
|---|
| 2398 | *)                cpu_type=${cpu} ;; | 
|---|
| 2399 | esac | 
|---|
| 2400 |  | 
|---|
| 2401 | if test ${this_target} = $target ; then | 
|---|
| 2402 | target_cpu_type=${cpu_type} | 
|---|
| 2403 | elif test ${target_cpu_type} != ${cpu_type} ; then | 
|---|
| 2404 | continue | 
|---|
| 2405 | fi | 
|---|
| 2406 |  | 
|---|
| 2407 | generic_target=${cpu_type}-$vendor-$os | 
|---|
| 2408 | dev=no | 
|---|
| 2409 | bfd_gas=no | 
|---|
| 2410 | em=generic | 
|---|
| 2411 |  | 
|---|
| 2412 | # assign object format | 
|---|
| 2413 | case ${generic_target} in | 
|---|
| 2414 | a29k-*-coff)                      fmt=coff ;; | 
|---|
| 2415 | a29k-amd-udi)                     fmt=coff ;; | 
|---|
| 2416 | a29k-amd-ebmon)                   fmt=coff ;; | 
|---|
| 2417 | a29k-nyu-sym1)                    fmt=coff ;; | 
|---|
| 2418 | a29k-*-rtems*)                    fmt=coff ;; | 
|---|
| 2419 | a29k-*-vxworks*)                  fmt=coff ;; | 
|---|
| 2420 |  | 
|---|
| 2421 | alpha*-*-*vms*)                   fmt=evax ;; | 
|---|
| 2422 | alpha*-*-netware*)                fmt=ecoff ;; | 
|---|
| 2423 | alpha*-*-osf*)                    fmt=ecoff ;; | 
|---|
| 2424 | alpha*-*-linuxecoff*)             fmt=ecoff ;; | 
|---|
| 2425 | alpha*-*-linux-gnu*)              fmt=elf em=linux ;; | 
|---|
| 2426 | alpha*-*-netbsd*)                 fmt=elf em=nbsd ;; | 
|---|
| 2427 | alpha*-*-openbsd*)                fmt=elf em=obsd ;; | 
|---|
| 2428 |  | 
|---|
| 2429 | arc-*-elf*)                       fmt=elf ;; | 
|---|
| 2430 |  | 
|---|
| 2431 | arm-*-aout)                       fmt=aout ;; | 
|---|
| 2432 | arm-*-coff | thumb-*-coff)        fmt=coff ;; | 
|---|
| 2433 | arm-*-rtems | thumb-*-rtems)      fmt=elf ;; | 
|---|
| 2434 | arm-*-elf | thumb-*-elf)          fmt=elf ;; | 
|---|
| 2435 | arm-*-kaos*)                      fmt=elf ;; | 
|---|
| 2436 | arm*-*-conix*)                    fmt=elf ;; | 
|---|
| 2437 | arm-*-linux*aout*)                fmt=aout em=linux ;; | 
|---|
| 2438 | arm*-*-linux-gnu*)                fmt=elf  em=linux ;; | 
|---|
| 2439 | arm*-*-uclinux*)                  fmt=elf  em=linux ;; | 
|---|
| 2440 | arm-*-netbsdelf*)                 fmt=elf  em=nbsd ;; | 
|---|
| 2441 | arm-*-*n*bsd*)                    fmt=aout em=nbsd ;; | 
|---|
| 2442 | arm-**-nto*)                      fmt=elf ;; | 
|---|
| 2443 | arm-*-oabi | thumb-*-oabi)        fmt=elf ;; | 
|---|
| 2444 | arm-epoc-pe | thumb-epoc-pe)      fmt=coff em=epoc-pe ;; | 
|---|
| 2445 | arm-*-wince)                      fmt=coff em=wince-pe ;; | 
|---|
| 2446 | arm-*-pe | thumb-*-pe)            fmt=coff em=pe ;; | 
|---|
| 2447 | arm-*-riscix*)                    fmt=aout em=riscix ;; | 
|---|
| 2448 | arm-*-vxworks)                    fmt=coff ;; | 
|---|
| 2449 |  | 
|---|
| 2450 | avr-*-*)                          fmt=elf ;; | 
|---|
| 2451 |  | 
|---|
| 2452 | cris-*-*)                         fmt=multi bfd_gas=yes ;; | 
|---|
| 2453 |  | 
|---|
| 2454 | d10v-*-*)                         fmt=elf ;; | 
|---|
| 2455 | d30v-*-*)                         fmt=elf ;; | 
|---|
| 2456 | dlx-*-*)                          fmt=elf ;; | 
|---|
| 2457 |  | 
|---|
| 2458 | fr30-*-*)                         fmt=elf ;; | 
|---|
| 2459 | frv-*-*)                          fmt=elf ;; | 
|---|
| 2460 |  | 
|---|
| 2461 | hppa-*-linux*)    case ${cpu} in | 
|---|
| 2462 | hppa*64*)   fmt=elf em=hppalinux64;; | 
|---|
| 2463 | hppa*)      fmt=elf em=linux;; | 
|---|
| 2464 | esac ;; | 
|---|
| 2465 | hppa-*-*elf*)                     fmt=elf em=hppa ;; | 
|---|
| 2466 | hppa-*-lites*)                    fmt=elf em=hppa ;; | 
|---|
| 2467 | hppa-*-netbsd*)                   fmt=elf em=nbsd ;; | 
|---|
| 2468 | hppa-*-openbsd*)                  fmt=elf em=hppa ;; | 
|---|
| 2469 | hppa-*-osf*)                      fmt=som em=hppa ;; | 
|---|
| 2470 | hppa-*-rtems*)                    fmt=elf em=hppa ;; | 
|---|
| 2471 | hppa-*-hpux11*)   case ${cpu} in | 
|---|
| 2472 | hppa*64*)   fmt=elf em=hppa64 ;; | 
|---|
| 2473 | hppa*)      fmt=som em=hppa ;; | 
|---|
| 2474 | esac ;; | 
|---|
| 2475 | hppa-*-hpux*)                     fmt=som em=hppa ;; | 
|---|
| 2476 | hppa-*-mpeix*)                    fmt=som em=hppa ;; | 
|---|
| 2477 | hppa-*-bsd*)                      fmt=som em=hppa ;; | 
|---|
| 2478 | hppa-*-hiux*)                     fmt=som em=hppa ;; | 
|---|
| 2479 |  | 
|---|
| 2480 | h8300-*-rtems*)                   fmt=coff ;; | 
|---|
| 2481 | h8300-*-coff)                     fmt=coff ;; | 
|---|
| 2482 | h8300-*-elf)                      fmt=elf ;; | 
|---|
| 2483 | h8500-*-rtems*)                   fmt=coff ;; | 
|---|
| 2484 | h8500-*-coff)                     fmt=coff ;; | 
|---|
| 2485 |  | 
|---|
| 2486 | i370-*-elf* | i370-*-linux*)      fmt=elf ;; | 
|---|
| 2487 | i386-ibm-aix*)                    fmt=coff em=i386aix ;; | 
|---|
| 2488 | i386-sequent-bsd*)                fmt=aout em=dynix ;; | 
|---|
| 2489 | i386-*-beospe*)                   fmt=coff em=pe ;; | 
|---|
| 2490 | i386-*-beos*)                     fmt=elf ;; | 
|---|
| 2491 | i386-*-coff)                      fmt=coff ;; | 
|---|
| 2492 | i386-*-elf)                       fmt=elf ;; | 
|---|
| 2493 | i386-*-kaos*)                     fmt=elf ;; | 
|---|
| 2494 | i386-*-bsd*)                      fmt=aout em=386bsd ;; | 
|---|
| 2495 | i386-*-netbsd0.8)                 fmt=aout em=386bsd ;; | 
|---|
| 2496 | i386-*-netbsdpe*)                 fmt=coff em=pe ;; | 
|---|
| 2497 | i386-*-netbsdelf*)                fmt=elf em=nbsd ;; | 
|---|
| 2498 | i386-*-*n*bsd*)   case ${cpu} in | 
|---|
| 2499 | x86_64)     fmt=elf em=nbsd ;; | 
|---|
| 2500 | *)          fmt=aout em=nbsd ;; | 
|---|
| 2501 | esac ;; | 
|---|
| 2502 | i386-*-linux*aout*)               fmt=aout em=linux ;; | 
|---|
| 2503 | i386-*-linux*oldld)               fmt=aout em=linux ;; | 
|---|
| 2504 | i386-*-linux*coff*)               fmt=coff em=linux ;; | 
|---|
| 2505 | i386-*-linux-gnu*)                fmt=elf em=linux ;; | 
|---|
| 2506 | x86_64-*-linux-gnu*)              fmt=elf em=linux ;; | 
|---|
| 2507 | i386-*-lynxos*)                   fmt=coff em=lynx ;; | 
|---|
| 2508 | i386-*-sysv[45]*)                 fmt=elf ;; | 
|---|
| 2509 | i386-*-solaris*)                  fmt=elf ;; | 
|---|
| 2510 | i386-*-freebsdaout*)              fmt=aout em=386bsd ;; | 
|---|
| 2511 | i386-*-freebsd[12].*)             fmt=aout em=386bsd ;; | 
|---|
| 2512 | i386-*-freebsd[12])               fmt=aout em=386bsd ;; | 
|---|
| 2513 | i386-*-sysv*)                     fmt=coff ;; | 
|---|
| 2514 | i386-*-sco3.2v5*coff)             fmt=coff ;; | 
|---|
| 2515 | i386-*-isc*)                      fmt=coff ;; | 
|---|
| 2516 | i386-*-sco3.2v5*)                 fmt=elf | 
|---|
| 2517 | if test ${this_target} = $target; then | 
|---|
| 2518 | cat >> confdefs.h <<\EOF | 
|---|
| 2519 | #define SCO_ELF 1 | 
|---|
| 2520 | EOF | 
|---|
| 2521 |  | 
|---|
| 2522 | fi ;; | 
|---|
| 2523 | i386-*-sco3.2*)                   fmt=coff ;; | 
|---|
| 2524 | i386-*-vsta)                      fmt=aout ;; | 
|---|
| 2525 | i386-*-msdosdjgpp* \ | 
|---|
| 2526 | | i386-*-go32* \ | 
|---|
| 2527 | | i386-go32-rtems*)               fmt=coff em=go32 | 
|---|
| 2528 | cat >> confdefs.h <<\EOF | 
|---|
| 2529 | #define STRICTCOFF 1 | 
|---|
| 2530 | EOF | 
|---|
| 2531 | ;; | 
|---|
| 2532 | i386-*-rtemself*)                 fmt=elf ;; | 
|---|
| 2533 | i386-*-rtemscoff*)                fmt=coff ;; | 
|---|
| 2534 | i386-*-rtems*)                    fmt=elf ;; | 
|---|
| 2535 | i386-*-gnu*)                      fmt=elf ;; | 
|---|
| 2536 | i386-*-mach*)                     fmt=aout em=mach ;; | 
|---|
| 2537 | i386-*-msdos*)                    fmt=aout ;; | 
|---|
| 2538 | i386-*-moss*)                     fmt=elf ;; | 
|---|
| 2539 | i386-*-pe)                        fmt=coff em=pe ;; | 
|---|
| 2540 | i386-*-cygwin*)                   fmt=coff em=pe ;; | 
|---|
| 2541 | i386-*-interix*)                  fmt=coff em=interix ;; | 
|---|
| 2542 | i386-*-mingw32*)                  fmt=coff em=pe ;; | 
|---|
| 2543 | i386-*-nto-qnx*)                  fmt=elf ;; | 
|---|
| 2544 | i386-*-*nt*)                      fmt=coff em=pe ;; | 
|---|
| 2545 | i386-*-os2*)          fmt=aout em=emx bfd_gas=yes ;; | 
|---|
| 2546 | i386-*-vxworks*)                  fmt=aout ;; | 
|---|
| 2547 | i386-*-chaos)                     fmt=elf ;; | 
|---|
| 2548 |  | 
|---|
| 2549 | i860-*-*)                         fmt=elf endian=little | 
|---|
| 2550 | echo "configure: warning: GAS support for ${generic_target} is preliminary and a work in progress" 1>&2 ;; | 
|---|
| 2551 | i960-*-bout)                      fmt=bout ;; | 
|---|
| 2552 | i960-*-coff)                      fmt=coff em=ic960 ;; | 
|---|
| 2553 | i960-*-rtems*)                    fmt=coff em=ic960 ;; | 
|---|
| 2554 | i960-*-nindy*)                    fmt=bout ;; | 
|---|
| 2555 | i960-*-vxworks5.0)                fmt=bout ;; | 
|---|
| 2556 | i960-*-vxworks5.*)                fmt=coff em=ic960 ;; | 
|---|
| 2557 | i960-*-vxworks*)                  fmt=bout ;; | 
|---|
| 2558 | i960-*-elf*)                      fmt=elf ;; | 
|---|
| 2559 |  | 
|---|
| 2560 | ia64-*-elf*)                      fmt=elf ;; | 
|---|
| 2561 | ia64-*-aix*)                      fmt=elf em=ia64aix ;; | 
|---|
| 2562 | ia64-*-linux-gnu*)                fmt=elf em=linux ;; | 
|---|
| 2563 | ia64-*-hpux*)                     fmt=elf em=hpux ;; | 
|---|
| 2564 | ia64-*-netbsd*)                   fmt=elf em=nbsd ;; | 
|---|
| 2565 |  | 
|---|
| 2566 | ip2k-*-*)                         fmt=elf ;; | 
|---|
| 2567 |  | 
|---|
| 2568 | iq2000-*-elf)                     fmt=elf bfd_gas=yes ;; | 
|---|
| 2569 |  | 
|---|
| 2570 | m32r-*-*)                         fmt=elf ;; | 
|---|
| 2571 |  | 
|---|
| 2572 | m68hc11-*-* | m6811-*-*)          fmt=elf ;; | 
|---|
| 2573 | m68hc12-*-* | m6812-*-*)          fmt=elf ;; | 
|---|
| 2574 |  | 
|---|
| 2575 | m68k-*-vxworks*)                  fmt=aout em=sun3 ;; | 
|---|
| 2576 | m68k-ericsson-ose)                fmt=aout em=sun3 ;; | 
|---|
| 2577 | m68k-*-sunos*)                    fmt=aout em=sun3 ;; | 
|---|
| 2578 | m68k-motorola-sysv*)              fmt=coff em=delta ;; | 
|---|
| 2579 | m68k-bull-sysv3*)                 fmt=coff em=dpx2 ;; | 
|---|
| 2580 | m68k-apollo-*)                    fmt=coff em=apollo ;; | 
|---|
| 2581 | m68k-*-elf*)                      fmt=elf ;; | 
|---|
| 2582 | m68k-*-sysv4*)                    fmt=elf em=svr4 ;; | 
|---|
| 2583 | m68k-*-sysv*)                     fmt=coff ;; | 
|---|
| 2584 | m68k-*-coff | m68k-*-rtemscoff*)  fmt=coff ;; | 
|---|
| 2585 | m68k-*-rtems*)                    fmt=elf ;; | 
|---|
| 2586 | m68k-*-hpux*)                     fmt=hp300 em=hp300 ;; | 
|---|
| 2587 | m68k-*-linux*aout*)               fmt=aout em=linux ;; | 
|---|
| 2588 | m68k-*-linux-gnu*)                fmt=elf em=linux ;; | 
|---|
| 2589 | m68k-*-gnu*)                      fmt=elf ;; | 
|---|
| 2590 | m68k-*-lynxos*)                   fmt=coff em=lynx ;; | 
|---|
| 2591 | m68k-*-netbsdelf*)                fmt=elf em=nbsd ;; | 
|---|
| 2592 | m68k-*-netbsd*)                   fmt=aout em=nbsd bfd_gas=yes ;; | 
|---|
| 2593 | m68k-*-openbsd*)                  fmt=aout em=nbsd bfd_gas=yes ;; | 
|---|
| 2594 | m68k-apple-aux*)                  fmt=coff em=aux ;; | 
|---|
| 2595 | m68k-*-psos*)                     fmt=elf em=psos;; | 
|---|
| 2596 |  | 
|---|
| 2597 | m88k-motorola-sysv3*)             fmt=coff em=delt88 ;; | 
|---|
| 2598 | m88k-*-coff*)                     fmt=coff ;; | 
|---|
| 2599 |  | 
|---|
| 2600 | mcore-*-elf)                      fmt=elf ;; | 
|---|
| 2601 | mcore-*-pe)                       fmt=coff em=pe bfd_gas=yes ;; | 
|---|
| 2602 |  | 
|---|
| 2603 | # don't change em like *-*-bsd does | 
|---|
| 2604 | mips-dec-openbsd*)                fmt=elf endian=little ;; | 
|---|
| 2605 | mips-dec-bsd*)                    fmt=aout endian=little ;; | 
|---|
| 2606 | mips-sony-bsd*)                   fmt=ecoff ;; | 
|---|
| 2607 | mips-*-bsd*) | 
|---|
| 2608 | { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;; | 
|---|
| 2609 | mips-*-ultrix*)                   fmt=ecoff endian=little ;; | 
|---|
| 2610 | mips-*-osf*)                      fmt=ecoff endian=little ;; | 
|---|
| 2611 | mips-*-ecoff*)                    fmt=ecoff ;; | 
|---|
| 2612 | mips-*-pe*)                       fmt=coff endian=little em=pe ;; | 
|---|
| 2613 | mips-*-irix6*)                    fmt=elf em=irix ;; | 
|---|
| 2614 | mips-*-irix5*)                    fmt=elf em=irix ;; | 
|---|
| 2615 | mips-*-irix*)                     fmt=ecoff em=irix ;; | 
|---|
| 2616 | mips-*-lnews*)                    fmt=ecoff em=lnews ;; | 
|---|
| 2617 | mips-*-riscos*)                   fmt=ecoff ;; | 
|---|
| 2618 | mips*-*-linux*)                   fmt=elf em=tmips ;; | 
|---|
| 2619 | mips-*-sysv4*MP* | mips-*-gnu*)   fmt=elf em=tmips ;; | 
|---|
| 2620 | mips-*-sysv*)                     fmt=ecoff ;; | 
|---|
| 2621 | mips-*-elf* | mips-*-rtems*)      fmt=elf ;; | 
|---|
| 2622 | mips-*-netbsd*)                   fmt=elf ;; | 
|---|
| 2623 | mips-*-openbsd*)                  fmt=elf ;; | 
|---|
| 2624 | mips-*-vxworks*)                  fmt=elf ;; | 
|---|
| 2625 |  | 
|---|
| 2626 | mmix-*-*)                         fmt=elf ;; | 
|---|
| 2627 | mn10200-*-*)                      fmt=elf ;; | 
|---|
| 2628 | mn10300-*-*)                      fmt=elf ;; | 
|---|
| 2629 | msp430-*-*)                       fmt=elf ;; | 
|---|
| 2630 | openrisc-*-*)                     fmt=elf ;; | 
|---|
| 2631 | or32-*-rtems*)                    fmt=coff ;; | 
|---|
| 2632 | or32-*-coff)                      fmt=coff ;; | 
|---|
| 2633 | or32-*-elf)                       fmt=elf ;; | 
|---|
| 2634 | pj*)                              fmt=elf ;; | 
|---|
| 2635 |  | 
|---|
| 2636 | ppc-*-pe | ppc-*-cygwin*)         fmt=coff em=pe ;; | 
|---|
| 2637 | ppc-*-winnt*)                     fmt=coff em=pe ;; | 
|---|
| 2638 | ppc-*-aix5*)                      fmt=coff em=aix5 ;; | 
|---|
| 2639 | ppc-*-aix*)                       fmt=coff ;; | 
|---|
| 2640 | ppc-*-beos*)                      fmt=coff ;; | 
|---|
| 2641 | ppc-*-*n*bsd* | ppc-*-elf*)       fmt=elf ;; | 
|---|
| 2642 | ppc-*-eabi* | ppc-*-sysv4*)       fmt=elf ;; | 
|---|
| 2643 | ppc-*-linux-gnu*)                 fmt=elf | 
|---|
| 2644 | case "$endian" in | 
|---|
| 2645 | big)  ;; | 
|---|
| 2646 | *)    { echo "configure: error: GNU/Linux must be configured big endian" 1>&2; exit 1; } ;; | 
|---|
| 2647 | esac ;; | 
|---|
| 2648 | ppc-*-solaris*)                   fmt=elf | 
|---|
| 2649 | if test ${this_target} = $target; then | 
|---|
| 2650 | cat >> confdefs.h <<\EOF | 
|---|
| 2651 | #define TARGET_SOLARIS_COMMENT 1 | 
|---|
| 2652 | EOF | 
|---|
| 2653 |  | 
|---|
| 2654 | fi | 
|---|
| 2655 | if test x${endian} = xbig; then | 
|---|
| 2656 | { echo "configure: error: Solaris must be configured little endian" 1>&2; exit 1; } | 
|---|
| 2657 | fi ;; | 
|---|
| 2658 | ppc-*-rtems*)                     fmt=elf ;; | 
|---|
| 2659 | ppc-*-macos* | ppc-*-mpw*)        fmt=coff em=macos ;; | 
|---|
| 2660 | ppc-*-netware*)                   fmt=elf em=ppcnw ;; | 
|---|
| 2661 | ppc-**-nto*)                      fmt=elf ;; | 
|---|
| 2662 | ppc-*-vxworks*)                   fmt=elf ;; | 
|---|
| 2663 | ppc-*-windiss*)                   fmt=elf ;; | 
|---|
| 2664 | ppc-*-kaos*)                      fmt=elf ;; | 
|---|
| 2665 |  | 
|---|
| 2666 | s390x-*-linux-gnu*)               fmt=elf em=linux ;; | 
|---|
| 2667 | s390-*-linux-gnu*)                fmt=elf em=linux ;; | 
|---|
| 2668 |  | 
|---|
| 2669 | sh*-*-linux*)                     fmt=elf em=linux | 
|---|
| 2670 | case ${cpu} in | 
|---|
| 2671 | sh*eb)  endian=big ;; | 
|---|
| 2672 | *)      endian=little ;; | 
|---|
| 2673 | esac ;; | 
|---|
| 2674 | sh5*-*-netbsd*)                   fmt=elf em=nbsd ;; | 
|---|
| 2675 | sh64*-*-netbsd*)                  fmt=elf em=nbsd ;; | 
|---|
| 2676 | sh*-*-netbsdelf*)                 fmt=elf em=nbsd ;; | 
|---|
| 2677 | sh-*-elf*)                        fmt=elf ;; | 
|---|
| 2678 | sh-*-coff*)                       fmt=coff ;; | 
|---|
| 2679 | sh-*-nto*)                        fmt=elf ;; | 
|---|
| 2680 | sh-*-pe*)                         fmt=coff em=pe bfd_gas=yes endian=little ;; | 
|---|
| 2681 | sh-*-rtemself*)                   fmt=elf ;; | 
|---|
| 2682 | sh-*-rtems*)                      fmt=coff ;; | 
|---|
| 2683 | sh-*-kaos*)                       fmt=elf ;; | 
|---|
| 2684 | shle*-*-kaos*)                    fmt=elf ;; | 
|---|
| 2685 | sh64-*-elf*)                      fmt=elf ;; | 
|---|
| 2686 |  | 
|---|
| 2687 | ns32k-pc532-mach*)                fmt=aout em=pc532mach ;; | 
|---|
| 2688 | ns32k-pc532-ux*)                  fmt=aout em=pc532mach ;; | 
|---|
| 2689 | ns32k-pc532-lites*)               fmt=aout em=nbsd532 ;; | 
|---|
| 2690 | ns32k-*-*n*bsd*)                  fmt=aout em=nbsd532 ;; | 
|---|
| 2691 |  | 
|---|
| 2692 | sparc-*-rtemsaout*)               fmt=aout ;; | 
|---|
| 2693 | sparc-*-rtemself*)                fmt=elf ;; | 
|---|
| 2694 | sparc-*-rtems*)                   fmt=elf ;; | 
|---|
| 2695 | sparc-*-sunos4*)                  fmt=aout em=sun3 ;; | 
|---|
| 2696 | sparc-*-aout | sparc*-*-vxworks*) fmt=aout em=sparcaout ;; | 
|---|
| 2697 | sparc-*-coff)                     fmt=coff ;; | 
|---|
| 2698 | sparc-*-linux*aout*)              fmt=aout em=linux ;; | 
|---|
| 2699 | sparc-*-linux-gnu*)               fmt=elf em=linux ;; | 
|---|
| 2700 | sparc-*-lynxos*)                  fmt=coff em=lynx ;; | 
|---|
| 2701 | sparc-fujitsu-none)               fmt=aout ;; | 
|---|
| 2702 | sparc-*-elf)                      fmt=elf ;; | 
|---|
| 2703 | sparc-*-sysv4*)                   fmt=elf ;; | 
|---|
| 2704 | sparc-*-solaris*)                 fmt=elf ;; | 
|---|
| 2705 | sparc-*-netbsdelf*)               fmt=elf em=nbsd ;; | 
|---|
| 2706 | sparc-*-*n*bsd*)  case ${cpu} in | 
|---|
| 2707 | sparc64)    fmt=elf em=nbsd ;; | 
|---|
| 2708 | *)          fmt=aout em=nbsd ;; | 
|---|
| 2709 | esac ;; | 
|---|
| 2710 | strongarm-*-coff)                 fmt=coff ;; | 
|---|
| 2711 | strongarm-*-elf)                  fmt=elf ;; | 
|---|
| 2712 | strongarm-*-kaos*)                fmt=elf ;; | 
|---|
| 2713 | xscale-*-coff)                    fmt=coff ;; | 
|---|
| 2714 | xscale-*-elf)                     fmt=elf ;; | 
|---|
| 2715 |  | 
|---|
| 2716 | tic30-*-*aout*)                   fmt=aout bfd_gas=yes ;; | 
|---|
| 2717 | tic30-*-*coff*)                   fmt=coff bfd_gas=yes ;; | 
|---|
| 2718 | tic4x-*-* | c4x-*-*)              fmt=coff bfd_gas=yes ;; | 
|---|
| 2719 | tic54x-*-* | c54x*-*-*)           fmt=coff bfd_gas=yes need_libm=yes;; | 
|---|
| 2720 | tic80-*-*)                        fmt=coff ;; | 
|---|
| 2721 |  | 
|---|
| 2722 | v850-*-*)                         fmt=elf ;; | 
|---|
| 2723 | v850e-*-*)                        fmt=elf ;; | 
|---|
| 2724 | v850ea-*-*)                       fmt=elf ;; | 
|---|
| 2725 |  | 
|---|
| 2726 | vax-*-netbsdelf*)                 fmt=elf em=nbsd ;; | 
|---|
| 2727 | vax-*-netbsd*)                    fmt=aout em=nbsd ;; | 
|---|
| 2728 | vax-*-bsd* | vax-*-ultrix*)       fmt=aout ;; | 
|---|
| 2729 | vax-*-vms)                        fmt=vms ;; | 
|---|
| 2730 |  | 
|---|
| 2731 | w65-*-*)                          fmt=coff ;; | 
|---|
| 2732 |  | 
|---|
| 2733 | xstormy16-*-*)                    fmt=elf ;; | 
|---|
| 2734 |  | 
|---|
| 2735 | xtensa-*-*)                       fmt=elf ;; | 
|---|
| 2736 |  | 
|---|
| 2737 | z8k-*-coff | z8k-*-sim)           fmt=coff ;; | 
|---|
| 2738 |  | 
|---|
| 2739 | *-*-aout | *-*-scout)             fmt=aout ;; | 
|---|
| 2740 | *-*-freebsd*)                     fmt=elf em=freebsd ;; | 
|---|
| 2741 | *-*-nindy*)                       fmt=bout ;; | 
|---|
| 2742 | *-*-bsd*)                         fmt=aout em=sun3 ;; | 
|---|
| 2743 | *-*-generic)                      fmt=generic ;; | 
|---|
| 2744 | *-*-xray | *-*-hms)               fmt=coff ;; | 
|---|
| 2745 | *-*-sim)                          fmt=coff ;; | 
|---|
| 2746 | *-*-elf | *-*-sysv4* | *-*-solaris*) fmt=elf dev=yes ;; | 
|---|
| 2747 | *-*-aros*)                                fmt=elf em=linux bfd_gas=yes ;; | 
|---|
| 2748 | *-*-vxworks)                      fmt=aout ;; | 
|---|
| 2749 | *-*-netware)                      fmt=elf ;; | 
|---|
| 2750 | esac | 
|---|
| 2751 |  | 
|---|
| 2752 | if test ${this_target} = $target ; then | 
|---|
| 2753 | endian_def= | 
|---|
| 2754 | if test x${endian} = xbig; then | 
|---|
| 2755 | endian_def=1 | 
|---|
| 2756 | elif test x${endian} = xlittle; then | 
|---|
| 2757 | endian_def=0 | 
|---|
| 2758 | fi | 
|---|
| 2759 | if test x${endian_def} != x; then | 
|---|
| 2760 | cat >> confdefs.h <<EOF | 
|---|
| 2761 | #define TARGET_BYTES_BIG_ENDIAN $endian_def | 
|---|
| 2762 | EOF | 
|---|
| 2763 |  | 
|---|
| 2764 | fi | 
|---|
| 2765 | fi | 
|---|
| 2766 |  | 
|---|
| 2767 | case ${cpu_type}-${fmt} in | 
|---|
| 2768 | alpha*-* | arm-* | i386-* | ia64*-* | mips-* | ns32k-* \ | 
|---|
| 2769 | | pdp11-* | ppc-* | sparc-* | strongarm-* | xscale-* \ | 
|---|
| 2770 | | *-elf | *-ecoff | *-som) | 
|---|
| 2771 | bfd_gas=yes ;; | 
|---|
| 2772 | esac | 
|---|
| 2773 |  | 
|---|
| 2774 | # Other random stuff. | 
|---|
| 2775 |  | 
|---|
| 2776 | case ${cpu_type} in | 
|---|
| 2777 | mips) | 
|---|
| 2778 | # Set mips_cpu to the name of the default CPU. | 
|---|
| 2779 | case ${target_cpu} in | 
|---|
| 2780 | mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el) | 
|---|
| 2781 | mips_cpu=from-abi | 
|---|
| 2782 | ;; | 
|---|
| 2783 | mipsisa32 | mipsisa32el) | 
|---|
| 2784 | mips_cpu=mips32 | 
|---|
| 2785 | ;; | 
|---|
| 2786 | mipsisa32r2 | mipsisa32r2el) | 
|---|
| 2787 | mips_cpu=mips32r2 | 
|---|
| 2788 | ;; | 
|---|
| 2789 | mipsisa64 | mipsisa64el) | 
|---|
| 2790 | mips_cpu=mips64 | 
|---|
| 2791 | ;; | 
|---|
| 2792 | mipstx39 | mipstx39el) | 
|---|
| 2793 | mips_cpu=r3900 | 
|---|
| 2794 | ;; | 
|---|
| 2795 | mips64vr | mips64vrel) | 
|---|
| 2796 | mips_cpu=vr4100 | 
|---|
| 2797 | ;; | 
|---|
| 2798 | mipsisa32r2*) | 
|---|
| 2799 | mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'` | 
|---|
| 2800 | ;; | 
|---|
| 2801 | mips64* | mipsisa64* | mipsisa32*) | 
|---|
| 2802 | mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'` | 
|---|
| 2803 | ;; | 
|---|
| 2804 | *) | 
|---|
| 2805 | { echo "configure: error: $target_cpu isn't a supported MIPS CPU name" 1>&2; exit 1; } | 
|---|
| 2806 | ;; | 
|---|
| 2807 | esac | 
|---|
| 2808 | # See whether it's appropriate to set E_MIPS_ABI_O32 for o32 | 
|---|
| 2809 | # binaries.  It's a GNU extension that some OSes don't understand. | 
|---|
| 2810 | # The value only matters on ELF targets. | 
|---|
| 2811 | case ${target} in | 
|---|
| 2812 | *-*-irix*) | 
|---|
| 2813 | use_e_mips_abi_o32=0 | 
|---|
| 2814 | ;; | 
|---|
| 2815 | *) | 
|---|
| 2816 | use_e_mips_abi_o32=1 | 
|---|
| 2817 | ;; | 
|---|
| 2818 | esac | 
|---|
| 2819 | # Decide whether to generate 32-bit or 64-bit code by default. | 
|---|
| 2820 | # Used to resolve -march=from-abi when an embedded ABI is selected. | 
|---|
| 2821 | case ${target} in | 
|---|
| 2822 | mips64*-*-* | mipsisa64*-*-*) | 
|---|
| 2823 | mips_default_64bit=1 | 
|---|
| 2824 | ;; | 
|---|
| 2825 | *) | 
|---|
| 2826 | mips_default_64bit=0 | 
|---|
| 2827 | ;; | 
|---|
| 2828 | esac | 
|---|
| 2829 | # Decide which ABI to target by default. | 
|---|
| 2830 | case ${target} in | 
|---|
| 2831 | mips64*-linux* | mips-sgi-irix6*) | 
|---|
| 2832 | mips_default_abi=N32_ABI | 
|---|
| 2833 | ;; | 
|---|
| 2834 | mips*-linux*) | 
|---|
| 2835 | mips_default_abi=O32_ABI | 
|---|
| 2836 | ;; | 
|---|
| 2837 | *) | 
|---|
| 2838 | mips_default_abi=NO_ABI | 
|---|
| 2839 | ;; | 
|---|
| 2840 | esac | 
|---|
| 2841 | cat >> confdefs.h <<EOF | 
|---|
| 2842 | #define MIPS_CPU_STRING_DEFAULT "$mips_cpu" | 
|---|
| 2843 | EOF | 
|---|
| 2844 |  | 
|---|
| 2845 | cat >> confdefs.h <<EOF | 
|---|
| 2846 | #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32 | 
|---|
| 2847 | EOF | 
|---|
| 2848 |  | 
|---|
| 2849 | cat >> confdefs.h <<EOF | 
|---|
| 2850 | #define MIPS_DEFAULT_64BIT $mips_default_64bit | 
|---|
| 2851 | EOF | 
|---|
| 2852 |  | 
|---|
| 2853 | cat >> confdefs.h <<EOF | 
|---|
| 2854 | #define MIPS_DEFAULT_ABI $mips_default_abi | 
|---|
| 2855 | EOF | 
|---|
| 2856 |  | 
|---|
| 2857 | ;; | 
|---|
| 2858 | esac | 
|---|
| 2859 |  | 
|---|
| 2860 | # Do we need the opcodes library? | 
|---|
| 2861 | case ${cpu_type} in | 
|---|
| 2862 | vax | i386 | tic30) | 
|---|
| 2863 | ;; | 
|---|
| 2864 |  | 
|---|
| 2865 | *) | 
|---|
| 2866 | need_opcodes=yes | 
|---|
| 2867 |  | 
|---|
| 2868 | case "${enable_shared}" in | 
|---|
| 2869 | yes) shared_opcodes=true ;; | 
|---|
| 2870 | *opcodes*) shared_opcodes=true ;; | 
|---|
| 2871 | *) shared_opcodes=false ;; | 
|---|
| 2872 | esac | 
|---|
| 2873 | if test "${shared_opcodes}" = "true"; then | 
|---|
| 2874 | # A shared libopcodes must be linked against libbfd. | 
|---|
| 2875 | need_bfd=yes | 
|---|
| 2876 | fi | 
|---|
| 2877 | ;; | 
|---|
| 2878 | esac | 
|---|
| 2879 |  | 
|---|
| 2880 | # Any other special object files needed ? | 
|---|
| 2881 | case ${cpu_type} in | 
|---|
| 2882 | fr30 | ip2k | iq2000 | m32r | openrisc) | 
|---|
| 2883 | using_cgen=yes | 
|---|
| 2884 | ;; | 
|---|
| 2885 |  | 
|---|
| 2886 | frv) | 
|---|
| 2887 | using_cgen=yes | 
|---|
| 2888 | ;; | 
|---|
| 2889 | m68k) | 
|---|
| 2890 | case ${extra_objects} in | 
|---|
| 2891 | *m68k-parse.o*) ;; | 
|---|
| 2892 | *) extra_objects="$extra_objects m68k-parse.o" ;; | 
|---|
| 2893 | esac | 
|---|
| 2894 | ;; | 
|---|
| 2895 |  | 
|---|
| 2896 | mips) | 
|---|
| 2897 | echo ${extra_objects} | grep -s "itbl-parse.o" | 
|---|
| 2898 | if test $? -ne 0 ; then | 
|---|
| 2899 | extra_objects="$extra_objects itbl-parse.o" | 
|---|
| 2900 | fi | 
|---|
| 2901 |  | 
|---|
| 2902 | echo ${extra_objects} | grep -s "itbl-lex.o" | 
|---|
| 2903 | if test $? -ne 0 ; then | 
|---|
| 2904 | extra_objects="$extra_objects itbl-lex.o" | 
|---|
| 2905 | fi | 
|---|
| 2906 |  | 
|---|
| 2907 | echo ${extra_objects} | grep -s "itbl-ops.o" | 
|---|
| 2908 | if test $? -ne 0 ; then | 
|---|
| 2909 | extra_objects="$extra_objects itbl-ops.o" | 
|---|
| 2910 | fi | 
|---|
| 2911 | ;; | 
|---|
| 2912 |  | 
|---|
| 2913 | i386 | s390 | sparc) | 
|---|
| 2914 | if test $this_target = $target ; then | 
|---|
| 2915 | cat >> confdefs.h <<EOF | 
|---|
| 2916 | #define DEFAULT_ARCH "${arch}" | 
|---|
| 2917 | EOF | 
|---|
| 2918 |  | 
|---|
| 2919 | fi | 
|---|
| 2920 | ;; | 
|---|
| 2921 |  | 
|---|
| 2922 | xstormy16) | 
|---|
| 2923 | using_cgen=yes | 
|---|
| 2924 | ;; | 
|---|
| 2925 |  | 
|---|
| 2926 | xtensa) | 
|---|
| 2927 | echo ${extra_objects} | grep -s "xtensa-relax.o" | 
|---|
| 2928 | if test $? -ne 0 ; then | 
|---|
| 2929 | extra_objects="$extra_objects xtensa-relax.o" | 
|---|
| 2930 | fi | 
|---|
| 2931 | ;; | 
|---|
| 2932 |  | 
|---|
| 2933 | *) | 
|---|
| 2934 | ;; | 
|---|
| 2935 | esac | 
|---|
| 2936 |  | 
|---|
| 2937 | if test $using_cgen = yes ; then | 
|---|
| 2938 | case "x${extra_objects}" in | 
|---|
| 2939 | *cgen.o*) ;; | 
|---|
| 2940 | *) extra_objects="$extra_objects cgen.o" ;; | 
|---|
| 2941 | esac | 
|---|
| 2942 | fi | 
|---|
| 2943 |  | 
|---|
| 2944 | # See if we really can support this configuration with the emulation code. | 
|---|
| 2945 |  | 
|---|
| 2946 | if test $this_target = $target ; then | 
|---|
| 2947 | primary_bfd_gas=$bfd_gas | 
|---|
| 2948 | obj_format=$fmt | 
|---|
| 2949 | te_file=$em | 
|---|
| 2950 |  | 
|---|
| 2951 | if test $bfd_gas = no ; then | 
|---|
| 2952 | # Can't support other configurations this way. | 
|---|
| 2953 | break | 
|---|
| 2954 | fi | 
|---|
| 2955 | elif test $bfd_gas = no ; then | 
|---|
| 2956 | # Can't support this configuration. | 
|---|
| 2957 | break | 
|---|
| 2958 | fi | 
|---|
| 2959 |  | 
|---|
| 2960 | # From target name and format, produce a list of supported emulations. | 
|---|
| 2961 |  | 
|---|
| 2962 | case ${generic_target}-${fmt} in | 
|---|
| 2963 | mips-*-irix5*-*)  emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;; | 
|---|
| 2964 | mips*-*-linux*-*) case "$endian" in | 
|---|
| 2965 | big)    emulation="mipsbelf mipslelf mipself" ;; | 
|---|
| 2966 | *)      emulation="mipslelf mipsbelf mipself" ;; | 
|---|
| 2967 | esac ;; | 
|---|
| 2968 | mips-*-lnews*-ecoff) ;; | 
|---|
| 2969 | mips-*-*-ecoff)   case "$endian" in | 
|---|
| 2970 | big)    emulation="mipsbecoff mipslecoff mipsecoff" ;; | 
|---|
| 2971 | *)      emulation="mipslecoff mipsbecoff mipsecoff" ;; | 
|---|
| 2972 | esac ;; | 
|---|
| 2973 | mips-*-*-elf)     case "$endian" in | 
|---|
| 2974 | big)    emulation="mipsbelf mipslelf mipself" ;; | 
|---|
| 2975 | *)      emulation="mipslelf mipsbelf mipself" ;; | 
|---|
| 2976 | esac ;; | 
|---|
| 2977 | mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;; | 
|---|
| 2978 | # i386-pc-pe-coff != i386-pc-coff. | 
|---|
| 2979 | i386-*-pe-coff)   ;; | 
|---|
| 2980 | # Uncommenting the next line will turn on support for i386 AOUT | 
|---|
| 2981 | # for the default linux configuration | 
|---|
| 2982 | # i386-*-linux*-elf) emulation="i386elf i386aout" ;; | 
|---|
| 2983 | # | 
|---|
| 2984 | i386-*-aout)      emulation="i386aout" ;; | 
|---|
| 2985 | i386-*-coff)      emulation="i386coff" ;; | 
|---|
| 2986 | i386-*-elf)       emulation="i386elf" ;; | 
|---|
| 2987 |  | 
|---|
| 2988 | # Always all formats.  The first stated emulation becomes the default. | 
|---|
| 2989 | cris-*-*aout*)    emulation="crisaout criself" ;; | 
|---|
| 2990 | cris-*-*)         emulation="criself crisaout" ;; | 
|---|
| 2991 | esac | 
|---|
| 2992 |  | 
|---|
| 2993 | emulations="$emulations $emulation" | 
|---|
| 2994 |  | 
|---|
| 2995 | done | 
|---|
| 2996 |  | 
|---|
| 2997 | # Turn on all targets if possible | 
|---|
| 2998 | if test ${all_targets} = "yes"; then | 
|---|
| 2999 | case ${target_cpu_type} in | 
|---|
| 3000 | i386) | 
|---|
| 3001 | case ${obj_format} in | 
|---|
| 3002 | aout) | 
|---|
| 3003 | emulations="$emulations i386coff i386elf" | 
|---|
| 3004 | ;; | 
|---|
| 3005 | coff) | 
|---|
| 3006 | emulations="$emulations i386aout i386elf" | 
|---|
| 3007 | ;; | 
|---|
| 3008 | elf) | 
|---|
| 3009 | emulations="$emulations i386aout i386coff" | 
|---|
| 3010 | ;; | 
|---|
| 3011 | esac | 
|---|
| 3012 | ;; | 
|---|
| 3013 | esac | 
|---|
| 3014 | fi | 
|---|
| 3015 |  | 
|---|
| 3016 | # Assign floating point type.  Most processors with FP support | 
|---|
| 3017 | # IEEE FP.  On those that don't support FP at all, usually IEEE | 
|---|
| 3018 | # is emulated. | 
|---|
| 3019 | case ${target_cpu} in | 
|---|
| 3020 | vax | tahoe ) atof=${target_cpu} ;; | 
|---|
| 3021 | pdp11)        atof=vax ;; | 
|---|
| 3022 | *)            atof=ieee ;; | 
|---|
| 3023 | esac | 
|---|
| 3024 |  | 
|---|
| 3025 | case "${obj_format}" in | 
|---|
| 3026 | "") { echo "configure: error: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;; | 
|---|
| 3027 | esac | 
|---|
| 3028 |  | 
|---|
| 3029 | # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU). | 
|---|
| 3030 | cgen_cpu_prefix="" | 
|---|
| 3031 | if test $using_cgen = yes ; then | 
|---|
| 3032 | case ${target_cpu} in | 
|---|
| 3033 | *) cgen_cpu_prefix=${target_cpu} ;; | 
|---|
| 3034 | esac | 
|---|
| 3035 |  | 
|---|
| 3036 | cat >> confdefs.h <<\EOF | 
|---|
| 3037 | #define USING_CGEN 1 | 
|---|
| 3038 | EOF | 
|---|
| 3039 |  | 
|---|
| 3040 | fi | 
|---|
| 3041 |  | 
|---|
| 3042 |  | 
|---|
| 3043 | if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then | 
|---|
| 3044 | { echo "configure: error: GAS does not support target CPU ${target_cpu_type}" 1>&2; exit 1; } | 
|---|
| 3045 | fi | 
|---|
| 3046 |  | 
|---|
| 3047 | if test ! -r ${srcdir}/config/obj-${obj_format}.c; then | 
|---|
| 3048 | { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; } | 
|---|
| 3049 | fi | 
|---|
| 3050 |  | 
|---|
| 3051 | case ${user_bfd_gas}-${primary_bfd_gas} in | 
|---|
| 3052 | yes-yes | no-no) | 
|---|
| 3053 | # We didn't override user's choice. | 
|---|
| 3054 | ;; | 
|---|
| 3055 | no-yes) | 
|---|
| 3056 | echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2 | 
|---|
| 3057 | ;; | 
|---|
| 3058 | no-preferred) | 
|---|
| 3059 | primary_bfd_gas=no | 
|---|
| 3060 | ;; | 
|---|
| 3061 | *-preferred) | 
|---|
| 3062 | primary_bfd_gas=yes | 
|---|
| 3063 | ;; | 
|---|
| 3064 | yes-*) | 
|---|
| 3065 | primary_bfd_gas=yes | 
|---|
| 3066 | ;; | 
|---|
| 3067 | -*) | 
|---|
| 3068 | # User specified nothing. | 
|---|
| 3069 | ;; | 
|---|
| 3070 | esac | 
|---|
| 3071 |  | 
|---|
| 3072 | # Some COFF configurations want these random other flags set. | 
|---|
| 3073 | case ${obj_format} in | 
|---|
| 3074 | coff) | 
|---|
| 3075 | case ${target_cpu_type} in | 
|---|
| 3076 | i386) cat >> confdefs.h <<\EOF | 
|---|
| 3077 | #define I386COFF 1 | 
|---|
| 3078 | EOF | 
|---|
| 3079 | ;; | 
|---|
| 3080 | m68k) cat >> confdefs.h <<\EOF | 
|---|
| 3081 | #define M68KCOFF 1 | 
|---|
| 3082 | EOF | 
|---|
| 3083 | ;; | 
|---|
| 3084 | m88k) cat >> confdefs.h <<\EOF | 
|---|
| 3085 | #define M88KCOFF 1 | 
|---|
| 3086 | EOF | 
|---|
| 3087 | ;; | 
|---|
| 3088 | esac | 
|---|
| 3089 | ;; | 
|---|
| 3090 | esac | 
|---|
| 3091 |  | 
|---|
| 3092 | # Getting this done right is going to be a bitch.  Each configuration specified | 
|---|
| 3093 | # with --enable-targets=... should be checked for environment, format, cpu, and | 
|---|
| 3094 | # bfd_gas setting. | 
|---|
| 3095 | # | 
|---|
| 3096 | # For each configuration, the necessary object file support code must be linked | 
|---|
| 3097 | # in.  This might be only one, it might be up to four.  The necessary emulation | 
|---|
| 3098 | # code needs to be provided, too. | 
|---|
| 3099 | # | 
|---|
| 3100 | # And then there's "--enable-targets=all".... | 
|---|
| 3101 | # | 
|---|
| 3102 | # For now, just always do it for MIPS ELF or ECOFF configurations.  Sigh. | 
|---|
| 3103 |  | 
|---|
| 3104 | formats="${obj_format}" | 
|---|
| 3105 | emfiles="" | 
|---|
| 3106 | EMULATIONS="" | 
|---|
| 3107 | _gas_uniq_list="$emulations" | 
|---|
| 3108 | _gas_uniq_newlist="" | 
|---|
| 3109 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | 
|---|
| 3110 | case $_gas_uniq_i in | 
|---|
| 3111 | _gas_uniq_dummy) ;; | 
|---|
| 3112 | *) case " $_gas_uniq_newlist " in | 
|---|
| 3113 | *" $_gas_uniq_i "*) ;; | 
|---|
| 3114 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | 
|---|
| 3115 | esac ;; | 
|---|
| 3116 | esac | 
|---|
| 3117 | done | 
|---|
| 3118 | emulations=$_gas_uniq_newlist | 
|---|
| 3119 |  | 
|---|
| 3120 | for em in . $emulations ; do | 
|---|
| 3121 | case $em in | 
|---|
| 3122 | .)  continue ;; | 
|---|
| 3123 | mipsbelf | mipslelf | mipself) | 
|---|
| 3124 | fmt=elf   file=mipself ;; | 
|---|
| 3125 | mipsbecoff | mipslecoff | mipsecoff) | 
|---|
| 3126 | fmt=ecoff file=mipsecoff ;; | 
|---|
| 3127 | *coff) | 
|---|
| 3128 | fmt=coff  file=$em ;; | 
|---|
| 3129 | *aout) | 
|---|
| 3130 | fmt=aout file=$em ;; | 
|---|
| 3131 | *elf) | 
|---|
| 3132 | fmt=elf file=$em ;; | 
|---|
| 3133 | esac | 
|---|
| 3134 | formats="$formats $fmt" | 
|---|
| 3135 | emfiles="$emfiles e-$file.o" | 
|---|
| 3136 | EMULATIONS="$EMULATIONS &$em," | 
|---|
| 3137 | done | 
|---|
| 3138 | _gas_uniq_list="$formats" | 
|---|
| 3139 | _gas_uniq_newlist="" | 
|---|
| 3140 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | 
|---|
| 3141 | case $_gas_uniq_i in | 
|---|
| 3142 | _gas_uniq_dummy) ;; | 
|---|
| 3143 | *) case " $_gas_uniq_newlist " in | 
|---|
| 3144 | *" $_gas_uniq_i "*) ;; | 
|---|
| 3145 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | 
|---|
| 3146 | esac ;; | 
|---|
| 3147 | esac | 
|---|
| 3148 | done | 
|---|
| 3149 | formats=$_gas_uniq_newlist | 
|---|
| 3150 |  | 
|---|
| 3151 | _gas_uniq_list="$emfiles" | 
|---|
| 3152 | _gas_uniq_newlist="" | 
|---|
| 3153 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | 
|---|
| 3154 | case $_gas_uniq_i in | 
|---|
| 3155 | _gas_uniq_dummy) ;; | 
|---|
| 3156 | *) case " $_gas_uniq_newlist " in | 
|---|
| 3157 | *" $_gas_uniq_i "*) ;; | 
|---|
| 3158 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | 
|---|
| 3159 | esac ;; | 
|---|
| 3160 | esac | 
|---|
| 3161 | done | 
|---|
| 3162 | emfiles=$_gas_uniq_newlist | 
|---|
| 3163 |  | 
|---|
| 3164 | if test `set . $formats ; shift ; echo $#` -gt 1 ; then | 
|---|
| 3165 | for fmt in $formats ; do | 
|---|
| 3166 | case $fmt in | 
|---|
| 3167 | aout)     cat >> confdefs.h <<\EOF | 
|---|
| 3168 | #define OBJ_MAYBE_AOUT 1 | 
|---|
| 3169 | EOF | 
|---|
| 3170 | ;; | 
|---|
| 3171 | bout)     cat >> confdefs.h <<\EOF | 
|---|
| 3172 | #define OBJ_MAYBE_BOUT 1 | 
|---|
| 3173 | EOF | 
|---|
| 3174 | ;; | 
|---|
| 3175 | coff)     cat >> confdefs.h <<\EOF | 
|---|
| 3176 | #define OBJ_MAYBE_COFF 1 | 
|---|
| 3177 | EOF | 
|---|
| 3178 | ;; | 
|---|
| 3179 | ecoff)    cat >> confdefs.h <<\EOF | 
|---|
| 3180 | #define OBJ_MAYBE_ECOFF 1 | 
|---|
| 3181 | EOF | 
|---|
| 3182 | ;; | 
|---|
| 3183 | elf)      cat >> confdefs.h <<\EOF | 
|---|
| 3184 | #define OBJ_MAYBE_ELF 1 | 
|---|
| 3185 | EOF | 
|---|
| 3186 | ;; | 
|---|
| 3187 | generic)  cat >> confdefs.h <<\EOF | 
|---|
| 3188 | #define OBJ_MAYBE_GENERIC 1 | 
|---|
| 3189 | EOF | 
|---|
| 3190 | ;; | 
|---|
| 3191 | hp300)    cat >> confdefs.h <<\EOF | 
|---|
| 3192 | #define OBJ_MAYBE_HP300 1 | 
|---|
| 3193 | EOF | 
|---|
| 3194 | ;; | 
|---|
| 3195 | ieee)     cat >> confdefs.h <<\EOF | 
|---|
| 3196 | #define OBJ_MAYBE_IEEE 1 | 
|---|
| 3197 | EOF | 
|---|
| 3198 | ;; | 
|---|
| 3199 | som)      cat >> confdefs.h <<\EOF | 
|---|
| 3200 | #define OBJ_MAYBE_SOM 1 | 
|---|
| 3201 | EOF | 
|---|
| 3202 | ;; | 
|---|
| 3203 | vms)      cat >> confdefs.h <<\EOF | 
|---|
| 3204 | #define OBJ_MAYBE_VMS 1 | 
|---|
| 3205 | EOF | 
|---|
| 3206 | ;; | 
|---|
| 3207 | esac | 
|---|
| 3208 | extra_objects="$extra_objects obj-$fmt.o" | 
|---|
| 3209 | done | 
|---|
| 3210 | obj_format=multi | 
|---|
| 3211 | fi | 
|---|
| 3212 | if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then | 
|---|
| 3213 | DEFAULT_EMULATION=`set . $emulations ; echo $2` | 
|---|
| 3214 | # e-mips* has more than one emulation per file, e-i386* has just one at the | 
|---|
| 3215 | # moment.  If only one emulation is specified, then don't define | 
|---|
| 3216 | # USE_EMULATIONS or include any of the e-files as they will only be bloat. | 
|---|
| 3217 | case "${obj_format}${emfiles}" in | 
|---|
| 3218 | multi* | *mips*) | 
|---|
| 3219 | extra_objects="$extra_objects $emfiles" | 
|---|
| 3220 | cat >> confdefs.h <<\EOF | 
|---|
| 3221 | #define USE_EMULATIONS 1 | 
|---|
| 3222 | EOF | 
|---|
| 3223 | ;; | 
|---|
| 3224 | esac | 
|---|
| 3225 | fi | 
|---|
| 3226 |  | 
|---|
| 3227 | cat >> confdefs.h <<EOF | 
|---|
| 3228 | #define EMULATIONS $EMULATIONS | 
|---|
| 3229 | EOF | 
|---|
| 3230 |  | 
|---|
| 3231 | cat >> confdefs.h <<EOF | 
|---|
| 3232 | #define DEFAULT_EMULATION "$DEFAULT_EMULATION" | 
|---|
| 3233 | EOF | 
|---|
| 3234 |  | 
|---|
| 3235 |  | 
|---|
| 3236 | case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in | 
|---|
| 3237 | yes-*-coff)   need_bfd=yes ;; | 
|---|
| 3238 | no-*-coff)    need_bfd=yes | 
|---|
| 3239 | cat >> confdefs.h <<\EOF | 
|---|
| 3240 | #define MANY_SEGMENTS 1 | 
|---|
| 3241 | EOF | 
|---|
| 3242 | ;; | 
|---|
| 3243 | esac | 
|---|
| 3244 |  | 
|---|
| 3245 | reject_dev_configs=yes | 
|---|
| 3246 |  | 
|---|
| 3247 | case ${reject_dev_configs}-${dev} in | 
|---|
| 3248 | yes-yes) # Oops. | 
|---|
| 3249 | { echo "configure: error: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; } | 
|---|
| 3250 | ;; | 
|---|
| 3251 | esac | 
|---|
| 3252 |  | 
|---|
| 3253 |  | 
|---|
| 3254 |  | 
|---|
| 3255 |  | 
|---|
| 3256 |  | 
|---|
| 3257 |  | 
|---|
| 3258 |  | 
|---|
| 3259 | case "${primary_bfd_gas}" in | 
|---|
| 3260 | yes)  cat >> confdefs.h <<\EOF | 
|---|
| 3261 | #define BFD_ASSEMBLER 1 | 
|---|
| 3262 | EOF | 
|---|
| 3263 |  | 
|---|
| 3264 | need_bfd=yes ;; | 
|---|
| 3265 | esac | 
|---|
| 3266 |  | 
|---|
| 3267 | # do we need the opcodes library? | 
|---|
| 3268 | case "${need_opcodes}" in | 
|---|
| 3269 | yes) | 
|---|
| 3270 | OPCODES_LIB=../opcodes/libopcodes.la | 
|---|
| 3271 | ;; | 
|---|
| 3272 | esac | 
|---|
| 3273 |  | 
|---|
| 3274 | case "${need_bfd}" in | 
|---|
| 3275 | yes) | 
|---|
| 3276 | BFDLIB=../bfd/libbfd.la | 
|---|
| 3277 | BFDVER_H=../bfd/bfdver.h | 
|---|
| 3278 | ALL_OBJ_DEPS="$ALL_OBJ_DEPS"' ../bfd/bfd.h $(INCDIR)/symcat.h' | 
|---|
| 3279 | ;; | 
|---|
| 3280 | esac | 
|---|
| 3281 |  | 
|---|
| 3282 |  | 
|---|
| 3283 |  | 
|---|
| 3284 |  | 
|---|
| 3285 |  | 
|---|
| 3286 |  | 
|---|
| 3287 |  | 
|---|
| 3288 | cat >> confdefs.h <<EOF | 
|---|
| 3289 | #define TARGET_ALIAS "${target_alias}" | 
|---|
| 3290 | EOF | 
|---|
| 3291 |  | 
|---|
| 3292 | cat >> confdefs.h <<EOF | 
|---|
| 3293 | #define TARGET_CANONICAL "${target}" | 
|---|
| 3294 | EOF | 
|---|
| 3295 |  | 
|---|
| 3296 | cat >> confdefs.h <<EOF | 
|---|
| 3297 | #define TARGET_CPU "${target_cpu}" | 
|---|
| 3298 | EOF | 
|---|
| 3299 |  | 
|---|
| 3300 | cat >> confdefs.h <<EOF | 
|---|
| 3301 | #define TARGET_VENDOR "${target_vendor}" | 
|---|
| 3302 | EOF | 
|---|
| 3303 |  | 
|---|
| 3304 | cat >> confdefs.h <<EOF | 
|---|
| 3305 | #define TARGET_OS "${target_os}" | 
|---|
| 3306 | EOF | 
|---|
| 3307 |  | 
|---|
| 3308 |  | 
|---|
| 3309 | # Extract the first word of "gcc", so it can be a program name with args. | 
|---|
| 3310 | set dummy gcc; ac_word=$2 | 
|---|
| 3311 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 3312 | echo "configure:3313: checking for $ac_word" >&5 | 
|---|
| 3313 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 
|---|
| 3314 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3315 | else | 
|---|
| 3316 | if test -n "$CC"; then | 
|---|
| 3317 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|---|
| 3318 | else | 
|---|
| 3319 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 3320 | ac_dummy="$PATH" | 
|---|
| 3321 | for ac_dir in $ac_dummy; do | 
|---|
| 3322 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 3323 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 3324 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 3325 | ac_cv_prog_CC="gcc" | 
|---|
| 3326 | break | 
|---|
| 3327 | fi | 
|---|
| 3328 | done | 
|---|
| 3329 | IFS="$ac_save_ifs" | 
|---|
| 3330 | fi | 
|---|
| 3331 | fi | 
|---|
| 3332 | CC="$ac_cv_prog_CC" | 
|---|
| 3333 | if test -n "$CC"; then | 
|---|
| 3334 | echo "$ac_t""$CC" 1>&6 | 
|---|
| 3335 | else | 
|---|
| 3336 | echo "$ac_t""no" 1>&6 | 
|---|
| 3337 | fi | 
|---|
| 3338 |  | 
|---|
| 3339 | if test -z "$CC"; then | 
|---|
| 3340 | # Extract the first word of "cc", so it can be a program name with args. | 
|---|
| 3341 | set dummy cc; ac_word=$2 | 
|---|
| 3342 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 3343 | echo "configure:3344: checking for $ac_word" >&5 | 
|---|
| 3344 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 
|---|
| 3345 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3346 | else | 
|---|
| 3347 | if test -n "$CC"; then | 
|---|
| 3348 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|---|
| 3349 | else | 
|---|
| 3350 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 3351 | ac_prog_rejected=no | 
|---|
| 3352 | ac_dummy="$PATH" | 
|---|
| 3353 | for ac_dir in $ac_dummy; do | 
|---|
| 3354 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 3355 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 3356 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 3357 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \ | 
|---|
| 3358 | "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then | 
|---|
| 3359 | ac_prog_rejected=yes | 
|---|
| 3360 | continue | 
|---|
| 3361 | fi | 
|---|
| 3362 | ac_cv_prog_CC="cc" | 
|---|
| 3363 | break | 
|---|
| 3364 | fi | 
|---|
| 3365 | done | 
|---|
| 3366 | IFS="$ac_save_ifs" | 
|---|
| 3367 | if test $ac_prog_rejected = yes; then | 
|---|
| 3368 | # We found a bogon in the path, so make sure we never use it. | 
|---|
| 3369 | set dummy $ac_cv_prog_CC | 
|---|
| 3370 | shift | 
|---|
| 3371 | if test $# -gt 0; then | 
|---|
| 3372 | # We chose a different compiler from the bogus one. | 
|---|
| 3373 | # However, it has the same basename, so the bogon will be chosen | 
|---|
| 3374 | # first if we set CC to just the basename; use the full file name. | 
|---|
| 3375 | shift | 
|---|
| 3376 | set dummy "$ac_dir/$ac_word" "$@" | 
|---|
| 3377 | shift | 
|---|
| 3378 | ac_cv_prog_CC="$@" | 
|---|
| 3379 | fi | 
|---|
| 3380 | fi | 
|---|
| 3381 | fi | 
|---|
| 3382 | fi | 
|---|
| 3383 | CC="$ac_cv_prog_CC" | 
|---|
| 3384 | if test -n "$CC"; then | 
|---|
| 3385 | echo "$ac_t""$CC" 1>&6 | 
|---|
| 3386 | else | 
|---|
| 3387 | echo "$ac_t""no" 1>&6 | 
|---|
| 3388 | fi | 
|---|
| 3389 |  | 
|---|
| 3390 | if test -z "$CC"; then | 
|---|
| 3391 | case "`uname -s`" in | 
|---|
| 3392 | *win32* | *WIN32*) | 
|---|
| 3393 | # Extract the first word of "cl", so it can be a program name with args. | 
|---|
| 3394 | set dummy cl; ac_word=$2 | 
|---|
| 3395 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 3396 | echo "configure:3397: checking for $ac_word" >&5 | 
|---|
| 3397 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 
|---|
| 3398 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3399 | else | 
|---|
| 3400 | if test -n "$CC"; then | 
|---|
| 3401 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|---|
| 3402 | else | 
|---|
| 3403 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 3404 | ac_dummy="$PATH" | 
|---|
| 3405 | for ac_dir in $ac_dummy; do | 
|---|
| 3406 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 3407 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 3408 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 3409 | ac_cv_prog_CC="cl" | 
|---|
| 3410 | break | 
|---|
| 3411 | fi | 
|---|
| 3412 | done | 
|---|
| 3413 | IFS="$ac_save_ifs" | 
|---|
| 3414 | fi | 
|---|
| 3415 | fi | 
|---|
| 3416 | CC="$ac_cv_prog_CC" | 
|---|
| 3417 | if test -n "$CC"; then | 
|---|
| 3418 | echo "$ac_t""$CC" 1>&6 | 
|---|
| 3419 | else | 
|---|
| 3420 | echo "$ac_t""no" 1>&6 | 
|---|
| 3421 | fi | 
|---|
| 3422 | ;; | 
|---|
| 3423 | esac | 
|---|
| 3424 | fi | 
|---|
| 3425 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | 
|---|
| 3426 | fi | 
|---|
| 3427 |  | 
|---|
| 3428 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | 
|---|
| 3429 | echo "configure:3430: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | 
|---|
| 3430 |  | 
|---|
| 3431 | ac_ext=c | 
|---|
| 3432 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
|---|
| 3433 | ac_cpp='$CPP $CPPFLAGS' | 
|---|
| 3434 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
|---|
| 3435 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
|---|
| 3436 | cross_compiling=$ac_cv_prog_cc_cross | 
|---|
| 3437 |  | 
|---|
| 3438 | cat > conftest.$ac_ext << EOF | 
|---|
| 3439 |  | 
|---|
| 3440 | #line 3441 "configure" | 
|---|
| 3441 | #include "confdefs.h" | 
|---|
| 3442 |  | 
|---|
| 3443 | main(){return(0);} | 
|---|
| 3444 | EOF | 
|---|
| 3445 | if { (eval echo configure:3446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 3446 | ac_cv_prog_cc_works=yes | 
|---|
| 3447 | # If we can't run a trivial program, we are probably using a cross compiler. | 
|---|
| 3448 | if (./conftest; exit) 2>/dev/null; then | 
|---|
| 3449 | ac_cv_prog_cc_cross=no | 
|---|
| 3450 | else | 
|---|
| 3451 | ac_cv_prog_cc_cross=yes | 
|---|
| 3452 | fi | 
|---|
| 3453 | else | 
|---|
| 3454 | echo "configure: failed program was:" >&5 | 
|---|
| 3455 | cat conftest.$ac_ext >&5 | 
|---|
| 3456 | ac_cv_prog_cc_works=no | 
|---|
| 3457 | fi | 
|---|
| 3458 | rm -fr conftest* | 
|---|
| 3459 | ac_ext=c | 
|---|
| 3460 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
|---|
| 3461 | ac_cpp='$CPP $CPPFLAGS' | 
|---|
| 3462 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
|---|
| 3463 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
|---|
| 3464 | cross_compiling=$ac_cv_prog_cc_cross | 
|---|
| 3465 |  | 
|---|
| 3466 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | 
|---|
| 3467 | if test $ac_cv_prog_cc_works = no; then | 
|---|
| 3468 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | 
|---|
| 3469 | fi | 
|---|
| 3470 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | 
|---|
| 3471 | echo "configure:3472: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | 
|---|
| 3472 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | 
|---|
| 3473 | cross_compiling=$ac_cv_prog_cc_cross | 
|---|
| 3474 |  | 
|---|
| 3475 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | 
|---|
| 3476 | echo "configure:3477: checking whether we are using GNU C" >&5 | 
|---|
| 3477 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | 
|---|
| 3478 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3479 | else | 
|---|
| 3480 | cat > conftest.c <<EOF | 
|---|
| 3481 | #ifdef __GNUC__ | 
|---|
| 3482 | yes; | 
|---|
| 3483 | #endif | 
|---|
| 3484 | EOF | 
|---|
| 3485 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | 
|---|
| 3486 | ac_cv_prog_gcc=yes | 
|---|
| 3487 | else | 
|---|
| 3488 | ac_cv_prog_gcc=no | 
|---|
| 3489 | fi | 
|---|
| 3490 | fi | 
|---|
| 3491 |  | 
|---|
| 3492 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | 
|---|
| 3493 |  | 
|---|
| 3494 | if test $ac_cv_prog_gcc = yes; then | 
|---|
| 3495 | GCC=yes | 
|---|
| 3496 | else | 
|---|
| 3497 | GCC= | 
|---|
| 3498 | fi | 
|---|
| 3499 |  | 
|---|
| 3500 | ac_test_CFLAGS="${CFLAGS+set}" | 
|---|
| 3501 | ac_save_CFLAGS="$CFLAGS" | 
|---|
| 3502 | CFLAGS= | 
|---|
| 3503 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | 
|---|
| 3504 | echo "configure:3505: checking whether ${CC-cc} accepts -g" >&5 | 
|---|
| 3505 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | 
|---|
| 3506 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3507 | else | 
|---|
| 3508 | echo 'void f(){}' > conftest.c | 
|---|
| 3509 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | 
|---|
| 3510 | ac_cv_prog_cc_g=yes | 
|---|
| 3511 | else | 
|---|
| 3512 | ac_cv_prog_cc_g=no | 
|---|
| 3513 | fi | 
|---|
| 3514 | rm -f conftest* | 
|---|
| 3515 |  | 
|---|
| 3516 | fi | 
|---|
| 3517 |  | 
|---|
| 3518 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | 
|---|
| 3519 | if test "$ac_test_CFLAGS" = set; then | 
|---|
| 3520 | CFLAGS="$ac_save_CFLAGS" | 
|---|
| 3521 | elif test $ac_cv_prog_cc_g = yes; then | 
|---|
| 3522 | if test "$GCC" = yes; then | 
|---|
| 3523 | CFLAGS="-g -O2" | 
|---|
| 3524 | else | 
|---|
| 3525 | CFLAGS="-g" | 
|---|
| 3526 | fi | 
|---|
| 3527 | else | 
|---|
| 3528 | if test "$GCC" = yes; then | 
|---|
| 3529 | CFLAGS="-O2" | 
|---|
| 3530 | else | 
|---|
| 3531 | CFLAGS= | 
|---|
| 3532 | fi | 
|---|
| 3533 | fi | 
|---|
| 3534 |  | 
|---|
| 3535 |  | 
|---|
| 3536 | for ac_prog in 'bison -y' byacc | 
|---|
| 3537 | do | 
|---|
| 3538 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|---|
| 3539 | set dummy $ac_prog; ac_word=$2 | 
|---|
| 3540 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 3541 | echo "configure:3542: checking for $ac_word" >&5 | 
|---|
| 3542 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then | 
|---|
| 3543 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3544 | else | 
|---|
| 3545 | if test -n "$YACC"; then | 
|---|
| 3546 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | 
|---|
| 3547 | else | 
|---|
| 3548 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 3549 | ac_dummy="$PATH" | 
|---|
| 3550 | for ac_dir in $ac_dummy; do | 
|---|
| 3551 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 3552 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 3553 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 3554 | ac_cv_prog_YACC="$ac_prog" | 
|---|
| 3555 | break | 
|---|
| 3556 | fi | 
|---|
| 3557 | done | 
|---|
| 3558 | IFS="$ac_save_ifs" | 
|---|
| 3559 | fi | 
|---|
| 3560 | fi | 
|---|
| 3561 | YACC="$ac_cv_prog_YACC" | 
|---|
| 3562 | if test -n "$YACC"; then | 
|---|
| 3563 | echo "$ac_t""$YACC" 1>&6 | 
|---|
| 3564 | else | 
|---|
| 3565 | echo "$ac_t""no" 1>&6 | 
|---|
| 3566 | fi | 
|---|
| 3567 |  | 
|---|
| 3568 | test -n "$YACC" && break | 
|---|
| 3569 | done | 
|---|
| 3570 | test -n "$YACC" || YACC="yacc" | 
|---|
| 3571 |  | 
|---|
| 3572 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | 
|---|
| 3573 | echo "configure:3574: checking how to run the C preprocessor" >&5 | 
|---|
| 3574 | # On Suns, sometimes $CPP names a directory. | 
|---|
| 3575 | if test -n "$CPP" && test -d "$CPP"; then | 
|---|
| 3576 | CPP= | 
|---|
| 3577 | fi | 
|---|
| 3578 | if test -z "$CPP"; then | 
|---|
| 3579 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | 
|---|
| 3580 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3581 | else | 
|---|
| 3582 | # This must be in double quotes, not single quotes, because CPP may get | 
|---|
| 3583 | # substituted into the Makefile and "${CC-cc}" will confuse make. | 
|---|
| 3584 | CPP="${CC-cc} -E" | 
|---|
| 3585 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|---|
| 3586 | # not just through cpp. | 
|---|
| 3587 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3588 | #include <sys/types.h> | 
|---|
| 3589 | #line 3590 "configure" | 
|---|
| 3590 | #include "confdefs.h" | 
|---|
| 3591 | #include <assert.h> | 
|---|
| 3592 | Syntax Error | 
|---|
| 3593 | EOF | 
|---|
| 3594 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 3595 | { (eval echo configure:3596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 3596 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 3597 | if test -z "$ac_err"; then | 
|---|
| 3598 | : | 
|---|
| 3599 | else | 
|---|
| 3600 | echo "$ac_err" >&5 | 
|---|
| 3601 | echo "configure: failed program was:" >&5 | 
|---|
| 3602 | cat conftest.$ac_ext >&5 | 
|---|
| 3603 | rm -rf conftest* | 
|---|
| 3604 | CPP="${CC-cc} -E -traditional-cpp" | 
|---|
| 3605 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3606 | #include <sys/types.h> | 
|---|
| 3607 | #line 3608 "configure" | 
|---|
| 3608 | #include "confdefs.h" | 
|---|
| 3609 | #include <assert.h> | 
|---|
| 3610 | Syntax Error | 
|---|
| 3611 | EOF | 
|---|
| 3612 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 3613 | { (eval echo configure:3614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 3614 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 3615 | if test -z "$ac_err"; then | 
|---|
| 3616 | : | 
|---|
| 3617 | else | 
|---|
| 3618 | echo "$ac_err" >&5 | 
|---|
| 3619 | echo "configure: failed program was:" >&5 | 
|---|
| 3620 | cat conftest.$ac_ext >&5 | 
|---|
| 3621 | rm -rf conftest* | 
|---|
| 3622 | CPP="${CC-cc} -nologo -E" | 
|---|
| 3623 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3624 | #include <sys/types.h> | 
|---|
| 3625 | #line 3626 "configure" | 
|---|
| 3626 | #include "confdefs.h" | 
|---|
| 3627 | #include <assert.h> | 
|---|
| 3628 | Syntax Error | 
|---|
| 3629 | EOF | 
|---|
| 3630 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 3631 | { (eval echo configure:3632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 3632 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 3633 | if test -z "$ac_err"; then | 
|---|
| 3634 | : | 
|---|
| 3635 | else | 
|---|
| 3636 | echo "$ac_err" >&5 | 
|---|
| 3637 | echo "configure: failed program was:" >&5 | 
|---|
| 3638 | cat conftest.$ac_ext >&5 | 
|---|
| 3639 | rm -rf conftest* | 
|---|
| 3640 | CPP=/lib/cpp | 
|---|
| 3641 | fi | 
|---|
| 3642 | rm -f conftest* | 
|---|
| 3643 | fi | 
|---|
| 3644 | rm -f conftest* | 
|---|
| 3645 | fi | 
|---|
| 3646 | rm -f conftest* | 
|---|
| 3647 | ac_cv_prog_CPP="$CPP" | 
|---|
| 3648 | fi | 
|---|
| 3649 | CPP="$ac_cv_prog_CPP" | 
|---|
| 3650 | else | 
|---|
| 3651 | ac_cv_prog_CPP="$CPP" | 
|---|
| 3652 | fi | 
|---|
| 3653 | echo "$ac_t""$CPP" 1>&6 | 
|---|
| 3654 |  | 
|---|
| 3655 | missing_dir=`cd $ac_aux_dir && pwd` | 
|---|
| 3656 | for ac_prog in flex lex | 
|---|
| 3657 | do | 
|---|
| 3658 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|---|
| 3659 | set dummy $ac_prog; 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_LEX'+set}'`\" = set"; then | 
|---|
| 3663 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3664 | else | 
|---|
| 3665 | if test -n "$LEX"; then | 
|---|
| 3666 | ac_cv_prog_LEX="$LEX" # 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_LEX="$ac_prog" | 
|---|
| 3675 | break | 
|---|
| 3676 | fi | 
|---|
| 3677 | done | 
|---|
| 3678 | IFS="$ac_save_ifs" | 
|---|
| 3679 | fi | 
|---|
| 3680 | fi | 
|---|
| 3681 | LEX="$ac_cv_prog_LEX" | 
|---|
| 3682 | if test -n "$LEX"; then | 
|---|
| 3683 | echo "$ac_t""$LEX" 1>&6 | 
|---|
| 3684 | else | 
|---|
| 3685 | echo "$ac_t""no" 1>&6 | 
|---|
| 3686 | fi | 
|---|
| 3687 |  | 
|---|
| 3688 | test -n "$LEX" && break | 
|---|
| 3689 | done | 
|---|
| 3690 | test -n "$LEX" || LEX=""$missing_dir/missing flex"" | 
|---|
| 3691 |  | 
|---|
| 3692 | # Extract the first word of "flex", so it can be a program name with args. | 
|---|
| 3693 | set dummy flex; ac_word=$2 | 
|---|
| 3694 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 3695 | echo "configure:3696: checking for $ac_word" >&5 | 
|---|
| 3696 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then | 
|---|
| 3697 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3698 | else | 
|---|
| 3699 | if test -n "$LEX"; then | 
|---|
| 3700 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | 
|---|
| 3701 | else | 
|---|
| 3702 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 3703 | ac_dummy="$PATH" | 
|---|
| 3704 | for ac_dir in $ac_dummy; do | 
|---|
| 3705 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 3706 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 3707 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 3708 | ac_cv_prog_LEX="flex" | 
|---|
| 3709 | break | 
|---|
| 3710 | fi | 
|---|
| 3711 | done | 
|---|
| 3712 | IFS="$ac_save_ifs" | 
|---|
| 3713 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | 
|---|
| 3714 | fi | 
|---|
| 3715 | fi | 
|---|
| 3716 | LEX="$ac_cv_prog_LEX" | 
|---|
| 3717 | if test -n "$LEX"; then | 
|---|
| 3718 | echo "$ac_t""$LEX" 1>&6 | 
|---|
| 3719 | else | 
|---|
| 3720 | echo "$ac_t""no" 1>&6 | 
|---|
| 3721 | fi | 
|---|
| 3722 |  | 
|---|
| 3723 | if test -z "$LEXLIB" | 
|---|
| 3724 | then | 
|---|
| 3725 | case "$LEX" in | 
|---|
| 3726 | flex*) ac_lib=fl ;; | 
|---|
| 3727 | *) ac_lib=l ;; | 
|---|
| 3728 | esac | 
|---|
| 3729 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | 
|---|
| 3730 | echo "configure:3731: checking for yywrap in -l$ac_lib" >&5 | 
|---|
| 3731 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` | 
|---|
| 3732 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|---|
| 3733 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3734 | else | 
|---|
| 3735 | ac_save_LIBS="$LIBS" | 
|---|
| 3736 | LIBS="-l$ac_lib  $LIBS" | 
|---|
| 3737 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3738 | #line 3739 "configure" | 
|---|
| 3739 | #include "confdefs.h" | 
|---|
| 3740 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 3741 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 3742 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 3743 | char yywrap(); | 
|---|
| 3744 |  | 
|---|
| 3745 | int main() { | 
|---|
| 3746 | yywrap() | 
|---|
| 3747 | ; return 0; } | 
|---|
| 3748 | EOF | 
|---|
| 3749 | if { (eval echo configure:3750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 3750 | rm -rf conftest* | 
|---|
| 3751 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|---|
| 3752 | else | 
|---|
| 3753 | echo "configure: failed program was:" >&5 | 
|---|
| 3754 | cat conftest.$ac_ext >&5 | 
|---|
| 3755 | rm -rf conftest* | 
|---|
| 3756 | eval "ac_cv_lib_$ac_lib_var=no" | 
|---|
| 3757 | fi | 
|---|
| 3758 | rm -f conftest* | 
|---|
| 3759 | LIBS="$ac_save_LIBS" | 
|---|
| 3760 |  | 
|---|
| 3761 | fi | 
|---|
| 3762 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|---|
| 3763 | echo "$ac_t""yes" 1>&6 | 
|---|
| 3764 | LEXLIB="-l$ac_lib" | 
|---|
| 3765 | else | 
|---|
| 3766 | echo "$ac_t""no" 1>&6 | 
|---|
| 3767 | fi | 
|---|
| 3768 |  | 
|---|
| 3769 | fi | 
|---|
| 3770 |  | 
|---|
| 3771 | echo $ac_n "checking lex output file root""... $ac_c" 1>&6 | 
|---|
| 3772 | echo "configure:3773: checking lex output file root" >&5 | 
|---|
| 3773 | if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then | 
|---|
| 3774 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3775 | else | 
|---|
| 3776 | # The minimal lex program is just a single line: %%.  But some broken lexes | 
|---|
| 3777 | # (Solaris, I think it was) want two %% lines, so accommodate them. | 
|---|
| 3778 | echo '%% | 
|---|
| 3779 | %%' | $LEX | 
|---|
| 3780 | if test -f lex.yy.c; then | 
|---|
| 3781 | ac_cv_prog_lex_root=lex.yy | 
|---|
| 3782 | elif test -f lexyy.c; then | 
|---|
| 3783 | ac_cv_prog_lex_root=lexyy | 
|---|
| 3784 | else | 
|---|
| 3785 | { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; } | 
|---|
| 3786 | fi | 
|---|
| 3787 | fi | 
|---|
| 3788 |  | 
|---|
| 3789 | echo "$ac_t""$ac_cv_prog_lex_root" 1>&6 | 
|---|
| 3790 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | 
|---|
| 3791 |  | 
|---|
| 3792 | echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6 | 
|---|
| 3793 | echo "configure:3794: checking whether yytext is a pointer" >&5 | 
|---|
| 3794 | if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then | 
|---|
| 3795 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3796 | else | 
|---|
| 3797 | # POSIX says lex can declare yytext either as a pointer or an array; the | 
|---|
| 3798 | # default is implementation-dependent. Figure out which it is, since | 
|---|
| 3799 | # not all implementations provide the %pointer and %array declarations. | 
|---|
| 3800 | ac_cv_prog_lex_yytext_pointer=no | 
|---|
| 3801 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | 
|---|
| 3802 | ac_save_LIBS="$LIBS" | 
|---|
| 3803 | LIBS="$LIBS $LEXLIB" | 
|---|
| 3804 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3805 | #line 3806 "configure" | 
|---|
| 3806 | #include "confdefs.h" | 
|---|
| 3807 | `cat $LEX_OUTPUT_ROOT.c` | 
|---|
| 3808 | int main() { | 
|---|
| 3809 |  | 
|---|
| 3810 | ; return 0; } | 
|---|
| 3811 | EOF | 
|---|
| 3812 | if { (eval echo configure:3813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 3813 | rm -rf conftest* | 
|---|
| 3814 | ac_cv_prog_lex_yytext_pointer=yes | 
|---|
| 3815 | else | 
|---|
| 3816 | echo "configure: failed program was:" >&5 | 
|---|
| 3817 | cat conftest.$ac_ext >&5 | 
|---|
| 3818 | fi | 
|---|
| 3819 | rm -f conftest* | 
|---|
| 3820 | LIBS="$ac_save_LIBS" | 
|---|
| 3821 | rm -f "${LEX_OUTPUT_ROOT}.c" | 
|---|
| 3822 |  | 
|---|
| 3823 | fi | 
|---|
| 3824 |  | 
|---|
| 3825 | echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6 | 
|---|
| 3826 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | 
|---|
| 3827 | cat >> confdefs.h <<\EOF | 
|---|
| 3828 | #define YYTEXT_POINTER 1 | 
|---|
| 3829 | EOF | 
|---|
| 3830 |  | 
|---|
| 3831 | fi | 
|---|
| 3832 |  | 
|---|
| 3833 |  | 
|---|
| 3834 | ALL_LINGUAS="fr tr es" | 
|---|
| 3835 | # Extract the first word of "ranlib", so it can be a program name with args. | 
|---|
| 3836 | set dummy ranlib; ac_word=$2 | 
|---|
| 3837 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 3838 | echo "configure:3839: checking for $ac_word" >&5 | 
|---|
| 3839 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | 
|---|
| 3840 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3841 | else | 
|---|
| 3842 | if test -n "$RANLIB"; then | 
|---|
| 3843 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
|---|
| 3844 | else | 
|---|
| 3845 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 3846 | ac_dummy="$PATH" | 
|---|
| 3847 | for ac_dir in $ac_dummy; do | 
|---|
| 3848 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 3849 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 3850 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 3851 | ac_cv_prog_RANLIB="ranlib" | 
|---|
| 3852 | break | 
|---|
| 3853 | fi | 
|---|
| 3854 | done | 
|---|
| 3855 | IFS="$ac_save_ifs" | 
|---|
| 3856 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | 
|---|
| 3857 | fi | 
|---|
| 3858 | fi | 
|---|
| 3859 | RANLIB="$ac_cv_prog_RANLIB" | 
|---|
| 3860 | if test -n "$RANLIB"; then | 
|---|
| 3861 | echo "$ac_t""$RANLIB" 1>&6 | 
|---|
| 3862 | else | 
|---|
| 3863 | echo "$ac_t""no" 1>&6 | 
|---|
| 3864 | fi | 
|---|
| 3865 |  | 
|---|
| 3866 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | 
|---|
| 3867 | echo "configure:3868: checking for ANSI C header files" >&5 | 
|---|
| 3868 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | 
|---|
| 3869 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3870 | else | 
|---|
| 3871 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3872 | #include <sys/types.h> | 
|---|
| 3873 | #line 3874 "configure" | 
|---|
| 3874 | #include "confdefs.h" | 
|---|
| 3875 | #include <stdlib.h> | 
|---|
| 3876 | #include <stdarg.h> | 
|---|
| 3877 | #include <string.h> | 
|---|
| 3878 | #include <float.h> | 
|---|
| 3879 | EOF | 
|---|
| 3880 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 3881 | { (eval echo configure:3882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 3882 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 3883 | if test -z "$ac_err"; then | 
|---|
| 3884 | rm -rf conftest* | 
|---|
| 3885 | ac_cv_header_stdc=yes | 
|---|
| 3886 | else | 
|---|
| 3887 | echo "$ac_err" >&5 | 
|---|
| 3888 | echo "configure: failed program was:" >&5 | 
|---|
| 3889 | cat conftest.$ac_ext >&5 | 
|---|
| 3890 | rm -rf conftest* | 
|---|
| 3891 | ac_cv_header_stdc=no | 
|---|
| 3892 | fi | 
|---|
| 3893 | rm -f conftest* | 
|---|
| 3894 |  | 
|---|
| 3895 | if test $ac_cv_header_stdc = yes; then | 
|---|
| 3896 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
|---|
| 3897 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3898 | #line 3899 "configure" | 
|---|
| 3899 | #include "confdefs.h" | 
|---|
| 3900 | #include <string.h> | 
|---|
| 3901 | EOF | 
|---|
| 3902 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|---|
| 3903 | egrep "memchr" >/dev/null 2>&1; then | 
|---|
| 3904 | : | 
|---|
| 3905 | else | 
|---|
| 3906 | rm -rf conftest* | 
|---|
| 3907 | ac_cv_header_stdc=no | 
|---|
| 3908 | fi | 
|---|
| 3909 | rm -f conftest* | 
|---|
| 3910 |  | 
|---|
| 3911 | fi | 
|---|
| 3912 |  | 
|---|
| 3913 | if test $ac_cv_header_stdc = yes; then | 
|---|
| 3914 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
|---|
| 3915 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3916 | #line 3917 "configure" | 
|---|
| 3917 | #include "confdefs.h" | 
|---|
| 3918 | #include <stdlib.h> | 
|---|
| 3919 | EOF | 
|---|
| 3920 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|---|
| 3921 | egrep "free" >/dev/null 2>&1; then | 
|---|
| 3922 | : | 
|---|
| 3923 | else | 
|---|
| 3924 | rm -rf conftest* | 
|---|
| 3925 | ac_cv_header_stdc=no | 
|---|
| 3926 | fi | 
|---|
| 3927 | rm -f conftest* | 
|---|
| 3928 |  | 
|---|
| 3929 | fi | 
|---|
| 3930 |  | 
|---|
| 3931 | if test $ac_cv_header_stdc = yes; then | 
|---|
| 3932 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
|---|
| 3933 | if test "$cross_compiling" = yes; then | 
|---|
| 3934 | : | 
|---|
| 3935 | else | 
|---|
| 3936 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3937 | #line 3938 "configure" | 
|---|
| 3938 | #include "confdefs.h" | 
|---|
| 3939 | #include <ctype.h> | 
|---|
| 3940 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|---|
| 3941 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|---|
| 3942 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|---|
| 3943 | int main () { int i; for (i = 0; i < 256; i++) | 
|---|
| 3944 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | 
|---|
| 3945 | exit (0); } | 
|---|
| 3946 |  | 
|---|
| 3947 | EOF | 
|---|
| 3948 | if { (eval echo configure:3949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
|---|
| 3949 | then | 
|---|
| 3950 | : | 
|---|
| 3951 | else | 
|---|
| 3952 | echo "configure: failed program was:" >&5 | 
|---|
| 3953 | cat conftest.$ac_ext >&5 | 
|---|
| 3954 | rm -fr conftest* | 
|---|
| 3955 | ac_cv_header_stdc=no | 
|---|
| 3956 | fi | 
|---|
| 3957 | rm -fr conftest* | 
|---|
| 3958 | fi | 
|---|
| 3959 |  | 
|---|
| 3960 | fi | 
|---|
| 3961 | fi | 
|---|
| 3962 |  | 
|---|
| 3963 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | 
|---|
| 3964 | if test $ac_cv_header_stdc = yes; then | 
|---|
| 3965 | cat >> confdefs.h <<\EOF | 
|---|
| 3966 | #define STDC_HEADERS 1 | 
|---|
| 3967 | EOF | 
|---|
| 3968 |  | 
|---|
| 3969 | fi | 
|---|
| 3970 |  | 
|---|
| 3971 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | 
|---|
| 3972 | echo "configure:3973: checking for working const" >&5 | 
|---|
| 3973 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then | 
|---|
| 3974 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3975 | else | 
|---|
| 3976 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3977 | #line 3978 "configure" | 
|---|
| 3978 | #include "confdefs.h" | 
|---|
| 3979 |  | 
|---|
| 3980 | int main() { | 
|---|
| 3981 |  | 
|---|
| 3982 | /* Ultrix mips cc rejects this.  */ | 
|---|
| 3983 | typedef int charset[2]; const charset x; | 
|---|
| 3984 | /* SunOS 4.1.1 cc rejects this.  */ | 
|---|
| 3985 | char const *const *ccp; | 
|---|
| 3986 | char **p; | 
|---|
| 3987 | /* NEC SVR4.0.2 mips cc rejects this.  */ | 
|---|
| 3988 | struct point {int x, y;}; | 
|---|
| 3989 | static struct point const zero = {0,0}; | 
|---|
| 3990 | /* AIX XL C 1.02.0.0 rejects this. | 
|---|
| 3991 | It does not let you subtract one const X* pointer from another in an arm | 
|---|
| 3992 | of an if-expression whose if-part is not a constant expression */ | 
|---|
| 3993 | const char *g = "string"; | 
|---|
| 3994 | ccp = &g + (g ? g-g : 0); | 
|---|
| 3995 | /* HPUX 7.0 cc rejects these. */ | 
|---|
| 3996 | ++ccp; | 
|---|
| 3997 | p = (char**) ccp; | 
|---|
| 3998 | ccp = (char const *const *) p; | 
|---|
| 3999 | { /* SCO 3.2v4 cc rejects this.  */ | 
|---|
| 4000 | char *t; | 
|---|
| 4001 | char const *s = 0 ? (char *) 0 : (char const *) 0; | 
|---|
| 4002 |  | 
|---|
| 4003 | *t++ = 0; | 
|---|
| 4004 | } | 
|---|
| 4005 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ | 
|---|
| 4006 | int x[] = {25, 17}; | 
|---|
| 4007 | const int *foo = &x[0]; | 
|---|
| 4008 | ++foo; | 
|---|
| 4009 | } | 
|---|
| 4010 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 
|---|
| 4011 | typedef const int *iptr; | 
|---|
| 4012 | iptr p = 0; | 
|---|
| 4013 | ++p; | 
|---|
| 4014 | } | 
|---|
| 4015 | { /* AIX XL C 1.02.0.0 rejects this saying | 
|---|
| 4016 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | 
|---|
| 4017 | struct s { int j; const int *ap[3]; }; | 
|---|
| 4018 | struct s *b; b->j = 5; | 
|---|
| 4019 | } | 
|---|
| 4020 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 
|---|
| 4021 | const int foo = 10; | 
|---|
| 4022 | } | 
|---|
| 4023 |  | 
|---|
| 4024 | ; return 0; } | 
|---|
| 4025 | EOF | 
|---|
| 4026 | if { (eval echo configure:4027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 4027 | rm -rf conftest* | 
|---|
| 4028 | ac_cv_c_const=yes | 
|---|
| 4029 | else | 
|---|
| 4030 | echo "configure: failed program was:" >&5 | 
|---|
| 4031 | cat conftest.$ac_ext >&5 | 
|---|
| 4032 | rm -rf conftest* | 
|---|
| 4033 | ac_cv_c_const=no | 
|---|
| 4034 | fi | 
|---|
| 4035 | rm -f conftest* | 
|---|
| 4036 | fi | 
|---|
| 4037 |  | 
|---|
| 4038 | echo "$ac_t""$ac_cv_c_const" 1>&6 | 
|---|
| 4039 | if test $ac_cv_c_const = no; then | 
|---|
| 4040 | cat >> confdefs.h <<\EOF | 
|---|
| 4041 | #define const | 
|---|
| 4042 | EOF | 
|---|
| 4043 |  | 
|---|
| 4044 | fi | 
|---|
| 4045 |  | 
|---|
| 4046 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | 
|---|
| 4047 | echo "configure:4048: checking for inline" >&5 | 
|---|
| 4048 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then | 
|---|
| 4049 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4050 | else | 
|---|
| 4051 | ac_cv_c_inline=no | 
|---|
| 4052 | for ac_kw in inline __inline__ __inline; do | 
|---|
| 4053 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4054 | #line 4055 "configure" | 
|---|
| 4055 | #include "confdefs.h" | 
|---|
| 4056 |  | 
|---|
| 4057 | int main() { | 
|---|
| 4058 | } $ac_kw foo() { | 
|---|
| 4059 | ; return 0; } | 
|---|
| 4060 | EOF | 
|---|
| 4061 | if { (eval echo configure:4062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 4062 | rm -rf conftest* | 
|---|
| 4063 | ac_cv_c_inline=$ac_kw; break | 
|---|
| 4064 | else | 
|---|
| 4065 | echo "configure: failed program was:" >&5 | 
|---|
| 4066 | cat conftest.$ac_ext >&5 | 
|---|
| 4067 | fi | 
|---|
| 4068 | rm -f conftest* | 
|---|
| 4069 | done | 
|---|
| 4070 |  | 
|---|
| 4071 | fi | 
|---|
| 4072 |  | 
|---|
| 4073 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | 
|---|
| 4074 | case "$ac_cv_c_inline" in | 
|---|
| 4075 | inline | yes) ;; | 
|---|
| 4076 | no) cat >> confdefs.h <<\EOF | 
|---|
| 4077 | #define inline | 
|---|
| 4078 | EOF | 
|---|
| 4079 | ;; | 
|---|
| 4080 | *)  cat >> confdefs.h <<EOF | 
|---|
| 4081 | #define inline $ac_cv_c_inline | 
|---|
| 4082 | EOF | 
|---|
| 4083 | ;; | 
|---|
| 4084 | esac | 
|---|
| 4085 |  | 
|---|
| 4086 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | 
|---|
| 4087 | echo "configure:4088: checking for off_t" >&5 | 
|---|
| 4088 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then | 
|---|
| 4089 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4090 | else | 
|---|
| 4091 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4092 | #line 4093 "configure" | 
|---|
| 4093 | #include "confdefs.h" | 
|---|
| 4094 | #include <sys/types.h> | 
|---|
| 4095 | #if STDC_HEADERS | 
|---|
| 4096 | #include <stdlib.h> | 
|---|
| 4097 | #include <stddef.h> | 
|---|
| 4098 | #endif | 
|---|
| 4099 | EOF | 
|---|
| 4100 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|---|
| 4101 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | 
|---|
| 4102 | rm -rf conftest* | 
|---|
| 4103 | ac_cv_type_off_t=yes | 
|---|
| 4104 | else | 
|---|
| 4105 | rm -rf conftest* | 
|---|
| 4106 | ac_cv_type_off_t=no | 
|---|
| 4107 | fi | 
|---|
| 4108 | rm -f conftest* | 
|---|
| 4109 |  | 
|---|
| 4110 | fi | 
|---|
| 4111 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | 
|---|
| 4112 | if test $ac_cv_type_off_t = no; then | 
|---|
| 4113 | cat >> confdefs.h <<\EOF | 
|---|
| 4114 | #define off_t long | 
|---|
| 4115 | EOF | 
|---|
| 4116 |  | 
|---|
| 4117 | fi | 
|---|
| 4118 |  | 
|---|
| 4119 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | 
|---|
| 4120 | echo "configure:4121: checking for size_t" >&5 | 
|---|
| 4121 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then | 
|---|
| 4122 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4123 | else | 
|---|
| 4124 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4125 | #line 4126 "configure" | 
|---|
| 4126 | #include "confdefs.h" | 
|---|
| 4127 | #include <sys/types.h> | 
|---|
| 4128 | #if STDC_HEADERS | 
|---|
| 4129 | #include <stdlib.h> | 
|---|
| 4130 | #include <stddef.h> | 
|---|
| 4131 | #endif | 
|---|
| 4132 | EOF | 
|---|
| 4133 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|---|
| 4134 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | 
|---|
| 4135 | rm -rf conftest* | 
|---|
| 4136 | ac_cv_type_size_t=yes | 
|---|
| 4137 | else | 
|---|
| 4138 | rm -rf conftest* | 
|---|
| 4139 | ac_cv_type_size_t=no | 
|---|
| 4140 | fi | 
|---|
| 4141 | rm -f conftest* | 
|---|
| 4142 |  | 
|---|
| 4143 | fi | 
|---|
| 4144 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | 
|---|
| 4145 | if test $ac_cv_type_size_t = no; then | 
|---|
| 4146 | cat >> confdefs.h <<\EOF | 
|---|
| 4147 | #define size_t unsigned | 
|---|
| 4148 | EOF | 
|---|
| 4149 |  | 
|---|
| 4150 | fi | 
|---|
| 4151 |  | 
|---|
| 4152 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | 
|---|
| 4153 | # for constant arguments.  Useless! | 
|---|
| 4154 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | 
|---|
| 4155 | echo "configure:4156: checking for working alloca.h" >&5 | 
|---|
| 4156 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then | 
|---|
| 4157 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4158 | else | 
|---|
| 4159 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4160 | #line 4161 "configure" | 
|---|
| 4161 | #include "confdefs.h" | 
|---|
| 4162 | #include <alloca.h> | 
|---|
| 4163 | int main() { | 
|---|
| 4164 | char *p = alloca(2 * sizeof(int)); | 
|---|
| 4165 | ; return 0; } | 
|---|
| 4166 | EOF | 
|---|
| 4167 | if { (eval echo configure:4168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4168 | rm -rf conftest* | 
|---|
| 4169 | ac_cv_header_alloca_h=yes | 
|---|
| 4170 | else | 
|---|
| 4171 | echo "configure: failed program was:" >&5 | 
|---|
| 4172 | cat conftest.$ac_ext >&5 | 
|---|
| 4173 | rm -rf conftest* | 
|---|
| 4174 | ac_cv_header_alloca_h=no | 
|---|
| 4175 | fi | 
|---|
| 4176 | rm -f conftest* | 
|---|
| 4177 | fi | 
|---|
| 4178 |  | 
|---|
| 4179 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | 
|---|
| 4180 | if test $ac_cv_header_alloca_h = yes; then | 
|---|
| 4181 | cat >> confdefs.h <<\EOF | 
|---|
| 4182 | #define HAVE_ALLOCA_H 1 | 
|---|
| 4183 | EOF | 
|---|
| 4184 |  | 
|---|
| 4185 | fi | 
|---|
| 4186 |  | 
|---|
| 4187 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 | 
|---|
| 4188 | echo "configure:4189: checking for alloca" >&5 | 
|---|
| 4189 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then | 
|---|
| 4190 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4191 | else | 
|---|
| 4192 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4193 | #line 4194 "configure" | 
|---|
| 4194 | #include "confdefs.h" | 
|---|
| 4195 |  | 
|---|
| 4196 | #ifdef __GNUC__ | 
|---|
| 4197 | # define alloca __builtin_alloca | 
|---|
| 4198 | #else | 
|---|
| 4199 | # ifdef _MSC_VER | 
|---|
| 4200 | #  include <malloc.h> | 
|---|
| 4201 | #  define alloca _alloca | 
|---|
| 4202 | # else | 
|---|
| 4203 | #  if HAVE_ALLOCA_H | 
|---|
| 4204 | #   include <alloca.h> | 
|---|
| 4205 | #  else | 
|---|
| 4206 | #   ifdef _AIX | 
|---|
| 4207 | #pragma alloca | 
|---|
| 4208 | #   else | 
|---|
| 4209 | #    ifndef alloca /* predefined by HP cc +Olibcalls */ | 
|---|
| 4210 | char *alloca (); | 
|---|
| 4211 | #    endif | 
|---|
| 4212 | #   endif | 
|---|
| 4213 | #  endif | 
|---|
| 4214 | # endif | 
|---|
| 4215 | #endif | 
|---|
| 4216 |  | 
|---|
| 4217 | int main() { | 
|---|
| 4218 | char *p = (char *) alloca(1); | 
|---|
| 4219 | ; return 0; } | 
|---|
| 4220 | EOF | 
|---|
| 4221 | if { (eval echo configure:4222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4222 | rm -rf conftest* | 
|---|
| 4223 | ac_cv_func_alloca_works=yes | 
|---|
| 4224 | else | 
|---|
| 4225 | echo "configure: failed program was:" >&5 | 
|---|
| 4226 | cat conftest.$ac_ext >&5 | 
|---|
| 4227 | rm -rf conftest* | 
|---|
| 4228 | ac_cv_func_alloca_works=no | 
|---|
| 4229 | fi | 
|---|
| 4230 | rm -f conftest* | 
|---|
| 4231 | fi | 
|---|
| 4232 |  | 
|---|
| 4233 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 | 
|---|
| 4234 | if test $ac_cv_func_alloca_works = yes; then | 
|---|
| 4235 | cat >> confdefs.h <<\EOF | 
|---|
| 4236 | #define HAVE_ALLOCA 1 | 
|---|
| 4237 | EOF | 
|---|
| 4238 |  | 
|---|
| 4239 | fi | 
|---|
| 4240 |  | 
|---|
| 4241 | if test $ac_cv_func_alloca_works = no; then | 
|---|
| 4242 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | 
|---|
| 4243 | # that cause trouble.  Some versions do not even contain alloca or | 
|---|
| 4244 | # contain a buggy version.  If you still want to use their alloca, | 
|---|
| 4245 | # use ar to extract alloca.o from them instead of compiling alloca.c. | 
|---|
| 4246 | ALLOCA=alloca.${ac_objext} | 
|---|
| 4247 | cat >> confdefs.h <<\EOF | 
|---|
| 4248 | #define C_ALLOCA 1 | 
|---|
| 4249 | EOF | 
|---|
| 4250 |  | 
|---|
| 4251 |  | 
|---|
| 4252 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | 
|---|
| 4253 | echo "configure:4254: checking whether alloca needs Cray hooks" >&5 | 
|---|
| 4254 | if eval "test \"`echo '$''{'ac_cv_os_cray'+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 | #if defined(CRAY) && ! defined(CRAY2) | 
|---|
| 4261 | webecray | 
|---|
| 4262 | #else | 
|---|
| 4263 | wenotbecray | 
|---|
| 4264 | #endif | 
|---|
| 4265 |  | 
|---|
| 4266 | EOF | 
|---|
| 4267 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|---|
| 4268 | egrep "webecray" >/dev/null 2>&1; then | 
|---|
| 4269 | rm -rf conftest* | 
|---|
| 4270 | ac_cv_os_cray=yes | 
|---|
| 4271 | else | 
|---|
| 4272 | rm -rf conftest* | 
|---|
| 4273 | ac_cv_os_cray=no | 
|---|
| 4274 | fi | 
|---|
| 4275 | rm -f conftest* | 
|---|
| 4276 |  | 
|---|
| 4277 | fi | 
|---|
| 4278 |  | 
|---|
| 4279 | echo "$ac_t""$ac_cv_os_cray" 1>&6 | 
|---|
| 4280 | if test $ac_cv_os_cray = yes; then | 
|---|
| 4281 | for ac_func in _getb67 GETB67 getb67; do | 
|---|
| 4282 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
|---|
| 4283 | echo "configure:4284: checking for $ac_func" >&5 | 
|---|
| 4284 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
|---|
| 4285 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4286 | else | 
|---|
| 4287 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4288 | #line 4289 "configure" | 
|---|
| 4289 | #include "confdefs.h" | 
|---|
| 4290 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 4291 | which can conflict with char $ac_func(); below.  */ | 
|---|
| 4292 | #include <assert.h> | 
|---|
| 4293 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 4294 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 4295 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 4296 | char $ac_func(); | 
|---|
| 4297 |  | 
|---|
| 4298 | int main() { | 
|---|
| 4299 |  | 
|---|
| 4300 | /* The GNU C library defines this for functions which it implements | 
|---|
| 4301 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 4302 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 4303 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|---|
| 4304 | choke me | 
|---|
| 4305 | #else | 
|---|
| 4306 | $ac_func(); | 
|---|
| 4307 | #endif | 
|---|
| 4308 |  | 
|---|
| 4309 | ; return 0; } | 
|---|
| 4310 | EOF | 
|---|
| 4311 | if { (eval echo configure:4312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4312 | rm -rf conftest* | 
|---|
| 4313 | eval "ac_cv_func_$ac_func=yes" | 
|---|
| 4314 | else | 
|---|
| 4315 | echo "configure: failed program was:" >&5 | 
|---|
| 4316 | cat conftest.$ac_ext >&5 | 
|---|
| 4317 | rm -rf conftest* | 
|---|
| 4318 | eval "ac_cv_func_$ac_func=no" | 
|---|
| 4319 | fi | 
|---|
| 4320 | rm -f conftest* | 
|---|
| 4321 | fi | 
|---|
| 4322 |  | 
|---|
| 4323 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|---|
| 4324 | echo "$ac_t""yes" 1>&6 | 
|---|
| 4325 | cat >> confdefs.h <<EOF | 
|---|
| 4326 | #define CRAY_STACKSEG_END $ac_func | 
|---|
| 4327 | EOF | 
|---|
| 4328 |  | 
|---|
| 4329 | break | 
|---|
| 4330 | else | 
|---|
| 4331 | echo "$ac_t""no" 1>&6 | 
|---|
| 4332 | fi | 
|---|
| 4333 |  | 
|---|
| 4334 | done | 
|---|
| 4335 | fi | 
|---|
| 4336 |  | 
|---|
| 4337 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | 
|---|
| 4338 | echo "configure:4339: checking stack direction for C alloca" >&5 | 
|---|
| 4339 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then | 
|---|
| 4340 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4341 | else | 
|---|
| 4342 | if test "$cross_compiling" = yes; then | 
|---|
| 4343 | ac_cv_c_stack_direction=0 | 
|---|
| 4344 | else | 
|---|
| 4345 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4346 | #line 4347 "configure" | 
|---|
| 4347 | #include "confdefs.h" | 
|---|
| 4348 | find_stack_direction () | 
|---|
| 4349 | { | 
|---|
| 4350 | static char *addr = 0; | 
|---|
| 4351 | auto char dummy; | 
|---|
| 4352 | if (addr == 0) | 
|---|
| 4353 | { | 
|---|
| 4354 | addr = &dummy; | 
|---|
| 4355 | return find_stack_direction (); | 
|---|
| 4356 | } | 
|---|
| 4357 | else | 
|---|
| 4358 | return (&dummy > addr) ? 1 : -1; | 
|---|
| 4359 | } | 
|---|
| 4360 | main () | 
|---|
| 4361 | { | 
|---|
| 4362 | exit (find_stack_direction() < 0); | 
|---|
| 4363 | } | 
|---|
| 4364 | EOF | 
|---|
| 4365 | if { (eval echo configure:4366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
|---|
| 4366 | then | 
|---|
| 4367 | ac_cv_c_stack_direction=1 | 
|---|
| 4368 | else | 
|---|
| 4369 | echo "configure: failed program was:" >&5 | 
|---|
| 4370 | cat conftest.$ac_ext >&5 | 
|---|
| 4371 | rm -fr conftest* | 
|---|
| 4372 | ac_cv_c_stack_direction=-1 | 
|---|
| 4373 | fi | 
|---|
| 4374 | rm -fr conftest* | 
|---|
| 4375 | fi | 
|---|
| 4376 |  | 
|---|
| 4377 | fi | 
|---|
| 4378 |  | 
|---|
| 4379 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 | 
|---|
| 4380 | cat >> confdefs.h <<EOF | 
|---|
| 4381 | #define STACK_DIRECTION $ac_cv_c_stack_direction | 
|---|
| 4382 | EOF | 
|---|
| 4383 |  | 
|---|
| 4384 | fi | 
|---|
| 4385 |  | 
|---|
| 4386 | for ac_hdr in unistd.h | 
|---|
| 4387 | do | 
|---|
| 4388 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 
|---|
| 4389 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 
|---|
| 4390 | echo "configure:4391: checking for $ac_hdr" >&5 | 
|---|
| 4391 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 
|---|
| 4392 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4393 | else | 
|---|
| 4394 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4395 | #include <sys/types.h> | 
|---|
| 4396 | #line 4397 "configure" | 
|---|
| 4397 | #include "confdefs.h" | 
|---|
| 4398 | #include <$ac_hdr> | 
|---|
| 4399 | EOF | 
|---|
| 4400 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 4401 | { (eval echo configure:4402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 4402 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 4403 | if test -z "$ac_err"; then | 
|---|
| 4404 | rm -rf conftest* | 
|---|
| 4405 | eval "ac_cv_header_$ac_safe=yes" | 
|---|
| 4406 | else | 
|---|
| 4407 | echo "$ac_err" >&5 | 
|---|
| 4408 | echo "configure: failed program was:" >&5 | 
|---|
| 4409 | cat conftest.$ac_ext >&5 | 
|---|
| 4410 | rm -rf conftest* | 
|---|
| 4411 | eval "ac_cv_header_$ac_safe=no" | 
|---|
| 4412 | fi | 
|---|
| 4413 | rm -f conftest* | 
|---|
| 4414 | fi | 
|---|
| 4415 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
|---|
| 4416 | echo "$ac_t""yes" 1>&6 | 
|---|
| 4417 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 
|---|
| 4418 | cat >> confdefs.h <<EOF | 
|---|
| 4419 | #define $ac_tr_hdr 1 | 
|---|
| 4420 | EOF | 
|---|
| 4421 |  | 
|---|
| 4422 | else | 
|---|
| 4423 | echo "$ac_t""no" 1>&6 | 
|---|
| 4424 | fi | 
|---|
| 4425 | done | 
|---|
| 4426 |  | 
|---|
| 4427 | for ac_func in getpagesize | 
|---|
| 4428 | do | 
|---|
| 4429 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
|---|
| 4430 | echo "configure:4431: checking for $ac_func" >&5 | 
|---|
| 4431 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
|---|
| 4432 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4433 | else | 
|---|
| 4434 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4435 | #line 4436 "configure" | 
|---|
| 4436 | #include "confdefs.h" | 
|---|
| 4437 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 4438 | which can conflict with char $ac_func(); below.  */ | 
|---|
| 4439 | #include <assert.h> | 
|---|
| 4440 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 4441 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 4442 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 4443 | char $ac_func(); | 
|---|
| 4444 |  | 
|---|
| 4445 | int main() { | 
|---|
| 4446 |  | 
|---|
| 4447 | /* The GNU C library defines this for functions which it implements | 
|---|
| 4448 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 4449 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 4450 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|---|
| 4451 | choke me | 
|---|
| 4452 | #else | 
|---|
| 4453 | $ac_func(); | 
|---|
| 4454 | #endif | 
|---|
| 4455 |  | 
|---|
| 4456 | ; return 0; } | 
|---|
| 4457 | EOF | 
|---|
| 4458 | if { (eval echo configure:4459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4459 | rm -rf conftest* | 
|---|
| 4460 | eval "ac_cv_func_$ac_func=yes" | 
|---|
| 4461 | else | 
|---|
| 4462 | echo "configure: failed program was:" >&5 | 
|---|
| 4463 | cat conftest.$ac_ext >&5 | 
|---|
| 4464 | rm -rf conftest* | 
|---|
| 4465 | eval "ac_cv_func_$ac_func=no" | 
|---|
| 4466 | fi | 
|---|
| 4467 | rm -f conftest* | 
|---|
| 4468 | fi | 
|---|
| 4469 |  | 
|---|
| 4470 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|---|
| 4471 | echo "$ac_t""yes" 1>&6 | 
|---|
| 4472 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|---|
| 4473 | cat >> confdefs.h <<EOF | 
|---|
| 4474 | #define $ac_tr_func 1 | 
|---|
| 4475 | EOF | 
|---|
| 4476 |  | 
|---|
| 4477 | else | 
|---|
| 4478 | echo "$ac_t""no" 1>&6 | 
|---|
| 4479 | fi | 
|---|
| 4480 | done | 
|---|
| 4481 |  | 
|---|
| 4482 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 | 
|---|
| 4483 | echo "configure:4484: checking for working mmap" >&5 | 
|---|
| 4484 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then | 
|---|
| 4485 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4486 | else | 
|---|
| 4487 | if test "$cross_compiling" = yes; then | 
|---|
| 4488 | ac_cv_func_mmap_fixed_mapped=no | 
|---|
| 4489 | else | 
|---|
| 4490 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4491 | #line 4492 "configure" | 
|---|
| 4492 | #include "confdefs.h" | 
|---|
| 4493 |  | 
|---|
| 4494 | /* Thanks to Mike Haertel and Jim Avera for this test. | 
|---|
| 4495 | Here is a matrix of mmap possibilities: | 
|---|
| 4496 | mmap private not fixed | 
|---|
| 4497 | mmap private fixed at somewhere currently unmapped | 
|---|
| 4498 | mmap private fixed at somewhere already mapped | 
|---|
| 4499 | mmap shared not fixed | 
|---|
| 4500 | mmap shared fixed at somewhere currently unmapped | 
|---|
| 4501 | mmap shared fixed at somewhere already mapped | 
|---|
| 4502 | For private mappings, we should verify that changes cannot be read() | 
|---|
| 4503 | back from the file, nor mmap's back from the file at a different | 
|---|
| 4504 | address.  (There have been systems where private was not correctly | 
|---|
| 4505 | implemented like the infamous i386 svr4.0, and systems where the | 
|---|
| 4506 | VM page cache was not coherent with the filesystem buffer cache | 
|---|
| 4507 | like early versions of FreeBSD and possibly contemporary NetBSD.) | 
|---|
| 4508 | For shared mappings, we should conversely verify that changes get | 
|---|
| 4509 | propogated back to all the places they're supposed to be. | 
|---|
| 4510 |  | 
|---|
| 4511 | Grep wants private fixed already mapped. | 
|---|
| 4512 | The main things grep needs to know about mmap are: | 
|---|
| 4513 | * does it exist and is it safe to write into the mmap'd area | 
|---|
| 4514 | * how to use it (BSD variants)  */ | 
|---|
| 4515 | #include <sys/types.h> | 
|---|
| 4516 | #include <fcntl.h> | 
|---|
| 4517 | #include <sys/mman.h> | 
|---|
| 4518 |  | 
|---|
| 4519 | /* This mess was copied from the GNU getpagesize.h.  */ | 
|---|
| 4520 | #ifndef HAVE_GETPAGESIZE | 
|---|
| 4521 | # ifdef HAVE_UNISTD_H | 
|---|
| 4522 | #  include <unistd.h> | 
|---|
| 4523 | # endif | 
|---|
| 4524 |  | 
|---|
| 4525 | /* Assume that all systems that can run configure have sys/param.h.  */ | 
|---|
| 4526 | # ifndef HAVE_SYS_PARAM_H | 
|---|
| 4527 | #  define HAVE_SYS_PARAM_H 1 | 
|---|
| 4528 | # endif | 
|---|
| 4529 |  | 
|---|
| 4530 | # ifdef _SC_PAGESIZE | 
|---|
| 4531 | #  define getpagesize() sysconf(_SC_PAGESIZE) | 
|---|
| 4532 | # else /* no _SC_PAGESIZE */ | 
|---|
| 4533 | #  ifdef HAVE_SYS_PARAM_H | 
|---|
| 4534 | #   include <sys/param.h> | 
|---|
| 4535 | #   ifdef EXEC_PAGESIZE | 
|---|
| 4536 | #    define getpagesize() EXEC_PAGESIZE | 
|---|
| 4537 | #   else /* no EXEC_PAGESIZE */ | 
|---|
| 4538 | #    ifdef NBPG | 
|---|
| 4539 | #     define getpagesize() NBPG * CLSIZE | 
|---|
| 4540 | #     ifndef CLSIZE | 
|---|
| 4541 | #      define CLSIZE 1 | 
|---|
| 4542 | #     endif /* no CLSIZE */ | 
|---|
| 4543 | #    else /* no NBPG */ | 
|---|
| 4544 | #     ifdef NBPC | 
|---|
| 4545 | #      define getpagesize() NBPC | 
|---|
| 4546 | #     else /* no NBPC */ | 
|---|
| 4547 | #      ifdef PAGESIZE | 
|---|
| 4548 | #       define getpagesize() PAGESIZE | 
|---|
| 4549 | #      endif /* PAGESIZE */ | 
|---|
| 4550 | #     endif /* no NBPC */ | 
|---|
| 4551 | #    endif /* no NBPG */ | 
|---|
| 4552 | #   endif /* no EXEC_PAGESIZE */ | 
|---|
| 4553 | #  else /* no HAVE_SYS_PARAM_H */ | 
|---|
| 4554 | #   define getpagesize() 8192   /* punt totally */ | 
|---|
| 4555 | #  endif /* no HAVE_SYS_PARAM_H */ | 
|---|
| 4556 | # endif /* no _SC_PAGESIZE */ | 
|---|
| 4557 |  | 
|---|
| 4558 | #endif /* no HAVE_GETPAGESIZE */ | 
|---|
| 4559 |  | 
|---|
| 4560 | #ifdef __cplusplus | 
|---|
| 4561 | extern "C" { void *malloc(unsigned); } | 
|---|
| 4562 | #else | 
|---|
| 4563 | char *malloc(); | 
|---|
| 4564 | #endif | 
|---|
| 4565 |  | 
|---|
| 4566 | int | 
|---|
| 4567 | main() | 
|---|
| 4568 | { | 
|---|
| 4569 | char *data, *data2, *data3; | 
|---|
| 4570 | int i, pagesize; | 
|---|
| 4571 | int fd; | 
|---|
| 4572 |  | 
|---|
| 4573 | pagesize = getpagesize(); | 
|---|
| 4574 |  | 
|---|
| 4575 | /* | 
|---|
| 4576 | * First, make a file with some known garbage in it. | 
|---|
| 4577 | */ | 
|---|
| 4578 | data = malloc(pagesize); | 
|---|
| 4579 | if (!data) | 
|---|
| 4580 | exit(1); | 
|---|
| 4581 | for (i = 0; i < pagesize; ++i) | 
|---|
| 4582 | *(data + i) = rand(); | 
|---|
| 4583 | umask(0); | 
|---|
| 4584 | fd = creat("conftestmmap", 0600); | 
|---|
| 4585 | if (fd < 0) | 
|---|
| 4586 | exit(1); | 
|---|
| 4587 | if (write(fd, data, pagesize) != pagesize) | 
|---|
| 4588 | exit(1); | 
|---|
| 4589 | close(fd); | 
|---|
| 4590 |  | 
|---|
| 4591 | /* | 
|---|
| 4592 | * Next, try to mmap the file at a fixed address which | 
|---|
| 4593 | * already has something else allocated at it.  If we can, | 
|---|
| 4594 | * also make sure that we see the same garbage. | 
|---|
| 4595 | */ | 
|---|
| 4596 | fd = open("conftestmmap", O_RDWR); | 
|---|
| 4597 | if (fd < 0) | 
|---|
| 4598 | exit(1); | 
|---|
| 4599 | data2 = malloc(2 * pagesize); | 
|---|
| 4600 | if (!data2) | 
|---|
| 4601 | exit(1); | 
|---|
| 4602 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | 
|---|
| 4603 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, | 
|---|
| 4604 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | 
|---|
| 4605 | exit(1); | 
|---|
| 4606 | for (i = 0; i < pagesize; ++i) | 
|---|
| 4607 | if (*(data + i) != *(data2 + i)) | 
|---|
| 4608 | exit(1); | 
|---|
| 4609 |  | 
|---|
| 4610 | /* | 
|---|
| 4611 | * Finally, make sure that changes to the mapped area | 
|---|
| 4612 | * do not percolate back to the file as seen by read(). | 
|---|
| 4613 | * (This is a bug on some variants of i386 svr4.0.) | 
|---|
| 4614 | */ | 
|---|
| 4615 | for (i = 0; i < pagesize; ++i) | 
|---|
| 4616 | *(data2 + i) = *(data2 + i) + 1; | 
|---|
| 4617 | data3 = malloc(pagesize); | 
|---|
| 4618 | if (!data3) | 
|---|
| 4619 | exit(1); | 
|---|
| 4620 | if (read(fd, data3, pagesize) != pagesize) | 
|---|
| 4621 | exit(1); | 
|---|
| 4622 | for (i = 0; i < pagesize; ++i) | 
|---|
| 4623 | if (*(data + i) != *(data3 + i)) | 
|---|
| 4624 | exit(1); | 
|---|
| 4625 | close(fd); | 
|---|
| 4626 | unlink("conftestmmap"); | 
|---|
| 4627 | exit(0); | 
|---|
| 4628 | } | 
|---|
| 4629 |  | 
|---|
| 4630 | EOF | 
|---|
| 4631 | if { (eval echo configure:4632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
|---|
| 4632 | then | 
|---|
| 4633 | ac_cv_func_mmap_fixed_mapped=yes | 
|---|
| 4634 | else | 
|---|
| 4635 | echo "configure: failed program was:" >&5 | 
|---|
| 4636 | cat conftest.$ac_ext >&5 | 
|---|
| 4637 | rm -fr conftest* | 
|---|
| 4638 | ac_cv_func_mmap_fixed_mapped=no | 
|---|
| 4639 | fi | 
|---|
| 4640 | rm -fr conftest* | 
|---|
| 4641 | fi | 
|---|
| 4642 |  | 
|---|
| 4643 | fi | 
|---|
| 4644 |  | 
|---|
| 4645 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 | 
|---|
| 4646 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | 
|---|
| 4647 | cat >> confdefs.h <<\EOF | 
|---|
| 4648 | #define HAVE_MMAP 1 | 
|---|
| 4649 | EOF | 
|---|
| 4650 |  | 
|---|
| 4651 | fi | 
|---|
| 4652 |  | 
|---|
| 4653 |  | 
|---|
| 4654 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | 
|---|
| 4655 | unistd.h values.h sys/param.h | 
|---|
| 4656 | do | 
|---|
| 4657 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 
|---|
| 4658 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 
|---|
| 4659 | echo "configure:4660: checking for $ac_hdr" >&5 | 
|---|
| 4660 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 
|---|
| 4661 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4662 | else | 
|---|
| 4663 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4664 | #include <sys/types.h> | 
|---|
| 4665 | #line 4666 "configure" | 
|---|
| 4666 | #include "confdefs.h" | 
|---|
| 4667 | #include <$ac_hdr> | 
|---|
| 4668 | EOF | 
|---|
| 4669 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 4670 | { (eval echo configure:4671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 4671 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 4672 | if test -z "$ac_err"; then | 
|---|
| 4673 | rm -rf conftest* | 
|---|
| 4674 | eval "ac_cv_header_$ac_safe=yes" | 
|---|
| 4675 | else | 
|---|
| 4676 | echo "$ac_err" >&5 | 
|---|
| 4677 | echo "configure: failed program was:" >&5 | 
|---|
| 4678 | cat conftest.$ac_ext >&5 | 
|---|
| 4679 | rm -rf conftest* | 
|---|
| 4680 | eval "ac_cv_header_$ac_safe=no" | 
|---|
| 4681 | fi | 
|---|
| 4682 | rm -f conftest* | 
|---|
| 4683 | fi | 
|---|
| 4684 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
|---|
| 4685 | echo "$ac_t""yes" 1>&6 | 
|---|
| 4686 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 
|---|
| 4687 | cat >> confdefs.h <<EOF | 
|---|
| 4688 | #define $ac_tr_hdr 1 | 
|---|
| 4689 | EOF | 
|---|
| 4690 |  | 
|---|
| 4691 | else | 
|---|
| 4692 | echo "$ac_t""no" 1>&6 | 
|---|
| 4693 | fi | 
|---|
| 4694 | done | 
|---|
| 4695 |  | 
|---|
| 4696 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | 
|---|
| 4697 | __argz_count __argz_stringify __argz_next | 
|---|
| 4698 | do | 
|---|
| 4699 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
|---|
| 4700 | echo "configure:4701: checking for $ac_func" >&5 | 
|---|
| 4701 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
|---|
| 4702 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4703 | else | 
|---|
| 4704 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4705 | #line 4706 "configure" | 
|---|
| 4706 | #include "confdefs.h" | 
|---|
| 4707 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 4708 | which can conflict with char $ac_func(); below.  */ | 
|---|
| 4709 | #include <assert.h> | 
|---|
| 4710 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 4711 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 4712 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 4713 | char $ac_func(); | 
|---|
| 4714 |  | 
|---|
| 4715 | int main() { | 
|---|
| 4716 |  | 
|---|
| 4717 | /* The GNU C library defines this for functions which it implements | 
|---|
| 4718 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 4719 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 4720 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|---|
| 4721 | choke me | 
|---|
| 4722 | #else | 
|---|
| 4723 | $ac_func(); | 
|---|
| 4724 | #endif | 
|---|
| 4725 |  | 
|---|
| 4726 | ; return 0; } | 
|---|
| 4727 | EOF | 
|---|
| 4728 | if { (eval echo configure:4729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4729 | rm -rf conftest* | 
|---|
| 4730 | eval "ac_cv_func_$ac_func=yes" | 
|---|
| 4731 | else | 
|---|
| 4732 | echo "configure: failed program was:" >&5 | 
|---|
| 4733 | cat conftest.$ac_ext >&5 | 
|---|
| 4734 | rm -rf conftest* | 
|---|
| 4735 | eval "ac_cv_func_$ac_func=no" | 
|---|
| 4736 | fi | 
|---|
| 4737 | rm -f conftest* | 
|---|
| 4738 | fi | 
|---|
| 4739 |  | 
|---|
| 4740 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|---|
| 4741 | echo "$ac_t""yes" 1>&6 | 
|---|
| 4742 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|---|
| 4743 | cat >> confdefs.h <<EOF | 
|---|
| 4744 | #define $ac_tr_func 1 | 
|---|
| 4745 | EOF | 
|---|
| 4746 |  | 
|---|
| 4747 | else | 
|---|
| 4748 | echo "$ac_t""no" 1>&6 | 
|---|
| 4749 | fi | 
|---|
| 4750 | done | 
|---|
| 4751 |  | 
|---|
| 4752 |  | 
|---|
| 4753 | if test "${ac_cv_func_stpcpy+set}" != "set"; then | 
|---|
| 4754 | for ac_func in stpcpy | 
|---|
| 4755 | do | 
|---|
| 4756 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
|---|
| 4757 | echo "configure:4758: checking for $ac_func" >&5 | 
|---|
| 4758 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
|---|
| 4759 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4760 | else | 
|---|
| 4761 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4762 | #line 4763 "configure" | 
|---|
| 4763 | #include "confdefs.h" | 
|---|
| 4764 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 4765 | which can conflict with char $ac_func(); below.  */ | 
|---|
| 4766 | #include <assert.h> | 
|---|
| 4767 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 4768 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 4769 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 4770 | char $ac_func(); | 
|---|
| 4771 |  | 
|---|
| 4772 | int main() { | 
|---|
| 4773 |  | 
|---|
| 4774 | /* The GNU C library defines this for functions which it implements | 
|---|
| 4775 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 4776 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 4777 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|---|
| 4778 | choke me | 
|---|
| 4779 | #else | 
|---|
| 4780 | $ac_func(); | 
|---|
| 4781 | #endif | 
|---|
| 4782 |  | 
|---|
| 4783 | ; return 0; } | 
|---|
| 4784 | EOF | 
|---|
| 4785 | if { (eval echo configure:4786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4786 | rm -rf conftest* | 
|---|
| 4787 | eval "ac_cv_func_$ac_func=yes" | 
|---|
| 4788 | else | 
|---|
| 4789 | echo "configure: failed program was:" >&5 | 
|---|
| 4790 | cat conftest.$ac_ext >&5 | 
|---|
| 4791 | rm -rf conftest* | 
|---|
| 4792 | eval "ac_cv_func_$ac_func=no" | 
|---|
| 4793 | fi | 
|---|
| 4794 | rm -f conftest* | 
|---|
| 4795 | fi | 
|---|
| 4796 |  | 
|---|
| 4797 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|---|
| 4798 | echo "$ac_t""yes" 1>&6 | 
|---|
| 4799 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|---|
| 4800 | cat >> confdefs.h <<EOF | 
|---|
| 4801 | #define $ac_tr_func 1 | 
|---|
| 4802 | EOF | 
|---|
| 4803 |  | 
|---|
| 4804 | else | 
|---|
| 4805 | echo "$ac_t""no" 1>&6 | 
|---|
| 4806 | fi | 
|---|
| 4807 | done | 
|---|
| 4808 |  | 
|---|
| 4809 | fi | 
|---|
| 4810 | if test "${ac_cv_func_stpcpy}" = "yes"; then | 
|---|
| 4811 | cat >> confdefs.h <<\EOF | 
|---|
| 4812 | #define HAVE_STPCPY 1 | 
|---|
| 4813 | EOF | 
|---|
| 4814 |  | 
|---|
| 4815 | fi | 
|---|
| 4816 |  | 
|---|
| 4817 | if test $ac_cv_header_locale_h = yes; then | 
|---|
| 4818 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 | 
|---|
| 4819 | echo "configure:4820: checking for LC_MESSAGES" >&5 | 
|---|
| 4820 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then | 
|---|
| 4821 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4822 | else | 
|---|
| 4823 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4824 | #line 4825 "configure" | 
|---|
| 4825 | #include "confdefs.h" | 
|---|
| 4826 | #include <locale.h> | 
|---|
| 4827 | int main() { | 
|---|
| 4828 | return LC_MESSAGES | 
|---|
| 4829 | ; return 0; } | 
|---|
| 4830 | EOF | 
|---|
| 4831 | if { (eval echo configure:4832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4832 | rm -rf conftest* | 
|---|
| 4833 | am_cv_val_LC_MESSAGES=yes | 
|---|
| 4834 | else | 
|---|
| 4835 | echo "configure: failed program was:" >&5 | 
|---|
| 4836 | cat conftest.$ac_ext >&5 | 
|---|
| 4837 | rm -rf conftest* | 
|---|
| 4838 | am_cv_val_LC_MESSAGES=no | 
|---|
| 4839 | fi | 
|---|
| 4840 | rm -f conftest* | 
|---|
| 4841 | fi | 
|---|
| 4842 |  | 
|---|
| 4843 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 | 
|---|
| 4844 | if test $am_cv_val_LC_MESSAGES = yes; then | 
|---|
| 4845 | cat >> confdefs.h <<\EOF | 
|---|
| 4846 | #define HAVE_LC_MESSAGES 1 | 
|---|
| 4847 | EOF | 
|---|
| 4848 |  | 
|---|
| 4849 | fi | 
|---|
| 4850 | fi | 
|---|
| 4851 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 | 
|---|
| 4852 | echo "configure:4853: checking whether NLS is requested" >&5 | 
|---|
| 4853 | # Check whether --enable-nls or --disable-nls was given. | 
|---|
| 4854 | if test "${enable_nls+set}" = set; then | 
|---|
| 4855 | enableval="$enable_nls" | 
|---|
| 4856 | USE_NLS=$enableval | 
|---|
| 4857 | else | 
|---|
| 4858 | USE_NLS=yes | 
|---|
| 4859 | fi | 
|---|
| 4860 |  | 
|---|
| 4861 | echo "$ac_t""$USE_NLS" 1>&6 | 
|---|
| 4862 |  | 
|---|
| 4863 |  | 
|---|
| 4864 | USE_INCLUDED_LIBINTL=no | 
|---|
| 4865 |  | 
|---|
| 4866 | if test "$USE_NLS" = "yes"; then | 
|---|
| 4867 | cat >> confdefs.h <<\EOF | 
|---|
| 4868 | #define ENABLE_NLS 1 | 
|---|
| 4869 | EOF | 
|---|
| 4870 |  | 
|---|
| 4871 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 | 
|---|
| 4872 | echo "configure:4873: checking whether included gettext is requested" >&5 | 
|---|
| 4873 | # Check whether --with-included-gettext or --without-included-gettext was given. | 
|---|
| 4874 | if test "${with_included_gettext+set}" = set; then | 
|---|
| 4875 | withval="$with_included_gettext" | 
|---|
| 4876 | nls_cv_force_use_gnu_gettext=$withval | 
|---|
| 4877 | else | 
|---|
| 4878 | nls_cv_force_use_gnu_gettext=no | 
|---|
| 4879 | fi | 
|---|
| 4880 |  | 
|---|
| 4881 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 | 
|---|
| 4882 |  | 
|---|
| 4883 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | 
|---|
| 4884 | echo "nls_cv_use_gnu_gettext:$nls_cv_use_gnu_gettext" >&5 | 
|---|
| 4885 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | 
|---|
| 4886 | nls_cv_header_intl= | 
|---|
| 4887 | nls_cv_header_libgt= | 
|---|
| 4888 | CATOBJEXT=NONE | 
|---|
| 4889 |  | 
|---|
| 4890 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` | 
|---|
| 4891 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 | 
|---|
| 4892 | echo "configure:4893: checking for libintl.h" >&5 | 
|---|
| 4893 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 
|---|
| 4894 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4895 | else | 
|---|
| 4896 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4897 | #include <sys/types.h> | 
|---|
| 4898 | #line 4899 "configure" | 
|---|
| 4899 | #include "confdefs.h" | 
|---|
| 4900 | #include <libintl.h> | 
|---|
| 4901 | EOF | 
|---|
| 4902 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 4903 | { (eval echo configure:4904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 4904 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 4905 | if test -z "$ac_err"; then | 
|---|
| 4906 | rm -rf conftest* | 
|---|
| 4907 | eval "ac_cv_header_$ac_safe=yes" | 
|---|
| 4908 | else | 
|---|
| 4909 | echo "$ac_err" >&5 | 
|---|
| 4910 | echo "configure: failed program was:" >&5 | 
|---|
| 4911 | cat conftest.$ac_ext >&5 | 
|---|
| 4912 | rm -rf conftest* | 
|---|
| 4913 | eval "ac_cv_header_$ac_safe=no" | 
|---|
| 4914 | fi | 
|---|
| 4915 | rm -f conftest* | 
|---|
| 4916 | fi | 
|---|
| 4917 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
|---|
| 4918 | echo "$ac_t""yes" 1>&6 | 
|---|
| 4919 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 | 
|---|
| 4920 | echo "configure:4921: checking for gettext in libc" >&5 | 
|---|
| 4921 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then | 
|---|
| 4922 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4923 | else | 
|---|
| 4924 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4925 | #line 4926 "configure" | 
|---|
| 4926 | #include "confdefs.h" | 
|---|
| 4927 | #include <libintl.h> | 
|---|
| 4928 | int main() { | 
|---|
| 4929 | return (int) gettext ("") | 
|---|
| 4930 | ; return 0; } | 
|---|
| 4931 | EOF | 
|---|
| 4932 | if { (eval echo configure:4933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4933 | rm -rf conftest* | 
|---|
| 4934 | gt_cv_func_gettext_libc=yes | 
|---|
| 4935 | else | 
|---|
| 4936 | echo "configure: failed program was:" >&5 | 
|---|
| 4937 | cat conftest.$ac_ext >&5 | 
|---|
| 4938 | rm -rf conftest* | 
|---|
| 4939 | gt_cv_func_gettext_libc=no | 
|---|
| 4940 | fi | 
|---|
| 4941 | rm -f conftest* | 
|---|
| 4942 | fi | 
|---|
| 4943 |  | 
|---|
| 4944 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 | 
|---|
| 4945 |  | 
|---|
| 4946 | if test "$gt_cv_func_gettext_libc" != "yes"; then | 
|---|
| 4947 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 | 
|---|
| 4948 | echo "configure:4949: checking for bindtextdomain in -lintl" >&5 | 
|---|
| 4949 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` | 
|---|
| 4950 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|---|
| 4951 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4952 | else | 
|---|
| 4953 | ac_save_LIBS="$LIBS" | 
|---|
| 4954 | LIBS="-lintl  $LIBS" | 
|---|
| 4955 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4956 | #line 4957 "configure" | 
|---|
| 4957 | #include "confdefs.h" | 
|---|
| 4958 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 4959 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 4960 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 4961 | char bindtextdomain(); | 
|---|
| 4962 |  | 
|---|
| 4963 | int main() { | 
|---|
| 4964 | bindtextdomain() | 
|---|
| 4965 | ; return 0; } | 
|---|
| 4966 | EOF | 
|---|
| 4967 | if { (eval echo configure:4968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4968 | rm -rf conftest* | 
|---|
| 4969 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|---|
| 4970 | else | 
|---|
| 4971 | echo "configure: failed program was:" >&5 | 
|---|
| 4972 | cat conftest.$ac_ext >&5 | 
|---|
| 4973 | rm -rf conftest* | 
|---|
| 4974 | eval "ac_cv_lib_$ac_lib_var=no" | 
|---|
| 4975 | fi | 
|---|
| 4976 | rm -f conftest* | 
|---|
| 4977 | LIBS="$ac_save_LIBS" | 
|---|
| 4978 |  | 
|---|
| 4979 | fi | 
|---|
| 4980 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|---|
| 4981 | echo "$ac_t""yes" 1>&6 | 
|---|
| 4982 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 | 
|---|
| 4983 | echo "configure:4984: checking for gettext in libintl" >&5 | 
|---|
| 4984 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then | 
|---|
| 4985 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4986 | else | 
|---|
| 4987 | ac_save_LIBS="$LIBS"; LIBS="-lintl $LIBS"; | 
|---|
| 4988 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4989 | #line 4990 "configure" | 
|---|
| 4990 | #include "confdefs.h" | 
|---|
| 4991 | #include <libintl.h> | 
|---|
| 4992 | int main() { | 
|---|
| 4993 | return (int) gettext ("") | 
|---|
| 4994 | ; return 0; } | 
|---|
| 4995 | EOF | 
|---|
| 4996 | if { (eval echo configure:4997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4997 | rm -rf conftest* | 
|---|
| 4998 | gt_cv_func_gettext_libintl=yes | 
|---|
| 4999 | else | 
|---|
| 5000 | echo "configure: failed program was:" >&5 | 
|---|
| 5001 | cat conftest.$ac_ext >&5 | 
|---|
| 5002 | rm -rf conftest* | 
|---|
| 5003 | gt_cv_func_gettext_libintl=no | 
|---|
| 5004 | fi | 
|---|
| 5005 | rm -f conftest* | 
|---|
| 5006 | LIBS="$ac_save_LIBS"; | 
|---|
| 5007 | fi | 
|---|
| 5008 |  | 
|---|
| 5009 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 | 
|---|
| 5010 | else | 
|---|
| 5011 | echo "$ac_t""no" 1>&6 | 
|---|
| 5012 | fi | 
|---|
| 5013 |  | 
|---|
| 5014 | fi | 
|---|
| 5015 |  | 
|---|
| 5016 | if test "$gt_cv_func_gettext_libc" = "yes" \ | 
|---|
| 5017 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | 
|---|
| 5018 | cat >> confdefs.h <<\EOF | 
|---|
| 5019 | #define HAVE_GETTEXT 1 | 
|---|
| 5020 | EOF | 
|---|
| 5021 |  | 
|---|
| 5022 | # Extract the first word of "msgfmt", so it can be a program name with args. | 
|---|
| 5023 | set dummy msgfmt; ac_word=$2 | 
|---|
| 5024 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 5025 | echo "configure:5026: checking for $ac_word" >&5 | 
|---|
| 5026 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then | 
|---|
| 5027 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5028 | else | 
|---|
| 5029 | case "$MSGFMT" in | 
|---|
| 5030 | [/\\]*|[a-zA-Z]:*) | 
|---|
| 5031 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | 
|---|
| 5032 | ;; | 
|---|
| 5033 | *) | 
|---|
| 5034 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}" | 
|---|
| 5035 | for ac_dir in $PATH; do | 
|---|
| 5036 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 5037 | if test -f $ac_dir/$ac_word; then | 
|---|
| 5038 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | 
|---|
| 5039 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | 
|---|
| 5040 | break | 
|---|
| 5041 | fi | 
|---|
| 5042 | fi | 
|---|
| 5043 | ac_word_saved="$ac_word" | 
|---|
| 5044 | ac_word=$ac_word$ac_cv_exeext | 
|---|
| 5045 | if test -f $ac_dir/$ac_word; then | 
|---|
| 5046 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | 
|---|
| 5047 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | 
|---|
| 5048 | break | 
|---|
| 5049 | fi | 
|---|
| 5050 | fi | 
|---|
| 5051 | ac_word="$ac_word_saved" | 
|---|
| 5052 | done | 
|---|
| 5053 | IFS="$ac_save_ifs" | 
|---|
| 5054 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | 
|---|
| 5055 | ;; | 
|---|
| 5056 | esac | 
|---|
| 5057 | fi | 
|---|
| 5058 | MSGFMT="$ac_cv_path_MSGFMT" | 
|---|
| 5059 | if test -n "$MSGFMT"; then | 
|---|
| 5060 | echo "$ac_t""$MSGFMT" 1>&6 | 
|---|
| 5061 | else | 
|---|
| 5062 | echo "$ac_t""no" 1>&6 | 
|---|
| 5063 | fi | 
|---|
| 5064 | if test "$MSGFMT" != "no"; then | 
|---|
| 5065 | for ac_func in dcgettext | 
|---|
| 5066 | do | 
|---|
| 5067 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
|---|
| 5068 | echo "configure:5069: checking for $ac_func" >&5 | 
|---|
| 5069 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
|---|
| 5070 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5071 | else | 
|---|
| 5072 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5073 | #line 5074 "configure" | 
|---|
| 5074 | #include "confdefs.h" | 
|---|
| 5075 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 5076 | which can conflict with char $ac_func(); below.  */ | 
|---|
| 5077 | #include <assert.h> | 
|---|
| 5078 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 5079 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 5080 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 5081 | char $ac_func(); | 
|---|
| 5082 |  | 
|---|
| 5083 | int main() { | 
|---|
| 5084 |  | 
|---|
| 5085 | /* The GNU C library defines this for functions which it implements | 
|---|
| 5086 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 5087 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 5088 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|---|
| 5089 | choke me | 
|---|
| 5090 | #else | 
|---|
| 5091 | $ac_func(); | 
|---|
| 5092 | #endif | 
|---|
| 5093 |  | 
|---|
| 5094 | ; return 0; } | 
|---|
| 5095 | EOF | 
|---|
| 5096 | if { (eval echo configure:5097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 5097 | rm -rf conftest* | 
|---|
| 5098 | eval "ac_cv_func_$ac_func=yes" | 
|---|
| 5099 | else | 
|---|
| 5100 | echo "configure: failed program was:" >&5 | 
|---|
| 5101 | cat conftest.$ac_ext >&5 | 
|---|
| 5102 | rm -rf conftest* | 
|---|
| 5103 | eval "ac_cv_func_$ac_func=no" | 
|---|
| 5104 | fi | 
|---|
| 5105 | rm -f conftest* | 
|---|
| 5106 | fi | 
|---|
| 5107 |  | 
|---|
| 5108 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|---|
| 5109 | echo "$ac_t""yes" 1>&6 | 
|---|
| 5110 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|---|
| 5111 | cat >> confdefs.h <<EOF | 
|---|
| 5112 | #define $ac_tr_func 1 | 
|---|
| 5113 | EOF | 
|---|
| 5114 |  | 
|---|
| 5115 | else | 
|---|
| 5116 | echo "$ac_t""no" 1>&6 | 
|---|
| 5117 | fi | 
|---|
| 5118 | done | 
|---|
| 5119 |  | 
|---|
| 5120 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | 
|---|
| 5121 | set dummy gmsgfmt; ac_word=$2 | 
|---|
| 5122 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 5123 | echo "configure:5124: checking for $ac_word" >&5 | 
|---|
| 5124 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then | 
|---|
| 5125 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5126 | else | 
|---|
| 5127 | case "$GMSGFMT" in | 
|---|
| 5128 | [/\\]* | [a-zA-Z]:*) | 
|---|
| 5129 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | 
|---|
| 5130 | ;; | 
|---|
| 5131 | ?:/*) | 
|---|
| 5132 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | 
|---|
| 5133 | ;; | 
|---|
| 5134 | *) | 
|---|
| 5135 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 5136 | ac_dummy="$PATH" | 
|---|
| 5137 | for ac_dir in $ac_dummy; do | 
|---|
| 5138 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 5139 | if test -f $ac_dir/$ac_word; then | 
|---|
| 5140 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | 
|---|
| 5141 | break | 
|---|
| 5142 | fi | 
|---|
| 5143 | if test -f $ac_dir/$ac_word$ac_exeext; then | 
|---|
| 5144 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext" | 
|---|
| 5145 | break | 
|---|
| 5146 | fi | 
|---|
| 5147 | done | 
|---|
| 5148 | IFS="$ac_save_ifs" | 
|---|
| 5149 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | 
|---|
| 5150 | ;; | 
|---|
| 5151 | esac | 
|---|
| 5152 | fi | 
|---|
| 5153 | GMSGFMT="$ac_cv_path_GMSGFMT" | 
|---|
| 5154 | if test -n "$GMSGFMT"; then | 
|---|
| 5155 | echo "$ac_t""$GMSGFMT" 1>&6 | 
|---|
| 5156 | else | 
|---|
| 5157 | echo "$ac_t""no" 1>&6 | 
|---|
| 5158 | fi | 
|---|
| 5159 |  | 
|---|
| 5160 | # Extract the first word of "xgettext", so it can be a program name with args. | 
|---|
| 5161 | set dummy xgettext; ac_word=$2 | 
|---|
| 5162 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 5163 | echo "configure:5164: checking for $ac_word" >&5 | 
|---|
| 5164 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then | 
|---|
| 5165 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5166 | else | 
|---|
| 5167 | case "$XGETTEXT" in | 
|---|
| 5168 | [/\\]*|[a-zA-Z]:*) | 
|---|
| 5169 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | 
|---|
| 5170 | ;; | 
|---|
| 5171 | *) | 
|---|
| 5172 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}" | 
|---|
| 5173 | for ac_dir in $PATH; do | 
|---|
| 5174 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 5175 | if test -f $ac_dir/$ac_word; then | 
|---|
| 5176 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | 
|---|
| 5177 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | 
|---|
| 5178 | break | 
|---|
| 5179 | fi | 
|---|
| 5180 | fi | 
|---|
| 5181 | ac_word_saved="$ac_word" | 
|---|
| 5182 | ac_word=$ac_word$ac_cv_exeext | 
|---|
| 5183 | if test -f $ac_dir/$ac_word; then | 
|---|
| 5184 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | 
|---|
| 5185 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | 
|---|
| 5186 | break | 
|---|
| 5187 | fi | 
|---|
| 5188 | fi | 
|---|
| 5189 | ac_word="$ac_word_saved" | 
|---|
| 5190 | done | 
|---|
| 5191 | IFS="$ac_save_ifs" | 
|---|
| 5192 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | 
|---|
| 5193 | ;; | 
|---|
| 5194 | esac | 
|---|
| 5195 | fi | 
|---|
| 5196 | XGETTEXT="$ac_cv_path_XGETTEXT" | 
|---|
| 5197 | if test -n "$XGETTEXT"; then | 
|---|
| 5198 | echo "$ac_t""$XGETTEXT" 1>&6 | 
|---|
| 5199 | else | 
|---|
| 5200 | echo "$ac_t""no" 1>&6 | 
|---|
| 5201 | fi | 
|---|
| 5202 |  | 
|---|
| 5203 |  | 
|---|
| 5204 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5205 | #line 5206 "configure" | 
|---|
| 5206 | #include "confdefs.h" | 
|---|
| 5207 |  | 
|---|
| 5208 | int main() { | 
|---|
| 5209 | extern int _nl_msg_cat_cntr; | 
|---|
| 5210 | return _nl_msg_cat_cntr | 
|---|
| 5211 | ; return 0; } | 
|---|
| 5212 | EOF | 
|---|
| 5213 | if { (eval echo configure:5214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 5214 | rm -rf conftest* | 
|---|
| 5215 | CATOBJEXT=.gmo | 
|---|
| 5216 | DATADIRNAME=share | 
|---|
| 5217 | else | 
|---|
| 5218 | echo "configure: failed program was:" >&5 | 
|---|
| 5219 | cat conftest.$ac_ext >&5 | 
|---|
| 5220 | rm -rf conftest* | 
|---|
| 5221 | CATOBJEXT=.mo | 
|---|
| 5222 | DATADIRNAME=lib | 
|---|
| 5223 | fi | 
|---|
| 5224 | rm -f conftest* | 
|---|
| 5225 | INSTOBJEXT=.mo | 
|---|
| 5226 | fi | 
|---|
| 5227 | fi | 
|---|
| 5228 |  | 
|---|
| 5229 | else | 
|---|
| 5230 | echo "$ac_t""no" 1>&6 | 
|---|
| 5231 | fi | 
|---|
| 5232 |  | 
|---|
| 5233 |  | 
|---|
| 5234 |  | 
|---|
| 5235 | if test "$CATOBJEXT" = "NONE"; then | 
|---|
| 5236 | nls_cv_use_gnu_gettext=yes | 
|---|
| 5237 | echo "nls_cv_use_gnu_gettext:$nls_cv_use_gnu_gettext fallback" >&5 | 
|---|
| 5238 | fi | 
|---|
| 5239 | fi | 
|---|
| 5240 |  | 
|---|
| 5241 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | 
|---|
| 5242 | INTLOBJS="\$(GETTOBJS)" | 
|---|
| 5243 | # Extract the first word of "msgfmt", so it can be a program name with args. | 
|---|
| 5244 | set dummy msgfmt; ac_word=$2 | 
|---|
| 5245 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 5246 | echo "configure:5247: checking for $ac_word" >&5 | 
|---|
| 5247 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then | 
|---|
| 5248 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5249 | else | 
|---|
| 5250 | case "$MSGFMT" in | 
|---|
| 5251 | [/\\]*|[a-zA-Z]:*) | 
|---|
| 5252 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | 
|---|
| 5253 | ;; | 
|---|
| 5254 | *) | 
|---|
| 5255 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}" | 
|---|
| 5256 | for ac_dir in $PATH; do | 
|---|
| 5257 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 5258 | if test -f $ac_dir/$ac_word; then | 
|---|
| 5259 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | 
|---|
| 5260 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | 
|---|
| 5261 | break | 
|---|
| 5262 | fi | 
|---|
| 5263 | fi | 
|---|
| 5264 | ac_word_saved="$ac_word" | 
|---|
| 5265 | ac_word=$ac_word$ac_cv_exeext | 
|---|
| 5266 | if test -f $ac_dir/$ac_word; then | 
|---|
| 5267 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | 
|---|
| 5268 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | 
|---|
| 5269 | break | 
|---|
| 5270 | fi | 
|---|
| 5271 | fi | 
|---|
| 5272 | ac_word="$ac_word_saved" | 
|---|
| 5273 | done | 
|---|
| 5274 | IFS="$ac_save_ifs" | 
|---|
| 5275 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | 
|---|
| 5276 | ;; | 
|---|
| 5277 | esac | 
|---|
| 5278 | fi | 
|---|
| 5279 | MSGFMT="$ac_cv_path_MSGFMT" | 
|---|
| 5280 | if test -n "$MSGFMT"; then | 
|---|
| 5281 | echo "$ac_t""$MSGFMT" 1>&6 | 
|---|
| 5282 | else | 
|---|
| 5283 | echo "$ac_t""no" 1>&6 | 
|---|
| 5284 | fi | 
|---|
| 5285 |  | 
|---|
| 5286 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | 
|---|
| 5287 | set dummy gmsgfmt; ac_word=$2 | 
|---|
| 5288 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 5289 | echo "configure:5290: checking for $ac_word" >&5 | 
|---|
| 5290 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then | 
|---|
| 5291 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5292 | else | 
|---|
| 5293 | case "$GMSGFMT" in | 
|---|
| 5294 | [/\\]* | [a-zA-Z]:*) | 
|---|
| 5295 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | 
|---|
| 5296 | ;; | 
|---|
| 5297 | ?:/*) | 
|---|
| 5298 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | 
|---|
| 5299 | ;; | 
|---|
| 5300 | *) | 
|---|
| 5301 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 5302 | ac_dummy="$PATH" | 
|---|
| 5303 | for ac_dir in $ac_dummy; do | 
|---|
| 5304 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 5305 | if test -f $ac_dir/$ac_word; then | 
|---|
| 5306 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | 
|---|
| 5307 | break | 
|---|
| 5308 | fi | 
|---|
| 5309 | if test -f $ac_dir/$ac_word$ac_exeext; then | 
|---|
| 5310 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext" | 
|---|
| 5311 | break | 
|---|
| 5312 | fi | 
|---|
| 5313 | done | 
|---|
| 5314 | IFS="$ac_save_ifs" | 
|---|
| 5315 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | 
|---|
| 5316 | ;; | 
|---|
| 5317 | esac | 
|---|
| 5318 | fi | 
|---|
| 5319 | GMSGFMT="$ac_cv_path_GMSGFMT" | 
|---|
| 5320 | if test -n "$GMSGFMT"; then | 
|---|
| 5321 | echo "$ac_t""$GMSGFMT" 1>&6 | 
|---|
| 5322 | else | 
|---|
| 5323 | echo "$ac_t""no" 1>&6 | 
|---|
| 5324 | fi | 
|---|
| 5325 |  | 
|---|
| 5326 | # Extract the first word of "xgettext", so it can be a program name with args. | 
|---|
| 5327 | set dummy xgettext; ac_word=$2 | 
|---|
| 5328 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 5329 | echo "configure:5330: checking for $ac_word" >&5 | 
|---|
| 5330 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then | 
|---|
| 5331 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5332 | else | 
|---|
| 5333 | case "$XGETTEXT" in | 
|---|
| 5334 | [/\\]*|[a-zA-Z]:*) | 
|---|
| 5335 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | 
|---|
| 5336 | ;; | 
|---|
| 5337 | *) | 
|---|
| 5338 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}" | 
|---|
| 5339 | for ac_dir in $PATH; do | 
|---|
| 5340 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 5341 | if test -f $ac_dir/$ac_word; then | 
|---|
| 5342 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | 
|---|
| 5343 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | 
|---|
| 5344 | break | 
|---|
| 5345 | fi | 
|---|
| 5346 | fi | 
|---|
| 5347 | ac_word_saved="$ac_word" | 
|---|
| 5348 | ac_word=$ac_word$ac_cv_exeext | 
|---|
| 5349 | if test -f $ac_dir/$ac_word; then | 
|---|
| 5350 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | 
|---|
| 5351 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | 
|---|
| 5352 | break | 
|---|
| 5353 | fi | 
|---|
| 5354 | fi | 
|---|
| 5355 | ac_word="$ac_word_saved" | 
|---|
| 5356 | done | 
|---|
| 5357 | IFS="$ac_save_ifs" | 
|---|
| 5358 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | 
|---|
| 5359 | ;; | 
|---|
| 5360 | esac | 
|---|
| 5361 | fi | 
|---|
| 5362 | XGETTEXT="$ac_cv_path_XGETTEXT" | 
|---|
| 5363 | if test -n "$XGETTEXT"; then | 
|---|
| 5364 | echo "$ac_t""$XGETTEXT" 1>&6 | 
|---|
| 5365 | else | 
|---|
| 5366 | echo "$ac_t""no" 1>&6 | 
|---|
| 5367 | fi | 
|---|
| 5368 |  | 
|---|
| 5369 |  | 
|---|
| 5370 | USE_INCLUDED_LIBINTL=yes | 
|---|
| 5371 | CATOBJEXT=.gmo | 
|---|
| 5372 | INSTOBJEXT=.mo | 
|---|
| 5373 | DATADIRNAME=share | 
|---|
| 5374 | INTLDEPS='$(top_builddir)/../intl/libintl.a' | 
|---|
| 5375 | INTLLIBS=$INTLDEPS | 
|---|
| 5376 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | 
|---|
| 5377 | nls_cv_header_intl=libintl.h | 
|---|
| 5378 | nls_cv_header_libgt=libgettext.h | 
|---|
| 5379 | else | 
|---|
| 5380 | echo "dbg: else: gt_cv_func_gettext_libintl" >&5 | 
|---|
| 5381 | if test "$gt_cv_func_gettext_libintl" = "yes"; then | 
|---|
| 5382 | echo "dbg: updating LIBS" >&5 | 
|---|
| 5383 | LIBS="-lintl $LIBS" | 
|---|
| 5384 | INTLLIBS="-lintl" | 
|---|
| 5385 | fi | 
|---|
| 5386 | fi | 
|---|
| 5387 |  | 
|---|
| 5388 | if test "$XGETTEXT" != ":"; then | 
|---|
| 5389 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | 
|---|
| 5390 | : ; | 
|---|
| 5391 | else | 
|---|
| 5392 | echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6 | 
|---|
| 5393 | XGETTEXT=":" | 
|---|
| 5394 | fi | 
|---|
| 5395 | fi | 
|---|
| 5396 |  | 
|---|
| 5397 | # We need to process the po/ directory. | 
|---|
| 5398 | POSUB=po | 
|---|
| 5399 | else | 
|---|
| 5400 | DATADIRNAME=share | 
|---|
| 5401 | nls_cv_header_intl=libintl.h | 
|---|
| 5402 | nls_cv_header_libgt=libgettext.h | 
|---|
| 5403 | fi | 
|---|
| 5404 |  | 
|---|
| 5405 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | 
|---|
| 5406 | # because some of the sources are only built for this goal. | 
|---|
| 5407 | if test "$PACKAGE" = gettext; then | 
|---|
| 5408 | USE_NLS=yes | 
|---|
| 5409 | USE_INCLUDED_LIBINTL=yes | 
|---|
| 5410 | fi | 
|---|
| 5411 |  | 
|---|
| 5412 | for lang in $ALL_LINGUAS; do | 
|---|
| 5413 | GMOFILES="$GMOFILES $lang.gmo" | 
|---|
| 5414 | POFILES="$POFILES $lang.po" | 
|---|
| 5415 | done | 
|---|
| 5416 |  | 
|---|
| 5417 |  | 
|---|
| 5418 |  | 
|---|
| 5419 |  | 
|---|
| 5420 |  | 
|---|
| 5421 |  | 
|---|
| 5422 |  | 
|---|
| 5423 |  | 
|---|
| 5424 |  | 
|---|
| 5425 |  | 
|---|
| 5426 |  | 
|---|
| 5427 |  | 
|---|
| 5428 |  | 
|---|
| 5429 |  | 
|---|
| 5430 | if test "x$CATOBJEXT" != "x"; then | 
|---|
| 5431 | if test "x$ALL_LINGUAS" = "x"; then | 
|---|
| 5432 | LINGUAS= | 
|---|
| 5433 | else | 
|---|
| 5434 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 | 
|---|
| 5435 | echo "configure:5436: checking for catalogs to be installed" >&5 | 
|---|
| 5436 | NEW_LINGUAS= | 
|---|
| 5437 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | 
|---|
| 5438 | case "$ALL_LINGUAS" in | 
|---|
| 5439 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | 
|---|
| 5440 | esac | 
|---|
| 5441 | done | 
|---|
| 5442 | LINGUAS=$NEW_LINGUAS | 
|---|
| 5443 | echo "$ac_t""$LINGUAS" 1>&6 | 
|---|
| 5444 | fi | 
|---|
| 5445 |  | 
|---|
| 5446 | if test -n "$LINGUAS"; then | 
|---|
| 5447 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | 
|---|
| 5448 | fi | 
|---|
| 5449 | fi | 
|---|
| 5450 |  | 
|---|
| 5451 | if test $ac_cv_header_locale_h = yes; then | 
|---|
| 5452 | INCLUDE_LOCALE_H="#include <locale.h>" | 
|---|
| 5453 | else | 
|---|
| 5454 | INCLUDE_LOCALE_H="\ | 
|---|
| 5455 | /* The system does not provide the header <locale.h>.  Take care yourself.  */" | 
|---|
| 5456 | fi | 
|---|
| 5457 |  | 
|---|
| 5458 |  | 
|---|
| 5459 | if test -f $srcdir/po2tbl.sed.in; then | 
|---|
| 5460 | if test "$CATOBJEXT" = ".cat"; then | 
|---|
| 5461 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` | 
|---|
| 5462 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 | 
|---|
| 5463 | echo "configure:5464: checking for linux/version.h" >&5 | 
|---|
| 5464 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 
|---|
| 5465 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5466 | else | 
|---|
| 5467 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5468 | #include <sys/types.h> | 
|---|
| 5469 | #line 5470 "configure" | 
|---|
| 5470 | #include "confdefs.h" | 
|---|
| 5471 | #include <linux/version.h> | 
|---|
| 5472 | EOF | 
|---|
| 5473 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 5474 | { (eval echo configure:5475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 5475 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 5476 | if test -z "$ac_err"; then | 
|---|
| 5477 | rm -rf conftest* | 
|---|
| 5478 | eval "ac_cv_header_$ac_safe=yes" | 
|---|
| 5479 | else | 
|---|
| 5480 | echo "$ac_err" >&5 | 
|---|
| 5481 | echo "configure: failed program was:" >&5 | 
|---|
| 5482 | cat conftest.$ac_ext >&5 | 
|---|
| 5483 | rm -rf conftest* | 
|---|
| 5484 | eval "ac_cv_header_$ac_safe=no" | 
|---|
| 5485 | fi | 
|---|
| 5486 | rm -f conftest* | 
|---|
| 5487 | fi | 
|---|
| 5488 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
|---|
| 5489 | echo "$ac_t""yes" 1>&6 | 
|---|
| 5490 | msgformat=linux | 
|---|
| 5491 | else | 
|---|
| 5492 | echo "$ac_t""no" 1>&6 | 
|---|
| 5493 | msgformat=xopen | 
|---|
| 5494 | fi | 
|---|
| 5495 |  | 
|---|
| 5496 |  | 
|---|
| 5497 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed | 
|---|
| 5498 | fi | 
|---|
| 5499 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | 
|---|
| 5500 | $srcdir/po2tbl.sed.in > po2tbl.sed | 
|---|
| 5501 | fi | 
|---|
| 5502 |  | 
|---|
| 5503 | if test "$PACKAGE" = "gettext"; then | 
|---|
| 5504 | GT_NO="#NO#" | 
|---|
| 5505 | GT_YES= | 
|---|
| 5506 | else | 
|---|
| 5507 | GT_NO= | 
|---|
| 5508 | GT_YES="#YES#" | 
|---|
| 5509 | fi | 
|---|
| 5510 |  | 
|---|
| 5511 |  | 
|---|
| 5512 |  | 
|---|
| 5513 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" | 
|---|
| 5514 |  | 
|---|
| 5515 |  | 
|---|
| 5516 | l= | 
|---|
| 5517 |  | 
|---|
| 5518 |  | 
|---|
| 5519 | if test -f $srcdir/po/POTFILES.in; then | 
|---|
| 5520 | test -d po || mkdir po | 
|---|
| 5521 | if test "x$srcdir" != "x."; then | 
|---|
| 5522 | if test "x`echo $srcdir | sed -e 's@.\:/.*@@'  -e 's@/.*@@' `" = "x"; then | 
|---|
| 5523 | posrcprefix="$srcdir/" | 
|---|
| 5524 | else | 
|---|
| 5525 | posrcprefix="../$srcdir/" | 
|---|
| 5526 | fi | 
|---|
| 5527 | else | 
|---|
| 5528 | posrcprefix="../" | 
|---|
| 5529 | fi | 
|---|
| 5530 | rm -f po/POTFILES | 
|---|
| 5531 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*,      $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | 
|---|
| 5532 | < $srcdir/po/POTFILES.in > po/POTFILES | 
|---|
| 5533 | fi | 
|---|
| 5534 |  | 
|---|
| 5535 |  | 
|---|
| 5536 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 | 
|---|
| 5537 | echo "configure:5538: checking whether to enable maintainer-specific portions of Makefiles" >&5 | 
|---|
| 5538 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | 
|---|
| 5539 | if test "${enable_maintainer_mode+set}" = set; then | 
|---|
| 5540 | enableval="$enable_maintainer_mode" | 
|---|
| 5541 | USE_MAINTAINER_MODE=$enableval | 
|---|
| 5542 | else | 
|---|
| 5543 | USE_MAINTAINER_MODE=no | 
|---|
| 5544 | fi | 
|---|
| 5545 |  | 
|---|
| 5546 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 | 
|---|
| 5547 |  | 
|---|
| 5548 |  | 
|---|
| 5549 | if test $USE_MAINTAINER_MODE = yes; then | 
|---|
| 5550 | MAINTAINER_MODE_TRUE= | 
|---|
| 5551 | MAINTAINER_MODE_FALSE='#' | 
|---|
| 5552 | else | 
|---|
| 5553 | MAINTAINER_MODE_TRUE='#' | 
|---|
| 5554 | MAINTAINER_MODE_FALSE= | 
|---|
| 5555 | fi | 
|---|
| 5556 | MAINT=$MAINTAINER_MODE_TRUE | 
|---|
| 5557 |  | 
|---|
| 5558 |  | 
|---|
| 5559 |  | 
|---|
| 5560 |  | 
|---|
| 5561 |  | 
|---|
| 5562 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | 
|---|
| 5563 | echo "configure:5564: checking for executable suffix" >&5 | 
|---|
| 5564 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then | 
|---|
| 5565 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5566 | else | 
|---|
| 5567 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then | 
|---|
| 5568 | ac_cv_exeext=.exe | 
|---|
| 5569 | else | 
|---|
| 5570 | rm -f conftest* | 
|---|
| 5571 | echo 'int main () { return 0; }' > conftest.$ac_ext | 
|---|
| 5572 | ac_cv_exeext= | 
|---|
| 5573 | if { (eval echo configure:5574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then | 
|---|
| 5574 | for file in conftest.*; do | 
|---|
| 5575 | case $file in | 
|---|
| 5576 | *.c | *.o | *.obj) ;; | 
|---|
| 5577 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; | 
|---|
| 5578 | esac | 
|---|
| 5579 | done | 
|---|
| 5580 | else | 
|---|
| 5581 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | 
|---|
| 5582 | fi | 
|---|
| 5583 | rm -f conftest* | 
|---|
| 5584 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | 
|---|
| 5585 | fi | 
|---|
| 5586 | fi | 
|---|
| 5587 |  | 
|---|
| 5588 | EXEEXT="" | 
|---|
| 5589 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | 
|---|
| 5590 | echo "$ac_t""${ac_cv_exeext}" 1>&6 | 
|---|
| 5591 | ac_exeext=$EXEEXT | 
|---|
| 5592 |  | 
|---|
| 5593 |  | 
|---|
| 5594 | for ac_hdr in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h | 
|---|
| 5595 | do | 
|---|
| 5596 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 
|---|
| 5597 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 
|---|
| 5598 | echo "configure:5599: checking for $ac_hdr" >&5 | 
|---|
| 5599 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 
|---|
| 5600 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5601 | else | 
|---|
| 5602 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5603 | #include <sys/types.h> | 
|---|
| 5604 | #line 5605 "configure" | 
|---|
| 5605 | #include "confdefs.h" | 
|---|
| 5606 | #include <$ac_hdr> | 
|---|
| 5607 | EOF | 
|---|
| 5608 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 5609 | { (eval echo configure:5610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 5610 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 5611 | if test -z "$ac_err"; then | 
|---|
| 5612 | rm -rf conftest* | 
|---|
| 5613 | eval "ac_cv_header_$ac_safe=yes" | 
|---|
| 5614 | else | 
|---|
| 5615 | echo "$ac_err" >&5 | 
|---|
| 5616 | echo "configure: failed program was:" >&5 | 
|---|
| 5617 | cat conftest.$ac_ext >&5 | 
|---|
| 5618 | rm -rf conftest* | 
|---|
| 5619 | eval "ac_cv_header_$ac_safe=no" | 
|---|
| 5620 | fi | 
|---|
| 5621 | rm -f conftest* | 
|---|
| 5622 | fi | 
|---|
| 5623 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
|---|
| 5624 | echo "$ac_t""yes" 1>&6 | 
|---|
| 5625 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 
|---|
| 5626 | cat >> confdefs.h <<EOF | 
|---|
| 5627 | #define $ac_tr_hdr 1 | 
|---|
| 5628 | EOF | 
|---|
| 5629 |  | 
|---|
| 5630 | else | 
|---|
| 5631 | echo "$ac_t""no" 1>&6 | 
|---|
| 5632 | fi | 
|---|
| 5633 | done | 
|---|
| 5634 |  | 
|---|
| 5635 |  | 
|---|
| 5636 | # Put this here so that autoconf's "cross-compiling" message doesn't confuse | 
|---|
| 5637 | # people who are not cross-compiling but are compiling cross-assemblers. | 
|---|
| 5638 | echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6 | 
|---|
| 5639 | echo "configure:5640: checking whether compiling a cross-assembler" >&5 | 
|---|
| 5640 | if test "${host}" = "${target}"; then | 
|---|
| 5641 | cross_gas=no | 
|---|
| 5642 | else | 
|---|
| 5643 | cross_gas=yes | 
|---|
| 5644 | cat >> confdefs.h <<\EOF | 
|---|
| 5645 | #define CROSS_COMPILE 1 | 
|---|
| 5646 | EOF | 
|---|
| 5647 |  | 
|---|
| 5648 | fi | 
|---|
| 5649 | echo "$ac_t""$cross_gas" 1>&6 | 
|---|
| 5650 |  | 
|---|
| 5651 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | 
|---|
| 5652 | # for constant arguments.  Useless! | 
|---|
| 5653 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | 
|---|
| 5654 | echo "configure:5655: checking for working alloca.h" >&5 | 
|---|
| 5655 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then | 
|---|
| 5656 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5657 | else | 
|---|
| 5658 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5659 | #line 5660 "configure" | 
|---|
| 5660 | #include "confdefs.h" | 
|---|
| 5661 | #include <alloca.h> | 
|---|
| 5662 | int main() { | 
|---|
| 5663 | char *p = alloca(2 * sizeof(int)); | 
|---|
| 5664 | ; return 0; } | 
|---|
| 5665 | EOF | 
|---|
| 5666 | if { (eval echo configure:5667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 5667 | rm -rf conftest* | 
|---|
| 5668 | ac_cv_header_alloca_h=yes | 
|---|
| 5669 | else | 
|---|
| 5670 | echo "configure: failed program was:" >&5 | 
|---|
| 5671 | cat conftest.$ac_ext >&5 | 
|---|
| 5672 | rm -rf conftest* | 
|---|
| 5673 | ac_cv_header_alloca_h=no | 
|---|
| 5674 | fi | 
|---|
| 5675 | rm -f conftest* | 
|---|
| 5676 | fi | 
|---|
| 5677 |  | 
|---|
| 5678 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | 
|---|
| 5679 | if test $ac_cv_header_alloca_h = yes; then | 
|---|
| 5680 | cat >> confdefs.h <<\EOF | 
|---|
| 5681 | #define HAVE_ALLOCA_H 1 | 
|---|
| 5682 | EOF | 
|---|
| 5683 |  | 
|---|
| 5684 | fi | 
|---|
| 5685 |  | 
|---|
| 5686 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 | 
|---|
| 5687 | echo "configure:5688: checking for alloca" >&5 | 
|---|
| 5688 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then | 
|---|
| 5689 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5690 | else | 
|---|
| 5691 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5692 | #line 5693 "configure" | 
|---|
| 5693 | #include "confdefs.h" | 
|---|
| 5694 |  | 
|---|
| 5695 | #ifdef __GNUC__ | 
|---|
| 5696 | # define alloca __builtin_alloca | 
|---|
| 5697 | #else | 
|---|
| 5698 | # ifdef _MSC_VER | 
|---|
| 5699 | #  include <malloc.h> | 
|---|
| 5700 | #  define alloca _alloca | 
|---|
| 5701 | # else | 
|---|
| 5702 | #  if HAVE_ALLOCA_H | 
|---|
| 5703 | #   include <alloca.h> | 
|---|
| 5704 | #  else | 
|---|
| 5705 | #   ifdef _AIX | 
|---|
| 5706 | #pragma alloca | 
|---|
| 5707 | #   else | 
|---|
| 5708 | #    ifndef alloca /* predefined by HP cc +Olibcalls */ | 
|---|
| 5709 | char *alloca (); | 
|---|
| 5710 | #    endif | 
|---|
| 5711 | #   endif | 
|---|
| 5712 | #  endif | 
|---|
| 5713 | # endif | 
|---|
| 5714 | #endif | 
|---|
| 5715 |  | 
|---|
| 5716 | int main() { | 
|---|
| 5717 | char *p = (char *) alloca(1); | 
|---|
| 5718 | ; return 0; } | 
|---|
| 5719 | EOF | 
|---|
| 5720 | if { (eval echo configure:5721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 5721 | rm -rf conftest* | 
|---|
| 5722 | ac_cv_func_alloca_works=yes | 
|---|
| 5723 | else | 
|---|
| 5724 | echo "configure: failed program was:" >&5 | 
|---|
| 5725 | cat conftest.$ac_ext >&5 | 
|---|
| 5726 | rm -rf conftest* | 
|---|
| 5727 | ac_cv_func_alloca_works=no | 
|---|
| 5728 | fi | 
|---|
| 5729 | rm -f conftest* | 
|---|
| 5730 | fi | 
|---|
| 5731 |  | 
|---|
| 5732 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 | 
|---|
| 5733 | if test $ac_cv_func_alloca_works = yes; then | 
|---|
| 5734 | cat >> confdefs.h <<\EOF | 
|---|
| 5735 | #define HAVE_ALLOCA 1 | 
|---|
| 5736 | EOF | 
|---|
| 5737 |  | 
|---|
| 5738 | fi | 
|---|
| 5739 |  | 
|---|
| 5740 | if test $ac_cv_func_alloca_works = no; then | 
|---|
| 5741 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | 
|---|
| 5742 | # that cause trouble.  Some versions do not even contain alloca or | 
|---|
| 5743 | # contain a buggy version.  If you still want to use their alloca, | 
|---|
| 5744 | # use ar to extract alloca.o from them instead of compiling alloca.c. | 
|---|
| 5745 | ALLOCA=alloca.${ac_objext} | 
|---|
| 5746 | cat >> confdefs.h <<\EOF | 
|---|
| 5747 | #define C_ALLOCA 1 | 
|---|
| 5748 | EOF | 
|---|
| 5749 |  | 
|---|
| 5750 |  | 
|---|
| 5751 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | 
|---|
| 5752 | echo "configure:5753: checking whether alloca needs Cray hooks" >&5 | 
|---|
| 5753 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then | 
|---|
| 5754 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5755 | else | 
|---|
| 5756 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5757 | #line 5758 "configure" | 
|---|
| 5758 | #include "confdefs.h" | 
|---|
| 5759 | #if defined(CRAY) && ! defined(CRAY2) | 
|---|
| 5760 | webecray | 
|---|
| 5761 | #else | 
|---|
| 5762 | wenotbecray | 
|---|
| 5763 | #endif | 
|---|
| 5764 |  | 
|---|
| 5765 | EOF | 
|---|
| 5766 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|---|
| 5767 | egrep "webecray" >/dev/null 2>&1; then | 
|---|
| 5768 | rm -rf conftest* | 
|---|
| 5769 | ac_cv_os_cray=yes | 
|---|
| 5770 | else | 
|---|
| 5771 | rm -rf conftest* | 
|---|
| 5772 | ac_cv_os_cray=no | 
|---|
| 5773 | fi | 
|---|
| 5774 | rm -f conftest* | 
|---|
| 5775 |  | 
|---|
| 5776 | fi | 
|---|
| 5777 |  | 
|---|
| 5778 | echo "$ac_t""$ac_cv_os_cray" 1>&6 | 
|---|
| 5779 | if test $ac_cv_os_cray = yes; then | 
|---|
| 5780 | for ac_func in _getb67 GETB67 getb67; do | 
|---|
| 5781 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
|---|
| 5782 | echo "configure:5783: checking for $ac_func" >&5 | 
|---|
| 5783 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
|---|
| 5784 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5785 | else | 
|---|
| 5786 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5787 | #line 5788 "configure" | 
|---|
| 5788 | #include "confdefs.h" | 
|---|
| 5789 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 5790 | which can conflict with char $ac_func(); below.  */ | 
|---|
| 5791 | #include <assert.h> | 
|---|
| 5792 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 5793 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 5794 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 5795 | char $ac_func(); | 
|---|
| 5796 |  | 
|---|
| 5797 | int main() { | 
|---|
| 5798 |  | 
|---|
| 5799 | /* The GNU C library defines this for functions which it implements | 
|---|
| 5800 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 5801 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 5802 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|---|
| 5803 | choke me | 
|---|
| 5804 | #else | 
|---|
| 5805 | $ac_func(); | 
|---|
| 5806 | #endif | 
|---|
| 5807 |  | 
|---|
| 5808 | ; return 0; } | 
|---|
| 5809 | EOF | 
|---|
| 5810 | if { (eval echo configure:5811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 5811 | rm -rf conftest* | 
|---|
| 5812 | eval "ac_cv_func_$ac_func=yes" | 
|---|
| 5813 | else | 
|---|
| 5814 | echo "configure: failed program was:" >&5 | 
|---|
| 5815 | cat conftest.$ac_ext >&5 | 
|---|
| 5816 | rm -rf conftest* | 
|---|
| 5817 | eval "ac_cv_func_$ac_func=no" | 
|---|
| 5818 | fi | 
|---|
| 5819 | rm -f conftest* | 
|---|
| 5820 | fi | 
|---|
| 5821 |  | 
|---|
| 5822 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|---|
| 5823 | echo "$ac_t""yes" 1>&6 | 
|---|
| 5824 | cat >> confdefs.h <<EOF | 
|---|
| 5825 | #define CRAY_STACKSEG_END $ac_func | 
|---|
| 5826 | EOF | 
|---|
| 5827 |  | 
|---|
| 5828 | break | 
|---|
| 5829 | else | 
|---|
| 5830 | echo "$ac_t""no" 1>&6 | 
|---|
| 5831 | fi | 
|---|
| 5832 |  | 
|---|
| 5833 | done | 
|---|
| 5834 | fi | 
|---|
| 5835 |  | 
|---|
| 5836 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | 
|---|
| 5837 | echo "configure:5838: checking stack direction for C alloca" >&5 | 
|---|
| 5838 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then | 
|---|
| 5839 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5840 | else | 
|---|
| 5841 | if test "$cross_compiling" = yes; then | 
|---|
| 5842 | ac_cv_c_stack_direction=0 | 
|---|
| 5843 | else | 
|---|
| 5844 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5845 | #line 5846 "configure" | 
|---|
| 5846 | #include "confdefs.h" | 
|---|
| 5847 | find_stack_direction () | 
|---|
| 5848 | { | 
|---|
| 5849 | static char *addr = 0; | 
|---|
| 5850 | auto char dummy; | 
|---|
| 5851 | if (addr == 0) | 
|---|
| 5852 | { | 
|---|
| 5853 | addr = &dummy; | 
|---|
| 5854 | return find_stack_direction (); | 
|---|
| 5855 | } | 
|---|
| 5856 | else | 
|---|
| 5857 | return (&dummy > addr) ? 1 : -1; | 
|---|
| 5858 | } | 
|---|
| 5859 | main () | 
|---|
| 5860 | { | 
|---|
| 5861 | exit (find_stack_direction() < 0); | 
|---|
| 5862 | } | 
|---|
| 5863 | EOF | 
|---|
| 5864 | if { (eval echo configure:5865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
|---|
| 5865 | then | 
|---|
| 5866 | ac_cv_c_stack_direction=1 | 
|---|
| 5867 | else | 
|---|
| 5868 | echo "configure: failed program was:" >&5 | 
|---|
| 5869 | cat conftest.$ac_ext >&5 | 
|---|
| 5870 | rm -fr conftest* | 
|---|
| 5871 | ac_cv_c_stack_direction=-1 | 
|---|
| 5872 | fi | 
|---|
| 5873 | rm -fr conftest* | 
|---|
| 5874 | fi | 
|---|
| 5875 |  | 
|---|
| 5876 | fi | 
|---|
| 5877 |  | 
|---|
| 5878 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 | 
|---|
| 5879 | cat >> confdefs.h <<EOF | 
|---|
| 5880 | #define STACK_DIRECTION $ac_cv_c_stack_direction | 
|---|
| 5881 | EOF | 
|---|
| 5882 |  | 
|---|
| 5883 | fi | 
|---|
| 5884 |  | 
|---|
| 5885 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | 
|---|
| 5886 | echo "configure:5887: checking for inline" >&5 | 
|---|
| 5887 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then | 
|---|
| 5888 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5889 | else | 
|---|
| 5890 | ac_cv_c_inline=no | 
|---|
| 5891 | for ac_kw in inline __inline__ __inline; do | 
|---|
| 5892 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5893 | #line 5894 "configure" | 
|---|
| 5894 | #include "confdefs.h" | 
|---|
| 5895 |  | 
|---|
| 5896 | int main() { | 
|---|
| 5897 | } $ac_kw foo() { | 
|---|
| 5898 | ; return 0; } | 
|---|
| 5899 | EOF | 
|---|
| 5900 | if { (eval echo configure:5901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 5901 | rm -rf conftest* | 
|---|
| 5902 | ac_cv_c_inline=$ac_kw; break | 
|---|
| 5903 | else | 
|---|
| 5904 | echo "configure: failed program was:" >&5 | 
|---|
| 5905 | cat conftest.$ac_ext >&5 | 
|---|
| 5906 | fi | 
|---|
| 5907 | rm -f conftest* | 
|---|
| 5908 | done | 
|---|
| 5909 |  | 
|---|
| 5910 | fi | 
|---|
| 5911 |  | 
|---|
| 5912 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | 
|---|
| 5913 | case "$ac_cv_c_inline" in | 
|---|
| 5914 | inline | yes) ;; | 
|---|
| 5915 | no) cat >> confdefs.h <<\EOF | 
|---|
| 5916 | #define inline | 
|---|
| 5917 | EOF | 
|---|
| 5918 | ;; | 
|---|
| 5919 | *)  cat >> confdefs.h <<EOF | 
|---|
| 5920 | #define inline $ac_cv_c_inline | 
|---|
| 5921 | EOF | 
|---|
| 5922 | ;; | 
|---|
| 5923 | esac | 
|---|
| 5924 |  | 
|---|
| 5925 |  | 
|---|
| 5926 | # VMS doesn't have unlink. | 
|---|
| 5927 | for ac_func in unlink remove | 
|---|
| 5928 | do | 
|---|
| 5929 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
|---|
| 5930 | echo "configure:5931: checking for $ac_func" >&5 | 
|---|
| 5931 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
|---|
| 5932 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5933 | else | 
|---|
| 5934 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5935 | #line 5936 "configure" | 
|---|
| 5936 | #include "confdefs.h" | 
|---|
| 5937 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 5938 | which can conflict with char $ac_func(); below.  */ | 
|---|
| 5939 | #include <assert.h> | 
|---|
| 5940 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 5941 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 5942 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 5943 | char $ac_func(); | 
|---|
| 5944 |  | 
|---|
| 5945 | int main() { | 
|---|
| 5946 |  | 
|---|
| 5947 | /* The GNU C library defines this for functions which it implements | 
|---|
| 5948 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 5949 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 5950 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|---|
| 5951 | choke me | 
|---|
| 5952 | #else | 
|---|
| 5953 | $ac_func(); | 
|---|
| 5954 | #endif | 
|---|
| 5955 |  | 
|---|
| 5956 | ; return 0; } | 
|---|
| 5957 | EOF | 
|---|
| 5958 | if { (eval echo configure:5959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 5959 | rm -rf conftest* | 
|---|
| 5960 | eval "ac_cv_func_$ac_func=yes" | 
|---|
| 5961 | else | 
|---|
| 5962 | echo "configure: failed program was:" >&5 | 
|---|
| 5963 | cat conftest.$ac_ext >&5 | 
|---|
| 5964 | rm -rf conftest* | 
|---|
| 5965 | eval "ac_cv_func_$ac_func=no" | 
|---|
| 5966 | fi | 
|---|
| 5967 | rm -f conftest* | 
|---|
| 5968 | fi | 
|---|
| 5969 |  | 
|---|
| 5970 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|---|
| 5971 | echo "$ac_t""yes" 1>&6 | 
|---|
| 5972 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|---|
| 5973 | cat >> confdefs.h <<EOF | 
|---|
| 5974 | #define $ac_tr_func 1 | 
|---|
| 5975 | EOF | 
|---|
| 5976 | break | 
|---|
| 5977 | else | 
|---|
| 5978 | echo "$ac_t""no" 1>&6 | 
|---|
| 5979 | fi | 
|---|
| 5980 | done | 
|---|
| 5981 |  | 
|---|
| 5982 |  | 
|---|
| 5983 | # Some systems don't have sbrk(). | 
|---|
| 5984 | for ac_func in sbrk | 
|---|
| 5985 | do | 
|---|
| 5986 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
|---|
| 5987 | echo "configure:5988: checking for $ac_func" >&5 | 
|---|
| 5988 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
|---|
| 5989 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5990 | else | 
|---|
| 5991 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5992 | #line 5993 "configure" | 
|---|
| 5993 | #include "confdefs.h" | 
|---|
| 5994 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 5995 | which can conflict with char $ac_func(); below.  */ | 
|---|
| 5996 | #include <assert.h> | 
|---|
| 5997 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 5998 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 5999 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 6000 | char $ac_func(); | 
|---|
| 6001 |  | 
|---|
| 6002 | int main() { | 
|---|
| 6003 |  | 
|---|
| 6004 | /* The GNU C library defines this for functions which it implements | 
|---|
| 6005 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 6006 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 6007 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|---|
| 6008 | choke me | 
|---|
| 6009 | #else | 
|---|
| 6010 | $ac_func(); | 
|---|
| 6011 | #endif | 
|---|
| 6012 |  | 
|---|
| 6013 | ; return 0; } | 
|---|
| 6014 | EOF | 
|---|
| 6015 | if { (eval echo configure:6016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 6016 | rm -rf conftest* | 
|---|
| 6017 | eval "ac_cv_func_$ac_func=yes" | 
|---|
| 6018 | else | 
|---|
| 6019 | echo "configure: failed program was:" >&5 | 
|---|
| 6020 | cat conftest.$ac_ext >&5 | 
|---|
| 6021 | rm -rf conftest* | 
|---|
| 6022 | eval "ac_cv_func_$ac_func=no" | 
|---|
| 6023 | fi | 
|---|
| 6024 | rm -f conftest* | 
|---|
| 6025 | fi | 
|---|
| 6026 |  | 
|---|
| 6027 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|---|
| 6028 | echo "$ac_t""yes" 1>&6 | 
|---|
| 6029 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|---|
| 6030 | cat >> confdefs.h <<EOF | 
|---|
| 6031 | #define $ac_tr_func 1 | 
|---|
| 6032 | EOF | 
|---|
| 6033 |  | 
|---|
| 6034 | else | 
|---|
| 6035 | echo "$ac_t""no" 1>&6 | 
|---|
| 6036 | fi | 
|---|
| 6037 | done | 
|---|
| 6038 |  | 
|---|
| 6039 |  | 
|---|
| 6040 | # do we need the math library? | 
|---|
| 6041 | case "${need_libm}" in | 
|---|
| 6042 | yes) | 
|---|
| 6043 | LIBM= | 
|---|
| 6044 | case $host in | 
|---|
| 6045 | *-*-beos* | *-*-cygwin* | *-*-pw32*) | 
|---|
| 6046 | # These system don't have libm | 
|---|
| 6047 | ;; | 
|---|
| 6048 | *-ncr-sysv4.3*) | 
|---|
| 6049 | echo $ac_n "checking for _mwvalidcheckl in -lmw""... $ac_c" 1>&6 | 
|---|
| 6050 | echo "configure:6051: checking for _mwvalidcheckl in -lmw" >&5 | 
|---|
| 6051 | ac_lib_var=`echo mw'_'_mwvalidcheckl | sed 'y%./+-%__p_%'` | 
|---|
| 6052 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|---|
| 6053 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6054 | else | 
|---|
| 6055 | ac_save_LIBS="$LIBS" | 
|---|
| 6056 | LIBS="-lmw  $LIBS" | 
|---|
| 6057 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6058 | #line 6059 "configure" | 
|---|
| 6059 | #include "confdefs.h" | 
|---|
| 6060 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 6061 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 6062 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 6063 | char _mwvalidcheckl(); | 
|---|
| 6064 |  | 
|---|
| 6065 | int main() { | 
|---|
| 6066 | _mwvalidcheckl() | 
|---|
| 6067 | ; return 0; } | 
|---|
| 6068 | EOF | 
|---|
| 6069 | if { (eval echo configure:6070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 6070 | rm -rf conftest* | 
|---|
| 6071 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|---|
| 6072 | else | 
|---|
| 6073 | echo "configure: failed program was:" >&5 | 
|---|
| 6074 | cat conftest.$ac_ext >&5 | 
|---|
| 6075 | rm -rf conftest* | 
|---|
| 6076 | eval "ac_cv_lib_$ac_lib_var=no" | 
|---|
| 6077 | fi | 
|---|
| 6078 | rm -f conftest* | 
|---|
| 6079 | LIBS="$ac_save_LIBS" | 
|---|
| 6080 |  | 
|---|
| 6081 | fi | 
|---|
| 6082 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|---|
| 6083 | echo "$ac_t""yes" 1>&6 | 
|---|
| 6084 | LIBM="-lmw" | 
|---|
| 6085 | else | 
|---|
| 6086 | echo "$ac_t""no" 1>&6 | 
|---|
| 6087 | fi | 
|---|
| 6088 |  | 
|---|
| 6089 | echo $ac_n "checking for main in -lm""... $ac_c" 1>&6 | 
|---|
| 6090 | echo "configure:6091: checking for main in -lm" >&5 | 
|---|
| 6091 | ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'` | 
|---|
| 6092 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|---|
| 6093 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6094 | else | 
|---|
| 6095 | ac_save_LIBS="$LIBS" | 
|---|
| 6096 | LIBS="-lm  $LIBS" | 
|---|
| 6097 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6098 | #line 6099 "configure" | 
|---|
| 6099 | #include "confdefs.h" | 
|---|
| 6100 |  | 
|---|
| 6101 | int main() { | 
|---|
| 6102 | main() | 
|---|
| 6103 | ; return 0; } | 
|---|
| 6104 | EOF | 
|---|
| 6105 | if { (eval echo configure:6106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 6106 | rm -rf conftest* | 
|---|
| 6107 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|---|
| 6108 | else | 
|---|
| 6109 | echo "configure: failed program was:" >&5 | 
|---|
| 6110 | cat conftest.$ac_ext >&5 | 
|---|
| 6111 | rm -rf conftest* | 
|---|
| 6112 | eval "ac_cv_lib_$ac_lib_var=no" | 
|---|
| 6113 | fi | 
|---|
| 6114 | rm -f conftest* | 
|---|
| 6115 | LIBS="$ac_save_LIBS" | 
|---|
| 6116 |  | 
|---|
| 6117 | fi | 
|---|
| 6118 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|---|
| 6119 | echo "$ac_t""yes" 1>&6 | 
|---|
| 6120 | LIBM="$LIBM -lm" | 
|---|
| 6121 | else | 
|---|
| 6122 | echo "$ac_t""no" 1>&6 | 
|---|
| 6123 | fi | 
|---|
| 6124 |  | 
|---|
| 6125 | ;; | 
|---|
| 6126 | *) | 
|---|
| 6127 | echo $ac_n "checking for main in -lm""... $ac_c" 1>&6 | 
|---|
| 6128 | echo "configure:6129: checking for main in -lm" >&5 | 
|---|
| 6129 | ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'` | 
|---|
| 6130 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|---|
| 6131 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6132 | else | 
|---|
| 6133 | ac_save_LIBS="$LIBS" | 
|---|
| 6134 | LIBS="-lm  $LIBS" | 
|---|
| 6135 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6136 | #line 6137 "configure" | 
|---|
| 6137 | #include "confdefs.h" | 
|---|
| 6138 |  | 
|---|
| 6139 | int main() { | 
|---|
| 6140 | main() | 
|---|
| 6141 | ; return 0; } | 
|---|
| 6142 | EOF | 
|---|
| 6143 | if { (eval echo configure:6144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 6144 | rm -rf conftest* | 
|---|
| 6145 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|---|
| 6146 | else | 
|---|
| 6147 | echo "configure: failed program was:" >&5 | 
|---|
| 6148 | cat conftest.$ac_ext >&5 | 
|---|
| 6149 | rm -rf conftest* | 
|---|
| 6150 | eval "ac_cv_lib_$ac_lib_var=no" | 
|---|
| 6151 | fi | 
|---|
| 6152 | rm -f conftest* | 
|---|
| 6153 | LIBS="$ac_save_LIBS" | 
|---|
| 6154 |  | 
|---|
| 6155 | fi | 
|---|
| 6156 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|---|
| 6157 | echo "$ac_t""yes" 1>&6 | 
|---|
| 6158 | LIBM="-lm" | 
|---|
| 6159 | else | 
|---|
| 6160 | echo "$ac_t""no" 1>&6 | 
|---|
| 6161 | fi | 
|---|
| 6162 |  | 
|---|
| 6163 | ;; | 
|---|
| 6164 | esac | 
|---|
| 6165 |  | 
|---|
| 6166 |  | 
|---|
| 6167 | ;; | 
|---|
| 6168 | esac | 
|---|
| 6169 |  | 
|---|
| 6170 | # Some non-ANSI preprocessors botch requoting inside strings.  That's bad | 
|---|
| 6171 | # enough, but on some of those systems, the assert macro relies on requoting | 
|---|
| 6172 | # working properly! | 
|---|
| 6173 | echo $ac_n "checking for working assert macro""... $ac_c" 1>&6 | 
|---|
| 6174 | echo "configure:6175: checking for working assert macro" >&5 | 
|---|
| 6175 | if eval "test \"`echo '$''{'gas_cv_assert_ok'+set}'`\" = set"; then | 
|---|
| 6176 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6177 | else | 
|---|
| 6178 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6179 | #line 6180 "configure" | 
|---|
| 6180 | #include "confdefs.h" | 
|---|
| 6181 | #include <assert.h> | 
|---|
| 6182 | #include <stdio.h> | 
|---|
| 6183 | int main() { | 
|---|
| 6184 |  | 
|---|
| 6185 | /* check for requoting problems */ | 
|---|
| 6186 | static int a, b, c, d; | 
|---|
| 6187 | static char *s; | 
|---|
| 6188 | assert (!strcmp(s, "foo bar baz quux")); | 
|---|
| 6189 | /* check for newline handling */ | 
|---|
| 6190 | assert (a == b | 
|---|
| 6191 | || c == d); | 
|---|
| 6192 |  | 
|---|
| 6193 | ; return 0; } | 
|---|
| 6194 | EOF | 
|---|
| 6195 | if { (eval echo configure:6196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 6196 | rm -rf conftest* | 
|---|
| 6197 | gas_cv_assert_ok=yes | 
|---|
| 6198 | else | 
|---|
| 6199 | echo "configure: failed program was:" >&5 | 
|---|
| 6200 | cat conftest.$ac_ext >&5 | 
|---|
| 6201 | rm -rf conftest* | 
|---|
| 6202 | gas_cv_assert_ok=no | 
|---|
| 6203 | fi | 
|---|
| 6204 | rm -f conftest* | 
|---|
| 6205 | fi | 
|---|
| 6206 | echo "$ac_t""$gas_cv_assert_ok" 1>&6 | 
|---|
| 6207 | test $gas_cv_assert_ok = yes || cat >> confdefs.h <<\EOF | 
|---|
| 6208 | #define BROKEN_ASSERT 1 | 
|---|
| 6209 | EOF | 
|---|
| 6210 |  | 
|---|
| 6211 |  | 
|---|
| 6212 |  | 
|---|
| 6213 | # On some systems, the system header files may not declare malloc, realloc, | 
|---|
| 6214 | # and free.  There are places where gas needs these functions to have been | 
|---|
| 6215 | # declared -- such as when taking their addresses. | 
|---|
| 6216 | gas_test_headers=" | 
|---|
| 6217 | #ifdef HAVE_MEMORY_H | 
|---|
| 6218 | #include <memory.h> | 
|---|
| 6219 | #endif | 
|---|
| 6220 | #ifdef HAVE_STRING_H | 
|---|
| 6221 | #include <string.h> | 
|---|
| 6222 | #else | 
|---|
| 6223 | #ifdef HAVE_STRINGS_H | 
|---|
| 6224 | #include <strings.h> | 
|---|
| 6225 | #endif | 
|---|
| 6226 | #endif | 
|---|
| 6227 | #ifdef HAVE_STDLIB_H | 
|---|
| 6228 | #include <stdlib.h> | 
|---|
| 6229 | #endif | 
|---|
| 6230 | #ifdef HAVE_UNISTD_H | 
|---|
| 6231 | #include <unistd.h> | 
|---|
| 6232 | #endif | 
|---|
| 6233 | " | 
|---|
| 6234 |  | 
|---|
| 6235 | echo $ac_n "checking whether declaration is required for strstr""... $ac_c" 1>&6 | 
|---|
| 6236 | echo "configure:6237: checking whether declaration is required for strstr" >&5 | 
|---|
| 6237 | if eval "test \"`echo '$''{'gas_cv_decl_needed_strstr'+set}'`\" = set"; then | 
|---|
| 6238 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6239 | else | 
|---|
| 6240 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6241 | #line 6242 "configure" | 
|---|
| 6242 | #include "confdefs.h" | 
|---|
| 6243 | $gas_test_headers | 
|---|
| 6244 | int main() { | 
|---|
| 6245 |  | 
|---|
| 6246 | typedef char *(*f)(); | 
|---|
| 6247 | f x; | 
|---|
| 6248 | x = (f) strstr; | 
|---|
| 6249 |  | 
|---|
| 6250 | ; return 0; } | 
|---|
| 6251 | EOF | 
|---|
| 6252 | if { (eval echo configure:6253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 6253 | rm -rf conftest* | 
|---|
| 6254 | gas_cv_decl_needed_strstr=no | 
|---|
| 6255 | else | 
|---|
| 6256 | echo "configure: failed program was:" >&5 | 
|---|
| 6257 | cat conftest.$ac_ext >&5 | 
|---|
| 6258 | rm -rf conftest* | 
|---|
| 6259 | gas_cv_decl_needed_strstr=yes | 
|---|
| 6260 | fi | 
|---|
| 6261 | rm -f conftest* | 
|---|
| 6262 | fi | 
|---|
| 6263 | echo "$ac_t""$gas_cv_decl_needed_strstr" 1>&6 | 
|---|
| 6264 | if test $gas_cv_decl_needed_strstr = yes; then | 
|---|
| 6265 | cat >> confdefs.h <<\EOF | 
|---|
| 6266 | #define NEED_DECLARATION_STRSTR 1 | 
|---|
| 6267 | EOF | 
|---|
| 6268 |  | 
|---|
| 6269 | fi | 
|---|
| 6270 |  | 
|---|
| 6271 |  | 
|---|
| 6272 | echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6 | 
|---|
| 6273 | echo "configure:6274: checking whether declaration is required for malloc" >&5 | 
|---|
| 6274 | if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then | 
|---|
| 6275 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6276 | else | 
|---|
| 6277 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6278 | #line 6279 "configure" | 
|---|
| 6279 | #include "confdefs.h" | 
|---|
| 6280 | $gas_test_headers | 
|---|
| 6281 | int main() { | 
|---|
| 6282 |  | 
|---|
| 6283 | typedef char *(*f)(); | 
|---|
| 6284 | f x; | 
|---|
| 6285 | x = (f) malloc; | 
|---|
| 6286 |  | 
|---|
| 6287 | ; return 0; } | 
|---|
| 6288 | EOF | 
|---|
| 6289 | if { (eval echo configure:6290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 6290 | rm -rf conftest* | 
|---|
| 6291 | gas_cv_decl_needed_malloc=no | 
|---|
| 6292 | else | 
|---|
| 6293 | echo "configure: failed program was:" >&5 | 
|---|
| 6294 | cat conftest.$ac_ext >&5 | 
|---|
| 6295 | rm -rf conftest* | 
|---|
| 6296 | gas_cv_decl_needed_malloc=yes | 
|---|
| 6297 | fi | 
|---|
| 6298 | rm -f conftest* | 
|---|
| 6299 | fi | 
|---|
| 6300 | echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&6 | 
|---|
| 6301 | if test $gas_cv_decl_needed_malloc = yes; then | 
|---|
| 6302 | cat >> confdefs.h <<\EOF | 
|---|
| 6303 | #define NEED_DECLARATION_MALLOC 1 | 
|---|
| 6304 | EOF | 
|---|
| 6305 |  | 
|---|
| 6306 | fi | 
|---|
| 6307 |  | 
|---|
| 6308 |  | 
|---|
| 6309 | echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6 | 
|---|
| 6310 | echo "configure:6311: checking whether declaration is required for free" >&5 | 
|---|
| 6311 | if eval "test \"`echo '$''{'gas_cv_decl_needed_free'+set}'`\" = set"; then | 
|---|
| 6312 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6313 | else | 
|---|
| 6314 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6315 | #line 6316 "configure" | 
|---|
| 6316 | #include "confdefs.h" | 
|---|
| 6317 | $gas_test_headers | 
|---|
| 6318 | int main() { | 
|---|
| 6319 |  | 
|---|
| 6320 | typedef void (*f)(); | 
|---|
| 6321 | f x; | 
|---|
| 6322 | x = (f) free; | 
|---|
| 6323 |  | 
|---|
| 6324 | ; return 0; } | 
|---|
| 6325 | EOF | 
|---|
| 6326 | if { (eval echo configure:6327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 6327 | rm -rf conftest* | 
|---|
| 6328 | gas_cv_decl_needed_free=no | 
|---|
| 6329 | else | 
|---|
| 6330 | echo "configure: failed program was:" >&5 | 
|---|
| 6331 | cat conftest.$ac_ext >&5 | 
|---|
| 6332 | rm -rf conftest* | 
|---|
| 6333 | gas_cv_decl_needed_free=yes | 
|---|
| 6334 | fi | 
|---|
| 6335 | rm -f conftest* | 
|---|
| 6336 | fi | 
|---|
| 6337 | echo "$ac_t""$gas_cv_decl_needed_free" 1>&6 | 
|---|
| 6338 | if test $gas_cv_decl_needed_free = yes; then | 
|---|
| 6339 | cat >> confdefs.h <<\EOF | 
|---|
| 6340 | #define NEED_DECLARATION_FREE 1 | 
|---|
| 6341 | EOF | 
|---|
| 6342 |  | 
|---|
| 6343 | fi | 
|---|
| 6344 |  | 
|---|
| 6345 |  | 
|---|
| 6346 | echo $ac_n "checking whether declaration is required for sbrk""... $ac_c" 1>&6 | 
|---|
| 6347 | echo "configure:6348: checking whether declaration is required for sbrk" >&5 | 
|---|
| 6348 | if eval "test \"`echo '$''{'gas_cv_decl_needed_sbrk'+set}'`\" = set"; then | 
|---|
| 6349 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6350 | else | 
|---|
| 6351 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6352 | #line 6353 "configure" | 
|---|
| 6353 | #include "confdefs.h" | 
|---|
| 6354 | $gas_test_headers | 
|---|
| 6355 | int main() { | 
|---|
| 6356 |  | 
|---|
| 6357 | typedef char *(*f)(); | 
|---|
| 6358 | f x; | 
|---|
| 6359 | x = (f) sbrk; | 
|---|
| 6360 |  | 
|---|
| 6361 | ; return 0; } | 
|---|
| 6362 | EOF | 
|---|
| 6363 | if { (eval echo configure:6364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 6364 | rm -rf conftest* | 
|---|
| 6365 | gas_cv_decl_needed_sbrk=no | 
|---|
| 6366 | else | 
|---|
| 6367 | echo "configure: failed program was:" >&5 | 
|---|
| 6368 | cat conftest.$ac_ext >&5 | 
|---|
| 6369 | rm -rf conftest* | 
|---|
| 6370 | gas_cv_decl_needed_sbrk=yes | 
|---|
| 6371 | fi | 
|---|
| 6372 | rm -f conftest* | 
|---|
| 6373 | fi | 
|---|
| 6374 | echo "$ac_t""$gas_cv_decl_needed_sbrk" 1>&6 | 
|---|
| 6375 | if test $gas_cv_decl_needed_sbrk = yes; then | 
|---|
| 6376 | cat >> confdefs.h <<\EOF | 
|---|
| 6377 | #define NEED_DECLARATION_SBRK 1 | 
|---|
| 6378 | EOF | 
|---|
| 6379 |  | 
|---|
| 6380 | fi | 
|---|
| 6381 |  | 
|---|
| 6382 |  | 
|---|
| 6383 | echo $ac_n "checking whether declaration is required for environ""... $ac_c" 1>&6 | 
|---|
| 6384 | echo "configure:6385: checking whether declaration is required for environ" >&5 | 
|---|
| 6385 | if eval "test \"`echo '$''{'gas_cv_decl_needed_environ'+set}'`\" = set"; then | 
|---|
| 6386 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6387 | else | 
|---|
| 6388 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6389 | #line 6390 "configure" | 
|---|
| 6390 | #include "confdefs.h" | 
|---|
| 6391 | $gas_test_headers | 
|---|
| 6392 | int main() { | 
|---|
| 6393 |  | 
|---|
| 6394 | typedef char **f; | 
|---|
| 6395 | f x; | 
|---|
| 6396 | x = (f) environ; | 
|---|
| 6397 |  | 
|---|
| 6398 | ; return 0; } | 
|---|
| 6399 | EOF | 
|---|
| 6400 | if { (eval echo configure:6401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 6401 | rm -rf conftest* | 
|---|
| 6402 | gas_cv_decl_needed_environ=no | 
|---|
| 6403 | else | 
|---|
| 6404 | echo "configure: failed program was:" >&5 | 
|---|
| 6405 | cat conftest.$ac_ext >&5 | 
|---|
| 6406 | rm -rf conftest* | 
|---|
| 6407 | gas_cv_decl_needed_environ=yes | 
|---|
| 6408 | fi | 
|---|
| 6409 | rm -f conftest* | 
|---|
| 6410 | fi | 
|---|
| 6411 | echo "$ac_t""$gas_cv_decl_needed_environ" 1>&6 | 
|---|
| 6412 | if test $gas_cv_decl_needed_environ = yes; then | 
|---|
| 6413 | cat >> confdefs.h <<\EOF | 
|---|
| 6414 | #define NEED_DECLARATION_ENVIRON 1 | 
|---|
| 6415 | EOF | 
|---|
| 6416 |  | 
|---|
| 6417 | fi | 
|---|
| 6418 |  | 
|---|
| 6419 |  | 
|---|
| 6420 | # Does errno.h declare errno, or do we have to add a separate declaration | 
|---|
| 6421 | # for it? | 
|---|
| 6422 |  | 
|---|
| 6423 | echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6 | 
|---|
| 6424 | echo "configure:6425: checking whether declaration is required for errno" >&5 | 
|---|
| 6425 | if eval "test \"`echo '$''{'gas_cv_decl_needed_errno'+set}'`\" = set"; then | 
|---|
| 6426 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6427 | else | 
|---|
| 6428 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6429 | #line 6430 "configure" | 
|---|
| 6430 | #include "confdefs.h" | 
|---|
| 6431 |  | 
|---|
| 6432 | #ifdef HAVE_ERRNO_H | 
|---|
| 6433 | #include <errno.h> | 
|---|
| 6434 | #endif | 
|---|
| 6435 |  | 
|---|
| 6436 | int main() { | 
|---|
| 6437 |  | 
|---|
| 6438 | typedef int f; | 
|---|
| 6439 | f x; | 
|---|
| 6440 | x = (f) errno; | 
|---|
| 6441 |  | 
|---|
| 6442 | ; return 0; } | 
|---|
| 6443 | EOF | 
|---|
| 6444 | if { (eval echo configure:6445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 6445 | rm -rf conftest* | 
|---|
| 6446 | gas_cv_decl_needed_errno=no | 
|---|
| 6447 | else | 
|---|
| 6448 | echo "configure: failed program was:" >&5 | 
|---|
| 6449 | cat conftest.$ac_ext >&5 | 
|---|
| 6450 | rm -rf conftest* | 
|---|
| 6451 | gas_cv_decl_needed_errno=yes | 
|---|
| 6452 | fi | 
|---|
| 6453 | rm -f conftest* | 
|---|
| 6454 | fi | 
|---|
| 6455 | echo "$ac_t""$gas_cv_decl_needed_errno" 1>&6 | 
|---|
| 6456 | if test $gas_cv_decl_needed_errno = yes; then | 
|---|
| 6457 | cat >> confdefs.h <<\EOF | 
|---|
| 6458 | #define NEED_DECLARATION_ERRNO 1 | 
|---|
| 6459 | EOF | 
|---|
| 6460 |  | 
|---|
| 6461 | fi | 
|---|
| 6462 |  | 
|---|
| 6463 |  | 
|---|
| 6464 |  | 
|---|
| 6465 |  | 
|---|
| 6466 | trap '' 1 2 15 | 
|---|
| 6467 | cat > confcache <<\EOF | 
|---|
| 6468 | # This file is a shell script that caches the results of configure | 
|---|
| 6469 | # tests run on this system so they can be shared between configure | 
|---|
| 6470 | # scripts and configure runs.  It is not useful on other systems. | 
|---|
| 6471 | # If it contains results you don't want to keep, you may remove or edit it. | 
|---|
| 6472 | # | 
|---|
| 6473 | # By default, configure uses ./config.cache as the cache file, | 
|---|
| 6474 | # creating it if it does not exist already.  You can give configure | 
|---|
| 6475 | # the --cache-file=FILE option to use a different cache file; that is | 
|---|
| 6476 | # what configure does when it calls configure scripts in | 
|---|
| 6477 | # subdirectories, so they share the cache. | 
|---|
| 6478 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | 
|---|
| 6479 | # config.status only pays attention to the cache file if you give it the | 
|---|
| 6480 | # --recheck option to rerun configure. | 
|---|
| 6481 | # | 
|---|
| 6482 | EOF | 
|---|
| 6483 | # The following way of writing the cache mishandles newlines in values, | 
|---|
| 6484 | # but we know of no workaround that is simple, portable, and efficient. | 
|---|
| 6485 | # So, don't put newlines in cache variables' values. | 
|---|
| 6486 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
|---|
| 6487 | # and sets the high bit in the cache file unless we assign to the vars. | 
|---|
| 6488 | (set) 2>&1 | | 
|---|
| 6489 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | 
|---|
| 6490 | *ac_space=\ *) | 
|---|
| 6491 | # `set' does not quote correctly, so add quotes (double-quote substitution | 
|---|
| 6492 | # turns \\\\ into \\, and sed turns \\ into \). | 
|---|
| 6493 | sed -n \ | 
|---|
| 6494 | -e "s/'/'\\\\''/g" \ | 
|---|
| 6495 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | 
|---|
| 6496 | ;; | 
|---|
| 6497 | *) | 
|---|
| 6498 | # `set' quotes correctly as required by POSIX, so do not add quotes. | 
|---|
| 6499 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | 
|---|
| 6500 | ;; | 
|---|
| 6501 | esac >> confcache | 
|---|
| 6502 | if cmp -s $cache_file confcache; then | 
|---|
| 6503 | : | 
|---|
| 6504 | else | 
|---|
| 6505 | if test -w $cache_file; then | 
|---|
| 6506 | echo "updating cache $cache_file" | 
|---|
| 6507 | cat confcache > $cache_file | 
|---|
| 6508 | else | 
|---|
| 6509 | echo "not updating unwritable cache $cache_file" | 
|---|
| 6510 | fi | 
|---|
| 6511 | fi | 
|---|
| 6512 | rm -f confcache | 
|---|
| 6513 |  | 
|---|
| 6514 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | 
|---|
| 6515 |  | 
|---|
| 6516 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
|---|
| 6517 | # Let make expand exec_prefix. | 
|---|
| 6518 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
|---|
| 6519 |  | 
|---|
| 6520 | # Any assignment to VPATH causes Sun make to only execute | 
|---|
| 6521 | # the first set of double-colon rules, so remove it if not needed. | 
|---|
| 6522 | # If there is a colon in the path, we need to keep it. | 
|---|
| 6523 | if test "x$srcdir" = x.; then | 
|---|
| 6524 | ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d' | 
|---|
| 6525 | fi | 
|---|
| 6526 |  | 
|---|
| 6527 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | 
|---|
| 6528 |  | 
|---|
| 6529 | DEFS=-DHAVE_CONFIG_H | 
|---|
| 6530 |  | 
|---|
| 6531 | # Without the "./", some shells look in PATH for config.status. | 
|---|
| 6532 | : ${CONFIG_STATUS=./config.status} | 
|---|
| 6533 |  | 
|---|
| 6534 | echo creating $CONFIG_STATUS | 
|---|
| 6535 | rm -f $CONFIG_STATUS | 
|---|
| 6536 | cat > $CONFIG_STATUS <<EOF | 
|---|
| 6537 | #! /bin/sh | 
|---|
| 6538 | # Generated automatically by configure. | 
|---|
| 6539 | # Run this file to recreate the current configuration. | 
|---|
| 6540 | # This directory was configured as follows, | 
|---|
| 6541 | EOF | 
|---|
| 6542 | echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS | 
|---|
| 6543 | cat >> $CONFIG_STATUS <<EOF | 
|---|
| 6544 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
|---|
| 6545 | # | 
|---|
| 6546 | # $0 $ac_configure_args | 
|---|
| 6547 | # | 
|---|
| 6548 | # Compiler output produced by configure, useful for debugging | 
|---|
| 6549 | # configure, is in ./config.log if it exists. | 
|---|
| 6550 |  | 
|---|
| 6551 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | 
|---|
| 6552 | for ac_option | 
|---|
| 6553 | do | 
|---|
| 6554 | case "\$ac_option" in | 
|---|
| 6555 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
|---|
| 6556 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | 
|---|
| 6557 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | 
|---|
| 6558 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | 
|---|
| 6559 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | 
|---|
| 6560 | exit 0 ;; | 
|---|
| 6561 | -help | --help | --hel | --he | --h) | 
|---|
| 6562 | echo "\$ac_cs_usage"; exit 0 ;; | 
|---|
| 6563 | *) echo "\$ac_cs_usage"; exit 1 ;; | 
|---|
| 6564 | esac | 
|---|
| 6565 | done | 
|---|
| 6566 |  | 
|---|
| 6567 | ac_given_srcdir=$srcdir | 
|---|
| 6568 | ac_given_INSTALL="$INSTALL" | 
|---|
| 6569 | PATHIFS="$PATH_IFS" | 
|---|
| 6570 |  | 
|---|
| 6571 | 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 | 
|---|
| 6572 | EOF | 
|---|
| 6573 | cat >> $CONFIG_STATUS <<EOF | 
|---|
| 6574 |  | 
|---|
| 6575 | # Protect against being on the right side of a sed subst in config.status. | 
|---|
| 6576 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | 
|---|
| 6577 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | 
|---|
| 6578 | $ac_vpsub | 
|---|
| 6579 | $extrasub | 
|---|
| 6580 | s,\([^a-zA-Z0-9:]\)/bin/sh\(.exe\),\1${CONFIG_SHELL-/bin/sh}\2,g | 
|---|
| 6581 | s%@SHELL@%$SHELL%g | 
|---|
| 6582 | s%@CFLAGS@%$CFLAGS%g | 
|---|
| 6583 | s%@CPPFLAGS@%$CPPFLAGS%g | 
|---|
| 6584 | s%@CXXFLAGS@%$CXXFLAGS%g | 
|---|
| 6585 | s%@FFLAGS@%$FFLAGS%g | 
|---|
| 6586 | s%@DEFS@%$DEFS%g | 
|---|
| 6587 | s%@LDFLAGS@%$LDFLAGS%g | 
|---|
| 6588 | s%@LIBS@%$LIBS%g | 
|---|
| 6589 | s%@exec_prefix@%$exec_prefix%g | 
|---|
| 6590 | s%@prefix@%$prefix%g | 
|---|
| 6591 | s%@program_transform_name@%$program_transform_name%g | 
|---|
| 6592 | s%@bindir@%$bindir%g | 
|---|
| 6593 | s%@sbindir@%$sbindir%g | 
|---|
| 6594 | s%@libexecdir@%$libexecdir%g | 
|---|
| 6595 | s%@datadir@%$datadir%g | 
|---|
| 6596 | s%@sysconfdir@%$sysconfdir%g | 
|---|
| 6597 | s%@sharedstatedir@%$sharedstatedir%g | 
|---|
| 6598 | s%@localstatedir@%$localstatedir%g | 
|---|
| 6599 | s%@libdir@%$libdir%g | 
|---|
| 6600 | s%@includedir@%$includedir%g | 
|---|
| 6601 | s%@oldincludedir@%$oldincludedir%g | 
|---|
| 6602 | s%@infodir@%$infodir%g | 
|---|
| 6603 | s%@mandir@%$mandir%g | 
|---|
| 6604 | s%@PATH_IFS@%$PATH_IFS%g | 
|---|
| 6605 | s%@EXEEXT@%$EXEEXT%g | 
|---|
| 6606 | s%@host@%$host%g | 
|---|
| 6607 | s%@host_alias@%$host_alias%g | 
|---|
| 6608 | s%@host_cpu@%$host_cpu%g | 
|---|
| 6609 | s%@host_vendor@%$host_vendor%g | 
|---|
| 6610 | s%@host_os@%$host_os%g | 
|---|
| 6611 | s%@target@%$target%g | 
|---|
| 6612 | s%@target_alias@%$target_alias%g | 
|---|
| 6613 | s%@target_cpu@%$target_cpu%g | 
|---|
| 6614 | s%@target_vendor@%$target_vendor%g | 
|---|
| 6615 | s%@target_os@%$target_os%g | 
|---|
| 6616 | s%@build@%$build%g | 
|---|
| 6617 | s%@build_alias@%$build_alias%g | 
|---|
| 6618 | s%@build_cpu@%$build_cpu%g | 
|---|
| 6619 | s%@build_vendor@%$build_vendor%g | 
|---|
| 6620 | s%@build_os@%$build_os%g | 
|---|
| 6621 | s%@CC@%$CC%g | 
|---|
| 6622 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | 
|---|
| 6623 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | 
|---|
| 6624 | s%@INSTALL_DATA@%$INSTALL_DATA%g | 
|---|
| 6625 | s%@PACKAGE@%$PACKAGE%g | 
|---|
| 6626 | s%@VERSION@%$VERSION%g | 
|---|
| 6627 | s%@ACLOCAL@%$ACLOCAL%g | 
|---|
| 6628 | s%@AUTOCONF@%$AUTOCONF%g | 
|---|
| 6629 | s%@AUTOMAKE@%$AUTOMAKE%g | 
|---|
| 6630 | s%@AUTOHEADER@%$AUTOHEADER%g | 
|---|
| 6631 | s%@MAKEINFO@%$MAKEINFO%g | 
|---|
| 6632 | s%@SET_MAKE@%$SET_MAKE%g | 
|---|
| 6633 | s%@LN_S@%$LN_S%g | 
|---|
| 6634 | s%@OBJEXT@%$OBJEXT%g | 
|---|
| 6635 | s%@RANLIB@%$RANLIB%g | 
|---|
| 6636 | s%@STRIP@%$STRIP%g | 
|---|
| 6637 | s%@LIBTOOL@%$LIBTOOL%g | 
|---|
| 6638 | s%@WARN_CFLAGS@%$WARN_CFLAGS%g | 
|---|
| 6639 | s%@GDBINIT@%$GDBINIT%g | 
|---|
| 6640 | s%@cgen_cpu_prefix@%$cgen_cpu_prefix%g | 
|---|
| 6641 | s%@extra_objects@%$extra_objects%g | 
|---|
| 6642 | s%@target_cpu_type@%$target_cpu_type%g | 
|---|
| 6643 | s%@obj_format@%$obj_format%g | 
|---|
| 6644 | s%@te_file@%$te_file%g | 
|---|
| 6645 | s%@install_tooldir@%$install_tooldir%g | 
|---|
| 6646 | s%@atof@%$atof%g | 
|---|
| 6647 | s%@BFDLIB@%$BFDLIB%g | 
|---|
| 6648 | s%@OPCODES_LIB@%$OPCODES_LIB%g | 
|---|
| 6649 | s%@BFDVER_H@%$BFDVER_H%g | 
|---|
| 6650 | s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g | 
|---|
| 6651 | s%@YACC@%$YACC%g | 
|---|
| 6652 | s%@LEX@%$LEX%g | 
|---|
| 6653 | s%@LEXLIB@%$LEXLIB%g | 
|---|
| 6654 | s%@CPP@%$CPP%g | 
|---|
| 6655 | s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g | 
|---|
| 6656 | s%@ALLOCA@%$ALLOCA%g | 
|---|
| 6657 | s%@USE_NLS@%$USE_NLS%g | 
|---|
| 6658 | s%@MSGFMT@%$MSGFMT%g | 
|---|
| 6659 | s%@GMSGFMT@%$GMSGFMT%g | 
|---|
| 6660 | s%@XGETTEXT@%$XGETTEXT%g | 
|---|
| 6661 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g | 
|---|
| 6662 | s%@CATALOGS@%$CATALOGS%g | 
|---|
| 6663 | s%@CATOBJEXT@%$CATOBJEXT%g | 
|---|
| 6664 | s%@DATADIRNAME@%$DATADIRNAME%g | 
|---|
| 6665 | s%@GMOFILES@%$GMOFILES%g | 
|---|
| 6666 | s%@INSTOBJEXT@%$INSTOBJEXT%g | 
|---|
| 6667 | s%@INTLDEPS@%$INTLDEPS%g | 
|---|
| 6668 | s%@INTLLIBS@%$INTLLIBS%g | 
|---|
| 6669 | s%@INTLOBJS@%$INTLOBJS%g | 
|---|
| 6670 | s%@POFILES@%$POFILES%g | 
|---|
| 6671 | s%@POSUB@%$POSUB%g | 
|---|
| 6672 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g | 
|---|
| 6673 | s%@GT_NO@%$GT_NO%g | 
|---|
| 6674 | s%@GT_YES@%$GT_YES%g | 
|---|
| 6675 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g | 
|---|
| 6676 | s%@l@%$l%g | 
|---|
| 6677 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g | 
|---|
| 6678 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g | 
|---|
| 6679 | s%@MAINT@%$MAINT%g | 
|---|
| 6680 | s%@LIBM@%$LIBM%g | 
|---|
| 6681 |  | 
|---|
| 6682 | CEOF | 
|---|
| 6683 | EOF | 
|---|
| 6684 |  | 
|---|
| 6685 | cat >> $CONFIG_STATUS <<\EOF | 
|---|
| 6686 |  | 
|---|
| 6687 | # Split the substitutions into bite-sized pieces for seds with | 
|---|
| 6688 | # small command number limits, like on Digital OSF/1 and HP-UX. | 
|---|
| 6689 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | 
|---|
| 6690 | ac_file=1 # Number of current file. | 
|---|
| 6691 | ac_beg=1 # First line for current file. | 
|---|
| 6692 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | 
|---|
| 6693 | ac_more_lines=: | 
|---|
| 6694 | ac_sed_cmds="" | 
|---|
| 6695 | while $ac_more_lines; do | 
|---|
| 6696 | if test $ac_beg -gt 1; then | 
|---|
| 6697 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | 
|---|
| 6698 | else | 
|---|
| 6699 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | 
|---|
| 6700 | fi | 
|---|
| 6701 | if test ! -s conftest.s$ac_file; then | 
|---|
| 6702 | ac_more_lines=false | 
|---|
| 6703 | rm -f conftest.s$ac_file | 
|---|
| 6704 | else | 
|---|
| 6705 | if test -z "$ac_sed_cmds"; then | 
|---|
| 6706 | ac_sed_cmds="sed -f conftest.s$ac_file" | 
|---|
| 6707 | else | 
|---|
| 6708 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | 
|---|
| 6709 | fi | 
|---|
| 6710 | ac_file=`expr $ac_file + 1` | 
|---|
| 6711 | ac_beg=$ac_end | 
|---|
| 6712 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | 
|---|
| 6713 | fi | 
|---|
| 6714 | done | 
|---|
| 6715 | if test -z "$ac_sed_cmds"; then | 
|---|
| 6716 | ac_sed_cmds=cat | 
|---|
| 6717 | fi | 
|---|
| 6718 | EOF | 
|---|
| 6719 |  | 
|---|
| 6720 | cat >> $CONFIG_STATUS <<EOF | 
|---|
| 6721 |  | 
|---|
| 6722 | CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile ${GDBINIT}:gdbinit.in po/Makefile.in:po/Make-in"} | 
|---|
| 6723 | EOF | 
|---|
| 6724 | cat >> $CONFIG_STATUS <<\EOF | 
|---|
| 6725 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | 
|---|
| 6726 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 
|---|
| 6727 | case "$ac_file" in | 
|---|
| 6728 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | 
|---|
| 6729 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | 
|---|
| 6730 | *) ac_file_in="${ac_file}.in" ;; | 
|---|
| 6731 | esac | 
|---|
| 6732 |  | 
|---|
| 6733 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | 
|---|
| 6734 |  | 
|---|
| 6735 | # Remove last slash and all that follows it.  Not all systems have dirname. | 
|---|
| 6736 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | 
|---|
| 6737 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | 
|---|
| 6738 | # The file is in a subdirectory. | 
|---|
| 6739 | test ! -d "$ac_dir" && mkdir "$ac_dir" | 
|---|
| 6740 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | 
|---|
| 6741 | # A "../" for each directory in $ac_dir_suffix. | 
|---|
| 6742 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | 
|---|
| 6743 | else | 
|---|
| 6744 | ac_dir_suffix= ac_dots= | 
|---|
| 6745 | fi | 
|---|
| 6746 |  | 
|---|
| 6747 | case "$ac_given_srcdir" in | 
|---|
| 6748 | .)  srcdir=. | 
|---|
| 6749 | if test -z "$ac_dots"; then top_srcdir=. | 
|---|
| 6750 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | 
|---|
| 6751 | [/\\]* | [a-zA-Z]:*) | 
|---|
| 6752 | srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | 
|---|
| 6753 | *) # Relative path. | 
|---|
| 6754 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | 
|---|
| 6755 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | 
|---|
| 6756 | esac | 
|---|
| 6757 |  | 
|---|
| 6758 | case "$ac_given_INSTALL" in | 
|---|
| 6759 | [/$\\]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;; | 
|---|
| 6760 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | 
|---|
| 6761 | esac | 
|---|
| 6762 |  | 
|---|
| 6763 | echo creating "$ac_file" | 
|---|
| 6764 | rm -f "$ac_file" | 
|---|
| 6765 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | 
|---|
| 6766 | case "$ac_file" in | 
|---|
| 6767 | *Makefile*) ac_comsub="1i\\ | 
|---|
| 6768 | # $configure_input" ;; | 
|---|
| 6769 | *) ac_comsub= ;; | 
|---|
| 6770 | esac | 
|---|
| 6771 |  | 
|---|
| 6772 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%$PATHIFS% $ac_given_srcdir/%g"` | 
|---|
| 6773 | sed -e "$ac_comsub | 
|---|
| 6774 | s%@configure_input@%$configure_input%g | 
|---|
| 6775 | s%@srcdir@%$srcdir%g | 
|---|
| 6776 | s%@top_srcdir@%$top_srcdir%g | 
|---|
| 6777 | s%@INSTALL@%$INSTALL%g | 
|---|
| 6778 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | 
|---|
| 6779 | fi; done | 
|---|
| 6780 | rm -f conftest.s* | 
|---|
| 6781 |  | 
|---|
| 6782 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | 
|---|
| 6783 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | 
|---|
| 6784 | # | 
|---|
| 6785 | # ac_d sets the value in "#define NAME VALUE" lines. | 
|---|
| 6786 | ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)' | 
|---|
| 6787 | ac_dB='\([      ][      ]*\)[^  ]*%\1#\2' | 
|---|
| 6788 | ac_dC='\3' | 
|---|
| 6789 | ac_dD='%g' | 
|---|
| 6790 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | 
|---|
| 6791 | ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)' | 
|---|
| 6792 | ac_uB='\([      ]\)%\1#\2define\3' | 
|---|
| 6793 | ac_uC=' ' | 
|---|
| 6794 | ac_uD='\4%g' | 
|---|
| 6795 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | 
|---|
| 6796 | ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)' | 
|---|
| 6797 | ac_eB='$%\1#\2define\3' | 
|---|
| 6798 | ac_eC=' ' | 
|---|
| 6799 | ac_eD='%g' | 
|---|
| 6800 |  | 
|---|
| 6801 | if test "${CONFIG_HEADERS+set}" != set; then | 
|---|
| 6802 | EOF | 
|---|
| 6803 | cat >> $CONFIG_STATUS <<EOF | 
|---|
| 6804 | CONFIG_HEADERS="config.h:config.in" | 
|---|
| 6805 | EOF | 
|---|
| 6806 | cat >> $CONFIG_STATUS <<\EOF | 
|---|
| 6807 | fi | 
|---|
| 6808 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | 
|---|
| 6809 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 
|---|
| 6810 | case "$ac_file" in | 
|---|
| 6811 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | 
|---|
| 6812 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | 
|---|
| 6813 | *) ac_file_in="${ac_file}.in" ;; | 
|---|
| 6814 | esac | 
|---|
| 6815 |  | 
|---|
| 6816 | echo creating $ac_file | 
|---|
| 6817 |  | 
|---|
| 6818 | rm -f conftest.frag conftest.in conftest.out | 
|---|
| 6819 | # kso the other way around might work better with drive letters and such. | 
|---|
| 6820 | #  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | 
|---|
| 6821 | ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%" ` | 
|---|
| 6822 | cat $ac_file_inputs > conftest.in | 
|---|
| 6823 |  | 
|---|
| 6824 | EOF | 
|---|
| 6825 |  | 
|---|
| 6826 | # Transform confdefs.h into a sed script conftest.vals that substitutes | 
|---|
| 6827 | # the proper values into config.h.in to produce config.h.  And first: | 
|---|
| 6828 | # Protect against being on the right side of a sed subst in config.status. | 
|---|
| 6829 | # Protect against being in an unquoted here document in config.status. | 
|---|
| 6830 | rm -f conftest.vals | 
|---|
| 6831 | cat > conftest.hdr <<\EOF | 
|---|
| 6832 | s/[\\&%]/\\&/g | 
|---|
| 6833 | s%[\\$`]%\\&%g | 
|---|
| 6834 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | 
|---|
| 6835 | s%ac_d%ac_u%gp | 
|---|
| 6836 | s%ac_u%ac_e%gp | 
|---|
| 6837 | EOF | 
|---|
| 6838 | sed -n -f conftest.hdr confdefs.h > conftest.vals | 
|---|
| 6839 | rm -f conftest.hdr | 
|---|
| 6840 |  | 
|---|
| 6841 | # This sed command replaces #undef with comments.  This is necessary, for | 
|---|
| 6842 | # example, in the case of _POSIX_SOURCE, which is predefined and required | 
|---|
| 6843 | # on some systems where configure will not decide to define it. | 
|---|
| 6844 | cat >> conftest.vals <<\EOF | 
|---|
| 6845 | s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | 
|---|
| 6846 | EOF | 
|---|
| 6847 |  | 
|---|
| 6848 | # Break up conftest.vals because some shells have a limit on | 
|---|
| 6849 | # the size of here documents, and old seds have small limits too. | 
|---|
| 6850 |  | 
|---|
| 6851 | rm -f conftest.tail | 
|---|
| 6852 | while : | 
|---|
| 6853 | do | 
|---|
| 6854 | ac_lines=`grep -c . conftest.vals` | 
|---|
| 6855 | # grep -c gives empty output for an empty file on some AIX systems. | 
|---|
| 6856 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | 
|---|
| 6857 | # Write a limited-size here document to conftest.frag. | 
|---|
| 6858 | echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | 
|---|
| 6859 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | 
|---|
| 6860 | echo 'CEOF | 
|---|
| 6861 | sed -f conftest.frag conftest.in > conftest.out | 
|---|
| 6862 | rm -f conftest.in | 
|---|
| 6863 | mv conftest.out conftest.in | 
|---|
| 6864 | ' >> $CONFIG_STATUS | 
|---|
| 6865 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | 
|---|
| 6866 | rm -f conftest.vals | 
|---|
| 6867 | mv conftest.tail conftest.vals | 
|---|
| 6868 | done | 
|---|
| 6869 | rm -f conftest.vals | 
|---|
| 6870 |  | 
|---|
| 6871 | cat >> $CONFIG_STATUS <<\EOF | 
|---|
| 6872 | rm -f conftest.frag conftest.h | 
|---|
| 6873 | echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h | 
|---|
| 6874 | cat conftest.in >> conftest.h | 
|---|
| 6875 | rm -f conftest.in | 
|---|
| 6876 | if cmp -s $ac_file conftest.h 2>/dev/null; then | 
|---|
| 6877 | echo "$ac_file is unchanged" | 
|---|
| 6878 | rm -f conftest.h | 
|---|
| 6879 | else | 
|---|
| 6880 | # Remove last slash and all that follows it.  Not all systems have dirname. | 
|---|
| 6881 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | 
|---|
| 6882 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | 
|---|
| 6883 | # The file is in a subdirectory. | 
|---|
| 6884 | test ! -d "$ac_dir" && mkdir "$ac_dir" | 
|---|
| 6885 | fi | 
|---|
| 6886 | rm -f $ac_file | 
|---|
| 6887 | mv conftest.h $ac_file | 
|---|
| 6888 | fi | 
|---|
| 6889 | fi; done | 
|---|
| 6890 |  | 
|---|
| 6891 | EOF | 
|---|
| 6892 | cat >> $CONFIG_STATUS <<EOF | 
|---|
| 6893 |  | 
|---|
| 6894 | target_cpu_type=${target_cpu_type} | 
|---|
| 6895 | cgen_cpu_prefix=${cgen_cpu_prefix} | 
|---|
| 6896 | obj_format=${obj_format} | 
|---|
| 6897 | te_file=${te_file} | 
|---|
| 6898 | EOF | 
|---|
| 6899 | cat >> $CONFIG_STATUS <<\EOF | 
|---|
| 6900 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h | 
|---|
| 6901 | rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h | 
|---|
| 6902 | echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h | 
|---|
| 6903 | echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h | 
|---|
| 6904 | echo '#include "te-'"${te_file}"'.h"' > targ-env.h | 
|---|
| 6905 | echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h | 
|---|
| 6906 | if test "x$cgen_cpu_prefix" != x ; then | 
|---|
| 6907 | echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h | 
|---|
| 6908 | fi | 
|---|
| 6909 |  | 
|---|
| 6910 | sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile | 
|---|
| 6911 | exit 0 | 
|---|
| 6912 | EOF | 
|---|
| 6913 | chmod +x $CONFIG_STATUS | 
|---|
| 6914 | rm -fr confdefs* $ac_clean_files | 
|---|
| 6915 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | 
|---|
| 6916 |  | 
|---|