| 1 | #! /bin/sh
|
|---|
| 2 |
|
|---|
| 3 | # Guess values for system-dependent variables and create Makefiles.
|
|---|
| 4 | # Generated automatically using autoconf version 2.13
|
|---|
| 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
|
|---|
| 6 | #
|
|---|
| 7 | # This configure script is free software; the Free Software Foundation
|
|---|
| 8 | # gives unlimited permission to copy, distribute and modify it.
|
|---|
| 9 |
|
|---|
| 10 | # Defaults:
|
|---|
| 11 | ac_help=
|
|---|
| 12 | ac_default_prefix=/usr/local
|
|---|
| 13 | # Any additions from configure.in:
|
|---|
| 14 | ac_help="$ac_help
|
|---|
| 15 | --enable-shared[=PKGS] build shared libraries [default=no]"
|
|---|
| 16 | ac_help="$ac_help
|
|---|
| 17 | --enable-static[=PKGS] build static libraries [default=yes]"
|
|---|
| 18 | ac_help="$ac_help
|
|---|
| 19 | --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
|
|---|
| 20 | ac_help="$ac_help
|
|---|
| 21 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
|
|---|
| 22 | ac_help="$ac_help
|
|---|
| 23 | --disable-libtool-lock avoid locking (might break parallel builds)"
|
|---|
| 24 | ac_help="$ac_help
|
|---|
| 25 | --with-pic try to use only PIC/non-PIC objects [default=use both]"
|
|---|
| 26 | ac_help="$ac_help
|
|---|
| 27 | --enable-targets alternative target configurations"
|
|---|
| 28 | ac_help="$ac_help
|
|---|
| 29 | --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
|
|---|
| 30 | ac_help="$ac_help
|
|---|
| 31 | --enable-build-warnings Enable build-time compiler warnings if gcc is used"
|
|---|
| 32 | ac_help="$ac_help
|
|---|
| 33 | --enable-maintainer-mode enable make rules and dependencies not useful
|
|---|
| 34 | (and sometimes confusing) to the casual installer"
|
|---|
| 35 | ac_help="$ac_help
|
|---|
| 36 | --disable-nls do not use Native Language Support"
|
|---|
| 37 | ac_help="$ac_help
|
|---|
| 38 | --with-included-gettext use the GNU gettext library included here"
|
|---|
| 39 | ac_help="$ac_help
|
|---|
| 40 | --enable-cgen-maint[=dir] build cgen generated files"
|
|---|
| 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=z8k-dis.c
|
|---|
| 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 | # We currently only use the version number for the name of any shared
|
|---|
| 1060 | # library. For user convenience, we always use the same version
|
|---|
| 1061 | # number that BFD is using.
|
|---|
| 1062 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
|
|---|
| 1063 |
|
|---|
| 1064 | # Find a good install program. We prefer a C program (faster),
|
|---|
| 1065 | # so one script is as good as another. But avoid the broken or
|
|---|
| 1066 | # incompatible versions:
|
|---|
| 1067 | # SysV /etc/install, /usr/sbin/install
|
|---|
| 1068 | # SunOS /usr/etc/install
|
|---|
| 1069 | # IRIX /sbin/install
|
|---|
| 1070 | # AIX /bin/install
|
|---|
| 1071 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
|---|
| 1072 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|---|
| 1073 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|---|
| 1074 | # ./install, which can be erroneously created by make from ./install.sh.
|
|---|
| 1075 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
|---|
| 1076 | echo "configure:1077: checking for a BSD compatible install" >&5
|
|---|
| 1077 | if test -z "$INSTALL"; then
|
|---|
| 1078 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
|---|
| 1079 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1080 | else
|
|---|
| 1081 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1082 | for ac_dir in $PATH; do
|
|---|
| 1083 | # Account for people who put trailing slashes in PATH elements.
|
|---|
| 1084 | case "$ac_dir/" in
|
|---|
| 1085 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
|---|
| 1086 | # We reject the install program from OS/2 or W3.1
|
|---|
| 1087 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
|
|---|
| 1088 | *)
|
|---|
| 1089 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
|---|
| 1090 | # Don't use installbsd from OSF since it installs stuff as root
|
|---|
| 1091 | # by default.
|
|---|
| 1092 | for ac_prog in ginstall scoinst install; do
|
|---|
| 1093 | if test -f $ac_dir/$ac_prog$ac_exeext; then
|
|---|
| 1094 | if test $ac_prog = install &&
|
|---|
| 1095 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|---|
| 1096 | # AIX install. It has an incompatible calling convention.
|
|---|
| 1097 | :
|
|---|
| 1098 | else
|
|---|
| 1099 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
|
|---|
| 1100 | break 2
|
|---|
| 1101 | fi
|
|---|
| 1102 | fi
|
|---|
| 1103 | done
|
|---|
| 1104 | ;;
|
|---|
| 1105 | esac
|
|---|
| 1106 | done
|
|---|
| 1107 | IFS="$ac_save_IFS"
|
|---|
| 1108 |
|
|---|
| 1109 | fi
|
|---|
| 1110 | if test "${ac_cv_path_install+set}" = set; then
|
|---|
| 1111 | INSTALL="$ac_cv_path_install"
|
|---|
| 1112 | else
|
|---|
| 1113 | # As a last resort, use the slow shell script. We don't cache a
|
|---|
| 1114 | # path for INSTALL within a source directory, because that will
|
|---|
| 1115 | # break other packages using the cache if that directory is
|
|---|
| 1116 | # removed, or if the path is relative.
|
|---|
| 1117 | INSTALL="$ac_install_sh"
|
|---|
| 1118 | fi
|
|---|
| 1119 | fi
|
|---|
| 1120 | echo "$ac_t""$INSTALL" 1>&6
|
|---|
| 1121 |
|
|---|
| 1122 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
|---|
| 1123 | # It thinks the first close brace ends the variable substitution.
|
|---|
| 1124 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|---|
| 1125 |
|
|---|
| 1126 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
|---|
| 1127 |
|
|---|
| 1128 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|---|
| 1129 |
|
|---|
| 1130 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
|
|---|
| 1131 | echo "configure:1132: checking whether build environment is sane" >&5
|
|---|
| 1132 | # Just in case
|
|---|
| 1133 | sleep 1
|
|---|
| 1134 | echo timestamp > conftestfile
|
|---|
| 1135 | # Do `set' in a subshell so we don't clobber the current shell's
|
|---|
| 1136 | # arguments. Must try -L first in case configure is actually a
|
|---|
| 1137 | # symlink; some systems play weird games with the mod time of symlinks
|
|---|
| 1138 | # (eg FreeBSD returns the mod time of the symlink's containing
|
|---|
| 1139 | # directory).
|
|---|
| 1140 | if (
|
|---|
| 1141 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
|
|---|
| 1142 | if test "$*" = "X"; then
|
|---|
| 1143 | # -L didn't work.
|
|---|
| 1144 | set X `ls -t $srcdir/configure conftestfile`
|
|---|
| 1145 | fi
|
|---|
| 1146 | if test "$*" != "X $srcdir/configure conftestfile" \
|
|---|
| 1147 | && test "$*" != "X conftestfile $srcdir/configure"; then
|
|---|
| 1148 |
|
|---|
| 1149 | # If neither matched, then we have a broken ls. This can happen
|
|---|
| 1150 | # if, for instance, CONFIG_SHELL is bash and it inherits a
|
|---|
| 1151 | # broken ls alias from the environment. This has actually
|
|---|
| 1152 | # happened. Such a system could not be considered "sane".
|
|---|
| 1153 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
|
|---|
| 1154 | alias in your environment" 1>&2; exit 1; }
|
|---|
| 1155 | fi
|
|---|
| 1156 |
|
|---|
| 1157 | test "$2" = conftestfile
|
|---|
| 1158 | )
|
|---|
| 1159 | then
|
|---|
| 1160 | # Ok.
|
|---|
| 1161 | :
|
|---|
| 1162 | else
|
|---|
| 1163 | { echo "configure: error: newly created file is older than distributed files!
|
|---|
| 1164 | Check your system clock" 1>&2; exit 1; }
|
|---|
| 1165 | fi
|
|---|
| 1166 | rm -f conftest*
|
|---|
| 1167 | echo "$ac_t""yes" 1>&6
|
|---|
| 1168 | if test "$program_transform_name" = s,x,x,; then
|
|---|
| 1169 | program_transform_name=
|
|---|
| 1170 | else
|
|---|
| 1171 | # Double any \ or $. echo might interpret backslashes.
|
|---|
| 1172 | cat <<\EOF_SED > conftestsed
|
|---|
| 1173 | s,\\,\\\\,g; s,\$,$$,g
|
|---|
| 1174 | EOF_SED
|
|---|
| 1175 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
|---|
| 1176 | rm -f conftestsed
|
|---|
| 1177 | fi
|
|---|
| 1178 | test "$program_prefix" != NONE &&
|
|---|
| 1179 | program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
|---|
| 1180 | # Use a double $ so make ignores it.
|
|---|
| 1181 | test "$program_suffix" != NONE &&
|
|---|
| 1182 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
|---|
| 1183 |
|
|---|
| 1184 | # sed with no file args requires a program.
|
|---|
| 1185 | test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
|---|
| 1186 |
|
|---|
| 1187 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
|---|
| 1188 | echo "configure:1189: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
|---|
| 1189 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
|---|
| 1190 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
|---|
| 1191 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1192 | else
|
|---|
| 1193 | cat > conftestmake <<\EOF
|
|---|
| 1194 | all:
|
|---|
| 1195 | @echo 'ac_maketemp="${MAKE}"'
|
|---|
| 1196 | EOF
|
|---|
| 1197 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|---|
| 1198 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
|---|
| 1199 | if test -n "$ac_maketemp"; then
|
|---|
| 1200 | eval ac_cv_prog_make_${ac_make}_set=yes
|
|---|
| 1201 | else
|
|---|
| 1202 | eval ac_cv_prog_make_${ac_make}_set=no
|
|---|
| 1203 | fi
|
|---|
| 1204 | rm -f conftestmake
|
|---|
| 1205 | fi
|
|---|
| 1206 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
|---|
| 1207 | echo "$ac_t""yes" 1>&6
|
|---|
| 1208 | SET_MAKE=
|
|---|
| 1209 | else
|
|---|
| 1210 | echo "$ac_t""no" 1>&6
|
|---|
| 1211 | SET_MAKE="MAKE=${MAKE-make}"
|
|---|
| 1212 | fi
|
|---|
| 1213 |
|
|---|
| 1214 |
|
|---|
| 1215 | PACKAGE=opcodes
|
|---|
| 1216 |
|
|---|
| 1217 | VERSION=${BFD_VERSION}
|
|---|
| 1218 |
|
|---|
| 1219 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
|
|---|
| 1220 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
|
|---|
| 1221 | fi
|
|---|
| 1222 | cat >> confdefs.h <<EOF
|
|---|
| 1223 | #define PACKAGE "$PACKAGE"
|
|---|
| 1224 | EOF
|
|---|
| 1225 |
|
|---|
| 1226 | cat >> confdefs.h <<EOF
|
|---|
| 1227 | #define VERSION "$VERSION"
|
|---|
| 1228 | EOF
|
|---|
| 1229 |
|
|---|
| 1230 |
|
|---|
| 1231 |
|
|---|
| 1232 | missing_dir=`cd $ac_aux_dir && pwd`
|
|---|
| 1233 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
|
|---|
| 1234 | echo "configure:1235: checking for working aclocal" >&5
|
|---|
| 1235 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1236 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1237 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1238 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1239 | ACLOCAL=aclocal
|
|---|
| 1240 | echo "$ac_t""found" 1>&6
|
|---|
| 1241 | else
|
|---|
| 1242 | ACLOCAL="$missing_dir/missing aclocal"
|
|---|
| 1243 | echo "$ac_t""missing" 1>&6
|
|---|
| 1244 | fi
|
|---|
| 1245 |
|
|---|
| 1246 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
|
|---|
| 1247 | echo "configure:1248: checking for working autoconf" >&5
|
|---|
| 1248 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1249 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1250 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1251 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1252 | AUTOCONF=autoconf
|
|---|
| 1253 | echo "$ac_t""found" 1>&6
|
|---|
| 1254 | else
|
|---|
| 1255 | AUTOCONF="$missing_dir/missing autoconf"
|
|---|
| 1256 | echo "$ac_t""missing" 1>&6
|
|---|
| 1257 | fi
|
|---|
| 1258 |
|
|---|
| 1259 | echo $ac_n "checking for working automake""... $ac_c" 1>&6
|
|---|
| 1260 | echo "configure:1261: checking for working automake" >&5
|
|---|
| 1261 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1262 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1263 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1264 | if (automake --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1265 | AUTOMAKE=automake
|
|---|
| 1266 | echo "$ac_t""found" 1>&6
|
|---|
| 1267 | else
|
|---|
| 1268 | AUTOMAKE="$missing_dir/missing automake"
|
|---|
| 1269 | echo "$ac_t""missing" 1>&6
|
|---|
| 1270 | fi
|
|---|
| 1271 |
|
|---|
| 1272 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
|
|---|
| 1273 | echo "configure:1274: checking for working autoheader" >&5
|
|---|
| 1274 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1275 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1276 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1277 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1278 | AUTOHEADER=autoheader
|
|---|
| 1279 | echo "$ac_t""found" 1>&6
|
|---|
| 1280 | else
|
|---|
| 1281 | AUTOHEADER="$missing_dir/missing autoheader"
|
|---|
| 1282 | echo "$ac_t""missing" 1>&6
|
|---|
| 1283 | fi
|
|---|
| 1284 |
|
|---|
| 1285 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
|
|---|
| 1286 | echo "configure:1287: checking for working makeinfo" >&5
|
|---|
| 1287 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1288 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1289 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1290 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1291 | MAKEINFO=makeinfo
|
|---|
| 1292 | echo "$ac_t""found" 1>&6
|
|---|
| 1293 | else
|
|---|
| 1294 | MAKEINFO="$missing_dir/missing makeinfo"
|
|---|
| 1295 | echo "$ac_t""missing" 1>&6
|
|---|
| 1296 | fi
|
|---|
| 1297 |
|
|---|
| 1298 |
|
|---|
| 1299 |
|
|---|
| 1300 | if test $host != $build; then
|
|---|
| 1301 | ac_tool_prefix=${host_alias}-
|
|---|
| 1302 | else
|
|---|
| 1303 | ac_tool_prefix=
|
|---|
| 1304 | fi
|
|---|
| 1305 |
|
|---|
| 1306 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
|---|
| 1307 | set dummy ${ac_tool_prefix}ar; ac_word=$2
|
|---|
| 1308 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1309 | echo "configure:1310: checking for $ac_word" >&5
|
|---|
| 1310 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
|
|---|
| 1311 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1312 | else
|
|---|
| 1313 | if test -n "$AR"; then
|
|---|
| 1314 | ac_cv_prog_AR="$AR" # Let the user override the test.
|
|---|
| 1315 | else
|
|---|
| 1316 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1317 | ac_dummy="$PATH"
|
|---|
| 1318 | for ac_dir in $ac_dummy; do
|
|---|
| 1319 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1320 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1321 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1322 | ac_cv_prog_AR="${ac_tool_prefix}ar"
|
|---|
| 1323 | break
|
|---|
| 1324 | fi
|
|---|
| 1325 | done
|
|---|
| 1326 | IFS="$ac_save_ifs"
|
|---|
| 1327 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
|
|---|
| 1328 | fi
|
|---|
| 1329 | fi
|
|---|
| 1330 | AR="$ac_cv_prog_AR"
|
|---|
| 1331 | if test -n "$AR"; then
|
|---|
| 1332 | echo "$ac_t""$AR" 1>&6
|
|---|
| 1333 | else
|
|---|
| 1334 | echo "$ac_t""no" 1>&6
|
|---|
| 1335 | fi
|
|---|
| 1336 |
|
|---|
| 1337 |
|
|---|
| 1338 |
|
|---|
| 1339 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
|---|
| 1340 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
|---|
| 1341 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1342 | echo "configure:1343: checking for $ac_word" >&5
|
|---|
| 1343 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 1344 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1345 | else
|
|---|
| 1346 | if test -n "$RANLIB"; then
|
|---|
| 1347 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 1348 | else
|
|---|
| 1349 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1350 | ac_dummy="$PATH"
|
|---|
| 1351 | for ac_dir in $ac_dummy; do
|
|---|
| 1352 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1353 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1354 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1355 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
|---|
| 1356 | break
|
|---|
| 1357 | fi
|
|---|
| 1358 | done
|
|---|
| 1359 | IFS="$ac_save_ifs"
|
|---|
| 1360 | fi
|
|---|
| 1361 | fi
|
|---|
| 1362 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 1363 | if test -n "$RANLIB"; then
|
|---|
| 1364 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 1365 | else
|
|---|
| 1366 | echo "$ac_t""no" 1>&6
|
|---|
| 1367 | fi
|
|---|
| 1368 |
|
|---|
| 1369 |
|
|---|
| 1370 | if test -z "$ac_cv_prog_RANLIB"; then
|
|---|
| 1371 | if test -n "$ac_tool_prefix"; then
|
|---|
| 1372 | # Extract the first word of "ranlib", so it can be a program name with args.
|
|---|
| 1373 | set dummy ranlib; ac_word=$2
|
|---|
| 1374 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1375 | echo "configure:1376: checking for $ac_word" >&5
|
|---|
| 1376 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 1377 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1378 | else
|
|---|
| 1379 | if test -n "$RANLIB"; then
|
|---|
| 1380 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 1381 | else
|
|---|
| 1382 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1383 | ac_dummy="$PATH"
|
|---|
| 1384 | for ac_dir in $ac_dummy; do
|
|---|
| 1385 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1386 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1387 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1388 | ac_cv_prog_RANLIB="ranlib"
|
|---|
| 1389 | break
|
|---|
| 1390 | fi
|
|---|
| 1391 | done
|
|---|
| 1392 | IFS="$ac_save_ifs"
|
|---|
| 1393 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|---|
| 1394 | fi
|
|---|
| 1395 | fi
|
|---|
| 1396 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 1397 | if test -n "$RANLIB"; then
|
|---|
| 1398 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 1399 | else
|
|---|
| 1400 | echo "$ac_t""no" 1>&6
|
|---|
| 1401 | fi
|
|---|
| 1402 |
|
|---|
| 1403 | else
|
|---|
| 1404 | RANLIB=":"
|
|---|
| 1405 | fi
|
|---|
| 1406 | fi
|
|---|
| 1407 |
|
|---|
| 1408 |
|
|---|
| 1409 | # Check whether --enable-shared or --disable-shared was given.
|
|---|
| 1410 | if test "${enable_shared+set}" = set; then
|
|---|
| 1411 | enableval="$enable_shared"
|
|---|
| 1412 | p=${PACKAGE-default}
|
|---|
| 1413 | case "$enableval" in
|
|---|
| 1414 | yes) enable_shared=yes ;;
|
|---|
| 1415 | no) enable_shared=no ;;
|
|---|
| 1416 | *)
|
|---|
| 1417 | enable_shared=no
|
|---|
| 1418 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 1419 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 1420 | for pkg in $enableval; do
|
|---|
| 1421 | if test "X$pkg" = "X$p"; then
|
|---|
| 1422 | enable_shared=yes
|
|---|
| 1423 | fi
|
|---|
| 1424 | done
|
|---|
| 1425 | IFS="$ac_save_ifs"
|
|---|
| 1426 | ;;
|
|---|
| 1427 | esac
|
|---|
| 1428 | else
|
|---|
| 1429 | enable_shared=no
|
|---|
| 1430 | fi
|
|---|
| 1431 |
|
|---|
| 1432 |
|
|---|
| 1433 | # Check whether --enable-static or --disable-static was given.
|
|---|
| 1434 | if test "${enable_static+set}" = set; then
|
|---|
| 1435 | enableval="$enable_static"
|
|---|
| 1436 | p=${PACKAGE-default}
|
|---|
| 1437 | case "$enableval" in
|
|---|
| 1438 | yes) enable_static=yes ;;
|
|---|
| 1439 | no) enable_static=no ;;
|
|---|
| 1440 | *)
|
|---|
| 1441 | enable_static=no
|
|---|
| 1442 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 1443 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 1444 | for pkg in $enableval; do
|
|---|
| 1445 | if test "X$pkg" = "X$p"; then
|
|---|
| 1446 | enable_static=yes
|
|---|
| 1447 | fi
|
|---|
| 1448 | done
|
|---|
| 1449 | IFS="$ac_save_ifs"
|
|---|
| 1450 | ;;
|
|---|
| 1451 | esac
|
|---|
| 1452 | else
|
|---|
| 1453 | enable_static=yes
|
|---|
| 1454 | fi
|
|---|
| 1455 |
|
|---|
| 1456 | # Check whether --enable-fast-install or --disable-fast-install was given.
|
|---|
| 1457 | if test "${enable_fast_install+set}" = set; then
|
|---|
| 1458 | enableval="$enable_fast_install"
|
|---|
| 1459 | p=${PACKAGE-default}
|
|---|
| 1460 | case "$enableval" in
|
|---|
| 1461 | yes) enable_fast_install=yes ;;
|
|---|
| 1462 | no) enable_fast_install=no ;;
|
|---|
| 1463 | *)
|
|---|
| 1464 | enable_fast_install=no
|
|---|
| 1465 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 1466 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 1467 | for pkg in $enableval; do
|
|---|
| 1468 | if test "X$pkg" = "X$p"; then
|
|---|
| 1469 | enable_fast_install=yes
|
|---|
| 1470 | fi
|
|---|
| 1471 | done
|
|---|
| 1472 | IFS="$ac_save_ifs"
|
|---|
| 1473 | ;;
|
|---|
| 1474 | esac
|
|---|
| 1475 | else
|
|---|
| 1476 | enable_fast_install=yes
|
|---|
| 1477 | fi
|
|---|
| 1478 |
|
|---|
| 1479 | # Check whether --with-gnu-ld or --without-gnu-ld was given.
|
|---|
| 1480 | if test "${with_gnu_ld+set}" = set; then
|
|---|
| 1481 | withval="$with_gnu_ld"
|
|---|
| 1482 | test "$withval" = no || with_gnu_ld=yes
|
|---|
| 1483 | else
|
|---|
| 1484 | with_gnu_ld=no
|
|---|
| 1485 | fi
|
|---|
| 1486 |
|
|---|
| 1487 | ac_prog=ld
|
|---|
| 1488 | if test "$ac_cv_prog_gcc" = yes; then
|
|---|
| 1489 | # Check if gcc -print-prog-name=ld gives a path.
|
|---|
| 1490 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
|
|---|
| 1491 | echo "configure:1492: checking for ld used by GCC" >&5
|
|---|
| 1492 | case $host in
|
|---|
| 1493 | *-*-mingw*)
|
|---|
| 1494 | # gcc leaves a trailing carriage return which upsets mingw
|
|---|
| 1495 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
|---|
| 1496 | *)
|
|---|
| 1497 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
|---|
| 1498 | esac
|
|---|
| 1499 | case "$ac_prog" in
|
|---|
| 1500 | # Accept absolute paths.
|
|---|
| 1501 | [\\/]* | [A-Za-z]:[\\/]*)
|
|---|
| 1502 | re_direlt='/[^/][^/]*/\.\./'
|
|---|
| 1503 | # Canonicalize the path of ld
|
|---|
| 1504 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
|
|---|
| 1505 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
|---|
| 1506 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
|---|
| 1507 | done
|
|---|
| 1508 | test -z "$LD" && LD="$ac_prog"
|
|---|
| 1509 | ;;
|
|---|
| 1510 | "")
|
|---|
| 1511 | # If it fails, then pretend we aren't using GCC.
|
|---|
| 1512 | ac_prog=ld
|
|---|
| 1513 | ;;
|
|---|
| 1514 | *)
|
|---|
| 1515 | # If it is relative, then search for the first ld in PATH.
|
|---|
| 1516 | with_gnu_ld=unknown
|
|---|
| 1517 | ;;
|
|---|
| 1518 | esac
|
|---|
| 1519 | elif test "$with_gnu_ld" = yes; then
|
|---|
| 1520 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
|
|---|
| 1521 | echo "configure:1522: checking for GNU ld" >&5
|
|---|
| 1522 | else
|
|---|
| 1523 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
|
|---|
| 1524 | echo "configure:1525: checking for non-GNU ld" >&5
|
|---|
| 1525 | fi
|
|---|
| 1526 | if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
|
|---|
| 1527 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1528 | else
|
|---|
| 1529 | if test -z "$LD"; then
|
|---|
| 1530 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
|---|
| 1531 | for ac_dir in $PATH; do
|
|---|
| 1532 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1533 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
|---|
| 1534 | ac_cv_path_LD="$ac_dir/$ac_prog"
|
|---|
| 1535 | # Check to see if the program is GNU ld. I'd rather use --version,
|
|---|
| 1536 | # but apparently some GNU ld's only accept -v.
|
|---|
| 1537 | # Break only if it was the GNU/non-GNU ld that we prefer.
|
|---|
| 1538 | if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
|---|
| 1539 | test "$with_gnu_ld" != no && break
|
|---|
| 1540 | else
|
|---|
| 1541 | test "$with_gnu_ld" != yes && break
|
|---|
| 1542 | fi
|
|---|
| 1543 | fi
|
|---|
| 1544 | done
|
|---|
| 1545 | IFS="$ac_save_ifs"
|
|---|
| 1546 | else
|
|---|
| 1547 | ac_cv_path_LD="$LD" # Let the user override the test with a path.
|
|---|
| 1548 | fi
|
|---|
| 1549 | fi
|
|---|
| 1550 |
|
|---|
| 1551 | LD="$ac_cv_path_LD"
|
|---|
| 1552 | if test -n "$LD"; then
|
|---|
| 1553 | echo "$ac_t""$LD" 1>&6
|
|---|
| 1554 | else
|
|---|
| 1555 | echo "$ac_t""no" 1>&6
|
|---|
| 1556 | fi
|
|---|
| 1557 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
|
|---|
| 1558 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
|
|---|
| 1559 | echo "configure:1560: checking if the linker ($LD) is GNU ld" >&5
|
|---|
| 1560 | if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
|
|---|
| 1561 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1562 | else
|
|---|
| 1563 | # I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
|---|
| 1564 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
|---|
| 1565 | ac_cv_prog_gnu_ld=yes
|
|---|
| 1566 | else
|
|---|
| 1567 | ac_cv_prog_gnu_ld=no
|
|---|
| 1568 | fi
|
|---|
| 1569 | fi
|
|---|
| 1570 |
|
|---|
| 1571 | echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
|
|---|
| 1572 | with_gnu_ld=$ac_cv_prog_gnu_ld
|
|---|
| 1573 |
|
|---|
| 1574 |
|
|---|
| 1575 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
|
|---|
| 1576 | echo "configure:1577: checking for $LD option to reload object files" >&5
|
|---|
| 1577 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
|
|---|
| 1578 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1579 | else
|
|---|
| 1580 | lt_cv_ld_reload_flag='-r'
|
|---|
| 1581 | fi
|
|---|
| 1582 |
|
|---|
| 1583 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
|
|---|
| 1584 | reload_flag=$lt_cv_ld_reload_flag
|
|---|
| 1585 | test -n "$reload_flag" && reload_flag=" $reload_flag"
|
|---|
| 1586 |
|
|---|
| 1587 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
|
|---|
| 1588 | echo "configure:1589: checking for BSD-compatible nm" >&5
|
|---|
| 1589 | if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
|
|---|
| 1590 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1591 | else
|
|---|
| 1592 | if test -n "$NM"; then
|
|---|
| 1593 | # Let the user override the test.
|
|---|
| 1594 | ac_cv_path_NM="$NM"
|
|---|
| 1595 | else
|
|---|
| 1596 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
|---|
| 1597 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
|
|---|
| 1598 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1599 | tmp_nm=$ac_dir/${ac_tool_prefix}nm
|
|---|
| 1600 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
|
|---|
| 1601 | # Check to see if the nm accepts a BSD-compat flag.
|
|---|
| 1602 | # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
|---|
| 1603 | # nm: unknown option "B" ignored
|
|---|
| 1604 | # Tru64's nm complains that /dev/null is an invalid object file
|
|---|
| 1605 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
|
|---|
| 1606 | ac_cv_path_NM="$tmp_nm -B"
|
|---|
| 1607 | break
|
|---|
| 1608 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
|
|---|
| 1609 | ac_cv_path_NM="$tmp_nm -p"
|
|---|
| 1610 | break
|
|---|
| 1611 | else
|
|---|
| 1612 | ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
|
|---|
| 1613 | continue # so that we can try to find one that supports BSD flags
|
|---|
| 1614 | fi
|
|---|
| 1615 | fi
|
|---|
| 1616 | done
|
|---|
| 1617 | IFS="$ac_save_ifs"
|
|---|
| 1618 | test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
|
|---|
| 1619 | fi
|
|---|
| 1620 | fi
|
|---|
| 1621 |
|
|---|
| 1622 | NM="$ac_cv_path_NM"
|
|---|
| 1623 | echo "$ac_t""$NM" 1>&6
|
|---|
| 1624 |
|
|---|
| 1625 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
|---|
| 1626 | echo "configure:1627: checking whether ln -s works" >&5
|
|---|
| 1627 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
|
|---|
| 1628 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1629 | else
|
|---|
| 1630 | rm -f conftestdata
|
|---|
| 1631 | if ln -s X conftestdata 2>/dev/null
|
|---|
| 1632 | then
|
|---|
| 1633 | rm -f conftestdata
|
|---|
| 1634 | ac_cv_prog_LN_S="ln -s"
|
|---|
| 1635 | else
|
|---|
| 1636 | echo A > conftestdata;
|
|---|
| 1637 | if ln conftestdata conftestdata2 2>/dev/null; then
|
|---|
| 1638 | ac_cv_prog_LN_S=ln
|
|---|
| 1639 | else
|
|---|
| 1640 | ac_cv_prog_LN_S=cp
|
|---|
| 1641 | fi
|
|---|
| 1642 | fi
|
|---|
| 1643 | rm -f conftestdata*
|
|---|
| 1644 | fi
|
|---|
| 1645 | LN_S="$ac_cv_prog_LN_S"
|
|---|
| 1646 | if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
|---|
| 1647 | echo "$ac_t""yes" 1>&6
|
|---|
| 1648 | else
|
|---|
| 1649 | echo "$ac_t""no" 1>&6
|
|---|
| 1650 | fi
|
|---|
| 1651 |
|
|---|
| 1652 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
|
|---|
| 1653 | echo "configure:1654: checking how to recognise dependant libraries" >&5
|
|---|
| 1654 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
|
|---|
| 1655 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1656 | else
|
|---|
| 1657 | lt_cv_file_magic_cmd='$MAGIC_CMD'
|
|---|
| 1658 | lt_cv_file_magic_test_file=
|
|---|
| 1659 | lt_cv_deplibs_check_method='unknown'
|
|---|
| 1660 | # Need to set the preceding variable on all platforms that support
|
|---|
| 1661 | # interlibrary dependencies.
|
|---|
| 1662 | # 'none' -- dependencies not supported.
|
|---|
| 1663 | # `unknown' -- same as none, but documents that we really don't know.
|
|---|
| 1664 | # 'pass_all' -- all dependencies passed with no checks.
|
|---|
| 1665 | # 'test_compile' -- check by making test program.
|
|---|
| 1666 | # 'file_magic [regex]' -- check by looking for files in library path
|
|---|
| 1667 | # which responds to the $file_magic_cmd with a given egrep regex.
|
|---|
| 1668 | # If you have `file' or equivalent on your system and you're not sure
|
|---|
| 1669 | # whether `pass_all' will *always* work, you probably want this one.
|
|---|
| 1670 |
|
|---|
| 1671 | case "$host_os" in
|
|---|
| 1672 | aix4*)
|
|---|
| 1673 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1674 | ;;
|
|---|
| 1675 |
|
|---|
| 1676 | beos*)
|
|---|
| 1677 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1678 | ;;
|
|---|
| 1679 |
|
|---|
| 1680 | bsdi4*)
|
|---|
| 1681 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
|---|
| 1682 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
|---|
| 1683 | lt_cv_file_magic_test_file=/shlib/libc.so
|
|---|
| 1684 | ;;
|
|---|
| 1685 |
|
|---|
| 1686 | cygwin* | mingw* |pw32*)
|
|---|
| 1687 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
|---|
| 1688 | lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|---|
| 1689 | ;;
|
|---|
| 1690 |
|
|---|
| 1691 | freebsd* )
|
|---|
| 1692 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
|---|
| 1693 | case "$host_cpu" in
|
|---|
| 1694 | i*86 )
|
|---|
| 1695 | # Not sure whether the presence of OpenBSD here was a mistake.
|
|---|
| 1696 | # Let's accept both of them until this is cleared up.
|
|---|
| 1697 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
|
|---|
| 1698 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1699 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
|---|
| 1700 | ;;
|
|---|
| 1701 | esac
|
|---|
| 1702 | else
|
|---|
| 1703 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1704 | fi
|
|---|
| 1705 | ;;
|
|---|
| 1706 |
|
|---|
| 1707 | gnu*)
|
|---|
| 1708 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1709 | ;;
|
|---|
| 1710 |
|
|---|
| 1711 | hpux10.20*)
|
|---|
| 1712 | # TODO: Does this work for hpux-11 too?
|
|---|
| 1713 | lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
|
|---|
| 1714 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1715 | lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
|---|
| 1716 | ;;
|
|---|
| 1717 |
|
|---|
| 1718 | irix5* | irix6*)
|
|---|
| 1719 | case "$host_os" in
|
|---|
| 1720 | irix5*)
|
|---|
| 1721 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 1722 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
|
|---|
| 1723 | ;;
|
|---|
| 1724 | *)
|
|---|
| 1725 | case "$LD" in
|
|---|
| 1726 | *-32|*"-32 ") libmagic=32-bit;;
|
|---|
| 1727 | *-n32|*"-n32 ") libmagic=N32;;
|
|---|
| 1728 | *-64|*"-64 ") libmagic=64-bit;;
|
|---|
| 1729 | *) libmagic=never-match;;
|
|---|
| 1730 | esac
|
|---|
| 1731 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 1732 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
|
|---|
| 1733 | ;;
|
|---|
| 1734 | esac
|
|---|
| 1735 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
|
|---|
| 1736 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1737 | ;;
|
|---|
| 1738 |
|
|---|
| 1739 | # This must be Linux ELF.
|
|---|
| 1740 | linux-gnu*)
|
|---|
| 1741 | case "$host_cpu" in
|
|---|
| 1742 | alpha* | i*86 | powerpc* | sparc* | ia64* )
|
|---|
| 1743 | lt_cv_deplibs_check_method=pass_all ;;
|
|---|
| 1744 | *)
|
|---|
| 1745 | # glibc up to 2.1.1 does not perform some relocations on ARM
|
|---|
| 1746 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
|
|---|
| 1747 | esac
|
|---|
| 1748 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
|---|
| 1749 | ;;
|
|---|
| 1750 |
|
|---|
| 1751 | netbsd*)
|
|---|
| 1752 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
|
|---|
| 1753 | else
|
|---|
| 1754 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
|
|---|
| 1755 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
|---|
| 1756 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
|---|
| 1757 | fi
|
|---|
| 1758 | ;;
|
|---|
| 1759 |
|
|---|
| 1760 | osf3* | osf4* | osf5*)
|
|---|
| 1761 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 1762 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
|
|---|
| 1763 | lt_cv_file_magic_test_file=/shlib/libc.so
|
|---|
| 1764 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1765 | ;;
|
|---|
| 1766 |
|
|---|
| 1767 | sco3.2v5*)
|
|---|
| 1768 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1769 | ;;
|
|---|
| 1770 |
|
|---|
| 1771 | solaris*)
|
|---|
| 1772 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1773 | lt_cv_file_magic_test_file=/lib/libc.so
|
|---|
| 1774 | ;;
|
|---|
| 1775 |
|
|---|
| 1776 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
|---|
| 1777 | case "$host_vendor" in
|
|---|
| 1778 | ncr)
|
|---|
| 1779 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1780 | ;;
|
|---|
| 1781 | motorola)
|
|---|
| 1782 | 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]'
|
|---|
| 1783 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
|---|
| 1784 | ;;
|
|---|
| 1785 | esac
|
|---|
| 1786 | ;;
|
|---|
| 1787 | esac
|
|---|
| 1788 |
|
|---|
| 1789 | fi
|
|---|
| 1790 |
|
|---|
| 1791 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
|
|---|
| 1792 | file_magic_cmd=$lt_cv_file_magic_cmd
|
|---|
| 1793 | deplibs_check_method=$lt_cv_deplibs_check_method
|
|---|
| 1794 |
|
|---|
| 1795 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6
|
|---|
| 1796 | echo "configure:1797: checking for object suffix" >&5
|
|---|
| 1797 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
|
|---|
| 1798 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1799 | else
|
|---|
| 1800 | rm -f conftest*
|
|---|
| 1801 | echo 'int i = 1;' > conftest.$ac_ext
|
|---|
| 1802 | if { (eval echo configure:1803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 1803 | for ac_file in conftest.*; do
|
|---|
| 1804 | case $ac_file in
|
|---|
| 1805 | *.c) ;;
|
|---|
| 1806 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
|
|---|
| 1807 | esac
|
|---|
| 1808 | done
|
|---|
| 1809 | else
|
|---|
| 1810 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
|
|---|
| 1811 | fi
|
|---|
| 1812 | rm -f conftest*
|
|---|
| 1813 | fi
|
|---|
| 1814 |
|
|---|
| 1815 | echo "$ac_t""$ac_cv_objext" 1>&6
|
|---|
| 1816 | OBJEXT=$ac_cv_objext
|
|---|
| 1817 | ac_objext=$ac_cv_objext
|
|---|
| 1818 |
|
|---|
| 1819 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
|
|---|
| 1820 |
|
|---|
| 1821 | # Only perform the check for file, if the check method requires it
|
|---|
| 1822 | case "$deplibs_check_method" in
|
|---|
| 1823 | file_magic*)
|
|---|
| 1824 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
|---|
| 1825 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
|
|---|
| 1826 | echo "configure:1827: checking for ${ac_tool_prefix}file" >&5
|
|---|
| 1827 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
|---|
| 1828 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1829 | else
|
|---|
| 1830 | case "$MAGIC_CMD" in
|
|---|
| 1831 | /*)
|
|---|
| 1832 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
|---|
| 1833 | ;;
|
|---|
| 1834 | ?:/*)
|
|---|
| 1835 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
|---|
| 1836 | ;;
|
|---|
| 1837 | *)
|
|---|
| 1838 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
|---|
| 1839 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 1840 | ac_dummy="/usr/bin:$PATH"
|
|---|
| 1841 | for ac_dir in $ac_dummy; do
|
|---|
| 1842 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1843 | if test -f $ac_dir/${ac_tool_prefix}file; then
|
|---|
| 1844 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
|
|---|
| 1845 | if test -n "$file_magic_test_file"; then
|
|---|
| 1846 | case "$deplibs_check_method" in
|
|---|
| 1847 | "file_magic "*)
|
|---|
| 1848 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
|---|
| 1849 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1850 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
|---|
| 1851 | egrep "$file_magic_regex" > /dev/null; then
|
|---|
| 1852 | :
|
|---|
| 1853 | else
|
|---|
| 1854 | cat <<EOF 1>&2
|
|---|
| 1855 |
|
|---|
| 1856 | *** Warning: the command libtool uses to detect shared libraries,
|
|---|
| 1857 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
|---|
| 1858 | *** The result is that libtool may fail to recognize shared libraries
|
|---|
| 1859 | *** as such. This will affect the creation of libtool libraries that
|
|---|
| 1860 | *** depend on shared libraries, but programs linked with such libtool
|
|---|
| 1861 | *** libraries will work regardless of this problem. Nevertheless, you
|
|---|
| 1862 | *** may want to report the problem to your system manager and/or to
|
|---|
| 1863 | *** bug-libtool@gnu.org
|
|---|
| 1864 |
|
|---|
| 1865 | EOF
|
|---|
| 1866 | fi ;;
|
|---|
| 1867 | esac
|
|---|
| 1868 | fi
|
|---|
| 1869 | break
|
|---|
| 1870 | fi
|
|---|
| 1871 | done
|
|---|
| 1872 | IFS="$ac_save_ifs"
|
|---|
| 1873 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
|---|
| 1874 | ;;
|
|---|
| 1875 | esac
|
|---|
| 1876 | fi
|
|---|
| 1877 |
|
|---|
| 1878 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1879 | if test -n "$MAGIC_CMD"; then
|
|---|
| 1880 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
|---|
| 1881 | else
|
|---|
| 1882 | echo "$ac_t""no" 1>&6
|
|---|
| 1883 | fi
|
|---|
| 1884 |
|
|---|
| 1885 | if test -z "$lt_cv_path_MAGIC_CMD"; then
|
|---|
| 1886 | if test -n "$ac_tool_prefix"; then
|
|---|
| 1887 | echo $ac_n "checking for file""... $ac_c" 1>&6
|
|---|
| 1888 | echo "configure:1889: checking for file" >&5
|
|---|
| 1889 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
|---|
| 1890 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1891 | else
|
|---|
| 1892 | case "$MAGIC_CMD" in
|
|---|
| 1893 | /*)
|
|---|
| 1894 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
|---|
| 1895 | ;;
|
|---|
| 1896 | ?:/*)
|
|---|
| 1897 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
|---|
| 1898 | ;;
|
|---|
| 1899 | *)
|
|---|
| 1900 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
|---|
| 1901 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 1902 | ac_dummy="/usr/bin:$PATH"
|
|---|
| 1903 | for ac_dir in $ac_dummy; do
|
|---|
| 1904 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1905 | if test -f $ac_dir/file; then
|
|---|
| 1906 | lt_cv_path_MAGIC_CMD="$ac_dir/file"
|
|---|
| 1907 | if test -n "$file_magic_test_file"; then
|
|---|
| 1908 | case "$deplibs_check_method" in
|
|---|
| 1909 | "file_magic "*)
|
|---|
| 1910 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
|---|
| 1911 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1912 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
|---|
| 1913 | egrep "$file_magic_regex" > /dev/null; then
|
|---|
| 1914 | :
|
|---|
| 1915 | else
|
|---|
| 1916 | cat <<EOF 1>&2
|
|---|
| 1917 |
|
|---|
| 1918 | *** Warning: the command libtool uses to detect shared libraries,
|
|---|
| 1919 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
|---|
| 1920 | *** The result is that libtool may fail to recognize shared libraries
|
|---|
| 1921 | *** as such. This will affect the creation of libtool libraries that
|
|---|
| 1922 | *** depend on shared libraries, but programs linked with such libtool
|
|---|
| 1923 | *** libraries will work regardless of this problem. Nevertheless, you
|
|---|
| 1924 | *** may want to report the problem to your system manager and/or to
|
|---|
| 1925 | *** bug-libtool@gnu.org
|
|---|
| 1926 |
|
|---|
| 1927 | EOF
|
|---|
| 1928 | fi ;;
|
|---|
| 1929 | esac
|
|---|
| 1930 | fi
|
|---|
| 1931 | break
|
|---|
| 1932 | fi
|
|---|
| 1933 | done
|
|---|
| 1934 | IFS="$ac_save_ifs"
|
|---|
| 1935 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
|---|
| 1936 | ;;
|
|---|
| 1937 | esac
|
|---|
| 1938 | fi
|
|---|
| 1939 |
|
|---|
| 1940 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1941 | if test -n "$MAGIC_CMD"; then
|
|---|
| 1942 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
|---|
| 1943 | else
|
|---|
| 1944 | echo "$ac_t""no" 1>&6
|
|---|
| 1945 | fi
|
|---|
| 1946 |
|
|---|
| 1947 | else
|
|---|
| 1948 | MAGIC_CMD=:
|
|---|
| 1949 | fi
|
|---|
| 1950 | fi
|
|---|
| 1951 |
|
|---|
| 1952 | fi
|
|---|
| 1953 | ;;
|
|---|
| 1954 | esac
|
|---|
| 1955 |
|
|---|
| 1956 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
|---|
| 1957 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
|---|
| 1958 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1959 | echo "configure:1960: checking for $ac_word" >&5
|
|---|
| 1960 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 1961 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1962 | else
|
|---|
| 1963 | if test -n "$RANLIB"; then
|
|---|
| 1964 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 1965 | else
|
|---|
| 1966 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1967 | ac_dummy="$PATH"
|
|---|
| 1968 | for ac_dir in $ac_dummy; do
|
|---|
| 1969 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1970 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1971 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1972 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
|---|
| 1973 | break
|
|---|
| 1974 | fi
|
|---|
| 1975 | done
|
|---|
| 1976 | IFS="$ac_save_ifs"
|
|---|
| 1977 | fi
|
|---|
| 1978 | fi
|
|---|
| 1979 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 1980 | if test -n "$RANLIB"; then
|
|---|
| 1981 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 1982 | else
|
|---|
| 1983 | echo "$ac_t""no" 1>&6
|
|---|
| 1984 | fi
|
|---|
| 1985 |
|
|---|
| 1986 |
|
|---|
| 1987 | if test -z "$ac_cv_prog_RANLIB"; then
|
|---|
| 1988 | if test -n "$ac_tool_prefix"; then
|
|---|
| 1989 | # Extract the first word of "ranlib", so it can be a program name with args.
|
|---|
| 1990 | set dummy ranlib; ac_word=$2
|
|---|
| 1991 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1992 | echo "configure:1993: checking for $ac_word" >&5
|
|---|
| 1993 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 1994 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1995 | else
|
|---|
| 1996 | if test -n "$RANLIB"; then
|
|---|
| 1997 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 1998 | else
|
|---|
| 1999 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2000 | ac_dummy="$PATH"
|
|---|
| 2001 | for ac_dir in $ac_dummy; do
|
|---|
| 2002 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2003 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2004 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2005 | ac_cv_prog_RANLIB="ranlib"
|
|---|
| 2006 | break
|
|---|
| 2007 | fi
|
|---|
| 2008 | done
|
|---|
| 2009 | IFS="$ac_save_ifs"
|
|---|
| 2010 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|---|
| 2011 | fi
|
|---|
| 2012 | fi
|
|---|
| 2013 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 2014 | if test -n "$RANLIB"; then
|
|---|
| 2015 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 2016 | else
|
|---|
| 2017 | echo "$ac_t""no" 1>&6
|
|---|
| 2018 | fi
|
|---|
| 2019 |
|
|---|
| 2020 | else
|
|---|
| 2021 | RANLIB=":"
|
|---|
| 2022 | fi
|
|---|
| 2023 | fi
|
|---|
| 2024 |
|
|---|
| 2025 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
|---|
| 2026 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
|---|
| 2027 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2028 | echo "configure:2029: checking for $ac_word" >&5
|
|---|
| 2029 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
|---|
| 2030 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2031 | else
|
|---|
| 2032 | if test -n "$STRIP"; then
|
|---|
| 2033 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
|---|
| 2034 | else
|
|---|
| 2035 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2036 | ac_dummy="$PATH"
|
|---|
| 2037 | for ac_dir in $ac_dummy; do
|
|---|
| 2038 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2039 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2040 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2041 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
|---|
| 2042 | break
|
|---|
| 2043 | fi
|
|---|
| 2044 | done
|
|---|
| 2045 | IFS="$ac_save_ifs"
|
|---|
| 2046 | fi
|
|---|
| 2047 | fi
|
|---|
| 2048 | STRIP="$ac_cv_prog_STRIP"
|
|---|
| 2049 | if test -n "$STRIP"; then
|
|---|
| 2050 | echo "$ac_t""$STRIP" 1>&6
|
|---|
| 2051 | else
|
|---|
| 2052 | echo "$ac_t""no" 1>&6
|
|---|
| 2053 | fi
|
|---|
| 2054 |
|
|---|
| 2055 |
|
|---|
| 2056 | if test -z "$ac_cv_prog_STRIP"; then
|
|---|
| 2057 | if test -n "$ac_tool_prefix"; then
|
|---|
| 2058 | # Extract the first word of "strip", so it can be a program name with args.
|
|---|
| 2059 | set dummy strip; ac_word=$2
|
|---|
| 2060 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2061 | echo "configure:2062: checking for $ac_word" >&5
|
|---|
| 2062 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
|---|
| 2063 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2064 | else
|
|---|
| 2065 | if test -n "$STRIP"; then
|
|---|
| 2066 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
|---|
| 2067 | else
|
|---|
| 2068 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2069 | ac_dummy="$PATH"
|
|---|
| 2070 | for ac_dir in $ac_dummy; do
|
|---|
| 2071 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2072 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2073 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2074 | ac_cv_prog_STRIP="strip"
|
|---|
| 2075 | break
|
|---|
| 2076 | fi
|
|---|
| 2077 | done
|
|---|
| 2078 | IFS="$ac_save_ifs"
|
|---|
| 2079 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
|
|---|
| 2080 | fi
|
|---|
| 2081 | fi
|
|---|
| 2082 | STRIP="$ac_cv_prog_STRIP"
|
|---|
| 2083 | if test -n "$STRIP"; then
|
|---|
| 2084 | echo "$ac_t""$STRIP" 1>&6
|
|---|
| 2085 | else
|
|---|
| 2086 | echo "$ac_t""no" 1>&6
|
|---|
| 2087 | fi
|
|---|
| 2088 |
|
|---|
| 2089 | else
|
|---|
| 2090 | STRIP=":"
|
|---|
| 2091 | fi
|
|---|
| 2092 | fi
|
|---|
| 2093 |
|
|---|
| 2094 |
|
|---|
| 2095 | # Check for any special flags to pass to ltconfig.
|
|---|
| 2096 | libtool_flags="--cache-file=$cache_file"
|
|---|
| 2097 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
|
|---|
| 2098 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
|
|---|
| 2099 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
|
|---|
| 2100 | test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
|
|---|
| 2101 | test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
|
|---|
| 2102 |
|
|---|
| 2103 |
|
|---|
| 2104 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
|
|---|
| 2105 | if test "${enable_libtool_lock+set}" = set; then
|
|---|
| 2106 | enableval="$enable_libtool_lock"
|
|---|
| 2107 | :
|
|---|
| 2108 | fi
|
|---|
| 2109 |
|
|---|
| 2110 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
|
|---|
| 2111 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
|
|---|
| 2112 |
|
|---|
| 2113 | # Check whether --with-pic or --without-pic was given.
|
|---|
| 2114 | if test "${with_pic+set}" = set; then
|
|---|
| 2115 | withval="$with_pic"
|
|---|
| 2116 | pic_mode="$withval"
|
|---|
| 2117 | else
|
|---|
| 2118 | pic_mode=default
|
|---|
| 2119 | fi
|
|---|
| 2120 |
|
|---|
| 2121 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
|
|---|
| 2122 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
|
|---|
| 2123 |
|
|---|
| 2124 | # Some flags need to be propagated to the compiler or linker for good
|
|---|
| 2125 | # libtool support.
|
|---|
| 2126 | case "$host" in
|
|---|
| 2127 | *-*-irix6*)
|
|---|
| 2128 | # Find out which ABI we are using.
|
|---|
| 2129 | echo '#line 2130 "configure"' > conftest.$ac_ext
|
|---|
| 2130 | if { (eval echo configure:2131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 2131 | case "`/usr/bin/file conftest.o`" in
|
|---|
| 2132 | *32-bit*)
|
|---|
| 2133 | LD="${LD-ld} -32"
|
|---|
| 2134 | ;;
|
|---|
| 2135 | *N32*)
|
|---|
| 2136 | LD="${LD-ld} -n32"
|
|---|
| 2137 | ;;
|
|---|
| 2138 | *64-bit*)
|
|---|
| 2139 | LD="${LD-ld} -64"
|
|---|
| 2140 | ;;
|
|---|
| 2141 | esac
|
|---|
| 2142 | fi
|
|---|
| 2143 | rm -rf conftest*
|
|---|
| 2144 | ;;
|
|---|
| 2145 |
|
|---|
| 2146 | *-*-sco3.2v5*)
|
|---|
| 2147 | # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
|---|
| 2148 | SAVE_CFLAGS="$CFLAGS"
|
|---|
| 2149 | CFLAGS="$CFLAGS -belf"
|
|---|
| 2150 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
|
|---|
| 2151 | echo "configure:2152: checking whether the C compiler needs -belf" >&5
|
|---|
| 2152 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
|
|---|
| 2153 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2154 | else
|
|---|
| 2155 |
|
|---|
| 2156 | ac_ext=c
|
|---|
| 2157 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2158 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2159 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2160 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2161 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2162 |
|
|---|
| 2163 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2164 | #line 2165 "configure"
|
|---|
| 2165 | #include "confdefs.h"
|
|---|
| 2166 |
|
|---|
| 2167 | int main() {
|
|---|
| 2168 |
|
|---|
| 2169 | ; return 0; }
|
|---|
| 2170 | EOF
|
|---|
| 2171 | if { (eval echo configure:2172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 2172 | rm -rf conftest*
|
|---|
| 2173 | lt_cv_cc_needs_belf=yes
|
|---|
| 2174 | else
|
|---|
| 2175 | echo "configure: failed program was:" >&5
|
|---|
| 2176 | cat conftest.$ac_ext >&5
|
|---|
| 2177 | rm -rf conftest*
|
|---|
| 2178 | lt_cv_cc_needs_belf=no
|
|---|
| 2179 | fi
|
|---|
| 2180 | rm -f conftest*
|
|---|
| 2181 | ac_ext=c
|
|---|
| 2182 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2183 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2184 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2185 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2186 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2187 |
|
|---|
| 2188 | fi
|
|---|
| 2189 |
|
|---|
| 2190 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
|
|---|
| 2191 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
|---|
| 2192 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
|---|
| 2193 | CFLAGS="$SAVE_CFLAGS"
|
|---|
| 2194 | fi
|
|---|
| 2195 | ;;
|
|---|
| 2196 |
|
|---|
| 2197 |
|
|---|
| 2198 | esac
|
|---|
| 2199 |
|
|---|
| 2200 |
|
|---|
| 2201 | # Save cache, so that ltconfig can load it
|
|---|
| 2202 | cat > confcache <<\EOF
|
|---|
| 2203 | # This file is a shell script that caches the results of configure
|
|---|
| 2204 | # tests run on this system so they can be shared between configure
|
|---|
| 2205 | # scripts and configure runs. It is not useful on other systems.
|
|---|
| 2206 | # If it contains results you don't want to keep, you may remove or edit it.
|
|---|
| 2207 | #
|
|---|
| 2208 | # By default, configure uses ./config.cache as the cache file,
|
|---|
| 2209 | # creating it if it does not exist already. You can give configure
|
|---|
| 2210 | # the --cache-file=FILE option to use a different cache file; that is
|
|---|
| 2211 | # what configure does when it calls configure scripts in
|
|---|
| 2212 | # subdirectories, so they share the cache.
|
|---|
| 2213 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
|---|
| 2214 | # config.status only pays attention to the cache file if you give it the
|
|---|
| 2215 | # --recheck option to rerun configure.
|
|---|
| 2216 | #
|
|---|
| 2217 | EOF
|
|---|
| 2218 | # The following way of writing the cache mishandles newlines in values,
|
|---|
| 2219 | # but we know of no workaround that is simple, portable, and efficient.
|
|---|
| 2220 | # So, don't put newlines in cache variables' values.
|
|---|
| 2221 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
|---|
| 2222 | # and sets the high bit in the cache file unless we assign to the vars.
|
|---|
| 2223 | (set) 2>&1 |
|
|---|
| 2224 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
|---|
| 2225 | *ac_space=\ *)
|
|---|
| 2226 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
|---|
| 2227 | # turns \\\\ into \\, and sed turns \\ into \).
|
|---|
| 2228 | sed -n \
|
|---|
| 2229 | -e "s/'/'\\\\''/g" \
|
|---|
| 2230 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
|---|
| 2231 | ;;
|
|---|
| 2232 | *)
|
|---|
| 2233 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
|---|
| 2234 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
|---|
| 2235 | ;;
|
|---|
| 2236 | esac >> confcache
|
|---|
| 2237 | if cmp -s $cache_file confcache; then
|
|---|
| 2238 | :
|
|---|
| 2239 | else
|
|---|
| 2240 | if test -w $cache_file; then
|
|---|
| 2241 | echo "updating cache $cache_file"
|
|---|
| 2242 | cat confcache > $cache_file
|
|---|
| 2243 | else
|
|---|
| 2244 | echo "not updating unwritable cache $cache_file"
|
|---|
| 2245 | fi
|
|---|
| 2246 | fi
|
|---|
| 2247 | rm -f confcache
|
|---|
| 2248 |
|
|---|
| 2249 |
|
|---|
| 2250 | # Actually configure libtool. ac_aux_dir is where install-sh is found.
|
|---|
| 2251 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
|
|---|
| 2252 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
|
|---|
| 2253 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
|
|---|
| 2254 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
|
|---|
| 2255 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
|
|---|
| 2256 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
|
|---|
| 2257 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
|
|---|
| 2258 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
|
|---|
| 2259 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
|
|---|
| 2260 |
|
|---|
| 2261 | # Reload cache, that may have been modified by ltconfig
|
|---|
| 2262 | if test -r "$cache_file"; then
|
|---|
| 2263 | echo "loading cache $cache_file"
|
|---|
| 2264 | . $cache_file
|
|---|
| 2265 | else
|
|---|
| 2266 | echo "creating cache $cache_file"
|
|---|
| 2267 | > $cache_file
|
|---|
| 2268 | fi
|
|---|
| 2269 |
|
|---|
| 2270 |
|
|---|
| 2271 | # This can be used to rebuild libtool when needed
|
|---|
| 2272 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
|
|---|
| 2273 |
|
|---|
| 2274 | # Always use our own libtool.
|
|---|
| 2275 | LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
|---|
| 2276 |
|
|---|
| 2277 | # Redirect the config.log output again, so that the ltconfig log is not
|
|---|
| 2278 | # clobbered by the next message.
|
|---|
| 2279 | exec 5>>./config.log
|
|---|
| 2280 |
|
|---|
| 2281 |
|
|---|
| 2282 |
|
|---|
| 2283 |
|
|---|
| 2284 |
|
|---|
| 2285 |
|
|---|
| 2286 |
|
|---|
| 2287 |
|
|---|
| 2288 | # Check whether --enable-targets or --disable-targets was given.
|
|---|
| 2289 | if test "${enable_targets+set}" = set; then
|
|---|
| 2290 | enableval="$enable_targets"
|
|---|
| 2291 | case "${enableval}" in
|
|---|
| 2292 | yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
|
|---|
| 2293 | ;;
|
|---|
| 2294 | no) enable_targets= ;;
|
|---|
| 2295 | *) enable_targets=$enableval ;;
|
|---|
| 2296 | esac
|
|---|
| 2297 | fi
|
|---|
| 2298 | # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
|
|---|
| 2299 | if test "${enable_commonbfdlib+set}" = set; then
|
|---|
| 2300 | enableval="$enable_commonbfdlib"
|
|---|
| 2301 | case "${enableval}" in
|
|---|
| 2302 | yes) commonbfdlib=true ;;
|
|---|
| 2303 | no) commonbfdlib=false ;;
|
|---|
| 2304 | *) { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;;
|
|---|
| 2305 | esac
|
|---|
| 2306 | fi
|
|---|
| 2307 |
|
|---|
| 2308 | build_warnings="-W -Wall"
|
|---|
| 2309 | # Check whether --enable-build-warnings or --disable-build-warnings was given.
|
|---|
| 2310 | if test "${enable_build_warnings+set}" = set; then
|
|---|
| 2311 | enableval="$enable_build_warnings"
|
|---|
| 2312 | case "${enableval}" in
|
|---|
| 2313 | yes) ;;
|
|---|
| 2314 | no) build_warnings="-w";;
|
|---|
| 2315 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
|---|
| 2316 | build_warnings="${build_warnings} ${t}";;
|
|---|
| 2317 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
|---|
| 2318 | build_warnings="${t} ${build_warnings}";;
|
|---|
| 2319 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
|
|---|
| 2320 | esac
|
|---|
| 2321 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
|
|---|
| 2322 | echo "Setting warning flags = $build_warnings" 6>&1
|
|---|
| 2323 | fi
|
|---|
| 2324 | fi
|
|---|
| 2325 | WARN_CFLAGS=""
|
|---|
| 2326 | if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
|
|---|
| 2327 | WARN_CFLAGS="${build_warnings}"
|
|---|
| 2328 | fi
|
|---|
| 2329 |
|
|---|
| 2330 |
|
|---|
| 2331 |
|
|---|
| 2332 |
|
|---|
| 2333 |
|
|---|
| 2334 |
|
|---|
| 2335 | if test -z "$target" ; then
|
|---|
| 2336 | { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
|
|---|
| 2337 | fi
|
|---|
| 2338 | if test "$program_transform_name" = s,x,x,; then
|
|---|
| 2339 | program_transform_name=
|
|---|
| 2340 | else
|
|---|
| 2341 | # Double any \ or $. echo might interpret backslashes.
|
|---|
| 2342 | cat <<\EOF_SED > conftestsed
|
|---|
| 2343 | s,\\,\\\\,g; s,\$,$$,g
|
|---|
| 2344 | EOF_SED
|
|---|
| 2345 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
|---|
| 2346 | rm -f conftestsed
|
|---|
| 2347 | fi
|
|---|
| 2348 | test "$program_prefix" != NONE &&
|
|---|
| 2349 | program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
|---|
| 2350 | # Use a double $ so make ignores it.
|
|---|
| 2351 | test "$program_suffix" != NONE &&
|
|---|
| 2352 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
|---|
| 2353 |
|
|---|
| 2354 | # sed with no file args requires a program.
|
|---|
| 2355 | test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
|---|
| 2356 |
|
|---|
| 2357 |
|
|---|
| 2358 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
|
|---|
| 2359 | echo "configure:2360: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
|---|
| 2360 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
|
|---|
| 2361 | if test "${enable_maintainer_mode+set}" = set; then
|
|---|
| 2362 | enableval="$enable_maintainer_mode"
|
|---|
| 2363 | USE_MAINTAINER_MODE=$enableval
|
|---|
| 2364 | else
|
|---|
| 2365 | USE_MAINTAINER_MODE=no
|
|---|
| 2366 | fi
|
|---|
| 2367 |
|
|---|
| 2368 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
|
|---|
| 2369 |
|
|---|
| 2370 |
|
|---|
| 2371 | if test $USE_MAINTAINER_MODE = yes; then
|
|---|
| 2372 | MAINTAINER_MODE_TRUE=
|
|---|
| 2373 | MAINTAINER_MODE_FALSE='#'
|
|---|
| 2374 | else
|
|---|
| 2375 | MAINTAINER_MODE_TRUE='#'
|
|---|
| 2376 | MAINTAINER_MODE_FALSE=
|
|---|
| 2377 | fi
|
|---|
| 2378 | MAINT=$MAINTAINER_MODE_TRUE
|
|---|
| 2379 |
|
|---|
| 2380 |
|
|---|
| 2381 |
|
|---|
| 2382 |
|
|---|
| 2383 |
|
|---|
| 2384 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
|---|
| 2385 | echo "configure:2386: checking for executable suffix" >&5
|
|---|
| 2386 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
|---|
| 2387 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2388 | else
|
|---|
| 2389 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
|---|
| 2390 | ac_cv_exeext=.exe
|
|---|
| 2391 | else
|
|---|
| 2392 | rm -f conftest*
|
|---|
| 2393 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
|---|
| 2394 | ac_cv_exeext=
|
|---|
| 2395 | if { (eval echo configure:2396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
|---|
| 2396 | for file in conftest.*; do
|
|---|
| 2397 | case $file in
|
|---|
| 2398 | *.c | *.o | *.obj) ;;
|
|---|
| 2399 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
|---|
| 2400 | esac
|
|---|
| 2401 | done
|
|---|
| 2402 | else
|
|---|
| 2403 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 2404 | fi
|
|---|
| 2405 | rm -f conftest*
|
|---|
| 2406 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
|---|
| 2407 | fi
|
|---|
| 2408 | fi
|
|---|
| 2409 |
|
|---|
| 2410 | EXEEXT=""
|
|---|
| 2411 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
|---|
| 2412 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
|---|
| 2413 | ac_exeext=$EXEEXT
|
|---|
| 2414 |
|
|---|
| 2415 |
|
|---|
| 2416 | # host-specific stuff:
|
|---|
| 2417 |
|
|---|
| 2418 | # Extract the first word of "gcc", so it can be a program name with args.
|
|---|
| 2419 | set dummy gcc; ac_word=$2
|
|---|
| 2420 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2421 | echo "configure:2422: checking for $ac_word" >&5
|
|---|
| 2422 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 2423 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2424 | else
|
|---|
| 2425 | if test -n "$CC"; then
|
|---|
| 2426 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 2427 | else
|
|---|
| 2428 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2429 | ac_dummy="$PATH"
|
|---|
| 2430 | for ac_dir in $ac_dummy; do
|
|---|
| 2431 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2432 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2433 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2434 | ac_cv_prog_CC="gcc"
|
|---|
| 2435 | break
|
|---|
| 2436 | fi
|
|---|
| 2437 | done
|
|---|
| 2438 | IFS="$ac_save_ifs"
|
|---|
| 2439 | fi
|
|---|
| 2440 | fi
|
|---|
| 2441 | CC="$ac_cv_prog_CC"
|
|---|
| 2442 | if test -n "$CC"; then
|
|---|
| 2443 | echo "$ac_t""$CC" 1>&6
|
|---|
| 2444 | else
|
|---|
| 2445 | echo "$ac_t""no" 1>&6
|
|---|
| 2446 | fi
|
|---|
| 2447 |
|
|---|
| 2448 | if test -z "$CC"; then
|
|---|
| 2449 | # Extract the first word of "cc", so it can be a program name with args.
|
|---|
| 2450 | set dummy cc; ac_word=$2
|
|---|
| 2451 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2452 | echo "configure:2453: checking for $ac_word" >&5
|
|---|
| 2453 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 2454 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2455 | else
|
|---|
| 2456 | if test -n "$CC"; then
|
|---|
| 2457 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 2458 | else
|
|---|
| 2459 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2460 | ac_prog_rejected=no
|
|---|
| 2461 | ac_dummy="$PATH"
|
|---|
| 2462 | for ac_dir in $ac_dummy; do
|
|---|
| 2463 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2464 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2465 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2466 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
|
|---|
| 2467 | "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
|
|---|
| 2468 | ac_prog_rejected=yes
|
|---|
| 2469 | continue
|
|---|
| 2470 | fi
|
|---|
| 2471 | ac_cv_prog_CC="cc"
|
|---|
| 2472 | break
|
|---|
| 2473 | fi
|
|---|
| 2474 | done
|
|---|
| 2475 | IFS="$ac_save_ifs"
|
|---|
| 2476 | if test $ac_prog_rejected = yes; then
|
|---|
| 2477 | # We found a bogon in the path, so make sure we never use it.
|
|---|
| 2478 | set dummy $ac_cv_prog_CC
|
|---|
| 2479 | shift
|
|---|
| 2480 | if test $# -gt 0; then
|
|---|
| 2481 | # We chose a different compiler from the bogus one.
|
|---|
| 2482 | # However, it has the same basename, so the bogon will be chosen
|
|---|
| 2483 | # first if we set CC to just the basename; use the full file name.
|
|---|
| 2484 | shift
|
|---|
| 2485 | set dummy "$ac_dir/$ac_word" "$@"
|
|---|
| 2486 | shift
|
|---|
| 2487 | ac_cv_prog_CC="$@"
|
|---|
| 2488 | fi
|
|---|
| 2489 | fi
|
|---|
| 2490 | fi
|
|---|
| 2491 | fi
|
|---|
| 2492 | CC="$ac_cv_prog_CC"
|
|---|
| 2493 | if test -n "$CC"; then
|
|---|
| 2494 | echo "$ac_t""$CC" 1>&6
|
|---|
| 2495 | else
|
|---|
| 2496 | echo "$ac_t""no" 1>&6
|
|---|
| 2497 | fi
|
|---|
| 2498 |
|
|---|
| 2499 | if test -z "$CC"; then
|
|---|
| 2500 | case "`uname -s`" in
|
|---|
| 2501 | *win32* | *WIN32*)
|
|---|
| 2502 | # Extract the first word of "cl", so it can be a program name with args.
|
|---|
| 2503 | set dummy cl; ac_word=$2
|
|---|
| 2504 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2505 | echo "configure:2506: checking for $ac_word" >&5
|
|---|
| 2506 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 2507 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2508 | else
|
|---|
| 2509 | if test -n "$CC"; then
|
|---|
| 2510 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 2511 | else
|
|---|
| 2512 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2513 | ac_dummy="$PATH"
|
|---|
| 2514 | for ac_dir in $ac_dummy; do
|
|---|
| 2515 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2516 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2517 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2518 | ac_cv_prog_CC="cl"
|
|---|
| 2519 | break
|
|---|
| 2520 | fi
|
|---|
| 2521 | done
|
|---|
| 2522 | IFS="$ac_save_ifs"
|
|---|
| 2523 | fi
|
|---|
| 2524 | fi
|
|---|
| 2525 | CC="$ac_cv_prog_CC"
|
|---|
| 2526 | if test -n "$CC"; then
|
|---|
| 2527 | echo "$ac_t""$CC" 1>&6
|
|---|
| 2528 | else
|
|---|
| 2529 | echo "$ac_t""no" 1>&6
|
|---|
| 2530 | fi
|
|---|
| 2531 | ;;
|
|---|
| 2532 | esac
|
|---|
| 2533 | fi
|
|---|
| 2534 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|---|
| 2535 | fi
|
|---|
| 2536 |
|
|---|
| 2537 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|---|
| 2538 | echo "configure:2539: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
|---|
| 2539 |
|
|---|
| 2540 | ac_ext=c
|
|---|
| 2541 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2542 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2543 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2544 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2545 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2546 |
|
|---|
| 2547 | cat > conftest.$ac_ext << EOF
|
|---|
| 2548 |
|
|---|
| 2549 | #line 2550 "configure"
|
|---|
| 2550 | #include "confdefs.h"
|
|---|
| 2551 |
|
|---|
| 2552 | main(){return(0);}
|
|---|
| 2553 | EOF
|
|---|
| 2554 | if { (eval echo configure:2555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 2555 | ac_cv_prog_cc_works=yes
|
|---|
| 2556 | # If we can't run a trivial program, we are probably using a cross compiler.
|
|---|
| 2557 | if (./conftest; exit) 2>/dev/null; then
|
|---|
| 2558 | ac_cv_prog_cc_cross=no
|
|---|
| 2559 | else
|
|---|
| 2560 | ac_cv_prog_cc_cross=yes
|
|---|
| 2561 | fi
|
|---|
| 2562 | else
|
|---|
| 2563 | echo "configure: failed program was:" >&5
|
|---|
| 2564 | cat conftest.$ac_ext >&5
|
|---|
| 2565 | ac_cv_prog_cc_works=no
|
|---|
| 2566 | fi
|
|---|
| 2567 | rm -fr conftest*
|
|---|
| 2568 | ac_ext=c
|
|---|
| 2569 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2570 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2571 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2572 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2573 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2574 |
|
|---|
| 2575 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|---|
| 2576 | if test $ac_cv_prog_cc_works = no; then
|
|---|
| 2577 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 2578 | fi
|
|---|
| 2579 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|---|
| 2580 | echo "configure:2581: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|---|
| 2581 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|---|
| 2582 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2583 |
|
|---|
| 2584 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
|---|
| 2585 | echo "configure:2586: checking whether we are using GNU C" >&5
|
|---|
| 2586 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
|---|
| 2587 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2588 | else
|
|---|
| 2589 | cat > conftest.c <<EOF
|
|---|
| 2590 | #ifdef __GNUC__
|
|---|
| 2591 | yes;
|
|---|
| 2592 | #endif
|
|---|
| 2593 | EOF
|
|---|
| 2594 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|---|
| 2595 | ac_cv_prog_gcc=yes
|
|---|
| 2596 | else
|
|---|
| 2597 | ac_cv_prog_gcc=no
|
|---|
| 2598 | fi
|
|---|
| 2599 | fi
|
|---|
| 2600 |
|
|---|
| 2601 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|---|
| 2602 |
|
|---|
| 2603 | if test $ac_cv_prog_gcc = yes; then
|
|---|
| 2604 | GCC=yes
|
|---|
| 2605 | else
|
|---|
| 2606 | GCC=
|
|---|
| 2607 | fi
|
|---|
| 2608 |
|
|---|
| 2609 | ac_test_CFLAGS="${CFLAGS+set}"
|
|---|
| 2610 | ac_save_CFLAGS="$CFLAGS"
|
|---|
| 2611 | CFLAGS=
|
|---|
| 2612 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|---|
| 2613 | echo "configure:2614: checking whether ${CC-cc} accepts -g" >&5
|
|---|
| 2614 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
|---|
| 2615 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2616 | else
|
|---|
| 2617 | echo 'void f(){}' > conftest.c
|
|---|
| 2618 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|---|
| 2619 | ac_cv_prog_cc_g=yes
|
|---|
| 2620 | else
|
|---|
| 2621 | ac_cv_prog_cc_g=no
|
|---|
| 2622 | fi
|
|---|
| 2623 | rm -f conftest*
|
|---|
| 2624 |
|
|---|
| 2625 | fi
|
|---|
| 2626 |
|
|---|
| 2627 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|---|
| 2628 | if test "$ac_test_CFLAGS" = set; then
|
|---|
| 2629 | CFLAGS="$ac_save_CFLAGS"
|
|---|
| 2630 | elif test $ac_cv_prog_cc_g = yes; then
|
|---|
| 2631 | if test "$GCC" = yes; then
|
|---|
| 2632 | CFLAGS="-g -O2"
|
|---|
| 2633 | else
|
|---|
| 2634 | CFLAGS="-g"
|
|---|
| 2635 | fi
|
|---|
| 2636 | else
|
|---|
| 2637 | if test "$GCC" = yes; then
|
|---|
| 2638 | CFLAGS="-O2"
|
|---|
| 2639 | else
|
|---|
| 2640 | CFLAGS=
|
|---|
| 2641 | fi
|
|---|
| 2642 | fi
|
|---|
| 2643 |
|
|---|
| 2644 |
|
|---|
| 2645 | ALL_LINGUAS=
|
|---|
| 2646 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
|---|
| 2647 | echo "configure:2648: checking how to run the C preprocessor" >&5
|
|---|
| 2648 | # On Suns, sometimes $CPP names a directory.
|
|---|
| 2649 | if test -n "$CPP" && test -d "$CPP"; then
|
|---|
| 2650 | CPP=
|
|---|
| 2651 | fi
|
|---|
| 2652 | if test -z "$CPP"; then
|
|---|
| 2653 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
|---|
| 2654 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2655 | else
|
|---|
| 2656 | # This must be in double quotes, not single quotes, because CPP may get
|
|---|
| 2657 | # substituted into the Makefile and "${CC-cc}" will confuse make.
|
|---|
| 2658 | CPP="${CC-cc} -E"
|
|---|
| 2659 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
|---|
| 2660 | # not just through cpp.
|
|---|
| 2661 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2662 | #include <sys/types.h>
|
|---|
| 2663 | #line 2664 "configure"
|
|---|
| 2664 | #include "confdefs.h"
|
|---|
| 2665 | #include <assert.h>
|
|---|
| 2666 | Syntax Error
|
|---|
| 2667 | EOF
|
|---|
| 2668 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 2669 | { (eval echo configure:2670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 2670 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 2671 | if test -z "$ac_err"; then
|
|---|
| 2672 | :
|
|---|
| 2673 | else
|
|---|
| 2674 | echo "$ac_err" >&5
|
|---|
| 2675 | echo "configure: failed program was:" >&5
|
|---|
| 2676 | cat conftest.$ac_ext >&5
|
|---|
| 2677 | rm -rf conftest*
|
|---|
| 2678 | CPP="${CC-cc} -E -traditional-cpp"
|
|---|
| 2679 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2680 | #include <sys/types.h>
|
|---|
| 2681 | #line 2682 "configure"
|
|---|
| 2682 | #include "confdefs.h"
|
|---|
| 2683 | #include <assert.h>
|
|---|
| 2684 | Syntax Error
|
|---|
| 2685 | EOF
|
|---|
| 2686 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 2687 | { (eval echo configure:2688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 2688 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 2689 | if test -z "$ac_err"; then
|
|---|
| 2690 | :
|
|---|
| 2691 | else
|
|---|
| 2692 | echo "$ac_err" >&5
|
|---|
| 2693 | echo "configure: failed program was:" >&5
|
|---|
| 2694 | cat conftest.$ac_ext >&5
|
|---|
| 2695 | rm -rf conftest*
|
|---|
| 2696 | CPP="${CC-cc} -nologo -E"
|
|---|
| 2697 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2698 | #include <sys/types.h>
|
|---|
| 2699 | #line 2700 "configure"
|
|---|
| 2700 | #include "confdefs.h"
|
|---|
| 2701 | #include <assert.h>
|
|---|
| 2702 | Syntax Error
|
|---|
| 2703 | EOF
|
|---|
| 2704 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 2705 | { (eval echo configure:2706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 2706 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 2707 | if test -z "$ac_err"; then
|
|---|
| 2708 | :
|
|---|
| 2709 | else
|
|---|
| 2710 | echo "$ac_err" >&5
|
|---|
| 2711 | echo "configure: failed program was:" >&5
|
|---|
| 2712 | cat conftest.$ac_ext >&5
|
|---|
| 2713 | rm -rf conftest*
|
|---|
| 2714 | CPP=/lib/cpp
|
|---|
| 2715 | fi
|
|---|
| 2716 | rm -f conftest*
|
|---|
| 2717 | fi
|
|---|
| 2718 | rm -f conftest*
|
|---|
| 2719 | fi
|
|---|
| 2720 | rm -f conftest*
|
|---|
| 2721 | ac_cv_prog_CPP="$CPP"
|
|---|
| 2722 | fi
|
|---|
| 2723 | CPP="$ac_cv_prog_CPP"
|
|---|
| 2724 | else
|
|---|
| 2725 | ac_cv_prog_CPP="$CPP"
|
|---|
| 2726 | fi
|
|---|
| 2727 | echo "$ac_t""$CPP" 1>&6
|
|---|
| 2728 |
|
|---|
| 2729 | # Extract the first word of "ranlib", so it can be a program name with args.
|
|---|
| 2730 | set dummy ranlib; ac_word=$2
|
|---|
| 2731 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2732 | echo "configure:2733: checking for $ac_word" >&5
|
|---|
| 2733 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 2734 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2735 | else
|
|---|
| 2736 | if test -n "$RANLIB"; then
|
|---|
| 2737 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 2738 | else
|
|---|
| 2739 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2740 | ac_dummy="$PATH"
|
|---|
| 2741 | for ac_dir in $ac_dummy; do
|
|---|
| 2742 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2743 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2744 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2745 | ac_cv_prog_RANLIB="ranlib"
|
|---|
| 2746 | break
|
|---|
| 2747 | fi
|
|---|
| 2748 | done
|
|---|
| 2749 | IFS="$ac_save_ifs"
|
|---|
| 2750 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|---|
| 2751 | fi
|
|---|
| 2752 | fi
|
|---|
| 2753 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 2754 | if test -n "$RANLIB"; then
|
|---|
| 2755 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 2756 | else
|
|---|
| 2757 | echo "$ac_t""no" 1>&6
|
|---|
| 2758 | fi
|
|---|
| 2759 |
|
|---|
| 2760 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
|---|
| 2761 | echo "configure:2762: checking for ANSI C header files" >&5
|
|---|
| 2762 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
|---|
| 2763 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2764 | else
|
|---|
| 2765 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2766 | #include <sys/types.h>
|
|---|
| 2767 | #line 2768 "configure"
|
|---|
| 2768 | #include "confdefs.h"
|
|---|
| 2769 | #include <stdlib.h>
|
|---|
| 2770 | #include <stdarg.h>
|
|---|
| 2771 | #include <string.h>
|
|---|
| 2772 | #include <float.h>
|
|---|
| 2773 | EOF
|
|---|
| 2774 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 2775 | { (eval echo configure:2776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 2776 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 2777 | if test -z "$ac_err"; then
|
|---|
| 2778 | rm -rf conftest*
|
|---|
| 2779 | ac_cv_header_stdc=yes
|
|---|
| 2780 | else
|
|---|
| 2781 | echo "$ac_err" >&5
|
|---|
| 2782 | echo "configure: failed program was:" >&5
|
|---|
| 2783 | cat conftest.$ac_ext >&5
|
|---|
| 2784 | rm -rf conftest*
|
|---|
| 2785 | ac_cv_header_stdc=no
|
|---|
| 2786 | fi
|
|---|
| 2787 | rm -f conftest*
|
|---|
| 2788 |
|
|---|
| 2789 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 2790 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|---|
| 2791 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2792 | #line 2793 "configure"
|
|---|
| 2793 | #include "confdefs.h"
|
|---|
| 2794 | #include <string.h>
|
|---|
| 2795 | EOF
|
|---|
| 2796 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 2797 | egrep "memchr" >/dev/null 2>&1; then
|
|---|
| 2798 | :
|
|---|
| 2799 | else
|
|---|
| 2800 | rm -rf conftest*
|
|---|
| 2801 | ac_cv_header_stdc=no
|
|---|
| 2802 | fi
|
|---|
| 2803 | rm -f conftest*
|
|---|
| 2804 |
|
|---|
| 2805 | fi
|
|---|
| 2806 |
|
|---|
| 2807 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 2808 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|---|
| 2809 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2810 | #line 2811 "configure"
|
|---|
| 2811 | #include "confdefs.h"
|
|---|
| 2812 | #include <stdlib.h>
|
|---|
| 2813 | EOF
|
|---|
| 2814 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 2815 | egrep "free" >/dev/null 2>&1; then
|
|---|
| 2816 | :
|
|---|
| 2817 | else
|
|---|
| 2818 | rm -rf conftest*
|
|---|
| 2819 | ac_cv_header_stdc=no
|
|---|
| 2820 | fi
|
|---|
| 2821 | rm -f conftest*
|
|---|
| 2822 |
|
|---|
| 2823 | fi
|
|---|
| 2824 |
|
|---|
| 2825 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 2826 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|---|
| 2827 | if test "$cross_compiling" = yes; then
|
|---|
| 2828 | :
|
|---|
| 2829 | else
|
|---|
| 2830 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2831 | #line 2832 "configure"
|
|---|
| 2832 | #include "confdefs.h"
|
|---|
| 2833 | #include <ctype.h>
|
|---|
| 2834 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|---|
| 2835 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|---|
| 2836 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|---|
| 2837 | int main () { int i; for (i = 0; i < 256; i++)
|
|---|
| 2838 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
|---|
| 2839 | exit (0); }
|
|---|
| 2840 |
|
|---|
| 2841 | EOF
|
|---|
| 2842 | if { (eval echo configure:2843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|---|
| 2843 | then
|
|---|
| 2844 | :
|
|---|
| 2845 | else
|
|---|
| 2846 | echo "configure: failed program was:" >&5
|
|---|
| 2847 | cat conftest.$ac_ext >&5
|
|---|
| 2848 | rm -fr conftest*
|
|---|
| 2849 | ac_cv_header_stdc=no
|
|---|
| 2850 | fi
|
|---|
| 2851 | rm -fr conftest*
|
|---|
| 2852 | fi
|
|---|
| 2853 |
|
|---|
| 2854 | fi
|
|---|
| 2855 | fi
|
|---|
| 2856 |
|
|---|
| 2857 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
|---|
| 2858 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 2859 | cat >> confdefs.h <<\EOF
|
|---|
| 2860 | #define STDC_HEADERS 1
|
|---|
| 2861 | EOF
|
|---|
| 2862 |
|
|---|
| 2863 | fi
|
|---|
| 2864 |
|
|---|
| 2865 | echo $ac_n "checking for working const""... $ac_c" 1>&6
|
|---|
| 2866 | echo "configure:2867: checking for working const" >&5
|
|---|
| 2867 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
|
|---|
| 2868 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2869 | else
|
|---|
| 2870 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2871 | #line 2872 "configure"
|
|---|
| 2872 | #include "confdefs.h"
|
|---|
| 2873 |
|
|---|
| 2874 | int main() {
|
|---|
| 2875 |
|
|---|
| 2876 | /* Ultrix mips cc rejects this. */
|
|---|
| 2877 | typedef int charset[2]; const charset x;
|
|---|
| 2878 | /* SunOS 4.1.1 cc rejects this. */
|
|---|
| 2879 | char const *const *ccp;
|
|---|
| 2880 | char **p;
|
|---|
| 2881 | /* NEC SVR4.0.2 mips cc rejects this. */
|
|---|
| 2882 | struct point {int x, y;};
|
|---|
| 2883 | static struct point const zero = {0,0};
|
|---|
| 2884 | /* AIX XL C 1.02.0.0 rejects this.
|
|---|
| 2885 | It does not let you subtract one const X* pointer from another in an arm
|
|---|
| 2886 | of an if-expression whose if-part is not a constant expression */
|
|---|
| 2887 | const char *g = "string";
|
|---|
| 2888 | ccp = &g + (g ? g-g : 0);
|
|---|
| 2889 | /* HPUX 7.0 cc rejects these. */
|
|---|
| 2890 | ++ccp;
|
|---|
| 2891 | p = (char**) ccp;
|
|---|
| 2892 | ccp = (char const *const *) p;
|
|---|
| 2893 | { /* SCO 3.2v4 cc rejects this. */
|
|---|
| 2894 | char *t;
|
|---|
| 2895 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
|---|
| 2896 |
|
|---|
| 2897 | *t++ = 0;
|
|---|
| 2898 | }
|
|---|
| 2899 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
|---|
| 2900 | int x[] = {25, 17};
|
|---|
| 2901 | const int *foo = &x[0];
|
|---|
| 2902 | ++foo;
|
|---|
| 2903 | }
|
|---|
| 2904 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
|---|
| 2905 | typedef const int *iptr;
|
|---|
| 2906 | iptr p = 0;
|
|---|
| 2907 | ++p;
|
|---|
| 2908 | }
|
|---|
| 2909 | { /* AIX XL C 1.02.0.0 rejects this saying
|
|---|
| 2910 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
|---|
| 2911 | struct s { int j; const int *ap[3]; };
|
|---|
| 2912 | struct s *b; b->j = 5;
|
|---|
| 2913 | }
|
|---|
| 2914 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
|---|
| 2915 | const int foo = 10;
|
|---|
| 2916 | }
|
|---|
| 2917 |
|
|---|
| 2918 | ; return 0; }
|
|---|
| 2919 | EOF
|
|---|
| 2920 | if { (eval echo configure:2921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 2921 | rm -rf conftest*
|
|---|
| 2922 | ac_cv_c_const=yes
|
|---|
| 2923 | else
|
|---|
| 2924 | echo "configure: failed program was:" >&5
|
|---|
| 2925 | cat conftest.$ac_ext >&5
|
|---|
| 2926 | rm -rf conftest*
|
|---|
| 2927 | ac_cv_c_const=no
|
|---|
| 2928 | fi
|
|---|
| 2929 | rm -f conftest*
|
|---|
| 2930 | fi
|
|---|
| 2931 |
|
|---|
| 2932 | echo "$ac_t""$ac_cv_c_const" 1>&6
|
|---|
| 2933 | if test $ac_cv_c_const = no; then
|
|---|
| 2934 | cat >> confdefs.h <<\EOF
|
|---|
| 2935 | #define const
|
|---|
| 2936 | EOF
|
|---|
| 2937 |
|
|---|
| 2938 | fi
|
|---|
| 2939 |
|
|---|
| 2940 | echo $ac_n "checking for inline""... $ac_c" 1>&6
|
|---|
| 2941 | echo "configure:2942: checking for inline" >&5
|
|---|
| 2942 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
|
|---|
| 2943 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2944 | else
|
|---|
| 2945 | ac_cv_c_inline=no
|
|---|
| 2946 | for ac_kw in inline __inline__ __inline; do
|
|---|
| 2947 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2948 | #line 2949 "configure"
|
|---|
| 2949 | #include "confdefs.h"
|
|---|
| 2950 |
|
|---|
| 2951 | int main() {
|
|---|
| 2952 | } $ac_kw foo() {
|
|---|
| 2953 | ; return 0; }
|
|---|
| 2954 | EOF
|
|---|
| 2955 | if { (eval echo configure:2956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 2956 | rm -rf conftest*
|
|---|
| 2957 | ac_cv_c_inline=$ac_kw; break
|
|---|
| 2958 | else
|
|---|
| 2959 | echo "configure: failed program was:" >&5
|
|---|
| 2960 | cat conftest.$ac_ext >&5
|
|---|
| 2961 | fi
|
|---|
| 2962 | rm -f conftest*
|
|---|
| 2963 | done
|
|---|
| 2964 |
|
|---|
| 2965 | fi
|
|---|
| 2966 |
|
|---|
| 2967 | echo "$ac_t""$ac_cv_c_inline" 1>&6
|
|---|
| 2968 | case "$ac_cv_c_inline" in
|
|---|
| 2969 | inline | yes) ;;
|
|---|
| 2970 | no) cat >> confdefs.h <<\EOF
|
|---|
| 2971 | #define inline
|
|---|
| 2972 | EOF
|
|---|
| 2973 | ;;
|
|---|
| 2974 | *) cat >> confdefs.h <<EOF
|
|---|
| 2975 | #define inline $ac_cv_c_inline
|
|---|
| 2976 | EOF
|
|---|
| 2977 | ;;
|
|---|
| 2978 | esac
|
|---|
| 2979 |
|
|---|
| 2980 | echo $ac_n "checking for off_t""... $ac_c" 1>&6
|
|---|
| 2981 | echo "configure:2982: checking for off_t" >&5
|
|---|
| 2982 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
|
|---|
| 2983 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2984 | else
|
|---|
| 2985 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2986 | #line 2987 "configure"
|
|---|
| 2987 | #include "confdefs.h"
|
|---|
| 2988 | #include <sys/types.h>
|
|---|
| 2989 | #if STDC_HEADERS
|
|---|
| 2990 | #include <stdlib.h>
|
|---|
| 2991 | #include <stddef.h>
|
|---|
| 2992 | #endif
|
|---|
| 2993 | EOF
|
|---|
| 2994 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 2995 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|---|
| 2996 | rm -rf conftest*
|
|---|
| 2997 | ac_cv_type_off_t=yes
|
|---|
| 2998 | else
|
|---|
| 2999 | rm -rf conftest*
|
|---|
| 3000 | ac_cv_type_off_t=no
|
|---|
| 3001 | fi
|
|---|
| 3002 | rm -f conftest*
|
|---|
| 3003 |
|
|---|
| 3004 | fi
|
|---|
| 3005 | echo "$ac_t""$ac_cv_type_off_t" 1>&6
|
|---|
| 3006 | if test $ac_cv_type_off_t = no; then
|
|---|
| 3007 | cat >> confdefs.h <<\EOF
|
|---|
| 3008 | #define off_t long
|
|---|
| 3009 | EOF
|
|---|
| 3010 |
|
|---|
| 3011 | fi
|
|---|
| 3012 |
|
|---|
| 3013 | echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
|---|
| 3014 | echo "configure:3015: checking for size_t" >&5
|
|---|
| 3015 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
|
|---|
| 3016 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3017 | else
|
|---|
| 3018 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3019 | #line 3020 "configure"
|
|---|
| 3020 | #include "confdefs.h"
|
|---|
| 3021 | #include <sys/types.h>
|
|---|
| 3022 | #if STDC_HEADERS
|
|---|
| 3023 | #include <stdlib.h>
|
|---|
| 3024 | #include <stddef.h>
|
|---|
| 3025 | #endif
|
|---|
| 3026 | EOF
|
|---|
| 3027 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 3028 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|---|
| 3029 | rm -rf conftest*
|
|---|
| 3030 | ac_cv_type_size_t=yes
|
|---|
| 3031 | else
|
|---|
| 3032 | rm -rf conftest*
|
|---|
| 3033 | ac_cv_type_size_t=no
|
|---|
| 3034 | fi
|
|---|
| 3035 | rm -f conftest*
|
|---|
| 3036 |
|
|---|
| 3037 | fi
|
|---|
| 3038 | echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
|---|
| 3039 | if test $ac_cv_type_size_t = no; then
|
|---|
| 3040 | cat >> confdefs.h <<\EOF
|
|---|
| 3041 | #define size_t unsigned
|
|---|
| 3042 | EOF
|
|---|
| 3043 |
|
|---|
| 3044 | fi
|
|---|
| 3045 |
|
|---|
| 3046 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
|---|
| 3047 | # for constant arguments. Useless!
|
|---|
| 3048 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
|---|
| 3049 | echo "configure:3050: checking for working alloca.h" >&5
|
|---|
| 3050 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
|
|---|
| 3051 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3052 | else
|
|---|
| 3053 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3054 | #line 3055 "configure"
|
|---|
| 3055 | #include "confdefs.h"
|
|---|
| 3056 | #include <alloca.h>
|
|---|
| 3057 | int main() {
|
|---|
| 3058 | char *p = alloca(2 * sizeof(int));
|
|---|
| 3059 | ; return 0; }
|
|---|
| 3060 | EOF
|
|---|
| 3061 | if { (eval echo configure:3062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3062 | rm -rf conftest*
|
|---|
| 3063 | ac_cv_header_alloca_h=yes
|
|---|
| 3064 | else
|
|---|
| 3065 | echo "configure: failed program was:" >&5
|
|---|
| 3066 | cat conftest.$ac_ext >&5
|
|---|
| 3067 | rm -rf conftest*
|
|---|
| 3068 | ac_cv_header_alloca_h=no
|
|---|
| 3069 | fi
|
|---|
| 3070 | rm -f conftest*
|
|---|
| 3071 | fi
|
|---|
| 3072 |
|
|---|
| 3073 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
|---|
| 3074 | if test $ac_cv_header_alloca_h = yes; then
|
|---|
| 3075 | cat >> confdefs.h <<\EOF
|
|---|
| 3076 | #define HAVE_ALLOCA_H 1
|
|---|
| 3077 | EOF
|
|---|
| 3078 |
|
|---|
| 3079 | fi
|
|---|
| 3080 |
|
|---|
| 3081 | echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
|---|
| 3082 | echo "configure:3083: checking for alloca" >&5
|
|---|
| 3083 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
|
|---|
| 3084 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3085 | else
|
|---|
| 3086 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3087 | #line 3088 "configure"
|
|---|
| 3088 | #include "confdefs.h"
|
|---|
| 3089 |
|
|---|
| 3090 | #ifdef __GNUC__
|
|---|
| 3091 | # define alloca __builtin_alloca
|
|---|
| 3092 | #else
|
|---|
| 3093 | # ifdef _MSC_VER
|
|---|
| 3094 | # include <malloc.h>
|
|---|
| 3095 | # define alloca _alloca
|
|---|
| 3096 | # else
|
|---|
| 3097 | # if HAVE_ALLOCA_H
|
|---|
| 3098 | # include <alloca.h>
|
|---|
| 3099 | # else
|
|---|
| 3100 | # ifdef _AIX
|
|---|
| 3101 | #pragma alloca
|
|---|
| 3102 | # else
|
|---|
| 3103 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
|---|
| 3104 | char *alloca ();
|
|---|
| 3105 | # endif
|
|---|
| 3106 | # endif
|
|---|
| 3107 | # endif
|
|---|
| 3108 | # endif
|
|---|
| 3109 | #endif
|
|---|
| 3110 |
|
|---|
| 3111 | int main() {
|
|---|
| 3112 | char *p = (char *) alloca(1);
|
|---|
| 3113 | ; return 0; }
|
|---|
| 3114 | EOF
|
|---|
| 3115 | if { (eval echo configure:3116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3116 | rm -rf conftest*
|
|---|
| 3117 | ac_cv_func_alloca_works=yes
|
|---|
| 3118 | else
|
|---|
| 3119 | echo "configure: failed program was:" >&5
|
|---|
| 3120 | cat conftest.$ac_ext >&5
|
|---|
| 3121 | rm -rf conftest*
|
|---|
| 3122 | ac_cv_func_alloca_works=no
|
|---|
| 3123 | fi
|
|---|
| 3124 | rm -f conftest*
|
|---|
| 3125 | fi
|
|---|
| 3126 |
|
|---|
| 3127 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
|---|
| 3128 | if test $ac_cv_func_alloca_works = yes; then
|
|---|
| 3129 | cat >> confdefs.h <<\EOF
|
|---|
| 3130 | #define HAVE_ALLOCA 1
|
|---|
| 3131 | EOF
|
|---|
| 3132 |
|
|---|
| 3133 | fi
|
|---|
| 3134 |
|
|---|
| 3135 | if test $ac_cv_func_alloca_works = no; then
|
|---|
| 3136 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
|---|
| 3137 | # that cause trouble. Some versions do not even contain alloca or
|
|---|
| 3138 | # contain a buggy version. If you still want to use their alloca,
|
|---|
| 3139 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
|---|
| 3140 | ALLOCA=alloca.${ac_objext}
|
|---|
| 3141 | cat >> confdefs.h <<\EOF
|
|---|
| 3142 | #define C_ALLOCA 1
|
|---|
| 3143 | EOF
|
|---|
| 3144 |
|
|---|
| 3145 |
|
|---|
| 3146 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
|---|
| 3147 | echo "configure:3148: checking whether alloca needs Cray hooks" >&5
|
|---|
| 3148 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
|
|---|
| 3149 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3150 | else
|
|---|
| 3151 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3152 | #line 3153 "configure"
|
|---|
| 3153 | #include "confdefs.h"
|
|---|
| 3154 | #if defined(CRAY) && ! defined(CRAY2)
|
|---|
| 3155 | webecray
|
|---|
| 3156 | #else
|
|---|
| 3157 | wenotbecray
|
|---|
| 3158 | #endif
|
|---|
| 3159 |
|
|---|
| 3160 | EOF
|
|---|
| 3161 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 3162 | egrep "webecray" >/dev/null 2>&1; then
|
|---|
| 3163 | rm -rf conftest*
|
|---|
| 3164 | ac_cv_os_cray=yes
|
|---|
| 3165 | else
|
|---|
| 3166 | rm -rf conftest*
|
|---|
| 3167 | ac_cv_os_cray=no
|
|---|
| 3168 | fi
|
|---|
| 3169 | rm -f conftest*
|
|---|
| 3170 |
|
|---|
| 3171 | fi
|
|---|
| 3172 |
|
|---|
| 3173 | echo "$ac_t""$ac_cv_os_cray" 1>&6
|
|---|
| 3174 | if test $ac_cv_os_cray = yes; then
|
|---|
| 3175 | for ac_func in _getb67 GETB67 getb67; do
|
|---|
| 3176 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 3177 | echo "configure:3178: checking for $ac_func" >&5
|
|---|
| 3178 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 3179 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3180 | else
|
|---|
| 3181 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3182 | #line 3183 "configure"
|
|---|
| 3183 | #include "confdefs.h"
|
|---|
| 3184 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 3185 | which can conflict with char $ac_func(); below. */
|
|---|
| 3186 | #include <assert.h>
|
|---|
| 3187 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3188 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3189 | builtin and then its argument prototype would still apply. */
|
|---|
| 3190 | char $ac_func();
|
|---|
| 3191 |
|
|---|
| 3192 | int main() {
|
|---|
| 3193 |
|
|---|
| 3194 | /* The GNU C library defines this for functions which it implements
|
|---|
| 3195 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 3196 | something starting with __ and the normal name is an alias. */
|
|---|
| 3197 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 3198 | choke me
|
|---|
| 3199 | #else
|
|---|
| 3200 | $ac_func();
|
|---|
| 3201 | #endif
|
|---|
| 3202 |
|
|---|
| 3203 | ; return 0; }
|
|---|
| 3204 | EOF
|
|---|
| 3205 | if { (eval echo configure:3206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3206 | rm -rf conftest*
|
|---|
| 3207 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 3208 | else
|
|---|
| 3209 | echo "configure: failed program was:" >&5
|
|---|
| 3210 | cat conftest.$ac_ext >&5
|
|---|
| 3211 | rm -rf conftest*
|
|---|
| 3212 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 3213 | fi
|
|---|
| 3214 | rm -f conftest*
|
|---|
| 3215 | fi
|
|---|
| 3216 |
|
|---|
| 3217 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 3218 | echo "$ac_t""yes" 1>&6
|
|---|
| 3219 | cat >> confdefs.h <<EOF
|
|---|
| 3220 | #define CRAY_STACKSEG_END $ac_func
|
|---|
| 3221 | EOF
|
|---|
| 3222 |
|
|---|
| 3223 | break
|
|---|
| 3224 | else
|
|---|
| 3225 | echo "$ac_t""no" 1>&6
|
|---|
| 3226 | fi
|
|---|
| 3227 |
|
|---|
| 3228 | done
|
|---|
| 3229 | fi
|
|---|
| 3230 |
|
|---|
| 3231 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
|---|
| 3232 | echo "configure:3233: checking stack direction for C alloca" >&5
|
|---|
| 3233 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
|
|---|
| 3234 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3235 | else
|
|---|
| 3236 | if test "$cross_compiling" = yes; then
|
|---|
| 3237 | ac_cv_c_stack_direction=0
|
|---|
| 3238 | else
|
|---|
| 3239 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3240 | #line 3241 "configure"
|
|---|
| 3241 | #include "confdefs.h"
|
|---|
| 3242 | find_stack_direction ()
|
|---|
| 3243 | {
|
|---|
| 3244 | static char *addr = 0;
|
|---|
| 3245 | auto char dummy;
|
|---|
| 3246 | if (addr == 0)
|
|---|
| 3247 | {
|
|---|
| 3248 | addr = &dummy;
|
|---|
| 3249 | return find_stack_direction ();
|
|---|
| 3250 | }
|
|---|
| 3251 | else
|
|---|
| 3252 | return (&dummy > addr) ? 1 : -1;
|
|---|
| 3253 | }
|
|---|
| 3254 | main ()
|
|---|
| 3255 | {
|
|---|
| 3256 | exit (find_stack_direction() < 0);
|
|---|
| 3257 | }
|
|---|
| 3258 | EOF
|
|---|
| 3259 | if { (eval echo configure:3260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|---|
| 3260 | then
|
|---|
| 3261 | ac_cv_c_stack_direction=1
|
|---|
| 3262 | else
|
|---|
| 3263 | echo "configure: failed program was:" >&5
|
|---|
| 3264 | cat conftest.$ac_ext >&5
|
|---|
| 3265 | rm -fr conftest*
|
|---|
| 3266 | ac_cv_c_stack_direction=-1
|
|---|
| 3267 | fi
|
|---|
| 3268 | rm -fr conftest*
|
|---|
| 3269 | fi
|
|---|
| 3270 |
|
|---|
| 3271 | fi
|
|---|
| 3272 |
|
|---|
| 3273 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
|---|
| 3274 | cat >> confdefs.h <<EOF
|
|---|
| 3275 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
|---|
| 3276 | EOF
|
|---|
| 3277 |
|
|---|
| 3278 | fi
|
|---|
| 3279 |
|
|---|
| 3280 | for ac_hdr in unistd.h
|
|---|
| 3281 | do
|
|---|
| 3282 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|---|
| 3283 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|---|
| 3284 | echo "configure:3285: checking for $ac_hdr" >&5
|
|---|
| 3285 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 3286 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3287 | else
|
|---|
| 3288 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3289 | #include <sys/types.h>
|
|---|
| 3290 | #line 3291 "configure"
|
|---|
| 3291 | #include "confdefs.h"
|
|---|
| 3292 | #include <$ac_hdr>
|
|---|
| 3293 | EOF
|
|---|
| 3294 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 3295 | { (eval echo configure:3296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 3296 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 3297 | if test -z "$ac_err"; then
|
|---|
| 3298 | rm -rf conftest*
|
|---|
| 3299 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 3300 | else
|
|---|
| 3301 | echo "$ac_err" >&5
|
|---|
| 3302 | echo "configure: failed program was:" >&5
|
|---|
| 3303 | cat conftest.$ac_ext >&5
|
|---|
| 3304 | rm -rf conftest*
|
|---|
| 3305 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 3306 | fi
|
|---|
| 3307 | rm -f conftest*
|
|---|
| 3308 | fi
|
|---|
| 3309 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 3310 | echo "$ac_t""yes" 1>&6
|
|---|
| 3311 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|---|
| 3312 | cat >> confdefs.h <<EOF
|
|---|
| 3313 | #define $ac_tr_hdr 1
|
|---|
| 3314 | EOF
|
|---|
| 3315 |
|
|---|
| 3316 | else
|
|---|
| 3317 | echo "$ac_t""no" 1>&6
|
|---|
| 3318 | fi
|
|---|
| 3319 | done
|
|---|
| 3320 |
|
|---|
| 3321 | for ac_func in getpagesize
|
|---|
| 3322 | do
|
|---|
| 3323 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 3324 | echo "configure:3325: checking for $ac_func" >&5
|
|---|
| 3325 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 3326 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3327 | else
|
|---|
| 3328 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3329 | #line 3330 "configure"
|
|---|
| 3330 | #include "confdefs.h"
|
|---|
| 3331 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 3332 | which can conflict with char $ac_func(); below. */
|
|---|
| 3333 | #include <assert.h>
|
|---|
| 3334 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3335 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3336 | builtin and then its argument prototype would still apply. */
|
|---|
| 3337 | char $ac_func();
|
|---|
| 3338 |
|
|---|
| 3339 | int main() {
|
|---|
| 3340 |
|
|---|
| 3341 | /* The GNU C library defines this for functions which it implements
|
|---|
| 3342 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 3343 | something starting with __ and the normal name is an alias. */
|
|---|
| 3344 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 3345 | choke me
|
|---|
| 3346 | #else
|
|---|
| 3347 | $ac_func();
|
|---|
| 3348 | #endif
|
|---|
| 3349 |
|
|---|
| 3350 | ; return 0; }
|
|---|
| 3351 | EOF
|
|---|
| 3352 | if { (eval echo configure:3353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3353 | rm -rf conftest*
|
|---|
| 3354 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 3355 | else
|
|---|
| 3356 | echo "configure: failed program was:" >&5
|
|---|
| 3357 | cat conftest.$ac_ext >&5
|
|---|
| 3358 | rm -rf conftest*
|
|---|
| 3359 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 3360 | fi
|
|---|
| 3361 | rm -f conftest*
|
|---|
| 3362 | fi
|
|---|
| 3363 |
|
|---|
| 3364 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 3365 | echo "$ac_t""yes" 1>&6
|
|---|
| 3366 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 3367 | cat >> confdefs.h <<EOF
|
|---|
| 3368 | #define $ac_tr_func 1
|
|---|
| 3369 | EOF
|
|---|
| 3370 |
|
|---|
| 3371 | else
|
|---|
| 3372 | echo "$ac_t""no" 1>&6
|
|---|
| 3373 | fi
|
|---|
| 3374 | done
|
|---|
| 3375 |
|
|---|
| 3376 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
|---|
| 3377 | echo "configure:3378: checking for working mmap" >&5
|
|---|
| 3378 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
|
|---|
| 3379 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3380 | else
|
|---|
| 3381 | if test "$cross_compiling" = yes; then
|
|---|
| 3382 | ac_cv_func_mmap_fixed_mapped=no
|
|---|
| 3383 | else
|
|---|
| 3384 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3385 | #line 3386 "configure"
|
|---|
| 3386 | #include "confdefs.h"
|
|---|
| 3387 |
|
|---|
| 3388 | /* Thanks to Mike Haertel and Jim Avera for this test.
|
|---|
| 3389 | Here is a matrix of mmap possibilities:
|
|---|
| 3390 | mmap private not fixed
|
|---|
| 3391 | mmap private fixed at somewhere currently unmapped
|
|---|
| 3392 | mmap private fixed at somewhere already mapped
|
|---|
| 3393 | mmap shared not fixed
|
|---|
| 3394 | mmap shared fixed at somewhere currently unmapped
|
|---|
| 3395 | mmap shared fixed at somewhere already mapped
|
|---|
| 3396 | For private mappings, we should verify that changes cannot be read()
|
|---|
| 3397 | back from the file, nor mmap's back from the file at a different
|
|---|
| 3398 | address. (There have been systems where private was not correctly
|
|---|
| 3399 | implemented like the infamous i386 svr4.0, and systems where the
|
|---|
| 3400 | VM page cache was not coherent with the filesystem buffer cache
|
|---|
| 3401 | like early versions of FreeBSD and possibly contemporary NetBSD.)
|
|---|
| 3402 | For shared mappings, we should conversely verify that changes get
|
|---|
| 3403 | propogated back to all the places they're supposed to be.
|
|---|
| 3404 |
|
|---|
| 3405 | Grep wants private fixed already mapped.
|
|---|
| 3406 | The main things grep needs to know about mmap are:
|
|---|
| 3407 | * does it exist and is it safe to write into the mmap'd area
|
|---|
| 3408 | * how to use it (BSD variants) */
|
|---|
| 3409 | #include <sys/types.h>
|
|---|
| 3410 | #include <fcntl.h>
|
|---|
| 3411 | #include <sys/mman.h>
|
|---|
| 3412 |
|
|---|
| 3413 | /* This mess was copied from the GNU getpagesize.h. */
|
|---|
| 3414 | #ifndef HAVE_GETPAGESIZE
|
|---|
| 3415 | # ifdef HAVE_UNISTD_H
|
|---|
| 3416 | # include <unistd.h>
|
|---|
| 3417 | # endif
|
|---|
| 3418 |
|
|---|
| 3419 | /* Assume that all systems that can run configure have sys/param.h. */
|
|---|
| 3420 | # ifndef HAVE_SYS_PARAM_H
|
|---|
| 3421 | # define HAVE_SYS_PARAM_H 1
|
|---|
| 3422 | # endif
|
|---|
| 3423 |
|
|---|
| 3424 | # ifdef _SC_PAGESIZE
|
|---|
| 3425 | # define getpagesize() sysconf(_SC_PAGESIZE)
|
|---|
| 3426 | # else /* no _SC_PAGESIZE */
|
|---|
| 3427 | # ifdef HAVE_SYS_PARAM_H
|
|---|
| 3428 | # include <sys/param.h>
|
|---|
| 3429 | # ifdef EXEC_PAGESIZE
|
|---|
| 3430 | # define getpagesize() EXEC_PAGESIZE
|
|---|
| 3431 | # else /* no EXEC_PAGESIZE */
|
|---|
| 3432 | # ifdef NBPG
|
|---|
| 3433 | # define getpagesize() NBPG * CLSIZE
|
|---|
| 3434 | # ifndef CLSIZE
|
|---|
| 3435 | # define CLSIZE 1
|
|---|
| 3436 | # endif /* no CLSIZE */
|
|---|
| 3437 | # else /* no NBPG */
|
|---|
| 3438 | # ifdef NBPC
|
|---|
| 3439 | # define getpagesize() NBPC
|
|---|
| 3440 | # else /* no NBPC */
|
|---|
| 3441 | # ifdef PAGESIZE
|
|---|
| 3442 | # define getpagesize() PAGESIZE
|
|---|
| 3443 | # endif /* PAGESIZE */
|
|---|
| 3444 | # endif /* no NBPC */
|
|---|
| 3445 | # endif /* no NBPG */
|
|---|
| 3446 | # endif /* no EXEC_PAGESIZE */
|
|---|
| 3447 | # else /* no HAVE_SYS_PARAM_H */
|
|---|
| 3448 | # define getpagesize() 8192 /* punt totally */
|
|---|
| 3449 | # endif /* no HAVE_SYS_PARAM_H */
|
|---|
| 3450 | # endif /* no _SC_PAGESIZE */
|
|---|
| 3451 |
|
|---|
| 3452 | #endif /* no HAVE_GETPAGESIZE */
|
|---|
| 3453 |
|
|---|
| 3454 | #ifdef __cplusplus
|
|---|
| 3455 | extern "C" { void *malloc(unsigned); }
|
|---|
| 3456 | #else
|
|---|
| 3457 | char *malloc();
|
|---|
| 3458 | #endif
|
|---|
| 3459 |
|
|---|
| 3460 | int
|
|---|
| 3461 | main()
|
|---|
| 3462 | {
|
|---|
| 3463 | char *data, *data2, *data3;
|
|---|
| 3464 | int i, pagesize;
|
|---|
| 3465 | int fd;
|
|---|
| 3466 |
|
|---|
| 3467 | pagesize = getpagesize();
|
|---|
| 3468 |
|
|---|
| 3469 | /*
|
|---|
| 3470 | * First, make a file with some known garbage in it.
|
|---|
| 3471 | */
|
|---|
| 3472 | data = malloc(pagesize);
|
|---|
| 3473 | if (!data)
|
|---|
| 3474 | exit(1);
|
|---|
| 3475 | for (i = 0; i < pagesize; ++i)
|
|---|
| 3476 | *(data + i) = rand();
|
|---|
| 3477 | umask(0);
|
|---|
| 3478 | fd = creat("conftestmmap", 0600);
|
|---|
| 3479 | if (fd < 0)
|
|---|
| 3480 | exit(1);
|
|---|
| 3481 | if (write(fd, data, pagesize) != pagesize)
|
|---|
| 3482 | exit(1);
|
|---|
| 3483 | close(fd);
|
|---|
| 3484 |
|
|---|
| 3485 | /*
|
|---|
| 3486 | * Next, try to mmap the file at a fixed address which
|
|---|
| 3487 | * already has something else allocated at it. If we can,
|
|---|
| 3488 | * also make sure that we see the same garbage.
|
|---|
| 3489 | */
|
|---|
| 3490 | fd = open("conftestmmap", O_RDWR);
|
|---|
| 3491 | if (fd < 0)
|
|---|
| 3492 | exit(1);
|
|---|
| 3493 | data2 = malloc(2 * pagesize);
|
|---|
| 3494 | if (!data2)
|
|---|
| 3495 | exit(1);
|
|---|
| 3496 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
|
|---|
| 3497 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
|
|---|
| 3498 | MAP_PRIVATE | MAP_FIXED, fd, 0L))
|
|---|
| 3499 | exit(1);
|
|---|
| 3500 | for (i = 0; i < pagesize; ++i)
|
|---|
| 3501 | if (*(data + i) != *(data2 + i))
|
|---|
| 3502 | exit(1);
|
|---|
| 3503 |
|
|---|
| 3504 | /*
|
|---|
| 3505 | * Finally, make sure that changes to the mapped area
|
|---|
| 3506 | * do not percolate back to the file as seen by read().
|
|---|
| 3507 | * (This is a bug on some variants of i386 svr4.0.)
|
|---|
| 3508 | */
|
|---|
| 3509 | for (i = 0; i < pagesize; ++i)
|
|---|
| 3510 | *(data2 + i) = *(data2 + i) + 1;
|
|---|
| 3511 | data3 = malloc(pagesize);
|
|---|
| 3512 | if (!data3)
|
|---|
| 3513 | exit(1);
|
|---|
| 3514 | if (read(fd, data3, pagesize) != pagesize)
|
|---|
| 3515 | exit(1);
|
|---|
| 3516 | for (i = 0; i < pagesize; ++i)
|
|---|
| 3517 | if (*(data + i) != *(data3 + i))
|
|---|
| 3518 | exit(1);
|
|---|
| 3519 | close(fd);
|
|---|
| 3520 | unlink("conftestmmap");
|
|---|
| 3521 | exit(0);
|
|---|
| 3522 | }
|
|---|
| 3523 |
|
|---|
| 3524 | EOF
|
|---|
| 3525 | if { (eval echo configure:3526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|---|
| 3526 | then
|
|---|
| 3527 | ac_cv_func_mmap_fixed_mapped=yes
|
|---|
| 3528 | else
|
|---|
| 3529 | echo "configure: failed program was:" >&5
|
|---|
| 3530 | cat conftest.$ac_ext >&5
|
|---|
| 3531 | rm -fr conftest*
|
|---|
| 3532 | ac_cv_func_mmap_fixed_mapped=no
|
|---|
| 3533 | fi
|
|---|
| 3534 | rm -fr conftest*
|
|---|
| 3535 | fi
|
|---|
| 3536 |
|
|---|
| 3537 | fi
|
|---|
| 3538 |
|
|---|
| 3539 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
|
|---|
| 3540 | if test $ac_cv_func_mmap_fixed_mapped = yes; then
|
|---|
| 3541 | cat >> confdefs.h <<\EOF
|
|---|
| 3542 | #define HAVE_MMAP 1
|
|---|
| 3543 | EOF
|
|---|
| 3544 |
|
|---|
| 3545 | fi
|
|---|
| 3546 |
|
|---|
| 3547 |
|
|---|
| 3548 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
|
|---|
| 3549 | unistd.h values.h sys/param.h
|
|---|
| 3550 | do
|
|---|
| 3551 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|---|
| 3552 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|---|
| 3553 | echo "configure:3554: checking for $ac_hdr" >&5
|
|---|
| 3554 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 3555 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3556 | else
|
|---|
| 3557 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3558 | #include <sys/types.h>
|
|---|
| 3559 | #line 3560 "configure"
|
|---|
| 3560 | #include "confdefs.h"
|
|---|
| 3561 | #include <$ac_hdr>
|
|---|
| 3562 | EOF
|
|---|
| 3563 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 3564 | { (eval echo configure:3565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 3565 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 3566 | if test -z "$ac_err"; then
|
|---|
| 3567 | rm -rf conftest*
|
|---|
| 3568 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 3569 | else
|
|---|
| 3570 | echo "$ac_err" >&5
|
|---|
| 3571 | echo "configure: failed program was:" >&5
|
|---|
| 3572 | cat conftest.$ac_ext >&5
|
|---|
| 3573 | rm -rf conftest*
|
|---|
| 3574 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 3575 | fi
|
|---|
| 3576 | rm -f conftest*
|
|---|
| 3577 | fi
|
|---|
| 3578 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 3579 | echo "$ac_t""yes" 1>&6
|
|---|
| 3580 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|---|
| 3581 | cat >> confdefs.h <<EOF
|
|---|
| 3582 | #define $ac_tr_hdr 1
|
|---|
| 3583 | EOF
|
|---|
| 3584 |
|
|---|
| 3585 | else
|
|---|
| 3586 | echo "$ac_t""no" 1>&6
|
|---|
| 3587 | fi
|
|---|
| 3588 | done
|
|---|
| 3589 |
|
|---|
| 3590 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
|
|---|
| 3591 | __argz_count __argz_stringify __argz_next
|
|---|
| 3592 | do
|
|---|
| 3593 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 3594 | echo "configure:3595: checking for $ac_func" >&5
|
|---|
| 3595 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 3596 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3597 | else
|
|---|
| 3598 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3599 | #line 3600 "configure"
|
|---|
| 3600 | #include "confdefs.h"
|
|---|
| 3601 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 3602 | which can conflict with char $ac_func(); below. */
|
|---|
| 3603 | #include <assert.h>
|
|---|
| 3604 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3605 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3606 | builtin and then its argument prototype would still apply. */
|
|---|
| 3607 | char $ac_func();
|
|---|
| 3608 |
|
|---|
| 3609 | int main() {
|
|---|
| 3610 |
|
|---|
| 3611 | /* The GNU C library defines this for functions which it implements
|
|---|
| 3612 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 3613 | something starting with __ and the normal name is an alias. */
|
|---|
| 3614 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 3615 | choke me
|
|---|
| 3616 | #else
|
|---|
| 3617 | $ac_func();
|
|---|
| 3618 | #endif
|
|---|
| 3619 |
|
|---|
| 3620 | ; return 0; }
|
|---|
| 3621 | EOF
|
|---|
| 3622 | if { (eval echo configure:3623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3623 | rm -rf conftest*
|
|---|
| 3624 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 3625 | else
|
|---|
| 3626 | echo "configure: failed program was:" >&5
|
|---|
| 3627 | cat conftest.$ac_ext >&5
|
|---|
| 3628 | rm -rf conftest*
|
|---|
| 3629 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 3630 | fi
|
|---|
| 3631 | rm -f conftest*
|
|---|
| 3632 | fi
|
|---|
| 3633 |
|
|---|
| 3634 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 3635 | echo "$ac_t""yes" 1>&6
|
|---|
| 3636 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 3637 | cat >> confdefs.h <<EOF
|
|---|
| 3638 | #define $ac_tr_func 1
|
|---|
| 3639 | EOF
|
|---|
| 3640 |
|
|---|
| 3641 | else
|
|---|
| 3642 | echo "$ac_t""no" 1>&6
|
|---|
| 3643 | fi
|
|---|
| 3644 | done
|
|---|
| 3645 |
|
|---|
| 3646 |
|
|---|
| 3647 | if test "${ac_cv_func_stpcpy+set}" != "set"; then
|
|---|
| 3648 | for ac_func in stpcpy
|
|---|
| 3649 | do
|
|---|
| 3650 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 3651 | echo "configure:3652: checking for $ac_func" >&5
|
|---|
| 3652 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 3653 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3654 | else
|
|---|
| 3655 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3656 | #line 3657 "configure"
|
|---|
| 3657 | #include "confdefs.h"
|
|---|
| 3658 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 3659 | which can conflict with char $ac_func(); below. */
|
|---|
| 3660 | #include <assert.h>
|
|---|
| 3661 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3662 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3663 | builtin and then its argument prototype would still apply. */
|
|---|
| 3664 | char $ac_func();
|
|---|
| 3665 |
|
|---|
| 3666 | int main() {
|
|---|
| 3667 |
|
|---|
| 3668 | /* The GNU C library defines this for functions which it implements
|
|---|
| 3669 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 3670 | something starting with __ and the normal name is an alias. */
|
|---|
| 3671 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 3672 | choke me
|
|---|
| 3673 | #else
|
|---|
| 3674 | $ac_func();
|
|---|
| 3675 | #endif
|
|---|
| 3676 |
|
|---|
| 3677 | ; return 0; }
|
|---|
| 3678 | EOF
|
|---|
| 3679 | if { (eval echo configure:3680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3680 | rm -rf conftest*
|
|---|
| 3681 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 3682 | else
|
|---|
| 3683 | echo "configure: failed program was:" >&5
|
|---|
| 3684 | cat conftest.$ac_ext >&5
|
|---|
| 3685 | rm -rf conftest*
|
|---|
| 3686 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 3687 | fi
|
|---|
| 3688 | rm -f conftest*
|
|---|
| 3689 | fi
|
|---|
| 3690 |
|
|---|
| 3691 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 3692 | echo "$ac_t""yes" 1>&6
|
|---|
| 3693 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 3694 | cat >> confdefs.h <<EOF
|
|---|
| 3695 | #define $ac_tr_func 1
|
|---|
| 3696 | EOF
|
|---|
| 3697 |
|
|---|
| 3698 | else
|
|---|
| 3699 | echo "$ac_t""no" 1>&6
|
|---|
| 3700 | fi
|
|---|
| 3701 | done
|
|---|
| 3702 |
|
|---|
| 3703 | fi
|
|---|
| 3704 | if test "${ac_cv_func_stpcpy}" = "yes"; then
|
|---|
| 3705 | cat >> confdefs.h <<\EOF
|
|---|
| 3706 | #define HAVE_STPCPY 1
|
|---|
| 3707 | EOF
|
|---|
| 3708 |
|
|---|
| 3709 | fi
|
|---|
| 3710 |
|
|---|
| 3711 | if test $ac_cv_header_locale_h = yes; then
|
|---|
| 3712 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
|
|---|
| 3713 | echo "configure:3714: checking for LC_MESSAGES" >&5
|
|---|
| 3714 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
|
|---|
| 3715 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3716 | else
|
|---|
| 3717 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3718 | #line 3719 "configure"
|
|---|
| 3719 | #include "confdefs.h"
|
|---|
| 3720 | #include <locale.h>
|
|---|
| 3721 | int main() {
|
|---|
| 3722 | return LC_MESSAGES
|
|---|
| 3723 | ; return 0; }
|
|---|
| 3724 | EOF
|
|---|
| 3725 | if { (eval echo configure:3726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3726 | rm -rf conftest*
|
|---|
| 3727 | am_cv_val_LC_MESSAGES=yes
|
|---|
| 3728 | else
|
|---|
| 3729 | echo "configure: failed program was:" >&5
|
|---|
| 3730 | cat conftest.$ac_ext >&5
|
|---|
| 3731 | rm -rf conftest*
|
|---|
| 3732 | am_cv_val_LC_MESSAGES=no
|
|---|
| 3733 | fi
|
|---|
| 3734 | rm -f conftest*
|
|---|
| 3735 | fi
|
|---|
| 3736 |
|
|---|
| 3737 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
|
|---|
| 3738 | if test $am_cv_val_LC_MESSAGES = yes; then
|
|---|
| 3739 | cat >> confdefs.h <<\EOF
|
|---|
| 3740 | #define HAVE_LC_MESSAGES 1
|
|---|
| 3741 | EOF
|
|---|
| 3742 |
|
|---|
| 3743 | fi
|
|---|
| 3744 | fi
|
|---|
| 3745 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
|
|---|
| 3746 | echo "configure:3747: checking whether NLS is requested" >&5
|
|---|
| 3747 | # Check whether --enable-nls or --disable-nls was given.
|
|---|
| 3748 | if test "${enable_nls+set}" = set; then
|
|---|
| 3749 | enableval="$enable_nls"
|
|---|
| 3750 | USE_NLS=$enableval
|
|---|
| 3751 | else
|
|---|
| 3752 | USE_NLS=yes
|
|---|
| 3753 | fi
|
|---|
| 3754 |
|
|---|
| 3755 | echo "$ac_t""$USE_NLS" 1>&6
|
|---|
| 3756 |
|
|---|
| 3757 |
|
|---|
| 3758 | USE_INCLUDED_LIBINTL=no
|
|---|
| 3759 |
|
|---|
| 3760 | if test "$USE_NLS" = "yes"; then
|
|---|
| 3761 | cat >> confdefs.h <<\EOF
|
|---|
| 3762 | #define ENABLE_NLS 1
|
|---|
| 3763 | EOF
|
|---|
| 3764 |
|
|---|
| 3765 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
|
|---|
| 3766 | echo "configure:3767: checking whether included gettext is requested" >&5
|
|---|
| 3767 | # Check whether --with-included-gettext or --without-included-gettext was given.
|
|---|
| 3768 | if test "${with_included_gettext+set}" = set; then
|
|---|
| 3769 | withval="$with_included_gettext"
|
|---|
| 3770 | nls_cv_force_use_gnu_gettext=$withval
|
|---|
| 3771 | else
|
|---|
| 3772 | nls_cv_force_use_gnu_gettext=no
|
|---|
| 3773 | fi
|
|---|
| 3774 |
|
|---|
| 3775 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
|
|---|
| 3776 |
|
|---|
| 3777 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
|
|---|
| 3778 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
|
|---|
| 3779 | nls_cv_header_intl=
|
|---|
| 3780 | nls_cv_header_libgt=
|
|---|
| 3781 | CATOBJEXT=NONE
|
|---|
| 3782 |
|
|---|
| 3783 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
|
|---|
| 3784 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
|
|---|
| 3785 | echo "configure:3786: checking for libintl.h" >&5
|
|---|
| 3786 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 3787 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3788 | else
|
|---|
| 3789 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3790 | #include <sys/types.h>
|
|---|
| 3791 | #line 3792 "configure"
|
|---|
| 3792 | #include "confdefs.h"
|
|---|
| 3793 | #include <libintl.h>
|
|---|
| 3794 | EOF
|
|---|
| 3795 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 3796 | { (eval echo configure:3797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 3797 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 3798 | if test -z "$ac_err"; then
|
|---|
| 3799 | rm -rf conftest*
|
|---|
| 3800 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 3801 | else
|
|---|
| 3802 | echo "$ac_err" >&5
|
|---|
| 3803 | echo "configure: failed program was:" >&5
|
|---|
| 3804 | cat conftest.$ac_ext >&5
|
|---|
| 3805 | rm -rf conftest*
|
|---|
| 3806 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 3807 | fi
|
|---|
| 3808 | rm -f conftest*
|
|---|
| 3809 | fi
|
|---|
| 3810 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 3811 | echo "$ac_t""yes" 1>&6
|
|---|
| 3812 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
|
|---|
| 3813 | echo "configure:3814: checking for gettext in libc" >&5
|
|---|
| 3814 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
|
|---|
| 3815 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3816 | else
|
|---|
| 3817 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3818 | #line 3819 "configure"
|
|---|
| 3819 | #include "confdefs.h"
|
|---|
| 3820 | #include <libintl.h>
|
|---|
| 3821 | int main() {
|
|---|
| 3822 | return (int) gettext ("")
|
|---|
| 3823 | ; return 0; }
|
|---|
| 3824 | EOF
|
|---|
| 3825 | if { (eval echo configure:3826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3826 | rm -rf conftest*
|
|---|
| 3827 | gt_cv_func_gettext_libc=yes
|
|---|
| 3828 | else
|
|---|
| 3829 | echo "configure: failed program was:" >&5
|
|---|
| 3830 | cat conftest.$ac_ext >&5
|
|---|
| 3831 | rm -rf conftest*
|
|---|
| 3832 | gt_cv_func_gettext_libc=no
|
|---|
| 3833 | fi
|
|---|
| 3834 | rm -f conftest*
|
|---|
| 3835 | fi
|
|---|
| 3836 |
|
|---|
| 3837 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
|
|---|
| 3838 |
|
|---|
| 3839 | if test "$gt_cv_func_gettext_libc" != "yes"; then
|
|---|
| 3840 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
|
|---|
| 3841 | echo "configure:3842: checking for bindtextdomain in -lintl" >&5
|
|---|
| 3842 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
|
|---|
| 3843 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 3844 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3845 | else
|
|---|
| 3846 | ac_save_LIBS="$LIBS"
|
|---|
| 3847 | LIBS="-lintl $LIBS"
|
|---|
| 3848 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3849 | #line 3850 "configure"
|
|---|
| 3850 | #include "confdefs.h"
|
|---|
| 3851 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3852 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3853 | builtin and then its argument prototype would still apply. */
|
|---|
| 3854 | char bindtextdomain();
|
|---|
| 3855 |
|
|---|
| 3856 | int main() {
|
|---|
| 3857 | bindtextdomain()
|
|---|
| 3858 | ; return 0; }
|
|---|
| 3859 | EOF
|
|---|
| 3860 | if { (eval echo configure:3861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3861 | rm -rf conftest*
|
|---|
| 3862 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 3863 | else
|
|---|
| 3864 | echo "configure: failed program was:" >&5
|
|---|
| 3865 | cat conftest.$ac_ext >&5
|
|---|
| 3866 | rm -rf conftest*
|
|---|
| 3867 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 3868 | fi
|
|---|
| 3869 | rm -f conftest*
|
|---|
| 3870 | LIBS="$ac_save_LIBS"
|
|---|
| 3871 |
|
|---|
| 3872 | fi
|
|---|
| 3873 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 3874 | echo "$ac_t""yes" 1>&6
|
|---|
| 3875 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
|
|---|
| 3876 | echo "configure:3877: checking for gettext in libintl" >&5
|
|---|
| 3877 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
|
|---|
| 3878 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3879 | else
|
|---|
| 3880 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3881 | #line 3882 "configure"
|
|---|
| 3882 | #include "confdefs.h"
|
|---|
| 3883 |
|
|---|
| 3884 | int main() {
|
|---|
| 3885 | return (int) gettext ("")
|
|---|
| 3886 | ; return 0; }
|
|---|
| 3887 | EOF
|
|---|
| 3888 | if { (eval echo configure:3889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3889 | rm -rf conftest*
|
|---|
| 3890 | gt_cv_func_gettext_libintl=yes
|
|---|
| 3891 | else
|
|---|
| 3892 | echo "configure: failed program was:" >&5
|
|---|
| 3893 | cat conftest.$ac_ext >&5
|
|---|
| 3894 | rm -rf conftest*
|
|---|
| 3895 | gt_cv_func_gettext_libintl=no
|
|---|
| 3896 | fi
|
|---|
| 3897 | rm -f conftest*
|
|---|
| 3898 | fi
|
|---|
| 3899 |
|
|---|
| 3900 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
|
|---|
| 3901 | else
|
|---|
| 3902 | echo "$ac_t""no" 1>&6
|
|---|
| 3903 | fi
|
|---|
| 3904 |
|
|---|
| 3905 | fi
|
|---|
| 3906 |
|
|---|
| 3907 | if test "$gt_cv_func_gettext_libc" = "yes" \
|
|---|
| 3908 | || test "$gt_cv_func_gettext_libintl" = "yes"; then
|
|---|
| 3909 | cat >> confdefs.h <<\EOF
|
|---|
| 3910 | #define HAVE_GETTEXT 1
|
|---|
| 3911 | EOF
|
|---|
| 3912 |
|
|---|
| 3913 | # Extract the first word of "msgfmt", so it can be a program name with args.
|
|---|
| 3914 | set dummy msgfmt; ac_word=$2
|
|---|
| 3915 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 3916 | echo "configure:3917: checking for $ac_word" >&5
|
|---|
| 3917 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
|
|---|
| 3918 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3919 | else
|
|---|
| 3920 | case "$MSGFMT" in
|
|---|
| 3921 | /*)
|
|---|
| 3922 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
|---|
| 3923 | ;;
|
|---|
| 3924 | *)
|
|---|
| 3925 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
|---|
| 3926 | for ac_dir in $PATH; do
|
|---|
| 3927 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 3928 | if test -f $ac_dir/$ac_word; then
|
|---|
| 3929 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
|---|
| 3930 | ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
|---|
| 3931 | break
|
|---|
| 3932 | fi
|
|---|
| 3933 | fi
|
|---|
| 3934 | done
|
|---|
| 3935 | IFS="$ac_save_ifs"
|
|---|
| 3936 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
|
|---|
| 3937 | ;;
|
|---|
| 3938 | esac
|
|---|
| 3939 | fi
|
|---|
| 3940 | MSGFMT="$ac_cv_path_MSGFMT"
|
|---|
| 3941 | if test -n "$MSGFMT"; then
|
|---|
| 3942 | echo "$ac_t""$MSGFMT" 1>&6
|
|---|
| 3943 | else
|
|---|
| 3944 | echo "$ac_t""no" 1>&6
|
|---|
| 3945 | fi
|
|---|
| 3946 | if test "$MSGFMT" != "no"; then
|
|---|
| 3947 | for ac_func in dcgettext
|
|---|
| 3948 | do
|
|---|
| 3949 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 3950 | echo "configure:3951: checking for $ac_func" >&5
|
|---|
| 3951 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 3952 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3953 | else
|
|---|
| 3954 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3955 | #line 3956 "configure"
|
|---|
| 3956 | #include "confdefs.h"
|
|---|
| 3957 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 3958 | which can conflict with char $ac_func(); below. */
|
|---|
| 3959 | #include <assert.h>
|
|---|
| 3960 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3961 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3962 | builtin and then its argument prototype would still apply. */
|
|---|
| 3963 | char $ac_func();
|
|---|
| 3964 |
|
|---|
| 3965 | int main() {
|
|---|
| 3966 |
|
|---|
| 3967 | /* The GNU C library defines this for functions which it implements
|
|---|
| 3968 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 3969 | something starting with __ and the normal name is an alias. */
|
|---|
| 3970 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 3971 | choke me
|
|---|
| 3972 | #else
|
|---|
| 3973 | $ac_func();
|
|---|
| 3974 | #endif
|
|---|
| 3975 |
|
|---|
| 3976 | ; return 0; }
|
|---|
| 3977 | EOF
|
|---|
| 3978 | if { (eval echo configure:3979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3979 | rm -rf conftest*
|
|---|
| 3980 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 3981 | else
|
|---|
| 3982 | echo "configure: failed program was:" >&5
|
|---|
| 3983 | cat conftest.$ac_ext >&5
|
|---|
| 3984 | rm -rf conftest*
|
|---|
| 3985 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 3986 | fi
|
|---|
| 3987 | rm -f conftest*
|
|---|
| 3988 | fi
|
|---|
| 3989 |
|
|---|
| 3990 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 3991 | echo "$ac_t""yes" 1>&6
|
|---|
| 3992 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 3993 | cat >> confdefs.h <<EOF
|
|---|
| 3994 | #define $ac_tr_func 1
|
|---|
| 3995 | EOF
|
|---|
| 3996 |
|
|---|
| 3997 | else
|
|---|
| 3998 | echo "$ac_t""no" 1>&6
|
|---|
| 3999 | fi
|
|---|
| 4000 | done
|
|---|
| 4001 |
|
|---|
| 4002 | # Extract the first word of "gmsgfmt", so it can be a program name with args.
|
|---|
| 4003 | set dummy gmsgfmt; ac_word=$2
|
|---|
| 4004 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 4005 | echo "configure:4006: checking for $ac_word" >&5
|
|---|
| 4006 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
|
|---|
| 4007 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4008 | else
|
|---|
| 4009 | case "$GMSGFMT" in
|
|---|
| 4010 | /* | [a-zA-Z]:*)
|
|---|
| 4011 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
|---|
| 4012 | ;;
|
|---|
| 4013 | ?:/*)
|
|---|
| 4014 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
|
|---|
| 4015 | ;;
|
|---|
| 4016 | *)
|
|---|
| 4017 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 4018 | ac_dummy="$PATH"
|
|---|
| 4019 | for ac_dir in $ac_dummy; do
|
|---|
| 4020 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 4021 | if test -f $ac_dir/$ac_word; then
|
|---|
| 4022 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
|
|---|
| 4023 | break
|
|---|
| 4024 | fi
|
|---|
| 4025 | if test -f $ac_dir/$ac_word$ac_exeext; then
|
|---|
| 4026 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
|
|---|
| 4027 | break
|
|---|
| 4028 | fi
|
|---|
| 4029 | done
|
|---|
| 4030 | IFS="$ac_save_ifs"
|
|---|
| 4031 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
|---|
| 4032 | ;;
|
|---|
| 4033 | esac
|
|---|
| 4034 | fi
|
|---|
| 4035 | GMSGFMT="$ac_cv_path_GMSGFMT"
|
|---|
| 4036 | if test -n "$GMSGFMT"; then
|
|---|
| 4037 | echo "$ac_t""$GMSGFMT" 1>&6
|
|---|
| 4038 | else
|
|---|
| 4039 | echo "$ac_t""no" 1>&6
|
|---|
| 4040 | fi
|
|---|
| 4041 |
|
|---|
| 4042 | # Extract the first word of "xgettext", so it can be a program name with args.
|
|---|
| 4043 | set dummy xgettext; ac_word=$2
|
|---|
| 4044 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 4045 | echo "configure:4046: checking for $ac_word" >&5
|
|---|
| 4046 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
|
|---|
| 4047 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4048 | else
|
|---|
| 4049 | case "$XGETTEXT" in
|
|---|
| 4050 | /*)
|
|---|
| 4051 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
|---|
| 4052 | ;;
|
|---|
| 4053 | *)
|
|---|
| 4054 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
|---|
| 4055 | for ac_dir in $PATH; do
|
|---|
| 4056 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 4057 | if test -f $ac_dir/$ac_word; then
|
|---|
| 4058 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
|---|
| 4059 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
|---|
| 4060 | break
|
|---|
| 4061 | fi
|
|---|
| 4062 | fi
|
|---|
| 4063 | done
|
|---|
| 4064 | IFS="$ac_save_ifs"
|
|---|
| 4065 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
|---|
| 4066 | ;;
|
|---|
| 4067 | esac
|
|---|
| 4068 | fi
|
|---|
| 4069 | XGETTEXT="$ac_cv_path_XGETTEXT"
|
|---|
| 4070 | if test -n "$XGETTEXT"; then
|
|---|
| 4071 | echo "$ac_t""$XGETTEXT" 1>&6
|
|---|
| 4072 | else
|
|---|
| 4073 | echo "$ac_t""no" 1>&6
|
|---|
| 4074 | fi
|
|---|
| 4075 |
|
|---|
| 4076 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4077 | #line 4078 "configure"
|
|---|
| 4078 | #include "confdefs.h"
|
|---|
| 4079 |
|
|---|
| 4080 | int main() {
|
|---|
| 4081 | extern int _nl_msg_cat_cntr;
|
|---|
| 4082 | return _nl_msg_cat_cntr
|
|---|
| 4083 | ; return 0; }
|
|---|
| 4084 | EOF
|
|---|
| 4085 | if { (eval echo configure:4086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 4086 | rm -rf conftest*
|
|---|
| 4087 | CATOBJEXT=.gmo
|
|---|
| 4088 | DATADIRNAME=share
|
|---|
| 4089 | else
|
|---|
| 4090 | echo "configure: failed program was:" >&5
|
|---|
| 4091 | cat conftest.$ac_ext >&5
|
|---|
| 4092 | rm -rf conftest*
|
|---|
| 4093 | CATOBJEXT=.mo
|
|---|
| 4094 | DATADIRNAME=lib
|
|---|
| 4095 | fi
|
|---|
| 4096 | rm -f conftest*
|
|---|
| 4097 | INSTOBJEXT=.mo
|
|---|
| 4098 | fi
|
|---|
| 4099 | fi
|
|---|
| 4100 |
|
|---|
| 4101 | else
|
|---|
| 4102 | echo "$ac_t""no" 1>&6
|
|---|
| 4103 | fi
|
|---|
| 4104 |
|
|---|
| 4105 |
|
|---|
| 4106 |
|
|---|
| 4107 | if test "$CATOBJEXT" = "NONE"; then
|
|---|
| 4108 | nls_cv_use_gnu_gettext=yes
|
|---|
| 4109 | fi
|
|---|
| 4110 | fi
|
|---|
| 4111 |
|
|---|
| 4112 | if test "$nls_cv_use_gnu_gettext" = "yes"; then
|
|---|
| 4113 | INTLOBJS="\$(GETTOBJS)"
|
|---|
| 4114 | # Extract the first word of "msgfmt", so it can be a program name with args.
|
|---|
| 4115 | set dummy msgfmt; ac_word=$2
|
|---|
| 4116 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 4117 | echo "configure:4118: checking for $ac_word" >&5
|
|---|
| 4118 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
|
|---|
| 4119 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4120 | else
|
|---|
| 4121 | case "$MSGFMT" in
|
|---|
| 4122 | /*)
|
|---|
| 4123 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
|---|
| 4124 | ;;
|
|---|
| 4125 | *)
|
|---|
| 4126 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
|---|
| 4127 | for ac_dir in $PATH; do
|
|---|
| 4128 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 4129 | if test -f $ac_dir/$ac_word; then
|
|---|
| 4130 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
|---|
| 4131 | ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
|---|
| 4132 | break
|
|---|
| 4133 | fi
|
|---|
| 4134 | fi
|
|---|
| 4135 | done
|
|---|
| 4136 | IFS="$ac_save_ifs"
|
|---|
| 4137 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
|
|---|
| 4138 | ;;
|
|---|
| 4139 | esac
|
|---|
| 4140 | fi
|
|---|
| 4141 | MSGFMT="$ac_cv_path_MSGFMT"
|
|---|
| 4142 | if test -n "$MSGFMT"; then
|
|---|
| 4143 | echo "$ac_t""$MSGFMT" 1>&6
|
|---|
| 4144 | else
|
|---|
| 4145 | echo "$ac_t""no" 1>&6
|
|---|
| 4146 | fi
|
|---|
| 4147 |
|
|---|
| 4148 | # Extract the first word of "gmsgfmt", so it can be a program name with args.
|
|---|
| 4149 | set dummy gmsgfmt; ac_word=$2
|
|---|
| 4150 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 4151 | echo "configure:4152: checking for $ac_word" >&5
|
|---|
| 4152 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
|
|---|
| 4153 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4154 | else
|
|---|
| 4155 | case "$GMSGFMT" in
|
|---|
| 4156 | /* | [a-zA-Z]:*)
|
|---|
| 4157 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
|---|
| 4158 | ;;
|
|---|
| 4159 | ?:/*)
|
|---|
| 4160 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
|
|---|
| 4161 | ;;
|
|---|
| 4162 | *)
|
|---|
| 4163 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 4164 | ac_dummy="$PATH"
|
|---|
| 4165 | for ac_dir in $ac_dummy; do
|
|---|
| 4166 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 4167 | if test -f $ac_dir/$ac_word; then
|
|---|
| 4168 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
|
|---|
| 4169 | break
|
|---|
| 4170 | fi
|
|---|
| 4171 | if test -f $ac_dir/$ac_word$ac_exeext; then
|
|---|
| 4172 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
|
|---|
| 4173 | break
|
|---|
| 4174 | fi
|
|---|
| 4175 | done
|
|---|
| 4176 | IFS="$ac_save_ifs"
|
|---|
| 4177 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
|---|
| 4178 | ;;
|
|---|
| 4179 | esac
|
|---|
| 4180 | fi
|
|---|
| 4181 | GMSGFMT="$ac_cv_path_GMSGFMT"
|
|---|
| 4182 | if test -n "$GMSGFMT"; then
|
|---|
| 4183 | echo "$ac_t""$GMSGFMT" 1>&6
|
|---|
| 4184 | else
|
|---|
| 4185 | echo "$ac_t""no" 1>&6
|
|---|
| 4186 | fi
|
|---|
| 4187 |
|
|---|
| 4188 | # Extract the first word of "xgettext", so it can be a program name with args.
|
|---|
| 4189 | set dummy xgettext; ac_word=$2
|
|---|
| 4190 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 4191 | echo "configure:4192: checking for $ac_word" >&5
|
|---|
| 4192 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
|
|---|
| 4193 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4194 | else
|
|---|
| 4195 | case "$XGETTEXT" in
|
|---|
| 4196 | /*)
|
|---|
| 4197 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
|---|
| 4198 | ;;
|
|---|
| 4199 | *)
|
|---|
| 4200 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
|
|---|
| 4201 | for ac_dir in $PATH; do
|
|---|
| 4202 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 4203 | if test -f $ac_dir/$ac_word; then
|
|---|
| 4204 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
|---|
| 4205 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
|---|
| 4206 | break
|
|---|
| 4207 | fi
|
|---|
| 4208 | fi
|
|---|
| 4209 | done
|
|---|
| 4210 | IFS="$ac_save_ifs"
|
|---|
| 4211 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
|---|
| 4212 | ;;
|
|---|
| 4213 | esac
|
|---|
| 4214 | fi
|
|---|
| 4215 | XGETTEXT="$ac_cv_path_XGETTEXT"
|
|---|
| 4216 | if test -n "$XGETTEXT"; then
|
|---|
| 4217 | echo "$ac_t""$XGETTEXT" 1>&6
|
|---|
| 4218 | else
|
|---|
| 4219 | echo "$ac_t""no" 1>&6
|
|---|
| 4220 | fi
|
|---|
| 4221 |
|
|---|
| 4222 |
|
|---|
| 4223 | USE_INCLUDED_LIBINTL=yes
|
|---|
| 4224 | CATOBJEXT=.gmo
|
|---|
| 4225 | INSTOBJEXT=.mo
|
|---|
| 4226 | DATADIRNAME=share
|
|---|
| 4227 | INTLDEPS='$(top_builddir)/../intl/libintl.a'
|
|---|
| 4228 | INTLLIBS=$INTLDEPS
|
|---|
| 4229 | LIBS=`echo $LIBS | sed -e 's/-lintl//'`
|
|---|
| 4230 | nls_cv_header_intl=libintl.h
|
|---|
| 4231 | nls_cv_header_libgt=libgettext.h
|
|---|
| 4232 | fi
|
|---|
| 4233 |
|
|---|
| 4234 | if test "$XGETTEXT" != ":"; then
|
|---|
| 4235 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
|
|---|
| 4236 | : ;
|
|---|
| 4237 | else
|
|---|
| 4238 | echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
|
|---|
| 4239 | XGETTEXT=":"
|
|---|
| 4240 | fi
|
|---|
| 4241 | fi
|
|---|
| 4242 |
|
|---|
| 4243 | # We need to process the po/ directory.
|
|---|
| 4244 | POSUB=po
|
|---|
| 4245 | else
|
|---|
| 4246 | DATADIRNAME=share
|
|---|
| 4247 | nls_cv_header_intl=libintl.h
|
|---|
| 4248 | nls_cv_header_libgt=libgettext.h
|
|---|
| 4249 | fi
|
|---|
| 4250 |
|
|---|
| 4251 | # If this is used in GNU gettext we have to set USE_NLS to `yes'
|
|---|
| 4252 | # because some of the sources are only built for this goal.
|
|---|
| 4253 | if test "$PACKAGE" = gettext; then
|
|---|
| 4254 | USE_NLS=yes
|
|---|
| 4255 | USE_INCLUDED_LIBINTL=yes
|
|---|
| 4256 | fi
|
|---|
| 4257 |
|
|---|
| 4258 | for lang in $ALL_LINGUAS; do
|
|---|
| 4259 | GMOFILES="$GMOFILES $lang.gmo"
|
|---|
| 4260 | POFILES="$POFILES $lang.po"
|
|---|
| 4261 | done
|
|---|
| 4262 |
|
|---|
| 4263 |
|
|---|
| 4264 |
|
|---|
| 4265 |
|
|---|
| 4266 |
|
|---|
| 4267 |
|
|---|
| 4268 |
|
|---|
| 4269 |
|
|---|
| 4270 |
|
|---|
| 4271 |
|
|---|
| 4272 |
|
|---|
| 4273 |
|
|---|
| 4274 |
|
|---|
| 4275 |
|
|---|
| 4276 | if test "x$CATOBJEXT" != "x"; then
|
|---|
| 4277 | if test "x$ALL_LINGUAS" = "x"; then
|
|---|
| 4278 | LINGUAS=
|
|---|
| 4279 | else
|
|---|
| 4280 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
|
|---|
| 4281 | echo "configure:4282: checking for catalogs to be installed" >&5
|
|---|
| 4282 | NEW_LINGUAS=
|
|---|
| 4283 | for lang in ${LINGUAS=$ALL_LINGUAS}; do
|
|---|
| 4284 | case "$ALL_LINGUAS" in
|
|---|
| 4285 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
|
|---|
| 4286 | esac
|
|---|
| 4287 | done
|
|---|
| 4288 | LINGUAS=$NEW_LINGUAS
|
|---|
| 4289 | echo "$ac_t""$LINGUAS" 1>&6
|
|---|
| 4290 | fi
|
|---|
| 4291 |
|
|---|
| 4292 | if test -n "$LINGUAS"; then
|
|---|
| 4293 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
|
|---|
| 4294 | fi
|
|---|
| 4295 | fi
|
|---|
| 4296 |
|
|---|
| 4297 | if test $ac_cv_header_locale_h = yes; then
|
|---|
| 4298 | INCLUDE_LOCALE_H="#include <locale.h>"
|
|---|
| 4299 | else
|
|---|
| 4300 | INCLUDE_LOCALE_H="\
|
|---|
| 4301 | /* The system does not provide the header <locale.h>. Take care yourself. */"
|
|---|
| 4302 | fi
|
|---|
| 4303 |
|
|---|
| 4304 |
|
|---|
| 4305 | if test -f $srcdir/po2tbl.sed.in; then
|
|---|
| 4306 | if test "$CATOBJEXT" = ".cat"; then
|
|---|
| 4307 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
|
|---|
| 4308 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
|
|---|
| 4309 | echo "configure:4310: checking for linux/version.h" >&5
|
|---|
| 4310 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 4311 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4312 | else
|
|---|
| 4313 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4314 | #include <sys/types.h>
|
|---|
| 4315 | #line 4316 "configure"
|
|---|
| 4316 | #include "confdefs.h"
|
|---|
| 4317 | #include <linux/version.h>
|
|---|
| 4318 | EOF
|
|---|
| 4319 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 4320 | { (eval echo configure:4321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 4321 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 4322 | if test -z "$ac_err"; then
|
|---|
| 4323 | rm -rf conftest*
|
|---|
| 4324 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 4325 | else
|
|---|
| 4326 | echo "$ac_err" >&5
|
|---|
| 4327 | echo "configure: failed program was:" >&5
|
|---|
| 4328 | cat conftest.$ac_ext >&5
|
|---|
| 4329 | rm -rf conftest*
|
|---|
| 4330 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 4331 | fi
|
|---|
| 4332 | rm -f conftest*
|
|---|
| 4333 | fi
|
|---|
| 4334 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 4335 | echo "$ac_t""yes" 1>&6
|
|---|
| 4336 | msgformat=linux
|
|---|
| 4337 | else
|
|---|
| 4338 | echo "$ac_t""no" 1>&6
|
|---|
| 4339 | msgformat=xopen
|
|---|
| 4340 | fi
|
|---|
| 4341 |
|
|---|
| 4342 |
|
|---|
| 4343 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
|
|---|
| 4344 | fi
|
|---|
| 4345 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
|
|---|
| 4346 | $srcdir/po2tbl.sed.in > po2tbl.sed
|
|---|
| 4347 | fi
|
|---|
| 4348 |
|
|---|
| 4349 | if test "$PACKAGE" = "gettext"; then
|
|---|
| 4350 | GT_NO="#NO#"
|
|---|
| 4351 | GT_YES=
|
|---|
| 4352 | else
|
|---|
| 4353 | GT_NO=
|
|---|
| 4354 | GT_YES="#YES#"
|
|---|
| 4355 | fi
|
|---|
| 4356 |
|
|---|
| 4357 |
|
|---|
| 4358 |
|
|---|
| 4359 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
|
|---|
| 4360 |
|
|---|
| 4361 |
|
|---|
| 4362 | l=
|
|---|
| 4363 |
|
|---|
| 4364 |
|
|---|
| 4365 | if test -d $srcdir/po; then
|
|---|
| 4366 | test -d po || mkdir po
|
|---|
| 4367 | if test "x$srcdir" != "x."; then
|
|---|
| 4368 | if test "x`echo $srcdir | sed -e 's@.\:/.*@@' -e 's@/.*@@' `" = "x"; then
|
|---|
| 4369 | posrcprefix="$srcdir/"
|
|---|
| 4370 | else
|
|---|
| 4371 | posrcprefix="../$srcdir/"
|
|---|
| 4372 | fi
|
|---|
| 4373 | else
|
|---|
| 4374 | posrcprefix="../"
|
|---|
| 4375 | fi
|
|---|
| 4376 | rm -f po/POTFILES
|
|---|
| 4377 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
|
|---|
| 4378 | < $srcdir/po/POTFILES.in > po/POTFILES
|
|---|
| 4379 | fi
|
|---|
| 4380 |
|
|---|
| 4381 |
|
|---|
| 4382 | . ${srcdir}/../bfd/configure.host
|
|---|
| 4383 |
|
|---|
| 4384 |
|
|---|
| 4385 | # Find a good install program. We prefer a C program (faster),
|
|---|
| 4386 | # so one script is as good as another. But avoid the broken or
|
|---|
| 4387 | # incompatible versions:
|
|---|
| 4388 | # SysV /etc/install, /usr/sbin/install
|
|---|
| 4389 | # SunOS /usr/etc/install
|
|---|
| 4390 | # IRIX /sbin/install
|
|---|
| 4391 | # AIX /bin/install
|
|---|
| 4392 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
|---|
| 4393 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|---|
| 4394 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|---|
| 4395 | # ./install, which can be erroneously created by make from ./install.sh.
|
|---|
| 4396 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
|---|
| 4397 | echo "configure:4398: checking for a BSD compatible install" >&5
|
|---|
| 4398 | if test -z "$INSTALL"; then
|
|---|
| 4399 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
|---|
| 4400 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4401 | else
|
|---|
| 4402 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
|
|---|
| 4403 | for ac_dir in $PATH; do
|
|---|
| 4404 | # Account for people who put trailing slashes in PATH elements.
|
|---|
| 4405 | case "$ac_dir/" in
|
|---|
| 4406 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
|---|
| 4407 | # We reject the install program from OS/2 or W3.1
|
|---|
| 4408 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
|
|---|
| 4409 | *)
|
|---|
| 4410 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
|---|
| 4411 | # Don't use installbsd from OSF since it installs stuff as root
|
|---|
| 4412 | # by default.
|
|---|
| 4413 | for ac_prog in ginstall scoinst install; do
|
|---|
| 4414 | if test -f $ac_dir/$ac_prog$ac_exeext; then
|
|---|
| 4415 | if test $ac_prog = install &&
|
|---|
| 4416 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|---|
| 4417 | # AIX install. It has an incompatible calling convention.
|
|---|
| 4418 | :
|
|---|
| 4419 | else
|
|---|
| 4420 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
|
|---|
| 4421 | break 2
|
|---|
| 4422 | fi
|
|---|
| 4423 | fi
|
|---|
| 4424 | done
|
|---|
| 4425 | ;;
|
|---|
| 4426 | esac
|
|---|
| 4427 | done
|
|---|
| 4428 | IFS="$ac_save_IFS"
|
|---|
| 4429 |
|
|---|
| 4430 | fi
|
|---|
| 4431 | if test "${ac_cv_path_install+set}" = set; then
|
|---|
| 4432 | INSTALL="$ac_cv_path_install"
|
|---|
| 4433 | else
|
|---|
| 4434 | # As a last resort, use the slow shell script. We don't cache a
|
|---|
| 4435 | # path for INSTALL within a source directory, because that will
|
|---|
| 4436 | # break other packages using the cache if that directory is
|
|---|
| 4437 | # removed, or if the path is relative.
|
|---|
| 4438 | INSTALL="$ac_install_sh"
|
|---|
| 4439 | fi
|
|---|
| 4440 | fi
|
|---|
| 4441 | echo "$ac_t""$INSTALL" 1>&6
|
|---|
| 4442 |
|
|---|
| 4443 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
|---|
| 4444 | # It thinks the first close brace ends the variable substitution.
|
|---|
| 4445 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|---|
| 4446 |
|
|---|
| 4447 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
|---|
| 4448 |
|
|---|
| 4449 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|---|
| 4450 |
|
|---|
| 4451 |
|
|---|
| 4452 | for ac_hdr in string.h strings.h stdlib.h
|
|---|
| 4453 | do
|
|---|
| 4454 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|---|
| 4455 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|---|
| 4456 | echo "configure:4457: checking for $ac_hdr" >&5
|
|---|
| 4457 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 4458 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4459 | else
|
|---|
| 4460 | cat > conftest.$ac_ext <<EOF
|
|---|
| 4461 | #include <sys/types.h>
|
|---|
| 4462 | #line 4463 "configure"
|
|---|
| 4463 | #include "confdefs.h"
|
|---|
| 4464 | #include <$ac_hdr>
|
|---|
| 4465 | EOF
|
|---|
| 4466 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 4467 | { (eval echo configure:4468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 4468 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 4469 | if test -z "$ac_err"; then
|
|---|
| 4470 | rm -rf conftest*
|
|---|
| 4471 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 4472 | else
|
|---|
| 4473 | echo "$ac_err" >&5
|
|---|
| 4474 | echo "configure: failed program was:" >&5
|
|---|
| 4475 | cat conftest.$ac_ext >&5
|
|---|
| 4476 | rm -rf conftest*
|
|---|
| 4477 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 4478 | fi
|
|---|
| 4479 | rm -f conftest*
|
|---|
| 4480 | fi
|
|---|
| 4481 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 4482 | echo "$ac_t""yes" 1>&6
|
|---|
| 4483 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|---|
| 4484 | cat >> confdefs.h <<EOF
|
|---|
| 4485 | #define $ac_tr_hdr 1
|
|---|
| 4486 | EOF
|
|---|
| 4487 |
|
|---|
| 4488 | else
|
|---|
| 4489 | echo "$ac_t""no" 1>&6
|
|---|
| 4490 | fi
|
|---|
| 4491 | done
|
|---|
| 4492 |
|
|---|
| 4493 |
|
|---|
| 4494 | cgen_maint=no
|
|---|
| 4495 | cgendir='$(srcdir)/../cgen'
|
|---|
| 4496 |
|
|---|
| 4497 | # Check whether --enable-cgen-maint or --disable-cgen-maint was given.
|
|---|
| 4498 | if test "${enable_cgen_maint+set}" = set; then
|
|---|
| 4499 | enableval="$enable_cgen_maint"
|
|---|
| 4500 | case "${enableval}" in
|
|---|
| 4501 | yes) cgen_maint=yes ;;
|
|---|
| 4502 | no) cgen_maint=no ;;
|
|---|
| 4503 | *)
|
|---|
| 4504 | # argument is cgen install directory (not implemented yet).
|
|---|
| 4505 | # Having a `share' directory might be more appropriate for the .scm,
|
|---|
| 4506 | # .cpu, etc. files.
|
|---|
| 4507 | cgen_maint=yes
|
|---|
| 4508 | cgendir=${cgen_maint}/lib/cgen
|
|---|
| 4509 | ;;
|
|---|
| 4510 | esac
|
|---|
| 4511 | fi
|
|---|
| 4512 |
|
|---|
| 4513 |
|
|---|
| 4514 | if test x${cgen_maint} = xyes; then
|
|---|
| 4515 | CGEN_MAINT_TRUE=
|
|---|
| 4516 | CGEN_MAINT_FALSE='#'
|
|---|
| 4517 | else
|
|---|
| 4518 | CGEN_MAINT_TRUE='#'
|
|---|
| 4519 | CGEN_MAINT_FALSE=
|
|---|
| 4520 | fi
|
|---|
| 4521 |
|
|---|
| 4522 |
|
|---|
| 4523 | using_cgen=no
|
|---|
| 4524 |
|
|---|
| 4525 | # Horrible hacks to build DLLs on Windows.
|
|---|
| 4526 | WIN32LDFLAGS=
|
|---|
| 4527 | WIN32LIBADD=
|
|---|
| 4528 | case "${host}" in
|
|---|
| 4529 | *-*-cygwin*)
|
|---|
| 4530 | if test "$enable_shared" = "yes"; then
|
|---|
| 4531 | WIN32LDFLAGS="-no-undefined"
|
|---|
| 4532 | WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
|
|---|
| 4533 | fi
|
|---|
| 4534 | ;;
|
|---|
| 4535 | esac
|
|---|
| 4536 |
|
|---|
| 4537 |
|
|---|
| 4538 |
|
|---|
| 4539 | # target-specific stuff:
|
|---|
| 4540 |
|
|---|
| 4541 | # Canonicalize the secondary target names.
|
|---|
| 4542 | if test -n "$enable_targets" ; then
|
|---|
| 4543 | for targ in `echo $enable_targets | sed 's/,/ /g'`
|
|---|
| 4544 | do
|
|---|
| 4545 | result=`$ac_config_sub $targ 2>/dev/null`
|
|---|
| 4546 | if test -n "$result" ; then
|
|---|
| 4547 | canon_targets="$canon_targets $result"
|
|---|
| 4548 | else
|
|---|
| 4549 | # Allow targets that config.sub doesn't recognize, like "all".
|
|---|
| 4550 | canon_targets="$canon_targets $targ"
|
|---|
| 4551 | fi
|
|---|
| 4552 | done
|
|---|
| 4553 | fi
|
|---|
| 4554 |
|
|---|
| 4555 | all_targets=false
|
|---|
| 4556 | selarchs=
|
|---|
| 4557 | for targ in $target $canon_targets
|
|---|
| 4558 | do
|
|---|
| 4559 | if test "x$targ" = "xall" ; then
|
|---|
| 4560 | all_targets=true
|
|---|
| 4561 | else
|
|---|
| 4562 | . $srcdir/../bfd/config.bfd
|
|---|
| 4563 | selarchs="$selarchs $targ_archs"
|
|---|
| 4564 | fi
|
|---|
| 4565 | done
|
|---|
| 4566 |
|
|---|
| 4567 | # Utility var, documents generic cgen support files.
|
|---|
| 4568 |
|
|---|
| 4569 | cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo"
|
|---|
| 4570 |
|
|---|
| 4571 | # We don't do any links based on the target system, just makefile config.
|
|---|
| 4572 |
|
|---|
| 4573 | if test x${all_targets} = xfalse ; then
|
|---|
| 4574 |
|
|---|
| 4575 | # Target architecture .o files.
|
|---|
| 4576 | ta=
|
|---|
| 4577 |
|
|---|
| 4578 | for arch in $selarchs
|
|---|
| 4579 | do
|
|---|
| 4580 | ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
|
|---|
| 4581 | archdefs="$archdefs -DARCH_$ad"
|
|---|
| 4582 | case "$arch" in
|
|---|
| 4583 | bfd_a29k_arch) ta="$ta a29k-dis.lo" ;;
|
|---|
| 4584 | bfd_alliant_arch) ;;
|
|---|
| 4585 | bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
|
|---|
| 4586 | bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
|
|---|
| 4587 | bfd_arm_arch) ta="$ta arm-dis.lo" ;;
|
|---|
| 4588 | bfd_avr_arch) ta="$ta avr-dis.lo" ;;
|
|---|
| 4589 | bfd_convex_arch) ;;
|
|---|
| 4590 | bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo" ;;
|
|---|
| 4591 | bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
|
|---|
| 4592 | bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
|
|---|
| 4593 | bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
|
|---|
| 4594 | bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
|
|---|
| 4595 | bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
|
|---|
| 4596 | bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
|
|---|
| 4597 | bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;;
|
|---|
| 4598 | bfd_i386_arch) ta="$ta i386-dis.lo" ;;
|
|---|
| 4599 | bfd_i860_arch) ta="$ta i860-dis.lo" ;;
|
|---|
| 4600 | bfd_i960_arch) ta="$ta i960-dis.lo" ;;
|
|---|
| 4601 | bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
|
|---|
| 4602 | bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
|
|---|
| 4603 | bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
|
|---|
| 4604 | bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
|
|---|
| 4605 | bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
|
|---|
| 4606 | bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
|
|---|
| 4607 | bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
|
|---|
| 4608 | bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
|
|---|
| 4609 | bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
|
|---|
| 4610 | bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
|
|---|
| 4611 | bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
|
|---|
| 4612 | bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
|
|---|
| 4613 | bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
|
|---|
| 4614 | bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
|
|---|
| 4615 | bfd_pyramid_arch) ;;
|
|---|
| 4616 | bfd_romp_arch) ;;
|
|---|
| 4617 | bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
|
|---|
| 4618 | bfd_sh_arch)
|
|---|
| 4619 | ta="$ta sh-dis.lo" ;;
|
|---|
| 4620 | bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
|
|---|
| 4621 | bfd_tahoe_arch) ;;
|
|---|
| 4622 | bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
|
|---|
| 4623 | bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
|
|---|
| 4624 | bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
|
|---|
| 4625 | bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
|
|---|
| 4626 | bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
|
|---|
| 4627 | bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
|
|---|
| 4628 | bfd_vax_arch) ta="$ta vax-dis.lo" ;;
|
|---|
| 4629 | bfd_w65_arch) ta="$ta w65-dis.lo" ;;
|
|---|
| 4630 | bfd_we32k_arch) ;;
|
|---|
| 4631 | bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
|
|---|
| 4632 |
|
|---|
| 4633 | "") ;;
|
|---|
| 4634 | *) { echo "configure: error: *** unknown target architecture $arch" 1>&2; exit 1; } ;;
|
|---|
| 4635 | esac
|
|---|
| 4636 | done
|
|---|
| 4637 |
|
|---|
| 4638 | if test $using_cgen = yes ; then
|
|---|
| 4639 | ta="$ta $cgen_files"
|
|---|
| 4640 | fi
|
|---|
| 4641 |
|
|---|
| 4642 | # Weed out duplicate .o files.
|
|---|
| 4643 | f=""
|
|---|
| 4644 | for i in $ta ; do
|
|---|
| 4645 | case " $f " in
|
|---|
| 4646 | *" $i "*) ;;
|
|---|
| 4647 | *) f="$f $i" ;;
|
|---|
| 4648 | esac
|
|---|
| 4649 | done
|
|---|
| 4650 | ta="$f"
|
|---|
| 4651 |
|
|---|
| 4652 | # And duplicate -D flags.
|
|---|
| 4653 | f=""
|
|---|
| 4654 | for i in $archdefs ; do
|
|---|
| 4655 | case " $f " in
|
|---|
| 4656 | *" $i "*) ;;
|
|---|
| 4657 | *) f="$f $i" ;;
|
|---|
| 4658 | esac
|
|---|
| 4659 | done
|
|---|
| 4660 | archdefs="$f"
|
|---|
| 4661 |
|
|---|
| 4662 | BFD_MACHINES="$ta"
|
|---|
| 4663 |
|
|---|
| 4664 | else # all_targets is true
|
|---|
| 4665 | archdefs=-DARCH_all
|
|---|
| 4666 | BFD_MACHINES='$(ALL_MACHINES)'
|
|---|
| 4667 | fi
|
|---|
| 4668 |
|
|---|
| 4669 |
|
|---|
| 4670 |
|
|---|
| 4671 |
|
|---|
| 4672 | trap '' 1 2 15
|
|---|
| 4673 | cat > confcache <<\EOF
|
|---|
| 4674 | # This file is a shell script that caches the results of configure
|
|---|
| 4675 | # tests run on this system so they can be shared between configure
|
|---|
| 4676 | # scripts and configure runs. It is not useful on other systems.
|
|---|
| 4677 | # If it contains results you don't want to keep, you may remove or edit it.
|
|---|
| 4678 | #
|
|---|
| 4679 | # By default, configure uses ./config.cache as the cache file,
|
|---|
| 4680 | # creating it if it does not exist already. You can give configure
|
|---|
| 4681 | # the --cache-file=FILE option to use a different cache file; that is
|
|---|
| 4682 | # what configure does when it calls configure scripts in
|
|---|
| 4683 | # subdirectories, so they share the cache.
|
|---|
| 4684 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
|---|
| 4685 | # config.status only pays attention to the cache file if you give it the
|
|---|
| 4686 | # --recheck option to rerun configure.
|
|---|
| 4687 | #
|
|---|
| 4688 | EOF
|
|---|
| 4689 | # The following way of writing the cache mishandles newlines in values,
|
|---|
| 4690 | # but we know of no workaround that is simple, portable, and efficient.
|
|---|
| 4691 | # So, don't put newlines in cache variables' values.
|
|---|
| 4692 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
|---|
| 4693 | # and sets the high bit in the cache file unless we assign to the vars.
|
|---|
| 4694 | (set) 2>&1 |
|
|---|
| 4695 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
|---|
| 4696 | *ac_space=\ *)
|
|---|
| 4697 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
|---|
| 4698 | # turns \\\\ into \\, and sed turns \\ into \).
|
|---|
| 4699 | sed -n \
|
|---|
| 4700 | -e "s/'/'\\\\''/g" \
|
|---|
| 4701 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
|---|
| 4702 | ;;
|
|---|
| 4703 | *)
|
|---|
| 4704 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
|---|
| 4705 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
|---|
| 4706 | ;;
|
|---|
| 4707 | esac >> confcache
|
|---|
| 4708 | if cmp -s $cache_file confcache; then
|
|---|
| 4709 | :
|
|---|
| 4710 | else
|
|---|
| 4711 | if test -w $cache_file; then
|
|---|
| 4712 | echo "updating cache $cache_file"
|
|---|
| 4713 | cat confcache > $cache_file
|
|---|
| 4714 | else
|
|---|
| 4715 | echo "not updating unwritable cache $cache_file"
|
|---|
| 4716 | fi
|
|---|
| 4717 | fi
|
|---|
| 4718 | rm -f confcache
|
|---|
| 4719 |
|
|---|
| 4720 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|---|
| 4721 |
|
|---|
| 4722 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|---|
| 4723 | # Let make expand exec_prefix.
|
|---|
| 4724 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
|---|
| 4725 |
|
|---|
| 4726 | # Any assignment to VPATH causes Sun make to only execute
|
|---|
| 4727 | # the first set of double-colon rules, so remove it if not needed.
|
|---|
| 4728 | # If there is a colon in the path, we need to keep it.
|
|---|
| 4729 | if test "x$srcdir" = x.; then
|
|---|
| 4730 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
|---|
| 4731 | fi
|
|---|
| 4732 |
|
|---|
| 4733 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
|---|
| 4734 |
|
|---|
| 4735 | DEFS=-DHAVE_CONFIG_H
|
|---|
| 4736 |
|
|---|
| 4737 | # Without the "./", some shells look in PATH for config.status.
|
|---|
| 4738 | : ${CONFIG_STATUS=./config.status}
|
|---|
| 4739 |
|
|---|
| 4740 | echo creating $CONFIG_STATUS
|
|---|
| 4741 | rm -f $CONFIG_STATUS
|
|---|
| 4742 | cat > $CONFIG_STATUS <<EOF
|
|---|
| 4743 | #! /bin/sh
|
|---|
| 4744 | # Generated automatically by configure.
|
|---|
| 4745 | # Run this file to recreate the current configuration.
|
|---|
| 4746 | # This directory was configured as follows,
|
|---|
| 4747 | EOF
|
|---|
| 4748 | echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS
|
|---|
| 4749 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 4750 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|---|
| 4751 | #
|
|---|
| 4752 | # $0 $ac_configure_args
|
|---|
| 4753 | #
|
|---|
| 4754 | # Compiler output produced by configure, useful for debugging
|
|---|
| 4755 | # configure, is in ./config.log if it exists.
|
|---|
| 4756 |
|
|---|
| 4757 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
|---|
| 4758 | for ac_option
|
|---|
| 4759 | do
|
|---|
| 4760 | case "\$ac_option" in
|
|---|
| 4761 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
|---|
| 4762 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
|---|
| 4763 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
|---|
| 4764 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
|---|
| 4765 | echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
|---|
| 4766 | exit 0 ;;
|
|---|
| 4767 | -help | --help | --hel | --he | --h)
|
|---|
| 4768 | echo "\$ac_cs_usage"; exit 0 ;;
|
|---|
| 4769 | *) echo "\$ac_cs_usage"; exit 1 ;;
|
|---|
| 4770 | esac
|
|---|
| 4771 | done
|
|---|
| 4772 |
|
|---|
| 4773 | ac_given_srcdir=$srcdir
|
|---|
| 4774 | ac_given_INSTALL="$INSTALL"
|
|---|
| 4775 | PATHIFS="$PATH_IFS"
|
|---|
| 4776 |
|
|---|
| 4777 | trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
|---|
| 4778 | EOF
|
|---|
| 4779 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 4780 |
|
|---|
| 4781 | # Protect against being on the right side of a sed subst in config.status.
|
|---|
| 4782 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
|---|
| 4783 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
|---|
| 4784 | $ac_vpsub
|
|---|
| 4785 | $extrasub
|
|---|
| 4786 | s,\([^a-zA-Z0-9:]\)/bin/sh\(.exe\),\1${CONFIG_SHELL-/bin/sh}\2,g
|
|---|
| 4787 | s%@SHELL@%$SHELL%g
|
|---|
| 4788 | s%@CFLAGS@%$CFLAGS%g
|
|---|
| 4789 | s%@CPPFLAGS@%$CPPFLAGS%g
|
|---|
| 4790 | s%@CXXFLAGS@%$CXXFLAGS%g
|
|---|
| 4791 | s%@FFLAGS@%$FFLAGS%g
|
|---|
| 4792 | s%@DEFS@%$DEFS%g
|
|---|
| 4793 | s%@LDFLAGS@%$LDFLAGS%g
|
|---|
| 4794 | s%@LIBS@%$LIBS%g
|
|---|
| 4795 | s%@exec_prefix@%$exec_prefix%g
|
|---|
| 4796 | s%@prefix@%$prefix%g
|
|---|
| 4797 | s%@program_transform_name@%$program_transform_name%g
|
|---|
| 4798 | s%@bindir@%$bindir%g
|
|---|
| 4799 | s%@sbindir@%$sbindir%g
|
|---|
| 4800 | s%@libexecdir@%$libexecdir%g
|
|---|
| 4801 | s%@datadir@%$datadir%g
|
|---|
| 4802 | s%@sysconfdir@%$sysconfdir%g
|
|---|
| 4803 | s%@sharedstatedir@%$sharedstatedir%g
|
|---|
| 4804 | s%@localstatedir@%$localstatedir%g
|
|---|
| 4805 | s%@libdir@%$libdir%g
|
|---|
| 4806 | s%@includedir@%$includedir%g
|
|---|
| 4807 | s%@oldincludedir@%$oldincludedir%g
|
|---|
| 4808 | s%@infodir@%$infodir%g
|
|---|
| 4809 | s%@mandir@%$mandir%g
|
|---|
| 4810 | s%@PATH_IFS@%$PATH_IFS%g
|
|---|
| 4811 | s%@EXEEXT@%$EXEEXT%g
|
|---|
| 4812 | s%@host@%$host%g
|
|---|
| 4813 | s%@host_alias@%$host_alias%g
|
|---|
| 4814 | s%@host_cpu@%$host_cpu%g
|
|---|
| 4815 | s%@host_vendor@%$host_vendor%g
|
|---|
| 4816 | s%@host_os@%$host_os%g
|
|---|
| 4817 | s%@target@%$target%g
|
|---|
| 4818 | s%@target_alias@%$target_alias%g
|
|---|
| 4819 | s%@target_cpu@%$target_cpu%g
|
|---|
| 4820 | s%@target_vendor@%$target_vendor%g
|
|---|
| 4821 | s%@target_os@%$target_os%g
|
|---|
| 4822 | s%@build@%$build%g
|
|---|
| 4823 | s%@build_alias@%$build_alias%g
|
|---|
| 4824 | s%@build_cpu@%$build_cpu%g
|
|---|
| 4825 | s%@build_vendor@%$build_vendor%g
|
|---|
| 4826 | s%@build_os@%$build_os%g
|
|---|
| 4827 | s%@CC@%$CC%g
|
|---|
| 4828 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
|---|
| 4829 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
|---|
| 4830 | s%@INSTALL_DATA@%$INSTALL_DATA%g
|
|---|
| 4831 | s%@PACKAGE@%$PACKAGE%g
|
|---|
| 4832 | s%@VERSION@%$VERSION%g
|
|---|
| 4833 | s%@ACLOCAL@%$ACLOCAL%g
|
|---|
| 4834 | s%@AUTOCONF@%$AUTOCONF%g
|
|---|
| 4835 | s%@AUTOMAKE@%$AUTOMAKE%g
|
|---|
| 4836 | s%@AUTOHEADER@%$AUTOHEADER%g
|
|---|
| 4837 | s%@MAKEINFO@%$MAKEINFO%g
|
|---|
| 4838 | s%@SET_MAKE@%$SET_MAKE%g
|
|---|
| 4839 | s%@AR@%$AR%g
|
|---|
| 4840 | s%@RANLIB@%$RANLIB%g
|
|---|
| 4841 | s%@LN_S@%$LN_S%g
|
|---|
| 4842 | s%@OBJEXT@%$OBJEXT%g
|
|---|
| 4843 | s%@STRIP@%$STRIP%g
|
|---|
| 4844 | s%@LIBTOOL@%$LIBTOOL%g
|
|---|
| 4845 | s%@WARN_CFLAGS@%$WARN_CFLAGS%g
|
|---|
| 4846 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
|
|---|
| 4847 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
|
|---|
| 4848 | s%@MAINT@%$MAINT%g
|
|---|
| 4849 | s%@CPP@%$CPP%g
|
|---|
| 4850 | s%@ALLOCA@%$ALLOCA%g
|
|---|
| 4851 | s%@USE_NLS@%$USE_NLS%g
|
|---|
| 4852 | s%@MSGFMT@%$MSGFMT%g
|
|---|
| 4853 | s%@GMSGFMT@%$GMSGFMT%g
|
|---|
| 4854 | s%@XGETTEXT@%$XGETTEXT%g
|
|---|
| 4855 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
|
|---|
| 4856 | s%@CATALOGS@%$CATALOGS%g
|
|---|
| 4857 | s%@CATOBJEXT@%$CATOBJEXT%g
|
|---|
| 4858 | s%@DATADIRNAME@%$DATADIRNAME%g
|
|---|
| 4859 | s%@GMOFILES@%$GMOFILES%g
|
|---|
| 4860 | s%@INSTOBJEXT@%$INSTOBJEXT%g
|
|---|
| 4861 | s%@INTLDEPS@%$INTLDEPS%g
|
|---|
| 4862 | s%@INTLLIBS@%$INTLLIBS%g
|
|---|
| 4863 | s%@INTLOBJS@%$INTLOBJS%g
|
|---|
| 4864 | s%@POFILES@%$POFILES%g
|
|---|
| 4865 | s%@POSUB@%$POSUB%g
|
|---|
| 4866 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
|
|---|
| 4867 | s%@GT_NO@%$GT_NO%g
|
|---|
| 4868 | s%@GT_YES@%$GT_YES%g
|
|---|
| 4869 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
|
|---|
| 4870 | s%@l@%$l%g
|
|---|
| 4871 | s%@HDEFINES@%$HDEFINES%g
|
|---|
| 4872 | s%@CGEN_MAINT_TRUE@%$CGEN_MAINT_TRUE%g
|
|---|
| 4873 | s%@CGEN_MAINT_FALSE@%$CGEN_MAINT_FALSE%g
|
|---|
| 4874 | s%@cgendir@%$cgendir%g
|
|---|
| 4875 | s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
|
|---|
| 4876 | s%@WIN32LIBADD@%$WIN32LIBADD%g
|
|---|
| 4877 | s%@archdefs@%$archdefs%g
|
|---|
| 4878 | s%@BFD_MACHINES@%$BFD_MACHINES%g
|
|---|
| 4879 |
|
|---|
| 4880 | CEOF
|
|---|
| 4881 | EOF
|
|---|
| 4882 |
|
|---|
| 4883 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 4884 |
|
|---|
| 4885 | # Split the substitutions into bite-sized pieces for seds with
|
|---|
| 4886 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
|---|
| 4887 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
|---|
| 4888 | ac_file=1 # Number of current file.
|
|---|
| 4889 | ac_beg=1 # First line for current file.
|
|---|
| 4890 | ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
|---|
| 4891 | ac_more_lines=:
|
|---|
| 4892 | ac_sed_cmds=""
|
|---|
| 4893 | while $ac_more_lines; do
|
|---|
| 4894 | if test $ac_beg -gt 1; then
|
|---|
| 4895 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
|---|
| 4896 | else
|
|---|
| 4897 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
|---|
| 4898 | fi
|
|---|
| 4899 | if test ! -s conftest.s$ac_file; then
|
|---|
| 4900 | ac_more_lines=false
|
|---|
| 4901 | rm -f conftest.s$ac_file
|
|---|
| 4902 | else
|
|---|
| 4903 | if test -z "$ac_sed_cmds"; then
|
|---|
| 4904 | ac_sed_cmds="sed -f conftest.s$ac_file"
|
|---|
| 4905 | else
|
|---|
| 4906 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
|---|
| 4907 | fi
|
|---|
| 4908 | ac_file=`expr $ac_file + 1`
|
|---|
| 4909 | ac_beg=$ac_end
|
|---|
| 4910 | ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
|---|
| 4911 | fi
|
|---|
| 4912 | done
|
|---|
| 4913 | if test -z "$ac_sed_cmds"; then
|
|---|
| 4914 | ac_sed_cmds=cat
|
|---|
| 4915 | fi
|
|---|
| 4916 | EOF
|
|---|
| 4917 |
|
|---|
| 4918 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 4919 |
|
|---|
| 4920 | CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
|
|---|
| 4921 | EOF
|
|---|
| 4922 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 4923 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
|---|
| 4924 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|---|
| 4925 | case "$ac_file" in
|
|---|
| 4926 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|---|
| 4927 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|---|
| 4928 | *) ac_file_in="${ac_file}.in" ;;
|
|---|
| 4929 | esac
|
|---|
| 4930 |
|
|---|
| 4931 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
|---|
| 4932 |
|
|---|
| 4933 | # Remove last slash and all that follows it. Not all systems have dirname.
|
|---|
| 4934 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|---|
| 4935 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|---|
| 4936 | # The file is in a subdirectory.
|
|---|
| 4937 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|---|
| 4938 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
|---|
| 4939 | # A "../" for each directory in $ac_dir_suffix.
|
|---|
| 4940 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
|---|
| 4941 | else
|
|---|
| 4942 | ac_dir_suffix= ac_dots=
|
|---|
| 4943 | fi
|
|---|
| 4944 |
|
|---|
| 4945 | case "$ac_given_srcdir" in
|
|---|
| 4946 | .) srcdir=.
|
|---|
| 4947 | if test -z "$ac_dots"; then top_srcdir=.
|
|---|
| 4948 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
|---|
| 4949 | /* | [A-Za-z]:*)
|
|---|
| 4950 | srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
|---|
| 4951 | *) # Relative path.
|
|---|
| 4952 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
|---|
| 4953 | top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|---|
| 4954 | esac
|
|---|
| 4955 |
|
|---|
| 4956 | case "$ac_given_INSTALL" in
|
|---|
| 4957 | [/$]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
|
|---|
| 4958 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
|---|
| 4959 | esac
|
|---|
| 4960 |
|
|---|
| 4961 | echo creating "$ac_file"
|
|---|
| 4962 | rm -f "$ac_file"
|
|---|
| 4963 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
|---|
| 4964 | case "$ac_file" in
|
|---|
| 4965 | *Makefile*) ac_comsub="1i\\
|
|---|
| 4966 | # $configure_input" ;;
|
|---|
| 4967 | *) ac_comsub= ;;
|
|---|
| 4968 | esac
|
|---|
| 4969 |
|
|---|
| 4970 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%$PATHIFS% $ac_given_srcdir/%g"`
|
|---|
| 4971 | sed -e "$ac_comsub
|
|---|
| 4972 | s%@configure_input@%$configure_input%g
|
|---|
| 4973 | s%@srcdir@%$srcdir%g
|
|---|
| 4974 | s%@top_srcdir@%$top_srcdir%g
|
|---|
| 4975 | s%@INSTALL@%$INSTALL%g
|
|---|
| 4976 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
|---|
| 4977 | fi; done
|
|---|
| 4978 | rm -f conftest.s*
|
|---|
| 4979 |
|
|---|
| 4980 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
|---|
| 4981 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
|---|
| 4982 | #
|
|---|
| 4983 | # ac_d sets the value in "#define NAME VALUE" lines.
|
|---|
| 4984 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
|---|
| 4985 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
|---|
| 4986 | ac_dC='\3'
|
|---|
| 4987 | ac_dD='%g'
|
|---|
| 4988 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
|---|
| 4989 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|---|
| 4990 | ac_uB='\([ ]\)%\1#\2define\3'
|
|---|
| 4991 | ac_uC=' '
|
|---|
| 4992 | ac_uD='\4%g'
|
|---|
| 4993 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
|---|
| 4994 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|---|
| 4995 | ac_eB='$%\1#\2define\3'
|
|---|
| 4996 | ac_eC=' '
|
|---|
| 4997 | ac_eD='%g'
|
|---|
| 4998 |
|
|---|
| 4999 | if test "${CONFIG_HEADERS+set}" != set; then
|
|---|
| 5000 | EOF
|
|---|
| 5001 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 5002 | CONFIG_HEADERS="config.h:config.in"
|
|---|
| 5003 | EOF
|
|---|
| 5004 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 5005 | fi
|
|---|
| 5006 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
|---|
| 5007 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|---|
| 5008 | case "$ac_file" in
|
|---|
| 5009 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|---|
| 5010 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|---|
| 5011 | *) ac_file_in="${ac_file}.in" ;;
|
|---|
| 5012 | esac
|
|---|
| 5013 |
|
|---|
| 5014 | echo creating $ac_file
|
|---|
| 5015 |
|
|---|
| 5016 | rm -f conftest.frag conftest.in conftest.out
|
|---|
| 5017 | # kso the other way around might work better with drive letters and such.
|
|---|
| 5018 | # ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|---|
| 5019 | ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%" `
|
|---|
| 5020 | cat $ac_file_inputs > conftest.in
|
|---|
| 5021 |
|
|---|
| 5022 | EOF
|
|---|
| 5023 |
|
|---|
| 5024 | # Transform confdefs.h into a sed script conftest.vals that substitutes
|
|---|
| 5025 | # the proper values into config.h.in to produce config.h. And first:
|
|---|
| 5026 | # Protect against being on the right side of a sed subst in config.status.
|
|---|
| 5027 | # Protect against being in an unquoted here document in config.status.
|
|---|
| 5028 | rm -f conftest.vals
|
|---|
| 5029 | cat > conftest.hdr <<\EOF
|
|---|
| 5030 | s/[\\&%]/\\&/g
|
|---|
| 5031 | s%[\\$`]%\\&%g
|
|---|
| 5032 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
|---|
| 5033 | s%ac_d%ac_u%gp
|
|---|
| 5034 | s%ac_u%ac_e%gp
|
|---|
| 5035 | EOF
|
|---|
| 5036 | sed -n -f conftest.hdr confdefs.h > conftest.vals
|
|---|
| 5037 | rm -f conftest.hdr
|
|---|
| 5038 |
|
|---|
| 5039 | # This sed command replaces #undef with comments. This is necessary, for
|
|---|
| 5040 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
|---|
| 5041 | # on some systems where configure will not decide to define it.
|
|---|
| 5042 | cat >> conftest.vals <<\EOF
|
|---|
| 5043 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
|---|
| 5044 | EOF
|
|---|
| 5045 |
|
|---|
| 5046 | # Break up conftest.vals because some shells have a limit on
|
|---|
| 5047 | # the size of here documents, and old seds have small limits too.
|
|---|
| 5048 |
|
|---|
| 5049 | rm -f conftest.tail
|
|---|
| 5050 | while :
|
|---|
| 5051 | do
|
|---|
| 5052 | ac_lines=`grep -c . conftest.vals`
|
|---|
| 5053 | # grep -c gives empty output for an empty file on some AIX systems.
|
|---|
| 5054 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
|---|
| 5055 | # Write a limited-size here document to conftest.frag.
|
|---|
| 5056 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
|---|
| 5057 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
|---|
| 5058 | echo 'CEOF
|
|---|
| 5059 | sed -f conftest.frag conftest.in > conftest.out
|
|---|
| 5060 | rm -f conftest.in
|
|---|
| 5061 | mv conftest.out conftest.in
|
|---|
| 5062 | ' >> $CONFIG_STATUS
|
|---|
| 5063 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
|---|
| 5064 | rm -f conftest.vals
|
|---|
| 5065 | mv conftest.tail conftest.vals
|
|---|
| 5066 | done
|
|---|
| 5067 | rm -f conftest.vals
|
|---|
| 5068 |
|
|---|
| 5069 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 5070 | rm -f conftest.frag conftest.h
|
|---|
| 5071 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
|---|
| 5072 | cat conftest.in >> conftest.h
|
|---|
| 5073 | rm -f conftest.in
|
|---|
| 5074 | if cmp -s $ac_file conftest.h 2>/dev/null; then
|
|---|
| 5075 | echo "$ac_file is unchanged"
|
|---|
| 5076 | rm -f conftest.h
|
|---|
| 5077 | else
|
|---|
| 5078 | # Remove last slash and all that follows it. Not all systems have dirname.
|
|---|
| 5079 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|---|
| 5080 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|---|
| 5081 | # The file is in a subdirectory.
|
|---|
| 5082 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|---|
| 5083 | fi
|
|---|
| 5084 | rm -f $ac_file
|
|---|
| 5085 | mv conftest.h $ac_file
|
|---|
| 5086 | fi
|
|---|
| 5087 | fi; done
|
|---|
| 5088 |
|
|---|
| 5089 | EOF
|
|---|
| 5090 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 5091 |
|
|---|
| 5092 |
|
|---|
| 5093 | EOF
|
|---|
| 5094 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 5095 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
|
|---|
| 5096 | sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
|
|---|
| 5097 | exit 0
|
|---|
| 5098 | EOF
|
|---|
| 5099 | chmod +x $CONFIG_STATUS
|
|---|
| 5100 | rm -fr confdefs* $ac_clean_files
|
|---|
| 5101 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
|---|
| 5102 |
|
|---|