| 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 | --enable-install-libbfd controls installation of libbfd and related headers"
|
|---|
| 37 | ac_help="$ac_help
|
|---|
| 38 | --disable-nls do not use Native Language Support"
|
|---|
| 39 | ac_help="$ac_help
|
|---|
| 40 | --with-included-gettext use the GNU gettext library included here"
|
|---|
| 41 | ac_help="$ac_help
|
|---|
| 42 | --enable-cgen-maint[=dir] build cgen generated files"
|
|---|
| 43 |
|
|---|
| 44 | # Initialize some variables set by options.
|
|---|
| 45 | # The variables have the same names as the options, with
|
|---|
| 46 | # dashes changed to underlines.
|
|---|
| 47 | build=NONE
|
|---|
| 48 | cache_file=./config.cache
|
|---|
| 49 | exec_prefix=NONE
|
|---|
| 50 | host=NONE
|
|---|
| 51 | no_create=
|
|---|
| 52 | nonopt=NONE
|
|---|
| 53 | no_recursion=
|
|---|
| 54 | prefix=NONE
|
|---|
| 55 | program_prefix=NONE
|
|---|
| 56 | program_suffix=NONE
|
|---|
| 57 | program_transform_name=s,x,x,
|
|---|
| 58 | silent=
|
|---|
| 59 | site=
|
|---|
| 60 | srcdir=
|
|---|
| 61 | target=NONE
|
|---|
| 62 | verbose=
|
|---|
| 63 | x_includes=NONE
|
|---|
| 64 | x_libraries=NONE
|
|---|
| 65 | bindir='${exec_prefix}/bin'
|
|---|
| 66 | sbindir='${exec_prefix}/sbin'
|
|---|
| 67 | libexecdir='${exec_prefix}/libexec'
|
|---|
| 68 | datadir='${prefix}/share'
|
|---|
| 69 | sysconfdir='${prefix}/etc'
|
|---|
| 70 | sharedstatedir='${prefix}/com'
|
|---|
| 71 | localstatedir='${prefix}/var'
|
|---|
| 72 | libdir='${exec_prefix}/lib'
|
|---|
| 73 | includedir='${prefix}/include'
|
|---|
| 74 | oldincludedir='/usr/include'
|
|---|
| 75 | infodir='${prefix}/info'
|
|---|
| 76 | mandir='${prefix}/man'
|
|---|
| 77 |
|
|---|
| 78 | # Initialize some other variables.
|
|---|
| 79 | subdirs=
|
|---|
| 80 | MFLAGS= MAKEFLAGS=
|
|---|
| 81 | SHELL=${CONFIG_SHELL-/bin/sh}
|
|---|
| 82 | # Maximum number of lines to put in a shell here document.
|
|---|
| 83 | ac_max_here_lines=12
|
|---|
| 84 |
|
|---|
| 85 | ac_prev=
|
|---|
| 86 | for ac_option
|
|---|
| 87 | do
|
|---|
| 88 |
|
|---|
| 89 | # If the previous option needs an argument, assign it.
|
|---|
| 90 | if test -n "$ac_prev"; then
|
|---|
| 91 | eval "$ac_prev=\$ac_option"
|
|---|
| 92 | ac_prev=
|
|---|
| 93 | continue
|
|---|
| 94 | fi
|
|---|
| 95 |
|
|---|
| 96 | case "$ac_option" in
|
|---|
| 97 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
|---|
| 98 | *) ac_optarg= ;;
|
|---|
| 99 | esac
|
|---|
| 100 |
|
|---|
| 101 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
|---|
| 102 |
|
|---|
| 103 | case "$ac_option" in
|
|---|
| 104 |
|
|---|
| 105 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
|---|
| 106 | ac_prev=bindir ;;
|
|---|
| 107 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
|---|
| 108 | bindir="$ac_optarg" ;;
|
|---|
| 109 |
|
|---|
| 110 | -build | --build | --buil | --bui | --bu)
|
|---|
| 111 | ac_prev=build ;;
|
|---|
| 112 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
|---|
| 113 | build="$ac_optarg" ;;
|
|---|
| 114 |
|
|---|
| 115 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
|---|
| 116 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
|---|
| 117 | ac_prev=cache_file ;;
|
|---|
| 118 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
|---|
| 119 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
|---|
| 120 | cache_file="$ac_optarg" ;;
|
|---|
| 121 |
|
|---|
| 122 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
|---|
| 123 | ac_prev=datadir ;;
|
|---|
| 124 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
|---|
| 125 | | --da=*)
|
|---|
| 126 | datadir="$ac_optarg" ;;
|
|---|
| 127 |
|
|---|
| 128 | -disable-* | --disable-*)
|
|---|
| 129 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
|---|
| 130 | # Reject names that are not valid shell variable names.
|
|---|
| 131 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|---|
| 132 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|---|
| 133 | fi
|
|---|
| 134 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|---|
| 135 | eval "enable_${ac_feature}=no" ;;
|
|---|
| 136 |
|
|---|
| 137 | -enable-* | --enable-*)
|
|---|
| 138 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
|---|
| 139 | # Reject names that are not valid shell variable names.
|
|---|
| 140 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|---|
| 141 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|---|
| 142 | fi
|
|---|
| 143 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|---|
| 144 | case "$ac_option" in
|
|---|
| 145 | *=*) ;;
|
|---|
| 146 | *) ac_optarg=yes ;;
|
|---|
| 147 | esac
|
|---|
| 148 | eval "enable_${ac_feature}='$ac_optarg'" ;;
|
|---|
| 149 |
|
|---|
| 150 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
|---|
| 151 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
|---|
| 152 | | --exec | --exe | --ex)
|
|---|
| 153 | ac_prev=exec_prefix ;;
|
|---|
| 154 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
|---|
| 155 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
|---|
| 156 | | --exec=* | --exe=* | --ex=*)
|
|---|
| 157 | exec_prefix="$ac_optarg" ;;
|
|---|
| 158 |
|
|---|
| 159 | -gas | --gas | --ga | --g)
|
|---|
| 160 | # Obsolete; use --with-gas.
|
|---|
| 161 | with_gas=yes ;;
|
|---|
| 162 |
|
|---|
| 163 | -help | --help | --hel | --he)
|
|---|
| 164 | # Omit some internal or obsolete options to make the list less imposing.
|
|---|
| 165 | # This message is too long to be a string in the A/UX 3.1 sh.
|
|---|
| 166 | cat << EOF
|
|---|
| 167 | Usage: configure [options] [host]
|
|---|
| 168 | Options: [defaults in brackets after descriptions]
|
|---|
| 169 | Configuration:
|
|---|
| 170 | --cache-file=FILE cache test results in FILE
|
|---|
| 171 | --help print this message
|
|---|
| 172 | --no-create do not create output files
|
|---|
| 173 | --quiet, --silent do not print \`checking...' messages
|
|---|
| 174 | --version print the version of autoconf that created configure
|
|---|
| 175 | Directory and file names:
|
|---|
| 176 | --prefix=PREFIX install architecture-independent files in PREFIX
|
|---|
| 177 | [$ac_default_prefix]
|
|---|
| 178 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
|---|
| 179 | [same as prefix]
|
|---|
| 180 | --bindir=DIR user executables in DIR [EPREFIX/bin]
|
|---|
| 181 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
|---|
| 182 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
|---|
| 183 | --datadir=DIR read-only architecture-independent data in DIR
|
|---|
| 184 | [PREFIX/share]
|
|---|
| 185 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
|---|
| 186 | --sharedstatedir=DIR modifiable architecture-independent data in DIR
|
|---|
| 187 | [PREFIX/com]
|
|---|
| 188 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
|---|
| 189 | --libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
|---|
| 190 | --includedir=DIR C header files in DIR [PREFIX/include]
|
|---|
| 191 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
|---|
| 192 | --infodir=DIR info documentation in DIR [PREFIX/info]
|
|---|
| 193 | --mandir=DIR man documentation in DIR [PREFIX/man]
|
|---|
| 194 | --srcdir=DIR find the sources in DIR [configure dir or ..]
|
|---|
| 195 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
|---|
| 196 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
|---|
| 197 | --program-transform-name=PROGRAM
|
|---|
| 198 | run sed PROGRAM on installed program names
|
|---|
| 199 | EOF
|
|---|
| 200 | cat << EOF
|
|---|
| 201 | Host type:
|
|---|
| 202 | --build=BUILD configure for building on BUILD [BUILD=HOST]
|
|---|
| 203 | --host=HOST configure for HOST [guessed]
|
|---|
| 204 | --target=TARGET configure for TARGET [TARGET=HOST]
|
|---|
| 205 | Features and packages:
|
|---|
| 206 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
|---|
| 207 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
|---|
| 208 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
|---|
| 209 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
|---|
| 210 | --x-includes=DIR X include files are in DIR
|
|---|
| 211 | --x-libraries=DIR X library files are in DIR
|
|---|
| 212 | EOF
|
|---|
| 213 | if test -n "$ac_help"; then
|
|---|
| 214 | echo "--enable and --with options recognized:$ac_help"
|
|---|
| 215 | fi
|
|---|
| 216 | exit 0 ;;
|
|---|
| 217 |
|
|---|
| 218 | -host | --host | --hos | --ho)
|
|---|
| 219 | ac_prev=host ;;
|
|---|
| 220 | -host=* | --host=* | --hos=* | --ho=*)
|
|---|
| 221 | host="$ac_optarg" ;;
|
|---|
| 222 |
|
|---|
| 223 | -includedir | --includedir | --includedi | --included | --include \
|
|---|
| 224 | | --includ | --inclu | --incl | --inc)
|
|---|
| 225 | ac_prev=includedir ;;
|
|---|
| 226 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
|---|
| 227 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
|---|
| 228 | includedir="$ac_optarg" ;;
|
|---|
| 229 |
|
|---|
| 230 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
|---|
| 231 | ac_prev=infodir ;;
|
|---|
| 232 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
|---|
| 233 | infodir="$ac_optarg" ;;
|
|---|
| 234 |
|
|---|
| 235 | -libdir | --libdir | --libdi | --libd)
|
|---|
| 236 | ac_prev=libdir ;;
|
|---|
| 237 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
|---|
| 238 | libdir="$ac_optarg" ;;
|
|---|
| 239 |
|
|---|
| 240 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
|---|
| 241 | | --libexe | --libex | --libe)
|
|---|
| 242 | ac_prev=libexecdir ;;
|
|---|
| 243 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
|---|
| 244 | | --libexe=* | --libex=* | --libe=*)
|
|---|
| 245 | libexecdir="$ac_optarg" ;;
|
|---|
| 246 |
|
|---|
| 247 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
|---|
| 248 | | --localstate | --localstat | --localsta | --localst \
|
|---|
| 249 | | --locals | --local | --loca | --loc | --lo)
|
|---|
| 250 | ac_prev=localstatedir ;;
|
|---|
| 251 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
|---|
| 252 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
|---|
| 253 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
|---|
| 254 | localstatedir="$ac_optarg" ;;
|
|---|
| 255 |
|
|---|
| 256 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
|---|
| 257 | ac_prev=mandir ;;
|
|---|
| 258 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
|---|
| 259 | mandir="$ac_optarg" ;;
|
|---|
| 260 |
|
|---|
| 261 | -nfp | --nfp | --nf)
|
|---|
| 262 | # Obsolete; use --without-fp.
|
|---|
| 263 | with_fp=no ;;
|
|---|
| 264 |
|
|---|
| 265 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|---|
| 266 | | --no-cr | --no-c)
|
|---|
| 267 | no_create=yes ;;
|
|---|
| 268 |
|
|---|
| 269 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|---|
| 270 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
|---|
| 271 | no_recursion=yes ;;
|
|---|
| 272 |
|
|---|
| 273 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
|---|
| 274 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
|---|
| 275 | | --oldin | --oldi | --old | --ol | --o)
|
|---|
| 276 | ac_prev=oldincludedir ;;
|
|---|
| 277 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
|---|
| 278 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
|---|
| 279 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
|---|
| 280 | oldincludedir="$ac_optarg" ;;
|
|---|
| 281 |
|
|---|
| 282 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
|---|
| 283 | ac_prev=prefix ;;
|
|---|
| 284 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
|---|
| 285 | prefix="$ac_optarg" ;;
|
|---|
| 286 |
|
|---|
| 287 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
|---|
| 288 | | --program-pre | --program-pr | --program-p)
|
|---|
| 289 | ac_prev=program_prefix ;;
|
|---|
| 290 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
|---|
| 291 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
|---|
| 292 | program_prefix="$ac_optarg" ;;
|
|---|
| 293 |
|
|---|
| 294 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
|---|
| 295 | | --program-suf | --program-su | --program-s)
|
|---|
| 296 | ac_prev=program_suffix ;;
|
|---|
| 297 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
|---|
| 298 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
|---|
| 299 | program_suffix="$ac_optarg" ;;
|
|---|
| 300 |
|
|---|
| 301 | -program-transform-name | --program-transform-name \
|
|---|
| 302 | | --program-transform-nam | --program-transform-na \
|
|---|
| 303 | | --program-transform-n | --program-transform- \
|
|---|
| 304 | | --program-transform | --program-transfor \
|
|---|
| 305 | | --program-transfo | --program-transf \
|
|---|
| 306 | | --program-trans | --program-tran \
|
|---|
| 307 | | --progr-tra | --program-tr | --program-t)
|
|---|
| 308 | ac_prev=program_transform_name ;;
|
|---|
| 309 | -program-transform-name=* | --program-transform-name=* \
|
|---|
| 310 | | --program-transform-nam=* | --program-transform-na=* \
|
|---|
| 311 | | --program-transform-n=* | --program-transform-=* \
|
|---|
| 312 | | --program-transform=* | --program-transfor=* \
|
|---|
| 313 | | --program-transfo=* | --program-transf=* \
|
|---|
| 314 | | --program-trans=* | --program-tran=* \
|
|---|
| 315 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
|---|
| 316 | program_transform_name="$ac_optarg" ;;
|
|---|
| 317 |
|
|---|
| 318 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|---|
| 319 | | -silent | --silent | --silen | --sile | --sil)
|
|---|
| 320 | silent=yes ;;
|
|---|
| 321 |
|
|---|
| 322 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
|---|
| 323 | ac_prev=sbindir ;;
|
|---|
| 324 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
|---|
| 325 | | --sbi=* | --sb=*)
|
|---|
| 326 | sbindir="$ac_optarg" ;;
|
|---|
| 327 |
|
|---|
| 328 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
|---|
| 329 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
|---|
| 330 | | --sharedst | --shareds | --shared | --share | --shar \
|
|---|
| 331 | | --sha | --sh)
|
|---|
| 332 | ac_prev=sharedstatedir ;;
|
|---|
| 333 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
|---|
| 334 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
|---|
| 335 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
|---|
| 336 | | --sha=* | --sh=*)
|
|---|
| 337 | sharedstatedir="$ac_optarg" ;;
|
|---|
| 338 |
|
|---|
| 339 | -site | --site | --sit)
|
|---|
| 340 | ac_prev=site ;;
|
|---|
| 341 | -site=* | --site=* | --sit=*)
|
|---|
| 342 | site="$ac_optarg" ;;
|
|---|
| 343 |
|
|---|
| 344 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
|---|
| 345 | ac_prev=srcdir ;;
|
|---|
| 346 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
|---|
| 347 | srcdir="$ac_optarg" ;;
|
|---|
| 348 |
|
|---|
| 349 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
|---|
| 350 | | --syscon | --sysco | --sysc | --sys | --sy)
|
|---|
| 351 | ac_prev=sysconfdir ;;
|
|---|
| 352 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
|---|
| 353 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
|---|
| 354 | sysconfdir="$ac_optarg" ;;
|
|---|
| 355 |
|
|---|
| 356 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
|---|
| 357 | ac_prev=target ;;
|
|---|
| 358 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
|---|
| 359 | target="$ac_optarg" ;;
|
|---|
| 360 |
|
|---|
| 361 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
|---|
| 362 | verbose=yes ;;
|
|---|
| 363 |
|
|---|
| 364 | -version | --version | --versio | --versi | --vers)
|
|---|
| 365 | echo "configure generated by autoconf version 2.13"
|
|---|
| 366 | exit 0 ;;
|
|---|
| 367 |
|
|---|
| 368 | -with-* | --with-*)
|
|---|
| 369 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
|---|
| 370 | # Reject names that are not valid shell variable names.
|
|---|
| 371 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|---|
| 372 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|---|
| 373 | fi
|
|---|
| 374 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|---|
| 375 | case "$ac_option" in
|
|---|
| 376 | *=*) ;;
|
|---|
| 377 | *) ac_optarg=yes ;;
|
|---|
| 378 | esac
|
|---|
| 379 | eval "with_${ac_package}='$ac_optarg'" ;;
|
|---|
| 380 |
|
|---|
| 381 | -without-* | --without-*)
|
|---|
| 382 | ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
|---|
| 383 | # Reject names that are not valid shell variable names.
|
|---|
| 384 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|---|
| 385 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|---|
| 386 | fi
|
|---|
| 387 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|---|
| 388 | eval "with_${ac_package}=no" ;;
|
|---|
| 389 |
|
|---|
| 390 | --x)
|
|---|
| 391 | # Obsolete; use --with-x.
|
|---|
| 392 | with_x=yes ;;
|
|---|
| 393 |
|
|---|
| 394 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
|---|
| 395 | | --x-incl | --x-inc | --x-in | --x-i)
|
|---|
| 396 | ac_prev=x_includes ;;
|
|---|
| 397 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
|---|
| 398 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
|---|
| 399 | x_includes="$ac_optarg" ;;
|
|---|
| 400 |
|
|---|
| 401 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
|---|
| 402 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
|---|
| 403 | ac_prev=x_libraries ;;
|
|---|
| 404 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
|---|
| 405 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
|---|
| 406 | x_libraries="$ac_optarg" ;;
|
|---|
| 407 |
|
|---|
| 408 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
|---|
| 409 | ;;
|
|---|
| 410 |
|
|---|
| 411 | *)
|
|---|
| 412 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
|---|
| 413 | echo "configure: warning: $ac_option: invalid host type" 1>&2
|
|---|
| 414 | fi
|
|---|
| 415 | if test "x$nonopt" != xNONE; then
|
|---|
| 416 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
|---|
| 417 | fi
|
|---|
| 418 | nonopt="$ac_option"
|
|---|
| 419 | ;;
|
|---|
| 420 |
|
|---|
| 421 | esac
|
|---|
| 422 | done
|
|---|
| 423 |
|
|---|
| 424 | if test -n "$ac_prev"; then
|
|---|
| 425 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
|---|
| 426 | fi
|
|---|
| 427 |
|
|---|
| 428 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|---|
| 429 |
|
|---|
| 430 | # File descriptor usage:
|
|---|
| 431 | # 0 standard input
|
|---|
| 432 | # 1 file creation
|
|---|
| 433 | # 2 errors and warnings
|
|---|
| 434 | # 3 some systems may open it to /dev/tty
|
|---|
| 435 | # 4 used on the Kubota Titan
|
|---|
| 436 | # 6 checking for... messages and results
|
|---|
| 437 | # 5 compiler messages saved in config.log
|
|---|
| 438 | if test "$silent" = yes; then
|
|---|
| 439 | exec 6>/dev/null
|
|---|
| 440 | else
|
|---|
| 441 | exec 6>&1
|
|---|
| 442 | fi
|
|---|
| 443 | exec 5>./config.log
|
|---|
| 444 |
|
|---|
| 445 | echo "\
|
|---|
| 446 | This file contains any messages produced by compilers while
|
|---|
| 447 | running configure, to aid debugging if configure makes a mistake.
|
|---|
| 448 | " 1>&5
|
|---|
| 449 |
|
|---|
| 450 | # Strip out --no-create and --no-recursion so they do not pile up.
|
|---|
| 451 | # Also quote any args containing shell metacharacters.
|
|---|
| 452 | ac_configure_args=
|
|---|
| 453 | for ac_arg
|
|---|
| 454 | do
|
|---|
| 455 | case "$ac_arg" in
|
|---|
| 456 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|---|
| 457 | | --no-cr | --no-c) ;;
|
|---|
| 458 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|---|
| 459 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
|---|
| 460 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
|---|
| 461 | ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
|---|
| 462 | *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
|---|
| 463 | esac
|
|---|
| 464 | done
|
|---|
| 465 |
|
|---|
| 466 | # NLS nuisances.
|
|---|
| 467 | # Only set these to C if already set. These must not be set unconditionally
|
|---|
| 468 | # because not all systems understand e.g. LANG=C (notably SCO).
|
|---|
| 469 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
|---|
| 470 | # Non-C LC_CTYPE values break the ctype check.
|
|---|
| 471 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
|---|
| 472 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
|---|
| 473 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
|---|
| 474 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
|---|
| 475 |
|
|---|
| 476 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
|---|
| 477 | rm -rf conftest* confdefs.h
|
|---|
| 478 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
|---|
| 479 | echo > confdefs.h
|
|---|
| 480 |
|
|---|
| 481 | # A filename unique to this package, relative to the directory that
|
|---|
| 482 | # configure is in, which we can look for to find out if srcdir is correct.
|
|---|
| 483 | ac_unique_file=z8k-dis.c
|
|---|
| 484 |
|
|---|
| 485 | # Find the source files, if location was not specified.
|
|---|
| 486 | if test -z "$srcdir"; then
|
|---|
| 487 | ac_srcdir_defaulted=yes
|
|---|
| 488 | # Try the directory containing this script, then its parent.
|
|---|
| 489 | ac_prog=$0
|
|---|
| 490 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
|---|
| 491 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
|---|
| 492 | srcdir=$ac_confdir
|
|---|
| 493 | if test ! -r $srcdir/$ac_unique_file; then
|
|---|
| 494 | srcdir=..
|
|---|
| 495 | fi
|
|---|
| 496 | else
|
|---|
| 497 | ac_srcdir_defaulted=no
|
|---|
| 498 | fi
|
|---|
| 499 | if test ! -r $srcdir/$ac_unique_file; then
|
|---|
| 500 | if test "$ac_srcdir_defaulted" = yes; then
|
|---|
| 501 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
|---|
| 502 | else
|
|---|
| 503 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
|---|
| 504 | fi
|
|---|
| 505 | fi
|
|---|
| 506 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
|---|
| 507 |
|
|---|
| 508 | # Prefer explicitly selected file to automatically selected ones.
|
|---|
| 509 | if test -z "$CONFIG_SITE"; then
|
|---|
| 510 | if test "x$prefix" != xNONE; then
|
|---|
| 511 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
|---|
| 512 | else
|
|---|
| 513 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
|---|
| 514 | fi
|
|---|
| 515 | fi
|
|---|
| 516 | for ac_site_file in $CONFIG_SITE; do
|
|---|
| 517 | if test -r "$ac_site_file"; then
|
|---|
| 518 | echo "loading site script $ac_site_file"
|
|---|
| 519 | . "$ac_site_file"
|
|---|
| 520 | fi
|
|---|
| 521 | done
|
|---|
| 522 |
|
|---|
| 523 | if test -r "$cache_file"; then
|
|---|
| 524 | echo "loading cache $cache_file"
|
|---|
| 525 | . $cache_file
|
|---|
| 526 | else
|
|---|
| 527 | echo "creating cache $cache_file"
|
|---|
| 528 | > $cache_file
|
|---|
| 529 | fi
|
|---|
| 530 |
|
|---|
| 531 | ac_ext=c
|
|---|
| 532 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 533 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 534 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 535 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 536 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 537 |
|
|---|
| 538 | ac_exeext=
|
|---|
| 539 | ac_objext=o
|
|---|
| 540 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
|---|
| 541 | # Stardent Vistra SVR4 grep lacks -e, says [email protected].
|
|---|
| 542 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
|---|
| 543 | ac_n= ac_c='
|
|---|
| 544 | ' ac_t=' '
|
|---|
| 545 | else
|
|---|
| 546 | ac_n=-n ac_c= ac_t=
|
|---|
| 547 | fi
|
|---|
| 548 | else
|
|---|
| 549 | ac_n= ac_c='\c' ac_t=
|
|---|
| 550 | fi
|
|---|
| 551 |
|
|---|
| 552 | echo $ac_n "checking for path separator""... $ac_c" 1>&6
|
|---|
| 553 | echo "configure:554: checking for path separator" >&5
|
|---|
| 554 | # Filter path to get backslahes into forwardslashes
|
|---|
| 555 | case "`uname -s 2> /dev/null`" in
|
|---|
| 556 | OS/2)
|
|---|
| 557 | PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
|
|---|
| 558 | PATH_IFS=';'
|
|---|
| 559 | ;;
|
|---|
| 560 | *)
|
|---|
| 561 | PATH_IFS=':'
|
|---|
| 562 | ;;
|
|---|
| 563 | esac
|
|---|
| 564 | echo "$ac_t""${PATH_IFS}" 1>&6
|
|---|
| 565 |
|
|---|
| 566 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
|
|---|
| 567 | echo "configure:568: checking for Cygwin environment" >&5
|
|---|
| 568 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
|
|---|
| 569 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 570 | else
|
|---|
| 571 | cat > conftest.$ac_ext <<EOF
|
|---|
| 572 | #line 573 "configure"
|
|---|
| 573 | #include "confdefs.h"
|
|---|
| 574 |
|
|---|
| 575 | int main() {
|
|---|
| 576 |
|
|---|
| 577 | #ifndef __CYGWIN__
|
|---|
| 578 | #define __CYGWIN__ __CYGWIN32__
|
|---|
| 579 | #endif
|
|---|
| 580 | return __CYGWIN__;
|
|---|
| 581 | ; return 0; }
|
|---|
| 582 | EOF
|
|---|
| 583 | if { (eval echo configure:584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 584 | rm -rf conftest*
|
|---|
| 585 | ac_cv_cygwin=yes
|
|---|
| 586 | else
|
|---|
| 587 | echo "configure: failed program was:" >&5
|
|---|
| 588 | cat conftest.$ac_ext >&5
|
|---|
| 589 | rm -rf conftest*
|
|---|
| 590 | ac_cv_cygwin=no
|
|---|
| 591 | fi
|
|---|
| 592 | rm -f conftest*
|
|---|
| 593 | rm -f conftest*
|
|---|
| 594 | fi
|
|---|
| 595 |
|
|---|
| 596 | echo "$ac_t""$ac_cv_cygwin" 1>&6
|
|---|
| 597 | CYGWIN=
|
|---|
| 598 | test "$ac_cv_cygwin" = yes && CYGWIN=yes
|
|---|
| 599 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
|
|---|
| 600 | echo "configure:601: checking for mingw32 environment" >&5
|
|---|
| 601 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
|
|---|
| 602 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 603 | else
|
|---|
| 604 | cat > conftest.$ac_ext <<EOF
|
|---|
| 605 | #line 606 "configure"
|
|---|
| 606 | #include "confdefs.h"
|
|---|
| 607 |
|
|---|
| 608 | int main() {
|
|---|
| 609 | return __MINGW32__;
|
|---|
| 610 | ; return 0; }
|
|---|
| 611 | EOF
|
|---|
| 612 | if { (eval echo configure:613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 613 | rm -rf conftest*
|
|---|
| 614 | ac_cv_mingw32=yes
|
|---|
| 615 | else
|
|---|
| 616 | echo "configure: failed program was:" >&5
|
|---|
| 617 | cat conftest.$ac_ext >&5
|
|---|
| 618 | rm -rf conftest*
|
|---|
| 619 | ac_cv_mingw32=no
|
|---|
| 620 | fi
|
|---|
| 621 | rm -f conftest*
|
|---|
| 622 | rm -f conftest*
|
|---|
| 623 | fi
|
|---|
| 624 |
|
|---|
| 625 | echo "$ac_t""$ac_cv_mingw32" 1>&6
|
|---|
| 626 | MINGW32=
|
|---|
| 627 | test "$ac_cv_mingw32" = yes && MINGW32=yes
|
|---|
| 628 | echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
|
|---|
| 629 | echo "configure:630: checking for EMX/OS2 environment" >&5
|
|---|
| 630 | if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
|
|---|
| 631 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 632 | else
|
|---|
| 633 | : ${CC=gcc.exe}
|
|---|
| 634 | cat > conftest.$ac_ext <<EOF
|
|---|
| 635 | #line 636 "configure"
|
|---|
| 636 | #include "confdefs.h"
|
|---|
| 637 |
|
|---|
| 638 | int main() {
|
|---|
| 639 | return __EMX__;
|
|---|
| 640 | ; return 0; }
|
|---|
| 641 | EOF
|
|---|
| 642 | if { (eval echo configure:643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 643 | rm -rf conftest*
|
|---|
| 644 | ac_cv_emxos2=yes
|
|---|
| 645 | else
|
|---|
| 646 | echo "configure: failed program was:" >&5
|
|---|
| 647 | cat conftest.$ac_ext >&5
|
|---|
| 648 | rm -rf conftest*
|
|---|
| 649 | ac_cv_emxos2=no
|
|---|
| 650 | fi
|
|---|
| 651 | rm -f conftest*
|
|---|
| 652 | rm -f conftest*
|
|---|
| 653 | fi
|
|---|
| 654 |
|
|---|
| 655 | echo "$ac_t""$ac_cv_emxos2" 1>&6
|
|---|
| 656 | if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
|
|---|
| 657 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 658 | else
|
|---|
| 659 | if test "$ac_cv_emxos2" = yes ; then
|
|---|
| 660 | ac_cv_libpre=
|
|---|
| 661 | else
|
|---|
| 662 | ac_cv_libpre=lib
|
|---|
| 663 | fi
|
|---|
| 664 |
|
|---|
| 665 | fi
|
|---|
| 666 |
|
|---|
| 667 | EMXOS2=
|
|---|
| 668 | test "$ac_cv_emxos2" = yes && EMXOS2=yes
|
|---|
| 669 |
|
|---|
| 670 |
|
|---|
| 671 |
|
|---|
| 672 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
|---|
| 673 | echo "configure:674: checking for executable suffix" >&5
|
|---|
| 674 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
|---|
| 675 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 676 | else
|
|---|
| 677 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
|---|
| 678 | ac_cv_exeext=.exe
|
|---|
| 679 | else
|
|---|
| 680 | rm -f conftest*
|
|---|
| 681 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
|---|
| 682 | ac_cv_exeext=
|
|---|
| 683 | if { (eval echo configure:684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
|---|
| 684 | for file in conftest.*; do
|
|---|
| 685 | case $file in
|
|---|
| 686 | *.c | *.o | *.obj) ;;
|
|---|
| 687 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
|---|
| 688 | esac
|
|---|
| 689 | done
|
|---|
| 690 | else
|
|---|
| 691 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 692 | fi
|
|---|
| 693 | rm -f conftest*
|
|---|
| 694 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
|---|
| 695 | fi
|
|---|
| 696 | fi
|
|---|
| 697 |
|
|---|
| 698 | EXEEXT=""
|
|---|
| 699 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
|---|
| 700 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
|---|
| 701 | ac_exeext=$EXEEXT
|
|---|
| 702 |
|
|---|
| 703 |
|
|---|
| 704 |
|
|---|
| 705 | ac_aux_dir=
|
|---|
| 706 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
|---|
| 707 | if test -f $ac_dir/install-sh; then
|
|---|
| 708 | ac_aux_dir=$ac_dir
|
|---|
| 709 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
|---|
| 710 | break
|
|---|
| 711 | elif test -f $ac_dir/install.sh; then
|
|---|
| 712 | ac_aux_dir=$ac_dir
|
|---|
| 713 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
|---|
| 714 | break
|
|---|
| 715 | fi
|
|---|
| 716 | done
|
|---|
| 717 | if test -z "$ac_aux_dir"; then
|
|---|
| 718 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
|---|
| 719 | fi
|
|---|
| 720 | ac_config_guess=$ac_aux_dir/config.guess
|
|---|
| 721 | ac_config_sub=$ac_aux_dir/config.sub
|
|---|
| 722 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
|---|
| 723 |
|
|---|
| 724 |
|
|---|
| 725 | # Do some error checking and defaulting for the host and target type.
|
|---|
| 726 | # The inputs are:
|
|---|
| 727 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT
|
|---|
| 728 | #
|
|---|
| 729 | # The rules are:
|
|---|
| 730 | # 1. You are not allowed to specify --host, --target, and nonopt at the
|
|---|
| 731 | # same time.
|
|---|
| 732 | # 2. Host defaults to nonopt.
|
|---|
| 733 | # 3. If nonopt is not specified, then host defaults to the current host,
|
|---|
| 734 | # as determined by config.guess.
|
|---|
| 735 | # 4. Target and build default to nonopt.
|
|---|
| 736 | # 5. If nonopt is not specified, then target and build default to host.
|
|---|
| 737 |
|
|---|
| 738 | # The aliases save the names the user supplied, while $host etc.
|
|---|
| 739 | # will get canonicalized.
|
|---|
| 740 | case $host---$target---$nonopt in
|
|---|
| 741 | NONE---*---* | *---NONE---* | *---*---NONE) ;;
|
|---|
| 742 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
|
|---|
| 743 | esac
|
|---|
| 744 |
|
|---|
| 745 |
|
|---|
| 746 | # Make sure we can run config.sub.
|
|---|
| 747 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
|
|---|
| 748 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
|
|---|
| 749 | fi
|
|---|
| 750 |
|
|---|
| 751 | echo $ac_n "checking host system type""... $ac_c" 1>&6
|
|---|
| 752 | echo "configure:753: checking host system type" >&5
|
|---|
| 753 |
|
|---|
| 754 | host_alias=$host
|
|---|
| 755 | case "$host_alias" in
|
|---|
| 756 | NONE)
|
|---|
| 757 | case $nonopt in
|
|---|
| 758 | NONE)
|
|---|
| 759 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
|
|---|
| 760 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
|
|---|
| 761 | fi ;;
|
|---|
| 762 | *) host_alias=$nonopt ;;
|
|---|
| 763 | esac ;;
|
|---|
| 764 | esac
|
|---|
| 765 |
|
|---|
| 766 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
|
|---|
| 767 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 768 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 769 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 770 | echo "$ac_t""$host" 1>&6
|
|---|
| 771 |
|
|---|
| 772 | echo $ac_n "checking target system type""... $ac_c" 1>&6
|
|---|
| 773 | echo "configure:774: checking target system type" >&5
|
|---|
| 774 |
|
|---|
| 775 | target_alias=$target
|
|---|
| 776 | case "$target_alias" in
|
|---|
| 777 | NONE)
|
|---|
| 778 | case $nonopt in
|
|---|
| 779 | NONE) target_alias=$host_alias ;;
|
|---|
| 780 | *) target_alias=$nonopt ;;
|
|---|
| 781 | esac ;;
|
|---|
| 782 | esac
|
|---|
| 783 |
|
|---|
| 784 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
|
|---|
| 785 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 786 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 787 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 788 | echo "$ac_t""$target" 1>&6
|
|---|
| 789 |
|
|---|
| 790 | echo $ac_n "checking build system type""... $ac_c" 1>&6
|
|---|
| 791 | echo "configure:792: checking build system type" >&5
|
|---|
| 792 |
|
|---|
| 793 | build_alias=$build
|
|---|
| 794 | case "$build_alias" in
|
|---|
| 795 | NONE)
|
|---|
| 796 | case $nonopt in
|
|---|
| 797 | NONE) build_alias=$host_alias ;;
|
|---|
| 798 | *) build_alias=$nonopt ;;
|
|---|
| 799 | esac ;;
|
|---|
| 800 | esac
|
|---|
| 801 |
|
|---|
| 802 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
|
|---|
| 803 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 804 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 805 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 806 | echo "$ac_t""$build" 1>&6
|
|---|
| 807 |
|
|---|
| 808 | test "$host_alias" != "$target_alias" &&
|
|---|
| 809 | test "$program_prefix$program_suffix$program_transform_name" = \
|
|---|
| 810 | NONENONEs,x,x, &&
|
|---|
| 811 | program_prefix=${target_alias}-
|
|---|
| 812 |
|
|---|
| 813 | # Extract the first word of "gcc", so it can be a program name with args.
|
|---|
| 814 | set dummy gcc; ac_word=$2
|
|---|
| 815 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 816 | echo "configure:817: checking for $ac_word" >&5
|
|---|
| 817 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 818 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 819 | else
|
|---|
| 820 | if test -n "$CC"; then
|
|---|
| 821 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 822 | else
|
|---|
| 823 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 824 | ac_dummy="$PATH"
|
|---|
| 825 | for ac_dir in $ac_dummy; do
|
|---|
| 826 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 827 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 828 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 829 | ac_cv_prog_CC="gcc"
|
|---|
| 830 | break
|
|---|
| 831 | fi
|
|---|
| 832 | done
|
|---|
| 833 | IFS="$ac_save_ifs"
|
|---|
| 834 | fi
|
|---|
| 835 | fi
|
|---|
| 836 | CC="$ac_cv_prog_CC"
|
|---|
| 837 | if test -n "$CC"; then
|
|---|
| 838 | echo "$ac_t""$CC" 1>&6
|
|---|
| 839 | else
|
|---|
| 840 | echo "$ac_t""no" 1>&6
|
|---|
| 841 | fi
|
|---|
| 842 |
|
|---|
| 843 | if test -z "$CC"; then
|
|---|
| 844 | # Extract the first word of "cc", so it can be a program name with args.
|
|---|
| 845 | set dummy cc; ac_word=$2
|
|---|
| 846 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 847 | echo "configure:848: checking for $ac_word" >&5
|
|---|
| 848 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 849 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 850 | else
|
|---|
| 851 | if test -n "$CC"; then
|
|---|
| 852 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 853 | else
|
|---|
| 854 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 855 | ac_prog_rejected=no
|
|---|
| 856 | ac_dummy="$PATH"
|
|---|
| 857 | for ac_dir in $ac_dummy; do
|
|---|
| 858 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 859 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 860 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 861 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
|
|---|
| 862 | "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
|
|---|
| 863 | ac_prog_rejected=yes
|
|---|
| 864 | continue
|
|---|
| 865 | fi
|
|---|
| 866 | ac_cv_prog_CC="cc"
|
|---|
| 867 | break
|
|---|
| 868 | fi
|
|---|
| 869 | done
|
|---|
| 870 | IFS="$ac_save_ifs"
|
|---|
| 871 | if test $ac_prog_rejected = yes; then
|
|---|
| 872 | # We found a bogon in the path, so make sure we never use it.
|
|---|
| 873 | set dummy $ac_cv_prog_CC
|
|---|
| 874 | shift
|
|---|
| 875 | if test $# -gt 0; then
|
|---|
| 876 | # We chose a different compiler from the bogus one.
|
|---|
| 877 | # However, it has the same basename, so the bogon will be chosen
|
|---|
| 878 | # first if we set CC to just the basename; use the full file name.
|
|---|
| 879 | shift
|
|---|
| 880 | set dummy "$ac_dir/$ac_word" "$@"
|
|---|
| 881 | shift
|
|---|
| 882 | ac_cv_prog_CC="$@"
|
|---|
| 883 | fi
|
|---|
| 884 | fi
|
|---|
| 885 | fi
|
|---|
| 886 | fi
|
|---|
| 887 | CC="$ac_cv_prog_CC"
|
|---|
| 888 | if test -n "$CC"; then
|
|---|
| 889 | echo "$ac_t""$CC" 1>&6
|
|---|
| 890 | else
|
|---|
| 891 | echo "$ac_t""no" 1>&6
|
|---|
| 892 | fi
|
|---|
| 893 |
|
|---|
| 894 | if test -z "$CC"; then
|
|---|
| 895 | case "`uname -s`" in
|
|---|
| 896 | *win32* | *WIN32*)
|
|---|
| 897 | # Extract the first word of "cl", so it can be a program name with args.
|
|---|
| 898 | set dummy cl; ac_word=$2
|
|---|
| 899 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 900 | echo "configure:901: checking for $ac_word" >&5
|
|---|
| 901 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 902 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 903 | else
|
|---|
| 904 | if test -n "$CC"; then
|
|---|
| 905 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 906 | else
|
|---|
| 907 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 908 | ac_dummy="$PATH"
|
|---|
| 909 | for ac_dir in $ac_dummy; do
|
|---|
| 910 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 911 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 912 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 913 | ac_cv_prog_CC="cl"
|
|---|
| 914 | break
|
|---|
| 915 | fi
|
|---|
| 916 | done
|
|---|
| 917 | IFS="$ac_save_ifs"
|
|---|
| 918 | fi
|
|---|
| 919 | fi
|
|---|
| 920 | CC="$ac_cv_prog_CC"
|
|---|
| 921 | if test -n "$CC"; then
|
|---|
| 922 | echo "$ac_t""$CC" 1>&6
|
|---|
| 923 | else
|
|---|
| 924 | echo "$ac_t""no" 1>&6
|
|---|
| 925 | fi
|
|---|
| 926 | ;;
|
|---|
| 927 | esac
|
|---|
| 928 | fi
|
|---|
| 929 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|---|
| 930 | fi
|
|---|
| 931 |
|
|---|
| 932 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|---|
| 933 | echo "configure:934: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
|---|
| 934 |
|
|---|
| 935 | ac_ext=c
|
|---|
| 936 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 937 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 938 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 939 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 940 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 941 |
|
|---|
| 942 | cat > conftest.$ac_ext << EOF
|
|---|
| 943 |
|
|---|
| 944 | #line 945 "configure"
|
|---|
| 945 | #include "confdefs.h"
|
|---|
| 946 |
|
|---|
| 947 | main(){return(0);}
|
|---|
| 948 | EOF
|
|---|
| 949 | if { (eval echo configure:950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 950 | ac_cv_prog_cc_works=yes
|
|---|
| 951 | # If we can't run a trivial program, we are probably using a cross compiler.
|
|---|
| 952 | if (./conftest; exit) 2>/dev/null; then
|
|---|
| 953 | ac_cv_prog_cc_cross=no
|
|---|
| 954 | else
|
|---|
| 955 | ac_cv_prog_cc_cross=yes
|
|---|
| 956 | fi
|
|---|
| 957 | else
|
|---|
| 958 | echo "configure: failed program was:" >&5
|
|---|
| 959 | cat conftest.$ac_ext >&5
|
|---|
| 960 | ac_cv_prog_cc_works=no
|
|---|
| 961 | fi
|
|---|
| 962 | rm -fr conftest*
|
|---|
| 963 | ac_ext=c
|
|---|
| 964 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 965 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 966 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 967 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 968 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 969 |
|
|---|
| 970 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|---|
| 971 | if test $ac_cv_prog_cc_works = no; then
|
|---|
| 972 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 973 | fi
|
|---|
| 974 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|---|
| 975 | echo "configure:976: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|---|
| 976 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|---|
| 977 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 978 |
|
|---|
| 979 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
|---|
| 980 | echo "configure:981: checking whether we are using GNU C" >&5
|
|---|
| 981 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
|---|
| 982 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 983 | else
|
|---|
| 984 | cat > conftest.c <<EOF
|
|---|
| 985 | #ifdef __GNUC__
|
|---|
| 986 | yes;
|
|---|
| 987 | #endif
|
|---|
| 988 | EOF
|
|---|
| 989 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|---|
| 990 | ac_cv_prog_gcc=yes
|
|---|
| 991 | else
|
|---|
| 992 | ac_cv_prog_gcc=no
|
|---|
| 993 | fi
|
|---|
| 994 | fi
|
|---|
| 995 |
|
|---|
| 996 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|---|
| 997 |
|
|---|
| 998 | if test $ac_cv_prog_gcc = yes; then
|
|---|
| 999 | GCC=yes
|
|---|
| 1000 | else
|
|---|
| 1001 | GCC=
|
|---|
| 1002 | fi
|
|---|
| 1003 |
|
|---|
| 1004 | ac_test_CFLAGS="${CFLAGS+set}"
|
|---|
| 1005 | ac_save_CFLAGS="$CFLAGS"
|
|---|
| 1006 | CFLAGS=
|
|---|
| 1007 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|---|
| 1008 | echo "configure:1009: checking whether ${CC-cc} accepts -g" >&5
|
|---|
| 1009 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
|---|
| 1010 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1011 | else
|
|---|
| 1012 | echo 'void f(){}' > conftest.c
|
|---|
| 1013 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|---|
| 1014 | ac_cv_prog_cc_g=yes
|
|---|
| 1015 | else
|
|---|
| 1016 | ac_cv_prog_cc_g=no
|
|---|
| 1017 | fi
|
|---|
| 1018 | rm -f conftest*
|
|---|
| 1019 |
|
|---|
| 1020 | fi
|
|---|
| 1021 |
|
|---|
| 1022 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|---|
| 1023 | if test "$ac_test_CFLAGS" = set; then
|
|---|
| 1024 | CFLAGS="$ac_save_CFLAGS"
|
|---|
| 1025 | elif test $ac_cv_prog_cc_g = yes; then
|
|---|
| 1026 | if test "$GCC" = yes; then
|
|---|
| 1027 | CFLAGS="-g -O2"
|
|---|
| 1028 | else
|
|---|
| 1029 | CFLAGS="-g"
|
|---|
| 1030 | fi
|
|---|
| 1031 | else
|
|---|
| 1032 | if test "$GCC" = yes; then
|
|---|
| 1033 | CFLAGS="-O2"
|
|---|
| 1034 | else
|
|---|
| 1035 | CFLAGS=
|
|---|
| 1036 | fi
|
|---|
| 1037 | fi
|
|---|
| 1038 |
|
|---|
| 1039 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
|
|---|
| 1040 | echo "configure:1041: checking for POSIXized ISC" >&5
|
|---|
| 1041 | if test -d /etc/conf/kconfig.d &&
|
|---|
| 1042 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
|
|---|
| 1043 | then
|
|---|
| 1044 | echo "$ac_t""yes" 1>&6
|
|---|
| 1045 | ISC=yes # If later tests want to check for ISC.
|
|---|
| 1046 | cat >> confdefs.h <<\EOF
|
|---|
| 1047 | #define _POSIX_SOURCE 1
|
|---|
| 1048 | EOF
|
|---|
| 1049 |
|
|---|
| 1050 | if test "$GCC" = yes; then
|
|---|
| 1051 | CC="$CC -posix"
|
|---|
| 1052 | else
|
|---|
| 1053 | CC="$CC -Xp"
|
|---|
| 1054 | fi
|
|---|
| 1055 | else
|
|---|
| 1056 | echo "$ac_t""no" 1>&6
|
|---|
| 1057 | ISC=
|
|---|
| 1058 | fi
|
|---|
| 1059 |
|
|---|
| 1060 |
|
|---|
| 1061 | # We currently only use the version number for the name of any shared
|
|---|
| 1062 | # library. For user convenience, we always use the same version
|
|---|
| 1063 | # number that BFD is using.
|
|---|
| 1064 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
|
|---|
| 1065 |
|
|---|
| 1066 | am__api_version="1.4"
|
|---|
| 1067 | # Find a good install program. We prefer a C program (faster),
|
|---|
| 1068 | # so one script is as good as another. But avoid the broken or
|
|---|
| 1069 | # incompatible versions:
|
|---|
| 1070 | # SysV /etc/install, /usr/sbin/install
|
|---|
| 1071 | # SunOS /usr/etc/install
|
|---|
| 1072 | # IRIX /sbin/install
|
|---|
| 1073 | # AIX /bin/install
|
|---|
| 1074 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
|---|
| 1075 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|---|
| 1076 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|---|
| 1077 | # ./install, which can be erroneously created by make from ./install.sh.
|
|---|
| 1078 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
|---|
| 1079 | echo "configure:1080: checking for a BSD compatible install" >&5
|
|---|
| 1080 | if test -z "$INSTALL"; then
|
|---|
| 1081 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
|---|
| 1082 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1083 | else
|
|---|
| 1084 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1085 | for ac_dir in $PATH; do
|
|---|
| 1086 | # Account for people who put trailing slashes in PATH elements.
|
|---|
| 1087 | case "$ac_dir/" in
|
|---|
| 1088 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
|---|
| 1089 | # We reject the install program from OS/2 or W3.1
|
|---|
| 1090 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
|
|---|
| 1091 | *)
|
|---|
| 1092 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
|---|
| 1093 | # Don't use installbsd from OSF since it installs stuff as root
|
|---|
| 1094 | # by default.
|
|---|
| 1095 | for ac_prog in ginstall scoinst install; do
|
|---|
| 1096 | if test -f $ac_dir/$ac_prog$ac_exeext; then
|
|---|
| 1097 | if test $ac_prog = install &&
|
|---|
| 1098 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|---|
| 1099 | # AIX install. It has an incompatible calling convention.
|
|---|
| 1100 | :
|
|---|
| 1101 | else
|
|---|
| 1102 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
|
|---|
| 1103 | break 2
|
|---|
| 1104 | fi
|
|---|
| 1105 | fi
|
|---|
| 1106 | done
|
|---|
| 1107 | ;;
|
|---|
| 1108 | esac
|
|---|
| 1109 | done
|
|---|
| 1110 | IFS="$ac_save_IFS"
|
|---|
| 1111 |
|
|---|
| 1112 | fi
|
|---|
| 1113 | if test "${ac_cv_path_install+set}" = set; then
|
|---|
| 1114 | INSTALL="$ac_cv_path_install"
|
|---|
| 1115 | else
|
|---|
| 1116 | # As a last resort, use the slow shell script. We don't cache a
|
|---|
| 1117 | # path for INSTALL within a source directory, because that will
|
|---|
| 1118 | # break other packages using the cache if that directory is
|
|---|
| 1119 | # removed, or if the path is relative.
|
|---|
| 1120 | INSTALL="$ac_install_sh"
|
|---|
| 1121 | fi
|
|---|
| 1122 | fi
|
|---|
| 1123 | echo "$ac_t""$INSTALL" 1>&6
|
|---|
| 1124 |
|
|---|
| 1125 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
|---|
| 1126 | # It thinks the first close brace ends the variable substitution.
|
|---|
| 1127 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|---|
| 1128 |
|
|---|
| 1129 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
|---|
| 1130 |
|
|---|
| 1131 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|---|
| 1132 |
|
|---|
| 1133 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
|
|---|
| 1134 | echo "configure:1135: checking whether build environment is sane" >&5
|
|---|
| 1135 | # Just in case
|
|---|
| 1136 | sleep 1
|
|---|
| 1137 | echo timestamp > conftestfile
|
|---|
| 1138 | # Do `set' in a subshell so we don't clobber the current shell's
|
|---|
| 1139 | # arguments. Must try -L first in case configure is actually a
|
|---|
| 1140 | # symlink; some systems play weird games with the mod time of symlinks
|
|---|
| 1141 | # (eg FreeBSD returns the mod time of the symlink's containing
|
|---|
| 1142 | # directory).
|
|---|
| 1143 | if (
|
|---|
| 1144 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
|
|---|
| 1145 | if test "$*" = "X"; then
|
|---|
| 1146 | # -L didn't work.
|
|---|
| 1147 | set X `ls -t $srcdir/configure conftestfile`
|
|---|
| 1148 | fi
|
|---|
| 1149 | if test "$*" != "X $srcdir/configure conftestfile" \
|
|---|
| 1150 | && test "$*" != "X conftestfile $srcdir/configure"; then
|
|---|
| 1151 |
|
|---|
| 1152 | # If neither matched, then we have a broken ls. This can happen
|
|---|
| 1153 | # if, for instance, CONFIG_SHELL is bash and it inherits a
|
|---|
| 1154 | # broken ls alias from the environment. This has actually
|
|---|
| 1155 | # happened. Such a system could not be considered "sane".
|
|---|
| 1156 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
|
|---|
| 1157 | alias in your environment" 1>&2; exit 1; }
|
|---|
| 1158 | fi
|
|---|
| 1159 |
|
|---|
| 1160 | test "$2" = conftestfile
|
|---|
| 1161 | )
|
|---|
| 1162 | then
|
|---|
| 1163 | # Ok.
|
|---|
| 1164 | :
|
|---|
| 1165 | else
|
|---|
| 1166 | { echo "configure: error: newly created file is older than distributed files!
|
|---|
| 1167 | Check your system clock" 1>&2; exit 1; }
|
|---|
| 1168 | fi
|
|---|
| 1169 | rm -f conftest*
|
|---|
| 1170 | echo "$ac_t""yes" 1>&6
|
|---|
| 1171 | if test "$program_transform_name" = s,x,x,; then
|
|---|
| 1172 | program_transform_name=
|
|---|
| 1173 | else
|
|---|
| 1174 | # Double any \ or $. echo might interpret backslashes.
|
|---|
| 1175 | cat <<\EOF_SED > conftestsed
|
|---|
| 1176 | s,\\,\\\\,g; s,\$,$$,g
|
|---|
| 1177 | EOF_SED
|
|---|
| 1178 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
|---|
| 1179 | rm -f conftestsed
|
|---|
| 1180 | fi
|
|---|
| 1181 | test "$program_prefix" != NONE &&
|
|---|
| 1182 | program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
|---|
| 1183 | # Use a double $ so make ignores it.
|
|---|
| 1184 | test "$program_suffix" != NONE &&
|
|---|
| 1185 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
|---|
| 1186 |
|
|---|
| 1187 | # sed with no file args requires a program.
|
|---|
| 1188 | test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
|---|
| 1189 |
|
|---|
| 1190 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
|---|
| 1191 | echo "configure:1192: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
|---|
| 1192 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
|---|
| 1193 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
|---|
| 1194 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1195 | else
|
|---|
| 1196 | cat > conftestmake <<\EOF
|
|---|
| 1197 | all:
|
|---|
| 1198 | @echo 'ac_maketemp="${MAKE}"'
|
|---|
| 1199 | EOF
|
|---|
| 1200 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|---|
| 1201 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
|---|
| 1202 | if test -n "$ac_maketemp"; then
|
|---|
| 1203 | eval ac_cv_prog_make_${ac_make}_set=yes
|
|---|
| 1204 | else
|
|---|
| 1205 | eval ac_cv_prog_make_${ac_make}_set=no
|
|---|
| 1206 | fi
|
|---|
| 1207 | rm -f conftestmake
|
|---|
| 1208 | fi
|
|---|
| 1209 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
|---|
| 1210 | echo "$ac_t""yes" 1>&6
|
|---|
| 1211 | SET_MAKE=
|
|---|
| 1212 | else
|
|---|
| 1213 | echo "$ac_t""no" 1>&6
|
|---|
| 1214 | SET_MAKE="MAKE=${MAKE-make}"
|
|---|
| 1215 | fi
|
|---|
| 1216 |
|
|---|
| 1217 |
|
|---|
| 1218 | PACKAGE=opcodes
|
|---|
| 1219 |
|
|---|
| 1220 | VERSION=${BFD_VERSION}
|
|---|
| 1221 |
|
|---|
| 1222 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
|
|---|
| 1223 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
|
|---|
| 1224 | fi
|
|---|
| 1225 | cat >> confdefs.h <<EOF
|
|---|
| 1226 | #define PACKAGE "$PACKAGE"
|
|---|
| 1227 | EOF
|
|---|
| 1228 |
|
|---|
| 1229 | cat >> confdefs.h <<EOF
|
|---|
| 1230 | #define VERSION "$VERSION"
|
|---|
| 1231 | EOF
|
|---|
| 1232 |
|
|---|
| 1233 |
|
|---|
| 1234 |
|
|---|
| 1235 | missing_dir=`cd $ac_aux_dir && pwd`
|
|---|
| 1236 | echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
|
|---|
| 1237 | echo "configure:1238: checking for working aclocal-${am__api_version}" >&5
|
|---|
| 1238 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1239 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1240 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1241 | if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1242 | ACLOCAL=aclocal-${am__api_version}
|
|---|
| 1243 | echo "$ac_t""found" 1>&6
|
|---|
| 1244 | else
|
|---|
| 1245 | ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
|
|---|
| 1246 | echo "$ac_t""missing" 1>&6
|
|---|
| 1247 | fi
|
|---|
| 1248 |
|
|---|
| 1249 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
|
|---|
| 1250 | echo "configure:1251: checking for working autoconf" >&5
|
|---|
| 1251 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1252 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1253 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1254 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1255 | AUTOCONF=autoconf
|
|---|
| 1256 | echo "$ac_t""found" 1>&6
|
|---|
| 1257 | else
|
|---|
| 1258 | AUTOCONF="$missing_dir/missing autoconf"
|
|---|
| 1259 | echo "$ac_t""missing" 1>&6
|
|---|
| 1260 | fi
|
|---|
| 1261 |
|
|---|
| 1262 | echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
|
|---|
| 1263 | echo "configure:1264: checking for working automake-${am__api_version}" >&5
|
|---|
| 1264 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1265 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1266 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1267 | if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1268 | AUTOMAKE=automake-${am__api_version}
|
|---|
| 1269 | echo "$ac_t""found" 1>&6
|
|---|
| 1270 | else
|
|---|
| 1271 | AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
|
|---|
| 1272 | echo "$ac_t""missing" 1>&6
|
|---|
| 1273 | fi
|
|---|
| 1274 |
|
|---|
| 1275 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
|
|---|
| 1276 | echo "configure:1277: checking for working autoheader" >&5
|
|---|
| 1277 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1278 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1279 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1280 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1281 | AUTOHEADER=autoheader
|
|---|
| 1282 | echo "$ac_t""found" 1>&6
|
|---|
| 1283 | else
|
|---|
| 1284 | AUTOHEADER="$missing_dir/missing autoheader"
|
|---|
| 1285 | echo "$ac_t""missing" 1>&6
|
|---|
| 1286 | fi
|
|---|
| 1287 |
|
|---|
| 1288 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
|
|---|
| 1289 | echo "configure:1290: checking for working makeinfo" >&5
|
|---|
| 1290 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1291 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1292 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1293 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1294 | MAKEINFO=makeinfo
|
|---|
| 1295 | echo "$ac_t""found" 1>&6
|
|---|
| 1296 | else
|
|---|
| 1297 | MAKEINFO="$missing_dir/missing makeinfo"
|
|---|
| 1298 | echo "$ac_t""missing" 1>&6
|
|---|
| 1299 | fi
|
|---|
| 1300 |
|
|---|
| 1301 |
|
|---|
| 1302 |
|
|---|
| 1303 | if test $host != $build; then
|
|---|
| 1304 | ac_tool_prefix=${host_alias}-
|
|---|
| 1305 | else
|
|---|
| 1306 | ac_tool_prefix=
|
|---|
| 1307 | fi
|
|---|
| 1308 |
|
|---|
| 1309 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
|---|
| 1310 | set dummy ${ac_tool_prefix}ar; ac_word=$2
|
|---|
| 1311 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1312 | echo "configure:1313: checking for $ac_word" >&5
|
|---|
| 1313 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
|
|---|
| 1314 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1315 | else
|
|---|
| 1316 | if test -n "$AR"; then
|
|---|
| 1317 | ac_cv_prog_AR="$AR" # Let the user override the test.
|
|---|
| 1318 | else
|
|---|
| 1319 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1320 | ac_dummy="$PATH"
|
|---|
| 1321 | for ac_dir in $ac_dummy; do
|
|---|
| 1322 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1323 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1324 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1325 | ac_cv_prog_AR="${ac_tool_prefix}ar"
|
|---|
| 1326 | break
|
|---|
| 1327 | fi
|
|---|
| 1328 | done
|
|---|
| 1329 | IFS="$ac_save_ifs"
|
|---|
| 1330 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
|
|---|
| 1331 | fi
|
|---|
| 1332 | fi
|
|---|
| 1333 | AR="$ac_cv_prog_AR"
|
|---|
| 1334 | if test -n "$AR"; then
|
|---|
| 1335 | echo "$ac_t""$AR" 1>&6
|
|---|
| 1336 | else
|
|---|
| 1337 | echo "$ac_t""no" 1>&6
|
|---|
| 1338 | fi
|
|---|
| 1339 |
|
|---|
| 1340 |
|
|---|
| 1341 |
|
|---|
| 1342 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
|---|
| 1343 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
|---|
| 1344 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1345 | echo "configure:1346: checking for $ac_word" >&5
|
|---|
| 1346 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 1347 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1348 | else
|
|---|
| 1349 | if test -n "$RANLIB"; then
|
|---|
| 1350 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 1351 | else
|
|---|
| 1352 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1353 | ac_dummy="$PATH"
|
|---|
| 1354 | for ac_dir in $ac_dummy; do
|
|---|
| 1355 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1356 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1357 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1358 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
|---|
| 1359 | break
|
|---|
| 1360 | fi
|
|---|
| 1361 | done
|
|---|
| 1362 | IFS="$ac_save_ifs"
|
|---|
| 1363 | fi
|
|---|
| 1364 | fi
|
|---|
| 1365 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 1366 | if test -n "$RANLIB"; then
|
|---|
| 1367 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 1368 | else
|
|---|
| 1369 | echo "$ac_t""no" 1>&6
|
|---|
| 1370 | fi
|
|---|
| 1371 |
|
|---|
| 1372 |
|
|---|
| 1373 | if test -z "$ac_cv_prog_RANLIB"; then
|
|---|
| 1374 | if test -n "$ac_tool_prefix"; then
|
|---|
| 1375 | # Extract the first word of "ranlib", so it can be a program name with args.
|
|---|
| 1376 | set dummy ranlib; ac_word=$2
|
|---|
| 1377 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1378 | echo "configure:1379: checking for $ac_word" >&5
|
|---|
| 1379 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 1380 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1381 | else
|
|---|
| 1382 | if test -n "$RANLIB"; then
|
|---|
| 1383 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 1384 | else
|
|---|
| 1385 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1386 | ac_dummy="$PATH"
|
|---|
| 1387 | for ac_dir in $ac_dummy; do
|
|---|
| 1388 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1389 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1390 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1391 | ac_cv_prog_RANLIB="ranlib"
|
|---|
| 1392 | break
|
|---|
| 1393 | fi
|
|---|
| 1394 | done
|
|---|
| 1395 | IFS="$ac_save_ifs"
|
|---|
| 1396 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|---|
| 1397 | fi
|
|---|
| 1398 | fi
|
|---|
| 1399 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 1400 | if test -n "$RANLIB"; then
|
|---|
| 1401 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 1402 | else
|
|---|
| 1403 | echo "$ac_t""no" 1>&6
|
|---|
| 1404 | fi
|
|---|
| 1405 |
|
|---|
| 1406 | else
|
|---|
| 1407 | RANLIB=":"
|
|---|
| 1408 | fi
|
|---|
| 1409 | fi
|
|---|
| 1410 |
|
|---|
| 1411 |
|
|---|
| 1412 | # Check whether --enable-shared or --disable-shared was given.
|
|---|
| 1413 | if test "${enable_shared+set}" = set; then
|
|---|
| 1414 | enableval="$enable_shared"
|
|---|
| 1415 | p=${PACKAGE-default}
|
|---|
| 1416 | case $enableval in
|
|---|
| 1417 | yes) enable_shared=yes ;;
|
|---|
| 1418 | no) enable_shared=no ;;
|
|---|
| 1419 | *)
|
|---|
| 1420 | enable_shared=no
|
|---|
| 1421 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 1422 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 1423 | for pkg in $enableval; do
|
|---|
| 1424 | if test "X$pkg" = "X$p"; then
|
|---|
| 1425 | enable_shared=yes
|
|---|
| 1426 | fi
|
|---|
| 1427 | done
|
|---|
| 1428 | IFS="$ac_save_ifs"
|
|---|
| 1429 | ;;
|
|---|
| 1430 | esac
|
|---|
| 1431 | else
|
|---|
| 1432 | enable_shared=no
|
|---|
| 1433 | fi
|
|---|
| 1434 |
|
|---|
| 1435 |
|
|---|
| 1436 | # Check whether --enable-static or --disable-static was given.
|
|---|
| 1437 | if test "${enable_static+set}" = set; then
|
|---|
| 1438 | enableval="$enable_static"
|
|---|
| 1439 | p=${PACKAGE-default}
|
|---|
| 1440 | case $enableval in
|
|---|
| 1441 | yes) enable_static=yes ;;
|
|---|
| 1442 | no) enable_static=no ;;
|
|---|
| 1443 | *)
|
|---|
| 1444 | enable_static=no
|
|---|
| 1445 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 1446 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 1447 | for pkg in $enableval; do
|
|---|
| 1448 | if test "X$pkg" = "X$p"; then
|
|---|
| 1449 | enable_static=yes
|
|---|
| 1450 | fi
|
|---|
| 1451 | done
|
|---|
| 1452 | IFS="$ac_save_ifs"
|
|---|
| 1453 | ;;
|
|---|
| 1454 | esac
|
|---|
| 1455 | else
|
|---|
| 1456 | enable_static=yes
|
|---|
| 1457 | fi
|
|---|
| 1458 |
|
|---|
| 1459 | # Check whether --enable-fast-install or --disable-fast-install was given.
|
|---|
| 1460 | if test "${enable_fast_install+set}" = set; then
|
|---|
| 1461 | enableval="$enable_fast_install"
|
|---|
| 1462 | p=${PACKAGE-default}
|
|---|
| 1463 | case $enableval in
|
|---|
| 1464 | yes) enable_fast_install=yes ;;
|
|---|
| 1465 | no) enable_fast_install=no ;;
|
|---|
| 1466 | *)
|
|---|
| 1467 | enable_fast_install=no
|
|---|
| 1468 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 1469 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 1470 | for pkg in $enableval; do
|
|---|
| 1471 | if test "X$pkg" = "X$p"; then
|
|---|
| 1472 | enable_fast_install=yes
|
|---|
| 1473 | fi
|
|---|
| 1474 | done
|
|---|
| 1475 | IFS="$ac_save_ifs"
|
|---|
| 1476 | ;;
|
|---|
| 1477 | esac
|
|---|
| 1478 | else
|
|---|
| 1479 | enable_fast_install=yes
|
|---|
| 1480 | fi
|
|---|
| 1481 |
|
|---|
| 1482 | # Check whether --with-gnu-ld or --without-gnu-ld was given.
|
|---|
| 1483 | if test "${with_gnu_ld+set}" = set; then
|
|---|
| 1484 | withval="$with_gnu_ld"
|
|---|
| 1485 | test "$withval" = no || with_gnu_ld=yes
|
|---|
| 1486 | else
|
|---|
| 1487 | with_gnu_ld=no
|
|---|
| 1488 | fi
|
|---|
| 1489 |
|
|---|
| 1490 | ac_prog=ld
|
|---|
| 1491 | if test "$GCC" = yes; then
|
|---|
| 1492 | # Check if gcc -print-prog-name=ld gives a path.
|
|---|
| 1493 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
|
|---|
| 1494 | echo "configure:1495: checking for ld used by GCC" >&5
|
|---|
| 1495 | case $host in
|
|---|
| 1496 | *-*-mingw*)
|
|---|
| 1497 | # gcc leaves a trailing carriage return which upsets mingw
|
|---|
| 1498 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
|---|
| 1499 | *)
|
|---|
| 1500 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
|---|
| 1501 | esac
|
|---|
| 1502 | case $ac_prog in
|
|---|
| 1503 | # Accept absolute paths.
|
|---|
| 1504 | [\\/]* | [A-Za-z]:[\\/]*)
|
|---|
| 1505 | re_direlt='/[^/][^/]*/\.\./'
|
|---|
| 1506 | # Canonicalize the path of ld
|
|---|
| 1507 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
|
|---|
| 1508 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
|---|
| 1509 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
|---|
| 1510 | done
|
|---|
| 1511 | test -z "$LD" && LD="$ac_prog"
|
|---|
| 1512 | ;;
|
|---|
| 1513 | "")
|
|---|
| 1514 | # If it fails, then pretend we aren't using GCC.
|
|---|
| 1515 | ac_prog=ld
|
|---|
| 1516 | ;;
|
|---|
| 1517 | *)
|
|---|
| 1518 | # If it is relative, then search for the first ld in PATH.
|
|---|
| 1519 | with_gnu_ld=unknown
|
|---|
| 1520 | ;;
|
|---|
| 1521 | esac
|
|---|
| 1522 | elif test "$with_gnu_ld" = yes; then
|
|---|
| 1523 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
|
|---|
| 1524 | echo "configure:1525: checking for GNU ld" >&5
|
|---|
| 1525 | else
|
|---|
| 1526 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
|
|---|
| 1527 | echo "configure:1528: checking for non-GNU ld" >&5
|
|---|
| 1528 | fi
|
|---|
| 1529 | if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
|
|---|
| 1530 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1531 | else
|
|---|
| 1532 | if test -z "$LD"; then
|
|---|
| 1533 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
|---|
| 1534 | for ac_dir in $PATH; do
|
|---|
| 1535 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1536 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
|---|
| 1537 | lt_cv_path_LD="$ac_dir/$ac_prog"
|
|---|
| 1538 | # Check to see if the program is GNU ld. I'd rather use --version,
|
|---|
| 1539 | # but apparently some GNU ld's only accept -v.
|
|---|
| 1540 | # Break only if it was the GNU/non-GNU ld that we prefer.
|
|---|
| 1541 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
|---|
| 1542 | test "$with_gnu_ld" != no && break
|
|---|
| 1543 | else
|
|---|
| 1544 | test "$with_gnu_ld" != yes && break
|
|---|
| 1545 | fi
|
|---|
| 1546 | fi
|
|---|
| 1547 | done
|
|---|
| 1548 | IFS="$ac_save_ifs"
|
|---|
| 1549 | else
|
|---|
| 1550 | lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
|---|
| 1551 | fi
|
|---|
| 1552 | fi
|
|---|
| 1553 |
|
|---|
| 1554 | LD="$lt_cv_path_LD"
|
|---|
| 1555 | if test -n "$LD"; then
|
|---|
| 1556 | echo "$ac_t""$LD" 1>&6
|
|---|
| 1557 | else
|
|---|
| 1558 | echo "$ac_t""no" 1>&6
|
|---|
| 1559 | fi
|
|---|
| 1560 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
|
|---|
| 1561 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
|
|---|
| 1562 | echo "configure:1563: checking if the linker ($LD) is GNU ld" >&5
|
|---|
| 1563 | if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
|
|---|
| 1564 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1565 | else
|
|---|
| 1566 | # I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
|---|
| 1567 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
|---|
| 1568 | lt_cv_prog_gnu_ld=yes
|
|---|
| 1569 | else
|
|---|
| 1570 | lt_cv_prog_gnu_ld=no
|
|---|
| 1571 | fi
|
|---|
| 1572 | fi
|
|---|
| 1573 |
|
|---|
| 1574 | echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
|
|---|
| 1575 | with_gnu_ld=$lt_cv_prog_gnu_ld
|
|---|
| 1576 |
|
|---|
| 1577 |
|
|---|
| 1578 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
|
|---|
| 1579 | echo "configure:1580: checking for $LD option to reload object files" >&5
|
|---|
| 1580 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
|
|---|
| 1581 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1582 | else
|
|---|
| 1583 | lt_cv_ld_reload_flag='-r'
|
|---|
| 1584 | fi
|
|---|
| 1585 |
|
|---|
| 1586 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
|
|---|
| 1587 | reload_flag=$lt_cv_ld_reload_flag
|
|---|
| 1588 | test -n "$reload_flag" && reload_flag=" $reload_flag"
|
|---|
| 1589 |
|
|---|
| 1590 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
|
|---|
| 1591 | echo "configure:1592: checking for BSD-compatible nm" >&5
|
|---|
| 1592 | if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
|
|---|
| 1593 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1594 | else
|
|---|
| 1595 | if test -n "$NM"; then
|
|---|
| 1596 | # Let the user override the test.
|
|---|
| 1597 | lt_cv_path_NM="$NM"
|
|---|
| 1598 | else
|
|---|
| 1599 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
|---|
| 1600 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
|
|---|
| 1601 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1602 | tmp_nm=$ac_dir/${ac_tool_prefix}nm
|
|---|
| 1603 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
|
|---|
| 1604 | # Check to see if the nm accepts a BSD-compat flag.
|
|---|
| 1605 | # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
|---|
| 1606 | # nm: unknown option "B" ignored
|
|---|
| 1607 | # Tru64's nm complains that /dev/null is an invalid object file
|
|---|
| 1608 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
|
|---|
| 1609 | lt_cv_path_NM="$tmp_nm -B"
|
|---|
| 1610 | break
|
|---|
| 1611 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
|
|---|
| 1612 | lt_cv_path_NM="$tmp_nm -p"
|
|---|
| 1613 | break
|
|---|
| 1614 | else
|
|---|
| 1615 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
|---|
| 1616 | continue # so that we can try to find one that supports BSD flags
|
|---|
| 1617 | fi
|
|---|
| 1618 | fi
|
|---|
| 1619 | done
|
|---|
| 1620 | IFS="$ac_save_ifs"
|
|---|
| 1621 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
|
|---|
| 1622 | fi
|
|---|
| 1623 | fi
|
|---|
| 1624 |
|
|---|
| 1625 | NM="$lt_cv_path_NM"
|
|---|
| 1626 | echo "$ac_t""$NM" 1>&6
|
|---|
| 1627 |
|
|---|
| 1628 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
|---|
| 1629 | echo "configure:1630: checking whether ln -s works" >&5
|
|---|
| 1630 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
|
|---|
| 1631 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1632 | else
|
|---|
| 1633 | rm -f conftestdata
|
|---|
| 1634 | if ln -s X conftestdata 2>/dev/null
|
|---|
| 1635 | then
|
|---|
| 1636 | rm -f conftestdata
|
|---|
| 1637 | ac_cv_prog_LN_S="ln -s"
|
|---|
| 1638 | else
|
|---|
| 1639 | echo A > conftestdata;
|
|---|
| 1640 | if ln conftestdata conftestdata2 2>/dev/null; then
|
|---|
| 1641 | ac_cv_prog_LN_S=ln
|
|---|
| 1642 | else
|
|---|
| 1643 | ac_cv_prog_LN_S=cp
|
|---|
| 1644 | fi
|
|---|
| 1645 | fi
|
|---|
| 1646 | rm -f conftestdata*
|
|---|
| 1647 | fi
|
|---|
| 1648 | LN_S="$ac_cv_prog_LN_S"
|
|---|
| 1649 | if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
|---|
| 1650 | echo "$ac_t""yes" 1>&6
|
|---|
| 1651 | else
|
|---|
| 1652 | echo "$ac_t""no" 1>&6
|
|---|
| 1653 | fi
|
|---|
| 1654 |
|
|---|
| 1655 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
|
|---|
| 1656 | echo "configure:1657: checking how to recognise dependant libraries" >&5
|
|---|
| 1657 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
|
|---|
| 1658 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1659 | else
|
|---|
| 1660 | lt_cv_file_magic_cmd='$MAGIC_CMD'
|
|---|
| 1661 | lt_cv_file_magic_test_file=
|
|---|
| 1662 | lt_cv_deplibs_check_method='unknown'
|
|---|
| 1663 | # Need to set the preceding variable on all platforms that support
|
|---|
| 1664 | # interlibrary dependencies.
|
|---|
| 1665 | # 'none' -- dependencies not supported.
|
|---|
| 1666 | # `unknown' -- same as none, but documents that we really don't know.
|
|---|
| 1667 | # 'pass_all' -- all dependencies passed with no checks.
|
|---|
| 1668 | # 'test_compile' -- check by making test program.
|
|---|
| 1669 | # 'file_magic [regex]' -- check by looking for files in library path
|
|---|
| 1670 | # which responds to the $file_magic_cmd with a given egrep regex.
|
|---|
| 1671 | # If you have `file' or equivalent on your system and you're not sure
|
|---|
| 1672 | # whether `pass_all' will *always* work, you probably want this one.
|
|---|
| 1673 |
|
|---|
| 1674 | case $host_os in
|
|---|
| 1675 | aix*)
|
|---|
| 1676 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1677 | ;;
|
|---|
| 1678 |
|
|---|
| 1679 | beos*)
|
|---|
| 1680 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1681 | ;;
|
|---|
| 1682 |
|
|---|
| 1683 | bsdi4*)
|
|---|
| 1684 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
|---|
| 1685 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
|---|
| 1686 | lt_cv_file_magic_test_file=/shlib/libc.so
|
|---|
| 1687 | ;;
|
|---|
| 1688 |
|
|---|
| 1689 | cygwin* | mingw* |pw32*)
|
|---|
| 1690 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
|---|
| 1691 | lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|---|
| 1692 | ;;
|
|---|
| 1693 |
|
|---|
| 1694 | darwin* | rhapsody*)
|
|---|
| 1695 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
|
|---|
| 1696 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
|---|
| 1697 | case "$host_os" in
|
|---|
| 1698 | rhapsody* | darwin1.012)
|
|---|
| 1699 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
|
|---|
| 1700 | ;;
|
|---|
| 1701 | *) # Darwin 1.3 on
|
|---|
| 1702 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
|
|---|
| 1703 | ;;
|
|---|
| 1704 | esac
|
|---|
| 1705 | ;;
|
|---|
| 1706 |
|
|---|
| 1707 | freebsd* )
|
|---|
| 1708 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
|---|
| 1709 | case $host_cpu in
|
|---|
| 1710 | i*86 )
|
|---|
| 1711 | # Not sure whether the presence of OpenBSD here was a mistake.
|
|---|
| 1712 | # Let's accept both of them until this is cleared up.
|
|---|
| 1713 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
|
|---|
| 1714 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1715 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
|---|
| 1716 | ;;
|
|---|
| 1717 | esac
|
|---|
| 1718 | else
|
|---|
| 1719 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1720 | fi
|
|---|
| 1721 | ;;
|
|---|
| 1722 |
|
|---|
| 1723 | gnu*)
|
|---|
| 1724 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1725 | ;;
|
|---|
| 1726 |
|
|---|
| 1727 | hpux10.20*|hpux11*)
|
|---|
| 1728 | case $host_cpu in
|
|---|
| 1729 | hppa*)
|
|---|
| 1730 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
|
|---|
| 1731 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1732 | lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
|---|
| 1733 | ;;
|
|---|
| 1734 | ia64*)
|
|---|
| 1735 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
|
|---|
| 1736 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1737 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
|---|
| 1738 | ;;
|
|---|
| 1739 | esac
|
|---|
| 1740 | ;;
|
|---|
| 1741 |
|
|---|
| 1742 | irix5* | irix6*)
|
|---|
| 1743 | case $host_os in
|
|---|
| 1744 | irix5*)
|
|---|
| 1745 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 1746 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
|
|---|
| 1747 | ;;
|
|---|
| 1748 | *)
|
|---|
| 1749 | case $LD in
|
|---|
| 1750 | *-32|*"-32 ") libmagic=32-bit;;
|
|---|
| 1751 | *-n32|*"-n32 ") libmagic=N32;;
|
|---|
| 1752 | *-64|*"-64 ") libmagic=64-bit;;
|
|---|
| 1753 | *) libmagic=never-match;;
|
|---|
| 1754 | esac
|
|---|
| 1755 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 1756 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
|
|---|
| 1757 | ;;
|
|---|
| 1758 | esac
|
|---|
| 1759 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
|
|---|
| 1760 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1761 | ;;
|
|---|
| 1762 |
|
|---|
| 1763 | # This must be Linux ELF.
|
|---|
| 1764 | linux-gnu*)
|
|---|
| 1765 | case $host_cpu in
|
|---|
| 1766 | alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
|
|---|
| 1767 | lt_cv_deplibs_check_method=pass_all ;;
|
|---|
| 1768 | *)
|
|---|
| 1769 | # glibc up to 2.1.1 does not perform some relocations on ARM
|
|---|
| 1770 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
|
|---|
| 1771 | esac
|
|---|
| 1772 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
|---|
| 1773 | ;;
|
|---|
| 1774 |
|
|---|
| 1775 | netbsd*)
|
|---|
| 1776 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
|---|
| 1777 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
|---|
| 1778 | else
|
|---|
| 1779 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
|
|---|
| 1780 | fi
|
|---|
| 1781 | ;;
|
|---|
| 1782 |
|
|---|
| 1783 | newsos6)
|
|---|
| 1784 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
|---|
| 1785 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1786 | lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
|---|
| 1787 | ;;
|
|---|
| 1788 |
|
|---|
| 1789 | os2*)
|
|---|
| 1790 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1791 | ;;
|
|---|
| 1792 |
|
|---|
| 1793 | osf3* | osf4* | osf5*)
|
|---|
| 1794 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 1795 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
|
|---|
| 1796 | lt_cv_file_magic_test_file=/shlib/libc.so
|
|---|
| 1797 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1798 | ;;
|
|---|
| 1799 |
|
|---|
| 1800 | sco3.2v5*)
|
|---|
| 1801 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1802 | ;;
|
|---|
| 1803 |
|
|---|
| 1804 | solaris*)
|
|---|
| 1805 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1806 | lt_cv_file_magic_test_file=/lib/libc.so
|
|---|
| 1807 | ;;
|
|---|
| 1808 |
|
|---|
| 1809 | sysv5uw[78]* | sysv4*uw2*)
|
|---|
| 1810 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1811 | ;;
|
|---|
| 1812 |
|
|---|
| 1813 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
|---|
| 1814 | case $host_vendor in
|
|---|
| 1815 | ncr)
|
|---|
| 1816 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1817 | ;;
|
|---|
| 1818 | motorola)
|
|---|
| 1819 | 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]'
|
|---|
| 1820 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
|---|
| 1821 | ;;
|
|---|
| 1822 | esac
|
|---|
| 1823 | ;;
|
|---|
| 1824 | esac
|
|---|
| 1825 |
|
|---|
| 1826 | fi
|
|---|
| 1827 |
|
|---|
| 1828 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
|
|---|
| 1829 | file_magic_cmd=$lt_cv_file_magic_cmd
|
|---|
| 1830 | deplibs_check_method=$lt_cv_deplibs_check_method
|
|---|
| 1831 |
|
|---|
| 1832 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6
|
|---|
| 1833 | echo "configure:1834: checking for object suffix" >&5
|
|---|
| 1834 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
|
|---|
| 1835 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1836 | else
|
|---|
| 1837 | rm -f conftest*
|
|---|
| 1838 | echo 'int i = 1;' > conftest.$ac_ext
|
|---|
| 1839 | if { (eval echo configure:1840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 1840 | for ac_file in conftest.*; do
|
|---|
| 1841 | case $ac_file in
|
|---|
| 1842 | *.c) ;;
|
|---|
| 1843 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
|
|---|
| 1844 | esac
|
|---|
| 1845 | done
|
|---|
| 1846 | else
|
|---|
| 1847 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
|
|---|
| 1848 | fi
|
|---|
| 1849 | rm -f conftest*
|
|---|
| 1850 | fi
|
|---|
| 1851 |
|
|---|
| 1852 | echo "$ac_t""$ac_cv_objext" 1>&6
|
|---|
| 1853 | OBJEXT=$ac_cv_objext
|
|---|
| 1854 | ac_objext=$ac_cv_objext
|
|---|
| 1855 |
|
|---|
| 1856 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
|
|---|
| 1857 |
|
|---|
| 1858 | # Only perform the check for file, if the check method requires it
|
|---|
| 1859 | case $deplibs_check_method in
|
|---|
| 1860 | file_magic*)
|
|---|
| 1861 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
|---|
| 1862 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
|
|---|
| 1863 | echo "configure:1864: checking for ${ac_tool_prefix}file" >&5
|
|---|
| 1864 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
|---|
| 1865 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1866 | else
|
|---|
| 1867 | case $MAGIC_CMD in
|
|---|
| 1868 | /*)
|
|---|
| 1869 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
|---|
| 1870 | ;;
|
|---|
| 1871 | ?:/*)
|
|---|
| 1872 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
|---|
| 1873 | ;;
|
|---|
| 1874 | *)
|
|---|
| 1875 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
|---|
| 1876 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 1877 | ac_dummy="/usr/bin:$PATH"
|
|---|
| 1878 | for ac_dir in $ac_dummy; do
|
|---|
| 1879 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1880 | if test -f $ac_dir/${ac_tool_prefix}file; then
|
|---|
| 1881 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
|
|---|
| 1882 | if test -n "$file_magic_test_file"; then
|
|---|
| 1883 | case $deplibs_check_method in
|
|---|
| 1884 | "file_magic "*)
|
|---|
| 1885 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
|---|
| 1886 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1887 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
|---|
| 1888 | egrep "$file_magic_regex" > /dev/null; then
|
|---|
| 1889 | :
|
|---|
| 1890 | else
|
|---|
| 1891 | cat <<EOF 1>&2
|
|---|
| 1892 |
|
|---|
| 1893 | *** Warning: the command libtool uses to detect shared libraries,
|
|---|
| 1894 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
|---|
| 1895 | *** The result is that libtool may fail to recognize shared libraries
|
|---|
| 1896 | *** as such. This will affect the creation of libtool libraries that
|
|---|
| 1897 | *** depend on shared libraries, but programs linked with such libtool
|
|---|
| 1898 | *** libraries will work regardless of this problem. Nevertheless, you
|
|---|
| 1899 | *** may want to report the problem to your system manager and/or to
|
|---|
| 1900 | *** [email protected]
|
|---|
| 1901 |
|
|---|
| 1902 | EOF
|
|---|
| 1903 | fi ;;
|
|---|
| 1904 | esac
|
|---|
| 1905 | fi
|
|---|
| 1906 | break
|
|---|
| 1907 | fi
|
|---|
| 1908 | done
|
|---|
| 1909 | IFS="$ac_save_ifs"
|
|---|
| 1910 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
|---|
| 1911 | ;;
|
|---|
| 1912 | esac
|
|---|
| 1913 | fi
|
|---|
| 1914 |
|
|---|
| 1915 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1916 | if test -n "$MAGIC_CMD"; then
|
|---|
| 1917 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
|---|
| 1918 | else
|
|---|
| 1919 | echo "$ac_t""no" 1>&6
|
|---|
| 1920 | fi
|
|---|
| 1921 |
|
|---|
| 1922 | if test -z "$lt_cv_path_MAGIC_CMD"; then
|
|---|
| 1923 | if test -n "$ac_tool_prefix"; then
|
|---|
| 1924 | echo $ac_n "checking for file""... $ac_c" 1>&6
|
|---|
| 1925 | echo "configure:1926: checking for file" >&5
|
|---|
| 1926 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
|---|
| 1927 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1928 | else
|
|---|
| 1929 | case $MAGIC_CMD in
|
|---|
| 1930 | /*)
|
|---|
| 1931 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
|---|
| 1932 | ;;
|
|---|
| 1933 | ?:/*)
|
|---|
| 1934 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
|---|
| 1935 | ;;
|
|---|
| 1936 | *)
|
|---|
| 1937 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
|---|
| 1938 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 1939 | ac_dummy="/usr/bin:$PATH"
|
|---|
| 1940 | for ac_dir in $ac_dummy; do
|
|---|
| 1941 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1942 | if test -f $ac_dir/file; then
|
|---|
| 1943 | lt_cv_path_MAGIC_CMD="$ac_dir/file"
|
|---|
| 1944 | if test -n "$file_magic_test_file"; then
|
|---|
| 1945 | case $deplibs_check_method in
|
|---|
| 1946 | "file_magic "*)
|
|---|
| 1947 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
|---|
| 1948 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1949 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
|---|
| 1950 | egrep "$file_magic_regex" > /dev/null; then
|
|---|
| 1951 | :
|
|---|
| 1952 | else
|
|---|
| 1953 | cat <<EOF 1>&2
|
|---|
| 1954 |
|
|---|
| 1955 | *** Warning: the command libtool uses to detect shared libraries,
|
|---|
| 1956 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
|---|
| 1957 | *** The result is that libtool may fail to recognize shared libraries
|
|---|
| 1958 | *** as such. This will affect the creation of libtool libraries that
|
|---|
| 1959 | *** depend on shared libraries, but programs linked with such libtool
|
|---|
| 1960 | *** libraries will work regardless of this problem. Nevertheless, you
|
|---|
| 1961 | *** may want to report the problem to your system manager and/or to
|
|---|
| 1962 | *** [email protected]
|
|---|
| 1963 |
|
|---|
| 1964 | EOF
|
|---|
| 1965 | fi ;;
|
|---|
| 1966 | esac
|
|---|
| 1967 | fi
|
|---|
| 1968 | break
|
|---|
| 1969 | fi
|
|---|
| 1970 | done
|
|---|
| 1971 | IFS="$ac_save_ifs"
|
|---|
| 1972 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
|---|
| 1973 | ;;
|
|---|
| 1974 | esac
|
|---|
| 1975 | fi
|
|---|
| 1976 |
|
|---|
| 1977 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1978 | if test -n "$MAGIC_CMD"; then
|
|---|
| 1979 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
|---|
| 1980 | else
|
|---|
| 1981 | echo "$ac_t""no" 1>&6
|
|---|
| 1982 | fi
|
|---|
| 1983 |
|
|---|
| 1984 | else
|
|---|
| 1985 | MAGIC_CMD=:
|
|---|
| 1986 | fi
|
|---|
| 1987 | fi
|
|---|
| 1988 |
|
|---|
| 1989 | fi
|
|---|
| 1990 | ;;
|
|---|
| 1991 | esac
|
|---|
| 1992 |
|
|---|
| 1993 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
|---|
| 1994 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
|---|
| 1995 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1996 | echo "configure:1997: checking for $ac_word" >&5
|
|---|
| 1997 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 1998 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1999 | else
|
|---|
| 2000 | if test -n "$RANLIB"; then
|
|---|
| 2001 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 2002 | else
|
|---|
| 2003 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2004 | ac_dummy="$PATH"
|
|---|
| 2005 | for ac_dir in $ac_dummy; do
|
|---|
| 2006 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2007 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2008 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2009 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
|---|
| 2010 | break
|
|---|
| 2011 | fi
|
|---|
| 2012 | done
|
|---|
| 2013 | IFS="$ac_save_ifs"
|
|---|
| 2014 | fi
|
|---|
| 2015 | fi
|
|---|
| 2016 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 2017 | if test -n "$RANLIB"; then
|
|---|
| 2018 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 2019 | else
|
|---|
| 2020 | echo "$ac_t""no" 1>&6
|
|---|
| 2021 | fi
|
|---|
| 2022 |
|
|---|
| 2023 |
|
|---|
| 2024 | if test -z "$ac_cv_prog_RANLIB"; then
|
|---|
| 2025 | if test -n "$ac_tool_prefix"; then
|
|---|
| 2026 | # Extract the first word of "ranlib", so it can be a program name with args.
|
|---|
| 2027 | set dummy ranlib; ac_word=$2
|
|---|
| 2028 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2029 | echo "configure:2030: checking for $ac_word" >&5
|
|---|
| 2030 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 2031 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2032 | else
|
|---|
| 2033 | if test -n "$RANLIB"; then
|
|---|
| 2034 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 2035 | else
|
|---|
| 2036 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2037 | ac_dummy="$PATH"
|
|---|
| 2038 | for ac_dir in $ac_dummy; do
|
|---|
| 2039 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2040 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2041 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2042 | ac_cv_prog_RANLIB="ranlib"
|
|---|
| 2043 | break
|
|---|
| 2044 | fi
|
|---|
| 2045 | done
|
|---|
| 2046 | IFS="$ac_save_ifs"
|
|---|
| 2047 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|---|
| 2048 | fi
|
|---|
| 2049 | fi
|
|---|
| 2050 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 2051 | if test -n "$RANLIB"; then
|
|---|
| 2052 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 2053 | else
|
|---|
| 2054 | echo "$ac_t""no" 1>&6
|
|---|
| 2055 | fi
|
|---|
| 2056 |
|
|---|
| 2057 | else
|
|---|
| 2058 | RANLIB=":"
|
|---|
| 2059 | fi
|
|---|
| 2060 | fi
|
|---|
| 2061 |
|
|---|
| 2062 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
|---|
| 2063 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
|---|
| 2064 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2065 | echo "configure:2066: checking for $ac_word" >&5
|
|---|
| 2066 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
|---|
| 2067 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2068 | else
|
|---|
| 2069 | if test -n "$STRIP"; then
|
|---|
| 2070 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
|---|
| 2071 | else
|
|---|
| 2072 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2073 | ac_dummy="$PATH"
|
|---|
| 2074 | for ac_dir in $ac_dummy; do
|
|---|
| 2075 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2076 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2077 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2078 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
|---|
| 2079 | break
|
|---|
| 2080 | fi
|
|---|
| 2081 | done
|
|---|
| 2082 | IFS="$ac_save_ifs"
|
|---|
| 2083 | fi
|
|---|
| 2084 | fi
|
|---|
| 2085 | STRIP="$ac_cv_prog_STRIP"
|
|---|
| 2086 | if test -n "$STRIP"; then
|
|---|
| 2087 | echo "$ac_t""$STRIP" 1>&6
|
|---|
| 2088 | else
|
|---|
| 2089 | echo "$ac_t""no" 1>&6
|
|---|
| 2090 | fi
|
|---|
| 2091 |
|
|---|
| 2092 |
|
|---|
| 2093 | if test -z "$ac_cv_prog_STRIP"; then
|
|---|
| 2094 | if test -n "$ac_tool_prefix"; then
|
|---|
| 2095 | # Extract the first word of "strip", so it can be a program name with args.
|
|---|
| 2096 | set dummy strip; ac_word=$2
|
|---|
| 2097 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2098 | echo "configure:2099: checking for $ac_word" >&5
|
|---|
| 2099 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
|---|
| 2100 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2101 | else
|
|---|
| 2102 | if test -n "$STRIP"; then
|
|---|
| 2103 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
|---|
| 2104 | else
|
|---|
| 2105 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2106 | ac_dummy="$PATH"
|
|---|
| 2107 | for ac_dir in $ac_dummy; do
|
|---|
| 2108 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2109 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2110 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2111 | ac_cv_prog_STRIP="strip"
|
|---|
| 2112 | break
|
|---|
| 2113 | fi
|
|---|
| 2114 | done
|
|---|
| 2115 | IFS="$ac_save_ifs"
|
|---|
| 2116 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
|
|---|
| 2117 | fi
|
|---|
| 2118 | fi
|
|---|
| 2119 | STRIP="$ac_cv_prog_STRIP"
|
|---|
| 2120 | if test -n "$STRIP"; then
|
|---|
| 2121 | echo "$ac_t""$STRIP" 1>&6
|
|---|
| 2122 | else
|
|---|
| 2123 | echo "$ac_t""no" 1>&6
|
|---|
| 2124 | fi
|
|---|
| 2125 |
|
|---|
| 2126 | else
|
|---|
| 2127 | STRIP=":"
|
|---|
| 2128 | fi
|
|---|
| 2129 | fi
|
|---|
| 2130 |
|
|---|
| 2131 |
|
|---|
| 2132 | # Check for any special flags to pass to ltconfig.
|
|---|
| 2133 | libtool_flags="--cache-file=$cache_file"
|
|---|
| 2134 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
|
|---|
| 2135 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
|
|---|
| 2136 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
|
|---|
| 2137 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
|
|---|
| 2138 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
|
|---|
| 2139 |
|
|---|
| 2140 |
|
|---|
| 2141 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
|
|---|
| 2142 | if test "${enable_libtool_lock+set}" = set; then
|
|---|
| 2143 | enableval="$enable_libtool_lock"
|
|---|
| 2144 | :
|
|---|
| 2145 | fi
|
|---|
| 2146 |
|
|---|
| 2147 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
|
|---|
| 2148 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
|
|---|
| 2149 |
|
|---|
| 2150 | # Check whether --with-pic or --without-pic was given.
|
|---|
| 2151 | if test "${with_pic+set}" = set; then
|
|---|
| 2152 | withval="$with_pic"
|
|---|
| 2153 | pic_mode="$withval"
|
|---|
| 2154 | else
|
|---|
| 2155 | pic_mode=default
|
|---|
| 2156 | fi
|
|---|
| 2157 |
|
|---|
| 2158 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
|
|---|
| 2159 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
|
|---|
| 2160 |
|
|---|
| 2161 | # Some flags need to be propagated to the compiler or linker for good
|
|---|
| 2162 | # libtool support.
|
|---|
| 2163 | case $host in
|
|---|
| 2164 | *-*-irix6*)
|
|---|
| 2165 | # Find out which ABI we are using.
|
|---|
| 2166 | echo '#line 2167 "configure"' > conftest.$ac_ext
|
|---|
| 2167 | if { (eval echo configure:2168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 2168 | if test "$lt_cv_prog_gnu_ld" = yes; then
|
|---|
| 2169 | case `/usr/bin/file conftest.$ac_objext` in
|
|---|
| 2170 | *32-bit*)
|
|---|
| 2171 | LD="${LD-ld} -melf32bsmip"
|
|---|
| 2172 | ;;
|
|---|
| 2173 | *N32*)
|
|---|
| 2174 | LD="${LD-ld} -melf32bmipn32"
|
|---|
| 2175 | ;;
|
|---|
| 2176 | *64-bit*)
|
|---|
| 2177 | LD="${LD-ld} -melf64bmip"
|
|---|
| 2178 | ;;
|
|---|
| 2179 | esac
|
|---|
| 2180 | else
|
|---|
| 2181 | case `/usr/bin/file conftest.$ac_objext` in
|
|---|
| 2182 | *32-bit*)
|
|---|
| 2183 | LD="${LD-ld} -32"
|
|---|
| 2184 | ;;
|
|---|
| 2185 | *N32*)
|
|---|
| 2186 | LD="${LD-ld} -n32"
|
|---|
| 2187 | ;;
|
|---|
| 2188 | *64-bit*)
|
|---|
| 2189 | LD="${LD-ld} -64"
|
|---|
| 2190 | ;;
|
|---|
| 2191 | esac
|
|---|
| 2192 | fi
|
|---|
| 2193 | fi
|
|---|
| 2194 | rm -rf conftest*
|
|---|
| 2195 | ;;
|
|---|
| 2196 |
|
|---|
| 2197 | ia64-*-hpux*)
|
|---|
| 2198 | # Find out which ABI we are using.
|
|---|
| 2199 | echo 'int i;' > conftest.$ac_ext
|
|---|
| 2200 | if { (eval echo configure:2201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 2201 | case "`/usr/bin/file conftest.o`" in
|
|---|
| 2202 | *ELF-32*)
|
|---|
| 2203 | HPUX_IA64_MODE="32"
|
|---|
| 2204 | ;;
|
|---|
| 2205 | *ELF-64*)
|
|---|
| 2206 | HPUX_IA64_MODE="64"
|
|---|
| 2207 | ;;
|
|---|
| 2208 | esac
|
|---|
| 2209 | fi
|
|---|
| 2210 | rm -rf conftest*
|
|---|
| 2211 | ;;
|
|---|
| 2212 |
|
|---|
| 2213 | *-*-sco3.2v5*)
|
|---|
| 2214 | # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
|---|
| 2215 | SAVE_CFLAGS="$CFLAGS"
|
|---|
| 2216 | CFLAGS="$CFLAGS -belf"
|
|---|
| 2217 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
|
|---|
| 2218 | echo "configure:2219: checking whether the C compiler needs -belf" >&5
|
|---|
| 2219 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
|
|---|
| 2220 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2221 | else
|
|---|
| 2222 |
|
|---|
| 2223 | ac_ext=c
|
|---|
| 2224 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2225 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2226 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2227 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2228 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2229 |
|
|---|
| 2230 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2231 | #line 2232 "configure"
|
|---|
| 2232 | #include "confdefs.h"
|
|---|
| 2233 |
|
|---|
| 2234 | int main() {
|
|---|
| 2235 |
|
|---|
| 2236 | ; return 0; }
|
|---|
| 2237 | EOF
|
|---|
| 2238 | if { (eval echo configure:2239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 2239 | rm -rf conftest*
|
|---|
| 2240 | lt_cv_cc_needs_belf=yes
|
|---|
| 2241 | else
|
|---|
| 2242 | echo "configure: failed program was:" >&5
|
|---|
| 2243 | cat conftest.$ac_ext >&5
|
|---|
| 2244 | rm -rf conftest*
|
|---|
| 2245 | lt_cv_cc_needs_belf=no
|
|---|
| 2246 | fi
|
|---|
| 2247 | rm -f conftest*
|
|---|
| 2248 | ac_ext=c
|
|---|
| 2249 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2250 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2251 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2252 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2253 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2254 |
|
|---|
| 2255 | fi
|
|---|
| 2256 |
|
|---|
| 2257 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
|
|---|
| 2258 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
|---|
| 2259 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
|---|
| 2260 | CFLAGS="$SAVE_CFLAGS"
|
|---|
| 2261 | fi
|
|---|
| 2262 | ;;
|
|---|
| 2263 |
|
|---|
| 2264 |
|
|---|
| 2265 | esac
|
|---|
| 2266 |
|
|---|
| 2267 |
|
|---|
| 2268 | # Save cache, so that ltconfig can load it
|
|---|
| 2269 | cat > confcache <<\EOF
|
|---|
| 2270 | # This file is a shell script that caches the results of configure
|
|---|
| 2271 | # tests run on this system so they can be shared between configure
|
|---|
| 2272 | # scripts and configure runs. It is not useful on other systems.
|
|---|
| 2273 | # If it contains results you don't want to keep, you may remove or edit it.
|
|---|
| 2274 | #
|
|---|
| 2275 | # By default, configure uses ./config.cache as the cache file,
|
|---|
| 2276 | # creating it if it does not exist already. You can give configure
|
|---|
| 2277 | # the --cache-file=FILE option to use a different cache file; that is
|
|---|
| 2278 | # what configure does when it calls configure scripts in
|
|---|
| 2279 | # subdirectories, so they share the cache.
|
|---|
| 2280 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
|---|
| 2281 | # config.status only pays attention to the cache file if you give it the
|
|---|
| 2282 | # --recheck option to rerun configure.
|
|---|
| 2283 | #
|
|---|
| 2284 | EOF
|
|---|
| 2285 | # The following way of writing the cache mishandles newlines in values,
|
|---|
| 2286 | # but we know of no workaround that is simple, portable, and efficient.
|
|---|
| 2287 | # So, don't put newlines in cache variables' values.
|
|---|
| 2288 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
|---|
| 2289 | # and sets the high bit in the cache file unless we assign to the vars.
|
|---|
| 2290 | (set) 2>&1 |
|
|---|
| 2291 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
|---|
| 2292 | *ac_space=\ *)
|
|---|
| 2293 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
|---|
| 2294 | # turns \\\\ into \\, and sed turns \\ into \).
|
|---|
| 2295 | sed -n \
|
|---|
| 2296 | -e "s/'/'\\\\''/g" \
|
|---|
| 2297 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
|---|
| 2298 | ;;
|
|---|
| 2299 | *)
|
|---|
| 2300 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
|---|
| 2301 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
|---|
| 2302 | ;;
|
|---|
| 2303 | esac >> confcache
|
|---|
| 2304 | if cmp -s $cache_file confcache; then
|
|---|
| 2305 | :
|
|---|
| 2306 | else
|
|---|
| 2307 | if test -w $cache_file; then
|
|---|
| 2308 | echo "updating cache $cache_file"
|
|---|
| 2309 | cat confcache > $cache_file
|
|---|
| 2310 | else
|
|---|
| 2311 | echo "not updating unwritable cache $cache_file"
|
|---|
| 2312 | fi
|
|---|
| 2313 | fi
|
|---|
| 2314 | rm -f confcache
|
|---|
| 2315 |
|
|---|
| 2316 |
|
|---|
| 2317 | # Actually configure libtool. ac_aux_dir is where install-sh is found.
|
|---|
| 2318 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
|
|---|
| 2319 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
|
|---|
| 2320 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
|
|---|
| 2321 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
|
|---|
| 2322 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
|
|---|
| 2323 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
|
|---|
| 2324 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
|
|---|
| 2325 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
|
|---|
| 2326 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
|
|---|
| 2327 |
|
|---|
| 2328 | # Reload cache, that may have been modified by ltconfig
|
|---|
| 2329 | if test -r "$cache_file"; then
|
|---|
| 2330 | echo "loading cache $cache_file"
|
|---|
| 2331 | . $cache_file
|
|---|
| 2332 | else
|
|---|
| 2333 | echo "creating cache $cache_file"
|
|---|
| 2334 | > $cache_file
|
|---|
| 2335 | fi
|
|---|
| 2336 |
|
|---|
| 2337 |
|
|---|
| 2338 | # This can be used to rebuild libtool when needed
|
|---|
| 2339 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
|
|---|
| 2340 |
|
|---|
| 2341 | # Always use our own libtool.
|
|---|
| 2342 | LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
|---|
| 2343 |
|
|---|
| 2344 | # Redirect the config.log output again, so that the ltconfig log is not
|
|---|
| 2345 | # clobbered by the next message.
|
|---|
| 2346 | exec 5>>./config.log
|
|---|
| 2347 |
|
|---|
| 2348 |
|
|---|
| 2349 |
|
|---|
| 2350 |
|
|---|
| 2351 |
|
|---|
| 2352 |
|
|---|
| 2353 |
|
|---|
| 2354 | # Check whether --enable-targets or --disable-targets was given.
|
|---|
| 2355 | if test "${enable_targets+set}" = set; then
|
|---|
| 2356 | enableval="$enable_targets"
|
|---|
| 2357 | case "${enableval}" in
|
|---|
| 2358 | yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
|
|---|
| 2359 | ;;
|
|---|
| 2360 | no) enable_targets= ;;
|
|---|
| 2361 | *) enable_targets=$enableval ;;
|
|---|
| 2362 | esac
|
|---|
| 2363 | fi
|
|---|
| 2364 | # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
|
|---|
| 2365 | if test "${enable_commonbfdlib+set}" = set; then
|
|---|
| 2366 | enableval="$enable_commonbfdlib"
|
|---|
| 2367 | case "${enableval}" in
|
|---|
| 2368 | yes) commonbfdlib=true ;;
|
|---|
| 2369 | no) commonbfdlib=false ;;
|
|---|
| 2370 | *) { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;;
|
|---|
| 2371 | esac
|
|---|
| 2372 | fi
|
|---|
| 2373 |
|
|---|
| 2374 | build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
|---|
| 2375 | # Check whether --enable-build-warnings or --disable-build-warnings was given.
|
|---|
| 2376 | if test "${enable_build_warnings+set}" = set; then
|
|---|
| 2377 | enableval="$enable_build_warnings"
|
|---|
| 2378 | case "${enableval}" in
|
|---|
| 2379 | yes) ;;
|
|---|
| 2380 | no) build_warnings="-w";;
|
|---|
| 2381 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
|---|
| 2382 | build_warnings="${build_warnings} ${t}";;
|
|---|
| 2383 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
|---|
| 2384 | build_warnings="${t} ${build_warnings}";;
|
|---|
| 2385 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
|
|---|
| 2386 | esac
|
|---|
| 2387 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
|
|---|
| 2388 | echo "Setting warning flags = $build_warnings" 6>&1
|
|---|
| 2389 | fi
|
|---|
| 2390 | fi
|
|---|
| 2391 | WARN_CFLAGS=""
|
|---|
| 2392 | if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
|
|---|
| 2393 | WARN_CFLAGS="${build_warnings}"
|
|---|
| 2394 | fi
|
|---|
| 2395 |
|
|---|
| 2396 |
|
|---|
| 2397 |
|
|---|
| 2398 |
|
|---|
| 2399 |
|
|---|
| 2400 |
|
|---|
| 2401 | if test -z "$target" ; then
|
|---|
| 2402 | { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
|
|---|
| 2403 | fi
|
|---|
| 2404 |
|
|---|
| 2405 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
|
|---|
| 2406 | echo "configure:2407: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
|---|
| 2407 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
|
|---|
| 2408 | if test "${enable_maintainer_mode+set}" = set; then
|
|---|
| 2409 | enableval="$enable_maintainer_mode"
|
|---|
| 2410 | USE_MAINTAINER_MODE=$enableval
|
|---|
| 2411 | else
|
|---|
| 2412 | USE_MAINTAINER_MODE=no
|
|---|
| 2413 | fi
|
|---|
| 2414 |
|
|---|
| 2415 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
|
|---|
| 2416 |
|
|---|
| 2417 |
|
|---|
| 2418 | if test $USE_MAINTAINER_MODE = yes; then
|
|---|
| 2419 | MAINTAINER_MODE_TRUE=
|
|---|
| 2420 | MAINTAINER_MODE_FALSE='#'
|
|---|
| 2421 | else
|
|---|
| 2422 | MAINTAINER_MODE_TRUE='#'
|
|---|
| 2423 | MAINTAINER_MODE_FALSE=
|
|---|
| 2424 | fi
|
|---|
| 2425 | MAINT=$MAINTAINER_MODE_TRUE
|
|---|
| 2426 |
|
|---|
| 2427 |
|
|---|
| 2428 | echo $ac_n "checking whether to install libbfd""... $ac_c" 1>&6
|
|---|
| 2429 | echo "configure:2430: checking whether to install libbfd" >&5
|
|---|
| 2430 | # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
|
|---|
| 2431 | if test "${enable_install_libbfd+set}" = set; then
|
|---|
| 2432 | enableval="$enable_install_libbfd"
|
|---|
| 2433 | install_libbfd_p=$enableval
|
|---|
| 2434 | else
|
|---|
| 2435 | if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
|
|---|
| 2436 | install_libbfd_p=yes
|
|---|
| 2437 | else
|
|---|
| 2438 | install_libbfd_p=no
|
|---|
|
|---|