| 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=no]"
|
|---|
| 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-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
|
|---|
| 28 | ac_help="$ac_help
|
|---|
| 29 | --enable-targets alternative target configurations"
|
|---|
| 30 | ac_help="$ac_help
|
|---|
| 31 | --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
|
|---|
| 32 | ac_help="$ac_help
|
|---|
| 33 | --with-mmap try using mmap for BFD input files if available"
|
|---|
| 34 | ac_help="$ac_help
|
|---|
| 35 | --enable-build-warnings Enable build-time compiler warnings if gcc is used"
|
|---|
| 36 | ac_help="$ac_help
|
|---|
| 37 | --enable-maintainer-mode enable make rules and dependencies not useful
|
|---|
| 38 | (and sometimes confusing) to the casual installer"
|
|---|
| 39 | ac_help="$ac_help
|
|---|
| 40 | --disable-nls do not use Native Language Support"
|
|---|
| 41 | ac_help="$ac_help
|
|---|
| 42 | --with-included-gettext use the GNU gettext library included here"
|
|---|
| 43 |
|
|---|
| 44 | # Initialize some variables set by options.
|
|---|
| 45 | # The variables have the same names as the options, with
|
|---|
| 46 | # dashes changed to underlines.
|
|---|
| 47 | build=NONE
|
|---|
| 48 | cache_file=./config.cache
|
|---|
| 49 | exec_prefix=NONE
|
|---|
| 50 | host=NONE
|
|---|
| 51 | no_create=
|
|---|
| 52 | nonopt=NONE
|
|---|
| 53 | no_recursion=
|
|---|
| 54 | prefix=NONE
|
|---|
| 55 | program_prefix=NONE
|
|---|
| 56 | program_suffix=NONE
|
|---|
| 57 | program_transform_name=s,x,x,
|
|---|
| 58 | silent=
|
|---|
| 59 | site=
|
|---|
| 60 | srcdir=
|
|---|
| 61 | target=NONE
|
|---|
| 62 | verbose=
|
|---|
| 63 | x_includes=NONE
|
|---|
| 64 | x_libraries=NONE
|
|---|
| 65 | bindir='${exec_prefix}/bin'
|
|---|
| 66 | sbindir='${exec_prefix}/sbin'
|
|---|
| 67 | libexecdir='${exec_prefix}/libexec'
|
|---|
| 68 | datadir='${prefix}/share'
|
|---|
| 69 | sysconfdir='${prefix}/etc'
|
|---|
| 70 | sharedstatedir='${prefix}/com'
|
|---|
| 71 | localstatedir='${prefix}/var'
|
|---|
| 72 | libdir='${exec_prefix}/lib'
|
|---|
| 73 | includedir='${prefix}/include'
|
|---|
| 74 | oldincludedir='/usr/include'
|
|---|
| 75 | infodir='${prefix}/info'
|
|---|
| 76 | mandir='${prefix}/man'
|
|---|
| 77 |
|
|---|
| 78 | # Initialize some other variables.
|
|---|
| 79 | subdirs=
|
|---|
| 80 | MFLAGS= MAKEFLAGS=
|
|---|
| 81 | SHELL=${CONFIG_SHELL-/bin/sh}
|
|---|
| 82 | # Maximum number of lines to put in a shell here document.
|
|---|
| 83 | ac_max_here_lines=12
|
|---|
| 84 |
|
|---|
| 85 | ac_prev=
|
|---|
| 86 | for ac_option
|
|---|
| 87 | do
|
|---|
| 88 |
|
|---|
| 89 | # If the previous option needs an argument, assign it.
|
|---|
| 90 | if test -n "$ac_prev"; then
|
|---|
| 91 | eval "$ac_prev=\$ac_option"
|
|---|
| 92 | ac_prev=
|
|---|
| 93 | continue
|
|---|
| 94 | fi
|
|---|
| 95 |
|
|---|
| 96 | case "$ac_option" in
|
|---|
| 97 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
|---|
| 98 | *) ac_optarg= ;;
|
|---|
| 99 | esac
|
|---|
| 100 |
|
|---|
| 101 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
|---|
| 102 |
|
|---|
| 103 | case "$ac_option" in
|
|---|
| 104 |
|
|---|
| 105 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
|---|
| 106 | ac_prev=bindir ;;
|
|---|
| 107 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
|---|
| 108 | bindir="$ac_optarg" ;;
|
|---|
| 109 |
|
|---|
| 110 | -build | --build | --buil | --bui | --bu)
|
|---|
| 111 | ac_prev=build ;;
|
|---|
| 112 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
|---|
| 113 | build="$ac_optarg" ;;
|
|---|
| 114 |
|
|---|
| 115 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
|---|
| 116 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
|---|
| 117 | ac_prev=cache_file ;;
|
|---|
| 118 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
|---|
| 119 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
|---|
| 120 | cache_file="$ac_optarg" ;;
|
|---|
| 121 |
|
|---|
| 122 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
|---|
| 123 | ac_prev=datadir ;;
|
|---|
| 124 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
|---|
| 125 | | --da=*)
|
|---|
| 126 | datadir="$ac_optarg" ;;
|
|---|
| 127 |
|
|---|
| 128 | -disable-* | --disable-*)
|
|---|
| 129 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
|---|
| 130 | # Reject names that are not valid shell variable names.
|
|---|
| 131 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|---|
| 132 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|---|
| 133 | fi
|
|---|
| 134 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|---|
| 135 | eval "enable_${ac_feature}=no" ;;
|
|---|
| 136 |
|
|---|
| 137 | -enable-* | --enable-*)
|
|---|
| 138 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
|---|
| 139 | # Reject names that are not valid shell variable names.
|
|---|
| 140 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|---|
| 141 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|---|
| 142 | fi
|
|---|
| 143 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|---|
| 144 | case "$ac_option" in
|
|---|
| 145 | *=*) ;;
|
|---|
| 146 | *) ac_optarg=yes ;;
|
|---|
| 147 | esac
|
|---|
| 148 | eval "enable_${ac_feature}='$ac_optarg'" ;;
|
|---|
| 149 |
|
|---|
| 150 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
|---|
| 151 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
|---|
| 152 | | --exec | --exe | --ex)
|
|---|
| 153 | ac_prev=exec_prefix ;;
|
|---|
| 154 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
|---|
| 155 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
|---|
| 156 | | --exec=* | --exe=* | --ex=*)
|
|---|
| 157 | exec_prefix="$ac_optarg" ;;
|
|---|
| 158 |
|
|---|
| 159 | -gas | --gas | --ga | --g)
|
|---|
| 160 | # Obsolete; use --with-gas.
|
|---|
| 161 | with_gas=yes ;;
|
|---|
| 162 |
|
|---|
| 163 | -help | --help | --hel | --he)
|
|---|
| 164 | # Omit some internal or obsolete options to make the list less imposing.
|
|---|
| 165 | # This message is too long to be a string in the A/UX 3.1 sh.
|
|---|
| 166 | cat << EOF
|
|---|
| 167 | Usage: configure [options] [host]
|
|---|
| 168 | Options: [defaults in brackets after descriptions]
|
|---|
| 169 | Configuration:
|
|---|
| 170 | --cache-file=FILE cache test results in FILE
|
|---|
| 171 | --help print this message
|
|---|
| 172 | --no-create do not create output files
|
|---|
| 173 | --quiet, --silent do not print \`checking...' messages
|
|---|
| 174 | --version print the version of autoconf that created configure
|
|---|
| 175 | Directory and file names:
|
|---|
| 176 | --prefix=PREFIX install architecture-independent files in PREFIX
|
|---|
| 177 | [$ac_default_prefix]
|
|---|
| 178 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
|---|
| 179 | [same as prefix]
|
|---|
| 180 | --bindir=DIR user executables in DIR [EPREFIX/bin]
|
|---|
| 181 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
|---|
| 182 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
|---|
| 183 | --datadir=DIR read-only architecture-independent data in DIR
|
|---|
| 184 | [PREFIX/share]
|
|---|
| 185 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
|---|
| 186 | --sharedstatedir=DIR modifiable architecture-independent data in DIR
|
|---|
| 187 | [PREFIX/com]
|
|---|
| 188 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
|---|
| 189 | --libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
|---|
| 190 | --includedir=DIR C header files in DIR [PREFIX/include]
|
|---|
| 191 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
|---|
| 192 | --infodir=DIR info documentation in DIR [PREFIX/info]
|
|---|
| 193 | --mandir=DIR man documentation in DIR [PREFIX/man]
|
|---|
| 194 | --srcdir=DIR find the sources in DIR [configure dir or ..]
|
|---|
| 195 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
|---|
| 196 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
|---|
| 197 | --program-transform-name=PROGRAM
|
|---|
| 198 | run sed PROGRAM on installed program names
|
|---|
| 199 | EOF
|
|---|
| 200 | cat << EOF
|
|---|
| 201 | Host type:
|
|---|
| 202 | --build=BUILD configure for building on BUILD [BUILD=HOST]
|
|---|
| 203 | --host=HOST configure for HOST [guessed]
|
|---|
| 204 | --target=TARGET configure for TARGET [TARGET=HOST]
|
|---|
| 205 | Features and packages:
|
|---|
| 206 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
|---|
| 207 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
|---|
| 208 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
|---|
| 209 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
|---|
| 210 | --x-includes=DIR X include files are in DIR
|
|---|
| 211 | --x-libraries=DIR X library files are in DIR
|
|---|
| 212 | EOF
|
|---|
| 213 | if test -n "$ac_help"; then
|
|---|
| 214 | echo "--enable and --with options recognized:$ac_help"
|
|---|
| 215 | fi
|
|---|
| 216 | exit 0 ;;
|
|---|
| 217 |
|
|---|
| 218 | -host | --host | --hos | --ho)
|
|---|
| 219 | ac_prev=host ;;
|
|---|
| 220 | -host=* | --host=* | --hos=* | --ho=*)
|
|---|
| 221 | host="$ac_optarg" ;;
|
|---|
| 222 |
|
|---|
| 223 | -includedir | --includedir | --includedi | --included | --include \
|
|---|
| 224 | | --includ | --inclu | --incl | --inc)
|
|---|
| 225 | ac_prev=includedir ;;
|
|---|
| 226 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
|---|
| 227 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
|---|
| 228 | includedir="$ac_optarg" ;;
|
|---|
| 229 |
|
|---|
| 230 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
|---|
| 231 | ac_prev=infodir ;;
|
|---|
| 232 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
|---|
| 233 | infodir="$ac_optarg" ;;
|
|---|
| 234 |
|
|---|
| 235 | -libdir | --libdir | --libdi | --libd)
|
|---|
| 236 | ac_prev=libdir ;;
|
|---|
| 237 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
|---|
| 238 | libdir="$ac_optarg" ;;
|
|---|
| 239 |
|
|---|
| 240 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
|---|
| 241 | | --libexe | --libex | --libe)
|
|---|
| 242 | ac_prev=libexecdir ;;
|
|---|
| 243 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
|---|
| 244 | | --libexe=* | --libex=* | --libe=*)
|
|---|
| 245 | libexecdir="$ac_optarg" ;;
|
|---|
| 246 |
|
|---|
| 247 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
|---|
| 248 | | --localstate | --localstat | --localsta | --localst \
|
|---|
| 249 | | --locals | --local | --loca | --loc | --lo)
|
|---|
| 250 | ac_prev=localstatedir ;;
|
|---|
| 251 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
|---|
| 252 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
|---|
| 253 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
|---|
| 254 | localstatedir="$ac_optarg" ;;
|
|---|
| 255 |
|
|---|
| 256 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
|---|
| 257 | ac_prev=mandir ;;
|
|---|
| 258 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
|---|
| 259 | mandir="$ac_optarg" ;;
|
|---|
| 260 |
|
|---|
| 261 | -nfp | --nfp | --nf)
|
|---|
| 262 | # Obsolete; use --without-fp.
|
|---|
| 263 | with_fp=no ;;
|
|---|
| 264 |
|
|---|
| 265 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|---|
| 266 | | --no-cr | --no-c)
|
|---|
| 267 | no_create=yes ;;
|
|---|
| 268 |
|
|---|
| 269 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|---|
| 270 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
|---|
| 271 | no_recursion=yes ;;
|
|---|
| 272 |
|
|---|
| 273 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
|---|
| 274 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
|---|
| 275 | | --oldin | --oldi | --old | --ol | --o)
|
|---|
| 276 | ac_prev=oldincludedir ;;
|
|---|
| 277 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
|---|
| 278 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
|---|
| 279 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
|---|
| 280 | oldincludedir="$ac_optarg" ;;
|
|---|
| 281 |
|
|---|
| 282 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
|---|
| 283 | ac_prev=prefix ;;
|
|---|
| 284 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
|---|
| 285 | prefix="$ac_optarg" ;;
|
|---|
| 286 |
|
|---|
| 287 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
|---|
| 288 | | --program-pre | --program-pr | --program-p)
|
|---|
| 289 | ac_prev=program_prefix ;;
|
|---|
| 290 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
|---|
| 291 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
|---|
| 292 | program_prefix="$ac_optarg" ;;
|
|---|
| 293 |
|
|---|
| 294 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
|---|
| 295 | | --program-suf | --program-su | --program-s)
|
|---|
| 296 | ac_prev=program_suffix ;;
|
|---|
| 297 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
|---|
| 298 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
|---|
| 299 | program_suffix="$ac_optarg" ;;
|
|---|
| 300 |
|
|---|
| 301 | -program-transform-name | --program-transform-name \
|
|---|
| 302 | | --program-transform-nam | --program-transform-na \
|
|---|
| 303 | | --program-transform-n | --program-transform- \
|
|---|
| 304 | | --program-transform | --program-transfor \
|
|---|
| 305 | | --program-transfo | --program-transf \
|
|---|
| 306 | | --program-trans | --program-tran \
|
|---|
| 307 | | --progr-tra | --program-tr | --program-t)
|
|---|
| 308 | ac_prev=program_transform_name ;;
|
|---|
| 309 | -program-transform-name=* | --program-transform-name=* \
|
|---|
| 310 | | --program-transform-nam=* | --program-transform-na=* \
|
|---|
| 311 | | --program-transform-n=* | --program-transform-=* \
|
|---|
| 312 | | --program-transform=* | --program-transfor=* \
|
|---|
| 313 | | --program-transfo=* | --program-transf=* \
|
|---|
| 314 | | --program-trans=* | --program-tran=* \
|
|---|
| 315 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
|---|
| 316 | program_transform_name="$ac_optarg" ;;
|
|---|
| 317 |
|
|---|
| 318 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|---|
| 319 | | -silent | --silent | --silen | --sile | --sil)
|
|---|
| 320 | silent=yes ;;
|
|---|
| 321 |
|
|---|
| 322 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
|---|
| 323 | ac_prev=sbindir ;;
|
|---|
| 324 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
|---|
| 325 | | --sbi=* | --sb=*)
|
|---|
| 326 | sbindir="$ac_optarg" ;;
|
|---|
| 327 |
|
|---|
| 328 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
|---|
| 329 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
|---|
| 330 | | --sharedst | --shareds | --shared | --share | --shar \
|
|---|
| 331 | | --sha | --sh)
|
|---|
| 332 | ac_prev=sharedstatedir ;;
|
|---|
| 333 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
|---|
| 334 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
|---|
| 335 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
|---|
| 336 | | --sha=* | --sh=*)
|
|---|
| 337 | sharedstatedir="$ac_optarg" ;;
|
|---|
| 338 |
|
|---|
| 339 | -site | --site | --sit)
|
|---|
| 340 | ac_prev=site ;;
|
|---|
| 341 | -site=* | --site=* | --sit=*)
|
|---|
| 342 | site="$ac_optarg" ;;
|
|---|
| 343 |
|
|---|
| 344 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
|---|
| 345 | ac_prev=srcdir ;;
|
|---|
| 346 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
|---|
| 347 | srcdir="$ac_optarg" ;;
|
|---|
| 348 |
|
|---|
| 349 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
|---|
| 350 | | --syscon | --sysco | --sysc | --sys | --sy)
|
|---|
| 351 | ac_prev=sysconfdir ;;
|
|---|
| 352 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
|---|
| 353 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
|---|
| 354 | sysconfdir="$ac_optarg" ;;
|
|---|
| 355 |
|
|---|
| 356 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
|---|
| 357 | ac_prev=target ;;
|
|---|
| 358 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
|---|
| 359 | target="$ac_optarg" ;;
|
|---|
| 360 |
|
|---|
| 361 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
|---|
| 362 | verbose=yes ;;
|
|---|
| 363 |
|
|---|
| 364 | -version | --version | --versio | --versi | --vers)
|
|---|
| 365 | echo "configure generated by autoconf version 2.13"
|
|---|
| 366 | exit 0 ;;
|
|---|
| 367 |
|
|---|
| 368 | -with-* | --with-*)
|
|---|
| 369 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
|---|
| 370 | # Reject names that are not valid shell variable names.
|
|---|
| 371 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|---|
| 372 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|---|
| 373 | fi
|
|---|
| 374 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|---|
| 375 | case "$ac_option" in
|
|---|
| 376 | *=*) ;;
|
|---|
| 377 | *) ac_optarg=yes ;;
|
|---|
| 378 | esac
|
|---|
| 379 | eval "with_${ac_package}='$ac_optarg'" ;;
|
|---|
| 380 |
|
|---|
| 381 | -without-* | --without-*)
|
|---|
| 382 | ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
|---|
| 383 | # Reject names that are not valid shell variable names.
|
|---|
| 384 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|---|
| 385 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|---|
| 386 | fi
|
|---|
| 387 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|---|
| 388 | eval "with_${ac_package}=no" ;;
|
|---|
| 389 |
|
|---|
| 390 | --x)
|
|---|
| 391 | # Obsolete; use --with-x.
|
|---|
| 392 | with_x=yes ;;
|
|---|
| 393 |
|
|---|
| 394 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
|---|
| 395 | | --x-incl | --x-inc | --x-in | --x-i)
|
|---|
| 396 | ac_prev=x_includes ;;
|
|---|
| 397 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
|---|
| 398 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
|---|
| 399 | x_includes="$ac_optarg" ;;
|
|---|
| 400 |
|
|---|
| 401 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
|---|
| 402 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
|---|
| 403 | ac_prev=x_libraries ;;
|
|---|
| 404 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
|---|
| 405 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
|---|
| 406 | x_libraries="$ac_optarg" ;;
|
|---|
| 407 |
|
|---|
| 408 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
|---|
| 409 | ;;
|
|---|
| 410 |
|
|---|
| 411 | *)
|
|---|
| 412 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
|---|
| 413 | echo "configure: warning: $ac_option: invalid host type" 1>&2
|
|---|
| 414 | fi
|
|---|
| 415 | if test "x$nonopt" != xNONE; then
|
|---|
| 416 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
|---|
| 417 | fi
|
|---|
| 418 | nonopt="$ac_option"
|
|---|
| 419 | ;;
|
|---|
| 420 |
|
|---|
| 421 | esac
|
|---|
| 422 | done
|
|---|
| 423 |
|
|---|
| 424 | if test -n "$ac_prev"; then
|
|---|
| 425 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
|---|
| 426 | fi
|
|---|
| 427 |
|
|---|
| 428 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|---|
| 429 |
|
|---|
| 430 | # File descriptor usage:
|
|---|
| 431 | # 0 standard input
|
|---|
| 432 | # 1 file creation
|
|---|
| 433 | # 2 errors and warnings
|
|---|
| 434 | # 3 some systems may open it to /dev/tty
|
|---|
| 435 | # 4 used on the Kubota Titan
|
|---|
| 436 | # 6 checking for... messages and results
|
|---|
| 437 | # 5 compiler messages saved in config.log
|
|---|
| 438 | if test "$silent" = yes; then
|
|---|
| 439 | exec 6>/dev/null
|
|---|
| 440 | else
|
|---|
| 441 | exec 6>&1
|
|---|
| 442 | fi
|
|---|
| 443 | exec 5>./config.log
|
|---|
| 444 |
|
|---|
| 445 | echo "\
|
|---|
| 446 | This file contains any messages produced by compilers while
|
|---|
| 447 | running configure, to aid debugging if configure makes a mistake.
|
|---|
| 448 | " 1>&5
|
|---|
| 449 |
|
|---|
| 450 | # Strip out --no-create and --no-recursion so they do not pile up.
|
|---|
| 451 | # Also quote any args containing shell metacharacters.
|
|---|
| 452 | ac_configure_args=
|
|---|
| 453 | for ac_arg
|
|---|
| 454 | do
|
|---|
| 455 | case "$ac_arg" in
|
|---|
| 456 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|---|
| 457 | | --no-cr | --no-c) ;;
|
|---|
| 458 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|---|
| 459 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
|---|
| 460 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
|---|
| 461 | ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
|---|
| 462 | *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
|---|
| 463 | esac
|
|---|
| 464 | done
|
|---|
| 465 |
|
|---|
| 466 | # NLS nuisances.
|
|---|
| 467 | # Only set these to C if already set. These must not be set unconditionally
|
|---|
| 468 | # because not all systems understand e.g. LANG=C (notably SCO).
|
|---|
| 469 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
|---|
| 470 | # Non-C LC_CTYPE values break the ctype check.
|
|---|
| 471 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
|---|
| 472 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
|---|
| 473 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
|---|
| 474 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
|---|
| 475 |
|
|---|
| 476 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
|---|
| 477 | rm -rf conftest* confdefs.h
|
|---|
| 478 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
|---|
| 479 | echo > confdefs.h
|
|---|
| 480 |
|
|---|
| 481 | # A filename unique to this package, relative to the directory that
|
|---|
| 482 | # configure is in, which we can look for to find out if srcdir is correct.
|
|---|
| 483 | ac_unique_file=libbfd.c
|
|---|
| 484 |
|
|---|
| 485 | # Find the source files, if location was not specified.
|
|---|
| 486 | if test -z "$srcdir"; then
|
|---|
| 487 | ac_srcdir_defaulted=yes
|
|---|
| 488 | # Try the directory containing this script, then its parent.
|
|---|
| 489 | ac_prog=$0
|
|---|
| 490 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
|---|
| 491 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
|---|
| 492 | srcdir=$ac_confdir
|
|---|
| 493 | if test ! -r $srcdir/$ac_unique_file; then
|
|---|
| 494 | srcdir=..
|
|---|
| 495 | fi
|
|---|
| 496 | else
|
|---|
| 497 | ac_srcdir_defaulted=no
|
|---|
| 498 | fi
|
|---|
| 499 | if test ! -r $srcdir/$ac_unique_file; then
|
|---|
| 500 | if test "$ac_srcdir_defaulted" = yes; then
|
|---|
| 501 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
|---|
| 502 | else
|
|---|
| 503 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
|---|
| 504 | fi
|
|---|
| 505 | fi
|
|---|
| 506 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
|---|
| 507 |
|
|---|
| 508 | # Prefer explicitly selected file to automatically selected ones.
|
|---|
| 509 | if test -z "$CONFIG_SITE"; then
|
|---|
| 510 | if test "x$prefix" != xNONE; then
|
|---|
| 511 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
|---|
| 512 | else
|
|---|
| 513 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
|---|
| 514 | fi
|
|---|
| 515 | fi
|
|---|
| 516 | for ac_site_file in $CONFIG_SITE; do
|
|---|
| 517 | if test -r "$ac_site_file"; then
|
|---|
| 518 | echo "loading site script $ac_site_file"
|
|---|
| 519 | . "$ac_site_file"
|
|---|
| 520 | fi
|
|---|
| 521 | done
|
|---|
| 522 |
|
|---|
| 523 | if test -r "$cache_file"; then
|
|---|
| 524 | echo "loading cache $cache_file"
|
|---|
| 525 | . $cache_file
|
|---|
| 526 | else
|
|---|
| 527 | echo "creating cache $cache_file"
|
|---|
| 528 | > $cache_file
|
|---|
| 529 | fi
|
|---|
| 530 |
|
|---|
| 531 | ac_ext=c
|
|---|
| 532 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 533 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 534 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 535 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 536 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 537 |
|
|---|
| 538 | ac_exeext=
|
|---|
| 539 | ac_objext=o
|
|---|
| 540 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
|---|
| 541 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
|---|
| 542 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
|---|
| 543 | ac_n= ac_c='
|
|---|
| 544 | ' ac_t=' '
|
|---|
| 545 | else
|
|---|
| 546 | ac_n=-n ac_c= ac_t=
|
|---|
| 547 | fi
|
|---|
| 548 | else
|
|---|
| 549 | ac_n= ac_c='\c' ac_t=
|
|---|
| 550 | fi
|
|---|
| 551 |
|
|---|
| 552 | echo $ac_n "checking for path separator""... $ac_c" 1>&6
|
|---|
| 553 | echo "configure:554: checking for path separator" >&5
|
|---|
| 554 | # Filter path to get backslahes into forwardslashes
|
|---|
| 555 | case "`uname -s 2> /dev/null`" in
|
|---|
| 556 | OS/2)
|
|---|
| 557 | PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
|
|---|
| 558 | PATH_IFS=';'
|
|---|
| 559 | ;;
|
|---|
| 560 | *)
|
|---|
| 561 | PATH_IFS=':'
|
|---|
| 562 | ;;
|
|---|
| 563 | esac
|
|---|
| 564 | echo "$ac_t""${PATH_IFS}" 1>&6
|
|---|
| 565 |
|
|---|
| 566 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
|
|---|
| 567 | echo "configure:568: checking for Cygwin environment" >&5
|
|---|
| 568 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
|
|---|
| 569 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 570 | else
|
|---|
| 571 | cat > conftest.$ac_ext <<EOF
|
|---|
| 572 | #line 573 "configure"
|
|---|
| 573 | #include "confdefs.h"
|
|---|
| 574 |
|
|---|
| 575 | int main() {
|
|---|
| 576 |
|
|---|
| 577 | #ifndef __CYGWIN__
|
|---|
| 578 | #define __CYGWIN__ __CYGWIN32__
|
|---|
| 579 | #endif
|
|---|
| 580 | return __CYGWIN__;
|
|---|
| 581 | ; return 0; }
|
|---|
| 582 | EOF
|
|---|
| 583 | if { (eval echo configure:584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 584 | rm -rf conftest*
|
|---|
| 585 | ac_cv_cygwin=yes
|
|---|
| 586 | else
|
|---|
| 587 | echo "configure: failed program was:" >&5
|
|---|
| 588 | cat conftest.$ac_ext >&5
|
|---|
| 589 | rm -rf conftest*
|
|---|
| 590 | ac_cv_cygwin=no
|
|---|
| 591 | fi
|
|---|
| 592 | rm -f conftest*
|
|---|
| 593 | rm -f conftest*
|
|---|
| 594 | fi
|
|---|
| 595 |
|
|---|
| 596 | echo "$ac_t""$ac_cv_cygwin" 1>&6
|
|---|
| 597 | CYGWIN=
|
|---|
| 598 | test "$ac_cv_cygwin" = yes && CYGWIN=yes
|
|---|
| 599 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
|
|---|
| 600 | echo "configure:601: checking for mingw32 environment" >&5
|
|---|
| 601 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
|
|---|
| 602 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 603 | else
|
|---|
| 604 | cat > conftest.$ac_ext <<EOF
|
|---|
| 605 | #line 606 "configure"
|
|---|
| 606 | #include "confdefs.h"
|
|---|
| 607 |
|
|---|
| 608 | int main() {
|
|---|
| 609 | return __MINGW32__;
|
|---|
| 610 | ; return 0; }
|
|---|
| 611 | EOF
|
|---|
| 612 | if { (eval echo configure:613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 613 | rm -rf conftest*
|
|---|
| 614 | ac_cv_mingw32=yes
|
|---|
| 615 | else
|
|---|
| 616 | echo "configure: failed program was:" >&5
|
|---|
| 617 | cat conftest.$ac_ext >&5
|
|---|
| 618 | rm -rf conftest*
|
|---|
| 619 | ac_cv_mingw32=no
|
|---|
| 620 | fi
|
|---|
| 621 | rm -f conftest*
|
|---|
| 622 | rm -f conftest*
|
|---|
| 623 | fi
|
|---|
| 624 |
|
|---|
| 625 | echo "$ac_t""$ac_cv_mingw32" 1>&6
|
|---|
| 626 | MINGW32=
|
|---|
| 627 | test "$ac_cv_mingw32" = yes && MINGW32=yes
|
|---|
| 628 | echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
|
|---|
| 629 | echo "configure:630: checking for EMX/OS2 environment" >&5
|
|---|
| 630 | if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
|
|---|
| 631 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 632 | else
|
|---|
| 633 | : ${CC=gcc.exe}
|
|---|
| 634 | cat > conftest.$ac_ext <<EOF
|
|---|
| 635 | #line 636 "configure"
|
|---|
| 636 | #include "confdefs.h"
|
|---|
| 637 |
|
|---|
| 638 | int main() {
|
|---|
| 639 | return __EMX__;
|
|---|
| 640 | ; return 0; }
|
|---|
| 641 | EOF
|
|---|
| 642 | if { (eval echo configure:643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 643 | rm -rf conftest*
|
|---|
| 644 | ac_cv_emxos2=yes
|
|---|
| 645 | else
|
|---|
| 646 | echo "configure: failed program was:" >&5
|
|---|
| 647 | cat conftest.$ac_ext >&5
|
|---|
| 648 | rm -rf conftest*
|
|---|
| 649 | ac_cv_emxos2=no
|
|---|
| 650 | fi
|
|---|
| 651 | rm -f conftest*
|
|---|
| 652 | rm -f conftest*
|
|---|
| 653 | fi
|
|---|
| 654 |
|
|---|
| 655 | echo "$ac_t""$ac_cv_emxos2" 1>&6
|
|---|
| 656 | if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
|
|---|
| 657 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 658 | else
|
|---|
| 659 | if test "$ac_cv_emxos2" = yes ; then
|
|---|
| 660 | ac_cv_libpre=
|
|---|
| 661 | else
|
|---|
| 662 | ac_cv_libpre=lib
|
|---|
| 663 | fi
|
|---|
| 664 |
|
|---|
| 665 | fi
|
|---|
| 666 |
|
|---|
| 667 | EMXOS2=
|
|---|
| 668 | test "$ac_cv_emxos2" = yes && EMXOS2=yes
|
|---|
| 669 |
|
|---|
| 670 |
|
|---|
| 671 |
|
|---|
| 672 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
|---|
| 673 | echo "configure:674: checking for executable suffix" >&5
|
|---|
| 674 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
|---|
| 675 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 676 | else
|
|---|
| 677 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
|---|
| 678 | ac_cv_exeext=.exe
|
|---|
| 679 | else
|
|---|
| 680 | rm -f conftest*
|
|---|
| 681 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
|---|
| 682 | ac_cv_exeext=
|
|---|
| 683 | if { (eval echo configure:684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
|---|
| 684 | for file in conftest.*; do
|
|---|
| 685 | case $file in
|
|---|
| 686 | *.c | *.o | *.obj) ;;
|
|---|
| 687 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
|---|
| 688 | esac
|
|---|
| 689 | done
|
|---|
| 690 | else
|
|---|
| 691 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 692 | fi
|
|---|
| 693 | rm -f conftest*
|
|---|
| 694 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
|---|
| 695 | fi
|
|---|
| 696 | fi
|
|---|
| 697 |
|
|---|
| 698 | EXEEXT=""
|
|---|
| 699 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
|---|
| 700 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
|---|
| 701 | ac_exeext=$EXEEXT
|
|---|
| 702 |
|
|---|
| 703 |
|
|---|
| 704 |
|
|---|
| 705 | ac_aux_dir=
|
|---|
| 706 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
|---|
| 707 | if test -f $ac_dir/install-sh; then
|
|---|
| 708 | ac_aux_dir=$ac_dir
|
|---|
| 709 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
|---|
| 710 | break
|
|---|
| 711 | elif test -f $ac_dir/install.sh; then
|
|---|
| 712 | ac_aux_dir=$ac_dir
|
|---|
| 713 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
|---|
| 714 | break
|
|---|
| 715 | fi
|
|---|
| 716 | done
|
|---|
| 717 | if test -z "$ac_aux_dir"; then
|
|---|
| 718 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
|---|
| 719 | fi
|
|---|
| 720 | ac_config_guess=$ac_aux_dir/config.guess
|
|---|
| 721 | ac_config_sub=$ac_aux_dir/config.sub
|
|---|
| 722 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
|---|
| 723 |
|
|---|
| 724 |
|
|---|
| 725 | # Do some error checking and defaulting for the host and target type.
|
|---|
| 726 | # The inputs are:
|
|---|
| 727 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT
|
|---|
| 728 | #
|
|---|
| 729 | # The rules are:
|
|---|
| 730 | # 1. You are not allowed to specify --host, --target, and nonopt at the
|
|---|
| 731 | # same time.
|
|---|
| 732 | # 2. Host defaults to nonopt.
|
|---|
| 733 | # 3. If nonopt is not specified, then host defaults to the current host,
|
|---|
| 734 | # as determined by config.guess.
|
|---|
| 735 | # 4. Target and build default to nonopt.
|
|---|
| 736 | # 5. If nonopt is not specified, then target and build default to host.
|
|---|
| 737 |
|
|---|
| 738 | # The aliases save the names the user supplied, while $host etc.
|
|---|
| 739 | # will get canonicalized.
|
|---|
| 740 | case $host---$target---$nonopt in
|
|---|
| 741 | NONE---*---* | *---NONE---* | *---*---NONE) ;;
|
|---|
| 742 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
|
|---|
| 743 | esac
|
|---|
| 744 |
|
|---|
| 745 |
|
|---|
| 746 | # Make sure we can run config.sub.
|
|---|
| 747 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
|
|---|
| 748 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
|
|---|
| 749 | fi
|
|---|
| 750 |
|
|---|
| 751 | echo $ac_n "checking host system type""... $ac_c" 1>&6
|
|---|
| 752 | echo "configure:753: checking host system type" >&5
|
|---|
| 753 |
|
|---|
| 754 | host_alias=$host
|
|---|
| 755 | case "$host_alias" in
|
|---|
| 756 | NONE)
|
|---|
| 757 | case $nonopt in
|
|---|
| 758 | NONE)
|
|---|
| 759 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
|
|---|
| 760 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
|
|---|
| 761 | fi ;;
|
|---|
| 762 | *) host_alias=$nonopt ;;
|
|---|
| 763 | esac ;;
|
|---|
| 764 | esac
|
|---|
| 765 |
|
|---|
| 766 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
|
|---|
| 767 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 768 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 769 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 770 | echo "$ac_t""$host" 1>&6
|
|---|
| 771 |
|
|---|
| 772 | echo $ac_n "checking target system type""... $ac_c" 1>&6
|
|---|
| 773 | echo "configure:774: checking target system type" >&5
|
|---|
| 774 |
|
|---|
| 775 | target_alias=$target
|
|---|
| 776 | case "$target_alias" in
|
|---|
| 777 | NONE)
|
|---|
| 778 | case $nonopt in
|
|---|
| 779 | NONE) target_alias=$host_alias ;;
|
|---|
| 780 | *) target_alias=$nonopt ;;
|
|---|
| 781 | esac ;;
|
|---|
| 782 | esac
|
|---|
| 783 |
|
|---|
| 784 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
|
|---|
| 785 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 786 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 787 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 788 | echo "$ac_t""$target" 1>&6
|
|---|
| 789 |
|
|---|
| 790 | echo $ac_n "checking build system type""... $ac_c" 1>&6
|
|---|
| 791 | echo "configure:792: checking build system type" >&5
|
|---|
| 792 |
|
|---|
| 793 | build_alias=$build
|
|---|
| 794 | case "$build_alias" in
|
|---|
| 795 | NONE)
|
|---|
| 796 | case $nonopt in
|
|---|
| 797 | NONE) build_alias=$host_alias ;;
|
|---|
| 798 | *) build_alias=$nonopt ;;
|
|---|
| 799 | esac ;;
|
|---|
| 800 | esac
|
|---|
| 801 |
|
|---|
| 802 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
|
|---|
| 803 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 804 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 805 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 806 | echo "$ac_t""$build" 1>&6
|
|---|
| 807 |
|
|---|
| 808 | test "$host_alias" != "$target_alias" &&
|
|---|
| 809 | test "$program_prefix$program_suffix$program_transform_name" = \
|
|---|
| 810 | NONENONEs,x,x, &&
|
|---|
| 811 | program_prefix=${target_alias}-
|
|---|
| 812 |
|
|---|
| 813 | # Extract the first word of "gcc", so it can be a program name with args.
|
|---|
| 814 | set dummy gcc; ac_word=$2
|
|---|
| 815 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 816 | echo "configure:817: checking for $ac_word" >&5
|
|---|
| 817 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 818 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 819 | else
|
|---|
| 820 | if test -n "$CC"; then
|
|---|
| 821 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 822 | else
|
|---|
| 823 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 824 | ac_dummy="$PATH"
|
|---|
| 825 | for ac_dir in $ac_dummy; do
|
|---|
| 826 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 827 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 828 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 829 | ac_cv_prog_CC="gcc"
|
|---|
| 830 | break
|
|---|
| 831 | fi
|
|---|
| 832 | done
|
|---|
| 833 | IFS="$ac_save_ifs"
|
|---|
| 834 | fi
|
|---|
| 835 | fi
|
|---|
| 836 | CC="$ac_cv_prog_CC"
|
|---|
| 837 | if test -n "$CC"; then
|
|---|
| 838 | echo "$ac_t""$CC" 1>&6
|
|---|
| 839 | else
|
|---|
| 840 | echo "$ac_t""no" 1>&6
|
|---|
| 841 | fi
|
|---|
| 842 |
|
|---|
| 843 | if test -z "$CC"; then
|
|---|
| 844 | # Extract the first word of "cc", so it can be a program name with args.
|
|---|
| 845 | set dummy cc; ac_word=$2
|
|---|
| 846 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 847 | echo "configure:848: checking for $ac_word" >&5
|
|---|
| 848 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 849 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 850 | else
|
|---|
| 851 | if test -n "$CC"; then
|
|---|
| 852 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 853 | else
|
|---|
| 854 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 855 | ac_prog_rejected=no
|
|---|
| 856 | ac_dummy="$PATH"
|
|---|
| 857 | for ac_dir in $ac_dummy; do
|
|---|
| 858 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 859 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 860 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 861 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
|
|---|
| 862 | "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
|
|---|
| 863 | ac_prog_rejected=yes
|
|---|
| 864 | continue
|
|---|
| 865 | fi
|
|---|
| 866 | ac_cv_prog_CC="cc"
|
|---|
| 867 | break
|
|---|
| 868 | fi
|
|---|
| 869 | done
|
|---|
| 870 | IFS="$ac_save_ifs"
|
|---|
| 871 | if test $ac_prog_rejected = yes; then
|
|---|
| 872 | # We found a bogon in the path, so make sure we never use it.
|
|---|
| 873 | set dummy $ac_cv_prog_CC
|
|---|
| 874 | shift
|
|---|
| 875 | if test $# -gt 0; then
|
|---|
| 876 | # We chose a different compiler from the bogus one.
|
|---|
| 877 | # However, it has the same basename, so the bogon will be chosen
|
|---|
| 878 | # first if we set CC to just the basename; use the full file name.
|
|---|
| 879 | shift
|
|---|
| 880 | set dummy "$ac_dir/$ac_word" "$@"
|
|---|
| 881 | shift
|
|---|
| 882 | ac_cv_prog_CC="$@"
|
|---|
| 883 | fi
|
|---|
| 884 | fi
|
|---|
| 885 | fi
|
|---|
| 886 | fi
|
|---|
| 887 | CC="$ac_cv_prog_CC"
|
|---|
| 888 | if test -n "$CC"; then
|
|---|
| 889 | echo "$ac_t""$CC" 1>&6
|
|---|
| 890 | else
|
|---|
| 891 | echo "$ac_t""no" 1>&6
|
|---|
| 892 | fi
|
|---|
| 893 |
|
|---|
| 894 | if test -z "$CC"; then
|
|---|
| 895 | case "`uname -s`" in
|
|---|
| 896 | *win32* | *WIN32*)
|
|---|
| 897 | # Extract the first word of "cl", so it can be a program name with args.
|
|---|
| 898 | set dummy cl; ac_word=$2
|
|---|
| 899 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 900 | echo "configure:901: checking for $ac_word" >&5
|
|---|
| 901 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 902 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 903 | else
|
|---|
| 904 | if test -n "$CC"; then
|
|---|
| 905 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 906 | else
|
|---|
| 907 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 908 | ac_dummy="$PATH"
|
|---|
| 909 | for ac_dir in $ac_dummy; do
|
|---|
| 910 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 911 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 912 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 913 | ac_cv_prog_CC="cl"
|
|---|
| 914 | break
|
|---|
| 915 | fi
|
|---|
| 916 | done
|
|---|
| 917 | IFS="$ac_save_ifs"
|
|---|
| 918 | fi
|
|---|
| 919 | fi
|
|---|
| 920 | CC="$ac_cv_prog_CC"
|
|---|
| 921 | if test -n "$CC"; then
|
|---|
| 922 | echo "$ac_t""$CC" 1>&6
|
|---|
| 923 | else
|
|---|
| 924 | echo "$ac_t""no" 1>&6
|
|---|
| 925 | fi
|
|---|
| 926 | ;;
|
|---|
| 927 | esac
|
|---|
| 928 | fi
|
|---|
| 929 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|---|
| 930 | fi
|
|---|
| 931 |
|
|---|
| 932 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|---|
| 933 | echo "configure:934: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
|---|
| 934 |
|
|---|
| 935 | ac_ext=c
|
|---|
| 936 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 937 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 938 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 939 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 940 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 941 |
|
|---|
| 942 | cat > conftest.$ac_ext << EOF
|
|---|
| 943 |
|
|---|
| 944 | #line 945 "configure"
|
|---|
| 945 | #include "confdefs.h"
|
|---|
| 946 |
|
|---|
| 947 | main(){return(0);}
|
|---|
| 948 | EOF
|
|---|
| 949 | if { (eval echo configure:950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 950 | ac_cv_prog_cc_works=yes
|
|---|
| 951 | # If we can't run a trivial program, we are probably using a cross compiler.
|
|---|
| 952 | if (./conftest; exit) 2>/dev/null; then
|
|---|
| 953 | ac_cv_prog_cc_cross=no
|
|---|
| 954 | else
|
|---|
| 955 | ac_cv_prog_cc_cross=yes
|
|---|
| 956 | fi
|
|---|
| 957 | else
|
|---|
| 958 | echo "configure: failed program was:" >&5
|
|---|
| 959 | cat conftest.$ac_ext >&5
|
|---|
| 960 | ac_cv_prog_cc_works=no
|
|---|
| 961 | fi
|
|---|
| 962 | rm -fr conftest*
|
|---|
| 963 | ac_ext=c
|
|---|
| 964 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 965 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 966 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 967 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 968 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 969 |
|
|---|
| 970 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|---|
| 971 | if test $ac_cv_prog_cc_works = no; then
|
|---|
| 972 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 973 | fi
|
|---|
| 974 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|---|
| 975 | echo "configure:976: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|---|
| 976 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|---|
| 977 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 978 |
|
|---|
| 979 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
|---|
| 980 | echo "configure:981: checking whether we are using GNU C" >&5
|
|---|
| 981 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
|---|
| 982 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 983 | else
|
|---|
| 984 | cat > conftest.c <<EOF
|
|---|
| 985 | #ifdef __GNUC__
|
|---|
| 986 | yes;
|
|---|
| 987 | #endif
|
|---|
| 988 | EOF
|
|---|
| 989 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|---|
| 990 | ac_cv_prog_gcc=yes
|
|---|
| 991 | else
|
|---|
| 992 | ac_cv_prog_gcc=no
|
|---|
| 993 | fi
|
|---|
| 994 | fi
|
|---|
| 995 |
|
|---|
| 996 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|---|
| 997 |
|
|---|
| 998 | if test $ac_cv_prog_gcc = yes; then
|
|---|
| 999 | GCC=yes
|
|---|
| 1000 | else
|
|---|
| 1001 | GCC=
|
|---|
| 1002 | fi
|
|---|
| 1003 |
|
|---|
| 1004 | ac_test_CFLAGS="${CFLAGS+set}"
|
|---|
| 1005 | ac_save_CFLAGS="$CFLAGS"
|
|---|
| 1006 | CFLAGS=
|
|---|
| 1007 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|---|
| 1008 | echo "configure:1009: checking whether ${CC-cc} accepts -g" >&5
|
|---|
| 1009 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
|---|
| 1010 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1011 | else
|
|---|
| 1012 | echo 'void f(){}' > conftest.c
|
|---|
| 1013 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|---|
| 1014 | ac_cv_prog_cc_g=yes
|
|---|
| 1015 | else
|
|---|
| 1016 | ac_cv_prog_cc_g=no
|
|---|
| 1017 | fi
|
|---|
| 1018 | rm -f conftest*
|
|---|
| 1019 |
|
|---|
| 1020 | fi
|
|---|
| 1021 |
|
|---|
| 1022 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|---|
| 1023 | if test "$ac_test_CFLAGS" = set; then
|
|---|
| 1024 | CFLAGS="$ac_save_CFLAGS"
|
|---|
| 1025 | elif test $ac_cv_prog_cc_g = yes; then
|
|---|
| 1026 | if test "$GCC" = yes; then
|
|---|
| 1027 | CFLAGS="-g -O2"
|
|---|
| 1028 | else
|
|---|
| 1029 | CFLAGS="-g"
|
|---|
| 1030 | fi
|
|---|
| 1031 | else
|
|---|
| 1032 | if test "$GCC" = yes; then
|
|---|
| 1033 | CFLAGS="-O2"
|
|---|
| 1034 | else
|
|---|
| 1035 | CFLAGS=
|
|---|
| 1036 | fi
|
|---|
| 1037 | fi
|
|---|
| 1038 |
|
|---|
| 1039 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
|
|---|
| 1040 | echo "configure:1041: checking for POSIXized ISC" >&5
|
|---|
| 1041 | if test -d /etc/conf/kconfig.d &&
|
|---|
| 1042 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
|
|---|
| 1043 | then
|
|---|
| 1044 | echo "$ac_t""yes" 1>&6
|
|---|
| 1045 | ISC=yes # If later tests want to check for ISC.
|
|---|
| 1046 | cat >> confdefs.h <<\EOF
|
|---|
| 1047 | #define _POSIX_SOURCE 1
|
|---|
| 1048 | EOF
|
|---|
| 1049 |
|
|---|
| 1050 | if test "$GCC" = yes; then
|
|---|
| 1051 | CC="$CC -posix"
|
|---|
| 1052 | else
|
|---|
| 1053 | CC="$CC -Xp"
|
|---|
| 1054 | fi
|
|---|
| 1055 | else
|
|---|
| 1056 | echo "$ac_t""no" 1>&6
|
|---|
| 1057 | ISC=
|
|---|
| 1058 | fi
|
|---|
| 1059 |
|
|---|
| 1060 |
|
|---|
| 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=bfd
|
|---|
| 1213 |
|
|---|
| 1214 | VERSION=2.11.2
|
|---|
| 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""... $ac_c" 1>&6
|
|---|
| 1231 | echo "configure:1232: checking for working aclocal" >&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 --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1236 | ACLOCAL=aclocal
|
|---|
| 1237 | echo "$ac_t""found" 1>&6
|
|---|
| 1238 | else
|
|---|
| 1239 | ACLOCAL="$missing_dir/missing aclocal"
|
|---|
| 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""... $ac_c" 1>&6
|
|---|
| 1257 | echo "configure:1258: checking for working automake" >&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 --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1262 | AUTOMAKE=automake
|
|---|
| 1263 | echo "$ac_t""found" 1>&6
|
|---|
| 1264 | else
|
|---|
| 1265 | AUTOMAKE="$missing_dir/missing automake"
|
|---|
| 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 | if test $host != $build; then
|
|---|
| 1298 | ac_tool_prefix=${host_alias}-
|
|---|
| 1299 | else
|
|---|
| 1300 | ac_tool_prefix=
|
|---|
| 1301 | fi
|
|---|
| 1302 |
|
|---|
| 1303 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
|---|
| 1304 | set dummy ${ac_tool_prefix}ar; ac_word=$2
|
|---|
| 1305 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1306 | echo "configure:1307: checking for $ac_word" >&5
|
|---|
| 1307 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
|
|---|
| 1308 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1309 | else
|
|---|
| 1310 | if test -n "$AR"; then
|
|---|
| 1311 | ac_cv_prog_AR="$AR" # Let the user override the test.
|
|---|
| 1312 | else
|
|---|
| 1313 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1314 | ac_dummy="$PATH"
|
|---|
| 1315 | for ac_dir in $ac_dummy; do
|
|---|
| 1316 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1317 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1318 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1319 | ac_cv_prog_AR="${ac_tool_prefix}ar"
|
|---|
| 1320 | break
|
|---|
| 1321 | fi
|
|---|
| 1322 | done
|
|---|
| 1323 | IFS="$ac_save_ifs"
|
|---|
| 1324 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
|
|---|
| 1325 | fi
|
|---|
| 1326 | fi
|
|---|
| 1327 | AR="$ac_cv_prog_AR"
|
|---|
| 1328 | if test -n "$AR"; then
|
|---|
| 1329 | echo "$ac_t""$AR" 1>&6
|
|---|
| 1330 | else
|
|---|
| 1331 | echo "$ac_t""no" 1>&6
|
|---|
| 1332 | fi
|
|---|
| 1333 |
|
|---|
| 1334 |
|
|---|
| 1335 |
|
|---|
| 1336 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
|---|
| 1337 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
|---|
| 1338 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1339 | echo "configure:1340: checking for $ac_word" >&5
|
|---|
| 1340 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 1341 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1342 | else
|
|---|
| 1343 | if test -n "$RANLIB"; then
|
|---|
| 1344 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 1345 | else
|
|---|
| 1346 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1347 | ac_dummy="$PATH"
|
|---|
| 1348 | for ac_dir in $ac_dummy; do
|
|---|
| 1349 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1350 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1351 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1352 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
|---|
| 1353 | break
|
|---|
| 1354 | fi
|
|---|
| 1355 | done
|
|---|
| 1356 | IFS="$ac_save_ifs"
|
|---|
| 1357 | fi
|
|---|
| 1358 | fi
|
|---|
| 1359 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 1360 | if test -n "$RANLIB"; then
|
|---|
| 1361 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 1362 | else
|
|---|
| 1363 | echo "$ac_t""no" 1>&6
|
|---|
| 1364 | fi
|
|---|
| 1365 |
|
|---|
| 1366 |
|
|---|
| 1367 | if test -z "$ac_cv_prog_RANLIB"; then
|
|---|
| 1368 | if test -n "$ac_tool_prefix"; then
|
|---|
| 1369 | # Extract the first word of "ranlib", so it can be a program name with args.
|
|---|
| 1370 | set dummy ranlib; ac_word=$2
|
|---|
| 1371 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1372 | echo "configure:1373: checking for $ac_word" >&5
|
|---|
| 1373 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 1374 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1375 | else
|
|---|
| 1376 | if test -n "$RANLIB"; then
|
|---|
| 1377 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 1378 | else
|
|---|
| 1379 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1380 | ac_dummy="$PATH"
|
|---|
| 1381 | for ac_dir in $ac_dummy; do
|
|---|
| 1382 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1383 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1384 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1385 | ac_cv_prog_RANLIB="ranlib"
|
|---|
| 1386 | break
|
|---|
| 1387 | fi
|
|---|
| 1388 | done
|
|---|
| 1389 | IFS="$ac_save_ifs"
|
|---|
| 1390 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|---|
| 1391 | fi
|
|---|
| 1392 | fi
|
|---|
| 1393 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 1394 | if test -n "$RANLIB"; then
|
|---|
| 1395 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 1396 | else
|
|---|
| 1397 | echo "$ac_t""no" 1>&6
|
|---|
| 1398 | fi
|
|---|
| 1399 |
|
|---|
| 1400 | else
|
|---|
| 1401 | RANLIB=":"
|
|---|
| 1402 | fi
|
|---|
| 1403 | fi
|
|---|
| 1404 |
|
|---|
| 1405 |
|
|---|
| 1406 | # Check whether --enable-shared or --disable-shared was given.
|
|---|
| 1407 | if test "${enable_shared+set}" = set; then
|
|---|
| 1408 | enableval="$enable_shared"
|
|---|
| 1409 | p=${PACKAGE-default}
|
|---|
| 1410 | case "$enableval" in
|
|---|
| 1411 | yes) enable_shared=yes ;;
|
|---|
| 1412 | no) enable_shared=no ;;
|
|---|
| 1413 | *)
|
|---|
| 1414 | enable_shared=no
|
|---|
| 1415 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 1416 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 1417 | for pkg in $enableval; do
|
|---|
| 1418 | if test "X$pkg" = "X$p"; then
|
|---|
| 1419 | enable_shared=yes
|
|---|
| 1420 | fi
|
|---|
| 1421 | done
|
|---|
| 1422 | IFS="$ac_save_ifs"
|
|---|
| 1423 | ;;
|
|---|
| 1424 | esac
|
|---|
| 1425 | else
|
|---|
| 1426 | enable_shared=no
|
|---|
| 1427 | fi
|
|---|
| 1428 |
|
|---|
| 1429 |
|
|---|
| 1430 | # Check whether --enable-static or --disable-static was given.
|
|---|
| 1431 | if test "${enable_static+set}" = set; then
|
|---|
| 1432 | enableval="$enable_static"
|
|---|
| 1433 | p=${PACKAGE-default}
|
|---|
| 1434 | case "$enableval" in
|
|---|
| 1435 | yes) enable_static=yes ;;
|
|---|
| 1436 | no) enable_static=no ;;
|
|---|
| 1437 | *)
|
|---|
| 1438 | enable_static=no
|
|---|
| 1439 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 1440 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 1441 | for pkg in $enableval; do
|
|---|
| 1442 | if test "X$pkg" = "X$p"; then
|
|---|
| 1443 | enable_static=yes
|
|---|
| 1444 | fi
|
|---|
| 1445 | done
|
|---|
| 1446 | IFS="$ac_save_ifs"
|
|---|
| 1447 | ;;
|
|---|
| 1448 | esac
|
|---|
| 1449 | else
|
|---|
| 1450 | enable_static=yes
|
|---|
| 1451 | fi
|
|---|
| 1452 |
|
|---|
| 1453 | # Check whether --enable-fast-install or --disable-fast-install was given.
|
|---|
| 1454 | if test "${enable_fast_install+set}" = set; then
|
|---|
| 1455 | enableval="$enable_fast_install"
|
|---|
| 1456 | p=${PACKAGE-default}
|
|---|
| 1457 | case "$enableval" in
|
|---|
| 1458 | yes) enable_fast_install=yes ;;
|
|---|
| 1459 | no) enable_fast_install=no ;;
|
|---|
| 1460 | *)
|
|---|
| 1461 | enable_fast_install=no
|
|---|
| 1462 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 1463 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 1464 | for pkg in $enableval; do
|
|---|
| 1465 | if test "X$pkg" = "X$p"; then
|
|---|
| 1466 | enable_fast_install=yes
|
|---|
| 1467 | fi
|
|---|
| 1468 | done
|
|---|
| 1469 | IFS="$ac_save_ifs"
|
|---|
| 1470 | ;;
|
|---|
| 1471 | esac
|
|---|
| 1472 | else
|
|---|
| 1473 | enable_fast_install=yes
|
|---|
| 1474 | fi
|
|---|
| 1475 |
|
|---|
| 1476 | # Check whether --with-gnu-ld or --without-gnu-ld was given.
|
|---|
| 1477 | if test "${with_gnu_ld+set}" = set; then
|
|---|
| 1478 | withval="$with_gnu_ld"
|
|---|
| 1479 | test "$withval" = no || with_gnu_ld=yes
|
|---|
| 1480 | else
|
|---|
| 1481 | with_gnu_ld=no
|
|---|
| 1482 | fi
|
|---|
| 1483 |
|
|---|
| 1484 | ac_prog=ld
|
|---|
| 1485 | if test "$ac_cv_prog_gcc" = yes; then
|
|---|
| 1486 | # Check if gcc -print-prog-name=ld gives a path.
|
|---|
| 1487 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
|
|---|
| 1488 | echo "configure:1489: checking for ld used by GCC" >&5
|
|---|
| 1489 | case $host in
|
|---|
| 1490 | *-*-mingw*)
|
|---|
| 1491 | # gcc leaves a trailing carriage return which upsets mingw
|
|---|
| 1492 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
|---|
| 1493 | *)
|
|---|
| 1494 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
|---|
| 1495 | esac
|
|---|
| 1496 | case "$ac_prog" in
|
|---|
| 1497 | # Accept absolute paths.
|
|---|
| 1498 | [\\/]* | [A-Za-z]:[\\/]*)
|
|---|
| 1499 | re_direlt='/[^/][^/]*/\.\./'
|
|---|
| 1500 | # Canonicalize the path of ld
|
|---|
| 1501 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
|
|---|
| 1502 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
|---|
| 1503 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
|---|
| 1504 | done
|
|---|
| 1505 | test -z "$LD" && LD="$ac_prog"
|
|---|
| 1506 | ;;
|
|---|
| 1507 | "")
|
|---|
| 1508 | # If it fails, then pretend we aren't using GCC.
|
|---|
| 1509 | ac_prog=ld
|
|---|
| 1510 | ;;
|
|---|
| 1511 | *)
|
|---|
| 1512 | # If it is relative, then search for the first ld in PATH.
|
|---|
| 1513 | with_gnu_ld=unknown
|
|---|
| 1514 | ;;
|
|---|
| 1515 | esac
|
|---|
| 1516 | elif test "$with_gnu_ld" = yes; then
|
|---|
| 1517 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
|
|---|
| 1518 | echo "configure:1519: checking for GNU ld" >&5
|
|---|
| 1519 | else
|
|---|
| 1520 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
|
|---|
| 1521 | echo "configure:1522: checking for non-GNU ld" >&5
|
|---|
| 1522 | fi
|
|---|
| 1523 | if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
|
|---|
| 1524 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1525 | else
|
|---|
| 1526 | if test -z "$LD"; then
|
|---|
| 1527 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
|---|
| 1528 | for ac_dir in $PATH; do
|
|---|
| 1529 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1530 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
|---|
| 1531 | ac_cv_path_LD="$ac_dir/$ac_prog"
|
|---|
| 1532 | # Check to see if the program is GNU ld. I'd rather use --version,
|
|---|
| 1533 | # but apparently some GNU ld's only accept -v.
|
|---|
| 1534 | # Break only if it was the GNU/non-GNU ld that we prefer.
|
|---|
| 1535 | if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
|---|
| 1536 | test "$with_gnu_ld" != no && break
|
|---|
| 1537 | else
|
|---|
| 1538 | test "$with_gnu_ld" != yes && break
|
|---|
| 1539 | fi
|
|---|
| 1540 | fi
|
|---|
| 1541 | done
|
|---|
| 1542 | IFS="$ac_save_ifs"
|
|---|
| 1543 | else
|
|---|
| 1544 | ac_cv_path_LD="$LD" # Let the user override the test with a path.
|
|---|
| 1545 | fi
|
|---|
| 1546 | fi
|
|---|
| 1547 |
|
|---|
| 1548 | LD="$ac_cv_path_LD"
|
|---|
| 1549 | if test -n "$LD"; then
|
|---|
| 1550 | echo "$ac_t""$LD" 1>&6
|
|---|
| 1551 | else
|
|---|
| 1552 | echo "$ac_t""no" 1>&6
|
|---|
| 1553 | fi
|
|---|
| 1554 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
|
|---|
| 1555 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
|
|---|
| 1556 | echo "configure:1557: checking if the linker ($LD) is GNU ld" >&5
|
|---|
| 1557 | if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
|
|---|
| 1558 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1559 | else
|
|---|
| 1560 | # I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
|---|
| 1561 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
|---|
| 1562 | ac_cv_prog_gnu_ld=yes
|
|---|
| 1563 | else
|
|---|
| 1564 | ac_cv_prog_gnu_ld=no
|
|---|
| 1565 | fi
|
|---|
| 1566 | fi
|
|---|
| 1567 |
|
|---|
| 1568 | echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
|
|---|
| 1569 | with_gnu_ld=$ac_cv_prog_gnu_ld
|
|---|
| 1570 |
|
|---|
| 1571 |
|
|---|
| 1572 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
|
|---|
| 1573 | echo "configure:1574: checking for $LD option to reload object files" >&5
|
|---|
| 1574 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
|
|---|
| 1575 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1576 | else
|
|---|
| 1577 | lt_cv_ld_reload_flag='-r'
|
|---|
| 1578 | fi
|
|---|
| 1579 |
|
|---|
| 1580 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
|
|---|
| 1581 | reload_flag=$lt_cv_ld_reload_flag
|
|---|
| 1582 | test -n "$reload_flag" && reload_flag=" $reload_flag"
|
|---|
| 1583 |
|
|---|
| 1584 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
|
|---|
| 1585 | echo "configure:1586: checking for BSD-compatible nm" >&5
|
|---|
| 1586 | if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
|
|---|
| 1587 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1588 | else
|
|---|
| 1589 | if test -n "$NM"; then
|
|---|
| 1590 | # Let the user override the test.
|
|---|
| 1591 | ac_cv_path_NM="$NM"
|
|---|
| 1592 | else
|
|---|
| 1593 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
|---|
| 1594 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
|
|---|
| 1595 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1596 | tmp_nm=$ac_dir/${ac_tool_prefix}nm
|
|---|
| 1597 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
|
|---|
| 1598 | # Check to see if the nm accepts a BSD-compat flag.
|
|---|
| 1599 | # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
|---|
| 1600 | # nm: unknown option "B" ignored
|
|---|
| 1601 | # Tru64's nm complains that /dev/null is an invalid object file
|
|---|
| 1602 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
|
|---|
| 1603 | ac_cv_path_NM="$tmp_nm -B"
|
|---|
| 1604 | break
|
|---|
| 1605 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
|
|---|
| 1606 | ac_cv_path_NM="$tmp_nm -p"
|
|---|
| 1607 | break
|
|---|
| 1608 | else
|
|---|
| 1609 | ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
|
|---|
| 1610 | continue # so that we can try to find one that supports BSD flags
|
|---|
| 1611 | fi
|
|---|
| 1612 | fi
|
|---|
| 1613 | done
|
|---|
| 1614 | IFS="$ac_save_ifs"
|
|---|
| 1615 | test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
|
|---|
| 1616 | fi
|
|---|
| 1617 | fi
|
|---|
| 1618 |
|
|---|
| 1619 | NM="$ac_cv_path_NM"
|
|---|
| 1620 | echo "$ac_t""$NM" 1>&6
|
|---|
| 1621 |
|
|---|
| 1622 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
|---|
| 1623 | echo "configure:1624: checking whether ln -s works" >&5
|
|---|
| 1624 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
|
|---|
| 1625 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1626 | else
|
|---|
| 1627 | rm -f conftestdata
|
|---|
| 1628 | if ln -s X conftestdata 2>/dev/null
|
|---|
| 1629 | then
|
|---|
| 1630 | rm -f conftestdata
|
|---|
| 1631 | ac_cv_prog_LN_S="ln -s"
|
|---|
| 1632 | else
|
|---|
| 1633 | echo A > conftestdata;
|
|---|
| 1634 | if ln conftestdata conftestdata2 2>/dev/null; then
|
|---|
| 1635 | ac_cv_prog_LN_S=ln
|
|---|
| 1636 | else
|
|---|
| 1637 | ac_cv_prog_LN_S=cp
|
|---|
| 1638 | fi
|
|---|
| 1639 | fi
|
|---|
| 1640 | rm -f conftestdata*
|
|---|
| 1641 | fi
|
|---|
| 1642 | LN_S="$ac_cv_prog_LN_S"
|
|---|
| 1643 | if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
|---|
| 1644 | echo "$ac_t""yes" 1>&6
|
|---|
| 1645 | else
|
|---|
| 1646 | echo "$ac_t""no" 1>&6
|
|---|
| 1647 | fi
|
|---|
| 1648 |
|
|---|
| 1649 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
|
|---|
| 1650 | echo "configure:1651: checking how to recognise dependant libraries" >&5
|
|---|
| 1651 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
|
|---|
| 1652 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1653 | else
|
|---|
| 1654 | lt_cv_file_magic_cmd='$MAGIC_CMD'
|
|---|
| 1655 | lt_cv_file_magic_test_file=
|
|---|
| 1656 | lt_cv_deplibs_check_method='unknown'
|
|---|
| 1657 | # Need to set the preceding variable on all platforms that support
|
|---|
| 1658 | # interlibrary dependencies.
|
|---|
| 1659 | # 'none' -- dependencies not supported.
|
|---|
| 1660 | # `unknown' -- same as none, but documents that we really don't know.
|
|---|
| 1661 | # 'pass_all' -- all dependencies passed with no checks.
|
|---|
| 1662 | # 'test_compile' -- check by making test program.
|
|---|
| 1663 | # 'file_magic [regex]' -- check by looking for files in library path
|
|---|
| 1664 | # which responds to the $file_magic_cmd with a given egrep regex.
|
|---|
| 1665 | # If you have `file' or equivalent on your system and you're not sure
|
|---|
| 1666 | # whether `pass_all' will *always* work, you probably want this one.
|
|---|
| 1667 |
|
|---|
| 1668 | case "$host_os" in
|
|---|
| 1669 | aix4*)
|
|---|
| 1670 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1671 | ;;
|
|---|
| 1672 |
|
|---|
| 1673 | beos*)
|
|---|
| 1674 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1675 | ;;
|
|---|
| 1676 |
|
|---|
| 1677 | bsdi4*)
|
|---|
| 1678 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
|---|
| 1679 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
|---|
| 1680 | lt_cv_file_magic_test_file=/shlib/libc.so
|
|---|
| 1681 | ;;
|
|---|
| 1682 |
|
|---|
| 1683 | cygwin* | mingw* |pw32*)
|
|---|
| 1684 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
|---|
| 1685 | lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|---|
| 1686 | ;;
|
|---|
| 1687 |
|
|---|
| 1688 | freebsd* )
|
|---|
| 1689 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
|---|
| 1690 | case "$host_cpu" in
|
|---|
| 1691 | i*86 )
|
|---|
| 1692 | # Not sure whether the presence of OpenBSD here was a mistake.
|
|---|
| 1693 | # Let's accept both of them until this is cleared up.
|
|---|
| 1694 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
|
|---|
| 1695 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1696 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
|---|
| 1697 | ;;
|
|---|
| 1698 | esac
|
|---|
| 1699 | else
|
|---|
| 1700 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1701 | fi
|
|---|
| 1702 | ;;
|
|---|
| 1703 |
|
|---|
| 1704 | gnu*)
|
|---|
| 1705 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1706 | ;;
|
|---|
| 1707 |
|
|---|
| 1708 | hpux10.20*)
|
|---|
| 1709 | # TODO: Does this work for hpux-11 too?
|
|---|
| 1710 | lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
|
|---|
| 1711 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1712 | lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
|---|
| 1713 | ;;
|
|---|
| 1714 |
|
|---|
| 1715 | irix5* | irix6*)
|
|---|
| 1716 | case "$host_os" in
|
|---|
| 1717 | irix5*)
|
|---|
| 1718 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 1719 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
|
|---|
| 1720 | ;;
|
|---|
| 1721 | *)
|
|---|
| 1722 | case "$LD" in
|
|---|
| 1723 | *-32|*"-32 ") libmagic=32-bit;;
|
|---|
| 1724 | *-n32|*"-n32 ") libmagic=N32;;
|
|---|
| 1725 | *-64|*"-64 ") libmagic=64-bit;;
|
|---|
| 1726 | *) libmagic=never-match;;
|
|---|
| 1727 | esac
|
|---|
| 1728 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 1729 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
|
|---|
| 1730 | ;;
|
|---|
| 1731 | esac
|
|---|
| 1732 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
|
|---|
| 1733 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1734 | ;;
|
|---|
| 1735 |
|
|---|
| 1736 | # This must be Linux ELF.
|
|---|
| 1737 | linux-gnu*)
|
|---|
| 1738 | case "$host_cpu" in
|
|---|
| 1739 | alpha* | i*86 | powerpc* | sparc* | ia64* )
|
|---|
| 1740 | lt_cv_deplibs_check_method=pass_all ;;
|
|---|
| 1741 | *)
|
|---|
| 1742 | # glibc up to 2.1.1 does not perform some relocations on ARM
|
|---|
| 1743 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
|
|---|
| 1744 | esac
|
|---|
| 1745 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
|---|
| 1746 | ;;
|
|---|
| 1747 |
|
|---|
| 1748 | netbsd*)
|
|---|
| 1749 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
|
|---|
| 1750 | else
|
|---|
| 1751 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
|
|---|
| 1752 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
|---|
| 1753 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
|---|
| 1754 | fi
|
|---|
| 1755 | ;;
|
|---|
| 1756 |
|
|---|
| 1757 | os2*)
|
|---|
| 1758 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1759 | ;;
|
|---|
| 1760 |
|
|---|
| 1761 | osf3* | osf4* | osf5*)
|
|---|
| 1762 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 1763 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
|
|---|
| 1764 | lt_cv_file_magic_test_file=/shlib/libc.so
|
|---|
| 1765 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1766 | ;;
|
|---|
| 1767 |
|
|---|
| 1768 | sco3.2v5*)
|
|---|
| 1769 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1770 | ;;
|
|---|
| 1771 |
|
|---|
| 1772 | solaris*)
|
|---|
| 1773 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1774 | lt_cv_file_magic_test_file=/lib/libc.so
|
|---|
| 1775 | ;;
|
|---|
| 1776 |
|
|---|
| 1777 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
|---|
| 1778 | case "$host_vendor" in
|
|---|
| 1779 | ncr)
|
|---|
| 1780 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1781 | ;;
|
|---|
| 1782 | motorola)
|
|---|
| 1783 | 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]'
|
|---|
| 1784 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
|---|
| 1785 | ;;
|
|---|
| 1786 | esac
|
|---|
| 1787 | ;;
|
|---|
| 1788 | esac
|
|---|
| 1789 |
|
|---|
| 1790 | fi
|
|---|
| 1791 |
|
|---|
| 1792 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
|
|---|
| 1793 | file_magic_cmd=$lt_cv_file_magic_cmd
|
|---|
| 1794 | deplibs_check_method=$lt_cv_deplibs_check_method
|
|---|
| 1795 |
|
|---|
| 1796 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6
|
|---|
| 1797 | echo "configure:1798: checking for object suffix" >&5
|
|---|
| 1798 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
|
|---|
| 1799 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1800 | else
|
|---|
| 1801 | rm -f conftest*
|
|---|
| 1802 | echo 'int i = 1;' > conftest.$ac_ext
|
|---|
| 1803 | if { (eval echo configure:1804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 1804 | for ac_file in conftest.*; do
|
|---|
| 1805 | case $ac_file in
|
|---|
| 1806 | *.c) ;;
|
|---|
| 1807 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
|
|---|
| 1808 | esac
|
|---|
| 1809 | done
|
|---|
| 1810 | else
|
|---|
| 1811 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
|
|---|
| 1812 | fi
|
|---|
| 1813 | rm -f conftest*
|
|---|
| 1814 | fi
|
|---|
| 1815 |
|
|---|
| 1816 | echo "$ac_t""$ac_cv_objext" 1>&6
|
|---|
| 1817 | OBJEXT=$ac_cv_objext
|
|---|
| 1818 | ac_objext=$ac_cv_objext
|
|---|
| 1819 |
|
|---|
| 1820 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
|
|---|
| 1821 |
|
|---|
| 1822 | # Only perform the check for file, if the check method requires it
|
|---|
| 1823 | case "$deplibs_check_method" in
|
|---|
| 1824 | file_magic*)
|
|---|
| 1825 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
|---|
| 1826 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
|
|---|
| 1827 | echo "configure:1828: checking for ${ac_tool_prefix}file" >&5
|
|---|
| 1828 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
|---|
| 1829 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1830 | else
|
|---|
| 1831 | case "$MAGIC_CMD" in
|
|---|
| 1832 | /*)
|
|---|
| 1833 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
|---|
| 1834 | ;;
|
|---|
| 1835 | ?:/*)
|
|---|
| 1836 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
|---|
| 1837 | ;;
|
|---|
| 1838 | *)
|
|---|
| 1839 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
|---|
| 1840 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 1841 | ac_dummy="/usr/bin:$PATH"
|
|---|
| 1842 | for ac_dir in $ac_dummy; do
|
|---|
| 1843 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1844 | if test -f $ac_dir/${ac_tool_prefix}file; then
|
|---|
| 1845 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
|
|---|
| 1846 | if test -n "$file_magic_test_file"; then
|
|---|
| 1847 | case "$deplibs_check_method" in
|
|---|
| 1848 | "file_magic "*)
|
|---|
| 1849 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
|---|
| 1850 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1851 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
|---|
| 1852 | egrep "$file_magic_regex" > /dev/null; then
|
|---|
| 1853 | :
|
|---|
| 1854 | else
|
|---|
| 1855 | cat <<EOF 1>&2
|
|---|
| 1856 |
|
|---|
| 1857 | *** Warning: the command libtool uses to detect shared libraries,
|
|---|
| 1858 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
|---|
| 1859 | *** The result is that libtool may fail to recognize shared libraries
|
|---|
| 1860 | *** as such. This will affect the creation of libtool libraries that
|
|---|
| 1861 | *** depend on shared libraries, but programs linked with such libtool
|
|---|
| 1862 | *** libraries will work regardless of this problem. Nevertheless, you
|
|---|
| 1863 | *** may want to report the problem to your system manager and/or to
|
|---|
| 1864 | *** bug-libtool@gnu.org
|
|---|
| 1865 |
|
|---|
| 1866 | EOF
|
|---|
| 1867 | fi ;;
|
|---|
| 1868 | esac
|
|---|
| 1869 | fi
|
|---|
| 1870 | break
|
|---|
| 1871 | fi
|
|---|
| 1872 | done
|
|---|
| 1873 | IFS="$ac_save_ifs"
|
|---|
| 1874 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
|---|
| 1875 | ;;
|
|---|
| 1876 | esac
|
|---|
| 1877 | fi
|
|---|
| 1878 |
|
|---|
| 1879 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1880 | if test -n "$MAGIC_CMD"; then
|
|---|
| 1881 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
|---|
| 1882 | else
|
|---|
| 1883 | echo "$ac_t""no" 1>&6
|
|---|
| 1884 | fi
|
|---|
| 1885 |
|
|---|
| 1886 | if test -z "$lt_cv_path_MAGIC_CMD"; then
|
|---|
| 1887 | if test -n "$ac_tool_prefix"; then
|
|---|
| 1888 | echo $ac_n "checking for file""... $ac_c" 1>&6
|
|---|
| 1889 | echo "configure:1890: checking for file" >&5
|
|---|
| 1890 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
|---|
| 1891 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1892 | else
|
|---|
| 1893 | case "$MAGIC_CMD" in
|
|---|
| 1894 | /*)
|
|---|
| 1895 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
|---|
| 1896 | ;;
|
|---|
| 1897 | ?:/*)
|
|---|
| 1898 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
|---|
| 1899 | ;;
|
|---|
| 1900 | *)
|
|---|
| 1901 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
|---|
| 1902 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 1903 | ac_dummy="/usr/bin:$PATH"
|
|---|
| 1904 | for ac_dir in $ac_dummy; do
|
|---|
| 1905 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1906 | if test -f $ac_dir/file; then
|
|---|
| 1907 | lt_cv_path_MAGIC_CMD="$ac_dir/file"
|
|---|
| 1908 | if test -n "$file_magic_test_file"; then
|
|---|
| 1909 | case "$deplibs_check_method" in
|
|---|
| 1910 | "file_magic "*)
|
|---|
| 1911 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
|---|
| 1912 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1913 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
|---|
| 1914 | egrep "$file_magic_regex" > /dev/null; then
|
|---|
| 1915 | :
|
|---|
| 1916 | else
|
|---|
| 1917 | cat <<EOF 1>&2
|
|---|
| 1918 |
|
|---|
| 1919 | *** Warning: the command libtool uses to detect shared libraries,
|
|---|
| 1920 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
|---|
| 1921 | *** The result is that libtool may fail to recognize shared libraries
|
|---|
| 1922 | *** as such. This will affect the creation of libtool libraries that
|
|---|
| 1923 | *** depend on shared libraries, but programs linked with such libtool
|
|---|
| 1924 | *** libraries will work regardless of this problem. Nevertheless, you
|
|---|
| 1925 | *** may want to report the problem to your system manager and/or to
|
|---|
| 1926 | *** bug-libtool@gnu.org
|
|---|
| 1927 |
|
|---|
| 1928 | EOF
|
|---|
| 1929 | fi ;;
|
|---|
| 1930 | esac
|
|---|
| 1931 | fi
|
|---|
| 1932 | break
|
|---|
| 1933 | fi
|
|---|
| 1934 | done
|
|---|
| 1935 | IFS="$ac_save_ifs"
|
|---|
| 1936 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
|---|
| 1937 | ;;
|
|---|
| 1938 | esac
|
|---|
| 1939 | fi
|
|---|
| 1940 |
|
|---|
| 1941 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1942 | if test -n "$MAGIC_CMD"; then
|
|---|
| 1943 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
|---|
| 1944 | else
|
|---|
| 1945 | echo "$ac_t""no" 1>&6
|
|---|
| 1946 | fi
|
|---|
| 1947 |
|
|---|
| 1948 | else
|
|---|
| 1949 | MAGIC_CMD=:
|
|---|
| 1950 | fi
|
|---|
| 1951 | fi
|
|---|
| 1952 |
|
|---|
| 1953 | fi
|
|---|
| 1954 | ;;
|
|---|
| 1955 | esac
|
|---|
| 1956 |
|
|---|
| 1957 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
|---|
| 1958 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
|---|
| 1959 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1960 | echo "configure:1961: checking for $ac_word" >&5
|
|---|
| 1961 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 1962 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1963 | else
|
|---|
| 1964 | if test -n "$RANLIB"; then
|
|---|
| 1965 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 1966 | else
|
|---|
| 1967 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1968 | ac_dummy="$PATH"
|
|---|
| 1969 | for ac_dir in $ac_dummy; do
|
|---|
| 1970 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1971 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1972 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1973 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
|---|
| 1974 | break
|
|---|
| 1975 | fi
|
|---|
| 1976 | done
|
|---|
| 1977 | IFS="$ac_save_ifs"
|
|---|
| 1978 | fi
|
|---|
| 1979 | fi
|
|---|
| 1980 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 1981 | if test -n "$RANLIB"; then
|
|---|
| 1982 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 1983 | else
|
|---|
| 1984 | echo "$ac_t""no" 1>&6
|
|---|
| 1985 | fi
|
|---|
| 1986 |
|
|---|
| 1987 |
|
|---|
| 1988 | if test -z "$ac_cv_prog_RANLIB"; then
|
|---|
| 1989 | if test -n "$ac_tool_prefix"; then
|
|---|
| 1990 | # Extract the first word of "ranlib", so it can be a program name with args.
|
|---|
| 1991 | set dummy ranlib; ac_word=$2
|
|---|
| 1992 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1993 | echo "configure:1994: checking for $ac_word" >&5
|
|---|
| 1994 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 1995 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1996 | else
|
|---|
| 1997 | if test -n "$RANLIB"; then
|
|---|
| 1998 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 1999 | else
|
|---|
| 2000 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2001 | ac_dummy="$PATH"
|
|---|
| 2002 | for ac_dir in $ac_dummy; do
|
|---|
| 2003 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2004 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2005 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2006 | ac_cv_prog_RANLIB="ranlib"
|
|---|
| 2007 | break
|
|---|
| 2008 | fi
|
|---|
| 2009 | done
|
|---|
| 2010 | IFS="$ac_save_ifs"
|
|---|
| 2011 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|---|
| 2012 | fi
|
|---|
| 2013 | fi
|
|---|
| 2014 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 2015 | if test -n "$RANLIB"; then
|
|---|
| 2016 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 2017 | else
|
|---|
| 2018 | echo "$ac_t""no" 1>&6
|
|---|
| 2019 | fi
|
|---|
| 2020 |
|
|---|
| 2021 | else
|
|---|
| 2022 | RANLIB=":"
|
|---|
| 2023 | fi
|
|---|
| 2024 | fi
|
|---|
| 2025 |
|
|---|
| 2026 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
|---|
| 2027 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
|---|
| 2028 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2029 | echo "configure:2030: checking for $ac_word" >&5
|
|---|
| 2030 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
|---|
| 2031 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2032 | else
|
|---|
| 2033 | if test -n "$STRIP"; then
|
|---|
| 2034 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
|---|
| 2035 | else
|
|---|
| 2036 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2037 | ac_dummy="$PATH"
|
|---|
| 2038 | for ac_dir in $ac_dummy; do
|
|---|
| 2039 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2040 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2041 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2042 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
|---|
| 2043 | break
|
|---|
| 2044 | fi
|
|---|
| 2045 | done
|
|---|
| 2046 | IFS="$ac_save_ifs"
|
|---|
| 2047 | fi
|
|---|
| 2048 | fi
|
|---|
| 2049 | STRIP="$ac_cv_prog_STRIP"
|
|---|
| 2050 | if test -n "$STRIP"; then
|
|---|
| 2051 | echo "$ac_t""$STRIP" 1>&6
|
|---|
| 2052 | else
|
|---|
| 2053 | echo "$ac_t""no" 1>&6
|
|---|
| 2054 | fi
|
|---|
| 2055 |
|
|---|
| 2056 |
|
|---|
| 2057 | if test -z "$ac_cv_prog_STRIP"; then
|
|---|
| 2058 | if test -n "$ac_tool_prefix"; then
|
|---|
| 2059 | # Extract the first word of "strip", so it can be a program name with args.
|
|---|
| 2060 | set dummy strip; ac_word=$2
|
|---|
| 2061 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2062 | echo "configure:2063: checking for $ac_word" >&5
|
|---|
| 2063 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
|---|
| 2064 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2065 | else
|
|---|
| 2066 | if test -n "$STRIP"; then
|
|---|
| 2067 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
|---|
| 2068 | else
|
|---|
| 2069 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2070 | ac_dummy="$PATH"
|
|---|
| 2071 | for ac_dir in $ac_dummy; do
|
|---|
| 2072 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2073 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2074 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2075 | ac_cv_prog_STRIP="strip"
|
|---|
| 2076 | break
|
|---|
| 2077 | fi
|
|---|
| 2078 | done
|
|---|
| 2079 | IFS="$ac_save_ifs"
|
|---|
| 2080 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
|
|---|
| 2081 | fi
|
|---|
| 2082 | fi
|
|---|
| 2083 | STRIP="$ac_cv_prog_STRIP"
|
|---|
| 2084 | if test -n "$STRIP"; then
|
|---|
| 2085 | echo "$ac_t""$STRIP" 1>&6
|
|---|
| 2086 | else
|
|---|
| 2087 | echo "$ac_t""no" 1>&6
|
|---|
| 2088 | fi
|
|---|
| 2089 |
|
|---|
| 2090 | else
|
|---|
| 2091 | STRIP=":"
|
|---|
| 2092 | fi
|
|---|
| 2093 | fi
|
|---|
| 2094 |
|
|---|
| 2095 |
|
|---|
| 2096 | # Check for any special flags to pass to ltconfig.
|
|---|
| 2097 | libtool_flags="--cache-file=$cache_file"
|
|---|
| 2098 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
|
|---|
| 2099 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
|
|---|
| 2100 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
|
|---|
| 2101 | test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
|
|---|
| 2102 | test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
|
|---|
| 2103 |
|
|---|
| 2104 |
|
|---|
| 2105 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
|
|---|
| 2106 | if test "${enable_libtool_lock+set}" = set; then
|
|---|
| 2107 | enableval="$enable_libtool_lock"
|
|---|
| 2108 | :
|
|---|
| 2109 | fi
|
|---|
| 2110 |
|
|---|
| 2111 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
|
|---|
| 2112 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
|
|---|
| 2113 |
|
|---|
| 2114 | # Check whether --with-pic or --without-pic was given.
|
|---|
| 2115 | if test "${with_pic+set}" = set; then
|
|---|
| 2116 | withval="$with_pic"
|
|---|
| 2117 | pic_mode="$withval"
|
|---|
| 2118 | else
|
|---|
| 2119 | pic_mode=default
|
|---|
| 2120 | fi
|
|---|
| 2121 |
|
|---|
| 2122 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
|
|---|
| 2123 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
|
|---|
| 2124 |
|
|---|
| 2125 | # Some flags need to be propagated to the compiler or linker for good
|
|---|
| 2126 | # libtool support.
|
|---|
| 2127 | case "$host" in
|
|---|
| 2128 | *-*-irix6*)
|
|---|
| 2129 | # Find out which ABI we are using.
|
|---|
| 2130 | echo '#line 2131 "configure"' > conftest.$ac_ext
|
|---|
| 2131 | if { (eval echo configure:2132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 2132 | case "`/usr/bin/file conftest.o`" in
|
|---|
| 2133 | *32-bit*)
|
|---|
| 2134 | LD="${LD-ld} -32"
|
|---|
| 2135 | ;;
|
|---|
| 2136 | *N32*)
|
|---|
| 2137 | LD="${LD-ld} -n32"
|
|---|
| 2138 | ;;
|
|---|
| 2139 | *64-bit*)
|
|---|
| 2140 | LD="${LD-ld} -64"
|
|---|
| 2141 | ;;
|
|---|
| 2142 | esac
|
|---|
| 2143 | fi
|
|---|
| 2144 | rm -rf conftest*
|
|---|
| 2145 | ;;
|
|---|
| 2146 |
|
|---|
| 2147 | *-*-sco3.2v5*)
|
|---|
| 2148 | # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
|---|
| 2149 | SAVE_CFLAGS="$CFLAGS"
|
|---|
| 2150 | CFLAGS="$CFLAGS -belf"
|
|---|
| 2151 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
|
|---|
| 2152 | echo "configure:2153: checking whether the C compiler needs -belf" >&5
|
|---|
| 2153 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
|
|---|
| 2154 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2155 | else
|
|---|
| 2156 |
|
|---|
| 2157 | ac_ext=c
|
|---|
| 2158 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2159 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2160 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2161 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2162 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2163 |
|
|---|
| 2164 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2165 | #line 2166 "configure"
|
|---|
| 2166 | #include "confdefs.h"
|
|---|
| 2167 |
|
|---|
| 2168 | int main() {
|
|---|
| 2169 |
|
|---|
| 2170 | ; return 0; }
|
|---|
| 2171 | EOF
|
|---|
| 2172 | if { (eval echo configure:2173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 2173 | rm -rf conftest*
|
|---|
| 2174 | lt_cv_cc_needs_belf=yes
|
|---|
| 2175 | else
|
|---|
| 2176 | echo "configure: failed program was:" >&5
|
|---|
| 2177 | cat conftest.$ac_ext >&5
|
|---|
| 2178 | rm -rf conftest*
|
|---|
| 2179 | lt_cv_cc_needs_belf=no
|
|---|
| 2180 | fi
|
|---|
| 2181 | rm -f conftest*
|
|---|
| 2182 | ac_ext=c
|
|---|
| 2183 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2184 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2185 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2186 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2187 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2188 |
|
|---|
| 2189 | fi
|
|---|
| 2190 |
|
|---|
| 2191 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
|
|---|
| 2192 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
|---|
| 2193 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
|---|
| 2194 | CFLAGS="$SAVE_CFLAGS"
|
|---|
| 2195 | fi
|
|---|
| 2196 | ;;
|
|---|
| 2197 |
|
|---|
| 2198 |
|
|---|
| 2199 | esac
|
|---|
| 2200 |
|
|---|
| 2201 |
|
|---|
| 2202 | # Save cache, so that ltconfig can load it
|
|---|
| 2203 | cat > confcache <<\EOF
|
|---|
| 2204 | # This file is a shell script that caches the results of configure
|
|---|
| 2205 | # tests run on this system so they can be shared between configure
|
|---|
| 2206 | # scripts and configure runs. It is not useful on other systems.
|
|---|
| 2207 | # If it contains results you don't want to keep, you may remove or edit it.
|
|---|
| 2208 | #
|
|---|
| 2209 | # By default, configure uses ./config.cache as the cache file,
|
|---|
| 2210 | # creating it if it does not exist already. You can give configure
|
|---|
| 2211 | # the --cache-file=FILE option to use a different cache file; that is
|
|---|
| 2212 | # what configure does when it calls configure scripts in
|
|---|
| 2213 | # subdirectories, so they share the cache.
|
|---|
| 2214 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
|---|
| 2215 | # config.status only pays attention to the cache file if you give it the
|
|---|
| 2216 | # --recheck option to rerun configure.
|
|---|
| 2217 | #
|
|---|
| 2218 | EOF
|
|---|
| 2219 | # The following way of writing the cache mishandles newlines in values,
|
|---|
| 2220 | # but we know of no workaround that is simple, portable, and efficient.
|
|---|
| 2221 | # So, don't put newlines in cache variables' values.
|
|---|
| 2222 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
|---|
| 2223 | # and sets the high bit in the cache file unless we assign to the vars.
|
|---|
| 2224 | (set) 2>&1 |
|
|---|
| 2225 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
|---|
| 2226 | *ac_space=\ *)
|
|---|
| 2227 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
|---|
| 2228 | # turns \\\\ into \\, and sed turns \\ into \).
|
|---|
| 2229 | sed -n \
|
|---|
| 2230 | -e "s/'/'\\\\''/g" \
|
|---|
| 2231 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
|---|
| 2232 | ;;
|
|---|
| 2233 | *)
|
|---|
| 2234 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
|---|
| 2235 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
|---|
| 2236 | ;;
|
|---|
| 2237 | esac >> confcache
|
|---|
| 2238 | if cmp -s $cache_file confcache; then
|
|---|
| 2239 | :
|
|---|
| 2240 | else
|
|---|
| 2241 | if test -w $cache_file; then
|
|---|
| 2242 | echo "updating cache $cache_file"
|
|---|
| 2243 | cat confcache > $cache_file
|
|---|
| 2244 | else
|
|---|
| 2245 | echo "not updating unwritable cache $cache_file"
|
|---|
| 2246 | fi
|
|---|
| 2247 | fi
|
|---|
| 2248 | rm -f confcache
|
|---|
| 2249 |
|
|---|
| 2250 |
|
|---|
| 2251 | # Actually configure libtool. ac_aux_dir is where install-sh is found.
|
|---|
| 2252 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
|
|---|
| 2253 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
|
|---|
| 2254 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
|
|---|
| 2255 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
|
|---|
| 2256 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
|
|---|
| 2257 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
|
|---|
| 2258 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
|
|---|
| 2259 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
|
|---|
| 2260 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
|
|---|
| 2261 |
|
|---|
| 2262 | # Reload cache, that may have been modified by ltconfig
|
|---|
| 2263 | if test -r "$cache_file"; then
|
|---|
| 2264 | echo "loading cache $cache_file"
|
|---|
| 2265 | . $cache_file
|
|---|
| 2266 | else
|
|---|
| 2267 | echo "creating cache $cache_file"
|
|---|
| 2268 | > $cache_file
|
|---|
| 2269 | fi
|
|---|
| 2270 |
|
|---|
| 2271 |
|
|---|
| 2272 | # This can be used to rebuild libtool when needed
|
|---|
| 2273 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
|
|---|
| 2274 |
|
|---|
| 2275 | # Always use our own libtool.
|
|---|
| 2276 | LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
|---|
| 2277 |
|
|---|
| 2278 | # Redirect the config.log output again, so that the ltconfig log is not
|
|---|
| 2279 | # clobbered by the next message.
|
|---|
| 2280 | exec 5>>./config.log
|
|---|
| 2281 |
|
|---|
| 2282 |
|
|---|
| 2283 |
|
|---|
| 2284 |
|
|---|
| 2285 |
|
|---|
| 2286 |
|
|---|
| 2287 |
|
|---|
| 2288 |
|
|---|
| 2289 | # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
|
|---|
| 2290 | if test "${enable_64_bit_bfd+set}" = set; then
|
|---|
| 2291 | enableval="$enable_64_bit_bfd"
|
|---|
| 2292 | case "${enableval}" in
|
|---|
| 2293 | yes) want64=true ;;
|
|---|
| 2294 | no) want64=false ;;
|
|---|
| 2295 | *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
|
|---|
| 2296 | esac
|
|---|
| 2297 | else
|
|---|
| 2298 | want64=false
|
|---|
| 2299 | fi
|
|---|
| 2300 | # Check whether --enable-targets or --disable-targets was given.
|
|---|
| 2301 | if test "${enable_targets+set}" = set; then
|
|---|
| 2302 | enableval="$enable_targets"
|
|---|
| 2303 | case "${enableval}" in
|
|---|
| 2304 | yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
|
|---|
| 2305 | ;;
|
|---|
| 2306 | no) enable_targets= ;;
|
|---|
| 2307 | *) enable_targets=$enableval ;;
|
|---|
| 2308 | esac
|
|---|
| 2309 | fi
|
|---|
| 2310 | # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
|
|---|
| 2311 | if test "${enable_commonbfdlib+set}" = set; then
|
|---|
| 2312 | enableval="$enable_commonbfdlib"
|
|---|
| 2313 | case "${enableval}" in
|
|---|
| 2314 | yes) commonbfdlib=true ;;
|
|---|
| 2315 | no) commonbfdlib=false ;;
|
|---|
| 2316 | *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
|
|---|
| 2317 | esac
|
|---|
| 2318 | fi
|
|---|
| 2319 | # Check whether --with-mmap or --without-mmap was given.
|
|---|
| 2320 | if test "${with_mmap+set}" = set; then
|
|---|
| 2321 | withval="$with_mmap"
|
|---|
| 2322 | case "${withval}" in
|
|---|
| 2323 | yes) want_mmap=true ;;
|
|---|
| 2324 | no) want_mmap=false ;;
|
|---|
| 2325 | *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
|
|---|
| 2326 | esac
|
|---|
| 2327 | else
|
|---|
| 2328 | want_mmap=false
|
|---|
| 2329 | fi
|
|---|
| 2330 |
|
|---|
| 2331 | build_warnings="-W -Wall"
|
|---|
| 2332 | # Check whether --enable-build-warnings or --disable-build-warnings was given.
|
|---|
| 2333 | if test "${enable_build_warnings+set}" = set; then
|
|---|
| 2334 | enableval="$enable_build_warnings"
|
|---|
| 2335 | case "${enableval}" in
|
|---|
| 2336 | yes) ;;
|
|---|
| 2337 | no) build_warnings="-w";;
|
|---|
| 2338 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
|---|
| 2339 | build_warnings="${build_warnings} ${t}";;
|
|---|
| 2340 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
|---|
| 2341 | build_warnings="${t} ${build_warnings}";;
|
|---|
| 2342 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
|
|---|
| 2343 | esac
|
|---|
| 2344 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
|
|---|
| 2345 | echo "Setting warning flags = $build_warnings" 6>&1
|
|---|
| 2346 | fi
|
|---|
| 2347 | fi
|
|---|
| 2348 | WARN_CFLAGS=""
|
|---|
| 2349 | if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
|
|---|
| 2350 | WARN_CFLAGS="${build_warnings}"
|
|---|
| 2351 | fi
|
|---|
| 2352 |
|
|---|
| 2353 |
|
|---|
| 2354 |
|
|---|
| 2355 |
|
|---|
| 2356 |
|
|---|
| 2357 |
|
|---|
| 2358 | if test -z "$target" ; then
|
|---|
| 2359 | { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
|
|---|
| 2360 | fi
|
|---|
| 2361 | if test "$program_transform_name" = s,x,x,; then
|
|---|
| 2362 | program_transform_name=
|
|---|
| 2363 | else
|
|---|
| 2364 | # Double any \ or $. echo might interpret backslashes.
|
|---|
| 2365 | cat <<\EOF_SED > conftestsed
|
|---|
| 2366 | s,\\,\\\\,g; s,\$,$$,g
|
|---|
| 2367 | EOF_SED
|
|---|
| 2368 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
|---|
| 2369 | rm -f conftestsed
|
|---|
| 2370 | fi
|
|---|
| 2371 | test "$program_prefix" != NONE &&
|
|---|
| 2372 | program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
|---|
| 2373 | # Use a double $ so make ignores it.
|
|---|
| 2374 | test "$program_suffix" != NONE &&
|
|---|
| 2375 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
|---|
| 2376 |
|
|---|
| 2377 | # sed with no file args requires a program.
|
|---|
| 2378 | test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
|---|
| 2379 |
|
|---|
| 2380 |
|
|---|
| 2381 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
|
|---|
| 2382 | echo "configure:2383: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
|---|
| 2383 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
|
|---|
| 2384 | if test "${enable_maintainer_mode+set}" = set; then
|
|---|
| 2385 | enableval="$enable_maintainer_mode"
|
|---|
| 2386 | USE_MAINTAINER_MODE=$enableval
|
|---|
| 2387 | else
|
|---|
| 2388 | USE_MAINTAINER_MODE=no
|
|---|
| 2389 | fi
|
|---|
| 2390 |
|
|---|
| 2391 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
|
|---|
| 2392 |
|
|---|
| 2393 |
|
|---|
| 2394 | if test $USE_MAINTAINER_MODE = yes; then
|
|---|
| 2395 | MAINTAINER_MODE_TRUE=
|
|---|
| 2396 | MAINTAINER_MODE_FALSE='#'
|
|---|
| 2397 | else
|
|---|
| 2398 | MAINTAINER_MODE_TRUE='#'
|
|---|
| 2399 | MAINTAINER_MODE_FALSE=
|
|---|
| 2400 | fi
|
|---|
| 2401 | MAINT=$MAINTAINER_MODE_TRUE
|
|---|
| 2402 |
|
|---|
| 2403 |
|
|---|
| 2404 |
|
|---|
| 2405 |
|
|---|
| 2406 |
|
|---|
| 2407 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
|---|
| 2408 | echo "configure:2409: checking for executable suffix" >&5
|
|---|
| 2409 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
|---|
| 2410 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2411 | else
|
|---|
| 2412 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
|---|
| 2413 | ac_cv_exeext=.exe
|
|---|
| 2414 | else
|
|---|
| 2415 | rm -f conftest*
|
|---|
| 2416 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
|---|
| 2417 | ac_cv_exeext=
|
|---|
| 2418 | if { (eval echo configure:2419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
|---|
| 2419 | for file in conftest.*; do
|
|---|
| 2420 | case $file in
|
|---|
| 2421 | *.c | *.o | *.obj) ;;
|
|---|
| 2422 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
|---|
| 2423 | esac
|
|---|
| 2424 | done
|
|---|
| 2425 | else
|
|---|
| 2426 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 2427 | fi
|
|---|
| 2428 | rm -f conftest*
|
|---|
| 2429 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
|---|
| 2430 | fi
|
|---|
| 2431 | fi
|
|---|
| 2432 |
|
|---|
| 2433 | EXEEXT=""
|
|---|
| 2434 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
|---|
| 2435 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
|---|
| 2436 | ac_exeext=$EXEEXT
|
|---|
| 2437 |
|
|---|
| 2438 |
|
|---|
| 2439 | host64=false
|
|---|
| 2440 | target64=false
|
|---|
| 2441 |
|
|---|
| 2442 | # host stuff:
|
|---|
| 2443 |
|
|---|
| 2444 | # Extract the first word of "gcc", so it can be a program name with args.
|
|---|
| 2445 | set dummy gcc; ac_word=$2
|
|---|
| 2446 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2447 | echo "configure:2448: checking for $ac_word" >&5
|
|---|
| 2448 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 2449 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2450 | else
|
|---|
| 2451 | if test -n "$CC"; then
|
|---|
| 2452 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 2453 | else
|
|---|
| 2454 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2455 | ac_dummy="$PATH"
|
|---|
| 2456 | for ac_dir in $ac_dummy; do
|
|---|
| 2457 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2458 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2459 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2460 | ac_cv_prog_CC="gcc"
|
|---|
| 2461 | break
|
|---|
| 2462 | fi
|
|---|
| 2463 | done
|
|---|
| 2464 | IFS="$ac_save_ifs"
|
|---|
| 2465 | fi
|
|---|
| 2466 | fi
|
|---|
| 2467 | CC="$ac_cv_prog_CC"
|
|---|
| 2468 | if test -n "$CC"; then
|
|---|
| 2469 | echo "$ac_t""$CC" 1>&6
|
|---|
| 2470 | else
|
|---|
| 2471 | echo "$ac_t""no" 1>&6
|
|---|
| 2472 | fi
|
|---|
| 2473 |
|
|---|
| 2474 | if test -z "$CC"; then
|
|---|
| 2475 | # Extract the first word of "cc", so it can be a program name with args.
|
|---|
| 2476 | set dummy cc; ac_word=$2
|
|---|
| 2477 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2478 | echo "configure:2479: checking for $ac_word" >&5
|
|---|
| 2479 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 2480 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2481 | else
|
|---|
| 2482 | if test -n "$CC"; then
|
|---|
| 2483 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 2484 | else
|
|---|
| 2485 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2486 | ac_prog_rejected=no
|
|---|
| 2487 | ac_dummy="$PATH"
|
|---|
| 2488 | for ac_dir in $ac_dummy; do
|
|---|
| 2489 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2490 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2491 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2492 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
|
|---|
| 2493 | "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
|
|---|
| 2494 | ac_prog_rejected=yes
|
|---|
| 2495 | continue
|
|---|
| 2496 | fi
|
|---|
| 2497 | ac_cv_prog_CC="cc"
|
|---|
| 2498 | break
|
|---|
| 2499 | fi
|
|---|
| 2500 | done
|
|---|
| 2501 | IFS="$ac_save_ifs"
|
|---|
| 2502 | if test $ac_prog_rejected = yes; then
|
|---|
| 2503 | # We found a bogon in the path, so make sure we never use it.
|
|---|
| 2504 | set dummy $ac_cv_prog_CC
|
|---|
| 2505 | shift
|
|---|
| 2506 | if test $# -gt 0; then
|
|---|
| 2507 | # We chose a different compiler from the bogus one.
|
|---|
| 2508 | # However, it has the same basename, so the bogon will be chosen
|
|---|
| 2509 | # first if we set CC to just the basename; use the full file name.
|
|---|
| 2510 | shift
|
|---|
| 2511 | set dummy "$ac_dir/$ac_word" "$@"
|
|---|
| 2512 | shift
|
|---|
| 2513 | ac_cv_prog_CC="$@"
|
|---|
| 2514 | fi
|
|---|
| 2515 | fi
|
|---|
| 2516 | fi
|
|---|
| 2517 | fi
|
|---|
| 2518 | CC="$ac_cv_prog_CC"
|
|---|
| 2519 | if test -n "$CC"; then
|
|---|
| 2520 | echo "$ac_t""$CC" 1>&6
|
|---|
| 2521 | else
|
|---|
| 2522 | echo "$ac_t""no" 1>&6
|
|---|
| 2523 | fi
|
|---|
| 2524 |
|
|---|
| 2525 | if test -z "$CC"; then
|
|---|
| 2526 | case "`uname -s`" in
|
|---|
| 2527 | *win32* | *WIN32*)
|
|---|
| 2528 | # Extract the first word of "cl", so it can be a program name with args.
|
|---|
| 2529 | set dummy cl; ac_word=$2
|
|---|
| 2530 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2531 | echo "configure:2532: checking for $ac_word" >&5
|
|---|
| 2532 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 2533 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2534 | else
|
|---|
| 2535 | if test -n "$CC"; then
|
|---|
| 2536 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 2537 | else
|
|---|
| 2538 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2539 | ac_dummy="$PATH"
|
|---|
| 2540 | for ac_dir in $ac_dummy; do
|
|---|
| 2541 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2542 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2543 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2544 | ac_cv_prog_CC="cl"
|
|---|
| 2545 | break
|
|---|
| 2546 | fi
|
|---|
| 2547 | done
|
|---|
| 2548 | IFS="$ac_save_ifs"
|
|---|
| 2549 | fi
|
|---|
| 2550 | fi
|
|---|
| 2551 | CC="$ac_cv_prog_CC"
|
|---|
| 2552 | if test -n "$CC"; then
|
|---|
| 2553 | echo "$ac_t""$CC" 1>&6
|
|---|
| 2554 | else
|
|---|
| 2555 | echo "$ac_t""no" 1>&6
|
|---|
| 2556 | fi
|
|---|
| 2557 | ;;
|
|---|
| 2558 | esac
|
|---|
| 2559 | fi
|
|---|
| 2560 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|---|
| 2561 | fi
|
|---|
| 2562 |
|
|---|
| 2563 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|---|
| 2564 | echo "configure:2565: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
|---|
| 2565 |
|
|---|
| 2566 | ac_ext=c
|
|---|
| 2567 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2568 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2569 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2570 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2571 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2572 |
|
|---|
| 2573 | cat > conftest.$ac_ext << EOF
|
|---|
| 2574 |
|
|---|
| 2575 | #line 2576 "configure"
|
|---|
| 2576 | #include "confdefs.h"
|
|---|
| 2577 |
|
|---|
| 2578 | main(){return(0);}
|
|---|
| 2579 | EOF
|
|---|
| 2580 | if { (eval echo configure:2581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 2581 | ac_cv_prog_cc_works=yes
|
|---|
| 2582 | # If we can't run a trivial program, we are probably using a cross compiler.
|
|---|
| 2583 | if (./conftest; exit) 2>/dev/null; then
|
|---|
| 2584 | ac_cv_prog_cc_cross=no
|
|---|
| 2585 | else
|
|---|
| 2586 | ac_cv_prog_cc_cross=yes
|
|---|
| 2587 | fi
|
|---|
| 2588 | else
|
|---|
| 2589 | echo "configure: failed program was:" >&5
|
|---|
| 2590 | cat conftest.$ac_ext >&5
|
|---|
| 2591 | ac_cv_prog_cc_works=no
|
|---|
| 2592 | fi
|
|---|
| 2593 | rm -fr conftest*
|
|---|
| 2594 | ac_ext=c
|
|---|
| 2595 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2596 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2597 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2598 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2599 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2600 |
|
|---|
| 2601 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|---|
| 2602 | if test $ac_cv_prog_cc_works = no; then
|
|---|
| 2603 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 2604 | fi
|
|---|
| 2605 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|---|
| 2606 | echo "configure:2607: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|---|
| 2607 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|---|
| 2608 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2609 |
|
|---|
| 2610 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
|---|
| 2611 | echo "configure:2612: checking whether we are using GNU C" >&5
|
|---|
| 2612 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
|---|
| 2613 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2614 | else
|
|---|
| 2615 | cat > conftest.c <<EOF
|
|---|
| 2616 | #ifdef __GNUC__
|
|---|
| 2617 | yes;
|
|---|
| 2618 | #endif
|
|---|
| 2619 | EOF
|
|---|
| 2620 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|---|
| 2621 | ac_cv_prog_gcc=yes
|
|---|
| 2622 | else
|
|---|
| 2623 | ac_cv_prog_gcc=no
|
|---|
| 2624 | fi
|
|---|
| 2625 | fi
|
|---|
| 2626 |
|
|---|
| 2627 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|---|
| 2628 |
|
|---|
| 2629 | if test $ac_cv_prog_gcc = yes; then
|
|---|
| 2630 | GCC=yes
|
|---|
| 2631 | else
|
|---|
| 2632 | GCC=
|
|---|
| 2633 | fi
|
|---|
| 2634 |
|
|---|
| 2635 | ac_test_CFLAGS="${CFLAGS+set}"
|
|---|
| 2636 | ac_save_CFLAGS="$CFLAGS"
|
|---|
| 2637 | CFLAGS=
|
|---|
| 2638 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|---|
| 2639 | echo "configure:2640: checking whether ${CC-cc} accepts -g" >&5
|
|---|
| 2640 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
|---|
| 2641 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2642 | else
|
|---|
| 2643 | echo 'void f(){}' > conftest.c
|
|---|
| 2644 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|---|
| 2645 | ac_cv_prog_cc_g=yes
|
|---|
| 2646 | else
|
|---|
| 2647 | ac_cv_prog_cc_g=no
|
|---|
| 2648 | fi
|
|---|
| 2649 | rm -f conftest*
|
|---|
| 2650 |
|
|---|
| 2651 | fi
|
|---|
| 2652 |
|
|---|
| 2653 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|---|
| 2654 | if test "$ac_test_CFLAGS" = set; then
|
|---|
| 2655 | CFLAGS="$ac_save_CFLAGS"
|
|---|
| 2656 | elif test $ac_cv_prog_cc_g = yes; then
|
|---|
| 2657 | if test "$GCC" = yes; then
|
|---|
| 2658 | CFLAGS="-g -O2"
|
|---|
| 2659 | else
|
|---|
| 2660 | CFLAGS="-g"
|
|---|
| 2661 | fi
|
|---|
| 2662 | else
|
|---|
| 2663 | if test "$GCC" = yes; then
|
|---|
| 2664 | CFLAGS="-O2"
|
|---|
| 2665 | else
|
|---|
| 2666 | CFLAGS=
|
|---|
| 2667 | fi
|
|---|
| 2668 | fi
|
|---|
| 2669 |
|
|---|
| 2670 |
|
|---|
| 2671 | ALL_LINGUAS=
|
|---|
| 2672 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
|---|
| 2673 | echo "configure:2674: checking how to run the C preprocessor" >&5
|
|---|
| 2674 | # On Suns, sometimes $CPP names a directory.
|
|---|
| 2675 | if test -n "$CPP" && test -d "$CPP"; then
|
|---|
| 2676 | CPP=
|
|---|
| 2677 | fi
|
|---|
| 2678 | if test -z "$CPP"; then
|
|---|
| 2679 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
|---|
| 2680 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2681 | else
|
|---|
| 2682 | # This must be in double quotes, not single quotes, because CPP may get
|
|---|
| 2683 | # substituted into the Makefile and "${CC-cc}" will confuse make.
|
|---|
| 2684 | CPP="${CC-cc} -E"
|
|---|
| 2685 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
|---|
| 2686 | # not just through cpp.
|
|---|
| 2687 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2688 | #include <sys/types.h>
|
|---|
| 2689 | #line 2690 "configure"
|
|---|
| 2690 | #include "confdefs.h"
|
|---|
| 2691 | #include <assert.h>
|
|---|
| 2692 | Syntax Error
|
|---|
| 2693 | EOF
|
|---|
| 2694 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 2695 | { (eval echo configure:2696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 2696 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 2697 | if test -z "$ac_err"; then
|
|---|
| 2698 | :
|
|---|
| 2699 | else
|
|---|
| 2700 | echo "$ac_err" >&5
|
|---|
| 2701 | echo "configure: failed program was:" >&5
|
|---|
| 2702 | cat conftest.$ac_ext >&5
|
|---|
| 2703 | rm -rf conftest*
|
|---|
| 2704 | CPP="${CC-cc} -E -traditional-cpp"
|
|---|
| 2705 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2706 | #include <sys/types.h>
|
|---|
| 2707 | #line 2708 "configure"
|
|---|
| 2708 | #include "confdefs.h"
|
|---|
| 2709 | #include <assert.h>
|
|---|
| 2710 | Syntax Error
|
|---|
| 2711 | EOF
|
|---|
| 2712 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 2713 | { (eval echo configure:2714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 2714 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 2715 | if test -z "$ac_err"; then
|
|---|
| 2716 | :
|
|---|
| 2717 | else
|
|---|
| 2718 | echo "$ac_err" >&5
|
|---|
| 2719 | echo "configure: failed program was:" >&5
|
|---|
| 2720 | cat conftest.$ac_ext >&5
|
|---|
| 2721 | rm -rf conftest*
|
|---|
| 2722 | CPP="${CC-cc} -nologo -E"
|
|---|
| 2723 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2724 | #include <sys/types.h>
|
|---|
| 2725 | #line 2726 "configure"
|
|---|
| 2726 | #include "confdefs.h"
|
|---|
| 2727 | #include <assert.h>
|
|---|
| 2728 | Syntax Error
|
|---|
| 2729 | EOF
|
|---|
| 2730 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 2731 | { (eval echo configure:2732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 2732 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 2733 | if test -z "$ac_err"; then
|
|---|
| 2734 | :
|
|---|
| 2735 | else
|
|---|
| 2736 | echo "$ac_err" >&5
|
|---|
| 2737 | echo "configure: failed program was:" >&5
|
|---|
| 2738 | cat conftest.$ac_ext >&5
|
|---|
| 2739 | rm -rf conftest*
|
|---|
| 2740 | CPP=/lib/cpp
|
|---|
| 2741 | fi
|
|---|
| 2742 | rm -f conftest*
|
|---|
| 2743 | fi
|
|---|
| 2744 | rm -f conftest*
|
|---|
| 2745 | fi
|
|---|
| 2746 | rm -f conftest*
|
|---|
| 2747 | ac_cv_prog_CPP="$CPP"
|
|---|
| 2748 | fi
|
|---|
| 2749 | CPP="$ac_cv_prog_CPP"
|
|---|
| 2750 | else
|
|---|
| 2751 | ac_cv_prog_CPP="$CPP"
|
|---|
| 2752 | fi
|
|---|
| 2753 | echo "$ac_t""$CPP" 1>&6
|
|---|
| 2754 |
|
|---|
| 2755 | # Extract the first word of "ranlib", so it can be a program name with args.
|
|---|
| 2756 | set dummy ranlib; ac_word=$2
|
|---|
| 2757 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2758 | echo "configure:2759: checking for $ac_word" >&5
|
|---|
| 2759 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 2760 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2761 | else
|
|---|
| 2762 | if test -n "$RANLIB"; then
|
|---|
| 2763 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 2764 | else
|
|---|
| 2765 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2766 | ac_dummy="$PATH"
|
|---|
| 2767 | for ac_dir in $ac_dummy; do
|
|---|
| 2768 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2769 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2770 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2771 | ac_cv_prog_RANLIB="ranlib"
|
|---|
| 2772 | break
|
|---|
| 2773 | fi
|
|---|
| 2774 | done
|
|---|
| 2775 | IFS="$ac_save_ifs"
|
|---|
| 2776 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|---|
| 2777 | fi
|
|---|
| 2778 | fi
|
|---|
| 2779 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 2780 | if test -n "$RANLIB"; then
|
|---|
| 2781 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 2782 | else
|
|---|
| 2783 | echo "$ac_t""no" 1>&6
|
|---|
| 2784 | fi
|
|---|
| 2785 |
|
|---|
| 2786 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
|---|
| 2787 | echo "configure:2788: checking for ANSI C header files" >&5
|
|---|
| 2788 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
|---|
| 2789 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2790 | else
|
|---|
| 2791 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2792 | #include <sys/types.h>
|
|---|
| 2793 | #line 2794 "configure"
|
|---|
| 2794 | #include "confdefs.h"
|
|---|
| 2795 | #include <stdlib.h>
|
|---|
| 2796 | #include <stdarg.h>
|
|---|
| 2797 | #include <string.h>
|
|---|
| 2798 | #include <float.h>
|
|---|
| 2799 | EOF
|
|---|
| 2800 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 2801 | { (eval echo configure:2802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 2802 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 2803 | if test -z "$ac_err"; then
|
|---|
| 2804 | rm -rf conftest*
|
|---|
| 2805 | ac_cv_header_stdc=yes
|
|---|
| 2806 | else
|
|---|
| 2807 | echo "$ac_err" >&5
|
|---|
| 2808 | echo "configure: failed program was:" >&5
|
|---|
| 2809 | cat conftest.$ac_ext >&5
|
|---|
| 2810 | rm -rf conftest*
|
|---|
| 2811 | ac_cv_header_stdc=no
|
|---|
| 2812 | fi
|
|---|
| 2813 | rm -f conftest*
|
|---|
| 2814 |
|
|---|
| 2815 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 2816 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|---|
| 2817 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2818 | #line 2819 "configure"
|
|---|
| 2819 | #include "confdefs.h"
|
|---|
| 2820 | #include <string.h>
|
|---|
| 2821 | EOF
|
|---|
| 2822 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 2823 | egrep "memchr" >/dev/null 2>&1; then
|
|---|
| 2824 | :
|
|---|
| 2825 | else
|
|---|
| 2826 | rm -rf conftest*
|
|---|
| 2827 | ac_cv_header_stdc=no
|
|---|
| 2828 | fi
|
|---|
| 2829 | rm -f conftest*
|
|---|
| 2830 |
|
|---|
| 2831 | fi
|
|---|
| 2832 |
|
|---|
| 2833 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 2834 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|---|
| 2835 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2836 | #line 2837 "configure"
|
|---|
| 2837 | #include "confdefs.h"
|
|---|
| 2838 | #include <stdlib.h>
|
|---|
| 2839 | EOF
|
|---|
| 2840 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 2841 | egrep "free" >/dev/null 2>&1; then
|
|---|
| 2842 | :
|
|---|
| 2843 | else
|
|---|
| 2844 | rm -rf conftest*
|
|---|
| 2845 | ac_cv_header_stdc=no
|
|---|
| 2846 | fi
|
|---|
| 2847 | rm -f conftest*
|
|---|
| 2848 |
|
|---|
| 2849 | fi
|
|---|
| 2850 |
|
|---|
| 2851 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 2852 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|---|
| 2853 | if test "$cross_compiling" = yes; then
|
|---|
| 2854 | :
|
|---|
| 2855 | else
|
|---|
| 2856 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2857 | #line 2858 "configure"
|
|---|
| 2858 | #include "confdefs.h"
|
|---|
| 2859 | #include <ctype.h>
|
|---|
| 2860 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|---|
| 2861 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|---|
| 2862 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|---|
| 2863 | int main () { int i; for (i = 0; i < 256; i++)
|
|---|
| 2864 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
|---|
| 2865 | exit (0); }
|
|---|
| 2866 |
|
|---|
| 2867 | EOF
|
|---|
| 2868 | if { (eval echo configure:2869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|---|
| 2869 | then
|
|---|
| 2870 | :
|
|---|
| 2871 | else
|
|---|
| 2872 | echo "configure: failed program was:" >&5
|
|---|
| 2873 | cat conftest.$ac_ext >&5
|
|---|
| 2874 | rm -fr conftest*
|
|---|
| 2875 | ac_cv_header_stdc=no
|
|---|
| 2876 | fi
|
|---|
| 2877 | rm -fr conftest*
|
|---|
| 2878 | fi
|
|---|
| 2879 |
|
|---|
| 2880 | fi
|
|---|
| 2881 | fi
|
|---|
| 2882 |
|
|---|
| 2883 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
|---|
| 2884 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 2885 | cat >> confdefs.h <<\EOF
|
|---|
| 2886 | #define STDC_HEADERS 1
|
|---|
| 2887 | EOF
|
|---|
| 2888 |
|
|---|
| 2889 | fi
|
|---|
| 2890 |
|
|---|
| 2891 | echo $ac_n "checking for working const""... $ac_c" 1>&6
|
|---|
| 2892 | echo "configure:2893: checking for working const" >&5
|
|---|
| 2893 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
|
|---|
| 2894 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2895 | else
|
|---|
| 2896 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2897 | #line 2898 "configure"
|
|---|
| 2898 | #include "confdefs.h"
|
|---|
| 2899 |
|
|---|
| 2900 | int main() {
|
|---|
| 2901 |
|
|---|
| 2902 | /* Ultrix mips cc rejects this. */
|
|---|
| 2903 | typedef int charset[2]; const charset x;
|
|---|
| 2904 | /* SunOS 4.1.1 cc rejects this. */
|
|---|
| 2905 | char const *const *ccp;
|
|---|
| 2906 | char **p;
|
|---|
| 2907 | /* NEC SVR4.0.2 mips cc rejects this. */
|
|---|
| 2908 | struct point {int x, y;};
|
|---|
| 2909 | static struct point const zero = {0,0};
|
|---|
| 2910 | /* AIX XL C 1.02.0.0 rejects this.
|
|---|
| 2911 | It does not let you subtract one const X* pointer from another in an arm
|
|---|
| 2912 | of an if-expression whose if-part is not a constant expression */
|
|---|
| 2913 | const char *g = "string";
|
|---|
| 2914 | ccp = &g + (g ? g-g : 0);
|
|---|
| 2915 | /* HPUX 7.0 cc rejects these. */
|
|---|
| 2916 | ++ccp;
|
|---|
| 2917 | p = (char**) ccp;
|
|---|
| 2918 | ccp = (char const *const *) p;
|
|---|
| 2919 | { /* SCO 3.2v4 cc rejects this. */
|
|---|
| 2920 | char *t;
|
|---|
| 2921 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
|---|
| 2922 |
|
|---|
| 2923 | *t++ = 0;
|
|---|
| 2924 | }
|
|---|
| 2925 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
|---|
| 2926 | int x[] = {25, 17};
|
|---|
| 2927 | const int *foo = &x[0];
|
|---|
| 2928 | ++foo;
|
|---|
| 2929 | }
|
|---|
| 2930 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
|---|
| 2931 | typedef const int *iptr;
|
|---|
| 2932 | iptr p = 0;
|
|---|
| 2933 | ++p;
|
|---|
| 2934 | }
|
|---|
| 2935 | { /* AIX XL C 1.02.0.0 rejects this saying
|
|---|
| 2936 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
|---|
| 2937 | struct s { int j; const int *ap[3]; };
|
|---|
| 2938 | struct s *b; b->j = 5;
|
|---|
| 2939 | }
|
|---|
| 2940 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
|---|
| 2941 | const int foo = 10;
|
|---|
| 2942 | }
|
|---|
| 2943 |
|
|---|
| 2944 | ; return 0; }
|
|---|
| 2945 | EOF
|
|---|
| 2946 | if { (eval echo configure:2947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 2947 | rm -rf conftest*
|
|---|
| 2948 | ac_cv_c_const=yes
|
|---|
| 2949 | else
|
|---|
| 2950 | echo "configure: failed program was:" >&5
|
|---|
| 2951 | cat conftest.$ac_ext >&5
|
|---|
| 2952 | rm -rf conftest*
|
|---|
| 2953 | ac_cv_c_const=no
|
|---|
| 2954 | fi
|
|---|
| 2955 | rm -f conftest*
|
|---|
| 2956 | fi
|
|---|
| 2957 |
|
|---|
| 2958 | echo "$ac_t""$ac_cv_c_const" 1>&6
|
|---|
| 2959 | if test $ac_cv_c_const = no; then
|
|---|
| 2960 | cat >> confdefs.h <<\EOF
|
|---|
| 2961 | #define const
|
|---|
| 2962 | EOF
|
|---|
| 2963 |
|
|---|
| 2964 | fi
|
|---|
| 2965 |
|
|---|
| 2966 | echo $ac_n "checking for inline""... $ac_c" 1>&6
|
|---|
| 2967 | echo "configure:2968: checking for inline" >&5
|
|---|
| 2968 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
|
|---|
| 2969 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2970 | else
|
|---|
| 2971 | ac_cv_c_inline=no
|
|---|
| 2972 | for ac_kw in inline __inline__ __inline; do
|
|---|
| 2973 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2974 | #line 2975 "configure"
|
|---|
| 2975 | #include "confdefs.h"
|
|---|
| 2976 |
|
|---|
| 2977 | int main() {
|
|---|
| 2978 | } $ac_kw foo() {
|
|---|
| 2979 | ; return 0; }
|
|---|
| 2980 | EOF
|
|---|
| 2981 | if { (eval echo configure:2982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 2982 | rm -rf conftest*
|
|---|
| 2983 | ac_cv_c_inline=$ac_kw; break
|
|---|
| 2984 | else
|
|---|
| 2985 | echo "configure: failed program was:" >&5
|
|---|
| 2986 | cat conftest.$ac_ext >&5
|
|---|
| 2987 | fi
|
|---|
| 2988 | rm -f conftest*
|
|---|
| 2989 | done
|
|---|
| 2990 |
|
|---|
| 2991 | fi
|
|---|
| 2992 |
|
|---|
| 2993 | echo "$ac_t""$ac_cv_c_inline" 1>&6
|
|---|
| 2994 | case "$ac_cv_c_inline" in
|
|---|
| 2995 | inline | yes) ;;
|
|---|
| 2996 | no) cat >> confdefs.h <<\EOF
|
|---|
| 2997 | #define inline
|
|---|
| 2998 | EOF
|
|---|
| 2999 | ;;
|
|---|
| 3000 | *) cat >> confdefs.h <<EOF
|
|---|
| 3001 | #define inline $ac_cv_c_inline
|
|---|
| 3002 | EOF
|
|---|
| 3003 | ;;
|
|---|
| 3004 | esac
|
|---|
| 3005 |
|
|---|
| 3006 | echo $ac_n "checking for off_t""... $ac_c" 1>&6
|
|---|
| 3007 | echo "configure:3008: checking for off_t" >&5
|
|---|
| 3008 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
|
|---|
| 3009 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3010 | else
|
|---|
| 3011 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3012 | #line 3013 "configure"
|
|---|
| 3013 | #include "confdefs.h"
|
|---|
| 3014 | #include <sys/types.h>
|
|---|
| 3015 | #if STDC_HEADERS
|
|---|
| 3016 | #include <stdlib.h>
|
|---|
| 3017 | #include <stddef.h>
|
|---|
| 3018 | #endif
|
|---|
| 3019 | EOF
|
|---|
| 3020 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 3021 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|---|
| 3022 | rm -rf conftest*
|
|---|
| 3023 | ac_cv_type_off_t=yes
|
|---|
| 3024 | else
|
|---|
| 3025 | rm -rf conftest*
|
|---|
| 3026 | ac_cv_type_off_t=no
|
|---|
| 3027 | fi
|
|---|
| 3028 | rm -f conftest*
|
|---|
| 3029 |
|
|---|
| 3030 | fi
|
|---|
| 3031 | echo "$ac_t""$ac_cv_type_off_t" 1>&6
|
|---|
| 3032 | if test $ac_cv_type_off_t = no; then
|
|---|
| 3033 | cat >> confdefs.h <<\EOF
|
|---|
| 3034 | #define off_t long
|
|---|
| 3035 | EOF
|
|---|
| 3036 |
|
|---|
| 3037 | fi
|
|---|
| 3038 |
|
|---|
| 3039 | echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
|---|
| 3040 | echo "configure:3041: checking for size_t" >&5
|
|---|
| 3041 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
|
|---|
| 3042 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3043 | else
|
|---|
| 3044 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3045 | #line 3046 "configure"
|
|---|
| 3046 | #include "confdefs.h"
|
|---|
| 3047 | #include <sys/types.h>
|
|---|
| 3048 | #if STDC_HEADERS
|
|---|
| 3049 | #include <stdlib.h>
|
|---|
| 3050 | #include <stddef.h>
|
|---|
| 3051 | #endif
|
|---|
| 3052 | EOF
|
|---|
| 3053 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 3054 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|---|
| 3055 | rm -rf conftest*
|
|---|
| 3056 | ac_cv_type_size_t=yes
|
|---|
| 3057 | else
|
|---|
| 3058 | rm -rf conftest*
|
|---|
| 3059 | ac_cv_type_size_t=no
|
|---|
| 3060 | fi
|
|---|
| 3061 | rm -f conftest*
|
|---|
| 3062 |
|
|---|
| 3063 | fi
|
|---|
| 3064 | echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
|---|
| 3065 | if test $ac_cv_type_size_t = no; then
|
|---|
| 3066 | cat >> confdefs.h <<\EOF
|
|---|
| 3067 | #define size_t unsigned
|
|---|
| 3068 | EOF
|
|---|
| 3069 |
|
|---|
| 3070 | fi
|
|---|
| 3071 |
|
|---|
| 3072 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
|---|
| 3073 | # for constant arguments. Useless!
|
|---|
| 3074 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
|---|
| 3075 | echo "configure:3076: checking for working alloca.h" >&5
|
|---|
| 3076 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
|
|---|
| 3077 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3078 | else
|
|---|
| 3079 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3080 | #line 3081 "configure"
|
|---|
| 3081 | #include "confdefs.h"
|
|---|
| 3082 | #include <alloca.h>
|
|---|
| 3083 | int main() {
|
|---|
| 3084 | char *p = alloca(2 * sizeof(int));
|
|---|
| 3085 | ; return 0; }
|
|---|
| 3086 | EOF
|
|---|
| 3087 | if { (eval echo configure:3088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3088 | rm -rf conftest*
|
|---|
| 3089 | ac_cv_header_alloca_h=yes
|
|---|
| 3090 | else
|
|---|
| 3091 | echo "configure: failed program was:" >&5
|
|---|
| 3092 | cat conftest.$ac_ext >&5
|
|---|
| 3093 | rm -rf conftest*
|
|---|
| 3094 | ac_cv_header_alloca_h=no
|
|---|
| 3095 | fi
|
|---|
| 3096 | rm -f conftest*
|
|---|
| 3097 | fi
|
|---|
| 3098 |
|
|---|
| 3099 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
|---|
| 3100 | if test $ac_cv_header_alloca_h = yes; then
|
|---|
| 3101 | cat >> confdefs.h <<\EOF
|
|---|
| 3102 | #define HAVE_ALLOCA_H 1
|
|---|
| 3103 | EOF
|
|---|
| 3104 |
|
|---|
| 3105 | fi
|
|---|
| 3106 |
|
|---|
| 3107 | echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
|---|
| 3108 | echo "configure:3109: checking for alloca" >&5
|
|---|
| 3109 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
|
|---|
| 3110 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3111 | else
|
|---|
| 3112 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3113 | #line 3114 "configure"
|
|---|
| 3114 | #include "confdefs.h"
|
|---|
| 3115 |
|
|---|
| 3116 | #ifdef __GNUC__
|
|---|
| 3117 | # define alloca __builtin_alloca
|
|---|
| 3118 | #else
|
|---|
| 3119 | # ifdef _MSC_VER
|
|---|
| 3120 | # include <malloc.h>
|
|---|
| 3121 | # define alloca _alloca
|
|---|
| 3122 | # else
|
|---|
| 3123 | # if HAVE_ALLOCA_H
|
|---|
| 3124 | # include <alloca.h>
|
|---|
| 3125 | # else
|
|---|
| 3126 | # ifdef _AIX
|
|---|
| 3127 | #pragma alloca
|
|---|
| 3128 | # else
|
|---|
| 3129 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
|---|
| 3130 | char *alloca ();
|
|---|
| 3131 | # endif
|
|---|
| 3132 | # endif
|
|---|
| 3133 | # endif
|
|---|
| 3134 | # endif
|
|---|
| 3135 | #endif
|
|---|
| 3136 |
|
|---|
| 3137 | int main() {
|
|---|
| 3138 | char *p = (char *) alloca(1);
|
|---|
| 3139 | ; return 0; }
|
|---|
| 3140 | EOF
|
|---|
| 3141 | if { (eval echo configure:3142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3142 | rm -rf conftest*
|
|---|
| 3143 | ac_cv_func_alloca_works=yes
|
|---|
| 3144 | else
|
|---|
| 3145 | echo "configure: failed program was:" >&5
|
|---|
| 3146 | cat conftest.$ac_ext >&5
|
|---|
| 3147 | rm -rf conftest*
|
|---|
| 3148 | ac_cv_func_alloca_works=no
|
|---|
| 3149 | fi
|
|---|
| 3150 | rm -f conftest*
|
|---|
| 3151 | fi
|
|---|
| 3152 |
|
|---|
| 3153 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
|---|
| 3154 | if test $ac_cv_func_alloca_works = yes; then
|
|---|
| 3155 | cat >> confdefs.h <<\EOF
|
|---|
| 3156 | #define HAVE_ALLOCA 1
|
|---|
| 3157 | EOF
|
|---|
| 3158 |
|
|---|
| 3159 | fi
|
|---|
| 3160 |
|
|---|
| 3161 | if test $ac_cv_func_alloca_works = no; then
|
|---|
| 3162 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
|---|
| 3163 | # that cause trouble. Some versions do not even contain alloca or
|
|---|
| 3164 | # contain a buggy version. If you still want to use their alloca,
|
|---|
| 3165 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
|---|
| 3166 | ALLOCA=alloca.${ac_objext}
|
|---|
| 3167 | cat >> confdefs.h <<\EOF
|
|---|
| 3168 | #define C_ALLOCA 1
|
|---|
| 3169 | EOF
|
|---|
| 3170 |
|
|---|
| 3171 |
|
|---|
| 3172 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
|---|
| 3173 | echo "configure:3174: checking whether alloca needs Cray hooks" >&5
|
|---|
| 3174 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
|
|---|
| 3175 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3176 | else
|
|---|
| 3177 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3178 | #line 3179 "configure"
|
|---|
| 3179 | #include "confdefs.h"
|
|---|
| 3180 | #if defined(CRAY) && ! defined(CRAY2)
|
|---|
| 3181 | webecray
|
|---|
| 3182 | #else
|
|---|
| 3183 | wenotbecray
|
|---|
| 3184 | #endif
|
|---|
| 3185 |
|
|---|
| 3186 | EOF
|
|---|
| 3187 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 3188 | egrep "webecray" >/dev/null 2>&1; then
|
|---|
| 3189 | rm -rf conftest*
|
|---|
| 3190 | ac_cv_os_cray=yes
|
|---|
| 3191 | else
|
|---|
| 3192 | rm -rf conftest*
|
|---|
| 3193 | ac_cv_os_cray=no
|
|---|
| 3194 | fi
|
|---|
| 3195 | rm -f conftest*
|
|---|
| 3196 |
|
|---|
| 3197 | fi
|
|---|
| 3198 |
|
|---|
| 3199 | echo "$ac_t""$ac_cv_os_cray" 1>&6
|
|---|
| 3200 | if test $ac_cv_os_cray = yes; then
|
|---|
| 3201 | for ac_func in _getb67 GETB67 getb67; do
|
|---|
| 3202 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 3203 | echo "configure:3204: checking for $ac_func" >&5
|
|---|
| 3204 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 3205 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3206 | else
|
|---|
| 3207 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3208 | #line 3209 "configure"
|
|---|
| 3209 | #include "confdefs.h"
|
|---|
| 3210 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 3211 | which can conflict with char $ac_func(); below. */
|
|---|
| 3212 | #include <assert.h>
|
|---|
| 3213 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3214 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3215 | builtin and then its argument prototype would still apply. */
|
|---|
| 3216 | char $ac_func();
|
|---|
| 3217 |
|
|---|
| 3218 | int main() {
|
|---|
| 3219 |
|
|---|
| 3220 | /* The GNU C library defines this for functions which it implements
|
|---|
| 3221 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 3222 | something starting with __ and the normal name is an alias. */
|
|---|
| 3223 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 3224 | choke me
|
|---|
| 3225 | #else
|
|---|
| 3226 | $ac_func();
|
|---|
| 3227 | #endif
|
|---|
| 3228 |
|
|---|
| 3229 | ; return 0; }
|
|---|
| 3230 | EOF
|
|---|
| 3231 | if { (eval echo configure:3232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3232 | rm -rf conftest*
|
|---|
| 3233 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 3234 | else
|
|---|
| 3235 | echo "configure: failed program was:" >&5
|
|---|
| 3236 | cat conftest.$ac_ext >&5
|
|---|
| 3237 | rm -rf conftest*
|
|---|
| 3238 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 3239 | fi
|
|---|
| 3240 | rm -f conftest*
|
|---|
| 3241 | fi
|
|---|
| 3242 |
|
|---|
| 3243 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 3244 | echo "$ac_t""yes" 1>&6
|
|---|
| 3245 | cat >> confdefs.h <<EOF
|
|---|
| 3246 | #define CRAY_STACKSEG_END $ac_func
|
|---|
| 3247 | EOF
|
|---|
| 3248 |
|
|---|
| 3249 | break
|
|---|
| 3250 | else
|
|---|
| 3251 | echo "$ac_t""no" 1>&6
|
|---|
| 3252 | fi
|
|---|
| 3253 |
|
|---|
| 3254 | done
|
|---|
| 3255 | fi
|
|---|
| 3256 |
|
|---|
| 3257 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
|---|
| 3258 | echo "configure:3259: checking stack direction for C alloca" >&5
|
|---|
| 3259 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
|
|---|
| 3260 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3261 | else
|
|---|
| 3262 | if test "$cross_compiling" = yes; then
|
|---|
| 3263 | ac_cv_c_stack_direction=0
|
|---|
| 3264 | else
|
|---|
| 3265 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3266 | #line 3267 "configure"
|
|---|
| 3267 | #include "confdefs.h"
|
|---|
| 3268 | find_stack_direction ()
|
|---|
| 3269 | {
|
|---|
| 3270 | static char *addr = 0;
|
|---|
| 3271 | auto char dummy;
|
|---|
| 3272 | if (addr == 0)
|
|---|
| 3273 | {
|
|---|
| 3274 | addr = &dummy;
|
|---|
| 3275 | return find_stack_direction ();
|
|---|
| 3276 | }
|
|---|
| 3277 | else
|
|---|
| 3278 | return (&dummy > addr) ? 1 : -1;
|
|---|
| 3279 | }
|
|---|
| 3280 | main ()
|
|---|
| 3281 | {
|
|---|
| 3282 | exit (find_stack_direction() < 0);
|
|---|
| 3283 | }
|
|---|
| 3284 | EOF
|
|---|
| 3285 | if { (eval echo configure:3286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|---|
| 3286 | then
|
|---|
| 3287 | ac_cv_c_stack_direction=1
|
|---|
| 3288 | else
|
|---|
| 3289 | echo "configure: failed program was:" >&5
|
|---|
| 3290 | cat conftest.$ac_ext >&5
|
|---|
| 3291 | rm -fr conftest*
|
|---|
| 3292 | ac_cv_c_stack_direction=-1
|
|---|
| 3293 | fi
|
|---|
| 3294 | rm -fr conftest*
|
|---|
| 3295 | fi
|
|---|
| 3296 |
|
|---|
| 3297 | fi
|
|---|
| 3298 |
|
|---|
| 3299 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
|---|
| 3300 | cat >> confdefs.h <<EOF
|
|---|
| 3301 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
|---|
| 3302 | EOF
|
|---|
| 3303 |
|
|---|
| 3304 | fi
|
|---|
| 3305 |
|
|---|
| 3306 | for ac_hdr in unistd.h
|
|---|
| 3307 | do
|
|---|
| 3308 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|---|
| 3309 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|---|
| 3310 | echo "configure:3311: checking for $ac_hdr" >&5
|
|---|
| 3311 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 3312 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3313 | else
|
|---|
| 3314 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3315 | #include <sys/types.h>
|
|---|
| 3316 | #line 3317 "configure"
|
|---|
| 3317 | #include "confdefs.h"
|
|---|
| 3318 | #include <$ac_hdr>
|
|---|
| 3319 | EOF
|
|---|
| 3320 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 3321 | { (eval echo configure:3322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 3322 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 3323 | if test -z "$ac_err"; then
|
|---|
| 3324 | rm -rf conftest*
|
|---|
| 3325 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 3326 | else
|
|---|
| 3327 | echo "$ac_err" >&5
|
|---|
| 3328 | echo "configure: failed program was:" >&5
|
|---|
| 3329 | cat conftest.$ac_ext >&5
|
|---|
| 3330 | rm -rf conftest*
|
|---|
| 3331 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 3332 | fi
|
|---|
| 3333 | rm -f conftest*
|
|---|
| 3334 | fi
|
|---|
| 3335 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 3336 | echo "$ac_t""yes" 1>&6
|
|---|
| 3337 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|---|
| 3338 | cat >> confdefs.h <<EOF
|
|---|
| 3339 | #define $ac_tr_hdr 1
|
|---|
| 3340 | EOF
|
|---|
| 3341 |
|
|---|
| 3342 | else
|
|---|
| 3343 | echo "$ac_t""no" 1>&6
|
|---|
| 3344 | fi
|
|---|
| 3345 | done
|
|---|
| 3346 |
|
|---|
| 3347 | for ac_func in getpagesize
|
|---|
| 3348 | do
|
|---|
| 3349 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 3350 | echo "configure:3351: checking for $ac_func" >&5
|
|---|
| 3351 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 3352 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3353 | else
|
|---|
| 3354 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3355 | #line 3356 "configure"
|
|---|
| 3356 | #include "confdefs.h"
|
|---|
| 3357 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 3358 | which can conflict with char $ac_func(); below. */
|
|---|
| 3359 | #include <assert.h>
|
|---|
| 3360 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3361 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3362 | builtin and then its argument prototype would still apply. */
|
|---|
| 3363 | char $ac_func();
|
|---|
| 3364 |
|
|---|
| 3365 | int main() {
|
|---|
| 3366 |
|
|---|
| 3367 | /* The GNU C library defines this for functions which it implements
|
|---|
| 3368 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 3369 | something starting with __ and the normal name is an alias. */
|
|---|
| 3370 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 3371 | choke me
|
|---|
| 3372 | #else
|
|---|
| 3373 | $ac_func();
|
|---|
| 3374 | #endif
|
|---|
| 3375 |
|
|---|
| 3376 | ; return 0; }
|
|---|
| 3377 | EOF
|
|---|
| 3378 | if { (eval echo configure:3379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3379 | rm -rf conftest*
|
|---|
| 3380 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 3381 | else
|
|---|
| 3382 | echo "configure: failed program was:" >&5
|
|---|
| 3383 | cat conftest.$ac_ext >&5
|
|---|
| 3384 | rm -rf conftest*
|
|---|
| 3385 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 3386 | fi
|
|---|
| 3387 | rm -f conftest*
|
|---|
| 3388 | fi
|
|---|
| 3389 |
|
|---|
| 3390 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 3391 | echo "$ac_t""yes" 1>&6
|
|---|
| 3392 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 3393 | cat >> confdefs.h <<EOF
|
|---|
| 3394 | #define $ac_tr_func 1
|
|---|
| 3395 | EOF
|
|---|
| 3396 |
|
|---|
| 3397 | else
|
|---|
| 3398 | echo "$ac_t""no" 1>&6
|
|---|
| 3399 | fi
|
|---|
| 3400 | done
|
|---|
| 3401 |
|
|---|
| 3402 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
|---|
| 3403 | echo "configure:3404: checking for working mmap" >&5
|
|---|
| 3404 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
|
|---|
| 3405 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3406 | else
|
|---|
| 3407 | if test "$cross_compiling" = yes; then
|
|---|
| 3408 | ac_cv_func_mmap_fixed_mapped=no
|
|---|
| 3409 | else
|
|---|
| 3410 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3411 | #line 3412 "configure"
|
|---|
| 3412 | #include "confdefs.h"
|
|---|
| 3413 |
|
|---|
| 3414 | /* Thanks to Mike Haertel and Jim Avera for this test.
|
|---|
| 3415 | Here is a matrix of mmap possibilities:
|
|---|
| 3416 | mmap private not fixed
|
|---|
| 3417 | mmap private fixed at somewhere currently unmapped
|
|---|
| 3418 | mmap private fixed at somewhere already mapped
|
|---|
| 3419 | mmap shared not fixed
|
|---|
| 3420 | mmap shared fixed at somewhere currently unmapped
|
|---|
| 3421 | mmap shared fixed at somewhere already mapped
|
|---|
| 3422 | For private mappings, we should verify that changes cannot be read()
|
|---|
| 3423 | back from the file, nor mmap's back from the file at a different
|
|---|
| 3424 | address. (There have been systems where private was not correctly
|
|---|
| 3425 | implemented like the infamous i386 svr4.0, and systems where the
|
|---|
| 3426 | VM page cache was not coherent with the filesystem buffer cache
|
|---|
| 3427 | like early versions of FreeBSD and possibly contemporary NetBSD.)
|
|---|
| 3428 | For shared mappings, we should conversely verify that changes get
|
|---|
| 3429 | propogated back to all the places they're supposed to be.
|
|---|
| 3430 |
|
|---|
| 3431 | Grep wants private fixed already mapped.
|
|---|
| 3432 | The main things grep needs to know about mmap are:
|
|---|
| 3433 | * does it exist and is it safe to write into the mmap'd area
|
|---|
| 3434 | * how to use it (BSD variants) */
|
|---|
| 3435 | #include <sys/types.h>
|
|---|
| 3436 | #include <fcntl.h>
|
|---|
| 3437 | #include <sys/mman.h>
|
|---|
| 3438 |
|
|---|
| 3439 | /* This mess was copied from the GNU getpagesize.h. */
|
|---|
| 3440 | #ifndef HAVE_GETPAGESIZE
|
|---|
| 3441 | # ifdef HAVE_UNISTD_H
|
|---|
| 3442 | # include <unistd.h>
|
|---|
| 3443 | # endif
|
|---|
| 3444 |
|
|---|
| 3445 | /* Assume that all systems that can run configure have sys/param.h. */
|
|---|
| 3446 | # ifndef HAVE_SYS_PARAM_H
|
|---|
| 3447 | # define HAVE_SYS_PARAM_H 1
|
|---|
| 3448 | # endif
|
|---|
| 3449 |
|
|---|
| 3450 | # ifdef _SC_PAGESIZE
|
|---|
| 3451 | # define getpagesize() sysconf(_SC_PAGESIZE)
|
|---|
| 3452 | # else /* no _SC_PAGESIZE */
|
|---|
| 3453 | # ifdef HAVE_SYS_PARAM_H
|
|---|
| 3454 | # include <sys/param.h>
|
|---|
| 3455 | # ifdef EXEC_PAGESIZE
|
|---|
| 3456 | # define getpagesize() EXEC_PAGESIZE
|
|---|
| 3457 | # else /* no EXEC_PAGESIZE */
|
|---|
| 3458 | # ifdef NBPG
|
|---|
| 3459 | # define getpagesize() NBPG * CLSIZE
|
|---|
| 3460 | # ifndef CLSIZE
|
|---|
| 3461 | # define CLSIZE 1
|
|---|
| 3462 | # endif /* no CLSIZE */
|
|---|
| 3463 | # else /* no NBPG */
|
|---|
| 3464 | # ifdef NBPC
|
|---|
| 3465 | # define getpagesize() NBPC
|
|---|
| 3466 | # else /* no NBPC */
|
|---|
| 3467 | # ifdef PAGESIZE
|
|---|
| 3468 | # define getpagesize() PAGESIZE
|
|---|
| 3469 | # endif /* PAGESIZE */
|
|---|
| 3470 | # endif /* no NBPC */
|
|---|
| 3471 | # endif /* no NBPG */
|
|---|
| 3472 | # endif /* no EXEC_PAGESIZE */
|
|---|
| 3473 | # else /* no HAVE_SYS_PARAM_H */
|
|---|
| 3474 | # define getpagesize() 8192 /* punt totally */
|
|---|
| 3475 | # endif /* no HAVE_SYS_PARAM_H */
|
|---|
| 3476 | # endif /* no _SC_PAGESIZE */
|
|---|
| 3477 |
|
|---|
| 3478 | #endif /* no HAVE_GETPAGESIZE */
|
|---|
| 3479 |
|
|---|
| 3480 | #ifdef __cplusplus
|
|---|
| 3481 | extern "C" { void *malloc(unsigned); }
|
|---|
| 3482 | #else
|
|---|
| 3483 | char *malloc();
|
|---|
| 3484 | #endif
|
|---|
| 3485 |
|
|---|
| 3486 | int
|
|---|
| 3487 | main()
|
|---|
| 3488 | {
|
|---|
| 3489 | char *data, *data2, *data3;
|
|---|
| 3490 | int i, pagesize;
|
|---|
| 3491 | int fd;
|
|---|
| 3492 |
|
|---|
| 3493 | pagesize = getpagesize();
|
|---|
| 3494 |
|
|---|
| 3495 | /*
|
|---|
| 3496 | * First, make a file with some known garbage in it.
|
|---|
| 3497 | */
|
|---|
| 3498 | data = malloc(pagesize);
|
|---|
| 3499 | if (!data)
|
|---|
| 3500 | exit(1);
|
|---|
| 3501 | for (i = 0; i < pagesize; ++i)
|
|---|
| 3502 | *(data + i) = rand();
|
|---|
| 3503 | umask(0);
|
|---|
| 3504 | fd = creat("conftestmmap", 0600);
|
|---|
| 3505 | if (fd < 0)
|
|---|
| 3506 | exit(1);
|
|---|
| 3507 | if (write(fd, data, pagesize) != pagesize)
|
|---|
| 3508 | exit(1);
|
|---|
| 3509 | close(fd);
|
|---|
| 3510 |
|
|---|
| 3511 | /*
|
|---|
| 3512 | * Next, try to mmap the file at a fixed address which
|
|---|
| 3513 | * already has something else allocated at it. If we can,
|
|---|
| 3514 | * also make sure that we see the same garbage.
|
|---|
| 3515 | */
|
|---|
| 3516 | fd = open("conftestmmap", O_RDWR);
|
|---|
| 3517 | if (fd < 0)
|
|---|
| 3518 | exit(1);
|
|---|
| 3519 | data2 = malloc(2 * pagesize);
|
|---|
| 3520 | if (!data2)
|
|---|
| 3521 | exit(1);
|
|---|
| 3522 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
|
|---|
| 3523 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
|
|---|
| 3524 | MAP_PRIVATE | MAP_FIXED, fd, 0L))
|
|---|
| 3525 | exit(1);
|
|---|
| 3526 | for (i = 0; i < pagesize; ++i)
|
|---|
| 3527 | if (*(data + i) != *(data2 + i))
|
|---|
| 3528 | exit(1);
|
|---|
| 3529 |
|
|---|
| 3530 | /*
|
|---|
| 3531 | * Finally, make sure that changes to the mapped area
|
|---|
| 3532 | * do not percolate back to the file as seen by read().
|
|---|
| 3533 | * (This is a bug on some variants of i386 svr4.0.)
|
|---|
| 3534 | */
|
|---|
| 3535 | for (i = 0; i < pagesize; ++i)
|
|---|
| 3536 | *(data2 + i) = *(data2 + i) + 1;
|
|---|
| 3537 | data3 = malloc(pagesize);
|
|---|
| 3538 | if (!data3)
|
|---|
| 3539 | exit(1);
|
|---|
| 3540 | if (read(fd, data3, pagesize) != pagesize)
|
|---|
| 3541 | exit(1);
|
|---|
| 3542 | for (i = 0; i < pagesize; ++i)
|
|---|
| 3543 | if (*(data + i) != *(data3 + i))
|
|---|
| 3544 | exit(1);
|
|---|
| 3545 | close(fd);
|
|---|
| 3546 | unlink("conftestmmap");
|
|---|
| 3547 | exit(0);
|
|---|
| 3548 | }
|
|---|
| 3549 |
|
|---|
| 3550 | EOF
|
|---|
| 3551 | if { (eval echo configure:3552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|---|
| 3552 | then
|
|---|
| 3553 | ac_cv_func_mmap_fixed_mapped=yes
|
|---|
| 3554 | else
|
|---|
| 3555 | echo "configure: failed program was:" >&5
|
|---|
| 3556 | cat conftest.$ac_ext >&5
|
|---|
| 3557 | rm -fr conftest*
|
|---|
| 3558 | ac_cv_func_mmap_fixed_mapped=no
|
|---|
| 3559 | fi
|
|---|
| 3560 | rm -fr conftest*
|
|---|
| 3561 | fi
|
|---|
| 3562 |
|
|---|
| 3563 | fi
|
|---|
| 3564 |
|
|---|
| 3565 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
|
|---|
| 3566 | if test $ac_cv_func_mmap_fixed_mapped = yes; then
|
|---|
| 3567 | cat >> confdefs.h <<\EOF
|
|---|
| 3568 | #define HAVE_MMAP 1
|
|---|
| 3569 | EOF
|
|---|
| 3570 |
|
|---|
| 3571 | fi
|
|---|
| 3572 |
|
|---|
| 3573 |
|
|---|
| 3574 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
|
|---|
| 3575 | unistd.h values.h sys/param.h
|
|---|
| 3576 | do
|
|---|
| 3577 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|---|
| 3578 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|---|
| 3579 | echo "configure:3580: checking for $ac_hdr" >&5
|
|---|
| 3580 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 3581 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3582 | else
|
|---|
| 3583 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3584 | #include <sys/types.h>
|
|---|
| 3585 | #line 3586 "configure"
|
|---|
| 3586 | #include "confdefs.h"
|
|---|
| 3587 | #include <$ac_hdr>
|
|---|
| 3588 | EOF
|
|---|
| 3589 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 3590 | { (eval echo configure:3591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 3591 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 3592 | if test -z "$ac_err"; then
|
|---|
| 3593 | rm -rf conftest*
|
|---|
| 3594 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 3595 | else
|
|---|
| 3596 | echo "$ac_err" >&5
|
|---|
| 3597 | echo "configure: failed program was:" >&5
|
|---|
| 3598 | cat conftest.$ac_ext >&5
|
|---|
| 3599 | rm -rf conftest*
|
|---|
| 3600 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 3601 | fi
|
|---|
| 3602 | rm -f conftest*
|
|---|
| 3603 | fi
|
|---|
| 3604 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 3605 | echo "$ac_t""yes" 1>&6
|
|---|
| 3606 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|---|
| 3607 | cat >> confdefs.h <<EOF
|
|---|
| 3608 | #define $ac_tr_hdr 1
|
|---|
| 3609 | EOF
|
|---|
| 3610 |
|
|---|
| 3611 | else
|
|---|
| 3612 | echo "$ac_t""no" 1>&6
|
|---|
| 3613 | fi
|
|---|
| 3614 | done
|
|---|
| 3615 |
|
|---|
| 3616 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
|
|---|
| 3617 | __argz_count __argz_stringify __argz_next
|
|---|
| 3618 | do
|
|---|
| 3619 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 3620 | echo "configure:3621: checking for $ac_func" >&5
|
|---|
| 3621 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 3622 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3623 | else
|
|---|
| 3624 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3625 | #line 3626 "configure"
|
|---|
| 3626 | #include "confdefs.h"
|
|---|
| 3627 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 3628 | which can conflict with char $ac_func(); below. */
|
|---|
| 3629 | #include <assert.h>
|
|---|
| 3630 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3631 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3632 | builtin and then its argument prototype would still apply. */
|
|---|
| 3633 | char $ac_func();
|
|---|
| 3634 |
|
|---|
| 3635 | int main() {
|
|---|
| 3636 |
|
|---|
| 3637 | /* The GNU C library defines this for functions which it implements
|
|---|
| 3638 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 3639 | something starting with __ and the normal name is an alias. */
|
|---|
| 3640 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 3641 | choke me
|
|---|
| 3642 | #else
|
|---|
| 3643 | $ac_func();
|
|---|
| 3644 | #endif
|
|---|
| 3645 |
|
|---|
| 3646 | ; return 0; }
|
|---|
| 3647 | EOF
|
|---|
| 3648 | if { (eval echo configure:3649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3649 | rm -rf conftest*
|
|---|
| 3650 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 3651 | else
|
|---|
| 3652 | echo "configure: failed program was:" >&5
|
|---|
| 3653 | cat conftest.$ac_ext >&5
|
|---|
| 3654 | rm -rf conftest*
|
|---|
| 3655 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 3656 | fi
|
|---|
| 3657 | rm -f conftest*
|
|---|
| 3658 | fi
|
|---|
| 3659 |
|
|---|
| 3660 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 3661 | echo "$ac_t""yes" 1>&6
|
|---|
| 3662 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 3663 | cat >> confdefs.h <<EOF
|
|---|
| 3664 | #define $ac_tr_func 1
|
|---|
| 3665 | EOF
|
|---|
| 3666 |
|
|---|
| 3667 | else
|
|---|
| 3668 | echo "$ac_t""no" 1>&6
|
|---|
| 3669 | fi
|
|---|
| 3670 | done
|
|---|
| 3671 |
|
|---|
| 3672 |
|
|---|
| 3673 | if test "${ac_cv_func_stpcpy+set}" != "set"; then
|
|---|
| 3674 | for ac_func in stpcpy
|
|---|
| 3675 | do
|
|---|
| 3676 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 3677 | echo "configure:3678: checking for $ac_func" >&5
|
|---|
| 3678 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 3679 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3680 | else
|
|---|
| 3681 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3682 | #line 3683 "configure"
|
|---|
| 3683 | #include "confdefs.h"
|
|---|
| 3684 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 3685 | which can conflict with char $ac_func(); below. */
|
|---|
| 3686 | #include <assert.h>
|
|---|
| 3687 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3688 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3689 | builtin and then its argument prototype would still apply. */
|
|---|
| 3690 | char $ac_func();
|
|---|
| 3691 |
|
|---|
| 3692 | int main() {
|
|---|
| 3693 |
|
|---|
| 3694 | /* The GNU C library defines this for functions which it implements
|
|---|
| 3695 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 3696 | something starting with __ and the normal name is an alias. */
|
|---|
| 3697 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 3698 | choke me
|
|---|
| 3699 | #else
|
|---|
| 3700 | $ac_func();
|
|---|
| 3701 | #endif
|
|---|
| 3702 |
|
|---|
| 3703 | ; return 0; }
|
|---|
| 3704 | EOF
|
|---|
| 3705 | if { (eval echo configure:3706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3706 | rm -rf conftest*
|
|---|
| 3707 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 3708 | else
|
|---|
| 3709 | echo "configure: failed program was:" >&5
|
|---|
| 3710 | cat conftest.$ac_ext >&5
|
|---|
| 3711 | rm -rf conftest*
|
|---|
| 3712 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 3713 | fi
|
|---|
| 3714 | rm -f conftest*
|
|---|
| 3715 | fi
|
|---|
| 3716 |
|
|---|
| 3717 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 3718 | echo "$ac_t""yes" 1>&6
|
|---|
| 3719 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 3720 | cat >> confdefs.h <<EOF
|
|---|
| 3721 | #define $ac_tr_func 1
|
|---|
| 3722 | EOF
|
|---|
| 3723 |
|
|---|
| 3724 | else
|
|---|
| 3725 | echo "$ac_t""no" 1>&6
|
|---|
| 3726 | fi
|
|---|
| 3727 | done
|
|---|
| 3728 |
|
|---|
| 3729 | fi
|
|---|
| 3730 | if test "${ac_cv_func_stpcpy}" = "yes"; then
|
|---|
| 3731 | cat >> confdefs.h <<\EOF
|
|---|
| 3732 | #define HAVE_STPCPY 1
|
|---|
| 3733 | EOF
|
|---|
| 3734 |
|
|---|
| 3735 | fi
|
|---|
| 3736 |
|
|---|
| 3737 | if test $ac_cv_header_locale_h = yes; then
|
|---|
| 3738 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
|
|---|
| 3739 | echo "configure:3740: checking for LC_MESSAGES" >&5
|
|---|
| 3740 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
|
|---|
| 3741 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3742 | else
|
|---|
| 3743 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3744 | #line 3745 "configure"
|
|---|
| 3745 | #include "confdefs.h"
|
|---|
| 3746 | #include <locale.h>
|
|---|
| 3747 | int main() {
|
|---|
| 3748 | return LC_MESSAGES
|
|---|
| 3749 | ; return 0; }
|
|---|
| 3750 | EOF
|
|---|
| 3751 | if { (eval echo configure:3752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3752 | rm -rf conftest*
|
|---|
| 3753 | am_cv_val_LC_MESSAGES=yes
|
|---|
| 3754 | else
|
|---|
| 3755 | echo "configure: failed program was:" >&5
|
|---|
| 3756 | cat conftest.$ac_ext >&5
|
|---|
| 3757 | rm -rf conftest*
|
|---|
| 3758 | am_cv_val_LC_MESSAGES=no
|
|---|
| 3759 | fi
|
|---|
| 3760 | rm -f conftest*
|
|---|
| 3761 | fi
|
|---|
| 3762 |
|
|---|
| 3763 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
|
|---|
| 3764 | if test $am_cv_val_LC_MESSAGES = yes; then
|
|---|
| 3765 | cat >> confdefs.h <<\EOF
|
|---|
| 3766 | #define HAVE_LC_MESSAGES 1
|
|---|
| 3767 | EOF
|
|---|
| 3768 |
|
|---|
| 3769 | fi
|
|---|
| 3770 | fi
|
|---|
| 3771 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
|
|---|
| 3772 | echo "configure:3773: checking whether NLS is requested" >&5
|
|---|
| 3773 | # Check whether --enable-nls or --disable-nls was given.
|
|---|
| 3774 | if test "${enable_nls+set}" = set; then
|
|---|
| 3775 | enableval="$enable_nls"
|
|---|
| 3776 | USE_NLS=$enableval
|
|---|
| 3777 | else
|
|---|
| 3778 | USE_NLS=yes
|
|---|
| 3779 | fi
|
|---|
| 3780 |
|
|---|
| 3781 | echo "$ac_t""$USE_NLS" 1>&6
|
|---|
| 3782 |
|
|---|
| 3783 |
|
|---|
| 3784 | USE_INCLUDED_LIBINTL=no
|
|---|
| 3785 |
|
|---|
| 3786 | if test "$USE_NLS" = "yes"; then
|
|---|
| 3787 | cat >> confdefs.h <<\EOF
|
|---|
| 3788 | #define ENABLE_NLS 1
|
|---|
| 3789 | EOF
|
|---|
| 3790 |
|
|---|
| 3791 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
|
|---|
| 3792 | echo "configure:3793: checking whether included gettext is requested" >&5
|
|---|
| 3793 | # Check whether --with-included-gettext or --without-included-gettext was given.
|
|---|
| 3794 | if test "${with_included_gettext+set}" = set; then
|
|---|
| 3795 | withval="$with_included_gettext"
|
|---|
| 3796 | nls_cv_force_use_gnu_gettext=$withval
|
|---|
| 3797 | else
|
|---|
| 3798 | nls_cv_force_use_gnu_gettext=no
|
|---|
| 3799 | fi
|
|---|
| 3800 |
|
|---|
| 3801 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
|
|---|
| 3802 |
|
|---|
| 3803 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
|
|---|
| 3804 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
|
|---|
| 3805 | nls_cv_header_intl=
|
|---|
| 3806 | nls_cv_header_libgt=
|
|---|
| 3807 | CATOBJEXT=NONE
|
|---|
| 3808 |
|
|---|
| 3809 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
|
|---|
| 3810 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
|
|---|
| 3811 | echo "configure:3812: checking for libintl.h" >&5
|
|---|
| 3812 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 3813 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3814 | else
|
|---|
| 3815 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3816 | #include <sys/types.h>
|
|---|
| 3817 | #line 3818 "configure"
|
|---|
| 3818 | #include "confdefs.h"
|
|---|
| 3819 | #include <libintl.h>
|
|---|
| 3820 | EOF
|
|---|
| 3821 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 3822 | { (eval echo configure:3823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 3823 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 3824 | if test -z "$ac_err"; then
|
|---|
| 3825 | rm -rf conftest*
|
|---|
| 3826 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 3827 | else
|
|---|
| 3828 | echo "$ac_err" >&5
|
|---|
| 3829 | echo "configure: failed program was:" >&5
|
|---|
| 3830 | cat conftest.$ac_ext >&5
|
|---|
| 3831 | rm -rf conftest*
|
|---|
| 3832 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 3833 | fi
|
|---|
| 3834 | rm -f conftest*
|
|---|
| 3835 | fi
|
|---|
| 3836 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 3837 | echo "$ac_t""yes" 1>&6
|
|---|
| 3838 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
|
|---|
| 3839 | echo "configure:3840: checking for gettext in libc" >&5
|
|---|
| 3840 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
|
|---|
| 3841 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3842 | else
|
|---|
| 3843 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3844 | #line 3845 "configure"
|
|---|
| 3845 | #include "confdefs.h"
|
|---|
| 3846 | #include <libintl.h>
|
|---|
| 3847 | int main() {
|
|---|
| 3848 | return (int) gettext ("")
|
|---|
| 3849 | ; return 0; }
|
|---|
| 3850 | EOF
|
|---|
| 3851 | if { (eval echo configure:3852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3852 | rm -rf conftest*
|
|---|
| 3853 | gt_cv_func_gettext_libc=yes
|
|---|
| 3854 | else
|
|---|
| 3855 | echo "configure: failed program was:" >&5
|
|---|
| 3856 | cat conftest.$ac_ext >&5
|
|---|
| 3857 | rm -rf conftest*
|
|---|
| 3858 | gt_cv_func_gettext_libc=no
|
|---|
| 3859 | fi
|
|---|
| 3860 | rm -f conftest*
|
|---|
| 3861 | fi
|
|---|
| 3862 |
|
|---|
| 3863 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
|
|---|
| 3864 |
|
|---|
| 3865 | if test "$gt_cv_func_gettext_libc" != "yes"; then
|
|---|
| 3866 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
|
|---|
| 3867 | echo "configure:3868: checking for bindtextdomain in -lintl" >&5
|
|---|
| 3868 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
|
|---|
| 3869 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 3870 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3871 | else
|
|---|
| 3872 | ac_save_LIBS="$LIBS"
|
|---|
| 3873 | LIBS="-lintl $LIBS"
|
|---|
| 3874 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3875 | #line 3876 "configure"
|
|---|
| 3876 | #include "confdefs.h"
|
|---|
| 3877 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3878 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3879 | builtin and then its argument prototype would still apply. */
|
|---|
| 3880 | char bindtextdomain();
|
|---|
| 3881 |
|
|---|
| 3882 | int main() {
|
|---|
| 3883 | bindtextdomain()
|
|---|
| 3884 | ; return 0; }
|
|---|
| 3885 | EOF
|
|---|
| 3886 | if { (eval echo configure:3887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3887 | rm -rf conftest*
|
|---|
| 3888 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 3889 | else
|
|---|
| 3890 | echo "configure: failed program was:" >&5
|
|---|
| 3891 | cat conftest.$ac_ext >&5
|
|---|
| 3892 | rm -rf conftest*
|
|---|
| 3893 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 3894 | fi
|
|---|
| 3895 | rm -f conftest*
|
|---|
| 3896 | LIBS="$ac_save_LIBS"
|
|---|
| 3897 |
|
|---|
| 3898 | fi
|
|---|
| 3899 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 3900 | echo "$ac_t""yes" 1>&6
|
|---|
| 3901 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
|
|---|
| 3902 | echo "configure:3903: checking for gettext in libintl" >&5
|
|---|
| 3903 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
|
|---|
| 3904 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3905 | else
|
|---|
| 3906 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3907 | #line 3908 "configure"
|
|---|
| 3908 | #include "confdefs.h"
|
|---|
| 3909 |
|
|---|
| 3910 | int main() {
|
|---|
| 3911 | return (int) gettext ("")
|
|---|
| 3912 | ; return 0; }
|
|---|
| 3913 | EOF
|
|---|
| 3914 | if { (eval echo configure:3915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3915 | rm -rf conftest*
|
|---|
| 3916 | gt_cv_func_gettext_libintl=yes
|
|---|
| 3917 | else
|
|---|
| 3918 | echo "configure: failed program was:" >&5
|
|---|
| 3919 | cat conftest.$ac_ext >&5
|
|---|
| 3920 | rm -rf conftest*
|
|---|
| 3921 | gt_cv_func_gettext_libintl=no
|
|---|
| 3922 | fi
|
|---|
| 3923 | rm -f conftest*
|
|---|
| 3924 | fi
|
|---|
| 3925 |
|
|---|
| 3926 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
|
|---|
| 3927 | else
|
|---|
| 3928 | echo "$ac_t""no" 1>&6
|
|---|
| 3929 | fi
|
|---|
| 3930 |
|
|---|
| 3931 | fi
|
|---|
| 3932 |
|
|---|
| 3933 | if test "$gt_cv_func_gettext_libc" = "yes" \
|
|---|
| 3934 | || test "$gt_cv_func_gettext_libintl" = "yes"; then
|
|---|
| 3935 | cat >> confdefs.h <<\EOF
|
|---|
| 3936 | #define HAVE_GETTEXT 1
|
|---|
| 3937 | EOF
|
|---|
| 3938 |
|
|---|
| 3939 | # Extract the first word of "msgfmt", so it can be a program name with args.
|
|---|
| 3940 | set dummy msgfmt; ac_word=$2
|
|---|
| 3941 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 3942 | echo "configure:3943: checking for $ac_word" >&5
|
|---|
| 3943 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
|
|---|
| 3944 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3945 | else
|
|---|
| 3946 | case "$MSGFMT" in
|
|---|
| 3947 | /*)
|
|---|
| 3948 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
|---|
| 3949 | ;;
|
|---|
| 3950 | *)
|
|---|
| 3951 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
|---|
| 3952 | for ac_dir in $PATH; do
|
|---|
| 3953 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 3954 | if test -f $ac_dir/$ac_word; then
|
|---|
| 3955 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
|---|
| 3956 | ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
|---|
| 3957 | break
|
|---|
| 3958 | fi
|
|---|
| 3959 | fi
|
|---|
| 3960 | done
|
|---|
| 3961 | IFS="$ac_save_ifs"
|
|---|
| 3962 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
|
|---|
| 3963 | ;;
|
|---|
| 3964 | esac
|
|---|
| 3965 | fi
|
|---|
| 3966 | MSGFMT="$ac_cv_path_MSGFMT"
|
|---|
| 3967 | if test -n "$MSGFMT"; then
|
|---|
| 3968 | echo "$ac_t""$MSGFMT" 1>&6
|
|---|
| 3969 | else
|
|---|
| 3970 | echo "$ac_t""no" 1>&6
|
|---|
| 3971 | fi
|
|---|
| 3972 | if test "$MSGFMT" != "no"; then
|
|---|
| 3973 | for ac_func in dcgettext
|
|---|
| 3974 | do
|
|---|
| 3975 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 3976 | echo "configure:3977: checking for $ac_func" >&5
|
|---|
| 3977 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 3978 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3979 | else
|
|---|
| 3980 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3981 | #line 3982 "configure"
|
|---|
| 3982 | #include "confdefs.h"
|
|---|
| 3983 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 3984 | which can conflict with char $ac_func(); below. */
|
|---|
| 3985 | #include <assert.h>
|
|---|
| 3986 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3987 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3988 | builtin and then its argument prototype would still apply. */
|
|---|
| 3989 | char $ac_func();
|
|---|
| 3990 |
|
|---|
| 3991 | int main() {
|
|---|
| 3992 |
|
|---|
| 3993 | /* The GNU C library defines this for functions which it implements
|
|---|
| 3994 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 3995 | something starting with __ and the normal name is an alias. */
|
|---|
| 3996 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 3997 | choke me
|
|---|
| 3998 | #else
|
|---|
| 3999 | $ac_func();
|
|---|
| 4000 | #endif
|
|---|
| 4001 |
|
|---|
| 4002 | ; return 0; }
|
|---|
| 4003 | EOF
|
|---|
| 4004 | if { (eval echo configure:4005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4005 | rm -rf conftest*
|
|---|
| 4006 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 4007 | else
|
|---|
| 4008 | echo "configure: failed program was:" >&5
|
|---|
| 4009 | cat conftest.$ac_ext >&5
|
|---|
| 4010 | rm -rf conftest*
|
|---|
| 4011 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 4012 | fi
|
|---|
| 4013 | rm -f conftest*
|
|---|
| 4014 | fi
|
|---|
| 4015 |
|
|---|
| 4016 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 4017 | echo "$ac_t""yes" 1>&6
|
|---|
| 4018 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 4019 | cat >> confdefs.h <<EOF
|
|---|
| 4020 | #define $ac_tr_func 1
|
|---|
| 4021 | EOF
|
|---|
| 4022 |
|
|---|
| 4023 | else
|
|---|
| 4024 | echo "$ac_t""no" 1>&6
|
|---|
| 4025 | fi
|
|---|
| 4026 | done
|
|---|
| 4027 |
|
|---|
| 4028 | # Extract the first word of "gmsgfmt", so it can be a program name with args.
|
|---|
| 4029 | set dummy gmsgfmt; ac_word=$2
|
|---|
| 4030 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 4031 | echo "configure:4032: checking for $ac_word" >&5
|
|---|
| 4032 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
|
|---|
| 4033 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4034 | else
|
|---|
| 4035 | case "$GMSGFMT" in
|
|---|
| 4036 | /* | [a-zA-Z]:*)
|
|---|
| 4037 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
|---|
| 4038 | ;;
|
|---|
| 4039 | ?:/*)
|
|---|
| 4040 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
|
|---|
| 4041 | ;;
|
|---|
| 4042 | *)
|
|---|
| 4043 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 4044 | ac_dummy="$PATH"
|
|---|
| 4045 | for ac_dir in $ac_dummy; do
|
|---|
| 4046 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 4047 | if test -f $ac_dir/$ac_word; then
|
|---|
| 4048 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
|
|---|
| 4049 | break
|
|---|
| 4050 | fi
|
|---|
| 4051 | if test -f $ac_dir/$ac_word$ac_exeext; then
|
|---|
| 4052 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
|
|---|
| 4053 | break
|
|---|
| 4054 | fi
|
|---|
| 4055 | done
|
|---|
| 4056 | IFS="$ac_save_ifs"
|
|---|
| 4057 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
|---|
| 4058 | ;;
|
|---|
| 4059 | esac
|
|---|
| 4060 | fi
|
|---|
| 4061 | GMSGFMT="$ac_cv_path_GMSGFMT"
|
|---|
| 4062 | if test -n "$GMSGFMT"; then
|
|---|
| 4063 | echo "$ac_t""$GMSGFMT" 1>&6
|
|---|
| 4064 | else
|
|---|
| 4065 | echo "$ac_t""no" 1>&6
|
|---|
| 4066 | fi
|
|---|
| 4067 |
|
|---|
| 4068 | # Extract the first word of "xgettext", so it can be a program name with args.
|
|---|
| 4069 | set dummy xgettext; ac_word=$2
|
|---|
| 4070 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 4071 | echo "configure:4072: checking for $ac_word" >&5
|
|---|
| 4072 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
|
|---|
| 4073 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4074 | else
|
|---|
| 4075 | case "$XGETTEXT" in
|
|---|
| 4076 | /*)
|
|---|
| 4077 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
|---|
| 4078 | ;;
|
|---|
| 4079 | *)
|
|---|
| 4080 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
|---|
| 4081 | for ac_dir in $PATH; do
|
|---|
| 4082 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 4083 | if test -f $ac_dir/$ac_word; then
|
|---|
| 4084 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
|---|
| 4085 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
|---|
| 4086 | break
|
|---|
| 4087 | fi
|
|---|
| 4088 | fi
|
|---|
| 4089 | done
|
|---|
| 4090 | IFS="$ac_save_ifs"
|
|---|
| 4091 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
|---|
| 4092 | ;;
|
|---|
| 4093 | esac
|
|---|
| 4094 | fi
|
|---|
| 4095 | XGETTEXT="$ac_cv_path_XGETTEXT"
|
|---|
| 4096 | if test -n "$XGETTEXT"; then
|
|---|
| 4097 | echo "$ac_t""$XGETTEXT" 1>&6
|
|---|
| 4098 | else
|
|---|
| 4099 | echo "$ac_t""no" 1>&6
|
|---|
| 4100 | fi
|
|---|
| 4101 |
|
|---|
| 4102 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4103 | #line 4104 "configure"
|
|---|
| 4104 | #include "confdefs.h"
|
|---|
| 4105 |
|
|---|
| 4106 | int main() {
|
|---|
| 4107 | extern int _nl_msg_cat_cntr;
|
|---|
| 4108 | return _nl_msg_cat_cntr
|
|---|
| 4109 | ; return 0; }
|
|---|
| 4110 | EOF
|
|---|
| 4111 | if { (eval echo configure:4112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4112 | rm -rf conftest*
|
|---|
| 4113 | CATOBJEXT=.gmo
|
|---|
| 4114 | DATADIRNAME=share
|
|---|
| 4115 | else
|
|---|
| 4116 | echo "configure: failed program was:" >&5
|
|---|
| 4117 | cat conftest.$ac_ext >&5
|
|---|
| 4118 | rm -rf conftest*
|
|---|
| 4119 | CATOBJEXT=.mo
|
|---|
| 4120 | DATADIRNAME=lib
|
|---|
| 4121 | fi
|
|---|
| 4122 | rm -f conftest*
|
|---|
| 4123 | INSTOBJEXT=.mo
|
|---|
| 4124 | fi
|
|---|
| 4125 | fi
|
|---|
| 4126 |
|
|---|
| 4127 | else
|
|---|
| 4128 | echo "$ac_t""no" 1>&6
|
|---|
| 4129 | fi
|
|---|
| 4130 |
|
|---|
| 4131 |
|
|---|
| 4132 |
|
|---|
| 4133 | if test "$CATOBJEXT" = "NONE"; then
|
|---|
| 4134 | nls_cv_use_gnu_gettext=yes
|
|---|
| 4135 | fi
|
|---|
| 4136 | fi
|
|---|
| 4137 |
|
|---|
| 4138 | if test "$nls_cv_use_gnu_gettext" = "yes"; then
|
|---|
| 4139 | INTLOBJS="\$(GETTOBJS)"
|
|---|
| 4140 | # Extract the first word of "msgfmt", so it can be a program name with args.
|
|---|
| 4141 | set dummy msgfmt; ac_word=$2
|
|---|
| 4142 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 4143 | echo "configure:4144: checking for $ac_word" >&5
|
|---|
| 4144 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
|
|---|
| 4145 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4146 | else
|
|---|
| 4147 | case "$MSGFMT" in
|
|---|
| 4148 | /*)
|
|---|
| 4149 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
|---|
| 4150 | ;;
|
|---|
| 4151 | *)
|
|---|
| 4152 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
|---|
| 4153 | for ac_dir in $PATH; do
|
|---|
| 4154 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 4155 | if test -f $ac_dir/$ac_word; then
|
|---|
| 4156 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
|---|
| 4157 | ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
|---|
| 4158 | break
|
|---|
| 4159 | fi
|
|---|
| 4160 | fi
|
|---|
| 4161 | done
|
|---|
| 4162 | IFS="$ac_save_ifs"
|
|---|
| 4163 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
|
|---|
| 4164 | ;;
|
|---|
| 4165 | esac
|
|---|
| 4166 | fi
|
|---|
| 4167 | MSGFMT="$ac_cv_path_MSGFMT"
|
|---|
| 4168 | if test -n "$MSGFMT"; then
|
|---|
| 4169 | echo "$ac_t""$MSGFMT" 1>&6
|
|---|
| 4170 | else
|
|---|
| 4171 | echo "$ac_t""no" 1>&6
|
|---|
| 4172 | fi
|
|---|
| 4173 |
|
|---|
| 4174 | # Extract the first word of "gmsgfmt", so it can be a program name with args.
|
|---|
| 4175 | set dummy gmsgfmt; ac_word=$2
|
|---|
| 4176 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 4177 | echo "configure:4178: checking for $ac_word" >&5
|
|---|
| 4178 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
|
|---|
| 4179 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4180 | else
|
|---|
| 4181 | case "$GMSGFMT" in
|
|---|
| 4182 | /* | [a-zA-Z]:*)
|
|---|
| 4183 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
|---|
| 4184 | ;;
|
|---|
| 4185 | ?:/*)
|
|---|
| 4186 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
|
|---|
| 4187 | ;;
|
|---|
| 4188 | *)
|
|---|
| 4189 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 4190 | ac_dummy="$PATH"
|
|---|
| 4191 | for ac_dir in $ac_dummy; do
|
|---|
| 4192 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 4193 | if test -f $ac_dir/$ac_word; then
|
|---|
| 4194 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
|
|---|
| 4195 | break
|
|---|
| 4196 | fi
|
|---|
| 4197 | if test -f $ac_dir/$ac_word$ac_exeext; then
|
|---|
| 4198 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
|
|---|
| 4199 | break
|
|---|
| 4200 | fi
|
|---|
| 4201 | done
|
|---|
| 4202 | IFS="$ac_save_ifs"
|
|---|
| 4203 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
|---|
| 4204 | ;;
|
|---|
| 4205 | esac
|
|---|
| 4206 | fi
|
|---|
| 4207 | GMSGFMT="$ac_cv_path_GMSGFMT"
|
|---|
| 4208 | if test -n "$GMSGFMT"; then
|
|---|
| 4209 | echo "$ac_t""$GMSGFMT" 1>&6
|
|---|
| 4210 | else
|
|---|
| 4211 | echo "$ac_t""no" 1>&6
|
|---|
| 4212 | fi
|
|---|
| 4213 |
|
|---|
| 4214 | # Extract the first word of "xgettext", so it can be a program name with args.
|
|---|
| 4215 | set dummy xgettext; ac_word=$2
|
|---|
| 4216 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 4217 | echo "configure:4218: checking for $ac_word" >&5
|
|---|
| 4218 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
|
|---|
| 4219 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4220 | else
|
|---|
| 4221 | case "$XGETTEXT" in
|
|---|
| 4222 | /*)
|
|---|
| 4223 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
|---|
| 4224 | ;;
|
|---|
| 4225 | *)
|
|---|
| 4226 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
|---|
| 4227 | for ac_dir in $PATH; do
|
|---|
| 4228 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 4229 | if test -f $ac_dir/$ac_word; then
|
|---|
| 4230 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
|---|
| 4231 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
|---|
| 4232 | break
|
|---|
| 4233 | fi
|
|---|
| 4234 | fi
|
|---|
| 4235 | done
|
|---|
| 4236 | IFS="$ac_save_ifs"
|
|---|
| 4237 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
|---|
| 4238 | ;;
|
|---|
| 4239 | esac
|
|---|
| 4240 | fi
|
|---|
| 4241 | XGETTEXT="$ac_cv_path_XGETTEXT"
|
|---|
| 4242 | if test -n "$XGETTEXT"; then
|
|---|
| 4243 | echo "$ac_t""$XGETTEXT" 1>&6
|
|---|
| 4244 | else
|
|---|
| 4245 | echo "$ac_t""no" 1>&6
|
|---|
| 4246 | fi
|
|---|
| 4247 |
|
|---|
| 4248 |
|
|---|
| 4249 | USE_INCLUDED_LIBINTL=yes
|
|---|
| 4250 | CATOBJEXT=.gmo
|
|---|
| 4251 | INSTOBJEXT=.mo
|
|---|
| 4252 | DATADIRNAME=share
|
|---|
| 4253 | INTLDEPS='$(top_builddir)/../intl/libintl.a'
|
|---|
| 4254 | INTLLIBS=$INTLDEPS
|
|---|
| 4255 | LIBS=`echo $LIBS | sed -e 's/-lintl//'`
|
|---|
| 4256 | nls_cv_header_intl=libintl.h
|
|---|
| 4257 | nls_cv_header_libgt=libgettext.h
|
|---|
| 4258 | fi
|
|---|
| 4259 |
|
|---|
| 4260 | if test "$XGETTEXT" != ":"; then
|
|---|
| 4261 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
|
|---|
| 4262 | : ;
|
|---|
| 4263 | else
|
|---|
| 4264 | echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
|
|---|
| 4265 | XGETTEXT=":"
|
|---|
| 4266 | fi
|
|---|
| 4267 | fi
|
|---|
| 4268 |
|
|---|
| 4269 | # We need to process the po/ directory.
|
|---|
| 4270 | POSUB=po
|
|---|
| 4271 | else
|
|---|
| 4272 | DATADIRNAME=share
|
|---|
| 4273 | nls_cv_header_intl=libintl.h
|
|---|
| 4274 | nls_cv_header_libgt=libgettext.h
|
|---|
| 4275 | fi
|
|---|
| 4276 |
|
|---|
| 4277 | # If this is used in GNU gettext we have to set USE_NLS to `yes'
|
|---|
| 4278 | # because some of the sources are only built for this goal.
|
|---|
| 4279 | if test "$PACKAGE" = gettext; then
|
|---|
| 4280 | USE_NLS=yes
|
|---|
| 4281 | USE_INCLUDED_LIBINTL=yes
|
|---|
| 4282 | fi
|
|---|
| 4283 |
|
|---|
| 4284 | for lang in $ALL_LINGUAS; do
|
|---|
| 4285 | GMOFILES="$GMOFILES $lang.gmo"
|
|---|
| 4286 | POFILES="$POFILES $lang.po"
|
|---|
| 4287 | done
|
|---|
| 4288 |
|
|---|
| 4289 |
|
|---|
| 4290 |
|
|---|
| 4291 |
|
|---|
| 4292 |
|
|---|
| 4293 |
|
|---|
| 4294 |
|
|---|
| 4295 |
|
|---|
| 4296 |
|
|---|
| 4297 |
|
|---|
| 4298 |
|
|---|
| 4299 |
|
|---|
| 4300 |
|
|---|
| 4301 |
|
|---|
| 4302 | if test "x$CATOBJEXT" != "x"; then
|
|---|
| 4303 | if test "x$ALL_LINGUAS" = "x"; then
|
|---|
| 4304 | LINGUAS=
|
|---|
| 4305 | else
|
|---|
| 4306 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
|
|---|
| 4307 | echo "configure:4308: checking for catalogs to be installed" >&5
|
|---|
| 4308 | NEW_LINGUAS=
|
|---|
| 4309 | for lang in ${LINGUAS=$ALL_LINGUAS}; do
|
|---|
| 4310 | case "$ALL_LINGUAS" in
|
|---|
| 4311 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
|
|---|
| 4312 | esac
|
|---|
| 4313 | done
|
|---|
| 4314 | LINGUAS=$NEW_LINGUAS
|
|---|
| 4315 | echo "$ac_t""$LINGUAS" 1>&6
|
|---|
| 4316 | fi
|
|---|
| 4317 |
|
|---|
| 4318 | if test -n "$LINGUAS"; then
|
|---|
| 4319 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
|
|---|
| 4320 | fi
|
|---|
| 4321 | fi
|
|---|
| 4322 |
|
|---|
| 4323 | if test $ac_cv_header_locale_h = yes; then
|
|---|
| 4324 | INCLUDE_LOCALE_H="#include <locale.h>"
|
|---|
| 4325 | else
|
|---|
| 4326 | INCLUDE_LOCALE_H="\
|
|---|
| 4327 | /* The system does not provide the header <locale.h>. Take care yourself. */"
|
|---|
| 4328 | fi
|
|---|
| 4329 |
|
|---|
| 4330 |
|
|---|
| 4331 | if test -f $srcdir/po2tbl.sed.in; then
|
|---|
| 4332 | if test "$CATOBJEXT" = ".cat"; then
|
|---|
| 4333 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
|
|---|
| 4334 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
|
|---|
| 4335 | echo "configure:4336: checking for linux/version.h" >&5
|
|---|
| 4336 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 4337 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4338 | else
|
|---|
| 4339 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4340 | #include <sys/types.h>
|
|---|
| 4341 | #line 4342 "configure"
|
|---|
| 4342 | #include "confdefs.h"
|
|---|
| 4343 | #include <linux/version.h>
|
|---|
| 4344 | EOF
|
|---|
| 4345 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 4346 | { (eval echo configure:4347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 4347 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 4348 | if test -z "$ac_err"; then
|
|---|
| 4349 | rm -rf conftest*
|
|---|
| 4350 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 4351 | else
|
|---|
| 4352 | echo "$ac_err" >&5
|
|---|
| 4353 | echo "configure: failed program was:" >&5
|
|---|
| 4354 | cat conftest.$ac_ext >&5
|
|---|
| 4355 | rm -rf conftest*
|
|---|
| 4356 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 4357 | fi
|
|---|
| 4358 | rm -f conftest*
|
|---|
| 4359 | fi
|
|---|
| 4360 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 4361 | echo "$ac_t""yes" 1>&6
|
|---|
| 4362 | msgformat=linux
|
|---|
| 4363 | else
|
|---|
| 4364 | echo "$ac_t""no" 1>&6
|
|---|
| 4365 | msgformat=xopen
|
|---|
| 4366 | fi
|
|---|
| 4367 |
|
|---|
| 4368 |
|
|---|
| 4369 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
|
|---|
| 4370 | fi
|
|---|
| 4371 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
|
|---|
| 4372 | $srcdir/po2tbl.sed.in > po2tbl.sed
|
|---|
| 4373 | fi
|
|---|
| 4374 |
|
|---|
| 4375 | if test "$PACKAGE" = "gettext"; then
|
|---|
| 4376 | GT_NO="#NO#"
|
|---|
| 4377 | GT_YES=
|
|---|
| 4378 | else
|
|---|
| 4379 | GT_NO=
|
|---|
| 4380 | GT_YES="#YES#"
|
|---|
| 4381 | fi
|
|---|
| 4382 |
|
|---|
| 4383 |
|
|---|
| 4384 |
|
|---|
| 4385 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
|
|---|
| 4386 |
|
|---|
| 4387 |
|
|---|
| 4388 | l=
|
|---|
| 4389 |
|
|---|
| 4390 |
|
|---|
| 4391 | if test -d $srcdir/po; then
|
|---|
| 4392 | test -d po || mkdir po
|
|---|
| 4393 | if test "x$srcdir" != "x."; then
|
|---|
| 4394 | if test "x`echo $srcdir | sed -e 's@.\:/.*@@' -e 's@/.*@@' `" = "x"; then
|
|---|
| 4395 | posrcprefix="$srcdir/"
|
|---|
| 4396 | else
|
|---|
| 4397 | posrcprefix="../$srcdir/"
|
|---|
| 4398 | fi
|
|---|
| 4399 | else
|
|---|
| 4400 | posrcprefix="../"
|
|---|
| 4401 | fi
|
|---|
| 4402 | rm -f po/POTFILES
|
|---|
| 4403 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
|
|---|
| 4404 | < $srcdir/po/POTFILES.in > po/POTFILES
|
|---|
| 4405 | fi
|
|---|
| 4406 |
|
|---|
| 4407 |
|
|---|
| 4408 | # Permit host specific settings.
|
|---|
| 4409 | . ${srcdir}/configure.host
|
|---|
| 4410 |
|
|---|
| 4411 |
|
|---|
| 4412 | # Find a good install program. We prefer a C program (faster),
|
|---|
| 4413 | # so one script is as good as another. But avoid the broken or
|
|---|
| 4414 | # incompatible versions:
|
|---|
| 4415 | # SysV /etc/install, /usr/sbin/install
|
|---|
| 4416 | # SunOS /usr/etc/install
|
|---|
| 4417 | # IRIX /sbin/install
|
|---|
| 4418 | # AIX /bin/install
|
|---|
| 4419 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
|---|
| 4420 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|---|
| 4421 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|---|
| 4422 | # ./install, which can be erroneously created by make from ./install.sh.
|
|---|
| 4423 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
|---|
| 4424 | echo "configure:4425: checking for a BSD compatible install" >&5
|
|---|
| 4425 | if test -z "$INSTALL"; then
|
|---|
| 4426 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
|---|
| 4427 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4428 | else
|
|---|
| 4429 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
|
|---|
| 4430 | for ac_dir in $PATH; do
|
|---|
| 4431 | # Account for people who put trailing slashes in PATH elements.
|
|---|
| 4432 | case "$ac_dir/" in
|
|---|
| 4433 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
|---|
| 4434 | # We reject the install program from OS/2 or W3.1
|
|---|
| 4435 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
|
|---|
| 4436 | *)
|
|---|
| 4437 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
|---|
| 4438 | # Don't use installbsd from OSF since it installs stuff as root
|
|---|
| 4439 | # by default.
|
|---|
| 4440 | for ac_prog in ginstall scoinst install; do
|
|---|
| 4441 | if test -f $ac_dir/$ac_prog$ac_exeext; then
|
|---|
| 4442 | if test $ac_prog = install &&
|
|---|
| 4443 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|---|
| 4444 | # AIX install. It has an incompatible calling convention.
|
|---|
| 4445 | :
|
|---|
| 4446 | else
|
|---|
| 4447 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
|
|---|
| 4448 | break 2
|
|---|
| 4449 | fi
|
|---|
| 4450 | fi
|
|---|
| 4451 | done
|
|---|
| 4452 | ;;
|
|---|
| 4453 | esac
|
|---|
| 4454 | done
|
|---|
| 4455 | IFS="$ac_save_IFS"
|
|---|
| 4456 |
|
|---|
| 4457 | fi
|
|---|
| 4458 | if test "${ac_cv_path_install+set}" = set; then
|
|---|
| 4459 | INSTALL="$ac_cv_path_install"
|
|---|
| 4460 | else
|
|---|
| 4461 | # As a last resort, use the slow shell script. We don't cache a
|
|---|
| 4462 | # path for INSTALL within a source directory, because that will
|
|---|
| 4463 | # break other packages using the cache if that directory is
|
|---|
| 4464 | # removed, or if the path is relative.
|
|---|
| 4465 | INSTALL="$ac_install_sh"
|
|---|
| 4466 | fi
|
|---|
| 4467 | fi
|
|---|
| 4468 | echo "$ac_t""$INSTALL" 1>&6
|
|---|
| 4469 |
|
|---|
| 4470 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
|---|
| 4471 | # It thinks the first close brace ends the variable substitution.
|
|---|
| 4472 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|---|
| 4473 |
|
|---|
| 4474 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
|---|
| 4475 |
|
|---|
| 4476 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|---|
| 4477 |
|
|---|
| 4478 |
|
|---|
| 4479 | BFD_HOST_64BIT_LONG=0
|
|---|
| 4480 | BFD_HOST_64_BIT_DEFINED=0
|
|---|
| 4481 | BFD_HOST_64_BIT=
|
|---|
| 4482 | BFD_HOST_U_64_BIT=
|
|---|
| 4483 | if test "x${HOST_64BIT_TYPE}" = "xlong"; then
|
|---|
| 4484 | BFD_HOST_64BIT_LONG=1
|
|---|
| 4485 | elif test "x${HOST_64BIT_TYPE}" != "x"; then
|
|---|
| 4486 | BFD_HOST_64_BIT_DEFINED=1
|
|---|
| 4487 | BFD_HOST_64_BIT=${HOST_64BIT_TYPE}
|
|---|
| 4488 | BFD_HOST_U_64_BIT=${HOST_U_64BIT_TYPE}
|
|---|
| 4489 | fi
|
|---|
| 4490 |
|
|---|
| 4491 |
|
|---|
| 4492 |
|
|---|
| 4493 |
|
|---|
| 4494 |
|
|---|
| 4495 | # Put a plausible default for CC_FOR_BUILD in Makefile.
|
|---|
| 4496 | if test -z "$CC_FOR_BUILD"; then
|
|---|
| 4497 | if test "x$cross_compiling" = "xno"; then
|
|---|
| 4498 | CC_FOR_BUILD='$(CC)'
|
|---|
| 4499 | else
|
|---|
| 4500 | CC_FOR_BUILD=gcc
|
|---|
| 4501 | fi
|
|---|
| 4502 | fi
|
|---|
| 4503 |
|
|---|
| 4504 | # Also set EXEEXT_FOR_BUILD.
|
|---|
| 4505 | if test "x$cross_compiling" = "xno"; then
|
|---|
| 4506 | EXEEXT_FOR_BUILD='$(EXEEXT)'
|
|---|
| 4507 | else
|
|---|
| 4508 | echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
|
|---|
| 4509 | echo "configure:4510: checking for build system executable suffix" >&5
|
|---|
| 4510 | if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
|
|---|
| 4511 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4512 | else
|
|---|
| 4513 | rm -f conftest*
|
|---|
| 4514 | echo 'int main () { return 0; }' > conftest.c
|
|---|
| 4515 | bfd_cv_build_exeext=
|
|---|
| 4516 | ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
|
|---|
| 4517 | for file in conftest.*; do
|
|---|
| 4518 | case $file in
|
|---|
| 4519 | *.c | *.o | *.obj | *.ilk | *.pdb) ;;
|
|---|
| 4520 | *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
|
|---|
| 4521 | esac
|
|---|
| 4522 | done
|
|---|
| 4523 | rm -f conftest*
|
|---|
| 4524 | test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
|
|---|
| 4525 | fi
|
|---|
| 4526 |
|
|---|
| 4527 | echo "$ac_t""$bfd_cv_build_exeext" 1>&6
|
|---|
| 4528 | EXEEXT_FOR_BUILD=""
|
|---|
| 4529 | test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
|
|---|
| 4530 | fi
|
|---|
| 4531 |
|
|---|
| 4532 |
|
|---|
| 4533 | for ac_hdr in stddef.h string.h strings.h stdlib.h time.h unistd.h
|
|---|
| 4534 | do
|
|---|
| 4535 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|---|
| 4536 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|---|
| 4537 | echo "configure:4538: checking for $ac_hdr" >&5
|
|---|
| 4538 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 4539 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4540 | else
|
|---|
| 4541 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4542 | #include <sys/types.h>
|
|---|
| 4543 | #line 4544 "configure"
|
|---|
| 4544 | #include "confdefs.h"
|
|---|
| 4545 | #include <$ac_hdr>
|
|---|
| 4546 | EOF
|
|---|
| 4547 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 4548 | { (eval echo configure:4549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 4549 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 4550 | if test -z "$ac_err"; then
|
|---|
| 4551 | rm -rf conftest*
|
|---|
| 4552 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 4553 | else
|
|---|
| 4554 | echo "$ac_err" >&5
|
|---|
| 4555 | echo "configure: failed program was:" >&5
|
|---|
| 4556 | cat conftest.$ac_ext >&5
|
|---|
| 4557 | rm -rf conftest*
|
|---|
| 4558 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 4559 | fi
|
|---|
| 4560 | rm -f conftest*
|
|---|
| 4561 | fi
|
|---|
| 4562 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 4563 | echo "$ac_t""yes" 1>&6
|
|---|
| 4564 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|---|
| 4565 | cat >> confdefs.h <<EOF
|
|---|
| 4566 | #define $ac_tr_hdr 1
|
|---|
| 4567 | EOF
|
|---|
| 4568 |
|
|---|
| 4569 | else
|
|---|
| 4570 | echo "$ac_t""no" 1>&6
|
|---|
| 4571 | fi
|
|---|
| 4572 | done
|
|---|
| 4573 |
|
|---|
| 4574 | for ac_hdr in fcntl.h sys/file.h sys/time.h
|
|---|
| 4575 | do
|
|---|
| 4576 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|---|
| 4577 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|---|
| 4578 | echo "configure:4579: checking for $ac_hdr" >&5
|
|---|
| 4579 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 4580 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4581 | else
|
|---|
| 4582 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4583 | #include <sys/types.h>
|
|---|
| 4584 | #line 4585 "configure"
|
|---|
| 4585 | #include "confdefs.h"
|
|---|
| 4586 | #include <$ac_hdr>
|
|---|
| 4587 | EOF
|
|---|
| 4588 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 4589 | { (eval echo configure:4590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 4590 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 4591 | if test -z "$ac_err"; then
|
|---|
| 4592 | rm -rf conftest*
|
|---|
| 4593 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 4594 | else
|
|---|
| 4595 | echo "$ac_err" >&5
|
|---|
| 4596 | echo "configure: failed program was:" >&5
|
|---|
| 4597 | cat conftest.$ac_ext >&5
|
|---|
| 4598 | rm -rf conftest*
|
|---|
| 4599 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 4600 | fi
|
|---|
| 4601 | rm -f conftest*
|
|---|
| 4602 | fi
|
|---|
| 4603 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 4604 | echo "$ac_t""yes" 1>&6
|
|---|
| 4605 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|---|
| 4606 | cat >> confdefs.h <<EOF
|
|---|
| 4607 | #define $ac_tr_hdr 1
|
|---|
| 4608 | EOF
|
|---|
| 4609 |
|
|---|
| 4610 | else
|
|---|
| 4611 | echo "$ac_t""no" 1>&6
|
|---|
| 4612 | fi
|
|---|
| 4613 | done
|
|---|
| 4614 |
|
|---|
| 4615 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
|
|---|
| 4616 | echo "configure:4617: checking whether time.h and sys/time.h may both be included" >&5
|
|---|
| 4617 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
|
|---|
| 4618 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4619 | else
|
|---|
| 4620 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4621 | #line 4622 "configure"
|
|---|
| 4622 | #include "confdefs.h"
|
|---|
| 4623 | #include <sys/types.h>
|
|---|
| 4624 | #include <sys/time.h>
|
|---|
| 4625 | #include <time.h>
|
|---|
| 4626 | int main() {
|
|---|
| 4627 | struct tm *tp;
|
|---|
| 4628 | ; return 0; }
|
|---|
| 4629 | EOF
|
|---|
| 4630 | if { (eval echo configure:4631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 4631 | rm -rf conftest*
|
|---|
| 4632 | ac_cv_header_time=yes
|
|---|
| 4633 | else
|
|---|
| 4634 | echo "configure: failed program was:" >&5
|
|---|
| 4635 | cat conftest.$ac_ext >&5
|
|---|
| 4636 | rm -rf conftest*
|
|---|
| 4637 | ac_cv_header_time=no
|
|---|
| 4638 | fi
|
|---|
| 4639 | rm -f conftest*
|
|---|
| 4640 | fi
|
|---|
| 4641 |
|
|---|
| 4642 | echo "$ac_t""$ac_cv_header_time" 1>&6
|
|---|
| 4643 | if test $ac_cv_header_time = yes; then
|
|---|
| 4644 | cat >> confdefs.h <<\EOF
|
|---|
| 4645 | #define TIME_WITH_SYS_TIME 1
|
|---|
| 4646 | EOF
|
|---|
| 4647 |
|
|---|
| 4648 | fi
|
|---|
| 4649 |
|
|---|
| 4650 | ac_header_dirent=no
|
|---|
| 4651 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
|
|---|
| 4652 | do
|
|---|
| 4653 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|---|
| 4654 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
|
|---|
| 4655 | echo "configure:4656: checking for $ac_hdr that defines DIR" >&5
|
|---|
| 4656 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
|
|---|
| 4657 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4658 | else
|
|---|
| 4659 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4660 | #line 4661 "configure"
|
|---|
| 4661 | #include "confdefs.h"
|
|---|
| 4662 | #include <sys/types.h>
|
|---|
| 4663 | #include <$ac_hdr>
|
|---|
| 4664 | int main() {
|
|---|
| 4665 | DIR *dirp = 0;
|
|---|
| 4666 | ; return 0; }
|
|---|
| 4667 | EOF
|
|---|
| 4668 | if { (eval echo configure:4669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 4669 | rm -rf conftest*
|
|---|
| 4670 | eval "ac_cv_header_dirent_$ac_safe=yes"
|
|---|
| 4671 | else
|
|---|
| 4672 | echo "configure: failed program was:" >&5
|
|---|
| 4673 | cat conftest.$ac_ext >&5
|
|---|
| 4674 | rm -rf conftest*
|
|---|
| 4675 | eval "ac_cv_header_dirent_$ac_safe=no"
|
|---|
| 4676 | fi
|
|---|
| 4677 | rm -f conftest*
|
|---|
| 4678 | fi
|
|---|
| 4679 | if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
|
|---|
| 4680 | echo "$ac_t""yes" 1>&6
|
|---|
| 4681 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|---|
| 4682 | cat >> confdefs.h <<EOF
|
|---|
| 4683 | #define $ac_tr_hdr 1
|
|---|
| 4684 | EOF
|
|---|
| 4685 | ac_header_dirent=$ac_hdr; break
|
|---|
| 4686 | else
|
|---|
| 4687 | echo "$ac_t""no" 1>&6
|
|---|
| 4688 | fi
|
|---|
| 4689 | done
|
|---|
| 4690 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
|---|
| 4691 | if test $ac_header_dirent = dirent.h; then
|
|---|
| 4692 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
|
|---|
| 4693 | echo "configure:4694: checking for opendir in -ldir" >&5
|
|---|
| 4694 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
|
|---|
| 4695 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 4696 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4697 | else
|
|---|
| 4698 | ac_save_LIBS="$LIBS"
|
|---|
| 4699 | LIBS="-ldir $LIBS"
|
|---|
| 4700 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4701 | #line 4702 "configure"
|
|---|
| 4702 | #include "confdefs.h"
|
|---|
| 4703 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 4704 | /* We use char because int might match the return type of a gcc2
|
|---|
| 4705 | builtin and then its argument prototype would still apply. */
|
|---|
| 4706 | char opendir();
|
|---|
| 4707 |
|
|---|
| 4708 | int main() {
|
|---|
| 4709 | opendir()
|
|---|
| 4710 | ; return 0; }
|
|---|
| 4711 | EOF
|
|---|
| 4712 | if { (eval echo configure:4713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4713 | rm -rf conftest*
|
|---|
| 4714 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 4715 | else
|
|---|
| 4716 | echo "configure: failed program was:" >&5
|
|---|
| 4717 | cat conftest.$ac_ext >&5
|
|---|
| 4718 | rm -rf conftest*
|
|---|
| 4719 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 4720 | fi
|
|---|
| 4721 | rm -f conftest*
|
|---|
| 4722 | LIBS="$ac_save_LIBS"
|
|---|
| 4723 |
|
|---|
| 4724 | fi
|
|---|
| 4725 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 4726 | echo "$ac_t""yes" 1>&6
|
|---|
| 4727 | LIBS="$LIBS -ldir"
|
|---|
| 4728 | else
|
|---|
| 4729 | echo "$ac_t""no" 1>&6
|
|---|
| 4730 | fi
|
|---|
| 4731 |
|
|---|
| 4732 | else
|
|---|
| 4733 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
|
|---|
| 4734 | echo "configure:4735: checking for opendir in -lx" >&5
|
|---|
| 4735 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
|
|---|
| 4736 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 4737 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4738 | else
|
|---|
| 4739 | ac_save_LIBS="$LIBS"
|
|---|
| 4740 | LIBS="-lx $LIBS"
|
|---|
| 4741 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4742 | #line 4743 "configure"
|
|---|
| 4743 | #include "confdefs.h"
|
|---|
| 4744 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 4745 | /* We use char because int might match the return type of a gcc2
|
|---|
| 4746 | builtin and then its argument prototype would still apply. */
|
|---|
| 4747 | char opendir();
|
|---|
| 4748 |
|
|---|
| 4749 | int main() {
|
|---|
| 4750 | opendir()
|
|---|
| 4751 | ; return 0; }
|
|---|
| 4752 | EOF
|
|---|
| 4753 | if { (eval echo configure:4754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4754 | rm -rf conftest*
|
|---|
| 4755 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 4756 | else
|
|---|
| 4757 | echo "configure: failed program was:" >&5
|
|---|
| 4758 | cat conftest.$ac_ext >&5
|
|---|
| 4759 | rm -rf conftest*
|
|---|
| 4760 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 4761 | fi
|
|---|
| 4762 | rm -f conftest*
|
|---|
| 4763 | LIBS="$ac_save_LIBS"
|
|---|
| 4764 |
|
|---|
| 4765 | fi
|
|---|
| 4766 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 4767 | echo "$ac_t""yes" 1>&6
|
|---|
| 4768 | LIBS="$LIBS -lx"
|
|---|
| 4769 | else
|
|---|
| 4770 | echo "$ac_t""no" 1>&6
|
|---|
| 4771 | fi
|
|---|
| 4772 |
|
|---|
| 4773 | fi
|
|---|
| 4774 |
|
|---|
| 4775 | for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
|
|---|
| 4776 | do
|
|---|
| 4777 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 4778 | echo "configure:4779: checking for $ac_func" >&5
|
|---|
| 4779 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 4780 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4781 | else
|
|---|
| 4782 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4783 | #line 4784 "configure"
|
|---|
| 4784 | #include "confdefs.h"
|
|---|
| 4785 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 4786 | which can conflict with char $ac_func(); below. */
|
|---|
| 4787 | #include <assert.h>
|
|---|
| 4788 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 4789 | /* We use char because int might match the return type of a gcc2
|
|---|
| 4790 | builtin and then its argument prototype would still apply. */
|
|---|
| 4791 | char $ac_func();
|
|---|
| 4792 |
|
|---|
| 4793 | int main() {
|
|---|
| 4794 |
|
|---|
| 4795 | /* The GNU C library defines this for functions which it implements
|
|---|
| 4796 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 4797 | something starting with __ and the normal name is an alias. */
|
|---|
| 4798 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 4799 | choke me
|
|---|
| 4800 | #else
|
|---|
| 4801 | $ac_func();
|
|---|
| 4802 | #endif
|
|---|
| 4803 |
|
|---|
| 4804 | ; return 0; }
|
|---|
| 4805 | EOF
|
|---|
| 4806 | if { (eval echo configure:4807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4807 | rm -rf conftest*
|
|---|
| 4808 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 4809 | else
|
|---|
| 4810 | echo "configure: failed program was:" >&5
|
|---|
| 4811 | cat conftest.$ac_ext >&5
|
|---|
| 4812 | rm -rf conftest*
|
|---|
| 4813 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 4814 | fi
|
|---|
| 4815 | rm -f conftest*
|
|---|
| 4816 | fi
|
|---|
| 4817 |
|
|---|
| 4818 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 4819 | echo "$ac_t""yes" 1>&6
|
|---|
| 4820 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 4821 | cat >> confdefs.h <<EOF
|
|---|
| 4822 | #define $ac_tr_func 1
|
|---|
| 4823 | EOF
|
|---|
| 4824 |
|
|---|
| 4825 | else
|
|---|
| 4826 | echo "$ac_t""no" 1>&6
|
|---|
| 4827 | fi
|
|---|
| 4828 | done
|
|---|
| 4829 |
|
|---|
| 4830 |
|
|---|
| 4831 |
|
|---|
| 4832 | case "${host}" in
|
|---|
| 4833 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows* | *-*-os2*)
|
|---|
| 4834 | cat >> confdefs.h <<\EOF
|
|---|
| 4835 | #define USE_BINARY_FOPEN 1
|
|---|
| 4836 | EOF
|
|---|
| 4837 | ;;
|
|---|
| 4838 | esac
|
|---|
| 4839 |
|
|---|
| 4840 | echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
|
|---|
| 4841 | echo "configure:4842: checking whether strstr must be declared" >&5
|
|---|
| 4842 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
|
|---|
| 4843 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4844 | else
|
|---|
| 4845 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4846 | #line 4847 "configure"
|
|---|
| 4847 | #include "confdefs.h"
|
|---|
| 4848 |
|
|---|
| 4849 | #include <stdio.h>
|
|---|
| 4850 | #ifdef HAVE_STRING_H
|
|---|
| 4851 | #include <string.h>
|
|---|
| 4852 | #else
|
|---|
| 4853 | #ifdef HAVE_STRINGS_H
|
|---|
| 4854 | #include <strings.h>
|
|---|
| 4855 | #endif
|
|---|
| 4856 | #endif
|
|---|
| 4857 | #ifdef HAVE_STDLIB_H
|
|---|
| 4858 | #include <stdlib.h>
|
|---|
| 4859 | #endif
|
|---|
| 4860 | #ifdef HAVE_UNISTD_H
|
|---|
| 4861 | #include <unistd.h>
|
|---|
| 4862 | #endif
|
|---|
| 4863 | int main() {
|
|---|
| 4864 | char *(*pfn) = (char *(*)) strstr
|
|---|
| 4865 | ; return 0; }
|
|---|
| 4866 | EOF
|
|---|
| 4867 | if { (eval echo configure:4868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 4868 | rm -rf conftest*
|
|---|
| 4869 | bfd_cv_decl_needed_strstr=no
|
|---|
| 4870 | else
|
|---|
| 4871 | echo "configure: failed program was:" >&5
|
|---|
| 4872 | cat conftest.$ac_ext >&5
|
|---|
| 4873 | rm -rf conftest*
|
|---|
| 4874 | bfd_cv_decl_needed_strstr=yes
|
|---|
| 4875 | fi
|
|---|
| 4876 | rm -f conftest*
|
|---|
| 4877 | fi
|
|---|
| 4878 |
|
|---|
| 4879 | echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
|
|---|
| 4880 | if test $bfd_cv_decl_needed_strstr = yes; then
|
|---|
| 4881 | cat >> confdefs.h <<\EOF
|
|---|
| 4882 | #define NEED_DECLARATION_STRSTR 1
|
|---|
| 4883 | EOF
|
|---|
| 4884 |
|
|---|
| 4885 | fi
|
|---|
| 4886 |
|
|---|
| 4887 | echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
|
|---|
| 4888 | echo "configure:4889: checking whether malloc must be declared" >&5
|
|---|
| 4889 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
|
|---|
| 4890 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4891 | else
|
|---|
| 4892 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4893 | #line 4894 "configure"
|
|---|
| 4894 | #include "confdefs.h"
|
|---|
| 4895 |
|
|---|
| 4896 | #include <stdio.h>
|
|---|
| 4897 | #ifdef HAVE_STRING_H
|
|---|
| 4898 | #include <string.h>
|
|---|
| 4899 | #else
|
|---|
| 4900 | #ifdef HAVE_STRINGS_H
|
|---|
| 4901 | #include <strings.h>
|
|---|
| 4902 | #endif
|
|---|
| 4903 | #endif
|
|---|
| 4904 | #ifdef HAVE_STDLIB_H
|
|---|
| 4905 | #include <stdlib.h>
|
|---|
| 4906 | #endif
|
|---|
| 4907 | #ifdef HAVE_UNISTD_H
|
|---|
| 4908 | #include <unistd.h>
|
|---|
| 4909 | #endif
|
|---|
| 4910 | int main() {
|
|---|
| 4911 | char *(*pfn) = (char *(*)) malloc
|
|---|
| 4912 | ; return 0; }
|
|---|
| 4913 | EOF
|
|---|
| 4914 | if { (eval echo configure:4915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 4915 | rm -rf conftest*
|
|---|
| 4916 | bfd_cv_decl_needed_malloc=no
|
|---|
| 4917 | else
|
|---|
| 4918 | echo "configure: failed program was:" >&5
|
|---|
| 4919 | cat conftest.$ac_ext >&5
|
|---|
| 4920 | rm -rf conftest*
|
|---|
| 4921 | bfd_cv_decl_needed_malloc=yes
|
|---|
| 4922 | fi
|
|---|
| 4923 | rm -f conftest*
|
|---|
| 4924 | fi
|
|---|
| 4925 |
|
|---|
| 4926 | echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
|
|---|
| 4927 | if test $bfd_cv_decl_needed_malloc = yes; then
|
|---|
| 4928 | cat >> confdefs.h <<\EOF
|
|---|
| 4929 | #define NEED_DECLARATION_MALLOC 1
|
|---|
| 4930 | EOF
|
|---|
| 4931 |
|
|---|
| 4932 | fi
|
|---|
| 4933 |
|
|---|
| 4934 | echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
|
|---|
| 4935 | echo "configure:4936: checking whether realloc must be declared" >&5
|
|---|
| 4936 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
|
|---|
| 4937 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4938 | else
|
|---|
| 4939 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4940 | #line 4941 "configure"
|
|---|
| 4941 | #include "confdefs.h"
|
|---|
| 4942 |
|
|---|
| 4943 | #include <stdio.h>
|
|---|
| 4944 | #ifdef HAVE_STRING_H
|
|---|
| 4945 | #include <string.h>
|
|---|
| 4946 | #else
|
|---|
| 4947 | #ifdef HAVE_STRINGS_H
|
|---|
| 4948 | #include <strings.h>
|
|---|
| 4949 | #endif
|
|---|
| 4950 | #endif
|
|---|
| 4951 | #ifdef HAVE_STDLIB_H
|
|---|
| 4952 | #include <stdlib.h>
|
|---|
| 4953 | #endif
|
|---|
| 4954 | #ifdef HAVE_UNISTD_H
|
|---|
| 4955 | #include <unistd.h>
|
|---|
| 4956 | #endif
|
|---|
| 4957 | int main() {
|
|---|
| 4958 | char *(*pfn) = (char *(*)) realloc
|
|---|
| 4959 | ; return 0; }
|
|---|
| 4960 | EOF
|
|---|
| 4961 | if { (eval echo configure:4962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 4962 | rm -rf conftest*
|
|---|
| 4963 | bfd_cv_decl_needed_realloc=no
|
|---|
| 4964 | else
|
|---|
| 4965 | echo "configure: failed program was:" >&5
|
|---|
| 4966 | cat conftest.$ac_ext >&5
|
|---|
| 4967 | rm -rf conftest*
|
|---|
| 4968 | bfd_cv_decl_needed_realloc=yes
|
|---|
| 4969 | fi
|
|---|
| 4970 | rm -f conftest*
|
|---|
| 4971 | fi
|
|---|
| 4972 |
|
|---|
| 4973 | echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
|
|---|
| 4974 | if test $bfd_cv_decl_needed_realloc = yes; then
|
|---|
| 4975 | cat >> confdefs.h <<\EOF
|
|---|
| 4976 | #define NEED_DECLARATION_REALLOC 1
|
|---|
| 4977 | EOF
|
|---|
| 4978 |
|
|---|
| 4979 | fi
|
|---|
| 4980 |
|
|---|
| 4981 | echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
|
|---|
| 4982 | echo "configure:4983: checking whether free must be declared" >&5
|
|---|
| 4983 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
|
|---|
| 4984 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4985 | else
|
|---|
| 4986 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4987 | #line 4988 "configure"
|
|---|
| 4988 | #include "confdefs.h"
|
|---|
| 4989 |
|
|---|
| 4990 | #include <stdio.h>
|
|---|
| 4991 | #ifdef HAVE_STRING_H
|
|---|
| 4992 | #include <string.h>
|
|---|
| 4993 | #else
|
|---|
| 4994 | #ifdef HAVE_STRINGS_H
|
|---|
| 4995 | #include <strings.h>
|
|---|
| 4996 | #endif
|
|---|
| 4997 | #endif
|
|---|
| 4998 | #ifdef HAVE_STDLIB_H
|
|---|
| 4999 | #include <stdlib.h>
|
|---|
| 5000 | #endif
|
|---|
| 5001 | #ifdef HAVE_UNISTD_H
|
|---|
| 5002 | #include <unistd.h>
|
|---|
| 5003 | #endif
|
|---|
| 5004 | int main() {
|
|---|
| 5005 | char *(*pfn) = (char *(*)) free
|
|---|
| 5006 | ; return 0; }
|
|---|
| 5007 | EOF
|
|---|
| 5008 | if { (eval echo configure:5009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5009 | rm -rf conftest*
|
|---|
| 5010 | bfd_cv_decl_needed_free=no
|
|---|
| 5011 | else
|
|---|
| 5012 | echo "configure: failed program was:" >&5
|
|---|
| 5013 | cat conftest.$ac_ext >&5
|
|---|
| 5014 | rm -rf conftest*
|
|---|
| 5015 | bfd_cv_decl_needed_free=yes
|
|---|
| 5016 | fi
|
|---|
| 5017 | rm -f conftest*
|
|---|
| 5018 | fi
|
|---|
| 5019 |
|
|---|
| 5020 | echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
|
|---|
| 5021 | if test $bfd_cv_decl_needed_free = yes; then
|
|---|
| 5022 | cat >> confdefs.h <<\EOF
|
|---|
| 5023 | #define NEED_DECLARATION_FREE 1
|
|---|
| 5024 | EOF
|
|---|
| 5025 |
|
|---|
| 5026 | fi
|
|---|
| 5027 |
|
|---|
| 5028 | echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
|
|---|
| 5029 | echo "configure:5030: checking whether getenv must be declared" >&5
|
|---|
| 5030 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
|
|---|
| 5031 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5032 | else
|
|---|
| 5033 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5034 | #line 5035 "configure"
|
|---|
| 5035 | #include "confdefs.h"
|
|---|
| 5036 |
|
|---|
| 5037 | #include <stdio.h>
|
|---|
| 5038 | #ifdef HAVE_STRING_H
|
|---|
| 5039 | #include <string.h>
|
|---|
| 5040 | #else
|
|---|
| 5041 | #ifdef HAVE_STRINGS_H
|
|---|
| 5042 | #include <strings.h>
|
|---|
| 5043 | #endif
|
|---|
| 5044 | #endif
|
|---|
| 5045 | #ifdef HAVE_STDLIB_H
|
|---|
| 5046 | #include <stdlib.h>
|
|---|
| 5047 | #endif
|
|---|
| 5048 | #ifdef HAVE_UNISTD_H
|
|---|
| 5049 | #include <unistd.h>
|
|---|
| 5050 | #endif
|
|---|
| 5051 | int main() {
|
|---|
| 5052 | char *(*pfn) = (char *(*)) getenv
|
|---|
| 5053 | ; return 0; }
|
|---|
| 5054 | EOF
|
|---|
| 5055 | if { (eval echo configure:5056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5056 | rm -rf conftest*
|
|---|
| 5057 | bfd_cv_decl_needed_getenv=no
|
|---|
| 5058 | else
|
|---|
| 5059 | echo "configure: failed program was:" >&5
|
|---|
| 5060 | cat conftest.$ac_ext >&5
|
|---|
| 5061 | rm -rf conftest*
|
|---|
| 5062 | bfd_cv_decl_needed_getenv=yes
|
|---|
| 5063 | fi
|
|---|
| 5064 | rm -f conftest*
|
|---|
| 5065 | fi
|
|---|
| 5066 |
|
|---|
| 5067 | echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
|
|---|
| 5068 | if test $bfd_cv_decl_needed_getenv = yes; then
|
|---|
| 5069 | cat >> confdefs.h <<\EOF
|
|---|
| 5070 | #define NEED_DECLARATION_GETENV 1
|
|---|
| 5071 | EOF
|
|---|
| 5072 |
|
|---|
| 5073 | fi
|
|---|
| 5074 |
|
|---|
| 5075 |
|
|---|
| 5076 | # If we are configured native, pick a core file support file.
|
|---|
| 5077 | COREFILE=
|
|---|
| 5078 | COREFLAG=
|
|---|
| 5079 | TRAD_HEADER=
|
|---|
| 5080 | if test "${target}" = "${host}"; then
|
|---|
| 5081 | case "${host}" in
|
|---|
| 5082 | alpha*-*-freebsd*)
|
|---|
| 5083 | COREFILE=''
|
|---|
| 5084 | ;;
|
|---|
| 5085 | alpha*-*-linux-gnu*)
|
|---|
| 5086 | COREFILE=trad-core.lo
|
|---|
| 5087 | TRAD_HEADER='"hosts/alphalinux.h"'
|
|---|
| 5088 | ;;
|
|---|
| 5089 | alpha*-*-netbsd*) COREFILE=netbsd-core.lo ;;
|
|---|
| 5090 | alpha*-*-*) COREFILE=osf-core.lo ;;
|
|---|
| 5091 | arm-*-freebsd*) COREFILE='' ;;
|
|---|
| 5092 | arm-*-riscix) COREFILE=trad-core.lo ;;
|
|---|
| 5093 | hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
|
|---|
| 5094 | hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
|
|---|
| 5095 | hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
|
|---|
| 5096 | hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
|
|---|
| 5097 | COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
|
|---|
| 5098 | i370-*-*)
|
|---|
| 5099 | COREFILE=trad-core.lo
|
|---|
| 5100 | TRAD_HEADER='"hosts/i370linux.h"'
|
|---|
| 5101 | ;;
|
|---|
| 5102 |
|
|---|
| 5103 | i[3456]86-sequent-bsd*)
|
|---|
| 5104 | COREFILE=trad-core.lo
|
|---|
| 5105 | TRAD_HEADER='"hosts/symmetry.h"'
|
|---|
| 5106 | ;;
|
|---|
| 5107 | i[3456]86-sequent-sysv4*) ;;
|
|---|
| 5108 | i[3456]86-sequent-sysv*)
|
|---|
| 5109 | COREFILE=trad-core.lo
|
|---|
| 5110 | TRAD_HEADER='"hosts/symmetry.h"'
|
|---|
| 5111 | ;;
|
|---|
| 5112 | i[3456]86-*-bsd* | i[34567]86-*-freebsd[1234] | i[34567]86-*-freebsd[1234]\.* | i[34567]86-*-freebsd*aout*)
|
|---|
| 5113 | COREFILE=trad-core.lo
|
|---|
| 5114 | TRAD_HEADER='"hosts/i386bsd.h"'
|
|---|
| 5115 | ;;
|
|---|
| 5116 | i[3456]86-*-freebsd*)
|
|---|
| 5117 | COREFILE=''
|
|---|
| 5118 | TRAD_HEADER='"hosts/i386bsd.h"'
|
|---|
| 5119 | ;;
|
|---|
| 5120 | i[3456]86-*-netbsd* | i[3456]86-*-openbsd*)
|
|---|
| 5121 | COREFILE=netbsd-core.lo
|
|---|
| 5122 | ;;
|
|---|
| 5123 | i[3456]86-esix-sysv3*)
|
|---|
| 5124 | COREFILE=trad-core.lo
|
|---|
| 5125 | TRAD_HEADER='"hosts/esix.h"'
|
|---|
| 5126 | ;;
|
|---|
| 5127 | i[3456]86-*-sco3.2v5*)
|
|---|
| 5128 | COREFILE=sco5-core.lo
|
|---|
| 5129 | ;;
|
|---|
| 5130 | i[3456]86-*-sco* | i[3456]86-*-isc*)
|
|---|
| 5131 | COREFILE=trad-core.lo
|
|---|
| 5132 | TRAD_HEADER='"hosts/i386sco.h"'
|
|---|
| 5133 | ;;
|
|---|
| 5134 | i[3456]86-*-mach3*)
|
|---|
| 5135 | COREFILE=trad-core.lo
|
|---|
| 5136 | TRAD_HEADER='"hosts/i386mach3.h"'
|
|---|
| 5137 | ;;
|
|---|
| 5138 | i[3456]86-*-linux-gnu*)
|
|---|
| 5139 | COREFILE=trad-core.lo
|
|---|
| 5140 | TRAD_HEADER='"hosts/i386linux.h"'
|
|---|
| 5141 | ;;
|
|---|
| 5142 | i[3456]86-*-isc*) COREFILE=trad-core.lo ;;
|
|---|
| 5143 | i[3456]86-*-aix*) COREFILE=aix386-core.lo ;;
|
|---|
| 5144 | i[3456]86-*-os2*)
|
|---|
| 5145 | COREFILE=trad-core.lo
|
|---|
| 5146 | cat >> confdefs.h <<\EOF
|
|---|
| 5147 | #define TRAD_HEADER "hosts/i386emx.h"
|
|---|
| 5148 | EOF
|
|---|
| 5149 |
|
|---|
| 5150 | ;;
|
|---|
| 5151 | i860-*-mach3* | i860-*-osf1*)
|
|---|
| 5152 | COREFILE=trad-core.lo
|
|---|
| 5153 | TRAD_HEADER='"hosts/i860mach3.h"'
|
|---|
| 5154 | ;;
|
|---|
| 5155 | mips-dec-bsd*)
|
|---|
| 5156 | COREFILE=trad-core.lo
|
|---|
| 5157 | TRAD_HEADER='"hosts/mipsbsd.h"'
|
|---|
| 5158 | ;;
|
|---|
| 5159 | mips-dec-mach3*)
|
|---|
| 5160 | COREFILE=trad-core.lo
|
|---|
| 5161 | TRAD_HEADER='"hosts/mipsmach3.h"'
|
|---|
| 5162 | ;;
|
|---|
| 5163 | mips-*-netbsd* | mips*-*-openbsd*)
|
|---|
| 5164 | COREFILE=netbsd-core.lo
|
|---|
| 5165 | ;;
|
|---|
| 5166 | mips-dec-*)
|
|---|
| 5167 | COREFILE=trad-core.lo
|
|---|
| 5168 | TRAD_HEADER='"hosts/decstation.h"'
|
|---|
| 5169 | ;;
|
|---|
| 5170 | mips-sgi-irix4*) COREFILE=irix-core.lo ;;
|
|---|
| 5171 | mips-sgi-irix5*) COREFILE=irix-core.lo ;;
|
|---|
| 5172 | mips-sgi-irix6*) COREFILE=irix-core.lo ;;
|
|---|
| 5173 | mips-*-mach3*)
|
|---|
| 5174 | COREFILE=trad-core.lo
|
|---|
| 5175 | TRAD_HEADER='"hosts/mipsmach3.h"'
|
|---|
| 5176 | ;;
|
|---|
| 5177 | mips-*-sysv4*) ;;
|
|---|
| 5178 | mips-*-sysv* | mips-*-riscos*)
|
|---|
| 5179 | COREFILE=trad-core.lo
|
|---|
| 5180 | TRAD_HEADER='"hosts/riscos.h"'
|
|---|
| 5181 | ;;
|
|---|
| 5182 | mips-sony-bsd*)
|
|---|
| 5183 | COREFILE=trad-core.lo
|
|---|
| 5184 | TRAD_HEADER='"hosts/news-mips.h"'
|
|---|
| 5185 | ;;
|
|---|
| 5186 | m68*-bull*-sysv*)
|
|---|
| 5187 | COREFILE=trad-core.lo
|
|---|
| 5188 | TRAD_HEADER='"hosts/dpx2.h"'
|
|---|
| 5189 | ;;
|
|---|
| 5190 | m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
|
|---|
| 5191 | m68*-hp-bsd*)
|
|---|
| 5192 | COREFILE=trad-core.lo
|
|---|
| 5193 | TRAD_HEADER='"hosts/hp300bsd.h"'
|
|---|
| 5194 | ;;
|
|---|
| 5195 | m68*-*-linux-gnu*)
|
|---|
| 5196 | COREFILE=trad-core.lo
|
|---|
| 5197 | TRAD_HEADER='"hosts/m68klinux.h"'
|
|---|
| 5198 | ;;
|
|---|
| 5199 | m68*-motorola-sysv*)
|
|---|
| 5200 | COREFILE=trad-core.lo
|
|---|
| 5201 | TRAD_HEADER='"hosts/delta68.h"'
|
|---|
| 5202 | ;;
|
|---|
| 5203 | m68*-sony-*)
|
|---|
| 5204 | COREFILE=trad-core.lo
|
|---|
| 5205 | TRAD_HEADER='"hosts/news.h"'
|
|---|
| 5206 | ;;
|
|---|
| 5207 | m68*-*-netbsd* | m68*-*-openbsd*)
|
|---|
| 5208 | COREFILE=netbsd-core.lo
|
|---|
| 5209 | ;;
|
|---|
| 5210 | m68*-apple-aux*)
|
|---|
| 5211 | COREFILE=trad-core.lo
|
|---|
| 5212 | TRAD_HEADER='"hosts/m68kaux.h"'
|
|---|
| 5213 | ;;
|
|---|
| 5214 | m88*-*-sysv4*) ;;
|
|---|
| 5215 | m88*-motorola-sysv*) COREFILE=ptrace-core.lo ;;
|
|---|
| 5216 | m88*-*-mach3*)
|
|---|
| 5217 | COREFILE=trad-core.lo
|
|---|
| 5218 | TRAD_HEADER='"hosts/m88kmach3.h"'
|
|---|
| 5219 | ;;
|
|---|
| 5220 | ns32k-pc532-mach)
|
|---|
| 5221 | COREFILE=trad-core.lo
|
|---|
| 5222 | TRAD_HEADER='"hosts/pc532mach.h"'
|
|---|
| 5223 | ;;
|
|---|
| 5224 | ns32k-*-netbsd* | ns32k-*-openbsd*)
|
|---|
| 5225 | COREFILE=netbsd-core.lo
|
|---|
| 5226 | ;;
|
|---|
| 5227 | rs6000-*-lynx*) COREFILE=lynx-core.lo ;;
|
|---|
| 5228 | rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
|
|---|
| 5229 | COREFILE=rs6000-core.lo
|
|---|
| 5230 | COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
|
|---|
| 5231 | ;;
|
|---|
| 5232 | rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
|
|---|
| 5233 | rs6000-*-*) COREFILE=rs6000-core.lo ;;
|
|---|
| 5234 | powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
|
|---|
| 5235 | powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
|
|---|
| 5236 | powerpc-*-beos*) ;;
|
|---|
| 5237 | powerpc-*-freebsd*) COREFILE='' ;;
|
|---|
| 5238 | powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
|
|---|
| 5239 | powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
|
|---|
| 5240 | sparc-*-netbsd* | sparc-*-openbsd*)
|
|---|
| 5241 | COREFILE=netbsd-core.lo
|
|---|
| 5242 | ;;
|
|---|
| 5243 | tahoe-*-*)
|
|---|
| 5244 | COREFILE=trad-core.lo
|
|---|
| 5245 | TRAD_HEADER='"hosts/tahoe.h"'
|
|---|
| 5246 | ;;
|
|---|
| 5247 | vax-*-ultrix2*)
|
|---|
| 5248 | COREFILE=trad-core.lo
|
|---|
| 5249 | TRAD_HEADER='"hosts/vaxult2.h"'
|
|---|
| 5250 | ;;
|
|---|
| 5251 | vax-*-ultrix*)
|
|---|
| 5252 | COREFILE=trad-core.lo
|
|---|
| 5253 | TRAD_HEADER='"hosts/vaxult2.h"'
|
|---|
| 5254 | ;;
|
|---|
| 5255 | vax-*-*)
|
|---|
| 5256 | COREFILE=trad-core.lo
|
|---|
| 5257 | TRAD_HEADER='"hosts/vaxbsd.h"'
|
|---|
| 5258 | ;;
|
|---|
| 5259 | esac
|
|---|
| 5260 |
|
|---|
| 5261 | case "$COREFILE" in
|
|---|
| 5262 | aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
|
|---|
| 5263 | hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
|
|---|
| 5264 | hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
|
|---|
| 5265 | irix-core.lo) COREFLAG=-DIRIX_CORE ;;
|
|---|
| 5266 | lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
|
|---|
| 5267 | netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
|
|---|
| 5268 | osf-core.lo) COREFLAG=-DOSF_CORE ;;
|
|---|
| 5269 | ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
|
|---|
| 5270 | rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
|
|---|
| 5271 | sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
|
|---|
| 5272 | trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
|
|---|
| 5273 | esac
|
|---|
| 5274 |
|
|---|
| 5275 | # ELF corefile support has several flavors, but all of
|
|---|
| 5276 | # them use something called <sys/procfs.h>
|
|---|
| 5277 | for ac_hdr in sys/procfs.h
|
|---|
| 5278 | do
|
|---|
| 5279 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|---|
| 5280 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|---|
| 5281 | echo "configure:5282: checking for $ac_hdr" >&5
|
|---|
| 5282 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 5283 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5284 | else
|
|---|
| 5285 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5286 | #include <sys/types.h>
|
|---|
| 5287 | #line 5288 "configure"
|
|---|
| 5288 | #include "confdefs.h"
|
|---|
| 5289 | #include <$ac_hdr>
|
|---|
| 5290 | EOF
|
|---|
| 5291 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 5292 | { (eval echo configure:5293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 5293 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 5294 | if test -z "$ac_err"; then
|
|---|
| 5295 | rm -rf conftest*
|
|---|
| 5296 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 5297 | else
|
|---|
| 5298 | echo "$ac_err" >&5
|
|---|
| 5299 | echo "configure: failed program was:" >&5
|
|---|
| 5300 | cat conftest.$ac_ext >&5
|
|---|
| 5301 | rm -rf conftest*
|
|---|
| 5302 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 5303 | fi
|
|---|
| 5304 | rm -f conftest*
|
|---|
| 5305 | fi
|
|---|
| 5306 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 5307 | echo "$ac_t""yes" 1>&6
|
|---|
| 5308 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|---|
| 5309 | cat >> confdefs.h <<EOF
|
|---|
| 5310 | #define $ac_tr_hdr 1
|
|---|
| 5311 | EOF
|
|---|
| 5312 |
|
|---|
| 5313 | else
|
|---|
| 5314 | echo "$ac_t""no" 1>&6
|
|---|
| 5315 | fi
|
|---|
| 5316 | done
|
|---|
| 5317 |
|
|---|
| 5318 | if test "$ac_cv_header_sys_procfs_h" = yes; then
|
|---|
| 5319 | echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6
|
|---|
| 5320 | echo "configure:5321: checking for prstatus_t in sys/procfs.h" >&5
|
|---|
| 5321 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then
|
|---|
| 5322 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5323 | else
|
|---|
| 5324 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5325 | #line 5326 "configure"
|
|---|
| 5326 | #include "confdefs.h"
|
|---|
| 5327 |
|
|---|
| 5328 | #define _SYSCALL32
|
|---|
| 5329 | #include <sys/procfs.h>
|
|---|
| 5330 | int main() {
|
|---|
| 5331 | prstatus_t avar
|
|---|
| 5332 | ; return 0; }
|
|---|
| 5333 | EOF
|
|---|
| 5334 | if { (eval echo configure:5335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5335 | rm -rf conftest*
|
|---|
| 5336 | bfd_cv_have_sys_procfs_type_prstatus_t=yes
|
|---|
| 5337 | else
|
|---|
| 5338 | echo "configure: failed program was:" >&5
|
|---|
| 5339 | cat conftest.$ac_ext >&5
|
|---|
| 5340 | rm -rf conftest*
|
|---|
| 5341 | bfd_cv_have_sys_procfs_type_prstatus_t=no
|
|---|
| 5342 |
|
|---|
| 5343 | fi
|
|---|
| 5344 | rm -f conftest*
|
|---|
| 5345 | fi
|
|---|
| 5346 |
|
|---|
| 5347 | if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
|
|---|
| 5348 | cat >> confdefs.h <<\EOF
|
|---|
| 5349 | #define HAVE_PRSTATUS_T 1
|
|---|
| 5350 | EOF
|
|---|
| 5351 |
|
|---|
| 5352 | fi
|
|---|
| 5353 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6
|
|---|
| 5354 |
|
|---|
| 5355 | echo $ac_n "checking for prstatus32_t in sys/procfs.h""... $ac_c" 1>&6
|
|---|
| 5356 | echo "configure:5357: checking for prstatus32_t in sys/procfs.h" >&5
|
|---|
| 5357 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus32_t'+set}'`\" = set"; then
|
|---|
| 5358 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5359 | else
|
|---|
| 5360 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5361 | #line 5362 "configure"
|
|---|
| 5362 | #include "confdefs.h"
|
|---|
| 5363 |
|
|---|
| 5364 | #define _SYSCALL32
|
|---|
| 5365 | #include <sys/procfs.h>
|
|---|
| 5366 | int main() {
|
|---|
| 5367 | prstatus32_t avar
|
|---|
| 5368 | ; return 0; }
|
|---|
| 5369 | EOF
|
|---|
| 5370 | if { (eval echo configure:5371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5371 | rm -rf conftest*
|
|---|
| 5372 | bfd_cv_have_sys_procfs_type_prstatus32_t=yes
|
|---|
| 5373 | else
|
|---|
| 5374 | echo "configure: failed program was:" >&5
|
|---|
| 5375 | cat conftest.$ac_ext >&5
|
|---|
| 5376 | rm -rf conftest*
|
|---|
| 5377 | bfd_cv_have_sys_procfs_type_prstatus32_t=no
|
|---|
| 5378 |
|
|---|
| 5379 | fi
|
|---|
| 5380 | rm -f conftest*
|
|---|
| 5381 | fi
|
|---|
| 5382 |
|
|---|
| 5383 | if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
|
|---|
| 5384 | cat >> confdefs.h <<\EOF
|
|---|
| 5385 | #define HAVE_PRSTATUS32_T 1
|
|---|
| 5386 | EOF
|
|---|
| 5387 |
|
|---|
| 5388 | fi
|
|---|
| 5389 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus32_t" 1>&6
|
|---|
| 5390 |
|
|---|
| 5391 | echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
|
|---|
| 5392 | echo "configure:5393: checking for prstatus_t.pr_who in sys/procfs.h" >&5
|
|---|
| 5393 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then
|
|---|
| 5394 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5395 | else
|
|---|
| 5396 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5397 | #line 5398 "configure"
|
|---|
| 5398 | #include "confdefs.h"
|
|---|
| 5399 |
|
|---|
| 5400 | #define _SYSCALL32
|
|---|
| 5401 | #include <sys/procfs.h>
|
|---|
| 5402 | int main() {
|
|---|
| 5403 | prstatus_t avar; void* aref = (void*) &avar.pr_who
|
|---|
| 5404 | ; return 0; }
|
|---|
| 5405 | EOF
|
|---|
| 5406 | if { (eval echo configure:5407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5407 | rm -rf conftest*
|
|---|
| 5408 | bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
|
|---|
| 5409 | else
|
|---|
| 5410 | echo "configure: failed program was:" >&5
|
|---|
| 5411 | cat conftest.$ac_ext >&5
|
|---|
| 5412 | rm -rf conftest*
|
|---|
| 5413 | bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
|
|---|
| 5414 |
|
|---|
| 5415 | fi
|
|---|
| 5416 | rm -f conftest*
|
|---|
| 5417 | fi
|
|---|
| 5418 |
|
|---|
| 5419 | if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
|
|---|
| 5420 | cat >> confdefs.h <<\EOF
|
|---|
| 5421 | #define HAVE_PRSTATUS_T_PR_WHO 1
|
|---|
| 5422 | EOF
|
|---|
| 5423 |
|
|---|
| 5424 | fi
|
|---|
| 5425 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6
|
|---|
| 5426 |
|
|---|
| 5427 | echo $ac_n "checking for prstatus32_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
|
|---|
| 5428 | echo "configure:5429: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
|
|---|
| 5429 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who'+set}'`\" = set"; then
|
|---|
| 5430 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5431 | else
|
|---|
| 5432 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5433 | #line 5434 "configure"
|
|---|
| 5434 | #include "confdefs.h"
|
|---|
| 5435 |
|
|---|
| 5436 | #define _SYSCALL32
|
|---|
| 5437 | #include <sys/procfs.h>
|
|---|
| 5438 | int main() {
|
|---|
| 5439 | prstatus32_t avar; void* aref = (void*) &avar.pr_who
|
|---|
| 5440 | ; return 0; }
|
|---|
| 5441 | EOF
|
|---|
| 5442 | if { (eval echo configure:5443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5443 | rm -rf conftest*
|
|---|
| 5444 | bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
|
|---|
| 5445 | else
|
|---|
| 5446 | echo "configure: failed program was:" >&5
|
|---|
| 5447 | cat conftest.$ac_ext >&5
|
|---|
| 5448 | rm -rf conftest*
|
|---|
| 5449 | bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
|
|---|
| 5450 |
|
|---|
| 5451 | fi
|
|---|
| 5452 | rm -f conftest*
|
|---|
| 5453 | fi
|
|---|
| 5454 |
|
|---|
| 5455 | if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
|
|---|
| 5456 | cat >> confdefs.h <<\EOF
|
|---|
| 5457 | #define HAVE_PRSTATUS32_T_PR_WHO 1
|
|---|
| 5458 | EOF
|
|---|
| 5459 |
|
|---|
| 5460 | fi
|
|---|
| 5461 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" 1>&6
|
|---|
| 5462 |
|
|---|
| 5463 | echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
|
|---|
| 5464 | echo "configure:5465: checking for pstatus_t in sys/procfs.h" >&5
|
|---|
| 5465 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
|
|---|
| 5466 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5467 | else
|
|---|
| 5468 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5469 | #line 5470 "configure"
|
|---|
| 5470 | #include "confdefs.h"
|
|---|
| 5471 |
|
|---|
| 5472 | #define _SYSCALL32
|
|---|
| 5473 | #include <sys/procfs.h>
|
|---|
| 5474 | int main() {
|
|---|
| 5475 | pstatus_t avar
|
|---|
| 5476 | ; return 0; }
|
|---|
| 5477 | EOF
|
|---|
| 5478 | if { (eval echo configure:5479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5479 | rm -rf conftest*
|
|---|
| 5480 | bfd_cv_have_sys_procfs_type_pstatus_t=yes
|
|---|
| 5481 | else
|
|---|
| 5482 | echo "configure: failed program was:" >&5
|
|---|
| 5483 | cat conftest.$ac_ext >&5
|
|---|
| 5484 | rm -rf conftest*
|
|---|
| 5485 | bfd_cv_have_sys_procfs_type_pstatus_t=no
|
|---|
| 5486 |
|
|---|
| 5487 | fi
|
|---|
| 5488 | rm -f conftest*
|
|---|
| 5489 | fi
|
|---|
| 5490 |
|
|---|
| 5491 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
|
|---|
| 5492 | cat >> confdefs.h <<\EOF
|
|---|
| 5493 | #define HAVE_PSTATUS_T 1
|
|---|
| 5494 | EOF
|
|---|
| 5495 |
|
|---|
| 5496 | fi
|
|---|
| 5497 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
|
|---|
| 5498 |
|
|---|
| 5499 | echo $ac_n "checking for pxstatus_t in sys/procfs.h""... $ac_c" 1>&6
|
|---|
| 5500 | echo "configure:5501: checking for pxstatus_t in sys/procfs.h" >&5
|
|---|
| 5501 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pxstatus_t'+set}'`\" = set"; then
|
|---|
| 5502 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5503 | else
|
|---|
| 5504 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5505 | #line 5506 "configure"
|
|---|
| 5506 | #include "confdefs.h"
|
|---|
| 5507 |
|
|---|
| 5508 | #define _SYSCALL32
|
|---|
| 5509 | #include <sys/procfs.h>
|
|---|
| 5510 | int main() {
|
|---|
| 5511 | pxstatus_t avar
|
|---|
| 5512 | ; return 0; }
|
|---|
| 5513 | EOF
|
|---|
| 5514 | if { (eval echo configure:5515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5515 | rm -rf conftest*
|
|---|
| 5516 | bfd_cv_have_sys_procfs_type_pxstatus_t=yes
|
|---|
| 5517 | else
|
|---|
| 5518 | echo "configure: failed program was:" >&5
|
|---|
| 5519 | cat conftest.$ac_ext >&5
|
|---|
| 5520 | rm -rf conftest*
|
|---|
| 5521 | bfd_cv_have_sys_procfs_type_pxstatus_t=no
|
|---|
| 5522 |
|
|---|
| 5523 | fi
|
|---|
| 5524 | rm -f conftest*
|
|---|
| 5525 | fi
|
|---|
| 5526 |
|
|---|
| 5527 | if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
|
|---|
| 5528 | cat >> confdefs.h <<\EOF
|
|---|
| 5529 | #define HAVE_PXSTATUS_T 1
|
|---|
| 5530 | EOF
|
|---|
| 5531 |
|
|---|
| 5532 | fi
|
|---|
| 5533 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_pxstatus_t" 1>&6
|
|---|
| 5534 |
|
|---|
| 5535 | echo $ac_n "checking for pstatus32_t in sys/procfs.h""... $ac_c" 1>&6
|
|---|
| 5536 | echo "configure:5537: checking for pstatus32_t in sys/procfs.h" >&5
|
|---|
| 5537 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus32_t'+set}'`\" = set"; then
|
|---|
| 5538 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5539 | else
|
|---|
| 5540 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5541 | #line 5542 "configure"
|
|---|
| 5542 | #include "confdefs.h"
|
|---|
| 5543 |
|
|---|
| 5544 | #define _SYSCALL32
|
|---|
| 5545 | #include <sys/procfs.h>
|
|---|
| 5546 | int main() {
|
|---|
| 5547 | pstatus32_t avar
|
|---|
| 5548 | ; return 0; }
|
|---|
| 5549 | EOF
|
|---|
| 5550 | if { (eval echo configure:5551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5551 | rm -rf conftest*
|
|---|
| 5552 | bfd_cv_have_sys_procfs_type_pstatus32_t=yes
|
|---|
| 5553 | else
|
|---|
| 5554 | echo "configure: failed program was:" >&5
|
|---|
| 5555 | cat conftest.$ac_ext >&5
|
|---|
| 5556 | rm -rf conftest*
|
|---|
| 5557 | bfd_cv_have_sys_procfs_type_pstatus32_t=no
|
|---|
| 5558 |
|
|---|
| 5559 | fi
|
|---|
| 5560 | rm -f conftest*
|
|---|
| 5561 | fi
|
|---|
| 5562 |
|
|---|
| 5563 | if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
|
|---|
| 5564 | cat >> confdefs.h <<\EOF
|
|---|
| 5565 | #define HAVE_PSTATUS32_T 1
|
|---|
| 5566 | EOF
|
|---|
| 5567 |
|
|---|
| 5568 | fi
|
|---|
| 5569 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus32_t" 1>&6
|
|---|
| 5570 |
|
|---|
| 5571 | echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6
|
|---|
| 5572 | echo "configure:5573: checking for prpsinfo_t in sys/procfs.h" >&5
|
|---|
| 5573 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then
|
|---|
| 5574 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5575 | else
|
|---|
| 5576 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5577 | #line 5578 "configure"
|
|---|
| 5578 | #include "confdefs.h"
|
|---|
| 5579 |
|
|---|
| 5580 | #define _SYSCALL32
|
|---|
| 5581 | #include <sys/procfs.h>
|
|---|
| 5582 | int main() {
|
|---|
| 5583 | prpsinfo_t avar
|
|---|
| 5584 | ; return 0; }
|
|---|
| 5585 | EOF
|
|---|
| 5586 | if { (eval echo configure:5587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5587 | rm -rf conftest*
|
|---|
| 5588 | bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
|
|---|
| 5589 | else
|
|---|
| 5590 | echo "configure: failed program was:" >&5
|
|---|
| 5591 | cat conftest.$ac_ext >&5
|
|---|
| 5592 | rm -rf conftest*
|
|---|
| 5593 | bfd_cv_have_sys_procfs_type_prpsinfo_t=no
|
|---|
| 5594 |
|
|---|
| 5595 | fi
|
|---|
| 5596 | rm -f conftest*
|
|---|
| 5597 | fi
|
|---|
| 5598 |
|
|---|
| 5599 | if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
|
|---|
| 5600 | cat >> confdefs.h <<\EOF
|
|---|
| 5601 | #define HAVE_PRPSINFO_T 1
|
|---|
| 5602 | EOF
|
|---|
| 5603 |
|
|---|
| 5604 | fi
|
|---|
| 5605 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6
|
|---|
| 5606 |
|
|---|
| 5607 | echo $ac_n "checking for prpsinfo32_t in sys/procfs.h""... $ac_c" 1>&6
|
|---|
| 5608 | echo "configure:5609: checking for prpsinfo32_t in sys/procfs.h" >&5
|
|---|
| 5609 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo32_t'+set}'`\" = set"; then
|
|---|
| 5610 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5611 | else
|
|---|
| 5612 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5613 | #line 5614 "configure"
|
|---|
| 5614 | #include "confdefs.h"
|
|---|
| 5615 |
|
|---|
| 5616 | #define _SYSCALL32
|
|---|
| 5617 | #include <sys/procfs.h>
|
|---|
| 5618 | int main() {
|
|---|
| 5619 | prpsinfo32_t avar
|
|---|
| 5620 | ; return 0; }
|
|---|
| 5621 | EOF
|
|---|
| 5622 | if { (eval echo configure:5623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5623 | rm -rf conftest*
|
|---|
| 5624 | bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
|
|---|
| 5625 | else
|
|---|
| 5626 | echo "configure: failed program was:" >&5
|
|---|
| 5627 | cat conftest.$ac_ext >&5
|
|---|
| 5628 | rm -rf conftest*
|
|---|
| 5629 | bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
|
|---|
| 5630 |
|
|---|
| 5631 | fi
|
|---|
| 5632 | rm -f conftest*
|
|---|
| 5633 | fi
|
|---|
| 5634 |
|
|---|
| 5635 | if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
|
|---|
| 5636 | cat >> confdefs.h <<\EOF
|
|---|
| 5637 | #define HAVE_PRPSINFO32_T 1
|
|---|
| 5638 | EOF
|
|---|
| 5639 |
|
|---|
| 5640 | fi
|
|---|
| 5641 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo32_t" 1>&6
|
|---|
| 5642 |
|
|---|
| 5643 | echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6
|
|---|
| 5644 | echo "configure:5645: checking for psinfo_t in sys/procfs.h" >&5
|
|---|
| 5645 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then
|
|---|
| 5646 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5647 | else
|
|---|
| 5648 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5649 | #line 5650 "configure"
|
|---|
| 5650 | #include "confdefs.h"
|
|---|
| 5651 |
|
|---|
| 5652 | #define _SYSCALL32
|
|---|
| 5653 | #include <sys/procfs.h>
|
|---|
| 5654 | int main() {
|
|---|
| 5655 | psinfo_t avar
|
|---|
| 5656 | ; return 0; }
|
|---|
| 5657 | EOF
|
|---|
| 5658 | if { (eval echo configure:5659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5659 | rm -rf conftest*
|
|---|
| 5660 | bfd_cv_have_sys_procfs_type_psinfo_t=yes
|
|---|
| 5661 | else
|
|---|
| 5662 | echo "configure: failed program was:" >&5
|
|---|
| 5663 | cat conftest.$ac_ext >&5
|
|---|
| 5664 | rm -rf conftest*
|
|---|
| 5665 | bfd_cv_have_sys_procfs_type_psinfo_t=no
|
|---|
| 5666 |
|
|---|
| 5667 | fi
|
|---|
| 5668 | rm -f conftest*
|
|---|
| 5669 | fi
|
|---|
| 5670 |
|
|---|
| 5671 | if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
|
|---|
| 5672 | cat >> confdefs.h <<\EOF
|
|---|
| 5673 | #define HAVE_PSINFO_T 1
|
|---|
| 5674 | EOF
|
|---|
| 5675 |
|
|---|
| 5676 | fi
|
|---|
| 5677 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6
|
|---|
| 5678 |
|
|---|
| 5679 | echo $ac_n "checking for psinfo32_t in sys/procfs.h""... $ac_c" 1>&6
|
|---|
| 5680 | echo "configure:5681: checking for psinfo32_t in sys/procfs.h" >&5
|
|---|
| 5681 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo32_t'+set}'`\" = set"; then
|
|---|
| 5682 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5683 | else
|
|---|
| 5684 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5685 | #line 5686 "configure"
|
|---|
| 5686 | #include "confdefs.h"
|
|---|
| 5687 |
|
|---|
| 5688 | #define _SYSCALL32
|
|---|
| 5689 | #include <sys/procfs.h>
|
|---|
| 5690 | int main() {
|
|---|
| 5691 | psinfo32_t avar
|
|---|
| 5692 | ; return 0; }
|
|---|
| 5693 | EOF
|
|---|
| 5694 | if { (eval echo configure:5695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5695 | rm -rf conftest*
|
|---|
| 5696 | bfd_cv_have_sys_procfs_type_psinfo32_t=yes
|
|---|
| 5697 | else
|
|---|
| 5698 | echo "configure: failed program was:" >&5
|
|---|
| 5699 | cat conftest.$ac_ext >&5
|
|---|
| 5700 | rm -rf conftest*
|
|---|
| 5701 | bfd_cv_have_sys_procfs_type_psinfo32_t=no
|
|---|
| 5702 |
|
|---|
| 5703 | fi
|
|---|
| 5704 | rm -f conftest*
|
|---|
| 5705 | fi
|
|---|
| 5706 |
|
|---|
| 5707 | if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
|
|---|
| 5708 | cat >> confdefs.h <<\EOF
|
|---|
| 5709 | #define HAVE_PSINFO32_T 1
|
|---|
| 5710 | EOF
|
|---|
| 5711 |
|
|---|
| 5712 | fi
|
|---|
| 5713 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo32_t" 1>&6
|
|---|
| 5714 |
|
|---|
| 5715 | echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6
|
|---|
| 5716 | echo "configure:5717: checking for lwpstatus_t in sys/procfs.h" >&5
|
|---|
| 5717 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then
|
|---|
| 5718 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5719 | else
|
|---|
| 5720 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5721 | #line 5722 "configure"
|
|---|
| 5722 | #include "confdefs.h"
|
|---|
| 5723 |
|
|---|
| 5724 | #define _SYSCALL32
|
|---|
| 5725 | #include <sys/procfs.h>
|
|---|
| 5726 | int main() {
|
|---|
| 5727 | lwpstatus_t avar
|
|---|
| 5728 | ; return 0; }
|
|---|
| 5729 | EOF
|
|---|
| 5730 | if { (eval echo configure:5731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5731 | rm -rf conftest*
|
|---|
| 5732 | bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
|
|---|
| 5733 | else
|
|---|
| 5734 | echo "configure: failed program was:" >&5
|
|---|
| 5735 | cat conftest.$ac_ext >&5
|
|---|
| 5736 | rm -rf conftest*
|
|---|
| 5737 | bfd_cv_have_sys_procfs_type_lwpstatus_t=no
|
|---|
| 5738 |
|
|---|
| 5739 | fi
|
|---|
| 5740 | rm -f conftest*
|
|---|
| 5741 | fi
|
|---|
| 5742 |
|
|---|
| 5743 | if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
|
|---|
| 5744 | cat >> confdefs.h <<\EOF
|
|---|
| 5745 | #define HAVE_LWPSTATUS_T 1
|
|---|
| 5746 | EOF
|
|---|
| 5747 |
|
|---|
| 5748 | fi
|
|---|
| 5749 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6
|
|---|
| 5750 |
|
|---|
| 5751 | echo $ac_n "checking for lwpxstatus_t in sys/procfs.h""... $ac_c" 1>&6
|
|---|
| 5752 | echo "configure:5753: checking for lwpxstatus_t in sys/procfs.h" >&5
|
|---|
| 5753 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpxstatus_t'+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 |
|
|---|
| 5760 | #define _SYSCALL32
|
|---|
| 5761 | #include <sys/procfs.h>
|
|---|
| 5762 | int main() {
|
|---|
| 5763 | lwpxstatus_t avar
|
|---|
| 5764 | ; return 0; }
|
|---|
| 5765 | EOF
|
|---|
| 5766 | if { (eval echo configure:5767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5767 | rm -rf conftest*
|
|---|
| 5768 | bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
|
|---|
| 5769 | else
|
|---|
| 5770 | echo "configure: failed program was:" >&5
|
|---|
| 5771 | cat conftest.$ac_ext >&5
|
|---|
| 5772 | rm -rf conftest*
|
|---|
| 5773 | bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
|
|---|
| 5774 |
|
|---|
| 5775 | fi
|
|---|
| 5776 | rm -f conftest*
|
|---|
| 5777 | fi
|
|---|
| 5778 |
|
|---|
| 5779 | if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
|
|---|
| 5780 | cat >> confdefs.h <<\EOF
|
|---|
| 5781 | #define HAVE_LWPXSTATUS_T 1
|
|---|
| 5782 | EOF
|
|---|
| 5783 |
|
|---|
| 5784 | fi
|
|---|
| 5785 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpxstatus_t" 1>&6
|
|---|
| 5786 |
|
|---|
| 5787 | echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6
|
|---|
| 5788 | echo "configure:5789: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
|
|---|
| 5789 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then
|
|---|
| 5790 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5791 | else
|
|---|
| 5792 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5793 | #line 5794 "configure"
|
|---|
| 5794 | #include "confdefs.h"
|
|---|
| 5795 |
|
|---|
| 5796 | #define _SYSCALL32
|
|---|
| 5797 | #include <sys/procfs.h>
|
|---|
| 5798 | int main() {
|
|---|
| 5799 | lwpstatus_t avar; void* aref = (void*) &avar.pr_context
|
|---|
| 5800 | ; return 0; }
|
|---|
| 5801 | EOF
|
|---|
| 5802 | if { (eval echo configure:5803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5803 | rm -rf conftest*
|
|---|
| 5804 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
|
|---|
| 5805 | else
|
|---|
| 5806 | echo "configure: failed program was:" >&5
|
|---|
| 5807 | cat conftest.$ac_ext >&5
|
|---|
| 5808 | rm -rf conftest*
|
|---|
| 5809 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
|
|---|
| 5810 |
|
|---|
| 5811 | fi
|
|---|
| 5812 | rm -f conftest*
|
|---|
| 5813 | fi
|
|---|
| 5814 |
|
|---|
| 5815 | if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
|
|---|
| 5816 | cat >> confdefs.h <<\EOF
|
|---|
| 5817 | #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
|
|---|
| 5818 | EOF
|
|---|
| 5819 |
|
|---|
| 5820 | fi
|
|---|
| 5821 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6
|
|---|
| 5822 |
|
|---|
| 5823 | echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6
|
|---|
| 5824 | echo "configure:5825: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
|
|---|
| 5825 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then
|
|---|
| 5826 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5827 | else
|
|---|
| 5828 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5829 | #line 5830 "configure"
|
|---|
| 5830 | #include "confdefs.h"
|
|---|
| 5831 |
|
|---|
| 5832 | #define _SYSCALL32
|
|---|
| 5833 | #include <sys/procfs.h>
|
|---|
| 5834 | int main() {
|
|---|
| 5835 | lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
|
|---|
| 5836 | ; return 0; }
|
|---|
| 5837 | EOF
|
|---|
| 5838 | if { (eval echo configure:5839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5839 | rm -rf conftest*
|
|---|
| 5840 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
|
|---|
| 5841 | else
|
|---|
| 5842 | echo "configure: failed program was:" >&5
|
|---|
| 5843 | cat conftest.$ac_ext >&5
|
|---|
| 5844 | rm -rf conftest*
|
|---|
| 5845 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
|
|---|
| 5846 |
|
|---|
| 5847 | fi
|
|---|
| 5848 | rm -f conftest*
|
|---|
| 5849 | fi
|
|---|
| 5850 |
|
|---|
| 5851 | if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
|
|---|
| 5852 | cat >> confdefs.h <<\EOF
|
|---|
| 5853 | #define HAVE_LWPSTATUS_T_PR_REG 1
|
|---|
| 5854 | EOF
|
|---|
| 5855 |
|
|---|
| 5856 | fi
|
|---|
| 5857 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6
|
|---|
| 5858 |
|
|---|
| 5859 | echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6
|
|---|
| 5860 | echo "configure:5861: checking for win32_pstatus_t in sys/procfs.h" >&5
|
|---|
| 5861 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_win32_pstatus_t'+set}'`\" = set"; then
|
|---|
| 5862 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5863 | else
|
|---|
| 5864 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5865 | #line 5866 "configure"
|
|---|
| 5866 | #include "confdefs.h"
|
|---|
| 5867 |
|
|---|
| 5868 | #define _SYSCALL32
|
|---|
| 5869 | #include <sys/procfs.h>
|
|---|
| 5870 | int main() {
|
|---|
| 5871 | win32_pstatus_t avar
|
|---|
| 5872 | ; return 0; }
|
|---|
| 5873 | EOF
|
|---|
| 5874 | if { (eval echo configure:5875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5875 | rm -rf conftest*
|
|---|
| 5876 | bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
|
|---|
| 5877 | else
|
|---|
| 5878 | echo "configure: failed program was:" >&5
|
|---|
| 5879 | cat conftest.$ac_ext >&5
|
|---|
| 5880 | rm -rf conftest*
|
|---|
| 5881 | bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
|
|---|
| 5882 |
|
|---|
| 5883 | fi
|
|---|
| 5884 | rm -f conftest*
|
|---|
| 5885 | fi
|
|---|
| 5886 |
|
|---|
| 5887 | if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
|
|---|
| 5888 | cat >> confdefs.h <<\EOF
|
|---|
| 5889 | #define HAVE_WIN32_PSTATUS_T 1
|
|---|
| 5890 | EOF
|
|---|
| 5891 |
|
|---|
| 5892 | fi
|
|---|
| 5893 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_win32_pstatus_t" 1>&6
|
|---|
| 5894 |
|
|---|
| 5895 | fi
|
|---|
| 5896 | fi
|
|---|
| 5897 |
|
|---|
| 5898 |
|
|---|
| 5899 | if test -n "$TRAD_HEADER"; then
|
|---|
| 5900 | cat >> confdefs.h <<EOF
|
|---|
| 5901 | #define TRAD_HEADER $TRAD_HEADER
|
|---|
| 5902 | EOF
|
|---|
| 5903 |
|
|---|
| 5904 | fi
|
|---|
| 5905 |
|
|---|
| 5906 | # Horrible hacks to build DLLs on Windows.
|
|---|
| 5907 | WIN32LDFLAGS=
|
|---|
| 5908 | WIN32LIBADD=
|
|---|
| 5909 | case "${host}" in
|
|---|
| 5910 | *-*-cygwin*)
|
|---|
| 5911 | if test "$enable_shared" = "yes"; then
|
|---|
| 5912 | WIN32LDFLAGS="-no-undefined"
|
|---|
| 5913 | WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
|
|---|
| 5914 | fi
|
|---|
| 5915 | ;;
|
|---|
| 5916 | *-*-os2*)
|
|---|
| 5917 | if test "$enable_shared" = "yes"; then
|
|---|
| 5918 | WIN32LDFLAGS="-no-undefined"
|
|---|
| 5919 | WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl"
|
|---|
| 5920 | fi
|
|---|
| 5921 | ;;
|
|---|
| 5922 | esac
|
|---|
| 5923 |
|
|---|
| 5924 |
|
|---|
| 5925 |
|
|---|
| 5926 | # target stuff:
|
|---|
| 5927 |
|
|---|
| 5928 | # Canonicalize the secondary target names.
|
|---|
| 5929 | if test -n "$enable_targets" ; then
|
|---|
| 5930 | for targ in `echo $enable_targets | sed 's/,/ /g'`
|
|---|
| 5931 | do
|
|---|
| 5932 | result=`$ac_config_sub $targ 2>/dev/null`
|
|---|
| 5933 | if test -n "$result" ; then
|
|---|
| 5934 | canon_targets="$canon_targets $result"
|
|---|
| 5935 | else
|
|---|
| 5936 | # Allow targets that config.sub doesn't recognize, like "all".
|
|---|
| 5937 | canon_targets="$canon_targets $targ"
|
|---|
| 5938 | fi
|
|---|
| 5939 | done
|
|---|
| 5940 | fi
|
|---|
| 5941 |
|
|---|
| 5942 | all_targets=false
|
|---|
| 5943 | defvec=
|
|---|
| 5944 | selvecs=
|
|---|
| 5945 | selarchs=
|
|---|
| 5946 | TDEFINES=
|
|---|
| 5947 | for targ in $target $canon_targets
|
|---|
| 5948 | do
|
|---|
| 5949 | if test "x$targ" = "xall"; then
|
|---|
| 5950 | all_targets=true
|
|---|
| 5951 | else
|
|---|
| 5952 | . $srcdir/config.bfd
|
|---|
| 5953 | if test "x$targ" = "x$target"; then
|
|---|
| 5954 | defvec=$targ_defvec
|
|---|
| 5955 | fi
|
|---|
| 5956 | selvecs="$selvecs $targ_defvec $targ_selvecs"
|
|---|
| 5957 | selarchs="$selarchs $targ_archs"
|
|---|
| 5958 | TDEFINES="$TDEFINES $targ_cflags"
|
|---|
| 5959 | fi
|
|---|
| 5960 | done
|
|---|
| 5961 |
|
|---|
| 5962 |
|
|---|
| 5963 | # This processing still needs to be done if we're to decide properly whether
|
|---|
| 5964 | # 64-bit support needs to be compiled in. Currently, it will be included if
|
|---|
| 5965 | # the default or any other explicitly requested target requires it; it
|
|---|
| 5966 | # will not be included on a 32-bit host if no 64-bit target is requested, and
|
|---|
| 5967 | # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
|
|---|
| 5968 | # used.
|
|---|
| 5969 |
|
|---|
| 5970 | # uniq the default and selected vectors in all the configured targets.
|
|---|
| 5971 | f=""
|
|---|
| 5972 | for i in $selvecs ; do
|
|---|
| 5973 | case " $f " in
|
|---|
| 5974 | *" $i "*) ;;
|
|---|
| 5975 | *) f="$f $i" ;;
|
|---|
| 5976 | esac
|
|---|
| 5977 | done
|
|---|
| 5978 | selvecs="$f"
|
|---|
| 5979 |
|
|---|
| 5980 |
|
|---|
| 5981 | # uniq the architectures in all the configured targets.
|
|---|
| 5982 | f=""
|
|---|
| 5983 | for i in $selarchs ; do
|
|---|
| 5984 | case " $f " in
|
|---|
| 5985 | *" $i "*) ;;
|
|---|
| 5986 | *) f="$f $i" ;;
|
|---|
| 5987 | esac
|
|---|
| 5988 | done
|
|---|
| 5989 | selarchs="$f"
|
|---|
| 5990 |
|
|---|
| 5991 | # Target backend .o files.
|
|---|
| 5992 | tb=
|
|---|
| 5993 |
|
|---|
| 5994 | elf="elf.lo elflink.lo dwarf1.lo"
|
|---|
| 5995 |
|
|---|
| 5996 | for vec in $selvecs
|
|---|
| 5997 | do
|
|---|
| 5998 | case "$vec" in
|
|---|
| 5999 | # This list is alphabetized to make it easy to compare
|
|---|
| 6000 | # with the two vector lists in targets.c.
|
|---|
| 6001 | a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
|
|---|
| 6002 | a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
|
|---|
| 6003 | armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
|
|---|
| 6004 | armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
|
|---|
| 6005 | armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
|
|---|
| 6006 | armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
|
|---|
| 6007 | armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
|
|---|
| 6008 | armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
|
|---|
| 6009 | armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
|
|---|
| 6010 | arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
|
|---|
| 6011 | arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
|
|---|
| 6012 | arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
|
|---|
| 6013 | arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
|
|---|
| 6014 | aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
|
|---|
| 6015 | aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
|
|---|
| 6016 | aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
|
|---|
| 6017 | aout_mips_big_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
|
|---|
| 6018 | aout_mips_little_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
|
|---|
| 6019 | apollocoff_vec) tb="$tb coff-apollo.lo" ;;
|
|---|
| 6020 | b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
|
|---|
| 6021 | b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
|
|---|
| 6022 | bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
|
|---|
| 6023 | bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"
|
|---|
| 6024 | target64=true ;;
|
|---|
| 6025 | bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"
|
|---|
| 6026 | target64=true ;;
|
|---|
| 6027 | bfd_elf64_hppa_vec | bfd_elf64_hppa_linux_vec)
|
|---|
| 6028 | tb="$tb elf64-hppa.lo elf64.lo $elf"
|
|---|
| 6029 | target64=true ;;
|
|---|
| 6030 | bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"
|
|---|
| 6031 | target64=true ;;
|
|---|
| 6032 | bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"
|
|---|
| 6033 | target64=true ;;
|
|---|
| 6034 | bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
|
|---|
| 6035 | bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
|
|---|
| 6036 | bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
|
|---|
| 6037 | bfd_elf32_littlearm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
|
|---|
| 6038 | bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
|
|---|
| 6039 | bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
|
|---|
| 6040 | bfd_elf32_bigarm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
|
|---|
| 6041 | bfd_elf32_bigarm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
|
|---|
| 6042 | bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
|
|---|
| 6043 | bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
|---|
| 6044 | bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
|
|---|
| 6045 | target64=true ;;
|
|---|
| 6046 | bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
|
|---|
| 6047 | bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
|
|---|
| 6048 | bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
|
|---|
| 6049 | bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
|
|---|
| 6050 | bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
|
|---|
| 6051 | bfd_elf32_hppa_vec | bfd_elf32_hppa_linux_vec)
|
|---|
| 6052 | tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
|
|---|
| 6053 | bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
|
|---|
| 6054 | bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
|
|---|
| 6055 | bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"
|
|---|
| 6056 | target64=true ;;
|
|---|
| 6057 | bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
|
|---|
| 6058 | bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
|
|---|
| 6059 | bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
|
|---|
| 6060 | bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
|
|---|
| 6061 | bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
|---|
| 6062 | bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
|
|---|
| 6063 | target64=true ;;
|
|---|
| 6064 | bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
|
|---|
| 6065 | bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32.lo $elf" ;;
|
|---|
| 6066 | bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32.lo $elf" ;;
|
|---|
| 6067 | bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
|
|---|
| 6068 | bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
|
|---|
| 6069 | bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
|
|---|
| 6070 | bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
|
|---|
| 6071 | bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
|
|---|
| 6072 | bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
|
|---|
| 6073 | bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
|
|---|
| 6074 | bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
|
|---|
| 6075 | bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
|
|---|
| 6076 | bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
|
|---|
| 6077 | bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
|
|---|
| 6078 | bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
|
|---|
| 6079 | bfd_elf32_shlin_vec) tb="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
|---|
| 6080 | bfd_elf32_shblin_vec) tb="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
|
|---|
| 6081 | bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
|
|---|
| 6082 | bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
|---|
| 6083 | bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
|
|---|
| 6084 | bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
|
|---|
| 6085 | bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"
|
|---|
| 6086 | target64=true ;;
|
|---|
| 6087 | bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"
|
|---|
| 6088 | target64=true ;;
|
|---|
| 6089 | bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf"
|
|---|
| 6090 | target64=true ;;
|
|---|
| 6091 | bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo $elf ecofflink.lo"
|
|---|
| 6092 | target64=true ;;
|
|---|
| 6093 | bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo $elf ecofflink.lo"
|
|---|
| 6094 | target64=true ;;
|
|---|
| 6095 | cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
|
|---|
| 6096 | cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
|
|---|
| 6097 | cris_aout_vec) tb="$tb aout-cris.lo" ;;
|
|---|
| 6098 | demo_64_vec) tb="$tb demo64.lo aout64.lo"
|
|---|
| 6099 | target64=true ;;
|
|---|
| 6100 | ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
|
|---|
| 6101 | ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
|
|---|
| 6102 | ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
|
|---|
| 6103 | ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"
|
|---|
| 6104 | target64=true ;;
|
|---|
| 6105 | go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
|
|---|
| 6106 | go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
|
|---|
| 6107 | h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
|
|---|
| 6108 | h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
|
|---|
| 6109 | host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
|
|---|
| 6110 | hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
|
|---|
| 6111 | hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
|
|---|
| 6112 | i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
|
|---|
| 6113 | i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
|
|---|
| 6114 | i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
|
|---|
| 6115 | i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
|
|---|
| 6116 | i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
|
|---|
| 6117 | i386msdos_vec) tb="$tb i386msdos.lo" ;;
|
|---|
| 6118 | i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
|
|---|
| 6119 | i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
|
|---|
| 6120 | i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
|
|---|
| 6121 | i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
|
|---|
| 6122 | i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
|
|---|
| 6123 | i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
|
|---|
| 6124 | i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
|
|---|
| 6125 | i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
|
|---|
| 6126 | i386aout_emx_vec) tb="$tb i386aoutemx.lo aout32.lo " ;;
|
|---|
| 6127 | i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
|
|---|
| 6128 | icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
|
|---|
| 6129 | icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
|
|---|
| 6130 | ieee_vec) tb="$tb ieee.lo" ;;
|
|---|
| 6131 | m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
|
|---|
| 6132 | m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
|
|---|
| 6133 | m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
|
|---|
| 6134 | m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
|
|---|
| 6135 | m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
|
|---|
| 6136 | m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
|
|---|
| 6137 | m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
|
|---|
| 6138 | m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
|
|---|
| 6139 | m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
|
|---|
| 6140 | m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
|
|---|
| 6141 | mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
|
|---|
| 6142 | mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
|
|---|
| 6143 | mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
|
|---|
| 6144 | mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
|
|---|
| 6145 | mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
|
|---|
| 6146 | mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
|
|---|
| 6147 | newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
|
|---|
| 6148 | nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
|
|---|
| 6149 | rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo"
|
|---|
| 6150 | target64=true ;;
|
|---|
| 6151 | nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
|
|---|
| 6152 | nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"
|
|---|
| 6153 | target64=true ;;
|
|---|
| 6154 | riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
|
|---|
| 6155 | nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
|
|---|
| 6156 | pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
|
|---|
| 6157 | pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
|
|---|
| 6158 | pmac_xcoff_vec) tb="$tb coff-pmac.lo xcofflink.lo" ;;
|
|---|
| 6159 | rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
|
|---|
| 6160 | bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
|
|---|
| 6161 | bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
|
|---|
| 6162 | bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
|
|---|
| 6163 | bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
|
|---|
| 6164 | ppcboot_vec) tb="$tb ppcboot.lo" ;;
|
|---|
| 6165 | shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
|---|
| 6166 | shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
|---|
| 6167 | shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
|---|
| 6168 | shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
|
|---|
| 6169 | shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
|
|---|
| 6170 | shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
|
|---|
| 6171 | som_vec) tb="$tb som.lo" ;;
|
|---|
| 6172 | sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
|
|---|
| 6173 | sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
|
|---|
| 6174 | sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
|
|---|
| 6175 | sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
|
|---|
| 6176 | sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
|
|---|
| 6177 | sparccoff_vec) tb="$tb coff-sparc.lo" ;;
|
|---|
| 6178 | srec_vec) tb="$tb srec.lo" ;;
|
|---|
| 6179 | sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
|
|---|
| 6180 | symbolsrec_vec) tb="$tb srec.lo" ;;
|
|---|
| 6181 | tekhex_vec) tb="$tb tekhex.lo" ;;
|
|---|
| 6182 | tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
|
|---|
| 6183 | tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
|
|---|
| 6184 | tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
|
|---|
| 6185 | tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
|
|---|
| 6186 | tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
|
|---|
| 6187 | tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
|
|---|
| 6188 | tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
|
|---|
| 6189 | tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
|
|---|
| 6190 | tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
|
|---|
| 6191 | versados_vec) tb="$tb versados.lo" ;;
|
|---|
| 6192 | vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"
|
|---|
| 6193 | target64=true ;;
|
|---|
| 6194 | vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
|
|---|
| 6195 | w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
|
|---|
| 6196 | we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
|
|---|
| 6197 | z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
|
|---|
| 6198 |
|
|---|
| 6199 | "") ;;
|
|---|
| 6200 | *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
|
|---|
| 6201 | esac
|
|---|
| 6202 | done
|
|---|
| 6203 |
|
|---|
| 6204 | # Target architecture .o files.
|
|---|
| 6205 | # A couple of CPUs use shorter file names to avoid problems on DOS
|
|---|
| 6206 | # filesystems.
|
|---|
| 6207 | ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
|
|---|
| 6208 |
|
|---|
| 6209 | # Weed out duplicate .o files.
|
|---|
| 6210 | f=""
|
|---|
| 6211 | for i in $tb ; do
|
|---|
| 6212 | case " $f " in
|
|---|
| 6213 | *" $i "*) ;;
|
|---|
| 6214 | *) f="$f $i" ;;
|
|---|
| 6215 | esac
|
|---|
| 6216 | done
|
|---|
| 6217 | tb="$f"
|
|---|
| 6218 |
|
|---|
| 6219 | f=""
|
|---|
| 6220 | for i in $ta ; do
|
|---|
| 6221 | case " $f " in
|
|---|
| 6222 | *" $i "*) ;;
|
|---|
| 6223 | *) f="$f $i" ;;
|
|---|
| 6224 | esac
|
|---|
| 6225 | done
|
|---|
| 6226 | ta="$f"
|
|---|
| 6227 |
|
|---|
| 6228 | bfd_backends="$tb"
|
|---|
| 6229 | bfd_machines="$ta"
|
|---|
| 6230 |
|
|---|
| 6231 | if test x${all_targets} = xtrue ; then
|
|---|
| 6232 | bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
|
|---|
| 6233 | bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
|
|---|
| 6234 | selvecs=
|
|---|
| 6235 | havevecs=
|
|---|
| 6236 | selarchs=
|
|---|
| 6237 | else # all_targets is true
|
|---|
| 6238 | # Only set these if they will be nonempty, for the clever echo.
|
|---|
| 6239 | havevecs=
|
|---|
| 6240 | test -n "$selvecs" &&
|
|---|
| 6241 | havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
|
|---|
| 6242 | test -n "$selvecs" &&
|
|---|
| 6243 | selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
|
|---|
| 6244 | test -n "$selarchs" &&
|
|---|
| 6245 | selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
|
|---|
| 6246 | fi # all_targets is true
|
|---|
| 6247 |
|
|---|
| 6248 | case ${host64}-${target64}-${want64} in
|
|---|
| 6249 | *true*)
|
|---|
| 6250 | wordsize=64
|
|---|
| 6251 | all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
|
|---|
| 6252 | if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
|
|---|
| 6253 | echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
|
|---|
| 6254 | echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
|
|---|
| 6255 | fi
|
|---|
| 6256 | ;;
|
|---|
| 6257 | false-false-false)
|
|---|
| 6258 | wordsize=32
|
|---|
| 6259 | all_backends='$(BFD32_BACKENDS)'
|
|---|
| 6260 | ;;
|
|---|
| 6261 | esac
|
|---|
| 6262 |
|
|---|
| 6263 |
|
|---|
| 6264 |
|
|---|
| 6265 |
|
|---|
| 6266 |
|
|---|
| 6267 |
|
|---|
| 6268 | tdefaults=""
|
|---|
| 6269 | test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
|
|---|
| 6270 | test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
|
|---|
| 6271 | test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
|
|---|
| 6272 | test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
|
|---|
| 6273 |
|
|---|
| 6274 |
|
|---|
| 6275 | for ac_hdr in unistd.h
|
|---|
| 6276 | do
|
|---|
| 6277 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|---|
| 6278 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|---|
| 6279 | echo "configure:6280: checking for $ac_hdr" >&5
|
|---|
| 6280 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 6281 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6282 | else
|
|---|
| 6283 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6284 | #include <sys/types.h>
|
|---|
| 6285 | #line 6286 "configure"
|
|---|
| 6286 | #include "confdefs.h"
|
|---|
| 6287 | #include <$ac_hdr>
|
|---|
| 6288 | EOF
|
|---|
| 6289 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 6290 | { (eval echo configure:6291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 6291 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 6292 | if test -z "$ac_err"; then
|
|---|
| 6293 | rm -rf conftest*
|
|---|
| 6294 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 6295 | else
|
|---|
| 6296 | echo "$ac_err" >&5
|
|---|
| 6297 | echo "configure: failed program was:" >&5
|
|---|
| 6298 | cat conftest.$ac_ext >&5
|
|---|
| 6299 | rm -rf conftest*
|
|---|
| 6300 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 6301 | fi
|
|---|
| 6302 | rm -f conftest*
|
|---|
| 6303 | fi
|
|---|
| 6304 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 6305 | echo "$ac_t""yes" 1>&6
|
|---|
| 6306 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|---|
| 6307 | cat >> confdefs.h <<EOF
|
|---|
| 6308 | #define $ac_tr_hdr 1
|
|---|
| 6309 | EOF
|
|---|
| 6310 |
|
|---|
| 6311 | else
|
|---|
| 6312 | echo "$ac_t""no" 1>&6
|
|---|
| 6313 | fi
|
|---|
| 6314 | done
|
|---|
| 6315 |
|
|---|
| 6316 | for ac_func in getpagesize
|
|---|
| 6317 | do
|
|---|
| 6318 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 6319 | echo "configure:6320: checking for $ac_func" >&5
|
|---|
| 6320 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 6321 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6322 | else
|
|---|
| 6323 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6324 | #line 6325 "configure"
|
|---|
| 6325 | #include "confdefs.h"
|
|---|
| 6326 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 6327 | which can conflict with char $ac_func(); below. */
|
|---|
| 6328 | #include <assert.h>
|
|---|
| 6329 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 6330 | /* We use char because int might match the return type of a gcc2
|
|---|
| 6331 | builtin and then its argument prototype would still apply. */
|
|---|
| 6332 | char $ac_func();
|
|---|
| 6333 |
|
|---|
| 6334 | int main() {
|
|---|
| 6335 |
|
|---|
| 6336 | /* The GNU C library defines this for functions which it implements
|
|---|
| 6337 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 6338 | something starting with __ and the normal name is an alias. */
|
|---|
| 6339 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 6340 | choke me
|
|---|
| 6341 | #else
|
|---|
| 6342 | $ac_func();
|
|---|
| 6343 | #endif
|
|---|
| 6344 |
|
|---|
| 6345 | ; return 0; }
|
|---|
| 6346 | EOF
|
|---|
| 6347 | if { (eval echo configure:6348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 6348 | rm -rf conftest*
|
|---|
| 6349 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 6350 | else
|
|---|
| 6351 | echo "configure: failed program was:" >&5
|
|---|
| 6352 | cat conftest.$ac_ext >&5
|
|---|
| 6353 | rm -rf conftest*
|
|---|
| 6354 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 6355 | fi
|
|---|
| 6356 | rm -f conftest*
|
|---|
| 6357 | fi
|
|---|
| 6358 |
|
|---|
| 6359 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 6360 | echo "$ac_t""yes" 1>&6
|
|---|
| 6361 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 6362 | cat >> confdefs.h <<EOF
|
|---|
| 6363 | #define $ac_tr_func 1
|
|---|
| 6364 | EOF
|
|---|
| 6365 |
|
|---|
| 6366 | else
|
|---|
| 6367 | echo "$ac_t""no" 1>&6
|
|---|
| 6368 | fi
|
|---|
| 6369 | done
|
|---|
| 6370 |
|
|---|
| 6371 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
|---|
| 6372 | echo "configure:6373: checking for working mmap" >&5
|
|---|
| 6373 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
|
|---|
| 6374 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6375 | else
|
|---|
| 6376 | if test "$cross_compiling" = yes; then
|
|---|
| 6377 | ac_cv_func_mmap_fixed_mapped=no
|
|---|
| 6378 | else
|
|---|
| 6379 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6380 | #line 6381 "configure"
|
|---|
| 6381 | #include "confdefs.h"
|
|---|
| 6382 |
|
|---|
| 6383 | /* Thanks to Mike Haertel and Jim Avera for this test.
|
|---|
| 6384 | Here is a matrix of mmap possibilities:
|
|---|
| 6385 | mmap private not fixed
|
|---|
| 6386 | mmap private fixed at somewhere currently unmapped
|
|---|
| 6387 | mmap private fixed at somewhere already mapped
|
|---|
| 6388 | mmap shared not fixed
|
|---|
| 6389 | mmap shared fixed at somewhere currently unmapped
|
|---|
| 6390 | mmap shared fixed at somewhere already mapped
|
|---|
| 6391 | For private mappings, we should verify that changes cannot be read()
|
|---|
| 6392 | back from the file, nor mmap's back from the file at a different
|
|---|
| 6393 | address. (There have been systems where private was not correctly
|
|---|
| 6394 | implemented like the infamous i386 svr4.0, and systems where the
|
|---|
| 6395 | VM page cache was not coherent with the filesystem buffer cache
|
|---|
| 6396 | like early versions of FreeBSD and possibly contemporary NetBSD.)
|
|---|
| 6397 | For shared mappings, we should conversely verify that changes get
|
|---|
| 6398 | propogated back to all the places they're supposed to be.
|
|---|
| 6399 |
|
|---|
| 6400 | Grep wants private fixed already mapped.
|
|---|
| 6401 | The main things grep needs to know about mmap are:
|
|---|
| 6402 | * does it exist and is it safe to write into the mmap'd area
|
|---|
| 6403 | * how to use it (BSD variants) */
|
|---|
| 6404 | #include <sys/types.h>
|
|---|
| 6405 | #include <fcntl.h>
|
|---|
| 6406 | #include <sys/mman.h>
|
|---|
| 6407 |
|
|---|
| 6408 | /* This mess was copied from the GNU getpagesize.h. */
|
|---|
| 6409 | #ifndef HAVE_GETPAGESIZE
|
|---|
| 6410 | # ifdef HAVE_UNISTD_H
|
|---|
| 6411 | # include <unistd.h>
|
|---|
| 6412 | # endif
|
|---|
| 6413 |
|
|---|
| 6414 | /* Assume that all systems that can run configure have sys/param.h. */
|
|---|
| 6415 | # ifndef HAVE_SYS_PARAM_H
|
|---|
| 6416 | # define HAVE_SYS_PARAM_H 1
|
|---|
| 6417 | # endif
|
|---|
| 6418 |
|
|---|
| 6419 | # ifdef _SC_PAGESIZE
|
|---|
| 6420 | # define getpagesize() sysconf(_SC_PAGESIZE)
|
|---|
| 6421 | # else /* no _SC_PAGESIZE */
|
|---|
| 6422 | # ifdef HAVE_SYS_PARAM_H
|
|---|
| 6423 | # include <sys/param.h>
|
|---|
| 6424 | # ifdef EXEC_PAGESIZE
|
|---|
| 6425 | # define getpagesize() EXEC_PAGESIZE
|
|---|
| 6426 | # else /* no EXEC_PAGESIZE */
|
|---|
| 6427 | # ifdef NBPG
|
|---|
| 6428 | # define getpagesize() NBPG * CLSIZE
|
|---|
| 6429 | # ifndef CLSIZE
|
|---|
| 6430 | # define CLSIZE 1
|
|---|
| 6431 | # endif /* no CLSIZE */
|
|---|
| 6432 | # else /* no NBPG */
|
|---|
| 6433 | # ifdef NBPC
|
|---|
| 6434 | # define getpagesize() NBPC
|
|---|
| 6435 | # else /* no NBPC */
|
|---|
| 6436 | # ifdef PAGESIZE
|
|---|
| 6437 | # define getpagesize() PAGESIZE
|
|---|
| 6438 | # endif /* PAGESIZE */
|
|---|
| 6439 | # endif /* no NBPC */
|
|---|
| 6440 | # endif /* no NBPG */
|
|---|
| 6441 | # endif /* no EXEC_PAGESIZE */
|
|---|
| 6442 | # else /* no HAVE_SYS_PARAM_H */
|
|---|
| 6443 | # define getpagesize() 8192 /* punt totally */
|
|---|
| 6444 | # endif /* no HAVE_SYS_PARAM_H */
|
|---|
| 6445 | # endif /* no _SC_PAGESIZE */
|
|---|
| 6446 |
|
|---|
| 6447 | #endif /* no HAVE_GETPAGESIZE */
|
|---|
| 6448 |
|
|---|
| 6449 | #ifdef __cplusplus
|
|---|
| 6450 | extern "C" { void *malloc(unsigned); }
|
|---|
| 6451 | #else
|
|---|
| 6452 | char *malloc();
|
|---|
| 6453 | #endif
|
|---|
| 6454 |
|
|---|
| 6455 | int
|
|---|
| 6456 | main()
|
|---|
| 6457 | {
|
|---|
| 6458 | char *data, *data2, *data3;
|
|---|
| 6459 | int i, pagesize;
|
|---|
| 6460 | int fd;
|
|---|
| 6461 |
|
|---|
| 6462 | pagesize = getpagesize();
|
|---|
| 6463 |
|
|---|
| 6464 | /*
|
|---|
| 6465 | * First, make a file with some known garbage in it.
|
|---|
| 6466 | */
|
|---|
| 6467 | data = malloc(pagesize);
|
|---|
| 6468 | if (!data)
|
|---|
| 6469 | exit(1);
|
|---|
| 6470 | for (i = 0; i < pagesize; ++i)
|
|---|
| 6471 | *(data + i) = rand();
|
|---|
| 6472 | umask(0);
|
|---|
| 6473 | fd = creat("conftestmmap", 0600);
|
|---|
| 6474 | if (fd < 0)
|
|---|
| 6475 | exit(1);
|
|---|
| 6476 | if (write(fd, data, pagesize) != pagesize)
|
|---|
| 6477 | exit(1);
|
|---|
| 6478 | close(fd);
|
|---|
| 6479 |
|
|---|
| 6480 | /*
|
|---|
| 6481 | * Next, try to mmap the file at a fixed address which
|
|---|
| 6482 | * already has something else allocated at it. If we can,
|
|---|
| 6483 | * also make sure that we see the same garbage.
|
|---|
| 6484 | */
|
|---|
| 6485 | fd = open("conftestmmap", O_RDWR);
|
|---|
| 6486 | if (fd < 0)
|
|---|
| 6487 | exit(1);
|
|---|
| 6488 | data2 = malloc(2 * pagesize);
|
|---|
| 6489 | if (!data2)
|
|---|
| 6490 | exit(1);
|
|---|
| 6491 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
|
|---|
| 6492 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
|
|---|
| 6493 | MAP_PRIVATE | MAP_FIXED, fd, 0L))
|
|---|
| 6494 | exit(1);
|
|---|
| 6495 | for (i = 0; i < pagesize; ++i)
|
|---|
| 6496 | if (*(data + i) != *(data2 + i))
|
|---|
| 6497 | exit(1);
|
|---|
| 6498 |
|
|---|
| 6499 | /*
|
|---|
| 6500 | * Finally, make sure that changes to the mapped area
|
|---|
| 6501 | * do not percolate back to the file as seen by read().
|
|---|
| 6502 | * (This is a bug on some variants of i386 svr4.0.)
|
|---|
| 6503 | */
|
|---|
| 6504 | for (i = 0; i < pagesize; ++i)
|
|---|
| 6505 | *(data2 + i) = *(data2 + i) + 1;
|
|---|
| 6506 | data3 = malloc(pagesize);
|
|---|
| 6507 | if (!data3)
|
|---|
| 6508 | exit(1);
|
|---|
| 6509 | if (read(fd, data3, pagesize) != pagesize)
|
|---|
| 6510 | exit(1);
|
|---|
| 6511 | for (i = 0; i < pagesize; ++i)
|
|---|
| 6512 | if (*(data + i) != *(data3 + i))
|
|---|
| 6513 | exit(1);
|
|---|
| 6514 | close(fd);
|
|---|
| 6515 | unlink("conftestmmap");
|
|---|
| 6516 | exit(0);
|
|---|
| 6517 | }
|
|---|
| 6518 |
|
|---|
| 6519 | EOF
|
|---|
| 6520 | if { (eval echo configure:6521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|---|
| 6521 | then
|
|---|
| 6522 | ac_cv_func_mmap_fixed_mapped=yes
|
|---|
| 6523 | else
|
|---|
| 6524 | echo "configure: failed program was:" >&5
|
|---|
| 6525 | cat conftest.$ac_ext >&5
|
|---|
| 6526 | rm -fr conftest*
|
|---|
| 6527 | ac_cv_func_mmap_fixed_mapped=no
|
|---|
| 6528 | fi
|
|---|
| 6529 | rm -fr conftest*
|
|---|
| 6530 | fi
|
|---|
| 6531 |
|
|---|
| 6532 | fi
|
|---|
| 6533 |
|
|---|
| 6534 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
|
|---|
| 6535 | if test $ac_cv_func_mmap_fixed_mapped = yes; then
|
|---|
| 6536 | cat >> confdefs.h <<\EOF
|
|---|
| 6537 | #define HAVE_MMAP 1
|
|---|
| 6538 | EOF
|
|---|
| 6539 |
|
|---|
| 6540 | fi
|
|---|
| 6541 |
|
|---|
| 6542 | for ac_func in madvise mprotect
|
|---|
| 6543 | do
|
|---|
| 6544 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 6545 | echo "configure:6546: checking for $ac_func" >&5
|
|---|
| 6546 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 6547 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6548 | else
|
|---|
| 6549 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6550 | #line 6551 "configure"
|
|---|
| 6551 | #include "confdefs.h"
|
|---|
| 6552 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 6553 | which can conflict with char $ac_func(); below. */
|
|---|
| 6554 | #include <assert.h>
|
|---|
| 6555 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 6556 | /* We use char because int might match the return type of a gcc2
|
|---|
| 6557 | builtin and then its argument prototype would still apply. */
|
|---|
| 6558 | char $ac_func();
|
|---|
| 6559 |
|
|---|
| 6560 | int main() {
|
|---|
| 6561 |
|
|---|
| 6562 | /* The GNU C library defines this for functions which it implements
|
|---|
| 6563 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 6564 | something starting with __ and the normal name is an alias. */
|
|---|
| 6565 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 6566 | choke me
|
|---|
| 6567 | #else
|
|---|
| 6568 | $ac_func();
|
|---|
| 6569 | #endif
|
|---|
| 6570 |
|
|---|
| 6571 | ; return 0; }
|
|---|
| 6572 | EOF
|
|---|
| 6573 | if { (eval echo configure:6574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 6574 | rm -rf conftest*
|
|---|
| 6575 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 6576 | else
|
|---|
| 6577 | echo "configure: failed program was:" >&5
|
|---|
| 6578 | cat conftest.$ac_ext >&5
|
|---|
| 6579 | rm -rf conftest*
|
|---|
| 6580 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 6581 | fi
|
|---|
| 6582 | rm -f conftest*
|
|---|
| 6583 | fi
|
|---|
| 6584 |
|
|---|
| 6585 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 6586 | echo "$ac_t""yes" 1>&6
|
|---|
| 6587 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 6588 | cat >> confdefs.h <<EOF
|
|---|
| 6589 | #define $ac_tr_func 1
|
|---|
| 6590 | EOF
|
|---|
| 6591 |
|
|---|
| 6592 | else
|
|---|
| 6593 | echo "$ac_t""no" 1>&6
|
|---|
| 6594 | fi
|
|---|
| 6595 | done
|
|---|
| 6596 |
|
|---|
| 6597 | case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
|
|---|
| 6598 | true+yes ) cat >> confdefs.h <<\EOF
|
|---|
| 6599 | #define USE_MMAP 1
|
|---|
| 6600 | EOF
|
|---|
| 6601 | ;;
|
|---|
| 6602 | esac
|
|---|
| 6603 |
|
|---|
| 6604 | rm -f doc/config.status
|
|---|
| 6605 | trap '' 1 2 15
|
|---|
| 6606 | cat > confcache <<\EOF
|
|---|
| 6607 | # This file is a shell script that caches the results of configure
|
|---|
| 6608 | # tests run on this system so they can be shared between configure
|
|---|
| 6609 | # scripts and configure runs. It is not useful on other systems.
|
|---|
| 6610 | # If it contains results you don't want to keep, you may remove or edit it.
|
|---|
| 6611 | #
|
|---|
| 6612 | # By default, configure uses ./config.cache as the cache file,
|
|---|
| 6613 | # creating it if it does not exist already. You can give configure
|
|---|
| 6614 | # the --cache-file=FILE option to use a different cache file; that is
|
|---|
| 6615 | # what configure does when it calls configure scripts in
|
|---|
| 6616 | # subdirectories, so they share the cache.
|
|---|
| 6617 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
|---|
| 6618 | # config.status only pays attention to the cache file if you give it the
|
|---|
| 6619 | # --recheck option to rerun configure.
|
|---|
| 6620 | #
|
|---|
| 6621 | EOF
|
|---|
| 6622 | # The following way of writing the cache mishandles newlines in values,
|
|---|
| 6623 | # but we know of no workaround that is simple, portable, and efficient.
|
|---|
| 6624 | # So, don't put newlines in cache variables' values.
|
|---|
| 6625 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
|---|
| 6626 | # and sets the high bit in the cache file unless we assign to the vars.
|
|---|
| 6627 | (set) 2>&1 |
|
|---|
| 6628 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
|---|
| 6629 | *ac_space=\ *)
|
|---|
| 6630 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
|---|
| 6631 | # turns \\\\ into \\, and sed turns \\ into \).
|
|---|
| 6632 | sed -n \
|
|---|
| 6633 | -e "s/'/'\\\\''/g" \
|
|---|
| 6634 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
|---|
| 6635 | ;;
|
|---|
| 6636 | *)
|
|---|
| 6637 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
|---|
| 6638 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
|---|
| 6639 | ;;
|
|---|
| 6640 | esac >> confcache
|
|---|
| 6641 | if cmp -s $cache_file confcache; then
|
|---|
| 6642 | :
|
|---|
| 6643 | else
|
|---|
| 6644 | if test -w $cache_file; then
|
|---|
| 6645 | echo "updating cache $cache_file"
|
|---|
| 6646 | cat confcache > $cache_file
|
|---|
| 6647 | else
|
|---|
| 6648 | echo "not updating unwritable cache $cache_file"
|
|---|
| 6649 | fi
|
|---|
| 6650 | fi
|
|---|
| 6651 | rm -f confcache
|
|---|
| 6652 |
|
|---|
| 6653 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|---|
| 6654 |
|
|---|
| 6655 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|---|
| 6656 | # Let make expand exec_prefix.
|
|---|
| 6657 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
|---|
| 6658 |
|
|---|
| 6659 | # Any assignment to VPATH causes Sun make to only execute
|
|---|
| 6660 | # the first set of double-colon rules, so remove it if not needed.
|
|---|
| 6661 | # If there is a colon in the path, we need to keep it.
|
|---|
| 6662 | if test "x$srcdir" = x.; then
|
|---|
| 6663 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
|---|
| 6664 | fi
|
|---|
| 6665 |
|
|---|
| 6666 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
|---|
| 6667 |
|
|---|
| 6668 | DEFS=-DHAVE_CONFIG_H
|
|---|
| 6669 |
|
|---|
| 6670 | # Without the "./", some shells look in PATH for config.status.
|
|---|
| 6671 | : ${CONFIG_STATUS=./config.status}
|
|---|
| 6672 |
|
|---|
| 6673 | echo creating $CONFIG_STATUS
|
|---|
| 6674 | rm -f $CONFIG_STATUS
|
|---|
| 6675 | cat > $CONFIG_STATUS <<EOF
|
|---|
| 6676 | #! /bin/sh
|
|---|
| 6677 | # Generated automatically by configure.
|
|---|
| 6678 | # Run this file to recreate the current configuration.
|
|---|
| 6679 | # This directory was configured as follows,
|
|---|
| 6680 | EOF
|
|---|
| 6681 | echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS
|
|---|
| 6682 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 6683 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|---|
| 6684 | #
|
|---|
| 6685 | # $0 $ac_configure_args
|
|---|
| 6686 | #
|
|---|
| 6687 | # Compiler output produced by configure, useful for debugging
|
|---|
| 6688 | # configure, is in ./config.log if it exists.
|
|---|
| 6689 |
|
|---|
| 6690 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
|---|
| 6691 | for ac_option
|
|---|
| 6692 | do
|
|---|
| 6693 | case "\$ac_option" in
|
|---|
| 6694 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
|---|
| 6695 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
|---|
| 6696 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
|---|
| 6697 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
|---|
| 6698 | echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
|---|
| 6699 | exit 0 ;;
|
|---|
| 6700 | -help | --help | --hel | --he | --h)
|
|---|
| 6701 | echo "\$ac_cs_usage"; exit 0 ;;
|
|---|
| 6702 | *) echo "\$ac_cs_usage"; exit 1 ;;
|
|---|
| 6703 | esac
|
|---|
| 6704 | done
|
|---|
| 6705 |
|
|---|
| 6706 | ac_given_srcdir=$srcdir
|
|---|
| 6707 | ac_given_INSTALL="$INSTALL"
|
|---|
| 6708 | PATHIFS="$PATH_IFS"
|
|---|
| 6709 |
|
|---|
| 6710 | trap 'rm -fr `echo "Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
|---|
| 6711 | EOF
|
|---|
| 6712 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 6713 |
|
|---|
| 6714 | # Protect against being on the right side of a sed subst in config.status.
|
|---|
| 6715 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
|---|
| 6716 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
|---|
| 6717 | $ac_vpsub
|
|---|
| 6718 | $extrasub
|
|---|
| 6719 | s,\([^a-zA-Z0-9:]\)/bin/sh\(.exe\),\1${CONFIG_SHELL-/bin/sh}\2,g
|
|---|
| 6720 | s%@SHELL@%$SHELL%g
|
|---|
| 6721 | s%@CFLAGS@%$CFLAGS%g
|
|---|
| 6722 | s%@CPPFLAGS@%$CPPFLAGS%g
|
|---|
| 6723 | s%@CXXFLAGS@%$CXXFLAGS%g
|
|---|
| 6724 | s%@FFLAGS@%$FFLAGS%g
|
|---|
| 6725 | s%@DEFS@%$DEFS%g
|
|---|
| 6726 | s%@LDFLAGS@%$LDFLAGS%g
|
|---|
| 6727 | s%@LIBS@%$LIBS%g
|
|---|
| 6728 | s%@exec_prefix@%$exec_prefix%g
|
|---|
| 6729 | s%@prefix@%$prefix%g
|
|---|
| 6730 | s%@program_transform_name@%$program_transform_name%g
|
|---|
| 6731 | s%@bindir@%$bindir%g
|
|---|
| 6732 | s%@sbindir@%$sbindir%g
|
|---|
| 6733 | s%@libexecdir@%$libexecdir%g
|
|---|
| 6734 | s%@datadir@%$datadir%g
|
|---|
| 6735 | s%@sysconfdir@%$sysconfdir%g
|
|---|
| 6736 | s%@sharedstatedir@%$sharedstatedir%g
|
|---|
| 6737 | s%@localstatedir@%$localstatedir%g
|
|---|
| 6738 | s%@libdir@%$libdir%g
|
|---|
| 6739 | s%@includedir@%$includedir%g
|
|---|
| 6740 | s%@oldincludedir@%$oldincludedir%g
|
|---|
| 6741 | s%@infodir@%$infodir%g
|
|---|
| 6742 | s%@mandir@%$mandir%g
|
|---|
| 6743 | s%@PATH_IFS@%$PATH_IFS%g
|
|---|
| 6744 | s%@EXEEXT@%$EXEEXT%g
|
|---|
| 6745 | s%@host@%$host%g
|
|---|
| 6746 | s%@host_alias@%$host_alias%g
|
|---|
| 6747 | s%@host_cpu@%$host_cpu%g
|
|---|
| 6748 | s%@host_vendor@%$host_vendor%g
|
|---|
| 6749 | s%@host_os@%$host_os%g
|
|---|
| 6750 | s%@target@%$target%g
|
|---|
| 6751 | s%@target_alias@%$target_alias%g
|
|---|
| 6752 | s%@target_cpu@%$target_cpu%g
|
|---|
| 6753 | s%@target_vendor@%$target_vendor%g
|
|---|
| 6754 | s%@target_os@%$target_os%g
|
|---|
| 6755 | s%@build@%$build%g
|
|---|
| 6756 | s%@build_alias@%$build_alias%g
|
|---|
| 6757 | s%@build_cpu@%$build_cpu%g
|
|---|
| 6758 | s%@build_vendor@%$build_vendor%g
|
|---|
| 6759 | s%@build_os@%$build_os%g
|
|---|
| 6760 | s%@CC@%$CC%g
|
|---|
| 6761 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
|---|
| 6762 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
|---|
| 6763 | s%@INSTALL_DATA@%$INSTALL_DATA%g
|
|---|
| 6764 | s%@PACKAGE@%$PACKAGE%g
|
|---|
| 6765 | s%@VERSION@%$VERSION%g
|
|---|
| 6766 | s%@ACLOCAL@%$ACLOCAL%g
|
|---|
| 6767 | s%@AUTOCONF@%$AUTOCONF%g
|
|---|
| 6768 | s%@AUTOMAKE@%$AUTOMAKE%g
|
|---|
| 6769 | s%@AUTOHEADER@%$AUTOHEADER%g
|
|---|
| 6770 | s%@MAKEINFO@%$MAKEINFO%g
|
|---|
| 6771 | s%@SET_MAKE@%$SET_MAKE%g
|
|---|
| 6772 | s%@AR@%$AR%g
|
|---|
| 6773 | s%@RANLIB@%$RANLIB%g
|
|---|
| 6774 | s%@LN_S@%$LN_S%g
|
|---|
| 6775 | s%@OBJEXT@%$OBJEXT%g
|
|---|
| 6776 | s%@STRIP@%$STRIP%g
|
|---|
| 6777 | s%@LIBTOOL@%$LIBTOOL%g
|
|---|
| 6778 | s%@WARN_CFLAGS@%$WARN_CFLAGS%g
|
|---|
| 6779 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
|
|---|
| 6780 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
|
|---|
| 6781 | s%@MAINT@%$MAINT%g
|
|---|
| 6782 | s%@CPP@%$CPP%g
|
|---|
| 6783 | s%@ALLOCA@%$ALLOCA%g
|
|---|
| 6784 | s%@USE_NLS@%$USE_NLS%g
|
|---|
| 6785 | s%@MSGFMT@%$MSGFMT%g
|
|---|
| 6786 | s%@GMSGFMT@%$GMSGFMT%g
|
|---|
| 6787 | s%@XGETTEXT@%$XGETTEXT%g
|
|---|
| 6788 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
|
|---|
| 6789 | s%@CATALOGS@%$CATALOGS%g
|
|---|
| 6790 | s%@CATOBJEXT@%$CATOBJEXT%g
|
|---|
| 6791 | s%@DATADIRNAME@%$DATADIRNAME%g
|
|---|
| 6792 | s%@GMOFILES@%$GMOFILES%g
|
|---|
| 6793 | s%@INSTOBJEXT@%$INSTOBJEXT%g
|
|---|
| 6794 | s%@INTLDEPS@%$INTLDEPS%g
|
|---|
| 6795 | s%@INTLLIBS@%$INTLLIBS%g
|
|---|
| 6796 | s%@INTLOBJS@%$INTLOBJS%g
|
|---|
| 6797 | s%@POFILES@%$POFILES%g
|
|---|
| 6798 | s%@POSUB@%$POSUB%g
|
|---|
| 6799 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
|
|---|
| 6800 | s%@GT_NO@%$GT_NO%g
|
|---|
| 6801 | s%@GT_YES@%$GT_YES%g
|
|---|
| 6802 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
|
|---|
| 6803 | s%@l@%$l%g
|
|---|
| 6804 | s%@HDEFINES@%$HDEFINES%g
|
|---|
| 6805 | s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
|
|---|
| 6806 | s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
|
|---|
| 6807 | s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
|
|---|
| 6808 | s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
|
|---|
| 6809 | s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
|
|---|
| 6810 | s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
|
|---|
| 6811 | s%@COREFILE@%$COREFILE%g
|
|---|
| 6812 | s%@COREFLAG@%$COREFLAG%g
|
|---|
| 6813 | s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
|
|---|
| 6814 | s%@WIN32LIBADD@%$WIN32LIBADD%g
|
|---|
| 6815 | s%@TDEFINES@%$TDEFINES%g
|
|---|
| 6816 | s%@wordsize@%$wordsize%g
|
|---|
| 6817 | s%@all_backends@%$all_backends%g
|
|---|
| 6818 | s%@bfd_backends@%$bfd_backends%g
|
|---|
| 6819 | s%@bfd_machines@%$bfd_machines%g
|
|---|
| 6820 | s%@tdefaults@%$tdefaults%g
|
|---|
| 6821 |
|
|---|
| 6822 | CEOF
|
|---|
| 6823 | EOF
|
|---|
| 6824 |
|
|---|
| 6825 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 6826 |
|
|---|
| 6827 | # Split the substitutions into bite-sized pieces for seds with
|
|---|
| 6828 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
|---|
| 6829 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
|---|
| 6830 | ac_file=1 # Number of current file.
|
|---|
| 6831 | ac_beg=1 # First line for current file.
|
|---|
| 6832 | ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
|---|
| 6833 | ac_more_lines=:
|
|---|
| 6834 | ac_sed_cmds=""
|
|---|
| 6835 | while $ac_more_lines; do
|
|---|
| 6836 | if test $ac_beg -gt 1; then
|
|---|
| 6837 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
|---|
| 6838 | else
|
|---|
| 6839 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
|---|
| 6840 | fi
|
|---|
| 6841 | if test ! -s conftest.s$ac_file; then
|
|---|
| 6842 | ac_more_lines=false
|
|---|
| 6843 | rm -f conftest.s$ac_file
|
|---|
| 6844 | else
|
|---|
| 6845 | if test -z "$ac_sed_cmds"; then
|
|---|
| 6846 | ac_sed_cmds="sed -f conftest.s$ac_file"
|
|---|
| 6847 | else
|
|---|
| 6848 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
|---|
| 6849 | fi
|
|---|
| 6850 | ac_file=`expr $ac_file + 1`
|
|---|
| 6851 | ac_beg=$ac_end
|
|---|
| 6852 | ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
|---|
| 6853 | fi
|
|---|
| 6854 | done
|
|---|
| 6855 | if test -z "$ac_sed_cmds"; then
|
|---|
| 6856 | ac_sed_cmds=cat
|
|---|
| 6857 | fi
|
|---|
| 6858 | EOF
|
|---|
| 6859 |
|
|---|
| 6860 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 6861 |
|
|---|
| 6862 | CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"}
|
|---|
| 6863 | EOF
|
|---|
| 6864 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 6865 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
|---|
| 6866 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|---|
| 6867 | case "$ac_file" in
|
|---|
| 6868 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|---|
| 6869 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|---|
| 6870 | *) ac_file_in="${ac_file}.in" ;;
|
|---|
| 6871 | esac
|
|---|
| 6872 |
|
|---|
| 6873 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
|---|
| 6874 |
|
|---|
| 6875 | # Remove last slash and all that follows it. Not all systems have dirname.
|
|---|
| 6876 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|---|
| 6877 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|---|
| 6878 | # The file is in a subdirectory.
|
|---|
| 6879 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|---|
| 6880 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
|---|
| 6881 | # A "../" for each directory in $ac_dir_suffix.
|
|---|
| 6882 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
|---|
| 6883 | else
|
|---|
| 6884 | ac_dir_suffix= ac_dots=
|
|---|
| 6885 | fi
|
|---|
| 6886 |
|
|---|
| 6887 | case "$ac_given_srcdir" in
|
|---|
| 6888 | .) srcdir=.
|
|---|
| 6889 | if test -z "$ac_dots"; then top_srcdir=.
|
|---|
| 6890 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
|---|
| 6891 | /* | [A-Za-z]:*)
|
|---|
| 6892 | srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
|---|
| 6893 | *) # Relative path.
|
|---|
| 6894 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
|---|
| 6895 | top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|---|
| 6896 | esac
|
|---|
| 6897 |
|
|---|
| 6898 | case "$ac_given_INSTALL" in
|
|---|
| 6899 | [/$]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
|
|---|
| 6900 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
|---|
| 6901 | esac
|
|---|
| 6902 |
|
|---|
| 6903 | echo creating "$ac_file"
|
|---|
| 6904 | rm -f "$ac_file"
|
|---|
| 6905 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
|---|
| 6906 | case "$ac_file" in
|
|---|
| 6907 | *Makefile*) ac_comsub="1i\\
|
|---|
| 6908 | # $configure_input" ;;
|
|---|
| 6909 | *) ac_comsub= ;;
|
|---|
| 6910 | esac
|
|---|
| 6911 |
|
|---|
| 6912 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%$PATHIFS% $ac_given_srcdir/%g"`
|
|---|
| 6913 | sed -e "$ac_comsub
|
|---|
| 6914 | s%@configure_input@%$configure_input%g
|
|---|
| 6915 | s%@srcdir@%$srcdir%g
|
|---|
| 6916 | s%@top_srcdir@%$top_srcdir%g
|
|---|
| 6917 | s%@INSTALL@%$INSTALL%g
|
|---|
| 6918 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
|---|
| 6919 | fi; done
|
|---|
| 6920 | rm -f conftest.s*
|
|---|
| 6921 |
|
|---|
| 6922 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
|---|
| 6923 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
|---|
| 6924 | #
|
|---|
| 6925 | # ac_d sets the value in "#define NAME VALUE" lines.
|
|---|
| 6926 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
|---|
| 6927 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
|---|
| 6928 | ac_dC='\3'
|
|---|
| 6929 | ac_dD='%g'
|
|---|
| 6930 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
|---|
| 6931 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|---|
| 6932 | ac_uB='\([ ]\)%\1#\2define\3'
|
|---|
| 6933 | ac_uC=' '
|
|---|
| 6934 | ac_uD='\4%g'
|
|---|
| 6935 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
|---|
| 6936 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|---|
| 6937 | ac_eB='$%\1#\2define\3'
|
|---|
| 6938 | ac_eC=' '
|
|---|
| 6939 | ac_eD='%g'
|
|---|
| 6940 |
|
|---|
| 6941 | if test "${CONFIG_HEADERS+set}" != set; then
|
|---|
| 6942 | EOF
|
|---|
| 6943 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 6944 | CONFIG_HEADERS="config.h:config.in"
|
|---|
| 6945 | EOF
|
|---|
| 6946 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 6947 | fi
|
|---|
| 6948 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
|---|
| 6949 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|---|
| 6950 | case "$ac_file" in
|
|---|
| 6951 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|---|
| 6952 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|---|
| 6953 | *) ac_file_in="${ac_file}.in" ;;
|
|---|
| 6954 | esac
|
|---|
| 6955 |
|
|---|
| 6956 | echo creating $ac_file
|
|---|
| 6957 |
|
|---|
| 6958 | rm -f conftest.frag conftest.in conftest.out
|
|---|
| 6959 | # kso the other way around might work better with drive letters and such.
|
|---|
| 6960 | # ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|---|
| 6961 | ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%" `
|
|---|
| 6962 | cat $ac_file_inputs > conftest.in
|
|---|
| 6963 |
|
|---|
| 6964 | EOF
|
|---|
| 6965 |
|
|---|
| 6966 | # Transform confdefs.h into a sed script conftest.vals that substitutes
|
|---|
| 6967 | # the proper values into config.h.in to produce config.h. And first:
|
|---|
| 6968 | # Protect against being on the right side of a sed subst in config.status.
|
|---|
| 6969 | # Protect against being in an unquoted here document in config.status.
|
|---|
| 6970 | rm -f conftest.vals
|
|---|
| 6971 | cat > conftest.hdr <<\EOF
|
|---|
| 6972 | s/[\\&%]/\\&/g
|
|---|
| 6973 | s%[\\$`]%\\&%g
|
|---|
| 6974 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
|---|
| 6975 | s%ac_d%ac_u%gp
|
|---|
| 6976 | s%ac_u%ac_e%gp
|
|---|
| 6977 | EOF
|
|---|
| 6978 | sed -n -f conftest.hdr confdefs.h > conftest.vals
|
|---|
| 6979 | rm -f conftest.hdr
|
|---|
| 6980 |
|
|---|
| 6981 | # This sed command replaces #undef with comments. This is necessary, for
|
|---|
| 6982 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
|---|
| 6983 | # on some systems where configure will not decide to define it.
|
|---|
| 6984 | cat >> conftest.vals <<\EOF
|
|---|
| 6985 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
|---|
| 6986 | EOF
|
|---|
| 6987 |
|
|---|
| 6988 | # Break up conftest.vals because some shells have a limit on
|
|---|
| 6989 | # the size of here documents, and old seds have small limits too.
|
|---|
| 6990 |
|
|---|
| 6991 | rm -f conftest.tail
|
|---|
| 6992 | while :
|
|---|
| 6993 | do
|
|---|
| 6994 | ac_lines=`grep -c . conftest.vals`
|
|---|
| 6995 | # grep -c gives empty output for an empty file on some AIX systems.
|
|---|
| 6996 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
|---|
| 6997 | # Write a limited-size here document to conftest.frag.
|
|---|
| 6998 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
|---|
| 6999 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
|---|
| 7000 | echo 'CEOF
|
|---|
| 7001 | sed -f conftest.frag conftest.in > conftest.out
|
|---|
| 7002 | rm -f conftest.in
|
|---|
| 7003 | mv conftest.out conftest.in
|
|---|
| 7004 | ' >> $CONFIG_STATUS
|
|---|
| 7005 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
|---|
| 7006 | rm -f conftest.vals
|
|---|
| 7007 | mv conftest.tail conftest.vals
|
|---|
| 7008 | done
|
|---|
| 7009 | rm -f conftest.vals
|
|---|
| 7010 |
|
|---|
| 7011 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 7012 | rm -f conftest.frag conftest.h
|
|---|
| 7013 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
|---|
| 7014 | cat conftest.in >> conftest.h
|
|---|
| 7015 | rm -f conftest.in
|
|---|
| 7016 | if cmp -s $ac_file conftest.h 2>/dev/null; then
|
|---|
| 7017 | echo "$ac_file is unchanged"
|
|---|
| 7018 | rm -f conftest.h
|
|---|
| 7019 | else
|
|---|
| 7020 | # Remove last slash and all that follows it. Not all systems have dirname.
|
|---|
| 7021 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|---|
| 7022 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|---|
| 7023 | # The file is in a subdirectory.
|
|---|
| 7024 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|---|
| 7025 | fi
|
|---|
| 7026 | rm -f $ac_file
|
|---|
| 7027 | mv conftest.h $ac_file
|
|---|
| 7028 | fi
|
|---|
| 7029 | fi; done
|
|---|
| 7030 |
|
|---|
| 7031 | EOF
|
|---|
| 7032 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 7033 |
|
|---|
| 7034 |
|
|---|
| 7035 | EOF
|
|---|
| 7036 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 7037 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
|
|---|
| 7038 | sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile
|
|---|
| 7039 | exit 0
|
|---|
| 7040 | EOF
|
|---|
| 7041 | chmod +x $CONFIG_STATUS
|
|---|
| 7042 | rm -fr confdefs* $ac_clean_files
|
|---|
| 7043 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
|---|
| 7044 |
|
|---|
| 7045 |
|
|---|