| 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-multilib build hella library versions (default)"
|
|---|
| 16 | ac_help="$ac_help
|
|---|
| 17 | --with-target-subdir=SUBDIR
|
|---|
| 18 | configuring in a subdirectory"
|
|---|
| 19 | ac_help="$ac_help
|
|---|
| 20 | --with-cross-host=HOST configuring with a cross compiler"
|
|---|
| 21 | ac_help="$ac_help
|
|---|
| 22 | --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory "
|
|---|
| 23 | ac_help="$ac_help
|
|---|
| 24 | --enable-shared[=PKGS] build shared libraries [default=no]"
|
|---|
| 25 | ac_help="$ac_help
|
|---|
| 26 | --enable-static[=PKGS] build static libraries [default=yes]"
|
|---|
| 27 | ac_help="$ac_help
|
|---|
| 28 | --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
|
|---|
| 29 | ac_help="$ac_help
|
|---|
| 30 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
|
|---|
| 31 | ac_help="$ac_help
|
|---|
| 32 | --disable-libtool-lock avoid locking (might break parallel builds)"
|
|---|
| 33 | ac_help="$ac_help
|
|---|
| 34 | --with-pic try to use only PIC/non-PIC objects [default=use both]"
|
|---|
| 35 | ac_help="$ac_help
|
|---|
| 36 | --enable-objc-gc enable the use of Boehm's garbage collector with
|
|---|
| 37 | the GNU Objective-C runtime."
|
|---|
| 38 |
|
|---|
| 39 | # Initialize some variables set by options.
|
|---|
| 40 | # The variables have the same names as the options, with
|
|---|
| 41 | # dashes changed to underlines.
|
|---|
| 42 | build=NONE
|
|---|
| 43 | cache_file=./config.cache
|
|---|
| 44 | exec_prefix=NONE
|
|---|
| 45 | host=NONE
|
|---|
| 46 | no_create=
|
|---|
| 47 | nonopt=NONE
|
|---|
| 48 | no_recursion=
|
|---|
| 49 | prefix=NONE
|
|---|
| 50 | program_prefix=NONE
|
|---|
| 51 | program_suffix=NONE
|
|---|
| 52 | program_transform_name=s,x,x,
|
|---|
| 53 | silent=
|
|---|
| 54 | site=
|
|---|
| 55 | srcdir=
|
|---|
| 56 | target=NONE
|
|---|
| 57 | verbose=
|
|---|
| 58 | x_includes=NONE
|
|---|
| 59 | x_libraries=NONE
|
|---|
| 60 | bindir='${exec_prefix}/bin'
|
|---|
| 61 | sbindir='${exec_prefix}/sbin'
|
|---|
| 62 | libexecdir='${exec_prefix}/libexec'
|
|---|
| 63 | datadir='${prefix}/share'
|
|---|
| 64 | sysconfdir='${prefix}/etc'
|
|---|
| 65 | sharedstatedir='${prefix}/com'
|
|---|
| 66 | localstatedir='${prefix}/var'
|
|---|
| 67 | libdir='${exec_prefix}/lib'
|
|---|
| 68 | includedir='${prefix}/include'
|
|---|
| 69 | oldincludedir='/usr/include'
|
|---|
| 70 | infodir='${prefix}/info'
|
|---|
| 71 | mandir='${prefix}/man'
|
|---|
| 72 |
|
|---|
| 73 | # Initialize some other variables.
|
|---|
| 74 | subdirs=
|
|---|
| 75 | MFLAGS= MAKEFLAGS=
|
|---|
| 76 | SHELL=${CONFIG_SHELL-/bin/sh}
|
|---|
| 77 | # Maximum number of lines to put in a shell here document.
|
|---|
| 78 | ac_max_here_lines=12
|
|---|
| 79 |
|
|---|
| 80 | ac_prev=
|
|---|
| 81 | for ac_option
|
|---|
| 82 | do
|
|---|
| 83 |
|
|---|
| 84 | # If the previous option needs an argument, assign it.
|
|---|
| 85 | if test -n "$ac_prev"; then
|
|---|
| 86 | eval "$ac_prev=\$ac_option"
|
|---|
| 87 | ac_prev=
|
|---|
| 88 | continue
|
|---|
| 89 | fi
|
|---|
| 90 |
|
|---|
| 91 | case "$ac_option" in
|
|---|
| 92 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
|---|
| 93 | *) ac_optarg= ;;
|
|---|
| 94 | esac
|
|---|
| 95 |
|
|---|
| 96 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
|---|
| 97 |
|
|---|
| 98 | case "$ac_option" in
|
|---|
| 99 |
|
|---|
| 100 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
|---|
| 101 | ac_prev=bindir ;;
|
|---|
| 102 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
|---|
| 103 | bindir="$ac_optarg" ;;
|
|---|
| 104 |
|
|---|
| 105 | -build | --build | --buil | --bui | --bu)
|
|---|
| 106 | ac_prev=build ;;
|
|---|
| 107 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
|---|
| 108 | build="$ac_optarg" ;;
|
|---|
| 109 |
|
|---|
| 110 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
|---|
| 111 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
|---|
| 112 | ac_prev=cache_file ;;
|
|---|
| 113 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
|---|
| 114 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
|---|
| 115 | cache_file="$ac_optarg" ;;
|
|---|
| 116 |
|
|---|
| 117 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
|---|
| 118 | ac_prev=datadir ;;
|
|---|
| 119 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
|---|
| 120 | | --da=*)
|
|---|
| 121 | datadir="$ac_optarg" ;;
|
|---|
| 122 |
|
|---|
| 123 | -disable-* | --disable-*)
|
|---|
| 124 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
|---|
| 125 | # Reject names that are not valid shell variable names.
|
|---|
| 126 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|---|
| 127 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|---|
| 128 | fi
|
|---|
| 129 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|---|
| 130 | eval "enable_${ac_feature}=no" ;;
|
|---|
| 131 |
|
|---|
| 132 | -enable-* | --enable-*)
|
|---|
| 133 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
|---|
| 134 | # Reject names that are not valid shell variable names.
|
|---|
| 135 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|---|
| 136 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|---|
| 137 | fi
|
|---|
| 138 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|---|
| 139 | case "$ac_option" in
|
|---|
| 140 | *=*) ;;
|
|---|
| 141 | *) ac_optarg=yes ;;
|
|---|
| 142 | esac
|
|---|
| 143 | eval "enable_${ac_feature}='$ac_optarg'" ;;
|
|---|
| 144 |
|
|---|
| 145 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
|---|
| 146 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
|---|
| 147 | | --exec | --exe | --ex)
|
|---|
| 148 | ac_prev=exec_prefix ;;
|
|---|
| 149 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
|---|
| 150 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
|---|
| 151 | | --exec=* | --exe=* | --ex=*)
|
|---|
| 152 | exec_prefix="$ac_optarg" ;;
|
|---|
| 153 |
|
|---|
| 154 | -gas | --gas | --ga | --g)
|
|---|
| 155 | # Obsolete; use --with-gas.
|
|---|
| 156 | with_gas=yes ;;
|
|---|
| 157 |
|
|---|
| 158 | -help | --help | --hel | --he)
|
|---|
| 159 | # Omit some internal or obsolete options to make the list less imposing.
|
|---|
| 160 | # This message is too long to be a string in the A/UX 3.1 sh.
|
|---|
| 161 | cat << EOF
|
|---|
| 162 | Usage: configure [options] [host]
|
|---|
| 163 | Options: [defaults in brackets after descriptions]
|
|---|
| 164 | Configuration:
|
|---|
| 165 | --cache-file=FILE cache test results in FILE
|
|---|
| 166 | --help print this message
|
|---|
| 167 | --no-create do not create output files
|
|---|
| 168 | --quiet, --silent do not print \`checking...' messages
|
|---|
| 169 | --version print the version of autoconf that created configure
|
|---|
| 170 | Directory and file names:
|
|---|
| 171 | --prefix=PREFIX install architecture-independent files in PREFIX
|
|---|
| 172 | [$ac_default_prefix]
|
|---|
| 173 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
|---|
| 174 | [same as prefix]
|
|---|
| 175 | --bindir=DIR user executables in DIR [EPREFIX/bin]
|
|---|
| 176 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
|---|
| 177 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
|---|
| 178 | --datadir=DIR read-only architecture-independent data in DIR
|
|---|
| 179 | [PREFIX/share]
|
|---|
| 180 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
|---|
| 181 | --sharedstatedir=DIR modifiable architecture-independent data in DIR
|
|---|
| 182 | [PREFIX/com]
|
|---|
| 183 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
|---|
| 184 | --libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
|---|
| 185 | --includedir=DIR C header files in DIR [PREFIX/include]
|
|---|
| 186 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
|---|
| 187 | --infodir=DIR info documentation in DIR [PREFIX/info]
|
|---|
| 188 | --mandir=DIR man documentation in DIR [PREFIX/man]
|
|---|
| 189 | --srcdir=DIR find the sources in DIR [configure dir or ..]
|
|---|
| 190 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
|---|
| 191 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
|---|
| 192 | --program-transform-name=PROGRAM
|
|---|
| 193 | run sed PROGRAM on installed program names
|
|---|
| 194 | EOF
|
|---|
| 195 | cat << EOF
|
|---|
| 196 | Host type:
|
|---|
| 197 | --build=BUILD configure for building on BUILD [BUILD=HOST]
|
|---|
| 198 | --host=HOST configure for HOST [guessed]
|
|---|
| 199 | --target=TARGET configure for TARGET [TARGET=HOST]
|
|---|
| 200 | Features and packages:
|
|---|
| 201 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
|---|
| 202 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
|---|
| 203 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
|---|
| 204 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
|---|
| 205 | --x-includes=DIR X include files are in DIR
|
|---|
| 206 | --x-libraries=DIR X library files are in DIR
|
|---|
| 207 | EOF
|
|---|
| 208 | if test -n "$ac_help"; then
|
|---|
| 209 | echo "--enable and --with options recognized:$ac_help"
|
|---|
| 210 | fi
|
|---|
| 211 | exit 0 ;;
|
|---|
| 212 |
|
|---|
| 213 | -host | --host | --hos | --ho)
|
|---|
| 214 | ac_prev=host ;;
|
|---|
| 215 | -host=* | --host=* | --hos=* | --ho=*)
|
|---|
| 216 | host="$ac_optarg" ;;
|
|---|
| 217 |
|
|---|
| 218 | -includedir | --includedir | --includedi | --included | --include \
|
|---|
| 219 | | --includ | --inclu | --incl | --inc)
|
|---|
| 220 | ac_prev=includedir ;;
|
|---|
| 221 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
|---|
| 222 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
|---|
| 223 | includedir="$ac_optarg" ;;
|
|---|
| 224 |
|
|---|
| 225 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
|---|
| 226 | ac_prev=infodir ;;
|
|---|
| 227 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
|---|
| 228 | infodir="$ac_optarg" ;;
|
|---|
| 229 |
|
|---|
| 230 | -libdir | --libdir | --libdi | --libd)
|
|---|
| 231 | ac_prev=libdir ;;
|
|---|
| 232 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
|---|
| 233 | libdir="$ac_optarg" ;;
|
|---|
| 234 |
|
|---|
| 235 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
|---|
| 236 | | --libexe | --libex | --libe)
|
|---|
| 237 | ac_prev=libexecdir ;;
|
|---|
| 238 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
|---|
| 239 | | --libexe=* | --libex=* | --libe=*)
|
|---|
| 240 | libexecdir="$ac_optarg" ;;
|
|---|
| 241 |
|
|---|
| 242 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
|---|
| 243 | | --localstate | --localstat | --localsta | --localst \
|
|---|
| 244 | | --locals | --local | --loca | --loc | --lo)
|
|---|
| 245 | ac_prev=localstatedir ;;
|
|---|
| 246 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
|---|
| 247 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
|---|
| 248 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
|---|
| 249 | localstatedir="$ac_optarg" ;;
|
|---|
| 250 |
|
|---|
| 251 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
|---|
| 252 | ac_prev=mandir ;;
|
|---|
| 253 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
|---|
| 254 | mandir="$ac_optarg" ;;
|
|---|
| 255 |
|
|---|
| 256 | -nfp | --nfp | --nf)
|
|---|
| 257 | # Obsolete; use --without-fp.
|
|---|
| 258 | with_fp=no ;;
|
|---|
| 259 |
|
|---|
| 260 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|---|
| 261 | | --no-cr | --no-c)
|
|---|
| 262 | no_create=yes ;;
|
|---|
| 263 |
|
|---|
| 264 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|---|
| 265 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
|---|
| 266 | no_recursion=yes ;;
|
|---|
| 267 |
|
|---|
| 268 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
|---|
| 269 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
|---|
| 270 | | --oldin | --oldi | --old | --ol | --o)
|
|---|
| 271 | ac_prev=oldincludedir ;;
|
|---|
| 272 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
|---|
| 273 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
|---|
| 274 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
|---|
| 275 | oldincludedir="$ac_optarg" ;;
|
|---|
| 276 |
|
|---|
| 277 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
|---|
| 278 | ac_prev=prefix ;;
|
|---|
| 279 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
|---|
| 280 | prefix="$ac_optarg" ;;
|
|---|
| 281 |
|
|---|
| 282 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
|---|
| 283 | | --program-pre | --program-pr | --program-p)
|
|---|
| 284 | ac_prev=program_prefix ;;
|
|---|
| 285 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
|---|
| 286 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
|---|
| 287 | program_prefix="$ac_optarg" ;;
|
|---|
| 288 |
|
|---|
| 289 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
|---|
| 290 | | --program-suf | --program-su | --program-s)
|
|---|
| 291 | ac_prev=program_suffix ;;
|
|---|
| 292 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
|---|
| 293 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
|---|
| 294 | program_suffix="$ac_optarg" ;;
|
|---|
| 295 |
|
|---|
| 296 | -program-transform-name | --program-transform-name \
|
|---|
| 297 | | --program-transform-nam | --program-transform-na \
|
|---|
| 298 | | --program-transform-n | --program-transform- \
|
|---|
| 299 | | --program-transform | --program-transfor \
|
|---|
| 300 | | --program-transfo | --program-transf \
|
|---|
| 301 | | --program-trans | --program-tran \
|
|---|
| 302 | | --progr-tra | --program-tr | --program-t)
|
|---|
| 303 | ac_prev=program_transform_name ;;
|
|---|
| 304 | -program-transform-name=* | --program-transform-name=* \
|
|---|
| 305 | | --program-transform-nam=* | --program-transform-na=* \
|
|---|
| 306 | | --program-transform-n=* | --program-transform-=* \
|
|---|
| 307 | | --program-transform=* | --program-transfor=* \
|
|---|
| 308 | | --program-transfo=* | --program-transf=* \
|
|---|
| 309 | | --program-trans=* | --program-tran=* \
|
|---|
| 310 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
|---|
| 311 | program_transform_name="$ac_optarg" ;;
|
|---|
| 312 |
|
|---|
| 313 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|---|
| 314 | | -silent | --silent | --silen | --sile | --sil)
|
|---|
| 315 | silent=yes ;;
|
|---|
| 316 |
|
|---|
| 317 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
|---|
| 318 | ac_prev=sbindir ;;
|
|---|
| 319 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
|---|
| 320 | | --sbi=* | --sb=*)
|
|---|
| 321 | sbindir="$ac_optarg" ;;
|
|---|
| 322 |
|
|---|
| 323 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
|---|
| 324 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
|---|
| 325 | | --sharedst | --shareds | --shared | --share | --shar \
|
|---|
| 326 | | --sha | --sh)
|
|---|
| 327 | ac_prev=sharedstatedir ;;
|
|---|
| 328 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
|---|
| 329 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
|---|
| 330 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
|---|
| 331 | | --sha=* | --sh=*)
|
|---|
| 332 | sharedstatedir="$ac_optarg" ;;
|
|---|
| 333 |
|
|---|
| 334 | -site | --site | --sit)
|
|---|
| 335 | ac_prev=site ;;
|
|---|
| 336 | -site=* | --site=* | --sit=*)
|
|---|
| 337 | site="$ac_optarg" ;;
|
|---|
| 338 |
|
|---|
| 339 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
|---|
| 340 | ac_prev=srcdir ;;
|
|---|
| 341 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
|---|
| 342 | srcdir="$ac_optarg" ;;
|
|---|
| 343 |
|
|---|
| 344 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
|---|
| 345 | | --syscon | --sysco | --sysc | --sys | --sy)
|
|---|
| 346 | ac_prev=sysconfdir ;;
|
|---|
| 347 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
|---|
| 348 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
|---|
| 349 | sysconfdir="$ac_optarg" ;;
|
|---|
| 350 |
|
|---|
| 351 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
|---|
| 352 | ac_prev=target ;;
|
|---|
| 353 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
|---|
| 354 | target="$ac_optarg" ;;
|
|---|
| 355 |
|
|---|
| 356 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
|---|
| 357 | verbose=yes ;;
|
|---|
| 358 |
|
|---|
| 359 | -version | --version | --versio | --versi | --vers)
|
|---|
| 360 | echo "configure generated by autoconf version 2.13"
|
|---|
| 361 | exit 0 ;;
|
|---|
| 362 |
|
|---|
| 363 | -with-* | --with-*)
|
|---|
| 364 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
|---|
| 365 | # Reject names that are not valid shell variable names.
|
|---|
| 366 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|---|
| 367 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|---|
| 368 | fi
|
|---|
| 369 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|---|
| 370 | case "$ac_option" in
|
|---|
| 371 | *=*) ;;
|
|---|
| 372 | *) ac_optarg=yes ;;
|
|---|
| 373 | esac
|
|---|
| 374 | eval "with_${ac_package}='$ac_optarg'" ;;
|
|---|
| 375 |
|
|---|
| 376 | -without-* | --without-*)
|
|---|
| 377 | ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
|---|
| 378 | # Reject names that are not valid shell variable names.
|
|---|
| 379 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|---|
| 380 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|---|
| 381 | fi
|
|---|
| 382 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|---|
| 383 | eval "with_${ac_package}=no" ;;
|
|---|
| 384 |
|
|---|
| 385 | --x)
|
|---|
| 386 | # Obsolete; use --with-x.
|
|---|
| 387 | with_x=yes ;;
|
|---|
| 388 |
|
|---|
| 389 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
|---|
| 390 | | --x-incl | --x-inc | --x-in | --x-i)
|
|---|
| 391 | ac_prev=x_includes ;;
|
|---|
| 392 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
|---|
| 393 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
|---|
| 394 | x_includes="$ac_optarg" ;;
|
|---|
| 395 |
|
|---|
| 396 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
|---|
| 397 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
|---|
| 398 | ac_prev=x_libraries ;;
|
|---|
| 399 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
|---|
| 400 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
|---|
| 401 | x_libraries="$ac_optarg" ;;
|
|---|
| 402 |
|
|---|
| 403 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
|---|
| 404 | ;;
|
|---|
| 405 |
|
|---|
| 406 | *)
|
|---|
| 407 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
|---|
| 408 | echo "configure: warning: $ac_option: invalid host type" 1>&2
|
|---|
| 409 | fi
|
|---|
| 410 | if test "x$nonopt" != xNONE; then
|
|---|
| 411 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
|---|
| 412 | fi
|
|---|
| 413 | nonopt="$ac_option"
|
|---|
| 414 | ;;
|
|---|
| 415 |
|
|---|
| 416 | esac
|
|---|
| 417 | done
|
|---|
| 418 |
|
|---|
| 419 | if test -n "$ac_prev"; then
|
|---|
| 420 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
|---|
| 421 | fi
|
|---|
| 422 |
|
|---|
| 423 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|---|
| 424 |
|
|---|
| 425 | # File descriptor usage:
|
|---|
| 426 | # 0 standard input
|
|---|
| 427 | # 1 file creation
|
|---|
| 428 | # 2 errors and warnings
|
|---|
| 429 | # 3 some systems may open it to /dev/tty
|
|---|
| 430 | # 4 used on the Kubota Titan
|
|---|
| 431 | # 6 checking for... messages and results
|
|---|
| 432 | # 5 compiler messages saved in config.log
|
|---|
| 433 | if test "$silent" = yes; then
|
|---|
| 434 | exec 6>/dev/null
|
|---|
| 435 | else
|
|---|
| 436 | exec 6>&1
|
|---|
| 437 | fi
|
|---|
| 438 | exec 5>./config.log
|
|---|
| 439 |
|
|---|
| 440 | echo "\
|
|---|
| 441 | This file contains any messages produced by compilers while
|
|---|
| 442 | running configure, to aid debugging if configure makes a mistake.
|
|---|
| 443 | " 1>&5
|
|---|
| 444 |
|
|---|
| 445 | # Strip out --no-create and --no-recursion so they do not pile up.
|
|---|
| 446 | # Also quote any args containing shell metacharacters.
|
|---|
| 447 | ac_configure_args=
|
|---|
| 448 | for ac_arg
|
|---|
| 449 | do
|
|---|
| 450 | case "$ac_arg" in
|
|---|
| 451 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|---|
| 452 | | --no-cr | --no-c) ;;
|
|---|
| 453 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|---|
| 454 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
|---|
| 455 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
|---|
| 456 | ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
|---|
| 457 | *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
|---|
| 458 | esac
|
|---|
| 459 | done
|
|---|
| 460 |
|
|---|
| 461 | # NLS nuisances.
|
|---|
| 462 | # Only set these to C if already set. These must not be set unconditionally
|
|---|
| 463 | # because not all systems understand e.g. LANG=C (notably SCO).
|
|---|
| 464 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
|---|
| 465 | # Non-C LC_CTYPE values break the ctype check.
|
|---|
| 466 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
|---|
| 467 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
|---|
| 468 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
|---|
| 469 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
|---|
| 470 |
|
|---|
| 471 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
|---|
| 472 | rm -rf conftest* confdefs.h
|
|---|
| 473 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
|---|
| 474 | echo > confdefs.h
|
|---|
| 475 |
|
|---|
| 476 | # A filename unique to this package, relative to the directory that
|
|---|
| 477 | # configure is in, which we can look for to find out if srcdir is correct.
|
|---|
| 478 | ac_unique_file=objc/objc.h
|
|---|
| 479 |
|
|---|
| 480 | # Find the source files, if location was not specified.
|
|---|
| 481 | if test -z "$srcdir"; then
|
|---|
| 482 | ac_srcdir_defaulted=yes
|
|---|
| 483 | # Try the directory containing this script, then its parent.
|
|---|
| 484 | ac_prog=$0
|
|---|
| 485 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
|---|
| 486 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
|---|
| 487 | srcdir=$ac_confdir
|
|---|
| 488 | if test ! -r $srcdir/$ac_unique_file; then
|
|---|
| 489 | srcdir=..
|
|---|
| 490 | fi
|
|---|
| 491 | else
|
|---|
| 492 | ac_srcdir_defaulted=no
|
|---|
| 493 | fi
|
|---|
| 494 | if test ! -r $srcdir/$ac_unique_file; then
|
|---|
| 495 | if test "$ac_srcdir_defaulted" = yes; then
|
|---|
| 496 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
|---|
| 497 | else
|
|---|
| 498 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
|---|
| 499 | fi
|
|---|
| 500 | fi
|
|---|
| 501 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
|---|
| 502 |
|
|---|
| 503 | # Prefer explicitly selected file to automatically selected ones.
|
|---|
| 504 | if test -z "$CONFIG_SITE"; then
|
|---|
| 505 | if test "x$prefix" != xNONE; then
|
|---|
| 506 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
|---|
| 507 | else
|
|---|
| 508 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
|---|
| 509 | fi
|
|---|
| 510 | fi
|
|---|
| 511 | for ac_site_file in $CONFIG_SITE; do
|
|---|
| 512 | if test -r "$ac_site_file"; then
|
|---|
| 513 | echo "loading site script $ac_site_file"
|
|---|
| 514 | . "$ac_site_file"
|
|---|
| 515 | fi
|
|---|
| 516 | done
|
|---|
| 517 |
|
|---|
| 518 | if test -r "$cache_file"; then
|
|---|
| 519 | echo "loading cache $cache_file"
|
|---|
| 520 | . $cache_file
|
|---|
| 521 | else
|
|---|
| 522 | echo "creating cache $cache_file"
|
|---|
| 523 | > $cache_file
|
|---|
| 524 | fi
|
|---|
| 525 |
|
|---|
| 526 | ac_ext=c
|
|---|
| 527 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 528 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 529 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 530 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 531 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 532 |
|
|---|
| 533 | ac_exeext=
|
|---|
| 534 | ac_objext=o
|
|---|
| 535 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
|---|
| 536 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
|---|
| 537 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
|---|
| 538 | ac_n= ac_c='
|
|---|
| 539 | ' ac_t=' '
|
|---|
| 540 | else
|
|---|
| 541 | ac_n=-n ac_c= ac_t=
|
|---|
| 542 | fi
|
|---|
| 543 | else
|
|---|
| 544 | ac_n= ac_c='\c' ac_t=
|
|---|
| 545 | fi
|
|---|
| 546 |
|
|---|
| 547 | echo $ac_n "checking for path separator""... $ac_c" 1>&6
|
|---|
| 548 | echo "configure:549: checking for path separator" >&5
|
|---|
| 549 | # Filter path to get backslahes into forwardslashes
|
|---|
| 550 | case "`uname -s 2> /dev/null`" in
|
|---|
| 551 | OS/2)
|
|---|
| 552 | PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
|
|---|
| 553 | PATH_IFS=';'
|
|---|
| 554 | ;;
|
|---|
| 555 | *)
|
|---|
| 556 | PATH_IFS=':'
|
|---|
| 557 | ;;
|
|---|
| 558 | esac
|
|---|
| 559 | echo "$ac_t""${PATH_IFS}" 1>&6
|
|---|
| 560 |
|
|---|
| 561 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
|
|---|
| 562 | echo "configure:563: checking for Cygwin environment" >&5
|
|---|
| 563 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
|
|---|
| 564 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 565 | else
|
|---|
| 566 | cat > conftest.$ac_ext <<EOF
|
|---|
| 567 | #line 568 "configure"
|
|---|
| 568 | #include "confdefs.h"
|
|---|
| 569 |
|
|---|
| 570 | int main() {
|
|---|
| 571 |
|
|---|
| 572 | #ifndef __CYGWIN__
|
|---|
| 573 | #define __CYGWIN__ __CYGWIN32__
|
|---|
| 574 | #endif
|
|---|
| 575 | return __CYGWIN__;
|
|---|
| 576 | ; return 0; }
|
|---|
| 577 | EOF
|
|---|
| 578 | if { (eval echo configure:579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 579 | rm -rf conftest*
|
|---|
| 580 | ac_cv_cygwin=yes
|
|---|
| 581 | else
|
|---|
| 582 | echo "configure: failed program was:" >&5
|
|---|
| 583 | cat conftest.$ac_ext >&5
|
|---|
| 584 | rm -rf conftest*
|
|---|
| 585 | ac_cv_cygwin=no
|
|---|
| 586 | fi
|
|---|
| 587 | rm -f conftest*
|
|---|
| 588 | rm -f conftest*
|
|---|
| 589 | fi
|
|---|
| 590 |
|
|---|
| 591 | echo "$ac_t""$ac_cv_cygwin" 1>&6
|
|---|
| 592 | CYGWIN=
|
|---|
| 593 | test "$ac_cv_cygwin" = yes && CYGWIN=yes
|
|---|
| 594 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
|
|---|
| 595 | echo "configure:596: checking for mingw32 environment" >&5
|
|---|
| 596 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
|
|---|
| 597 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 598 | else
|
|---|
| 599 | cat > conftest.$ac_ext <<EOF
|
|---|
| 600 | #line 601 "configure"
|
|---|
| 601 | #include "confdefs.h"
|
|---|
| 602 |
|
|---|
| 603 | int main() {
|
|---|
| 604 | return __MINGW32__;
|
|---|
| 605 | ; return 0; }
|
|---|
| 606 | EOF
|
|---|
| 607 | if { (eval echo configure:608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 608 | rm -rf conftest*
|
|---|
| 609 | ac_cv_mingw32=yes
|
|---|
| 610 | else
|
|---|
| 611 | echo "configure: failed program was:" >&5
|
|---|
| 612 | cat conftest.$ac_ext >&5
|
|---|
| 613 | rm -rf conftest*
|
|---|
| 614 | ac_cv_mingw32=no
|
|---|
| 615 | fi
|
|---|
| 616 | rm -f conftest*
|
|---|
| 617 | rm -f conftest*
|
|---|
| 618 | fi
|
|---|
| 619 |
|
|---|
| 620 | echo "$ac_t""$ac_cv_mingw32" 1>&6
|
|---|
| 621 | MINGW32=
|
|---|
| 622 | test "$ac_cv_mingw32" = yes && MINGW32=yes
|
|---|
| 623 | echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
|
|---|
| 624 | echo "configure:625: checking for EMX/OS2 environment" >&5
|
|---|
| 625 | if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
|
|---|
| 626 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 627 | else
|
|---|
| 628 | : ${CC=gcc.exe}
|
|---|
| 629 | cat > conftest.$ac_ext <<EOF
|
|---|
| 630 | #line 631 "configure"
|
|---|
| 631 | #include "confdefs.h"
|
|---|
| 632 |
|
|---|
| 633 | int main() {
|
|---|
| 634 | return __EMX__;
|
|---|
| 635 | ; return 0; }
|
|---|
| 636 | EOF
|
|---|
| 637 | if { (eval echo configure:638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 638 | rm -rf conftest*
|
|---|
| 639 | ac_cv_emxos2=yes
|
|---|
| 640 | else
|
|---|
| 641 | echo "configure: failed program was:" >&5
|
|---|
| 642 | cat conftest.$ac_ext >&5
|
|---|
| 643 | rm -rf conftest*
|
|---|
| 644 | ac_cv_emxos2=no
|
|---|
| 645 | fi
|
|---|
| 646 | rm -f conftest*
|
|---|
| 647 | rm -f conftest*
|
|---|
| 648 | fi
|
|---|
| 649 |
|
|---|
| 650 | echo "$ac_t""$ac_cv_emxos2" 1>&6
|
|---|
| 651 | if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
|
|---|
| 652 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 653 | else
|
|---|
| 654 | if test "$ac_cv_emxos2" = yes ; then
|
|---|
| 655 | ac_cv_libpre=
|
|---|
| 656 | else
|
|---|
| 657 | ac_cv_libpre=lib
|
|---|
| 658 | fi
|
|---|
| 659 |
|
|---|
| 660 | fi
|
|---|
| 661 |
|
|---|
| 662 | EMXOS2=
|
|---|
| 663 | test "$ac_cv_emxos2" = yes && EMXOS2=yes
|
|---|
| 664 |
|
|---|
| 665 |
|
|---|
| 666 |
|
|---|
| 667 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
|---|
| 668 | echo "configure:669: checking for executable suffix" >&5
|
|---|
| 669 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
|---|
| 670 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 671 | else
|
|---|
| 672 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
|---|
| 673 | ac_cv_exeext=.exe
|
|---|
| 674 | else
|
|---|
| 675 | rm -f conftest*
|
|---|
| 676 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
|---|
| 677 | ac_cv_exeext=
|
|---|
| 678 | if { (eval echo configure:679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
|---|
| 679 | for file in conftest.*; do
|
|---|
| 680 | case $file in
|
|---|
| 681 | *.c | *.o | *.obj) ;;
|
|---|
| 682 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
|---|
| 683 | esac
|
|---|
| 684 | done
|
|---|
| 685 | else
|
|---|
| 686 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 687 | fi
|
|---|
| 688 | rm -f conftest*
|
|---|
| 689 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
|---|
| 690 | fi
|
|---|
| 691 | fi
|
|---|
| 692 |
|
|---|
| 693 | EXEEXT=""
|
|---|
| 694 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
|---|
| 695 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
|---|
| 696 | ac_exeext=$EXEEXT
|
|---|
| 697 |
|
|---|
| 698 |
|
|---|
| 699 |
|
|---|
| 700 |
|
|---|
| 701 | # This works around the fact that libtool configuration may change LD
|
|---|
| 702 | # for this particular configuration, but some shells, instead of
|
|---|
| 703 | # keeping the changes in LD private, export them just because LD is
|
|---|
| 704 | # exported.
|
|---|
| 705 | ORIGINAL_LD_FOR_MULTILIBS=$LD
|
|---|
| 706 |
|
|---|
| 707 |
|
|---|
| 708 | # Check whether --enable-multilib or --disable-multilib was given.
|
|---|
| 709 | if test "${enable_multilib+set}" = set; then
|
|---|
| 710 | enableval="$enable_multilib"
|
|---|
| 711 | case "${enableval}" in
|
|---|
| 712 | yes) multilib=yes ;;
|
|---|
| 713 | no) multilib=no ;;
|
|---|
| 714 | *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
|
|---|
| 715 | esac
|
|---|
| 716 | else
|
|---|
| 717 | multilib=yes
|
|---|
| 718 | fi
|
|---|
| 719 |
|
|---|
| 720 | # When building with srcdir == objdir, links to the source files will
|
|---|
| 721 | # be created in directories within the target_subdir. We have to
|
|---|
| 722 | # adjust toplevel_srcdir accordingly, so that configure finds
|
|---|
| 723 | # install-sh and other auxiliary files that live in the top-level
|
|---|
| 724 | # source directory.
|
|---|
| 725 | if test "${srcdir}" = "."; then
|
|---|
| 726 | if test -z "${with_target_subdir}"; then
|
|---|
| 727 | toprel=".."
|
|---|
| 728 | else
|
|---|
| 729 | if test "${with_target_subdir}" != "."; then
|
|---|
| 730 | toprel="${with_multisrctop}../.."
|
|---|
| 731 | else
|
|---|
| 732 | toprel="${with_multisrctop}.."
|
|---|
| 733 | fi
|
|---|
| 734 | fi
|
|---|
| 735 | else
|
|---|
| 736 | toprel=".."
|
|---|
| 737 | fi
|
|---|
| 738 | ac_aux_dir=
|
|---|
| 739 | for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
|
|---|
| 740 | if test -f $ac_dir/install-sh; then
|
|---|
| 741 | ac_aux_dir=$ac_dir
|
|---|
| 742 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
|---|
| 743 | break
|
|---|
| 744 | elif test -f $ac_dir/install.sh; then
|
|---|
| 745 | ac_aux_dir=$ac_dir
|
|---|
| 746 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
|---|
| 747 | break
|
|---|
| 748 | fi
|
|---|
| 749 | done
|
|---|
| 750 | if test -z "$ac_aux_dir"; then
|
|---|
| 751 | { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
|
|---|
| 752 | fi
|
|---|
| 753 | ac_config_guess=$ac_aux_dir/config.guess
|
|---|
| 754 | ac_config_sub=$ac_aux_dir/config.sub
|
|---|
| 755 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
|---|
| 756 |
|
|---|
| 757 | toplevel_srcdir=\${top_srcdir}/$toprel
|
|---|
| 758 |
|
|---|
| 759 |
|
|---|
| 760 |
|
|---|
| 761 |
|
|---|
| 762 | # Do some error checking and defaulting for the host and target type.
|
|---|
| 763 | # The inputs are:
|
|---|
| 764 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT
|
|---|
| 765 | #
|
|---|
| 766 | # The rules are:
|
|---|
| 767 | # 1. You are not allowed to specify --host, --target, and nonopt at the
|
|---|
| 768 | # same time.
|
|---|
| 769 | # 2. Host defaults to nonopt.
|
|---|
| 770 | # 3. If nonopt is not specified, then host defaults to the current host,
|
|---|
| 771 | # as determined by config.guess.
|
|---|
| 772 | # 4. Target and build default to nonopt.
|
|---|
| 773 | # 5. If nonopt is not specified, then target and build default to host.
|
|---|
| 774 |
|
|---|
| 775 | # The aliases save the names the user supplied, while $host etc.
|
|---|
| 776 | # will get canonicalized.
|
|---|
| 777 | case $host---$target---$nonopt in
|
|---|
| 778 | NONE---*---* | *---NONE---* | *---*---NONE) ;;
|
|---|
| 779 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
|
|---|
| 780 | esac
|
|---|
| 781 |
|
|---|
| 782 |
|
|---|
| 783 | # Make sure we can run config.sub.
|
|---|
| 784 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
|
|---|
| 785 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
|
|---|
| 786 | fi
|
|---|
| 787 |
|
|---|
| 788 | echo $ac_n "checking host system type""... $ac_c" 1>&6
|
|---|
| 789 | echo "configure:790: checking host system type" >&5
|
|---|
| 790 |
|
|---|
| 791 | host_alias=$host
|
|---|
| 792 | case "$host_alias" in
|
|---|
| 793 | NONE)
|
|---|
| 794 | case $nonopt in
|
|---|
| 795 | NONE)
|
|---|
| 796 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
|
|---|
| 797 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
|
|---|
| 798 | fi ;;
|
|---|
| 799 | *) host_alias=$nonopt ;;
|
|---|
| 800 | esac ;;
|
|---|
| 801 | esac
|
|---|
| 802 |
|
|---|
| 803 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
|
|---|
| 804 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 805 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 806 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 807 | echo "$ac_t""$host" 1>&6
|
|---|
| 808 |
|
|---|
| 809 | echo $ac_n "checking target system type""... $ac_c" 1>&6
|
|---|
| 810 | echo "configure:811: checking target system type" >&5
|
|---|
| 811 |
|
|---|
| 812 | target_alias=$target
|
|---|
| 813 | case "$target_alias" in
|
|---|
| 814 | NONE)
|
|---|
| 815 | case $nonopt in
|
|---|
| 816 | NONE) target_alias=$host_alias ;;
|
|---|
| 817 | *) target_alias=$nonopt ;;
|
|---|
| 818 | esac ;;
|
|---|
| 819 | esac
|
|---|
| 820 |
|
|---|
| 821 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
|
|---|
| 822 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 823 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 824 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 825 | echo "$ac_t""$target" 1>&6
|
|---|
| 826 |
|
|---|
| 827 | echo $ac_n "checking build system type""... $ac_c" 1>&6
|
|---|
| 828 | echo "configure:829: checking build system type" >&5
|
|---|
| 829 |
|
|---|
| 830 | build_alias=$build
|
|---|
| 831 | case "$build_alias" in
|
|---|
| 832 | NONE)
|
|---|
| 833 | case $nonopt in
|
|---|
| 834 | NONE) build_alias=$host_alias ;;
|
|---|
| 835 | *) build_alias=$nonopt ;;
|
|---|
| 836 | esac ;;
|
|---|
| 837 | esac
|
|---|
| 838 |
|
|---|
| 839 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
|
|---|
| 840 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 841 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 842 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 843 | echo "$ac_t""$build" 1>&6
|
|---|
| 844 |
|
|---|
| 845 | test "$host_alias" != "$target_alias" &&
|
|---|
| 846 | test "$program_prefix$program_suffix$program_transform_name" = \
|
|---|
| 847 | NONENONEs,x,x, &&
|
|---|
| 848 | program_prefix=${target_alias}-
|
|---|
| 849 |
|
|---|
| 850 | target_alias=${target_alias-$target}
|
|---|
| 851 |
|
|---|
| 852 |
|
|---|
| 853 | if test $host != $build; then
|
|---|
| 854 | ac_tool_prefix=${host_alias}-
|
|---|
| 855 | else
|
|---|
| 856 | ac_tool_prefix=
|
|---|
| 857 | fi
|
|---|
| 858 |
|
|---|
| 859 |
|
|---|
| 860 | # Export build and source directories.
|
|---|
| 861 | # These need to be absolute paths, yet at the same time need to
|
|---|
| 862 | # canonicalize only relative paths, because then amd will not unmount
|
|---|
| 863 | # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
|
|---|
| 864 | glibcpp_builddir=`${PWDCMD-pwd}`
|
|---|
| 865 | case $srcdir in
|
|---|
| 866 | \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
|
|---|
| 867 | *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
|
|---|
| 868 | esac
|
|---|
| 869 |
|
|---|
| 870 |
|
|---|
| 871 |
|
|---|
| 872 |
|
|---|
| 873 |
|
|---|
| 874 | # Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.50+, can also
|
|---|
| 875 | # be 'cp -p' if linking isn't available.
|
|---|
| 876 | #ac_cv_prog_LN_S='cp -p'
|
|---|
| 877 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
|---|
| 878 | echo "configure:879: checking whether ln -s works" >&5
|
|---|
| 879 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
|
|---|
| 880 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 881 | else
|
|---|
| 882 | rm -f conftestdata
|
|---|
| 883 | if ln -s X conftestdata 2>/dev/null
|
|---|
| 884 | then
|
|---|
| 885 | rm -f conftestdata
|
|---|
| 886 | ac_cv_prog_LN_S="ln -s"
|
|---|
| 887 | else
|
|---|
| 888 | echo A > conftestdata;
|
|---|
| 889 | if ln conftestdata conftestdata2 2>/dev/null; then
|
|---|
| 890 | ac_cv_prog_LN_S=ln
|
|---|
| 891 | else
|
|---|
| 892 | ac_cv_prog_LN_S=cp
|
|---|
| 893 | fi
|
|---|
| 894 | fi
|
|---|
| 895 | rm -f conftestdata*
|
|---|
| 896 | fi
|
|---|
| 897 | LN_S="$ac_cv_prog_LN_S"
|
|---|
| 898 | if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
|---|
| 899 | echo "$ac_t""yes" 1>&6
|
|---|
| 900 | else
|
|---|
| 901 | echo "$ac_t""no" 1>&6
|
|---|
| 902 | fi
|
|---|
| 903 |
|
|---|
| 904 |
|
|---|
| 905 | # We use these options to decide which functions to include.
|
|---|
| 906 | # Check whether --with-target-subdir or --without-target-subdir was given.
|
|---|
| 907 | if test "${with_target_subdir+set}" = set; then
|
|---|
| 908 | withval="$with_target_subdir"
|
|---|
| 909 | :
|
|---|
| 910 | fi
|
|---|
| 911 |
|
|---|
| 912 | # Check whether --with-cross-host or --without-cross-host was given.
|
|---|
| 913 | if test "${with_cross_host+set}" = set; then
|
|---|
| 914 | withval="$with_cross_host"
|
|---|
| 915 | :
|
|---|
| 916 | fi
|
|---|
| 917 |
|
|---|
| 918 |
|
|---|
| 919 | # Never versions of autoconf add an underscore to these functions.
|
|---|
| 920 | # Prevent future problems ...
|
|---|
| 921 |
|
|---|
| 922 |
|
|---|
| 923 |
|
|---|
| 924 |
|
|---|
| 925 |
|
|---|
| 926 | # AC_PROG_CC
|
|---|
| 927 |
|
|---|
| 928 | # FIXME: We temporarily define our own version of AC_PROG_CC. This is
|
|---|
| 929 | # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
|
|---|
| 930 | # are probably using a cross compiler, which will not be able to fully
|
|---|
| 931 | # link an executable. This should really be fixed in autoconf
|
|---|
| 932 | # itself.
|
|---|
| 933 |
|
|---|
| 934 |
|
|---|
| 935 |
|
|---|
| 936 |
|
|---|
| 937 | # Extract the first word of "gcc", so it can be a program name with args.
|
|---|
| 938 | set dummy gcc; ac_word=$2
|
|---|
| 939 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 940 | echo "configure:941: checking for $ac_word" >&5
|
|---|
| 941 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 942 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 943 | else
|
|---|
| 944 | if test -n "$CC"; then
|
|---|
| 945 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 946 | else
|
|---|
| 947 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 948 | ac_dummy="$PATH"
|
|---|
| 949 | for ac_dir in $ac_dummy; do
|
|---|
| 950 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 951 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 952 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 953 | ac_cv_prog_CC="gcc"
|
|---|
| 954 | break
|
|---|
| 955 | fi
|
|---|
| 956 | done
|
|---|
| 957 | IFS="$ac_save_ifs"
|
|---|
| 958 | fi
|
|---|
| 959 | fi
|
|---|
| 960 | CC="$ac_cv_prog_CC"
|
|---|
| 961 | if test -n "$CC"; then
|
|---|
| 962 | echo "$ac_t""$CC" 1>&6
|
|---|
| 963 | else
|
|---|
| 964 | echo "$ac_t""no" 1>&6
|
|---|
| 965 | fi
|
|---|
| 966 |
|
|---|
| 967 | if test -z "$CC"; then
|
|---|
| 968 | # Extract the first word of "cc", so it can be a program name with args.
|
|---|
| 969 | set dummy cc; ac_word=$2
|
|---|
| 970 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 971 | echo "configure:972: checking for $ac_word" >&5
|
|---|
| 972 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 973 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 974 | else
|
|---|
| 975 | if test -n "$CC"; then
|
|---|
| 976 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 977 | else
|
|---|
| 978 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 979 | ac_prog_rejected=no
|
|---|
| 980 | ac_dummy="$PATH"
|
|---|
| 981 | for ac_dir in $ac_dummy; do
|
|---|
| 982 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 983 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 984 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 985 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
|
|---|
| 986 | "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
|
|---|
| 987 | ac_prog_rejected=yes
|
|---|
| 988 | continue
|
|---|
| 989 | fi
|
|---|
| 990 | ac_cv_prog_CC="cc"
|
|---|
| 991 | break
|
|---|
| 992 | fi
|
|---|
| 993 | done
|
|---|
| 994 | IFS="$ac_save_ifs"
|
|---|
| 995 | if test $ac_prog_rejected = yes; then
|
|---|
| 996 | # We found a bogon in the path, so make sure we never use it.
|
|---|
| 997 | set dummy $ac_cv_prog_CC
|
|---|
| 998 | shift
|
|---|
| 999 | if test $# -gt 0; then
|
|---|
| 1000 | # We chose a different compiler from the bogus one.
|
|---|
| 1001 | # However, it has the same basename, so the bogon will be chosen
|
|---|
| 1002 | # first if we set CC to just the basename; use the full file name.
|
|---|
| 1003 | shift
|
|---|
| 1004 | set dummy "$ac_dir/$ac_word" "$@"
|
|---|
| 1005 | shift
|
|---|
| 1006 | ac_cv_prog_CC="$@"
|
|---|
| 1007 | fi
|
|---|
| 1008 | fi
|
|---|
| 1009 | fi
|
|---|
| 1010 | fi
|
|---|
| 1011 | CC="$ac_cv_prog_CC"
|
|---|
| 1012 | if test -n "$CC"; then
|
|---|
| 1013 | echo "$ac_t""$CC" 1>&6
|
|---|
| 1014 | else
|
|---|
| 1015 | echo "$ac_t""no" 1>&6
|
|---|
| 1016 | fi
|
|---|
| 1017 |
|
|---|
| 1018 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|---|
| 1019 | fi
|
|---|
| 1020 |
|
|---|
| 1021 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
|---|
| 1022 | echo "configure:1023: checking whether we are using GNU C" >&5
|
|---|
| 1023 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
|---|
| 1024 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1025 | else
|
|---|
| 1026 | cat > conftest.c <<EOF
|
|---|
| 1027 | #ifdef __GNUC__
|
|---|
| 1028 | yes;
|
|---|
| 1029 | #endif
|
|---|
| 1030 | EOF
|
|---|
| 1031 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|---|
| 1032 | ac_cv_prog_gcc=yes
|
|---|
| 1033 | else
|
|---|
| 1034 | ac_cv_prog_gcc=no
|
|---|
| 1035 | fi
|
|---|
| 1036 | fi
|
|---|
| 1037 |
|
|---|
| 1038 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|---|
| 1039 |
|
|---|
| 1040 | if test $ac_cv_prog_gcc = yes; then
|
|---|
| 1041 | GCC=yes
|
|---|
| 1042 | ac_test_CFLAGS="${CFLAGS+set}"
|
|---|
| 1043 | ac_save_CFLAGS="$CFLAGS"
|
|---|
| 1044 | CFLAGS=
|
|---|
| 1045 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|---|
| 1046 | echo "configure:1047: checking whether ${CC-cc} accepts -g" >&5
|
|---|
| 1047 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
|---|
| 1048 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1049 | else
|
|---|
| 1050 | echo 'void f(){}' > conftest.c
|
|---|
| 1051 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|---|
| 1052 | ac_cv_prog_cc_g=yes
|
|---|
| 1053 | else
|
|---|
| 1054 | ac_cv_prog_cc_g=no
|
|---|
| 1055 | fi
|
|---|
| 1056 | rm -f conftest*
|
|---|
| 1057 |
|
|---|
| 1058 | fi
|
|---|
| 1059 |
|
|---|
| 1060 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|---|
| 1061 | if test "$ac_test_CFLAGS" = set; then
|
|---|
| 1062 | CFLAGS="$ac_save_CFLAGS"
|
|---|
| 1063 | elif test $ac_cv_prog_cc_g = yes; then
|
|---|
| 1064 | CFLAGS="-g -O2"
|
|---|
| 1065 | else
|
|---|
| 1066 | CFLAGS="-O2"
|
|---|
| 1067 | fi
|
|---|
| 1068 | else
|
|---|
| 1069 | GCC=
|
|---|
| 1070 | test "${CFLAGS+set}" = set || CFLAGS="-g"
|
|---|
| 1071 | fi
|
|---|
| 1072 |
|
|---|
| 1073 |
|
|---|
| 1074 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
|
|---|
| 1075 | set dummy ${ac_tool_prefix}as; ac_word=$2
|
|---|
| 1076 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1077 | echo "configure:1078: checking for $ac_word" >&5
|
|---|
| 1078 | if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
|
|---|
| 1079 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1080 | else
|
|---|
| 1081 | if test -n "$AS"; then
|
|---|
| 1082 | ac_cv_prog_AS="$AS" # Let the user override the test.
|
|---|
| 1083 | else
|
|---|
| 1084 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1085 | ac_dummy="$PATH"
|
|---|
| 1086 | for ac_dir in $ac_dummy; do
|
|---|
| 1087 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1088 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1089 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1090 | ac_cv_prog_AS="${ac_tool_prefix}as"
|
|---|
| 1091 | break
|
|---|
| 1092 | fi
|
|---|
| 1093 | done
|
|---|
| 1094 | IFS="$ac_save_ifs"
|
|---|
| 1095 | test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
|
|---|
| 1096 | fi
|
|---|
| 1097 | fi
|
|---|
| 1098 | AS="$ac_cv_prog_AS"
|
|---|
| 1099 | if test -n "$AS"; then
|
|---|
| 1100 | echo "$ac_t""$AS" 1>&6
|
|---|
| 1101 | else
|
|---|
| 1102 | echo "$ac_t""no" 1>&6
|
|---|
| 1103 | fi
|
|---|
| 1104 |
|
|---|
| 1105 |
|
|---|
| 1106 |
|
|---|
| 1107 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
|---|
| 1108 | set dummy ${ac_tool_prefix}ar; ac_word=$2
|
|---|
| 1109 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1110 | echo "configure:1111: checking for $ac_word" >&5
|
|---|
| 1111 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
|
|---|
| 1112 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1113 | else
|
|---|
| 1114 | if test -n "$AR"; then
|
|---|
| 1115 | ac_cv_prog_AR="$AR" # Let the user override the test.
|
|---|
| 1116 | else
|
|---|
| 1117 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1118 | ac_dummy="$PATH"
|
|---|
| 1119 | for ac_dir in $ac_dummy; do
|
|---|
| 1120 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1121 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1122 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1123 | ac_cv_prog_AR="${ac_tool_prefix}ar"
|
|---|
| 1124 | break
|
|---|
| 1125 | fi
|
|---|
| 1126 | done
|
|---|
| 1127 | IFS="$ac_save_ifs"
|
|---|
| 1128 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
|
|---|
| 1129 | fi
|
|---|
| 1130 | fi
|
|---|
| 1131 | AR="$ac_cv_prog_AR"
|
|---|
| 1132 | if test -n "$AR"; then
|
|---|
| 1133 | echo "$ac_t""$AR" 1>&6
|
|---|
| 1134 | else
|
|---|
| 1135 | echo "$ac_t""no" 1>&6
|
|---|
| 1136 | fi
|
|---|
| 1137 |
|
|---|
| 1138 |
|
|---|
| 1139 |
|
|---|
| 1140 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
|---|
| 1141 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
|---|
| 1142 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1143 | echo "configure:1144: checking for $ac_word" >&5
|
|---|
| 1144 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 1145 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1146 | else
|
|---|
| 1147 | if test -n "$RANLIB"; then
|
|---|
| 1148 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 1149 | else
|
|---|
| 1150 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1151 | ac_dummy="$PATH"
|
|---|
| 1152 | for ac_dir in $ac_dummy; do
|
|---|
| 1153 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1154 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1155 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1156 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
|---|
| 1157 | break
|
|---|
| 1158 | fi
|
|---|
| 1159 | done
|
|---|
| 1160 | IFS="$ac_save_ifs"
|
|---|
| 1161 | fi
|
|---|
| 1162 | fi
|
|---|
| 1163 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 1164 | if test -n "$RANLIB"; then
|
|---|
| 1165 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 1166 | else
|
|---|
| 1167 | echo "$ac_t""no" 1>&6
|
|---|
| 1168 | fi
|
|---|
| 1169 |
|
|---|
| 1170 |
|
|---|
| 1171 | if test -z "$ac_cv_prog_RANLIB"; then
|
|---|
| 1172 | if test -n "$ac_tool_prefix"; then
|
|---|
| 1173 | # Extract the first word of "ranlib", so it can be a program name with args.
|
|---|
| 1174 | set dummy ranlib; ac_word=$2
|
|---|
| 1175 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1176 | echo "configure:1177: checking for $ac_word" >&5
|
|---|
| 1177 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 1178 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1179 | else
|
|---|
| 1180 | if test -n "$RANLIB"; then
|
|---|
| 1181 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 1182 | else
|
|---|
| 1183 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1184 | ac_dummy="$PATH"
|
|---|
| 1185 | for ac_dir in $ac_dummy; do
|
|---|
| 1186 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1187 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1188 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1189 | ac_cv_prog_RANLIB="ranlib"
|
|---|
| 1190 | break
|
|---|
| 1191 | fi
|
|---|
| 1192 | done
|
|---|
| 1193 | IFS="$ac_save_ifs"
|
|---|
| 1194 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
|
|---|
| 1195 | fi
|
|---|
| 1196 | fi
|
|---|
| 1197 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 1198 | if test -n "$RANLIB"; then
|
|---|
| 1199 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 1200 | else
|
|---|
| 1201 | echo "$ac_t""no" 1>&6
|
|---|
| 1202 | fi
|
|---|
| 1203 |
|
|---|
| 1204 | else
|
|---|
| 1205 | RANLIB="ranlib-not-found-in-path-error"
|
|---|
| 1206 | fi
|
|---|
| 1207 | fi
|
|---|
| 1208 |
|
|---|
| 1209 | # Find a good install program. We prefer a C program (faster),
|
|---|
| 1210 | # so one script is as good as another. But avoid the broken or
|
|---|
| 1211 | # incompatible versions:
|
|---|
| 1212 | # SysV /etc/install, /usr/sbin/install
|
|---|
| 1213 | # SunOS /usr/etc/install
|
|---|
| 1214 | # IRIX /sbin/install
|
|---|
| 1215 | # AIX /bin/install
|
|---|
| 1216 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
|---|
| 1217 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|---|
| 1218 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|---|
| 1219 | # ./install, which can be erroneously created by make from ./install.sh.
|
|---|
| 1220 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
|---|
| 1221 | echo "configure:1222: checking for a BSD compatible install" >&5
|
|---|
| 1222 | if test -z "$INSTALL"; then
|
|---|
| 1223 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
|---|
| 1224 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1225 | else
|
|---|
| 1226 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1227 | for ac_dir in $PATH; do
|
|---|
| 1228 | # Account for people who put trailing slashes in PATH elements.
|
|---|
| 1229 | case "$ac_dir/" in
|
|---|
| 1230 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
|---|
| 1231 | # We reject the install program from OS/2 or W3.1
|
|---|
| 1232 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
|
|---|
| 1233 | *)
|
|---|
| 1234 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
|---|
| 1235 | # Don't use installbsd from OSF since it installs stuff as root
|
|---|
| 1236 | # by default.
|
|---|
| 1237 | for ac_prog in ginstall scoinst install; do
|
|---|
| 1238 | if test -f $ac_dir/$ac_prog$ac_exeext; then
|
|---|
| 1239 | if test $ac_prog = install &&
|
|---|
| 1240 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|---|
| 1241 | # AIX install. It has an incompatible calling convention.
|
|---|
| 1242 | :
|
|---|
| 1243 | else
|
|---|
| 1244 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
|
|---|
| 1245 | break 2
|
|---|
| 1246 | fi
|
|---|
| 1247 | fi
|
|---|
| 1248 | done
|
|---|
| 1249 | ;;
|
|---|
| 1250 | esac
|
|---|
| 1251 | done
|
|---|
| 1252 | IFS="$ac_save_IFS"
|
|---|
| 1253 |
|
|---|
| 1254 | fi
|
|---|
| 1255 | if test "${ac_cv_path_install+set}" = set; then
|
|---|
| 1256 | INSTALL="$ac_cv_path_install"
|
|---|
| 1257 | else
|
|---|
| 1258 | # As a last resort, use the slow shell script. We don't cache a
|
|---|
| 1259 | # path for INSTALL within a source directory, because that will
|
|---|
| 1260 | # break other packages using the cache if that directory is
|
|---|
| 1261 | # removed, or if the path is relative.
|
|---|
| 1262 | INSTALL="$ac_install_sh"
|
|---|
| 1263 | fi
|
|---|
| 1264 | fi
|
|---|
| 1265 | echo "$ac_t""$INSTALL" 1>&6
|
|---|
| 1266 |
|
|---|
| 1267 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
|---|
| 1268 | # It thinks the first close brace ends the variable substitution.
|
|---|
| 1269 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|---|
| 1270 |
|
|---|
| 1271 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
|---|
| 1272 |
|
|---|
| 1273 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|---|
| 1274 |
|
|---|
| 1275 |
|
|---|
| 1276 | # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
|
|---|
| 1277 | # at least currently, we never actually build a program, so we never
|
|---|
| 1278 | # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
|
|---|
| 1279 | # fails, because we are probably configuring with a cross compiler
|
|---|
| 1280 | # which can't create executables. So we include AC_EXEEXT to keep
|
|---|
| 1281 | # automake happy, but we don't execute it, since we don't care about
|
|---|
| 1282 | # the result.
|
|---|
| 1283 | if false; then
|
|---|
| 1284 | # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
|
|---|
| 1285 | # to nothing, so nothing would remain between `then' and `fi' if it
|
|---|
| 1286 | # were not for the `:' below.
|
|---|
| 1287 | :
|
|---|
| 1288 |
|
|---|
| 1289 |
|
|---|
| 1290 |
|
|---|
| 1291 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
|---|
| 1292 | echo "configure:1293: checking for executable suffix" >&5
|
|---|
| 1293 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
|---|
| 1294 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1295 | else
|
|---|
| 1296 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
|---|
| 1297 | ac_cv_exeext=.exe
|
|---|
| 1298 | else
|
|---|
| 1299 | rm -f conftest*
|
|---|
| 1300 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
|---|
| 1301 | ac_cv_exeext=
|
|---|
| 1302 | if { (eval echo configure:1303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
|---|
| 1303 | for file in conftest.*; do
|
|---|
| 1304 | case $file in
|
|---|
| 1305 | *.c | *.o | *.obj) ;;
|
|---|
| 1306 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
|---|
| 1307 | esac
|
|---|
| 1308 | done
|
|---|
| 1309 | else
|
|---|
| 1310 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 1311 | fi
|
|---|
| 1312 | rm -f conftest*
|
|---|
| 1313 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
|---|
| 1314 | fi
|
|---|
| 1315 | fi
|
|---|
| 1316 |
|
|---|
| 1317 | EXEEXT=""
|
|---|
| 1318 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
|---|
| 1319 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
|---|
| 1320 | ac_exeext=$EXEEXT
|
|---|
| 1321 |
|
|---|
| 1322 | fi
|
|---|
| 1323 |
|
|---|
| 1324 |
|
|---|
| 1325 | # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
|
|---|
| 1326 | # exported correctly in GLIBCPP_CONFIGURE.
|
|---|
| 1327 | glibcpp_toolexecdir=no
|
|---|
| 1328 | glibcpp_toolexeclibdir=no
|
|---|
| 1329 | glibcpp_prefixdir=${prefix}
|
|---|
| 1330 |
|
|---|
| 1331 | echo $ac_n "checking for interface version number""... $ac_c" 1>&6
|
|---|
| 1332 | echo "configure:1333: checking for interface version number" >&5
|
|---|
| 1333 | libstdcxx_interface=$INTERFACE
|
|---|
| 1334 | echo "$ac_t""$libstdcxx_interface" 1>&6
|
|---|
| 1335 |
|
|---|
| 1336 | # Process the option "--enable-version-specific-runtime-libs"
|
|---|
| 1337 | echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
|
|---|
| 1338 | echo "configure:1339: checking for --enable-version-specific-runtime-libs" >&5
|
|---|
| 1339 | # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
|
|---|
| 1340 | if test "${enable_version_specific_runtime_libs+set}" = set; then
|
|---|
| 1341 | enableval="$enable_version_specific_runtime_libs"
|
|---|
| 1342 | case "$enableval" in
|
|---|
| 1343 | yes) version_specific_libs=yes ;;
|
|---|
| 1344 | no) version_specific_libs=no ;;
|
|---|
| 1345 | *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
|
|---|
| 1346 | esac
|
|---|
| 1347 | else
|
|---|
| 1348 | version_specific_libs=no
|
|---|
| 1349 | fi
|
|---|
| 1350 | # Option set, now we can test it.
|
|---|
| 1351 | echo "$ac_t""$version_specific_libs" 1>&6
|
|---|
| 1352 |
|
|---|
| 1353 | gcc_version_trigger=${srcdir}/../gcc/version.c
|
|---|
| 1354 | gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
|
|---|
| 1355 | gcc_version=`echo ${gcc_version_full} | sed -e 's/\(^ *\) .*/\1/'`
|
|---|
| 1356 |
|
|---|
| 1357 |
|
|---|
| 1358 |
|
|---|
| 1359 | if test $version_specific_libs = yes; then
|
|---|
| 1360 | # Need the gcc compiler version to know where to install libraries
|
|---|
| 1361 | # and header files if --enable-version-specific-runtime-libs option
|
|---|
| 1362 | # is selected.
|
|---|
| 1363 | glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
|
|---|
| 1364 | glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
|
|---|
| 1365 | fi
|
|---|
| 1366 |
|
|---|
| 1367 | # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
|
|---|
| 1368 | # Install a library built with a cross compiler in tooldir, not libdir.
|
|---|
| 1369 | if test x"$glibcpp_toolexecdir" = x"no"; then
|
|---|
| 1370 | if test -n "$with_cross_host" &&
|
|---|
| 1371 | test x"$with_cross_host" != x"no"; then
|
|---|
| 1372 | glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
|
|---|
| 1373 | glibcpp_toolexeclibdir='$(toolexecdir)/lib'
|
|---|
| 1374 | else
|
|---|
| 1375 | glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
|
|---|
| 1376 | glibcpp_toolexeclibdir='$(libdir)'
|
|---|
| 1377 | fi
|
|---|
| 1378 | glibcpp_toolexeclibdir=$glibcpp_toolexeclibdir/`$CC -print-multi-os-directory`
|
|---|
| 1379 | fi
|
|---|
| 1380 |
|
|---|
| 1381 |
|
|---|
| 1382 |
|
|---|
| 1383 |
|
|---|
| 1384 |
|
|---|
| 1385 |
|
|---|
| 1386 | # If the language specific compiler does not exist, but the "gcc" directory
|
|---|
| 1387 | # does, we do not build anything. Note, $r is set by the top-level Makefile.
|
|---|
| 1388 | # Note that when we look for the compiler, we search both with and without
|
|---|
| 1389 | # extension to handle cross and canadian cross builds.
|
|---|
| 1390 | compiler_name=cc1obj
|
|---|
| 1391 | rm -f skip-this-dir
|
|---|
| 1392 | echo $ac_n "checking if compiler $compiler_name has been built""... $ac_c" 1>&6
|
|---|
| 1393 | echo "configure:1394: checking if compiler $compiler_name has been built" >&5
|
|---|
| 1394 | if eval "test \"`echo '$''{'objc_cv_compiler_exists'+set}'`\" = set"; then
|
|---|
| 1395 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1396 | else
|
|---|
| 1397 | objc_cv_compiler_exists=yes
|
|---|
| 1398 | if test -n "$r"; then
|
|---|
| 1399 | if test -d "$r"/gcc; then
|
|---|
| 1400 | if test -f "$r"/gcc/$compiler_name \
|
|---|
| 1401 | || test -f "$r"/gcc/$compiler_name.exe; then
|
|---|
| 1402 | true
|
|---|
| 1403 | else
|
|---|
| 1404 | objc_cv_compiler_exists=no
|
|---|
| 1405 | echo "rm -f config.cache config.log multilib.out" > skip-this-dir
|
|---|
| 1406 | fi
|
|---|
| 1407 | fi
|
|---|
| 1408 | fi
|
|---|
| 1409 |
|
|---|
| 1410 | fi
|
|---|
| 1411 |
|
|---|
| 1412 | echo "$ac_t""$objc_cv_compiler_exists" 1>&6
|
|---|
| 1413 | if test x$objc_cv_compiler_exists = xno
|
|---|
| 1414 | then
|
|---|
| 1415 | rm -f Makefile conftest* confdefs* core
|
|---|
| 1416 | exit 0
|
|---|
| 1417 | fi
|
|---|
| 1418 |
|
|---|
| 1419 |
|
|---|
| 1420 | # Disable shared libs by default
|
|---|
| 1421 | # Check whether --enable-shared or --disable-shared was given.
|
|---|
| 1422 | if test "${enable_shared+set}" = set; then
|
|---|
| 1423 | enableval="$enable_shared"
|
|---|
| 1424 | p=${PACKAGE-default}
|
|---|
| 1425 | case $enableval in
|
|---|
| 1426 | yes) enable_shared=yes ;;
|
|---|
| 1427 | no) enable_shared=no ;;
|
|---|
| 1428 | *)
|
|---|
| 1429 | enable_shared=no
|
|---|
| 1430 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 1431 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 1432 | for pkg in $enableval; do
|
|---|
| 1433 | if test "X$pkg" = "X$p"; then
|
|---|
| 1434 | enable_shared=yes
|
|---|
| 1435 | fi
|
|---|
| 1436 | done
|
|---|
| 1437 | IFS="$ac_save_ifs"
|
|---|
| 1438 | ;;
|
|---|
| 1439 | esac
|
|---|
| 1440 | else
|
|---|
| 1441 | enable_shared=no
|
|---|
| 1442 | fi
|
|---|
| 1443 |
|
|---|
| 1444 | # Enable Win32 DLL on MS Windows - FIXME
|
|---|
| 1445 |
|
|---|
| 1446 |
|
|---|
| 1447 | # Check whether --enable-static or --disable-static was given.
|
|---|
| 1448 | if test "${enable_static+set}" = set; then
|
|---|
| 1449 | enableval="$enable_static"
|
|---|
| 1450 | p=${PACKAGE-default}
|
|---|
| 1451 | case $enableval in
|
|---|
| 1452 | yes) enable_static=yes ;;
|
|---|
| 1453 | no) enable_static=no ;;
|
|---|
| 1454 | *)
|
|---|
| 1455 | enable_static=no
|
|---|
| 1456 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 1457 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 1458 | for pkg in $enableval; do
|
|---|
| 1459 | if test "X$pkg" = "X$p"; then
|
|---|
| 1460 | enable_static=yes
|
|---|
| 1461 | fi
|
|---|
| 1462 | done
|
|---|
| 1463 | IFS="$ac_save_ifs"
|
|---|
| 1464 | ;;
|
|---|
| 1465 | esac
|
|---|
| 1466 | else
|
|---|
| 1467 | enable_static=yes
|
|---|
| 1468 | fi
|
|---|
| 1469 |
|
|---|
| 1470 | # Check whether --enable-fast-install or --disable-fast-install was given.
|
|---|
| 1471 | if test "${enable_fast_install+set}" = set; then
|
|---|
| 1472 | enableval="$enable_fast_install"
|
|---|
| 1473 | p=${PACKAGE-default}
|
|---|
| 1474 | case $enableval in
|
|---|
| 1475 | yes) enable_fast_install=yes ;;
|
|---|
| 1476 | no) enable_fast_install=no ;;
|
|---|
| 1477 | *)
|
|---|
| 1478 | enable_fast_install=no
|
|---|
| 1479 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 1480 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 1481 | for pkg in $enableval; do
|
|---|
| 1482 | if test "X$pkg" = "X$p"; then
|
|---|
| 1483 | enable_fast_install=yes
|
|---|
| 1484 | fi
|
|---|
| 1485 | done
|
|---|
| 1486 | IFS="$ac_save_ifs"
|
|---|
| 1487 | ;;
|
|---|
| 1488 | esac
|
|---|
| 1489 | else
|
|---|
| 1490 | enable_fast_install=yes
|
|---|
| 1491 | fi
|
|---|
| 1492 |
|
|---|
| 1493 | # Check whether --with-gnu-ld or --without-gnu-ld was given.
|
|---|
| 1494 | if test "${with_gnu_ld+set}" = set; then
|
|---|
| 1495 | withval="$with_gnu_ld"
|
|---|
| 1496 | test "$withval" = no || with_gnu_ld=yes
|
|---|
| 1497 | else
|
|---|
| 1498 | with_gnu_ld=no
|
|---|
| 1499 | fi
|
|---|
| 1500 |
|
|---|
| 1501 | ac_prog=ld
|
|---|
| 1502 | if test "$GCC" = yes; then
|
|---|
| 1503 | # Check if gcc -print-prog-name=ld gives a path.
|
|---|
| 1504 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
|
|---|
| 1505 | echo "configure:1506: checking for ld used by GCC" >&5
|
|---|
| 1506 | case $host in
|
|---|
| 1507 | *-*-mingw*)
|
|---|
| 1508 | # gcc leaves a trailing carriage return which upsets mingw
|
|---|
| 1509 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
|---|
| 1510 | *)
|
|---|
| 1511 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
|---|
| 1512 | esac
|
|---|
| 1513 | case $ac_prog in
|
|---|
| 1514 | # Accept absolute paths.
|
|---|
| 1515 | [\\/]* | [A-Za-z]:[\\/]*)
|
|---|
| 1516 | re_direlt='/[^/][^/]*/\.\./'
|
|---|
| 1517 | # Canonicalize the path of ld
|
|---|
| 1518 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
|
|---|
| 1519 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
|---|
| 1520 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
|---|
| 1521 | done
|
|---|
| 1522 | test -z "$LD" && LD="$ac_prog"
|
|---|
| 1523 | ;;
|
|---|
| 1524 | "")
|
|---|
| 1525 | # If it fails, then pretend we aren't using GCC.
|
|---|
| 1526 | ac_prog=ld
|
|---|
| 1527 | ;;
|
|---|
| 1528 | *)
|
|---|
| 1529 | # If it is relative, then search for the first ld in PATH.
|
|---|
| 1530 | with_gnu_ld=unknown
|
|---|
| 1531 | ;;
|
|---|
| 1532 | esac
|
|---|
| 1533 | elif test "$with_gnu_ld" = yes; then
|
|---|
| 1534 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
|
|---|
| 1535 | echo "configure:1536: checking for GNU ld" >&5
|
|---|
| 1536 | else
|
|---|
| 1537 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
|
|---|
| 1538 | echo "configure:1539: checking for non-GNU ld" >&5
|
|---|
| 1539 | fi
|
|---|
| 1540 | if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
|
|---|
| 1541 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1542 | else
|
|---|
| 1543 | if test -z "$LD"; then
|
|---|
| 1544 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
|---|
| 1545 | for ac_dir in $PATH; do
|
|---|
| 1546 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1547 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
|---|
| 1548 | lt_cv_path_LD="$ac_dir/$ac_prog"
|
|---|
| 1549 | # Check to see if the program is GNU ld. I'd rather use --version,
|
|---|
| 1550 | # but apparently some GNU ld's only accept -v.
|
|---|
| 1551 | # Break only if it was the GNU/non-GNU ld that we prefer.
|
|---|
| 1552 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
|---|
| 1553 | test "$with_gnu_ld" != no && break
|
|---|
| 1554 | else
|
|---|
| 1555 | test "$with_gnu_ld" != yes && break
|
|---|
| 1556 | fi
|
|---|
| 1557 | fi
|
|---|
| 1558 | done
|
|---|
| 1559 | IFS="$ac_save_ifs"
|
|---|
| 1560 | else
|
|---|
| 1561 | lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
|---|
| 1562 | fi
|
|---|
| 1563 | fi
|
|---|
| 1564 |
|
|---|
| 1565 | LD="$lt_cv_path_LD"
|
|---|
| 1566 | if test -n "$LD"; then
|
|---|
| 1567 | echo "$ac_t""$LD" 1>&6
|
|---|
| 1568 | else
|
|---|
| 1569 | echo "$ac_t""no" 1>&6
|
|---|
| 1570 | fi
|
|---|
| 1571 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
|
|---|
| 1572 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
|
|---|
| 1573 | echo "configure:1574: checking if the linker ($LD) is GNU ld" >&5
|
|---|
| 1574 | if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
|
|---|
| 1575 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1576 | else
|
|---|
| 1577 | # I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
|---|
| 1578 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
|---|
| 1579 | lt_cv_prog_gnu_ld=yes
|
|---|
| 1580 | else
|
|---|
| 1581 | lt_cv_prog_gnu_ld=no
|
|---|
| 1582 | fi
|
|---|
| 1583 | fi
|
|---|
| 1584 |
|
|---|
| 1585 | echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
|
|---|
| 1586 | with_gnu_ld=$lt_cv_prog_gnu_ld
|
|---|
| 1587 |
|
|---|
| 1588 |
|
|---|
| 1589 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
|
|---|
| 1590 | echo "configure:1591: checking for $LD option to reload object files" >&5
|
|---|
| 1591 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
|
|---|
| 1592 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1593 | else
|
|---|
| 1594 | lt_cv_ld_reload_flag='-r'
|
|---|
| 1595 | fi
|
|---|
| 1596 |
|
|---|
| 1597 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
|
|---|
| 1598 | reload_flag=$lt_cv_ld_reload_flag
|
|---|
| 1599 | test -n "$reload_flag" && reload_flag=" $reload_flag"
|
|---|
| 1600 |
|
|---|
| 1601 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
|
|---|
| 1602 | echo "configure:1603: checking for BSD-compatible nm" >&5
|
|---|
| 1603 | if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
|
|---|
| 1604 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1605 | else
|
|---|
| 1606 | if test -n "$NM"; then
|
|---|
| 1607 | # Let the user override the test.
|
|---|
| 1608 | lt_cv_path_NM="$NM"
|
|---|
| 1609 | else
|
|---|
| 1610 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
|---|
| 1611 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
|
|---|
| 1612 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1613 | tmp_nm=$ac_dir/${ac_tool_prefix}nm
|
|---|
| 1614 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
|
|---|
| 1615 | # Check to see if the nm accepts a BSD-compat flag.
|
|---|
| 1616 | # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
|---|
| 1617 | # nm: unknown option "B" ignored
|
|---|
| 1618 | # Tru64's nm complains that /dev/null is an invalid object file
|
|---|
| 1619 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
|
|---|
| 1620 | lt_cv_path_NM="$tmp_nm -B"
|
|---|
| 1621 | break
|
|---|
| 1622 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
|
|---|
| 1623 | lt_cv_path_NM="$tmp_nm -p"
|
|---|
| 1624 | break
|
|---|
| 1625 | else
|
|---|
| 1626 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
|---|
| 1627 | continue # so that we can try to find one that supports BSD flags
|
|---|
| 1628 | fi
|
|---|
| 1629 | fi
|
|---|
| 1630 | done
|
|---|
| 1631 | IFS="$ac_save_ifs"
|
|---|
| 1632 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
|
|---|
| 1633 | fi
|
|---|
| 1634 | fi
|
|---|
| 1635 |
|
|---|
| 1636 | NM="$lt_cv_path_NM"
|
|---|
| 1637 | echo "$ac_t""$NM" 1>&6
|
|---|
| 1638 |
|
|---|
| 1639 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
|
|---|
| 1640 | echo "configure:1641: checking how to recognise dependant libraries" >&5
|
|---|
| 1641 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
|
|---|
| 1642 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1643 | else
|
|---|
| 1644 | lt_cv_file_magic_cmd='$MAGIC_CMD'
|
|---|
| 1645 | lt_cv_file_magic_test_file=
|
|---|
| 1646 | lt_cv_deplibs_check_method='unknown'
|
|---|
| 1647 | # Need to set the preceding variable on all platforms that support
|
|---|
| 1648 | # interlibrary dependencies.
|
|---|
| 1649 | # 'none' -- dependencies not supported.
|
|---|
| 1650 | # `unknown' -- same as none, but documents that we really don't know.
|
|---|
| 1651 | # 'pass_all' -- all dependencies passed with no checks.
|
|---|
| 1652 | # 'test_compile' -- check by making test program.
|
|---|
| 1653 | # 'file_magic [regex]' -- check by looking for files in library path
|
|---|
| 1654 | # which responds to the $file_magic_cmd with a given egrep regex.
|
|---|
| 1655 | # If you have `file' or equivalent on your system and you're not sure
|
|---|
| 1656 | # whether `pass_all' will *always* work, you probably want this one.
|
|---|
| 1657 |
|
|---|
| 1658 | case $host_os in
|
|---|
| 1659 | aix*)
|
|---|
| 1660 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1661 | ;;
|
|---|
| 1662 |
|
|---|
| 1663 | beos*)
|
|---|
| 1664 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1665 | ;;
|
|---|
| 1666 |
|
|---|
| 1667 | bsdi4*)
|
|---|
| 1668 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
|---|
| 1669 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
|---|
| 1670 | lt_cv_file_magic_test_file=/shlib/libc.so
|
|---|
| 1671 | ;;
|
|---|
| 1672 |
|
|---|
| 1673 | cygwin* | mingw* |pw32*)
|
|---|
| 1674 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
|---|
| 1675 | lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|---|
| 1676 | ;;
|
|---|
| 1677 |
|
|---|
| 1678 | darwin* | rhapsody*)
|
|---|
| 1679 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
|
|---|
| 1680 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
|---|
| 1681 | case "$host_os" in
|
|---|
| 1682 | rhapsody* | darwin1.012)
|
|---|
| 1683 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
|
|---|
| 1684 | ;;
|
|---|
| 1685 | *) # Darwin 1.3 on
|
|---|
| 1686 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
|
|---|
| 1687 | ;;
|
|---|
| 1688 | esac
|
|---|
| 1689 | ;;
|
|---|
| 1690 |
|
|---|
| 1691 | freebsd* )
|
|---|
| 1692 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
|---|
| 1693 | case $host_cpu in
|
|---|
| 1694 | i*86 )
|
|---|
| 1695 | # Not sure whether the presence of OpenBSD here was a mistake.
|
|---|
| 1696 | # Let's accept both of them until this is cleared up.
|
|---|
| 1697 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
|
|---|
| 1698 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1699 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
|---|
| 1700 | ;;
|
|---|
| 1701 | esac
|
|---|
| 1702 | else
|
|---|
| 1703 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1704 | fi
|
|---|
| 1705 | ;;
|
|---|
| 1706 |
|
|---|
| 1707 | gnu*)
|
|---|
| 1708 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1709 | ;;
|
|---|
| 1710 |
|
|---|
| 1711 | hpux10.20*|hpux11*)
|
|---|
| 1712 | case $host_cpu in
|
|---|
| 1713 | hppa*)
|
|---|
| 1714 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
|
|---|
| 1715 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1716 | lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
|---|
| 1717 | ;;
|
|---|
| 1718 | ia64*)
|
|---|
| 1719 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
|
|---|
| 1720 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1721 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
|---|
| 1722 | ;;
|
|---|
| 1723 | esac
|
|---|
| 1724 | ;;
|
|---|
| 1725 |
|
|---|
| 1726 | irix5* | irix6*)
|
|---|
| 1727 | case $host_os in
|
|---|
| 1728 | irix5*)
|
|---|
| 1729 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 1730 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
|
|---|
| 1731 | ;;
|
|---|
| 1732 | *)
|
|---|
| 1733 | case $LD in
|
|---|
| 1734 | *-32|*"-32 ") libmagic=32-bit;;
|
|---|
| 1735 | *-n32|*"-n32 ") libmagic=N32;;
|
|---|
| 1736 | *-64|*"-64 ") libmagic=64-bit;;
|
|---|
| 1737 | *) libmagic=never-match;;
|
|---|
| 1738 | esac
|
|---|
| 1739 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 1740 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
|
|---|
| 1741 | ;;
|
|---|
| 1742 | esac
|
|---|
| 1743 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
|
|---|
| 1744 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1745 | ;;
|
|---|
| 1746 |
|
|---|
| 1747 | # This must be Linux ELF.
|
|---|
| 1748 | linux-gnu*)
|
|---|
| 1749 | case $host_cpu in
|
|---|
| 1750 | alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
|
|---|
| 1751 | lt_cv_deplibs_check_method=pass_all ;;
|
|---|
| 1752 | *)
|
|---|
| 1753 | # glibc up to 2.1.1 does not perform some relocations on ARM
|
|---|
| 1754 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
|
|---|
| 1755 | esac
|
|---|
| 1756 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
|---|
| 1757 | ;;
|
|---|
| 1758 |
|
|---|
| 1759 | netbsd*)
|
|---|
| 1760 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
|---|
| 1761 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
|---|
| 1762 | else
|
|---|
| 1763 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
|
|---|
| 1764 | fi
|
|---|
| 1765 | ;;
|
|---|
| 1766 |
|
|---|
| 1767 | newsos6)
|
|---|
| 1768 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
|---|
| 1769 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 1770 | lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
|---|
| 1771 | ;;
|
|---|
| 1772 |
|
|---|
| 1773 | os2*)
|
|---|
| 1774 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1775 | ;;
|
|---|
| 1776 |
|
|---|
| 1777 | osf3* | osf4* | osf5*)
|
|---|
| 1778 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 1779 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
|
|---|
| 1780 | lt_cv_file_magic_test_file=/shlib/libc.so
|
|---|
| 1781 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1782 | ;;
|
|---|
| 1783 |
|
|---|
| 1784 | sco3.2v5*)
|
|---|
| 1785 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1786 | ;;
|
|---|
| 1787 |
|
|---|
| 1788 | solaris*)
|
|---|
| 1789 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1790 | lt_cv_file_magic_test_file=/lib/libc.so
|
|---|
| 1791 | ;;
|
|---|
| 1792 |
|
|---|
| 1793 | sysv5uw[78]* | sysv4*uw2*)
|
|---|
| 1794 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1795 | ;;
|
|---|
| 1796 |
|
|---|
| 1797 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
|---|
| 1798 | case $host_vendor in
|
|---|
| 1799 | ncr)
|
|---|
| 1800 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 1801 | ;;
|
|---|
| 1802 | motorola)
|
|---|
| 1803 | 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]'
|
|---|
| 1804 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
|---|
| 1805 | ;;
|
|---|
| 1806 | esac
|
|---|
| 1807 | ;;
|
|---|
| 1808 | esac
|
|---|
| 1809 |
|
|---|
| 1810 | fi
|
|---|
| 1811 |
|
|---|
| 1812 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
|
|---|
| 1813 | file_magic_cmd=$lt_cv_file_magic_cmd
|
|---|
| 1814 | deplibs_check_method=$lt_cv_deplibs_check_method
|
|---|
| 1815 |
|
|---|
| 1816 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6
|
|---|
| 1817 | echo "configure:1818: checking for object suffix" >&5
|
|---|
| 1818 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
|
|---|
| 1819 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1820 | else
|
|---|
| 1821 | rm -f conftest*
|
|---|
| 1822 | echo 'int i = 1;' > conftest.$ac_ext
|
|---|
| 1823 | if { (eval echo configure:1824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 1824 | for ac_file in conftest.*; do
|
|---|
| 1825 | case $ac_file in
|
|---|
| 1826 | *.c) ;;
|
|---|
| 1827 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
|
|---|
| 1828 | esac
|
|---|
| 1829 | done
|
|---|
| 1830 | else
|
|---|
| 1831 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
|
|---|
| 1832 | fi
|
|---|
| 1833 | rm -f conftest*
|
|---|
| 1834 | fi
|
|---|
| 1835 |
|
|---|
| 1836 | echo "$ac_t""$ac_cv_objext" 1>&6
|
|---|
| 1837 | OBJEXT=$ac_cv_objext
|
|---|
| 1838 | ac_objext=$ac_cv_objext
|
|---|
| 1839 |
|
|---|
| 1840 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
|
|---|
| 1841 |
|
|---|
| 1842 | # Only perform the check for file, if the check method requires it
|
|---|
| 1843 | case $deplibs_check_method in
|
|---|
| 1844 | file_magic*)
|
|---|
| 1845 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
|---|
| 1846 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
|
|---|
| 1847 | echo "configure:1848: checking for ${ac_tool_prefix}file" >&5
|
|---|
| 1848 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
|---|
| 1849 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1850 | else
|
|---|
| 1851 | case $MAGIC_CMD in
|
|---|
| 1852 | /*)
|
|---|
| 1853 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
|---|
| 1854 | ;;
|
|---|
| 1855 | ?:/*)
|
|---|
| 1856 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
|---|
| 1857 | ;;
|
|---|
| 1858 | *)
|
|---|
| 1859 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
|---|
| 1860 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 1861 | ac_dummy="/usr/bin:$PATH"
|
|---|
| 1862 | for ac_dir in $ac_dummy; do
|
|---|
| 1863 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1864 | if test -f $ac_dir/${ac_tool_prefix}file; then
|
|---|
| 1865 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
|
|---|
| 1866 | if test -n "$file_magic_test_file"; then
|
|---|
| 1867 | case $deplibs_check_method in
|
|---|
| 1868 | "file_magic "*)
|
|---|
| 1869 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
|---|
| 1870 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1871 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
|---|
| 1872 | egrep "$file_magic_regex" > /dev/null; then
|
|---|
| 1873 | :
|
|---|
| 1874 | else
|
|---|
| 1875 | cat <<EOF 1>&2
|
|---|
| 1876 |
|
|---|
| 1877 | *** Warning: the command libtool uses to detect shared libraries,
|
|---|
| 1878 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
|---|
| 1879 | *** The result is that libtool may fail to recognize shared libraries
|
|---|
| 1880 | *** as such. This will affect the creation of libtool libraries that
|
|---|
| 1881 | *** depend on shared libraries, but programs linked with such libtool
|
|---|
| 1882 | *** libraries will work regardless of this problem. Nevertheless, you
|
|---|
| 1883 | *** may want to report the problem to your system manager and/or to
|
|---|
| 1884 | *** bug-libtool@gnu.org
|
|---|
| 1885 |
|
|---|
| 1886 | EOF
|
|---|
| 1887 | fi ;;
|
|---|
| 1888 | esac
|
|---|
| 1889 | fi
|
|---|
| 1890 | break
|
|---|
| 1891 | fi
|
|---|
| 1892 | done
|
|---|
| 1893 | IFS="$ac_save_ifs"
|
|---|
| 1894 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
|---|
| 1895 | ;;
|
|---|
| 1896 | esac
|
|---|
| 1897 | fi
|
|---|
| 1898 |
|
|---|
| 1899 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1900 | if test -n "$MAGIC_CMD"; then
|
|---|
| 1901 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
|---|
| 1902 | else
|
|---|
| 1903 | echo "$ac_t""no" 1>&6
|
|---|
| 1904 | fi
|
|---|
| 1905 |
|
|---|
| 1906 | if test -z "$lt_cv_path_MAGIC_CMD"; then
|
|---|
| 1907 | if test -n "$ac_tool_prefix"; then
|
|---|
| 1908 | echo $ac_n "checking for file""... $ac_c" 1>&6
|
|---|
| 1909 | echo "configure:1910: checking for file" >&5
|
|---|
| 1910 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
|---|
| 1911 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1912 | else
|
|---|
| 1913 | case $MAGIC_CMD in
|
|---|
| 1914 | /*)
|
|---|
| 1915 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
|---|
| 1916 | ;;
|
|---|
| 1917 | ?:/*)
|
|---|
| 1918 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
|---|
| 1919 | ;;
|
|---|
| 1920 | *)
|
|---|
| 1921 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
|---|
| 1922 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 1923 | ac_dummy="/usr/bin:$PATH"
|
|---|
| 1924 | for ac_dir in $ac_dummy; do
|
|---|
| 1925 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1926 | if test -f $ac_dir/file; then
|
|---|
| 1927 | lt_cv_path_MAGIC_CMD="$ac_dir/file"
|
|---|
| 1928 | if test -n "$file_magic_test_file"; then
|
|---|
| 1929 | case $deplibs_check_method in
|
|---|
| 1930 | "file_magic "*)
|
|---|
| 1931 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
|---|
| 1932 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1933 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
|---|
| 1934 | egrep "$file_magic_regex" > /dev/null; then
|
|---|
| 1935 | :
|
|---|
| 1936 | else
|
|---|
| 1937 | cat <<EOF 1>&2
|
|---|
| 1938 |
|
|---|
| 1939 | *** Warning: the command libtool uses to detect shared libraries,
|
|---|
| 1940 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
|---|
| 1941 | *** The result is that libtool may fail to recognize shared libraries
|
|---|
| 1942 | *** as such. This will affect the creation of libtool libraries that
|
|---|
| 1943 | *** depend on shared libraries, but programs linked with such libtool
|
|---|
| 1944 | *** libraries will work regardless of this problem. Nevertheless, you
|
|---|
| 1945 | *** may want to report the problem to your system manager and/or to
|
|---|
| 1946 | *** bug-libtool@gnu.org
|
|---|
| 1947 |
|
|---|
| 1948 | EOF
|
|---|
| 1949 | fi ;;
|
|---|
| 1950 | esac
|
|---|
| 1951 | fi
|
|---|
| 1952 | break
|
|---|
| 1953 | fi
|
|---|
| 1954 | done
|
|---|
| 1955 | IFS="$ac_save_ifs"
|
|---|
| 1956 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
|---|
| 1957 | ;;
|
|---|
| 1958 | esac
|
|---|
| 1959 | fi
|
|---|
| 1960 |
|
|---|
| 1961 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 1962 | if test -n "$MAGIC_CMD"; then
|
|---|
| 1963 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
|---|
| 1964 | else
|
|---|
| 1965 | echo "$ac_t""no" 1>&6
|
|---|
| 1966 | fi
|
|---|
| 1967 |
|
|---|
| 1968 | else
|
|---|
| 1969 | MAGIC_CMD=:
|
|---|
| 1970 | fi
|
|---|
| 1971 | fi
|
|---|
| 1972 |
|
|---|
| 1973 | fi
|
|---|
| 1974 | ;;
|
|---|
| 1975 | esac
|
|---|
| 1976 |
|
|---|
| 1977 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
|---|
| 1978 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
|---|
| 1979 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1980 | echo "configure:1981: checking for $ac_word" >&5
|
|---|
| 1981 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 1982 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1983 | else
|
|---|
| 1984 | if test -n "$RANLIB"; then
|
|---|
| 1985 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 1986 | else
|
|---|
| 1987 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1988 | ac_dummy="$PATH"
|
|---|
| 1989 | for ac_dir in $ac_dummy; do
|
|---|
| 1990 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1991 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1992 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1993 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
|---|
| 1994 | break
|
|---|
| 1995 | fi
|
|---|
| 1996 | done
|
|---|
| 1997 | IFS="$ac_save_ifs"
|
|---|
| 1998 | fi
|
|---|
| 1999 | fi
|
|---|
| 2000 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 2001 | if test -n "$RANLIB"; then
|
|---|
| 2002 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 2003 | else
|
|---|
| 2004 | echo "$ac_t""no" 1>&6
|
|---|
| 2005 | fi
|
|---|
| 2006 |
|
|---|
| 2007 |
|
|---|
| 2008 | if test -z "$ac_cv_prog_RANLIB"; then
|
|---|
| 2009 | if test -n "$ac_tool_prefix"; then
|
|---|
| 2010 | # Extract the first word of "ranlib", so it can be a program name with args.
|
|---|
| 2011 | set dummy ranlib; ac_word=$2
|
|---|
| 2012 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2013 | echo "configure:2014: checking for $ac_word" >&5
|
|---|
| 2014 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 2015 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2016 | else
|
|---|
| 2017 | if test -n "$RANLIB"; then
|
|---|
| 2018 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 2019 | else
|
|---|
| 2020 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2021 | ac_dummy="$PATH"
|
|---|
| 2022 | for ac_dir in $ac_dummy; do
|
|---|
| 2023 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2024 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2025 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2026 | ac_cv_prog_RANLIB="ranlib"
|
|---|
| 2027 | break
|
|---|
| 2028 | fi
|
|---|
| 2029 | done
|
|---|
| 2030 | IFS="$ac_save_ifs"
|
|---|
| 2031 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|---|
| 2032 | fi
|
|---|
| 2033 | fi
|
|---|
| 2034 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 2035 | if test -n "$RANLIB"; then
|
|---|
| 2036 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 2037 | else
|
|---|
| 2038 | echo "$ac_t""no" 1>&6
|
|---|
| 2039 | fi
|
|---|
| 2040 |
|
|---|
| 2041 | else
|
|---|
| 2042 | RANLIB=":"
|
|---|
| 2043 | fi
|
|---|
| 2044 | fi
|
|---|
| 2045 |
|
|---|
| 2046 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
|---|
| 2047 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
|---|
| 2048 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2049 | echo "configure:2050: checking for $ac_word" >&5
|
|---|
| 2050 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
|---|
| 2051 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2052 | else
|
|---|
| 2053 | if test -n "$STRIP"; then
|
|---|
| 2054 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
|---|
| 2055 | else
|
|---|
| 2056 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2057 | ac_dummy="$PATH"
|
|---|
| 2058 | for ac_dir in $ac_dummy; do
|
|---|
| 2059 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2060 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2061 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2062 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
|---|
| 2063 | break
|
|---|
| 2064 | fi
|
|---|
| 2065 | done
|
|---|
| 2066 | IFS="$ac_save_ifs"
|
|---|
| 2067 | fi
|
|---|
| 2068 | fi
|
|---|
| 2069 | STRIP="$ac_cv_prog_STRIP"
|
|---|
| 2070 | if test -n "$STRIP"; then
|
|---|
| 2071 | echo "$ac_t""$STRIP" 1>&6
|
|---|
| 2072 | else
|
|---|
| 2073 | echo "$ac_t""no" 1>&6
|
|---|
| 2074 | fi
|
|---|
| 2075 |
|
|---|
| 2076 |
|
|---|
| 2077 | if test -z "$ac_cv_prog_STRIP"; then
|
|---|
| 2078 | if test -n "$ac_tool_prefix"; then
|
|---|
| 2079 | # Extract the first word of "strip", so it can be a program name with args.
|
|---|
| 2080 | set dummy strip; ac_word=$2
|
|---|
| 2081 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2082 | echo "configure:2083: checking for $ac_word" >&5
|
|---|
| 2083 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
|---|
| 2084 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2085 | else
|
|---|
| 2086 | if test -n "$STRIP"; then
|
|---|
| 2087 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
|---|
| 2088 | else
|
|---|
| 2089 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2090 | ac_dummy="$PATH"
|
|---|
| 2091 | for ac_dir in $ac_dummy; do
|
|---|
| 2092 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2093 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2094 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2095 | ac_cv_prog_STRIP="strip"
|
|---|
| 2096 | break
|
|---|
| 2097 | fi
|
|---|
| 2098 | done
|
|---|
| 2099 | IFS="$ac_save_ifs"
|
|---|
| 2100 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
|
|---|
| 2101 | fi
|
|---|
| 2102 | fi
|
|---|
| 2103 | STRIP="$ac_cv_prog_STRIP"
|
|---|
| 2104 | if test -n "$STRIP"; then
|
|---|
| 2105 | echo "$ac_t""$STRIP" 1>&6
|
|---|
| 2106 | else
|
|---|
| 2107 | echo "$ac_t""no" 1>&6
|
|---|
| 2108 | fi
|
|---|
| 2109 |
|
|---|
| 2110 | else
|
|---|
| 2111 | STRIP=":"
|
|---|
| 2112 | fi
|
|---|
| 2113 | fi
|
|---|
| 2114 |
|
|---|
| 2115 |
|
|---|
| 2116 | # Check for any special flags to pass to ltconfig.
|
|---|
| 2117 | libtool_flags="--cache-file=$cache_file"
|
|---|
| 2118 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
|
|---|
| 2119 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
|
|---|
| 2120 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
|
|---|
| 2121 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
|
|---|
| 2122 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
|
|---|
| 2123 |
|
|---|
| 2124 | libtool_flags="$libtool_flags --enable-win32-dll"
|
|---|
| 2125 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
|
|---|
| 2126 | if test "${enable_libtool_lock+set}" = set; then
|
|---|
| 2127 | enableval="$enable_libtool_lock"
|
|---|
| 2128 | :
|
|---|
| 2129 | fi
|
|---|
| 2130 |
|
|---|
| 2131 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
|
|---|
| 2132 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
|
|---|
| 2133 |
|
|---|
| 2134 | # Check whether --with-pic or --without-pic was given.
|
|---|
| 2135 | if test "${with_pic+set}" = set; then
|
|---|
| 2136 | withval="$with_pic"
|
|---|
| 2137 | pic_mode="$withval"
|
|---|
| 2138 | else
|
|---|
| 2139 | pic_mode=default
|
|---|
| 2140 | fi
|
|---|
| 2141 |
|
|---|
| 2142 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
|
|---|
| 2143 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
|
|---|
| 2144 |
|
|---|
| 2145 | # Some flags need to be propagated to the compiler or linker for good
|
|---|
| 2146 | # libtool support.
|
|---|
| 2147 | case $host in
|
|---|
| 2148 | *-*-irix6*)
|
|---|
| 2149 | # Find out which ABI we are using.
|
|---|
| 2150 | echo '#line 2151 "configure"' > conftest.$ac_ext
|
|---|
| 2151 | if { (eval echo configure:2152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 2152 | if test "$lt_cv_prog_gnu_ld" = yes; then
|
|---|
| 2153 | case `/usr/bin/file conftest.$ac_objext` in
|
|---|
| 2154 | *32-bit*)
|
|---|
| 2155 | LD="${LD-ld} -melf32bsmip"
|
|---|
| 2156 | ;;
|
|---|
| 2157 | *N32*)
|
|---|
| 2158 | LD="${LD-ld} -melf32bmipn32"
|
|---|
| 2159 | ;;
|
|---|
| 2160 | *64-bit*)
|
|---|
| 2161 | LD="${LD-ld} -melf64bmip"
|
|---|
| 2162 | ;;
|
|---|
| 2163 | esac
|
|---|
| 2164 | else
|
|---|
| 2165 | case `/usr/bin/file conftest.$ac_objext` in
|
|---|
| 2166 | *32-bit*)
|
|---|
| 2167 | LD="${LD-ld} -32"
|
|---|
| 2168 | ;;
|
|---|
| 2169 | *N32*)
|
|---|
| 2170 | LD="${LD-ld} -n32"
|
|---|
| 2171 | ;;
|
|---|
| 2172 | *64-bit*)
|
|---|
| 2173 | LD="${LD-ld} -64"
|
|---|
| 2174 | ;;
|
|---|
| 2175 | esac
|
|---|
| 2176 | fi
|
|---|
| 2177 | fi
|
|---|
| 2178 | rm -rf conftest*
|
|---|
| 2179 | ;;
|
|---|
| 2180 |
|
|---|
| 2181 | ia64-*-hpux*)
|
|---|
| 2182 | # Find out which ABI we are using.
|
|---|
| 2183 | echo 'int i;' > conftest.$ac_ext
|
|---|
| 2184 | if { (eval echo configure:2185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 2185 | case "`/usr/bin/file conftest.o`" in
|
|---|
| 2186 | *ELF-32*)
|
|---|
| 2187 | HPUX_IA64_MODE="32"
|
|---|
| 2188 | ;;
|
|---|
| 2189 | *ELF-64*)
|
|---|
| 2190 | HPUX_IA64_MODE="64"
|
|---|
| 2191 | ;;
|
|---|
| 2192 | esac
|
|---|
| 2193 | fi
|
|---|
| 2194 | rm -rf conftest*
|
|---|
| 2195 | ;;
|
|---|
| 2196 |
|
|---|
| 2197 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
|
|---|
| 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 | *32-bit*)
|
|---|
| 2203 | case $host in
|
|---|
| 2204 | x86_64-*linux*)
|
|---|
| 2205 | LD="${LD-ld} -m elf_i386"
|
|---|
| 2206 | ;;
|
|---|
| 2207 | ppc64-*linux*|powerpc64-*linux*)
|
|---|
| 2208 | LD="${LD-ld} -m elf32ppclinux"
|
|---|
| 2209 | ;;
|
|---|
| 2210 | s390x-*linux*)
|
|---|
| 2211 | LD="${LD-ld} -m elf_s390"
|
|---|
| 2212 | ;;
|
|---|
| 2213 | sparc64-*linux*)
|
|---|
| 2214 | LD="${LD-ld} -m elf32_sparc"
|
|---|
| 2215 | ;;
|
|---|
| 2216 | esac
|
|---|
| 2217 | ;;
|
|---|
| 2218 | *64-bit*)
|
|---|
| 2219 | case $host in
|
|---|
| 2220 | x86_64-*linux*)
|
|---|
| 2221 | LD="${LD-ld} -m elf_x86_64"
|
|---|
| 2222 | ;;
|
|---|
| 2223 | ppc*-*linux*|powerpc*-*linux*)
|
|---|
| 2224 | LD="${LD-ld} -m elf64ppc"
|
|---|
| 2225 | ;;
|
|---|
| 2226 | s390*-*linux*)
|
|---|
| 2227 | LD="${LD-ld} -m elf64_s390"
|
|---|
| 2228 | ;;
|
|---|
| 2229 | sparc*-*linux*)
|
|---|
| 2230 | LD="${LD-ld} -m elf64_sparc"
|
|---|
| 2231 | ;;
|
|---|
| 2232 | esac
|
|---|
| 2233 | ;;
|
|---|
| 2234 | esac
|
|---|
| 2235 | fi
|
|---|
| 2236 | rm -rf conftest*
|
|---|
| 2237 | ;;
|
|---|
| 2238 |
|
|---|
| 2239 | *-*-sco3.2v5*)
|
|---|
| 2240 | # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
|---|
| 2241 | SAVE_CFLAGS="$CFLAGS"
|
|---|
| 2242 | CFLAGS="$CFLAGS -belf"
|
|---|
| 2243 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
|
|---|
| 2244 | echo "configure:2245: checking whether the C compiler needs -belf" >&5
|
|---|
| 2245 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
|
|---|
| 2246 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2247 | else
|
|---|
| 2248 |
|
|---|
| 2249 | ac_ext=c
|
|---|
| 2250 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2251 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2252 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2253 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2254 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2255 |
|
|---|
| 2256 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2257 | #line 2258 "configure"
|
|---|
| 2258 | #include "confdefs.h"
|
|---|
| 2259 |
|
|---|
| 2260 | int main() {
|
|---|
| 2261 |
|
|---|
| 2262 | ; return 0; }
|
|---|
| 2263 | EOF
|
|---|
| 2264 | if { (eval echo configure:2265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 2265 | rm -rf conftest*
|
|---|
| 2266 | lt_cv_cc_needs_belf=yes
|
|---|
| 2267 | else
|
|---|
| 2268 | echo "configure: failed program was:" >&5
|
|---|
| 2269 | cat conftest.$ac_ext >&5
|
|---|
| 2270 | rm -rf conftest*
|
|---|
| 2271 | lt_cv_cc_needs_belf=no
|
|---|
| 2272 | fi
|
|---|
| 2273 | rm -f conftest*
|
|---|
| 2274 | ac_ext=c
|
|---|
| 2275 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2276 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2277 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2278 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2279 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2280 |
|
|---|
| 2281 | fi
|
|---|
| 2282 |
|
|---|
| 2283 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
|
|---|
| 2284 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
|---|
| 2285 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
|---|
| 2286 | CFLAGS="$SAVE_CFLAGS"
|
|---|
| 2287 | fi
|
|---|
| 2288 | ;;
|
|---|
| 2289 |
|
|---|
| 2290 | *-*-cygwin* | *-*-mingw* | *-*-pw32*)
|
|---|
| 2291 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
|
|---|
| 2292 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2
|
|---|
| 2293 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2294 | echo "configure:2295: checking for $ac_word" >&5
|
|---|
| 2295 | if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
|
|---|
| 2296 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2297 | else
|
|---|
| 2298 | if test -n "$DLLTOOL"; then
|
|---|
| 2299 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
|
|---|
| 2300 | else
|
|---|
| 2301 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2302 | ac_dummy="$PATH"
|
|---|
| 2303 | for ac_dir in $ac_dummy; do
|
|---|
| 2304 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2305 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2306 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2307 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
|
|---|
| 2308 | break
|
|---|
| 2309 | fi
|
|---|
| 2310 | done
|
|---|
| 2311 | IFS="$ac_save_ifs"
|
|---|
| 2312 | fi
|
|---|
| 2313 | fi
|
|---|
| 2314 | DLLTOOL="$ac_cv_prog_DLLTOOL"
|
|---|
| 2315 | if test -n "$DLLTOOL"; then
|
|---|
| 2316 | echo "$ac_t""$DLLTOOL" 1>&6
|
|---|
| 2317 | else
|
|---|
| 2318 | echo "$ac_t""no" 1>&6
|
|---|
| 2319 | fi
|
|---|
| 2320 |
|
|---|
| 2321 |
|
|---|
| 2322 | if test -z "$ac_cv_prog_DLLTOOL"; then
|
|---|
| 2323 | if test -n "$ac_tool_prefix"; then
|
|---|
| 2324 | # Extract the first word of "dlltool", so it can be a program name with args.
|
|---|
| 2325 | set dummy dlltool; ac_word=$2
|
|---|
| 2326 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2327 | echo "configure:2328: checking for $ac_word" >&5
|
|---|
| 2328 | if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
|
|---|
| 2329 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2330 | else
|
|---|
| 2331 | if test -n "$DLLTOOL"; then
|
|---|
| 2332 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
|
|---|
| 2333 | else
|
|---|
| 2334 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2335 | ac_dummy="$PATH"
|
|---|
| 2336 | for ac_dir in $ac_dummy; do
|
|---|
| 2337 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2338 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2339 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2340 | ac_cv_prog_DLLTOOL="dlltool"
|
|---|
| 2341 | break
|
|---|
| 2342 | fi
|
|---|
| 2343 | done
|
|---|
| 2344 | IFS="$ac_save_ifs"
|
|---|
| 2345 | test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
|
|---|
| 2346 | fi
|
|---|
| 2347 | fi
|
|---|
| 2348 | DLLTOOL="$ac_cv_prog_DLLTOOL"
|
|---|
| 2349 | if test -n "$DLLTOOL"; then
|
|---|
| 2350 | echo "$ac_t""$DLLTOOL" 1>&6
|
|---|
| 2351 | else
|
|---|
| 2352 | echo "$ac_t""no" 1>&6
|
|---|
| 2353 | fi
|
|---|
| 2354 |
|
|---|
| 2355 | else
|
|---|
| 2356 | DLLTOOL="false"
|
|---|
| 2357 | fi
|
|---|
| 2358 | fi
|
|---|
| 2359 |
|
|---|
| 2360 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
|
|---|
| 2361 | set dummy ${ac_tool_prefix}as; ac_word=$2
|
|---|
| 2362 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2363 | echo "configure:2364: checking for $ac_word" >&5
|
|---|
| 2364 | if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
|
|---|
| 2365 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2366 | else
|
|---|
| 2367 | if test -n "$AS"; then
|
|---|
| 2368 | ac_cv_prog_AS="$AS" # Let the user override the test.
|
|---|
| 2369 | else
|
|---|
| 2370 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2371 | ac_dummy="$PATH"
|
|---|
| 2372 | for ac_dir in $ac_dummy; do
|
|---|
| 2373 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2374 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2375 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2376 | ac_cv_prog_AS="${ac_tool_prefix}as"
|
|---|
| 2377 | break
|
|---|
| 2378 | fi
|
|---|
| 2379 | done
|
|---|
| 2380 | IFS="$ac_save_ifs"
|
|---|
| 2381 | fi
|
|---|
| 2382 | fi
|
|---|
| 2383 | AS="$ac_cv_prog_AS"
|
|---|
| 2384 | if test -n "$AS"; then
|
|---|
| 2385 | echo "$ac_t""$AS" 1>&6
|
|---|
| 2386 | else
|
|---|
| 2387 | echo "$ac_t""no" 1>&6
|
|---|
| 2388 | fi
|
|---|
| 2389 |
|
|---|
| 2390 |
|
|---|
| 2391 | if test -z "$ac_cv_prog_AS"; then
|
|---|
| 2392 | if test -n "$ac_tool_prefix"; then
|
|---|
| 2393 | # Extract the first word of "as", so it can be a program name with args.
|
|---|
| 2394 | set dummy as; ac_word=$2
|
|---|
| 2395 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2396 | echo "configure:2397: checking for $ac_word" >&5
|
|---|
| 2397 | if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
|
|---|
| 2398 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2399 | else
|
|---|
| 2400 | if test -n "$AS"; then
|
|---|
| 2401 | ac_cv_prog_AS="$AS" # Let the user override the test.
|
|---|
| 2402 | else
|
|---|
| 2403 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2404 | ac_dummy="$PATH"
|
|---|
| 2405 | for ac_dir in $ac_dummy; do
|
|---|
| 2406 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2407 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2408 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2409 | ac_cv_prog_AS="as"
|
|---|
| 2410 | break
|
|---|
| 2411 | fi
|
|---|
| 2412 | done
|
|---|
| 2413 | IFS="$ac_save_ifs"
|
|---|
| 2414 | test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
|
|---|
| 2415 | fi
|
|---|
| 2416 | fi
|
|---|
| 2417 | AS="$ac_cv_prog_AS"
|
|---|
| 2418 | if test -n "$AS"; then
|
|---|
| 2419 | echo "$ac_t""$AS" 1>&6
|
|---|
| 2420 | else
|
|---|
| 2421 | echo "$ac_t""no" 1>&6
|
|---|
| 2422 | fi
|
|---|
| 2423 |
|
|---|
| 2424 | else
|
|---|
| 2425 | AS="false"
|
|---|
| 2426 | fi
|
|---|
| 2427 | fi
|
|---|
| 2428 |
|
|---|
| 2429 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
|
|---|
| 2430 | set dummy ${ac_tool_prefix}objdump; ac_word=$2
|
|---|
| 2431 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2432 | echo "configure:2433: checking for $ac_word" >&5
|
|---|
| 2433 | if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
|
|---|
| 2434 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2435 | else
|
|---|
| 2436 | if test -n "$OBJDUMP"; then
|
|---|
| 2437 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
|
|---|
| 2438 | else
|
|---|
| 2439 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2440 | ac_dummy="$PATH"
|
|---|
| 2441 | for ac_dir in $ac_dummy; do
|
|---|
| 2442 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2443 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2444 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2445 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
|
|---|
| 2446 | break
|
|---|
| 2447 | fi
|
|---|
| 2448 | done
|
|---|
| 2449 | IFS="$ac_save_ifs"
|
|---|
| 2450 | fi
|
|---|
| 2451 | fi
|
|---|
| 2452 | OBJDUMP="$ac_cv_prog_OBJDUMP"
|
|---|
| 2453 | if test -n "$OBJDUMP"; then
|
|---|
| 2454 | echo "$ac_t""$OBJDUMP" 1>&6
|
|---|
| 2455 | else
|
|---|
| 2456 | echo "$ac_t""no" 1>&6
|
|---|
| 2457 | fi
|
|---|
| 2458 |
|
|---|
| 2459 |
|
|---|
| 2460 | if test -z "$ac_cv_prog_OBJDUMP"; then
|
|---|
| 2461 | if test -n "$ac_tool_prefix"; then
|
|---|
| 2462 | # Extract the first word of "objdump", so it can be a program name with args.
|
|---|
| 2463 | set dummy objdump; ac_word=$2
|
|---|
| 2464 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2465 | echo "configure:2466: checking for $ac_word" >&5
|
|---|
| 2466 | if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
|
|---|
| 2467 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2468 | else
|
|---|
| 2469 | if test -n "$OBJDUMP"; then
|
|---|
| 2470 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
|
|---|
| 2471 | else
|
|---|
| 2472 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2473 | ac_dummy="$PATH"
|
|---|
| 2474 | for ac_dir in $ac_dummy; do
|
|---|
| 2475 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2476 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2477 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2478 | ac_cv_prog_OBJDUMP="objdump"
|
|---|
| 2479 | break
|
|---|
| 2480 | fi
|
|---|
| 2481 | done
|
|---|
| 2482 | IFS="$ac_save_ifs"
|
|---|
| 2483 | test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
|
|---|
| 2484 | fi
|
|---|
| 2485 | fi
|
|---|
| 2486 | OBJDUMP="$ac_cv_prog_OBJDUMP"
|
|---|
| 2487 | if test -n "$OBJDUMP"; then
|
|---|
| 2488 | echo "$ac_t""$OBJDUMP" 1>&6
|
|---|
| 2489 | else
|
|---|
| 2490 | echo "$ac_t""no" 1>&6
|
|---|
| 2491 | fi
|
|---|
| 2492 |
|
|---|
| 2493 | else
|
|---|
| 2494 | OBJDUMP="false"
|
|---|
| 2495 | fi
|
|---|
| 2496 | fi
|
|---|
| 2497 |
|
|---|
| 2498 |
|
|---|
| 2499 | # recent cygwin and mingw systems supply a stub DllMain which the user
|
|---|
| 2500 | # can override, but on older systems we have to supply one
|
|---|
| 2501 | echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
|
|---|
| 2502 | echo "configure:2503: checking if libtool should supply DllMain function" >&5
|
|---|
| 2503 | if eval "test \"`echo '$''{'lt_cv_need_dllmain'+set}'`\" = set"; then
|
|---|
| 2504 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2505 | else
|
|---|
| 2506 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2507 | #line 2508 "configure"
|
|---|
| 2508 | #include "confdefs.h"
|
|---|
| 2509 |
|
|---|
| 2510 | int main() {
|
|---|
| 2511 | extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
|
|---|
| 2512 | DllMain (0, 0, 0);
|
|---|
| 2513 | ; return 0; }
|
|---|
| 2514 | EOF
|
|---|
| 2515 | if { (eval echo configure:2516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 2516 | rm -rf conftest*
|
|---|
| 2517 | lt_cv_need_dllmain=no
|
|---|
| 2518 | else
|
|---|
| 2519 | echo "configure: failed program was:" >&5
|
|---|
| 2520 | cat conftest.$ac_ext >&5
|
|---|
| 2521 | rm -rf conftest*
|
|---|
| 2522 | lt_cv_need_dllmain=yes
|
|---|
| 2523 | fi
|
|---|
| 2524 | rm -f conftest*
|
|---|
| 2525 | fi
|
|---|
| 2526 |
|
|---|
| 2527 | echo "$ac_t""$lt_cv_need_dllmain" 1>&6
|
|---|
| 2528 |
|
|---|
| 2529 | case $host/$CC in
|
|---|
| 2530 | *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
|
|---|
| 2531 | # old mingw systems require "-dll" to link a DLL, while more recent ones
|
|---|
| 2532 | # require "-mdll"
|
|---|
| 2533 | SAVE_CFLAGS="$CFLAGS"
|
|---|
| 2534 | CFLAGS="$CFLAGS -mdll"
|
|---|
| 2535 | echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
|
|---|
| 2536 | echo "configure:2537: checking how to link DLLs" >&5
|
|---|
| 2537 | if eval "test \"`echo '$''{'lt_cv_cc_dll_switch'+set}'`\" = set"; then
|
|---|
| 2538 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2539 | else
|
|---|
| 2540 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2541 | #line 2542 "configure"
|
|---|
| 2542 | #include "confdefs.h"
|
|---|
| 2543 |
|
|---|
| 2544 | int main() {
|
|---|
| 2545 |
|
|---|
| 2546 | ; return 0; }
|
|---|
| 2547 | EOF
|
|---|
| 2548 | if { (eval echo configure:2549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 2549 | rm -rf conftest*
|
|---|
| 2550 | lt_cv_cc_dll_switch=-mdll
|
|---|
| 2551 | else
|
|---|
| 2552 | echo "configure: failed program was:" >&5
|
|---|
| 2553 | cat conftest.$ac_ext >&5
|
|---|
| 2554 | rm -rf conftest*
|
|---|
| 2555 | lt_cv_cc_dll_switch=-dll
|
|---|
| 2556 | fi
|
|---|
| 2557 | rm -f conftest*
|
|---|
| 2558 | fi
|
|---|
| 2559 |
|
|---|
| 2560 | echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
|
|---|
| 2561 | CFLAGS="$SAVE_CFLAGS" ;;
|
|---|
| 2562 | *-*-cygwin* | *-*-pw32*)
|
|---|
| 2563 | # cygwin systems need to pass --dll to the linker, and not link
|
|---|
| 2564 | # crt.o which will require a WinMain@16 definition.
|
|---|
| 2565 | lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
|
|---|
| 2566 | esac
|
|---|
| 2567 | ;;
|
|---|
| 2568 |
|
|---|
| 2569 | esac
|
|---|
| 2570 |
|
|---|
| 2571 |
|
|---|
| 2572 | # Save cache, so that ltconfig can load it
|
|---|
| 2573 | cat > confcache <<\EOF
|
|---|
| 2574 | # This file is a shell script that caches the results of configure
|
|---|
| 2575 | # tests run on this system so they can be shared between configure
|
|---|
| 2576 | # scripts and configure runs. It is not useful on other systems.
|
|---|
| 2577 | # If it contains results you don't want to keep, you may remove or edit it.
|
|---|
| 2578 | #
|
|---|
| 2579 | # By default, configure uses ./config.cache as the cache file,
|
|---|
| 2580 | # creating it if it does not exist already. You can give configure
|
|---|
| 2581 | # the --cache-file=FILE option to use a different cache file; that is
|
|---|
| 2582 | # what configure does when it calls configure scripts in
|
|---|
| 2583 | # subdirectories, so they share the cache.
|
|---|
| 2584 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
|---|
| 2585 | # config.status only pays attention to the cache file if you give it the
|
|---|
| 2586 | # --recheck option to rerun configure.
|
|---|
| 2587 | #
|
|---|
| 2588 | EOF
|
|---|
| 2589 | # The following way of writing the cache mishandles newlines in values,
|
|---|
| 2590 | # but we know of no workaround that is simple, portable, and efficient.
|
|---|
| 2591 | # So, don't put newlines in cache variables' values.
|
|---|
| 2592 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
|---|
| 2593 | # and sets the high bit in the cache file unless we assign to the vars.
|
|---|
| 2594 | (set) 2>&1 |
|
|---|
| 2595 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
|---|
| 2596 | *ac_space=\ *)
|
|---|
| 2597 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
|---|
| 2598 | # turns \\\\ into \\, and sed turns \\ into \).
|
|---|
| 2599 | sed -n \
|
|---|
| 2600 | -e "s/'/'\\\\''/g" \
|
|---|
| 2601 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
|---|
| 2602 | ;;
|
|---|
| 2603 | *)
|
|---|
| 2604 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
|---|
| 2605 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
|---|
| 2606 | ;;
|
|---|
| 2607 | esac >> confcache
|
|---|
| 2608 | if cmp -s $cache_file confcache; then
|
|---|
| 2609 | :
|
|---|
| 2610 | else
|
|---|
| 2611 | if test -w $cache_file; then
|
|---|
| 2612 | echo "updating cache $cache_file"
|
|---|
| 2613 | cat confcache > $cache_file
|
|---|
| 2614 | else
|
|---|
| 2615 | echo "not updating unwritable cache $cache_file"
|
|---|
| 2616 | fi
|
|---|
| 2617 | fi
|
|---|
| 2618 | rm -f confcache
|
|---|
| 2619 |
|
|---|
| 2620 |
|
|---|
| 2621 | # Actually configure libtool. ac_aux_dir is where install-sh is found.
|
|---|
| 2622 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
|
|---|
| 2623 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
|
|---|
| 2624 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
|
|---|
| 2625 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
|
|---|
| 2626 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
|
|---|
| 2627 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
|
|---|
| 2628 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
|
|---|
| 2629 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
|
|---|
| 2630 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
|
|---|
| 2631 |
|
|---|
| 2632 | # Reload cache, that may have been modified by ltconfig
|
|---|
| 2633 | if test -r "$cache_file"; then
|
|---|
| 2634 | echo "loading cache $cache_file"
|
|---|
| 2635 | . $cache_file
|
|---|
| 2636 | else
|
|---|
| 2637 | echo "creating cache $cache_file"
|
|---|
| 2638 | > $cache_file
|
|---|
| 2639 | fi
|
|---|
| 2640 |
|
|---|
| 2641 |
|
|---|
| 2642 | # This can be used to rebuild libtool when needed
|
|---|
| 2643 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
|
|---|
| 2644 |
|
|---|
| 2645 | # Always use our own libtool.
|
|---|
| 2646 | LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
|---|
| 2647 |
|
|---|
| 2648 | # Redirect the config.log output again, so that the ltconfig log is not
|
|---|
| 2649 | # clobbered by the next message.
|
|---|
| 2650 | exec 5>>./config.log
|
|---|
| 2651 |
|
|---|
| 2652 |
|
|---|
| 2653 |
|
|---|
| 2654 |
|
|---|
| 2655 |
|
|---|
| 2656 |
|
|---|
| 2657 |
|
|---|
| 2658 | test "$AR" || AR=ar
|
|---|
| 2659 |
|
|---|
| 2660 | if test "$RANLIB"; then :
|
|---|
| 2661 |
|
|---|
| 2662 | else
|
|---|
| 2663 | # Extract the first word of "ranlib", so it can be a program name with args.
|
|---|
| 2664 | set dummy ranlib; ac_word=$2
|
|---|
| 2665 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2666 | echo "configure:2667: checking for $ac_word" >&5
|
|---|
| 2667 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 2668 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2669 | else
|
|---|
| 2670 | if test -n "$RANLIB"; then
|
|---|
| 2671 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 2672 | else
|
|---|
| 2673 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2674 | ac_dummy="$PATH"
|
|---|
| 2675 | for ac_dir in $ac_dummy; do
|
|---|
| 2676 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2677 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2678 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2679 | ac_cv_prog_RANLIB="ranlib"
|
|---|
| 2680 | break
|
|---|
| 2681 | fi
|
|---|
| 2682 | done
|
|---|
| 2683 | IFS="$ac_save_ifs"
|
|---|
| 2684 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|---|
| 2685 | fi
|
|---|
| 2686 | fi
|
|---|
| 2687 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 2688 | if test -n "$RANLIB"; then
|
|---|
| 2689 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 2690 | else
|
|---|
| 2691 | echo "$ac_t""no" 1>&6
|
|---|
| 2692 | fi
|
|---|
| 2693 |
|
|---|
| 2694 | fi
|
|---|
| 2695 | # Find a good install program. We prefer a C program (faster),
|
|---|
| 2696 | # so one script is as good as another. But avoid the broken or
|
|---|
| 2697 | # incompatible versions:
|
|---|
| 2698 | # SysV /etc/install, /usr/sbin/install
|
|---|
| 2699 | # SunOS /usr/etc/install
|
|---|
| 2700 | # IRIX /sbin/install
|
|---|
| 2701 | # AIX /bin/install
|
|---|
| 2702 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
|---|
| 2703 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|---|
| 2704 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|---|
| 2705 | # ./install, which can be erroneously created by make from ./install.sh.
|
|---|
| 2706 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
|---|
| 2707 | echo "configure:2708: checking for a BSD compatible install" >&5
|
|---|
| 2708 | if test -z "$INSTALL"; then
|
|---|
| 2709 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
|---|
| 2710 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2711 | else
|
|---|
| 2712 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2713 | for ac_dir in $PATH; do
|
|---|
| 2714 | # Account for people who put trailing slashes in PATH elements.
|
|---|
| 2715 | case "$ac_dir/" in
|
|---|
| 2716 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
|---|
| 2717 | # We reject the install program from OS/2 or W3.1
|
|---|
| 2718 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
|
|---|
| 2719 | *)
|
|---|
| 2720 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
|---|
| 2721 | # Don't use installbsd from OSF since it installs stuff as root
|
|---|
| 2722 | # by default.
|
|---|
| 2723 | for ac_prog in ginstall scoinst install; do
|
|---|
| 2724 | if test -f $ac_dir/$ac_prog$ac_exeext; then
|
|---|
| 2725 | if test $ac_prog = install &&
|
|---|
| 2726 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|---|
| 2727 | # AIX install. It has an incompatible calling convention.
|
|---|
| 2728 | :
|
|---|
| 2729 | else
|
|---|
| 2730 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
|
|---|
| 2731 | break 2
|
|---|
| 2732 | fi
|
|---|
| 2733 | fi
|
|---|
| 2734 | done
|
|---|
| 2735 | ;;
|
|---|
| 2736 | esac
|
|---|
| 2737 | done
|
|---|
| 2738 | IFS="$ac_save_IFS"
|
|---|
| 2739 |
|
|---|
| 2740 | fi
|
|---|
| 2741 | if test "${ac_cv_path_install+set}" = set; then
|
|---|
| 2742 | INSTALL="$ac_cv_path_install"
|
|---|
| 2743 | else
|
|---|
| 2744 | # As a last resort, use the slow shell script. We don't cache a
|
|---|
| 2745 | # path for INSTALL within a source directory, because that will
|
|---|
| 2746 | # break other packages using the cache if that directory is
|
|---|
| 2747 | # removed, or if the path is relative.
|
|---|
| 2748 | INSTALL="$ac_install_sh"
|
|---|
| 2749 | fi
|
|---|
| 2750 | fi
|
|---|
| 2751 | echo "$ac_t""$INSTALL" 1>&6
|
|---|
| 2752 |
|
|---|
| 2753 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
|---|
| 2754 | # It thinks the first close brace ends the variable substitution.
|
|---|
| 2755 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|---|
| 2756 |
|
|---|
| 2757 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
|---|
| 2758 |
|
|---|
| 2759 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|---|
| 2760 |
|
|---|
| 2761 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
|---|
| 2762 | echo "configure:2763: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
|---|
| 2763 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
|---|
| 2764 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
|---|
| 2765 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2766 | else
|
|---|
| 2767 | cat > conftestmake <<\EOF
|
|---|
| 2768 | all:
|
|---|
| 2769 | @echo 'ac_maketemp="${MAKE}"'
|
|---|
| 2770 | EOF
|
|---|
| 2771 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|---|
| 2772 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
|---|
| 2773 | if test -n "$ac_maketemp"; then
|
|---|
| 2774 | eval ac_cv_prog_make_${ac_make}_set=yes
|
|---|
| 2775 | else
|
|---|
| 2776 | eval ac_cv_prog_make_${ac_make}_set=no
|
|---|
| 2777 | fi
|
|---|
| 2778 | rm -f conftestmake
|
|---|
| 2779 | fi
|
|---|
| 2780 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
|---|
| 2781 | echo "$ac_t""yes" 1>&6
|
|---|
| 2782 | SET_MAKE=
|
|---|
| 2783 | else
|
|---|
| 2784 | echo "$ac_t""no" 1>&6
|
|---|
| 2785 | SET_MAKE="MAKE=${MAKE-make}"
|
|---|
| 2786 | fi
|
|---|
| 2787 |
|
|---|
| 2788 |
|
|---|
| 2789 | # Sanity check for the cross-compilation case:
|
|---|
| 2790 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
|---|
| 2791 | echo "configure:2792: checking how to run the C preprocessor" >&5
|
|---|
| 2792 | # On Suns, sometimes $CPP names a directory.
|
|---|
| 2793 | if test -n "$CPP" && test -d "$CPP"; then
|
|---|
| 2794 | CPP=
|
|---|
| 2795 | fi
|
|---|
| 2796 | if test -z "$CPP"; then
|
|---|
| 2797 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
|---|
| 2798 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2799 | else
|
|---|
| 2800 | # This must be in double quotes, not single quotes, because CPP may get
|
|---|
| 2801 | # substituted into the Makefile and "${CC-cc}" will confuse make.
|
|---|
| 2802 | CPP="${CC-cc} -E"
|
|---|
| 2803 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
|---|
| 2804 | # not just through cpp.
|
|---|
| 2805 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2806 | #include <sys/types.h>
|
|---|
| 2807 | #line 2808 "configure"
|
|---|
| 2808 | #include "confdefs.h"
|
|---|
| 2809 | #include <assert.h>
|
|---|
| 2810 | Syntax Error
|
|---|
| 2811 | EOF
|
|---|
| 2812 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 2813 | { (eval echo configure:2814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 2814 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 2815 | if test -z "$ac_err"; then
|
|---|
| 2816 | :
|
|---|
| 2817 | else
|
|---|
| 2818 | echo "$ac_err" >&5
|
|---|
| 2819 | echo "configure: failed program was:" >&5
|
|---|
| 2820 | cat conftest.$ac_ext >&5
|
|---|
| 2821 | rm -rf conftest*
|
|---|
| 2822 | CPP="${CC-cc} -E -traditional-cpp"
|
|---|
| 2823 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2824 | #include <sys/types.h>
|
|---|
| 2825 | #line 2826 "configure"
|
|---|
| 2826 | #include "confdefs.h"
|
|---|
| 2827 | #include <assert.h>
|
|---|
| 2828 | Syntax Error
|
|---|
| 2829 | EOF
|
|---|
| 2830 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 2831 | { (eval echo configure:2832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 2832 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 2833 | if test -z "$ac_err"; then
|
|---|
| 2834 | :
|
|---|
| 2835 | else
|
|---|
| 2836 | echo "$ac_err" >&5
|
|---|
| 2837 | echo "configure: failed program was:" >&5
|
|---|
| 2838 | cat conftest.$ac_ext >&5
|
|---|
| 2839 | rm -rf conftest*
|
|---|
| 2840 | CPP="${CC-cc} -nologo -E"
|
|---|
| 2841 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2842 | #include <sys/types.h>
|
|---|
| 2843 | #line 2844 "configure"
|
|---|
| 2844 | #include "confdefs.h"
|
|---|
| 2845 | #include <assert.h>
|
|---|
| 2846 | Syntax Error
|
|---|
| 2847 | EOF
|
|---|
| 2848 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 2849 | { (eval echo configure:2850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 2850 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 2851 | if test -z "$ac_err"; then
|
|---|
| 2852 | :
|
|---|
| 2853 | else
|
|---|
| 2854 | echo "$ac_err" >&5
|
|---|
| 2855 | echo "configure: failed program was:" >&5
|
|---|
| 2856 | cat conftest.$ac_ext >&5
|
|---|
| 2857 | rm -rf conftest*
|
|---|
| 2858 | CPP=/lib/cpp
|
|---|
| 2859 | fi
|
|---|
| 2860 | rm -f conftest*
|
|---|
| 2861 | fi
|
|---|
| 2862 | rm -f conftest*
|
|---|
| 2863 | fi
|
|---|
| 2864 | rm -f conftest*
|
|---|
| 2865 | ac_cv_prog_CPP="$CPP"
|
|---|
| 2866 | fi
|
|---|
| 2867 | CPP="$ac_cv_prog_CPP"
|
|---|
| 2868 | else
|
|---|
| 2869 | ac_cv_prog_CPP="$CPP"
|
|---|
| 2870 | fi
|
|---|
| 2871 | echo "$ac_t""$CPP" 1>&6
|
|---|
| 2872 |
|
|---|
| 2873 | ac_safe=`echo "stdio.h" | sed 'y%./+-%__p_%'`
|
|---|
| 2874 | echo $ac_n "checking for stdio.h""... $ac_c" 1>&6
|
|---|
| 2875 | echo "configure:2876: checking for stdio.h" >&5
|
|---|
| 2876 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 2877 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2878 | else
|
|---|
| 2879 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2880 | #include <sys/types.h>
|
|---|
| 2881 | #line 2882 "configure"
|
|---|
| 2882 | #include "confdefs.h"
|
|---|
| 2883 | #include <stdio.h>
|
|---|
| 2884 | EOF
|
|---|
| 2885 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 2886 | { (eval echo configure:2887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 2887 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 2888 | if test -z "$ac_err"; then
|
|---|
| 2889 | rm -rf conftest*
|
|---|
| 2890 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 2891 | else
|
|---|
| 2892 | echo "$ac_err" >&5
|
|---|
| 2893 | echo "configure: failed program was:" >&5
|
|---|
| 2894 | cat conftest.$ac_ext >&5
|
|---|
| 2895 | rm -rf conftest*
|
|---|
| 2896 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 2897 | fi
|
|---|
| 2898 | rm -f conftest*
|
|---|
| 2899 | fi
|
|---|
| 2900 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 2901 | echo "$ac_t""yes" 1>&6
|
|---|
| 2902 | :
|
|---|
| 2903 | else
|
|---|
| 2904 | echo "$ac_t""no" 1>&6
|
|---|
| 2905 | { echo "configure: error: Can't find stdio.h.
|
|---|
| 2906 | You must have a usable C system for the target already installed, at least
|
|---|
| 2907 | including headers and, preferably, the library, before you can configure
|
|---|
| 2908 | the Objective C runtime system. If necessary, install gcc now with
|
|---|
| 2909 | \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." 1>&2; exit 1; }
|
|---|
| 2910 | fi
|
|---|
| 2911 |
|
|---|
| 2912 |
|
|---|
| 2913 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
|---|
| 2914 | echo "configure:2915: checking for ANSI C header files" >&5
|
|---|
| 2915 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
|---|
| 2916 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2917 | else
|
|---|
| 2918 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2919 | #include <sys/types.h>
|
|---|
| 2920 | #line 2921 "configure"
|
|---|
| 2921 | #include "confdefs.h"
|
|---|
| 2922 | #include <stdlib.h>
|
|---|
| 2923 | #include <stdarg.h>
|
|---|
| 2924 | #include <string.h>
|
|---|
| 2925 | #include <float.h>
|
|---|
| 2926 | EOF
|
|---|
| 2927 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 2928 | { (eval echo configure:2929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 2929 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 2930 | if test -z "$ac_err"; then
|
|---|
| 2931 | rm -rf conftest*
|
|---|
| 2932 | ac_cv_header_stdc=yes
|
|---|
| 2933 | else
|
|---|
| 2934 | echo "$ac_err" >&5
|
|---|
| 2935 | echo "configure: failed program was:" >&5
|
|---|
| 2936 | cat conftest.$ac_ext >&5
|
|---|
| 2937 | rm -rf conftest*
|
|---|
| 2938 | ac_cv_header_stdc=no
|
|---|
| 2939 | fi
|
|---|
| 2940 | rm -f conftest*
|
|---|
| 2941 |
|
|---|
| 2942 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 2943 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|---|
| 2944 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2945 | #line 2946 "configure"
|
|---|
| 2946 | #include "confdefs.h"
|
|---|
| 2947 | #include <string.h>
|
|---|
| 2948 | EOF
|
|---|
| 2949 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 2950 | egrep "memchr" >/dev/null 2>&1; then
|
|---|
| 2951 | :
|
|---|
| 2952 | else
|
|---|
| 2953 | rm -rf conftest*
|
|---|
| 2954 | ac_cv_header_stdc=no
|
|---|
| 2955 | fi
|
|---|
| 2956 | rm -f conftest*
|
|---|
| 2957 |
|
|---|
| 2958 | fi
|
|---|
| 2959 |
|
|---|
| 2960 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 2961 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|---|
| 2962 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2963 | #line 2964 "configure"
|
|---|
| 2964 | #include "confdefs.h"
|
|---|
| 2965 | #include <stdlib.h>
|
|---|
| 2966 | EOF
|
|---|
| 2967 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 2968 | egrep "free" >/dev/null 2>&1; then
|
|---|
| 2969 | :
|
|---|
| 2970 | else
|
|---|
| 2971 | rm -rf conftest*
|
|---|
| 2972 | ac_cv_header_stdc=no
|
|---|
| 2973 | fi
|
|---|
| 2974 | rm -f conftest*
|
|---|
| 2975 |
|
|---|
| 2976 | fi
|
|---|
| 2977 |
|
|---|
| 2978 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 2979 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|---|
| 2980 | if test "$cross_compiling" = yes; then
|
|---|
| 2981 | :
|
|---|
| 2982 | else
|
|---|
| 2983 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2984 | #line 2985 "configure"
|
|---|
| 2985 | #include "confdefs.h"
|
|---|
| 2986 | #include <ctype.h>
|
|---|
| 2987 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|---|
| 2988 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|---|
| 2989 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|---|
| 2990 | int main () { int i; for (i = 0; i < 256; i++)
|
|---|
| 2991 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
|---|
| 2992 | exit (0); }
|
|---|
| 2993 |
|
|---|
| 2994 | EOF
|
|---|
| 2995 | if { (eval echo configure:2996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|---|
| 2996 | then
|
|---|
| 2997 | :
|
|---|
| 2998 | else
|
|---|
| 2999 | echo "configure: failed program was:" >&5
|
|---|
| 3000 | cat conftest.$ac_ext >&5
|
|---|
| 3001 | rm -fr conftest*
|
|---|
| 3002 | ac_cv_header_stdc=no
|
|---|
| 3003 | fi
|
|---|
| 3004 | rm -fr conftest*
|
|---|
| 3005 | fi
|
|---|
| 3006 |
|
|---|
| 3007 | fi
|
|---|
| 3008 | fi
|
|---|
| 3009 |
|
|---|
| 3010 | echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
|---|
| 3011 | if test $ac_cv_header_stdc = yes; then
|
|---|
| 3012 | cat >> confdefs.h <<\EOF
|
|---|
| 3013 | #define STDC_HEADERS 1
|
|---|
| 3014 | EOF
|
|---|
| 3015 |
|
|---|
| 3016 | fi
|
|---|
| 3017 |
|
|---|
| 3018 |
|
|---|
| 3019 | for ac_hdr in sched.h
|
|---|
| 3020 | do
|
|---|
| 3021 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|---|
| 3022 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|---|
| 3023 | echo "configure:3024: checking for $ac_hdr" >&5
|
|---|
| 3024 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 3025 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3026 | else
|
|---|
| 3027 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3028 | #include <sys/types.h>
|
|---|
| 3029 | #line 3030 "configure"
|
|---|
| 3030 | #include "confdefs.h"
|
|---|
| 3031 | #include <$ac_hdr>
|
|---|
| 3032 | EOF
|
|---|
| 3033 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 3034 | { (eval echo configure:3035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 3035 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 3036 | if test -z "$ac_err"; then
|
|---|
| 3037 | rm -rf conftest*
|
|---|
| 3038 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 3039 | else
|
|---|
| 3040 | echo "$ac_err" >&5
|
|---|
| 3041 | echo "configure: failed program was:" >&5
|
|---|
| 3042 | cat conftest.$ac_ext >&5
|
|---|
| 3043 | rm -rf conftest*
|
|---|
| 3044 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 3045 | fi
|
|---|
| 3046 | rm -f conftest*
|
|---|
| 3047 | fi
|
|---|
| 3048 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 3049 | echo "$ac_t""yes" 1>&6
|
|---|
| 3050 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|---|
| 3051 | cat >> confdefs.h <<EOF
|
|---|
| 3052 | #define $ac_tr_hdr 1
|
|---|
| 3053 | EOF
|
|---|
| 3054 |
|
|---|
| 3055 | else
|
|---|
| 3056 | echo "$ac_t""no" 1>&6
|
|---|
| 3057 | fi
|
|---|
| 3058 | done
|
|---|
| 3059 |
|
|---|
| 3060 |
|
|---|
| 3061 | # Determine CFLAGS for gthread.
|
|---|
| 3062 |
|
|---|
| 3063 | echo $ac_n "checking for gthread cflags""... $ac_c" 1>&6
|
|---|
| 3064 | echo "configure:3065: checking for gthread cflags" >&5
|
|---|
| 3065 | if eval "test \"`echo '$''{'objc_cv_gthread_flags'+set}'`\" = set"; then
|
|---|
| 3066 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3067 | else
|
|---|
| 3068 | if test -f "$r"/gcc/Makefile
|
|---|
| 3069 | then
|
|---|
| 3070 | objc_cv_gthread_flags=`grep \^GTHREAD_FLAGS "$r"/gcc/Makefile | awk -F= '{ print $2 }'`
|
|---|
| 3071 | else
|
|---|
| 3072 | { echo "configure: error: not found" 1>&2; exit 1; }
|
|---|
| 3073 | fi
|
|---|
| 3074 | fi
|
|---|
| 3075 |
|
|---|
| 3076 | echo "$ac_t""$objc_cv_gthread_flags" 1>&6
|
|---|
| 3077 | GTHREAD_FLAGS=$objc_cv_gthread_flags
|
|---|
| 3078 |
|
|---|
| 3079 |
|
|---|
| 3080 | # Check whether --enable-objc-gc or --disable-objc-gc was given.
|
|---|
| 3081 | if test "${enable_objc_gc+set}" = set; then
|
|---|
| 3082 | enableval="$enable_objc_gc"
|
|---|
| 3083 | if [ x$enable_objc_gc = xno ]; then
|
|---|
| 3084 | OBJC_BOEHM_GC=''
|
|---|
| 3085 | else
|
|---|
| 3086 | OBJC_BOEHM_GC=libobjc_gc.la
|
|---|
| 3087 | fi
|
|---|
| 3088 | else
|
|---|
| 3089 | OBJC_BOEHM_GC=''
|
|---|
| 3090 | fi
|
|---|
| 3091 |
|
|---|
| 3092 |
|
|---|
| 3093 |
|
|---|
| 3094 |
|
|---|
| 3095 | # We need multilib support, but only if configuring for the target.
|
|---|
| 3096 | trap '' 1 2 15
|
|---|
| 3097 | cat > confcache <<\EOF
|
|---|
| 3098 | # This file is a shell script that caches the results of configure
|
|---|
| 3099 | # tests run on this system so they can be shared between configure
|
|---|
| 3100 | # scripts and configure runs. It is not useful on other systems.
|
|---|
| 3101 | # If it contains results you don't want to keep, you may remove or edit it.
|
|---|
| 3102 | #
|
|---|
| 3103 | # By default, configure uses ./config.cache as the cache file,
|
|---|
| 3104 | # creating it if it does not exist already. You can give configure
|
|---|
| 3105 | # the --cache-file=FILE option to use a different cache file; that is
|
|---|
| 3106 | # what configure does when it calls configure scripts in
|
|---|
| 3107 | # subdirectories, so they share the cache.
|
|---|
| 3108 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
|---|
| 3109 | # config.status only pays attention to the cache file if you give it the
|
|---|
| 3110 | # --recheck option to rerun configure.
|
|---|
| 3111 | #
|
|---|
| 3112 | EOF
|
|---|
| 3113 | # The following way of writing the cache mishandles newlines in values,
|
|---|
| 3114 | # but we know of no workaround that is simple, portable, and efficient.
|
|---|
| 3115 | # So, don't put newlines in cache variables' values.
|
|---|
| 3116 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
|---|
| 3117 | # and sets the high bit in the cache file unless we assign to the vars.
|
|---|
| 3118 | (set) 2>&1 |
|
|---|
| 3119 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
|---|
| 3120 | *ac_space=\ *)
|
|---|
| 3121 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
|---|
| 3122 | # turns \\\\ into \\, and sed turns \\ into \).
|
|---|
| 3123 | sed -n \
|
|---|
| 3124 | -e "s/'/'\\\\''/g" \
|
|---|
| 3125 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
|---|
| 3126 | ;;
|
|---|
| 3127 | *)
|
|---|
| 3128 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
|---|
| 3129 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
|---|
| 3130 | ;;
|
|---|
| 3131 | esac >> confcache
|
|---|
| 3132 | if cmp -s $cache_file confcache; then
|
|---|
| 3133 | :
|
|---|
| 3134 | else
|
|---|
| 3135 | if test -w $cache_file; then
|
|---|
| 3136 | echo "updating cache $cache_file"
|
|---|
| 3137 | cat confcache > $cache_file
|
|---|
| 3138 | else
|
|---|
| 3139 | echo "not updating unwritable cache $cache_file"
|
|---|
| 3140 | fi
|
|---|
| 3141 | fi
|
|---|
| 3142 | rm -f confcache
|
|---|
| 3143 |
|
|---|
| 3144 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|---|
| 3145 |
|
|---|
| 3146 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|---|
| 3147 | # Let make expand exec_prefix.
|
|---|
| 3148 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
|---|
| 3149 |
|
|---|
| 3150 | # Any assignment to VPATH causes Sun make to only execute
|
|---|
| 3151 | # the first set of double-colon rules, so remove it if not needed.
|
|---|
| 3152 | # If there is a colon in the path, we need to keep it.
|
|---|
| 3153 | if test "x$srcdir" = x.; then
|
|---|
| 3154 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
|---|
| 3155 | fi
|
|---|
| 3156 |
|
|---|
| 3157 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
|---|
| 3158 |
|
|---|
| 3159 | DEFS=-DHAVE_CONFIG_H
|
|---|
| 3160 |
|
|---|
| 3161 | # Without the "./", some shells look in PATH for config.status.
|
|---|
| 3162 | : ${CONFIG_STATUS=./config.status}
|
|---|
| 3163 |
|
|---|
| 3164 | echo creating $CONFIG_STATUS
|
|---|
| 3165 | rm -f $CONFIG_STATUS
|
|---|
| 3166 | cat > $CONFIG_STATUS <<EOF
|
|---|
| 3167 | #! /bin/sh
|
|---|
| 3168 | # Generated automatically by configure.
|
|---|
| 3169 | # Run this file to recreate the current configuration.
|
|---|
| 3170 | # This directory was configured as follows,
|
|---|
| 3171 | EOF
|
|---|
| 3172 | echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS
|
|---|
| 3173 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 3174 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|---|
| 3175 | #
|
|---|
| 3176 | # $0 $ac_configure_args
|
|---|
| 3177 | #
|
|---|
| 3178 | # Compiler output produced by configure, useful for debugging
|
|---|
| 3179 | # configure, is in ./config.log if it exists.
|
|---|
| 3180 |
|
|---|
| 3181 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
|---|
| 3182 | for ac_option
|
|---|
| 3183 | do
|
|---|
| 3184 | case "\$ac_option" in
|
|---|
| 3185 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
|---|
| 3186 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
|---|
| 3187 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
|---|
| 3188 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
|---|
| 3189 | echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
|---|
| 3190 | exit 0 ;;
|
|---|
| 3191 | -help | --help | --hel | --he | --h)
|
|---|
| 3192 | echo "\$ac_cs_usage"; exit 0 ;;
|
|---|
| 3193 | *) echo "\$ac_cs_usage"; exit 1 ;;
|
|---|
| 3194 | esac
|
|---|
| 3195 | done
|
|---|
| 3196 |
|
|---|
| 3197 | ac_given_srcdir=$srcdir
|
|---|
| 3198 | ac_given_INSTALL="$INSTALL"
|
|---|
| 3199 | PATHIFS="$PATH_IFS"
|
|---|
| 3200 |
|
|---|
| 3201 | trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
|---|
| 3202 | EOF
|
|---|
| 3203 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 3204 |
|
|---|
| 3205 | # Protect against being on the right side of a sed subst in config.status.
|
|---|
| 3206 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
|---|
| 3207 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
|---|
| 3208 | $ac_vpsub
|
|---|
| 3209 | $extrasub
|
|---|
| 3210 | s,\([^a-zA-Z0-9:]\)/bin/sh\(.exe\),\1${CONFIG_SHELL-/bin/sh}\2,g
|
|---|
| 3211 | s%@SHELL@%$SHELL%g
|
|---|
| 3212 | s%@CFLAGS@%$CFLAGS%g
|
|---|
| 3213 | s%@CPPFLAGS@%$CPPFLAGS%g
|
|---|
| 3214 | s%@CXXFLAGS@%$CXXFLAGS%g
|
|---|
| 3215 | s%@FFLAGS@%$FFLAGS%g
|
|---|
| 3216 | s%@DEFS@%$DEFS%g
|
|---|
| 3217 | s%@LDFLAGS@%$LDFLAGS%g
|
|---|
| 3218 | s%@LIBS@%$LIBS%g
|
|---|
| 3219 | s%@exec_prefix@%$exec_prefix%g
|
|---|
| 3220 | s%@prefix@%$prefix%g
|
|---|
| 3221 | s%@program_transform_name@%$program_transform_name%g
|
|---|
| 3222 | s%@bindir@%$bindir%g
|
|---|
| 3223 | s%@sbindir@%$sbindir%g
|
|---|
| 3224 | s%@libexecdir@%$libexecdir%g
|
|---|
| 3225 | s%@datadir@%$datadir%g
|
|---|
| 3226 | s%@sysconfdir@%$sysconfdir%g
|
|---|
| 3227 | s%@sharedstatedir@%$sharedstatedir%g
|
|---|
| 3228 | s%@localstatedir@%$localstatedir%g
|
|---|
| 3229 | s%@libdir@%$libdir%g
|
|---|
| 3230 | s%@includedir@%$includedir%g
|
|---|
| 3231 | s%@oldincludedir@%$oldincludedir%g
|
|---|
| 3232 | s%@infodir@%$infodir%g
|
|---|
| 3233 | s%@mandir@%$mandir%g
|
|---|
| 3234 | s%@PATH_IFS@%$PATH_IFS%g
|
|---|
| 3235 | s%@EXEEXT@%$EXEEXT%g
|
|---|
| 3236 | s%@toplevel_srcdir@%$toplevel_srcdir%g
|
|---|
| 3237 | s%@host@%$host%g
|
|---|
| 3238 | s%@host_alias@%$host_alias%g
|
|---|
| 3239 | s%@host_cpu@%$host_cpu%g
|
|---|
| 3240 | s%@host_vendor@%$host_vendor%g
|
|---|
| 3241 | s%@host_os@%$host_os%g
|
|---|
| 3242 | s%@target@%$target%g
|
|---|
| 3243 | s%@target_alias@%$target_alias%g
|
|---|
| 3244 | s%@target_cpu@%$target_cpu%g
|
|---|
| 3245 | s%@target_vendor@%$target_vendor%g
|
|---|
| 3246 | s%@target_os@%$target_os%g
|
|---|
| 3247 | s%@build@%$build%g
|
|---|
| 3248 | s%@build_alias@%$build_alias%g
|
|---|
| 3249 | s%@build_cpu@%$build_cpu%g
|
|---|
| 3250 | s%@build_vendor@%$build_vendor%g
|
|---|
| 3251 | s%@build_os@%$build_os%g
|
|---|
| 3252 | s%@glibcpp_builddir@%$glibcpp_builddir%g
|
|---|
| 3253 | s%@glibcpp_srcdir@%$glibcpp_srcdir%g
|
|---|
| 3254 | s%@LN_S@%$LN_S%g
|
|---|
| 3255 | s%@CC@%$CC%g
|
|---|
| 3256 | s%@AS@%$AS%g
|
|---|
| 3257 | s%@AR@%$AR%g
|
|---|
| 3258 | s%@RANLIB@%$RANLIB%g
|
|---|
| 3259 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
|---|
| 3260 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
|---|
| 3261 | s%@INSTALL_DATA@%$INSTALL_DATA%g
|
|---|
| 3262 | s%@gcc_version@%$gcc_version%g
|
|---|
| 3263 | s%@gcc_version_trigger@%$gcc_version_trigger%g
|
|---|
| 3264 | s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
|
|---|
| 3265 | s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
|
|---|
| 3266 | s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
|
|---|
| 3267 | s%@OBJEXT@%$OBJEXT%g
|
|---|
| 3268 | s%@STRIP@%$STRIP%g
|
|---|
| 3269 | s%@DLLTOOL@%$DLLTOOL%g
|
|---|
| 3270 | s%@OBJDUMP@%$OBJDUMP%g
|
|---|
| 3271 | s%@LIBTOOL@%$LIBTOOL%g
|
|---|
| 3272 | s%@SET_MAKE@%$SET_MAKE%g
|
|---|
| 3273 | s%@CPP@%$CPP%g
|
|---|
| 3274 | s%@GTHREAD_FLAGS@%$GTHREAD_FLAGS%g
|
|---|
| 3275 | s%@OBJC_BOEHM_GC@%$OBJC_BOEHM_GC%g
|
|---|
| 3276 |
|
|---|
| 3277 | CEOF
|
|---|
| 3278 | EOF
|
|---|
| 3279 |
|
|---|
| 3280 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 3281 |
|
|---|
| 3282 | # Split the substitutions into bite-sized pieces for seds with
|
|---|
| 3283 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
|---|
| 3284 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
|---|
| 3285 | ac_file=1 # Number of current file.
|
|---|
| 3286 | ac_beg=1 # First line for current file.
|
|---|
| 3287 | ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
|---|
| 3288 | ac_more_lines=:
|
|---|
| 3289 | ac_sed_cmds=""
|
|---|
| 3290 | while $ac_more_lines; do
|
|---|
| 3291 | if test $ac_beg -gt 1; then
|
|---|
| 3292 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
|---|
| 3293 | else
|
|---|
| 3294 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
|---|
| 3295 | fi
|
|---|
| 3296 | if test ! -s conftest.s$ac_file; then
|
|---|
| 3297 | ac_more_lines=false
|
|---|
| 3298 | rm -f conftest.s$ac_file
|
|---|
| 3299 | else
|
|---|
| 3300 | if test -z "$ac_sed_cmds"; then
|
|---|
| 3301 | ac_sed_cmds="sed -f conftest.s$ac_file"
|
|---|
| 3302 | else
|
|---|
| 3303 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
|---|
| 3304 | fi
|
|---|
| 3305 | ac_file=`expr $ac_file + 1`
|
|---|
| 3306 | ac_beg=$ac_end
|
|---|
| 3307 | ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
|---|
| 3308 | fi
|
|---|
| 3309 | done
|
|---|
| 3310 | if test -z "$ac_sed_cmds"; then
|
|---|
| 3311 | ac_sed_cmds=cat
|
|---|
| 3312 | fi
|
|---|
| 3313 | EOF
|
|---|
| 3314 |
|
|---|
| 3315 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 3316 |
|
|---|
| 3317 | CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
|
|---|
| 3318 | EOF
|
|---|
| 3319 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 3320 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
|---|
| 3321 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|---|
| 3322 | case "$ac_file" in
|
|---|
| 3323 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|---|
| 3324 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|---|
| 3325 | *) ac_file_in="${ac_file}.in" ;;
|
|---|
| 3326 | esac
|
|---|
| 3327 |
|
|---|
| 3328 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
|---|
| 3329 |
|
|---|
| 3330 | # Remove last slash and all that follows it. Not all systems have dirname.
|
|---|
| 3331 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|---|
| 3332 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|---|
| 3333 | # The file is in a subdirectory.
|
|---|
| 3334 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|---|
| 3335 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
|---|
| 3336 | # A "../" for each directory in $ac_dir_suffix.
|
|---|
| 3337 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
|---|
| 3338 | else
|
|---|
| 3339 | ac_dir_suffix= ac_dots=
|
|---|
| 3340 | fi
|
|---|
| 3341 |
|
|---|
| 3342 | case "$ac_given_srcdir" in
|
|---|
| 3343 | .) srcdir=.
|
|---|
| 3344 | if test -z "$ac_dots"; then top_srcdir=.
|
|---|
| 3345 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
|---|
| 3346 | [/\\]* | [a-zA-Z]:*)
|
|---|
| 3347 | srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
|---|
| 3348 | *) # Relative path.
|
|---|
| 3349 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
|---|
| 3350 | top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|---|
| 3351 | esac
|
|---|
| 3352 |
|
|---|
| 3353 | case "$ac_given_INSTALL" in
|
|---|
| 3354 | [/$\\]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
|
|---|
| 3355 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
|---|
| 3356 | esac
|
|---|
| 3357 |
|
|---|
| 3358 | echo creating "$ac_file"
|
|---|
| 3359 | rm -f "$ac_file"
|
|---|
| 3360 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
|---|
| 3361 | case "$ac_file" in
|
|---|
| 3362 | *Makefile*) ac_comsub="1i\\
|
|---|
| 3363 | # $configure_input" ;;
|
|---|
| 3364 | *) ac_comsub= ;;
|
|---|
| 3365 | esac
|
|---|
| 3366 |
|
|---|
| 3367 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%$PATHIFS% $ac_given_srcdir/%g"`
|
|---|
| 3368 | sed -e "$ac_comsub
|
|---|
| 3369 | s%@configure_input@%$configure_input%g
|
|---|
| 3370 | s%@srcdir@%$srcdir%g
|
|---|
| 3371 | s%@top_srcdir@%$top_srcdir%g
|
|---|
| 3372 | s%@INSTALL@%$INSTALL%g
|
|---|
| 3373 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
|---|
| 3374 | fi; done
|
|---|
| 3375 | rm -f conftest.s*
|
|---|
| 3376 |
|
|---|
| 3377 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
|---|
| 3378 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
|---|
| 3379 | #
|
|---|
| 3380 | # ac_d sets the value in "#define NAME VALUE" lines.
|
|---|
| 3381 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
|---|
| 3382 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
|---|
| 3383 | ac_dC='\3'
|
|---|
| 3384 | ac_dD='%g'
|
|---|
| 3385 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
|---|
| 3386 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|---|
| 3387 | ac_uB='\([ ]\)%\1#\2define\3'
|
|---|
| 3388 | ac_uC=' '
|
|---|
| 3389 | ac_uD='\4%g'
|
|---|
| 3390 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
|---|
| 3391 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|---|
| 3392 | ac_eB='$%\1#\2define\3'
|
|---|
| 3393 | ac_eC=' '
|
|---|
| 3394 | ac_eD='%g'
|
|---|
| 3395 |
|
|---|
| 3396 | if test "${CONFIG_HEADERS+set}" != set; then
|
|---|
| 3397 | EOF
|
|---|
| 3398 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 3399 | CONFIG_HEADERS="config.h"
|
|---|
| 3400 | EOF
|
|---|
| 3401 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 3402 | fi
|
|---|
| 3403 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
|---|
| 3404 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|---|
| 3405 | case "$ac_file" in
|
|---|
| 3406 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|---|
| 3407 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|---|
| 3408 | *) ac_file_in="${ac_file}.in" ;;
|
|---|
| 3409 | esac
|
|---|
| 3410 |
|
|---|
| 3411 | echo creating $ac_file
|
|---|
| 3412 |
|
|---|
| 3413 | rm -f conftest.frag conftest.in conftest.out
|
|---|
| 3414 | # kso the other way around might work better with drive letters and such.
|
|---|
| 3415 | # ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|---|
| 3416 | ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%" `
|
|---|
| 3417 | cat $ac_file_inputs > conftest.in
|
|---|
| 3418 |
|
|---|
| 3419 | EOF
|
|---|
| 3420 |
|
|---|
| 3421 | # Transform confdefs.h into a sed script conftest.vals that substitutes
|
|---|
| 3422 | # the proper values into config.h.in to produce config.h. And first:
|
|---|
| 3423 | # Protect against being on the right side of a sed subst in config.status.
|
|---|
| 3424 | # Protect against being in an unquoted here document in config.status.
|
|---|
| 3425 | rm -f conftest.vals
|
|---|
| 3426 | cat > conftest.hdr <<\EOF
|
|---|
| 3427 | s/[\\&%]/\\&/g
|
|---|
| 3428 | s%[\\$`]%\\&%g
|
|---|
| 3429 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
|---|
| 3430 | s%ac_d%ac_u%gp
|
|---|
| 3431 | s%ac_u%ac_e%gp
|
|---|
| 3432 | EOF
|
|---|
| 3433 | sed -n -f conftest.hdr confdefs.h > conftest.vals
|
|---|
| 3434 | rm -f conftest.hdr
|
|---|
| 3435 |
|
|---|
| 3436 | # This sed command replaces #undef with comments. This is necessary, for
|
|---|
| 3437 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
|---|
| 3438 | # on some systems where configure will not decide to define it.
|
|---|
| 3439 | cat >> conftest.vals <<\EOF
|
|---|
| 3440 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
|---|
| 3441 | EOF
|
|---|
| 3442 |
|
|---|
| 3443 | # Break up conftest.vals because some shells have a limit on
|
|---|
| 3444 | # the size of here documents, and old seds have small limits too.
|
|---|
| 3445 |
|
|---|
| 3446 | rm -f conftest.tail
|
|---|
| 3447 | while :
|
|---|
| 3448 | do
|
|---|
| 3449 | ac_lines=`grep -c . conftest.vals`
|
|---|
| 3450 | # grep -c gives empty output for an empty file on some AIX systems.
|
|---|
| 3451 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
|---|
| 3452 | # Write a limited-size here document to conftest.frag.
|
|---|
| 3453 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
|---|
| 3454 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
|---|
| 3455 | echo 'CEOF
|
|---|
| 3456 | sed -f conftest.frag conftest.in > conftest.out
|
|---|
| 3457 | rm -f conftest.in
|
|---|
| 3458 | mv conftest.out conftest.in
|
|---|
| 3459 | ' >> $CONFIG_STATUS
|
|---|
| 3460 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
|---|
| 3461 | rm -f conftest.vals
|
|---|
| 3462 | mv conftest.tail conftest.vals
|
|---|
| 3463 | done
|
|---|
| 3464 | rm -f conftest.vals
|
|---|
| 3465 |
|
|---|
| 3466 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 3467 | rm -f conftest.frag conftest.h
|
|---|
| 3468 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
|---|
| 3469 | cat conftest.in >> conftest.h
|
|---|
| 3470 | rm -f conftest.in
|
|---|
| 3471 | if cmp -s $ac_file conftest.h 2>/dev/null; then
|
|---|
| 3472 | echo "$ac_file is unchanged"
|
|---|
| 3473 | rm -f conftest.h
|
|---|
| 3474 | else
|
|---|
| 3475 | # Remove last slash and all that follows it. Not all systems have dirname.
|
|---|
| 3476 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|---|
| 3477 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|---|
| 3478 | # The file is in a subdirectory.
|
|---|
| 3479 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|---|
| 3480 | fi
|
|---|
| 3481 | rm -f $ac_file
|
|---|
| 3482 | mv conftest.h $ac_file
|
|---|
| 3483 | fi
|
|---|
| 3484 | fi; done
|
|---|
| 3485 |
|
|---|
| 3486 | EOF
|
|---|
| 3487 | cat >> $CONFIG_STATUS <<EOF
|
|---|
| 3488 | srcdir=${srcdir}
|
|---|
| 3489 | host=${host}
|
|---|
| 3490 | target=${target}
|
|---|
| 3491 | with_target_subdir=${with_target_subdir}
|
|---|
| 3492 | with_multisubdir=${with_multisubdir}
|
|---|
| 3493 | ac_configure_args="--enable-multilib ${ac_configure_args}"
|
|---|
| 3494 | toplevel_srcdir=${toplevel_srcdir}
|
|---|
| 3495 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
|
|---|
| 3496 | ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
|
|---|
| 3497 |
|
|---|
| 3498 | EOF
|
|---|
| 3499 | cat >> $CONFIG_STATUS <<\EOF
|
|---|
| 3500 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
|
|---|
| 3501 | if test -n "$CONFIG_FILES"; then
|
|---|
| 3502 | if test -n "${with_target_subdir}"; then
|
|---|
| 3503 | # FIXME: We shouldn't need to set ac_file
|
|---|
| 3504 | ac_file=Makefile
|
|---|
| 3505 | LD="${ORIGINAL_LD_FOR_MULTILIBS}"
|
|---|
| 3506 | . ${toplevel_srcdir}/config-ml.in
|
|---|
| 3507 | fi
|
|---|
| 3508 | fi
|
|---|
| 3509 | exit 0
|
|---|
| 3510 | EOF
|
|---|
| 3511 | chmod +x $CONFIG_STATUS
|
|---|
| 3512 | rm -fr confdefs* $ac_clean_files
|
|---|
| 3513 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
|---|
| 3514 |
|
|---|
| 3515 |
|
|---|
| 3516 |
|
|---|