| 1 | #! /bin/sh
|
|---|
| 2 |
|
|---|
| 3 | # Guess values for system-dependent variables and create Makefiles.
|
|---|
| 4 | # Generated automatically using autoconf version 2.13
|
|---|
| 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
|
|---|
| 6 | #
|
|---|
| 7 | # This configure script is free software; the Free Software Foundation
|
|---|
| 8 | # gives unlimited permission to copy, distribute and modify it.
|
|---|
| 9 |
|
|---|
| 10 | # Defaults:
|
|---|
| 11 | ac_help=
|
|---|
| 12 | ac_default_prefix=/usr/local
|
|---|
| 13 | # Any additions from configure.in:
|
|---|
| 14 | ac_help="$ac_help
|
|---|
| 15 | --enable-shared[=PKGS] build shared libraries [default=yes]"
|
|---|
| 16 | ac_help="$ac_help
|
|---|
| 17 | --enable-static[=PKGS] build static libraries [default=yes]"
|
|---|
| 18 | ac_help="$ac_help
|
|---|
| 19 | --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
|
|---|
| 20 | ac_help="$ac_help
|
|---|
| 21 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
|
|---|
| 22 | ac_help="$ac_help
|
|---|
| 23 | --disable-libtool-lock avoid locking (might break parallel builds)"
|
|---|
| 24 | ac_help="$ac_help
|
|---|
| 25 | --with-pic try to use only PIC/non-PIC objects [default=use both]"
|
|---|
| 26 | ac_help="$ac_help
|
|---|
| 27 | --enable-bfd-assembler use BFD back end for writing object files"
|
|---|
| 28 | ac_help="$ac_help
|
|---|
| 29 | targets alternative target configurations besides the primary"
|
|---|
| 30 | ac_help="$ac_help
|
|---|
| 31 | --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
|
|---|
| 32 | ac_help="$ac_help
|
|---|
| 33 | --enable-build-warnings Enable build-time compiler warnings if gcc is used"
|
|---|
| 34 | ac_help="$ac_help
|
|---|
| 35 | --disable-nls do not use Native Language Support"
|
|---|
| 36 | ac_help="$ac_help
|
|---|
| 37 | --with-included-gettext use the GNU gettext library included here"
|
|---|
| 38 | ac_help="$ac_help
|
|---|
| 39 | --enable-maintainer-mode enable make rules and dependencies not useful
|
|---|
| 40 | (and sometimes confusing) to the casual installer"
|
|---|
| 41 |
|
|---|
| 42 | # Initialize some variables set by options.
|
|---|
| 43 | # The variables have the same names as the options, with
|
|---|
| 44 | # dashes changed to underlines.
|
|---|
| 45 | build=NONE
|
|---|
| 46 | cache_file=./config.cache
|
|---|
| 47 | exec_prefix=NONE
|
|---|
| 48 | host=NONE
|
|---|
| 49 | no_create=
|
|---|
| 50 | nonopt=NONE
|
|---|
| 51 | no_recursion=
|
|---|
| 52 | prefix=NONE
|
|---|
| 53 | program_prefix=NONE
|
|---|
| 54 | program_suffix=NONE
|
|---|
| 55 | program_transform_name=s,x,x,
|
|---|
| 56 | silent=
|
|---|
| 57 | site=
|
|---|
| 58 | srcdir=
|
|---|
| 59 | target=NONE
|
|---|
| 60 | verbose=
|
|---|
| 61 | x_includes=NONE
|
|---|
| 62 | x_libraries=NONE
|
|---|
| 63 | bindir='${exec_prefix}/bin'
|
|---|
| 64 | sbindir='${exec_prefix}/sbin'
|
|---|
| 65 | libexecdir='${exec_prefix}/libexec'
|
|---|
| 66 | datadir='${prefix}/share'
|
|---|
| 67 | sysconfdir='${prefix}/etc'
|
|---|
| 68 | sharedstatedir='${prefix}/com'
|
|---|
| 69 | localstatedir='${prefix}/var'
|
|---|
| 70 | libdir='${exec_prefix}/lib'
|
|---|
| 71 | includedir='${prefix}/include'
|
|---|
| 72 | oldincludedir='/usr/include'
|
|---|
| 73 | infodir='${prefix}/info'
|
|---|
| 74 | mandir='${prefix}/man'
|
|---|
| 75 |
|
|---|
| 76 | # Initialize some other variables.
|
|---|
| 77 | subdirs=
|
|---|
| 78 | MFLAGS= MAKEFLAGS=
|
|---|
| 79 | SHELL=${CONFIG_SHELL-/bin/sh}
|
|---|
| 80 | # Maximum number of lines to put in a shell here document.
|
|---|
| 81 | ac_max_here_lines=12
|
|---|
| 82 |
|
|---|
| 83 | ac_prev=
|
|---|
| 84 | for ac_option
|
|---|
| 85 | do
|
|---|
| 86 |
|
|---|
| 87 | # If the previous option needs an argument, assign it.
|
|---|
| 88 | if test -n "$ac_prev"; then
|
|---|
| 89 | eval "$ac_prev=\$ac_option"
|
|---|
| 90 | ac_prev=
|
|---|
| 91 | continue
|
|---|
| 92 | fi
|
|---|
| 93 |
|
|---|
| 94 | case "$ac_option" in
|
|---|
| 95 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
|---|
| 96 | *) ac_optarg= ;;
|
|---|
| 97 | esac
|
|---|
| 98 |
|
|---|
| 99 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
|---|
| 100 |
|
|---|
| 101 | case "$ac_option" in
|
|---|
| 102 |
|
|---|
| 103 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
|---|
| 104 | ac_prev=bindir ;;
|
|---|
| 105 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
|---|
| 106 | bindir="$ac_optarg" ;;
|
|---|
| 107 |
|
|---|
| 108 | -build | --build | --buil | --bui | --bu)
|
|---|
| 109 | ac_prev=build ;;
|
|---|
| 110 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
|---|
| 111 | build="$ac_optarg" ;;
|
|---|
| 112 |
|
|---|
| 113 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
|---|
| 114 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
|---|
| 115 | ac_prev=cache_file ;;
|
|---|
| 116 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
|---|
| 117 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
|---|
| 118 | cache_file="$ac_optarg" ;;
|
|---|
| 119 |
|
|---|
| 120 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
|---|
| 121 | ac_prev=datadir ;;
|
|---|
| 122 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
|---|
| 123 | | --da=*)
|
|---|
| 124 | datadir="$ac_optarg" ;;
|
|---|
| 125 |
|
|---|
| 126 | -disable-* | --disable-*)
|
|---|
| 127 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
|---|
| 128 | # Reject names that are not valid shell variable names.
|
|---|
| 129 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|---|
| 130 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|---|
| 131 | fi
|
|---|
| 132 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|---|
| 133 | eval "enable_${ac_feature}=no" ;;
|
|---|
| 134 |
|
|---|
| 135 | -enable-* | --enable-*)
|
|---|
| 136 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
|---|
| 137 | # Reject names that are not valid shell variable names.
|
|---|
| 138 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|---|
| 139 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|---|
| 140 | fi
|
|---|
| 141 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|---|
| 142 | case "$ac_option" in
|
|---|
| 143 | *=*) ;;
|
|---|
| 144 | *) ac_optarg=yes ;;
|
|---|
| 145 | esac
|
|---|
| 146 | eval "enable_${ac_feature}='$ac_optarg'" ;;
|
|---|
| 147 |
|
|---|
| 148 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
|---|
| 149 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
|---|
| 150 | | --exec | --exe | --ex)
|
|---|
| 151 | ac_prev=exec_prefix ;;
|
|---|
| 152 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
|---|
| 153 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
|---|
| 154 | | --exec=* | --exe=* | --ex=*)
|
|---|
| 155 | exec_prefix="$ac_optarg" ;;
|
|---|
| 156 |
|
|---|
| 157 | -gas | --gas | --ga | --g)
|
|---|
| 158 | # Obsolete; use --with-gas.
|
|---|
| 159 | with_gas=yes ;;
|
|---|
| 160 |
|
|---|
| 161 | -help | --help | --hel | --he)
|
|---|
| 162 | # Omit some internal or obsolete options to make the list less imposing.
|
|---|
| 163 | # This message is too long to be a string in the A/UX 3.1 sh.
|
|---|
| 164 | cat << EOF
|
|---|
| 165 | Usage: configure [options] [host]
|
|---|
| 166 | Options: [defaults in brackets after descriptions]
|
|---|
| 167 | Configuration:
|
|---|
| 168 | --cache-file=FILE cache test results in FILE
|
|---|
| 169 | --help print this message
|
|---|
| 170 | --no-create do not create output files
|
|---|
| 171 | --quiet, --silent do not print \`checking...' messages
|
|---|
| 172 | --version print the version of autoconf that created configure
|
|---|
| 173 | Directory and file names:
|
|---|
| 174 | --prefix=PREFIX install architecture-independent files in PREFIX
|
|---|
| 175 | [$ac_default_prefix]
|
|---|
| 176 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
|---|
| 177 | [same as prefix]
|
|---|
| 178 | --bindir=DIR user executables in DIR [EPREFIX/bin]
|
|---|
| 179 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
|---|
| 180 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
|---|
| 181 | --datadir=DIR read-only architecture-independent data in DIR
|
|---|
| 182 | [PREFIX/share]
|
|---|
| 183 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
|---|
| 184 | --sharedstatedir=DIR modifiable architecture-independent data in DIR
|
|---|
| 185 | [PREFIX/com]
|
|---|
| 186 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
|---|
| 187 | --libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
|---|
| 188 | --includedir=DIR C header files in DIR [PREFIX/include]
|
|---|
| 189 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
|---|
| 190 | --infodir=DIR info documentation in DIR [PREFIX/info]
|
|---|
| 191 | --mandir=DIR man documentation in DIR [PREFIX/man]
|
|---|
| 192 | --srcdir=DIR find the sources in DIR [configure dir or ..]
|
|---|
| 193 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
|---|
| 194 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
|---|
| 195 | --program-transform-name=PROGRAM
|
|---|
| 196 | run sed PROGRAM on installed program names
|
|---|
| 197 | EOF
|
|---|
| 198 | cat << EOF
|
|---|
| 199 | Host type:
|
|---|
| 200 | --build=BUILD configure for building on BUILD [BUILD=HOST]
|
|---|
| 201 | --host=HOST configure for HOST [guessed]
|
|---|
| 202 | --target=TARGET configure for TARGET [TARGET=HOST]
|
|---|
| 203 | Features and packages:
|
|---|
| 204 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
|---|
| 205 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
|---|
| 206 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
|---|
| 207 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
|---|
| 208 | --x-includes=DIR X include files are in DIR
|
|---|
| 209 | --x-libraries=DIR X library files are in DIR
|
|---|
| 210 | EOF
|
|---|
| 211 | if test -n "$ac_help"; then
|
|---|
| 212 | echo "--enable and --with options recognized:$ac_help"
|
|---|
| 213 | fi
|
|---|
| 214 | exit 0 ;;
|
|---|
| 215 |
|
|---|
| 216 | -host | --host | --hos | --ho)
|
|---|
| 217 | ac_prev=host ;;
|
|---|
| 218 | -host=* | --host=* | --hos=* | --ho=*)
|
|---|
| 219 | host="$ac_optarg" ;;
|
|---|
| 220 |
|
|---|
| 221 | -includedir | --includedir | --includedi | --included | --include \
|
|---|
| 222 | | --includ | --inclu | --incl | --inc)
|
|---|
| 223 | ac_prev=includedir ;;
|
|---|
| 224 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
|---|
| 225 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
|---|
| 226 | includedir="$ac_optarg" ;;
|
|---|
| 227 |
|
|---|
| 228 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
|---|
| 229 | ac_prev=infodir ;;
|
|---|
| 230 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
|---|
| 231 | infodir="$ac_optarg" ;;
|
|---|
| 232 |
|
|---|
| 233 | -libdir | --libdir | --libdi | --libd)
|
|---|
| 234 | ac_prev=libdir ;;
|
|---|
| 235 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
|---|
| 236 | libdir="$ac_optarg" ;;
|
|---|
| 237 |
|
|---|
| 238 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
|---|
| 239 | | --libexe | --libex | --libe)
|
|---|
| 240 | ac_prev=libexecdir ;;
|
|---|
| 241 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
|---|
| 242 | | --libexe=* | --libex=* | --libe=*)
|
|---|
| 243 | libexecdir="$ac_optarg" ;;
|
|---|
| 244 |
|
|---|
| 245 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
|---|
| 246 | | --localstate | --localstat | --localsta | --localst \
|
|---|
| 247 | | --locals | --local | --loca | --loc | --lo)
|
|---|
| 248 | ac_prev=localstatedir ;;
|
|---|
| 249 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
|---|
| 250 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
|---|
| 251 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
|---|
| 252 | localstatedir="$ac_optarg" ;;
|
|---|
| 253 |
|
|---|
| 254 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
|---|
| 255 | ac_prev=mandir ;;
|
|---|
| 256 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
|---|
| 257 | mandir="$ac_optarg" ;;
|
|---|
| 258 |
|
|---|
| 259 | -nfp | --nfp | --nf)
|
|---|
| 260 | # Obsolete; use --without-fp.
|
|---|
| 261 | with_fp=no ;;
|
|---|
| 262 |
|
|---|
| 263 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|---|
| 264 | | --no-cr | --no-c)
|
|---|
| 265 | no_create=yes ;;
|
|---|
| 266 |
|
|---|
| 267 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|---|
| 268 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
|---|
| 269 | no_recursion=yes ;;
|
|---|
| 270 |
|
|---|
| 271 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
|---|
| 272 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
|---|
| 273 | | --oldin | --oldi | --old | --ol | --o)
|
|---|
| 274 | ac_prev=oldincludedir ;;
|
|---|
| 275 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
|---|
| 276 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
|---|
| 277 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
|---|
| 278 | oldincludedir="$ac_optarg" ;;
|
|---|
| 279 |
|
|---|
| 280 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
|---|
| 281 | ac_prev=prefix ;;
|
|---|
| 282 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
|---|
| 283 | prefix="$ac_optarg" ;;
|
|---|
| 284 |
|
|---|
| 285 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
|---|
| 286 | | --program-pre | --program-pr | --program-p)
|
|---|
| 287 | ac_prev=program_prefix ;;
|
|---|
| 288 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
|---|
| 289 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
|---|
| 290 | program_prefix="$ac_optarg" ;;
|
|---|
| 291 |
|
|---|
| 292 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
|---|
| 293 | | --program-suf | --program-su | --program-s)
|
|---|
| 294 | ac_prev=program_suffix ;;
|
|---|
| 295 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
|---|
| 296 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
|---|
| 297 | program_suffix="$ac_optarg" ;;
|
|---|
| 298 |
|
|---|
| 299 | -program-transform-name | --program-transform-name \
|
|---|
| 300 | | --program-transform-nam | --program-transform-na \
|
|---|
| 301 | | --program-transform-n | --program-transform- \
|
|---|
| 302 | | --program-transform | --program-transfor \
|
|---|
| 303 | | --program-transfo | --program-transf \
|
|---|
| 304 | | --program-trans | --program-tran \
|
|---|
| 305 | | --progr-tra | --program-tr | --program-t)
|
|---|
| 306 | ac_prev=program_transform_name ;;
|
|---|
| 307 | -program-transform-name=* | --program-transform-name=* \
|
|---|
| 308 | | --program-transform-nam=* | --program-transform-na=* \
|
|---|
| 309 | | --program-transform-n=* | --program-transform-=* \
|
|---|
| 310 | | --program-transform=* | --program-transfor=* \
|
|---|
| 311 | | --program-transfo=* | --program-transf=* \
|
|---|
| 312 | | --program-trans=* | --program-tran=* \
|
|---|
| 313 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
|---|
| 314 | program_transform_name="$ac_optarg" ;;
|
|---|
| 315 |
|
|---|
| 316 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|---|
| 317 | | -silent | --silent | --silen | --sile | --sil)
|
|---|
| 318 | silent=yes ;;
|
|---|
| 319 |
|
|---|
| 320 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
|---|
| 321 | ac_prev=sbindir ;;
|
|---|
| 322 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
|---|
| 323 | | --sbi=* | --sb=*)
|
|---|
| 324 | sbindir="$ac_optarg" ;;
|
|---|
| 325 |
|
|---|
| 326 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
|---|
| 327 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
|---|
| 328 | | --sharedst | --shareds | --shared | --share | --shar \
|
|---|
| 329 | | --sha | --sh)
|
|---|
| 330 | ac_prev=sharedstatedir ;;
|
|---|
| 331 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
|---|
| 332 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
|---|
| 333 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
|---|
| 334 | | --sha=* | --sh=*)
|
|---|
| 335 | sharedstatedir="$ac_optarg" ;;
|
|---|
| 336 |
|
|---|
| 337 | -site | --site | --sit)
|
|---|
| 338 | ac_prev=site ;;
|
|---|
| 339 | -site=* | --site=* | --sit=*)
|
|---|
| 340 | site="$ac_optarg" ;;
|
|---|
| 341 |
|
|---|
| 342 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
|---|
| 343 | ac_prev=srcdir ;;
|
|---|
| 344 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
|---|
| 345 | srcdir="$ac_optarg" ;;
|
|---|
| 346 |
|
|---|
| 347 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
|---|
| 348 | | --syscon | --sysco | --sysc | --sys | --sy)
|
|---|
| 349 | ac_prev=sysconfdir ;;
|
|---|
| 350 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
|---|
| 351 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
|---|
| 352 | sysconfdir="$ac_optarg" ;;
|
|---|
| 353 |
|
|---|
| 354 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
|---|
| 355 | ac_prev=target ;;
|
|---|
| 356 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
|---|
| 357 | target="$ac_optarg" ;;
|
|---|
| 358 |
|
|---|
| 359 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
|---|
| 360 | verbose=yes ;;
|
|---|
| 361 |
|
|---|
| 362 | -version | --version | --versio | --versi | --vers)
|
|---|
| 363 | echo "configure generated by autoconf version 2.13"
|
|---|
| 364 | exit 0 ;;
|
|---|
| 365 |
|
|---|
| 366 | -with-* | --with-*)
|
|---|
| 367 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
|---|
| 368 | # Reject names that are not valid shell variable names.
|
|---|
| 369 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|---|
| 370 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|---|
| 371 | fi
|
|---|
| 372 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|---|
| 373 | case "$ac_option" in
|
|---|
| 374 | *=*) ;;
|
|---|
| 375 | *) ac_optarg=yes ;;
|
|---|
| 376 | esac
|
|---|
| 377 | eval "with_${ac_package}='$ac_optarg'" ;;
|
|---|
| 378 |
|
|---|
| 379 | -without-* | --without-*)
|
|---|
| 380 | ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
|---|
| 381 | # Reject names that are not valid shell variable names.
|
|---|
| 382 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|---|
| 383 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|---|
| 384 | fi
|
|---|
| 385 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|---|
| 386 | eval "with_${ac_package}=no" ;;
|
|---|
| 387 |
|
|---|
| 388 | --x)
|
|---|
| 389 | # Obsolete; use --with-x.
|
|---|
| 390 | with_x=yes ;;
|
|---|
| 391 |
|
|---|
| 392 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
|---|
| 393 | | --x-incl | --x-inc | --x-in | --x-i)
|
|---|
| 394 | ac_prev=x_includes ;;
|
|---|
| 395 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
|---|
| 396 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
|---|
| 397 | x_includes="$ac_optarg" ;;
|
|---|
| 398 |
|
|---|
| 399 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
|---|
| 400 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
|---|
| 401 | ac_prev=x_libraries ;;
|
|---|
| 402 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
|---|
| 403 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
|---|
| 404 | x_libraries="$ac_optarg" ;;
|
|---|
| 405 |
|
|---|
| 406 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
|---|
| 407 | ;;
|
|---|
| 408 |
|
|---|
| 409 | *)
|
|---|
| 410 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
|---|
| 411 | echo "configure: warning: $ac_option: invalid host type" 1>&2
|
|---|
| 412 | fi
|
|---|
| 413 | if test "x$nonopt" != xNONE; then
|
|---|
| 414 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
|---|
| 415 | fi
|
|---|
| 416 | nonopt="$ac_option"
|
|---|
| 417 | ;;
|
|---|
| 418 |
|
|---|
| 419 | esac
|
|---|
| 420 | done
|
|---|
| 421 |
|
|---|
| 422 | if test -n "$ac_prev"; then
|
|---|
| 423 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
|---|
| 424 | fi
|
|---|
| 425 |
|
|---|
| 426 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|---|
| 427 |
|
|---|
| 428 | # File descriptor usage:
|
|---|
| 429 | # 0 standard input
|
|---|
| 430 | # 1 file creation
|
|---|
| 431 | # 2 errors and warnings
|
|---|
| 432 | # 3 some systems may open it to /dev/tty
|
|---|
| 433 | # 4 used on the Kubota Titan
|
|---|
| 434 | # 6 checking for... messages and results
|
|---|
| 435 | # 5 compiler messages saved in config.log
|
|---|
| 436 | if test "$silent" = yes; then
|
|---|
| 437 | exec 6>/dev/null
|
|---|
| 438 | else
|
|---|
| 439 | exec 6>&1
|
|---|
| 440 | fi
|
|---|
| 441 | exec 5>./config.log
|
|---|
| 442 |
|
|---|
| 443 | echo "\
|
|---|
| 444 | This file contains any messages produced by compilers while
|
|---|
| 445 | running configure, to aid debugging if configure makes a mistake.
|
|---|
| 446 | " 1>&5
|
|---|
| 447 |
|
|---|
| 448 | # Strip out --no-create and --no-recursion so they do not pile up.
|
|---|
| 449 | # Also quote any args containing shell metacharacters.
|
|---|
| 450 | ac_configure_args=
|
|---|
| 451 | for ac_arg
|
|---|
| 452 | do
|
|---|
| 453 | case "$ac_arg" in
|
|---|
| 454 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|---|
| 455 | | --no-cr | --no-c) ;;
|
|---|
| 456 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|---|
| 457 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
|---|
| 458 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
|---|
| 459 | ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
|---|
| 460 | *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
|---|
| 461 | esac
|
|---|
| 462 | done
|
|---|
| 463 |
|
|---|
| 464 | # NLS nuisances.
|
|---|
| 465 | # Only set these to C if already set. These must not be set unconditionally
|
|---|
| 466 | # because not all systems understand e.g. LANG=C (notably SCO).
|
|---|
| 467 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
|---|
| 468 | # Non-C LC_CTYPE values break the ctype check.
|
|---|
| 469 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
|---|
| 470 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
|---|
| 471 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
|---|
| 472 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
|---|
| 473 |
|
|---|
| 474 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
|---|
| 475 | rm -rf conftest* confdefs.h
|
|---|
| 476 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
|---|
| 477 | echo > confdefs.h
|
|---|
| 478 |
|
|---|
| 479 | # A filename unique to this package, relative to the directory that
|
|---|
| 480 | # configure is in, which we can look for to find out if srcdir is correct.
|
|---|
| 481 | ac_unique_file=as.h
|
|---|
| 482 |
|
|---|
| 483 | # Find the source files, if location was not specified.
|
|---|
| 484 | if test -z "$srcdir"; then
|
|---|
| 485 | ac_srcdir_defaulted=yes
|
|---|
| 486 | # Try the directory containing this script, then its parent.
|
|---|
| 487 | ac_prog=$0
|
|---|
| 488 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
|---|
| 489 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
|---|
| 490 | srcdir=$ac_confdir
|
|---|
| 491 | if test ! -r $srcdir/$ac_unique_file; then
|
|---|
| 492 | srcdir=..
|
|---|
| 493 | fi
|
|---|
| 494 | else
|
|---|
| 495 | ac_srcdir_defaulted=no
|
|---|
| 496 | fi
|
|---|
| 497 | if test ! -r $srcdir/$ac_unique_file; then
|
|---|
| 498 | if test "$ac_srcdir_defaulted" = yes; then
|
|---|
| 499 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
|---|
| 500 | else
|
|---|
| 501 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
|---|
| 502 | fi
|
|---|
| 503 | fi
|
|---|
| 504 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
|---|
| 505 |
|
|---|
| 506 | # Prefer explicitly selected file to automatically selected ones.
|
|---|
| 507 | if test -z "$CONFIG_SITE"; then
|
|---|
| 508 | if test "x$prefix" != xNONE; then
|
|---|
| 509 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
|---|
| 510 | else
|
|---|
| 511 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
|---|
| 512 | fi
|
|---|
| 513 | fi
|
|---|
| 514 | for ac_site_file in $CONFIG_SITE; do
|
|---|
| 515 | if test -r "$ac_site_file"; then
|
|---|
| 516 | echo "loading site script $ac_site_file"
|
|---|
| 517 | . "$ac_site_file"
|
|---|
| 518 | fi
|
|---|
| 519 | done
|
|---|
| 520 |
|
|---|
| 521 | if test -r "$cache_file"; then
|
|---|
| 522 | echo "loading cache $cache_file"
|
|---|
| 523 | . $cache_file
|
|---|
| 524 | else
|
|---|
| 525 | echo "creating cache $cache_file"
|
|---|
| 526 | > $cache_file
|
|---|
| 527 | fi
|
|---|
| 528 |
|
|---|
| 529 | ac_ext=c
|
|---|
| 530 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 531 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 532 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 533 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 534 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 535 |
|
|---|
| 536 | ac_exeext=
|
|---|
| 537 | ac_objext=o
|
|---|
| 538 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
|---|
| 539 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
|---|
| 540 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
|---|
| 541 | ac_n= ac_c='
|
|---|
| 542 | ' ac_t=' '
|
|---|
| 543 | else
|
|---|
| 544 | ac_n=-n ac_c= ac_t=
|
|---|
| 545 | fi
|
|---|
| 546 | else
|
|---|
| 547 | ac_n= ac_c='\c' ac_t=
|
|---|
| 548 | fi
|
|---|
| 549 |
|
|---|
| 550 | echo $ac_n "checking for path separator""... $ac_c" 1>&6
|
|---|
| 551 | echo "configure:552: checking for path separator" >&5
|
|---|
| 552 | # Filter path to get backslahes into forwardslashes
|
|---|
| 553 | case "`uname -s 2> /dev/null`" in
|
|---|
| 554 | OS/2)
|
|---|
| 555 | PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
|
|---|
| 556 | PATH_IFS=';'
|
|---|
| 557 | ;;
|
|---|
| 558 | *)
|
|---|
| 559 | PATH_IFS=':'
|
|---|
| 560 | ;;
|
|---|
| 561 | esac
|
|---|
| 562 | echo "$ac_t""${PATH_IFS}" 1>&6
|
|---|
| 563 |
|
|---|
| 564 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
|
|---|
| 565 | echo "configure:566: checking for Cygwin environment" >&5
|
|---|
| 566 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
|
|---|
| 567 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 568 | else
|
|---|
| 569 | cat > conftest.$ac_ext <<EOF
|
|---|
| 570 | #line 571 "configure"
|
|---|
| 571 | #include "confdefs.h"
|
|---|
| 572 |
|
|---|
| 573 | int main() {
|
|---|
| 574 |
|
|---|
| 575 | #ifndef __CYGWIN__
|
|---|
| 576 | #define __CYGWIN__ __CYGWIN32__
|
|---|
| 577 | #endif
|
|---|
| 578 | return __CYGWIN__;
|
|---|
| 579 | ; return 0; }
|
|---|
| 580 | EOF
|
|---|
| 581 | if { (eval echo configure:582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 582 | rm -rf conftest*
|
|---|
| 583 | ac_cv_cygwin=yes
|
|---|
| 584 | else
|
|---|
| 585 | echo "configure: failed program was:" >&5
|
|---|
| 586 | cat conftest.$ac_ext >&5
|
|---|
| 587 | rm -rf conftest*
|
|---|
| 588 | ac_cv_cygwin=no
|
|---|
| 589 | fi
|
|---|
| 590 | rm -f conftest*
|
|---|
| 591 | rm -f conftest*
|
|---|
| 592 | fi
|
|---|
| 593 |
|
|---|
| 594 | echo "$ac_t""$ac_cv_cygwin" 1>&6
|
|---|
| 595 | CYGWIN=
|
|---|
| 596 | test "$ac_cv_cygwin" = yes && CYGWIN=yes
|
|---|
| 597 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
|
|---|
| 598 | echo "configure:599: checking for mingw32 environment" >&5
|
|---|
| 599 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
|
|---|
| 600 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 601 | else
|
|---|
| 602 | cat > conftest.$ac_ext <<EOF
|
|---|
| 603 | #line 604 "configure"
|
|---|
| 604 | #include "confdefs.h"
|
|---|
| 605 |
|
|---|
| 606 | int main() {
|
|---|
| 607 | return __MINGW32__;
|
|---|
| 608 | ; return 0; }
|
|---|
| 609 | EOF
|
|---|
| 610 | if { (eval echo configure:611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 611 | rm -rf conftest*
|
|---|
| 612 | ac_cv_mingw32=yes
|
|---|
| 613 | else
|
|---|
| 614 | echo "configure: failed program was:" >&5
|
|---|
| 615 | cat conftest.$ac_ext >&5
|
|---|
| 616 | rm -rf conftest*
|
|---|
| 617 | ac_cv_mingw32=no
|
|---|
| 618 | fi
|
|---|
| 619 | rm -f conftest*
|
|---|
| 620 | rm -f conftest*
|
|---|
| 621 | fi
|
|---|
| 622 |
|
|---|
| 623 | echo "$ac_t""$ac_cv_mingw32" 1>&6
|
|---|
| 624 | MINGW32=
|
|---|
| 625 | test "$ac_cv_mingw32" = yes && MINGW32=yes
|
|---|
| 626 | echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
|
|---|
| 627 | echo "configure:628: checking for EMX/OS2 environment" >&5
|
|---|
| 628 | if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
|
|---|
| 629 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 630 | else
|
|---|
| 631 | : ${CC=gcc.exe}
|
|---|
| 632 | cat > conftest.$ac_ext <<EOF
|
|---|
| 633 | #line 634 "configure"
|
|---|
| 634 | #include "confdefs.h"
|
|---|
| 635 |
|
|---|
| 636 | int main() {
|
|---|
| 637 | return __EMX__;
|
|---|
| 638 | ; return 0; }
|
|---|
| 639 | EOF
|
|---|
| 640 | if { (eval echo configure:641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 641 | rm -rf conftest*
|
|---|
| 642 | ac_cv_emxos2=yes
|
|---|
| 643 | else
|
|---|
| 644 | echo "configure: failed program was:" >&5
|
|---|
| 645 | cat conftest.$ac_ext >&5
|
|---|
| 646 | rm -rf conftest*
|
|---|
| 647 | ac_cv_emxos2=no
|
|---|
| 648 | fi
|
|---|
| 649 | rm -f conftest*
|
|---|
| 650 | rm -f conftest*
|
|---|
| 651 | fi
|
|---|
| 652 |
|
|---|
| 653 | echo "$ac_t""$ac_cv_emxos2" 1>&6
|
|---|
| 654 | if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
|
|---|
| 655 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 656 | else
|
|---|
| 657 | if test "$ac_cv_emxos2" = yes ; then
|
|---|
| 658 | ac_cv_libpre=
|
|---|
| 659 | else
|
|---|
| 660 | ac_cv_libpre=lib
|
|---|
| 661 | fi
|
|---|
| 662 |
|
|---|
| 663 | fi
|
|---|
| 664 |
|
|---|
| 665 | EMXOS2=
|
|---|
| 666 | test "$ac_cv_emxos2" = yes && EMXOS2=yes
|
|---|
| 667 |
|
|---|
| 668 |
|
|---|
| 669 |
|
|---|
| 670 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
|---|
| 671 | echo "configure:672: checking for executable suffix" >&5
|
|---|
| 672 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
|---|
| 673 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 674 | else
|
|---|
| 675 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
|---|
| 676 | ac_cv_exeext=.exe
|
|---|
| 677 | else
|
|---|
| 678 | rm -f conftest*
|
|---|
| 679 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
|---|
| 680 | ac_cv_exeext=
|
|---|
| 681 | if { (eval echo configure:682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
|---|
| 682 | for file in conftest.*; do
|
|---|
| 683 | case $file in
|
|---|
| 684 | *.c | *.o | *.obj) ;;
|
|---|
| 685 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
|---|
| 686 | esac
|
|---|
| 687 | done
|
|---|
| 688 | else
|
|---|
| 689 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 690 | fi
|
|---|
| 691 | rm -f conftest*
|
|---|
| 692 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
|---|
| 693 | fi
|
|---|
| 694 | fi
|
|---|
| 695 |
|
|---|
| 696 | EXEEXT=""
|
|---|
| 697 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
|---|
| 698 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
|---|
| 699 | ac_exeext=$EXEEXT
|
|---|
| 700 |
|
|---|
| 701 |
|
|---|
| 702 |
|
|---|
| 703 | ac_aux_dir=
|
|---|
| 704 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
|---|
| 705 | if test -f $ac_dir/install-sh; then
|
|---|
| 706 | ac_aux_dir=$ac_dir
|
|---|
| 707 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
|---|
| 708 | break
|
|---|
| 709 | elif test -f $ac_dir/install.sh; then
|
|---|
| 710 | ac_aux_dir=$ac_dir
|
|---|
| 711 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
|---|
| 712 | break
|
|---|
| 713 | fi
|
|---|
| 714 | done
|
|---|
| 715 | if test -z "$ac_aux_dir"; then
|
|---|
| 716 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
|---|
| 717 | fi
|
|---|
| 718 | ac_config_guess=$ac_aux_dir/config.guess
|
|---|
| 719 | ac_config_sub=$ac_aux_dir/config.sub
|
|---|
| 720 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
|---|
| 721 |
|
|---|
| 722 |
|
|---|
| 723 | # Do some error checking and defaulting for the host and target type.
|
|---|
| 724 | # The inputs are:
|
|---|
| 725 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT
|
|---|
| 726 | #
|
|---|
| 727 | # The rules are:
|
|---|
| 728 | # 1. You are not allowed to specify --host, --target, and nonopt at the
|
|---|
| 729 | # same time.
|
|---|
| 730 | # 2. Host defaults to nonopt.
|
|---|
| 731 | # 3. If nonopt is not specified, then host defaults to the current host,
|
|---|
| 732 | # as determined by config.guess.
|
|---|
| 733 | # 4. Target and build default to nonopt.
|
|---|
| 734 | # 5. If nonopt is not specified, then target and build default to host.
|
|---|
| 735 |
|
|---|
| 736 | # The aliases save the names the user supplied, while $host etc.
|
|---|
| 737 | # will get canonicalized.
|
|---|
| 738 | case $host---$target---$nonopt in
|
|---|
| 739 | NONE---*---* | *---NONE---* | *---*---NONE) ;;
|
|---|
| 740 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
|
|---|
| 741 | esac
|
|---|
| 742 |
|
|---|
| 743 |
|
|---|
| 744 | # Make sure we can run config.sub.
|
|---|
| 745 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
|
|---|
| 746 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
|
|---|
| 747 | fi
|
|---|
| 748 |
|
|---|
| 749 | echo $ac_n "checking host system type""... $ac_c" 1>&6
|
|---|
| 750 | echo "configure:751: checking host system type" >&5
|
|---|
| 751 |
|
|---|
| 752 | host_alias=$host
|
|---|
| 753 | case "$host_alias" in
|
|---|
| 754 | NONE)
|
|---|
| 755 | case $nonopt in
|
|---|
| 756 | NONE)
|
|---|
| 757 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
|
|---|
| 758 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
|
|---|
| 759 | fi ;;
|
|---|
| 760 | *) host_alias=$nonopt ;;
|
|---|
| 761 | esac ;;
|
|---|
| 762 | esac
|
|---|
| 763 |
|
|---|
| 764 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
|
|---|
| 765 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 766 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 767 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 768 | echo "$ac_t""$host" 1>&6
|
|---|
| 769 |
|
|---|
| 770 | echo $ac_n "checking target system type""... $ac_c" 1>&6
|
|---|
| 771 | echo "configure:772: checking target system type" >&5
|
|---|
| 772 |
|
|---|
| 773 | target_alias=$target
|
|---|
| 774 | case "$target_alias" in
|
|---|
| 775 | NONE)
|
|---|
| 776 | case $nonopt in
|
|---|
| 777 | NONE) target_alias=$host_alias ;;
|
|---|
| 778 | *) target_alias=$nonopt ;;
|
|---|
| 779 | esac ;;
|
|---|
| 780 | esac
|
|---|
| 781 |
|
|---|
| 782 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
|
|---|
| 783 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 784 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 785 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 786 | echo "$ac_t""$target" 1>&6
|
|---|
| 787 |
|
|---|
| 788 | echo $ac_n "checking build system type""... $ac_c" 1>&6
|
|---|
| 789 | echo "configure:790: checking build system type" >&5
|
|---|
| 790 |
|
|---|
| 791 | build_alias=$build
|
|---|
| 792 | case "$build_alias" in
|
|---|
| 793 | NONE)
|
|---|
| 794 | case $nonopt in
|
|---|
| 795 | NONE) build_alias=$host_alias ;;
|
|---|
| 796 | *) build_alias=$nonopt ;;
|
|---|
| 797 | esac ;;
|
|---|
| 798 | esac
|
|---|
| 799 |
|
|---|
| 800 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
|
|---|
| 801 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 802 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 803 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 804 | echo "$ac_t""$build" 1>&6
|
|---|
| 805 |
|
|---|
| 806 | test "$host_alias" != "$target_alias" &&
|
|---|
| 807 | test "$program_prefix$program_suffix$program_transform_name" = \
|
|---|
| 808 | NONENONEs,x,x, &&
|
|---|
| 809 | program_prefix=${target_alias}-
|
|---|
| 810 |
|
|---|
| 811 | # Extract the first word of "gcc", so it can be a program name with args.
|
|---|
| 812 | set dummy gcc; ac_word=$2
|
|---|
| 813 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 814 | echo "configure:815: checking for $ac_word" >&5
|
|---|
| 815 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 816 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 817 | else
|
|---|
| 818 | if test -n "$CC"; then
|
|---|
| 819 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 820 | else
|
|---|
| 821 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 822 | ac_dummy="$PATH"
|
|---|
| 823 | for ac_dir in $ac_dummy; do
|
|---|
| 824 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 825 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 826 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 827 | ac_cv_prog_CC="gcc"
|
|---|
| 828 | break
|
|---|
| 829 | fi
|
|---|
| 830 | done
|
|---|
| 831 | IFS="$ac_save_ifs"
|
|---|
| 832 | fi
|
|---|
| 833 | fi
|
|---|
| 834 | CC="$ac_cv_prog_CC"
|
|---|
| 835 | if test -n "$CC"; then
|
|---|
| 836 | echo "$ac_t""$CC" 1>&6
|
|---|
| 837 | else
|
|---|
| 838 | echo "$ac_t""no" 1>&6
|
|---|
| 839 | fi
|
|---|
| 840 |
|
|---|
| 841 | if test -z "$CC"; then
|
|---|
| 842 | # Extract the first word of "cc", so it can be a program name with args.
|
|---|
| 843 | set dummy cc; ac_word=$2
|
|---|
| 844 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 845 | echo "configure:846: checking for $ac_word" >&5
|
|---|
| 846 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 847 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 848 | else
|
|---|
| 849 | if test -n "$CC"; then
|
|---|
| 850 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 851 | else
|
|---|
| 852 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 853 | ac_prog_rejected=no
|
|---|
| 854 | ac_dummy="$PATH"
|
|---|
| 855 | for ac_dir in $ac_dummy; do
|
|---|
| 856 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 857 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 858 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 859 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
|
|---|
| 860 | "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
|
|---|
| 861 | ac_prog_rejected=yes
|
|---|
| 862 | continue
|
|---|
| 863 | fi
|
|---|
| 864 | ac_cv_prog_CC="cc"
|
|---|
| 865 | break
|
|---|
| 866 | fi
|
|---|
| 867 | done
|
|---|
| 868 | IFS="$ac_save_ifs"
|
|---|
| 869 | if test $ac_prog_rejected = yes; then
|
|---|
| 870 | # We found a bogon in the path, so make sure we never use it.
|
|---|
| 871 | set dummy $ac_cv_prog_CC
|
|---|
| 872 | shift
|
|---|
| 873 | if test $# -gt 0; then
|
|---|
| 874 | # We chose a different compiler from the bogus one.
|
|---|
| 875 | # However, it has the same basename, so the bogon will be chosen
|
|---|
| 876 | # first if we set CC to just the basename; use the full file name.
|
|---|
| 877 | shift
|
|---|
| 878 | set dummy "$ac_dir/$ac_word" "$@"
|
|---|
| 879 | shift
|
|---|
| 880 | ac_cv_prog_CC="$@"
|
|---|
| 881 | fi
|
|---|
| 882 | fi
|
|---|
| 883 | fi
|
|---|
| 884 | fi
|
|---|
| 885 | CC="$ac_cv_prog_CC"
|
|---|
| 886 | if test -n "$CC"; then
|
|---|
| 887 | echo "$ac_t""$CC" 1>&6
|
|---|
| 888 | else
|
|---|
| 889 | echo "$ac_t""no" 1>&6
|
|---|
| 890 | fi
|
|---|
| 891 |
|
|---|
| 892 | if test -z "$CC"; then
|
|---|
| 893 | case "`uname -s`" in
|
|---|
| 894 | *win32* | *WIN32*)
|
|---|
| 895 | # Extract the first word of "cl", so it can be a program name with args.
|
|---|
| 896 | set dummy cl; ac_word=$2
|
|---|
| 897 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 898 | echo "configure:899: checking for $ac_word" >&5
|
|---|
| 899 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 900 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 901 | else
|
|---|
| 902 | if test -n "$CC"; then
|
|---|
| 903 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 904 | else
|
|---|
| 905 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 906 | ac_dummy="$PATH"
|
|---|
| 907 | for ac_dir in $ac_dummy; do
|
|---|
| 908 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 909 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 910 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 911 | ac_cv_prog_CC="cl"
|
|---|
| 912 | break
|
|---|
| 913 | fi
|
|---|
| 914 | done
|
|---|
| 915 | IFS="$ac_save_ifs"
|
|---|
| 916 | fi
|
|---|
| 917 | fi
|
|---|
| 918 | CC="$ac_cv_prog_CC"
|
|---|
| 919 | if test -n "$CC"; then
|
|---|
| 920 | echo "$ac_t""$CC" 1>&6
|
|---|
| 921 | else
|
|---|
| 922 | echo "$ac_t""no" 1>&6
|
|---|
| 923 | fi
|
|---|
| 924 | ;;
|
|---|
| 925 | esac
|
|---|
| 926 | fi
|
|---|
| 927 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|---|
| 928 | fi
|
|---|
| 929 |
|
|---|
| 930 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|---|
| 931 | echo "configure:932: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
|---|
| 932 |
|
|---|
| 933 | ac_ext=c
|
|---|
| 934 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 935 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 936 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 937 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 938 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 939 |
|
|---|
| 940 | cat > conftest.$ac_ext << EOF
|
|---|
| 941 |
|
|---|
| 942 | #line 943 "configure"
|
|---|
| 943 | #include "confdefs.h"
|
|---|
| 944 |
|
|---|
| 945 | main(){return(0);}
|
|---|
| 946 | EOF
|
|---|
| 947 | if { (eval echo configure:948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 948 | ac_cv_prog_cc_works=yes
|
|---|
| 949 | # If we can't run a trivial program, we are probably using a cross compiler.
|
|---|
| 950 | if (./conftest; exit) 2>/dev/null; then
|
|---|
| 951 | ac_cv_prog_cc_cross=no
|
|---|
| 952 | else
|
|---|
| 953 | ac_cv_prog_cc_cross=yes
|
|---|
| 954 | fi
|
|---|
| 955 | else
|
|---|
| 956 | echo "configure: failed program was:" >&5
|
|---|
| 957 | cat conftest.$ac_ext >&5
|
|---|
| 958 | ac_cv_prog_cc_works=no
|
|---|
| 959 | fi
|
|---|
| 960 | rm -fr conftest*
|
|---|
| 961 | ac_ext=c
|
|---|
| 962 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 963 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 964 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 965 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 966 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 967 |
|
|---|
| 968 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|---|
| 969 | if test $ac_cv_prog_cc_works = no; then
|
|---|
| 970 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 971 | fi
|
|---|
| 972 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|---|
| 973 | echo "configure:974: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|---|
| 974 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|---|
| 975 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 976 |
|
|---|
| 977 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
|---|
| 978 | echo "configure:979: checking whether we are using GNU C" >&5
|
|---|
| 979 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
|---|
| 980 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 981 | else
|
|---|
| 982 | cat > conftest.c <<EOF
|
|---|
| 983 | #ifdef __GNUC__
|
|---|
| 984 | yes;
|
|---|
| 985 | #endif
|
|---|
| 986 | EOF
|
|---|
| 987 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|---|
| 988 | ac_cv_prog_gcc=yes
|
|---|
| 989 | else
|
|---|
| 990 | ac_cv_prog_gcc=no
|
|---|
| 991 | fi
|
|---|
| 992 | fi
|
|---|
| 993 |
|
|---|
| 994 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|---|
| 995 |
|
|---|
| 996 | if test $ac_cv_prog_gcc = yes; then
|
|---|
| 997 | GCC=yes
|
|---|
| 998 | else
|
|---|
| 999 | GCC=
|
|---|
| 1000 | fi
|
|---|
| 1001 |
|
|---|
| 1002 | ac_test_CFLAGS="${CFLAGS+set}"
|
|---|
| 1003 | ac_save_CFLAGS="$CFLAGS"
|
|---|
| 1004 | CFLAGS=
|
|---|
| 1005 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|---|
| 1006 | echo "configure:1007: checking whether ${CC-cc} accepts -g" >&5
|
|---|
| 1007 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
|---|
| 1008 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1009 | else
|
|---|
| 1010 | echo 'void f(){}' > conftest.c
|
|---|
| 1011 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|---|
| 1012 | ac_cv_prog_cc_g=yes
|
|---|
| 1013 | else
|
|---|
| 1014 | ac_cv_prog_cc_g=no
|
|---|
| 1015 | fi
|
|---|
| 1016 | rm -f conftest*
|
|---|
| 1017 |
|
|---|
| 1018 | fi
|
|---|
| 1019 |
|
|---|
| 1020 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|---|
| 1021 | if test "$ac_test_CFLAGS" = set; then
|
|---|
| 1022 | CFLAGS="$ac_save_CFLAGS"
|
|---|
| 1023 | elif test $ac_cv_prog_cc_g = yes; then
|
|---|
| 1024 | if test "$GCC" = yes; then
|
|---|
| 1025 | CFLAGS="-g -O2"
|
|---|
| 1026 | else
|
|---|
| 1027 | CFLAGS="-g"
|
|---|
| 1028 | fi
|
|---|
| 1029 | else
|
|---|
| 1030 | if test "$GCC" = yes; then
|
|---|
| 1031 | CFLAGS="-O2"
|
|---|
| 1032 | else
|
|---|
| 1033 | CFLAGS=
|
|---|
| 1034 | fi
|
|---|
| 1035 | fi
|
|---|
| 1036 |
|
|---|
| 1037 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
|
|---|
| 1038 | echo "configure:1039: checking for POSIXized ISC" >&5
|
|---|
| 1039 | if test -d /etc/conf/kconfig.d &&
|
|---|
| 1040 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
|
|---|
| 1041 | then
|
|---|
| 1042 | echo "$ac_t""yes" 1>&6
|
|---|
| 1043 | ISC=yes # If later tests want to check for ISC.
|
|---|
| 1044 | cat >> confdefs.h <<\EOF
|
|---|
| 1045 | #define _POSIX_SOURCE 1
|
|---|
| 1046 | EOF
|
|---|
| 1047 |
|
|---|
| 1048 | if test "$GCC" = yes; then
|
|---|
| 1049 | CC="$CC -posix"
|
|---|
| 1050 | else
|
|---|
| 1051 | CC="$CC -Xp"
|
|---|
| 1052 | fi
|
|---|
| 1053 | else
|
|---|
| 1054 | echo "$ac_t""no" 1>&6
|
|---|
| 1055 | ISC=
|
|---|
| 1056 | fi
|
|---|
| 1057 |
|
|---|
| 1058 |
|
|---|
| 1059 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
|
|---|
| 1060 | am__api_version="1.4"
|
|---|
| 1061 | # Find a good install program. We prefer a C program (faster),
|
|---|
| 1062 | # so one script is as good as another. But avoid the broken or
|
|---|
| 1063 | # incompatible versions:
|
|---|
| 1064 | # SysV /etc/install, /usr/sbin/install
|
|---|
| 1065 | # SunOS /usr/etc/install
|
|---|
| 1066 | # IRIX /sbin/install
|
|---|
| 1067 | # AIX /bin/install
|
|---|
| 1068 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
|---|
| 1069 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|---|
| 1070 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|---|
| 1071 | # ./install, which can be erroneously created by make from ./install.sh.
|
|---|
| 1072 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
|---|
| 1073 | echo "configure:1074: checking for a BSD compatible install" >&5
|
|---|
| 1074 | if test -z "$INSTALL"; then
|
|---|
| 1075 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
|---|
| 1076 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1077 | else
|
|---|
| 1078 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1079 | for ac_dir in $PATH; do
|
|---|
| 1080 | # Account for people who put trailing slashes in PATH elements.
|
|---|
| 1081 | case "$ac_dir/" in
|
|---|
| 1082 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
|---|
| 1083 | # We reject the install program from OS/2 or W3.1
|
|---|
| 1084 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
|
|---|
| 1085 | *)
|
|---|
| 1086 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
|---|
| 1087 | # Don't use installbsd from OSF since it installs stuff as root
|
|---|
| 1088 | # by default.
|
|---|
| 1089 | for ac_prog in ginstall scoinst install; do
|
|---|
| 1090 | if test -f $ac_dir/$ac_prog$ac_exeext; then
|
|---|
| 1091 | if test $ac_prog = install &&
|
|---|
| 1092 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|---|
| 1093 | # AIX install. It has an incompatible calling convention.
|
|---|
| 1094 | :
|
|---|
| 1095 | else
|
|---|
| 1096 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
|
|---|
| 1097 | break 2
|
|---|
| 1098 | fi
|
|---|
| 1099 | fi
|
|---|
| 1100 | done
|
|---|
| 1101 | ;;
|
|---|
| 1102 | esac
|
|---|
| 1103 | done
|
|---|
| 1104 | IFS="$ac_save_IFS"
|
|---|
| 1105 |
|
|---|
| 1106 | fi
|
|---|
| 1107 | if test "${ac_cv_path_install+set}" = set; then
|
|---|
| 1108 | INSTALL="$ac_cv_path_install"
|
|---|
| 1109 | else
|
|---|
| 1110 | # As a last resort, use the slow shell script. We don't cache a
|
|---|
| 1111 | # path for INSTALL within a source directory, because that will
|
|---|
| 1112 | # break other packages using the cache if that directory is
|
|---|
| 1113 | # removed, or if the path is relative.
|
|---|
| 1114 | INSTALL="$ac_install_sh"
|
|---|
| 1115 | fi
|
|---|
| 1116 | fi
|
|---|
| 1117 | echo "$ac_t""$INSTALL" 1>&6
|
|---|
| 1118 |
|
|---|
| 1119 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
|---|
| 1120 | # It thinks the first close brace ends the variable substitution.
|
|---|
| 1121 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|---|
| 1122 |
|
|---|
| 1123 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
|---|
| 1124 |
|
|---|
| 1125 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|---|
| 1126 |
|
|---|
| 1127 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
|
|---|
| 1128 | echo "configure:1129: checking whether build environment is sane" >&5
|
|---|
| 1129 | # Just in case
|
|---|
| 1130 | sleep 1
|
|---|
| 1131 | echo timestamp > conftestfile
|
|---|
| 1132 | # Do `set' in a subshell so we don't clobber the current shell's
|
|---|
| 1133 | # arguments. Must try -L first in case configure is actually a
|
|---|
| 1134 | # symlink; some systems play weird games with the mod time of symlinks
|
|---|
| 1135 | # (eg FreeBSD returns the mod time of the symlink's containing
|
|---|
| 1136 | # directory).
|
|---|
| 1137 | if (
|
|---|
| 1138 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
|
|---|
| 1139 | if test "$*" = "X"; then
|
|---|
| 1140 | # -L didn't work.
|
|---|
| 1141 | set X `ls -t $srcdir/configure conftestfile`
|
|---|
| 1142 | fi
|
|---|
| 1143 | if test "$*" != "X $srcdir/configure conftestfile" \
|
|---|
| 1144 | && test "$*" != "X conftestfile $srcdir/configure"; then
|
|---|
| 1145 |
|
|---|
| 1146 | # If neither matched, then we have a broken ls. This can happen
|
|---|
| 1147 | # if, for instance, CONFIG_SHELL is bash and it inherits a
|
|---|
| 1148 | # broken ls alias from the environment. This has actually
|
|---|
| 1149 | # happened. Such a system could not be considered "sane".
|
|---|
| 1150 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
|
|---|
| 1151 | alias in your environment" 1>&2; exit 1; }
|
|---|
| 1152 | fi
|
|---|
| 1153 |
|
|---|
| 1154 | test "$2" = conftestfile
|
|---|
| 1155 | )
|
|---|
| 1156 | then
|
|---|
| 1157 | # Ok.
|
|---|
| 1158 | :
|
|---|
| 1159 | else
|
|---|
| 1160 | { echo "configure: error: newly created file is older than distributed files!
|
|---|
| 1161 | Check your system clock" 1>&2; exit 1; }
|
|---|
| 1162 | fi
|
|---|
| 1163 | rm -f conftest*
|
|---|
| 1164 | echo "$ac_t""yes" 1>&6
|
|---|
| 1165 | if test "$program_transform_name" = s,x,x,; then
|
|---|
| 1166 | program_transform_name=
|
|---|
| 1167 | else
|
|---|
| 1168 | # Double any \ or $. echo might interpret backslashes.
|
|---|
| 1169 | cat <<\EOF_SED > conftestsed
|
|---|
| 1170 | s,\\,\\\\,g; s,\$,$$,g
|
|---|
| 1171 | EOF_SED
|
|---|
| 1172 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
|---|
| 1173 | rm -f conftestsed
|
|---|
| 1174 | fi
|
|---|
| 1175 | test "$program_prefix" != NONE &&
|
|---|
| 1176 | program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
|---|
| 1177 | # Use a double $ so make ignores it.
|
|---|
| 1178 | test "$program_suffix" != NONE &&
|
|---|
| 1179 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
|---|
| 1180 |
|
|---|
| 1181 | # sed with no file args requires a program.
|
|---|
| 1182 | test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
|---|
| 1183 |
|
|---|
| 1184 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
|---|
| 1185 | echo "configure:1186: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
|---|
| 1186 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
|---|
| 1187 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
|---|
| 1188 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1189 | else
|
|---|
| 1190 | cat > conftestmake <<\EOF
|
|---|
| 1191 | all:
|
|---|
| 1192 | @echo 'ac_maketemp="${MAKE}"'
|
|---|
| 1193 | EOF
|
|---|
| 1194 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|---|
| 1195 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
|---|
| 1196 | if test -n "$ac_maketemp"; then
|
|---|
| 1197 | eval ac_cv_prog_make_${ac_make}_set=yes
|
|---|
| 1198 | else
|
|---|
| 1199 | eval ac_cv_prog_make_${ac_make}_set=no
|
|---|
| 1200 | fi
|
|---|
| 1201 | rm -f conftestmake
|
|---|
| 1202 | fi
|
|---|
| 1203 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
|---|
| 1204 | echo "$ac_t""yes" 1>&6
|
|---|
| 1205 | SET_MAKE=
|
|---|
| 1206 | else
|
|---|
| 1207 | echo "$ac_t""no" 1>&6
|
|---|
| 1208 | SET_MAKE="MAKE=${MAKE-make}"
|
|---|
| 1209 | fi
|
|---|
| 1210 |
|
|---|
| 1211 |
|
|---|
| 1212 | PACKAGE=gas
|
|---|
| 1213 |
|
|---|
| 1214 | VERSION=${BFD_VERSION}
|
|---|
| 1215 |
|
|---|
| 1216 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
|
|---|
| 1217 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
|
|---|
| 1218 | fi
|
|---|
| 1219 | cat >> confdefs.h <<EOF
|
|---|
| 1220 | #define PACKAGE "$PACKAGE"
|
|---|
| 1221 | EOF
|
|---|
| 1222 |
|
|---|
| 1223 | cat >> confdefs.h <<EOF
|
|---|
| 1224 | #define VERSION "$VERSION"
|
|---|
| 1225 | EOF
|
|---|
| 1226 |
|
|---|
| 1227 |
|
|---|
| 1228 |
|
|---|
| 1229 | missing_dir=`cd $ac_aux_dir && pwd`
|
|---|
| 1230 | echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
|
|---|
| 1231 | echo "configure:1232: checking for working aclocal-${am__api_version}" >&5
|
|---|
| 1232 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1233 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1234 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1235 | if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1236 | ACLOCAL=aclocal-${am__api_version}
|
|---|
| 1237 | echo "$ac_t""found" 1>&6
|
|---|
| 1238 | else
|
|---|
| 1239 | ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
|
|---|
| 1240 | echo "$ac_t""missing" 1>&6
|
|---|
| 1241 | fi
|
|---|
| 1242 |
|
|---|
| 1243 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
|
|---|
| 1244 | echo "configure:1245: checking for working autoconf" >&5
|
|---|
| 1245 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1246 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1247 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1248 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1249 | AUTOCONF=autoconf
|
|---|
| 1250 | echo "$ac_t""found" 1>&6
|
|---|
| 1251 | else
|
|---|
| 1252 | AUTOCONF="$missing_dir/missing autoconf"
|
|---|
| 1253 | echo "$ac_t""missing" 1>&6
|
|---|
| 1254 | fi
|
|---|
| 1255 |
|
|---|
| 1256 | echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
|
|---|
| 1257 | echo "configure:1258: checking for working automake-${am__api_version}" >&5
|
|---|
| 1258 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1259 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1260 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1261 | if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1262 | AUTOMAKE=automake-${am__api_version}
|
|---|
| 1263 | echo "$ac_t""found" 1>&6
|
|---|
| 1264 | else
|
|---|
| 1265 | AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
|
|---|
| 1266 | echo "$ac_t""missing" 1>&6
|
|---|
| 1267 | fi
|
|---|
| 1268 |
|
|---|
| 1269 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
|
|---|
| 1270 | echo "configure:1271: checking for working autoheader" >&5
|
|---|
| 1271 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1272 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1273 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1274 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1275 | AUTOHEADER=autoheader
|
|---|
| 1276 | echo "$ac_t""found" 1>&6
|
|---|
| 1277 | else
|
|---|
| 1278 | AUTOHEADER="$missing_dir/missing autoheader"
|
|---|
| 1279 | echo "$ac_t""missing" 1>&6
|
|---|
| 1280 | fi
|
|---|
| 1281 |
|
|---|
| 1282 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
|
|---|
| 1283 | echo "configure:1284: checking for working makeinfo" >&5
|
|---|
| 1284 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1285 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1286 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1287 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1288 | MAKEINFO=makeinfo
|
|---|
| 1289 | echo "$ac_t""found" 1>&6
|
|---|
| 1290 | else
|
|---|
| 1291 | MAKEINFO="$missing_dir/missing makeinfo"
|
|---|
| 1292 | echo "$ac_t""missing" 1>&6
|
|---|
| 1293 | fi
|
|---|
| 1294 |
|
|---|
| 1295 |
|
|---|
| 1296 |
|
|---|
| 1297 | # Check whether --enable-shared or --disable-shared was given.
|
|---|
| 1298 | if test "${enable_shared+set}" = set; then
|
|---|
| 1299 | enableval="$enable_shared"
|
|---|
| 1300 | p=${PACKAGE-default}
|
|---|
| 1301 | case $enableval in
|
|---|
| 1302 | yes) enable_shared=yes ;;
|
|---|
| 1303 | no) enable_shared=no ;;
|
|---|
| 1304 | *)
|
|---|
| 1305 | enable_shared=no
|
|---|
| 1306 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 1307 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 1308 | for pkg in $enableval; do
|
|---|
| 1309 | if test "X$pkg" = "X$p"; then
|
|---|
| 1310 | enable_shared=yes
|
|---|
| 1311 | fi
|
|---|
| 1312 | done
|
|---|
| 1313 | IFS="$ac_save_ifs"
|
|---|
| 1314 | ;;
|
|---|
| 1315 | esac
|
|---|
| 1316 | else
|
|---|
| 1317 | enable_shared=yes
|
|---|
| 1318 | fi
|
|---|
| 1319 |
|
|---|
| 1320 | # Check whether --enable-static or --disable-static was given.
|
|---|
| 1321 | if test "${enable_static+set}" = set; then
|
|---|
| 1322 | enableval="$enable_static"
|
|---|
| 1323 | p=${PACKAGE-default}
|
|---|
| 1324 | case $enableval in
|
|---|
| 1325 | yes) enable_static=yes ;;
|
|---|
| 1326 | no) enable_static=no ;;
|
|---|
| 1327 | *)
|
|---|
| 1328 | enable_static=no
|
|---|
| 1329 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 1330 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 1331 | for pkg in $enableval; do
|
|---|
| 1332 | if test "X$pkg" = "X$p"; then
|
|---|
| 1333 | enable_static=yes
|
|---|
| 1334 | fi
|
|---|
| 1335 | done
|
|---|
| 1336 | IFS="$ac_save_ifs"
|
|---|
| 1337 | ;;
|
|---|
| 1338 | esac
|
|---|
| 1339 | else
|
|---|
| 1340 | enable_static=yes
|
|---|
| 1341 | fi
|
|---|
| 1342 |
|
|---|
| 1343 | # Check whether --enable-fast-install or --disable-fast-install was given.
|
|---|
| 1344 | if test "${enable_fast_install+set}" = set; then
|
|---|
| 1345 | enableval="$enable_fast_install"
|
|---|
| 1346 | p=${PACKAGE-default}
|
|---|
| 1347 | case $enableval in
|
|---|
| 1348 | yes) enable_fast_install=yes ;;
|
|---|
| 1349 | no) enable_fast_install=no ;;
|
|---|
| 1350 | *)
|
|---|
| 1351 | enable_fast_install=no
|
|---|
| 1352 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 1353 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 1354 | for pkg in $enableval; do
|
|---|
| 1355 | if test "X$pkg" = "X$p"; then
|
|---|
| 1356 | enable_fast_install=yes
|
|---|
| 1357 | fi
|
|---|
| 1358 | done
|
|---|
| 1359 | IFS="$ac_save_ifs"
|
|---|
| 1360 | ;;
|
|---|
| 1361 | esac
|
|---|
| 1362 | else
|
|---|
| 1363 | enable_fast_install=yes
|
|---|
| 1364 | fi
|
|---|
| 1365 |
|
|---|
| 1366 | # Check whether --with-gnu-ld or --without-gnu-ld was given.
|
|---|
| 1367 | if test "${with_gnu_ld+set}" = set; then
|
|---|
| 1368 | withval="$with_gnu_ld"
|
|---|
| 1369 | test "$withval" = no || with_gnu_ld=yes
|
|---|
| 1370 | else
|
|---|
| 1371 | with_gnu_ld=no
|
|---|
| 1372 | fi
|
|---|
| 1373 |
|
|---|
| 1374 | ac_prog=ld
|
|---|
| 1375 | if test "$GCC" = yes; then
|
|---|
| 1376 | # Check if gcc -print-prog-name=ld gives a path.
|
|---|
| 1377 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
|
|---|
| 1378 | echo "configure:1379: checking for ld used by GCC" >&5
|
|---|
| 1379 | case $host in
|
|---|
| 1380 | *-*-mingw*)
|
|---|
| 1381 | # gcc leaves a trailing carriage return which upsets mingw
|
|---|
| 1382 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
|---|
| 1383 | *)
|
|---|
| 1384 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
|---|
| 1385 | esac
|
|---|
| 1386 | case $ac_prog in
|
|---|
| 1387 | # Accept absolute paths.
|
|---|
| 1388 | [\\/]* | [A-Za-z]:[\\/]*)
|
|---|
| 1389 | re_direlt='/[^/][^/]*/\.\./'
|
|---|
| 1390 | # Canonicalize the path of ld
|
|---|
| 1391 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
|
|---|
| 1392 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
|---|
| 1393 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
|---|
| 1394 | done
|
|---|
| 1395 | test -z "$LD" && LD="$ac_prog"
|
|---|
| 1396 | ;;
|
|---|
| 1397 | "")
|
|---|
| 1398 | # If it fails, then pretend we aren't using GCC.
|
|---|
| 1399 | ac_prog=ld
|
|---|
| 1400 | ;;
|
|---|
| 1401 | *)
|
|---|
| 1402 | # If it is relative, then search for the first ld in PATH.
|
|---|
| 1403 | with_gnu_ld=unknown
|
|---|
| 1404 | ;;
|
|---|
| 1405 | esac
|
|---|
| 1406 | elif test "$with_gnu_ld" = yes; then
|
|---|
| 1407 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
|
|---|
| 1408 | echo "configure:1409: checking for GNU ld" >&5
|
|---|
| 1409 | else
|
|---|
| 1410 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
|
|---|
| 1411 | echo "configure:1412: checking for non-GNU ld" >&5
|
|---|
| 1412 | fi
|
|---|
| 1413 | if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
|
|---|
| 1414 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1415 | else
|
|---|
| 1416 | if test -z "$LD"; then
|
|---|
| 1417 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
|---|
| 1418 | for ac_dir in $PATH; do
|
|---|
| 1419 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1420 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
|---|
| 1421 | lt_cv_path_LD="$ac_dir/$ac_prog"
|
|---|
| 1422 | # Check to see if the program is GNU ld. I'd rather use --version,
|
|---|
| 1423 | # but apparently some GNU ld's only accept -v.
|
|---|
| 1424 | # Break only if it was the GNU/non-GNU ld that we prefer.
|
|---|
| 1425 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
|---|
| 1426 | test "$with_gnu_ld" != no && break
|
|---|
| 1427 | else
|
|---|
| 1428 | test "$with_gnu_ld" != yes && break
|
|---|
| 1429 | fi
|
|---|
| 1430 | fi
|
|---|
| 1431 | done
|
|---|
| 1432 | IFS="$ac_save_ifs"
|
|---|
| 1433 | else
|
|---|
| 1434 | lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
|---|
| 1435 | fi
|
|---|
| 1436 | fi
|
|---|
| 1437 |
|
|---|
| 1438 | LD="$lt_cv_path_LD"
|
|---|
| 1439 | if test -n "$LD"; then
|
|---|
| 1440 | echo "$ac_t""$LD" 1>&6
|
|---|
| 1441 | else
|
|---|
| 1442 | echo "$ac_t""no" 1>&6
|
|---|
| 1443 | fi
|
|---|
| 1444 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
|
|---|
| 1445 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
|
|---|
| 1446 | echo "configure:1447: checking if the linker ($LD) is GNU ld" >&5
|
|---|
| 1447 | if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
|
|---|
| 1448 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1449 | else
|
|---|
| 1450 | # I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
|---|
| 1451 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
|---|
| 1452 | lt_cv_prog_gnu_ld=yes
|
|---|
| 1453 | else
|
|---|
| 1454 | lt_cv_prog_gnu_ld=no
|
|---|
| 1455 | fi
|
|---|
| 1456 | fi
|
|---|
| 1457 |
|
|---|
| 1458 | echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
|
|---|
| 1459 | with_gnu_ld=$lt_cv_prog_gnu_ld
|
|---|
| 1460 |
|
|---|
| 1461 |
|
|---|
| 1462 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
|
|---|
| 1463 | echo "configure:1464: checking for $LD option to reload object files" >&5
|
|---|
| 1464 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
|
|---|
| 1465 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1466 | else
|
|---|
| 1467 | lt_cv_ld_reload_flag='-r'
|
|---|
| 1468 | fi
|
|---|
| 1469 |
|
|---|
| 1470 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
|
|---|
| 1471 | reload_flag=$lt_cv_ld_reload_flag
|
|---|
| 1472 | test -n "$reload_flag" && reload_flag=" $reload_flag"
|
|---|
| 1473 |
|
|---|
| 1474 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
|
|---|
| 1475 | echo "configure:1476: checking for BSD-compatible nm" >&5
|
|---|
| 1476 | if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
|
|---|
| 1477 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1478 | else
|
|---|
| 1479 | if test -n "$NM"; then
|
|---|
| 1480 | # Let the user override the test.
|
|---|
| 1481 | lt_cv_path_NM="$NM"
|
|---|
| 1482 | else
|
|---|
| 1483 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
|---|
| 1484 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
|
|---|
| 1485 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1486 | tmp_nm=$ac_dir/${ac_tool_prefix}nm
|
|---|
| 1487 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
|
|---|
| 1488 | # Check to see if the nm accepts a BSD-compat flag.
|
|---|
| 1489 | # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
|---|
| 1490 | # nm: unknown option "B" ignored
|
|---|
| 1491 | # Tru64's nm complains that /dev/null is an invalid object file
|
|---|
| 1492 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
|
|---|
| 1493 | lt_cv_path_NM="$tmp_nm -B"
|
|---|
| 1494 | break
|
|---|
| 1495 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
|
|---|
| 1496 | lt_cv_path_NM="$tmp_nm -p"
|
|---|
| 1497 | break
|
|---|
| 1498 | else
|
|---|
| 1499 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
|---|
| 1500 | continue # so that we can try to find one that supports BSD flags
|
|---|
| 1501 | fi
|
|---|
| 1502 | fi
|
|---|
| 1503 | done
|
|---|
| 1504 | IFS="$ac_save_ifs"
|
|---|
| 1505 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
|
|---|
| 1506 | fi
|
|---|
| 1507 | fi
|
|---|
| 1508 |
|
|---|
| 1509 | NM="$lt_cv_path_NM"
|
|---|
| 1510 | echo "$ac_t""$NM" 1>&6
|
|---|
| 1511 |
|
|---|
| 1512 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
|---|
| 1513 | echo "configure:1514: checking whether ln -s works" >&5
|
|---|
| 1514 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
|
|---|
| 1515 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1516 | else
|
|---|
| 1517 | rm -f conftestdata
|
|---|
| 1518 | if ln -s X conftestdata 2>/dev/null
|
|---|
| 1519 | then
|
|---|
| 1520 | rm -f conftestdata
|
|---|
| 1521 | ac_cv_prog_LN_S="ln -s"
|
|---|
| 1522 | else
|
|---|
| 1523 | echo A > conftestdata;
|
|---|
| 1524 | if ln conftestdata conftestdata2 2>/dev/null; then
|
|---|
| 1525 | ac_cv_prog_LN_S=ln
|
|---|
| 1526 | else
|
|---|
| 1527 | ac_cv_prog_LN_S=cp
|
|---|
| 1528 | fi
|
|---|
| 1529 | fi
|
|---|
| 1530 | rm -f conftestdata*
|
|---|
| 1531 | fi
|
|---|
| 1532 | LN_S="$ac_cv_prog_LN_S"
|
|---|
| 1533 | if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
|---|
| 1534 | echo "$ac_t""yes" 1>&6
|
|---|
| 1535 | else
|
|---|
| 1536 | echo "$ac_t""no" 1>&6
|
|---|
| 1537 | fi
|
|---|
| 1538 |
|
|---|
| 1539 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
|
|---|
| 1540 | echo "configure:1541: checking how to recognise dependant libraries" >&5
|
|---|
| 1541 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
|
|---|
| 1542 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1543 | else
|
|---|
| 1544 | lt_cv_file_magic_cmd='$MAGIC_CMD'
|
|---|
| 1545 | lt_cv_file_magic_test_file=
|
|---|
| 1546 | lt_cv_deplibs_check_method='unknown'
|
|---|
| 1547 | # Need to set the preceding variable on all platforms that support
|
|---|
| 1548 | # interlibrary dependencies.
|
|---|
| 1549 | # 'none' -- dependencies not supported.
|
|---|
| 1550 | # `unknown' -- same as none, but documents that we really don't know.
|
|---|
| 1551 | # 'pass_all' -- all dependencies passed with no checks.
|
|---|
| 1552 | # 'test_compile' -- check by making test program.
|
|---|
| 1553 | # 'file_magic [regex]' -- check by looking for files in library path
|
|---|
| 1554 | # which responds to the $file_magic_cmd with a given egrep regex.
|
|---|
| 1555 | # If you have `file' or equivalent on your system and you're not sure
|
|---|
| 1556 | # whether `pass_all' will *always* work, you probably want this one.
|
|---|
| 1557 |
|
|---|
| 1558 | case $host_os in
|
|---|
| 1559 | aix*)
|
|---|
| 1560 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1561 | ;;
|
|---|
| 1562 |
|
|---|
| 1563 | beos*)
|
|---|
| 1564 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1565 | ;;
|
|---|
| 1566 |
|
|---|
| 1567 | bsdi4*)
|
|---|
| 1568 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
|---|
| 1569 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
|---|
| 1570 | lt_cv_file_magic_test_file=/shlib/libc.so
|
|---|
| 1571 | ;;
|
|---|
| 1572 |
|
|---|
| 1573 | cygwin* | mingw* |pw32*)
|
|---|
| 1574 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
|---|
| 1575 | lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|---|
| 1576 | ;;
|
|---|
| 1577 |
|
|---|
| 1578 | darwin* | rhapsody*)
|
|---|
| 1579 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
|
|---|
| 1580 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
|---|
| 1581 | case "$host_os" in
|
|---|
| 1582 | rhapsody* | darwin1.012)
|
|---|
| 1583 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
|
|---|
| 1584 | ;;
|
|---|
| 1585 | *) # Darwin 1.3 on
|
|---|
| 1586 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
|
|---|
| 1587 | ;;
|
|---|
| 1588 | esac
|
|---|
| 1589 | ;;
|
|---|
| 1590 |
|
|---|
| 1591 | freebsd* )
|
|---|
| 1592 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
|---|
| 1593 | case $host_cpu in
|
|---|
| 1594 | i*86 )
|
|---|
| 1595 | # Not sure whether the presence of OpenBSD here was a mistake.
|
|---|
| 1596 | # Let's accept both of them until this is cleared up.
|
|---|
| 1597 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
|
|---|
| 1598 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1599 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
|---|
| 1600 | ;;
|
|---|
| 1601 | esac
|
|---|
| 1602 | else
|
|---|
| 1603 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1604 | fi
|
|---|
| 1605 | ;;
|
|---|
| 1606 |
|
|---|
| 1607 | gnu*)
|
|---|
| 1608 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1609 | ;;
|
|---|
| 1610 |
|
|---|
| 1611 | hpux10.20*|hpux11*)
|
|---|
| 1612 | case $host_cpu in
|
|---|
| 1613 | hppa*)
|
|---|
| 1614 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
|
|---|
| 1615 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1616 | lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
|---|
| 1617 | ;;
|
|---|
| 1618 | ia64*)
|
|---|
| 1619 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
|
|---|
| 1620 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1621 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
|---|
| 1622 | ;;
|
|---|
| 1623 | esac
|
|---|
| 1624 | ;;
|
|---|
| 1625 |
|
|---|
| 1626 | irix5* | irix6*)
|
|---|
| 1627 | case $host_os in
|
|---|
| 1628 | irix5*)
|
|---|
| 1629 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 1630 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
|
|---|
| 1631 | ;;
|
|---|
| 1632 | *)
|
|---|
| 1633 | case $LD in
|
|---|
| 1634 | *-32|*"-32 ") libmagic=32-bit;;
|
|---|
| 1635 | *-n32|*"-n32 ") libmagic=N32;;
|
|---|
| 1636 | *-64|*"-64 ") libmagic=64-bit;;
|
|---|
| 1637 | *) libmagic=never-match;;
|
|---|
| 1638 | esac
|
|---|
| 1639 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 1640 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
|
|---|
| 1641 | ;;
|
|---|
| 1642 | esac
|
|---|
| 1643 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
|
|---|
| 1644 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1645 | ;;
|
|---|
| 1646 |
|
|---|
| 1647 | # This must be Linux ELF.
|
|---|
| 1648 | linux-gnu*)
|
|---|
| 1649 | case $host_cpu in
|
|---|
| 1650 | alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
|
|---|
| 1651 | lt_cv_deplibs_check_method=pass_all ;;
|
|---|
| 1652 | *)
|
|---|
| 1653 | # glibc up to 2.1.1 does not perform some relocations on ARM
|
|---|
| 1654 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
|
|---|
| 1655 | esac
|
|---|
| 1656 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
|---|
| 1657 | ;;
|
|---|
| 1658 |
|
|---|
| 1659 | netbsd*)
|
|---|
| 1660 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
|---|
| 1661 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
|---|
| 1662 | else
|
|---|
| 1663 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
|
|---|
| 1664 | fi
|
|---|
| 1665 | ;;
|
|---|
| 1666 |
|
|---|
| 1667 | newsos6)
|
|---|
| 1668 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
|---|
| 1669 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1670 | lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
|---|
| 1671 | ;;
|
|---|
| 1672 |
|
|---|
| 1673 | os2*)
|
|---|
| 1674 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1675 | ;;
|
|---|
| 1676 |
|
|---|
| 1677 | osf3* | osf4* | osf5*)
|
|---|
| 1678 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 1679 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
|
|---|
| 1680 | lt_cv_file_magic_test_file=/shlib/libc.so
|
|---|
| 1681 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1682 | ;;
|
|---|
| 1683 |
|
|---|
| 1684 | sco3.2v5*)
|
|---|
| 1685 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1686 | ;;
|
|---|
| 1687 |
|
|---|
| 1688 | solaris*)
|
|---|
| 1689 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1690 | lt_cv_file_magic_test_file=/lib/libc.so
|
|---|
| 1691 | ;;
|
|---|
| 1692 |
|
|---|
| 1693 | sysv5uw[78]* | sysv4*uw2*)
|
|---|
| 1694 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1695 | ;;
|
|---|
| 1696 |
|
|---|
| 1697 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
|---|
| 1698 | case $host_vendor in
|
|---|
| 1699 | ncr)
|
|---|
| 1700 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1701 | ;;
|
|---|
| 1702 | motorola)
|
|---|
| 1703 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
|
|---|
| 1704 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
|---|
| 1705 | ;;
|
|---|
| 1706 | esac
|
|---|
| 1707 | ;;
|
|---|
| 1708 | esac
|
|---|
| 1709 |
|
|---|
| 1710 | fi
|
|---|
| 1711 |
|
|---|
| 1712 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
|
|---|
| 1713 | file_magic_cmd=$lt_cv_file_magic_cmd
|
|---|
| 1714 | deplibs_check_method=$lt_cv_deplibs_check_method
|
|---|
| 1715 |
|
|---|
| 1716 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6
|
|---|
| 1717 | echo "configure:1718: checking for object suffix" >&5
|
|---|
| 1718 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
|
|---|
| 1719 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1720 | else
|
|---|
| 1721 | rm -f conftest*
|
|---|
| 1722 | echo 'int i = 1;' > conftest.$ac_ext
|
|---|
| 1723 | if { (eval echo configure:1724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 1724 | for ac_file in conftest.*; do
|
|---|
| 1725 | case $ac_file in
|
|---|
| 1726 | *.c) ;;
|
|---|
| 1727 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
|
|---|
| 1728 | esac
|
|---|
| 1729 | done
|
|---|
| 1730 | else
|
|---|
| 1731 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
|
|---|
| 1732 | fi
|
|---|
| 1733 | rm -f conftest*
|
|---|
| 1734 | fi
|
|---|
| 1735 |
|
|---|
| 1736 | echo "$ac_t""$ac_cv_objext" 1>&6
|
|---|
| 1737 | OBJEXT=$ac_cv_objext
|
|---|
| 1738 | ac_objext=$ac_cv_objext
|
|---|
| 1739 |
|
|---|
| 1740 | if test $host != $build; then
|
|---|
| 1741 | ac_tool_prefix=${host_alias}-
|
|---|
| 1742 | else
|
|---|
| 1743 | ac_tool_prefix=
|
|---|
| 1744 | fi
|
|---|
| 1745 |
|
|---|
| 1746 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
|
|---|
| 1747 |
|
|---|
| 1748 | # Only perform the check for file, if the check method requires it
|
|---|
| 1749 | case $deplibs_check_method in
|
|---|
| 1750 | file_magic*)
|
|---|
| 1751 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
|---|
| 1752 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
|
|---|
| 1753 | echo "configure:1754: checking for ${ac_tool_prefix}file" >&5
|
|---|
| 1754 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
|---|
| 1755 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1756 | else
|
|---|
| 1757 | case $MAGIC_CMD in
|
|---|
| 1758 | /*)
|
|---|
| 1759 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
|---|
| 1760 | ;;
|
|---|
| 1761 | ?:/*)
|
|---|
| 1762 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
|---|
| 1763 | ;;
|
|---|
| 1764 | *)
|
|---|
| 1765 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
|---|
| 1766 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 1767 | ac_dummy="/usr/bin:$PATH"
|
|---|
| 1768 | for ac_dir in $ac_dummy; do
|
|---|
| 1769 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1770 | if test -f $ac_dir/${ac_tool_prefix}file; then
|
|---|
| 1771 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
|
|---|
| 1772 | if test -n "$file_magic_test_file"; then
|
|---|
| 1773 | case $deplibs_check_method in
|
|---|
| 1774 | "file_magic "*)
|
|---|
| 1775 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
|---|
| 1776 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1777 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
|---|
| 1778 | egrep "$file_magic_regex" > /dev/null; then
|
|---|
| 1779 | :
|
|---|
| 1780 | else
|
|---|
| 1781 | cat <<EOF 1>&2
|
|---|
| 1782 |
|
|---|
| 1783 | *** Warning: the command libtool uses to detect shared libraries,
|
|---|
| 1784 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
|---|
| 1785 | *** The result is that libtool may fail to recognize shared libraries
|
|---|
| 1786 | *** as such. This will affect the creation of libtool libraries that
|
|---|
| 1787 | *** depend on shared libraries, but programs linked with such libtool
|
|---|
| 1788 | *** libraries will work regardless of this problem. Nevertheless, you
|
|---|
| 1789 | *** may want to report the problem to your system manager and/or to
|
|---|
| 1790 | *** bug-libtool@gnu.org
|
|---|
| 1791 |
|
|---|
| 1792 | EOF
|
|---|
| 1793 | fi ;;
|
|---|
| 1794 | esac
|
|---|
| 1795 | fi
|
|---|
| 1796 | break
|
|---|
| 1797 | fi
|
|---|
| 1798 | done
|
|---|
| 1799 | IFS="$ac_save_ifs"
|
|---|
| 1800 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
|---|
| 1801 | ;;
|
|---|
| 1802 | esac
|
|---|
| 1803 | fi
|
|---|
| 1804 |
|
|---|
| 1805 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1806 | if test -n "$MAGIC_CMD"; then
|
|---|
| 1807 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
|---|
| 1808 | else
|
|---|
| 1809 | echo "$ac_t""no" 1>&6
|
|---|
| 1810 | fi
|
|---|
| 1811 |
|
|---|
| 1812 | if test -z "$lt_cv_path_MAGIC_CMD"; then
|
|---|
| 1813 | if test -n "$ac_tool_prefix"; then
|
|---|
| 1814 | echo $ac_n "checking for file""... $ac_c" 1>&6
|
|---|
| 1815 | echo "configure:1816: checking for file" >&5
|
|---|
| 1816 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
|---|
| 1817 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1818 | else
|
|---|
| 1819 | case $MAGIC_CMD in
|
|---|
| 1820 | /*)
|
|---|
| 1821 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
|---|
| 1822 | ;;
|
|---|
| 1823 | ?:/*)
|
|---|
| 1824 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
|---|
| 1825 | ;;
|
|---|
| 1826 | *)
|
|---|
| 1827 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
|---|
| 1828 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 1829 | ac_dummy="/usr/bin:$PATH"
|
|---|
| 1830 | for ac_dir in $ac_dummy; do
|
|---|
| 1831 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1832 | if test -f $ac_dir/file; then
|
|---|
| 1833 | lt_cv_path_MAGIC_CMD="$ac_dir/file"
|
|---|
| 1834 | if test -n "$file_magic_test_file"; then
|
|---|
| 1835 | case $deplibs_check_method in
|
|---|
| 1836 | "file_magic "*)
|
|---|
| 1837 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
|---|
| 1838 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1839 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
|---|
| 1840 | egrep "$file_magic_regex" > /dev/null; then
|
|---|
| 1841 | :
|
|---|
| 1842 | else
|
|---|
| 1843 | cat <<EOF 1>&2
|
|---|
| 1844 |
|
|---|
| 1845 | *** Warning: the command libtool uses to detect shared libraries,
|
|---|
| 1846 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
|---|
| 1847 | *** The result is that libtool may fail to recognize shared libraries
|
|---|
| 1848 | *** as such. This will affect the creation of libtool libraries that
|
|---|
| 1849 | *** depend on shared libraries, but programs linked with such libtool
|
|---|
| 1850 | *** libraries will work regardless of this problem. Nevertheless, you
|
|---|
| 1851 | *** may want to report the problem to your system manager and/or to
|
|---|
| 1852 | *** bug-libtool@gnu.org
|
|---|
| 1853 |
|
|---|
| 1854 | EOF
|
|---|
| 1855 | fi ;;
|
|---|
| 1856 | esac
|
|---|
| 1857 | fi
|
|---|
| 1858 | break
|
|---|
| 1859 | fi
|
|---|
| 1860 | done
|
|---|
| 1861 | IFS="$ac_save_ifs"
|
|---|
| 1862 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
|---|
| 1863 | ;;
|
|---|
| 1864 | esac
|
|---|
| 1865 | fi
|
|---|
| 1866 |
|
|---|
| 1867 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1868 | if test -n "$MAGIC_CMD"; then
|
|---|
| 1869 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
|---|
| 1870 | else
|
|---|
| 1871 | echo "$ac_t""no" 1>&6
|
|---|
| 1872 | fi
|
|---|
| 1873 |
|
|---|
| 1874 | else
|
|---|
| 1875 | MAGIC_CMD=:
|
|---|
| 1876 | fi
|
|---|
| 1877 | fi
|
|---|
| 1878 |
|
|---|
| 1879 | fi
|
|---|
| 1880 | ;;
|
|---|
| 1881 | esac
|
|---|
| 1882 |
|
|---|
| 1883 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
|---|
| 1884 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
|---|
| 1885 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1886 | echo "configure:1887: checking for $ac_word" >&5
|
|---|
| 1887 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 1888 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1889 | else
|
|---|
| 1890 | if test -n "$RANLIB"; then
|
|---|
| 1891 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 1892 | else
|
|---|
| 1893 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1894 | ac_dummy="$PATH"
|
|---|
| 1895 | for ac_dir in $ac_dummy; do
|
|---|
| 1896 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1897 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1898 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1899 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
|---|
| 1900 | break
|
|---|
| 1901 | fi
|
|---|
| 1902 | done
|
|---|
| 1903 | IFS="$ac_save_ifs"
|
|---|
| 1904 | fi
|
|---|
| 1905 | fi
|
|---|
| 1906 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 1907 | if test -n "$RANLIB"; then
|
|---|
| 1908 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 1909 | else
|
|---|
| 1910 | echo "$ac_t""no" 1>&6
|
|---|
| 1911 | fi
|
|---|
| 1912 |
|
|---|
| 1913 |
|
|---|
| 1914 | if test -z "$ac_cv_prog_RANLIB"; then
|
|---|
| 1915 | if test -n "$ac_tool_prefix"; then
|
|---|
| 1916 | # Extract the first word of "ranlib", so it can be a program name with args.
|
|---|
| 1917 | set dummy ranlib; ac_word=$2
|
|---|
| 1918 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1919 | echo "configure:1920: checking for $ac_word" >&5
|
|---|
| 1920 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 1921 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1922 | else
|
|---|
| 1923 | if test -n "$RANLIB"; then
|
|---|
| 1924 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 1925 | else
|
|---|
| 1926 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1927 | ac_dummy="$PATH"
|
|---|
| 1928 | for ac_dir in $ac_dummy; do
|
|---|
| 1929 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1930 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1931 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1932 | ac_cv_prog_RANLIB="ranlib"
|
|---|
| 1933 | break
|
|---|
| 1934 | fi
|
|---|
| 1935 | done
|
|---|
| 1936 | IFS="$ac_save_ifs"
|
|---|
| 1937 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|---|
| 1938 | fi
|
|---|
| 1939 | fi
|
|---|
| 1940 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 1941 | if test -n "$RANLIB"; then
|
|---|
| 1942 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 1943 | else
|
|---|
| 1944 | echo "$ac_t""no" 1>&6
|
|---|
| 1945 | fi
|
|---|
| 1946 |
|
|---|
| 1947 | else
|
|---|
| 1948 | RANLIB=":"
|
|---|
| 1949 | fi
|
|---|
| 1950 | fi
|
|---|
| 1951 |
|
|---|
| 1952 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
|---|
| 1953 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
|---|
| 1954 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1955 | echo "configure:1956: checking for $ac_word" >&5
|
|---|
| 1956 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
|---|
| 1957 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1958 | else
|
|---|
| 1959 | if test -n "$STRIP"; then
|
|---|
| 1960 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
|---|
| 1961 | else
|
|---|
| 1962 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1963 | ac_dummy="$PATH"
|
|---|
| 1964 | for ac_dir in $ac_dummy; do
|
|---|
| 1965 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1966 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1967 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1968 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
|---|
| 1969 | break
|
|---|
| 1970 | fi
|
|---|
| 1971 | done
|
|---|
| 1972 | IFS="$ac_save_ifs"
|
|---|
| 1973 | fi
|
|---|
| 1974 | fi
|
|---|
| 1975 | STRIP="$ac_cv_prog_STRIP"
|
|---|
| 1976 | if test -n "$STRIP"; then
|
|---|
| 1977 | echo "$ac_t""$STRIP" 1>&6
|
|---|
| 1978 | else
|
|---|
| 1979 | echo "$ac_t""no" 1>&6
|
|---|
| 1980 | fi
|
|---|
| 1981 |
|
|---|
| 1982 |
|
|---|
| 1983 | if test -z "$ac_cv_prog_STRIP"; then
|
|---|
| 1984 | if test -n "$ac_tool_prefix"; then
|
|---|
| 1985 | # Extract the first word of "strip", so it can be a program name with args.
|
|---|
| 1986 | set dummy strip; ac_word=$2
|
|---|
| 1987 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1988 | echo "configure:1989: checking for $ac_word" >&5
|
|---|
| 1989 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
|---|
| 1990 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1991 | else
|
|---|
| 1992 | if test -n "$STRIP"; then
|
|---|
| 1993 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
|---|
| 1994 | else
|
|---|
| 1995 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1996 | ac_dummy="$PATH"
|
|---|
| 1997 | for ac_dir in $ac_dummy; do
|
|---|
| 1998 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1999 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2000 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2001 | ac_cv_prog_STRIP="strip"
|
|---|
| 2002 | break
|
|---|
| 2003 | fi
|
|---|
| 2004 | done
|
|---|
| 2005 | IFS="$ac_save_ifs"
|
|---|
| 2006 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
|
|---|
| 2007 | fi
|
|---|
| 2008 | fi
|
|---|
| 2009 | STRIP="$ac_cv_prog_STRIP"
|
|---|
| 2010 | if test -n "$STRIP"; then
|
|---|
| 2011 | echo "$ac_t""$STRIP" 1>&6
|
|---|
| 2012 | else
|
|---|
| 2013 | echo "$ac_t""no" 1>&6
|
|---|
| 2014 | fi
|
|---|
| 2015 |
|
|---|
| 2016 | else
|
|---|
| 2017 | STRIP=":"
|
|---|
| 2018 | fi
|
|---|
| 2019 | fi
|
|---|
| 2020 |
|
|---|
| 2021 |
|
|---|
| 2022 | # Check for any special flags to pass to ltconfig.
|
|---|
| 2023 | libtool_flags="--cache-file=$cache_file"
|
|---|
| 2024 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
|
|---|
| 2025 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
|
|---|
| 2026 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
|
|---|
| 2027 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
|
|---|
| 2028 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
|
|---|
| 2029 |
|
|---|
| 2030 |
|
|---|
| 2031 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
|
|---|
| 2032 | if test "${enable_libtool_lock+set}" = set; then
|
|---|
| 2033 | enableval="$enable_libtool_lock"
|
|---|
| 2034 | :
|
|---|
| 2035 | fi
|
|---|
| 2036 |
|
|---|
| 2037 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
|
|---|
| 2038 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
|
|---|
| 2039 |
|
|---|
| 2040 | # Check whether --with-pic or --without-pic was given.
|
|---|
| 2041 | if test "${with_pic+set}" = set; then
|
|---|
| 2042 | withval="$with_pic"
|
|---|
| 2043 | pic_mode="$withval"
|
|---|
| 2044 | else
|
|---|
| 2045 | pic_mode=default
|
|---|
| 2046 | fi
|
|---|
| 2047 |
|
|---|
| 2048 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
|
|---|
| 2049 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
|
|---|
| 2050 |
|
|---|
| 2051 | # Some flags need to be propagated to the compiler or linker for good
|
|---|
| 2052 | # libtool support.
|
|---|
| 2053 | case $host in
|
|---|
| 2054 | *-*-irix6*)
|
|---|
| 2055 | # Find out which ABI we are using.
|
|---|
| 2056 | echo '#line 2057 "configure"' > conftest.$ac_ext
|
|---|
| 2057 | if { (eval echo configure:2058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 2058 | if test "$lt_cv_prog_gnu_ld" = yes; then
|
|---|
| 2059 | case `/usr/bin/file conftest.$ac_objext` in
|
|---|
| 2060 | *32-bit*)
|
|---|
| 2061 | LD="${LD-ld} -melf32bsmip"
|
|---|
| 2062 | ;;
|
|---|
| 2063 | *N32*)
|
|---|
| 2064 | LD="${LD-ld} -melf32bmipn32"
|
|---|
| 2065 | ;;
|
|---|
| 2066 | *64-bit*)
|
|---|
| 2067 | LD="${LD-ld} -melf64bmip"
|
|---|
| 2068 | ;;
|
|---|
| 2069 | esac
|
|---|
| 2070 | else
|
|---|
| 2071 | case `/usr/bin/file conftest.$ac_objext` in
|
|---|
| 2072 | *32-bit*)
|
|---|
| 2073 | LD="${LD-ld} -32"
|
|---|
| 2074 | ;;
|
|---|
| 2075 | *N32*)
|
|---|
| 2076 | LD="${LD-ld} -n32"
|
|---|
| 2077 | ;;
|
|---|
| 2078 | *64-bit*)
|
|---|
| 2079 | LD="${LD-ld} -64"
|
|---|
| 2080 | ;;
|
|---|
| 2081 | esac
|
|---|
| 2082 | fi
|
|---|
| 2083 | fi
|
|---|
| 2084 | rm -rf conftest*
|
|---|
| 2085 | ;;
|
|---|
| 2086 |
|
|---|
| 2087 | ia64-*-hpux*)
|
|---|
| 2088 | # Find out which ABI we are using.
|
|---|
| 2089 | echo 'int i;' > conftest.$ac_ext
|
|---|
| 2090 | if { (eval echo configure:2091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 2091 | case "`/usr/bin/file conftest.o`" in
|
|---|
| 2092 | *ELF-32*)
|
|---|
| 2093 | HPUX_IA64_MODE="32"
|
|---|
| 2094 | ;;
|
|---|
| 2095 | *ELF-64*)
|
|---|
| 2096 | HPUX_IA64_MODE="64"
|
|---|
| 2097 | ;;
|
|---|
| 2098 | esac
|
|---|
| 2099 | fi
|
|---|
| 2100 | rm -rf conftest*
|
|---|
| 2101 | ;;
|
|---|
| 2102 |
|
|---|
| 2103 | *-*-sco3.2v5*)
|
|---|
| 2104 | # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
|---|
| 2105 | SAVE_CFLAGS="$CFLAGS"
|
|---|
| 2106 | CFLAGS="$CFLAGS -belf"
|
|---|
| 2107 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
|
|---|
| 2108 | echo "configure:2109: checking whether the C compiler needs -belf" >&5
|
|---|
| 2109 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
|
|---|
| 2110 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2111 | else
|
|---|
| 2112 |
|
|---|
| 2113 | ac_ext=c
|
|---|
| 2114 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2115 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2116 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2117 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2118 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2119 |
|
|---|
| 2120 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2121 | #line 2122 "configure"
|
|---|
| 2122 | #include "confdefs.h"
|
|---|
| 2123 |
|
|---|
| 2124 | int main() {
|
|---|
| 2125 |
|
|---|
| 2126 | ; return 0; }
|
|---|
| 2127 | EOF
|
|---|
| 2128 | if { (eval echo configure:2129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 2129 | rm -rf conftest*
|
|---|
| 2130 | lt_cv_cc_needs_belf=yes
|
|---|
| 2131 | else
|
|---|
| 2132 | echo "configure: failed program was:" >&5
|
|---|
| 2133 | cat conftest.$ac_ext >&5
|
|---|
| 2134 | rm -rf conftest*
|
|---|
| 2135 | lt_cv_cc_needs_belf=no
|
|---|
| 2136 | fi
|
|---|
| 2137 | rm -f conftest*
|
|---|
| 2138 | ac_ext=c
|
|---|
| 2139 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2140 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2141 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2142 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2143 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2144 |
|
|---|
| 2145 | fi
|
|---|
| 2146 |
|
|---|
| 2147 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
|
|---|
| 2148 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
|---|
| 2149 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
|---|
| 2150 | CFLAGS="$SAVE_CFLAGS"
|
|---|
| 2151 | fi
|
|---|
| 2152 | ;;
|
|---|
| 2153 |
|
|---|
| 2154 |
|
|---|
| 2155 | esac
|
|---|
| 2156 |
|
|---|
| 2157 |
|
|---|
| 2158 | # Save cache, so that ltconfig can load it
|
|---|
| 2159 | cat > confcache <<\EOF
|
|---|
| 2160 | # This file is a shell script that caches the results of configure
|
|---|
| 2161 | # tests run on this system so they can be shared between configure
|
|---|
| 2162 | # scripts and configure runs. It is not useful on other systems.
|
|---|
| 2163 | # If it contains results you don't want to keep, you may remove or edit it.
|
|---|
| 2164 | #
|
|---|
| 2165 | # By default, configure uses ./config.cache as the cache file,
|
|---|
| 2166 | # creating it if it does not exist already. You can give configure
|
|---|
| 2167 | # the --cache-file=FILE option to use a different cache file; that is
|
|---|
| 2168 | # what configure does when it calls configure scripts in
|
|---|
| 2169 | # subdirectories, so they share the cache.
|
|---|
| 2170 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
|---|
| 2171 | # config.status only pays attention to the cache file if you give it the
|
|---|
| 2172 | # --recheck option to rerun configure.
|
|---|
| 2173 | #
|
|---|
| 2174 | EOF
|
|---|
| 2175 | # The following way of writing the cache mishandles newlines in values,
|
|---|
| 2176 | # but we know of no workaround that is simple, portable, and efficient.
|
|---|
| 2177 | # So, don't put newlines in cache variables' values.
|
|---|
| 2178 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
|---|
| 2179 | # and sets the high bit in the cache file unless we assign to the vars.
|
|---|
| 2180 | (set) 2>&1 |
|
|---|
| 2181 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
|---|
| 2182 | *ac_space=\ *)
|
|---|
| 2183 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
|---|
| 2184 | # turns \\\\ into \\, and sed turns \\ into \).
|
|---|
| 2185 | sed -n \
|
|---|
| 2186 | -e "s/'/'\\\\''/g" \
|
|---|
| 2187 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
|---|
| 2188 | ;;
|
|---|
| 2189 | *)
|
|---|
| 2190 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
|---|
| 2191 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
|---|
| 2192 | ;;
|
|---|
| 2193 | esac >> confcache
|
|---|
| 2194 | if cmp -s $cache_file confcache; then
|
|---|
| 2195 | :
|
|---|
| 2196 | else
|
|---|
| 2197 | if test -w $cache_file; then
|
|---|
| 2198 | echo "updating cache $cache_file"
|
|---|
| 2199 | cat confcache > $cache_file
|
|---|
| 2200 | else
|
|---|
| 2201 | echo "not updating unwritable cache $cache_file"
|
|---|
| 2202 | fi
|
|---|
| 2203 | fi
|
|---|
| 2204 | rm -f confcache
|
|---|
| 2205 |
|
|---|
| 2206 |
|
|---|
| 2207 | # Actually configure libtool. ac_aux_dir is where install-sh is found.
|
|---|
| 2208 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
|
|---|
| 2209 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
|
|---|
| 2210 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
|
|---|
| 2211 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
|
|---|
| 2212 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
|
|---|
| 2213 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
|
|---|
| 2214 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
|
|---|
| 2215 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
|
|---|
| 2216 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
|
|---|
| 2217 |
|
|---|
| 2218 | # Reload cache, that may have been modified by ltconfig
|
|---|
| 2219 | if test -r "$cache_file"; then
|
|---|
| 2220 | echo "loading cache $cache_file"
|
|---|
| 2221 | . $cache_file
|
|---|
| 2222 | else
|
|---|
| 2223 | echo "creating cache $cache_file"
|
|---|
| 2224 | > $cache_file
|
|---|
| 2225 | fi
|
|---|
| 2226 |
|
|---|
| 2227 |
|
|---|
| 2228 | # This can be used to rebuild libtool when needed
|
|---|
| 2229 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
|
|---|
| 2230 |
|
|---|
| 2231 | # Always use our own libtool.
|
|---|
| 2232 | LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
|---|
| 2233 |
|
|---|
| 2234 | # Redirect the config.log output again, so that the ltconfig log is not
|
|---|
| 2235 | # clobbered by the next message.
|
|---|
| 2236 | exec 5>>./config.log
|
|---|
| 2237 |
|
|---|
| 2238 |
|
|---|
| 2239 |
|
|---|
| 2240 |
|
|---|
| 2241 |
|
|---|
| 2242 |
|
|---|
| 2243 |
|
|---|
| 2244 | user_bfd_gas=
|
|---|
| 2245 | # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
|
|---|
| 2246 | if test "${enable_bfd_assembler+set}" = set; then
|
|---|
| 2247 | enableval="$enable_bfd_assembler"
|
|---|
| 2248 | case "${enableval}" in
|
|---|
| 2249 | yes) need_bfd=yes user_bfd_gas=yes ;;
|
|---|
| 2250 | no) user_bfd_gas=no ;;
|
|---|
| 2251 | *) { echo "configure: error: bad value ${enableval} given for bfd-assembler option" 1>&2; exit 1; } ;;
|
|---|
| 2252 | esac
|
|---|
| 2253 | fi
|
|---|
| 2254 | # Check whether --enable-targets or --disable-targets was given.
|
|---|
| 2255 | if test "${enable_targets+set}" = set; then
|
|---|
| 2256 | enableval="$enable_targets"
|
|---|
| 2257 | case "${enableval}" in
|
|---|
| 2258 | yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
|
|---|
| 2259 | ;;
|
|---|
| 2260 | no) enable_targets= ;;
|
|---|
| 2261 | *) enable_targets=$enableval ;;
|
|---|
| 2262 | esac
|
|---|
| 2263 | fi
|
|---|
| 2264 | # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
|
|---|
| 2265 | if test "${enable_commonbfdlib+set}" = set; then
|
|---|
| 2266 | enableval="$enable_commonbfdlib"
|
|---|
| 2267 | case "${enableval}" in
|
|---|
| 2268 | yes) commonbfdlib=true ;;
|
|---|
| 2269 | no) commonbfdlib=false ;;
|
|---|
| 2270 | *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
|
|---|
| 2271 | esac
|
|---|
| 2272 | fi
|
|---|
| 2273 |
|
|---|
| 2274 | using_cgen=no
|
|---|
| 2275 |
|
|---|
| 2276 | build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
|---|
| 2277 | # Check whether --enable-build-warnings or --disable-build-warnings was given.
|
|---|
| 2278 | if test "${enable_build_warnings+set}" = set; then
|
|---|
| 2279 | enableval="$enable_build_warnings"
|
|---|
| 2280 | case "${enableval}" in
|
|---|
| 2281 | yes) ;;
|
|---|
| 2282 | no) build_warnings="-w";;
|
|---|
| 2283 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
|---|
| 2284 | build_warnings="${build_warnings} ${t}";;
|
|---|
| 2285 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
|---|
| 2286 | build_warnings="${t} ${build_warnings}";;
|
|---|
| 2287 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
|
|---|
| 2288 | esac
|
|---|
| 2289 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
|
|---|
| 2290 | echo "Setting warning flags = $build_warnings" 6>&1
|
|---|
| 2291 | fi
|
|---|
| 2292 | fi
|
|---|
| 2293 | WARN_CFLAGS=""
|
|---|
| 2294 | if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
|
|---|
| 2295 | WARN_CFLAGS="${build_warnings}"
|
|---|
| 2296 | fi
|
|---|
| 2297 |
|
|---|
| 2298 |
|
|---|
| 2299 | # Generate a header file
|
|---|
| 2300 |
|
|---|
| 2301 |
|
|---|
| 2302 |
|
|---|
| 2303 |
|
|---|
| 2304 | # If we are on a DOS filesystem, we must use gdb.ini rather than
|
|---|
| 2305 | # .gdbinit.
|
|---|
| 2306 | GDBINIT=".gdbinit"
|
|---|
| 2307 | case "${host}" in
|
|---|
| 2308 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
|
|---|
| 2309 | GDBINIT="gdb.ini"
|
|---|
| 2310 | ;;
|
|---|
| 2311 | esac
|
|---|
| 2312 |
|
|---|
| 2313 |
|
|---|
| 2314 | te_file=generic
|
|---|
| 2315 |
|
|---|
| 2316 | # Makefile target for installing gas in $(tooldir)/bin.
|
|---|
| 2317 | install_tooldir=install-exec-tooldir
|
|---|
| 2318 |
|
|---|
| 2319 | canon_targets=""
|
|---|
| 2320 | all_targets=no
|
|---|
| 2321 | if test -n "$enable_targets" ; then
|
|---|
| 2322 | for t in `echo $enable_targets | sed 's/,/ /g'`; do
|
|---|
| 2323 | if test $t = "all"; then
|
|---|
| 2324 | all_targets=yes
|
|---|
| 2325 | continue
|
|---|
| 2326 | fi
|
|---|
| 2327 | result=`$ac_config_sub $t 2>/dev/null`
|
|---|
| 2328 | if test -n "$result" ; then
|
|---|
| 2329 | canon_targets="$canon_targets $result"
|
|---|
| 2330 | # else
|
|---|
| 2331 | # # Permit "all", etc. We don't support it yet though.
|
|---|
| 2332 | # canon_targets="$canon_targets $t"
|
|---|
| 2333 | fi
|
|---|
| 2334 | done
|
|---|
| 2335 | _gas_uniq_list="$canon_targets"
|
|---|
| 2336 | _gas_uniq_newlist=""
|
|---|
| 2337 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
|
|---|
| 2338 | case $_gas_uniq_i in
|
|---|
| 2339 | _gas_uniq_dummy) ;;
|
|---|
| 2340 | *) case " $_gas_uniq_newlist " in
|
|---|
| 2341 | *" $_gas_uniq_i "*) ;;
|
|---|
| 2342 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
|
|---|
| 2343 | esac ;;
|
|---|
| 2344 | esac
|
|---|
| 2345 | done
|
|---|
| 2346 | canon_targets=$_gas_uniq_newlist
|
|---|
| 2347 |
|
|---|
| 2348 | fi
|
|---|
| 2349 |
|
|---|
| 2350 | emulations=""
|
|---|
| 2351 |
|
|---|
| 2352 | for this_target in $target $canon_targets ; do
|
|---|
| 2353 |
|
|---|
| 2354 | eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
|
|---|
| 2355 |
|
|---|
| 2356 | # check for architecture variants
|
|---|
| 2357 | arch=
|
|---|
| 2358 | endian=
|
|---|
| 2359 | case ${cpu} in
|
|---|
| 2360 | alpha*) cpu_type=alpha ;;
|
|---|
| 2361 | arm*b|xscale*b|strongarm*b) cpu_type=arm endian=big ;;
|
|---|
| 2362 | arm*|xscale*|strongarm*) cpu_type=arm endian=little ;;
|
|---|
| 2363 | hppa*) cpu_type=hppa ;;
|
|---|
| 2364 | i[3456]86) cpu_type=i386 arch=i386;;
|
|---|
| 2365 | x86_64) cpu_type=i386 arch=x86_64;;
|
|---|
| 2366 | ia64) cpu_type=ia64 ;;
|
|---|
| 2367 | ip2k) cpu_type=ip2k endian=big ;;
|
|---|
| 2368 | iq2000) cpu_type=iq2000 endian=big ;;
|
|---|
| 2369 | m6811|m6812|m68hc12) cpu_type=m68hc11 ;;
|
|---|
| 2370 | m680[012346]0) cpu_type=m68k ;;
|
|---|
| 2371 | m68008) cpu_type=m68k ;;
|
|---|
| 2372 | m683??) cpu_type=m68k ;;
|
|---|
| 2373 | m5200) cpu_type=m68k ;;
|
|---|
| 2374 | m8*) cpu_type=m88k ;;
|
|---|
| 2375 | mips*el) cpu_type=mips endian=little ;;
|
|---|
| 2376 | mips*) cpu_type=mips endian=big ;;
|
|---|
| 2377 | or32*) cpu_type=or32 endian=big ;;
|
|---|
| 2378 | pjl*) cpu_type=pj endian=little ;;
|
|---|
| 2379 | pj*) cpu_type=pj endian=big ;;
|
|---|
| 2380 | powerpc*le*) cpu_type=ppc endian=little ;;
|
|---|
| 2381 | powerpc*) cpu_type=ppc endian=big ;;
|
|---|
| 2382 | rs6000*) cpu_type=ppc ;;
|
|---|
| 2383 | s390x*) cpu_type=s390 arch=s390x ;;
|
|---|
| 2384 | s390*) cpu_type=s390 arch=s390 ;;
|
|---|
| 2385 | sh5*) cpu_type=sh64 endian=big ;;
|
|---|
| 2386 | sh5le*) cpu_type=sh64 endian=little ;;
|
|---|
| 2387 | sh64*) cpu_type=sh64 endian=big ;;
|
|---|
| 2388 | sh64le*) cpu_type=sh64 endian=little ;;
|
|---|
| 2389 | sh*le) cpu_type=sh endian=little ;;
|
|---|
| 2390 | sh*) cpu_type=sh endian=big ;;
|
|---|
| 2391 | sparclite*) cpu_type=sparc arch=sparclite ;;
|
|---|
| 2392 | sparclet*) cpu_type=sparc arch=sparclet ;;
|
|---|
| 2393 | sparc64*) cpu_type=sparc arch=v9-64 ;;
|
|---|
| 2394 | sparc86x*) cpu_type=sparc arch=sparc86x ;;
|
|---|
| 2395 | sparc*) cpu_type=sparc arch=sparclite ;; # ??? See tc-sparc.c.
|
|---|
| 2396 | v850*) cpu_type=v850 ;;
|
|---|
| 2397 | xtensa*) cpu_type=xtensa arch=xtensa ;;
|
|---|
| 2398 | *) cpu_type=${cpu} ;;
|
|---|
| 2399 | esac
|
|---|
| 2400 |
|
|---|
| 2401 | if test ${this_target} = $target ; then
|
|---|
| 2402 | target_cpu_type=${cpu_type}
|
|---|
| 2403 | elif test ${target_cpu_type} != ${cpu_type} ; then
|
|---|
| 2404 | continue
|
|---|
| 2405 | fi
|
|---|
| 2406 |
|
|---|
| 2407 | generic_target=${cpu_type}-$vendor-$os
|
|---|
| 2408 | dev=no
|
|---|
| 2409 | bfd_gas=no
|
|---|
| 2410 | em=generic
|
|---|
| 2411 |
|
|---|
| 2412 | # assign object format
|
|---|
| 2413 | case ${generic_target} in
|
|---|
| 2414 | a29k-*-coff) fmt=coff ;;
|
|---|
| 2415 | a29k-amd-udi) fmt=coff ;;
|
|---|
| 2416 | a29k-amd-ebmon) fmt=coff ;;
|
|---|
| 2417 | a29k-nyu-sym1) fmt=coff ;;
|
|---|
| 2418 | a29k-*-rtems*) fmt=coff ;;
|
|---|
| 2419 | a29k-*-vxworks*) fmt=coff ;;
|
|---|
| 2420 |
|
|---|
| 2421 | alpha*-*-*vms*) fmt=evax ;;
|
|---|
| 2422 | alpha*-*-netware*) fmt=ecoff ;;
|
|---|
| 2423 | alpha*-*-osf*) fmt=ecoff ;;
|
|---|
| 2424 | alpha*-*-linuxecoff*) fmt=ecoff ;;
|
|---|
| 2425 | alpha*-*-linux-gnu*) fmt=elf em=linux ;;
|
|---|
| 2426 | alpha*-*-netbsd*) fmt=elf em=nbsd ;;
|
|---|
| 2427 | alpha*-*-openbsd*) fmt=elf em=obsd ;;
|
|---|
| 2428 |
|
|---|
| 2429 | arc-*-elf*) fmt=elf ;;
|
|---|
| 2430 |
|
|---|
| 2431 | arm-*-aout) fmt=aout ;;
|
|---|
| 2432 | arm-*-coff | thumb-*-coff) fmt=coff ;;
|
|---|
| 2433 | arm-*-rtems | thumb-*-rtems) fmt=elf ;;
|
|---|
| 2434 | arm-*-elf | thumb-*-elf) fmt=elf ;;
|
|---|
| 2435 | arm-*-kaos*) fmt=elf ;;
|
|---|
| 2436 | arm*-*-conix*) fmt=elf ;;
|
|---|
| 2437 | arm-*-linux*aout*) fmt=aout em=linux ;;
|
|---|
| 2438 | arm*-*-linux-gnu*) fmt=elf em=linux ;;
|
|---|
| 2439 | arm*-*-uclinux*) fmt=elf em=linux ;;
|
|---|
| 2440 | arm-*-netbsdelf*) fmt=elf em=nbsd ;;
|
|---|
| 2441 | arm-*-*n*bsd*) fmt=aout em=nbsd ;;
|
|---|
| 2442 | arm-**-nto*) fmt=elf ;;
|
|---|
| 2443 | arm-*-oabi | thumb-*-oabi) fmt=elf ;;
|
|---|
| 2444 | arm-epoc-pe | thumb-epoc-pe) fmt=coff em=epoc-pe ;;
|
|---|
| 2445 | arm-*-wince) fmt=coff em=wince-pe ;;
|
|---|
| 2446 | arm-*-pe | thumb-*-pe) fmt=coff em=pe ;;
|
|---|
| 2447 | arm-*-riscix*) fmt=aout em=riscix ;;
|
|---|
| 2448 | arm-*-vxworks) fmt=coff ;;
|
|---|
| 2449 |
|
|---|
| 2450 | avr-*-*) fmt=elf ;;
|
|---|
| 2451 |
|
|---|
| 2452 | cris-*-*) fmt=multi bfd_gas=yes ;;
|
|---|
| 2453 |
|
|---|
| 2454 | d10v-*-*) fmt=elf ;;
|
|---|
| 2455 | d30v-*-*) fmt=elf ;;
|
|---|
| 2456 | dlx-*-*) fmt=elf ;;
|
|---|
| 2457 |
|
|---|
| 2458 | fr30-*-*) fmt=elf ;;
|
|---|
| 2459 | frv-*-*) fmt=elf ;;
|
|---|
| 2460 |
|
|---|
| 2461 | hppa-*-linux*) case ${cpu} in
|
|---|
| 2462 | hppa*64*) fmt=elf em=hppalinux64;;
|
|---|
| 2463 | hppa*) fmt=elf em=linux;;
|
|---|
| 2464 | esac ;;
|
|---|
| 2465 | hppa-*-*elf*) fmt=elf em=hppa ;;
|
|---|
| 2466 | hppa-*-lites*) fmt=elf em=hppa ;;
|
|---|
| 2467 | hppa-*-netbsd*) fmt=elf em=nbsd ;;
|
|---|
| 2468 | hppa-*-openbsd*) fmt=elf em=hppa ;;
|
|---|
| 2469 | hppa-*-osf*) fmt=som em=hppa ;;
|
|---|
| 2470 | hppa-*-rtems*) fmt=elf em=hppa ;;
|
|---|
| 2471 | hppa-*-hpux11*) case ${cpu} in
|
|---|
| 2472 | hppa*64*) fmt=elf em=hppa64 ;;
|
|---|
| 2473 | hppa*) fmt=som em=hppa ;;
|
|---|
| 2474 | esac ;;
|
|---|
| 2475 | hppa-*-hpux*) fmt=som em=hppa ;;
|
|---|
| 2476 | hppa-*-mpeix*) fmt=som em=hppa ;;
|
|---|
| 2477 | hppa-*-bsd*) fmt=som em=hppa ;;
|
|---|
| 2478 | hppa-*-hiux*) fmt=som em=hppa ;;
|
|---|
| 2479 |
|
|---|
| 2480 | h8300-*-rtems*) fmt=coff ;;
|
|---|
| 2481 | h8300-*-coff) fmt=coff ;;
|
|---|
| 2482 | h8300-*-elf) fmt=elf ;;
|
|---|
| 2483 | h8500-*-rtems*) fmt=coff ;;
|
|---|
| 2484 | h8500-*-coff) fmt=coff ;;
|
|---|
| 2485 |
|
|---|
| 2486 | i370-*-elf* | i370-*-linux*) fmt=elf ;;
|
|---|
| 2487 | i386-ibm-aix*) fmt=coff em=i386aix ;;
|
|---|
| 2488 | i386-sequent-bsd*) fmt=aout em=dynix ;;
|
|---|
| 2489 | i386-*-beospe*) fmt=coff em=pe ;;
|
|---|
| 2490 | i386-*-beos*) fmt=elf ;;
|
|---|
| 2491 | i386-*-coff) fmt=coff ;;
|
|---|
| 2492 | i386-*-elf) fmt=elf ;;
|
|---|
| 2493 | i386-*-kaos*) fmt=elf ;;
|
|---|
| 2494 | i386-*-bsd*) fmt=aout em=386bsd ;;
|
|---|
| 2495 | i386-*-netbsd0.8) fmt=aout em=386bsd ;;
|
|---|
| 2496 | i386-*-netbsdpe*) fmt=coff em=pe ;;
|
|---|
| 2497 | i386-*-netbsdelf*) fmt=elf em=nbsd ;;
|
|---|
| 2498 | i386-*-*n*bsd*) case ${cpu} in
|
|---|
| 2499 | x86_64) fmt=elf em=nbsd ;;
|
|---|
| 2500 | *) fmt=aout em=nbsd ;;
|
|---|
| 2501 | esac ;;
|
|---|
| 2502 | i386-*-linux*aout*) fmt=aout em=linux ;;
|
|---|
| 2503 | i386-*-linux*oldld) fmt=aout em=linux ;;
|
|---|
| 2504 | i386-*-linux*coff*) fmt=coff em=linux ;;
|
|---|
| 2505 | i386-*-linux-gnu*) fmt=elf em=linux ;;
|
|---|
| 2506 | x86_64-*-linux-gnu*) fmt=elf em=linux ;;
|
|---|
| 2507 | i386-*-lynxos*) fmt=coff em=lynx ;;
|
|---|
| 2508 | i386-*-sysv[45]*) fmt=elf ;;
|
|---|
| 2509 | i386-*-solaris*) fmt=elf ;;
|
|---|
| 2510 | i386-*-freebsdaout*) fmt=aout em=386bsd ;;
|
|---|
| 2511 | i386-*-freebsd[12].*) fmt=aout em=386bsd ;;
|
|---|
| 2512 | i386-*-freebsd[12]) fmt=aout em=386bsd ;;
|
|---|
| 2513 | i386-*-sysv*) fmt=coff ;;
|
|---|
| 2514 | i386-*-sco3.2v5*coff) fmt=coff ;;
|
|---|
| 2515 | i386-*-isc*) fmt=coff ;;
|
|---|
| 2516 | i386-*-sco3.2v5*) fmt=elf
|
|---|
| 2517 | if test ${this_target} = $target; then
|
|---|
| 2518 | cat >> confdefs.h <<\EOF
|
|---|
| 2519 | #define SCO_ELF 1
|
|---|
| 2520 | EOF
|
|---|
| 2521 |
|
|---|
| 2522 | fi ;;
|
|---|
| 2523 | i386-*-sco3.2*) fmt=coff ;;
|
|---|
| 2524 | i386-*-vsta) fmt=aout ;;
|
|---|
| 2525 | i386-*-msdosdjgpp* \
|
|---|
| 2526 | | i386-*-go32* \
|
|---|
| 2527 | | i386-go32-rtems*) fmt=coff em=go32
|
|---|
| 2528 | cat >> confdefs.h <<\EOF
|
|---|
| 2529 | #define STRICTCOFF 1
|
|---|
| 2530 | EOF
|
|---|
| 2531 | ;;
|
|---|
| 2532 | i386-*-rtemself*) fmt=elf ;;
|
|---|
| 2533 | i386-*-rtemscoff*) fmt=coff ;;
|
|---|
| 2534 | i386-*-rtems*) fmt=elf ;;
|
|---|
| 2535 | i386-*-gnu*) fmt=elf ;;
|
|---|
| 2536 | i386-*-mach*) fmt=aout em=mach ;;
|
|---|
| 2537 | i386-*-msdos*) fmt=aout ;;
|
|---|
| 2538 | i386-*-moss*) fmt=elf ;;
|
|---|
| 2539 | i386-*-pe) fmt=coff em=pe ;;
|
|---|
| 2540 | i386-*-cygwin*) fmt=coff em=pe ;;
|
|---|
| 2541 | i386-*-interix*) fmt=coff em=interix ;;
|
|---|
| 2542 | i386-*-mingw32*) fmt=coff em=pe ;;
|
|---|
| 2543 | i386-*-nto-qnx*) fmt=elf ;;
|
|---|
| 2544 | i386-*-*nt*) fmt=coff em=pe ;;
|
|---|
| 2545 | i386-*-os2-elf*) fmt=elf ;;
|
|---|
| 2546 | i386-*-os2*) fmt=aout em=emx bfd_gas=yes ;;
|
|---|
| 2547 | i386-*-vxworks*) fmt=aout ;;
|
|---|
| 2548 | i386-*-chaos) fmt=elf ;;
|
|---|
| 2549 |
|
|---|
| 2550 | i860-*-*) fmt=elf endian=little
|
|---|
| 2551 | echo "configure: warning: GAS support for ${generic_target} is preliminary and a work in progress" 1>&2 ;;
|
|---|
| 2552 | i960-*-bout) fmt=bout ;;
|
|---|
| 2553 | i960-*-coff) fmt=coff em=ic960 ;;
|
|---|
| 2554 | i960-*-rtems*) fmt=coff em=ic960 ;;
|
|---|
| 2555 | i960-*-nindy*) fmt=bout ;;
|
|---|
| 2556 | i960-*-vxworks5.0) fmt=bout ;;
|
|---|
| 2557 | i960-*-vxworks5.*) fmt=coff em=ic960 ;;
|
|---|
| 2558 | i960-*-vxworks*) fmt=bout ;;
|
|---|
| 2559 | i960-*-elf*) fmt=elf ;;
|
|---|
| 2560 |
|
|---|
| 2561 | ia64-*-elf*) fmt=elf ;;
|
|---|
| 2562 | ia64-*-aix*) fmt=elf em=ia64aix ;;
|
|---|
| 2563 | ia64-*-linux-gnu*) fmt=elf em=linux ;;
|
|---|
| 2564 | ia64-*-hpux*) fmt=elf em=hpux ;;
|
|---|
| 2565 | ia64-*-netbsd*) fmt=elf em=nbsd ;;
|
|---|
| 2566 |
|
|---|
| 2567 | ip2k-*-*) fmt=elf ;;
|
|---|
| 2568 |
|
|---|
| 2569 | iq2000-*-elf) fmt=elf bfd_gas=yes ;;
|
|---|
| 2570 |
|
|---|
| 2571 | m32r-*-*) fmt=elf ;;
|
|---|
| 2572 |
|
|---|
| 2573 | m68hc11-*-* | m6811-*-*) fmt=elf ;;
|
|---|
| 2574 | m68hc12-*-* | m6812-*-*) fmt=elf ;;
|
|---|
| 2575 |
|
|---|
| 2576 | m68k-*-vxworks*) fmt=aout em=sun3 ;;
|
|---|
| 2577 | m68k-ericsson-ose) fmt=aout em=sun3 ;;
|
|---|
| 2578 | m68k-*-sunos*) fmt=aout em=sun3 ;;
|
|---|
| 2579 | m68k-motorola-sysv*) fmt=coff em=delta ;;
|
|---|
| 2580 | m68k-bull-sysv3*) fmt=coff em=dpx2 ;;
|
|---|
| 2581 | m68k-apollo-*) fmt=coff em=apollo ;;
|
|---|
| 2582 | m68k-*-elf*) fmt=elf ;;
|
|---|
| 2583 | m68k-*-sysv4*) fmt=elf em=svr4 ;;
|
|---|
| 2584 | m68k-*-sysv*) fmt=coff ;;
|
|---|
| 2585 | m68k-*-coff | m68k-*-rtemscoff*) fmt=coff ;;
|
|---|
| 2586 | m68k-*-rtems*) fmt=elf ;;
|
|---|
| 2587 | m68k-*-hpux*) fmt=hp300 em=hp300 ;;
|
|---|
| 2588 | m68k-*-linux*aout*) fmt=aout em=linux ;;
|
|---|
| 2589 | m68k-*-linux-gnu*) fmt=elf em=linux ;;
|
|---|
| 2590 | m68k-*-gnu*) fmt=elf ;;
|
|---|
| 2591 | m68k-*-lynxos*) fmt=coff em=lynx ;;
|
|---|
| 2592 | m68k-*-netbsdelf*) fmt=elf em=nbsd ;;
|
|---|
| 2593 | m68k-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
|
|---|
| 2594 | m68k-*-openbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
|
|---|
| 2595 | m68k-apple-aux*) fmt=coff em=aux ;;
|
|---|
| 2596 | m68k-*-psos*) fmt=elf em=psos;;
|
|---|
| 2597 |
|
|---|
| 2598 | m88k-motorola-sysv3*) fmt=coff em=delt88 ;;
|
|---|
| 2599 | m88k-*-coff*) fmt=coff ;;
|
|---|
| 2600 |
|
|---|
| 2601 | mcore-*-elf) fmt=elf ;;
|
|---|
| 2602 | mcore-*-pe) fmt=coff em=pe bfd_gas=yes ;;
|
|---|
| 2603 |
|
|---|
| 2604 | # don't change em like *-*-bsd does
|
|---|
| 2605 | mips-dec-openbsd*) fmt=elf endian=little ;;
|
|---|
| 2606 | mips-dec-bsd*) fmt=aout endian=little ;;
|
|---|
| 2607 | mips-sony-bsd*) fmt=ecoff ;;
|
|---|
| 2608 | mips-*-bsd*)
|
|---|
| 2609 | { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;;
|
|---|
| 2610 | mips-*-ultrix*) fmt=ecoff endian=little ;;
|
|---|
| 2611 | mips-*-osf*) fmt=ecoff endian=little ;;
|
|---|
| 2612 | mips-*-ecoff*) fmt=ecoff ;;
|
|---|
| 2613 | mips-*-pe*) fmt=coff endian=little em=pe ;;
|
|---|
| 2614 | mips-*-irix6*) fmt=elf em=irix ;;
|
|---|
| 2615 | mips-*-irix5*) fmt=elf em=irix ;;
|
|---|
| 2616 | mips-*-irix*) fmt=ecoff em=irix ;;
|
|---|
| 2617 | mips-*-lnews*) fmt=ecoff em=lnews ;;
|
|---|
| 2618 | mips-*-riscos*) fmt=ecoff ;;
|
|---|
| 2619 | mips*-*-linux*) fmt=elf em=tmips ;;
|
|---|
| 2620 | mips-*-sysv4*MP* | mips-*-gnu*) fmt=elf em=tmips ;;
|
|---|
| 2621 | mips-*-sysv*) fmt=ecoff ;;
|
|---|
| 2622 | mips-*-elf* | mips-*-rtems*) fmt=elf ;;
|
|---|
| 2623 | mips-*-netbsd*) fmt=elf ;;
|
|---|
| 2624 | mips-*-openbsd*) fmt=elf ;;
|
|---|
| 2625 | mips-*-vxworks*) fmt=elf ;;
|
|---|
| 2626 |
|
|---|
| 2627 | mmix-*-*) fmt=elf ;;
|
|---|
| 2628 | mn10200-*-*) fmt=elf ;;
|
|---|
| 2629 | mn10300-*-*) fmt=elf ;;
|
|---|
| 2630 | msp430-*-*) fmt=elf ;;
|
|---|
| 2631 | openrisc-*-*) fmt=elf ;;
|
|---|
| 2632 | or32-*-rtems*) fmt=coff ;;
|
|---|
| 2633 | or32-*-coff) fmt=coff ;;
|
|---|
| 2634 | or32-*-elf) fmt=elf ;;
|
|---|
| 2635 | pj*) fmt=elf ;;
|
|---|
| 2636 |
|
|---|
| 2637 | ppc-*-pe | ppc-*-cygwin*) fmt=coff em=pe ;;
|
|---|
| 2638 | ppc-*-winnt*) fmt=coff em=pe ;;
|
|---|
| 2639 | ppc-*-aix5*) fmt=coff em=aix5 ;;
|
|---|
| 2640 | ppc-*-aix*) fmt=coff ;;
|
|---|
| 2641 | ppc-*-beos*) fmt=coff ;;
|
|---|
| 2642 | ppc-*-*n*bsd* | ppc-*-elf*) fmt=elf ;;
|
|---|
| 2643 | ppc-*-eabi* | ppc-*-sysv4*) fmt=elf ;;
|
|---|
| 2644 | ppc-*-linux-gnu*) fmt=elf
|
|---|
| 2645 | case "$endian" in
|
|---|
| 2646 | big) ;;
|
|---|
| 2647 | *) { echo "configure: error: GNU/Linux must be configured big endian" 1>&2; exit 1; } ;;
|
|---|
| 2648 | esac ;;
|
|---|
| 2649 | ppc-*-solaris*) fmt=elf
|
|---|
| 2650 | if test ${this_target} = $target; then
|
|---|
| 2651 | cat >> confdefs.h <<\EOF
|
|---|
| 2652 | #define TARGET_SOLARIS_COMMENT 1
|
|---|
| 2653 | EOF
|
|---|
| 2654 |
|
|---|
| 2655 | fi
|
|---|
| 2656 | if test x${endian} = xbig; then
|
|---|
| 2657 | { echo "configure: error: Solaris must be configured little endian" 1>&2; exit 1; }
|
|---|
| 2658 | fi ;;
|
|---|
| 2659 | ppc-*-rtems*) fmt=elf ;;
|
|---|
| 2660 | ppc-*-macos* | ppc-*-mpw*) fmt=coff em=macos ;;
|
|---|
| 2661 | ppc-*-netware*) fmt=elf em=ppcnw ;;
|
|---|
| 2662 | ppc-**-nto*) fmt=elf ;;
|
|---|
| 2663 | ppc-*-vxworks*) fmt=elf ;;
|
|---|
| 2664 | ppc-*-windiss*) fmt=elf ;;
|
|---|
| 2665 | ppc-*-kaos*) fmt=elf ;;
|
|---|
| 2666 |
|
|---|
| 2667 | s390x-*-linux-gnu*) fmt=elf em=linux ;;
|
|---|
| 2668 | s390-*-linux-gnu*) fmt=elf em=linux ;;
|
|---|
| 2669 |
|
|---|
| 2670 | sh*-*-linux*) fmt=elf em=linux
|
|---|
| 2671 | case ${cpu} in
|
|---|
| 2672 | sh*eb) endian=big ;;
|
|---|
| 2673 | *) endian=little ;;
|
|---|
| 2674 | esac ;;
|
|---|
| 2675 | sh5*-*-netbsd*) fmt=elf em=nbsd ;;
|
|---|
| 2676 | sh64*-*-netbsd*) fmt=elf em=nbsd ;;
|
|---|
| 2677 | sh*-*-netbsdelf*) fmt=elf em=nbsd ;;
|
|---|
| 2678 | sh-*-elf*) fmt=elf ;;
|
|---|
| 2679 | sh-*-coff*) fmt=coff ;;
|
|---|
| 2680 | sh-*-nto*) fmt=elf ;;
|
|---|
| 2681 | sh-*-pe*) fmt=coff em=pe bfd_gas=yes endian=little ;;
|
|---|
| 2682 | sh-*-rtemself*) fmt=elf ;;
|
|---|
| 2683 | sh-*-rtems*) fmt=coff ;;
|
|---|
| 2684 | sh-*-kaos*) fmt=elf ;;
|
|---|
| 2685 | shle*-*-kaos*) fmt=elf ;;
|
|---|
| 2686 | sh64-*-elf*) fmt=elf ;;
|
|---|
| 2687 |
|
|---|
| 2688 | ns32k-pc532-mach*) fmt=aout em=pc532mach ;;
|
|---|
| 2689 | ns32k-pc532-ux*) fmt=aout em=pc532mach ;;
|
|---|
| 2690 | ns32k-pc532-lites*) fmt=aout em=nbsd532 ;;
|
|---|
| 2691 | ns32k-*-*n*bsd*) fmt=aout em=nbsd532 ;;
|
|---|
| 2692 |
|
|---|
| 2693 | sparc-*-rtemsaout*) fmt=aout ;;
|
|---|
| 2694 | sparc-*-rtemself*) fmt=elf ;;
|
|---|
| 2695 | sparc-*-rtems*) fmt=elf ;;
|
|---|
| 2696 | sparc-*-sunos4*) fmt=aout em=sun3 ;;
|
|---|
| 2697 | sparc-*-aout | sparc*-*-vxworks*) fmt=aout em=sparcaout ;;
|
|---|
| 2698 | sparc-*-coff) fmt=coff ;;
|
|---|
| 2699 | sparc-*-linux*aout*) fmt=aout em=linux ;;
|
|---|
| 2700 | sparc-*-linux-gnu*) fmt=elf em=linux ;;
|
|---|
| 2701 | sparc-*-lynxos*) fmt=coff em=lynx ;;
|
|---|
| 2702 | sparc-fujitsu-none) fmt=aout ;;
|
|---|
| 2703 | sparc-*-elf) fmt=elf ;;
|
|---|
| 2704 | sparc-*-sysv4*) fmt=elf ;;
|
|---|
| 2705 | sparc-*-solaris*) fmt=elf ;;
|
|---|
| 2706 | sparc-*-netbsdelf*) fmt=elf em=nbsd ;;
|
|---|
| 2707 | sparc-*-*n*bsd*) case ${cpu} in
|
|---|
| 2708 | sparc64) fmt=elf em=nbsd ;;
|
|---|
| 2709 | *) fmt=aout em=nbsd ;;
|
|---|
| 2710 | esac ;;
|
|---|
| 2711 | strongarm-*-coff) fmt=coff ;;
|
|---|
| 2712 | strongarm-*-elf) fmt=elf ;;
|
|---|
| 2713 | strongarm-*-kaos*) fmt=elf ;;
|
|---|
| 2714 | xscale-*-coff) fmt=coff ;;
|
|---|
| 2715 | xscale-*-elf) fmt=elf ;;
|
|---|
| 2716 |
|
|---|
| 2717 | tic30-*-*aout*) fmt=aout bfd_gas=yes ;;
|
|---|
| 2718 | tic30-*-*coff*) fmt=coff bfd_gas=yes ;;
|
|---|
| 2719 | tic4x-*-* | c4x-*-*) fmt=coff bfd_gas=yes ;;
|
|---|
| 2720 | tic54x-*-* | c54x*-*-*) fmt=coff bfd_gas=yes need_libm=yes;;
|
|---|
| 2721 | tic80-*-*) fmt=coff ;;
|
|---|
| 2722 |
|
|---|
| 2723 | v850-*-*) fmt=elf ;;
|
|---|
| 2724 | v850e-*-*) fmt=elf ;;
|
|---|
| 2725 | v850ea-*-*) fmt=elf ;;
|
|---|
| 2726 |
|
|---|
| 2727 | vax-*-netbsdelf*) fmt=elf em=nbsd ;;
|
|---|
| 2728 | vax-*-netbsd*) fmt=aout em=nbsd ;;
|
|---|
| 2729 | vax-*-bsd* | vax-*-ultrix*) fmt=aout ;;
|
|---|
| 2730 | vax-*-vms) fmt=vms ;;
|
|---|
| 2731 |
|
|---|
| 2732 | w65-*-*) fmt=coff ;;
|
|---|
| 2733 |
|
|---|
| 2734 | xstormy16-*-*) fmt=elf ;;
|
|---|
| 2735 |
|
|---|
| 2736 | xtensa-*-*) fmt=elf ;;
|
|---|
| 2737 |
|
|---|
| 2738 | z8k-*-coff | z8k-*-sim) fmt=coff ;;
|
|---|
| 2739 |
|
|---|
| 2740 | *-*-aout | *-*-scout) fmt=aout ;;
|
|---|
| 2741 | *-*-freebsd*) fmt=elf em=freebsd ;;
|
|---|
| 2742 | *-*-nindy*) fmt=bout ;;
|
|---|
| 2743 | *-*-bsd*) fmt=aout em=sun3 ;;
|
|---|
| 2744 | *-*-generic) fmt=generic ;;
|
|---|
| 2745 | *-*-xray | *-*-hms) fmt=coff ;;
|
|---|
| 2746 | *-*-sim) fmt=coff ;;
|
|---|
| 2747 | *-*-elf | *-*-sysv4* | *-*-solaris*) fmt=elf dev=yes ;;
|
|---|
| 2748 | *-*-aros*) fmt=elf em=linux bfd_gas=yes ;;
|
|---|
| 2749 | *-*-vxworks) fmt=aout ;;
|
|---|
| 2750 | *-*-netware) fmt=elf ;;
|
|---|
| 2751 | esac
|
|---|
| 2752 |
|
|---|
| 2753 | if test ${this_target} = $target ; then
|
|---|
| 2754 | endian_def=
|
|---|
| 2755 | if test x${endian} = xbig; then
|
|---|
| 2756 | endian_def=1
|
|---|
| 2757 | elif test x${endian} = xlittle; then
|
|---|
| 2758 | endian_def=0
|
|---|
| 2759 | fi
|
|---|
| 2760 | if test x${endian_def} != x; then
|
|---|
| 2761 | cat >> confdefs.h <<EOF
|
|---|
| 2762 | #define TARGET_BYTES_BIG_ENDIAN $endian_def
|
|---|
| 2763 | EOF
|
|---|
| 2764 |
|
|---|
| 2765 | fi
|
|---|
| 2766 | fi
|
|---|
| 2767 |
|
|---|
| 2768 | case ${cpu_type}-${fmt} in
|
|---|
| 2769 | alpha*-* | arm-* | i386-* | ia64*-* | mips-* | ns32k-* \
|
|---|
| 2770 | | pdp11-* | ppc-* | sparc-* | strongarm-* | xscale-* \
|
|---|
| 2771 | | *-elf | *-ecoff | *-som)
|
|---|
| 2772 | bfd_gas=yes ;;
|
|---|
| 2773 | esac
|
|---|
| 2774 |
|
|---|
| 2775 | # Other random stuff.
|
|---|
| 2776 |
|
|---|
| 2777 | case ${cpu_type} in
|
|---|
| 2778 | mips)
|
|---|
| 2779 | # Set mips_cpu to the name of the default CPU.
|
|---|
| 2780 | case ${target_cpu} in
|
|---|
| 2781 | mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
|
|---|
| 2782 | mips_cpu=from-abi
|
|---|
| 2783 | ;;
|
|---|
| 2784 | mipsisa32 | mipsisa32el)
|
|---|
| 2785 | mips_cpu=mips32
|
|---|
| 2786 | ;;
|
|---|
| 2787 | mipsisa32r2 | mipsisa32r2el)
|
|---|
| 2788 | mips_cpu=mips32r2
|
|---|
| 2789 | ;;
|
|---|
| 2790 | mipsisa64 | mipsisa64el)
|
|---|
| 2791 | mips_cpu=mips64
|
|---|
| 2792 | ;;
|
|---|
| 2793 | mipstx39 | mipstx39el)
|
|---|
| 2794 | mips_cpu=r3900
|
|---|
| 2795 | ;;
|
|---|
| 2796 | mips64vr | mips64vrel)
|
|---|
| 2797 | mips_cpu=vr4100
|
|---|
| 2798 | ;;
|
|---|
| 2799 | mipsisa32r2*)
|
|---|
| 2800 | mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
|
|---|
| 2801 | ;;
|
|---|
| 2802 | mips64* | mipsisa64* | mipsisa32*)
|
|---|
| 2803 | mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
|
|---|
| 2804 | ;;
|
|---|
| 2805 | *)
|
|---|
| 2806 | { echo "configure: error: $target_cpu isn't a supported MIPS CPU name" 1>&2; exit 1; }
|
|---|
| 2807 | ;;
|
|---|
| 2808 | esac
|
|---|
| 2809 | # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
|
|---|
| 2810 | # binaries. It's a GNU extension that some OSes don't understand.
|
|---|
| 2811 | # The value only matters on ELF targets.
|
|---|
| 2812 | case ${target} in
|
|---|
| 2813 | *-*-irix*)
|
|---|
| 2814 | use_e_mips_abi_o32=0
|
|---|
| 2815 | ;;
|
|---|
| 2816 | *)
|
|---|
| 2817 | use_e_mips_abi_o32=1
|
|---|
| 2818 | ;;
|
|---|
| 2819 | esac
|
|---|
| 2820 | # Decide whether to generate 32-bit or 64-bit code by default.
|
|---|
| 2821 | # Used to resolve -march=from-abi when an embedded ABI is selected.
|
|---|
| 2822 | case ${target} in
|
|---|
| 2823 | mips64*-*-* | mipsisa64*-*-*)
|
|---|
| 2824 | mips_default_64bit=1
|
|---|
| 2825 | ;;
|
|---|
| 2826 | *)
|
|---|
| 2827 | mips_default_64bit=0
|
|---|
| 2828 | ;;
|
|---|
| 2829 | esac
|
|---|
| 2830 | # Decide which ABI to target by default.
|
|---|
| 2831 | case ${target} in
|
|---|
| 2832 | mips64*-linux* | mips-sgi-irix6*)
|
|---|
| 2833 | mips_default_abi=N32_ABI
|
|---|
| 2834 | ;;
|
|---|
| 2835 | mips*-linux*)
|
|---|
| 2836 | mips_default_abi=O32_ABI
|
|---|
| 2837 | ;;
|
|---|
| 2838 | *)
|
|---|
| 2839 | mips_default_abi=NO_ABI
|
|---|
| 2840 | ;;
|
|---|
| 2841 | esac
|
|---|
| 2842 | cat >> confdefs.h <<EOF
|
|---|
| 2843 | #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
|
|---|
| 2844 | EOF
|
|---|
| 2845 |
|
|---|
| 2846 | cat >> confdefs.h <<EOF
|
|---|
| 2847 | #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
|
|---|
| 2848 | EOF
|
|---|
| 2849 |
|
|---|
| 2850 | cat >> confdefs.h <<EOF
|
|---|
| 2851 | #define MIPS_DEFAULT_64BIT $mips_default_64bit
|
|---|
| 2852 | EOF
|
|---|
| 2853 |
|
|---|
| 2854 | cat >> confdefs.h <<EOF
|
|---|
| 2855 | #define MIPS_DEFAULT_ABI $mips_default_abi
|
|---|
| 2856 | EOF
|
|---|
| 2857 |
|
|---|
| 2858 | ;;
|
|---|
| 2859 | esac
|
|---|
| 2860 |
|
|---|
| 2861 | # Do we need the opcodes library?
|
|---|
| 2862 | case ${cpu_type} in
|
|---|
| 2863 | vax | i386 | tic30)
|
|---|
| 2864 | ;;
|
|---|
| 2865 |
|
|---|
| 2866 | *)
|
|---|
| 2867 | need_opcodes=yes
|
|---|
| 2868 |
|
|---|
| 2869 | case "${enable_shared}" in
|
|---|
| 2870 | yes) shared_opcodes=true ;;
|
|---|
| 2871 | *opcodes*) shared_opcodes=true ;;
|
|---|
| 2872 | *) shared_opcodes=false ;;
|
|---|
| 2873 | esac
|
|---|
| 2874 | if test "${shared_opcodes}" = "true"; then
|
|---|
| 2875 | # A shared libopcodes must be linked against libbfd.
|
|---|
| 2876 | need_bfd=yes
|
|---|
| 2877 | fi
|
|---|
| 2878 | ;;
|
|---|
| 2879 | esac
|
|---|
| 2880 |
|
|---|
| 2881 | # Any other special object files needed ?
|
|---|
| 2882 | case ${cpu_type} in
|
|---|
| 2883 | fr30 | ip2k | iq2000 | m32r | openrisc)
|
|---|
| 2884 | using_cgen=yes
|
|---|
| 2885 | ;;
|
|---|
| 2886 |
|
|---|
| 2887 | frv)
|
|---|
| 2888 | using_cgen=yes
|
|---|
| 2889 | ;;
|
|---|
| 2890 | m68k)
|
|---|
| 2891 | case ${extra_objects} in
|
|---|
| 2892 | *m68k-parse.o*) ;;
|
|---|
| 2893 | *) extra_objects="$extra_objects m68k-parse.o" ;;
|
|---|
| 2894 | esac
|
|---|
| 2895 | ;;
|
|---|
| 2896 |
|
|---|
| 2897 | mips)
|
|---|
| 2898 | echo ${extra_objects} | grep -s "itbl-parse.o"
|
|---|
| 2899 | if test $? -ne 0 ; then
|
|---|
| 2900 | extra_objects="$extra_objects itbl-parse.o"
|
|---|
| 2901 | fi
|
|---|
| 2902 |
|
|---|
| 2903 | echo ${extra_objects} | grep -s "itbl-lex.o"
|
|---|
| 2904 | if test $? -ne 0 ; then
|
|---|
| 2905 | extra_objects="$extra_objects itbl-lex.o"
|
|---|
| 2906 | fi
|
|---|
| 2907 |
|
|---|
| 2908 | echo ${extra_objects} | grep -s "itbl-ops.o"
|
|---|
| 2909 | if test $? -ne 0 ; then
|
|---|
| 2910 | extra_objects="$extra_objects itbl-ops.o"
|
|---|
| 2911 | fi
|
|---|
| 2912 | ;;
|
|---|
| 2913 |
|
|---|
| 2914 | i386 | s390 | sparc)
|
|---|
| 2915 | if test $this_target = $target ; then
|
|---|
| 2916 | cat >> confdefs.h <<EOF
|
|---|
| 2917 | #define DEFAULT_ARCH "${arch}"
|
|---|
| 2918 | EOF
|
|---|
| 2919 |
|
|---|
| 2920 | fi
|
|---|
| 2921 | ;;
|
|---|
| 2922 |
|
|---|
| 2923 | xstormy16)
|
|---|
| 2924 | using_cgen=yes
|
|---|
| 2925 | ;;
|
|---|
| 2926 |
|
|---|
| 2927 | xtensa)
|
|---|
| 2928 | echo ${extra_objects} | grep -s "xtensa-relax.o"
|
|---|
| 2929 | if test $? -ne 0 ; then
|
|---|
| 2930 | extra_objects="$extra_objects xtensa-relax.o"
|
|---|
| 2931 | fi
|
|---|
| 2932 | ;;
|
|---|
| 2933 |
|
|---|
| 2934 | *)
|
|---|
| 2935 | ;;
|
|---|
| 2936 | esac
|
|---|
| 2937 |
|
|---|
| 2938 | if test $using_cgen = yes ; then
|
|---|
| 2939 | case "x${extra_objects}" in
|
|---|
| 2940 | *cgen.o*) ;;
|
|---|
| 2941 | *) extra_objects="$extra_objects cgen.o" ;;
|
|---|
| 2942 | esac
|
|---|
| 2943 | fi
|
|---|
| 2944 |
|
|---|
| 2945 | # See if we really can support this configuration with the emulation code.
|
|---|
| 2946 |
|
|---|
| 2947 | if test $this_target = $target ; then
|
|---|
| 2948 | primary_bfd_gas=$bfd_gas
|
|---|
| 2949 | obj_format=$fmt
|
|---|
| 2950 | te_file=$em
|
|---|
| 2951 |
|
|---|
| 2952 | if test $bfd_gas = no ; then
|
|---|
| 2953 | # Can't support other configurations this way.
|
|---|
| 2954 | break
|
|---|
| 2955 | fi
|
|---|
| 2956 | elif test $bfd_gas = no ; then
|
|---|
| 2957 | # Can't support this configuration.
|
|---|
| 2958 | break
|
|---|
| 2959 | fi
|
|---|
| 2960 |
|
|---|
| 2961 | # From target name and format, produce a list of supported emulations.
|
|---|
| 2962 |
|
|---|
| 2963 | case ${generic_target}-${fmt} in
|
|---|
| 2964 | mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
|
|---|
| 2965 | mips*-*-linux*-*) case "$endian" in
|
|---|
| 2966 | big) emulation="mipsbelf mipslelf mipself" ;;
|
|---|
| 2967 | *) emulation="mipslelf mipsbelf mipself" ;;
|
|---|
| 2968 | esac ;;
|
|---|
| 2969 | mips-*-lnews*-ecoff) ;;
|
|---|
| 2970 | mips-*-*-ecoff) case "$endian" in
|
|---|
| 2971 | big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
|
|---|
| 2972 | *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
|
|---|
| 2973 | esac ;;
|
|---|
| 2974 | mips-*-*-elf) case "$endian" in
|
|---|
| 2975 | big) emulation="mipsbelf mipslelf mipself" ;;
|
|---|
| 2976 | *) emulation="mipslelf mipsbelf mipself" ;;
|
|---|
| 2977 | esac ;;
|
|---|
| 2978 | mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
|
|---|
| 2979 | # i386-pc-pe-coff != i386-pc-coff.
|
|---|
| 2980 | i386-*-pe-coff) ;;
|
|---|
| 2981 | # Uncommenting the next line will turn on support for i386 AOUT
|
|---|
| 2982 | # for the default linux configuration
|
|---|
| 2983 | # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
|
|---|
| 2984 | #
|
|---|
| 2985 | i386-*-aout) emulation="i386aout" ;;
|
|---|
| 2986 | i386-*-coff) emulation="i386coff" ;;
|
|---|
| 2987 | i386-*-elf) emulation="i386elf" ;;
|
|---|
| 2988 |
|
|---|
| 2989 | # Always all formats. The first stated emulation becomes the default.
|
|---|
| 2990 | cris-*-*aout*) emulation="crisaout criself" ;;
|
|---|
| 2991 | cris-*-*) emulation="criself crisaout" ;;
|
|---|
| 2992 | esac
|
|---|
| 2993 |
|
|---|
| 2994 | emulations="$emulations $emulation"
|
|---|
| 2995 |
|
|---|
| 2996 | done
|
|---|
| 2997 |
|
|---|
| 2998 | # Turn on all targets if possible
|
|---|
| 2999 | if test ${all_targets} = "yes"; then
|
|---|
| 3000 | case ${target_cpu_type} in
|
|---|
| 3001 | i386)
|
|---|
| 3002 | case ${obj_format} in
|
|---|
| 3003 | aout)
|
|---|
| 3004 | emulations="$emulations i386coff i386elf"
|
|---|
| 3005 | ;;
|
|---|
| 3006 | coff)
|
|---|
| 3007 | emulations="$emulations i386aout i386elf"
|
|---|
| 3008 | ;;
|
|---|
| 3009 | elf)
|
|---|
| 3010 | emulations="$emulations i386aout i386coff"
|
|---|
| 3011 | ;;
|
|---|
| 3012 | esac
|
|---|
| 3013 | ;;
|
|---|
| 3014 | esac
|
|---|
| 3015 | fi
|
|---|
| 3016 |
|
|---|
| 3017 | # Assign floating point type. Most processors with FP support
|
|---|
| 3018 | # IEEE FP. On those that don't support FP at all, usually IEEE
|
|---|
| 3019 | # is emulated.
|
|---|
| 3020 | case ${target_cpu} in
|
|---|
| 3021 | vax | tahoe ) atof=${target_cpu} ;;
|
|---|
| 3022 | pdp11) atof=vax ;;
|
|---|
| 3023 | *) atof=ieee ;;
|
|---|
| 3024 | esac
|
|---|
| 3025 |
|
|---|
| 3026 | case "${obj_format}" in
|
|---|
| 3027 | "") { echo "configure: error: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;;
|
|---|
| 3028 | esac
|
|---|
| 3029 |
|
|---|
| 3030 | # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
|
|---|
| 3031 | cgen_cpu_prefix=""
|
|---|
| 3032 | if test $using_cgen = yes ; then
|
|---|
| 3033 | case ${target_cpu} in
|
|---|
| 3034 | *) cgen_cpu_prefix=${target_cpu} ;;
|
|---|
| 3035 | esac
|
|---|
| 3036 |
|
|---|
| 3037 | cat >> confdefs.h <<\EOF
|
|---|
| 3038 | #define USING_CGEN 1
|
|---|
| 3039 | EOF
|
|---|
| 3040 |
|
|---|
| 3041 | fi
|
|---|
| 3042 |
|
|---|
| 3043 |
|
|---|
| 3044 | if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
|
|---|
| 3045 | { echo "configure: error: GAS does not support target CPU ${target_cpu_type}" 1>&2; exit 1; }
|
|---|
| 3046 | fi
|
|---|
| 3047 |
|
|---|
| 3048 | if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
|
|---|
| 3049 | { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; }
|
|---|
| 3050 | fi
|
|---|
| 3051 |
|
|---|
| 3052 | case ${user_bfd_gas}-${primary_bfd_gas} in
|
|---|
| 3053 | yes-yes | no-no)
|
|---|
| 3054 | # We didn't override user's choice.
|
|---|
| 3055 | ;;
|
|---|
| 3056 | no-yes)
|
|---|
| 3057 | echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2
|
|---|
| 3058 | ;;
|
|---|
| 3059 | no-preferred)
|
|---|
| 3060 | primary_bfd_gas=no
|
|---|
| 3061 | ;;
|
|---|
| 3062 | *-preferred)
|
|---|
| 3063 | primary_bfd_gas=yes
|
|---|
| 3064 | ;;
|
|---|
| 3065 | yes-*)
|
|---|
| 3066 | primary_bfd_gas=yes
|
|---|
| 3067 | ;;
|
|---|
| 3068 | -*)
|
|---|
| 3069 | # User specified nothing.
|
|---|
| 3070 | ;;
|
|---|
| 3071 | esac
|
|---|
| 3072 |
|
|---|
| 3073 | # Some COFF configurations want these random other flags set.
|
|---|
| 3074 | case ${obj_format} in
|
|---|
| 3075 | coff)
|
|---|
| 3076 | case ${target_cpu_type} in
|
|---|
| 3077 | i386) cat >> confdefs.h <<\EOF
|
|---|
| 3078 | #define I386COFF 1
|
|---|
| 3079 | EOF
|
|---|
| 3080 | ;;
|
|---|
| 3081 | m68k) cat >> confdefs.h <<\EOF
|
|---|
| 3082 | #define M68KCOFF 1
|
|---|
| 3083 | EOF
|
|---|
| 3084 | ;;
|
|---|
| 3085 | m88k) cat >> confdefs.h <<\EOF
|
|---|
| 3086 | #define M88KCOFF 1
|
|---|
| 3087 | EOF
|
|---|
| 3088 | ;;
|
|---|
| 3089 | esac
|
|---|
| 3090 | ;;
|
|---|
| 3091 | esac
|
|---|
| 3092 |
|
|---|
| 3093 | # Getting this done right is going to be a bitch. Each configuration specified
|
|---|
| 3094 | # with --enable-targets=... should be checked for environment, format, cpu, and
|
|---|
| 3095 | # bfd_gas setting.
|
|---|
| 3096 | #
|
|---|
| 3097 | # For each configuration, the necessary object file support code must be linked
|
|---|
| 3098 | # in. This might be only one, it might be up to four. The necessary emulation
|
|---|
| 3099 | # code needs to be provided, too.
|
|---|
| 3100 | #
|
|---|
| 3101 | # And then there's "--enable-targets=all"....
|
|---|
| 3102 | #
|
|---|
| 3103 | # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
|
|---|
| 3104 |
|
|---|
| 3105 | formats="${obj_format}"
|
|---|
| 3106 | emfiles=""
|
|---|
| 3107 | EMULATIONS=""
|
|---|
| 3108 | _gas_uniq_list="$emulations"
|
|---|
| 3109 | _gas_uniq_newlist=""
|
|---|
| 3110 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
|
|---|
| 3111 | case $_gas_uniq_i in
|
|---|
| 3112 | _gas_uniq_dummy) ;;
|
|---|
| 3113 | *) case " $_gas_uniq_newlist " in
|
|---|
| 3114 | *" $_gas_uniq_i "*) ;;
|
|---|
| 3115 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
|
|---|
| 3116 | esac ;;
|
|---|
| 3117 | esac
|
|---|
| 3118 | done
|
|---|
| 3119 | emulations=$_gas_uniq_newlist
|
|---|
| 3120 |
|
|---|
| 3121 | for em in . $emulations ; do
|
|---|
| 3122 | case $em in
|
|---|
| 3123 | .) continue ;;
|
|---|
| 3124 | mipsbelf | mipslelf | mipself)
|
|---|
| 3125 | fmt=elf file=mipself ;;
|
|---|
| 3126 | mipsbecoff | mipslecoff | mipsecoff)
|
|---|
| 3127 | fmt=ecoff file=mipsecoff ;;
|
|---|
| 3128 | *coff)
|
|---|
| 3129 | fmt=coff file=$em ;;
|
|---|
| 3130 | *aout)
|
|---|
| 3131 | fmt=aout file=$em ;;
|
|---|
| 3132 | *elf)
|
|---|
| 3133 | fmt=elf file=$em ;;
|
|---|
| 3134 | esac
|
|---|
| 3135 | formats="$formats $fmt"
|
|---|
| 3136 | emfiles="$emfiles e-$file.o"
|
|---|
| 3137 | EMULATIONS="$EMULATIONS &$em,"
|
|---|
| 3138 | done
|
|---|
| 3139 | _gas_uniq_list="$formats"
|
|---|
| 3140 | _gas_uniq_newlist=""
|
|---|
| 3141 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
|
|---|
| 3142 | case $_gas_uniq_i in
|
|---|
| 3143 | _gas_uniq_dummy) ;;
|
|---|
| 3144 | *) case " $_gas_uniq_newlist " in
|
|---|
| 3145 | *" $_gas_uniq_i "*) ;;
|
|---|
| 3146 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
|
|---|
| 3147 | esac ;;
|
|---|
| 3148 | esac
|
|---|
| 3149 | done
|
|---|
| 3150 | formats=$_gas_uniq_newlist
|
|---|
| 3151 |
|
|---|
| 3152 | _gas_uniq_list="$emfiles"
|
|---|
| 3153 | _gas_uniq_newlist=""
|
|---|
| 3154 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
|
|---|
| 3155 | case $_gas_uniq_i in
|
|---|
| 3156 | _gas_uniq_dummy) ;;
|
|---|
| 3157 | *) case " $_gas_uniq_newlist " in
|
|---|
| 3158 | *" $_gas_uniq_i "*) ;;
|
|---|
| 3159 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
|
|---|
| 3160 | esac ;;
|
|---|
| 3161 | esac
|
|---|
| 3162 | done
|
|---|
| 3163 | emfiles=$_gas_uniq_newlist
|
|---|
| 3164 |
|
|---|
| 3165 | if test `set . $formats ; shift ; echo $#` -gt 1 ; then
|
|---|
| 3166 | for fmt in $formats ; do
|
|---|
| 3167 | case $fmt in
|
|---|
| 3168 | aout) cat >> confdefs.h <<\EOF
|
|---|
| 3169 | #define OBJ_MAYBE_AOUT 1
|
|---|
| 3170 | EOF
|
|---|
| 3171 | ;;
|
|---|
| 3172 | bout) cat >> confdefs.h <<\EOF
|
|---|
| 3173 | #define OBJ_MAYBE_BOUT 1
|
|---|
| 3174 | EOF
|
|---|
| 3175 | ;;
|
|---|
| 3176 | coff) cat >> confdefs.h <<\EOF
|
|---|
| 3177 | #define OBJ_MAYBE_COFF 1
|
|---|
| 3178 | EOF
|
|---|
| 3179 | ;;
|
|---|
| 3180 | ecoff) cat >> confdefs.h <<\EOF
|
|---|
| 3181 | #define OBJ_MAYBE_ECOFF 1
|
|---|
| 3182 | EOF
|
|---|
| 3183 | ;;
|
|---|
| 3184 | elf) cat >> confdefs.h <<\EOF
|
|---|
| 3185 | #define OBJ_MAYBE_ELF 1
|
|---|
| 3186 | EOF
|
|---|
| 3187 | ;;
|
|---|
| 3188 | generic) cat >> confdefs.h <<\EOF
|
|---|
| 3189 | #define OBJ_MAYBE_GENERIC 1
|
|---|
| 3190 | EOF
|
|---|
| 3191 | ;;
|
|---|
| 3192 | hp300) cat >> confdefs.h <<\EOF
|
|---|
| 3193 | #define OBJ_MAYBE_HP300 1
|
|---|
| 3194 | EOF
|
|---|
| 3195 | ;;
|
|---|
| 3196 | ieee) cat >> confdefs.h <<\EOF
|
|---|
| 3197 | #define OBJ_MAYBE_IEEE 1
|
|---|
| 3198 | EOF
|
|---|
| 3199 | ;;
|
|---|
| 3200 | som) cat >> confdefs.h <<\EOF
|
|---|
| 3201 | #define OBJ_MAYBE_SOM 1
|
|---|
| 3202 | EOF
|
|---|
| 3203 | ;;
|
|---|
| 3204 | vms) cat >> confdefs.h <<\EOF
|
|---|
| 3205 | #define OBJ_MAYBE_VMS 1
|
|---|
| 3206 | EOF
|
|---|
| 3207 | ;;
|
|---|
| 3208 | esac
|
|---|
| 3209 | extra_objects="$extra_objects obj-$fmt.o"
|
|---|
| 3210 | done
|
|---|
| 3211 | obj_format=multi
|
|---|
| 3212 | fi
|
|---|
| 3213 | if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
|
|---|
| 3214 | DEFAULT_EMULATION=`set . $emulations ; echo $2`
|
|---|
| 3215 | # e-mips* has more than one emulation per file, e-i386* has just one at the
|
|---|
| 3216 | # moment. If only one emulation is specified, then don't define
|
|---|
| 3217 | # USE_EMULATIONS or include any of the e-files as they will only be bloat.
|
|---|
| 3218 | case "${obj_format}${emfiles}" in
|
|---|
| 3219 | multi* | *mips*)
|
|---|
| 3220 | extra_objects="$extra_objects $emfiles"
|
|---|
| 3221 | cat >> confdefs.h <<\EOF
|
|---|
| 3222 | #define USE_EMULATIONS 1
|
|---|
| 3223 | EOF
|
|---|
| 3224 | ;;
|
|---|
| 3225 | esac
|
|---|
| 3226 | fi
|
|---|
| 3227 |
|
|---|
| 3228 | cat >> confdefs.h <<EOF
|
|---|
| 3229 | #define EMULATIONS $EMULATIONS
|
|---|
| 3230 | EOF
|
|---|
| 3231 |
|
|---|
| 3232 | cat >> confdefs.h <<EOF
|
|---|
| 3233 | #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
|
|---|
| 3234 | EOF
|
|---|
| 3235 |
|
|---|
| 3236 |
|
|---|
| 3237 | case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
|
|---|
| 3238 | yes-*-coff) need_bfd=yes ;;
|
|---|
| 3239 | no-*-coff) need_bfd=yes
|
|---|
| 3240 | cat >> confdefs.h <<\EOF
|
|---|
| 3241 | #define MANY_SEGMENTS 1
|
|---|
| 3242 | EOF
|
|---|
| 3243 | ;;
|
|---|
| 3244 | esac
|
|---|
| 3245 |
|
|---|
| 3246 | reject_dev_configs=yes
|
|---|
| 3247 |
|
|---|
| 3248 | case ${reject_dev_configs}-${dev} in
|
|---|
| 3249 | yes-yes) # Oops.
|
|---|
| 3250 | { echo "configure: error: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; }
|
|---|
| 3251 | ;;
|
|---|
| 3252 | esac
|
|---|
| 3253 |
|
|---|
| 3254 |
|
|---|
| 3255 |
|
|---|
| 3256 |
|
|---|
| 3257 |
|
|---|
| 3258 |
|
|---|
| 3259 |
|
|---|
| 3260 | case "${primary_bfd_gas}" in
|
|---|
| 3261 | yes) cat >> confdefs.h <<\EOF
|
|---|
| 3262 | #define BFD_ASSEMBLER 1
|
|---|
| 3263 | EOF
|
|---|
| 3264 |
|
|---|
| 3265 | need_bfd=yes ;;
|
|---|
| 3266 | esac
|
|---|
| 3267 |
|
|---|
| 3268 | # do we need the opcodes library?
|
|---|
| 3269 | case "${need_opcodes}" in
|
|---|
| 3270 | yes)
|
|---|
| 3271 | OPCODES_LIB=../opcodes/libopcodes.la
|
|---|
| 3272 | ;;
|
|---|
| 3273 | esac
|
|---|
| 3274 |
|
|---|
| 3275 | case "${need_bfd}" in
|
|---|
| 3276 | yes)
|
|---|
| 3277 | BFDLIB=../bfd/libbfd.la
|
|---|
| 3278 | BFDVER_H=../bfd/bfdver.h
|
|---|
| 3279 | ALL_OBJ_DEPS="$ALL_OBJ_DEPS"' ../bfd/bfd.h $(INCDIR)/symcat.h'
|
|---|
| 3280 | ;;
|
|---|
| 3281 | esac
|
|---|
| 3282 |
|
|---|
| 3283 |
|
|---|
| 3284 |
|
|---|
| 3285 |
|
|---|
| 3286 |
|
|---|
| 3287 |
|
|---|
| 3288 |
|
|---|
| 3289 | cat >> confdefs.h <<EOF
|
|---|
| 3290 | #define TARGET_ALIAS "${target_alias}"
|
|---|
| 3291 | EOF
|
|---|
| 3292 |
|
|---|
| 3293 | cat >> confdefs.h <<EOF
|
|---|
| 3294 | #define TARGET_CANONICAL "${target}"
|
|---|
| 3295 | EOF
|
|---|
| 3296 |
|
|---|
| 3297 | cat >> confdefs.h <<EOF
|
|---|
| 3298 | #define TARGET_CPU "${target_cpu}"
|
|---|
| 3299 | EOF
|
|---|
| 3300 |
|
|---|
| 3301 | cat >> confdefs.h <<EOF
|
|---|
| 3302 | #define TARGET_VENDOR "${target_vendor}"
|
|---|
| 3303 | EOF
|
|---|
| 3304 |
|
|---|
| 3305 | cat >> confdefs.h <<EOF
|
|---|
| 3306 | #define TARGET_OS "${target_os}"
|
|---|
| 3307 | EOF
|
|---|
| 3308 |
|
|---|
| 3309 |
|
|---|
| 3310 | # Extract the first word of "gcc", so it can be a program name with args.
|
|---|
| 3311 | set dummy gcc; ac_word=$2
|
|---|
| 3312 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 3313 | echo "configure:3314: checking for $ac_word" >&5
|
|---|
| 3314 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 3315 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3316 | else
|
|---|
| 3317 | if test -n "$CC"; then
|
|---|
| 3318 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 3319 | else
|
|---|
| 3320 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 3321 | ac_dummy="$PATH"
|
|---|
| 3322 | for ac_dir in $ac_dummy; do
|
|---|
| 3323 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 3324 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 3325 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 3326 | ac_cv_prog_CC="gcc"
|
|---|
| 3327 | break
|
|---|
| 3328 | fi
|
|---|
| 3329 | done
|
|---|
| 3330 | IFS="$ac_save_ifs"
|
|---|
| 3331 | fi
|
|---|
| 3332 | fi
|
|---|
| 3333 | CC="$ac_cv_prog_CC"
|
|---|
| 3334 | if test -n "$CC"; then
|
|---|
| 3335 | echo "$ac_t""$CC" 1>&6
|
|---|
| 3336 | else
|
|---|
| 3337 | echo "$ac_t""no" 1>&6
|
|---|
| 3338 | fi
|
|---|
| 3339 |
|
|---|
| 3340 | if test -z "$CC"; then
|
|---|
| 3341 | # Extract the first word of "cc", so it can be a program name with args.
|
|---|
| 3342 | set dummy cc; ac_word=$2
|
|---|
| 3343 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 3344 | echo "configure:3345: checking for $ac_word" >&5
|
|---|
| 3345 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 3346 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3347 | else
|
|---|
| 3348 | if test -n "$CC"; then
|
|---|
| 3349 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 3350 | else
|
|---|
| 3351 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 3352 | ac_prog_rejected=no
|
|---|
| 3353 | ac_dummy="$PATH"
|
|---|
| 3354 | for ac_dir in $ac_dummy; do
|
|---|
| 3355 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 3356 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 3357 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 3358 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
|
|---|
| 3359 | "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
|
|---|
| 3360 | ac_prog_rejected=yes
|
|---|
| 3361 | continue
|
|---|
| 3362 | fi
|
|---|
| 3363 | ac_cv_prog_CC="cc"
|
|---|
| 3364 | break
|
|---|
| 3365 | fi
|
|---|
| 3366 | done
|
|---|
| 3367 | IFS="$ac_save_ifs"
|
|---|
| 3368 | if test $ac_prog_rejected = yes; then
|
|---|
| 3369 | # We found a bogon in the path, so make sure we never use it.
|
|---|
| 3370 | set dummy $ac_cv_prog_CC
|
|---|
| 3371 | shift
|
|---|
| 3372 | if test $# -gt 0; then
|
|---|
| 3373 | # We chose a different compiler from the bogus one.
|
|---|
| 3374 | # However, it has the same basename, so the bogon will be chosen
|
|---|
| 3375 | # first if we set CC to just the basename; use the full file name.
|
|---|
| 3376 | shift
|
|---|
| 3377 | set dummy "$ac_dir/$ac_word" "$@"
|
|---|
| 3378 | shift
|
|---|
| 3379 | ac_cv_prog_CC="$@"
|
|---|
| 3380 | fi
|
|---|
| 3381 | fi
|
|---|
| 3382 | fi
|
|---|
| 3383 | fi
|
|---|
| 3384 | CC="$ac_cv_prog_CC"
|
|---|
| 3385 | if test -n "$CC"; then
|
|---|
| 3386 | echo "$ac_t""$CC" 1>&6
|
|---|
| 3387 | else
|
|---|
| 3388 | echo "$ac_t""no" 1>&6
|
|---|
| 3389 | fi
|
|---|
| 3390 |
|
|---|
| 3391 | if test -z "$CC"; then
|
|---|
| 3392 | case "`uname -s`" in
|
|---|
| 3393 | *win32* | *WIN32*)
|
|---|
| 3394 | # Extract the first word of "cl", so it can be a program name with args.
|
|---|
| 3395 | set dummy cl; ac_word=$2
|
|---|
| 3396 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 3397 | echo "configure:3398: checking for $ac_word" >&5
|
|---|
| 3398 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 3399 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3400 | else
|
|---|
| 3401 | if test -n "$CC"; then
|
|---|
| 3402 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 3403 | else
|
|---|
| 3404 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 3405 | ac_dummy="$PATH"
|
|---|
| 3406 | for ac_dir in $ac_dummy; do
|
|---|
| 3407 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 3408 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 3409 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 3410 | ac_cv_prog_CC="cl"
|
|---|
| 3411 | break
|
|---|
| 3412 | fi
|
|---|
| 3413 | done
|
|---|
| 3414 | IFS="$ac_save_ifs"
|
|---|
| 3415 | fi
|
|---|
| 3416 | fi
|
|---|
| 3417 | CC="$ac_cv_prog_CC"
|
|---|
| 3418 | if test -n "$CC"; then
|
|---|
| 3419 | echo "$ac_t""$CC" 1>&6
|
|---|
| 3420 | else
|
|---|
| 3421 | echo "$ac_t""no" 1>&6
|
|---|
| 3422 | fi
|
|---|
| 3423 | ;;
|
|---|
| 3424 | esac
|
|---|
| 3425 | fi
|
|---|
| 3426 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|---|
| 3427 | fi
|
|---|
| 3428 |
|
|---|
| 3429 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|---|
| 3430 | echo "configure:3431: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
|---|
| 3431 |
|
|---|
| 3432 | ac_ext=c
|
|---|
| 3433 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 3434 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 3435 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 3436 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 3437 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 3438 |
|
|---|
| 3439 | cat > conftest.$ac_ext << EOF
|
|---|
| 3440 |
|
|---|
| 3441 | #line 3442 "configure"
|
|---|
| 3442 | #include "confdefs.h"
|
|---|
| 3443 |
|
|---|
| 3444 | main(){return(0);}
|
|---|
| 3445 | EOF
|
|---|
| 3446 | if { (eval echo configure:3447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3447 | ac_cv_prog_cc_works=yes
|
|---|
| 3448 | # If we can't run a trivial program, we are probably using a cross compiler.
|
|---|
| 3449 | if (./conftest; exit) 2>/dev/null; then
|
|---|
| 3450 | ac_cv_prog_cc_cross=no
|
|---|
| 3451 | else
|
|---|
| 3452 | ac_cv_prog_cc_cross=yes
|
|---|
| 3453 | fi
|
|---|
| 3454 | else
|
|---|
| 3455 | echo "configure: failed program was:" >&5
|
|---|
| 3456 | cat conftest.$ac_ext >&5
|
|---|
| 3457 | ac_cv_prog_cc_works=no
|
|---|
| 3458 | fi
|
|---|
| 3459 | rm -fr conftest*
|
|---|
| 3460 | ac_ext=c
|
|---|
| 3461 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 3462 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 3463 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 3464 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 3465 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 3466 |
|
|---|
| 3467 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|---|
| 3468 | if test $ac_cv_prog_cc_works = no; then
|
|---|
| 3469 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 3470 | fi
|
|---|
| 3471 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|---|
| 3472 | echo "configure:3473: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|---|
| 3473 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|---|
| 3474 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 3475 |
|
|---|
| 3476 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
|---|
| 3477 | echo "configure:3478: checking whether we are using GNU C" >&5
|
|---|
| 3478 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
|---|
| 3479 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3480 | else
|
|---|
| 3481 | cat > conftest.c <<EOF
|
|---|
| 3482 | #ifdef __GNUC__
|
|---|
| 3483 | yes;
|
|---|
| 3484 | #endif
|
|---|
| 3485 | EOF
|
|---|
| 3486 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|---|
| 3487 | ac_cv_prog_gcc=yes
|
|---|
| 3488 | else
|
|---|
| 3489 | ac_cv_prog_gcc=no
|
|---|
| 3490 | fi
|
|---|
| 3491 | fi
|
|---|
| 3492 |
|
|---|
| 3493 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|---|
| 3494 |
|
|---|
| 3495 | if test $ac_cv_prog_gcc = yes; then
|
|---|
| 3496 | GCC=yes
|
|---|
| 3497 | else
|
|---|
| 3498 | GCC=
|
|---|
| 3499 | fi
|
|---|
| 3500 |
|
|---|
| 3501 | ac_test_CFLAGS="${CFLAGS+set}"
|
|---|
| 3502 | ac_save_CFLAGS="$CFLAGS"
|
|---|
| 3503 | CFLAGS=
|
|---|
| 3504 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|---|
| 3505 | echo "configure:3506: checking whether ${CC-cc} accepts -g" >&5
|
|---|
| 3506 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
|---|
| 3507 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3508 | else
|
|---|
| 3509 | echo 'void f(){}' > conftest.c
|
|---|
| 3510 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|---|
| 3511 | ac_cv_prog_cc_g=yes
|
|---|
| 3512 | else
|
|---|
| 3513 | ac_cv_prog_cc_g=no
|
|---|
| 3514 | fi
|
|---|
| 3515 | rm -f conftest*
|
|---|
| 3516 |
|
|---|
| 3517 | fi
|
|---|
| 3518 |
|
|---|
| 3519 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|---|
| 3520 | if test "$ac_test_CFLAGS" = set; then
|
|---|
| 3521 | CFLAGS="$ac_save_CFLAGS"
|
|---|
| 3522 | elif test $ac_cv_prog_cc_g = yes; then
|
|---|
| 3523 | if test "$GCC" = yes; then
|
|---|
| 3524 | CFLAGS="-g -O2"
|
|---|
| 3525 | else
|
|---|
| 3526 | CFLAGS="-g"
|
|---|
| 3527 | fi
|
|---|
| 3528 | else
|
|---|
| 3529 | if test "$GCC" = yes; then
|
|---|
| 3530 | CFLAGS="-O2"
|
|---|
| 3531 | else
|
|---|
| 3532 | CFLAGS=
|
|---|
| 3533 | fi
|
|---|
| 3534 | fi
|
|---|
| 3535 |
|
|---|
| 3536 |
|
|---|
| 3537 | for ac_prog in 'bison -y' byacc
|
|---|
| 3538 | do
|
|---|
| 3539 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|---|
| 3540 | set dummy $ac_prog; ac_word=$2
|
|---|
| 3541 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 3542 | echo "configure:3543: checking for $ac_word" >&5
|
|---|
| 3543 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
|
|---|
| 3544 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3545 | else
|
|---|
| 3546 | if test -n "$YACC"; then
|
|---|
| 3547 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
|---|
| 3548 | else
|
|---|
| 3549 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 3550 | ac_dummy="$PATH"
|
|---|
| 3551 | for ac_dir in $ac_dummy; do
|
|---|
| 3552 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 3553 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 3554 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 3555 | ac_cv_prog_YACC="$ac_prog"
|
|---|
| 3556 | break
|
|---|
| 3557 | fi
|
|---|
| 3558 | done
|
|---|
| 3559 | IFS="$ac_save_ifs"
|
|---|
| 3560 | fi
|
|---|
| 3561 | fi
|
|---|
| 3562 | YACC="$ac_cv_prog_YACC"
|
|---|
| 3563 | if test -n "$YACC"; then
|
|---|
| 3564 | echo "$ac_t""$YACC" 1>&6
|
|---|
| 3565 | else
|
|---|
| 3566 | echo "$ac_t""no" 1>&6
|
|---|
| 3567 | fi
|
|---|
| 3568 |
|
|---|
| 3569 | test -n "$YACC" && break
|
|---|
| 3570 | done
|
|---|
| 3571 | test -n "$YACC" || YACC="yacc"
|
|---|
| 3572 |
|
|---|
| 3573 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
|---|
| 3574 | echo "configure:3575: checking how to run the C preprocessor" >&5
|
|---|
| 3575 | # On Suns, sometimes $CPP names a directory.
|
|---|
| 3576 | if test -n "$CPP" && test -d "$CPP"; then
|
|---|
| 3577 | CPP=
|
|---|
| 3578 | fi
|
|---|
| 3579 | if test -z "$CPP"; then
|
|---|
| 3580 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
|---|
| 3581 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3582 | else
|
|---|
| 3583 | # This must be in double quotes, not single quotes, because CPP may get
|
|---|
| 3584 | # substituted into the Makefile and "${CC-cc}" will confuse make.
|
|---|
| 3585 | CPP="${CC-cc} -E"
|
|---|
| 3586 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
|---|
| 3587 | # not just through cpp.
|
|---|
| 3588 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3589 | #include <sys/types.h>
|
|---|
| 3590 | #line 3591 "configure"
|
|---|
| 3591 | #include "confdefs.h"
|
|---|
| 3592 | #include <assert.h>
|
|---|
| 3593 | Syntax Error
|
|---|
| 3594 | EOF
|
|---|
| 3595 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 3596 | { (eval echo configure:3597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 3597 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 3598 | if test -z "$ac_err"; then
|
|---|
| 3599 | :
|
|---|
| 3600 | else
|
|---|
| 3601 | echo "$ac_err" >&5
|
|---|
| 3602 | echo "configure: failed program was:" >&5
|
|---|
| 3603 | cat conftest.$ac_ext >&5
|
|---|
| 3604 | rm -rf conftest*
|
|---|
| 3605 | CPP="${CC-cc} -E -traditional-cpp"
|
|---|
| 3606 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3607 | #include <sys/types.h>
|
|---|
| 3608 | #line 3609 "configure"
|
|---|
| 3609 | #include "confdefs.h"
|
|---|
| 3610 | #include <assert.h>
|
|---|
| 3611 | Syntax Error
|
|---|
| 3612 | EOF
|
|---|
| 3613 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 3614 | { (eval echo configure:3615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 3615 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 3616 | if test -z "$ac_err"; then
|
|---|
| 3617 | :
|
|---|
| 3618 | else
|
|---|
| 3619 | echo "$ac_err" >&5
|
|---|
| 3620 | echo "configure: failed program was:" >&5
|
|---|
| 3621 | cat conftest.$ac_ext >&5
|
|---|
| 3622 | rm -rf conftest*
|
|---|
| 3623 | CPP="${CC-cc} -nologo -E"
|
|---|
| 3624 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3625 | #include <sys/types.h>
|
|---|
| 3626 | #line 3627 "configure"
|
|---|
| 3627 | #include "confdefs.h"
|
|---|
| 3628 | #include <assert.h>
|
|---|
| 3629 | Syntax Error
|
|---|
| 3630 | EOF
|
|---|
| 3631 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 3632 | { (eval echo configure:3633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 3633 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 3634 | if test -z "$ac_err"; then
|
|---|
| 3635 | :
|
|---|
| 3636 | else
|
|---|
| 3637 | echo "$ac_err" >&5
|
|---|
| 3638 | echo "configure: failed program was:" >&5
|
|---|
| 3639 | cat conftest.$ac_ext >&5
|
|---|
| 3640 | rm -rf conftest*
|
|---|
| 3641 | CPP=/lib/cpp
|
|---|
| 3642 | fi
|
|---|
| 3643 | rm -f conftest*
|
|---|
| 3644 | fi
|
|---|
| 3645 | rm -f conftest*
|
|---|
| 3646 | fi
|
|---|
| 3647 | rm -f conftest*
|
|---|
| 3648 | ac_cv_prog_CPP="$CPP"
|
|---|
| 3649 | fi
|
|---|
| 3650 | CPP="$ac_cv_prog_CPP"
|
|---|
| 3651 | else
|
|---|
| 3652 | ac_cv_prog_CPP="$CPP"
|
|---|
| 3653 | fi
|
|---|
| 3654 | echo "$ac_t""$CPP" 1>&6
|
|---|
| 3655 |
|
|---|
| 3656 | missing_dir=`cd $ac_aux_dir && pwd`
|
|---|
| 3657 | for ac_prog in flex lex
|
|---|
| 3658 | do
|
|---|
| 3659 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|---|
| 3660 | set dummy $ac_prog; ac_word=$2
|
|---|
| 3661 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 3662 | echo "configure:3663: checking for $ac_word" >&5
|
|---|
| 3663 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
|
|---|
| 3664 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3665 | else
|
|---|
| 3666 | if test -n "$LEX"; then
|
|---|
| 3667 | ac_cv_prog_LEX="$LEX" # Let the user override the test.
|
|---|
| 3668 | else
|
|---|
| 3669 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 3670 | ac_dummy="$PATH"
|
|---|
| 3671 | for ac_dir in $ac_dummy; do
|
|---|
| 3672 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 3673 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 3674 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 3675 | ac_cv_prog_LEX="$ac_prog"
|
|---|
| 3676 | break
|
|---|
| 3677 | fi
|
|---|
| 3678 | done
|
|---|
| 3679 | IFS="$ac_save_ifs"
|
|---|
| 3680 | fi
|
|---|
| 3681 | fi
|
|---|
| 3682 | LEX="$ac_cv_prog_LEX"
|
|---|
| 3683 | if test -n "$LEX"; then
|
|---|
| 3684 | echo "$ac_t""$LEX" 1>&6
|
|---|
| 3685 | else
|
|---|
| 3686 | echo "$ac_t""no" 1>&6
|
|---|
| 3687 | fi
|
|---|
| 3688 |
|
|---|
| 3689 | test -n "$LEX" && break
|
|---|
| 3690 | done
|
|---|
| 3691 | test -n "$LEX" || LEX=""$missing_dir/missing flex""
|
|---|
| 3692 |
|
|---|
| 3693 | # Extract the first word of "flex", so it can be a program name with args.
|
|---|
| 3694 | set dummy flex; ac_word=$2
|
|---|
| 3695 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 3696 | echo "configure:3697: checking for $ac_word" >&5
|
|---|
| 3697 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
|
|---|
| 3698 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3699 | else
|
|---|
| 3700 | if test -n "$LEX"; then
|
|---|
| 3701 | ac_cv_prog_LEX="$LEX" # Let the user override the test.
|
|---|
| 3702 | else
|
|---|
| 3703 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 3704 | ac_dummy="$PATH"
|
|---|
| 3705 | for ac_dir in $ac_dummy; do
|
|---|
| 3706 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 3707 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 3708 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 3709 | ac_cv_prog_LEX="flex"
|
|---|
| 3710 | break
|
|---|
| 3711 | fi
|
|---|
| 3712 | done
|
|---|
| 3713 | IFS="$ac_save_ifs"
|
|---|
| 3714 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
|
|---|
| 3715 | fi
|
|---|
| 3716 | fi
|
|---|
| 3717 | LEX="$ac_cv_prog_LEX"
|
|---|
| 3718 | if test -n "$LEX"; then
|
|---|
| 3719 | echo "$ac_t""$LEX" 1>&6
|
|---|
| 3720 | else
|
|---|
| 3721 | echo "$ac_t""no" 1>&6
|
|---|
| 3722 | fi
|
|---|
| 3723 |
|
|---|
| 3724 | if test -z "$LEXLIB"
|
|---|
| 3725 | then
|
|---|
| 3726 | case "$LEX" in
|
|---|
| 3727 | flex*) ac_lib=fl ;;
|
|---|
| 3728 | *) ac_lib=l ;;
|
|---|
| 3729 | esac
|
|---|
| 3730 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
|
|---|
| 3731 | echo "configure:3732: checking for yywrap in -l$ac_lib" >&5
|
|---|
| 3732 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
|
|---|
| 3733 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 3734 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3735 | else
|
|---|
| 3736 | ac_save_LIBS="$LIBS"
|
|---|
| 3737 | LIBS="-l$ac_lib $LIBS"
|
|---|
| 3738 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3739 | #line 3740 "configure"
|
|---|
| 3740 | #include "confdefs.h"
|
|---|
| 3741 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3742 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3743 | builtin and then its argument prototype would still apply. */
|
|---|
| 3744 | char yywrap();
|
|---|
| 3745 |
|
|---|
| 3746 | int main() {
|
|---|
| 3747 | yywrap()
|
|---|
| 3748 | ; return 0; }
|
|---|
| 3749 | EOF
|
|---|
| 3750 | if { (eval echo configure:3751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3751 | rm -rf conftest*
|
|---|
| 3752 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 3753 | else
|
|---|
| 3754 | echo "configure: failed program was:" >&5
|
|---|
| 3755 | cat conftest.$ac_ext >&5
|
|---|
| 3756 | rm -rf conftest*
|
|---|
| 3757 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 3758 | fi
|
|---|
| 3759 | rm -f conftest*
|
|---|
| 3760 | LIBS="$ac_save_LIBS"
|
|---|
| 3761 |
|
|---|
| 3762 | fi
|
|---|
| 3763 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 3764 | echo "$ac_t""yes" 1>&6
|
|---|
| 3765 | LEXLIB="-l$ac_lib"
|
|---|
| 3766 | else
|
|---|
| 3767 | echo "$ac_t""no" 1>&6
|
|---|
| 3768 | fi
|
|---|
| 3769 |
|
|---|
| 3770 | fi
|
|---|
| 3771 |
|
|---|
| 3772 | echo $ac_n "checking lex output file root""... $ac_c" 1>&6
|
|---|
| 3773 | echo "configure:3774: checking lex output file root" >&5
|
|---|
| 3774 | if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
|
|---|
| 3775 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3776 | else
|
|---|
| 3777 | # The minimal lex program is just a single line: %%. But some broken lexes
|
|---|
| 3778 | # (Solaris, I think it was) want two %% lines, so accommodate them.
|
|---|
| 3779 | echo '%%
|
|---|
| 3780 | %%' | $LEX
|
|---|
| 3781 | if test -f lex.yy.c; then
|
|---|
| 3782 | ac_cv_prog_lex_root=lex.yy
|
|---|
| 3783 | elif test -f lexyy.c; then
|
|---|
| 3784 | ac_cv_prog_lex_root=lexyy
|
|---|
| 3785 | else
|
|---|
| 3786 | { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
|
|---|
| 3787 | fi
|
|---|
| 3788 | fi
|
|---|
| 3789 |
|
|---|
| 3790 | echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
|
|---|
| 3791 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
|
|---|
| 3792 |
|
|---|
| 3793 | echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
|
|---|
| 3794 | echo "configure:3795: checking whether yytext is a pointer" >&5
|
|---|
| 3795 | if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
|
|---|
| 3796 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3797 | else
|
|---|
| 3798 | # POSIX says lex can declare yytext either as a pointer or an array; the
|
|---|
| 3799 | # default is implementation-dependent. Figure out which it is, since
|
|---|
| 3800 | # not all implementations provide the %pointer and %array declarations.
|
|---|
| 3801 | ac_cv_prog_lex_yytext_pointer=no
|
|---|
| 3802 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
|
|---|
| 3803 | ac_save_LIBS="$LIBS"
|
|---|
| 3804 | LIBS="$LIBS $LEXLIB"
|
|---|
| 3805 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3806 | #line 3807 "configure"
|
|---|
| 3807 | #include "confdefs.h"
|
|---|
| 3808 | `cat $LEX_OUTPUT_ROOT.c`
|
|---|
| 3809 | int main() {
|
|---|
| 3810 |
|
|---|
| 3811 | ; return 0; }
|
|---|
| 3812 | EOF
|
|---|
| 3813 | if { (eval echo configure:3814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3814 | rm -rf conftest*
|
|---|
| 3815 | ac_cv_prog_lex_yytext_pointer=yes
|
|---|
| 3816 | else
|
|---|
| 3817 | echo "configure: failed program was:" >&5
|
|---|
| 3818 | cat conftest.$ac_ext >&5
|
|---|
| 3819 | fi
|
|---|
| 3820 | rm -f conftest*
|
|---|
| 3821 | LIBS="$ac_save_LIBS"
|
|---|
| 3822 | rm -f "${LEX_OUTPUT_ROOT}.c"
|
|---|
| 3823 |
|
|---|
| 3824 | fi
|
|---|
| 3825 |
|
|---|
| 3826 | echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
|
|---|
| 3827 | if test $ac_cv_prog_lex_yytext_pointer = yes; then
|
|---|
| 3828 | cat >> confdefs.h <<\EOF
|
|---|
| 3829 | #define YYTEXT_POINTER 1
|
|---|
| 3830 | EOF
|
|---|
| 3831 |
|
|---|
| 3832 | fi
|
|---|
| 3833 |
|
|---|
| 3834 |
|
|---|
| 3835 | ALL_LINGUAS="fr tr es"
|
|---|
| 3836 | # Extract the first word of "ranlib", so it can be a program name with args.
|
|---|
| 3837 | set dummy ranlib; ac_word=$2
|
|---|
| 3838 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 3839 | echo "configure:3840: checking for $ac_word" >&5
|
|---|
| 3840 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 3841 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3842 | else
|
|---|
| 3843 | if test -n "$RANLIB"; then
|
|---|
| 3844 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 3845 | else
|
|---|
| 3846 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 3847 | ac_dummy="$PATH"
|
|---|
| 3848 | for ac_dir in $ac_dummy; do
|
|---|
| 3849 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 3850 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 3851 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 3852 | ac_cv_prog_RANLIB="ranlib"
|
|---|
| 3853 | break
|
|---|
| 3854 | fi
|
|---|
| 3855 | done
|
|---|
| 3856 | IFS="$ac_save_ifs"
|
|---|
| 3857 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|---|
| 3858 | fi
|
|---|
| 3859 | fi
|
|---|
| 3860 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 3861 | if test -n "$RANLIB"; then
|
|---|
| 3862 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 3863 | else
|
|---|
| 3864 | echo "$ac_t""no" 1>&6
|
|---|
| 3865 | fi
|
|---|
| 3866 |
|
|---|
| 3867 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
|---|
| 3868 | echo "configure:3869: checking for ANSI C header files" >&5
|
|---|
| 3869 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
|---|
| 3870 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3871 | else
|
|---|
| 3872 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3873 | #include <sys/types.h>
|
|---|
| 3874 | #line 3875 "configure"
|
|---|
| 3875 | #include "confdefs.h"
|
|---|
| 3876 | #include <stdlib.h>
|
|---|
| 3877 | #include <stdarg.h>
|
|---|
| 3878 | #include <string.h>
|
|---|
| 3879 | #include <float.h>
|
|---|
| 3880 | EOF
|
|---|
| 3881 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 3882 | { (eval echo configure:3883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 3883 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 3884 | if test -z "$ac_err"; then
|
|---|
| 3885 | rm -rf conftest*
|
|---|
| 3886 | ac_cv_header_stdc=yes
|
|---|
| 3887 | else
|
|---|
| 3888 | echo "$ac_err" >&5
|
|---|
| 3889 | echo "configure: failed program was:" >&5
|
|---|
| 3890 | cat conftest.$ac_ext >&5
|
|---|
| 3891 | rm -rf conftest*
|
|---|
| 3892 | ac_cv_header_stdc=no
|
|---|
| 3893 | fi
|
|---|
| 3894 | rm -f conftest*
|
|---|
| 3895 |
|
|---|
| 3896 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 3897 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|---|
| 3898 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3899 | #line 3900 "configure"
|
|---|
| 3900 | #include "confdefs.h"
|
|---|
| 3901 | #include <string.h>
|
|---|
| 3902 | EOF
|
|---|
| 3903 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 3904 | egrep "memchr" >/dev/null 2>&1; then
|
|---|
| 3905 | :
|
|---|
| 3906 | else
|
|---|
| 3907 | rm -rf conftest*
|
|---|
| 3908 | ac_cv_header_stdc=no
|
|---|
| 3909 | fi
|
|---|
| 3910 | rm -f conftest*
|
|---|
| 3911 |
|
|---|
| 3912 | fi
|
|---|
| 3913 |
|
|---|
| 3914 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 3915 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|---|
| 3916 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3917 | #line 3918 "configure"
|
|---|
| 3918 | #include "confdefs.h"
|
|---|
| 3919 | #include <stdlib.h>
|
|---|
| 3920 | EOF
|
|---|
| 3921 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 3922 | egrep "free" >/dev/null 2>&1; then
|
|---|
| 3923 | :
|
|---|
| 3924 | else
|
|---|
| 3925 | rm -rf conftest*
|
|---|
| 3926 | ac_cv_header_stdc=no
|
|---|
| 3927 | fi
|
|---|
| 3928 | rm -f conftest*
|
|---|
| 3929 |
|
|---|
| 3930 | fi
|
|---|
| 3931 |
|
|---|
| 3932 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 3933 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|---|
| 3934 | if test "$cross_compiling" = yes; then
|
|---|
| 3935 | :
|
|---|
| 3936 | else
|
|---|
| 3937 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3938 | #line 3939 "configure"
|
|---|
| 3939 | #include "confdefs.h"
|
|---|
| 3940 | #include <ctype.h>
|
|---|
| 3941 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|---|
| 3942 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|---|
| 3943 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|---|
| 3944 | int main () { int i; for (i = 0; i < 256; i++)
|
|---|
| 3945 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
|---|
| 3946 | exit (0); }
|
|---|
| 3947 |
|
|---|
| 3948 | EOF
|
|---|
| 3949 | if { (eval echo configure:3950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|---|
| 3950 | then
|
|---|
| 3951 | :
|
|---|
| 3952 | else
|
|---|
| 3953 | echo "configure: failed program was:" >&5
|
|---|
| 3954 | cat conftest.$ac_ext >&5
|
|---|
| 3955 | rm -fr conftest*
|
|---|
| 3956 | ac_cv_header_stdc=no
|
|---|
| 3957 | fi
|
|---|
| 3958 | rm -fr conftest*
|
|---|
| 3959 | fi
|
|---|
| 3960 |
|
|---|
| 3961 | fi
|
|---|
| 3962 | fi
|
|---|
| 3963 |
|
|---|
| 3964 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
|---|
| 3965 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 3966 | cat >> confdefs.h <<\EOF
|
|---|
| 3967 | #define STDC_HEADERS 1
|
|---|
| 3968 | EOF
|
|---|
| 3969 |
|
|---|
| 3970 | fi
|
|---|
| 3971 |
|
|---|
| 3972 | echo $ac_n "checking for working const""... $ac_c" 1>&6
|
|---|
| 3973 | echo "configure:3974: checking for working const" >&5
|
|---|
| 3974 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
|
|---|
| 3975 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3976 | else
|
|---|
| 3977 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3978 | #line 3979 "configure"
|
|---|
| 3979 | #include "confdefs.h"
|
|---|
| 3980 |
|
|---|
| 3981 | int main() {
|
|---|
| 3982 |
|
|---|
| 3983 | /* Ultrix mips cc rejects this. */
|
|---|
| 3984 | typedef int charset[2]; const charset x;
|
|---|
| 3985 | /* SunOS 4.1.1 cc rejects this. */
|
|---|
| 3986 | char const *const *ccp;
|
|---|
| 3987 | char **p;
|
|---|
| 3988 | /* NEC SVR4.0.2 mips cc rejects this. */
|
|---|
| 3989 | struct point {int x, y;};
|
|---|
| 3990 | static struct point const zero = {0,0};
|
|---|
| 3991 | /* AIX XL C 1.02.0.0 rejects this.
|
|---|
| 3992 | It does not let you subtract one const X* pointer from another in an arm
|
|---|
| 3993 | of an if-expression whose if-part is not a constant expression */
|
|---|
| 3994 | const char *g = "string";
|
|---|
| 3995 | ccp = &g + (g ? g-g : 0);
|
|---|
| 3996 | /* HPUX 7.0 cc rejects these. */
|
|---|
| 3997 | ++ccp;
|
|---|
| 3998 | p = (char**) ccp;
|
|---|
| 3999 | ccp = (char const *const *) p;
|
|---|
| 4000 | { /* SCO 3.2v4 cc rejects this. */
|
|---|
| 4001 | char *t;
|
|---|
| 4002 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
|---|
| 4003 |
|
|---|
| 4004 | *t++ = 0;
|
|---|
| 4005 | }
|
|---|
| 4006 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
|---|
| 4007 | int x[] = {25, 17};
|
|---|
| 4008 | const int *foo = &x[0];
|
|---|
| 4009 | ++foo;
|
|---|
| 4010 | }
|
|---|
| 4011 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
|---|
| 4012 | typedef const int *iptr;
|
|---|
| 4013 | iptr p = 0;
|
|---|
| 4014 | ++p;
|
|---|
| 4015 | }
|
|---|
| 4016 | { /* AIX XL C 1.02.0.0 rejects this saying
|
|---|
| 4017 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
|---|
| 4018 | struct s { int j; const int *ap[3]; };
|
|---|
| 4019 | struct s *b; b->j = 5;
|
|---|
| 4020 | }
|
|---|
| 4021 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
|---|
| 4022 | const int foo = 10;
|
|---|
| 4023 | }
|
|---|
| 4024 |
|
|---|
| 4025 | ; return 0; }
|
|---|
| 4026 | EOF
|
|---|
| 4027 | if { (eval echo configure:4028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 4028 | rm -rf conftest*
|
|---|
| 4029 | ac_cv_c_const=yes
|
|---|
| 4030 | else
|
|---|
| 4031 | echo "configure: failed program was:" >&5
|
|---|
| 4032 | cat conftest.$ac_ext >&5
|
|---|
| 4033 | rm -rf conftest*
|
|---|
| 4034 | ac_cv_c_const=no
|
|---|
| 4035 | fi
|
|---|
| 4036 | rm -f conftest*
|
|---|
| 4037 | fi
|
|---|
| 4038 |
|
|---|
| 4039 | echo "$ac_t""$ac_cv_c_const" 1>&6
|
|---|
| 4040 | if test $ac_cv_c_const = no; then
|
|---|
| 4041 | cat >> confdefs.h <<\EOF
|
|---|
| 4042 | #define const
|
|---|
| 4043 | EOF
|
|---|
| 4044 |
|
|---|
| 4045 | fi
|
|---|
| 4046 |
|
|---|
| 4047 | echo $ac_n "checking for inline""... $ac_c" 1>&6
|
|---|
| 4048 | echo "configure:4049: checking for inline" >&5
|
|---|
| 4049 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
|
|---|
| 4050 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4051 | else
|
|---|
| 4052 | ac_cv_c_inline=no
|
|---|
| 4053 | for ac_kw in inline __inline__ __inline; do
|
|---|
| 4054 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4055 | #line 4056 "configure"
|
|---|
| 4056 | #include "confdefs.h"
|
|---|
| 4057 |
|
|---|
| 4058 | int main() {
|
|---|
| 4059 | } $ac_kw foo() {
|
|---|
| 4060 | ; return 0; }
|
|---|
| 4061 | EOF
|
|---|
| 4062 | if { (eval echo configure:4063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 4063 | rm -rf conftest*
|
|---|
| 4064 | ac_cv_c_inline=$ac_kw; break
|
|---|
| 4065 | else
|
|---|
| 4066 | echo "configure: failed program was:" >&5
|
|---|
| 4067 | cat conftest.$ac_ext >&5
|
|---|
| 4068 | fi
|
|---|
| 4069 | rm -f conftest*
|
|---|
| 4070 | done
|
|---|
| 4071 |
|
|---|
| 4072 | fi
|
|---|
| 4073 |
|
|---|
| 4074 | echo "$ac_t""$ac_cv_c_inline" 1>&6
|
|---|
| 4075 | case "$ac_cv_c_inline" in
|
|---|
| 4076 | inline | yes) ;;
|
|---|
| 4077 | no) cat >> confdefs.h <<\EOF
|
|---|
| 4078 | #define inline
|
|---|
| 4079 | EOF
|
|---|
| 4080 | ;;
|
|---|
| 4081 | *) cat >> confdefs.h <<EOF
|
|---|
| 4082 | #define inline $ac_cv_c_inline
|
|---|
| 4083 | EOF
|
|---|
| 4084 | ;;
|
|---|
| 4085 | esac
|
|---|
| 4086 |
|
|---|
| 4087 | echo $ac_n "checking for off_t""... $ac_c" 1>&6
|
|---|
| 4088 | echo "configure:4089: checking for off_t" >&5
|
|---|
| 4089 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
|
|---|
| 4090 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4091 | else
|
|---|
| 4092 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4093 | #line 4094 "configure"
|
|---|
| 4094 | #include "confdefs.h"
|
|---|
| 4095 | #include <sys/types.h>
|
|---|
| 4096 | #if STDC_HEADERS
|
|---|
| 4097 | #include <stdlib.h>
|
|---|
| 4098 | #include <stddef.h>
|
|---|
| 4099 | #endif
|
|---|
| 4100 | EOF
|
|---|
| 4101 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 4102 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|---|
| 4103 | rm -rf conftest*
|
|---|
| 4104 | ac_cv_type_off_t=yes
|
|---|
| 4105 | else
|
|---|
| 4106 | rm -rf conftest*
|
|---|
| 4107 | ac_cv_type_off_t=no
|
|---|
| 4108 | fi
|
|---|
| 4109 | rm -f conftest*
|
|---|
| 4110 |
|
|---|
| 4111 | fi
|
|---|
| 4112 | echo "$ac_t""$ac_cv_type_off_t" 1>&6
|
|---|
| 4113 | if test $ac_cv_type_off_t = no; then
|
|---|
| 4114 | cat >> confdefs.h <<\EOF
|
|---|
| 4115 | #define off_t long
|
|---|
| 4116 | EOF
|
|---|
| 4117 |
|
|---|
| 4118 | fi
|
|---|
| 4119 |
|
|---|
| 4120 | echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
|---|
| 4121 | echo "configure:4122: checking for size_t" >&5
|
|---|
| 4122 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
|
|---|
| 4123 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4124 | else
|
|---|
| 4125 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4126 | #line 4127 "configure"
|
|---|
| 4127 | #include "confdefs.h"
|
|---|
| 4128 | #include <sys/types.h>
|
|---|
| 4129 | #if STDC_HEADERS
|
|---|
| 4130 | #include <stdlib.h>
|
|---|
| 4131 | #include <stddef.h>
|
|---|
| 4132 | #endif
|
|---|
| 4133 | EOF
|
|---|
| 4134 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 4135 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|---|
| 4136 | rm -rf conftest*
|
|---|
| 4137 | ac_cv_type_size_t=yes
|
|---|
| 4138 | else
|
|---|
| 4139 | rm -rf conftest*
|
|---|
| 4140 | ac_cv_type_size_t=no
|
|---|
| 4141 | fi
|
|---|
| 4142 | rm -f conftest*
|
|---|
| 4143 |
|
|---|
| 4144 | fi
|
|---|
| 4145 | echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
|---|
| 4146 | if test $ac_cv_type_size_t = no; then
|
|---|
| 4147 | cat >> confdefs.h <<\EOF
|
|---|
| 4148 | #define size_t unsigned
|
|---|
| 4149 | EOF
|
|---|
| 4150 |
|
|---|
| 4151 | fi
|
|---|
| 4152 |
|
|---|
| 4153 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
|---|
| 4154 | # for constant arguments. Useless!
|
|---|
| 4155 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
|---|
| 4156 | echo "configure:4157: checking for working alloca.h" >&5
|
|---|
| 4157 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
|
|---|
| 4158 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4159 | else
|
|---|
| 4160 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4161 | #line 4162 "configure"
|
|---|
| 4162 | #include "confdefs.h"
|
|---|
| 4163 | #include <alloca.h>
|
|---|
| 4164 | int main() {
|
|---|
| 4165 | char *p = alloca(2 * sizeof(int));
|
|---|
| 4166 | ; return 0; }
|
|---|
| 4167 | EOF
|
|---|
| 4168 | if { (eval echo configure:4169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4169 | rm -rf conftest*
|
|---|
| 4170 | ac_cv_header_alloca_h=yes
|
|---|
| 4171 | else
|
|---|
| 4172 | echo "configure: failed program was:" >&5
|
|---|
| 4173 | cat conftest.$ac_ext >&5
|
|---|
| 4174 | rm -rf conftest*
|
|---|
| 4175 | ac_cv_header_alloca_h=no
|
|---|
| 4176 | fi
|
|---|
| 4177 | rm -f conftest*
|
|---|
| 4178 | fi
|
|---|
| 4179 |
|
|---|
| 4180 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
|---|
| 4181 | if test $ac_cv_header_alloca_h = yes; then
|
|---|
| 4182 | cat >> confdefs.h <<\EOF
|
|---|
| 4183 | #define HAVE_ALLOCA_H 1
|
|---|
| 4184 | EOF
|
|---|
| 4185 |
|
|---|
| 4186 | fi
|
|---|
| 4187 |
|
|---|
| 4188 | echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
|---|
| 4189 | echo "configure:4190: checking for alloca" >&5
|
|---|
| 4190 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
|
|---|
| 4191 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4192 | else
|
|---|
| 4193 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4194 | #line 4195 "configure"
|
|---|
| 4195 | #include "confdefs.h"
|
|---|
| 4196 |
|
|---|
| 4197 | #ifdef __GNUC__
|
|---|
| 4198 | # define alloca __builtin_alloca
|
|---|
| 4199 | #else
|
|---|
| 4200 | # ifdef _MSC_VER
|
|---|
| 4201 | # include <malloc.h>
|
|---|
| 4202 | # define alloca _alloca
|
|---|
| 4203 | # else
|
|---|
| 4204 | # if HAVE_ALLOCA_H
|
|---|
| 4205 | # include <alloca.h>
|
|---|
| 4206 | # else
|
|---|
| 4207 | # ifdef _AIX
|
|---|
| 4208 | #pragma alloca
|
|---|
| 4209 | # else
|
|---|
| 4210 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
|---|
| 4211 | char *alloca ();
|
|---|
| 4212 | # endif
|
|---|
| 4213 | # endif
|
|---|
| 4214 | # endif
|
|---|
| 4215 | # endif
|
|---|
| 4216 | #endif
|
|---|
| 4217 |
|
|---|
| 4218 | int main() {
|
|---|
| 4219 | char *p = (char *) alloca(1);
|
|---|
| 4220 | ; return 0; }
|
|---|
| 4221 | EOF
|
|---|
| 4222 | if { (eval echo configure:4223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4223 | rm -rf conftest*
|
|---|
| 4224 | ac_cv_func_alloca_works=yes
|
|---|
| 4225 | else
|
|---|
| 4226 | echo "configure: failed program was:" >&5
|
|---|
| 4227 | cat conftest.$ac_ext >&5
|
|---|
| 4228 | rm -rf conftest*
|
|---|
| 4229 | ac_cv_func_alloca_works=no
|
|---|
| 4230 | fi
|
|---|
| 4231 | rm -f conftest*
|
|---|
| 4232 | fi
|
|---|
| 4233 |
|
|---|
| 4234 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
|---|
| 4235 | if test $ac_cv_func_alloca_works = yes; then
|
|---|
| 4236 | cat >> confdefs.h <<\EOF
|
|---|
| 4237 | #define HAVE_ALLOCA 1
|
|---|
| 4238 | EOF
|
|---|
| 4239 |
|
|---|
| 4240 | fi
|
|---|
| 4241 |
|
|---|
| 4242 | if test $ac_cv_func_alloca_works = no; then
|
|---|
| 4243 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
|---|
| 4244 | # that cause trouble. Some versions do not even contain alloca or
|
|---|
| 4245 | # contain a buggy version. If you still want to use their alloca,
|
|---|
| 4246 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
|---|
| 4247 | ALLOCA=alloca.${ac_objext}
|
|---|
| 4248 | cat >> confdefs.h <<\EOF
|
|---|
| 4249 | #define C_ALLOCA 1
|
|---|
| 4250 | EOF
|
|---|
| 4251 |
|
|---|
| 4252 |
|
|---|
| 4253 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
|---|
| 4254 | echo "configure:4255: checking whether alloca needs Cray hooks" >&5
|
|---|
| 4255 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
|
|---|
| 4256 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4257 | else
|
|---|
| 4258 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4259 | #line 4260 "configure"
|
|---|
| 4260 | #include "confdefs.h"
|
|---|
| 4261 | #if defined(CRAY) && ! defined(CRAY2)
|
|---|
| 4262 | webecray
|
|---|
| 4263 | #else
|
|---|
| 4264 | wenotbecray
|
|---|
| 4265 | #endif
|
|---|
| 4266 |
|
|---|
| 4267 | EOF
|
|---|
| 4268 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 4269 | egrep "webecray" >/dev/null 2>&1; then
|
|---|
| 4270 | rm -rf conftest*
|
|---|
| 4271 | ac_cv_os_cray=yes
|
|---|
| 4272 | else
|
|---|
| 4273 | rm -rf conftest*
|
|---|
| 4274 | ac_cv_os_cray=no
|
|---|
| 4275 | fi
|
|---|
| 4276 | rm -f conftest*
|
|---|
| 4277 |
|
|---|
| 4278 | fi
|
|---|
| 4279 |
|
|---|
| 4280 | echo "$ac_t""$ac_cv_os_cray" 1>&6
|
|---|
| 4281 | if test $ac_cv_os_cray = yes; then
|
|---|
| 4282 | for ac_func in _getb67 GETB67 getb67; do
|
|---|
| 4283 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 4284 | echo "configure:4285: checking for $ac_func" >&5
|
|---|
| 4285 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 4286 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4287 | else
|
|---|
| 4288 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4289 | #line 4290 "configure"
|
|---|
| 4290 | #include "confdefs.h"
|
|---|
| 4291 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 4292 | which can conflict with char $ac_func(); below. */
|
|---|
| 4293 | #include <assert.h>
|
|---|
| 4294 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 4295 | /* We use char because int might match the return type of a gcc2
|
|---|
| 4296 | builtin and then its argument prototype would still apply. */
|
|---|
| 4297 | char $ac_func();
|
|---|
| 4298 |
|
|---|
| 4299 | int main() {
|
|---|
| 4300 |
|
|---|
| 4301 | /* The GNU C library defines this for functions which it implements
|
|---|
| 4302 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 4303 | something starting with __ and the normal name is an alias. */
|
|---|
| 4304 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 4305 | choke me
|
|---|
| 4306 | #else
|
|---|
| 4307 | $ac_func();
|
|---|
| 4308 | #endif
|
|---|
| 4309 |
|
|---|
| 4310 | ; return 0; }
|
|---|
| 4311 | EOF
|
|---|
| 4312 | if { (eval echo configure:4313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4313 | rm -rf conftest*
|
|---|
| 4314 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 4315 | else
|
|---|
| 4316 | echo "configure: failed program was:" >&5
|
|---|
| 4317 | cat conftest.$ac_ext >&5
|
|---|
| 4318 | rm -rf conftest*
|
|---|
| 4319 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 4320 | fi
|
|---|
| 4321 | rm -f conftest*
|
|---|
| 4322 | fi
|
|---|
| 4323 |
|
|---|
| 4324 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 4325 | echo "$ac_t""yes" 1>&6
|
|---|
| 4326 | cat >> confdefs.h <<EOF
|
|---|
| 4327 | #define CRAY_STACKSEG_END $ac_func
|
|---|
| 4328 | EOF
|
|---|
| 4329 |
|
|---|
| 4330 | break
|
|---|
| 4331 | else
|
|---|
| 4332 | echo "$ac_t""no" 1>&6
|
|---|
| 4333 | fi
|
|---|
| 4334 |
|
|---|
| 4335 | done
|
|---|
| 4336 | fi
|
|---|
| 4337 |
|
|---|
| 4338 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
|---|
| 4339 | echo "configure:4340: checking stack direction for C alloca" >&5
|
|---|
| 4340 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
|
|---|
| 4341 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4342 | else
|
|---|
| 4343 | if test "$cross_compiling" = yes; then
|
|---|
| 4344 | ac_cv_c_stack_direction=0
|
|---|
| 4345 | else
|
|---|
| 4346 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4347 | #line 4348 "configure"
|
|---|
| 4348 | #include "confdefs.h"
|
|---|
| 4349 | find_stack_direction ()
|
|---|
| 4350 | {
|
|---|
| 4351 | static char *addr = 0;
|
|---|
| 4352 | auto char dummy;
|
|---|
| 4353 | if (addr == 0)
|
|---|
| 4354 | {
|
|---|
| 4355 | addr = &dummy;
|
|---|
| 4356 | return find_stack_direction ();
|
|---|
| 4357 | }
|
|---|
| 4358 | else
|
|---|
| 4359 | return (&dummy > addr) ? 1 : -1;
|
|---|
| 4360 | }
|
|---|
| 4361 | main ()
|
|---|
| 4362 | {
|
|---|
| 4363 | exit (find_stack_direction() < 0);
|
|---|
| 4364 | }
|
|---|
| 4365 | EOF
|
|---|
| 4366 | if { (eval echo configure:4367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|---|
| 4367 | then
|
|---|
| 4368 | ac_cv_c_stack_direction=1
|
|---|
| 4369 | else
|
|---|
| 4370 | echo "configure: failed program was:" >&5
|
|---|
| 4371 | cat conftest.$ac_ext >&5
|
|---|
| 4372 | rm -fr conftest*
|
|---|
| 4373 | ac_cv_c_stack_direction=-1
|
|---|
| 4374 | fi
|
|---|
| 4375 | rm -fr conftest*
|
|---|
| 4376 | fi
|
|---|
| 4377 |
|
|---|
| 4378 | fi
|
|---|
| 4379 |
|
|---|
| 4380 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
|---|
| 4381 | cat >> confdefs.h <<EOF
|
|---|
| 4382 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
|---|
| 4383 | EOF
|
|---|
| 4384 |
|
|---|
| 4385 | fi
|
|---|
| 4386 |
|
|---|
| 4387 | for ac_hdr in unistd.h
|
|---|
| 4388 | do
|
|---|
| 4389 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|---|
| 4390 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|---|
| 4391 | echo "configure:4392: checking for $ac_hdr" >&5
|
|---|
| 4392 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 4393 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4394 | else
|
|---|
| 4395 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4396 | #include <sys/types.h>
|
|---|
| 4397 | #line 4398 "configure"
|
|---|
| 4398 | #include "confdefs.h"
|
|---|
| 4399 | #include <$ac_hdr>
|
|---|
| 4400 | EOF
|
|---|
| 4401 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 4402 | { (eval echo configure:4403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 4403 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 4404 | if test -z "$ac_err"; then
|
|---|
| 4405 | rm -rf conftest*
|
|---|
| 4406 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 4407 | else
|
|---|
| 4408 | echo "$ac_err" >&5
|
|---|
| 4409 | echo "configure: failed program was:" >&5
|
|---|
| 4410 | cat conftest.$ac_ext >&5
|
|---|
| 4411 | rm -rf conftest*
|
|---|
| 4412 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 4413 | fi
|
|---|
| 4414 | rm -f conftest*
|
|---|
| 4415 | fi
|
|---|
| 4416 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 4417 | echo "$ac_t""yes" 1>&6
|
|---|
| 4418 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|---|
| 4419 | cat >> confdefs.h <<EOF
|
|---|
| 4420 | #define $ac_tr_hdr 1
|
|---|
| 4421 | EOF
|
|---|
| 4422 |
|
|---|
| 4423 | else
|
|---|
| 4424 | echo "$ac_t""no" 1>&6
|
|---|
| 4425 | fi
|
|---|
| 4426 | done
|
|---|
| 4427 |
|
|---|
| 4428 | for ac_func in getpagesize
|
|---|
| 4429 | do
|
|---|
| 4430 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 4431 | echo "configure:4432: checking for $ac_func" >&5
|
|---|
| 4432 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 4433 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4434 | else
|
|---|
| 4435 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4436 | #line 4437 "configure"
|
|---|
| 4437 | #include "confdefs.h"
|
|---|
| 4438 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 4439 | which can conflict with char $ac_func(); below. */
|
|---|
| 4440 | #include <assert.h>
|
|---|
| 4441 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 4442 | /* We use char because int might match the return type of a gcc2
|
|---|
| 4443 | builtin and then its argument prototype would still apply. */
|
|---|
| 4444 | char $ac_func();
|
|---|
| 4445 |
|
|---|
| 4446 | int main() {
|
|---|
| 4447 |
|
|---|
| 4448 | /* The GNU C library defines this for functions which it implements
|
|---|
| 4449 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 4450 | something starting with __ and the normal name is an alias. */
|
|---|
| 4451 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 4452 | choke me
|
|---|
| 4453 | #else
|
|---|
| 4454 | $ac_func();
|
|---|
| 4455 | #endif
|
|---|
| 4456 |
|
|---|
| 4457 | ; return 0; }
|
|---|
| 4458 | EOF
|
|---|
| 4459 | if { (eval echo configure:4460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4460 | rm -rf conftest*
|
|---|
| 4461 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 4462 | else
|
|---|
| 4463 | echo "configure: failed program was:" >&5
|
|---|
| 4464 | cat conftest.$ac_ext >&5
|
|---|
| 4465 | rm -rf conftest*
|
|---|
| 4466 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 4467 | fi
|
|---|
| 4468 | rm -f conftest*
|
|---|
| 4469 | fi
|
|---|
| 4470 |
|
|---|
| 4471 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 4472 | echo "$ac_t""yes" 1>&6
|
|---|
| 4473 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 4474 | cat >> confdefs.h <<EOF
|
|---|
| 4475 | #define $ac_tr_func 1
|
|---|
| 4476 | EOF
|
|---|
| 4477 |
|
|---|
| 4478 | else
|
|---|
| 4479 | echo "$ac_t""no" 1>&6
|
|---|
| 4480 | fi
|
|---|
| 4481 | done
|
|---|
| 4482 |
|
|---|
| 4483 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
|---|
| 4484 | echo "configure:4485: checking for working mmap" >&5
|
|---|
| 4485 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
|
|---|
| 4486 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4487 | else
|
|---|
| 4488 | if test "$cross_compiling" = yes; then
|
|---|
| 4489 | ac_cv_func_mmap_fixed_mapped=no
|
|---|
| 4490 | else
|
|---|
| 4491 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4492 | #line 4493 "configure"
|
|---|
| 4493 | #include "confdefs.h"
|
|---|
| 4494 |
|
|---|
| 4495 | /* Thanks to Mike Haertel and Jim Avera for this test.
|
|---|
| 4496 | Here is a matrix of mmap possibilities:
|
|---|
| 4497 | mmap private not fixed
|
|---|
| 4498 | mmap private fixed at somewhere currently unmapped
|
|---|
| 4499 | mmap private fixed at somewhere already mapped
|
|---|
| 4500 | mmap shared not fixed
|
|---|
| 4501 | mmap shared fixed at somewhere currently unmapped
|
|---|
| 4502 | mmap shared fixed at somewhere already mapped
|
|---|
| 4503 | For private mappings, we should verify that changes cannot be read()
|
|---|
| 4504 | back from the file, nor mmap's back from the file at a different
|
|---|
| 4505 | address. (There have been systems where private was not correctly
|
|---|
| 4506 | implemented like the infamous i386 svr4.0, and systems where the
|
|---|
| 4507 | VM page cache was not coherent with the filesystem buffer cache
|
|---|
| 4508 | like early versions of FreeBSD and possibly contemporary NetBSD.)
|
|---|
| 4509 | For shared mappings, we should conversely verify that changes get
|
|---|
| 4510 | propogated back to all the places they're supposed to be.
|
|---|
| 4511 |
|
|---|
| 4512 | Grep wants private fixed already mapped.
|
|---|
| 4513 | The main things grep needs to know about mmap are:
|
|---|
| 4514 | * does it exist and is it safe to write into the mmap'd area
|
|---|
| 4515 | * how to use it (BSD variants) */
|
|---|
| 4516 | #include <sys/types.h>
|
|---|
| 4517 | #include <fcntl.h>
|
|---|
| 4518 | #include <sys/mman.h>
|
|---|
| 4519 |
|
|---|
| 4520 | /* This mess was copied from the GNU getpagesize.h. */
|
|---|
| 4521 | #ifndef HAVE_GETPAGESIZE
|
|---|
| 4522 | # ifdef HAVE_UNISTD_H
|
|---|
| 4523 | # include <unistd.h>
|
|---|
| 4524 | # endif
|
|---|
| 4525 |
|
|---|
| 4526 | /* Assume that all systems that can run configure have sys/param.h. */
|
|---|
| 4527 | # ifndef HAVE_SYS_PARAM_H
|
|---|
| 4528 | # define HAVE_SYS_PARAM_H 1
|
|---|
| 4529 | # endif
|
|---|
| 4530 |
|
|---|
| 4531 | # ifdef _SC_PAGESIZE
|
|---|
| 4532 | # define getpagesize() sysconf(_SC_PAGESIZE)
|
|---|
| 4533 | # else /* no _SC_PAGESIZE */
|
|---|
| 4534 | # ifdef HAVE_SYS_PARAM_H
|
|---|
| 4535 | # include <sys/param.h>
|
|---|
| 4536 | # ifdef EXEC_PAGESIZE
|
|---|
| 4537 | # define getpagesize() EXEC_PAGESIZE
|
|---|
| 4538 | # else /* no EXEC_PAGESIZE */
|
|---|
| 4539 | # ifdef NBPG
|
|---|
| 4540 | # define getpagesize() NBPG * CLSIZE
|
|---|
| 4541 | # ifndef CLSIZE
|
|---|
| 4542 | # define CLSIZE 1
|
|---|
| 4543 | # endif /* no CLSIZE */
|
|---|
| 4544 | # else /* no NBPG */
|
|---|
| 4545 | # ifdef NBPC
|
|---|
| 4546 | # define getpagesize() NBPC
|
|---|
| 4547 | # else /* no NBPC */
|
|---|
| 4548 | # ifdef PAGESIZE
|
|---|
| 4549 | # define getpagesize() PAGESIZE
|
|---|
| 4550 | # endif /* PAGESIZE */
|
|---|
| 4551 | # endif /* no NBPC */
|
|---|
| 4552 | # endif /* no NBPG */
|
|---|
| 4553 | # endif /* no EXEC_PAGESIZE */
|
|---|
| 4554 | # else /* no HAVE_SYS_PARAM_H */
|
|---|
| 4555 | # define getpagesize() 8192 /* punt totally */
|
|---|
| 4556 | # endif /* no HAVE_SYS_PARAM_H */
|
|---|
| 4557 | # endif /* no _SC_PAGESIZE */
|
|---|
| 4558 |
|
|---|
| 4559 | #endif /* no HAVE_GETPAGESIZE */
|
|---|
| 4560 |
|
|---|
| 4561 | #ifdef __cplusplus
|
|---|
| 4562 | extern "C" { void *malloc(unsigned); }
|
|---|
| 4563 | #else
|
|---|
| 4564 | char *malloc();
|
|---|
| 4565 | #endif
|
|---|
| 4566 |
|
|---|
| 4567 | int
|
|---|
| 4568 | main()
|
|---|
| 4569 | {
|
|---|
| 4570 | char *data, *data2, *data3;
|
|---|
| 4571 | int i, pagesize;
|
|---|
| 4572 | int fd;
|
|---|
| 4573 |
|
|---|
| 4574 | pagesize = getpagesize();
|
|---|
| 4575 |
|
|---|
| 4576 | /*
|
|---|
| 4577 | * First, make a file with some known garbage in it.
|
|---|
| 4578 | */
|
|---|
| 4579 | data = malloc(pagesize);
|
|---|
| 4580 | if (!data)
|
|---|
| 4581 | exit(1);
|
|---|
| 4582 | for (i = 0; i < pagesize; ++i)
|
|---|
| 4583 | *(data + i) = rand();
|
|---|
| 4584 | umask(0);
|
|---|
| 4585 | fd = creat("conftestmmap", 0600);
|
|---|
| 4586 | if (fd < 0)
|
|---|
| 4587 | exit(1);
|
|---|
| 4588 | if (write(fd, data, pagesize) != pagesize)
|
|---|
| 4589 | exit(1);
|
|---|
| 4590 | close(fd);
|
|---|
| 4591 |
|
|---|
| 4592 | /*
|
|---|
| 4593 | * Next, try to mmap the file at a fixed address which
|
|---|
| 4594 | * already has something else allocated at it. If we can,
|
|---|
| 4595 | * also make sure that we see the same garbage.
|
|---|
| 4596 | */
|
|---|
| 4597 | fd = open("conftestmmap", O_RDWR);
|
|---|
| 4598 | if (fd < 0)
|
|---|
| 4599 | exit(1);
|
|---|
| 4600 | data2 = malloc(2 * pagesize);
|
|---|
| 4601 | if (!data2)
|
|---|
| 4602 | exit(1);
|
|---|
| 4603 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
|
|---|
| 4604 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
|
|---|
| 4605 | MAP_PRIVATE | MAP_FIXED, fd, 0L))
|
|---|
| 4606 | exit(1);
|
|---|
| 4607 | for (i = 0; i < pagesize; ++i)
|
|---|
| 4608 | if (*(data + i) != *(data2 + i))
|
|---|
| 4609 | exit(1);
|
|---|
| 4610 |
|
|---|
| 4611 | /*
|
|---|
| 4612 | * Finally, make sure that changes to the mapped area
|
|---|
| 4613 | * do not percolate back to the file as seen by read().
|
|---|
| 4614 | * (This is a bug on some variants of i386 svr4.0.)
|
|---|
| 4615 | */
|
|---|
| 4616 | for (i = 0; i < pagesize; ++i)
|
|---|
| 4617 | *(data2 + i) = *(data2 + i) + 1;
|
|---|
| 4618 | data3 = malloc(pagesize);
|
|---|
| 4619 | if (!data3)
|
|---|
| 4620 | exit(1);
|
|---|
| 4621 | if (read(fd, data3, pagesize) != pagesize)
|
|---|
| 4622 | exit(1);
|
|---|
| 4623 | for (i = 0; i < pagesize; ++i)
|
|---|
| 4624 | if (*(data + i) != *(data3 + i))
|
|---|
| 4625 | exit(1);
|
|---|
| 4626 | close(fd);
|
|---|
| 4627 | unlink("conftestmmap");
|
|---|
| 4628 | exit(0);
|
|---|
| 4629 | }
|
|---|
| 4630 |
|
|---|
| 4631 | EOF
|
|---|
| 4632 | if { (eval echo configure:4633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|---|
| 4633 | then
|
|---|
| 4634 | ac_cv_func_mmap_fixed_mapped=yes
|
|---|
| 4635 | else
|
|---|
| 4636 | echo "configure: failed program was:" >&5
|
|---|
| 4637 | cat conftest.$ac_ext >&5
|
|---|
| 4638 | rm -fr conftest*
|
|---|
| 4639 | ac_cv_func_mmap_fixed_mapped=no
|
|---|
| 4640 | fi
|
|---|
| 4641 | rm -fr conftest*
|
|---|
| 4642 | fi
|
|---|
| 4643 |
|
|---|
| 4644 | fi
|
|---|
| 4645 |
|
|---|
| 4646 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
|
|---|
| 4647 | if test $ac_cv_func_mmap_fixed_mapped = yes; then
|
|---|
| 4648 | cat >> confdefs.h <<\EOF
|
|---|
| 4649 | #define HAVE_MMAP 1
|
|---|
| 4650 | EOF
|
|---|
| 4651 |
|
|---|
| 4652 | fi
|
|---|
| 4653 |
|
|---|
| 4654 |
|
|---|
| 4655 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
|
|---|
| 4656 | unistd.h values.h sys/param.h
|
|---|
| 4657 | do
|
|---|
| 4658 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|---|
| 4659 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|---|
| 4660 | echo "configure:4661: checking for $ac_hdr" >&5
|
|---|
| 4661 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 4662 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4663 | else
|
|---|
| 4664 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4665 | #include <sys/types.h>
|
|---|
| 4666 | #line 4667 "configure"
|
|---|
| 4667 | #include "confdefs.h"
|
|---|
| 4668 | #include <$ac_hdr>
|
|---|
| 4669 | EOF
|
|---|
| 4670 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 4671 | { (eval echo configure:4672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 4672 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 4673 | if test -z "$ac_err"; then
|
|---|
| 4674 | rm -rf conftest*
|
|---|
| 4675 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 4676 | else
|
|---|
| 4677 | echo "$ac_err" >&5
|
|---|
| 4678 | echo "configure: failed program was:" >&5
|
|---|
| 4679 | cat conftest.$ac_ext >&5
|
|---|
| 4680 | rm -rf conftest*
|
|---|
| 4681 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 4682 | fi
|
|---|
| 4683 | rm -f conftest*
|
|---|
| 4684 | fi
|
|---|
| 4685 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 4686 | echo "$ac_t""yes" 1>&6
|
|---|
| 4687 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|---|
| 4688 | cat >> confdefs.h <<EOF
|
|---|
| 4689 | #define $ac_tr_hdr 1
|
|---|
| 4690 | EOF
|
|---|
| 4691 |
|
|---|
| 4692 | else
|
|---|
| 4693 | echo "$ac_t""no" 1>&6
|
|---|
| 4694 | fi
|
|---|
| 4695 | done
|
|---|
| 4696 |
|
|---|
| 4697 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
|
|---|
| 4698 | __argz_count __argz_stringify __argz_next
|
|---|
| 4699 | do
|
|---|
| 4700 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 4701 | echo "configure:4702: checking for $ac_func" >&5
|
|---|
| 4702 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 4703 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4704 | else
|
|---|
| 4705 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4706 | #line 4707 "configure"
|
|---|
| 4707 | #include "confdefs.h"
|
|---|
| 4708 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 4709 | which can conflict with char $ac_func(); below. */
|
|---|
| 4710 | #include <assert.h>
|
|---|
| 4711 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 4712 | /* We use char because int might match the return type of a gcc2
|
|---|
| 4713 | builtin and then its argument prototype would still apply. */
|
|---|
| 4714 | char $ac_func();
|
|---|
| 4715 |
|
|---|
| 4716 | int main() {
|
|---|
| 4717 |
|
|---|
| 4718 | /* The GNU C library defines this for functions which it implements
|
|---|
| 4719 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 4720 | something starting with __ and the normal name is an alias. */
|
|---|
| 4721 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 4722 | choke me
|
|---|
| 4723 | #else
|
|---|
| 4724 | $ac_func();
|
|---|
| 4725 | #endif
|
|---|
| 4726 |
|
|---|
| 4727 | ; return 0; }
|
|---|
| 4728 | EOF
|
|---|
| 4729 | if { (eval echo configure:4730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4730 | rm -rf conftest*
|
|---|
| 4731 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 4732 | else
|
|---|
| 4733 | echo "configure: failed program was:" >&5
|
|---|
| 4734 | cat conftest.$ac_ext >&5
|
|---|
| 4735 | rm -rf conftest*
|
|---|
| 4736 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 4737 | fi
|
|---|
| 4738 | rm -f conftest*
|
|---|
| 4739 | fi
|
|---|
| 4740 |
|
|---|
| 4741 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 4742 | echo "$ac_t""yes" 1>&6
|
|---|
| 4743 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 4744 | cat >> confdefs.h <<EOF
|
|---|
| 4745 | #define $ac_tr_func 1
|
|---|
| 4746 | EOF
|
|---|
| 4747 |
|
|---|
| 4748 | else
|
|---|
| 4749 | echo "$ac_t""no" 1>&6
|
|---|
| 4750 | fi
|
|---|
| 4751 | done
|
|---|
| 4752 |
|
|---|
| 4753 |
|
|---|
| 4754 | if test "${ac_cv_func_stpcpy+set}" != "set"; then
|
|---|
| 4755 | for ac_func in stpcpy
|
|---|
| 4756 | do
|
|---|
| 4757 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 4758 | echo "configure:4759: checking for $ac_func" >&5
|
|---|
| 4759 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 4760 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4761 | else
|
|---|
| 4762 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4763 | #line 4764 "configure"
|
|---|
| 4764 | #include "confdefs.h"
|
|---|
| 4765 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 4766 | which can conflict with char $ac_func(); below. */
|
|---|
| 4767 | #include <assert.h>
|
|---|
| 4768 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 4769 | /* We use char because int might match the return type of a gcc2
|
|---|
| 4770 | builtin and then its argument prototype would still apply. */
|
|---|
| 4771 | char $ac_func();
|
|---|
| 4772 |
|
|---|
| 4773 | int main() {
|
|---|
| 4774 |
|
|---|
| 4775 | /* The GNU C library defines this for functions which it implements
|
|---|
| 4776 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 4777 | something starting with __ and the normal name is an alias. */
|
|---|
| 4778 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 4779 | choke me
|
|---|
| 4780 | #else
|
|---|
| 4781 | $ac_func();
|
|---|
| 4782 | #endif
|
|---|
| 4783 |
|
|---|
| 4784 | ; return 0; }
|
|---|
| 4785 | EOF
|
|---|
| 4786 | if { (eval echo configure:4787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4787 | rm -rf conftest*
|
|---|
| 4788 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 4789 | else
|
|---|
| 4790 | echo "configure: failed program was:" >&5
|
|---|
| 4791 | cat conftest.$ac_ext >&5
|
|---|
| 4792 | rm -rf conftest*
|
|---|
| 4793 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 4794 | fi
|
|---|
| 4795 | rm -f conftest*
|
|---|
| 4796 | fi
|
|---|
| 4797 |
|
|---|
| 4798 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 4799 | echo "$ac_t""yes" 1>&6
|
|---|
| 4800 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 4801 | cat >> confdefs.h <<EOF
|
|---|
| 4802 | #define $ac_tr_func 1
|
|---|
| 4803 | EOF
|
|---|
| 4804 |
|
|---|
| 4805 | else
|
|---|
| 4806 | echo "$ac_t""no" 1>&6
|
|---|
| 4807 | fi
|
|---|
| 4808 | done
|
|---|
| 4809 |
|
|---|
| 4810 | fi
|
|---|
| 4811 | if test "${ac_cv_func_stpcpy}" = "yes"; then
|
|---|
| 4812 | cat >> confdefs.h <<\EOF
|
|---|
| 4813 | #define HAVE_STPCPY 1
|
|---|
| 4814 | EOF
|
|---|
| 4815 |
|
|---|
| 4816 | fi
|
|---|
| 4817 |
|
|---|
| 4818 | if test $ac_cv_header_locale_h = yes; then
|
|---|
| 4819 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
|
|---|
| 4820 | echo "configure:4821: checking for LC_MESSAGES" >&5
|
|---|
| 4821 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
|
|---|
| 4822 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4823 | else
|
|---|
| 4824 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4825 | #line 4826 "configure"
|
|---|
| 4826 | #include "confdefs.h"
|
|---|
| 4827 | #include <locale.h>
|
|---|
| 4828 | int main() {
|
|---|
| 4829 | return LC_MESSAGES
|
|---|
| 4830 | ; return 0; }
|
|---|
| 4831 | EOF
|
|---|
| 4832 | if { (eval echo configure:4833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4833 | rm -rf conftest*
|
|---|
| 4834 | am_cv_val_LC_MESSAGES=yes
|
|---|
| 4835 | else
|
|---|
| 4836 | echo "configure: failed program was:" >&5
|
|---|
| 4837 | cat conftest.$ac_ext >&5
|
|---|
| 4838 | rm -rf conftest*
|
|---|
| 4839 | am_cv_val_LC_MESSAGES=no
|
|---|
| 4840 | fi
|
|---|
| 4841 | rm -f conftest*
|
|---|
| 4842 | fi
|
|---|
| 4843 |
|
|---|
| 4844 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
|
|---|
| 4845 | if test $am_cv_val_LC_MESSAGES = yes; then
|
|---|
| 4846 | cat >> confdefs.h <<\EOF
|
|---|
| 4847 | #define HAVE_LC_MESSAGES 1
|
|---|
| 4848 | EOF
|
|---|
| 4849 |
|
|---|
| 4850 | fi
|
|---|
| 4851 | fi
|
|---|
| 4852 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
|
|---|
| 4853 | echo "configure:4854: checking whether NLS is requested" >&5
|
|---|
| 4854 | # Check whether --enable-nls or --disable-nls was given.
|
|---|
| 4855 | if test "${enable_nls+set}" = set; then
|
|---|
| 4856 | enableval="$enable_nls"
|
|---|
| 4857 | USE_NLS=$enableval
|
|---|
| 4858 | else
|
|---|
| 4859 | USE_NLS=yes
|
|---|
| 4860 | fi
|
|---|
| 4861 |
|
|---|
| 4862 | echo "$ac_t""$USE_NLS" 1>&6
|
|---|
| 4863 |
|
|---|
| 4864 |
|
|---|
| 4865 | USE_INCLUDED_LIBINTL=no
|
|---|
| 4866 |
|
|---|
| 4867 | if test "$USE_NLS" = "yes"; then
|
|---|
| 4868 | cat >> confdefs.h <<\EOF
|
|---|
| 4869 | #define ENABLE_NLS 1
|
|---|
| 4870 | EOF
|
|---|
| 4871 |
|
|---|
| 4872 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
|
|---|
| 4873 | echo "configure:4874: checking whether included gettext is requested" >&5
|
|---|
| 4874 | # Check whether --with-included-gettext or --without-included-gettext was given.
|
|---|
| 4875 | if test "${with_included_gettext+set}" = set; then
|
|---|
| 4876 | withval="$with_included_gettext"
|
|---|
| 4877 | nls_cv_force_use_gnu_gettext=$withval
|
|---|
| 4878 | else
|
|---|
| 4879 | nls_cv_force_use_gnu_gettext=no
|
|---|
| 4880 | fi
|
|---|
| 4881 |
|
|---|
| 4882 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
|
|---|
| 4883 |
|
|---|
| 4884 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
|
|---|
| 4885 | echo "nls_cv_use_gnu_gettext:$nls_cv_use_gnu_gettext" >&5
|
|---|
| 4886 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
|
|---|
| 4887 | nls_cv_header_intl=
|
|---|
| 4888 | nls_cv_header_libgt=
|
|---|
| 4889 | CATOBJEXT=NONE
|
|---|
| 4890 |
|
|---|
| 4891 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
|
|---|
| 4892 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
|
|---|
| 4893 | echo "configure:4894: checking for libintl.h" >&5
|
|---|
| 4894 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 4895 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4896 | else
|
|---|
| 4897 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4898 | #include <sys/types.h>
|
|---|
| 4899 | #line 4900 "configure"
|
|---|
| 4900 | #include "confdefs.h"
|
|---|
| 4901 | #include <libintl.h>
|
|---|
| 4902 | EOF
|
|---|
| 4903 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 4904 | { (eval echo configure:4905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 4905 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 4906 | if test -z "$ac_err"; then
|
|---|
| 4907 | rm -rf conftest*
|
|---|
| 4908 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 4909 | else
|
|---|
| 4910 | echo "$ac_err" >&5
|
|---|
| 4911 | echo "configure: failed program was:" >&5
|
|---|
| 4912 | cat conftest.$ac_ext >&5
|
|---|
| 4913 | rm -rf conftest*
|
|---|
| 4914 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 4915 | fi
|
|---|
| 4916 | rm -f conftest*
|
|---|
| 4917 | fi
|
|---|
| 4918 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 4919 | echo "$ac_t""yes" 1>&6
|
|---|
| 4920 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
|
|---|
| 4921 | echo "configure:4922: checking for gettext in libc" >&5
|
|---|
| 4922 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
|
|---|
| 4923 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4924 | else
|
|---|
| 4925 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4926 | #line 4927 "configure"
|
|---|
| 4927 | #include "confdefs.h"
|
|---|
| 4928 | #include <libintl.h>
|
|---|
| 4929 | int main() {
|
|---|
| 4930 | return (int) gettext ("")
|
|---|
| 4931 | ; return 0; }
|
|---|
| 4932 | EOF
|
|---|
| 4933 | if { (eval echo configure:4934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4934 | rm -rf conftest*
|
|---|
| 4935 | gt_cv_func_gettext_libc=yes
|
|---|
| 4936 | else
|
|---|
| 4937 | echo "configure: failed program was:" >&5
|
|---|
| 4938 | cat conftest.$ac_ext >&5
|
|---|
| 4939 | rm -rf conftest*
|
|---|
| 4940 | gt_cv_func_gettext_libc=no
|
|---|
| 4941 | fi
|
|---|
| 4942 | rm -f conftest*
|
|---|
| 4943 | fi
|
|---|
| 4944 |
|
|---|
| 4945 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
|
|---|
| 4946 |
|
|---|
| 4947 | if test "$gt_cv_func_gettext_libc" != "yes"; then
|
|---|
| 4948 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
|
|---|
| 4949 | echo "configure:4950: checking for bindtextdomain in -lintl" >&5
|
|---|
| 4950 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
|
|---|
| 4951 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 4952 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4953 | else
|
|---|
| 4954 | ac_save_LIBS="$LIBS"
|
|---|
| 4955 | LIBS="-lintl $LIBS"
|
|---|
| 4956 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4957 | #line 4958 "configure"
|
|---|
| 4958 | #include "confdefs.h"
|
|---|
| 4959 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 4960 | /* We use char because int might match the return type of a gcc2
|
|---|
| 4961 | builtin and then its argument prototype would still apply. */
|
|---|
| 4962 | char bindtextdomain();
|
|---|
| 4963 |
|
|---|
| 4964 | int main() {
|
|---|
| 4965 | bindtextdomain()
|
|---|
| 4966 | ; return 0; }
|
|---|
| 4967 | EOF
|
|---|
| 4968 | if { (eval echo configure:4969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4969 | rm -rf conftest*
|
|---|
| 4970 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 4971 | else
|
|---|
| 4972 | echo "configure: failed program was:" >&5
|
|---|
| 4973 | cat conftest.$ac_ext >&5
|
|---|
| 4974 | rm -rf conftest*
|
|---|
| 4975 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 4976 | fi
|
|---|
| 4977 | rm -f conftest*
|
|---|
| 4978 | LIBS="$ac_save_LIBS"
|
|---|
| 4979 |
|
|---|
| 4980 | fi
|
|---|
| 4981 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 4982 | echo "$ac_t""yes" 1>&6
|
|---|
| 4983 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
|
|---|
| 4984 | echo "configure:4985: checking for gettext in libintl" >&5
|
|---|
| 4985 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
|
|---|
| 4986 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4987 | else
|
|---|
| 4988 | ac_save_LIBS="$LIBS"; LIBS="-lintl $LIBS";
|
|---|
| 4989 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4990 | #line 4991 "configure"
|
|---|
| 4991 | #include "confdefs.h"
|
|---|
| 4992 | #include <libintl.h>
|
|---|
| 4993 | int main() {
|
|---|
| 4994 | return (int) gettext ("")
|
|---|
| 4995 | ; return 0; }
|
|---|
| 4996 | EOF
|
|---|
| 4997 | if { (eval echo configure:4998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4998 | rm -rf conftest*
|
|---|
| 4999 | gt_cv_func_gettext_libintl=yes
|
|---|
| 5000 | else
|
|---|
| 5001 | echo "configure: failed program was:" >&5
|
|---|
| 5002 | cat conftest.$ac_ext >&5
|
|---|
| 5003 | rm -rf conftest*
|
|---|
| 5004 | gt_cv_func_gettext_libintl=no
|
|---|
| 5005 | fi
|
|---|
| 5006 | rm -f conftest*
|
|---|
| 5007 | LIBS="$ac_save_LIBS";
|
|---|
| 5008 | fi
|
|---|
| 5009 |
|
|---|
| 5010 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
|
|---|
| 5011 | else
|
|---|
| 5012 | echo "$ac_t""no" 1>&6
|
|---|
| 5013 | fi
|
|---|
| 5014 |
|
|---|
| 5015 | fi
|
|---|
| 5016 |
|
|---|
| 5017 | if test "$gt_cv_func_gettext_libc" = "yes" \
|
|---|
| 5018 | || test "$gt_cv_func_gettext_libintl" = "yes"; then
|
|---|
| 5019 | cat >> confdefs.h <<\EOF
|
|---|
| 5020 | #define HAVE_GETTEXT 1
|
|---|
| 5021 | EOF
|
|---|
| 5022 |
|
|---|
| 5023 | # Extract the first word of "msgfmt", so it can be a program name with args.
|
|---|
| 5024 | set dummy msgfmt; ac_word=$2
|
|---|
| 5025 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 5026 | echo "configure:5027: checking for $ac_word" >&5
|
|---|
| 5027 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
|
|---|
| 5028 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5029 | else
|
|---|
| 5030 | case "$MSGFMT" in
|
|---|
| 5031 | [/\\]*|[a-zA-Z]:*)
|
|---|
| 5032 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
|---|
| 5033 | ;;
|
|---|
| 5034 | *)
|
|---|
| 5035 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
|---|
| 5036 | for ac_dir in $PATH; do
|
|---|
| 5037 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 5038 | if test -f $ac_dir/$ac_word; then
|
|---|
| 5039 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
|---|
| 5040 | ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
|---|
| 5041 | break
|
|---|
| 5042 | fi
|
|---|
| 5043 | fi
|
|---|
| 5044 | ac_word_saved="$ac_word"
|
|---|
| 5045 | ac_word=$ac_word$ac_cv_exeext
|
|---|
| 5046 | if test -f $ac_dir/$ac_word; then
|
|---|
| 5047 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
|---|
| 5048 | ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
|---|
| 5049 | break
|
|---|
| 5050 | fi
|
|---|
| 5051 | fi
|
|---|
| 5052 | ac_word="$ac_word_saved"
|
|---|
| 5053 | done
|
|---|
| 5054 | IFS="$ac_save_ifs"
|
|---|
| 5055 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
|
|---|
| 5056 | ;;
|
|---|
| 5057 | esac
|
|---|
| 5058 | fi
|
|---|
| 5059 | MSGFMT="$ac_cv_path_MSGFMT"
|
|---|
| 5060 | if test -n "$MSGFMT"; then
|
|---|
| 5061 | echo "$ac_t""$MSGFMT" 1>&6
|
|---|
| 5062 | else
|
|---|
| 5063 | echo "$ac_t""no" 1>&6
|
|---|
| 5064 | fi
|
|---|
| 5065 | if test "$MSGFMT" != "no"; then
|
|---|
| 5066 | for ac_func in dcgettext
|
|---|
| 5067 | do
|
|---|
| 5068 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 5069 | echo "configure:5070: checking for $ac_func" >&5
|
|---|
| 5070 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 5071 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5072 | else
|
|---|
| 5073 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5074 | #line 5075 "configure"
|
|---|
| 5075 | #include "confdefs.h"
|
|---|
| 5076 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 5077 | which can conflict with char $ac_func(); below. */
|
|---|
| 5078 | #include <assert.h>
|
|---|
| 5079 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 5080 | /* We use char because int might match the return type of a gcc2
|
|---|
| 5081 | builtin and then its argument prototype would still apply. */
|
|---|
| 5082 | char $ac_func();
|
|---|
| 5083 |
|
|---|
| 5084 | int main() {
|
|---|
| 5085 |
|
|---|
| 5086 | /* The GNU C library defines this for functions which it implements
|
|---|
| 5087 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 5088 | something starting with __ and the normal name is an alias. */
|
|---|
| 5089 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 5090 | choke me
|
|---|
| 5091 | #else
|
|---|
| 5092 | $ac_func();
|
|---|
| 5093 | #endif
|
|---|
| 5094 |
|
|---|
| 5095 | ; return 0; }
|
|---|
| 5096 | EOF
|
|---|
| 5097 | if { (eval echo configure:5098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 5098 | rm -rf conftest*
|
|---|
| 5099 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 5100 | else
|
|---|
| 5101 | echo "configure: failed program was:" >&5
|
|---|
| 5102 | cat conftest.$ac_ext >&5
|
|---|
| 5103 | rm -rf conftest*
|
|---|
| 5104 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 5105 | fi
|
|---|
| 5106 | rm -f conftest*
|
|---|
| 5107 | fi
|
|---|
| 5108 |
|
|---|
| 5109 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 5110 | echo "$ac_t""yes" 1>&6
|
|---|
| 5111 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 5112 | cat >> confdefs.h <<EOF
|
|---|
| 5113 | #define $ac_tr_func 1
|
|---|
| 5114 | EOF
|
|---|
| 5115 |
|
|---|
| 5116 | else
|
|---|
| 5117 | echo "$ac_t""no" 1>&6
|
|---|
| 5118 | fi
|
|---|
| 5119 | done
|
|---|
| 5120 |
|
|---|
| 5121 | # Extract the first word of "gmsgfmt", so it can be a program name with args.
|
|---|
| 5122 | set dummy gmsgfmt; ac_word=$2
|
|---|
| 5123 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 5124 | echo "configure:5125: checking for $ac_word" >&5
|
|---|
| 5125 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
|
|---|
| 5126 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5127 | else
|
|---|
| 5128 | case "$GMSGFMT" in
|
|---|
| 5129 | [/\\]* | [a-zA-Z]:*)
|
|---|
| 5130 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
|---|
| 5131 | ;;
|
|---|
| 5132 | ?:/*)
|
|---|
| 5133 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
|
|---|
| 5134 | ;;
|
|---|
| 5135 | *)
|
|---|
| 5136 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 5137 | ac_dummy="$PATH"
|
|---|
| 5138 | for ac_dir in $ac_dummy; do
|
|---|
| 5139 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 5140 | if test -f $ac_dir/$ac_word; then
|
|---|
| 5141 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
|
|---|
| 5142 | break
|
|---|
| 5143 | fi
|
|---|
| 5144 | if test -f $ac_dir/$ac_word$ac_exeext; then
|
|---|
| 5145 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
|
|---|
| 5146 | break
|
|---|
| 5147 | fi
|
|---|
| 5148 | done
|
|---|
| 5149 | IFS="$ac_save_ifs"
|
|---|
| 5150 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
|---|
| 5151 | ;;
|
|---|
| 5152 | esac
|
|---|
| 5153 | fi
|
|---|
| 5154 | GMSGFMT="$ac_cv_path_GMSGFMT"
|
|---|
| 5155 | if test -n "$GMSGFMT"; then
|
|---|
| 5156 | echo "$ac_t""$GMSGFMT" 1>&6
|
|---|
| 5157 | else
|
|---|
| 5158 | echo "$ac_t""no" 1>&6
|
|---|
| 5159 | fi
|
|---|
| 5160 |
|
|---|
| 5161 | # Extract the first word of "xgettext", so it can be a program name with args.
|
|---|
| 5162 | set dummy xgettext; ac_word=$2
|
|---|
| 5163 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 5164 | echo "configure:5165: checking for $ac_word" >&5
|
|---|
| 5165 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
|
|---|
| 5166 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5167 | else
|
|---|
| 5168 | case "$XGETTEXT" in
|
|---|
| 5169 | [/\\]*|[a-zA-Z]:*)
|
|---|
| 5170 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
|---|
| 5171 | ;;
|
|---|
| 5172 | *)
|
|---|
| 5173 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
|---|
| 5174 | for ac_dir in $PATH; do
|
|---|
| 5175 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 5176 | if test -f $ac_dir/$ac_word; then
|
|---|
| 5177 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
|---|
| 5178 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
|---|
| 5179 | break
|
|---|
| 5180 | fi
|
|---|
| 5181 | fi
|
|---|
| 5182 | ac_word_saved="$ac_word"
|
|---|
| 5183 | ac_word=$ac_word$ac_cv_exeext
|
|---|
| 5184 | if test -f $ac_dir/$ac_word; then
|
|---|
| 5185 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
|---|
| 5186 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
|---|
| 5187 | break
|
|---|
| 5188 | fi
|
|---|
| 5189 | fi
|
|---|
| 5190 | ac_word="$ac_word_saved"
|
|---|
| 5191 | done
|
|---|
| 5192 | IFS="$ac_save_ifs"
|
|---|
| 5193 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
|---|
| 5194 | ;;
|
|---|
| 5195 | esac
|
|---|
| 5196 | fi
|
|---|
| 5197 | XGETTEXT="$ac_cv_path_XGETTEXT"
|
|---|
| 5198 | if test -n "$XGETTEXT"; then
|
|---|
| 5199 | echo "$ac_t""$XGETTEXT" 1>&6
|
|---|
| 5200 | else
|
|---|
| 5201 | echo "$ac_t""no" 1>&6
|
|---|
| 5202 | fi
|
|---|
| 5203 |
|
|---|
| 5204 |
|
|---|
| 5205 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5206 | #line 5207 "configure"
|
|---|
| 5207 | #include "confdefs.h"
|
|---|
| 5208 |
|
|---|
| 5209 | int main() {
|
|---|
| 5210 | extern int _nl_msg_cat_cntr;
|
|---|
| 5211 | return _nl_msg_cat_cntr
|
|---|
| 5212 | ; return 0; }
|
|---|
| 5213 | EOF
|
|---|
| 5214 | if { (eval echo configure:5215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 5215 | rm -rf conftest*
|
|---|
| 5216 | CATOBJEXT=.gmo
|
|---|
| 5217 | DATADIRNAME=share
|
|---|
| 5218 | else
|
|---|
| 5219 | echo "configure: failed program was:" >&5
|
|---|
| 5220 | cat conftest.$ac_ext >&5
|
|---|
| 5221 | rm -rf conftest*
|
|---|
| 5222 | CATOBJEXT=.mo
|
|---|
| 5223 | DATADIRNAME=lib
|
|---|
| 5224 | fi
|
|---|
| 5225 | rm -f conftest*
|
|---|
| 5226 | INSTOBJEXT=.mo
|
|---|
| 5227 | fi
|
|---|
| 5228 | fi
|
|---|
| 5229 |
|
|---|
| 5230 | else
|
|---|
| 5231 | echo "$ac_t""no" 1>&6
|
|---|
| 5232 | fi
|
|---|
| 5233 |
|
|---|
| 5234 |
|
|---|
| 5235 |
|
|---|
| 5236 | if test "$CATOBJEXT" = "NONE"; then
|
|---|
| 5237 | nls_cv_use_gnu_gettext=yes
|
|---|
| 5238 | echo "nls_cv_use_gnu_gettext:$nls_cv_use_gnu_gettext fallback" >&5
|
|---|
| 5239 | fi
|
|---|
| 5240 | fi
|
|---|
| 5241 |
|
|---|
| 5242 | if test "$nls_cv_use_gnu_gettext" = "yes"; then
|
|---|
| 5243 | INTLOBJS="\$(GETTOBJS)"
|
|---|
| 5244 | # Extract the first word of "msgfmt", so it can be a program name with args.
|
|---|
| 5245 | set dummy msgfmt; ac_word=$2
|
|---|
| 5246 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 5247 | echo "configure:5248: checking for $ac_word" >&5
|
|---|
| 5248 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
|
|---|
| 5249 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5250 | else
|
|---|
| 5251 | case "$MSGFMT" in
|
|---|
| 5252 | [/\\]*|[a-zA-Z]:*)
|
|---|
| 5253 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
|---|
| 5254 | ;;
|
|---|
| 5255 | *)
|
|---|
| 5256 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
|---|
| 5257 | for ac_dir in $PATH; do
|
|---|
| 5258 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 5259 | if test -f $ac_dir/$ac_word; then
|
|---|
| 5260 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
|---|
| 5261 | ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
|---|
| 5262 | break
|
|---|
| 5263 | fi
|
|---|
| 5264 | fi
|
|---|
| 5265 | ac_word_saved="$ac_word"
|
|---|
| 5266 | ac_word=$ac_word$ac_cv_exeext
|
|---|
| 5267 | if test -f $ac_dir/$ac_word; then
|
|---|
| 5268 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
|---|
| 5269 | ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
|---|
| 5270 | break
|
|---|
| 5271 | fi
|
|---|
| 5272 | fi
|
|---|
| 5273 | ac_word="$ac_word_saved"
|
|---|
| 5274 | done
|
|---|
| 5275 | IFS="$ac_save_ifs"
|
|---|
| 5276 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
|
|---|
| 5277 | ;;
|
|---|
| 5278 | esac
|
|---|
| 5279 | fi
|
|---|
| 5280 | MSGFMT="$ac_cv_path_MSGFMT"
|
|---|
| 5281 | if test -n "$MSGFMT"; then
|
|---|
| 5282 | echo "$ac_t""$MSGFMT" 1>&6
|
|---|
| 5283 | else
|
|---|
| 5284 | echo "$ac_t""no" 1>&6
|
|---|
| 5285 | fi
|
|---|
| 5286 |
|
|---|
| 5287 | # Extract the first word of "gmsgfmt", so it can be a program name with args.
|
|---|
| 5288 | set dummy gmsgfmt; ac_word=$2
|
|---|
| 5289 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 5290 | echo "configure:5291: checking for $ac_word" >&5
|
|---|
| 5291 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
|
|---|
| 5292 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5293 | else
|
|---|
| 5294 | case "$GMSGFMT" in
|
|---|
| 5295 | [/\\]* | [a-zA-Z]:*)
|
|---|
| 5296 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
|---|
| 5297 | ;;
|
|---|
| 5298 | ?:/*)
|
|---|
| 5299 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
|
|---|
| 5300 | ;;
|
|---|
| 5301 | *)
|
|---|
| 5302 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 5303 | ac_dummy="$PATH"
|
|---|
| 5304 | for ac_dir in $ac_dummy; do
|
|---|
| 5305 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 5306 | if test -f $ac_dir/$ac_word; then
|
|---|
| 5307 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
|
|---|
| 5308 | break
|
|---|
| 5309 | fi
|
|---|
| 5310 | if test -f $ac_dir/$ac_word$ac_exeext; then
|
|---|
| 5311 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
|
|---|
| 5312 | break
|
|---|
| 5313 | fi
|
|---|
| 5314 | done
|
|---|
| 5315 | IFS="$ac_save_ifs"
|
|---|
| 5316 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
|---|
| 5317 | ;;
|
|---|
| 5318 | esac
|
|---|
| 5319 | fi
|
|---|
| 5320 | GMSGFMT="$ac_cv_path_GMSGFMT"
|
|---|
| 5321 | if test -n "$GMSGFMT"; then
|
|---|
| 5322 | echo "$ac_t""$GMSGFMT" 1>&6
|
|---|
| 5323 | else
|
|---|
| 5324 | echo "$ac_t""no" 1>&6
|
|---|
| 5325 | fi
|
|---|
| 5326 |
|
|---|
| 5327 | # Extract the first word of "xgettext", so it can be a program name with args.
|
|---|
| 5328 | set dummy xgettext; ac_word=$2
|
|---|
| 5329 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 5330 | echo "configure:5331: checking for $ac_word" >&5
|
|---|
| 5331 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
|
|---|
| 5332 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5333 | else
|
|---|
| 5334 | case "$XGETTEXT" in
|
|---|
| 5335 | [/\\]*|[a-zA-Z]:*)
|
|---|
| 5336 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
|---|
| 5337 | ;;
|
|---|
| 5338 | *)
|
|---|
| 5339 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
|---|
| 5340 | for ac_dir in $PATH; do
|
|---|
| 5341 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 5342 | if test -f $ac_dir/$ac_word; then
|
|---|
| 5343 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
|---|
| 5344 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
|---|
| 5345 | break
|
|---|
| 5346 | fi
|
|---|
| 5347 | fi
|
|---|
| 5348 | ac_word_saved="$ac_word"
|
|---|
| 5349 | ac_word=$ac_word$ac_cv_exeext
|
|---|
| 5350 | if test -f $ac_dir/$ac_word; then
|
|---|
| 5351 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
|---|
| 5352 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
|---|
| 5353 | break
|
|---|
| 5354 | fi
|
|---|
| 5355 | fi
|
|---|
| 5356 | ac_word="$ac_word_saved"
|
|---|
| 5357 | done
|
|---|
| 5358 | IFS="$ac_save_ifs"
|
|---|
| 5359 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
|---|
| 5360 | ;;
|
|---|
| 5361 | esac
|
|---|
| 5362 | fi
|
|---|
| 5363 | XGETTEXT="$ac_cv_path_XGETTEXT"
|
|---|
| 5364 | if test -n "$XGETTEXT"; then
|
|---|
| 5365 | echo "$ac_t""$XGETTEXT" 1>&6
|
|---|
| 5366 | else
|
|---|
| 5367 | echo "$ac_t""no" 1>&6
|
|---|
| 5368 | fi
|
|---|
| 5369 |
|
|---|
| 5370 |
|
|---|
| 5371 | USE_INCLUDED_LIBINTL=yes
|
|---|
| 5372 | CATOBJEXT=.gmo
|
|---|
| 5373 | INSTOBJEXT=.mo
|
|---|
| 5374 | DATADIRNAME=share
|
|---|
| 5375 | INTLDEPS='$(top_builddir)/../intl/libintl.a'
|
|---|
| 5376 | INTLLIBS=$INTLDEPS
|
|---|
| 5377 | LIBS=`echo $LIBS | sed -e 's/-lintl//'`
|
|---|
| 5378 | nls_cv_header_intl=libintl.h
|
|---|
| 5379 | nls_cv_header_libgt=libgettext.h
|
|---|
| 5380 | else
|
|---|
| 5381 | echo "dbg: else: gt_cv_func_gettext_libintl" >&5
|
|---|
| 5382 | if test "$gt_cv_func_gettext_libintl" = "yes"; then
|
|---|
| 5383 | echo "dbg: updating LIBS" >&5
|
|---|
| 5384 | LIBS="-lintl $LIBS"
|
|---|
| 5385 | INTLLIBS="-lintl"
|
|---|
| 5386 | fi
|
|---|
| 5387 | fi
|
|---|
| 5388 |
|
|---|
| 5389 | if test "$XGETTEXT" != ":"; then
|
|---|
| 5390 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
|
|---|
| 5391 | : ;
|
|---|
| 5392 | else
|
|---|
| 5393 | echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
|
|---|
| 5394 | XGETTEXT=":"
|
|---|
| 5395 | fi
|
|---|
| 5396 | fi
|
|---|
| 5397 |
|
|---|
| 5398 | # We need to process the po/ directory.
|
|---|
| 5399 | POSUB=po
|
|---|
| 5400 | else
|
|---|
| 5401 | DATADIRNAME=share
|
|---|
| 5402 | nls_cv_header_intl=libintl.h
|
|---|
| 5403 | nls_cv_header_libgt=libgettext.h
|
|---|
| 5404 | fi
|
|---|
| 5405 |
|
|---|
| 5406 | # If this is used in GNU gettext we have to set USE_NLS to `yes'
|
|---|
| 5407 | # because some of the sources are only built for this goal.
|
|---|
| 5408 | if test "$PACKAGE" = gettext; then
|
|---|
| 5409 | USE_NLS=yes
|
|---|
| 5410 | USE_INCLUDED_LIBINTL=yes
|
|---|
| 5411 | fi
|
|---|
| 5412 |
|
|---|
| 5413 | for lang in $ALL_LINGUAS; do
|
|---|
| 5414 | GMOFILES="$GMOFILES $lang.gmo"
|
|---|
| 5415 | POFILES="$POFILES $lang.po"
|
|---|
| 5416 | done
|
|---|
| 5417 |
|
|---|
| 5418 |
|
|---|
| 5419 |
|
|---|
| 5420 |
|
|---|
| 5421 |
|
|---|
| 5422 |
|
|---|
| 5423 |
|
|---|
| 5424 |
|
|---|
| 5425 |
|
|---|
| 5426 |
|
|---|
| 5427 |
|
|---|
| 5428 |
|
|---|
| 5429 |
|
|---|
| 5430 |
|
|---|
| 5431 | if test "x$CATOBJEXT" != "x"; then
|
|---|
| 5432 | if test "x$ALL_LINGUAS" = "x"; then
|
|---|
| 5433 | LINGUAS=
|
|---|
| 5434 | else
|
|---|
| 5435 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
|
|---|
| 5436 | echo "configure:5437: checking for catalogs to be installed" >&5
|
|---|
| 5437 | NEW_LINGUAS=
|
|---|
| 5438 | for lang in ${LINGUAS=$ALL_LINGUAS}; do
|
|---|
| 5439 | case "$ALL_LINGUAS" in
|
|---|
| 5440 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
|
|---|
| 5441 | esac
|
|---|
| 5442 | done
|
|---|
| 5443 | LINGUAS=$NEW_LINGUAS
|
|---|
| 5444 | echo "$ac_t""$LINGUAS" 1>&6
|
|---|
| 5445 | fi
|
|---|
| 5446 |
|
|---|
| 5447 | if test -n "$LINGUAS"; then
|
|---|
| 5448 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
|
|---|
| 5449 | fi
|
|---|
| 5450 | fi
|
|---|
| 5451 |
|
|---|
| 5452 | if test $ac_cv_header_locale_h = yes; then
|
|---|
| 5453 | INCLUDE_LOCALE_H="#include <locale.h>"
|
|---|
| 5454 | else
|
|---|
| 5455 | INCLUDE_LOCALE_H="\
|
|---|
| 5456 | /* The system does not provide the header <locale.h>. Take care yourself. */"
|
|---|
| 5457 | fi
|
|---|
| 5458 |
|
|---|
| 5459 |
|
|---|
| 5460 | if test -f $srcdir/po2tbl.sed.in; then
|
|---|
| 5461 | if test "$CATOBJEXT" = ".cat"; then
|
|---|
| 5462 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
|
|---|
| 5463 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
|
|---|
| 5464 | echo "configure:5465: checking for linux/version.h" >&5
|
|---|
| 5465 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 5466 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5467 | else
|
|---|
| 5468 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5469 | #include <sys/types.h>
|
|---|
| 5470 | #line 5471 "configure"
|
|---|
| 5471 | #include "confdefs.h"
|
|---|
| 5472 | #include <linux/version.h>
|
|---|
| 5473 | EOF
|
|---|
| 5474 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 5475 | { (eval echo configure:5476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 5476 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 5477 | if test -z "$ac_err"; then
|
|---|
| 5478 | rm -rf conftest*
|
|---|
| 5479 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 5480 | else
|
|---|
| 5481 | echo "$ac_err" >&5
|
|---|
| 5482 | echo "configure: failed program was:" >&5
|
|---|
| 5483 | cat conftest.$ac_ext >&5
|
|---|
| 5484 | rm -rf conftest*
|
|---|
| 5485 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 5486 | fi
|
|---|
| 5487 | rm -f conftest*
|
|---|
| 5488 | fi
|
|---|
| 5489 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 5490 | echo "$ac_t""yes" 1>&6
|
|---|
| 5491 | msgformat=linux
|
|---|
| 5492 | else
|
|---|
| 5493 | echo "$ac_t""no" 1>&6
|
|---|
| 5494 | msgformat=xopen
|
|---|
| 5495 | fi
|
|---|
| 5496 |
|
|---|
| 5497 |
|
|---|
| 5498 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
|
|---|
| 5499 | fi
|
|---|
| 5500 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
|
|---|
| 5501 | $srcdir/po2tbl.sed.in > po2tbl.sed
|
|---|
| 5502 | fi
|
|---|
| 5503 |
|
|---|
| 5504 | if test "$PACKAGE" = "gettext"; then
|
|---|
| 5505 | GT_NO="#NO#"
|
|---|
| 5506 | GT_YES=
|
|---|
| 5507 | else
|
|---|
| 5508 | GT_NO=
|
|---|
| 5509 | GT_YES="#YES#"
|
|---|
| 5510 | fi
|
|---|
| 5511 |
|
|---|
| 5512 |
|
|---|
| 5513 |
|
|---|
| 5514 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
|
|---|
| 5515 |
|
|---|
| 5516 |
|
|---|
| 5517 | l=
|
|---|
| 5518 |
|
|---|
| 5519 |
|
|---|
| 5520 | if test -f $srcdir/po/POTFILES.in; then
|
|---|
| 5521 | test -d po || mkdir po
|
|---|
| 5522 | if test "x$srcdir" != "x."; then
|
|---|
| 5523 | if test "x`echo $srcdir | sed -e 's@.\:/.*@@' -e 's@/.*@@' `" = "x"; then
|
|---|
| 5524 | posrcprefix="$srcdir/"
|
|---|
| 5525 | else
|
|---|
| 5526 | posrcprefix="../$srcdir/"
|
|---|
| 5527 | fi
|
|---|
| 5528 | else
|
|---|
| 5529 | posrcprefix="../"
|
|---|
| 5530 | fi
|
|---|
| 5531 | rm -f po/POTFILES
|
|---|
| 5532 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
|
|---|
| 5533 | < $srcdir/po/POTFILES.in > po/POTFILES
|
|---|
| 5534 | fi
|
|---|
| 5535 |
|
|---|
| 5536 |
|
|---|
| 5537 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
|
|---|
| 5538 | echo "configure:5539: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
|---|
| 5539 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
|
|---|
| 5540 | if test "${enable_maintainer_mode+set}" = set; then
|
|---|
| 5541 | enableval="$enable_maintainer_mode"
|
|---|
| 5542 | USE_MAINTAINER_MODE=$enableval
|
|---|
| 5543 | else
|
|---|
| 5544 | USE_MAINTAINER_MODE=no
|
|---|
| 5545 | fi
|
|---|
| 5546 |
|
|---|
| 5547 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
|
|---|
| 5548 |
|
|---|
| 5549 |
|
|---|
| 5550 | if test $USE_MAINTAINER_MODE = yes; then
|
|---|
| 5551 | MAINTAINER_MODE_TRUE=
|
|---|
| 5552 | MAINTAINER_MODE_FALSE='#'
|
|---|
| 5553 | else
|
|---|
| 5554 | MAINTAINER_MODE_TRUE='#'
|
|---|
| 5555 | MAINTAINER_MODE_FALSE=
|
|---|
| 5556 | fi
|
|---|
| 5557 | MAINT=$MAINTAINER_MODE_TRUE
|
|---|
| 5558 |
|
|---|
| 5559 |
|
|---|
| 5560 |
|
|---|
| 5561 |
|
|---|
| 5562 |
|
|---|
| 5563 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
|---|
| 5564 | echo "configure:5565: checking for executable suffix" >&5
|
|---|
| 5565 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
|---|
| 5566 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5567 | else
|
|---|
| 5568 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
|---|
| 5569 | ac_cv_exeext=.exe
|
|---|
| 5570 | else
|
|---|
| 5571 | rm -f conftest*
|
|---|
| 5572 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
|---|
| 5573 | ac_cv_exeext=
|
|---|
| 5574 | if { (eval echo configure:5575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
|---|
| 5575 | for file in conftest.*; do
|
|---|
| 5576 | case $file in
|
|---|
| 5577 | *.c | *.o | *.obj) ;;
|
|---|
| 5578 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
|---|
| 5579 | esac
|
|---|
| 5580 | done
|
|---|
| 5581 | else
|
|---|
| 5582 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 5583 | fi
|
|---|
| 5584 | rm -f conftest*
|
|---|
| 5585 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
|---|
| 5586 | fi
|
|---|
| 5587 | fi
|
|---|
| 5588 |
|
|---|
| 5589 | EXEEXT=""
|
|---|
| 5590 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
|---|
| 5591 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
|---|
| 5592 | ac_exeext=$EXEEXT
|
|---|
| 5593 |
|
|---|
| 5594 |
|
|---|
| 5595 | for ac_hdr in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
|
|---|
| 5596 | do
|
|---|
| 5597 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|---|
| 5598 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|---|
| 5599 | echo "configure:5600: checking for $ac_hdr" >&5
|
|---|
| 5600 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 5601 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5602 | else
|
|---|
| 5603 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5604 | #include <sys/types.h>
|
|---|
| 5605 | #line 5606 "configure"
|
|---|
| 5606 | #include "confdefs.h"
|
|---|
| 5607 | #include <$ac_hdr>
|
|---|
| 5608 | EOF
|
|---|
| 5609 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 5610 | { (eval echo configure:5611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 5611 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 5612 | if test -z "$ac_err"; then
|
|---|
| 5613 | rm -rf conftest*
|
|---|
| 5614 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 5615 | else
|
|---|
| 5616 | echo "$ac_err" >&5
|
|---|
| 5617 | echo "configure: failed program was:" >&5
|
|---|
| 5618 | cat conftest.$ac_ext >&5
|
|---|
| 5619 | rm -rf conftest*
|
|---|
| 5620 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 5621 | fi
|
|---|
| 5622 | rm -f conftest*
|
|---|
| 5623 | fi
|
|---|
| 5624 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 5625 | echo "$ac_t""yes" 1>&6
|
|---|
| 5626 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|---|
| 5627 | cat >> confdefs.h <<EOF
|
|---|
| 5628 | #define $ac_tr_hdr 1
|
|---|
| 5629 | EOF
|
|---|
| 5630 |
|
|---|
| 5631 | else
|
|---|
| 5632 | echo "$ac_t""no" 1>&6
|
|---|
| 5633 | fi
|
|---|
| 5634 | done
|
|---|
| 5635 |
|
|---|
| 5636 |
|
|---|
| 5637 | # Put this here so that autoconf's "cross-compiling" message doesn't confuse
|
|---|
| 5638 | # people who are not cross-compiling but are compiling cross-assemblers.
|
|---|
| 5639 | echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6
|
|---|
| 5640 | echo "configure:5641: checking whether compiling a cross-assembler" >&5
|
|---|
| 5641 | if test "${host}" = "${target}"; then
|
|---|
| 5642 | cross_gas=no
|
|---|
| 5643 | else
|
|---|
| 5644 | cross_gas=yes
|
|---|
| 5645 | cat >> confdefs.h <<\EOF
|
|---|
| 5646 | #define CROSS_COMPILE 1
|
|---|
| 5647 | EOF
|
|---|
| 5648 |
|
|---|
| 5649 | fi
|
|---|
| 5650 | echo "$ac_t""$cross_gas" 1>&6
|
|---|
| 5651 |
|
|---|
| 5652 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
|---|
| 5653 | # for constant arguments. Useless!
|
|---|
| 5654 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
|---|
| 5655 | echo "configure:5656: checking for working alloca.h" >&5
|
|---|
| 5656 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
|
|---|
| 5657 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5658 | else
|
|---|
| 5659 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5660 | #line 5661 "configure"
|
|---|
| 5661 | #include "confdefs.h"
|
|---|
| 5662 | #include <alloca.h>
|
|---|
| 5663 | int main() {
|
|---|
| 5664 | char *p = alloca(2 * sizeof(int));
|
|---|
| 5665 | ; return 0; }
|
|---|
| 5666 | EOF
|
|---|
| 5667 | if { (eval echo configure:5668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 5668 | rm -rf conftest*
|
|---|
| 5669 | ac_cv_header_alloca_h=yes
|
|---|
| 5670 | else
|
|---|
| 5671 | echo "configure: failed program was:" >&5
|
|---|
| 5672 | cat conftest.$ac_ext >&5
|
|---|
| 5673 | rm -rf conftest*
|
|---|
| 5674 | ac_cv_header_alloca_h=no
|
|---|
| 5675 | fi
|
|---|
| 5676 | rm -f conftest*
|
|---|
| 5677 | fi
|
|---|
| 5678 |
|
|---|
| 5679 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
|---|
| 5680 | if test $ac_cv_header_alloca_h = yes; then
|
|---|
| 5681 | cat >> confdefs.h <<\EOF
|
|---|
| 5682 | #define HAVE_ALLOCA_H 1
|
|---|
| 5683 | EOF
|
|---|
| 5684 |
|
|---|
| 5685 | fi
|
|---|
| 5686 |
|
|---|
| 5687 | echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
|---|
| 5688 | echo "configure:5689: checking for alloca" >&5
|
|---|
| 5689 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
|
|---|
| 5690 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5691 | else
|
|---|
| 5692 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5693 | #line 5694 "configure"
|
|---|
| 5694 | #include "confdefs.h"
|
|---|
| 5695 |
|
|---|
| 5696 | #ifdef __GNUC__
|
|---|
| 5697 | # define alloca __builtin_alloca
|
|---|
| 5698 | #else
|
|---|
| 5699 | # ifdef _MSC_VER
|
|---|
| 5700 | # include <malloc.h>
|
|---|
| 5701 | # define alloca _alloca
|
|---|
| 5702 | # else
|
|---|
| 5703 | # if HAVE_ALLOCA_H
|
|---|
| 5704 | # include <alloca.h>
|
|---|
| 5705 | # else
|
|---|
| 5706 | # ifdef _AIX
|
|---|
| 5707 | #pragma alloca
|
|---|
| 5708 | # else
|
|---|
| 5709 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
|---|
| 5710 | char *alloca ();
|
|---|
| 5711 | # endif
|
|---|
| 5712 | # endif
|
|---|
| 5713 | # endif
|
|---|
| 5714 | # endif
|
|---|
| 5715 | #endif
|
|---|
| 5716 |
|
|---|
| 5717 | int main() {
|
|---|
| 5718 | char *p = (char *) alloca(1);
|
|---|
| 5719 | ; return 0; }
|
|---|
| 5720 | EOF
|
|---|
| 5721 | if { (eval echo configure:5722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 5722 | rm -rf conftest*
|
|---|
| 5723 | ac_cv_func_alloca_works=yes
|
|---|
| 5724 | else
|
|---|
| 5725 | echo "configure: failed program was:" >&5
|
|---|
| 5726 | cat conftest.$ac_ext >&5
|
|---|
| 5727 | rm -rf conftest*
|
|---|
| 5728 | ac_cv_func_alloca_works=no
|
|---|
| 5729 | fi
|
|---|
| 5730 | rm -f conftest*
|
|---|
| 5731 | fi
|
|---|
| 5732 |
|
|---|
| 5733 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
|---|
| 5734 | if test $ac_cv_func_alloca_works = yes; then
|
|---|
| 5735 | cat >> confdefs.h <<\EOF
|
|---|
| 5736 | #define HAVE_ALLOCA 1
|
|---|
| 5737 | EOF
|
|---|
| 5738 |
|
|---|
| 5739 | fi
|
|---|
| 5740 |
|
|---|
| 5741 | if test $ac_cv_func_alloca_works = no; then
|
|---|
| 5742 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
|---|
| 5743 | # that cause trouble. Some versions do not even contain alloca or
|
|---|
| 5744 | # contain a buggy version. If you still want to use their alloca,
|
|---|
| 5745 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
|---|
| 5746 | ALLOCA=alloca.${ac_objext}
|
|---|
| 5747 | cat >> confdefs.h <<\EOF
|
|---|
| 5748 | #define C_ALLOCA 1
|
|---|
| 5749 | EOF
|
|---|
| 5750 |
|
|---|
| 5751 |
|
|---|
| 5752 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
|---|
| 5753 | echo "configure:5754: checking whether alloca needs Cray hooks" >&5
|
|---|
| 5754 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
|
|---|
| 5755 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5756 | else
|
|---|
| 5757 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5758 | #line 5759 "configure"
|
|---|
| 5759 | #include "confdefs.h"
|
|---|
| 5760 | #if defined(CRAY) && ! defined(CRAY2)
|
|---|
| 5761 | webecray
|
|---|
| 5762 | #else
|
|---|
| 5763 | wenotbecray
|
|---|
| 5764 | #endif
|
|---|
| 5765 |
|
|---|
| 5766 | EOF
|
|---|
| 5767 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 5768 | egrep "webecray" >/dev/null 2>&1; then
|
|---|
| 5769 | rm -rf conftest*
|
|---|
| 5770 | ac_cv_os_cray=yes
|
|---|
| 5771 | else
|
|---|
| 5772 | rm -rf conftest*
|
|---|
| 5773 | ac_cv_os_cray=no
|
|---|
| 5774 | fi
|
|---|
| 5775 | rm -f conftest*
|
|---|
| 5776 |
|
|---|
| 5777 | fi
|
|---|
| 5778 |
|
|---|
| 5779 | echo "$ac_t""$ac_cv_os_cray" 1>&6
|
|---|
| 5780 | if test $ac_cv_os_cray = yes; then
|
|---|
| 5781 | for ac_func in _getb67 GETB67 getb67; do
|
|---|
| 5782 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 5783 | echo "configure:5784: checking for $ac_func" >&5
|
|---|
| 5784 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 5785 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5786 | else
|
|---|
| 5787 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5788 | #line 5789 "configure"
|
|---|
| 5789 | #include "confdefs.h"
|
|---|
| 5790 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 5791 | which can conflict with char $ac_func(); below. */
|
|---|
| 5792 | #include <assert.h>
|
|---|
| 5793 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 5794 | /* We use char because int might match the return type of a gcc2
|
|---|
| 5795 | builtin and then its argument prototype would still apply. */
|
|---|
| 5796 | char $ac_func();
|
|---|
| 5797 |
|
|---|
| 5798 | int main() {
|
|---|
| 5799 |
|
|---|
| 5800 | /* The GNU C library defines this for functions which it implements
|
|---|
| 5801 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 5802 | something starting with __ and the normal name is an alias. */
|
|---|
| 5803 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 5804 | choke me
|
|---|
| 5805 | #else
|
|---|
| 5806 | $ac_func();
|
|---|
| 5807 | #endif
|
|---|
| 5808 |
|
|---|
| 5809 | ; return 0; }
|
|---|
| 5810 | EOF
|
|---|
| 5811 | if { (eval echo configure:5812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 5812 | rm -rf conftest*
|
|---|
| 5813 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 5814 | else
|
|---|
| 5815 | echo "configure: failed program was:" >&5
|
|---|
| 5816 | cat conftest.$ac_ext >&5
|
|---|
| 5817 | rm -rf conftest*
|
|---|
| 5818 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 5819 | fi
|
|---|
| 5820 | rm -f conftest*
|
|---|
| 5821 | fi
|
|---|
| 5822 |
|
|---|
| 5823 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 5824 | echo "$ac_t""yes" 1>&6
|
|---|
| 5825 | cat >> confdefs.h <<EOF
|
|---|
| 5826 | #define CRAY_STACKSEG_END $ac_func
|
|---|
| 5827 | EOF
|
|---|
| 5828 |
|
|---|
| 5829 | break
|
|---|
| 5830 | else
|
|---|
| 5831 | echo "$ac_t""no" 1>&6
|
|---|
| 5832 | fi
|
|---|
| 5833 |
|
|---|
| 5834 | done
|
|---|
| 5835 | fi
|
|---|
| 5836 |
|
|---|
| 5837 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
|---|
| 5838 | echo "configure:5839: checking stack direction for C alloca" >&5
|
|---|
| 5839 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
|
|---|
| 5840 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5841 | else
|
|---|
| 5842 | if test "$cross_compiling" = yes; then
|
|---|
| 5843 | ac_cv_c_stack_direction=0
|
|---|
| 5844 | else
|
|---|
| 5845 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5846 | #line 5847 "configure"
|
|---|
| 5847 | #include "confdefs.h"
|
|---|
| 5848 | find_stack_direction ()
|
|---|
| 5849 | {
|
|---|
| 5850 | static char *addr = 0;
|
|---|
| 5851 | auto char dummy;
|
|---|
| 5852 | if (addr == 0)
|
|---|
| 5853 | {
|
|---|
| 5854 | addr = &dummy;
|
|---|
| 5855 | return find_stack_direction ();
|
|---|
| 5856 | }
|
|---|
| 5857 | else
|
|---|
| 5858 | return (&dummy > addr) ? 1 : -1;
|
|---|
| 5859 | }
|
|---|
| 5860 | main ()
|
|---|
| 5861 | {
|
|---|
| 5862 | exit (find_stack_direction() < 0);
|
|---|
| 5863 | }
|
|---|
| 5864 | EOF
|
|---|
| 5865 | if { (eval echo configure:5866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|---|
| 5866 | then
|
|---|
| 5867 | ac_cv_c_stack_direction=1
|
|---|
| 5868 | else
|
|---|
| 5869 | echo "configure: failed program was:" >&5
|
|---|
| 5870 | cat conftest.$ac_ext >&5
|
|---|
| 5871 | rm -fr conftest*
|
|---|
| 5872 | ac_cv_c_stack_direction=-1
|
|---|
| 5873 | fi
|
|---|
| 5874 | rm -fr conftest*
|
|---|
| 5875 | fi
|
|---|
| 5876 |
|
|---|
| 5877 | fi
|
|---|
| 5878 |
|
|---|
| 5879 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
|---|
| 5880 | cat >> confdefs.h <<EOF
|
|---|
| 5881 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
|---|
| 5882 | EOF
|
|---|
| 5883 |
|
|---|
| 5884 | fi
|
|---|
| 5885 |
|
|---|
| 5886 | echo $ac_n "checking for inline""... $ac_c" 1>&6
|
|---|
| 5887 | echo "configure:5888: checking for inline" >&5
|
|---|
| 5888 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
|
|---|
| 5889 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5890 | else
|
|---|
| 5891 | ac_cv_c_inline=no
|
|---|
| 5892 | for ac_kw in inline __inline__ __inline; do
|
|---|
| 5893 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5894 | #line 5895 "configure"
|
|---|
| 5895 | #include "confdefs.h"
|
|---|
| 5896 |
|
|---|
| 5897 | int main() {
|
|---|
| 5898 | } $ac_kw foo() {
|
|---|
| 5899 | ; return 0; }
|
|---|
| 5900 | EOF
|
|---|
| 5901 | if { (eval echo configure:5902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 5902 | rm -rf conftest*
|
|---|
| 5903 | ac_cv_c_inline=$ac_kw; break
|
|---|
| 5904 | else
|
|---|
| 5905 | echo "configure: failed program was:" >&5
|
|---|
| 5906 | cat conftest.$ac_ext >&5
|
|---|
| 5907 | fi
|
|---|
| 5908 | rm -f conftest*
|
|---|
| 5909 | done
|
|---|
| 5910 |
|
|---|
| 5911 | fi
|
|---|
| 5912 |
|
|---|
| 5913 | echo "$ac_t""$ac_cv_c_inline" 1>&6
|
|---|
| 5914 | case "$ac_cv_c_inline" in
|
|---|
| 5915 | inline | yes) ;;
|
|---|
| 5916 | no) cat >> confdefs.h <<\EOF
|
|---|
| 5917 | #define inline
|
|---|
| 5918 | EOF
|
|---|
| 5919 | ;;
|
|---|
| 5920 | *) cat >> confdefs.h <<EOF
|
|---|
| 5921 | #define inline $ac_cv_c_inline
|
|---|
| 5922 | EOF
|
|---|
| 5923 | ;;
|
|---|
| 5924 | esac
|
|---|
| 5925 |
|
|---|
| 5926 |
|
|---|
| 5927 | # VMS doesn't have unlink.
|
|---|
| 5928 | for ac_func in unlink remove
|
|---|
| 5929 | do
|
|---|
| 5930 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 5931 | echo "configure:5932: checking for $ac_func" >&5
|
|---|
| 5932 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 5933 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5934 | else
|
|---|
| 5935 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5936 | #line 5937 "configure"
|
|---|
| 5937 | #include "confdefs.h"
|
|---|
| 5938 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 5939 | which can conflict with char $ac_func(); below. */
|
|---|
| 5940 | #include <assert.h>
|
|---|
| 5941 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 5942 | /* We use char because int might match the return type of a gcc2
|
|---|
| 5943 | builtin and then its argument prototype would still apply. */
|
|---|
| 5944 | char $ac_func();
|
|---|
| 5945 |
|
|---|
| 5946 | int main() {
|
|---|
| 5947 |
|
|---|
| 5948 | /* The GNU C library defines this for functions which it implements
|
|---|
| 5949 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 5950 | something starting with __ and the normal name is an alias. */
|
|---|
| 5951 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 5952 | choke me
|
|---|
| 5953 | #else
|
|---|
| 5954 | $ac_func();
|
|---|
| 5955 | #endif
|
|---|
| 5956 |
|
|---|
| 5957 | ; return 0; }
|
|---|
| 5958 | EOF
|
|---|
| 5959 | if { (eval echo configure:5960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 5960 | rm -rf conftest*
|
|---|
| 5961 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 5962 | else
|
|---|
| 5963 | echo "configure: failed program was:" >&5
|
|---|
| 5964 | cat conftest.$ac_ext >&5
|
|---|
| 5965 | rm -rf conftest*
|
|---|
| 5966 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 5967 | fi
|
|---|
| 5968 | rm -f conftest*
|
|---|
| 5969 | fi
|
|---|
| 5970 |
|
|---|
| 5971 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 5972 | echo "$ac_t""yes" 1>&6
|
|---|
| 5973 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 5974 | cat >> confdefs.h <<EOF
|
|---|
| 5975 | #define $ac_tr_func 1
|
|---|
| 5976 | EOF
|
|---|
| 5977 | break
|
|---|
| 5978 | else
|
|---|
| 5979 | echo "$ac_t""no" 1>&6
|
|---|
| 5980 | fi
|
|---|
| 5981 | done
|
|---|
| 5982 |
|
|---|
| 5983 |
|
|---|
| 5984 | # Some systems don't have sbrk().
|
|---|
| 5985 | for ac_func in sbrk
|
|---|
| 5986 | do
|
|---|
| 5987 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 5988 | echo "configure:5989: checking for $ac_func" >&5
|
|---|
| 5989 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 5990 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 5991 | else
|
|---|
| 5992 | cat > conftest.$ac_ext <<EOF
|
|---|
| 5993 | #line 5994 "configure"
|
|---|
| 5994 | #include "confdefs.h"
|
|---|
| 5995 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 5996 | which can conflict with char $ac_func(); below. */
|
|---|
| 5997 | #include <assert.h>
|
|---|
| 5998 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 5999 | /* We use char because int might match the return type of a gcc2
|
|---|
| 6000 | builtin and then its argument prototype would still apply. */
|
|---|
| 6001 | char $ac_func();
|
|---|
| 6002 |
|
|---|
| 6003 | int main() {
|
|---|
| 6004 |
|
|---|
| 6005 | /* The GNU C library defines this for functions which it implements
|
|---|
| 6006 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 6007 | something starting with __ and the normal name is an alias. */
|
|---|
| 6008 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 6009 | choke me
|
|---|
| 6010 | #else
|
|---|
| 6011 | $ac_func();
|
|---|
| 6012 | #endif
|
|---|
| 6013 |
|
|---|
| 6014 | ; return 0; }
|
|---|
| 6015 | EOF
|
|---|
| 6016 | if { (eval echo configure:6017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 6017 | rm -rf conftest*
|
|---|
| 6018 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 6019 | else
|
|---|
| 6020 | echo "configure: failed program was:" >&5
|
|---|
| 6021 | cat conftest.$ac_ext >&5
|
|---|
| 6022 | rm -rf conftest*
|
|---|
| 6023 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 6024 | fi
|
|---|
| 6025 | rm -f conftest*
|
|---|
| 6026 | fi
|
|---|
| 6027 |
|
|---|
| 6028 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 6029 | echo "$ac_t""yes" 1>&6
|
|---|
| 6030 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 6031 | cat >> confdefs.h <<EOF
|
|---|
| 6032 | #define $ac_tr_func 1
|
|---|
| 6033 | EOF
|
|---|
| 6034 |
|
|---|
| 6035 | else
|
|---|
| 6036 | echo "$ac_t""no" 1>&6
|
|---|
| 6037 | fi
|
|---|
| 6038 | done
|
|---|
| 6039 |
|
|---|
| 6040 |
|
|---|
| 6041 | # do we need the math library?
|
|---|
| 6042 | case "${need_libm}" in
|
|---|
| 6043 | yes)
|
|---|
| 6044 | LIBM=
|
|---|
| 6045 | case $host in
|
|---|
| 6046 | *-*-beos* | *-*-cygwin* | *-*-pw32*)
|
|---|
| 6047 | # These system don't have libm
|
|---|
| 6048 | ;;
|
|---|
| 6049 | *-ncr-sysv4.3*)
|
|---|
| 6050 | echo $ac_n "checking for _mwvalidcheckl in -lmw""... $ac_c" 1>&6
|
|---|
| 6051 | echo "configure:6052: checking for _mwvalidcheckl in -lmw" >&5
|
|---|
| 6052 | ac_lib_var=`echo mw'_'_mwvalidcheckl | sed 'y%./+-%__p_%'`
|
|---|
| 6053 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 6054 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6055 | else
|
|---|
| 6056 | ac_save_LIBS="$LIBS"
|
|---|
| 6057 | LIBS="-lmw $LIBS"
|
|---|
| 6058 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6059 | #line 6060 "configure"
|
|---|
| 6060 | #include "confdefs.h"
|
|---|
| 6061 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 6062 | /* We use char because int might match the return type of a gcc2
|
|---|
| 6063 | builtin and then its argument prototype would still apply. */
|
|---|
| 6064 | char _mwvalidcheckl();
|
|---|
| 6065 |
|
|---|
| 6066 | int main() {
|
|---|
| 6067 | _mwvalidcheckl()
|
|---|
| 6068 | ; return 0; }
|
|---|
| 6069 | EOF
|
|---|
| 6070 | if { (eval echo configure:6071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 6071 | rm -rf conftest*
|
|---|
| 6072 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 6073 | else
|
|---|
| 6074 | echo "configure: failed program was:" >&5
|
|---|
| 6075 | cat conftest.$ac_ext >&5
|
|---|
| 6076 | rm -rf conftest*
|
|---|
| 6077 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 6078 | fi
|
|---|
| 6079 | rm -f conftest*
|
|---|
| 6080 | LIBS="$ac_save_LIBS"
|
|---|
| 6081 |
|
|---|
| 6082 | fi
|
|---|
| 6083 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 6084 | echo "$ac_t""yes" 1>&6
|
|---|
| 6085 | LIBM="-lmw"
|
|---|
| 6086 | else
|
|---|
| 6087 | echo "$ac_t""no" 1>&6
|
|---|
| 6088 | fi
|
|---|
| 6089 |
|
|---|
| 6090 | echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
|
|---|
| 6091 | echo "configure:6092: checking for main in -lm" >&5
|
|---|
| 6092 | ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
|
|---|
| 6093 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 6094 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6095 | else
|
|---|
| 6096 | ac_save_LIBS="$LIBS"
|
|---|
| 6097 | LIBS="-lm $LIBS"
|
|---|
| 6098 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6099 | #line 6100 "configure"
|
|---|
| 6100 | #include "confdefs.h"
|
|---|
| 6101 |
|
|---|
| 6102 | int main() {
|
|---|
| 6103 | main()
|
|---|
| 6104 | ; return 0; }
|
|---|
| 6105 | EOF
|
|---|
| 6106 | if { (eval echo configure:6107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 6107 | rm -rf conftest*
|
|---|
| 6108 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 6109 | else
|
|---|
| 6110 | echo "configure: failed program was:" >&5
|
|---|
| 6111 | cat conftest.$ac_ext >&5
|
|---|
| 6112 | rm -rf conftest*
|
|---|
| 6113 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 6114 | fi
|
|---|
| 6115 | rm -f conftest*
|
|---|
| 6116 | LIBS="$ac_save_LIBS"
|
|---|
| 6117 |
|
|---|
| 6118 | fi
|
|---|
| 6119 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 6120 | echo "$ac_t""yes" 1>&6
|
|---|
| 6121 | LIBM="$LIBM -lm"
|
|---|
| 6122 | else
|
|---|
| 6123 | echo "$ac_t""no" 1>&6
|
|---|
| 6124 | fi
|
|---|
| 6125 |
|
|---|
| 6126 | ;;
|
|---|
| 6127 | *)
|
|---|
| 6128 | echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
|
|---|
| 6129 | echo "configure:6130: checking for main in -lm" >&5
|
|---|
| 6130 | ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
|
|---|
| 6131 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 6132 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6133 | else
|
|---|
| 6134 | ac_save_LIBS="$LIBS"
|
|---|
| 6135 | LIBS="-lm $LIBS"
|
|---|
| 6136 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6137 | #line 6138 "configure"
|
|---|
| 6138 | #include "confdefs.h"
|
|---|
| 6139 |
|
|---|
| 6140 | int main() {
|
|---|
| 6141 | main()
|
|---|
| 6142 | ; return 0; }
|
|---|
| 6143 | EOF
|
|---|
| 6144 | if { (eval echo configure:6145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 6145 | rm -rf conftest*
|
|---|
| 6146 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 6147 | else
|
|---|
| 6148 | echo "configure: failed program was:" >&5
|
|---|
| 6149 | cat conftest.$ac_ext >&5
|
|---|
| 6150 | rm -rf conftest*
|
|---|
| 6151 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 6152 | fi
|
|---|
| 6153 | rm -f conftest*
|
|---|
| 6154 | LIBS="$ac_save_LIBS"
|
|---|
| 6155 |
|
|---|
| 6156 | fi
|
|---|
| 6157 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 6158 | echo "$ac_t""yes" 1>&6
|
|---|
| 6159 | LIBM="-lm"
|
|---|
| 6160 | else
|
|---|
| 6161 | echo "$ac_t""no" 1>&6
|
|---|
| 6162 | fi
|
|---|
| 6163 |
|
|---|
| 6164 | ;;
|
|---|
| 6165 | esac
|
|---|
| 6166 |
|
|---|
| 6167 |
|
|---|
| 6168 | ;;
|
|---|
| 6169 | esac
|
|---|
| 6170 |
|
|---|
| 6171 | # Some non-ANSI preprocessors botch requoting inside strings. That's bad
|
|---|
| 6172 | # enough, but on some of those systems, the assert macro relies on requoting
|
|---|
| 6173 | # working properly!
|
|---|
| 6174 | echo $ac_n "checking for working assert macro""... $ac_c" 1>&6
|
|---|
| 6175 | echo "configure:6176: checking for working assert macro" >&5
|
|---|
| 6176 | if eval "test \"`echo '$''{'gas_cv_assert_ok'+set}'`\" = set"; then
|
|---|
| 6177 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6178 | else
|
|---|
| 6179 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6180 | #line 6181 "configure"
|
|---|
| 6181 | #include "confdefs.h"
|
|---|
| 6182 | #include <assert.h>
|
|---|
| 6183 | #include <stdio.h>
|
|---|
| 6184 | int main() {
|
|---|
| 6185 |
|
|---|
| 6186 | /* check for requoting problems */
|
|---|
| 6187 | static int a, b, c, d;
|
|---|
| 6188 | static char *s;
|
|---|
| 6189 | assert (!strcmp(s, "foo bar baz quux"));
|
|---|
| 6190 | /* check for newline handling */
|
|---|
| 6191 | assert (a == b
|
|---|
| 6192 | || c == d);
|
|---|
| 6193 |
|
|---|
| 6194 | ; return 0; }
|
|---|
| 6195 | EOF
|
|---|
| 6196 | if { (eval echo configure:6197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 6197 | rm -rf conftest*
|
|---|
| 6198 | gas_cv_assert_ok=yes
|
|---|
| 6199 | else
|
|---|
| 6200 | echo "configure: failed program was:" >&5
|
|---|
| 6201 | cat conftest.$ac_ext >&5
|
|---|
| 6202 | rm -rf conftest*
|
|---|
| 6203 | gas_cv_assert_ok=no
|
|---|
| 6204 | fi
|
|---|
| 6205 | rm -f conftest*
|
|---|
| 6206 | fi
|
|---|
| 6207 | echo "$ac_t""$gas_cv_assert_ok" 1>&6
|
|---|
| 6208 | test $gas_cv_assert_ok = yes || cat >> confdefs.h <<\EOF
|
|---|
| 6209 | #define BROKEN_ASSERT 1
|
|---|
| 6210 | EOF
|
|---|
| 6211 |
|
|---|
| 6212 |
|
|---|
| 6213 |
|
|---|
| 6214 | # On some systems, the system header files may not declare malloc, realloc,
|
|---|
| 6215 | # and free. There are places where gas needs these functions to have been
|
|---|
| 6216 | # declared -- such as when taking their addresses.
|
|---|
| 6217 | gas_test_headers="
|
|---|
| 6218 | #ifdef HAVE_MEMORY_H
|
|---|
| 6219 | #include <memory.h>
|
|---|
| 6220 | #endif
|
|---|
| 6221 | #ifdef HAVE_STRING_H
|
|---|
| 6222 | #include <string.h>
|
|---|
| 6223 | #else
|
|---|
| 6224 | #ifdef HAVE_STRINGS_H
|
|---|
| 6225 | #include <strings.h>
|
|---|
| 6226 | #endif
|
|---|
| 6227 | #endif
|
|---|
| 6228 | #ifdef HAVE_STDLIB_H
|
|---|
| 6229 | #include <stdlib.h>
|
|---|
| 6230 | #endif
|
|---|
| 6231 | #ifdef HAVE_UNISTD_H
|
|---|
| 6232 | #include <unistd.h>
|
|---|
| 6233 | #endif
|
|---|
| 6234 | "
|
|---|
| 6235 |
|
|---|
| 6236 | echo $ac_n "checking whether declaration is required for strstr""... $ac_c" 1>&6
|
|---|
| 6237 | echo "configure:6238: checking whether declaration is required for strstr" >&5
|
|---|
| 6238 | if eval "test \"`echo '$''{'gas_cv_decl_needed_strstr'+set}'`\" = set"; then
|
|---|
| 6239 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6240 | else
|
|---|
| 6241 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6242 | #line 6243 "configure"
|
|---|
| 6243 | #include "confdefs.h"
|
|---|
| 6244 | $gas_test_headers
|
|---|
| 6245 | int main() {
|
|---|
| 6246 |
|
|---|
| 6247 | typedef char *(*f)();
|
|---|
| 6248 | f x;
|
|---|
| 6249 | x = (f) strstr;
|
|---|
| 6250 |
|
|---|
| 6251 | ; return 0; }
|
|---|
| 6252 | EOF
|
|---|
| 6253 | if { (eval echo configure:6254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 6254 | rm -rf conftest*
|
|---|
| 6255 | gas_cv_decl_needed_strstr=no
|
|---|
| 6256 | else
|
|---|
| 6257 | echo "configure: failed program was:" >&5
|
|---|
| 6258 | cat conftest.$ac_ext >&5
|
|---|
| 6259 | rm -rf conftest*
|
|---|
| 6260 | gas_cv_decl_needed_strstr=yes
|
|---|
| 6261 | fi
|
|---|
| 6262 | rm -f conftest*
|
|---|
| 6263 | fi
|
|---|
| 6264 | echo "$ac_t""$gas_cv_decl_needed_strstr" 1>&6
|
|---|
| 6265 | if test $gas_cv_decl_needed_strstr = yes; then
|
|---|
| 6266 | cat >> confdefs.h <<\EOF
|
|---|
| 6267 | #define NEED_DECLARATION_STRSTR 1
|
|---|
| 6268 | EOF
|
|---|
| 6269 |
|
|---|
| 6270 | fi
|
|---|
| 6271 |
|
|---|
| 6272 |
|
|---|
| 6273 | echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6
|
|---|
| 6274 | echo "configure:6275: checking whether declaration is required for malloc" >&5
|
|---|
| 6275 | if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then
|
|---|
| 6276 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6277 | else
|
|---|
| 6278 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6279 | #line 6280 "configure"
|
|---|
| 6280 | #include "confdefs.h"
|
|---|
| 6281 | $gas_test_headers
|
|---|
| 6282 | int main() {
|
|---|
| 6283 |
|
|---|
| 6284 | typedef char *(*f)();
|
|---|
| 6285 | f x;
|
|---|
| 6286 | x = (f) malloc;
|
|---|
| 6287 |
|
|---|
| 6288 | ; return 0; }
|
|---|
| 6289 | EOF
|
|---|
| 6290 | if { (eval echo configure:6291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 6291 | rm -rf conftest*
|
|---|
| 6292 | gas_cv_decl_needed_malloc=no
|
|---|
| 6293 | else
|
|---|
| 6294 | echo "configure: failed program was:" >&5
|
|---|
| 6295 | cat conftest.$ac_ext >&5
|
|---|
| 6296 | rm -rf conftest*
|
|---|
| 6297 | gas_cv_decl_needed_malloc=yes
|
|---|
| 6298 | fi
|
|---|
| 6299 | rm -f conftest*
|
|---|
| 6300 | fi
|
|---|
| 6301 | echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&6
|
|---|
| 6302 | if test $gas_cv_decl_needed_malloc = yes; then
|
|---|
| 6303 | cat >> confdefs.h <<\EOF
|
|---|
| 6304 | #define NEED_DECLARATION_MALLOC 1
|
|---|
| 6305 | EOF
|
|---|
| 6306 |
|
|---|
| 6307 | fi
|
|---|
| 6308 |
|
|---|
| 6309 |
|
|---|
| 6310 | echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6
|
|---|
| 6311 | echo "configure:6312: checking whether declaration is required for free" >&5
|
|---|
| 6312 | if eval "test \"`echo '$''{'gas_cv_decl_needed_free'+set}'`\" = set"; then
|
|---|
| 6313 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6314 | else
|
|---|
| 6315 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6316 | #line 6317 "configure"
|
|---|
| 6317 | #include "confdefs.h"
|
|---|
| 6318 | $gas_test_headers
|
|---|
| 6319 | int main() {
|
|---|
| 6320 |
|
|---|
| 6321 | typedef void (*f)();
|
|---|
| 6322 | f x;
|
|---|
| 6323 | x = (f) free;
|
|---|
| 6324 |
|
|---|
| 6325 | ; return 0; }
|
|---|
| 6326 | EOF
|
|---|
| 6327 | if { (eval echo configure:6328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 6328 | rm -rf conftest*
|
|---|
| 6329 | gas_cv_decl_needed_free=no
|
|---|
| 6330 | else
|
|---|
| 6331 | echo "configure: failed program was:" >&5
|
|---|
| 6332 | cat conftest.$ac_ext >&5
|
|---|
| 6333 | rm -rf conftest*
|
|---|
| 6334 | gas_cv_decl_needed_free=yes
|
|---|
| 6335 | fi
|
|---|
| 6336 | rm -f conftest*
|
|---|
| 6337 | fi
|
|---|
| 6338 | echo "$ac_t""$gas_cv_decl_needed_free" 1>&6
|
|---|
| 6339 | if test $gas_cv_decl_needed_free = yes; then
|
|---|
| 6340 | cat >> confdefs.h <<\EOF
|
|---|
| 6341 | #define NEED_DECLARATION_FREE 1
|
|---|
| 6342 | EOF
|
|---|
| 6343 |
|
|---|
| 6344 | fi
|
|---|
| 6345 |
|
|---|
| 6346 |
|
|---|
| 6347 | echo $ac_n "checking whether declaration is required for sbrk""... $ac_c" 1>&6
|
|---|
| 6348 | echo "configure:6349: checking whether declaration is required for sbrk" >&5
|
|---|
| 6349 | if eval "test \"`echo '$''{'gas_cv_decl_needed_sbrk'+set}'`\" = set"; then
|
|---|
| 6350 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6351 | else
|
|---|
| 6352 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6353 | #line 6354 "configure"
|
|---|
| 6354 | #include "confdefs.h"
|
|---|
| 6355 | $gas_test_headers
|
|---|
| 6356 | int main() {
|
|---|
| 6357 |
|
|---|
| 6358 | typedef char *(*f)();
|
|---|
| 6359 | f x;
|
|---|
| 6360 | x = (f) sbrk;
|
|---|
| 6361 |
|
|---|
| 6362 | ; return 0; }
|
|---|
| 6363 | EOF
|
|---|
| 6364 | if { (eval echo configure:6365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 6365 | rm -rf conftest*
|
|---|
| 6366 | gas_cv_decl_needed_sbrk=no
|
|---|
| 6367 | else
|
|---|
| 6368 | echo "configure: failed program was:" >&5
|
|---|
| 6369 | cat conftest.$ac_ext >&5
|
|---|
| 6370 | rm -rf conftest*
|
|---|
| 6371 | gas_cv_decl_needed_sbrk=yes
|
|---|
| 6372 | fi
|
|---|
| 6373 | rm -f conftest*
|
|---|
| 6374 | fi
|
|---|
| 6375 | echo "$ac_t""$gas_cv_decl_needed_sbrk" 1>&6
|
|---|
| 6376 | if test $gas_cv_decl_needed_sbrk = yes; then
|
|---|
| 6377 | cat >> confdefs.h <<\EOF
|
|---|
| 6378 | #define NEED_DECLARATION_SBRK 1
|
|---|
| 6379 | EOF
|
|---|
| 6380 |
|
|---|
| 6381 | fi
|
|---|
| 6382 |
|
|---|
| 6383 |
|
|---|
| 6384 | echo $ac_n "checking whether declaration is required for environ""... $ac_c" 1>&6
|
|---|
| 6385 | echo "configure:6386: checking whether declaration is required for environ" >&5
|
|---|
| 6386 | if eval "test \"`echo '$''{'gas_cv_decl_needed_environ'+set}'`\" = set"; then
|
|---|
| 6387 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6388 | else
|
|---|
| 6389 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6390 | #line 6391 "configure"
|
|---|
| 6391 | #include "confdefs.h"
|
|---|
| 6392 | $gas_test_headers
|
|---|
| 6393 | int main() {
|
|---|
| 6394 |
|
|---|
| 6395 | typedef char **f;
|
|---|
| 6396 | f x;
|
|---|
| 6397 | x = (f) environ;
|
|---|
| 6398 |
|
|---|
| 6399 | ; return 0; }
|
|---|
| 6400 | EOF
|
|---|
| 6401 | if { (eval echo configure:6402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 6402 | rm -rf conftest*
|
|---|
| 6403 | gas_cv_decl_needed_environ=no
|
|---|
| 6404 | else
|
|---|
| 6405 | echo "configure: failed program was:" >&5
|
|---|
| 6406 | cat conftest.$ac_ext >&5
|
|---|
| 6407 | rm -rf conftest*
|
|---|
| 6408 | gas_cv_decl_needed_environ=yes
|
|---|
| 6409 | fi
|
|---|
| 6410 | rm -f conftest*
|
|---|
| 6411 | fi
|
|---|
| 6412 | echo "$ac_t""$gas_cv_decl_needed_environ" 1>&6
|
|---|
| 6413 | if test $gas_cv_decl_needed_environ = yes; then
|
|---|
| 6414 | cat >> confdefs.h <<\EOF
|
|---|
| 6415 | #define NEED_DECLARATION_ENVIRON 1
|
|---|
| 6416 | EOF
|
|---|
| 6417 |
|
|---|
| 6418 | fi
|
|---|
| 6419 |
|
|---|
| 6420 |
|
|---|
| 6421 | # Does errno.h declare errno, or do we have to add a separate declaration
|
|---|
| 6422 | # for it?
|
|---|
| 6423 |
|
|---|
| 6424 | echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6
|
|---|
| 6425 | echo "configure:6426: checking whether declaration is required for errno" >&5
|
|---|
| 6426 | if eval "test \"`echo '$''{'gas_cv_decl_needed_errno'+set}'`\" = set"; then
|
|---|
| 6427 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 6428 | else
|
|---|
| 6429 | cat > conftest.$ac_ext <<EOF
|
|---|
| 6430 | #line 6431 "configure"
|
|---|
| 6431 | #include "confdefs.h"
|
|---|
| 6432 |
|
|---|
| 6433 | #ifdef HAVE_ERRNO_H
|
|---|
| 6434 | #include <errno.h>
|
|---|
| 6435 | #endif
|
|---|
| 6436 |
|
|---|
| 6437 | int main() {
|
|---|
| 6438 |
|
|---|
| 6439 | typedef int f;
|
|---|
| 6440 | f x;
|
|---|
| 6441 | x = (f) errno;
|
|---|
| 6442 |
|
|---|
| 6443 | ; return 0; }
|
|---|
| 6444 | EOF
|
|---|
| 6445 | if { (eval echo configure:6446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 6446 | rm -rf conftest*
|
|---|
| 6447 | gas_cv_decl_needed_errno=no
|
|---|
| 6448 | else
|
|---|
| 6449 | echo "configure: failed program was:" >&5
|
|---|
| 6450 | cat conftest.$ac_ext >&5
|
|---|
| 6451 | rm -rf conftest*
|
|---|
| 6452 | gas_cv_decl_needed_errno=yes
|
|---|
| 6453 | fi
|
|---|
| 6454 | rm -f conftest*
|
|---|
| 6455 | fi
|
|---|
| 6456 | echo "$ac_t""$gas_cv_decl_needed_errno" 1>&6
|
|---|
| 6457 | if test $gas_cv_decl_needed_errno = yes; then
|
|---|
| 6458 | cat >> confdefs.h <<\EOF
|
|---|
| 6459 | #define NEED_DECLARATION_ERRNO 1
|
|---|
| 6460 | EOF
|
|---|
| 6461 |
|
|---|
| 6462 | fi
|
|---|
| 6463 |
|
|---|
| 6464 |
|
|---|
| 6465 |
|
|---|
| 6466 |
|
|---|
| 6467 | trap '' 1 2 15
|
|---|
| 6468 | cat > confcache <<\EOF
|
|---|
| 6469 | # This file is a shell script that caches the results of configure
|
|---|
| 6470 | # tests run on this system so they can be shared between configure
|
|---|
| 6471 | # scripts and configure runs. It is not useful on other systems.
|
|---|
| 6472 | # If it contains results you don't want to keep, you may remove or edit it.
|
|---|
| 6473 | #
|
|---|
| 6474 | # By default, configure uses ./config.cache as the cache file,
|
|---|
| 6475 | # creating it if it does not exist already. You can give configure
|
|---|
| 6476 | # the --cache-file=FILE option to use a different cache file; that is
|
|---|
| 6477 | # what configure does when it calls configure scripts in
|
|---|
| 6478 | # subdirectories, so they share the cache.
|
|---|
| 6479 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
|---|
| 6480 | # config.status only pays attention to the cache file if you give it the
|
|---|
| 6481 | # --recheck option to rerun configure.
|
|---|
| 6482 | #
|
|---|
| 6483 | EOF
|
|---|
| 6484 | # The following way of writing the cache mishandles newlines in values,
|
|---|
| 6485 | # but we know of no workaround that is simple, portable, and efficient.
|
|---|
| 6486 | # So, don't put newlines in cache variables' values.
|
|---|
| 6487 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
|---|
| 6488 | # and sets the high bit in the cache file unless we assign to the vars.
|
|---|
| 6489 | (set) 2>&1 |
|
|---|
| 6490 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
|---|
| 6491 | *ac_space=\ *)
|
|---|
| 6492 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
|---|
| 6493 | # turns \\\\ into \\, and sed turns \\ into \).
|
|---|
| 6494 | sed -n \
|
|---|
| 6495 | -e "s/'/'\\\\''/g" \
|
|---|
| 6496 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
|---|
| 6497 | ;;
|
|---|
| 6498 | *)
|
|---|
| 6499 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
|---|
| 6500 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
|---|
| 6501 | ;;
|
|---|
| 6502 | esac >> confcache
|
|---|
| 6503 | if cmp -s $cache_file confcache; then
|
|---|
| 6504 | :
|
|---|
| 6505 | else
|
|---|
| 6506 | if test -w $cache_file; then
|
|---|
| 6507 | echo "updating cache $cache_file"
|
|---|
| 6508 | cat confcache > $cache_file
|
|---|
| 6509 | else
|
|---|
| 6510 | echo "not updating unwritable cache $cache_file"
|
|---|
| 6511 | fi
|
|---|
| 6512 | fi
|
|---|
| 6513 | rm -f confcache
|
|---|
| 6514 |
|
|---|
| 6515 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|---|
| 6516 |
|
|---|
| 6517 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|---|
| 6518 | # Let make expand exec_prefix.
|
|---|
| 6519 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
|---|
| 6520 |
|
|---|
| 6521 | # Any assignment to VPATH causes Sun make to only execute
|
|---|
| 6522 | # the first set of double-colon rules, so remove it if not needed.
|
|---|
| 6523 | # If there is a colon in the path, we need to keep it.
|
|---|
| 6524 | if test "x$srcdir" = x.; then
|
|---|
| 6525 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
|---|
| 6526 | fi
|
|---|
| 6527 |
|
|---|
| 6528 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
|---|
| 6529 |
|
|---|
| 6530 | DEFS=-DHAVE_CONFIG_H
|
|---|
| 6531 |
|
|---|
| 6532 | # Without the "./", some shells look in PATH for config.status.
|
|---|
| 6533 | : ${CONFIG_STATUS=./config.status}
|
|---|
| 6534 |
|
|---|
| 6535 | echo creating $CONFIG_STATUS
|
|---|
| 6536 | rm -f $CONFIG_STATUS
|
|---|
| 6537 | cat > $CONFIG_STATUS <<EOF
|
|---|
| 6538 | #! /bin/sh
|
|---|
| 6539 | # Generated automatically by configure.
|
|---|
| 6540 | # Run this file to recreate the current configuration.
|
|---|
| 6541 | # This directory was configured as follows,
|
|---|
| 6542 | EOF
|
|---|
| 6543 | echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS
|
|---|
| 6544 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 6545 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|---|
| 6546 | #
|
|---|
| 6547 | # $0 $ac_configure_args
|
|---|
| 6548 | #
|
|---|
| 6549 | # Compiler output produced by configure, useful for debugging
|
|---|
| 6550 | # configure, is in ./config.log if it exists.
|
|---|
| 6551 |
|
|---|
| 6552 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
|---|
| 6553 | for ac_option
|
|---|
| 6554 | do
|
|---|
| 6555 | case "\$ac_option" in
|
|---|
| 6556 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
|---|
| 6557 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
|---|
| 6558 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
|---|
| 6559 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
|---|
| 6560 | echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
|---|
| 6561 | exit 0 ;;
|
|---|
| 6562 | -help | --help | --hel | --he | --h)
|
|---|
| 6563 | echo "\$ac_cs_usage"; exit 0 ;;
|
|---|
| 6564 | *) echo "\$ac_cs_usage"; exit 1 ;;
|
|---|
| 6565 | esac
|
|---|
| 6566 | done
|
|---|
| 6567 |
|
|---|
| 6568 | ac_given_srcdir=$srcdir
|
|---|
| 6569 | ac_given_INSTALL="$INSTALL"
|
|---|
| 6570 | PATHIFS="$PATH_IFS"
|
|---|
| 6571 |
|
|---|
| 6572 | trap 'rm -fr `echo "Makefile doc/Makefile ${GDBINIT}:gdbinit.in po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
|---|
| 6573 | EOF
|
|---|
| 6574 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 6575 |
|
|---|
| 6576 | # Protect against being on the right side of a sed subst in config.status.
|
|---|
| 6577 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
|---|
| 6578 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
|---|
| 6579 | $ac_vpsub
|
|---|
| 6580 | $extrasub
|
|---|
| 6581 | s,\([^a-zA-Z0-9:]\)/bin/sh\(.exe\),\1${CONFIG_SHELL-/bin/sh}\2,g
|
|---|
| 6582 | s%@SHELL@%$SHELL%g
|
|---|
| 6583 | s%@CFLAGS@%$CFLAGS%g
|
|---|
| 6584 | s%@CPPFLAGS@%$CPPFLAGS%g
|
|---|
| 6585 | s%@CXXFLAGS@%$CXXFLAGS%g
|
|---|
| 6586 | s%@FFLAGS@%$FFLAGS%g
|
|---|
| 6587 | s%@DEFS@%$DEFS%g
|
|---|
| 6588 | s%@LDFLAGS@%$LDFLAGS%g
|
|---|
| 6589 | s%@LIBS@%$LIBS%g
|
|---|
| 6590 | s%@exec_prefix@%$exec_prefix%g
|
|---|
| 6591 | s%@prefix@%$prefix%g
|
|---|
| 6592 | s%@program_transform_name@%$program_transform_name%g
|
|---|
| 6593 | s%@bindir@%$bindir%g
|
|---|
| 6594 | s%@sbindir@%$sbindir%g
|
|---|
| 6595 | s%@libexecdir@%$libexecdir%g
|
|---|
| 6596 | s%@datadir@%$datadir%g
|
|---|
| 6597 | s%@sysconfdir@%$sysconfdir%g
|
|---|
| 6598 | s%@sharedstatedir@%$sharedstatedir%g
|
|---|
| 6599 | s%@localstatedir@%$localstatedir%g
|
|---|
| 6600 | s%@libdir@%$libdir%g
|
|---|
| 6601 | s%@includedir@%$includedir%g
|
|---|
| 6602 | s%@oldincludedir@%$oldincludedir%g
|
|---|
| 6603 | s%@infodir@%$infodir%g
|
|---|
| 6604 | s%@mandir@%$mandir%g
|
|---|
| 6605 | s%@PATH_IFS@%$PATH_IFS%g
|
|---|
| 6606 | s%@EXEEXT@%$EXEEXT%g
|
|---|
| 6607 | s%@host@%$host%g
|
|---|
| 6608 | s%@host_alias@%$host_alias%g
|
|---|
| 6609 | s%@host_cpu@%$host_cpu%g
|
|---|
| 6610 | s%@host_vendor@%$host_vendor%g
|
|---|
| 6611 | s%@host_os@%$host_os%g
|
|---|
| 6612 | s%@target@%$target%g
|
|---|
| 6613 | s%@target_alias@%$target_alias%g
|
|---|
| 6614 | s%@target_cpu@%$target_cpu%g
|
|---|
| 6615 | s%@target_vendor@%$target_vendor%g
|
|---|
| 6616 | s%@target_os@%$target_os%g
|
|---|
| 6617 | s%@build@%$build%g
|
|---|
| 6618 | s%@build_alias@%$build_alias%g
|
|---|
| 6619 | s%@build_cpu@%$build_cpu%g
|
|---|
| 6620 | s%@build_vendor@%$build_vendor%g
|
|---|
| 6621 | s%@build_os@%$build_os%g
|
|---|
| 6622 | s%@CC@%$CC%g
|
|---|
| 6623 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
|---|
| 6624 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
|---|
| 6625 | s%@INSTALL_DATA@%$INSTALL_DATA%g
|
|---|
| 6626 | s%@PACKAGE@%$PACKAGE%g
|
|---|
| 6627 | s%@VERSION@%$VERSION%g
|
|---|
| 6628 | s%@ACLOCAL@%$ACLOCAL%g
|
|---|
| 6629 | s%@AUTOCONF@%$AUTOCONF%g
|
|---|
| 6630 | s%@AUTOMAKE@%$AUTOMAKE%g
|
|---|
| 6631 | s%@AUTOHEADER@%$AUTOHEADER%g
|
|---|
| 6632 | s%@MAKEINFO@%$MAKEINFO%g
|
|---|
| 6633 | s%@SET_MAKE@%$SET_MAKE%g
|
|---|
| 6634 | s%@LN_S@%$LN_S%g
|
|---|
| 6635 | s%@OBJEXT@%$OBJEXT%g
|
|---|
| 6636 | s%@RANLIB@%$RANLIB%g
|
|---|
| 6637 | s%@STRIP@%$STRIP%g
|
|---|
| 6638 | s%@LIBTOOL@%$LIBTOOL%g
|
|---|
| 6639 | s%@WARN_CFLAGS@%$WARN_CFLAGS%g
|
|---|
| 6640 | s%@GDBINIT@%$GDBINIT%g
|
|---|
| 6641 | s%@cgen_cpu_prefix@%$cgen_cpu_prefix%g
|
|---|
| 6642 | s%@extra_objects@%$extra_objects%g
|
|---|
| 6643 | s%@target_cpu_type@%$target_cpu_type%g
|
|---|
| 6644 | s%@obj_format@%$obj_format%g
|
|---|
| 6645 | s%@te_file@%$te_file%g
|
|---|
| 6646 | s%@install_tooldir@%$install_tooldir%g
|
|---|
| 6647 | s%@atof@%$atof%g
|
|---|
| 6648 | s%@BFDLIB@%$BFDLIB%g
|
|---|
| 6649 | s%@OPCODES_LIB@%$OPCODES_LIB%g
|
|---|
| 6650 | s%@BFDVER_H@%$BFDVER_H%g
|
|---|
| 6651 | s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g
|
|---|
| 6652 | s%@YACC@%$YACC%g
|
|---|
| 6653 | s%@LEX@%$LEX%g
|
|---|
| 6654 | s%@LEXLIB@%$LEXLIB%g
|
|---|
| 6655 | s%@CPP@%$CPP%g
|
|---|
| 6656 | s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
|
|---|
| 6657 | s%@ALLOCA@%$ALLOCA%g
|
|---|
| 6658 | s%@USE_NLS@%$USE_NLS%g
|
|---|
| 6659 | s%@MSGFMT@%$MSGFMT%g
|
|---|
| 6660 | s%@GMSGFMT@%$GMSGFMT%g
|
|---|
| 6661 | s%@XGETTEXT@%$XGETTEXT%g
|
|---|
| 6662 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
|
|---|
| 6663 | s%@CATALOGS@%$CATALOGS%g
|
|---|
| 6664 | s%@CATOBJEXT@%$CATOBJEXT%g
|
|---|
| 6665 | s%@DATADIRNAME@%$DATADIRNAME%g
|
|---|
| 6666 | s%@GMOFILES@%$GMOFILES%g
|
|---|
| 6667 | s%@INSTOBJEXT@%$INSTOBJEXT%g
|
|---|
| 6668 | s%@INTLDEPS@%$INTLDEPS%g
|
|---|
| 6669 | s%@INTLLIBS@%$INTLLIBS%g
|
|---|
| 6670 | s%@INTLOBJS@%$INTLOBJS%g
|
|---|
| 6671 | s%@POFILES@%$POFILES%g
|
|---|
| 6672 | s%@POSUB@%$POSUB%g
|
|---|
| 6673 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
|
|---|
| 6674 | s%@GT_NO@%$GT_NO%g
|
|---|
| 6675 | s%@GT_YES@%$GT_YES%g
|
|---|
| 6676 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
|
|---|
| 6677 | s%@l@%$l%g
|
|---|
| 6678 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
|
|---|
| 6679 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
|
|---|
| 6680 | s%@MAINT@%$MAINT%g
|
|---|
| 6681 | s%@LIBM@%$LIBM%g
|
|---|
| 6682 |
|
|---|
| 6683 | CEOF
|
|---|
| 6684 | EOF
|
|---|
| 6685 |
|
|---|
| 6686 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 6687 |
|
|---|
| 6688 | # Split the substitutions into bite-sized pieces for seds with
|
|---|
| 6689 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
|---|
| 6690 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
|---|
| 6691 | ac_file=1 # Number of current file.
|
|---|
| 6692 | ac_beg=1 # First line for current file.
|
|---|
| 6693 | ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
|---|
| 6694 | ac_more_lines=:
|
|---|
| 6695 | ac_sed_cmds=""
|
|---|
| 6696 | while $ac_more_lines; do
|
|---|
| 6697 | if test $ac_beg -gt 1; then
|
|---|
| 6698 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
|---|
| 6699 | else
|
|---|
| 6700 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
|---|
| 6701 | fi
|
|---|
| 6702 | if test ! -s conftest.s$ac_file; then
|
|---|
| 6703 | ac_more_lines=false
|
|---|
| 6704 | rm -f conftest.s$ac_file
|
|---|
| 6705 | else
|
|---|
| 6706 | if test -z "$ac_sed_cmds"; then
|
|---|
| 6707 | ac_sed_cmds="sed -f conftest.s$ac_file"
|
|---|
| 6708 | else
|
|---|
| 6709 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
|---|
| 6710 | fi
|
|---|
| 6711 | ac_file=`expr $ac_file + 1`
|
|---|
| 6712 | ac_beg=$ac_end
|
|---|
| 6713 | ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
|---|
| 6714 | fi
|
|---|
| 6715 | done
|
|---|
| 6716 | if test -z "$ac_sed_cmds"; then
|
|---|
| 6717 | ac_sed_cmds=cat
|
|---|
| 6718 | fi
|
|---|
| 6719 | EOF
|
|---|
| 6720 |
|
|---|
| 6721 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 6722 |
|
|---|
| 6723 | CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile ${GDBINIT}:gdbinit.in po/Makefile.in:po/Make-in"}
|
|---|
| 6724 | EOF
|
|---|
| 6725 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 6726 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
|---|
| 6727 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|---|
| 6728 | case "$ac_file" in
|
|---|
| 6729 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|---|
| 6730 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|---|
| 6731 | *) ac_file_in="${ac_file}.in" ;;
|
|---|
| 6732 | esac
|
|---|
| 6733 |
|
|---|
| 6734 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
|---|
| 6735 |
|
|---|
| 6736 | # Remove last slash and all that follows it. Not all systems have dirname.
|
|---|
| 6737 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|---|
| 6738 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|---|
| 6739 | # The file is in a subdirectory.
|
|---|
| 6740 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|---|
| 6741 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
|---|
| 6742 | # A "../" for each directory in $ac_dir_suffix.
|
|---|
| 6743 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
|---|
| 6744 | else
|
|---|
| 6745 | ac_dir_suffix= ac_dots=
|
|---|
| 6746 | fi
|
|---|
| 6747 |
|
|---|
| 6748 | case "$ac_given_srcdir" in
|
|---|
| 6749 | .) srcdir=.
|
|---|
| 6750 | if test -z "$ac_dots"; then top_srcdir=.
|
|---|
| 6751 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
|---|
| 6752 | [/\\]* | [a-zA-Z]:*)
|
|---|
| 6753 | srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
|---|
| 6754 | *) # Relative path.
|
|---|
| 6755 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
|---|
| 6756 | top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|---|
| 6757 | esac
|
|---|
| 6758 |
|
|---|
| 6759 | case "$ac_given_INSTALL" in
|
|---|
| 6760 | [/$\\]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
|
|---|
| 6761 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
|---|
| 6762 | esac
|
|---|
| 6763 |
|
|---|
| 6764 | echo creating "$ac_file"
|
|---|
| 6765 | rm -f "$ac_file"
|
|---|
| 6766 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
|---|
| 6767 | case "$ac_file" in
|
|---|
| 6768 | *Makefile*) ac_comsub="1i\\
|
|---|
| 6769 | # $configure_input" ;;
|
|---|
| 6770 | *) ac_comsub= ;;
|
|---|
| 6771 | esac
|
|---|
| 6772 |
|
|---|
| 6773 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%$PATHIFS% $ac_given_srcdir/%g"`
|
|---|
| 6774 | sed -e "$ac_comsub
|
|---|
| 6775 | s%@configure_input@%$configure_input%g
|
|---|
| 6776 | s%@srcdir@%$srcdir%g
|
|---|
| 6777 | s%@top_srcdir@%$top_srcdir%g
|
|---|
| 6778 | s%@INSTALL@%$INSTALL%g
|
|---|
| 6779 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
|---|
| 6780 | fi; done
|
|---|
| 6781 | rm -f conftest.s*
|
|---|
| 6782 |
|
|---|
| 6783 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
|---|
| 6784 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
|---|
| 6785 | #
|
|---|
| 6786 | # ac_d sets the value in "#define NAME VALUE" lines.
|
|---|
| 6787 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
|---|
| 6788 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
|---|
| 6789 | ac_dC='\3'
|
|---|
| 6790 | ac_dD='%g'
|
|---|
| 6791 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
|---|
| 6792 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|---|
| 6793 | ac_uB='\([ ]\)%\1#\2define\3'
|
|---|
| 6794 | ac_uC=' '
|
|---|
| 6795 | ac_uD='\4%g'
|
|---|
| 6796 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
|---|
| 6797 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|---|
| 6798 | ac_eB='$%\1#\2define\3'
|
|---|
| 6799 | ac_eC=' '
|
|---|
| 6800 | ac_eD='%g'
|
|---|
| 6801 |
|
|---|
| 6802 | if test "${CONFIG_HEADERS+set}" != set; then
|
|---|
| 6803 | EOF
|
|---|
| 6804 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 6805 | CONFIG_HEADERS="config.h:config.in"
|
|---|
| 6806 | EOF
|
|---|
| 6807 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 6808 | fi
|
|---|
| 6809 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
|---|
| 6810 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|---|
| 6811 | case "$ac_file" in
|
|---|
| 6812 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|---|
| 6813 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|---|
| 6814 | *) ac_file_in="${ac_file}.in" ;;
|
|---|
| 6815 | esac
|
|---|
| 6816 |
|
|---|
| 6817 | echo creating $ac_file
|
|---|
| 6818 |
|
|---|
| 6819 | rm -f conftest.frag conftest.in conftest.out
|
|---|
| 6820 | # kso the other way around might work better with drive letters and such.
|
|---|
| 6821 | # ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|---|
| 6822 | ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%" `
|
|---|
| 6823 | cat $ac_file_inputs > conftest.in
|
|---|
| 6824 |
|
|---|
| 6825 | EOF
|
|---|
| 6826 |
|
|---|
| 6827 | # Transform confdefs.h into a sed script conftest.vals that substitutes
|
|---|
| 6828 | # the proper values into config.h.in to produce config.h. And first:
|
|---|
| 6829 | # Protect against being on the right side of a sed subst in config.status.
|
|---|
| 6830 | # Protect against being in an unquoted here document in config.status.
|
|---|
| 6831 | rm -f conftest.vals
|
|---|
| 6832 | cat > conftest.hdr <<\EOF
|
|---|
| 6833 | s/[\\&%]/\\&/g
|
|---|
| 6834 | s%[\\$`]%\\&%g
|
|---|
| 6835 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
|---|
| 6836 | s%ac_d%ac_u%gp
|
|---|
| 6837 | s%ac_u%ac_e%gp
|
|---|
| 6838 | EOF
|
|---|
| 6839 | sed -n -f conftest.hdr confdefs.h > conftest.vals
|
|---|
| 6840 | rm -f conftest.hdr
|
|---|
| 6841 |
|
|---|
| 6842 | # This sed command replaces #undef with comments. This is necessary, for
|
|---|
| 6843 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
|---|
| 6844 | # on some systems where configure will not decide to define it.
|
|---|
| 6845 | cat >> conftest.vals <<\EOF
|
|---|
| 6846 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
|---|
| 6847 | EOF
|
|---|
| 6848 |
|
|---|
| 6849 | # Break up conftest.vals because some shells have a limit on
|
|---|
| 6850 | # the size of here documents, and old seds have small limits too.
|
|---|
| 6851 |
|
|---|
| 6852 | rm -f conftest.tail
|
|---|
| 6853 | while :
|
|---|
| 6854 | do
|
|---|
| 6855 | ac_lines=`grep -c . conftest.vals`
|
|---|
| 6856 | # grep -c gives empty output for an empty file on some AIX systems.
|
|---|
| 6857 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
|---|
| 6858 | # Write a limited-size here document to conftest.frag.
|
|---|
| 6859 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
|---|
| 6860 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
|---|
| 6861 | echo 'CEOF
|
|---|
| 6862 | sed -f conftest.frag conftest.in > conftest.out
|
|---|
| 6863 | rm -f conftest.in
|
|---|
| 6864 | mv conftest.out conftest.in
|
|---|
| 6865 | ' >> $CONFIG_STATUS
|
|---|
| 6866 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
|---|
| 6867 | rm -f conftest.vals
|
|---|
| 6868 | mv conftest.tail conftest.vals
|
|---|
| 6869 | done
|
|---|
| 6870 | rm -f conftest.vals
|
|---|
| 6871 |
|
|---|
| 6872 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 6873 | rm -f conftest.frag conftest.h
|
|---|
| 6874 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
|---|
| 6875 | cat conftest.in >> conftest.h
|
|---|
| 6876 | rm -f conftest.in
|
|---|
| 6877 | if cmp -s $ac_file conftest.h 2>/dev/null; then
|
|---|
| 6878 | echo "$ac_file is unchanged"
|
|---|
| 6879 | rm -f conftest.h
|
|---|
| 6880 | else
|
|---|
| 6881 | # Remove last slash and all that follows it. Not all systems have dirname.
|
|---|
| 6882 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|---|
| 6883 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|---|
| 6884 | # The file is in a subdirectory.
|
|---|
| 6885 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|---|
| 6886 | fi
|
|---|
| 6887 | rm -f $ac_file
|
|---|
| 6888 | mv conftest.h $ac_file
|
|---|
| 6889 | fi
|
|---|
| 6890 | fi; done
|
|---|
| 6891 |
|
|---|
| 6892 | EOF
|
|---|
| 6893 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 6894 |
|
|---|
| 6895 | target_cpu_type=${target_cpu_type}
|
|---|
| 6896 | cgen_cpu_prefix=${cgen_cpu_prefix}
|
|---|
| 6897 | obj_format=${obj_format}
|
|---|
| 6898 | te_file=${te_file}
|
|---|
| 6899 | EOF
|
|---|
| 6900 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 6901 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
|
|---|
| 6902 | rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
|
|---|
| 6903 | echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
|
|---|
| 6904 | echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
|
|---|
| 6905 | echo '#include "te-'"${te_file}"'.h"' > targ-env.h
|
|---|
| 6906 | echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
|
|---|
| 6907 | if test "x$cgen_cpu_prefix" != x ; then
|
|---|
| 6908 | echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
|
|---|
| 6909 | fi
|
|---|
| 6910 |
|
|---|
| 6911 | sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
|
|---|
| 6912 | exit 0
|
|---|
| 6913 | EOF
|
|---|
| 6914 | chmod +x $CONFIG_STATUS
|
|---|
| 6915 | rm -fr confdefs* $ac_clean_files
|
|---|
| 6916 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
|---|
| 6917 |
|
|---|