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