| 1 | #! /bin/sh
|
|---|
| 2 |
|
|---|
| 3 | # Guess values for system-dependent variables and create Makefiles.
|
|---|
| 4 | # Generated automatically using autoconf version 2.13
|
|---|
| 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
|
|---|
| 6 | #
|
|---|
| 7 | # This configure script is free software; the Free Software Foundation
|
|---|
| 8 | # gives unlimited permission to copy, distribute and modify it.
|
|---|
| 9 |
|
|---|
| 10 | # Defaults:
|
|---|
| 11 | ac_help=
|
|---|
| 12 | ac_default_prefix=/usr/local
|
|---|
| 13 | # Any additions from configure.in:
|
|---|
| 14 | ac_help="$ac_help
|
|---|
| 15 | --with-target-subdir=SUBDIR
|
|---|
| 16 | configuring in a subdirectory"
|
|---|
| 17 | ac_help="$ac_help
|
|---|
| 18 | --with-cross-host=HOST configuring with a cross compiler"
|
|---|
| 19 | ac_help="$ac_help
|
|---|
| 20 | --enable-multilib build many library versions (default)"
|
|---|
| 21 | ac_help="$ac_help
|
|---|
| 22 | --enable-maintainer-mode enable make rules and dependencies not useful
|
|---|
| 23 | (and sometimes confusing) to the casual installer"
|
|---|
| 24 | ac_help="$ac_help
|
|---|
| 25 | --enable-shared[=PKGS] build shared libraries [default=yes]"
|
|---|
| 26 | ac_help="$ac_help
|
|---|
| 27 | --enable-static[=PKGS] build static libraries [default=yes]"
|
|---|
| 28 | ac_help="$ac_help
|
|---|
| 29 | --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
|
|---|
| 30 | ac_help="$ac_help
|
|---|
| 31 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
|
|---|
| 32 | ac_help="$ac_help
|
|---|
| 33 | --disable-libtool-lock avoid locking (might break parallel builds)"
|
|---|
| 34 | ac_help="$ac_help
|
|---|
| 35 | --with-pic try to use only PIC/non-PIC objects [default=use both]"
|
|---|
| 36 | ac_help="$ac_help
|
|---|
| 37 | --disable-getenv-properties
|
|---|
| 38 | don't set system properties from GCJ_PROPERTIES"
|
|---|
| 39 | ac_help="$ac_help
|
|---|
| 40 | --enable-hash-synchronization
|
|---|
| 41 | Use global hash table for monitor locks"
|
|---|
| 42 | ac_help="$ac_help
|
|---|
| 43 | --enable-libgcj-debug enable runtime debugging code"
|
|---|
| 44 | ac_help="$ac_help
|
|---|
| 45 | --enable-interpreter enable interpreter"
|
|---|
| 46 | ac_help="$ac_help
|
|---|
| 47 | --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
|
|---|
| 48 | ac_help="$ac_help
|
|---|
| 49 | --disable-java-net disable java.net"
|
|---|
| 50 | ac_help="$ac_help
|
|---|
| 51 | --without-libffi don't use libffi"
|
|---|
| 52 | ac_help="$ac_help
|
|---|
| 53 | --disable-jvmpi disable JVMPI support"
|
|---|
| 54 | ac_help="$ac_help
|
|---|
| 55 | --with-ecos enable runtime eCos target support"
|
|---|
| 56 | ac_help="$ac_help
|
|---|
| 57 | --with-system-zlib use installed libz"
|
|---|
| 58 | ac_help="$ac_help
|
|---|
| 59 | --enable-java-gc=TYPE choose garbage collector [boehm]"
|
|---|
| 60 | ac_help="$ac_help
|
|---|
| 61 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
|
|---|
| 62 | ac_help="$ac_help
|
|---|
| 63 | --with-x use the X Window System"
|
|---|
| 64 | ac_help="$ac_help
|
|---|
| 65 | --enable-java-awt list of AWT peer implementations to be built"
|
|---|
| 66 |
|
|---|
| 67 | # Initialize some variables set by options.
|
|---|
| 68 | # The variables have the same names as the options, with
|
|---|
| 69 | # dashes changed to underlines.
|
|---|
| 70 | build=NONE
|
|---|
| 71 | cache_file=./config.cache
|
|---|
| 72 | exec_prefix=NONE
|
|---|
| 73 | host=NONE
|
|---|
| 74 | no_create=
|
|---|
| 75 | nonopt=NONE
|
|---|
| 76 | no_recursion=
|
|---|
| 77 | prefix=NONE
|
|---|
| 78 | program_prefix=NONE
|
|---|
| 79 | program_suffix=NONE
|
|---|
| 80 | program_transform_name=s,x,x,
|
|---|
| 81 | silent=
|
|---|
| 82 | site=
|
|---|
| 83 | srcdir=
|
|---|
| 84 | target=NONE
|
|---|
| 85 | verbose=
|
|---|
| 86 | x_includes=NONE
|
|---|
| 87 | x_libraries=NONE
|
|---|
| 88 | bindir='${exec_prefix}/bin'
|
|---|
| 89 | sbindir='${exec_prefix}/sbin'
|
|---|
| 90 | libexecdir='${exec_prefix}/libexec'
|
|---|
| 91 | datadir='${prefix}/share'
|
|---|
| 92 | sysconfdir='${prefix}/etc'
|
|---|
| 93 | sharedstatedir='${prefix}/com'
|
|---|
| 94 | localstatedir='${prefix}/var'
|
|---|
| 95 | libdir='${exec_prefix}/lib'
|
|---|
| 96 | includedir='${prefix}/include'
|
|---|
| 97 | oldincludedir='/usr/include'
|
|---|
| 98 | infodir='${prefix}/info'
|
|---|
| 99 | mandir='${prefix}/man'
|
|---|
| 100 |
|
|---|
| 101 | # Initialize some other variables.
|
|---|
| 102 | subdirs=
|
|---|
| 103 | MFLAGS= MAKEFLAGS=
|
|---|
| 104 | SHELL=${CONFIG_SHELL-/bin/sh}
|
|---|
| 105 | # Maximum number of lines to put in a shell here document.
|
|---|
| 106 | ac_max_here_lines=12
|
|---|
| 107 |
|
|---|
| 108 | ac_prev=
|
|---|
| 109 | for ac_option
|
|---|
| 110 | do
|
|---|
| 111 |
|
|---|
| 112 | # If the previous option needs an argument, assign it.
|
|---|
| 113 | if test -n "$ac_prev"; then
|
|---|
| 114 | eval "$ac_prev=\$ac_option"
|
|---|
| 115 | ac_prev=
|
|---|
| 116 | continue
|
|---|
| 117 | fi
|
|---|
| 118 |
|
|---|
| 119 | case "$ac_option" in
|
|---|
| 120 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
|---|
| 121 | *) ac_optarg= ;;
|
|---|
| 122 | esac
|
|---|
| 123 |
|
|---|
| 124 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
|---|
| 125 |
|
|---|
| 126 | case "$ac_option" in
|
|---|
| 127 |
|
|---|
| 128 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
|---|
| 129 | ac_prev=bindir ;;
|
|---|
| 130 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
|---|
| 131 | bindir="$ac_optarg" ;;
|
|---|
| 132 |
|
|---|
| 133 | -build | --build | --buil | --bui | --bu)
|
|---|
| 134 | ac_prev=build ;;
|
|---|
| 135 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
|---|
| 136 | build="$ac_optarg" ;;
|
|---|
| 137 |
|
|---|
| 138 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
|---|
| 139 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
|---|
| 140 | ac_prev=cache_file ;;
|
|---|
| 141 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
|---|
| 142 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
|---|
| 143 | cache_file="$ac_optarg" ;;
|
|---|
| 144 |
|
|---|
| 145 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
|---|
| 146 | ac_prev=datadir ;;
|
|---|
| 147 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
|---|
| 148 | | --da=*)
|
|---|
| 149 | datadir="$ac_optarg" ;;
|
|---|
| 150 |
|
|---|
| 151 | -disable-* | --disable-*)
|
|---|
| 152 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
|---|
| 153 | # Reject names that are not valid shell variable names.
|
|---|
| 154 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|---|
| 155 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|---|
| 156 | fi
|
|---|
| 157 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|---|
| 158 | eval "enable_${ac_feature}=no" ;;
|
|---|
| 159 |
|
|---|
| 160 | -enable-* | --enable-*)
|
|---|
| 161 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
|---|
| 162 | # Reject names that are not valid shell variable names.
|
|---|
| 163 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|---|
| 164 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|---|
| 165 | fi
|
|---|
| 166 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|---|
| 167 | case "$ac_option" in
|
|---|
| 168 | *=*) ;;
|
|---|
| 169 | *) ac_optarg=yes ;;
|
|---|
| 170 | esac
|
|---|
| 171 | eval "enable_${ac_feature}='$ac_optarg'" ;;
|
|---|
| 172 |
|
|---|
| 173 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
|---|
| 174 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
|---|
| 175 | | --exec | --exe | --ex)
|
|---|
| 176 | ac_prev=exec_prefix ;;
|
|---|
| 177 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
|---|
| 178 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
|---|
| 179 | | --exec=* | --exe=* | --ex=*)
|
|---|
| 180 | exec_prefix="$ac_optarg" ;;
|
|---|
| 181 |
|
|---|
| 182 | -gas | --gas | --ga | --g)
|
|---|
| 183 | # Obsolete; use --with-gas.
|
|---|
| 184 | with_gas=yes ;;
|
|---|
| 185 |
|
|---|
| 186 | -help | --help | --hel | --he)
|
|---|
| 187 | # Omit some internal or obsolete options to make the list less imposing.
|
|---|
| 188 | # This message is too long to be a string in the A/UX 3.1 sh.
|
|---|
| 189 | cat << EOF
|
|---|
| 190 | Usage: configure [options] [host]
|
|---|
| 191 | Options: [defaults in brackets after descriptions]
|
|---|
| 192 | Configuration:
|
|---|
| 193 | --cache-file=FILE cache test results in FILE
|
|---|
| 194 | --help print this message
|
|---|
| 195 | --no-create do not create output files
|
|---|
| 196 | --quiet, --silent do not print \`checking...' messages
|
|---|
| 197 | --version print the version of autoconf that created configure
|
|---|
| 198 | Directory and file names:
|
|---|
| 199 | --prefix=PREFIX install architecture-independent files in PREFIX
|
|---|
| 200 | [$ac_default_prefix]
|
|---|
| 201 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
|---|
| 202 | [same as prefix]
|
|---|
| 203 | --bindir=DIR user executables in DIR [EPREFIX/bin]
|
|---|
| 204 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
|---|
| 205 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
|---|
| 206 | --datadir=DIR read-only architecture-independent data in DIR
|
|---|
| 207 | [PREFIX/share]
|
|---|
| 208 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
|---|
| 209 | --sharedstatedir=DIR modifiable architecture-independent data in DIR
|
|---|
| 210 | [PREFIX/com]
|
|---|
| 211 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
|---|
| 212 | --libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
|---|
| 213 | --includedir=DIR C header files in DIR [PREFIX/include]
|
|---|
| 214 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
|---|
| 215 | --infodir=DIR info documentation in DIR [PREFIX/info]
|
|---|
| 216 | --mandir=DIR man documentation in DIR [PREFIX/man]
|
|---|
| 217 | --srcdir=DIR find the sources in DIR [configure dir or ..]
|
|---|
| 218 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
|---|
| 219 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
|---|
| 220 | --program-transform-name=PROGRAM
|
|---|
| 221 | run sed PROGRAM on installed program names
|
|---|
| 222 | EOF
|
|---|
| 223 | cat << EOF
|
|---|
| 224 | Host type:
|
|---|
| 225 | --build=BUILD configure for building on BUILD [BUILD=HOST]
|
|---|
| 226 | --host=HOST configure for HOST [guessed]
|
|---|
| 227 | --target=TARGET configure for TARGET [TARGET=HOST]
|
|---|
| 228 | Features and packages:
|
|---|
| 229 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
|---|
| 230 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
|---|
| 231 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
|---|
| 232 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
|---|
| 233 | --x-includes=DIR X include files are in DIR
|
|---|
| 234 | --x-libraries=DIR X library files are in DIR
|
|---|
| 235 | EOF
|
|---|
| 236 | if test -n "$ac_help"; then
|
|---|
| 237 | echo "--enable and --with options recognized:$ac_help"
|
|---|
| 238 | fi
|
|---|
| 239 | exit 0 ;;
|
|---|
| 240 |
|
|---|
| 241 | -host | --host | --hos | --ho)
|
|---|
| 242 | ac_prev=host ;;
|
|---|
| 243 | -host=* | --host=* | --hos=* | --ho=*)
|
|---|
| 244 | host="$ac_optarg" ;;
|
|---|
| 245 |
|
|---|
| 246 | -includedir | --includedir | --includedi | --included | --include \
|
|---|
| 247 | | --includ | --inclu | --incl | --inc)
|
|---|
| 248 | ac_prev=includedir ;;
|
|---|
| 249 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
|---|
| 250 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
|---|
| 251 | includedir="$ac_optarg" ;;
|
|---|
| 252 |
|
|---|
| 253 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
|---|
| 254 | ac_prev=infodir ;;
|
|---|
| 255 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
|---|
| 256 | infodir="$ac_optarg" ;;
|
|---|
| 257 |
|
|---|
| 258 | -libdir | --libdir | --libdi | --libd)
|
|---|
| 259 | ac_prev=libdir ;;
|
|---|
| 260 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
|---|
| 261 | libdir="$ac_optarg" ;;
|
|---|
| 262 |
|
|---|
| 263 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
|---|
| 264 | | --libexe | --libex | --libe)
|
|---|
| 265 | ac_prev=libexecdir ;;
|
|---|
| 266 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
|---|
| 267 | | --libexe=* | --libex=* | --libe=*)
|
|---|
| 268 | libexecdir="$ac_optarg" ;;
|
|---|
| 269 |
|
|---|
| 270 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
|---|
| 271 | | --localstate | --localstat | --localsta | --localst \
|
|---|
| 272 | | --locals | --local | --loca | --loc | --lo)
|
|---|
| 273 | ac_prev=localstatedir ;;
|
|---|
| 274 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
|---|
| 275 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
|---|
| 276 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
|---|
| 277 | localstatedir="$ac_optarg" ;;
|
|---|
| 278 |
|
|---|
| 279 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
|---|
| 280 | ac_prev=mandir ;;
|
|---|
| 281 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
|---|
| 282 | mandir="$ac_optarg" ;;
|
|---|
| 283 |
|
|---|
| 284 | -nfp | --nfp | --nf)
|
|---|
| 285 | # Obsolete; use --without-fp.
|
|---|
| 286 | with_fp=no ;;
|
|---|
| 287 |
|
|---|
| 288 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|---|
| 289 | | --no-cr | --no-c)
|
|---|
| 290 | no_create=yes ;;
|
|---|
| 291 |
|
|---|
| 292 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|---|
| 293 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
|---|
| 294 | no_recursion=yes ;;
|
|---|
| 295 |
|
|---|
| 296 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
|---|
| 297 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
|---|
| 298 | | --oldin | --oldi | --old | --ol | --o)
|
|---|
| 299 | ac_prev=oldincludedir ;;
|
|---|
| 300 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
|---|
| 301 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
|---|
| 302 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
|---|
| 303 | oldincludedir="$ac_optarg" ;;
|
|---|
| 304 |
|
|---|
| 305 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
|---|
| 306 | ac_prev=prefix ;;
|
|---|
| 307 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
|---|
| 308 | prefix="$ac_optarg" ;;
|
|---|
| 309 |
|
|---|
| 310 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
|---|
| 311 | | --program-pre | --program-pr | --program-p)
|
|---|
| 312 | ac_prev=program_prefix ;;
|
|---|
| 313 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
|---|
| 314 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
|---|
| 315 | program_prefix="$ac_optarg" ;;
|
|---|
| 316 |
|
|---|
| 317 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
|---|
| 318 | | --program-suf | --program-su | --program-s)
|
|---|
| 319 | ac_prev=program_suffix ;;
|
|---|
| 320 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
|---|
| 321 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
|---|
| 322 | program_suffix="$ac_optarg" ;;
|
|---|
| 323 |
|
|---|
| 324 | -program-transform-name | --program-transform-name \
|
|---|
| 325 | | --program-transform-nam | --program-transform-na \
|
|---|
| 326 | | --program-transform-n | --program-transform- \
|
|---|
| 327 | | --program-transform | --program-transfor \
|
|---|
| 328 | | --program-transfo | --program-transf \
|
|---|
| 329 | | --program-trans | --program-tran \
|
|---|
| 330 | | --progr-tra | --program-tr | --program-t)
|
|---|
| 331 | ac_prev=program_transform_name ;;
|
|---|
| 332 | -program-transform-name=* | --program-transform-name=* \
|
|---|
| 333 | | --program-transform-nam=* | --program-transform-na=* \
|
|---|
| 334 | | --program-transform-n=* | --program-transform-=* \
|
|---|
| 335 | | --program-transform=* | --program-transfor=* \
|
|---|
| 336 | | --program-transfo=* | --program-transf=* \
|
|---|
| 337 | | --program-trans=* | --program-tran=* \
|
|---|
| 338 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
|---|
| 339 | program_transform_name="$ac_optarg" ;;
|
|---|
| 340 |
|
|---|
| 341 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|---|
| 342 | | -silent | --silent | --silen | --sile | --sil)
|
|---|
| 343 | silent=yes ;;
|
|---|
| 344 |
|
|---|
| 345 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
|---|
| 346 | ac_prev=sbindir ;;
|
|---|
| 347 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
|---|
| 348 | | --sbi=* | --sb=*)
|
|---|
| 349 | sbindir="$ac_optarg" ;;
|
|---|
| 350 |
|
|---|
| 351 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
|---|
| 352 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
|---|
| 353 | | --sharedst | --shareds | --shared | --share | --shar \
|
|---|
| 354 | | --sha | --sh)
|
|---|
| 355 | ac_prev=sharedstatedir ;;
|
|---|
| 356 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
|---|
| 357 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
|---|
| 358 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
|---|
| 359 | | --sha=* | --sh=*)
|
|---|
| 360 | sharedstatedir="$ac_optarg" ;;
|
|---|
| 361 |
|
|---|
| 362 | -site | --site | --sit)
|
|---|
| 363 | ac_prev=site ;;
|
|---|
| 364 | -site=* | --site=* | --sit=*)
|
|---|
| 365 | site="$ac_optarg" ;;
|
|---|
| 366 |
|
|---|
| 367 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
|---|
| 368 | ac_prev=srcdir ;;
|
|---|
| 369 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
|---|
| 370 | srcdir="$ac_optarg" ;;
|
|---|
| 371 |
|
|---|
| 372 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
|---|
| 373 | | --syscon | --sysco | --sysc | --sys | --sy)
|
|---|
| 374 | ac_prev=sysconfdir ;;
|
|---|
| 375 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
|---|
| 376 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
|---|
| 377 | sysconfdir="$ac_optarg" ;;
|
|---|
| 378 |
|
|---|
| 379 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
|---|
| 380 | ac_prev=target ;;
|
|---|
| 381 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
|---|
| 382 | target="$ac_optarg" ;;
|
|---|
| 383 |
|
|---|
| 384 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
|---|
| 385 | verbose=yes ;;
|
|---|
| 386 |
|
|---|
| 387 | -version | --version | --versio | --versi | --vers)
|
|---|
| 388 | echo "configure generated by autoconf version 2.13"
|
|---|
| 389 | exit 0 ;;
|
|---|
| 390 |
|
|---|
| 391 | -with-* | --with-*)
|
|---|
| 392 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
|---|
| 393 | # Reject names that are not valid shell variable names.
|
|---|
| 394 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|---|
| 395 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|---|
| 396 | fi
|
|---|
| 397 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|---|
| 398 | case "$ac_option" in
|
|---|
| 399 | *=*) ;;
|
|---|
| 400 | *) ac_optarg=yes ;;
|
|---|
| 401 | esac
|
|---|
| 402 | eval "with_${ac_package}='$ac_optarg'" ;;
|
|---|
| 403 |
|
|---|
| 404 | -without-* | --without-*)
|
|---|
| 405 | ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
|---|
| 406 | # Reject names that are not valid shell variable names.
|
|---|
| 407 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|---|
| 408 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|---|
| 409 | fi
|
|---|
| 410 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|---|
| 411 | eval "with_${ac_package}=no" ;;
|
|---|
| 412 |
|
|---|
| 413 | --x)
|
|---|
| 414 | # Obsolete; use --with-x.
|
|---|
| 415 | with_x=yes ;;
|
|---|
| 416 |
|
|---|
| 417 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
|---|
| 418 | | --x-incl | --x-inc | --x-in | --x-i)
|
|---|
| 419 | ac_prev=x_includes ;;
|
|---|
| 420 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
|---|
| 421 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
|---|
| 422 | x_includes="$ac_optarg" ;;
|
|---|
| 423 |
|
|---|
| 424 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
|---|
| 425 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
|---|
| 426 | ac_prev=x_libraries ;;
|
|---|
| 427 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
|---|
| 428 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
|---|
| 429 | x_libraries="$ac_optarg" ;;
|
|---|
| 430 |
|
|---|
| 431 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
|---|
| 432 | ;;
|
|---|
| 433 |
|
|---|
| 434 | *)
|
|---|
| 435 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
|---|
| 436 | echo "configure: warning: $ac_option: invalid host type" 1>&2
|
|---|
| 437 | fi
|
|---|
| 438 | if test "x$nonopt" != xNONE; then
|
|---|
| 439 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
|---|
| 440 | fi
|
|---|
| 441 | nonopt="$ac_option"
|
|---|
| 442 | ;;
|
|---|
| 443 |
|
|---|
| 444 | esac
|
|---|
| 445 | done
|
|---|
| 446 |
|
|---|
| 447 | if test -n "$ac_prev"; then
|
|---|
| 448 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
|---|
| 449 | fi
|
|---|
| 450 |
|
|---|
| 451 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|---|
| 452 |
|
|---|
| 453 | # File descriptor usage:
|
|---|
| 454 | # 0 standard input
|
|---|
| 455 | # 1 file creation
|
|---|
| 456 | # 2 errors and warnings
|
|---|
| 457 | # 3 some systems may open it to /dev/tty
|
|---|
| 458 | # 4 used on the Kubota Titan
|
|---|
| 459 | # 6 checking for... messages and results
|
|---|
| 460 | # 5 compiler messages saved in config.log
|
|---|
| 461 | if test "$silent" = yes; then
|
|---|
| 462 | exec 6>/dev/null
|
|---|
| 463 | else
|
|---|
| 464 | exec 6>&1
|
|---|
| 465 | fi
|
|---|
| 466 | exec 5>./config.log
|
|---|
| 467 |
|
|---|
| 468 | echo "\
|
|---|
| 469 | This file contains any messages produced by compilers while
|
|---|
| 470 | running configure, to aid debugging if configure makes a mistake.
|
|---|
| 471 | " 1>&5
|
|---|
| 472 |
|
|---|
| 473 | # Strip out --no-create and --no-recursion so they do not pile up.
|
|---|
| 474 | # Also quote any args containing shell metacharacters.
|
|---|
| 475 | ac_configure_args=
|
|---|
| 476 | for ac_arg
|
|---|
| 477 | do
|
|---|
| 478 | case "$ac_arg" in
|
|---|
| 479 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|---|
| 480 | | --no-cr | --no-c) ;;
|
|---|
| 481 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|---|
| 482 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
|---|
| 483 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
|---|
| 484 | ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
|---|
| 485 | *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
|---|
| 486 | esac
|
|---|
| 487 | done
|
|---|
| 488 |
|
|---|
| 489 | # NLS nuisances.
|
|---|
| 490 | # Only set these to C if already set. These must not be set unconditionally
|
|---|
| 491 | # because not all systems understand e.g. LANG=C (notably SCO).
|
|---|
| 492 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
|---|
| 493 | # Non-C LC_CTYPE values break the ctype check.
|
|---|
| 494 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
|---|
| 495 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
|---|
| 496 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
|---|
| 497 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
|---|
| 498 |
|
|---|
| 499 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
|---|
| 500 | rm -rf conftest* confdefs.h
|
|---|
| 501 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
|---|
| 502 | echo > confdefs.h
|
|---|
| 503 |
|
|---|
| 504 | # A filename unique to this package, relative to the directory that
|
|---|
| 505 | # configure is in, which we can look for to find out if srcdir is correct.
|
|---|
| 506 | ac_unique_file=java/lang/System.java
|
|---|
| 507 |
|
|---|
| 508 | # Find the source files, if location was not specified.
|
|---|
| 509 | if test -z "$srcdir"; then
|
|---|
| 510 | ac_srcdir_defaulted=yes
|
|---|
| 511 | # Try the directory containing this script, then its parent.
|
|---|
| 512 | ac_prog=$0
|
|---|
| 513 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
|---|
| 514 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
|---|
| 515 | srcdir=$ac_confdir
|
|---|
| 516 | if test ! -r $srcdir/$ac_unique_file; then
|
|---|
| 517 | srcdir=..
|
|---|
| 518 | fi
|
|---|
| 519 | else
|
|---|
| 520 | ac_srcdir_defaulted=no
|
|---|
| 521 | fi
|
|---|
| 522 | if test ! -r $srcdir/$ac_unique_file; then
|
|---|
| 523 | if test "$ac_srcdir_defaulted" = yes; then
|
|---|
| 524 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
|---|
| 525 | else
|
|---|
| 526 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
|---|
| 527 | fi
|
|---|
| 528 | fi
|
|---|
| 529 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
|---|
| 530 |
|
|---|
| 531 | # Prefer explicitly selected file to automatically selected ones.
|
|---|
| 532 | if test -z "$CONFIG_SITE"; then
|
|---|
| 533 | if test "x$prefix" != xNONE; then
|
|---|
| 534 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
|---|
| 535 | else
|
|---|
| 536 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
|---|
| 537 | fi
|
|---|
| 538 | fi
|
|---|
| 539 | for ac_site_file in $CONFIG_SITE; do
|
|---|
| 540 | if test -r "$ac_site_file"; then
|
|---|
| 541 | echo "loading site script $ac_site_file"
|
|---|
| 542 | . "$ac_site_file"
|
|---|
| 543 | fi
|
|---|
| 544 | done
|
|---|
| 545 |
|
|---|
| 546 | if test -r "$cache_file"; then
|
|---|
| 547 | echo "loading cache $cache_file"
|
|---|
| 548 | . $cache_file
|
|---|
| 549 | else
|
|---|
| 550 | echo "creating cache $cache_file"
|
|---|
| 551 | > $cache_file
|
|---|
| 552 | fi
|
|---|
| 553 |
|
|---|
| 554 | ac_ext=c
|
|---|
| 555 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 556 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 557 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 558 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 559 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 560 |
|
|---|
| 561 | ac_exeext=
|
|---|
| 562 | ac_objext=o
|
|---|
| 563 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
|---|
| 564 | # Stardent Vistra SVR4 grep lacks -e, says [email protected].
|
|---|
| 565 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
|---|
| 566 | ac_n= ac_c='
|
|---|
| 567 | ' ac_t=' '
|
|---|
| 568 | else
|
|---|
| 569 | ac_n=-n ac_c= ac_t=
|
|---|
| 570 | fi
|
|---|
| 571 | else
|
|---|
| 572 | ac_n= ac_c='\c' ac_t=
|
|---|
| 573 | fi
|
|---|
| 574 |
|
|---|
| 575 | echo $ac_n "checking for path separator""... $ac_c" 1>&6
|
|---|
| 576 | echo "configure:577: checking for path separator" >&5
|
|---|
| 577 | # Filter path to get backslahes into forwardslashes
|
|---|
| 578 | case "`uname -s 2> /dev/null`" in
|
|---|
| 579 | OS/2)
|
|---|
| 580 | PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
|
|---|
| 581 | PATH_IFS=';'
|
|---|
| 582 | ;;
|
|---|
| 583 | *)
|
|---|
| 584 | PATH_IFS=':'
|
|---|
| 585 | ;;
|
|---|
| 586 | esac
|
|---|
| 587 | echo "$ac_t""${PATH_IFS}" 1>&6
|
|---|
| 588 |
|
|---|
| 589 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
|
|---|
| 590 | echo "configure:591: checking for Cygwin environment" >&5
|
|---|
| 591 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
|
|---|
| 592 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 593 | else
|
|---|
| 594 | cat > conftest.$ac_ext <<EOF
|
|---|
| 595 | #line 596 "configure"
|
|---|
| 596 | #include "confdefs.h"
|
|---|
| 597 |
|
|---|
| 598 | int main() {
|
|---|
| 599 |
|
|---|
| 600 | #ifndef __CYGWIN__
|
|---|
| 601 | #define __CYGWIN__ __CYGWIN32__
|
|---|
| 602 | #endif
|
|---|
| 603 | return __CYGWIN__;
|
|---|
| 604 | ; return 0; }
|
|---|
| 605 | EOF
|
|---|
| 606 | if { (eval echo configure:607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 607 | rm -rf conftest*
|
|---|
| 608 | ac_cv_cygwin=yes
|
|---|
| 609 | else
|
|---|
| 610 | echo "configure: failed program was:" >&5
|
|---|
| 611 | cat conftest.$ac_ext >&5
|
|---|
| 612 | rm -rf conftest*
|
|---|
| 613 | ac_cv_cygwin=no
|
|---|
| 614 | fi
|
|---|
| 615 | rm -f conftest*
|
|---|
| 616 | rm -f conftest*
|
|---|
| 617 | fi
|
|---|
| 618 |
|
|---|
| 619 | echo "$ac_t""$ac_cv_cygwin" 1>&6
|
|---|
| 620 | CYGWIN=
|
|---|
| 621 | test "$ac_cv_cygwin" = yes && CYGWIN=yes
|
|---|
| 622 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
|
|---|
| 623 | echo "configure:624: checking for mingw32 environment" >&5
|
|---|
| 624 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
|
|---|
| 625 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 626 | else
|
|---|
| 627 | cat > conftest.$ac_ext <<EOF
|
|---|
| 628 | #line 629 "configure"
|
|---|
| 629 | #include "confdefs.h"
|
|---|
| 630 |
|
|---|
| 631 | int main() {
|
|---|
| 632 | return __MINGW32__;
|
|---|
| 633 | ; return 0; }
|
|---|
| 634 | EOF
|
|---|
| 635 | if { (eval echo configure:636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 636 | rm -rf conftest*
|
|---|
| 637 | ac_cv_mingw32=yes
|
|---|
| 638 | else
|
|---|
| 639 | echo "configure: failed program was:" >&5
|
|---|
| 640 | cat conftest.$ac_ext >&5
|
|---|
| 641 | rm -rf conftest*
|
|---|
| 642 | ac_cv_mingw32=no
|
|---|
| 643 | fi
|
|---|
| 644 | rm -f conftest*
|
|---|
| 645 | rm -f conftest*
|
|---|
| 646 | fi
|
|---|
| 647 |
|
|---|
| 648 | echo "$ac_t""$ac_cv_mingw32" 1>&6
|
|---|
| 649 | MINGW32=
|
|---|
| 650 | test "$ac_cv_mingw32" = yes && MINGW32=yes
|
|---|
| 651 | echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
|
|---|
| 652 | echo "configure:653: checking for EMX/OS2 environment" >&5
|
|---|
| 653 | if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
|
|---|
| 654 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 655 | else
|
|---|
| 656 | : ${CC=gcc.exe}
|
|---|
| 657 | cat > conftest.$ac_ext <<EOF
|
|---|
| 658 | #line 659 "configure"
|
|---|
| 659 | #include "confdefs.h"
|
|---|
| 660 |
|
|---|
| 661 | int main() {
|
|---|
| 662 | return __EMX__;
|
|---|
| 663 | ; return 0; }
|
|---|
| 664 | EOF
|
|---|
| 665 | if { (eval echo configure:666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 666 | rm -rf conftest*
|
|---|
| 667 | ac_cv_emxos2=yes
|
|---|
| 668 | else
|
|---|
| 669 | echo "configure: failed program was:" >&5
|
|---|
| 670 | cat conftest.$ac_ext >&5
|
|---|
| 671 | rm -rf conftest*
|
|---|
| 672 | ac_cv_emxos2=no
|
|---|
| 673 | fi
|
|---|
| 674 | rm -f conftest*
|
|---|
| 675 | rm -f conftest*
|
|---|
| 676 | fi
|
|---|
| 677 |
|
|---|
| 678 | echo "$ac_t""$ac_cv_emxos2" 1>&6
|
|---|
| 679 | if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
|
|---|
| 680 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 681 | else
|
|---|
| 682 | if test "$ac_cv_emxos2" = yes ; then
|
|---|
| 683 | ac_cv_libpre=
|
|---|
| 684 | else
|
|---|
| 685 | ac_cv_libpre=lib
|
|---|
| 686 | fi
|
|---|
| 687 |
|
|---|
| 688 | fi
|
|---|
| 689 |
|
|---|
| 690 | EMXOS2=
|
|---|
| 691 | test "$ac_cv_emxos2" = yes && EMXOS2=yes
|
|---|
| 692 |
|
|---|
| 693 |
|
|---|
| 694 |
|
|---|
| 695 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
|---|
| 696 | echo "configure:697: checking for executable suffix" >&5
|
|---|
| 697 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
|---|
| 698 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 699 | else
|
|---|
| 700 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
|---|
| 701 | ac_cv_exeext=.exe
|
|---|
| 702 | else
|
|---|
| 703 | rm -f conftest*
|
|---|
| 704 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
|---|
| 705 | ac_cv_exeext=
|
|---|
| 706 | if { (eval echo configure:707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
|---|
| 707 | for file in conftest.*; do
|
|---|
| 708 | case $file in
|
|---|
| 709 | *.c | *.o | *.obj) ;;
|
|---|
| 710 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
|---|
| 711 | esac
|
|---|
| 712 | done
|
|---|
| 713 | else
|
|---|
| 714 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 715 | fi
|
|---|
| 716 | rm -f conftest*
|
|---|
| 717 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
|---|
| 718 | fi
|
|---|
| 719 | fi
|
|---|
| 720 |
|
|---|
| 721 | EXEEXT=""
|
|---|
| 722 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
|---|
| 723 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
|---|
| 724 | ac_exeext=$EXEEXT
|
|---|
| 725 |
|
|---|
| 726 |
|
|---|
| 727 |
|
|---|
| 728 | # This works around the fact that libtool configuration may change LD
|
|---|
| 729 | # for this particular configuration, but some shells, instead of
|
|---|
| 730 | # keeping the changes in LD private, export them just because LD is
|
|---|
| 731 | # exported.
|
|---|
| 732 | ORIGINAL_LD_FOR_MULTILIBS=$LD
|
|---|
| 733 |
|
|---|
| 734 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
|---|
| 735 | echo "configure:736: checking whether ln -s works" >&5
|
|---|
| 736 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
|
|---|
| 737 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 738 | else
|
|---|
| 739 | rm -f conftestdata
|
|---|
| 740 | if ln -s X conftestdata 2>/dev/null
|
|---|
| 741 | then
|
|---|
| 742 | rm -f conftestdata
|
|---|
| 743 | ac_cv_prog_LN_S="ln -s"
|
|---|
| 744 | else
|
|---|
| 745 | echo A > conftestdata;
|
|---|
| 746 | if ln conftestdata conftestdata2 2>/dev/null; then
|
|---|
| 747 | ac_cv_prog_LN_S=ln
|
|---|
| 748 | else
|
|---|
| 749 | ac_cv_prog_LN_S=cp
|
|---|
| 750 | fi
|
|---|
| 751 | fi
|
|---|
| 752 | rm -f conftestdata*
|
|---|
| 753 | fi
|
|---|
| 754 | LN_S="$ac_cv_prog_LN_S"
|
|---|
| 755 | if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
|---|
| 756 | echo "$ac_t""yes" 1>&6
|
|---|
| 757 | else
|
|---|
| 758 | echo "$ac_t""no" 1>&6
|
|---|
| 759 | fi
|
|---|
| 760 |
|
|---|
| 761 |
|
|---|
| 762 | # Check whether --with-target-subdir or --without-target-subdir was given.
|
|---|
| 763 | if test "${with_target_subdir+set}" = set; then
|
|---|
| 764 | withval="$with_target_subdir"
|
|---|
| 765 | :
|
|---|
| 766 | fi
|
|---|
| 767 |
|
|---|
| 768 | # Check whether --with-cross-host or --without-cross-host was given.
|
|---|
| 769 | if test "${with_cross_host+set}" = set; then
|
|---|
| 770 | withval="$with_cross_host"
|
|---|
| 771 | :
|
|---|
| 772 | fi
|
|---|
| 773 |
|
|---|
| 774 |
|
|---|
| 775 | # Find a good install program. We prefer a C program (faster),
|
|---|
| 776 | # so one script is as good as another. But avoid the broken or
|
|---|
| 777 | # incompatible versions:
|
|---|
| 778 | # SysV /etc/install, /usr/sbin/install
|
|---|
| 779 | # SunOS /usr/etc/install
|
|---|
| 780 | # IRIX /sbin/install
|
|---|
| 781 | # AIX /bin/install
|
|---|
| 782 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
|---|
| 783 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|---|
| 784 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|---|
| 785 | # ./install, which can be erroneously created by make from ./install.sh.
|
|---|
| 786 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
|---|
| 787 | echo "configure:788: checking for a BSD compatible install" >&5
|
|---|
| 788 | if test -z "$INSTALL"; then
|
|---|
| 789 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
|---|
| 790 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 791 | else
|
|---|
| 792 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
|
|---|
| 793 | for ac_dir in $PATH; do
|
|---|
| 794 | # Account for people who put trailing slashes in PATH elements.
|
|---|
| 795 | case "$ac_dir/" in
|
|---|
| 796 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
|---|
| 797 | # We reject the install program from OS/2 or W3.1
|
|---|
| 798 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
|
|---|
| 799 | *)
|
|---|
| 800 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
|---|
| 801 | # Don't use installbsd from OSF since it installs stuff as root
|
|---|
| 802 | # by default.
|
|---|
| 803 | for ac_prog in ginstall scoinst install; do
|
|---|
| 804 | if test -f $ac_dir/$ac_prog$ac_exeext; then
|
|---|
| 805 | if test $ac_prog = install &&
|
|---|
| 806 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|---|
| 807 | # AIX install. It has an incompatible calling convention.
|
|---|
| 808 | :
|
|---|
| 809 | else
|
|---|
| 810 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
|
|---|
| 811 | break 2
|
|---|
| 812 | fi
|
|---|
| 813 | fi
|
|---|
| 814 | done
|
|---|
| 815 | ;;
|
|---|
| 816 | esac
|
|---|
| 817 | done
|
|---|
| 818 | IFS="$ac_save_IFS"
|
|---|
| 819 |
|
|---|
| 820 | fi
|
|---|
| 821 | if test "${ac_cv_path_install+set}" = set; then
|
|---|
| 822 | INSTALL="$ac_cv_path_install"
|
|---|
| 823 | else
|
|---|
| 824 | # As a last resort, use the slow shell script. We don't cache a
|
|---|
| 825 | # path for INSTALL within a source directory, because that will
|
|---|
| 826 | # break other packages using the cache if that directory is
|
|---|
| 827 | # removed, or if the path is relative.
|
|---|
| 828 | INSTALL="$ac_install_sh"
|
|---|
| 829 | fi
|
|---|
| 830 | fi
|
|---|
| 831 | echo "$ac_t""$INSTALL" 1>&6
|
|---|
| 832 |
|
|---|
| 833 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
|---|
| 834 | # It thinks the first close brace ends the variable substitution.
|
|---|
| 835 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|---|
| 836 |
|
|---|
| 837 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
|---|
| 838 |
|
|---|
| 839 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|---|
| 840 |
|
|---|
| 841 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
|
|---|
| 842 | echo "configure:843: checking whether build environment is sane" >&5
|
|---|
| 843 | # Just in case
|
|---|
| 844 | sleep 1
|
|---|
| 845 | echo timestamp > conftestfile
|
|---|
| 846 | # Do `set' in a subshell so we don't clobber the current shell's
|
|---|
| 847 | # arguments. Must try -L first in case configure is actually a
|
|---|
| 848 | # symlink; some systems play weird games with the mod time of symlinks
|
|---|
| 849 | # (eg FreeBSD returns the mod time of the symlink's containing
|
|---|
| 850 | # directory).
|
|---|
| 851 | if (
|
|---|
| 852 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
|
|---|
| 853 | if test "$*" = "X"; then
|
|---|
| 854 | # -L didn't work.
|
|---|
| 855 | set X `ls -t $srcdir/configure conftestfile`
|
|---|
| 856 | fi
|
|---|
| 857 | if test "$*" != "X $srcdir/configure conftestfile" \
|
|---|
| 858 | && test "$*" != "X conftestfile $srcdir/configure"; then
|
|---|
| 859 |
|
|---|
| 860 | # If neither matched, then we have a broken ls. This can happen
|
|---|
| 861 | # if, for instance, CONFIG_SHELL is bash and it inherits a
|
|---|
| 862 | # broken ls alias from the environment. This has actually
|
|---|
| 863 | # happened. Such a system could not be considered "sane".
|
|---|
| 864 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
|
|---|
| 865 | alias in your environment" 1>&2; exit 1; }
|
|---|
| 866 | fi
|
|---|
| 867 |
|
|---|
| 868 | test "$2" = conftestfile
|
|---|
| 869 | )
|
|---|
| 870 | then
|
|---|
| 871 | # Ok.
|
|---|
| 872 | :
|
|---|
| 873 | else
|
|---|
| 874 | { echo "configure: error: newly created file is older than distributed files!
|
|---|
| 875 | Check your system clock" 1>&2; exit 1; }
|
|---|
| 876 | fi
|
|---|
| 877 | rm -f conftest*
|
|---|
| 878 | echo "$ac_t""yes" 1>&6
|
|---|
| 879 | if test "$program_transform_name" = s,x,x,; then
|
|---|
| 880 | program_transform_name=
|
|---|
| 881 | else
|
|---|
| 882 | # Double any \ or $. echo might interpret backslashes.
|
|---|
| 883 | cat <<\EOF_SED > conftestsed
|
|---|
| 884 | s,\\,\\\\,g; s,\$,$$,g
|
|---|
| 885 | EOF_SED
|
|---|
| 886 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
|---|
| 887 | rm -f conftestsed
|
|---|
| 888 | fi
|
|---|
| 889 | test "$program_prefix" != NONE &&
|
|---|
| 890 | program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
|---|
| 891 | # Use a double $ so make ignores it.
|
|---|
| 892 | test "$program_suffix" != NONE &&
|
|---|
| 893 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
|---|
| 894 |
|
|---|
| 895 | # sed with no file args requires a program.
|
|---|
| 896 | test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
|---|
| 897 |
|
|---|
| 898 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
|---|
| 899 | echo "configure:900: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
|---|
| 900 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
|---|
| 901 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
|---|
| 902 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 903 | else
|
|---|
| 904 | cat > conftestmake <<\EOF
|
|---|
| 905 | all:
|
|---|
| 906 | @echo 'ac_maketemp="${MAKE}"'
|
|---|
| 907 | EOF
|
|---|
| 908 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|---|
| 909 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
|---|
| 910 | if test -n "$ac_maketemp"; then
|
|---|
| 911 | eval ac_cv_prog_make_${ac_make}_set=yes
|
|---|
| 912 | else
|
|---|
| 913 | eval ac_cv_prog_make_${ac_make}_set=no
|
|---|
| 914 | fi
|
|---|
| 915 | rm -f conftestmake
|
|---|
| 916 | fi
|
|---|
| 917 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
|---|
| 918 | echo "$ac_t""yes" 1>&6
|
|---|
| 919 | SET_MAKE=
|
|---|
| 920 | else
|
|---|
| 921 | echo "$ac_t""no" 1>&6
|
|---|
| 922 | SET_MAKE="MAKE=${MAKE-make}"
|
|---|
| 923 | fi
|
|---|
| 924 |
|
|---|
| 925 | if test $host != $build; then
|
|---|
| 926 | ac_tool_prefix=${host_alias}-
|
|---|
| 927 | else
|
|---|
| 928 | ac_tool_prefix=
|
|---|
| 929 | fi
|
|---|
| 930 |
|
|---|
| 931 |
|
|---|
| 932 | # Check whether --enable-multilib or --disable-multilib was given.
|
|---|
| 933 | if test "${enable_multilib+set}" = set; then
|
|---|
| 934 | enableval="$enable_multilib"
|
|---|
| 935 | case "${enableval}" in
|
|---|
| 936 | yes) multilib=yes ;;
|
|---|
| 937 | no) multilib=no ;;
|
|---|
| 938 | *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
|
|---|
| 939 | esac
|
|---|
| 940 | else
|
|---|
| 941 | multilib=yes
|
|---|
| 942 | fi
|
|---|
| 943 |
|
|---|
| 944 |
|
|---|
| 945 | # When building with srcdir == objdir, links to the source files will
|
|---|
| 946 | # be created in directories within the target_subdir. We have to
|
|---|
| 947 | # adjust toplevel_srcdir accordingly, so that configure finds
|
|---|
| 948 | # install-sh and other auxiliary files that live in the top-level
|
|---|
| 949 | # source directory.
|
|---|
| 950 | if test "${srcdir}" = "."; then
|
|---|
| 951 | if test -z "${with_target_subdir}"; then
|
|---|
| 952 | toprel=".."
|
|---|
| 953 | else
|
|---|
| 954 | if test "${with_target_subdir}" != "."; then
|
|---|
| 955 | toprel="${with_multisrctop}../.."
|
|---|
| 956 | else
|
|---|
| 957 | toprel="${with_multisrctop}.."
|
|---|
| 958 | fi
|
|---|
| 959 | fi
|
|---|
| 960 | else
|
|---|
| 961 | toprel=".."
|
|---|
| 962 | fi
|
|---|
| 963 |
|
|---|
| 964 | libgcj_basedir=$srcdir/$toprel/./libjava
|
|---|
| 965 |
|
|---|
| 966 |
|
|---|
| 967 | ac_aux_dir=
|
|---|
| 968 | for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
|
|---|
| 969 | if test -f $ac_dir/install-sh; then
|
|---|
| 970 | ac_aux_dir=$ac_dir
|
|---|
| 971 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
|---|
| 972 | break
|
|---|
| 973 | elif test -f $ac_dir/install.sh; then
|
|---|
| 974 | ac_aux_dir=$ac_dir
|
|---|
| 975 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
|---|
| 976 | break
|
|---|
| 977 | fi
|
|---|
| 978 | done
|
|---|
| 979 | if test -z "$ac_aux_dir"; then
|
|---|
| 980 | { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
|
|---|
| 981 | fi
|
|---|
| 982 | ac_config_guess=$ac_aux_dir/config.guess
|
|---|
| 983 | ac_config_sub=$ac_aux_dir/config.sub
|
|---|
| 984 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
|---|
| 985 |
|
|---|
| 986 | if :; then :; else
|
|---|
| 987 | # This overrides the previous occurrence for automake, but not for
|
|---|
| 988 | # autoconf, which is exactly what we want.
|
|---|
| 989 | ac_aux_dir=
|
|---|
| 990 | for ac_dir in .. $srcdir/..; do
|
|---|
| 991 | if test -f $ac_dir/install-sh; then
|
|---|
| 992 | ac_aux_dir=$ac_dir
|
|---|
| 993 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
|---|
| 994 | break
|
|---|
| 995 | elif test -f $ac_dir/install.sh; then
|
|---|
| 996 | ac_aux_dir=$ac_dir
|
|---|
| 997 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
|---|
| 998 | break
|
|---|
| 999 | fi
|
|---|
| 1000 | done
|
|---|
| 1001 | if test -z "$ac_aux_dir"; then
|
|---|
| 1002 | { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
|
|---|
| 1003 | fi
|
|---|
| 1004 | ac_config_guess=$ac_aux_dir/config.guess
|
|---|
| 1005 | ac_config_sub=$ac_aux_dir/config.sub
|
|---|
| 1006 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
|---|
| 1007 |
|
|---|
| 1008 | fi
|
|---|
| 1009 |
|
|---|
| 1010 | # This works around an automake problem.
|
|---|
| 1011 | mkinstalldirs="`cd $ac_aux_dir && pwd`/mkinstalldirs"
|
|---|
| 1012 |
|
|---|
| 1013 |
|
|---|
| 1014 |
|
|---|
| 1015 | # Do some error checking and defaulting for the host and target type.
|
|---|
| 1016 | # The inputs are:
|
|---|
| 1017 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT
|
|---|
| 1018 | #
|
|---|
| 1019 | # The rules are:
|
|---|
| 1020 | # 1. You are not allowed to specify --host, --target, and nonopt at the
|
|---|
| 1021 | # same time.
|
|---|
| 1022 | # 2. Host defaults to nonopt.
|
|---|
| 1023 | # 3. If nonopt is not specified, then host defaults to the current host,
|
|---|
| 1024 | # as determined by config.guess.
|
|---|
| 1025 | # 4. Target and build default to nonopt.
|
|---|
| 1026 | # 5. If nonopt is not specified, then target and build default to host.
|
|---|
| 1027 |
|
|---|
| 1028 | # The aliases save the names the user supplied, while $host etc.
|
|---|
| 1029 | # will get canonicalized.
|
|---|
| 1030 | case $host---$target---$nonopt in
|
|---|
| 1031 | NONE---*---* | *---NONE---* | *---*---NONE) ;;
|
|---|
| 1032 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
|
|---|
| 1033 | esac
|
|---|
| 1034 |
|
|---|
| 1035 |
|
|---|
| 1036 | # Make sure we can run config.sub.
|
|---|
| 1037 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
|
|---|
| 1038 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
|
|---|
| 1039 | fi
|
|---|
| 1040 |
|
|---|
| 1041 | echo $ac_n "checking host system type""... $ac_c" 1>&6
|
|---|
| 1042 | echo "configure:1043: checking host system type" >&5
|
|---|
| 1043 |
|
|---|
| 1044 | host_alias=$host
|
|---|
| 1045 | case "$host_alias" in
|
|---|
| 1046 | NONE)
|
|---|
| 1047 | case $nonopt in
|
|---|
| 1048 | NONE)
|
|---|
| 1049 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
|
|---|
| 1050 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
|
|---|
| 1051 | fi ;;
|
|---|
| 1052 | *) host_alias=$nonopt ;;
|
|---|
| 1053 | esac ;;
|
|---|
| 1054 | esac
|
|---|
| 1055 |
|
|---|
| 1056 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
|
|---|
| 1057 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 1058 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 1059 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 1060 | echo "$ac_t""$host" 1>&6
|
|---|
| 1061 |
|
|---|
| 1062 | echo $ac_n "checking target system type""... $ac_c" 1>&6
|
|---|
| 1063 | echo "configure:1064: checking target system type" >&5
|
|---|
| 1064 |
|
|---|
| 1065 | target_alias=$target
|
|---|
| 1066 | case "$target_alias" in
|
|---|
| 1067 | NONE)
|
|---|
| 1068 | case $nonopt in
|
|---|
| 1069 | NONE) target_alias=$host_alias ;;
|
|---|
| 1070 | *) target_alias=$nonopt ;;
|
|---|
| 1071 | esac ;;
|
|---|
| 1072 | esac
|
|---|
| 1073 |
|
|---|
| 1074 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
|
|---|
| 1075 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 1076 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 1077 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 1078 | echo "$ac_t""$target" 1>&6
|
|---|
| 1079 |
|
|---|
| 1080 | echo $ac_n "checking build system type""... $ac_c" 1>&6
|
|---|
| 1081 | echo "configure:1082: checking build system type" >&5
|
|---|
| 1082 |
|
|---|
| 1083 | build_alias=$build
|
|---|
| 1084 | case "$build_alias" in
|
|---|
| 1085 | NONE)
|
|---|
| 1086 | case $nonopt in
|
|---|
| 1087 | NONE) build_alias=$host_alias ;;
|
|---|
| 1088 | *) build_alias=$nonopt ;;
|
|---|
| 1089 | esac ;;
|
|---|
| 1090 | esac
|
|---|
| 1091 |
|
|---|
| 1092 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
|
|---|
| 1093 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 1094 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 1095 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 1096 | echo "$ac_t""$build" 1>&6
|
|---|
| 1097 |
|
|---|
| 1098 | test "$host_alias" != "$target_alias" &&
|
|---|
| 1099 | test "$program_prefix$program_suffix$program_transform_name" = \
|
|---|
| 1100 | NONENONEs,x,x, &&
|
|---|
| 1101 | program_prefix=${target_alias}-
|
|---|
| 1102 |
|
|---|
| 1103 |
|
|---|
| 1104 |
|
|---|
| 1105 |
|
|---|
| 1106 |
|
|---|
| 1107 | # Extract the first word of "gcc", so it can be a program name with args.
|
|---|
| 1108 | set dummy gcc; 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_CC'+set}'`\" = set"; then
|
|---|
| 1112 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1113 | else
|
|---|
| 1114 | if test -n "$CC"; then
|
|---|
| 1115 | ac_cv_prog_CC="$CC" # 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_CC="gcc"
|
|---|
| 1124 | break
|
|---|
| 1125 | fi
|
|---|
| 1126 | done
|
|---|
| 1127 | IFS="$ac_save_ifs"
|
|---|
| 1128 | fi
|
|---|
| 1129 | fi
|
|---|
| 1130 | CC="$ac_cv_prog_CC"
|
|---|
| 1131 | if test -n "$CC"; then
|
|---|
| 1132 | echo "$ac_t""$CC" 1>&6
|
|---|
| 1133 | else
|
|---|
| 1134 | echo "$ac_t""no" 1>&6
|
|---|
| 1135 | fi
|
|---|
| 1136 |
|
|---|
| 1137 | if test -z "$CC"; then
|
|---|
| 1138 | # Extract the first word of "cc", so it can be a program name with args.
|
|---|
| 1139 | set dummy cc; ac_word=$2
|
|---|
| 1140 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1141 | echo "configure:1142: checking for $ac_word" >&5
|
|---|
| 1142 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 1143 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1144 | else
|
|---|
| 1145 | if test -n "$CC"; then
|
|---|
| 1146 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 1147 | else
|
|---|
| 1148 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1149 | ac_prog_rejected=no
|
|---|
| 1150 | ac_dummy="$PATH"
|
|---|
| 1151 | for ac_dir in $ac_dummy; do
|
|---|
| 1152 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1153 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1154 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1155 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
|
|---|
| 1156 | "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
|
|---|
| 1157 | ac_prog_rejected=yes
|
|---|
| 1158 | continue
|
|---|
| 1159 | fi
|
|---|
| 1160 | ac_cv_prog_CC="cc"
|
|---|
| 1161 | break
|
|---|
| 1162 | fi
|
|---|
| 1163 | done
|
|---|
| 1164 | IFS="$ac_save_ifs"
|
|---|
| 1165 | if test $ac_prog_rejected = yes; then
|
|---|
| 1166 | # We found a bogon in the path, so make sure we never use it.
|
|---|
| 1167 | set dummy $ac_cv_prog_CC
|
|---|
| 1168 | shift
|
|---|
| 1169 | if test $# -gt 0; then
|
|---|
| 1170 | # We chose a different compiler from the bogus one.
|
|---|
| 1171 | # However, it has the same basename, so the bogon will be chosen
|
|---|
| 1172 | # first if we set CC to just the basename; use the full file name.
|
|---|
| 1173 | shift
|
|---|
| 1174 | set dummy "$ac_dir/$ac_word" "$@"
|
|---|
| 1175 | shift
|
|---|
| 1176 | ac_cv_prog_CC="$@"
|
|---|
| 1177 | fi
|
|---|
| 1178 | fi
|
|---|
| 1179 | fi
|
|---|
| 1180 | fi
|
|---|
| 1181 | CC="$ac_cv_prog_CC"
|
|---|
| 1182 | if test -n "$CC"; then
|
|---|
| 1183 | echo "$ac_t""$CC" 1>&6
|
|---|
| 1184 | else
|
|---|
| 1185 | echo "$ac_t""no" 1>&6
|
|---|
| 1186 | fi
|
|---|
| 1187 |
|
|---|
| 1188 | if test -z "$CC"; then
|
|---|
| 1189 | case "`uname -s`" in
|
|---|
| 1190 | *win32* | *WIN32*)
|
|---|
| 1191 | # Extract the first word of "cl", so it can be a program name with args.
|
|---|
| 1192 | set dummy cl; ac_word=$2
|
|---|
| 1193 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1194 | echo "configure:1195: checking for $ac_word" >&5
|
|---|
| 1195 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|---|
| 1196 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1197 | else
|
|---|
| 1198 | if test -n "$CC"; then
|
|---|
| 1199 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
|---|
| 1200 | else
|
|---|
| 1201 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1202 | ac_dummy="$PATH"
|
|---|
| 1203 | for ac_dir in $ac_dummy; do
|
|---|
| 1204 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1205 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1206 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1207 | ac_cv_prog_CC="cl"
|
|---|
| 1208 | break
|
|---|
| 1209 | fi
|
|---|
| 1210 | done
|
|---|
| 1211 | IFS="$ac_save_ifs"
|
|---|
| 1212 | fi
|
|---|
| 1213 | fi
|
|---|
| 1214 | CC="$ac_cv_prog_CC"
|
|---|
| 1215 | if test -n "$CC"; then
|
|---|
| 1216 | echo "$ac_t""$CC" 1>&6
|
|---|
| 1217 | else
|
|---|
| 1218 | echo "$ac_t""no" 1>&6
|
|---|
| 1219 | fi
|
|---|
| 1220 | ;;
|
|---|
| 1221 | esac
|
|---|
| 1222 | fi
|
|---|
| 1223 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|---|
| 1224 | fi
|
|---|
| 1225 |
|
|---|
| 1226 |
|
|---|
| 1227 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
|---|
| 1228 | echo "configure:1229: checking whether we are using GNU C" >&5
|
|---|
| 1229 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
|---|
| 1230 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1231 | else
|
|---|
| 1232 | cat > conftest.c <<EOF
|
|---|
| 1233 | #ifdef __GNUC__
|
|---|
| 1234 | yes;
|
|---|
| 1235 | #endif
|
|---|
| 1236 | EOF
|
|---|
| 1237 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|---|
| 1238 | ac_cv_prog_gcc=yes
|
|---|
| 1239 | else
|
|---|
| 1240 | ac_cv_prog_gcc=no
|
|---|
| 1241 | fi
|
|---|
| 1242 | fi
|
|---|
| 1243 |
|
|---|
| 1244 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|---|
| 1245 |
|
|---|
| 1246 | if test $ac_cv_prog_gcc = yes; then
|
|---|
| 1247 | GCC=yes
|
|---|
| 1248 | else
|
|---|
| 1249 | GCC=
|
|---|
| 1250 | fi
|
|---|
| 1251 |
|
|---|
| 1252 | ac_test_CFLAGS="${CFLAGS+set}"
|
|---|
| 1253 | ac_save_CFLAGS="$CFLAGS"
|
|---|
| 1254 | CFLAGS=
|
|---|
| 1255 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|---|
| 1256 | echo "configure:1257: checking whether ${CC-cc} accepts -g" >&5
|
|---|
| 1257 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
|---|
| 1258 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1259 | else
|
|---|
| 1260 | echo 'void f(){}' > conftest.c
|
|---|
| 1261 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|---|
| 1262 | ac_cv_prog_cc_g=yes
|
|---|
| 1263 | else
|
|---|
| 1264 | ac_cv_prog_cc_g=no
|
|---|
| 1265 | fi
|
|---|
| 1266 | rm -f conftest*
|
|---|
| 1267 |
|
|---|
| 1268 | fi
|
|---|
| 1269 |
|
|---|
| 1270 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|---|
| 1271 | if test "$ac_test_CFLAGS" = set; then
|
|---|
| 1272 | CFLAGS="$ac_save_CFLAGS"
|
|---|
| 1273 | elif test $ac_cv_prog_cc_g = yes; then
|
|---|
| 1274 | if test "$GCC" = yes; then
|
|---|
| 1275 | CFLAGS="-g -O2"
|
|---|
| 1276 | else
|
|---|
| 1277 | CFLAGS="-g"
|
|---|
| 1278 | fi
|
|---|
| 1279 | else
|
|---|
| 1280 | if test "$GCC" = yes; then
|
|---|
| 1281 | CFLAGS="-O2"
|
|---|
| 1282 | else
|
|---|
| 1283 | CFLAGS=
|
|---|
| 1284 | fi
|
|---|
| 1285 | fi
|
|---|
| 1286 |
|
|---|
| 1287 |
|
|---|
| 1288 | # We use the libstdc++-v3 version of LIB_AC_PROG_CXX, but use
|
|---|
| 1289 | # glibjava_CXX instead of glibcpp_CXX. That's because we're passed a
|
|---|
| 1290 | # different definition of CXX than other directories, since we don't
|
|---|
| 1291 | # depend on libstdc++-v3 having already been built.
|
|---|
| 1292 |
|
|---|
| 1293 |
|
|---|
| 1294 |
|
|---|
| 1295 | # Use glibjava_CXX so that we do not cause CXX to be cached with the
|
|---|
| 1296 | # flags that come in CXX while configuring libjava. They're different
|
|---|
| 1297 | # from those used for all other target libraries. If CXX is set in
|
|---|
| 1298 | # the environment, respect that here.
|
|---|
| 1299 | glibjava_CXX=$CXX
|
|---|
| 1300 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++
|
|---|
| 1301 | do
|
|---|
| 1302 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|---|
| 1303 | set dummy $ac_prog; ac_word=$2
|
|---|
| 1304 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1305 | echo "configure:1306: checking for $ac_word" >&5
|
|---|
| 1306 | if eval "test \"`echo '$''{'ac_cv_prog_glibjava_CXX'+set}'`\" = set"; then
|
|---|
| 1307 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1308 | else
|
|---|
| 1309 | if test -n "$glibjava_CXX"; then
|
|---|
| 1310 | ac_cv_prog_glibjava_CXX="$glibjava_CXX" # Let the user override the test.
|
|---|
| 1311 | else
|
|---|
| 1312 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1313 | ac_dummy="$PATH"
|
|---|
| 1314 | for ac_dir in $ac_dummy; do
|
|---|
| 1315 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1316 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1317 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1318 | ac_cv_prog_glibjava_CXX="$ac_prog"
|
|---|
| 1319 | break
|
|---|
| 1320 | fi
|
|---|
| 1321 | done
|
|---|
| 1322 | IFS="$ac_save_ifs"
|
|---|
| 1323 | fi
|
|---|
| 1324 | fi
|
|---|
| 1325 | glibjava_CXX="$ac_cv_prog_glibjava_CXX"
|
|---|
| 1326 | if test -n "$glibjava_CXX"; then
|
|---|
| 1327 | echo "$ac_t""$glibjava_CXX" 1>&6
|
|---|
| 1328 | else
|
|---|
| 1329 | echo "$ac_t""no" 1>&6
|
|---|
| 1330 | fi
|
|---|
| 1331 |
|
|---|
| 1332 | test -n "$glibjava_CXX" && break
|
|---|
| 1333 | done
|
|---|
| 1334 | test -n "$glibjava_CXX" || glibjava_CXX="gcc"
|
|---|
| 1335 |
|
|---|
| 1336 |
|
|---|
| 1337 | CXX=$glibjava_CXX
|
|---|
| 1338 | test -z "$glibjava_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
|
|---|
| 1339 |
|
|---|
| 1340 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
|
|---|
| 1341 | echo "configure:1342: checking whether we are using GNU C++" >&5
|
|---|
| 1342 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
|
|---|
| 1343 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1344 | else
|
|---|
| 1345 | cat > conftest.C <<EOF
|
|---|
| 1346 | #ifdef __GNUC__
|
|---|
| 1347 | yes;
|
|---|
| 1348 | #endif
|
|---|
| 1349 | EOF
|
|---|
| 1350 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|---|
| 1351 | ac_cv_prog_gxx=yes
|
|---|
| 1352 | else
|
|---|
| 1353 | ac_cv_prog_gxx=no
|
|---|
| 1354 | fi
|
|---|
| 1355 | fi
|
|---|
| 1356 |
|
|---|
| 1357 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6
|
|---|
| 1358 |
|
|---|
| 1359 | if test $ac_cv_prog_gxx = yes; then
|
|---|
| 1360 | GXX=yes
|
|---|
| 1361 | ac_test_CXXFLAGS="${CXXFLAGS+set}"
|
|---|
| 1362 | ac_save_CXXFLAGS="$CXXFLAGS"
|
|---|
| 1363 | CXXFLAGS=
|
|---|
| 1364 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
|
|---|
| 1365 | echo "configure:1366: checking whether ${CXX-g++} accepts -g" >&5
|
|---|
| 1366 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
|
|---|
| 1367 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1368 | else
|
|---|
| 1369 | echo 'void f(){}' > conftest.cc
|
|---|
| 1370 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
|
|---|
| 1371 | ac_cv_prog_cxx_g=yes
|
|---|
| 1372 | else
|
|---|
| 1373 | ac_cv_prog_cxx_g=no
|
|---|
| 1374 | fi
|
|---|
| 1375 | rm -f conftest*
|
|---|
| 1376 |
|
|---|
| 1377 | fi
|
|---|
| 1378 |
|
|---|
| 1379 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
|
|---|
| 1380 | if test "$ac_test_CXXFLAGS" = set; then
|
|---|
| 1381 | CXXFLAGS="$ac_save_CXXFLAGS"
|
|---|
| 1382 | elif test $ac_cv_prog_cxx_g = yes; then
|
|---|
| 1383 | CXXFLAGS="-g -O2"
|
|---|
| 1384 | else
|
|---|
| 1385 | CXXFLAGS="-O2"
|
|---|
| 1386 | fi
|
|---|
| 1387 | else
|
|---|
| 1388 | GXX=
|
|---|
| 1389 | test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
|
|---|
| 1390 | fi
|
|---|
| 1391 |
|
|---|
| 1392 |
|
|---|
| 1393 | version=0.0.7
|
|---|
| 1394 |
|
|---|
| 1395 | PACKAGE=libjava
|
|---|
| 1396 |
|
|---|
| 1397 | VERSION=$version
|
|---|
| 1398 |
|
|---|
| 1399 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
|
|---|
| 1400 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
|
|---|
| 1401 | fi
|
|---|
| 1402 | cat >> confdefs.h <<EOF
|
|---|
| 1403 | #define PACKAGE "$PACKAGE"
|
|---|
| 1404 | EOF
|
|---|
| 1405 |
|
|---|
| 1406 | cat >> confdefs.h <<EOF
|
|---|
| 1407 | #define VERSION "$VERSION"
|
|---|
| 1408 | EOF
|
|---|
| 1409 |
|
|---|
| 1410 |
|
|---|
| 1411 |
|
|---|
| 1412 | missing_dir=`cd $ac_aux_dir && pwd`
|
|---|
| 1413 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
|
|---|
| 1414 | echo "configure:1415: checking for working aclocal" >&5
|
|---|
| 1415 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1416 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1417 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1418 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1419 | ACLOCAL=aclocal
|
|---|
| 1420 | echo "$ac_t""found" 1>&6
|
|---|
| 1421 | else
|
|---|
| 1422 | ACLOCAL="$missing_dir/missing aclocal"
|
|---|
| 1423 | echo "$ac_t""missing" 1>&6
|
|---|
| 1424 | fi
|
|---|
| 1425 |
|
|---|
| 1426 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
|
|---|
| 1427 | echo "configure:1428: checking for working autoconf" >&5
|
|---|
| 1428 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1429 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1430 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1431 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1432 | AUTOCONF=autoconf
|
|---|
| 1433 | echo "$ac_t""found" 1>&6
|
|---|
| 1434 | else
|
|---|
| 1435 | AUTOCONF="$missing_dir/missing autoconf"
|
|---|
| 1436 | echo "$ac_t""missing" 1>&6
|
|---|
| 1437 | fi
|
|---|
| 1438 |
|
|---|
| 1439 | echo $ac_n "checking for working automake""... $ac_c" 1>&6
|
|---|
| 1440 | echo "configure:1441: checking for working automake" >&5
|
|---|
| 1441 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1442 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1443 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1444 | if (automake --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1445 | AUTOMAKE=automake
|
|---|
| 1446 | echo "$ac_t""found" 1>&6
|
|---|
| 1447 | else
|
|---|
| 1448 | AUTOMAKE="$missing_dir/missing automake"
|
|---|
| 1449 | echo "$ac_t""missing" 1>&6
|
|---|
| 1450 | fi
|
|---|
| 1451 |
|
|---|
| 1452 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
|
|---|
| 1453 | echo "configure:1454: checking for working autoheader" >&5
|
|---|
| 1454 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1455 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1456 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1457 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1458 | AUTOHEADER=autoheader
|
|---|
| 1459 | echo "$ac_t""found" 1>&6
|
|---|
| 1460 | else
|
|---|
| 1461 | AUTOHEADER="$missing_dir/missing autoheader"
|
|---|
| 1462 | echo "$ac_t""missing" 1>&6
|
|---|
| 1463 | fi
|
|---|
| 1464 |
|
|---|
| 1465 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
|
|---|
| 1466 | echo "configure:1467: checking for working makeinfo" >&5
|
|---|
| 1467 | # Run test in a subshell; some versions of sh will print an error if
|
|---|
| 1468 | # an executable is not found, even if stderr is redirected.
|
|---|
| 1469 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
|---|
| 1470 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
|
|---|
| 1471 | MAKEINFO=makeinfo
|
|---|
| 1472 | echo "$ac_t""found" 1>&6
|
|---|
| 1473 | else
|
|---|
| 1474 | MAKEINFO="$missing_dir/missing makeinfo"
|
|---|
| 1475 | echo "$ac_t""missing" 1>&6
|
|---|
| 1476 | fi
|
|---|
| 1477 |
|
|---|
| 1478 |
|
|---|
| 1479 |
|
|---|
| 1480 | # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
|
|---|
| 1481 | # run it explicitly here, it will be run implicitly before
|
|---|
| 1482 | # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
|
|---|
| 1483 | # be run before AC_CANONICAL_HOST.
|
|---|
| 1484 | echo $ac_n "checking build system type""... $ac_c" 1>&6
|
|---|
| 1485 | echo "configure:1486: checking build system type" >&5
|
|---|
| 1486 |
|
|---|
| 1487 | build_alias=$build
|
|---|
| 1488 | case "$build_alias" in
|
|---|
| 1489 | NONE)
|
|---|
| 1490 | case $nonopt in
|
|---|
| 1491 | NONE) build_alias=$host_alias ;;
|
|---|
| 1492 | *) build_alias=$nonopt ;;
|
|---|
| 1493 | esac ;;
|
|---|
| 1494 | esac
|
|---|
| 1495 |
|
|---|
| 1496 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
|
|---|
| 1497 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|---|
| 1498 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|---|
| 1499 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|---|
| 1500 | echo "$ac_t""$build" 1>&6
|
|---|
| 1501 |
|
|---|
| 1502 |
|
|---|
| 1503 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
|
|---|
| 1504 | set dummy ${ac_tool_prefix}as; ac_word=$2
|
|---|
| 1505 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1506 | echo "configure:1507: checking for $ac_word" >&5
|
|---|
| 1507 | if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
|
|---|
| 1508 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1509 | else
|
|---|
| 1510 | if test -n "$AS"; then
|
|---|
| 1511 | ac_cv_prog_AS="$AS" # Let the user override the test.
|
|---|
| 1512 | else
|
|---|
| 1513 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1514 | ac_dummy="$PATH"
|
|---|
| 1515 | for ac_dir in $ac_dummy; do
|
|---|
| 1516 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1517 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1518 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1519 | ac_cv_prog_AS="${ac_tool_prefix}as"
|
|---|
| 1520 | break
|
|---|
| 1521 | fi
|
|---|
| 1522 | done
|
|---|
| 1523 | IFS="$ac_save_ifs"
|
|---|
| 1524 | test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
|
|---|
| 1525 | fi
|
|---|
| 1526 | fi
|
|---|
| 1527 | AS="$ac_cv_prog_AS"
|
|---|
| 1528 | if test -n "$AS"; then
|
|---|
| 1529 | echo "$ac_t""$AS" 1>&6
|
|---|
| 1530 | else
|
|---|
| 1531 | echo "$ac_t""no" 1>&6
|
|---|
| 1532 | fi
|
|---|
| 1533 |
|
|---|
| 1534 |
|
|---|
| 1535 |
|
|---|
| 1536 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
|---|
| 1537 | set dummy ${ac_tool_prefix}ar; ac_word=$2
|
|---|
| 1538 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1539 | echo "configure:1540: checking for $ac_word" >&5
|
|---|
| 1540 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
|
|---|
| 1541 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1542 | else
|
|---|
| 1543 | if test -n "$AR"; then
|
|---|
| 1544 | ac_cv_prog_AR="$AR" # Let the user override the test.
|
|---|
| 1545 | else
|
|---|
| 1546 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1547 | ac_dummy="$PATH"
|
|---|
| 1548 | for ac_dir in $ac_dummy; do
|
|---|
| 1549 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1550 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1551 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1552 | ac_cv_prog_AR="${ac_tool_prefix}ar"
|
|---|
| 1553 | break
|
|---|
| 1554 | fi
|
|---|
| 1555 | done
|
|---|
| 1556 | IFS="$ac_save_ifs"
|
|---|
| 1557 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
|
|---|
| 1558 | fi
|
|---|
| 1559 | fi
|
|---|
| 1560 | AR="$ac_cv_prog_AR"
|
|---|
| 1561 | if test -n "$AR"; then
|
|---|
| 1562 | echo "$ac_t""$AR" 1>&6
|
|---|
| 1563 | else
|
|---|
| 1564 | echo "$ac_t""no" 1>&6
|
|---|
| 1565 | fi
|
|---|
| 1566 |
|
|---|
| 1567 |
|
|---|
| 1568 |
|
|---|
| 1569 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
|---|
| 1570 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
|---|
| 1571 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1572 | echo "configure:1573: checking for $ac_word" >&5
|
|---|
| 1573 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 1574 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1575 | else
|
|---|
| 1576 | if test -n "$RANLIB"; then
|
|---|
| 1577 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 1578 | else
|
|---|
| 1579 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1580 | ac_dummy="$PATH"
|
|---|
| 1581 | for ac_dir in $ac_dummy; do
|
|---|
| 1582 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1583 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1584 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1585 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
|---|
| 1586 | break
|
|---|
| 1587 | fi
|
|---|
| 1588 | done
|
|---|
| 1589 | IFS="$ac_save_ifs"
|
|---|
| 1590 | fi
|
|---|
| 1591 | fi
|
|---|
| 1592 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 1593 | if test -n "$RANLIB"; then
|
|---|
| 1594 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 1595 | else
|
|---|
| 1596 | echo "$ac_t""no" 1>&6
|
|---|
| 1597 | fi
|
|---|
| 1598 |
|
|---|
| 1599 |
|
|---|
| 1600 | if test -z "$ac_cv_prog_RANLIB"; then
|
|---|
| 1601 | if test -n "$ac_tool_prefix"; then
|
|---|
| 1602 | # Extract the first word of "ranlib", so it can be a program name with args.
|
|---|
| 1603 | set dummy ranlib; ac_word=$2
|
|---|
| 1604 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 1605 | echo "configure:1606: checking for $ac_word" >&5
|
|---|
| 1606 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 1607 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1608 | else
|
|---|
| 1609 | if test -n "$RANLIB"; then
|
|---|
| 1610 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 1611 | else
|
|---|
| 1612 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1613 | ac_dummy="$PATH"
|
|---|
| 1614 | for ac_dir in $ac_dummy; do
|
|---|
| 1615 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1616 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 1617 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 1618 | ac_cv_prog_RANLIB="ranlib"
|
|---|
| 1619 | break
|
|---|
| 1620 | fi
|
|---|
| 1621 | done
|
|---|
| 1622 | IFS="$ac_save_ifs"
|
|---|
| 1623 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|---|
| 1624 | fi
|
|---|
| 1625 | fi
|
|---|
| 1626 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 1627 | if test -n "$RANLIB"; then
|
|---|
| 1628 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 1629 | else
|
|---|
| 1630 | echo "$ac_t""no" 1>&6
|
|---|
| 1631 | fi
|
|---|
| 1632 |
|
|---|
| 1633 | else
|
|---|
| 1634 | RANLIB=":"
|
|---|
| 1635 | fi
|
|---|
| 1636 | fi
|
|---|
| 1637 |
|
|---|
| 1638 |
|
|---|
| 1639 | # Find a good install program. We prefer a C program (faster),
|
|---|
| 1640 | # so one script is as good as another. But avoid the broken or
|
|---|
| 1641 | # incompatible versions:
|
|---|
| 1642 | # SysV /etc/install, /usr/sbin/install
|
|---|
| 1643 | # SunOS /usr/etc/install
|
|---|
| 1644 | # IRIX /sbin/install
|
|---|
| 1645 | # AIX /bin/install
|
|---|
| 1646 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
|---|
| 1647 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|---|
| 1648 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|---|
| 1649 | # ./install, which can be erroneously created by make from ./install.sh.
|
|---|
| 1650 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
|---|
| 1651 | echo "configure:1652: checking for a BSD compatible install" >&5
|
|---|
| 1652 | if test -z "$INSTALL"; then
|
|---|
| 1653 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
|---|
| 1654 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1655 | else
|
|---|
| 1656 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
|
|---|
| 1657 | for ac_dir in $PATH; do
|
|---|
| 1658 | # Account for people who put trailing slashes in PATH elements.
|
|---|
| 1659 | case "$ac_dir/" in
|
|---|
| 1660 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
|---|
| 1661 | # We reject the install program from OS/2 or W3.1
|
|---|
| 1662 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
|
|---|
| 1663 | *)
|
|---|
| 1664 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
|---|
| 1665 | # Don't use installbsd from OSF since it installs stuff as root
|
|---|
| 1666 | # by default.
|
|---|
| 1667 | for ac_prog in ginstall scoinst install; do
|
|---|
| 1668 | if test -f $ac_dir/$ac_prog$ac_exeext; then
|
|---|
| 1669 | if test $ac_prog = install &&
|
|---|
| 1670 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|---|
| 1671 | # AIX install. It has an incompatible calling convention.
|
|---|
| 1672 | :
|
|---|
| 1673 | else
|
|---|
| 1674 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
|
|---|
| 1675 | break 2
|
|---|
| 1676 | fi
|
|---|
| 1677 | fi
|
|---|
| 1678 | done
|
|---|
| 1679 | ;;
|
|---|
| 1680 | esac
|
|---|
| 1681 | done
|
|---|
| 1682 | IFS="$ac_save_IFS"
|
|---|
| 1683 |
|
|---|
| 1684 | fi
|
|---|
| 1685 | if test "${ac_cv_path_install+set}" = set; then
|
|---|
| 1686 | INSTALL="$ac_cv_path_install"
|
|---|
| 1687 | else
|
|---|
| 1688 | # As a last resort, use the slow shell script. We don't cache a
|
|---|
| 1689 | # path for INSTALL within a source directory, because that will
|
|---|
| 1690 | # break other packages using the cache if that directory is
|
|---|
| 1691 | # removed, or if the path is relative.
|
|---|
| 1692 | INSTALL="$ac_install_sh"
|
|---|
| 1693 | fi
|
|---|
| 1694 | fi
|
|---|
| 1695 | echo "$ac_t""$INSTALL" 1>&6
|
|---|
| 1696 |
|
|---|
| 1697 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
|---|
| 1698 | # It thinks the first close brace ends the variable substitution.
|
|---|
| 1699 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|---|
| 1700 |
|
|---|
| 1701 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
|---|
| 1702 |
|
|---|
| 1703 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|---|
| 1704 |
|
|---|
| 1705 |
|
|---|
| 1706 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
|
|---|
| 1707 | echo "configure:1708: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
|---|
| 1708 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
|
|---|
| 1709 | if test "${enable_maintainer_mode+set}" = set; then
|
|---|
| 1710 | enableval="$enable_maintainer_mode"
|
|---|
| 1711 | USE_MAINTAINER_MODE=$enableval
|
|---|
| 1712 | else
|
|---|
| 1713 | USE_MAINTAINER_MODE=no
|
|---|
| 1714 | fi
|
|---|
| 1715 |
|
|---|
| 1716 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
|
|---|
| 1717 |
|
|---|
| 1718 |
|
|---|
| 1719 | if test $USE_MAINTAINER_MODE = yes; then
|
|---|
| 1720 | MAINTAINER_MODE_TRUE=
|
|---|
| 1721 | MAINTAINER_MODE_FALSE='#'
|
|---|
| 1722 | else
|
|---|
| 1723 | MAINTAINER_MODE_TRUE='#'
|
|---|
| 1724 | MAINTAINER_MODE_FALSE=
|
|---|
| 1725 | fi
|
|---|
| 1726 | MAINT=$MAINTAINER_MODE_TRUE
|
|---|
| 1727 |
|
|---|
| 1728 |
|
|---|
| 1729 |
|
|---|
| 1730 | # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
|
|---|
| 1731 | # at least currently, we never actually build a program, so we never
|
|---|
| 1732 | # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
|
|---|
| 1733 | # fails, because we are probably configuring with a cross compiler
|
|---|
| 1734 | # which cant create executables. So we include AC_EXEEXT to keep
|
|---|
| 1735 | # automake happy, but we don't execute it, since we don't care about
|
|---|
| 1736 | # the result.
|
|---|
| 1737 | if false; then
|
|---|
| 1738 | # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
|
|---|
| 1739 | # to nothing, so nothing would remain between `then' and `fi' if it
|
|---|
| 1740 | # were not for the `:' below.
|
|---|
| 1741 | :
|
|---|
| 1742 |
|
|---|
| 1743 |
|
|---|
| 1744 |
|
|---|
| 1745 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
|---|
| 1746 | echo "configure:1747: checking for executable suffix" >&5
|
|---|
| 1747 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
|---|
| 1748 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1749 | else
|
|---|
| 1750 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
|---|
| 1751 | ac_cv_exeext=.exe
|
|---|
| 1752 | else
|
|---|
| 1753 | rm -f conftest*
|
|---|
| 1754 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
|---|
| 1755 | ac_cv_exeext=
|
|---|
| 1756 | if { (eval echo configure:1757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
|---|
| 1757 | for file in conftest.*; do
|
|---|
| 1758 | case $file in
|
|---|
| 1759 | *.c | *.o | *.obj) ;;
|
|---|
| 1760 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
|---|
| 1761 | esac
|
|---|
| 1762 | done
|
|---|
| 1763 | else
|
|---|
| 1764 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
|---|
| 1765 | fi
|
|---|
| 1766 | rm -f conftest*
|
|---|
| 1767 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
|---|
| 1768 | fi
|
|---|
| 1769 | fi
|
|---|
| 1770 |
|
|---|
| 1771 | EXEEXT=""
|
|---|
| 1772 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
|---|
| 1773 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
|---|
| 1774 | ac_exeext=$EXEEXT
|
|---|
| 1775 |
|
|---|
| 1776 | fi
|
|---|
| 1777 |
|
|---|
| 1778 | # configure.host sets the following important variables
|
|---|
| 1779 | # libgcj_cflags - host specific C compiler flags
|
|---|
| 1780 | # libgcj_cxxflags - host specific C++ compiler flags
|
|---|
| 1781 | # libgcj_javaflags - host specific Java compiler flags
|
|---|
| 1782 |
|
|---|
| 1783 | libgcj_cflags=
|
|---|
| 1784 | libgcj_cxxflags=
|
|---|
| 1785 | libgcj_javaflags=
|
|---|
| 1786 |
|
|---|
| 1787 | . ${srcdir}/configure.host
|
|---|
| 1788 |
|
|---|
| 1789 | LIBGCJ_CFLAGS="${libgcj_cflags}"
|
|---|
| 1790 | LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
|
|---|
| 1791 | LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
|
|---|
| 1792 |
|
|---|
| 1793 |
|
|---|
| 1794 |
|
|---|
| 1795 |
|
|---|
| 1796 |
|
|---|
| 1797 |
|
|---|
| 1798 |
|
|---|
| 1799 |
|
|---|
| 1800 |
|
|---|
| 1801 | # Only use libltdl for native builds.
|
|---|
| 1802 | if test -z "${with_cross_host}"; then
|
|---|
| 1803 | case $enable_ltdl_convenience in
|
|---|
| 1804 | no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
|
|---|
| 1805 | "") enable_ltdl_convenience=yes
|
|---|
| 1806 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
|
|---|
| 1807 | esac
|
|---|
| 1808 | LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
|
|---|
| 1809 | INCLTDL='-I${top_srcdir}/''libltdl'
|
|---|
| 1810 |
|
|---|
| 1811 |
|
|---|
| 1812 | DIRLTDL=libltdl
|
|---|
| 1813 | cat >> confdefs.h <<\EOF
|
|---|
| 1814 | #define USE_LTDL 1
|
|---|
| 1815 | EOF
|
|---|
| 1816 |
|
|---|
| 1817 | # Sigh. Libtool's macro doesn't do the right thing.
|
|---|
| 1818 | INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
|
|---|
| 1819 | # FIXME: this is a hack.
|
|---|
| 1820 | sub_auxdir="`cd $ac_aux_dir && pwd`"
|
|---|
| 1821 | ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
|
|---|
| 1822 | fi
|
|---|
| 1823 |
|
|---|
| 1824 |
|
|---|
| 1825 |
|
|---|
| 1826 | # Check whether --enable-shared or --disable-shared was given.
|
|---|
| 1827 | if test "${enable_shared+set}" = set; then
|
|---|
| 1828 | enableval="$enable_shared"
|
|---|
| 1829 | p=${PACKAGE-default}
|
|---|
| 1830 | case $enableval in
|
|---|
| 1831 | yes) enable_shared=yes ;;
|
|---|
| 1832 | no) enable_shared=no ;;
|
|---|
| 1833 | *)
|
|---|
| 1834 | enable_shared=no
|
|---|
| 1835 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 1836 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 1837 | for pkg in $enableval; do
|
|---|
| 1838 | if test "X$pkg" = "X$p"; then
|
|---|
| 1839 | enable_shared=yes
|
|---|
| 1840 | fi
|
|---|
| 1841 | done
|
|---|
| 1842 | IFS="$ac_save_ifs"
|
|---|
| 1843 | ;;
|
|---|
| 1844 | esac
|
|---|
| 1845 | else
|
|---|
| 1846 | enable_shared=yes
|
|---|
| 1847 | fi
|
|---|
| 1848 |
|
|---|
| 1849 | # Check whether --enable-static or --disable-static was given.
|
|---|
| 1850 | if test "${enable_static+set}" = set; then
|
|---|
| 1851 | enableval="$enable_static"
|
|---|
| 1852 | p=${PACKAGE-default}
|
|---|
| 1853 | case $enableval in
|
|---|
| 1854 | yes) enable_static=yes ;;
|
|---|
| 1855 | no) enable_static=no ;;
|
|---|
| 1856 | *)
|
|---|
| 1857 | enable_static=no
|
|---|
| 1858 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 1859 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 1860 | for pkg in $enableval; do
|
|---|
| 1861 | if test "X$pkg" = "X$p"; then
|
|---|
| 1862 | enable_static=yes
|
|---|
| 1863 | fi
|
|---|
| 1864 | done
|
|---|
| 1865 | IFS="$ac_save_ifs"
|
|---|
| 1866 | ;;
|
|---|
| 1867 | esac
|
|---|
| 1868 | else
|
|---|
| 1869 | enable_static=yes
|
|---|
| 1870 | fi
|
|---|
| 1871 |
|
|---|
| 1872 | # Check whether --enable-fast-install or --disable-fast-install was given.
|
|---|
| 1873 | if test "${enable_fast_install+set}" = set; then
|
|---|
| 1874 | enableval="$enable_fast_install"
|
|---|
| 1875 | p=${PACKAGE-default}
|
|---|
| 1876 | case $enableval in
|
|---|
| 1877 | yes) enable_fast_install=yes ;;
|
|---|
| 1878 | no) enable_fast_install=no ;;
|
|---|
| 1879 | *)
|
|---|
| 1880 | enable_fast_install=no
|
|---|
| 1881 | # Look at the argument we got. We use all the common list separators.
|
|---|
| 1882 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|---|
| 1883 | for pkg in $enableval; do
|
|---|
| 1884 | if test "X$pkg" = "X$p"; then
|
|---|
| 1885 | enable_fast_install=yes
|
|---|
| 1886 | fi
|
|---|
| 1887 | done
|
|---|
| 1888 | IFS="$ac_save_ifs"
|
|---|
| 1889 | ;;
|
|---|
| 1890 | esac
|
|---|
| 1891 | else
|
|---|
| 1892 | enable_fast_install=yes
|
|---|
| 1893 | fi
|
|---|
| 1894 |
|
|---|
| 1895 | # Check whether --with-gnu-ld or --without-gnu-ld was given.
|
|---|
| 1896 | if test "${with_gnu_ld+set}" = set; then
|
|---|
| 1897 | withval="$with_gnu_ld"
|
|---|
| 1898 | test "$withval" = no || with_gnu_ld=yes
|
|---|
| 1899 | else
|
|---|
| 1900 | with_gnu_ld=no
|
|---|
| 1901 | fi
|
|---|
| 1902 |
|
|---|
| 1903 | ac_prog=ld
|
|---|
| 1904 | if test "$GCC" = yes; then
|
|---|
| 1905 | # Check if gcc -print-prog-name=ld gives a path.
|
|---|
| 1906 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
|
|---|
| 1907 | echo "configure:1908: checking for ld used by GCC" >&5
|
|---|
| 1908 | case $host in
|
|---|
| 1909 | *-*-mingw*)
|
|---|
| 1910 | # gcc leaves a trailing carriage return which upsets mingw
|
|---|
| 1911 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
|---|
| 1912 | *)
|
|---|
| 1913 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
|---|
| 1914 | esac
|
|---|
| 1915 | case $ac_prog in
|
|---|
| 1916 | # Accept absolute paths.
|
|---|
| 1917 | [\\/]* | [A-Za-z]:[\\/]*)
|
|---|
| 1918 | re_direlt='/[^/][^/]*/\.\./'
|
|---|
| 1919 | # Canonicalize the path of ld
|
|---|
| 1920 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
|
|---|
| 1921 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
|---|
| 1922 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
|---|
| 1923 | done
|
|---|
| 1924 | test -z "$LD" && LD="$ac_prog"
|
|---|
| 1925 | ;;
|
|---|
| 1926 | "")
|
|---|
| 1927 | # If it fails, then pretend we aren't using GCC.
|
|---|
| 1928 | ac_prog=ld
|
|---|
| 1929 | ;;
|
|---|
| 1930 | *)
|
|---|
| 1931 | # If it is relative, then search for the first ld in PATH.
|
|---|
| 1932 | with_gnu_ld=unknown
|
|---|
| 1933 | ;;
|
|---|
| 1934 | esac
|
|---|
| 1935 | elif test "$with_gnu_ld" = yes; then
|
|---|
| 1936 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
|
|---|
| 1937 | echo "configure:1938: checking for GNU ld" >&5
|
|---|
| 1938 | else
|
|---|
| 1939 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
|
|---|
| 1940 | echo "configure:1941: checking for non-GNU ld" >&5
|
|---|
| 1941 | fi
|
|---|
| 1942 | if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
|
|---|
| 1943 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1944 | else
|
|---|
| 1945 | if test -z "$LD"; then
|
|---|
| 1946 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
|---|
| 1947 | for ac_dir in $PATH; do
|
|---|
| 1948 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 1949 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
|---|
| 1950 | lt_cv_path_LD="$ac_dir/$ac_prog"
|
|---|
| 1951 | # Check to see if the program is GNU ld. I'd rather use --version,
|
|---|
| 1952 | # but apparently some GNU ld's only accept -v.
|
|---|
| 1953 | # Break only if it was the GNU/non-GNU ld that we prefer.
|
|---|
| 1954 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
|---|
| 1955 | test "$with_gnu_ld" != no && break
|
|---|
| 1956 | else
|
|---|
| 1957 | test "$with_gnu_ld" != yes && break
|
|---|
| 1958 | fi
|
|---|
| 1959 | fi
|
|---|
| 1960 | done
|
|---|
| 1961 | IFS="$ac_save_ifs"
|
|---|
| 1962 | else
|
|---|
| 1963 | lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
|---|
| 1964 | fi
|
|---|
| 1965 | fi
|
|---|
| 1966 |
|
|---|
| 1967 | LD="$lt_cv_path_LD"
|
|---|
| 1968 | if test -n "$LD"; then
|
|---|
| 1969 | echo "$ac_t""$LD" 1>&6
|
|---|
| 1970 | else
|
|---|
| 1971 | echo "$ac_t""no" 1>&6
|
|---|
| 1972 | fi
|
|---|
| 1973 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
|
|---|
| 1974 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
|
|---|
| 1975 | echo "configure:1976: checking if the linker ($LD) is GNU ld" >&5
|
|---|
| 1976 | if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
|
|---|
| 1977 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1978 | else
|
|---|
| 1979 | # I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
|---|
| 1980 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
|---|
| 1981 | lt_cv_prog_gnu_ld=yes
|
|---|
| 1982 | else
|
|---|
| 1983 | lt_cv_prog_gnu_ld=no
|
|---|
| 1984 | fi
|
|---|
| 1985 | fi
|
|---|
| 1986 |
|
|---|
| 1987 | echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
|
|---|
| 1988 | with_gnu_ld=$lt_cv_prog_gnu_ld
|
|---|
| 1989 |
|
|---|
| 1990 |
|
|---|
| 1991 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
|
|---|
| 1992 | echo "configure:1993: checking for $LD option to reload object files" >&5
|
|---|
| 1993 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
|
|---|
| 1994 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 1995 | else
|
|---|
| 1996 | lt_cv_ld_reload_flag='-r'
|
|---|
| 1997 | fi
|
|---|
| 1998 |
|
|---|
| 1999 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
|
|---|
| 2000 | reload_flag=$lt_cv_ld_reload_flag
|
|---|
| 2001 | test -n "$reload_flag" && reload_flag=" $reload_flag"
|
|---|
| 2002 |
|
|---|
| 2003 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
|
|---|
| 2004 | echo "configure:2005: checking for BSD-compatible nm" >&5
|
|---|
| 2005 | if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
|
|---|
| 2006 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2007 | else
|
|---|
| 2008 | if test -n "$NM"; then
|
|---|
| 2009 | # Let the user override the test.
|
|---|
| 2010 | lt_cv_path_NM="$NM"
|
|---|
| 2011 | else
|
|---|
| 2012 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
|---|
| 2013 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
|
|---|
| 2014 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2015 | tmp_nm=$ac_dir/${ac_tool_prefix}nm
|
|---|
| 2016 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
|
|---|
| 2017 | # Check to see if the nm accepts a BSD-compat flag.
|
|---|
| 2018 | # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
|---|
| 2019 | # nm: unknown option "B" ignored
|
|---|
| 2020 | # Tru64's nm complains that /dev/null is an invalid object file
|
|---|
| 2021 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
|
|---|
| 2022 | lt_cv_path_NM="$tmp_nm -B"
|
|---|
| 2023 | break
|
|---|
| 2024 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
|
|---|
| 2025 | lt_cv_path_NM="$tmp_nm -p"
|
|---|
| 2026 | break
|
|---|
| 2027 | else
|
|---|
| 2028 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
|---|
| 2029 | continue # so that we can try to find one that supports BSD flags
|
|---|
| 2030 | fi
|
|---|
| 2031 | fi
|
|---|
| 2032 | done
|
|---|
| 2033 | IFS="$ac_save_ifs"
|
|---|
| 2034 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
|
|---|
| 2035 | fi
|
|---|
| 2036 | fi
|
|---|
| 2037 |
|
|---|
| 2038 | NM="$lt_cv_path_NM"
|
|---|
| 2039 | echo "$ac_t""$NM" 1>&6
|
|---|
| 2040 |
|
|---|
| 2041 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
|
|---|
| 2042 | echo "configure:2043: checking how to recognise dependant libraries" >&5
|
|---|
| 2043 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
|
|---|
| 2044 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2045 | else
|
|---|
| 2046 | lt_cv_file_magic_cmd='$MAGIC_CMD'
|
|---|
| 2047 | lt_cv_file_magic_test_file=
|
|---|
| 2048 | lt_cv_deplibs_check_method='unknown'
|
|---|
| 2049 | # Need to set the preceding variable on all platforms that support
|
|---|
| 2050 | # interlibrary dependencies.
|
|---|
| 2051 | # 'none' -- dependencies not supported.
|
|---|
| 2052 | # `unknown' -- same as none, but documents that we really don't know.
|
|---|
| 2053 | # 'pass_all' -- all dependencies passed with no checks.
|
|---|
| 2054 | # 'test_compile' -- check by making test program.
|
|---|
| 2055 | # 'file_magic [regex]' -- check by looking for files in library path
|
|---|
| 2056 | # which responds to the $file_magic_cmd with a given egrep regex.
|
|---|
| 2057 | # If you have `file' or equivalent on your system and you're not sure
|
|---|
| 2058 | # whether `pass_all' will *always* work, you probably want this one.
|
|---|
| 2059 |
|
|---|
| 2060 | case $host_os in
|
|---|
| 2061 | aix*)
|
|---|
| 2062 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 2063 | ;;
|
|---|
| 2064 |
|
|---|
| 2065 | beos*)
|
|---|
| 2066 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 2067 | ;;
|
|---|
| 2068 |
|
|---|
| 2069 | bsdi4*)
|
|---|
| 2070 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
|---|
| 2071 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
|---|
| 2072 | lt_cv_file_magic_test_file=/shlib/libc.so
|
|---|
| 2073 | ;;
|
|---|
| 2074 |
|
|---|
| 2075 | cygwin* | mingw* |pw32*)
|
|---|
| 2076 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
|---|
| 2077 | lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|---|
| 2078 | ;;
|
|---|
| 2079 |
|
|---|
| 2080 | darwin* | rhapsody*)
|
|---|
| 2081 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
|
|---|
| 2082 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
|---|
| 2083 | case "$host_os" in
|
|---|
| 2084 | rhapsody* | darwin1.012)
|
|---|
| 2085 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
|
|---|
| 2086 | ;;
|
|---|
| 2087 | *) # Darwin 1.3 on
|
|---|
| 2088 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
|
|---|
| 2089 | ;;
|
|---|
| 2090 | esac
|
|---|
| 2091 | ;;
|
|---|
| 2092 |
|
|---|
| 2093 | freebsd* )
|
|---|
| 2094 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
|---|
| 2095 | case $host_cpu in
|
|---|
| 2096 | i*86 )
|
|---|
| 2097 | # Not sure whether the presence of OpenBSD here was a mistake.
|
|---|
| 2098 | # Let's accept both of them until this is cleared up.
|
|---|
| 2099 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
|
|---|
| 2100 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 2101 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
|---|
| 2102 | ;;
|
|---|
| 2103 | esac
|
|---|
| 2104 | else
|
|---|
| 2105 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 2106 | fi
|
|---|
| 2107 | ;;
|
|---|
| 2108 |
|
|---|
| 2109 | gnu*)
|
|---|
| 2110 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 2111 | ;;
|
|---|
| 2112 |
|
|---|
| 2113 | hpux10.20*|hpux11*)
|
|---|
| 2114 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
|
|---|
| 2115 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 2116 | lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
|---|
| 2117 | ;;
|
|---|
| 2118 |
|
|---|
| 2119 | irix5* | irix6*)
|
|---|
| 2120 | case $host_os in
|
|---|
| 2121 | irix5*)
|
|---|
| 2122 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 2123 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
|
|---|
| 2124 | ;;
|
|---|
| 2125 | *)
|
|---|
| 2126 | case $LD in
|
|---|
| 2127 | *-32|*"-32 ") libmagic=32-bit;;
|
|---|
| 2128 | *-n32|*"-n32 ") libmagic=N32;;
|
|---|
| 2129 | *-64|*"-64 ") libmagic=64-bit;;
|
|---|
| 2130 | *) libmagic=never-match;;
|
|---|
| 2131 | esac
|
|---|
| 2132 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 2133 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
|
|---|
| 2134 | ;;
|
|---|
| 2135 | esac
|
|---|
| 2136 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
|
|---|
| 2137 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 2138 | ;;
|
|---|
| 2139 |
|
|---|
| 2140 | # This must be Linux ELF.
|
|---|
| 2141 | linux-gnu*)
|
|---|
| 2142 | case $host_cpu in
|
|---|
| 2143 | alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
|
|---|
| 2144 | lt_cv_deplibs_check_method=pass_all ;;
|
|---|
| 2145 | *)
|
|---|
| 2146 | # glibc up to 2.1.1 does not perform some relocations on ARM
|
|---|
| 2147 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
|
|---|
| 2148 | esac
|
|---|
| 2149 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
|---|
| 2150 | ;;
|
|---|
| 2151 |
|
|---|
| 2152 | netbsd*)
|
|---|
| 2153 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
|---|
| 2154 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
|---|
| 2155 | else
|
|---|
| 2156 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
|
|---|
| 2157 | fi
|
|---|
| 2158 | ;;
|
|---|
| 2159 |
|
|---|
| 2160 | newsos6)
|
|---|
| 2161 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
|---|
| 2162 | lt_cv_file_magic_cmd=/usr/bin/file
|
|---|
| 2163 | lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
|---|
| 2164 | ;;
|
|---|
| 2165 |
|
|---|
| 2166 | osf3* | osf4* | osf5*)
|
|---|
| 2167 | # this will be overridden with pass_all, but let us keep it just in case
|
|---|
| 2168 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
|
|---|
| 2169 | lt_cv_file_magic_test_file=/shlib/libc.so
|
|---|
| 2170 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 2171 | ;;
|
|---|
| 2172 |
|
|---|
| 2173 | sco3.2v5*)
|
|---|
| 2174 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 2175 | ;;
|
|---|
| 2176 |
|
|---|
| 2177 | solaris*)
|
|---|
| 2178 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 2179 | lt_cv_file_magic_test_file=/lib/libc.so
|
|---|
| 2180 | ;;
|
|---|
| 2181 |
|
|---|
| 2182 | sysv5uw[78]* | sysv4*uw2*)
|
|---|
| 2183 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 2184 | ;;
|
|---|
| 2185 |
|
|---|
| 2186 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
|---|
| 2187 | case $host_vendor in
|
|---|
| 2188 | ncr)
|
|---|
| 2189 | lt_cv_deplibs_check_method=pass_all
|
|---|
| 2190 | ;;
|
|---|
| 2191 | motorola)
|
|---|
| 2192 | 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]'
|
|---|
| 2193 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
|---|
| 2194 | ;;
|
|---|
| 2195 | esac
|
|---|
| 2196 | ;;
|
|---|
| 2197 | esac
|
|---|
| 2198 |
|
|---|
| 2199 | fi
|
|---|
| 2200 |
|
|---|
| 2201 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
|
|---|
| 2202 | file_magic_cmd=$lt_cv_file_magic_cmd
|
|---|
| 2203 | deplibs_check_method=$lt_cv_deplibs_check_method
|
|---|
| 2204 |
|
|---|
| 2205 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6
|
|---|
| 2206 | echo "configure:2207: checking for object suffix" >&5
|
|---|
| 2207 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
|
|---|
| 2208 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2209 | else
|
|---|
| 2210 | rm -f conftest*
|
|---|
| 2211 | echo 'int i = 1;' > conftest.$ac_ext
|
|---|
| 2212 | if { (eval echo configure:2213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 2213 | for ac_file in conftest.*; do
|
|---|
| 2214 | case $ac_file in
|
|---|
| 2215 | *.c) ;;
|
|---|
| 2216 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
|
|---|
| 2217 | esac
|
|---|
| 2218 | done
|
|---|
| 2219 | else
|
|---|
| 2220 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
|
|---|
| 2221 | fi
|
|---|
| 2222 | rm -f conftest*
|
|---|
| 2223 | fi
|
|---|
| 2224 |
|
|---|
| 2225 | echo "$ac_t""$ac_cv_objext" 1>&6
|
|---|
| 2226 | OBJEXT=$ac_cv_objext
|
|---|
| 2227 | ac_objext=$ac_cv_objext
|
|---|
| 2228 |
|
|---|
| 2229 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
|
|---|
| 2230 |
|
|---|
| 2231 | # Only perform the check for file, if the check method requires it
|
|---|
| 2232 | case $deplibs_check_method in
|
|---|
| 2233 | file_magic*)
|
|---|
| 2234 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
|---|
| 2235 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
|
|---|
| 2236 | echo "configure:2237: checking for ${ac_tool_prefix}file" >&5
|
|---|
| 2237 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
|---|
| 2238 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2239 | else
|
|---|
| 2240 | case $MAGIC_CMD in
|
|---|
| 2241 | /*)
|
|---|
| 2242 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
|---|
| 2243 | ;;
|
|---|
| 2244 | ?:/*)
|
|---|
| 2245 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
|---|
| 2246 | ;;
|
|---|
| 2247 | *)
|
|---|
| 2248 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
|---|
| 2249 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 2250 | ac_dummy="/usr/bin:$PATH"
|
|---|
| 2251 | for ac_dir in $ac_dummy; do
|
|---|
| 2252 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2253 | if test -f $ac_dir/${ac_tool_prefix}file; then
|
|---|
| 2254 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
|
|---|
| 2255 | if test -n "$file_magic_test_file"; then
|
|---|
| 2256 | case $deplibs_check_method in
|
|---|
| 2257 | "file_magic "*)
|
|---|
| 2258 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
|---|
| 2259 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 2260 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
|---|
| 2261 | egrep "$file_magic_regex" > /dev/null; then
|
|---|
| 2262 | :
|
|---|
| 2263 | else
|
|---|
| 2264 | cat <<EOF 1>&2
|
|---|
| 2265 |
|
|---|
| 2266 | *** Warning: the command libtool uses to detect shared libraries,
|
|---|
| 2267 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
|---|
| 2268 | *** The result is that libtool may fail to recognize shared libraries
|
|---|
| 2269 | *** as such. This will affect the creation of libtool libraries that
|
|---|
| 2270 | *** depend on shared libraries, but programs linked with such libtool
|
|---|
| 2271 | *** libraries will work regardless of this problem. Nevertheless, you
|
|---|
| 2272 | *** may want to report the problem to your system manager and/or to
|
|---|
| 2273 | *** [email protected]
|
|---|
| 2274 |
|
|---|
| 2275 | EOF
|
|---|
| 2276 | fi ;;
|
|---|
| 2277 | esac
|
|---|
| 2278 | fi
|
|---|
| 2279 | break
|
|---|
| 2280 | fi
|
|---|
| 2281 | done
|
|---|
| 2282 | IFS="$ac_save_ifs"
|
|---|
| 2283 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
|---|
| 2284 | ;;
|
|---|
| 2285 | esac
|
|---|
| 2286 | fi
|
|---|
| 2287 |
|
|---|
| 2288 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 2289 | if test -n "$MAGIC_CMD"; then
|
|---|
| 2290 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
|---|
| 2291 | else
|
|---|
| 2292 | echo "$ac_t""no" 1>&6
|
|---|
| 2293 | fi
|
|---|
| 2294 |
|
|---|
| 2295 | if test -z "$lt_cv_path_MAGIC_CMD"; then
|
|---|
| 2296 | if test -n "$ac_tool_prefix"; then
|
|---|
| 2297 | echo $ac_n "checking for file""... $ac_c" 1>&6
|
|---|
| 2298 | echo "configure:2299: checking for file" >&5
|
|---|
| 2299 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
|---|
| 2300 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2301 | else
|
|---|
| 2302 | case $MAGIC_CMD in
|
|---|
| 2303 | /*)
|
|---|
| 2304 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
|---|
| 2305 | ;;
|
|---|
| 2306 | ?:/*)
|
|---|
| 2307 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
|---|
| 2308 | ;;
|
|---|
| 2309 | *)
|
|---|
| 2310 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
|---|
| 2311 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|---|
| 2312 | ac_dummy="/usr/bin:$PATH"
|
|---|
| 2313 | for ac_dir in $ac_dummy; do
|
|---|
| 2314 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2315 | if test -f $ac_dir/file; then
|
|---|
| 2316 | lt_cv_path_MAGIC_CMD="$ac_dir/file"
|
|---|
| 2317 | if test -n "$file_magic_test_file"; then
|
|---|
| 2318 | case $deplibs_check_method in
|
|---|
| 2319 | "file_magic "*)
|
|---|
| 2320 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
|---|
| 2321 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 2322 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
|---|
| 2323 | egrep "$file_magic_regex" > /dev/null; then
|
|---|
| 2324 | :
|
|---|
| 2325 | else
|
|---|
| 2326 | cat <<EOF 1>&2
|
|---|
| 2327 |
|
|---|
| 2328 | *** Warning: the command libtool uses to detect shared libraries,
|
|---|
| 2329 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
|---|
| 2330 | *** The result is that libtool may fail to recognize shared libraries
|
|---|
| 2331 | *** as such. This will affect the creation of libtool libraries that
|
|---|
| 2332 | *** depend on shared libraries, but programs linked with such libtool
|
|---|
| 2333 | *** libraries will work regardless of this problem. Nevertheless, you
|
|---|
| 2334 | *** may want to report the problem to your system manager and/or to
|
|---|
| 2335 | *** [email protected]
|
|---|
| 2336 |
|
|---|
| 2337 | EOF
|
|---|
| 2338 | fi ;;
|
|---|
| 2339 | esac
|
|---|
| 2340 | fi
|
|---|
| 2341 | break
|
|---|
| 2342 | fi
|
|---|
| 2343 | done
|
|---|
| 2344 | IFS="$ac_save_ifs"
|
|---|
| 2345 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
|---|
| 2346 | ;;
|
|---|
| 2347 | esac
|
|---|
| 2348 | fi
|
|---|
| 2349 |
|
|---|
| 2350 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|---|
| 2351 | if test -n "$MAGIC_CMD"; then
|
|---|
| 2352 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
|---|
| 2353 | else
|
|---|
| 2354 | echo "$ac_t""no" 1>&6
|
|---|
| 2355 | fi
|
|---|
| 2356 |
|
|---|
| 2357 | else
|
|---|
| 2358 | MAGIC_CMD=:
|
|---|
| 2359 | fi
|
|---|
| 2360 | fi
|
|---|
| 2361 |
|
|---|
| 2362 | fi
|
|---|
| 2363 | ;;
|
|---|
| 2364 | esac
|
|---|
| 2365 |
|
|---|
| 2366 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
|---|
| 2367 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
|---|
| 2368 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2369 | echo "configure:2370: checking for $ac_word" >&5
|
|---|
| 2370 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 2371 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2372 | else
|
|---|
| 2373 | if test -n "$RANLIB"; then
|
|---|
| 2374 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 2375 | else
|
|---|
| 2376 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2377 | ac_dummy="$PATH"
|
|---|
| 2378 | for ac_dir in $ac_dummy; do
|
|---|
| 2379 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2380 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2381 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2382 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
|---|
| 2383 | break
|
|---|
| 2384 | fi
|
|---|
| 2385 | done
|
|---|
| 2386 | IFS="$ac_save_ifs"
|
|---|
| 2387 | fi
|
|---|
| 2388 | fi
|
|---|
| 2389 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 2390 | if test -n "$RANLIB"; then
|
|---|
| 2391 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 2392 | else
|
|---|
| 2393 | echo "$ac_t""no" 1>&6
|
|---|
| 2394 | fi
|
|---|
| 2395 |
|
|---|
| 2396 |
|
|---|
| 2397 | if test -z "$ac_cv_prog_RANLIB"; then
|
|---|
| 2398 | if test -n "$ac_tool_prefix"; then
|
|---|
| 2399 | # Extract the first word of "ranlib", so it can be a program name with args.
|
|---|
| 2400 | set dummy ranlib; ac_word=$2
|
|---|
| 2401 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2402 | echo "configure:2403: checking for $ac_word" >&5
|
|---|
| 2403 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|---|
| 2404 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2405 | else
|
|---|
| 2406 | if test -n "$RANLIB"; then
|
|---|
| 2407 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|---|
| 2408 | else
|
|---|
| 2409 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2410 | ac_dummy="$PATH"
|
|---|
| 2411 | for ac_dir in $ac_dummy; do
|
|---|
| 2412 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2413 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2414 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2415 | ac_cv_prog_RANLIB="ranlib"
|
|---|
| 2416 | break
|
|---|
| 2417 | fi
|
|---|
| 2418 | done
|
|---|
| 2419 | IFS="$ac_save_ifs"
|
|---|
| 2420 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|---|
| 2421 | fi
|
|---|
| 2422 | fi
|
|---|
| 2423 | RANLIB="$ac_cv_prog_RANLIB"
|
|---|
| 2424 | if test -n "$RANLIB"; then
|
|---|
| 2425 | echo "$ac_t""$RANLIB" 1>&6
|
|---|
| 2426 | else
|
|---|
| 2427 | echo "$ac_t""no" 1>&6
|
|---|
| 2428 | fi
|
|---|
| 2429 |
|
|---|
| 2430 | else
|
|---|
| 2431 | RANLIB=":"
|
|---|
| 2432 | fi
|
|---|
| 2433 | fi
|
|---|
| 2434 |
|
|---|
| 2435 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
|---|
| 2436 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
|---|
| 2437 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2438 | echo "configure:2439: checking for $ac_word" >&5
|
|---|
| 2439 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
|---|
| 2440 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2441 | else
|
|---|
| 2442 | if test -n "$STRIP"; then
|
|---|
| 2443 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
|---|
| 2444 | else
|
|---|
| 2445 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2446 | ac_dummy="$PATH"
|
|---|
| 2447 | for ac_dir in $ac_dummy; do
|
|---|
| 2448 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2449 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2450 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2451 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
|---|
| 2452 | break
|
|---|
| 2453 | fi
|
|---|
| 2454 | done
|
|---|
| 2455 | IFS="$ac_save_ifs"
|
|---|
| 2456 | fi
|
|---|
| 2457 | fi
|
|---|
| 2458 | STRIP="$ac_cv_prog_STRIP"
|
|---|
| 2459 | if test -n "$STRIP"; then
|
|---|
| 2460 | echo "$ac_t""$STRIP" 1>&6
|
|---|
| 2461 | else
|
|---|
| 2462 | echo "$ac_t""no" 1>&6
|
|---|
| 2463 | fi
|
|---|
| 2464 |
|
|---|
| 2465 |
|
|---|
| 2466 | if test -z "$ac_cv_prog_STRIP"; then
|
|---|
| 2467 | if test -n "$ac_tool_prefix"; then
|
|---|
| 2468 | # Extract the first word of "strip", so it can be a program name with args.
|
|---|
| 2469 | set dummy strip; ac_word=$2
|
|---|
| 2470 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|---|
| 2471 | echo "configure:2472: checking for $ac_word" >&5
|
|---|
| 2472 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
|---|
| 2473 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2474 | else
|
|---|
| 2475 | if test -n "$STRIP"; then
|
|---|
| 2476 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
|---|
| 2477 | else
|
|---|
| 2478 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
|
|---|
| 2479 | ac_dummy="$PATH"
|
|---|
| 2480 | for ac_dir in $ac_dummy; do
|
|---|
| 2481 | test -z "$ac_dir" && ac_dir=.
|
|---|
| 2482 | if test -f $ac_dir/$ac_word -o \
|
|---|
| 2483 | -f $ac_dir/$ac_word$ac_exeext ; then
|
|---|
| 2484 | ac_cv_prog_STRIP="strip"
|
|---|
| 2485 | break
|
|---|
| 2486 | fi
|
|---|
| 2487 | done
|
|---|
| 2488 | IFS="$ac_save_ifs"
|
|---|
| 2489 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
|
|---|
| 2490 | fi
|
|---|
| 2491 | fi
|
|---|
| 2492 | STRIP="$ac_cv_prog_STRIP"
|
|---|
| 2493 | if test -n "$STRIP"; then
|
|---|
| 2494 | echo "$ac_t""$STRIP" 1>&6
|
|---|
| 2495 | else
|
|---|
| 2496 | echo "$ac_t""no" 1>&6
|
|---|
| 2497 | fi
|
|---|
| 2498 |
|
|---|
| 2499 | else
|
|---|
| 2500 | STRIP=":"
|
|---|
| 2501 | fi
|
|---|
| 2502 | fi
|
|---|
| 2503 |
|
|---|
| 2504 |
|
|---|
| 2505 | # Check for any special flags to pass to ltconfig.
|
|---|
| 2506 | libtool_flags="--cache-file=$cache_file"
|
|---|
| 2507 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
|
|---|
| 2508 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
|
|---|
| 2509 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
|
|---|
| 2510 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
|
|---|
| 2511 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
|
|---|
| 2512 | libtool_flags="$libtool_flags --enable-dlopen"
|
|---|
| 2513 |
|
|---|
| 2514 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
|
|---|
| 2515 | if test "${enable_libtool_lock+set}" = set; then
|
|---|
| 2516 | enableval="$enable_libtool_lock"
|
|---|
| 2517 | :
|
|---|
| 2518 | fi
|
|---|
| 2519 |
|
|---|
| 2520 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
|
|---|
| 2521 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
|
|---|
| 2522 |
|
|---|
| 2523 | # Check whether --with-pic or --without-pic was given.
|
|---|
| 2524 | if test "${with_pic+set}" = set; then
|
|---|
| 2525 | withval="$with_pic"
|
|---|
| 2526 | pic_mode="$withval"
|
|---|
| 2527 | else
|
|---|
| 2528 | pic_mode=default
|
|---|
| 2529 | fi
|
|---|
| 2530 |
|
|---|
| 2531 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
|
|---|
| 2532 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
|
|---|
| 2533 |
|
|---|
| 2534 | # Some flags need to be propagated to the compiler or linker for good
|
|---|
| 2535 | # libtool support.
|
|---|
| 2536 | case $host in
|
|---|
| 2537 | *-*-irix6*)
|
|---|
| 2538 | # Find out which ABI we are using.
|
|---|
| 2539 | echo '#line 2540 "configure"' > conftest.$ac_ext
|
|---|
| 2540 | if { (eval echo configure:2541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 2541 | case `/usr/bin/file conftest.$ac_objext` in
|
|---|
| 2542 | *32-bit*)
|
|---|
| 2543 | LD="${LD-ld} -32"
|
|---|
| 2544 | ;;
|
|---|
| 2545 | *N32*)
|
|---|
| 2546 | LD="${LD-ld} -n32"
|
|---|
| 2547 | ;;
|
|---|
| 2548 | *64-bit*)
|
|---|
| 2549 | LD="${LD-ld} -64"
|
|---|
| 2550 | ;;
|
|---|
| 2551 | esac
|
|---|
| 2552 | fi
|
|---|
| 2553 | rm -rf conftest*
|
|---|
| 2554 | ;;
|
|---|
| 2555 |
|
|---|
| 2556 | *-*-sco3.2v5*)
|
|---|
| 2557 | # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
|---|
| 2558 | SAVE_CFLAGS="$CFLAGS"
|
|---|
| 2559 | CFLAGS="$CFLAGS -belf"
|
|---|
| 2560 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
|
|---|
| 2561 | echo "configure:2562: checking whether the C compiler needs -belf" >&5
|
|---|
| 2562 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
|
|---|
| 2563 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2564 | else
|
|---|
| 2565 |
|
|---|
| 2566 | ac_ext=c
|
|---|
| 2567 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2568 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2569 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2570 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2571 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2572 |
|
|---|
| 2573 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2574 | #line 2575 "configure"
|
|---|
| 2575 | #include "confdefs.h"
|
|---|
| 2576 |
|
|---|
| 2577 | int main() {
|
|---|
| 2578 |
|
|---|
| 2579 | ; return 0; }
|
|---|
| 2580 | EOF
|
|---|
| 2581 | if { (eval echo configure:2582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 2582 | rm -rf conftest*
|
|---|
| 2583 | lt_cv_cc_needs_belf=yes
|
|---|
| 2584 | else
|
|---|
| 2585 | echo "configure: failed program was:" >&5
|
|---|
| 2586 | cat conftest.$ac_ext >&5
|
|---|
| 2587 | rm -rf conftest*
|
|---|
| 2588 | lt_cv_cc_needs_belf=no
|
|---|
| 2589 | fi
|
|---|
| 2590 | rm -f conftest*
|
|---|
| 2591 | ac_ext=c
|
|---|
| 2592 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2593 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2594 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2595 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2596 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2597 |
|
|---|
| 2598 | fi
|
|---|
| 2599 |
|
|---|
| 2600 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
|
|---|
| 2601 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
|---|
| 2602 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
|---|
| 2603 | CFLAGS="$SAVE_CFLAGS"
|
|---|
| 2604 | fi
|
|---|
| 2605 | ;;
|
|---|
| 2606 |
|
|---|
| 2607 |
|
|---|
| 2608 | esac
|
|---|
| 2609 |
|
|---|
| 2610 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
|
|---|
| 2611 | echo "configure:2612: checking how to run the C++ preprocessor" >&5
|
|---|
| 2612 | if test -z "$CXXCPP"; then
|
|---|
| 2613 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
|
|---|
| 2614 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 2615 | else
|
|---|
| 2616 | ac_ext=C
|
|---|
| 2617 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2618 | ac_cpp='$CXXCPP $CPPFLAGS'
|
|---|
| 2619 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2620 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2621 | cross_compiling=$ac_cv_prog_cxx_cross
|
|---|
| 2622 | CXXCPP="${CXX-g++} -E"
|
|---|
| 2623 | cat > conftest.$ac_ext <<EOF
|
|---|
| 2624 | #include <sys/types.h>
|
|---|
| 2625 | #line 2626 "configure"
|
|---|
| 2626 | #include "confdefs.h"
|
|---|
| 2627 | #include <stdlib.h>
|
|---|
| 2628 | EOF
|
|---|
| 2629 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 2630 | { (eval echo configure:2631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 2631 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 2632 | if test -z "$ac_err"; then
|
|---|
| 2633 | :
|
|---|
| 2634 | else
|
|---|
| 2635 | echo "$ac_err" >&5
|
|---|
| 2636 | echo "configure: failed program was:" >&5
|
|---|
| 2637 | cat conftest.$ac_ext >&5
|
|---|
| 2638 | rm -rf conftest*
|
|---|
| 2639 | CXXCPP=/lib/cpp
|
|---|
| 2640 | fi
|
|---|
| 2641 | rm -f conftest*
|
|---|
| 2642 | ac_cv_prog_CXXCPP="$CXXCPP"
|
|---|
| 2643 | ac_ext=c
|
|---|
| 2644 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2645 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2646 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2647 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2648 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2649 | fi
|
|---|
| 2650 | fi
|
|---|
| 2651 | CXXCPP="$ac_cv_prog_CXXCPP"
|
|---|
| 2652 | echo "$ac_t""$CXXCPP" 1>&6
|
|---|
| 2653 |
|
|---|
| 2654 |
|
|---|
| 2655 | # Save cache, so that ltconfig can load it
|
|---|
| 2656 | cat > confcache <<\EOF
|
|---|
| 2657 | # This file is a shell script that caches the results of configure
|
|---|
| 2658 | # tests run on this system so they can be shared between configure
|
|---|
| 2659 | # scripts and configure runs. It is not useful on other systems.
|
|---|
| 2660 | # If it contains results you don't want to keep, you may remove or edit it.
|
|---|
| 2661 | #
|
|---|
| 2662 | # By default, configure uses ./config.cache as the cache file,
|
|---|
| 2663 | # creating it if it does not exist already. You can give configure
|
|---|
| 2664 | # the --cache-file=FILE option to use a different cache file; that is
|
|---|
| 2665 | # what configure does when it calls configure scripts in
|
|---|
| 2666 | # subdirectories, so they share the cache.
|
|---|
| 2667 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
|---|
| 2668 | # config.status only pays attention to the cache file if you give it the
|
|---|
| 2669 | # --recheck option to rerun configure.
|
|---|
| 2670 | #
|
|---|
| 2671 | EOF
|
|---|
| 2672 | # The following way of writing the cache mishandles newlines in values,
|
|---|
| 2673 | # but we know of no workaround that is simple, portable, and efficient.
|
|---|
| 2674 | # So, don't put newlines in cache variables' values.
|
|---|
| 2675 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
|---|
| 2676 | # and sets the high bit in the cache file unless we assign to the vars.
|
|---|
| 2677 | (set) 2>&1 |
|
|---|
| 2678 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
|---|
| 2679 | *ac_space=\ *)
|
|---|
| 2680 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
|---|
| 2681 | # turns \\\\ into \\, and sed turns \\ into \).
|
|---|
| 2682 | sed -n \
|
|---|
| 2683 | -e "s/'/'\\\\''/g" \
|
|---|
| 2684 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
|---|
| 2685 | ;;
|
|---|
| 2686 | *)
|
|---|
| 2687 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
|---|
| 2688 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
|---|
| 2689 | ;;
|
|---|
| 2690 | esac >> confcache
|
|---|
| 2691 | if cmp -s $cache_file confcache; then
|
|---|
| 2692 | :
|
|---|
| 2693 | else
|
|---|
| 2694 | if test -w $cache_file; then
|
|---|
| 2695 | echo "updating cache $cache_file"
|
|---|
| 2696 | cat confcache > $cache_file
|
|---|
| 2697 | else
|
|---|
| 2698 | echo "not updating unwritable cache $cache_file"
|
|---|
| 2699 | fi
|
|---|
| 2700 | fi
|
|---|
| 2701 | rm -f confcache
|
|---|
| 2702 |
|
|---|
| 2703 |
|
|---|
| 2704 | # Actually configure libtool. ac_aux_dir is where install-sh is found.
|
|---|
| 2705 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
|
|---|
| 2706 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
|
|---|
| 2707 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
|
|---|
| 2708 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
|
|---|
| 2709 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
|
|---|
| 2710 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
|
|---|
| 2711 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
|
|---|
| 2712 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
|
|---|
| 2713 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
|
|---|
| 2714 |
|
|---|
| 2715 | # Reload cache, that may have been modified by ltconfig
|
|---|
| 2716 | if test -r "$cache_file"; then
|
|---|
| 2717 | echo "loading cache $cache_file"
|
|---|
| 2718 | . $cache_file
|
|---|
| 2719 | else
|
|---|
| 2720 | echo "creating cache $cache_file"
|
|---|
| 2721 | > $cache_file
|
|---|
| 2722 | fi
|
|---|
| 2723 |
|
|---|
| 2724 |
|
|---|
| 2725 | # This can be used to rebuild libtool when needed
|
|---|
| 2726 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
|
|---|
| 2727 |
|
|---|
| 2728 | # Always use our own libtool.
|
|---|
| 2729 | LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
|---|
| 2730 |
|
|---|
| 2731 | # Redirect the config.log output again, so that the ltconfig log is not
|
|---|
| 2732 | # clobbered by the next message.
|
|---|
| 2733 | exec 5>>./config.log
|
|---|
| 2734 |
|
|---|
| 2735 |
|
|---|
| 2736 |
|
|---|
| 2737 | LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
|
|---|
| 2738 | lt_save_CC="$CC"
|
|---|
| 2739 | lt_save_CFLAGS="$CFLAGS"
|
|---|
| 2740 | AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
|
|---|
| 2741 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
|
|---|
| 2742 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
|
|---|
| 2743 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
|
|---|
| 2744 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
|
|---|
| 2745 | deplibs_check_method="$deplibs_check_method" \
|
|---|
| 2746 | file_magic_cmd="$file_magic_cmd" \
|
|---|
| 2747 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
|
|---|
| 2748 | --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
|
|---|
| 2749 | || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
|
|---|
| 2750 | CC="$lt_save_CC"
|
|---|
| 2751 | CFLAGS="$lt_save_CFLAGS"
|
|---|
| 2752 |
|
|---|
| 2753 | # Redirect the config.log output again, so that the ltconfig log is not
|
|---|
| 2754 | # clobbered by the next message.
|
|---|
| 2755 | exec 5>>./config.log
|
|---|
| 2756 |
|
|---|
| 2757 |
|
|---|
| 2758 |
|
|---|
| 2759 |
|
|---|
| 2760 |
|
|---|
| 2761 |
|
|---|
| 2762 | subdirs="$DIRLTDL"
|
|---|
| 2763 |
|
|---|
| 2764 |
|
|---|
| 2765 | if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
|
|---|
| 2766 | COMPPATH=.
|
|---|
| 2767 | else
|
|---|
| 2768 | COMPPATH=..
|
|---|
| 2769 | fi
|
|---|
| 2770 |
|
|---|
| 2771 |
|
|---|
| 2772 |
|
|---|
| 2773 |
|
|---|
| 2774 | if test -d $srcdir/testsuite; then
|
|---|
| 2775 | TESTSUBDIR_TRUE=
|
|---|
| 2776 | TESTSUBDIR_FALSE='#'
|
|---|
| 2777 | else
|
|---|
| 2778 | TESTSUBDIR_TRUE='#'
|
|---|
| 2779 | TESTSUBDIR_FALSE=
|
|---|
| 2780 | fi
|
|---|
| 2781 |
|
|---|
| 2782 | # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
|
|---|
| 2783 | if test "${enable_getenv_properties+set}" = set; then
|
|---|
| 2784 | enableval="$enable_getenv_properties"
|
|---|
| 2785 | :
|
|---|
| 2786 | fi
|
|---|
| 2787 |
|
|---|
| 2788 |
|
|---|
| 2789 | if test -z "$enable_getenv_properties"; then
|
|---|
| 2790 | enable_getenv_properties=${enable_getenv_properties_default-yes}
|
|---|
| 2791 | fi
|
|---|
| 2792 | if test "$enable_getenv_properties" = no; then
|
|---|
| 2793 | cat >> confdefs.h <<\EOF
|
|---|
| 2794 | #define DISABLE_GETENV_PROPERTIES 1
|
|---|
| 2795 | EOF
|
|---|
| 2796 |
|
|---|
| 2797 | fi
|
|---|
| 2798 |
|
|---|
| 2799 | if test -z "$enable_main_args"; then
|
|---|
| 2800 | enable_main_args=${enable_main_args_default-yes}
|
|---|
| 2801 | fi
|
|---|
| 2802 | if test "$enable_main_args" = no; then
|
|---|
| 2803 | cat >> confdefs.h <<\EOF
|
|---|
| 2804 | #define DISABLE_MAIN_ARGS 1
|
|---|
| 2805 | EOF
|
|---|
| 2806 |
|
|---|
| 2807 | fi
|
|---|
| 2808 |
|
|---|
| 2809 |
|
|---|
| 2810 | # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
|
|---|
| 2811 | if test "${enable_hash_synchronization+set}" = set; then
|
|---|
| 2812 | enableval="$enable_hash_synchronization"
|
|---|
| 2813 | :
|
|---|
| 2814 | fi
|
|---|
| 2815 |
|
|---|
| 2816 |
|
|---|
| 2817 | if test -z "$enable_hash_synchronization"; then
|
|---|
| 2818 | enable_hash_synchronization=$enable_hash_synchronization_default
|
|---|
| 2819 | fi
|
|---|
| 2820 |
|
|---|
| 2821 | if test "${slow_pthread_self}" = "yes"; then
|
|---|
| 2822 | cat >> confdefs.h <<\EOF
|
|---|
| 2823 | #define SLOW_PTHREAD_SELF 1
|
|---|
| 2824 | EOF
|
|---|
| 2825 |
|
|---|
| 2826 | fi
|
|---|
| 2827 |
|
|---|
| 2828 |
|
|---|
| 2829 | LIBGCJDEBUG="false"
|
|---|
| 2830 |
|
|---|
| 2831 | # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
|
|---|
| 2832 | if test "${enable_libgcj_debug+set}" = set; then
|
|---|
| 2833 | enableval="$enable_libgcj_debug"
|
|---|
| 2834 | if test "$enable_libgcj_debug" = yes; then
|
|---|
| 2835 | cat >> confdefs.h <<\EOF
|
|---|
| 2836 | #define DEBUG 1
|
|---|
| 2837 | EOF
|
|---|
| 2838 |
|
|---|
| 2839 | LIBGCJDEBUG="true"
|
|---|
| 2840 | fi
|
|---|
| 2841 | fi
|
|---|
| 2842 |
|
|---|
| 2843 |
|
|---|
| 2844 | # Check whether --enable-interpreter or --disable-interpreter was given.
|
|---|
| 2845 | if test "${enable_interpreter+set}" = set; then
|
|---|
| 2846 | enableval="$enable_interpreter"
|
|---|
| 2847 | if test "$enable_interpreter" = yes; then
|
|---|
| 2848 | # This can also be set in configure.host.
|
|---|
| 2849 | libgcj_interpreter=yes
|
|---|
| 2850 | elif test "$enable_interpreter" = no; then
|
|---|
| 2851 | libgcj_interpreter=no
|
|---|
| 2852 | fi
|
|---|
| 2853 | fi
|
|---|
| 2854 |
|
|---|
| 2855 |
|
|---|
| 2856 | if test "$libgcj_interpreter" = yes; then
|
|---|
| 2857 | cat >> confdefs.h <<\EOF
|
|---|
| 2858 | #define INTERPRETER 1
|
|---|
| 2859 | EOF
|
|---|
| 2860 |
|
|---|
| 2861 | fi
|
|---|
| 2862 |
|
|---|
| 2863 | echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
|
|---|
| 2864 | echo "configure:2865: checking for exception model to use" >&5
|
|---|
| 2865 |
|
|---|
| 2866 | ac_ext=C
|
|---|
| 2867 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2868 | ac_cpp='$CXXCPP $CPPFLAGS'
|
|---|
| 2869 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2870 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2871 | cross_compiling=$ac_cv_prog_cxx_cross
|
|---|
| 2872 |
|
|---|
| 2873 | # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
|
|---|
| 2874 | if test "${enable_sjlj_exceptions+set}" = set; then
|
|---|
| 2875 | enableval="$enable_sjlj_exceptions"
|
|---|
| 2876 | :
|
|---|
| 2877 | else
|
|---|
| 2878 | cat > conftest.$ac_ext << EOF
|
|---|
| 2879 | #line 2880 "configure"
|
|---|
| 2880 | struct S { ~S(); };
|
|---|
| 2881 | void bar();
|
|---|
| 2882 | void foo()
|
|---|
| 2883 | {
|
|---|
| 2884 | S s;
|
|---|
| 2885 | bar();
|
|---|
| 2886 | }
|
|---|
| 2887 | EOF
|
|---|
| 2888 | old_CXXFLAGS="$CXXFLAGS"
|
|---|
| 2889 | CXXFLAGS=-S
|
|---|
| 2890 | if { (eval echo configure:2891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|---|
| 2891 | if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
|
|---|
| 2892 | enable_sjlj_exceptions=yes
|
|---|
| 2893 | elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
|
|---|
| 2894 | enable_sjlj_exceptions=no
|
|---|
| 2895 | fi
|
|---|
| 2896 | fi
|
|---|
| 2897 | CXXFLAGS="$old_CXXFLAGS"
|
|---|
| 2898 | rm -f conftest*
|
|---|
| 2899 | fi
|
|---|
| 2900 |
|
|---|
| 2901 | if test x$enable_sjlj_exceptions = xyes; then
|
|---|
| 2902 | cat >> confdefs.h <<\EOF
|
|---|
| 2903 | #define SJLJ_EXCEPTIONS 1
|
|---|
| 2904 | EOF
|
|---|
| 2905 |
|
|---|
| 2906 | ac_exception_model_name=sjlj
|
|---|
| 2907 | elif test x$enable_sjlj_exceptions = xno; then
|
|---|
| 2908 | ac_exception_model_name="call frame"
|
|---|
| 2909 | else
|
|---|
| 2910 | { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
|
|---|
| 2911 | fi
|
|---|
| 2912 | ac_ext=c
|
|---|
| 2913 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|---|
| 2914 | ac_cpp='$CPP $CPPFLAGS'
|
|---|
| 2915 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|---|
| 2916 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|---|
| 2917 | cross_compiling=$ac_cv_prog_cc_cross
|
|---|
| 2918 |
|
|---|
| 2919 | echo "$ac_t""$ac_exception_model_name" 1>&6
|
|---|
| 2920 |
|
|---|
| 2921 | # If we are non using SJLJ exceptions, and this host does not have support
|
|---|
| 2922 | # for unwinding from a signal handler, enable checked dereferences and divides.
|
|---|
| 2923 | if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
|
|---|
| 2924 | CHECKREFSPEC=-fcheck-references
|
|---|
| 2925 | DIVIDESPEC=-fuse-divide-subroutine
|
|---|
| 2926 | EXCEPTIONSPEC=
|
|---|
| 2927 | fi
|
|---|
| 2928 |
|
|---|
| 2929 | # Check whether --enable-java-net or --disable-java-net was given.
|
|---|
| 2930 | if test "${enable_java_net+set}" = set; then
|
|---|
| 2931 | enableval="$enable_java_net"
|
|---|
| 2932 | :
|
|---|
| 2933 | fi
|
|---|
| 2934 |
|
|---|
| 2935 |
|
|---|
| 2936 | if test -z "$enable_java_net"; then
|
|---|
| 2937 | enable_java_net=${enable_java_net_default-yes}
|
|---|
| 2938 | fi
|
|---|
| 2939 | if test "$enable_java_net" = no; then
|
|---|
| 2940 | cat >> confdefs.h <<\EOF
|
|---|
| 2941 | #define DISABLE_JAVA_NET 1
|
|---|
| 2942 | EOF
|
|---|
| 2943 |
|
|---|
| 2944 | fi
|
|---|
| 2945 |
|
|---|
| 2946 | # Check whether --with-libffi or --without-libffi was given.
|
|---|
| 2947 | if test "${with_libffi+set}" = set; then
|
|---|
| 2948 | withval="$with_libffi"
|
|---|
| 2949 | :
|
|---|
| 2950 | else
|
|---|
| 2951 | with_libffi=${with_libffi_default-yes}
|
|---|
| 2952 | fi
|
|---|
| 2953 |
|
|---|
| 2954 |
|
|---|
| 2955 | LIBFFI=
|
|---|
| 2956 | LIBFFIINCS=
|
|---|
| 2957 | if test "$with_libffi" != no; then
|
|---|
| 2958 | cat >> confdefs.h <<\EOF
|
|---|
| 2959 | #define USE_LIBFFI 1
|
|---|
| 2960 | EOF
|
|---|
| 2961 |
|
|---|
| 2962 | LIBFFI=../libffi/libffi_convenience.la
|
|---|
| 2963 | LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I$(MULTIBUILDTOP)../libffi/include'
|
|---|
| 2964 | fi
|
|---|
| 2965 |
|
|---|
| 2966 |
|
|---|
| 2967 |
|
|---|
| 2968 | # Check whether --enable-jvmpi or --disable-jvmpi was given.
|
|---|
| 2969 | if test "${enable_jvmpi+set}" = set; then
|
|---|
| 2970 | enableval="$enable_jvmpi"
|
|---|
| 2971 | :
|
|---|
| 2972 | fi
|
|---|
| 2973 |
|
|---|
| 2974 |
|
|---|
| 2975 | if test "$enable_jvmpi" != no; then
|
|---|
| 2976 | cat >> confdefs.h <<\EOF
|
|---|
| 2977 | #define ENABLE_JVMPI 1
|
|---|
| 2978 | EOF
|
|---|
| 2979 |
|
|---|
| 2980 | fi
|
|---|
| 2981 |
|
|---|
| 2982 | TARGET_ECOS=${PROCESS-"no"}
|
|---|
| 2983 | # Check whether --with-ecos or --without-ecos was given.
|
|---|
| 2984 | if test "${with_ecos+set}" = set; then
|
|---|
| 2985 | withval="$with_ecos"
|
|---|
| 2986 | TARGET_ECOS="$with_ecos"
|
|---|
| 2987 |
|
|---|
| 2988 | fi
|
|---|
| 2989 |
|
|---|
| 2990 |
|
|---|
| 2991 | PLATFORMOBJS=
|
|---|
| 2992 | case "$TARGET_ECOS" in
|
|---|
| 2993 | no) case "$host" in
|
|---|
| 2994 | *mingw*)
|
|---|
| 2995 | PLATFORM=Win32
|
|---|
| 2996 | PLATFORMOBJS=win32.lo
|
|---|
| 2997 | PLATFORMH=win32.h
|
|---|
| 2998 | ;;
|
|---|
| 2999 | *)
|
|---|
| 3000 | PLATFORM=Posix
|
|---|
| 3001 | PLATFORMOBJS=posix.lo
|
|---|
| 3002 | PLATFORMH=posix.h
|
|---|
| 3003 | ;;
|
|---|
| 3004 | esac
|
|---|
| 3005 | ;;
|
|---|
| 3006 | *)
|
|---|
| 3007 | PLATFORM=Ecos
|
|---|
| 3008 | cat >> confdefs.h <<\EOF
|
|---|
| 3009 | #define ECOS 1
|
|---|
| 3010 | EOF
|
|---|
| 3011 |
|
|---|
| 3012 | PLATFORMOBJS=posix.lo
|
|---|
| 3013 | PLATFORMH=posix.h
|
|---|
| 3014 | ;;
|
|---|
| 3015 | esac
|
|---|
| 3016 |
|
|---|
| 3017 |
|
|---|
| 3018 |
|
|---|
| 3019 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
|---|
| 3020 | echo "configure:3021: checking how to run the C preprocessor" >&5
|
|---|
| 3021 | # On Suns, sometimes $CPP names a directory.
|
|---|
| 3022 | if test -n "$CPP" && test -d "$CPP"; then
|
|---|
| 3023 | CPP=
|
|---|
| 3024 | fi
|
|---|
| 3025 | if test -z "$CPP"; then
|
|---|
| 3026 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
|---|
| 3027 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3028 | else
|
|---|
| 3029 | # This must be in double quotes, not single quotes, because CPP may get
|
|---|
| 3030 | # substituted into the Makefile and "${CC-cc}" will confuse make.
|
|---|
| 3031 | CPP="${CC-cc} -E"
|
|---|
| 3032 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
|---|
| 3033 | # not just through cpp.
|
|---|
| 3034 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3035 | #include <sys/types.h>
|
|---|
| 3036 | #line 3037 "configure"
|
|---|
| 3037 | #include "confdefs.h"
|
|---|
| 3038 | #include <assert.h>
|
|---|
| 3039 | Syntax Error
|
|---|
| 3040 | EOF
|
|---|
| 3041 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 3042 | { (eval echo configure:3043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 3043 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 3044 | if test -z "$ac_err"; then
|
|---|
| 3045 | :
|
|---|
| 3046 | else
|
|---|
| 3047 | echo "$ac_err" >&5
|
|---|
| 3048 | echo "configure: failed program was:" >&5
|
|---|
| 3049 | cat conftest.$ac_ext >&5
|
|---|
| 3050 | rm -rf conftest*
|
|---|
| 3051 | CPP="${CC-cc} -E -traditional-cpp"
|
|---|
| 3052 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3053 | #include <sys/types.h>
|
|---|
| 3054 | #line 3055 "configure"
|
|---|
| 3055 | #include "confdefs.h"
|
|---|
| 3056 | #include <assert.h>
|
|---|
| 3057 | Syntax Error
|
|---|
| 3058 | EOF
|
|---|
| 3059 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 3060 | { (eval echo configure:3061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 3061 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 3062 | if test -z "$ac_err"; then
|
|---|
| 3063 | :
|
|---|
| 3064 | else
|
|---|
| 3065 | echo "$ac_err" >&5
|
|---|
| 3066 | echo "configure: failed program was:" >&5
|
|---|
| 3067 | cat conftest.$ac_ext >&5
|
|---|
| 3068 | rm -rf conftest*
|
|---|
| 3069 | CPP="${CC-cc} -nologo -E"
|
|---|
| 3070 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3071 | #include <sys/types.h>
|
|---|
| 3072 | #line 3073 "configure"
|
|---|
| 3073 | #include "confdefs.h"
|
|---|
| 3074 | #include <assert.h>
|
|---|
| 3075 | Syntax Error
|
|---|
| 3076 | EOF
|
|---|
| 3077 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 3078 | { (eval echo configure:3079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 3079 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 3080 | if test -z "$ac_err"; then
|
|---|
| 3081 | :
|
|---|
| 3082 | else
|
|---|
| 3083 | echo "$ac_err" >&5
|
|---|
| 3084 | echo "configure: failed program was:" >&5
|
|---|
| 3085 | cat conftest.$ac_ext >&5
|
|---|
| 3086 | rm -rf conftest*
|
|---|
| 3087 | CPP=/lib/cpp
|
|---|
| 3088 | fi
|
|---|
| 3089 | rm -f conftest*
|
|---|
| 3090 | fi
|
|---|
| 3091 | rm -f conftest*
|
|---|
| 3092 | fi
|
|---|
| 3093 | rm -f conftest*
|
|---|
| 3094 | ac_cv_prog_CPP="$CPP"
|
|---|
| 3095 | fi
|
|---|
| 3096 | CPP="$ac_cv_prog_CPP"
|
|---|
| 3097 | else
|
|---|
| 3098 | ac_cv_prog_CPP="$CPP"
|
|---|
| 3099 | fi
|
|---|
| 3100 | echo "$ac_t""$CPP" 1>&6
|
|---|
| 3101 |
|
|---|
| 3102 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3103 | #line 3104 "configure"
|
|---|
| 3104 | #include "confdefs.h"
|
|---|
| 3105 | #include <stdint.h>
|
|---|
| 3106 | EOF
|
|---|
| 3107 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 3108 | egrep "uint32_t" >/dev/null 2>&1; then
|
|---|
| 3109 | rm -rf conftest*
|
|---|
| 3110 | cat >> confdefs.h <<\EOF
|
|---|
| 3111 | #define HAVE_INT32_DEFINED 1
|
|---|
| 3112 | EOF
|
|---|
| 3113 |
|
|---|
| 3114 | fi
|
|---|
| 3115 | rm -f conftest*
|
|---|
| 3116 |
|
|---|
| 3117 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3118 | #line 3119 "configure"
|
|---|
| 3119 | #include "confdefs.h"
|
|---|
| 3120 | #include <inttypes.h>
|
|---|
| 3121 | EOF
|
|---|
| 3122 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 3123 | egrep "uint32_t" >/dev/null 2>&1; then
|
|---|
| 3124 | rm -rf conftest*
|
|---|
| 3125 | cat >> confdefs.h <<\EOF
|
|---|
| 3126 | #define HAVE_INT32_DEFINED 1
|
|---|
| 3127 | EOF
|
|---|
| 3128 |
|
|---|
| 3129 | fi
|
|---|
| 3130 | rm -f conftest*
|
|---|
| 3131 |
|
|---|
| 3132 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3133 | #line 3134 "configure"
|
|---|
| 3134 | #include "confdefs.h"
|
|---|
| 3135 | #include <sys/types.h>
|
|---|
| 3136 | EOF
|
|---|
| 3137 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 3138 | egrep "u_int32_t" >/dev/null 2>&1; then
|
|---|
| 3139 | rm -rf conftest*
|
|---|
| 3140 | cat >> confdefs.h <<\EOF
|
|---|
| 3141 | #define HAVE_BSD_INT32_DEFINED 1
|
|---|
| 3142 | EOF
|
|---|
| 3143 |
|
|---|
| 3144 | fi
|
|---|
| 3145 | rm -f conftest*
|
|---|
| 3146 |
|
|---|
| 3147 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3148 | #line 3149 "configure"
|
|---|
| 3149 | #include "confdefs.h"
|
|---|
| 3150 | #include <sys/config.h>
|
|---|
| 3151 | EOF
|
|---|
| 3152 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 3153 | egrep "u_int32_t" >/dev/null 2>&1; then
|
|---|
| 3154 | rm -rf conftest*
|
|---|
| 3155 | cat >> confdefs.h <<\EOF
|
|---|
| 3156 | #define HAVE_BSD_INT32_DEFINED 1
|
|---|
| 3157 | EOF
|
|---|
| 3158 |
|
|---|
| 3159 | fi
|
|---|
| 3160 | rm -f conftest*
|
|---|
| 3161 |
|
|---|
| 3162 |
|
|---|
| 3163 |
|
|---|
| 3164 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3165 | #line 3166 "configure"
|
|---|
| 3166 | #include "confdefs.h"
|
|---|
| 3167 | #include <time.h>
|
|---|
| 3168 | EOF
|
|---|
| 3169 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 3170 | egrep "mktime" >/dev/null 2>&1; then
|
|---|
| 3171 | rm -rf conftest*
|
|---|
| 3172 | cat >> confdefs.h <<\EOF
|
|---|
| 3173 | #define HAVE_MKTIME 1
|
|---|
| 3174 | EOF
|
|---|
| 3175 |
|
|---|
| 3176 | fi
|
|---|
| 3177 | rm -f conftest*
|
|---|
| 3178 |
|
|---|
| 3179 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3180 | #line 3181 "configure"
|
|---|
| 3181 | #include "confdefs.h"
|
|---|
| 3182 | #include <time.h>
|
|---|
| 3183 | EOF
|
|---|
| 3184 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|---|
| 3185 | egrep "localtime" >/dev/null 2>&1; then
|
|---|
| 3186 | rm -rf conftest*
|
|---|
| 3187 | cat >> confdefs.h <<\EOF
|
|---|
| 3188 | #define HAVE_LOCALTIME 1
|
|---|
| 3189 | EOF
|
|---|
| 3190 |
|
|---|
| 3191 | fi
|
|---|
| 3192 | rm -f conftest*
|
|---|
| 3193 |
|
|---|
| 3194 |
|
|---|
| 3195 | test -d java || mkdir java
|
|---|
| 3196 | test -d java/io || mkdir java/io
|
|---|
| 3197 | test -d gnu || mkdir gnu
|
|---|
| 3198 |
|
|---|
| 3199 |
|
|---|
| 3200 |
|
|---|
| 3201 | test -d java/lang || mkdir java/lang
|
|---|
| 3202 |
|
|---|
| 3203 |
|
|---|
| 3204 |
|
|---|
| 3205 | case "${host}" in
|
|---|
| 3206 | *mingw*)
|
|---|
| 3207 | SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32"
|
|---|
| 3208 | ;;
|
|---|
| 3209 | *)
|
|---|
| 3210 | SYSTEMSPEC=
|
|---|
| 3211 | ;;
|
|---|
| 3212 | esac
|
|---|
| 3213 |
|
|---|
| 3214 |
|
|---|
| 3215 | LIBGCJTESTSPEC="-L`pwd`/.libs -rpath `pwd`/.libs"
|
|---|
| 3216 |
|
|---|
| 3217 |
|
|---|
| 3218 | # Check whether --with-system-zlib or --without-system-zlib was given.
|
|---|
| 3219 | if test "${with_system_zlib+set}" = set; then
|
|---|
| 3220 | withval="$with_system_zlib"
|
|---|
| 3221 | :
|
|---|
| 3222 | fi
|
|---|
| 3223 |
|
|---|
| 3224 | ZLIBSPEC=
|
|---|
| 3225 |
|
|---|
| 3226 | ZLIBTESTSPEC=
|
|---|
| 3227 |
|
|---|
| 3228 |
|
|---|
| 3229 | libsubdir=.libs
|
|---|
| 3230 |
|
|---|
| 3231 | echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
|
|---|
| 3232 | echo "configure:3233: checking for garbage collector to use" >&5
|
|---|
| 3233 | # Check whether --enable-java-gc or --disable-java-gc was given.
|
|---|
| 3234 | if test "${enable_java_gc+set}" = set; then
|
|---|
| 3235 | enableval="$enable_java_gc"
|
|---|
| 3236 |
|
|---|
| 3237 | GC=$enableval
|
|---|
| 3238 | else
|
|---|
| 3239 | GC=boehm
|
|---|
| 3240 | fi
|
|---|
| 3241 |
|
|---|
| 3242 | GCLIBS=
|
|---|
| 3243 | GCINCS=
|
|---|
| 3244 | GCDEPS=
|
|---|
| 3245 | GCOBJS=
|
|---|
| 3246 | GCSPEC=
|
|---|
| 3247 | JC1GCSPEC=
|
|---|
| 3248 | GCTESTSPEC=
|
|---|
| 3249 | case "$GC" in
|
|---|
| 3250 | boehm)
|
|---|
| 3251 | echo "$ac_t""boehm" 1>&6
|
|---|
| 3252 | GCLIBS=../boehm-gc/libgcjgc_convenience.la
|
|---|
| 3253 | GCINCS='-I$(top_srcdir)/../boehm-gc/include'
|
|---|
| 3254 | JC1GCSPEC='-fuse-boehm-gc'
|
|---|
| 3255 | GCTESTSPEC="-L`pwd`/../boehm-gc/.libs -rpath `pwd`/../boehm-gc/.libs"
|
|---|
| 3256 |
|
|---|
| 3257 | GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
|
|---|
| 3258 | GCOBJS=boehm.lo
|
|---|
| 3259 | GCHDR=boehm-gc.h
|
|---|
| 3260 | cat >> confdefs.h <<\EOF
|
|---|
| 3261 | #define HAVE_BOEHM_GC 1
|
|---|
| 3262 | EOF
|
|---|
| 3263 |
|
|---|
| 3264 | ;;
|
|---|
| 3265 | no)
|
|---|
| 3266 | echo "$ac_t""none" 1>&6
|
|---|
| 3267 | GCOBJS=nogc.lo
|
|---|
| 3268 | GCHDR=no-gc.h
|
|---|
| 3269 | ;;
|
|---|
| 3270 | *)
|
|---|
| 3271 | { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
|
|---|
| 3272 | ;;
|
|---|
| 3273 | esac
|
|---|
| 3274 |
|
|---|
| 3275 |
|
|---|
| 3276 |
|
|---|
| 3277 |
|
|---|
| 3278 |
|
|---|
| 3279 |
|
|---|
| 3280 |
|
|---|
| 3281 |
|
|---|
| 3282 |
|
|---|
| 3283 |
|
|---|
| 3284 | echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
|
|---|
| 3285 | echo "configure:3286: checking for thread model used by GCC" >&5
|
|---|
| 3286 | THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
|
|---|
| 3287 | echo "$ac_t""$THREADS" 1>&6
|
|---|
| 3288 |
|
|---|
| 3289 | case "$THREADS" in
|
|---|
| 3290 | no | none | single)
|
|---|
| 3291 | THREADS=none
|
|---|
| 3292 | ;;
|
|---|
| 3293 | posix | pthreads)
|
|---|
| 3294 | THREADS=posix
|
|---|
| 3295 | case "$host" in
|
|---|
| 3296 | *-*-linux*)
|
|---|
| 3297 | cat >> confdefs.h <<\EOF
|
|---|
| 3298 | #define LINUX_THREADS 1
|
|---|
| 3299 | EOF
|
|---|
| 3300 |
|
|---|
| 3301 | ;;
|
|---|
| 3302 | esac
|
|---|
| 3303 | ;;
|
|---|
| 3304 | win32)
|
|---|
| 3305 | ;;
|
|---|
| 3306 | decosf1 | irix | mach | os2 | solaris | dce | vxworks)
|
|---|
| 3307 | { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
|
|---|
| 3308 | ;;
|
|---|
| 3309 | *)
|
|---|
| 3310 | { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
|
|---|
| 3311 | ;;
|
|---|
| 3312 | esac
|
|---|
| 3313 |
|
|---|
| 3314 | THREADLDFLAGS=
|
|---|
| 3315 | THREADLIBS=
|
|---|
| 3316 | THREADINCS=
|
|---|
| 3317 | THREADDEPS=
|
|---|
| 3318 | THREADOBJS=
|
|---|
| 3319 | THREADH=
|
|---|
| 3320 | THREADSPEC=
|
|---|
| 3321 | case "$THREADS" in
|
|---|
| 3322 | posix)
|
|---|
| 3323 | case "$host" in
|
|---|
| 3324 | *-*-cygwin*)
|
|---|
| 3325 | # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
|
|---|
| 3326 | ;;
|
|---|
| 3327 |
|
|---|
| 3328 | *-*-freebsd[1234]*)
|
|---|
| 3329 |
|
|---|
| 3330 | # Before FreeBSD 5, it didn't have -lpthread (or any library which
|
|---|
| 3331 | # merely adds pthread_* functions) but it does have a -pthread switch
|
|---|
| 3332 | # which is required at link-time to select -lc_r *instead* of -lc.
|
|---|
| 3333 | THREADLDFLAGS=-pthread
|
|---|
| 3334 | # Don't set THREADSPEC here as might be expected since -pthread is
|
|---|
| 3335 | # not processed when found within a spec file, it must come from
|
|---|
| 3336 | # the command line. For now, the user must provide the -pthread
|
|---|
| 3337 | # switch to link code compiled with gcj. In future, consider adding
|
|---|
| 3338 | # support for weak references to pthread_* functions ala gthr.h API.
|
|---|
| 3339 | THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
|
|---|
| 3340 | ;;
|
|---|
| 3341 | *-*-freebsd*)
|
|---|
| 3342 | # FreeBSD 5 implements a model much closer to other modern UNIX
|
|---|
| 3343 | # which support threads. However, it still does not support
|
|---|
| 3344 | # -lpthread.
|
|---|
| 3345 | THREADLDFLAGS=-pthread
|
|---|
| 3346 | THREADSPEC=-lc_r
|
|---|
| 3347 | ;;
|
|---|
| 3348 | *)
|
|---|
| 3349 | THREADLIBS=-lpthread
|
|---|
| 3350 | THREADSPEC=-lpthread
|
|---|
| 3351 | ;;
|
|---|
| 3352 | esac
|
|---|
| 3353 | THREADOBJS=posix-threads.lo
|
|---|
| 3354 | THREADH=posix-threads.h
|
|---|
| 3355 | # MIT pthreads doesn't seem to have the mutexattr functions.
|
|---|
| 3356 | # But for now we don't check for it. We just assume you aren't
|
|---|
| 3357 | # using MIT pthreads.
|
|---|
| 3358 | cat >> confdefs.h <<\EOF
|
|---|
| 3359 | #define HAVE_PTHREAD_MUTEXATTR_INIT 1
|
|---|
| 3360 | EOF
|
|---|
| 3361 |
|
|---|
| 3362 |
|
|---|
| 3363 | # If we're using the Boehm GC, then we happen to know that it
|
|---|
| 3364 | # defines _REENTRANT, so we don't bother. Eww.
|
|---|
| 3365 | if test "$GC" != boehm; then
|
|---|
| 3366 | cat >> confdefs.h <<\EOF
|
|---|
| 3367 | #define _REENTRANT 1
|
|---|
| 3368 | EOF
|
|---|
| 3369 |
|
|---|
| 3370 | fi
|
|---|
| 3371 | cat >> confdefs.h <<\EOF
|
|---|
| 3372 | #define _POSIX_PTHREAD_SEMANTICS 1
|
|---|
| 3373 | EOF
|
|---|
| 3374 |
|
|---|
| 3375 | ;;
|
|---|
| 3376 |
|
|---|
| 3377 | win32)
|
|---|
| 3378 | THREADOBJS=win32-threads.lo
|
|---|
| 3379 | THREADH=win32-threads.h
|
|---|
| 3380 | ;;
|
|---|
| 3381 |
|
|---|
| 3382 | none)
|
|---|
| 3383 | THREADOBJS=no-threads.lo
|
|---|
| 3384 | THREADH=no-threads.h
|
|---|
| 3385 | ;;
|
|---|
| 3386 | esac
|
|---|
| 3387 |
|
|---|
| 3388 |
|
|---|
| 3389 |
|
|---|
| 3390 |
|
|---|
| 3391 |
|
|---|
| 3392 |
|
|---|
| 3393 |
|
|---|
| 3394 |
|
|---|
| 3395 | if test -d sysdep; then true; else mkdir sysdep; fi
|
|---|
| 3396 |
|
|---|
| 3397 |
|
|---|
| 3398 | HASH_SYNC_SPEC=
|
|---|
| 3399 | # Hash synchronization is only useful with posix threads right now.
|
|---|
| 3400 | if test "$enable_hash_synchronization" = yes && test "$THREADS" = "posix"; then
|
|---|
| 3401 | HASH_SYNC_SPEC=-fhash-synchronization
|
|---|
| 3402 | cat >> confdefs.h <<\EOF
|
|---|
| 3403 | #define JV_HASH_SYNCHRONIZATION 1
|
|---|
| 3404 | EOF
|
|---|
| 3405 |
|
|---|
| 3406 | fi
|
|---|
| 3407 |
|
|---|
| 3408 |
|
|---|
| 3409 |
|
|---|
| 3410 |
|
|---|
| 3411 |
|
|---|
| 3412 | if test "$GCC" = yes; then
|
|---|
| 3413 | USING_GCC_TRUE=
|
|---|
| 3414 | USING_GCC_FALSE='#'
|
|---|
| 3415 | else
|
|---|
| 3416 | USING_GCC_TRUE='#'
|
|---|
| 3417 | USING_GCC_FALSE=
|
|---|
| 3418 | fi
|
|---|
| 3419 |
|
|---|
| 3420 | CANADIAN=no
|
|---|
| 3421 | NULL_TARGET=no
|
|---|
| 3422 | NATIVE=yes
|
|---|
| 3423 |
|
|---|
| 3424 | # We're in the tree with gcc, and need to include some of its headers.
|
|---|
| 3425 | GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
|
|---|
| 3426 |
|
|---|
| 3427 | # Figure out where generated headers like libgcj-config.h get installed.
|
|---|
| 3428 | gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
|
|---|
| 3429 | gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
|
|---|
| 3430 | gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
|
|---|
| 3431 | tool_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include
|
|---|
| 3432 |
|
|---|
| 3433 |
|
|---|
| 3434 |
|
|---|
| 3435 | if test -n "${with_cross_host}"; then
|
|---|
| 3436 | # We are being configured with a cross compiler. AC_REPLACE_FUNCS
|
|---|
| 3437 | # may not work correctly, because the compiler may not be able to
|
|---|
| 3438 | # link executables.
|
|---|
| 3439 |
|
|---|
| 3440 | # We assume newlib. This lets us hard-code the functions we know
|
|---|
| 3441 | # we'll have.
|
|---|
| 3442 | cat >> confdefs.h <<\EOF
|
|---|
| 3443 | #define HAVE_MEMMOVE 1
|
|---|
| 3444 | EOF
|
|---|
| 3445 |
|
|---|
| 3446 | cat >> confdefs.h <<\EOF
|
|---|
| 3447 | #define HAVE_MEMCPY 1
|
|---|
| 3448 | EOF
|
|---|
| 3449 |
|
|---|
| 3450 | cat >> confdefs.h <<\EOF
|
|---|
| 3451 | #define HAVE_STRERROR 1
|
|---|
| 3452 | EOF
|
|---|
| 3453 |
|
|---|
| 3454 | cat >> confdefs.h <<\EOF
|
|---|
| 3455 | #define HAVE_TIME 1
|
|---|
| 3456 | EOF
|
|---|
| 3457 |
|
|---|
| 3458 | cat >> confdefs.h <<\EOF
|
|---|
| 3459 | #define HAVE_GMTIME_R 1
|
|---|
| 3460 | EOF
|
|---|
| 3461 |
|
|---|
| 3462 | cat >> confdefs.h <<\EOF
|
|---|
| 3463 | #define HAVE_LOCALTIME_R 1
|
|---|
| 3464 | EOF
|
|---|
| 3465 |
|
|---|
| 3466 | cat >> confdefs.h <<\EOF
|
|---|
| 3467 | #define HAVE_PTHREAD_MUTEXATTR_INIT 1
|
|---|
| 3468 | EOF
|
|---|
| 3469 |
|
|---|
| 3470 | cat >> confdefs.h <<\EOF
|
|---|
| 3471 | #define HAVE_ALLOCA 1
|
|---|
| 3472 | EOF
|
|---|
| 3473 |
|
|---|
| 3474 |
|
|---|
| 3475 | cat >> confdefs.h <<\EOF
|
|---|
| 3476 | #define NO_GETUID 1
|
|---|
| 3477 | EOF
|
|---|
| 3478 |
|
|---|
| 3479 |
|
|---|
| 3480 | # If Canadian cross, then don't pick up tools from the build
|
|---|
| 3481 | # directory.
|
|---|
| 3482 | if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
|
|---|
| 3483 | CANADIAN=yes
|
|---|
| 3484 | GCC_UNWIND_INCLUDE=
|
|---|
| 3485 | GCJ="${target_alias}-gcj"
|
|---|
| 3486 | fi
|
|---|
| 3487 | NATIVE=no
|
|---|
| 3488 | else
|
|---|
| 3489 | for ac_func in strerror ioctl select fstat open fsync sleep opendir
|
|---|
| 3490 | do
|
|---|
| 3491 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 3492 | echo "configure:3493: checking for $ac_func" >&5
|
|---|
| 3493 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 3494 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3495 | else
|
|---|
| 3496 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3497 | #line 3498 "configure"
|
|---|
| 3498 | #include "confdefs.h"
|
|---|
| 3499 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 3500 | which can conflict with char $ac_func(); below. */
|
|---|
| 3501 | #include <assert.h>
|
|---|
| 3502 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3503 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3504 | builtin and then its argument prototype would still apply. */
|
|---|
| 3505 | char $ac_func();
|
|---|
| 3506 |
|
|---|
| 3507 | int main() {
|
|---|
| 3508 |
|
|---|
| 3509 | /* The GNU C library defines this for functions which it implements
|
|---|
| 3510 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 3511 | something starting with __ and the normal name is an alias. */
|
|---|
| 3512 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 3513 | choke me
|
|---|
| 3514 | #else
|
|---|
| 3515 | $ac_func();
|
|---|
| 3516 | #endif
|
|---|
| 3517 |
|
|---|
| 3518 | ; return 0; }
|
|---|
| 3519 | EOF
|
|---|
| 3520 | if { (eval echo configure:3521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3521 | rm -rf conftest*
|
|---|
| 3522 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 3523 | else
|
|---|
| 3524 | echo "configure: failed program was:" >&5
|
|---|
| 3525 | cat conftest.$ac_ext >&5
|
|---|
| 3526 | rm -rf conftest*
|
|---|
| 3527 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 3528 | fi
|
|---|
| 3529 | rm -f conftest*
|
|---|
| 3530 | fi
|
|---|
| 3531 |
|
|---|
| 3532 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 3533 | echo "$ac_t""yes" 1>&6
|
|---|
| 3534 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 3535 | cat >> confdefs.h <<EOF
|
|---|
| 3536 | #define $ac_tr_func 1
|
|---|
| 3537 | EOF
|
|---|
| 3538 |
|
|---|
| 3539 | else
|
|---|
| 3540 | echo "$ac_t""no" 1>&6
|
|---|
| 3541 | fi
|
|---|
| 3542 | done
|
|---|
| 3543 |
|
|---|
| 3544 | for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
|
|---|
| 3545 | do
|
|---|
| 3546 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 3547 | echo "configure:3548: checking for $ac_func" >&5
|
|---|
| 3548 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 3549 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3550 | else
|
|---|
| 3551 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3552 | #line 3553 "configure"
|
|---|
| 3553 | #include "confdefs.h"
|
|---|
| 3554 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 3555 | which can conflict with char $ac_func(); below. */
|
|---|
| 3556 | #include <assert.h>
|
|---|
| 3557 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3558 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3559 | builtin and then its argument prototype would still apply. */
|
|---|
| 3560 | char $ac_func();
|
|---|
| 3561 |
|
|---|
| 3562 | int main() {
|
|---|
| 3563 |
|
|---|
| 3564 | /* The GNU C library defines this for functions which it implements
|
|---|
| 3565 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 3566 | something starting with __ and the normal name is an alias. */
|
|---|
| 3567 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 3568 | choke me
|
|---|
| 3569 | #else
|
|---|
| 3570 | $ac_func();
|
|---|
| 3571 | #endif
|
|---|
| 3572 |
|
|---|
| 3573 | ; return 0; }
|
|---|
| 3574 | EOF
|
|---|
| 3575 | if { (eval echo configure:3576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3576 | rm -rf conftest*
|
|---|
| 3577 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 3578 | else
|
|---|
| 3579 | echo "configure: failed program was:" >&5
|
|---|
| 3580 | cat conftest.$ac_ext >&5
|
|---|
| 3581 | rm -rf conftest*
|
|---|
| 3582 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 3583 | fi
|
|---|
| 3584 | rm -f conftest*
|
|---|
| 3585 | fi
|
|---|
| 3586 |
|
|---|
| 3587 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 3588 | echo "$ac_t""yes" 1>&6
|
|---|
| 3589 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 3590 | cat >> confdefs.h <<EOF
|
|---|
| 3591 | #define $ac_tr_func 1
|
|---|
| 3592 | EOF
|
|---|
| 3593 |
|
|---|
| 3594 | else
|
|---|
| 3595 | echo "$ac_t""no" 1>&6
|
|---|
| 3596 | fi
|
|---|
| 3597 | done
|
|---|
| 3598 |
|
|---|
| 3599 | for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
|
|---|
| 3600 | do
|
|---|
| 3601 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 3602 | echo "configure:3603: checking for $ac_func" >&5
|
|---|
| 3603 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 3604 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3605 | else
|
|---|
| 3606 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3607 | #line 3608 "configure"
|
|---|
| 3608 | #include "confdefs.h"
|
|---|
| 3609 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 3610 | which can conflict with char $ac_func(); below. */
|
|---|
| 3611 | #include <assert.h>
|
|---|
| 3612 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3613 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3614 | builtin and then its argument prototype would still apply. */
|
|---|
| 3615 | char $ac_func();
|
|---|
| 3616 |
|
|---|
| 3617 | int main() {
|
|---|
| 3618 |
|
|---|
| 3619 | /* The GNU C library defines this for functions which it implements
|
|---|
| 3620 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 3621 | something starting with __ and the normal name is an alias. */
|
|---|
| 3622 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 3623 | choke me
|
|---|
| 3624 | #else
|
|---|
| 3625 | $ac_func();
|
|---|
| 3626 | #endif
|
|---|
| 3627 |
|
|---|
| 3628 | ; return 0; }
|
|---|
| 3629 | EOF
|
|---|
| 3630 | if { (eval echo configure:3631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3631 | rm -rf conftest*
|
|---|
| 3632 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 3633 | else
|
|---|
| 3634 | echo "configure: failed program was:" >&5
|
|---|
| 3635 | cat conftest.$ac_ext >&5
|
|---|
| 3636 | rm -rf conftest*
|
|---|
| 3637 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 3638 | fi
|
|---|
| 3639 | rm -f conftest*
|
|---|
| 3640 | fi
|
|---|
| 3641 |
|
|---|
| 3642 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 3643 | echo "$ac_t""yes" 1>&6
|
|---|
| 3644 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 3645 | cat >> confdefs.h <<EOF
|
|---|
| 3646 | #define $ac_tr_func 1
|
|---|
| 3647 | EOF
|
|---|
| 3648 |
|
|---|
| 3649 | else
|
|---|
| 3650 | echo "$ac_t""no" 1>&6
|
|---|
| 3651 | fi
|
|---|
| 3652 | done
|
|---|
| 3653 |
|
|---|
| 3654 | for ac_func in nl_langinfo setlocale
|
|---|
| 3655 | do
|
|---|
| 3656 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 3657 | echo "configure:3658: checking for $ac_func" >&5
|
|---|
| 3658 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 3659 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3660 | else
|
|---|
| 3661 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3662 | #line 3663 "configure"
|
|---|
| 3663 | #include "confdefs.h"
|
|---|
| 3664 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 3665 | which can conflict with char $ac_func(); below. */
|
|---|
| 3666 | #include <assert.h>
|
|---|
| 3667 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3668 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3669 | builtin and then its argument prototype would still apply. */
|
|---|
| 3670 | char $ac_func();
|
|---|
| 3671 |
|
|---|
| 3672 | int main() {
|
|---|
| 3673 |
|
|---|
| 3674 | /* The GNU C library defines this for functions which it implements
|
|---|
| 3675 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 3676 | something starting with __ and the normal name is an alias. */
|
|---|
| 3677 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 3678 | choke me
|
|---|
| 3679 | #else
|
|---|
| 3680 | $ac_func();
|
|---|
| 3681 | #endif
|
|---|
| 3682 |
|
|---|
| 3683 | ; return 0; }
|
|---|
| 3684 | EOF
|
|---|
| 3685 | if { (eval echo configure:3686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3686 | rm -rf conftest*
|
|---|
| 3687 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 3688 | else
|
|---|
| 3689 | echo "configure: failed program was:" >&5
|
|---|
| 3690 | cat conftest.$ac_ext >&5
|
|---|
| 3691 | rm -rf conftest*
|
|---|
| 3692 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 3693 | fi
|
|---|
| 3694 | rm -f conftest*
|
|---|
| 3695 | fi
|
|---|
| 3696 |
|
|---|
| 3697 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 3698 | echo "$ac_t""yes" 1>&6
|
|---|
| 3699 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 3700 | cat >> confdefs.h <<EOF
|
|---|
| 3701 | #define $ac_tr_func 1
|
|---|
| 3702 | EOF
|
|---|
| 3703 |
|
|---|
| 3704 | else
|
|---|
| 3705 | echo "$ac_t""no" 1>&6
|
|---|
| 3706 | fi
|
|---|
| 3707 | done
|
|---|
| 3708 |
|
|---|
| 3709 | for ac_func in inet_aton inet_addr
|
|---|
| 3710 | do
|
|---|
| 3711 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 3712 | echo "configure:3713: checking for $ac_func" >&5
|
|---|
| 3713 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 3714 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3715 | else
|
|---|
| 3716 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3717 | #line 3718 "configure"
|
|---|
| 3718 | #include "confdefs.h"
|
|---|
| 3719 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 3720 | which can conflict with char $ac_func(); below. */
|
|---|
| 3721 | #include <assert.h>
|
|---|
| 3722 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3723 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3724 | builtin and then its argument prototype would still apply. */
|
|---|
| 3725 | char $ac_func();
|
|---|
| 3726 |
|
|---|
| 3727 | int main() {
|
|---|
| 3728 |
|
|---|
| 3729 | /* The GNU C library defines this for functions which it implements
|
|---|
| 3730 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 3731 | something starting with __ and the normal name is an alias. */
|
|---|
| 3732 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 3733 | choke me
|
|---|
| 3734 | #else
|
|---|
| 3735 | $ac_func();
|
|---|
| 3736 | #endif
|
|---|
| 3737 |
|
|---|
| 3738 | ; return 0; }
|
|---|
| 3739 | EOF
|
|---|
| 3740 | if { (eval echo configure:3741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3741 | rm -rf conftest*
|
|---|
| 3742 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 3743 | else
|
|---|
| 3744 | echo "configure: failed program was:" >&5
|
|---|
| 3745 | cat conftest.$ac_ext >&5
|
|---|
| 3746 | rm -rf conftest*
|
|---|
| 3747 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 3748 | fi
|
|---|
| 3749 | rm -f conftest*
|
|---|
| 3750 | fi
|
|---|
| 3751 |
|
|---|
| 3752 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 3753 | echo "$ac_t""yes" 1>&6
|
|---|
| 3754 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 3755 | cat >> confdefs.h <<EOF
|
|---|
| 3756 | #define $ac_tr_func 1
|
|---|
| 3757 | EOF
|
|---|
| 3758 | break
|
|---|
| 3759 | else
|
|---|
| 3760 | echo "$ac_t""no" 1>&6
|
|---|
| 3761 | fi
|
|---|
| 3762 | done
|
|---|
| 3763 |
|
|---|
| 3764 | for ac_func in inet_pton uname inet_ntoa
|
|---|
| 3765 | do
|
|---|
| 3766 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 3767 | echo "configure:3768: checking for $ac_func" >&5
|
|---|
| 3768 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 3769 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3770 | else
|
|---|
| 3771 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3772 | #line 3773 "configure"
|
|---|
| 3773 | #include "confdefs.h"
|
|---|
| 3774 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 3775 | which can conflict with char $ac_func(); below. */
|
|---|
| 3776 | #include <assert.h>
|
|---|
| 3777 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3778 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3779 | builtin and then its argument prototype would still apply. */
|
|---|
| 3780 | char $ac_func();
|
|---|
| 3781 |
|
|---|
| 3782 | int main() {
|
|---|
| 3783 |
|
|---|
| 3784 | /* The GNU C library defines this for functions which it implements
|
|---|
| 3785 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 3786 | something starting with __ and the normal name is an alias. */
|
|---|
| 3787 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 3788 | choke me
|
|---|
| 3789 | #else
|
|---|
| 3790 | $ac_func();
|
|---|
| 3791 | #endif
|
|---|
| 3792 |
|
|---|
| 3793 | ; return 0; }
|
|---|
| 3794 | EOF
|
|---|
| 3795 | if { (eval echo configure:3796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3796 | rm -rf conftest*
|
|---|
| 3797 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 3798 | else
|
|---|
| 3799 | echo "configure: failed program was:" >&5
|
|---|
| 3800 | cat conftest.$ac_ext >&5
|
|---|
| 3801 | rm -rf conftest*
|
|---|
| 3802 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 3803 | fi
|
|---|
| 3804 | rm -f conftest*
|
|---|
| 3805 | fi
|
|---|
| 3806 |
|
|---|
| 3807 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 3808 | echo "$ac_t""yes" 1>&6
|
|---|
| 3809 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 3810 | cat >> confdefs.h <<EOF
|
|---|
| 3811 | #define $ac_tr_func 1
|
|---|
| 3812 | EOF
|
|---|
| 3813 |
|
|---|
| 3814 | else
|
|---|
| 3815 | echo "$ac_t""no" 1>&6
|
|---|
| 3816 | fi
|
|---|
| 3817 | done
|
|---|
| 3818 |
|
|---|
| 3819 | for ac_func in fork execvp pipe sigaction
|
|---|
| 3820 | do
|
|---|
| 3821 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|---|
| 3822 | echo "configure:3823: checking for $ac_func" >&5
|
|---|
| 3823 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|---|
| 3824 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3825 | else
|
|---|
| 3826 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3827 | #line 3828 "configure"
|
|---|
| 3828 | #include "confdefs.h"
|
|---|
| 3829 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 3830 | which can conflict with char $ac_func(); below. */
|
|---|
| 3831 | #include <assert.h>
|
|---|
| 3832 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3833 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3834 | builtin and then its argument prototype would still apply. */
|
|---|
| 3835 | char $ac_func();
|
|---|
| 3836 |
|
|---|
| 3837 | int main() {
|
|---|
| 3838 |
|
|---|
| 3839 | /* The GNU C library defines this for functions which it implements
|
|---|
| 3840 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 3841 | something starting with __ and the normal name is an alias. */
|
|---|
| 3842 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|---|
| 3843 | choke me
|
|---|
| 3844 | #else
|
|---|
| 3845 | $ac_func();
|
|---|
| 3846 | #endif
|
|---|
| 3847 |
|
|---|
| 3848 | ; return 0; }
|
|---|
| 3849 | EOF
|
|---|
| 3850 | if { (eval echo configure:3851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3851 | rm -rf conftest*
|
|---|
| 3852 | eval "ac_cv_func_$ac_func=yes"
|
|---|
| 3853 | else
|
|---|
| 3854 | echo "configure: failed program was:" >&5
|
|---|
| 3855 | cat conftest.$ac_ext >&5
|
|---|
| 3856 | rm -rf conftest*
|
|---|
| 3857 | eval "ac_cv_func_$ac_func=no"
|
|---|
| 3858 | fi
|
|---|
| 3859 | rm -f conftest*
|
|---|
| 3860 | fi
|
|---|
| 3861 |
|
|---|
| 3862 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|---|
| 3863 | echo "$ac_t""yes" 1>&6
|
|---|
| 3864 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|---|
| 3865 | cat >> confdefs.h <<EOF
|
|---|
| 3866 | #define $ac_tr_func 1
|
|---|
| 3867 | EOF
|
|---|
| 3868 |
|
|---|
| 3869 | else
|
|---|
| 3870 | echo "$ac_t""no" 1>&6
|
|---|
| 3871 | fi
|
|---|
| 3872 | done
|
|---|
| 3873 |
|
|---|
| 3874 | for ac_hdr in execinfo.h unistd.h dlfcn.h
|
|---|
| 3875 | do
|
|---|
| 3876 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|---|
| 3877 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|---|
| 3878 | echo "configure:3879: checking for $ac_hdr" >&5
|
|---|
| 3879 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|---|
| 3880 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3881 | else
|
|---|
| 3882 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3883 | #include <sys/types.h>
|
|---|
| 3884 | #line 3885 "configure"
|
|---|
| 3885 | #include "confdefs.h"
|
|---|
| 3886 | #include <$ac_hdr>
|
|---|
| 3887 | EOF
|
|---|
| 3888 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|---|
| 3889 | { (eval echo configure:3890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|---|
| 3890 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|---|
| 3891 | if test -z "$ac_err"; then
|
|---|
| 3892 | rm -rf conftest*
|
|---|
| 3893 | eval "ac_cv_header_$ac_safe=yes"
|
|---|
| 3894 | else
|
|---|
| 3895 | echo "$ac_err" >&5
|
|---|
| 3896 | echo "configure: failed program was:" >&5
|
|---|
| 3897 | cat conftest.$ac_ext >&5
|
|---|
| 3898 | rm -rf conftest*
|
|---|
| 3899 | eval "ac_cv_header_$ac_safe=no"
|
|---|
| 3900 | fi
|
|---|
| 3901 | rm -f conftest*
|
|---|
| 3902 | fi
|
|---|
| 3903 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|---|
| 3904 | echo "$ac_t""yes" 1>&6
|
|---|
| 3905 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|---|
| 3906 | cat >> confdefs.h <<EOF
|
|---|
| 3907 | #define $ac_tr_hdr 1
|
|---|
| 3908 | EOF
|
|---|
| 3909 |
|
|---|
| 3910 | else
|
|---|
| 3911 | echo "$ac_t""no" 1>&6
|
|---|
| 3912 | fi
|
|---|
| 3913 | done
|
|---|
| 3914 |
|
|---|
| 3915 | echo $ac_n "checking for backtrace""... $ac_c" 1>&6
|
|---|
| 3916 | echo "configure:3917: checking for backtrace" >&5
|
|---|
| 3917 | if eval "test \"`echo '$''{'ac_cv_func_backtrace'+set}'`\" = set"; then
|
|---|
| 3918 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3919 | else
|
|---|
| 3920 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3921 | #line 3922 "configure"
|
|---|
| 3922 | #include "confdefs.h"
|
|---|
| 3923 | /* System header to define __stub macros and hopefully few prototypes,
|
|---|
| 3924 | which can conflict with char backtrace(); below. */
|
|---|
| 3925 | #include <assert.h>
|
|---|
| 3926 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3927 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3928 | builtin and then its argument prototype would still apply. */
|
|---|
| 3929 | char backtrace();
|
|---|
| 3930 |
|
|---|
| 3931 | int main() {
|
|---|
| 3932 |
|
|---|
| 3933 | /* The GNU C library defines this for functions which it implements
|
|---|
| 3934 | to always fail with ENOSYS. Some functions are actually named
|
|---|
| 3935 | something starting with __ and the normal name is an alias. */
|
|---|
| 3936 | #if defined (__stub_backtrace) || defined (__stub___backtrace)
|
|---|
| 3937 | choke me
|
|---|
| 3938 | #else
|
|---|
| 3939 | backtrace();
|
|---|
| 3940 | #endif
|
|---|
| 3941 |
|
|---|
| 3942 | ; return 0; }
|
|---|
| 3943 | EOF
|
|---|
| 3944 | if { (eval echo configure:3945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3945 | rm -rf conftest*
|
|---|
| 3946 | eval "ac_cv_func_backtrace=yes"
|
|---|
| 3947 | else
|
|---|
| 3948 | echo "configure: failed program was:" >&5
|
|---|
| 3949 | cat conftest.$ac_ext >&5
|
|---|
| 3950 | rm -rf conftest*
|
|---|
| 3951 | eval "ac_cv_func_backtrace=no"
|
|---|
| 3952 | fi
|
|---|
| 3953 | rm -f conftest*
|
|---|
| 3954 | fi
|
|---|
| 3955 |
|
|---|
| 3956 | if eval "test \"`echo '$ac_cv_func_'backtrace`\" = yes"; then
|
|---|
| 3957 | echo "$ac_t""yes" 1>&6
|
|---|
| 3958 |
|
|---|
| 3959 | case "$host" in
|
|---|
| 3960 | ia64-*-linux*)
|
|---|
| 3961 | # Has broken backtrace()
|
|---|
| 3962 | ;;
|
|---|
| 3963 | *)
|
|---|
| 3964 | cat >> confdefs.h <<\EOF
|
|---|
| 3965 | #define HAVE_BACKTRACE 1
|
|---|
| 3966 | EOF
|
|---|
| 3967 |
|
|---|
| 3968 | ;;
|
|---|
| 3969 | esac
|
|---|
| 3970 |
|
|---|
| 3971 | else
|
|---|
| 3972 | echo "$ac_t""no" 1>&6
|
|---|
| 3973 | fi
|
|---|
| 3974 |
|
|---|
| 3975 |
|
|---|
| 3976 | echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
|
|---|
| 3977 | echo "configure:3978: checking for dladdr in -ldl" >&5
|
|---|
| 3978 | ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
|
|---|
| 3979 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|---|
| 3980 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 3981 | else
|
|---|
| 3982 | ac_save_LIBS="$LIBS"
|
|---|
| 3983 | LIBS="-ldl $LIBS"
|
|---|
| 3984 | cat > conftest.$ac_ext <<EOF
|
|---|
| 3985 | #line 3986 "configure"
|
|---|
| 3986 | #include "confdefs.h"
|
|---|
| 3987 | /* Override any gcc2 internal prototype to avoid an error. */
|
|---|
| 3988 | /* We use char because int might match the return type of a gcc2
|
|---|
| 3989 | builtin and then its argument prototype would still apply. */
|
|---|
| 3990 | char dladdr();
|
|---|
| 3991 |
|
|---|
| 3992 | int main() {
|
|---|
| 3993 | dladdr()
|
|---|
| 3994 | ; return 0; }
|
|---|
| 3995 | EOF
|
|---|
| 3996 | if { (eval echo configure:3997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|---|
| 3997 | rm -rf conftest*
|
|---|
| 3998 | eval "ac_cv_lib_$ac_lib_var=yes"
|
|---|
| 3999 | else
|
|---|
| 4000 | echo "configure: failed program was:" >&5
|
|---|
| 4001 | cat conftest.$ac_ext >&5
|
|---|
| 4002 | rm -rf conftest*
|
|---|
| 4003 | eval "ac_cv_lib_$ac_lib_var=no"
|
|---|
| 4004 | fi
|
|---|
| 4005 | rm -f conftest*
|
|---|
| 4006 | LIBS="$ac_save_LIBS"
|
|---|
| 4007 |
|
|---|
| 4008 | fi
|
|---|
| 4009 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|---|
| 4010 | echo "$ac_t""yes" 1>&6
|
|---|
| 4011 |
|
|---|
| 4012 | cat >> confdefs.h <<\EOF
|
|---|
| 4013 | #define HAVE_DLADDR 1
|
|---|
| 4014 | EOF
|
|---|
| 4015 |
|
|---|
| 4016 | else
|
|---|
| 4017 | echo "$ac_t""no" 1>&6
|
|---|
| 4018 | fi
|
|---|
| 4019 |
|
|---|
| 4020 | for ac_file in /proc/self/exe
|
|---|
| 4021 | do
|
|---|
| 4022 |
|
|---|
| 4023 | ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
|
|---|
| 4024 | echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
|
|---|
| 4025 | echo "configure:4026: checking for $ac_file" >&5
|
|---|
| 4026 | if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
|
|---|
| 4027 | echo $ac_n "(cached) $ac_c" 1>&6
|
|---|
| 4028 | else
|
|---|
|
|---|