| 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 | --with-newlib           Configuring with newlib" | 
|---|
| 21 | ac_help="$ac_help | 
|---|
| 22 | --enable-multilib       build many library versions (default)" | 
|---|
| 23 | ac_help="$ac_help | 
|---|
| 24 | --enable-maintainer-mode enable make rules and dependencies not useful | 
|---|
| 25 | (and sometimes confusing) to the casual installer" | 
|---|
| 26 | ac_help="$ac_help | 
|---|
| 27 | --enable-shared[=PKGS]  build shared libraries [default=yes]" | 
|---|
| 28 | ac_help="$ac_help | 
|---|
| 29 | --enable-static[=PKGS]  build static libraries [default=yes]" | 
|---|
| 30 | ac_help="$ac_help | 
|---|
| 31 | --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]" | 
|---|
| 32 | ac_help="$ac_help | 
|---|
| 33 | --with-gnu-ld           assume the C compiler uses GNU ld [default=no]" | 
|---|
| 34 | ac_help="$ac_help | 
|---|
| 35 | --disable-libtool-lock  avoid locking (might break parallel builds)" | 
|---|
| 36 | ac_help="$ac_help | 
|---|
| 37 | --with-pic              try to use only PIC/non-PIC objects [default=use both]" | 
|---|
| 38 | ac_help="$ac_help | 
|---|
| 39 | --disable-getenv-properties | 
|---|
| 40 | don't set system properties from GCJ_PROPERTIES" | 
|---|
| 41 | ac_help="$ac_help | 
|---|
| 42 | --enable-hash-synchronization | 
|---|
| 43 | Use global hash table for monitor locks" | 
|---|
| 44 | ac_help="$ac_help | 
|---|
| 45 | --enable-libgcj-debug   enable runtime debugging code" | 
|---|
| 46 | ac_help="$ac_help | 
|---|
| 47 | --enable-interpreter    enable interpreter" | 
|---|
| 48 | ac_help="$ac_help | 
|---|
| 49 | --enable-sjlj-exceptions  force use of builtin_setjmp for exceptions" | 
|---|
| 50 | ac_help="$ac_help | 
|---|
| 51 | --disable-java-net      disable java.net" | 
|---|
| 52 | ac_help="$ac_help | 
|---|
| 53 | --without-libffi        don't use libffi" | 
|---|
| 54 | ac_help="$ac_help | 
|---|
| 55 | --disable-jvmpi         disable JVMPI support" | 
|---|
| 56 | ac_help="$ac_help | 
|---|
| 57 | --with-ecos             enable runtime eCos target support" | 
|---|
| 58 | ac_help="$ac_help | 
|---|
| 59 | --with-system-zlib      use installed libz" | 
|---|
| 60 | ac_help="$ac_help | 
|---|
| 61 | --enable-java-gc=TYPE   choose garbage collector [boehm]" | 
|---|
| 62 | ac_help="$ac_help | 
|---|
| 63 | --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib" | 
|---|
| 64 | ac_help="$ac_help | 
|---|
| 65 | --with-x                use the X Window System" | 
|---|
| 66 | ac_help="$ac_help | 
|---|
| 67 | --enable-java-awt       list of AWT peer implementations to be built" | 
|---|
| 68 |  | 
|---|
| 69 | # Initialize some variables set by options. | 
|---|
| 70 | # The variables have the same names as the options, with | 
|---|
| 71 | # dashes changed to underlines. | 
|---|
| 72 | build=NONE | 
|---|
| 73 | cache_file=./config.cache | 
|---|
| 74 | exec_prefix=NONE | 
|---|
| 75 | host=NONE | 
|---|
| 76 | no_create= | 
|---|
| 77 | nonopt=NONE | 
|---|
| 78 | no_recursion= | 
|---|
| 79 | prefix=NONE | 
|---|
| 80 | program_prefix=NONE | 
|---|
| 81 | program_suffix=NONE | 
|---|
| 82 | program_transform_name=s,x,x, | 
|---|
| 83 | silent= | 
|---|
| 84 | site= | 
|---|
| 85 | srcdir= | 
|---|
| 86 | target=NONE | 
|---|
| 87 | verbose= | 
|---|
| 88 | x_includes=NONE | 
|---|
| 89 | x_libraries=NONE | 
|---|
| 90 | bindir='${exec_prefix}/bin' | 
|---|
| 91 | sbindir='${exec_prefix}/sbin' | 
|---|
| 92 | libexecdir='${exec_prefix}/libexec' | 
|---|
| 93 | datadir='${prefix}/share' | 
|---|
| 94 | sysconfdir='${prefix}/etc' | 
|---|
| 95 | sharedstatedir='${prefix}/com' | 
|---|
| 96 | localstatedir='${prefix}/var' | 
|---|
| 97 | libdir='${exec_prefix}/lib' | 
|---|
| 98 | includedir='${prefix}/include' | 
|---|
| 99 | oldincludedir='/usr/include' | 
|---|
| 100 | infodir='${prefix}/info' | 
|---|
| 101 | mandir='${prefix}/man' | 
|---|
| 102 |  | 
|---|
| 103 | # Initialize some other variables. | 
|---|
| 104 | subdirs= | 
|---|
| 105 | MFLAGS= MAKEFLAGS= | 
|---|
| 106 | SHELL=${CONFIG_SHELL-/bin/sh} | 
|---|
| 107 | # Maximum number of lines to put in a shell here document. | 
|---|
| 108 | ac_max_here_lines=12 | 
|---|
| 109 |  | 
|---|
| 110 | ac_prev= | 
|---|
| 111 | for ac_option | 
|---|
| 112 | do | 
|---|
| 113 |  | 
|---|
| 114 | # If the previous option needs an argument, assign it. | 
|---|
| 115 | if test -n "$ac_prev"; then | 
|---|
| 116 | eval "$ac_prev=\$ac_option" | 
|---|
| 117 | ac_prev= | 
|---|
| 118 | continue | 
|---|
| 119 | fi | 
|---|
| 120 |  | 
|---|
| 121 | case "$ac_option" in | 
|---|
| 122 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | 
|---|
| 123 | *) ac_optarg= ;; | 
|---|
| 124 | esac | 
|---|
| 125 |  | 
|---|
| 126 | # Accept the important Cygnus configure options, so we can diagnose typos. | 
|---|
| 127 |  | 
|---|
| 128 | case "$ac_option" in | 
|---|
| 129 |  | 
|---|
| 130 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
|---|
| 131 | ac_prev=bindir ;; | 
|---|
| 132 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
|---|
| 133 | bindir="$ac_optarg" ;; | 
|---|
| 134 |  | 
|---|
| 135 | -build | --build | --buil | --bui | --bu) | 
|---|
| 136 | ac_prev=build ;; | 
|---|
| 137 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
|---|
| 138 | build="$ac_optarg" ;; | 
|---|
| 139 |  | 
|---|
| 140 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
|---|
| 141 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
|---|
| 142 | ac_prev=cache_file ;; | 
|---|
| 143 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
|---|
| 144 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
|---|
| 145 | cache_file="$ac_optarg" ;; | 
|---|
| 146 |  | 
|---|
| 147 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | 
|---|
| 148 | ac_prev=datadir ;; | 
|---|
| 149 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | 
|---|
| 150 | | --da=*) | 
|---|
| 151 | datadir="$ac_optarg" ;; | 
|---|
| 152 |  | 
|---|
| 153 | -disable-* | --disable-*) | 
|---|
| 154 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | 
|---|
| 155 | # Reject names that are not valid shell variable names. | 
|---|
| 156 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | 
|---|
| 157 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | 
|---|
| 158 | fi | 
|---|
| 159 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | 
|---|
| 160 | eval "enable_${ac_feature}=no" ;; | 
|---|
| 161 |  | 
|---|
| 162 | -enable-* | --enable-*) | 
|---|
| 163 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | 
|---|
| 164 | # Reject names that are not valid shell variable names. | 
|---|
| 165 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | 
|---|
| 166 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | 
|---|
| 167 | fi | 
|---|
| 168 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | 
|---|
| 169 | case "$ac_option" in | 
|---|
| 170 | *=*) ;; | 
|---|
| 171 | *) ac_optarg=yes ;; | 
|---|
| 172 | esac | 
|---|
| 173 | eval "enable_${ac_feature}='$ac_optarg'" ;; | 
|---|
| 174 |  | 
|---|
| 175 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
|---|
| 176 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
|---|
| 177 | | --exec | --exe | --ex) | 
|---|
| 178 | ac_prev=exec_prefix ;; | 
|---|
| 179 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
|---|
| 180 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
|---|
| 181 | | --exec=* | --exe=* | --ex=*) | 
|---|
| 182 | exec_prefix="$ac_optarg" ;; | 
|---|
| 183 |  | 
|---|
| 184 | -gas | --gas | --ga | --g) | 
|---|
| 185 | # Obsolete; use --with-gas. | 
|---|
| 186 | with_gas=yes ;; | 
|---|
| 187 |  | 
|---|
| 188 | -help | --help | --hel | --he) | 
|---|
| 189 | # Omit some internal or obsolete options to make the list less imposing. | 
|---|
| 190 | # This message is too long to be a string in the A/UX 3.1 sh. | 
|---|
| 191 | cat << EOF | 
|---|
| 192 | Usage: configure [options] [host] | 
|---|
| 193 | Options: [defaults in brackets after descriptions] | 
|---|
| 194 | Configuration: | 
|---|
| 195 | --cache-file=FILE       cache test results in FILE | 
|---|
| 196 | --help                  print this message | 
|---|
| 197 | --no-create             do not create output files | 
|---|
| 198 | --quiet, --silent       do not print \`checking...' messages | 
|---|
| 199 | --version               print the version of autoconf that created configure | 
|---|
| 200 | Directory and file names: | 
|---|
| 201 | --prefix=PREFIX         install architecture-independent files in PREFIX | 
|---|
| 202 | [$ac_default_prefix] | 
|---|
| 203 | --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
|---|
| 204 | [same as prefix] | 
|---|
| 205 | --bindir=DIR            user executables in DIR [EPREFIX/bin] | 
|---|
| 206 | --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin] | 
|---|
| 207 | --libexecdir=DIR        program executables in DIR [EPREFIX/libexec] | 
|---|
| 208 | --datadir=DIR           read-only architecture-independent data in DIR | 
|---|
| 209 | [PREFIX/share] | 
|---|
| 210 | --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc] | 
|---|
| 211 | --sharedstatedir=DIR    modifiable architecture-independent data in DIR | 
|---|
| 212 | [PREFIX/com] | 
|---|
| 213 | --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var] | 
|---|
| 214 | --libdir=DIR            object code libraries in DIR [EPREFIX/lib] | 
|---|
| 215 | --includedir=DIR        C header files in DIR [PREFIX/include] | 
|---|
| 216 | --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include] | 
|---|
| 217 | --infodir=DIR           info documentation in DIR [PREFIX/info] | 
|---|
| 218 | --mandir=DIR            man documentation in DIR [PREFIX/man] | 
|---|
| 219 | --srcdir=DIR            find the sources in DIR [configure dir or ..] | 
|---|
| 220 | --program-prefix=PREFIX prepend PREFIX to installed program names | 
|---|
| 221 | --program-suffix=SUFFIX append SUFFIX to installed program names | 
|---|
| 222 | --program-transform-name=PROGRAM | 
|---|
| 223 | run sed PROGRAM on installed program names | 
|---|
| 224 | EOF | 
|---|
| 225 | cat << EOF | 
|---|
| 226 | Host type: | 
|---|
| 227 | --build=BUILD           configure for building on BUILD [BUILD=HOST] | 
|---|
| 228 | --host=HOST             configure for HOST [guessed] | 
|---|
| 229 | --target=TARGET         configure for TARGET [TARGET=HOST] | 
|---|
| 230 | Features and packages: | 
|---|
| 231 | --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
|---|
| 232 | --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
|---|
| 233 | --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
|---|
| 234 | --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
|---|
| 235 | --x-includes=DIR        X include files are in DIR | 
|---|
| 236 | --x-libraries=DIR       X library files are in DIR | 
|---|
| 237 | EOF | 
|---|
| 238 | if test -n "$ac_help"; then | 
|---|
| 239 | echo "--enable and --with options recognized:$ac_help" | 
|---|
| 240 | fi | 
|---|
| 241 | exit 0 ;; | 
|---|
| 242 |  | 
|---|
| 243 | -host | --host | --hos | --ho) | 
|---|
| 244 | ac_prev=host ;; | 
|---|
| 245 | -host=* | --host=* | --hos=* | --ho=*) | 
|---|
| 246 | host="$ac_optarg" ;; | 
|---|
| 247 |  | 
|---|
| 248 | -includedir | --includedir | --includedi | --included | --include \ | 
|---|
| 249 | | --includ | --inclu | --incl | --inc) | 
|---|
| 250 | ac_prev=includedir ;; | 
|---|
| 251 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
|---|
| 252 | | --includ=* | --inclu=* | --incl=* | --inc=*) | 
|---|
| 253 | includedir="$ac_optarg" ;; | 
|---|
| 254 |  | 
|---|
| 255 | -infodir | --infodir | --infodi | --infod | --info | --inf) | 
|---|
| 256 | ac_prev=infodir ;; | 
|---|
| 257 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
|---|
| 258 | infodir="$ac_optarg" ;; | 
|---|
| 259 |  | 
|---|
| 260 | -libdir | --libdir | --libdi | --libd) | 
|---|
| 261 | ac_prev=libdir ;; | 
|---|
| 262 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
|---|
| 263 | libdir="$ac_optarg" ;; | 
|---|
| 264 |  | 
|---|
| 265 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
|---|
| 266 | | --libexe | --libex | --libe) | 
|---|
| 267 | ac_prev=libexecdir ;; | 
|---|
| 268 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
|---|
| 269 | | --libexe=* | --libex=* | --libe=*) | 
|---|
| 270 | libexecdir="$ac_optarg" ;; | 
|---|
| 271 |  | 
|---|
| 272 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
|---|
| 273 | | --localstate | --localstat | --localsta | --localst \ | 
|---|
| 274 | | --locals | --local | --loca | --loc | --lo) | 
|---|
| 275 | ac_prev=localstatedir ;; | 
|---|
| 276 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
|---|
| 277 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | 
|---|
| 278 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | 
|---|
| 279 | localstatedir="$ac_optarg" ;; | 
|---|
| 280 |  | 
|---|
| 281 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
|---|
| 282 | ac_prev=mandir ;; | 
|---|
| 283 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
|---|
| 284 | mandir="$ac_optarg" ;; | 
|---|
| 285 |  | 
|---|
| 286 | -nfp | --nfp | --nf) | 
|---|
| 287 | # Obsolete; use --without-fp. | 
|---|
| 288 | with_fp=no ;; | 
|---|
| 289 |  | 
|---|
| 290 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
|---|
| 291 | | --no-cr | --no-c) | 
|---|
| 292 | no_create=yes ;; | 
|---|
| 293 |  | 
|---|
| 294 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
|---|
| 295 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
|---|
| 296 | no_recursion=yes ;; | 
|---|
| 297 |  | 
|---|
| 298 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
|---|
| 299 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
|---|
| 300 | | --oldin | --oldi | --old | --ol | --o) | 
|---|
| 301 | ac_prev=oldincludedir ;; | 
|---|
| 302 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
|---|
| 303 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
|---|
| 304 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
|---|
| 305 | oldincludedir="$ac_optarg" ;; | 
|---|
| 306 |  | 
|---|
| 307 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
|---|
| 308 | ac_prev=prefix ;; | 
|---|
| 309 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
|---|
| 310 | prefix="$ac_optarg" ;; | 
|---|
| 311 |  | 
|---|
| 312 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
|---|
| 313 | | --program-pre | --program-pr | --program-p) | 
|---|
| 314 | ac_prev=program_prefix ;; | 
|---|
| 315 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
|---|
| 316 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
|---|
| 317 | program_prefix="$ac_optarg" ;; | 
|---|
| 318 |  | 
|---|
| 319 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
|---|
| 320 | | --program-suf | --program-su | --program-s) | 
|---|
| 321 | ac_prev=program_suffix ;; | 
|---|
| 322 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
|---|
| 323 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
|---|
| 324 | program_suffix="$ac_optarg" ;; | 
|---|
| 325 |  | 
|---|
| 326 | -program-transform-name | --program-transform-name \ | 
|---|
| 327 | | --program-transform-nam | --program-transform-na \ | 
|---|
| 328 | | --program-transform-n | --program-transform- \ | 
|---|
| 329 | | --program-transform | --program-transfor \ | 
|---|
| 330 | | --program-transfo | --program-transf \ | 
|---|
| 331 | | --program-trans | --program-tran \ | 
|---|
| 332 | | --progr-tra | --program-tr | --program-t) | 
|---|
| 333 | ac_prev=program_transform_name ;; | 
|---|
| 334 | -program-transform-name=* | --program-transform-name=* \ | 
|---|
| 335 | | --program-transform-nam=* | --program-transform-na=* \ | 
|---|
| 336 | | --program-transform-n=* | --program-transform-=* \ | 
|---|
| 337 | | --program-transform=* | --program-transfor=* \ | 
|---|
| 338 | | --program-transfo=* | --program-transf=* \ | 
|---|
| 339 | | --program-trans=* | --program-tran=* \ | 
|---|
| 340 | | --progr-tra=* | --program-tr=* | --program-t=*) | 
|---|
| 341 | program_transform_name="$ac_optarg" ;; | 
|---|
| 342 |  | 
|---|
| 343 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|---|
| 344 | | -silent | --silent | --silen | --sile | --sil) | 
|---|
| 345 | silent=yes ;; | 
|---|
| 346 |  | 
|---|
| 347 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
|---|
| 348 | ac_prev=sbindir ;; | 
|---|
| 349 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
|---|
| 350 | | --sbi=* | --sb=*) | 
|---|
| 351 | sbindir="$ac_optarg" ;; | 
|---|
| 352 |  | 
|---|
| 353 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
|---|
| 354 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
|---|
| 355 | | --sharedst | --shareds | --shared | --share | --shar \ | 
|---|
| 356 | | --sha | --sh) | 
|---|
| 357 | ac_prev=sharedstatedir ;; | 
|---|
| 358 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
|---|
| 359 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
|---|
| 360 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
|---|
| 361 | | --sha=* | --sh=*) | 
|---|
| 362 | sharedstatedir="$ac_optarg" ;; | 
|---|
| 363 |  | 
|---|
| 364 | -site | --site | --sit) | 
|---|
| 365 | ac_prev=site ;; | 
|---|
| 366 | -site=* | --site=* | --sit=*) | 
|---|
| 367 | site="$ac_optarg" ;; | 
|---|
| 368 |  | 
|---|
| 369 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
|---|
| 370 | ac_prev=srcdir ;; | 
|---|
| 371 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
|---|
| 372 | srcdir="$ac_optarg" ;; | 
|---|
| 373 |  | 
|---|
| 374 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
|---|
| 375 | | --syscon | --sysco | --sysc | --sys | --sy) | 
|---|
| 376 | ac_prev=sysconfdir ;; | 
|---|
| 377 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
|---|
| 378 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
|---|
| 379 | sysconfdir="$ac_optarg" ;; | 
|---|
| 380 |  | 
|---|
| 381 | -target | --target | --targe | --targ | --tar | --ta | --t) | 
|---|
| 382 | ac_prev=target ;; | 
|---|
| 383 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
|---|
| 384 | target="$ac_optarg" ;; | 
|---|
| 385 |  | 
|---|
| 386 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
|---|
| 387 | verbose=yes ;; | 
|---|
| 388 |  | 
|---|
| 389 | -version | --version | --versio | --versi | --vers) | 
|---|
| 390 | echo "configure generated by autoconf version 2.13" | 
|---|
| 391 | exit 0 ;; | 
|---|
| 392 |  | 
|---|
| 393 | -with-* | --with-*) | 
|---|
| 394 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | 
|---|
| 395 | # Reject names that are not valid shell variable names. | 
|---|
| 396 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | 
|---|
| 397 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | 
|---|
| 398 | fi | 
|---|
| 399 | ac_package=`echo $ac_package| sed 's/-/_/g'` | 
|---|
| 400 | case "$ac_option" in | 
|---|
| 401 | *=*) ;; | 
|---|
| 402 | *) ac_optarg=yes ;; | 
|---|
| 403 | esac | 
|---|
| 404 | eval "with_${ac_package}='$ac_optarg'" ;; | 
|---|
| 405 |  | 
|---|
| 406 | -without-* | --without-*) | 
|---|
| 407 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | 
|---|
| 408 | # Reject names that are not valid shell variable names. | 
|---|
| 409 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | 
|---|
| 410 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | 
|---|
| 411 | fi | 
|---|
| 412 | ac_package=`echo $ac_package| sed 's/-/_/g'` | 
|---|
| 413 | eval "with_${ac_package}=no" ;; | 
|---|
| 414 |  | 
|---|
| 415 | --x) | 
|---|
| 416 | # Obsolete; use --with-x. | 
|---|
| 417 | with_x=yes ;; | 
|---|
| 418 |  | 
|---|
| 419 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
|---|
| 420 | | --x-incl | --x-inc | --x-in | --x-i) | 
|---|
| 421 | ac_prev=x_includes ;; | 
|---|
| 422 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
|---|
| 423 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
|---|
| 424 | x_includes="$ac_optarg" ;; | 
|---|
| 425 |  | 
|---|
| 426 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
|---|
| 427 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
|---|
| 428 | ac_prev=x_libraries ;; | 
|---|
| 429 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
|---|
| 430 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | 
|---|
| 431 | x_libraries="$ac_optarg" ;; | 
|---|
| 432 |  | 
|---|
| 433 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | 
|---|
| 434 | ;; | 
|---|
| 435 |  | 
|---|
| 436 | *) | 
|---|
| 437 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | 
|---|
| 438 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | 
|---|
| 439 | fi | 
|---|
| 440 | if test "x$nonopt" != xNONE; then | 
|---|
| 441 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | 
|---|
| 442 | fi | 
|---|
| 443 | nonopt="$ac_option" | 
|---|
| 444 | ;; | 
|---|
| 445 |  | 
|---|
| 446 | esac | 
|---|
| 447 | done | 
|---|
| 448 |  | 
|---|
| 449 | if test -n "$ac_prev"; then | 
|---|
| 450 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | 
|---|
| 451 | fi | 
|---|
| 452 |  | 
|---|
| 453 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | 
|---|
| 454 |  | 
|---|
| 455 | # File descriptor usage: | 
|---|
| 456 | # 0 standard input | 
|---|
| 457 | # 1 file creation | 
|---|
| 458 | # 2 errors and warnings | 
|---|
| 459 | # 3 some systems may open it to /dev/tty | 
|---|
| 460 | # 4 used on the Kubota Titan | 
|---|
| 461 | # 6 checking for... messages and results | 
|---|
| 462 | # 5 compiler messages saved in config.log | 
|---|
| 463 | if test "$silent" = yes; then | 
|---|
| 464 | exec 6>/dev/null | 
|---|
| 465 | else | 
|---|
| 466 | exec 6>&1 | 
|---|
| 467 | fi | 
|---|
| 468 | exec 5>./config.log | 
|---|
| 469 |  | 
|---|
| 470 | echo "\ | 
|---|
| 471 | This file contains any messages produced by compilers while | 
|---|
| 472 | running configure, to aid debugging if configure makes a mistake. | 
|---|
| 473 | " 1>&5 | 
|---|
| 474 |  | 
|---|
| 475 | # Strip out --no-create and --no-recursion so they do not pile up. | 
|---|
| 476 | # Also quote any args containing shell metacharacters. | 
|---|
| 477 | ac_configure_args= | 
|---|
| 478 | for ac_arg | 
|---|
| 479 | do | 
|---|
| 480 | case "$ac_arg" in | 
|---|
| 481 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
|---|
| 482 | | --no-cr | --no-c) ;; | 
|---|
| 483 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
|---|
| 484 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | 
|---|
| 485 | *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | 
|---|
| 486 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | 
|---|
| 487 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | 
|---|
| 488 | esac | 
|---|
| 489 | done | 
|---|
| 490 |  | 
|---|
| 491 | # NLS nuisances. | 
|---|
| 492 | # Only set these to C if already set.  These must not be set unconditionally | 
|---|
| 493 | # because not all systems understand e.g. LANG=C (notably SCO). | 
|---|
| 494 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | 
|---|
| 495 | # Non-C LC_CTYPE values break the ctype check. | 
|---|
| 496 | if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi | 
|---|
| 497 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | 
|---|
| 498 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | 
|---|
| 499 | if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi | 
|---|
| 500 |  | 
|---|
| 501 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
|---|
| 502 | rm -rf conftest* confdefs.h | 
|---|
| 503 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | 
|---|
| 504 | echo > confdefs.h | 
|---|
| 505 |  | 
|---|
| 506 | # A filename unique to this package, relative to the directory that | 
|---|
| 507 | # configure is in, which we can look for to find out if srcdir is correct. | 
|---|
| 508 | ac_unique_file=java/lang/System.java | 
|---|
| 509 |  | 
|---|
| 510 | # Find the source files, if location was not specified. | 
|---|
| 511 | if test -z "$srcdir"; then | 
|---|
| 512 | ac_srcdir_defaulted=yes | 
|---|
| 513 | # Try the directory containing this script, then its parent. | 
|---|
| 514 | ac_prog=$0 | 
|---|
| 515 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | 
|---|
| 516 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | 
|---|
| 517 | srcdir=$ac_confdir | 
|---|
| 518 | if test ! -r $srcdir/$ac_unique_file; then | 
|---|
| 519 | srcdir=.. | 
|---|
| 520 | fi | 
|---|
| 521 | else | 
|---|
| 522 | ac_srcdir_defaulted=no | 
|---|
| 523 | fi | 
|---|
| 524 | if test ! -r $srcdir/$ac_unique_file; then | 
|---|
| 525 | if test "$ac_srcdir_defaulted" = yes; then | 
|---|
| 526 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | 
|---|
| 527 | else | 
|---|
| 528 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | 
|---|
| 529 | fi | 
|---|
| 530 | fi | 
|---|
| 531 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | 
|---|
| 532 |  | 
|---|
| 533 | # Prefer explicitly selected file to automatically selected ones. | 
|---|
| 534 | if test -z "$CONFIG_SITE"; then | 
|---|
| 535 | if test "x$prefix" != xNONE; then | 
|---|
| 536 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | 
|---|
| 537 | else | 
|---|
| 538 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | 
|---|
| 539 | fi | 
|---|
| 540 | fi | 
|---|
| 541 | for ac_site_file in $CONFIG_SITE; do | 
|---|
| 542 | if test -r "$ac_site_file"; then | 
|---|
| 543 | echo "loading site script $ac_site_file" | 
|---|
| 544 | . "$ac_site_file" | 
|---|
| 545 | fi | 
|---|
| 546 | done | 
|---|
| 547 |  | 
|---|
| 548 | if test -r "$cache_file"; then | 
|---|
| 549 | echo "loading cache $cache_file" | 
|---|
| 550 | . $cache_file | 
|---|
| 551 | else | 
|---|
| 552 | echo "creating cache $cache_file" | 
|---|
| 553 | > $cache_file | 
|---|
| 554 | fi | 
|---|
| 555 |  | 
|---|
| 556 | ac_ext=c | 
|---|
| 557 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
|---|
| 558 | ac_cpp='$CPP $CPPFLAGS' | 
|---|
| 559 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
|---|
| 560 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
|---|
| 561 | cross_compiling=$ac_cv_prog_cc_cross | 
|---|
| 562 |  | 
|---|
| 563 | ac_exeext= | 
|---|
| 564 | ac_objext=o | 
|---|
| 565 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | 
|---|
| 566 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | 
|---|
| 567 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | 
|---|
| 568 | ac_n= ac_c=' | 
|---|
| 569 | ' ac_t='        ' | 
|---|
| 570 | else | 
|---|
| 571 | ac_n=-n ac_c= ac_t= | 
|---|
| 572 | fi | 
|---|
| 573 | else | 
|---|
| 574 | ac_n= ac_c='\c' ac_t= | 
|---|
| 575 | fi | 
|---|
| 576 |  | 
|---|
| 577 | echo $ac_n "checking for path separator""... $ac_c" 1>&6 | 
|---|
| 578 | echo "configure:579: checking for path separator" >&5 | 
|---|
| 579 | # Filter path to get backslahes into forwardslashes | 
|---|
| 580 | case "`uname -s 2> /dev/null`" in | 
|---|
| 581 | OS/2) | 
|---|
| 582 | PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'` | 
|---|
| 583 | PATH_IFS=';' | 
|---|
| 584 | ;; | 
|---|
| 585 | *) | 
|---|
| 586 | PATH_IFS=':' | 
|---|
| 587 | ;; | 
|---|
| 588 | esac | 
|---|
| 589 | echo "$ac_t""${PATH_IFS}" 1>&6 | 
|---|
| 590 |  | 
|---|
| 591 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 | 
|---|
| 592 | echo "configure:593: checking for Cygwin environment" >&5 | 
|---|
| 593 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then | 
|---|
| 594 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 595 | else | 
|---|
| 596 | cat > conftest.$ac_ext <<EOF | 
|---|
| 597 | #line 598 "configure" | 
|---|
| 598 | #include "confdefs.h" | 
|---|
| 599 |  | 
|---|
| 600 | int main() { | 
|---|
| 601 |  | 
|---|
| 602 | #ifndef __CYGWIN__ | 
|---|
| 603 | #define __CYGWIN__ __CYGWIN32__ | 
|---|
| 604 | #endif | 
|---|
| 605 | return __CYGWIN__; | 
|---|
| 606 | ; return 0; } | 
|---|
| 607 | EOF | 
|---|
| 608 | if { (eval echo configure:609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 609 | rm -rf conftest* | 
|---|
| 610 | ac_cv_cygwin=yes | 
|---|
| 611 | else | 
|---|
| 612 | echo "configure: failed program was:" >&5 | 
|---|
| 613 | cat conftest.$ac_ext >&5 | 
|---|
| 614 | rm -rf conftest* | 
|---|
| 615 | ac_cv_cygwin=no | 
|---|
| 616 | fi | 
|---|
| 617 | rm -f conftest* | 
|---|
| 618 | rm -f conftest* | 
|---|
| 619 | fi | 
|---|
| 620 |  | 
|---|
| 621 | echo "$ac_t""$ac_cv_cygwin" 1>&6 | 
|---|
| 622 | CYGWIN= | 
|---|
| 623 | test "$ac_cv_cygwin" = yes && CYGWIN=yes | 
|---|
| 624 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 | 
|---|
| 625 | echo "configure:626: checking for mingw32 environment" >&5 | 
|---|
| 626 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then | 
|---|
| 627 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 628 | else | 
|---|
| 629 | cat > conftest.$ac_ext <<EOF | 
|---|
| 630 | #line 631 "configure" | 
|---|
| 631 | #include "confdefs.h" | 
|---|
| 632 |  | 
|---|
| 633 | int main() { | 
|---|
| 634 | return __MINGW32__; | 
|---|
| 635 | ; return 0; } | 
|---|
| 636 | EOF | 
|---|
| 637 | if { (eval echo configure:638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 638 | rm -rf conftest* | 
|---|
| 639 | ac_cv_mingw32=yes | 
|---|
| 640 | else | 
|---|
| 641 | echo "configure: failed program was:" >&5 | 
|---|
| 642 | cat conftest.$ac_ext >&5 | 
|---|
| 643 | rm -rf conftest* | 
|---|
| 644 | ac_cv_mingw32=no | 
|---|
| 645 | fi | 
|---|
| 646 | rm -f conftest* | 
|---|
| 647 | rm -f conftest* | 
|---|
| 648 | fi | 
|---|
| 649 |  | 
|---|
| 650 | echo "$ac_t""$ac_cv_mingw32" 1>&6 | 
|---|
| 651 | MINGW32= | 
|---|
| 652 | test "$ac_cv_mingw32" = yes && MINGW32=yes | 
|---|
| 653 | echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6 | 
|---|
| 654 | echo "configure:655: checking for EMX/OS2 environment" >&5 | 
|---|
| 655 | if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then | 
|---|
| 656 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 657 | else | 
|---|
| 658 | : ${CC=gcc.exe} | 
|---|
| 659 | cat > conftest.$ac_ext <<EOF | 
|---|
| 660 | #line 661 "configure" | 
|---|
| 661 | #include "confdefs.h" | 
|---|
| 662 |  | 
|---|
| 663 | int main() { | 
|---|
| 664 | return __EMX__; | 
|---|
| 665 | ; return 0; } | 
|---|
| 666 | EOF | 
|---|
| 667 | if { (eval echo configure:668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 668 | rm -rf conftest* | 
|---|
| 669 | ac_cv_emxos2=yes | 
|---|
| 670 | else | 
|---|
| 671 | echo "configure: failed program was:" >&5 | 
|---|
| 672 | cat conftest.$ac_ext >&5 | 
|---|
| 673 | rm -rf conftest* | 
|---|
| 674 | ac_cv_emxos2=no | 
|---|
| 675 | fi | 
|---|
| 676 | rm -f conftest* | 
|---|
| 677 | rm -f conftest* | 
|---|
| 678 | fi | 
|---|
| 679 |  | 
|---|
| 680 | echo "$ac_t""$ac_cv_emxos2" 1>&6 | 
|---|
| 681 | if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then | 
|---|
| 682 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 683 | else | 
|---|
| 684 | if test "$ac_cv_emxos2" = yes ; then | 
|---|
| 685 | ac_cv_libpre= | 
|---|
| 686 | else | 
|---|
| 687 | ac_cv_libpre=lib | 
|---|
| 688 | fi | 
|---|
| 689 |  | 
|---|
| 690 | fi | 
|---|
| 691 |  | 
|---|
| 692 | EMXOS2= | 
|---|
| 693 | test "$ac_cv_emxos2" = yes && EMXOS2=yes | 
|---|
| 694 |  | 
|---|
| 695 |  | 
|---|
| 696 |  | 
|---|
| 697 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | 
|---|
| 698 | echo "configure:699: checking for executable suffix" >&5 | 
|---|
| 699 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then | 
|---|
| 700 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 701 | else | 
|---|
| 702 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then | 
|---|
| 703 | ac_cv_exeext=.exe | 
|---|
| 704 | else | 
|---|
| 705 | rm -f conftest* | 
|---|
| 706 | echo 'int main () { return 0; }' > conftest.$ac_ext | 
|---|
| 707 | ac_cv_exeext= | 
|---|
| 708 | if { (eval echo configure:709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then | 
|---|
| 709 | for file in conftest.*; do | 
|---|
| 710 | case $file in | 
|---|
| 711 | *.c | *.o | *.obj) ;; | 
|---|
| 712 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; | 
|---|
| 713 | esac | 
|---|
| 714 | done | 
|---|
| 715 | else | 
|---|
| 716 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | 
|---|
| 717 | fi | 
|---|
| 718 | rm -f conftest* | 
|---|
| 719 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | 
|---|
| 720 | fi | 
|---|
| 721 | fi | 
|---|
| 722 |  | 
|---|
| 723 | EXEEXT="" | 
|---|
| 724 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | 
|---|
| 725 | echo "$ac_t""${ac_cv_exeext}" 1>&6 | 
|---|
| 726 | ac_exeext=$EXEEXT | 
|---|
| 727 |  | 
|---|
| 728 |  | 
|---|
| 729 |  | 
|---|
| 730 | # This works around the fact that libtool configuration may change LD | 
|---|
| 731 | # for this particular configuration, but some shells, instead of | 
|---|
| 732 | # keeping the changes in LD private, export them just because LD is | 
|---|
| 733 | # exported. | 
|---|
| 734 | ORIGINAL_LD_FOR_MULTILIBS=$LD | 
|---|
| 735 |  | 
|---|
| 736 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | 
|---|
| 737 | echo "configure:738: checking whether ln -s works" >&5 | 
|---|
| 738 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then | 
|---|
| 739 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 740 | else | 
|---|
| 741 | rm -f conftestdata | 
|---|
| 742 | if ln -s X conftestdata 2>/dev/null | 
|---|
| 743 | then | 
|---|
| 744 | rm -f conftestdata | 
|---|
| 745 | ac_cv_prog_LN_S="ln -s" | 
|---|
| 746 | else | 
|---|
| 747 | echo A > conftestdata; | 
|---|
| 748 | if ln conftestdata conftestdata2 2>/dev/null; then | 
|---|
| 749 | ac_cv_prog_LN_S=ln | 
|---|
| 750 | else | 
|---|
| 751 | ac_cv_prog_LN_S=cp | 
|---|
| 752 | fi | 
|---|
| 753 | fi | 
|---|
| 754 | rm -f conftestdata* | 
|---|
| 755 | fi | 
|---|
| 756 | LN_S="$ac_cv_prog_LN_S" | 
|---|
| 757 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | 
|---|
| 758 | echo "$ac_t""yes" 1>&6 | 
|---|
| 759 | else | 
|---|
| 760 | echo "$ac_t""no" 1>&6 | 
|---|
| 761 | fi | 
|---|
| 762 |  | 
|---|
| 763 |  | 
|---|
| 764 | # Check whether --with-target-subdir or --without-target-subdir was given. | 
|---|
| 765 | if test "${with_target_subdir+set}" = set; then | 
|---|
| 766 | withval="$with_target_subdir" | 
|---|
| 767 | : | 
|---|
| 768 | fi | 
|---|
| 769 |  | 
|---|
| 770 | # Check whether --with-cross-host or --without-cross-host was given. | 
|---|
| 771 | if test "${with_cross_host+set}" = set; then | 
|---|
| 772 | withval="$with_cross_host" | 
|---|
| 773 | : | 
|---|
| 774 | fi | 
|---|
| 775 |  | 
|---|
| 776 |  | 
|---|
| 777 | # Check whether --with-newlib or --without-newlib was given. | 
|---|
| 778 | if test "${with_newlib+set}" = set; then | 
|---|
| 779 | withval="$with_newlib" | 
|---|
| 780 | : | 
|---|
| 781 | fi | 
|---|
| 782 |  | 
|---|
| 783 |  | 
|---|
| 784 | # Find a good install program.  We prefer a C program (faster), | 
|---|
| 785 | # so one script is as good as another.  But avoid the broken or | 
|---|
| 786 | # incompatible versions: | 
|---|
| 787 | # SysV /etc/install, /usr/sbin/install | 
|---|
| 788 | # SunOS /usr/etc/install | 
|---|
| 789 | # IRIX /sbin/install | 
|---|
| 790 | # AIX /bin/install | 
|---|
| 791 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
|---|
| 792 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
|---|
| 793 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
|---|
| 794 | # ./install, which can be erroneously created by make from ./install.sh. | 
|---|
| 795 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | 
|---|
| 796 | echo "configure:797: checking for a BSD compatible install" >&5 | 
|---|
| 797 | if test -z "$INSTALL"; then | 
|---|
| 798 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | 
|---|
| 799 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 800 | else | 
|---|
| 801 | IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS" | 
|---|
| 802 | for ac_dir in $PATH; do | 
|---|
| 803 | # Account for people who put trailing slashes in PATH elements. | 
|---|
| 804 | case "$ac_dir/" in | 
|---|
| 805 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | 
|---|
| 806 | # We reject the install program from OS/2 or W3.1 | 
|---|
| 807 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;; | 
|---|
| 808 | *) | 
|---|
| 809 | # OSF1 and SCO ODT 3.0 have their own names for install. | 
|---|
| 810 | # Don't use installbsd from OSF since it installs stuff as root | 
|---|
| 811 | # by default. | 
|---|
| 812 | for ac_prog in ginstall scoinst install; do | 
|---|
| 813 | if test -f $ac_dir/$ac_prog$ac_exeext; then | 
|---|
| 814 | if test $ac_prog = install && | 
|---|
| 815 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | 
|---|
| 816 | # AIX install.  It has an incompatible calling convention. | 
|---|
| 817 | : | 
|---|
| 818 | else | 
|---|
| 819 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c" | 
|---|
| 820 | break 2 | 
|---|
| 821 | fi | 
|---|
| 822 | fi | 
|---|
| 823 | done | 
|---|
| 824 | ;; | 
|---|
| 825 | esac | 
|---|
| 826 | done | 
|---|
| 827 | IFS="$ac_save_IFS" | 
|---|
| 828 |  | 
|---|
| 829 | fi | 
|---|
| 830 | if test "${ac_cv_path_install+set}" = set; then | 
|---|
| 831 | INSTALL="$ac_cv_path_install" | 
|---|
| 832 | else | 
|---|
| 833 | # As a last resort, use the slow shell script.  We don't cache a | 
|---|
| 834 | # path for INSTALL within a source directory, because that will | 
|---|
| 835 | # break other packages using the cache if that directory is | 
|---|
| 836 | # removed, or if the path is relative. | 
|---|
| 837 | INSTALL="$ac_install_sh" | 
|---|
| 838 | fi | 
|---|
| 839 | fi | 
|---|
| 840 | echo "$ac_t""$INSTALL" 1>&6 | 
|---|
| 841 |  | 
|---|
| 842 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
|---|
| 843 | # It thinks the first close brace ends the variable substitution. | 
|---|
| 844 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
|---|
| 845 |  | 
|---|
| 846 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | 
|---|
| 847 |  | 
|---|
| 848 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
|---|
| 849 |  | 
|---|
| 850 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 | 
|---|
| 851 | echo "configure:852: checking whether build environment is sane" >&5 | 
|---|
| 852 | # Just in case | 
|---|
| 853 | sleep 1 | 
|---|
| 854 | echo timestamp > conftestfile | 
|---|
| 855 | # Do `set' in a subshell so we don't clobber the current shell's | 
|---|
| 856 | # arguments.  Must try -L first in case configure is actually a | 
|---|
| 857 | # symlink; some systems play weird games with the mod time of symlinks | 
|---|
| 858 | # (eg FreeBSD returns the mod time of the symlink's containing | 
|---|
| 859 | # directory). | 
|---|
| 860 | if ( | 
|---|
| 861 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` | 
|---|
| 862 | if test "$*" = "X"; then | 
|---|
| 863 | # -L didn't work. | 
|---|
| 864 | set X `ls -t $srcdir/configure conftestfile` | 
|---|
| 865 | fi | 
|---|
| 866 | if test "$*" != "X $srcdir/configure conftestfile" \ | 
|---|
| 867 | && test "$*" != "X conftestfile $srcdir/configure"; then | 
|---|
| 868 |  | 
|---|
| 869 | # If neither matched, then we have a broken ls.  This can happen | 
|---|
| 870 | # if, for instance, CONFIG_SHELL is bash and it inherits a | 
|---|
| 871 | # broken ls alias from the environment.  This has actually | 
|---|
| 872 | # happened.  Such a system could not be considered "sane". | 
|---|
| 873 | { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken | 
|---|
| 874 | alias in your environment" 1>&2; exit 1; } | 
|---|
| 875 | fi | 
|---|
| 876 |  | 
|---|
| 877 | test "$2" = conftestfile | 
|---|
| 878 | ) | 
|---|
| 879 | then | 
|---|
| 880 | # Ok. | 
|---|
| 881 | : | 
|---|
| 882 | else | 
|---|
| 883 | { echo "configure: error: newly created file is older than distributed files! | 
|---|
| 884 | Check your system clock" 1>&2; exit 1; } | 
|---|
| 885 | fi | 
|---|
| 886 | rm -f conftest* | 
|---|
| 887 | echo "$ac_t""yes" 1>&6 | 
|---|
| 888 | if test "$program_transform_name" = s,x,x,; then | 
|---|
| 889 | program_transform_name= | 
|---|
| 890 | else | 
|---|
| 891 | # Double any \ or $.  echo might interpret backslashes. | 
|---|
| 892 | cat <<\EOF_SED > conftestsed | 
|---|
| 893 | s,\\,\\\\,g; s,\$,$$,g | 
|---|
| 894 | EOF_SED | 
|---|
| 895 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" | 
|---|
| 896 | rm -f conftestsed | 
|---|
| 897 | fi | 
|---|
| 898 | test "$program_prefix" != NONE && | 
|---|
| 899 | program_transform_name="s,^,${program_prefix},; $program_transform_name" | 
|---|
| 900 | # Use a double $ so make ignores it. | 
|---|
| 901 | test "$program_suffix" != NONE && | 
|---|
| 902 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" | 
|---|
| 903 |  | 
|---|
| 904 | # sed with no file args requires a program. | 
|---|
| 905 | test "$program_transform_name" = "" && program_transform_name="s,x,x," | 
|---|
| 906 |  | 
|---|
| 907 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | 
|---|
| 908 | echo "configure:909: checking whether ${MAKE-make} sets \${MAKE}" >&5 | 
|---|
| 909 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | 
|---|
| 910 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | 
|---|
| 911 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 912 | else | 
|---|
| 913 | cat > conftestmake <<\EOF | 
|---|
| 914 | all: | 
|---|
| 915 | @echo 'ac_maketemp="${MAKE}"' | 
|---|
| 916 | EOF | 
|---|
| 917 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | 
|---|
| 918 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | 
|---|
| 919 | if test -n "$ac_maketemp"; then | 
|---|
| 920 | eval ac_cv_prog_make_${ac_make}_set=yes | 
|---|
| 921 | else | 
|---|
| 922 | eval ac_cv_prog_make_${ac_make}_set=no | 
|---|
| 923 | fi | 
|---|
| 924 | rm -f conftestmake | 
|---|
| 925 | fi | 
|---|
| 926 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | 
|---|
| 927 | echo "$ac_t""yes" 1>&6 | 
|---|
| 928 | SET_MAKE= | 
|---|
| 929 | else | 
|---|
| 930 | echo "$ac_t""no" 1>&6 | 
|---|
| 931 | SET_MAKE="MAKE=${MAKE-make}" | 
|---|
| 932 | fi | 
|---|
| 933 |  | 
|---|
| 934 | if test $host != $build; then | 
|---|
| 935 | ac_tool_prefix=${host_alias}- | 
|---|
| 936 | else | 
|---|
| 937 | ac_tool_prefix= | 
|---|
| 938 | fi | 
|---|
| 939 |  | 
|---|
| 940 |  | 
|---|
| 941 | # Check whether --enable-multilib or --disable-multilib was given. | 
|---|
| 942 | if test "${enable_multilib+set}" = set; then | 
|---|
| 943 | enableval="$enable_multilib" | 
|---|
| 944 | case "${enableval}" in | 
|---|
| 945 | yes) multilib=yes ;; | 
|---|
| 946 | no)  multilib=no ;; | 
|---|
| 947 | *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;; | 
|---|
| 948 | esac | 
|---|
| 949 | else | 
|---|
| 950 | multilib=yes | 
|---|
| 951 | fi | 
|---|
| 952 |  | 
|---|
| 953 |  | 
|---|
| 954 | # When building with srcdir == objdir, links to the source files will | 
|---|
| 955 | # be created in directories within the target_subdir.  We have to | 
|---|
| 956 | # adjust toplevel_srcdir accordingly, so that configure finds | 
|---|
| 957 | # install-sh and other auxiliary files that live in the top-level | 
|---|
| 958 | # source directory. | 
|---|
| 959 | if test "${srcdir}" = "."; then | 
|---|
| 960 | if test -z "${with_target_subdir}"; then | 
|---|
| 961 | toprel=".." | 
|---|
| 962 | else | 
|---|
| 963 | if test "${with_target_subdir}" != "."; then | 
|---|
| 964 | toprel="${with_multisrctop}../.." | 
|---|
| 965 | else | 
|---|
| 966 | toprel="${with_multisrctop}.." | 
|---|
| 967 | fi | 
|---|
| 968 | fi | 
|---|
| 969 | else | 
|---|
| 970 | toprel=".." | 
|---|
| 971 | fi | 
|---|
| 972 |  | 
|---|
| 973 | libgcj_basedir=$srcdir/$toprel/./libjava | 
|---|
| 974 |  | 
|---|
| 975 |  | 
|---|
| 976 | ac_aux_dir= | 
|---|
| 977 | for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do | 
|---|
| 978 | if test -f $ac_dir/install-sh; then | 
|---|
| 979 | ac_aux_dir=$ac_dir | 
|---|
| 980 | ac_install_sh="$ac_aux_dir/install-sh -c" | 
|---|
| 981 | break | 
|---|
| 982 | elif test -f $ac_dir/install.sh; then | 
|---|
| 983 | ac_aux_dir=$ac_dir | 
|---|
| 984 | ac_install_sh="$ac_aux_dir/install.sh -c" | 
|---|
| 985 | break | 
|---|
| 986 | fi | 
|---|
| 987 | done | 
|---|
| 988 | if test -z "$ac_aux_dir"; then | 
|---|
| 989 | { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; } | 
|---|
| 990 | fi | 
|---|
| 991 | ac_config_guess=$ac_aux_dir/config.guess | 
|---|
| 992 | ac_config_sub=$ac_aux_dir/config.sub | 
|---|
| 993 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | 
|---|
| 994 |  | 
|---|
| 995 | if :; then :; else | 
|---|
| 996 | # This overrides the previous occurrence for automake, but not for | 
|---|
| 997 | # autoconf, which is exactly what we want. | 
|---|
| 998 | ac_aux_dir= | 
|---|
| 999 | for ac_dir in .. $srcdir/..; do | 
|---|
| 1000 | if test -f $ac_dir/install-sh; then | 
|---|
| 1001 | ac_aux_dir=$ac_dir | 
|---|
| 1002 | ac_install_sh="$ac_aux_dir/install-sh -c" | 
|---|
| 1003 | break | 
|---|
| 1004 | elif test -f $ac_dir/install.sh; then | 
|---|
| 1005 | ac_aux_dir=$ac_dir | 
|---|
| 1006 | ac_install_sh="$ac_aux_dir/install.sh -c" | 
|---|
| 1007 | break | 
|---|
| 1008 | fi | 
|---|
| 1009 | done | 
|---|
| 1010 | if test -z "$ac_aux_dir"; then | 
|---|
| 1011 | { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; } | 
|---|
| 1012 | fi | 
|---|
| 1013 | ac_config_guess=$ac_aux_dir/config.guess | 
|---|
| 1014 | ac_config_sub=$ac_aux_dir/config.sub | 
|---|
| 1015 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | 
|---|
| 1016 |  | 
|---|
| 1017 | fi | 
|---|
| 1018 |  | 
|---|
| 1019 | # This works around an automake problem. | 
|---|
| 1020 | mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs" | 
|---|
| 1021 |  | 
|---|
| 1022 |  | 
|---|
| 1023 |  | 
|---|
| 1024 | # Do some error checking and defaulting for the host and target type. | 
|---|
| 1025 | # The inputs are: | 
|---|
| 1026 | #    configure --host=HOST --target=TARGET --build=BUILD NONOPT | 
|---|
| 1027 | # | 
|---|
| 1028 | # The rules are: | 
|---|
| 1029 | # 1. You are not allowed to specify --host, --target, and nonopt at the | 
|---|
| 1030 | #    same time. | 
|---|
| 1031 | # 2. Host defaults to nonopt. | 
|---|
| 1032 | # 3. If nonopt is not specified, then host defaults to the current host, | 
|---|
| 1033 | #    as determined by config.guess. | 
|---|
| 1034 | # 4. Target and build default to nonopt. | 
|---|
| 1035 | # 5. If nonopt is not specified, then target and build default to host. | 
|---|
| 1036 |  | 
|---|
| 1037 | # The aliases save the names the user supplied, while $host etc. | 
|---|
| 1038 | # will get canonicalized. | 
|---|
| 1039 | case $host---$target---$nonopt in | 
|---|
| 1040 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | 
|---|
| 1041 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | 
|---|
| 1042 | esac | 
|---|
| 1043 |  | 
|---|
| 1044 |  | 
|---|
| 1045 | # Make sure we can run config.sub. | 
|---|
| 1046 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | 
|---|
| 1047 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | 
|---|
| 1048 | fi | 
|---|
| 1049 |  | 
|---|
| 1050 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | 
|---|
| 1051 | echo "configure:1052: checking host system type" >&5 | 
|---|
| 1052 |  | 
|---|
| 1053 | host_alias=$host | 
|---|
| 1054 | case "$host_alias" in | 
|---|
| 1055 | NONE) | 
|---|
| 1056 | case $nonopt in | 
|---|
| 1057 | NONE) | 
|---|
| 1058 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | 
|---|
| 1059 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | 
|---|
| 1060 | fi ;; | 
|---|
| 1061 | *) host_alias=$nonopt ;; | 
|---|
| 1062 | esac ;; | 
|---|
| 1063 | esac | 
|---|
| 1064 |  | 
|---|
| 1065 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | 
|---|
| 1066 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
|---|
| 1067 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
|---|
| 1068 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
|---|
| 1069 | echo "$ac_t""$host" 1>&6 | 
|---|
| 1070 |  | 
|---|
| 1071 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | 
|---|
| 1072 | echo "configure:1073: checking target system type" >&5 | 
|---|
| 1073 |  | 
|---|
| 1074 | target_alias=$target | 
|---|
| 1075 | case "$target_alias" in | 
|---|
| 1076 | NONE) | 
|---|
| 1077 | case $nonopt in | 
|---|
| 1078 | NONE) target_alias=$host_alias ;; | 
|---|
| 1079 | *) target_alias=$nonopt ;; | 
|---|
| 1080 | esac ;; | 
|---|
| 1081 | esac | 
|---|
| 1082 |  | 
|---|
| 1083 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | 
|---|
| 1084 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
|---|
| 1085 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
|---|
| 1086 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
|---|
| 1087 | echo "$ac_t""$target" 1>&6 | 
|---|
| 1088 |  | 
|---|
| 1089 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | 
|---|
| 1090 | echo "configure:1091: checking build system type" >&5 | 
|---|
| 1091 |  | 
|---|
| 1092 | build_alias=$build | 
|---|
| 1093 | case "$build_alias" in | 
|---|
| 1094 | NONE) | 
|---|
| 1095 | case $nonopt in | 
|---|
| 1096 | NONE) build_alias=$host_alias ;; | 
|---|
| 1097 | *) build_alias=$nonopt ;; | 
|---|
| 1098 | esac ;; | 
|---|
| 1099 | esac | 
|---|
| 1100 |  | 
|---|
| 1101 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | 
|---|
| 1102 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
|---|
| 1103 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
|---|
| 1104 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
|---|
| 1105 | echo "$ac_t""$build" 1>&6 | 
|---|
| 1106 |  | 
|---|
| 1107 | test "$host_alias" != "$target_alias" && | 
|---|
| 1108 | test "$program_prefix$program_suffix$program_transform_name" = \ | 
|---|
| 1109 | NONENONEs,x,x, && | 
|---|
| 1110 | program_prefix=${target_alias}- | 
|---|
| 1111 |  | 
|---|
| 1112 |  | 
|---|
| 1113 |  | 
|---|
| 1114 |  | 
|---|
| 1115 |  | 
|---|
| 1116 | # Extract the first word of "gcc", so it can be a program name with args. | 
|---|
| 1117 | set dummy gcc; ac_word=$2 | 
|---|
| 1118 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 1119 | echo "configure:1120: checking for $ac_word" >&5 | 
|---|
| 1120 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 
|---|
| 1121 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1122 | else | 
|---|
| 1123 | if test -n "$CC"; then | 
|---|
| 1124 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|---|
| 1125 | else | 
|---|
| 1126 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 1127 | ac_dummy="$PATH" | 
|---|
| 1128 | for ac_dir in $ac_dummy; do | 
|---|
| 1129 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 1130 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 1131 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 1132 | ac_cv_prog_CC="gcc" | 
|---|
| 1133 | break | 
|---|
| 1134 | fi | 
|---|
| 1135 | done | 
|---|
| 1136 | IFS="$ac_save_ifs" | 
|---|
| 1137 | fi | 
|---|
| 1138 | fi | 
|---|
| 1139 | CC="$ac_cv_prog_CC" | 
|---|
| 1140 | if test -n "$CC"; then | 
|---|
| 1141 | echo "$ac_t""$CC" 1>&6 | 
|---|
| 1142 | else | 
|---|
| 1143 | echo "$ac_t""no" 1>&6 | 
|---|
| 1144 | fi | 
|---|
| 1145 |  | 
|---|
| 1146 | if test -z "$CC"; then | 
|---|
| 1147 | # Extract the first word of "cc", so it can be a program name with args. | 
|---|
| 1148 | set dummy cc; ac_word=$2 | 
|---|
| 1149 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 1150 | echo "configure:1151: checking for $ac_word" >&5 | 
|---|
| 1151 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 
|---|
| 1152 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1153 | else | 
|---|
| 1154 | if test -n "$CC"; then | 
|---|
| 1155 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|---|
| 1156 | else | 
|---|
| 1157 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 1158 | ac_prog_rejected=no | 
|---|
| 1159 | ac_dummy="$PATH" | 
|---|
| 1160 | for ac_dir in $ac_dummy; do | 
|---|
| 1161 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 1162 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 1163 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 1164 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \ | 
|---|
| 1165 | "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then | 
|---|
| 1166 | ac_prog_rejected=yes | 
|---|
| 1167 | continue | 
|---|
| 1168 | fi | 
|---|
| 1169 | ac_cv_prog_CC="cc" | 
|---|
| 1170 | break | 
|---|
| 1171 | fi | 
|---|
| 1172 | done | 
|---|
| 1173 | IFS="$ac_save_ifs" | 
|---|
| 1174 | if test $ac_prog_rejected = yes; then | 
|---|
| 1175 | # We found a bogon in the path, so make sure we never use it. | 
|---|
| 1176 | set dummy $ac_cv_prog_CC | 
|---|
| 1177 | shift | 
|---|
| 1178 | if test $# -gt 0; then | 
|---|
| 1179 | # We chose a different compiler from the bogus one. | 
|---|
| 1180 | # However, it has the same basename, so the bogon will be chosen | 
|---|
| 1181 | # first if we set CC to just the basename; use the full file name. | 
|---|
| 1182 | shift | 
|---|
| 1183 | set dummy "$ac_dir/$ac_word" "$@" | 
|---|
| 1184 | shift | 
|---|
| 1185 | ac_cv_prog_CC="$@" | 
|---|
| 1186 | fi | 
|---|
| 1187 | fi | 
|---|
| 1188 | fi | 
|---|
| 1189 | fi | 
|---|
| 1190 | CC="$ac_cv_prog_CC" | 
|---|
| 1191 | if test -n "$CC"; then | 
|---|
| 1192 | echo "$ac_t""$CC" 1>&6 | 
|---|
| 1193 | else | 
|---|
| 1194 | echo "$ac_t""no" 1>&6 | 
|---|
| 1195 | fi | 
|---|
| 1196 |  | 
|---|
| 1197 | if test -z "$CC"; then | 
|---|
| 1198 | case "`uname -s`" in | 
|---|
| 1199 | *win32* | *WIN32*) | 
|---|
| 1200 | # Extract the first word of "cl", so it can be a program name with args. | 
|---|
| 1201 | set dummy cl; ac_word=$2 | 
|---|
| 1202 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 1203 | echo "configure:1204: checking for $ac_word" >&5 | 
|---|
| 1204 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 
|---|
| 1205 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1206 | else | 
|---|
| 1207 | if test -n "$CC"; then | 
|---|
| 1208 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|---|
| 1209 | else | 
|---|
| 1210 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 1211 | ac_dummy="$PATH" | 
|---|
| 1212 | for ac_dir in $ac_dummy; do | 
|---|
| 1213 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 1214 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 1215 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 1216 | ac_cv_prog_CC="cl" | 
|---|
| 1217 | break | 
|---|
| 1218 | fi | 
|---|
| 1219 | done | 
|---|
| 1220 | IFS="$ac_save_ifs" | 
|---|
| 1221 | fi | 
|---|
| 1222 | fi | 
|---|
| 1223 | CC="$ac_cv_prog_CC" | 
|---|
| 1224 | if test -n "$CC"; then | 
|---|
| 1225 | echo "$ac_t""$CC" 1>&6 | 
|---|
| 1226 | else | 
|---|
| 1227 | echo "$ac_t""no" 1>&6 | 
|---|
| 1228 | fi | 
|---|
| 1229 | ;; | 
|---|
| 1230 | esac | 
|---|
| 1231 | fi | 
|---|
| 1232 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | 
|---|
| 1233 | fi | 
|---|
| 1234 |  | 
|---|
| 1235 |  | 
|---|
| 1236 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | 
|---|
| 1237 | echo "configure:1238: checking whether we are using GNU C" >&5 | 
|---|
| 1238 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | 
|---|
| 1239 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1240 | else | 
|---|
| 1241 | cat > conftest.c <<EOF | 
|---|
| 1242 | #ifdef __GNUC__ | 
|---|
| 1243 | yes; | 
|---|
| 1244 | #endif | 
|---|
| 1245 | EOF | 
|---|
| 1246 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | 
|---|
| 1247 | ac_cv_prog_gcc=yes | 
|---|
| 1248 | else | 
|---|
| 1249 | ac_cv_prog_gcc=no | 
|---|
| 1250 | fi | 
|---|
| 1251 | fi | 
|---|
| 1252 |  | 
|---|
| 1253 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | 
|---|
| 1254 |  | 
|---|
| 1255 | if test $ac_cv_prog_gcc = yes; then | 
|---|
| 1256 | GCC=yes | 
|---|
| 1257 | else | 
|---|
| 1258 | GCC= | 
|---|
| 1259 | fi | 
|---|
| 1260 |  | 
|---|
| 1261 | ac_test_CFLAGS="${CFLAGS+set}" | 
|---|
| 1262 | ac_save_CFLAGS="$CFLAGS" | 
|---|
| 1263 | CFLAGS= | 
|---|
| 1264 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | 
|---|
| 1265 | echo "configure:1266: checking whether ${CC-cc} accepts -g" >&5 | 
|---|
| 1266 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | 
|---|
| 1267 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1268 | else | 
|---|
| 1269 | echo 'void f(){}' > conftest.c | 
|---|
| 1270 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | 
|---|
| 1271 | ac_cv_prog_cc_g=yes | 
|---|
| 1272 | else | 
|---|
| 1273 | ac_cv_prog_cc_g=no | 
|---|
| 1274 | fi | 
|---|
| 1275 | rm -f conftest* | 
|---|
| 1276 |  | 
|---|
| 1277 | fi | 
|---|
| 1278 |  | 
|---|
| 1279 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | 
|---|
| 1280 | if test "$ac_test_CFLAGS" = set; then | 
|---|
| 1281 | CFLAGS="$ac_save_CFLAGS" | 
|---|
| 1282 | elif test $ac_cv_prog_cc_g = yes; then | 
|---|
| 1283 | if test "$GCC" = yes; then | 
|---|
| 1284 | CFLAGS="-g -O2" | 
|---|
| 1285 | else | 
|---|
| 1286 | CFLAGS="-g" | 
|---|
| 1287 | fi | 
|---|
| 1288 | else | 
|---|
| 1289 | if test "$GCC" = yes; then | 
|---|
| 1290 | CFLAGS="-O2" | 
|---|
| 1291 | else | 
|---|
| 1292 | CFLAGS= | 
|---|
| 1293 | fi | 
|---|
| 1294 | fi | 
|---|
| 1295 |  | 
|---|
| 1296 |  | 
|---|
| 1297 | # We use the libstdc++-v3 version of LIB_AC_PROG_CXX, but use | 
|---|
| 1298 | # glibjava_CXX instead of glibcpp_CXX.  That's because we're passed a | 
|---|
| 1299 | # different definition of CXX than other directories, since we don't | 
|---|
| 1300 | # depend on libstdc++-v3 having already been built. | 
|---|
| 1301 |  | 
|---|
| 1302 |  | 
|---|
| 1303 |  | 
|---|
| 1304 | # Use glibjava_CXX so that we do not cause CXX to be cached with the | 
|---|
| 1305 | # flags that come in CXX while configuring libjava.  They're different | 
|---|
| 1306 | # from those used for all other target libraries.  If CXX is set in | 
|---|
| 1307 | # the environment, respect that here. | 
|---|
| 1308 | glibjava_CXX=$CXX | 
|---|
| 1309 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ | 
|---|
| 1310 | do | 
|---|
| 1311 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|---|
| 1312 | set dummy $ac_prog; ac_word=$2 | 
|---|
| 1313 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 1314 | echo "configure:1315: checking for $ac_word" >&5 | 
|---|
| 1315 | if eval "test \"`echo '$''{'ac_cv_prog_glibjava_CXX'+set}'`\" = set"; then | 
|---|
| 1316 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1317 | else | 
|---|
| 1318 | if test -n "$glibjava_CXX"; then | 
|---|
| 1319 | ac_cv_prog_glibjava_CXX="$glibjava_CXX" # Let the user override the test. | 
|---|
| 1320 | else | 
|---|
| 1321 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 1322 | ac_dummy="$PATH" | 
|---|
| 1323 | for ac_dir in $ac_dummy; do | 
|---|
| 1324 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 1325 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 1326 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 1327 | ac_cv_prog_glibjava_CXX="$ac_prog" | 
|---|
| 1328 | break | 
|---|
| 1329 | fi | 
|---|
| 1330 | done | 
|---|
| 1331 | IFS="$ac_save_ifs" | 
|---|
| 1332 | fi | 
|---|
| 1333 | fi | 
|---|
| 1334 | glibjava_CXX="$ac_cv_prog_glibjava_CXX" | 
|---|
| 1335 | if test -n "$glibjava_CXX"; then | 
|---|
| 1336 | echo "$ac_t""$glibjava_CXX" 1>&6 | 
|---|
| 1337 | else | 
|---|
| 1338 | echo "$ac_t""no" 1>&6 | 
|---|
| 1339 | fi | 
|---|
| 1340 |  | 
|---|
| 1341 | test -n "$glibjava_CXX" && break | 
|---|
| 1342 | done | 
|---|
| 1343 | test -n "$glibjava_CXX" || glibjava_CXX="gcc" | 
|---|
| 1344 |  | 
|---|
| 1345 |  | 
|---|
| 1346 | CXX=$glibjava_CXX | 
|---|
| 1347 | test -z "$glibjava_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; } | 
|---|
| 1348 |  | 
|---|
| 1349 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | 
|---|
| 1350 | echo "configure:1351: checking whether we are using GNU C++" >&5 | 
|---|
| 1351 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then | 
|---|
| 1352 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1353 | else | 
|---|
| 1354 | cat > conftest.C <<EOF | 
|---|
| 1355 | #ifdef __GNUC__ | 
|---|
| 1356 | yes; | 
|---|
| 1357 | #endif | 
|---|
| 1358 | EOF | 
|---|
| 1359 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | 
|---|
| 1360 | ac_cv_prog_gxx=yes | 
|---|
| 1361 | else | 
|---|
| 1362 | ac_cv_prog_gxx=no | 
|---|
| 1363 | fi | 
|---|
| 1364 | fi | 
|---|
| 1365 |  | 
|---|
| 1366 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | 
|---|
| 1367 |  | 
|---|
| 1368 | if test $ac_cv_prog_gxx = yes; then | 
|---|
| 1369 | GXX=yes | 
|---|
| 1370 | ac_test_CXXFLAGS="${CXXFLAGS+set}" | 
|---|
| 1371 | ac_save_CXXFLAGS="$CXXFLAGS" | 
|---|
| 1372 | CXXFLAGS= | 
|---|
| 1373 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | 
|---|
| 1374 | echo "configure:1375: checking whether ${CXX-g++} accepts -g" >&5 | 
|---|
| 1375 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then | 
|---|
| 1376 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1377 | else | 
|---|
| 1378 | echo 'void f(){}' > conftest.cc | 
|---|
| 1379 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | 
|---|
| 1380 | ac_cv_prog_cxx_g=yes | 
|---|
| 1381 | else | 
|---|
| 1382 | ac_cv_prog_cxx_g=no | 
|---|
| 1383 | fi | 
|---|
| 1384 | rm -f conftest* | 
|---|
| 1385 |  | 
|---|
| 1386 | fi | 
|---|
| 1387 |  | 
|---|
| 1388 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | 
|---|
| 1389 | if test "$ac_test_CXXFLAGS" = set; then | 
|---|
| 1390 | CXXFLAGS="$ac_save_CXXFLAGS" | 
|---|
| 1391 | elif test $ac_cv_prog_cxx_g = yes; then | 
|---|
| 1392 | CXXFLAGS="-g -O2" | 
|---|
| 1393 | else | 
|---|
| 1394 | CXXFLAGS="-O2" | 
|---|
| 1395 | fi | 
|---|
| 1396 | else | 
|---|
| 1397 | GXX= | 
|---|
| 1398 | test "${CXXFLAGS+set}" = set || CXXFLAGS="-g" | 
|---|
| 1399 | fi | 
|---|
| 1400 |  | 
|---|
| 1401 |  | 
|---|
| 1402 | version=0.0.7 | 
|---|
| 1403 |  | 
|---|
| 1404 | PACKAGE=libjava | 
|---|
| 1405 |  | 
|---|
| 1406 | VERSION=$version | 
|---|
| 1407 |  | 
|---|
| 1408 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then | 
|---|
| 1409 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } | 
|---|
| 1410 | fi | 
|---|
| 1411 | cat >> confdefs.h <<EOF | 
|---|
| 1412 | #define PACKAGE "$PACKAGE" | 
|---|
| 1413 | EOF | 
|---|
| 1414 |  | 
|---|
| 1415 | cat >> confdefs.h <<EOF | 
|---|
| 1416 | #define VERSION "$VERSION" | 
|---|
| 1417 | EOF | 
|---|
| 1418 |  | 
|---|
| 1419 |  | 
|---|
| 1420 |  | 
|---|
| 1421 | missing_dir=`cd $ac_aux_dir && pwd` | 
|---|
| 1422 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 | 
|---|
| 1423 | echo "configure:1424: checking for working aclocal" >&5 | 
|---|
| 1424 | # Run test in a subshell; some versions of sh will print an error if | 
|---|
| 1425 | # an executable is not found, even if stderr is redirected. | 
|---|
| 1426 | # Redirect stdin to placate older versions of autoconf.  Sigh. | 
|---|
| 1427 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then | 
|---|
| 1428 | ACLOCAL=aclocal | 
|---|
| 1429 | echo "$ac_t""found" 1>&6 | 
|---|
| 1430 | else | 
|---|
| 1431 | ACLOCAL="$missing_dir/missing aclocal" | 
|---|
| 1432 | echo "$ac_t""missing" 1>&6 | 
|---|
| 1433 | fi | 
|---|
| 1434 |  | 
|---|
| 1435 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 | 
|---|
| 1436 | echo "configure:1437: checking for working autoconf" >&5 | 
|---|
| 1437 | # Run test in a subshell; some versions of sh will print an error if | 
|---|
| 1438 | # an executable is not found, even if stderr is redirected. | 
|---|
| 1439 | # Redirect stdin to placate older versions of autoconf.  Sigh. | 
|---|
| 1440 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then | 
|---|
| 1441 | AUTOCONF=autoconf | 
|---|
| 1442 | echo "$ac_t""found" 1>&6 | 
|---|
| 1443 | else | 
|---|
| 1444 | AUTOCONF="$missing_dir/missing autoconf" | 
|---|
| 1445 | echo "$ac_t""missing" 1>&6 | 
|---|
| 1446 | fi | 
|---|
| 1447 |  | 
|---|
| 1448 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 | 
|---|
| 1449 | echo "configure:1450: checking for working automake" >&5 | 
|---|
| 1450 | # Run test in a subshell; some versions of sh will print an error if | 
|---|
| 1451 | # an executable is not found, even if stderr is redirected. | 
|---|
| 1452 | # Redirect stdin to placate older versions of autoconf.  Sigh. | 
|---|
| 1453 | if (automake --version) < /dev/null > /dev/null 2>&1; then | 
|---|
| 1454 | AUTOMAKE=automake | 
|---|
| 1455 | echo "$ac_t""found" 1>&6 | 
|---|
| 1456 | else | 
|---|
| 1457 | AUTOMAKE="$missing_dir/missing automake" | 
|---|
| 1458 | echo "$ac_t""missing" 1>&6 | 
|---|
| 1459 | fi | 
|---|
| 1460 |  | 
|---|
| 1461 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 | 
|---|
| 1462 | echo "configure:1463: checking for working autoheader" >&5 | 
|---|
| 1463 | # Run test in a subshell; some versions of sh will print an error if | 
|---|
| 1464 | # an executable is not found, even if stderr is redirected. | 
|---|
| 1465 | # Redirect stdin to placate older versions of autoconf.  Sigh. | 
|---|
| 1466 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then | 
|---|
| 1467 | AUTOHEADER=autoheader | 
|---|
| 1468 | echo "$ac_t""found" 1>&6 | 
|---|
| 1469 | else | 
|---|
| 1470 | AUTOHEADER="$missing_dir/missing autoheader" | 
|---|
| 1471 | echo "$ac_t""missing" 1>&6 | 
|---|
| 1472 | fi | 
|---|
| 1473 |  | 
|---|
| 1474 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 | 
|---|
| 1475 | echo "configure:1476: checking for working makeinfo" >&5 | 
|---|
| 1476 | # Run test in a subshell; some versions of sh will print an error if | 
|---|
| 1477 | # an executable is not found, even if stderr is redirected. | 
|---|
| 1478 | # Redirect stdin to placate older versions of autoconf.  Sigh. | 
|---|
| 1479 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then | 
|---|
| 1480 | MAKEINFO=makeinfo | 
|---|
| 1481 | echo "$ac_t""found" 1>&6 | 
|---|
| 1482 | else | 
|---|
| 1483 | MAKEINFO="$missing_dir/missing makeinfo" | 
|---|
| 1484 | echo "$ac_t""missing" 1>&6 | 
|---|
| 1485 | fi | 
|---|
| 1486 |  | 
|---|
| 1487 |  | 
|---|
| 1488 |  | 
|---|
| 1489 | # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD).  If we don't | 
|---|
| 1490 | # run it explicitly here, it will be run implicitly before | 
|---|
| 1491 | # LIBGCJ_CONFIGURE, which doesn't work because that means that it will | 
|---|
| 1492 | # be run before AC_CANONICAL_HOST. | 
|---|
| 1493 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | 
|---|
| 1494 | echo "configure:1495: checking build system type" >&5 | 
|---|
| 1495 |  | 
|---|
| 1496 | build_alias=$build | 
|---|
| 1497 | case "$build_alias" in | 
|---|
| 1498 | NONE) | 
|---|
| 1499 | case $nonopt in | 
|---|
| 1500 | NONE) build_alias=$host_alias ;; | 
|---|
| 1501 | *) build_alias=$nonopt ;; | 
|---|
| 1502 | esac ;; | 
|---|
| 1503 | esac | 
|---|
| 1504 |  | 
|---|
| 1505 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | 
|---|
| 1506 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
|---|
| 1507 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
|---|
| 1508 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
|---|
| 1509 | echo "$ac_t""$build" 1>&6 | 
|---|
| 1510 |  | 
|---|
| 1511 |  | 
|---|
| 1512 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | 
|---|
| 1513 | set dummy ${ac_tool_prefix}as; ac_word=$2 | 
|---|
| 1514 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 1515 | echo "configure:1516: checking for $ac_word" >&5 | 
|---|
| 1516 | if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then | 
|---|
| 1517 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1518 | else | 
|---|
| 1519 | if test -n "$AS"; then | 
|---|
| 1520 | ac_cv_prog_AS="$AS" # Let the user override the test. | 
|---|
| 1521 | else | 
|---|
| 1522 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 1523 | ac_dummy="$PATH" | 
|---|
| 1524 | for ac_dir in $ac_dummy; do | 
|---|
| 1525 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 1526 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 1527 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 1528 | ac_cv_prog_AS="${ac_tool_prefix}as" | 
|---|
| 1529 | break | 
|---|
| 1530 | fi | 
|---|
| 1531 | done | 
|---|
| 1532 | IFS="$ac_save_ifs" | 
|---|
| 1533 | test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as" | 
|---|
| 1534 | fi | 
|---|
| 1535 | fi | 
|---|
| 1536 | AS="$ac_cv_prog_AS" | 
|---|
| 1537 | if test -n "$AS"; then | 
|---|
| 1538 | echo "$ac_t""$AS" 1>&6 | 
|---|
| 1539 | else | 
|---|
| 1540 | echo "$ac_t""no" 1>&6 | 
|---|
| 1541 | fi | 
|---|
| 1542 |  | 
|---|
| 1543 |  | 
|---|
| 1544 |  | 
|---|
| 1545 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | 
|---|
| 1546 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | 
|---|
| 1547 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 1548 | echo "configure:1549: checking for $ac_word" >&5 | 
|---|
| 1549 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then | 
|---|
| 1550 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1551 | else | 
|---|
| 1552 | if test -n "$AR"; then | 
|---|
| 1553 | ac_cv_prog_AR="$AR" # Let the user override the test. | 
|---|
| 1554 | else | 
|---|
| 1555 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 1556 | ac_dummy="$PATH" | 
|---|
| 1557 | for ac_dir in $ac_dummy; do | 
|---|
| 1558 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 1559 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 1560 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 1561 | ac_cv_prog_AR="${ac_tool_prefix}ar" | 
|---|
| 1562 | break | 
|---|
| 1563 | fi | 
|---|
| 1564 | done | 
|---|
| 1565 | IFS="$ac_save_ifs" | 
|---|
| 1566 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | 
|---|
| 1567 | fi | 
|---|
| 1568 | fi | 
|---|
| 1569 | AR="$ac_cv_prog_AR" | 
|---|
| 1570 | if test -n "$AR"; then | 
|---|
| 1571 | echo "$ac_t""$AR" 1>&6 | 
|---|
| 1572 | else | 
|---|
| 1573 | echo "$ac_t""no" 1>&6 | 
|---|
| 1574 | fi | 
|---|
| 1575 |  | 
|---|
| 1576 |  | 
|---|
| 1577 |  | 
|---|
| 1578 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
|---|
| 1579 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
|---|
| 1580 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 1581 | echo "configure:1582: checking for $ac_word" >&5 | 
|---|
| 1582 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | 
|---|
| 1583 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1584 | else | 
|---|
| 1585 | if test -n "$RANLIB"; then | 
|---|
| 1586 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
|---|
| 1587 | else | 
|---|
| 1588 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 1589 | ac_dummy="$PATH" | 
|---|
| 1590 | for ac_dir in $ac_dummy; do | 
|---|
| 1591 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 1592 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 1593 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 1594 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
|---|
| 1595 | break | 
|---|
| 1596 | fi | 
|---|
| 1597 | done | 
|---|
| 1598 | IFS="$ac_save_ifs" | 
|---|
| 1599 | fi | 
|---|
| 1600 | fi | 
|---|
| 1601 | RANLIB="$ac_cv_prog_RANLIB" | 
|---|
| 1602 | if test -n "$RANLIB"; then | 
|---|
| 1603 | echo "$ac_t""$RANLIB" 1>&6 | 
|---|
| 1604 | else | 
|---|
| 1605 | echo "$ac_t""no" 1>&6 | 
|---|
| 1606 | fi | 
|---|
| 1607 |  | 
|---|
| 1608 |  | 
|---|
| 1609 | if test -z "$ac_cv_prog_RANLIB"; then | 
|---|
| 1610 | if test -n "$ac_tool_prefix"; then | 
|---|
| 1611 | # Extract the first word of "ranlib", so it can be a program name with args. | 
|---|
| 1612 | set dummy ranlib; ac_word=$2 | 
|---|
| 1613 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 1614 | echo "configure:1615: checking for $ac_word" >&5 | 
|---|
| 1615 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | 
|---|
| 1616 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1617 | else | 
|---|
| 1618 | if test -n "$RANLIB"; then | 
|---|
| 1619 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
|---|
| 1620 | else | 
|---|
| 1621 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 1622 | ac_dummy="$PATH" | 
|---|
| 1623 | for ac_dir in $ac_dummy; do | 
|---|
| 1624 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 1625 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 1626 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 1627 | ac_cv_prog_RANLIB="ranlib" | 
|---|
| 1628 | break | 
|---|
| 1629 | fi | 
|---|
| 1630 | done | 
|---|
| 1631 | IFS="$ac_save_ifs" | 
|---|
| 1632 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | 
|---|
| 1633 | fi | 
|---|
| 1634 | fi | 
|---|
| 1635 | RANLIB="$ac_cv_prog_RANLIB" | 
|---|
| 1636 | if test -n "$RANLIB"; then | 
|---|
| 1637 | echo "$ac_t""$RANLIB" 1>&6 | 
|---|
| 1638 | else | 
|---|
| 1639 | echo "$ac_t""no" 1>&6 | 
|---|
| 1640 | fi | 
|---|
| 1641 |  | 
|---|
| 1642 | else | 
|---|
| 1643 | RANLIB=":" | 
|---|
| 1644 | fi | 
|---|
| 1645 | fi | 
|---|
| 1646 |  | 
|---|
| 1647 |  | 
|---|
| 1648 | # Find a good install program.  We prefer a C program (faster), | 
|---|
| 1649 | # so one script is as good as another.  But avoid the broken or | 
|---|
| 1650 | # incompatible versions: | 
|---|
| 1651 | # SysV /etc/install, /usr/sbin/install | 
|---|
| 1652 | # SunOS /usr/etc/install | 
|---|
| 1653 | # IRIX /sbin/install | 
|---|
| 1654 | # AIX /bin/install | 
|---|
| 1655 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
|---|
| 1656 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
|---|
| 1657 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
|---|
| 1658 | # ./install, which can be erroneously created by make from ./install.sh. | 
|---|
| 1659 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | 
|---|
| 1660 | echo "configure:1661: checking for a BSD compatible install" >&5 | 
|---|
| 1661 | if test -z "$INSTALL"; then | 
|---|
| 1662 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | 
|---|
| 1663 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1664 | else | 
|---|
| 1665 | IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS" | 
|---|
| 1666 | for ac_dir in $PATH; do | 
|---|
| 1667 | # Account for people who put trailing slashes in PATH elements. | 
|---|
| 1668 | case "$ac_dir/" in | 
|---|
| 1669 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | 
|---|
| 1670 | # We reject the install program from OS/2 or W3.1 | 
|---|
| 1671 | */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;; | 
|---|
| 1672 | *) | 
|---|
| 1673 | # OSF1 and SCO ODT 3.0 have their own names for install. | 
|---|
| 1674 | # Don't use installbsd from OSF since it installs stuff as root | 
|---|
| 1675 | # by default. | 
|---|
| 1676 | for ac_prog in ginstall scoinst install; do | 
|---|
| 1677 | if test -f $ac_dir/$ac_prog$ac_exeext; then | 
|---|
| 1678 | if test $ac_prog = install && | 
|---|
| 1679 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | 
|---|
| 1680 | # AIX install.  It has an incompatible calling convention. | 
|---|
| 1681 | : | 
|---|
| 1682 | else | 
|---|
| 1683 | ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c" | 
|---|
| 1684 | break 2 | 
|---|
| 1685 | fi | 
|---|
| 1686 | fi | 
|---|
| 1687 | done | 
|---|
| 1688 | ;; | 
|---|
| 1689 | esac | 
|---|
| 1690 | done | 
|---|
| 1691 | IFS="$ac_save_IFS" | 
|---|
| 1692 |  | 
|---|
| 1693 | fi | 
|---|
| 1694 | if test "${ac_cv_path_install+set}" = set; then | 
|---|
| 1695 | INSTALL="$ac_cv_path_install" | 
|---|
| 1696 | else | 
|---|
| 1697 | # As a last resort, use the slow shell script.  We don't cache a | 
|---|
| 1698 | # path for INSTALL within a source directory, because that will | 
|---|
| 1699 | # break other packages using the cache if that directory is | 
|---|
| 1700 | # removed, or if the path is relative. | 
|---|
| 1701 | INSTALL="$ac_install_sh" | 
|---|
| 1702 | fi | 
|---|
| 1703 | fi | 
|---|
| 1704 | echo "$ac_t""$INSTALL" 1>&6 | 
|---|
| 1705 |  | 
|---|
| 1706 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
|---|
| 1707 | # It thinks the first close brace ends the variable substitution. | 
|---|
| 1708 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
|---|
| 1709 |  | 
|---|
| 1710 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | 
|---|
| 1711 |  | 
|---|
| 1712 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
|---|
| 1713 |  | 
|---|
| 1714 |  | 
|---|
| 1715 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 | 
|---|
| 1716 | echo "configure:1717: checking whether to enable maintainer-specific portions of Makefiles" >&5 | 
|---|
| 1717 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | 
|---|
| 1718 | if test "${enable_maintainer_mode+set}" = set; then | 
|---|
| 1719 | enableval="$enable_maintainer_mode" | 
|---|
| 1720 | USE_MAINTAINER_MODE=$enableval | 
|---|
| 1721 | else | 
|---|
| 1722 | USE_MAINTAINER_MODE=no | 
|---|
| 1723 | fi | 
|---|
| 1724 |  | 
|---|
| 1725 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 | 
|---|
| 1726 |  | 
|---|
| 1727 |  | 
|---|
| 1728 | if test $USE_MAINTAINER_MODE = yes; then | 
|---|
| 1729 | MAINTAINER_MODE_TRUE= | 
|---|
| 1730 | MAINTAINER_MODE_FALSE='#' | 
|---|
| 1731 | else | 
|---|
| 1732 | MAINTAINER_MODE_TRUE='#' | 
|---|
| 1733 | MAINTAINER_MODE_FALSE= | 
|---|
| 1734 | fi | 
|---|
| 1735 | MAINT=$MAINTAINER_MODE_TRUE | 
|---|
| 1736 |  | 
|---|
| 1737 |  | 
|---|
| 1738 |  | 
|---|
| 1739 |  | 
|---|
| 1740 |  | 
|---|
| 1741 |  | 
|---|
| 1742 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | 
|---|
| 1743 | echo "configure:1744: checking for executable suffix" >&5 | 
|---|
| 1744 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then | 
|---|
| 1745 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1746 | else | 
|---|
| 1747 | if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then | 
|---|
| 1748 | ac_cv_exeext=.exe | 
|---|
| 1749 | else | 
|---|
| 1750 | rm -f conftest* | 
|---|
| 1751 | echo 'int main () { return 0; }' > conftest.$ac_ext | 
|---|
| 1752 | ac_cv_exeext= | 
|---|
| 1753 | if { (eval echo configure:1754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then | 
|---|
| 1754 | for file in conftest.*; do | 
|---|
| 1755 | case $file in | 
|---|
| 1756 | *.c | *.o | *.obj) ;; | 
|---|
| 1757 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; | 
|---|
| 1758 | esac | 
|---|
| 1759 | done | 
|---|
| 1760 | else | 
|---|
| 1761 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | 
|---|
| 1762 | fi | 
|---|
| 1763 | rm -f conftest* | 
|---|
| 1764 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | 
|---|
| 1765 | fi | 
|---|
| 1766 | fi | 
|---|
| 1767 |  | 
|---|
| 1768 | EXEEXT="" | 
|---|
| 1769 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | 
|---|
| 1770 | echo "$ac_t""${ac_cv_exeext}" 1>&6 | 
|---|
| 1771 | ac_exeext=$EXEEXT | 
|---|
| 1772 |  | 
|---|
| 1773 |  | 
|---|
| 1774 | # configure.host sets the following important variables | 
|---|
| 1775 | #       libgcj_cflags    - host specific C compiler flags | 
|---|
| 1776 | #       libgcj_cxxflags  - host specific C++ compiler flags | 
|---|
| 1777 | #       libgcj_javaflags - host specific Java compiler flags | 
|---|
| 1778 |  | 
|---|
| 1779 | libgcj_cflags= | 
|---|
| 1780 | libgcj_cxxflags= | 
|---|
| 1781 | libgcj_javaflags= | 
|---|
| 1782 |  | 
|---|
| 1783 | . ${srcdir}/configure.host | 
|---|
| 1784 |  | 
|---|
| 1785 | LIBGCJ_CFLAGS="${libgcj_cflags}" | 
|---|
| 1786 | LIBGCJ_CXXFLAGS="${libgcj_cxxflags}" | 
|---|
| 1787 | LIBGCJ_JAVAFLAGS="${libgcj_javaflags}" | 
|---|
| 1788 |  | 
|---|
| 1789 |  | 
|---|
| 1790 |  | 
|---|
| 1791 |  | 
|---|
| 1792 |  | 
|---|
| 1793 |  | 
|---|
| 1794 |  | 
|---|
| 1795 |  | 
|---|
| 1796 |  | 
|---|
| 1797 | # Only use libltdl for native builds. | 
|---|
| 1798 | if test -z "${with_cross_host}"; then | 
|---|
| 1799 | case $enable_ltdl_convenience in | 
|---|
| 1800 | no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;; | 
|---|
| 1801 | "") enable_ltdl_convenience=yes | 
|---|
| 1802 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; | 
|---|
| 1803 | esac | 
|---|
| 1804 | LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la | 
|---|
| 1805 | INCLTDL='-I${top_srcdir}/''libltdl' | 
|---|
| 1806 |  | 
|---|
| 1807 |  | 
|---|
| 1808 | DIRLTDL=libltdl | 
|---|
| 1809 | cat >> confdefs.h <<\EOF | 
|---|
| 1810 | #define USE_LTDL 1 | 
|---|
| 1811 | EOF | 
|---|
| 1812 |  | 
|---|
| 1813 | # Sigh.  Libtool's macro doesn't do the right thing. | 
|---|
| 1814 | INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL" | 
|---|
| 1815 | # FIXME: this is a hack. | 
|---|
| 1816 | sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`" | 
|---|
| 1817 | ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir" | 
|---|
| 1818 | fi | 
|---|
| 1819 |  | 
|---|
| 1820 |  | 
|---|
| 1821 |  | 
|---|
| 1822 | # Check whether --enable-shared or --disable-shared was given. | 
|---|
| 1823 | if test "${enable_shared+set}" = set; then | 
|---|
| 1824 | enableval="$enable_shared" | 
|---|
| 1825 | p=${PACKAGE-default} | 
|---|
| 1826 | case $enableval in | 
|---|
| 1827 | yes) enable_shared=yes ;; | 
|---|
| 1828 | no) enable_shared=no ;; | 
|---|
| 1829 | *) | 
|---|
| 1830 | enable_shared=no | 
|---|
| 1831 | # Look at the argument we got.  We use all the common list separators. | 
|---|
| 1832 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | 
|---|
| 1833 | for pkg in $enableval; do | 
|---|
| 1834 | if test "X$pkg" = "X$p"; then | 
|---|
| 1835 | enable_shared=yes | 
|---|
| 1836 | fi | 
|---|
| 1837 | done | 
|---|
| 1838 | IFS="$ac_save_ifs" | 
|---|
| 1839 | ;; | 
|---|
| 1840 | esac | 
|---|
| 1841 | else | 
|---|
| 1842 | enable_shared=yes | 
|---|
| 1843 | fi | 
|---|
| 1844 |  | 
|---|
| 1845 | # Check whether --enable-static or --disable-static was given. | 
|---|
| 1846 | if test "${enable_static+set}" = set; then | 
|---|
| 1847 | enableval="$enable_static" | 
|---|
| 1848 | p=${PACKAGE-default} | 
|---|
| 1849 | case $enableval in | 
|---|
| 1850 | yes) enable_static=yes ;; | 
|---|
| 1851 | no) enable_static=no ;; | 
|---|
| 1852 | *) | 
|---|
| 1853 | enable_static=no | 
|---|
| 1854 | # Look at the argument we got.  We use all the common list separators. | 
|---|
| 1855 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | 
|---|
| 1856 | for pkg in $enableval; do | 
|---|
| 1857 | if test "X$pkg" = "X$p"; then | 
|---|
| 1858 | enable_static=yes | 
|---|
| 1859 | fi | 
|---|
| 1860 | done | 
|---|
| 1861 | IFS="$ac_save_ifs" | 
|---|
| 1862 | ;; | 
|---|
| 1863 | esac | 
|---|
| 1864 | else | 
|---|
| 1865 | enable_static=yes | 
|---|
| 1866 | fi | 
|---|
| 1867 |  | 
|---|
| 1868 | # Check whether --enable-fast-install or --disable-fast-install was given. | 
|---|
| 1869 | if test "${enable_fast_install+set}" = set; then | 
|---|
| 1870 | enableval="$enable_fast_install" | 
|---|
| 1871 | p=${PACKAGE-default} | 
|---|
| 1872 | case $enableval in | 
|---|
| 1873 | yes) enable_fast_install=yes ;; | 
|---|
| 1874 | no) enable_fast_install=no ;; | 
|---|
| 1875 | *) | 
|---|
| 1876 | enable_fast_install=no | 
|---|
| 1877 | # Look at the argument we got.  We use all the common list separators. | 
|---|
| 1878 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | 
|---|
| 1879 | for pkg in $enableval; do | 
|---|
| 1880 | if test "X$pkg" = "X$p"; then | 
|---|
| 1881 | enable_fast_install=yes | 
|---|
| 1882 | fi | 
|---|
| 1883 | done | 
|---|
| 1884 | IFS="$ac_save_ifs" | 
|---|
| 1885 | ;; | 
|---|
| 1886 | esac | 
|---|
| 1887 | else | 
|---|
| 1888 | enable_fast_install=yes | 
|---|
| 1889 | fi | 
|---|
| 1890 |  | 
|---|
| 1891 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | 
|---|
| 1892 | if test "${with_gnu_ld+set}" = set; then | 
|---|
| 1893 | withval="$with_gnu_ld" | 
|---|
| 1894 | test "$withval" = no || with_gnu_ld=yes | 
|---|
| 1895 | else | 
|---|
| 1896 | with_gnu_ld=no | 
|---|
| 1897 | fi | 
|---|
| 1898 |  | 
|---|
| 1899 | ac_prog=ld | 
|---|
| 1900 | if test "$GCC" = yes; then | 
|---|
| 1901 | # Check if gcc -print-prog-name=ld gives a path. | 
|---|
| 1902 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 | 
|---|
| 1903 | echo "configure:1904: checking for ld used by GCC" >&5 | 
|---|
| 1904 | case $host in | 
|---|
| 1905 | *-*-mingw*) | 
|---|
| 1906 | # gcc leaves a trailing carriage return which upsets mingw | 
|---|
| 1907 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | 
|---|
| 1908 | *) | 
|---|
| 1909 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | 
|---|
| 1910 | esac | 
|---|
| 1911 | case $ac_prog in | 
|---|
| 1912 | # Accept absolute paths. | 
|---|
| 1913 | [\\/]* | [A-Za-z]:[\\/]*) | 
|---|
| 1914 | re_direlt='/[^/][^/]*/\.\./' | 
|---|
| 1915 | # Canonicalize the path of ld | 
|---|
| 1916 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | 
|---|
| 1917 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | 
|---|
| 1918 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | 
|---|
| 1919 | done | 
|---|
| 1920 | test -z "$LD" && LD="$ac_prog" | 
|---|
| 1921 | ;; | 
|---|
| 1922 | "") | 
|---|
| 1923 | # If it fails, then pretend we aren't using GCC. | 
|---|
| 1924 | ac_prog=ld | 
|---|
| 1925 | ;; | 
|---|
| 1926 | *) | 
|---|
| 1927 | # If it is relative, then search for the first ld in PATH. | 
|---|
| 1928 | with_gnu_ld=unknown | 
|---|
| 1929 | ;; | 
|---|
| 1930 | esac | 
|---|
| 1931 | elif test "$with_gnu_ld" = yes; then | 
|---|
| 1932 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 | 
|---|
| 1933 | echo "configure:1934: checking for GNU ld" >&5 | 
|---|
| 1934 | else | 
|---|
| 1935 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 | 
|---|
| 1936 | echo "configure:1937: checking for non-GNU ld" >&5 | 
|---|
| 1937 | fi | 
|---|
| 1938 | if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then | 
|---|
| 1939 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1940 | else | 
|---|
| 1941 | if test -z "$LD"; then | 
|---|
| 1942 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | 
|---|
| 1943 | for ac_dir in $PATH; do | 
|---|
| 1944 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 1945 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | 
|---|
| 1946 | lt_cv_path_LD="$ac_dir/$ac_prog" | 
|---|
| 1947 | # Check to see if the program is GNU ld.  I'd rather use --version, | 
|---|
| 1948 | # but apparently some GNU ld's only accept -v. | 
|---|
| 1949 | # Break only if it was the GNU/non-GNU ld that we prefer. | 
|---|
| 1950 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | 
|---|
| 1951 | test "$with_gnu_ld" != no && break | 
|---|
| 1952 | else | 
|---|
| 1953 | test "$with_gnu_ld" != yes && break | 
|---|
| 1954 | fi | 
|---|
| 1955 | fi | 
|---|
| 1956 | done | 
|---|
| 1957 | IFS="$ac_save_ifs" | 
|---|
| 1958 | else | 
|---|
| 1959 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | 
|---|
| 1960 | fi | 
|---|
| 1961 | fi | 
|---|
| 1962 |  | 
|---|
| 1963 | LD="$lt_cv_path_LD" | 
|---|
| 1964 | if test -n "$LD"; then | 
|---|
| 1965 | echo "$ac_t""$LD" 1>&6 | 
|---|
| 1966 | else | 
|---|
| 1967 | echo "$ac_t""no" 1>&6 | 
|---|
| 1968 | fi | 
|---|
| 1969 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } | 
|---|
| 1970 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 | 
|---|
| 1971 | echo "configure:1972: checking if the linker ($LD) is GNU ld" >&5 | 
|---|
| 1972 | if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then | 
|---|
| 1973 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1974 | else | 
|---|
| 1975 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | 
|---|
| 1976 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | 
|---|
| 1977 | lt_cv_prog_gnu_ld=yes | 
|---|
| 1978 | else | 
|---|
| 1979 | lt_cv_prog_gnu_ld=no | 
|---|
| 1980 | fi | 
|---|
| 1981 | fi | 
|---|
| 1982 |  | 
|---|
| 1983 | echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6 | 
|---|
| 1984 | with_gnu_ld=$lt_cv_prog_gnu_ld | 
|---|
| 1985 |  | 
|---|
| 1986 |  | 
|---|
| 1987 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6 | 
|---|
| 1988 | echo "configure:1989: checking for $LD option to reload object files" >&5 | 
|---|
| 1989 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then | 
|---|
| 1990 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 1991 | else | 
|---|
| 1992 | lt_cv_ld_reload_flag='-r' | 
|---|
| 1993 | fi | 
|---|
| 1994 |  | 
|---|
| 1995 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6 | 
|---|
| 1996 | reload_flag=$lt_cv_ld_reload_flag | 
|---|
| 1997 | test -n "$reload_flag" && reload_flag=" $reload_flag" | 
|---|
| 1998 |  | 
|---|
| 1999 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 | 
|---|
| 2000 | echo "configure:2001: checking for BSD-compatible nm" >&5 | 
|---|
| 2001 | if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then | 
|---|
| 2002 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 2003 | else | 
|---|
| 2004 | if test -n "$NM"; then | 
|---|
| 2005 | # Let the user override the test. | 
|---|
| 2006 | lt_cv_path_NM="$NM" | 
|---|
| 2007 | else | 
|---|
| 2008 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | 
|---|
| 2009 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | 
|---|
| 2010 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 2011 | tmp_nm=$ac_dir/${ac_tool_prefix}nm | 
|---|
| 2012 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | 
|---|
| 2013 | # Check to see if the nm accepts a BSD-compat flag. | 
|---|
| 2014 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | 
|---|
| 2015 | #   nm: unknown option "B" ignored | 
|---|
| 2016 | # Tru64's nm complains that /dev/null is an invalid object file | 
|---|
| 2017 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | 
|---|
| 2018 | lt_cv_path_NM="$tmp_nm -B" | 
|---|
| 2019 | break | 
|---|
| 2020 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | 
|---|
| 2021 | lt_cv_path_NM="$tmp_nm -p" | 
|---|
| 2022 | break | 
|---|
| 2023 | else | 
|---|
| 2024 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | 
|---|
| 2025 | continue # so that we can try to find one that supports BSD flags | 
|---|
| 2026 | fi | 
|---|
| 2027 | fi | 
|---|
| 2028 | done | 
|---|
| 2029 | IFS="$ac_save_ifs" | 
|---|
| 2030 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | 
|---|
| 2031 | fi | 
|---|
| 2032 | fi | 
|---|
| 2033 |  | 
|---|
| 2034 | NM="$lt_cv_path_NM" | 
|---|
| 2035 | echo "$ac_t""$NM" 1>&6 | 
|---|
| 2036 |  | 
|---|
| 2037 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 | 
|---|
| 2038 | echo "configure:2039: checking how to recognise dependant libraries" >&5 | 
|---|
| 2039 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then | 
|---|
| 2040 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 2041 | else | 
|---|
| 2042 | lt_cv_file_magic_cmd='$MAGIC_CMD' | 
|---|
| 2043 | lt_cv_file_magic_test_file= | 
|---|
| 2044 | lt_cv_deplibs_check_method='unknown' | 
|---|
| 2045 | # Need to set the preceding variable on all platforms that support | 
|---|
| 2046 | # interlibrary dependencies. | 
|---|
| 2047 | # 'none' -- dependencies not supported. | 
|---|
| 2048 | # `unknown' -- same as none, but documents that we really don't know. | 
|---|
| 2049 | # 'pass_all' -- all dependencies passed with no checks. | 
|---|
| 2050 | # 'test_compile' -- check by making test program. | 
|---|
| 2051 | # 'file_magic [regex]' -- check by looking for files in library path | 
|---|
| 2052 | # which responds to the $file_magic_cmd with a given egrep regex. | 
|---|
| 2053 | # If you have `file' or equivalent on your system and you're not sure | 
|---|
| 2054 | # whether `pass_all' will *always* work, you probably want this one. | 
|---|
| 2055 |  | 
|---|
| 2056 | case $host_os in | 
|---|
| 2057 | aix*) | 
|---|
| 2058 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 2059 | ;; | 
|---|
| 2060 |  | 
|---|
| 2061 | beos*) | 
|---|
| 2062 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 2063 | ;; | 
|---|
| 2064 |  | 
|---|
| 2065 | bsdi4*) | 
|---|
| 2066 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | 
|---|
| 2067 | lt_cv_file_magic_cmd='/usr/bin/file -L' | 
|---|
| 2068 | lt_cv_file_magic_test_file=/shlib/libc.so | 
|---|
| 2069 | ;; | 
|---|
| 2070 |  | 
|---|
| 2071 | cygwin* | mingw* |pw32*) | 
|---|
| 2072 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | 
|---|
| 2073 | lt_cv_file_magic_cmd='$OBJDUMP -f' | 
|---|
| 2074 | ;; | 
|---|
| 2075 |  | 
|---|
| 2076 | darwin* | rhapsody*) | 
|---|
| 2077 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | 
|---|
| 2078 | lt_cv_file_magic_cmd='/usr/bin/file -L' | 
|---|
| 2079 | case "$host_os" in | 
|---|
| 2080 | rhapsody* | darwin1.012) | 
|---|
| 2081 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | 
|---|
| 2082 | ;; | 
|---|
| 2083 | *) # Darwin 1.3 on | 
|---|
| 2084 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | 
|---|
| 2085 | ;; | 
|---|
| 2086 | esac | 
|---|
| 2087 | ;; | 
|---|
| 2088 |  | 
|---|
| 2089 | freebsd* ) | 
|---|
| 2090 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 
|---|
| 2091 | case $host_cpu in | 
|---|
| 2092 | i*86 ) | 
|---|
| 2093 | # Not sure whether the presence of OpenBSD here was a mistake. | 
|---|
| 2094 | # Let's accept both of them until this is cleared up. | 
|---|
| 2095 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | 
|---|
| 2096 | lt_cv_file_magic_cmd=/usr/bin/file | 
|---|
| 2097 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | 
|---|
| 2098 | ;; | 
|---|
| 2099 | esac | 
|---|
| 2100 | else | 
|---|
| 2101 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 2102 | fi | 
|---|
| 2103 | ;; | 
|---|
| 2104 |  | 
|---|
| 2105 | gnu*) | 
|---|
| 2106 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 2107 | ;; | 
|---|
| 2108 |  | 
|---|
| 2109 | hpux10.20*|hpux11*) | 
|---|
| 2110 | case $host_cpu in | 
|---|
| 2111 | hppa*) | 
|---|
| 2112 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | 
|---|
| 2113 | lt_cv_file_magic_cmd=/usr/bin/file | 
|---|
| 2114 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | 
|---|
| 2115 | ;; | 
|---|
| 2116 | ia64*) | 
|---|
| 2117 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | 
|---|
| 2118 | lt_cv_file_magic_cmd=/usr/bin/file | 
|---|
| 2119 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | 
|---|
| 2120 | ;; | 
|---|
| 2121 | esac | 
|---|
| 2122 | ;; | 
|---|
| 2123 |  | 
|---|
| 2124 | irix5* | irix6*) | 
|---|
| 2125 | case $host_os in | 
|---|
| 2126 | irix5*) | 
|---|
| 2127 | # this will be overridden with pass_all, but let us keep it just in case | 
|---|
| 2128 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | 
|---|
| 2129 | ;; | 
|---|
| 2130 | *) | 
|---|
| 2131 | case $LD in | 
|---|
| 2132 | *-32|*"-32 ") libmagic=32-bit;; | 
|---|
| 2133 | *-n32|*"-n32 ") libmagic=N32;; | 
|---|
| 2134 | *-64|*"-64 ") libmagic=64-bit;; | 
|---|
| 2135 | *) libmagic=never-match;; | 
|---|
| 2136 | esac | 
|---|
| 2137 | # this will be overridden with pass_all, but let us keep it just in case | 
|---|
| 2138 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" | 
|---|
| 2139 | ;; | 
|---|
| 2140 | esac | 
|---|
| 2141 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | 
|---|
| 2142 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 2143 | ;; | 
|---|
| 2144 |  | 
|---|
| 2145 | # This must be Linux ELF. | 
|---|
| 2146 | linux-gnu*) | 
|---|
| 2147 | case $host_cpu in | 
|---|
| 2148 | alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* ) | 
|---|
| 2149 | lt_cv_deplibs_check_method=pass_all ;; | 
|---|
| 2150 | *) | 
|---|
| 2151 | # glibc up to 2.1.1 does not perform some relocations on ARM | 
|---|
| 2152 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; | 
|---|
| 2153 | esac | 
|---|
| 2154 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` | 
|---|
| 2155 | ;; | 
|---|
| 2156 |  | 
|---|
| 2157 | netbsd*) | 
|---|
| 2158 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 
|---|
| 2159 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' | 
|---|
| 2160 | else | 
|---|
| 2161 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' | 
|---|
| 2162 | fi | 
|---|
| 2163 | ;; | 
|---|
| 2164 |  | 
|---|
| 2165 | newsos6) | 
|---|
| 2166 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | 
|---|
| 2167 | lt_cv_file_magic_cmd=/usr/bin/file | 
|---|
| 2168 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | 
|---|
| 2169 | ;; | 
|---|
| 2170 |  | 
|---|
| 2171 | os2*) | 
|---|
| 2172 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 2173 | ;; | 
|---|
| 2174 |  | 
|---|
| 2175 | osf3* | osf4* | osf5*) | 
|---|
| 2176 | # this will be overridden with pass_all, but let us keep it just in case | 
|---|
| 2177 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | 
|---|
| 2178 | lt_cv_file_magic_test_file=/shlib/libc.so | 
|---|
| 2179 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 2180 | ;; | 
|---|
| 2181 |  | 
|---|
| 2182 | sco3.2v5*) | 
|---|
| 2183 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 2184 | ;; | 
|---|
| 2185 |  | 
|---|
| 2186 | solaris*) | 
|---|
| 2187 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 2188 | lt_cv_file_magic_test_file=/lib/libc.so | 
|---|
| 2189 | ;; | 
|---|
| 2190 |  | 
|---|
| 2191 | sysv5uw[78]* | sysv4*uw2*) | 
|---|
| 2192 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 2193 | ;; | 
|---|
| 2194 |  | 
|---|
| 2195 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
|---|
| 2196 | case $host_vendor in | 
|---|
| 2197 | ncr) | 
|---|
| 2198 | lt_cv_deplibs_check_method=pass_all | 
|---|
| 2199 | ;; | 
|---|
| 2200 | motorola) | 
|---|
| 2201 | 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]' | 
|---|
| 2202 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | 
|---|
| 2203 | ;; | 
|---|
| 2204 | esac | 
|---|
| 2205 | ;; | 
|---|
| 2206 | esac | 
|---|
| 2207 |  | 
|---|
| 2208 | fi | 
|---|
| 2209 |  | 
|---|
| 2210 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6 | 
|---|
| 2211 | file_magic_cmd=$lt_cv_file_magic_cmd | 
|---|
| 2212 | deplibs_check_method=$lt_cv_deplibs_check_method | 
|---|
| 2213 |  | 
|---|
| 2214 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6 | 
|---|
| 2215 | echo "configure:2216: checking for object suffix" >&5 | 
|---|
| 2216 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then | 
|---|
| 2217 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 2218 | else | 
|---|
| 2219 | rm -f conftest* | 
|---|
| 2220 | echo 'int i = 1;' > conftest.$ac_ext | 
|---|
| 2221 | if { (eval echo configure:2222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 2222 | for ac_file in conftest.*; do | 
|---|
| 2223 | case $ac_file in | 
|---|
| 2224 | *.c) ;; | 
|---|
| 2225 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; | 
|---|
| 2226 | esac | 
|---|
| 2227 | done | 
|---|
| 2228 | else | 
|---|
| 2229 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } | 
|---|
| 2230 | fi | 
|---|
| 2231 | rm -f conftest* | 
|---|
| 2232 | fi | 
|---|
| 2233 |  | 
|---|
| 2234 | echo "$ac_t""$ac_cv_objext" 1>&6 | 
|---|
| 2235 | OBJEXT=$ac_cv_objext | 
|---|
| 2236 | ac_objext=$ac_cv_objext | 
|---|
| 2237 |  | 
|---|
| 2238 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | 
|---|
| 2239 |  | 
|---|
| 2240 | # Only perform the check for file, if the check method requires it | 
|---|
| 2241 | case $deplibs_check_method in | 
|---|
| 2242 | file_magic*) | 
|---|
| 2243 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | 
|---|
| 2244 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 | 
|---|
| 2245 | echo "configure:2246: checking for ${ac_tool_prefix}file" >&5 | 
|---|
| 2246 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then | 
|---|
| 2247 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 2248 | else | 
|---|
| 2249 | case $MAGIC_CMD in | 
|---|
| 2250 | /*) | 
|---|
| 2251 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 
|---|
| 2252 | ;; | 
|---|
| 2253 | ?:/*) | 
|---|
| 2254 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | 
|---|
| 2255 | ;; | 
|---|
| 2256 | *) | 
|---|
| 2257 | ac_save_MAGIC_CMD="$MAGIC_CMD" | 
|---|
| 2258 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" | 
|---|
| 2259 | ac_dummy="/usr/bin:$PATH" | 
|---|
| 2260 | for ac_dir in $ac_dummy; do | 
|---|
| 2261 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 2262 | if test -f $ac_dir/${ac_tool_prefix}file; then | 
|---|
| 2263 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | 
|---|
| 2264 | if test -n "$file_magic_test_file"; then | 
|---|
| 2265 | case $deplibs_check_method in | 
|---|
| 2266 | "file_magic "*) | 
|---|
| 2267 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | 
|---|
| 2268 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|---|
| 2269 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 
|---|
| 2270 | egrep "$file_magic_regex" > /dev/null; then | 
|---|
| 2271 | : | 
|---|
| 2272 | else | 
|---|
| 2273 | cat <<EOF 1>&2 | 
|---|
| 2274 |  | 
|---|
| 2275 | *** Warning: the command libtool uses to detect shared libraries, | 
|---|
| 2276 | *** $file_magic_cmd, produces output that libtool cannot recognize. | 
|---|
| 2277 | *** The result is that libtool may fail to recognize shared libraries | 
|---|
| 2278 | *** as such.  This will affect the creation of libtool libraries that | 
|---|
| 2279 | *** depend on shared libraries, but programs linked with such libtool | 
|---|
| 2280 | *** libraries will work regardless of this problem.  Nevertheless, you | 
|---|
| 2281 | *** may want to report the problem to your system manager and/or to | 
|---|
| 2282 | *** bug-libtool@gnu.org | 
|---|
| 2283 |  | 
|---|
| 2284 | EOF | 
|---|
| 2285 | fi ;; | 
|---|
| 2286 | esac | 
|---|
| 2287 | fi | 
|---|
| 2288 | break | 
|---|
| 2289 | fi | 
|---|
| 2290 | done | 
|---|
| 2291 | IFS="$ac_save_ifs" | 
|---|
| 2292 | MAGIC_CMD="$ac_save_MAGIC_CMD" | 
|---|
| 2293 | ;; | 
|---|
| 2294 | esac | 
|---|
| 2295 | fi | 
|---|
| 2296 |  | 
|---|
| 2297 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|---|
| 2298 | if test -n "$MAGIC_CMD"; then | 
|---|
| 2299 | echo "$ac_t""$MAGIC_CMD" 1>&6 | 
|---|
| 2300 | else | 
|---|
| 2301 | echo "$ac_t""no" 1>&6 | 
|---|
| 2302 | fi | 
|---|
| 2303 |  | 
|---|
| 2304 | if test -z "$lt_cv_path_MAGIC_CMD"; then | 
|---|
| 2305 | if test -n "$ac_tool_prefix"; then | 
|---|
| 2306 | echo $ac_n "checking for file""... $ac_c" 1>&6 | 
|---|
| 2307 | echo "configure:2308: checking for file" >&5 | 
|---|
| 2308 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then | 
|---|
| 2309 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 2310 | else | 
|---|
| 2311 | case $MAGIC_CMD in | 
|---|
| 2312 | /*) | 
|---|
| 2313 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 
|---|
| 2314 | ;; | 
|---|
| 2315 | ?:/*) | 
|---|
| 2316 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | 
|---|
| 2317 | ;; | 
|---|
| 2318 | *) | 
|---|
| 2319 | ac_save_MAGIC_CMD="$MAGIC_CMD" | 
|---|
| 2320 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":" | 
|---|
| 2321 | ac_dummy="/usr/bin:$PATH" | 
|---|
| 2322 | for ac_dir in $ac_dummy; do | 
|---|
| 2323 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 2324 | if test -f $ac_dir/file; then | 
|---|
| 2325 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | 
|---|
| 2326 | if test -n "$file_magic_test_file"; then | 
|---|
| 2327 | case $deplibs_check_method in | 
|---|
| 2328 | "file_magic "*) | 
|---|
| 2329 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | 
|---|
| 2330 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|---|
| 2331 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 
|---|
| 2332 | egrep "$file_magic_regex" > /dev/null; then | 
|---|
| 2333 | : | 
|---|
| 2334 | else | 
|---|
| 2335 | cat <<EOF 1>&2 | 
|---|
| 2336 |  | 
|---|
| 2337 | *** Warning: the command libtool uses to detect shared libraries, | 
|---|
| 2338 | *** $file_magic_cmd, produces output that libtool cannot recognize. | 
|---|
| 2339 | *** The result is that libtool may fail to recognize shared libraries | 
|---|
| 2340 | *** as such.  This will affect the creation of libtool libraries that | 
|---|
| 2341 | *** depend on shared libraries, but programs linked with such libtool | 
|---|
| 2342 | *** libraries will work regardless of this problem.  Nevertheless, you | 
|---|
| 2343 | *** may want to report the problem to your system manager and/or to | 
|---|
| 2344 | *** bug-libtool@gnu.org | 
|---|
| 2345 |  | 
|---|
| 2346 | EOF | 
|---|
| 2347 | fi ;; | 
|---|
| 2348 | esac | 
|---|
| 2349 | fi | 
|---|
| 2350 | break | 
|---|
| 2351 | fi | 
|---|
| 2352 | done | 
|---|
| 2353 | IFS="$ac_save_ifs" | 
|---|
| 2354 | MAGIC_CMD="$ac_save_MAGIC_CMD" | 
|---|
| 2355 | ;; | 
|---|
| 2356 | esac | 
|---|
| 2357 | fi | 
|---|
| 2358 |  | 
|---|
| 2359 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|---|
| 2360 | if test -n "$MAGIC_CMD"; then | 
|---|
| 2361 | echo "$ac_t""$MAGIC_CMD" 1>&6 | 
|---|
| 2362 | else | 
|---|
| 2363 | echo "$ac_t""no" 1>&6 | 
|---|
| 2364 | fi | 
|---|
| 2365 |  | 
|---|
| 2366 | else | 
|---|
| 2367 | MAGIC_CMD=: | 
|---|
| 2368 | fi | 
|---|
| 2369 | fi | 
|---|
| 2370 |  | 
|---|
| 2371 | fi | 
|---|
| 2372 | ;; | 
|---|
| 2373 | esac | 
|---|
| 2374 |  | 
|---|
| 2375 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
|---|
| 2376 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
|---|
| 2377 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 2378 | echo "configure:2379: checking for $ac_word" >&5 | 
|---|
| 2379 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | 
|---|
| 2380 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 2381 | else | 
|---|
| 2382 | if test -n "$RANLIB"; then | 
|---|
| 2383 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
|---|
| 2384 | else | 
|---|
| 2385 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 2386 | ac_dummy="$PATH" | 
|---|
| 2387 | for ac_dir in $ac_dummy; do | 
|---|
| 2388 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 2389 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 2390 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 2391 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
|---|
| 2392 | break | 
|---|
| 2393 | fi | 
|---|
| 2394 | done | 
|---|
| 2395 | IFS="$ac_save_ifs" | 
|---|
| 2396 | fi | 
|---|
| 2397 | fi | 
|---|
| 2398 | RANLIB="$ac_cv_prog_RANLIB" | 
|---|
| 2399 | if test -n "$RANLIB"; then | 
|---|
| 2400 | echo "$ac_t""$RANLIB" 1>&6 | 
|---|
| 2401 | else | 
|---|
| 2402 | echo "$ac_t""no" 1>&6 | 
|---|
| 2403 | fi | 
|---|
| 2404 |  | 
|---|
| 2405 |  | 
|---|
| 2406 | if test -z "$ac_cv_prog_RANLIB"; then | 
|---|
| 2407 | if test -n "$ac_tool_prefix"; then | 
|---|
| 2408 | # Extract the first word of "ranlib", so it can be a program name with args. | 
|---|
| 2409 | set dummy ranlib; ac_word=$2 | 
|---|
| 2410 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 2411 | echo "configure:2412: checking for $ac_word" >&5 | 
|---|
| 2412 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | 
|---|
| 2413 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 2414 | else | 
|---|
| 2415 | if test -n "$RANLIB"; then | 
|---|
| 2416 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
|---|
| 2417 | else | 
|---|
| 2418 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 2419 | ac_dummy="$PATH" | 
|---|
| 2420 | for ac_dir in $ac_dummy; do | 
|---|
| 2421 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 2422 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 2423 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 2424 | ac_cv_prog_RANLIB="ranlib" | 
|---|
| 2425 | break | 
|---|
| 2426 | fi | 
|---|
| 2427 | done | 
|---|
| 2428 | IFS="$ac_save_ifs" | 
|---|
| 2429 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | 
|---|
| 2430 | fi | 
|---|
| 2431 | fi | 
|---|
| 2432 | RANLIB="$ac_cv_prog_RANLIB" | 
|---|
| 2433 | if test -n "$RANLIB"; then | 
|---|
| 2434 | echo "$ac_t""$RANLIB" 1>&6 | 
|---|
| 2435 | else | 
|---|
| 2436 | echo "$ac_t""no" 1>&6 | 
|---|
| 2437 | fi | 
|---|
| 2438 |  | 
|---|
| 2439 | else | 
|---|
| 2440 | RANLIB=":" | 
|---|
| 2441 | fi | 
|---|
| 2442 | fi | 
|---|
| 2443 |  | 
|---|
| 2444 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | 
|---|
| 2445 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | 
|---|
| 2446 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 2447 | echo "configure:2448: checking for $ac_word" >&5 | 
|---|
| 2448 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then | 
|---|
| 2449 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 2450 | else | 
|---|
| 2451 | if test -n "$STRIP"; then | 
|---|
| 2452 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | 
|---|
| 2453 | else | 
|---|
| 2454 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 2455 | ac_dummy="$PATH" | 
|---|
| 2456 | for ac_dir in $ac_dummy; do | 
|---|
| 2457 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 2458 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 2459 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 2460 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | 
|---|
| 2461 | break | 
|---|
| 2462 | fi | 
|---|
| 2463 | done | 
|---|
| 2464 | IFS="$ac_save_ifs" | 
|---|
| 2465 | fi | 
|---|
| 2466 | fi | 
|---|
| 2467 | STRIP="$ac_cv_prog_STRIP" | 
|---|
| 2468 | if test -n "$STRIP"; then | 
|---|
| 2469 | echo "$ac_t""$STRIP" 1>&6 | 
|---|
| 2470 | else | 
|---|
| 2471 | echo "$ac_t""no" 1>&6 | 
|---|
| 2472 | fi | 
|---|
| 2473 |  | 
|---|
| 2474 |  | 
|---|
| 2475 | if test -z "$ac_cv_prog_STRIP"; then | 
|---|
| 2476 | if test -n "$ac_tool_prefix"; then | 
|---|
| 2477 | # Extract the first word of "strip", so it can be a program name with args. | 
|---|
| 2478 | set dummy strip; ac_word=$2 | 
|---|
| 2479 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 2480 | echo "configure:2481: checking for $ac_word" >&5 | 
|---|
| 2481 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then | 
|---|
| 2482 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 2483 | else | 
|---|
| 2484 | if test -n "$STRIP"; then | 
|---|
| 2485 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | 
|---|
| 2486 | else | 
|---|
| 2487 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 2488 | ac_dummy="$PATH" | 
|---|
| 2489 | for ac_dir in $ac_dummy; do | 
|---|
| 2490 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 2491 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 2492 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 2493 | ac_cv_prog_STRIP="strip" | 
|---|
| 2494 | break | 
|---|
| 2495 | fi | 
|---|
| 2496 | done | 
|---|
| 2497 | IFS="$ac_save_ifs" | 
|---|
| 2498 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" | 
|---|
| 2499 | fi | 
|---|
| 2500 | fi | 
|---|
| 2501 | STRIP="$ac_cv_prog_STRIP" | 
|---|
| 2502 | if test -n "$STRIP"; then | 
|---|
| 2503 | echo "$ac_t""$STRIP" 1>&6 | 
|---|
| 2504 | else | 
|---|
| 2505 | echo "$ac_t""no" 1>&6 | 
|---|
| 2506 | fi | 
|---|
| 2507 |  | 
|---|
| 2508 | else | 
|---|
| 2509 | STRIP=":" | 
|---|
| 2510 | fi | 
|---|
| 2511 | fi | 
|---|
| 2512 |  | 
|---|
| 2513 |  | 
|---|
| 2514 | # Check for any special flags to pass to ltconfig. | 
|---|
| 2515 | libtool_flags="--cache-file=$cache_file" | 
|---|
| 2516 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | 
|---|
| 2517 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | 
|---|
| 2518 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | 
|---|
| 2519 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" | 
|---|
| 2520 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | 
|---|
| 2521 | libtool_flags="$libtool_flags --enable-dlopen" | 
|---|
| 2522 |  | 
|---|
| 2523 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | 
|---|
| 2524 | if test "${enable_libtool_lock+set}" = set; then | 
|---|
| 2525 | enableval="$enable_libtool_lock" | 
|---|
| 2526 | : | 
|---|
| 2527 | fi | 
|---|
| 2528 |  | 
|---|
| 2529 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" | 
|---|
| 2530 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | 
|---|
| 2531 |  | 
|---|
| 2532 | # Check whether --with-pic or --without-pic was given. | 
|---|
| 2533 | if test "${with_pic+set}" = set; then | 
|---|
| 2534 | withval="$with_pic" | 
|---|
| 2535 | pic_mode="$withval" | 
|---|
| 2536 | else | 
|---|
| 2537 | pic_mode=default | 
|---|
| 2538 | fi | 
|---|
| 2539 |  | 
|---|
| 2540 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" | 
|---|
| 2541 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | 
|---|
| 2542 |  | 
|---|
| 2543 | # Some flags need to be propagated to the compiler or linker for good | 
|---|
| 2544 | # libtool support. | 
|---|
| 2545 | case $host in | 
|---|
| 2546 | *-*-irix6*) | 
|---|
| 2547 | # Find out which ABI we are using. | 
|---|
| 2548 | echo '#line 2549 "configure"' > conftest.$ac_ext | 
|---|
| 2549 | if { (eval echo configure:2550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 2550 | if test "$lt_cv_prog_gnu_ld" = yes; then | 
|---|
| 2551 | case `/usr/bin/file conftest.$ac_objext` in | 
|---|
| 2552 | *32-bit*) | 
|---|
| 2553 | LD="${LD-ld} -melf32bsmip" | 
|---|
| 2554 | ;; | 
|---|
| 2555 | *N32*) | 
|---|
| 2556 | LD="${LD-ld} -melf32bmipn32" | 
|---|
| 2557 | ;; | 
|---|
| 2558 | *64-bit*) | 
|---|
| 2559 | LD="${LD-ld} -melf64bmip" | 
|---|
| 2560 | ;; | 
|---|
| 2561 | esac | 
|---|
| 2562 | else | 
|---|
| 2563 | case `/usr/bin/file conftest.$ac_objext` in | 
|---|
| 2564 | *32-bit*) | 
|---|
| 2565 | LD="${LD-ld} -32" | 
|---|
| 2566 | ;; | 
|---|
| 2567 | *N32*) | 
|---|
| 2568 | LD="${LD-ld} -n32" | 
|---|
| 2569 | ;; | 
|---|
| 2570 | *64-bit*) | 
|---|
| 2571 | LD="${LD-ld} -64" | 
|---|
| 2572 | ;; | 
|---|
| 2573 | esac | 
|---|
| 2574 | fi | 
|---|
| 2575 | fi | 
|---|
| 2576 | rm -rf conftest* | 
|---|
| 2577 | ;; | 
|---|
| 2578 |  | 
|---|
| 2579 | ia64-*-hpux*) | 
|---|
| 2580 | # Find out which ABI we are using. | 
|---|
| 2581 | echo 'int i;' > conftest.$ac_ext | 
|---|
| 2582 | if { (eval echo configure:2583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 2583 | case "`/usr/bin/file conftest.o`" in | 
|---|
| 2584 | *ELF-32*) | 
|---|
| 2585 | HPUX_IA64_MODE="32" | 
|---|
| 2586 | ;; | 
|---|
| 2587 | *ELF-64*) | 
|---|
| 2588 | HPUX_IA64_MODE="64" | 
|---|
| 2589 | ;; | 
|---|
| 2590 | esac | 
|---|
| 2591 | fi | 
|---|
| 2592 | rm -rf conftest* | 
|---|
| 2593 | ;; | 
|---|
| 2594 |  | 
|---|
| 2595 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | 
|---|
| 2596 | # Find out which ABI we are using. | 
|---|
| 2597 | echo 'int i;' > conftest.$ac_ext | 
|---|
| 2598 | if { (eval echo configure:2599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 2599 | case "`/usr/bin/file conftest.o`" in | 
|---|
| 2600 | *32-bit*) | 
|---|
| 2601 | case $host in | 
|---|
| 2602 | x86_64-*linux*) | 
|---|
| 2603 | LD="${LD-ld} -m elf_i386" | 
|---|
| 2604 | ;; | 
|---|
| 2605 | ppc64-*linux*|powerpc64-*linux*) | 
|---|
| 2606 | LD="${LD-ld} -m elf32ppclinux" | 
|---|
| 2607 | ;; | 
|---|
| 2608 | s390x-*linux*) | 
|---|
| 2609 | LD="${LD-ld} -m elf_s390" | 
|---|
| 2610 | ;; | 
|---|
| 2611 | sparc64-*linux*) | 
|---|
| 2612 | LD="${LD-ld} -m elf32_sparc" | 
|---|
| 2613 | ;; | 
|---|
| 2614 | esac | 
|---|
| 2615 | ;; | 
|---|
| 2616 | *64-bit*) | 
|---|
| 2617 | case $host in | 
|---|
| 2618 | x86_64-*linux*) | 
|---|
| 2619 | LD="${LD-ld} -m elf_x86_64" | 
|---|
| 2620 | ;; | 
|---|
| 2621 | ppc*-*linux*|powerpc*-*linux*) | 
|---|
| 2622 | LD="${LD-ld} -m elf64ppc" | 
|---|
| 2623 | ;; | 
|---|
| 2624 | s390*-*linux*) | 
|---|
| 2625 | LD="${LD-ld} -m elf64_s390" | 
|---|
| 2626 | ;; | 
|---|
| 2627 | sparc*-*linux*) | 
|---|
| 2628 | LD="${LD-ld} -m elf64_sparc" | 
|---|
| 2629 | ;; | 
|---|
| 2630 | esac | 
|---|
| 2631 | ;; | 
|---|
| 2632 | esac | 
|---|
| 2633 | fi | 
|---|
| 2634 | rm -rf conftest* | 
|---|
| 2635 | ;; | 
|---|
| 2636 |  | 
|---|
| 2637 | *-*-sco3.2v5*) | 
|---|
| 2638 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | 
|---|
| 2639 | SAVE_CFLAGS="$CFLAGS" | 
|---|
| 2640 | CFLAGS="$CFLAGS -belf" | 
|---|
| 2641 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 | 
|---|
| 2642 | echo "configure:2643: checking whether the C compiler needs -belf" >&5 | 
|---|
| 2643 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then | 
|---|
| 2644 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 2645 | else | 
|---|
| 2646 |  | 
|---|
| 2647 | ac_ext=c | 
|---|
| 2648 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
|---|
| 2649 | ac_cpp='$CPP $CPPFLAGS' | 
|---|
| 2650 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
|---|
| 2651 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
|---|
| 2652 | cross_compiling=$ac_cv_prog_cc_cross | 
|---|
| 2653 |  | 
|---|
| 2654 | cat > conftest.$ac_ext <<EOF | 
|---|
| 2655 | #line 2656 "configure" | 
|---|
| 2656 | #include "confdefs.h" | 
|---|
| 2657 |  | 
|---|
| 2658 | int main() { | 
|---|
| 2659 |  | 
|---|
| 2660 | ; return 0; } | 
|---|
| 2661 | EOF | 
|---|
| 2662 | if { (eval echo configure:2663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 2663 | rm -rf conftest* | 
|---|
| 2664 | lt_cv_cc_needs_belf=yes | 
|---|
| 2665 | else | 
|---|
| 2666 | echo "configure: failed program was:" >&5 | 
|---|
| 2667 | cat conftest.$ac_ext >&5 | 
|---|
| 2668 | rm -rf conftest* | 
|---|
| 2669 | lt_cv_cc_needs_belf=no | 
|---|
| 2670 | fi | 
|---|
| 2671 | rm -f conftest* | 
|---|
| 2672 | ac_ext=c | 
|---|
| 2673 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
|---|
| 2674 | ac_cpp='$CPP $CPPFLAGS' | 
|---|
| 2675 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
|---|
| 2676 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
|---|
| 2677 | cross_compiling=$ac_cv_prog_cc_cross | 
|---|
| 2678 |  | 
|---|
| 2679 | fi | 
|---|
| 2680 |  | 
|---|
| 2681 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 | 
|---|
| 2682 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | 
|---|
| 2683 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | 
|---|
| 2684 | CFLAGS="$SAVE_CFLAGS" | 
|---|
| 2685 | fi | 
|---|
| 2686 | ;; | 
|---|
| 2687 |  | 
|---|
| 2688 |  | 
|---|
| 2689 | esac | 
|---|
| 2690 |  | 
|---|
| 2691 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 | 
|---|
| 2692 | echo "configure:2693: checking how to run the C++ preprocessor" >&5 | 
|---|
| 2693 | if test -z "$CXXCPP"; then | 
|---|
| 2694 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | 
|---|
| 2695 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 2696 | else | 
|---|
| 2697 | ac_ext=C | 
|---|
| 2698 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
|---|
| 2699 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|---|
| 2700 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
|---|
| 2701 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
|---|
| 2702 | cross_compiling=$ac_cv_prog_cxx_cross | 
|---|
| 2703 | CXXCPP="${CXX-g++} -E" | 
|---|
| 2704 | cat > conftest.$ac_ext <<EOF | 
|---|
| 2705 | #include <sys/types.h> | 
|---|
| 2706 | #line 2707 "configure" | 
|---|
| 2707 | #include "confdefs.h" | 
|---|
| 2708 | #include <stdlib.h> | 
|---|
| 2709 | EOF | 
|---|
| 2710 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 2711 | { (eval echo configure:2712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 2712 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 2713 | if test -z "$ac_err"; then | 
|---|
| 2714 | : | 
|---|
| 2715 | else | 
|---|
| 2716 | echo "$ac_err" >&5 | 
|---|
| 2717 | echo "configure: failed program was:" >&5 | 
|---|
| 2718 | cat conftest.$ac_ext >&5 | 
|---|
| 2719 | rm -rf conftest* | 
|---|
| 2720 | CXXCPP=/lib/cpp | 
|---|
| 2721 | fi | 
|---|
| 2722 | rm -f conftest* | 
|---|
| 2723 | ac_cv_prog_CXXCPP="$CXXCPP" | 
|---|
| 2724 | ac_ext=c | 
|---|
| 2725 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
|---|
| 2726 | ac_cpp='$CPP $CPPFLAGS' | 
|---|
| 2727 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
|---|
| 2728 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
|---|
| 2729 | cross_compiling=$ac_cv_prog_cc_cross | 
|---|
| 2730 | fi | 
|---|
| 2731 | fi | 
|---|
| 2732 | CXXCPP="$ac_cv_prog_CXXCPP" | 
|---|
| 2733 | echo "$ac_t""$CXXCPP" 1>&6 | 
|---|
| 2734 |  | 
|---|
| 2735 |  | 
|---|
| 2736 | # Save cache, so that ltconfig can load it | 
|---|
| 2737 | cat > confcache <<\EOF | 
|---|
| 2738 | # This file is a shell script that caches the results of configure | 
|---|
| 2739 | # tests run on this system so they can be shared between configure | 
|---|
| 2740 | # scripts and configure runs.  It is not useful on other systems. | 
|---|
| 2741 | # If it contains results you don't want to keep, you may remove or edit it. | 
|---|
| 2742 | # | 
|---|
| 2743 | # By default, configure uses ./config.cache as the cache file, | 
|---|
| 2744 | # creating it if it does not exist already.  You can give configure | 
|---|
| 2745 | # the --cache-file=FILE option to use a different cache file; that is | 
|---|
| 2746 | # what configure does when it calls configure scripts in | 
|---|
| 2747 | # subdirectories, so they share the cache. | 
|---|
| 2748 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | 
|---|
| 2749 | # config.status only pays attention to the cache file if you give it the | 
|---|
| 2750 | # --recheck option to rerun configure. | 
|---|
| 2751 | # | 
|---|
| 2752 | EOF | 
|---|
| 2753 | # The following way of writing the cache mishandles newlines in values, | 
|---|
| 2754 | # but we know of no workaround that is simple, portable, and efficient. | 
|---|
| 2755 | # So, don't put newlines in cache variables' values. | 
|---|
| 2756 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
|---|
| 2757 | # and sets the high bit in the cache file unless we assign to the vars. | 
|---|
| 2758 | (set) 2>&1 | | 
|---|
| 2759 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | 
|---|
| 2760 | *ac_space=\ *) | 
|---|
| 2761 | # `set' does not quote correctly, so add quotes (double-quote substitution | 
|---|
| 2762 | # turns \\\\ into \\, and sed turns \\ into \). | 
|---|
| 2763 | sed -n \ | 
|---|
| 2764 | -e "s/'/'\\\\''/g" \ | 
|---|
| 2765 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | 
|---|
| 2766 | ;; | 
|---|
| 2767 | *) | 
|---|
| 2768 | # `set' quotes correctly as required by POSIX, so do not add quotes. | 
|---|
| 2769 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | 
|---|
| 2770 | ;; | 
|---|
| 2771 | esac >> confcache | 
|---|
| 2772 | if cmp -s $cache_file confcache; then | 
|---|
| 2773 | : | 
|---|
| 2774 | else | 
|---|
| 2775 | if test -w $cache_file; then | 
|---|
| 2776 | echo "updating cache $cache_file" | 
|---|
| 2777 | cat confcache > $cache_file | 
|---|
| 2778 | else | 
|---|
| 2779 | echo "not updating unwritable cache $cache_file" | 
|---|
| 2780 | fi | 
|---|
| 2781 | fi | 
|---|
| 2782 | rm -f confcache | 
|---|
| 2783 |  | 
|---|
| 2784 |  | 
|---|
| 2785 | # Actually configure libtool.  ac_aux_dir is where install-sh is found. | 
|---|
| 2786 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ | 
|---|
| 2787 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ | 
|---|
| 2788 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ | 
|---|
| 2789 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | 
|---|
| 2790 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | 
|---|
| 2791 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | 
|---|
| 2792 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ | 
|---|
| 2793 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ | 
|---|
| 2794 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } | 
|---|
| 2795 |  | 
|---|
| 2796 | # Reload cache, that may have been modified by ltconfig | 
|---|
| 2797 | if test -r "$cache_file"; then | 
|---|
| 2798 | echo "loading cache $cache_file" | 
|---|
| 2799 | . $cache_file | 
|---|
| 2800 | else | 
|---|
| 2801 | echo "creating cache $cache_file" | 
|---|
| 2802 | > $cache_file | 
|---|
| 2803 | fi | 
|---|
| 2804 |  | 
|---|
| 2805 |  | 
|---|
| 2806 | # This can be used to rebuild libtool when needed | 
|---|
| 2807 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" | 
|---|
| 2808 |  | 
|---|
| 2809 | # Always use our own libtool. | 
|---|
| 2810 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | 
|---|
| 2811 |  | 
|---|
| 2812 | # Redirect the config.log output again, so that the ltconfig log is not | 
|---|
| 2813 | # clobbered by the next message. | 
|---|
| 2814 | exec 5>>./config.log | 
|---|
| 2815 |  | 
|---|
| 2816 |  | 
|---|
| 2817 |  | 
|---|
| 2818 | LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh" | 
|---|
| 2819 | lt_save_CC="$CC" | 
|---|
| 2820 | lt_save_CFLAGS="$CFLAGS" | 
|---|
| 2821 | AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \ | 
|---|
| 2822 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ | 
|---|
| 2823 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ | 
|---|
| 2824 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | 
|---|
| 2825 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | 
|---|
| 2826 | deplibs_check_method="$deplibs_check_method" \ | 
|---|
| 2827 | file_magic_cmd="$file_magic_cmd" \ | 
|---|
| 2828 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \ | 
|---|
| 2829 | --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \ | 
|---|
| 2830 | || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; } | 
|---|
| 2831 | CC="$lt_save_CC" | 
|---|
| 2832 | CFLAGS="$lt_save_CFLAGS" | 
|---|
| 2833 |  | 
|---|
| 2834 | # Redirect the config.log output again, so that the ltconfig log is not | 
|---|
| 2835 | # clobbered by the next message. | 
|---|
| 2836 | exec 5>>./config.log | 
|---|
| 2837 |  | 
|---|
| 2838 |  | 
|---|
| 2839 |  | 
|---|
| 2840 |  | 
|---|
| 2841 |  | 
|---|
| 2842 |  | 
|---|
| 2843 | subdirs="$DIRLTDL" | 
|---|
| 2844 |  | 
|---|
| 2845 |  | 
|---|
| 2846 | if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then | 
|---|
| 2847 | COMPPATH=. | 
|---|
| 2848 | else | 
|---|
| 2849 | COMPPATH=.. | 
|---|
| 2850 | fi | 
|---|
| 2851 |  | 
|---|
| 2852 |  | 
|---|
| 2853 |  | 
|---|
| 2854 |  | 
|---|
| 2855 | if test -d $srcdir/testsuite; then | 
|---|
| 2856 | TESTSUBDIR_TRUE= | 
|---|
| 2857 | TESTSUBDIR_FALSE='#' | 
|---|
| 2858 | else | 
|---|
| 2859 | TESTSUBDIR_TRUE='#' | 
|---|
| 2860 | TESTSUBDIR_FALSE= | 
|---|
| 2861 | fi | 
|---|
| 2862 |  | 
|---|
| 2863 | # Check whether --enable-getenv-properties or --disable-getenv-properties was given. | 
|---|
| 2864 | if test "${enable_getenv_properties+set}" = set; then | 
|---|
| 2865 | enableval="$enable_getenv_properties" | 
|---|
| 2866 | : | 
|---|
| 2867 | fi | 
|---|
| 2868 |  | 
|---|
| 2869 |  | 
|---|
| 2870 | if test -z "$enable_getenv_properties"; then | 
|---|
| 2871 | enable_getenv_properties=${enable_getenv_properties_default-yes} | 
|---|
| 2872 | fi | 
|---|
| 2873 | if test "$enable_getenv_properties" = no; then | 
|---|
| 2874 | cat >> confdefs.h <<\EOF | 
|---|
| 2875 | #define DISABLE_GETENV_PROPERTIES 1 | 
|---|
| 2876 | EOF | 
|---|
| 2877 |  | 
|---|
| 2878 | fi | 
|---|
| 2879 |  | 
|---|
| 2880 | if test -z "$enable_main_args"; then | 
|---|
| 2881 | enable_main_args=${enable_main_args_default-yes} | 
|---|
| 2882 | fi | 
|---|
| 2883 | if test "$enable_main_args" = no; then | 
|---|
| 2884 | cat >> confdefs.h <<\EOF | 
|---|
| 2885 | #define DISABLE_MAIN_ARGS 1 | 
|---|
| 2886 | EOF | 
|---|
| 2887 |  | 
|---|
| 2888 | fi | 
|---|
| 2889 |  | 
|---|
| 2890 |  | 
|---|
| 2891 | # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given. | 
|---|
| 2892 | if test "${enable_hash_synchronization+set}" = set; then | 
|---|
| 2893 | enableval="$enable_hash_synchronization" | 
|---|
| 2894 | : | 
|---|
| 2895 | fi | 
|---|
| 2896 |  | 
|---|
| 2897 |  | 
|---|
| 2898 | if test -z "$enable_hash_synchronization"; then | 
|---|
| 2899 | enable_hash_synchronization=$enable_hash_synchronization_default | 
|---|
| 2900 | fi | 
|---|
| 2901 |  | 
|---|
| 2902 | if test "${slow_pthread_self}" = "yes"; then | 
|---|
| 2903 | cat >> confdefs.h <<\EOF | 
|---|
| 2904 | #define SLOW_PTHREAD_SELF 1 | 
|---|
| 2905 | EOF | 
|---|
| 2906 |  | 
|---|
| 2907 | fi | 
|---|
| 2908 |  | 
|---|
| 2909 |  | 
|---|
| 2910 | LIBGCJDEBUG="false" | 
|---|
| 2911 |  | 
|---|
| 2912 | # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given. | 
|---|
| 2913 | if test "${enable_libgcj_debug+set}" = set; then | 
|---|
| 2914 | enableval="$enable_libgcj_debug" | 
|---|
| 2915 | if test "$enable_libgcj_debug" = yes; then | 
|---|
| 2916 | cat >> confdefs.h <<\EOF | 
|---|
| 2917 | #define DEBUG 1 | 
|---|
| 2918 | EOF | 
|---|
| 2919 |  | 
|---|
| 2920 | LIBGCJDEBUG="true" | 
|---|
| 2921 | fi | 
|---|
| 2922 | fi | 
|---|
| 2923 |  | 
|---|
| 2924 |  | 
|---|
| 2925 | # Check whether --enable-interpreter or --disable-interpreter was given. | 
|---|
| 2926 | if test "${enable_interpreter+set}" = set; then | 
|---|
| 2927 | enableval="$enable_interpreter" | 
|---|
| 2928 | if test "$enable_interpreter" = yes; then | 
|---|
| 2929 | # This can also be set in configure.host. | 
|---|
| 2930 | libgcj_interpreter=yes | 
|---|
| 2931 | elif test "$enable_interpreter" = no; then | 
|---|
| 2932 | libgcj_interpreter=no | 
|---|
| 2933 | fi | 
|---|
| 2934 | fi | 
|---|
| 2935 |  | 
|---|
| 2936 |  | 
|---|
| 2937 | if test "$libgcj_interpreter" = yes; then | 
|---|
| 2938 | cat >> confdefs.h <<\EOF | 
|---|
| 2939 | #define INTERPRETER 1 | 
|---|
| 2940 | EOF | 
|---|
| 2941 |  | 
|---|
| 2942 | fi | 
|---|
| 2943 | INTERPRETER="$libgcj_interpreter" | 
|---|
| 2944 |  | 
|---|
| 2945 |  | 
|---|
| 2946 | echo $ac_n "checking for exception model to use""... $ac_c" 1>&6 | 
|---|
| 2947 | echo "configure:2948: checking for exception model to use" >&5 | 
|---|
| 2948 |  | 
|---|
| 2949 | ac_ext=C | 
|---|
| 2950 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
|---|
| 2951 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|---|
| 2952 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
|---|
| 2953 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
|---|
| 2954 | cross_compiling=$ac_cv_prog_cxx_cross | 
|---|
| 2955 |  | 
|---|
| 2956 | # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given. | 
|---|
| 2957 | if test "${enable_sjlj_exceptions+set}" = set; then | 
|---|
| 2958 | enableval="$enable_sjlj_exceptions" | 
|---|
| 2959 | : | 
|---|
| 2960 | else | 
|---|
| 2961 | cat > conftest.$ac_ext << EOF | 
|---|
| 2962 | #line 2963 "configure" | 
|---|
| 2963 | struct S { ~S(); }; | 
|---|
| 2964 | void bar(); | 
|---|
| 2965 | void foo() | 
|---|
| 2966 | { | 
|---|
| 2967 | S s; | 
|---|
| 2968 | bar(); | 
|---|
| 2969 | } | 
|---|
| 2970 | EOF | 
|---|
| 2971 | old_CXXFLAGS="$CXXFLAGS" | 
|---|
| 2972 | CXXFLAGS=-S | 
|---|
| 2973 | if { (eval echo configure:2974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 2974 | if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then | 
|---|
| 2975 | enable_sjlj_exceptions=yes | 
|---|
| 2976 | elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then | 
|---|
| 2977 | enable_sjlj_exceptions=no | 
|---|
| 2978 | fi | 
|---|
| 2979 | fi | 
|---|
| 2980 | CXXFLAGS="$old_CXXFLAGS" | 
|---|
| 2981 | rm -f conftest* | 
|---|
| 2982 | fi | 
|---|
| 2983 |  | 
|---|
| 2984 | if test x$enable_sjlj_exceptions = xyes; then | 
|---|
| 2985 | cat >> confdefs.h <<\EOF | 
|---|
| 2986 | #define SJLJ_EXCEPTIONS 1 | 
|---|
| 2987 | EOF | 
|---|
| 2988 |  | 
|---|
| 2989 | ac_exception_model_name=sjlj | 
|---|
| 2990 | elif test x$enable_sjlj_exceptions = xno; then | 
|---|
| 2991 | ac_exception_model_name="call frame" | 
|---|
| 2992 | else | 
|---|
| 2993 | { echo "configure: error: unable to detect exception model" 1>&2; exit 1; } | 
|---|
| 2994 | fi | 
|---|
| 2995 | ac_ext=c | 
|---|
| 2996 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
|---|
| 2997 | ac_cpp='$CPP $CPPFLAGS' | 
|---|
| 2998 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
|---|
| 2999 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
|---|
| 3000 | cross_compiling=$ac_cv_prog_cc_cross | 
|---|
| 3001 |  | 
|---|
| 3002 | echo "$ac_t""$ac_exception_model_name" 1>&6 | 
|---|
| 3003 |  | 
|---|
| 3004 | # If we are non using SJLJ exceptions, and this host does not have support | 
|---|
| 3005 | # for unwinding from a signal handler, enable checked dereferences and divides. | 
|---|
| 3006 | if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then | 
|---|
| 3007 | CHECKREFSPEC=-fcheck-references | 
|---|
| 3008 | DIVIDESPEC=-fuse-divide-subroutine | 
|---|
| 3009 | EXCEPTIONSPEC= | 
|---|
| 3010 | fi | 
|---|
| 3011 |  | 
|---|
| 3012 | # Check whether --enable-java-net or --disable-java-net was given. | 
|---|
| 3013 | if test "${enable_java_net+set}" = set; then | 
|---|
| 3014 | enableval="$enable_java_net" | 
|---|
| 3015 | : | 
|---|
| 3016 | fi | 
|---|
| 3017 |  | 
|---|
| 3018 |  | 
|---|
| 3019 | if test -z "$enable_java_net"; then | 
|---|
| 3020 | enable_java_net=${enable_java_net_default-yes} | 
|---|
| 3021 | fi | 
|---|
| 3022 | if test "$enable_java_net" = no; then | 
|---|
| 3023 | cat >> confdefs.h <<\EOF | 
|---|
| 3024 | #define DISABLE_JAVA_NET 1 | 
|---|
| 3025 | EOF | 
|---|
| 3026 |  | 
|---|
| 3027 | fi | 
|---|
| 3028 |  | 
|---|
| 3029 | # Check whether --with-libffi or --without-libffi was given. | 
|---|
| 3030 | if test "${with_libffi+set}" = set; then | 
|---|
| 3031 | withval="$with_libffi" | 
|---|
| 3032 | : | 
|---|
| 3033 | else | 
|---|
| 3034 | with_libffi=${with_libffi_default-yes} | 
|---|
| 3035 | fi | 
|---|
| 3036 |  | 
|---|
| 3037 |  | 
|---|
| 3038 | LIBFFI= | 
|---|
| 3039 | LIBFFIINCS= | 
|---|
| 3040 | if test "$with_libffi" != no; then | 
|---|
| 3041 | cat >> confdefs.h <<\EOF | 
|---|
| 3042 | #define USE_LIBFFI 1 | 
|---|
| 3043 | EOF | 
|---|
| 3044 |  | 
|---|
| 3045 | LIBFFI=../libffi/libffi_convenience.la | 
|---|
| 3046 | LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include' | 
|---|
| 3047 | fi | 
|---|
| 3048 |  | 
|---|
| 3049 |  | 
|---|
| 3050 |  | 
|---|
| 3051 | # Check whether --enable-jvmpi or --disable-jvmpi was given. | 
|---|
| 3052 | if test "${enable_jvmpi+set}" = set; then | 
|---|
| 3053 | enableval="$enable_jvmpi" | 
|---|
| 3054 | : | 
|---|
| 3055 | fi | 
|---|
| 3056 |  | 
|---|
| 3057 |  | 
|---|
| 3058 | if test "$enable_jvmpi" != no; then | 
|---|
| 3059 | cat >> confdefs.h <<\EOF | 
|---|
| 3060 | #define ENABLE_JVMPI 1 | 
|---|
| 3061 | EOF | 
|---|
| 3062 |  | 
|---|
| 3063 | fi | 
|---|
| 3064 |  | 
|---|
| 3065 | TARGET_ECOS=${PROCESS-"no"} | 
|---|
| 3066 | # Check whether --with-ecos or --without-ecos was given. | 
|---|
| 3067 | if test "${with_ecos+set}" = set; then | 
|---|
| 3068 | withval="$with_ecos" | 
|---|
| 3069 | TARGET_ECOS="$with_ecos" | 
|---|
| 3070 |  | 
|---|
| 3071 | fi | 
|---|
| 3072 |  | 
|---|
| 3073 |  | 
|---|
| 3074 | PLATFORMOBJS= | 
|---|
| 3075 | case "$TARGET_ECOS" in | 
|---|
| 3076 | no) case "$host" in | 
|---|
| 3077 | *mingw*) | 
|---|
| 3078 | PLATFORM=Win32 | 
|---|
| 3079 | PLATFORMOBJS=win32.lo | 
|---|
| 3080 | PLATFORMH=win32.h | 
|---|
| 3081 |  | 
|---|
| 3082 | echo $ac_n "checking whether 'ld' is at least 2.13""... $ac_c" 1>&6 | 
|---|
| 3083 | echo "configure:3084: checking whether 'ld' is at least 2.13" >&5 | 
|---|
| 3084 | LD_PROG=`$CC --print-prog-name=ld` | 
|---|
| 3085 | LD_VERSION=`$LD_PROG --version` | 
|---|
| 3086 | LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4` | 
|---|
| 3087 | LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2` | 
|---|
| 3088 | if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then | 
|---|
| 3089 | LD_OK="ok" | 
|---|
| 3090 | else | 
|---|
| 3091 | if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then | 
|---|
| 3092 | LD_OK="ok" | 
|---|
| 3093 | fi | 
|---|
| 3094 | fi | 
|---|
| 3095 | if test "x$LD_OK" != x; then | 
|---|
| 3096 | echo "$ac_t""yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" 1>&6 | 
|---|
| 3097 | else | 
|---|
| 3098 | echo "$ac_t""no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" 1>&6 | 
|---|
| 3099 | echo "configure: warning: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." 1>&2 | 
|---|
| 3100 | cat >> confdefs.h <<\EOF | 
|---|
| 3101 | #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1 | 
|---|
| 3102 | EOF | 
|---|
| 3103 |  | 
|---|
| 3104 | fi | 
|---|
| 3105 | ;; | 
|---|
| 3106 | *) | 
|---|
| 3107 | PLATFORM=Posix | 
|---|
| 3108 | PLATFORMOBJS=posix.lo | 
|---|
| 3109 | PLATFORMH=posix.h | 
|---|
| 3110 | ;; | 
|---|
| 3111 | esac | 
|---|
| 3112 | ;; | 
|---|
| 3113 | *) | 
|---|
| 3114 | PLATFORM=Ecos | 
|---|
| 3115 | cat >> confdefs.h <<\EOF | 
|---|
| 3116 | #define ECOS 1 | 
|---|
| 3117 | EOF | 
|---|
| 3118 |  | 
|---|
| 3119 | PLATFORMOBJS=posix.lo | 
|---|
| 3120 | PLATFORMH=posix.h | 
|---|
| 3121 | ;; | 
|---|
| 3122 | esac | 
|---|
| 3123 |  | 
|---|
| 3124 |  | 
|---|
| 3125 |  | 
|---|
| 3126 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | 
|---|
| 3127 | echo "configure:3128: checking how to run the C preprocessor" >&5 | 
|---|
| 3128 | # On Suns, sometimes $CPP names a directory. | 
|---|
| 3129 | if test -n "$CPP" && test -d "$CPP"; then | 
|---|
| 3130 | CPP= | 
|---|
| 3131 | fi | 
|---|
| 3132 | if test -z "$CPP"; then | 
|---|
| 3133 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | 
|---|
| 3134 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3135 | else | 
|---|
| 3136 | # This must be in double quotes, not single quotes, because CPP may get | 
|---|
| 3137 | # substituted into the Makefile and "${CC-cc}" will confuse make. | 
|---|
| 3138 | CPP="${CC-cc} -E" | 
|---|
| 3139 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|---|
| 3140 | # not just through cpp. | 
|---|
| 3141 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3142 | #include <sys/types.h> | 
|---|
| 3143 | #line 3144 "configure" | 
|---|
| 3144 | #include "confdefs.h" | 
|---|
| 3145 | #include <assert.h> | 
|---|
| 3146 | Syntax Error | 
|---|
| 3147 | EOF | 
|---|
| 3148 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 3149 | { (eval echo configure:3150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 3150 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 3151 | if test -z "$ac_err"; then | 
|---|
| 3152 | : | 
|---|
| 3153 | else | 
|---|
| 3154 | echo "$ac_err" >&5 | 
|---|
| 3155 | echo "configure: failed program was:" >&5 | 
|---|
| 3156 | cat conftest.$ac_ext >&5 | 
|---|
| 3157 | rm -rf conftest* | 
|---|
| 3158 | CPP="${CC-cc} -E -traditional-cpp" | 
|---|
| 3159 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3160 | #include <sys/types.h> | 
|---|
| 3161 | #line 3162 "configure" | 
|---|
| 3162 | #include "confdefs.h" | 
|---|
| 3163 | #include <assert.h> | 
|---|
| 3164 | Syntax Error | 
|---|
| 3165 | EOF | 
|---|
| 3166 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 3167 | { (eval echo configure:3168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 3168 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 3169 | if test -z "$ac_err"; then | 
|---|
| 3170 | : | 
|---|
| 3171 | else | 
|---|
| 3172 | echo "$ac_err" >&5 | 
|---|
| 3173 | echo "configure: failed program was:" >&5 | 
|---|
| 3174 | cat conftest.$ac_ext >&5 | 
|---|
| 3175 | rm -rf conftest* | 
|---|
| 3176 | CPP="${CC-cc} -nologo -E" | 
|---|
| 3177 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3178 | #include <sys/types.h> | 
|---|
| 3179 | #line 3180 "configure" | 
|---|
| 3180 | #include "confdefs.h" | 
|---|
| 3181 | #include <assert.h> | 
|---|
| 3182 | Syntax Error | 
|---|
| 3183 | EOF | 
|---|
| 3184 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 3185 | { (eval echo configure:3186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 3186 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 3187 | if test -z "$ac_err"; then | 
|---|
| 3188 | : | 
|---|
| 3189 | else | 
|---|
| 3190 | echo "$ac_err" >&5 | 
|---|
| 3191 | echo "configure: failed program was:" >&5 | 
|---|
| 3192 | cat conftest.$ac_ext >&5 | 
|---|
| 3193 | rm -rf conftest* | 
|---|
| 3194 | CPP=/lib/cpp | 
|---|
| 3195 | fi | 
|---|
| 3196 | rm -f conftest* | 
|---|
| 3197 | fi | 
|---|
| 3198 | rm -f conftest* | 
|---|
| 3199 | fi | 
|---|
| 3200 | rm -f conftest* | 
|---|
| 3201 | ac_cv_prog_CPP="$CPP" | 
|---|
| 3202 | fi | 
|---|
| 3203 | CPP="$ac_cv_prog_CPP" | 
|---|
| 3204 | else | 
|---|
| 3205 | ac_cv_prog_CPP="$CPP" | 
|---|
| 3206 | fi | 
|---|
| 3207 | echo "$ac_t""$CPP" 1>&6 | 
|---|
| 3208 |  | 
|---|
| 3209 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3210 | #line 3211 "configure" | 
|---|
| 3211 | #include "confdefs.h" | 
|---|
| 3212 | #include <stdint.h> | 
|---|
| 3213 | EOF | 
|---|
| 3214 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|---|
| 3215 | egrep "uint32_t" >/dev/null 2>&1; then | 
|---|
| 3216 | rm -rf conftest* | 
|---|
| 3217 | cat >> confdefs.h <<\EOF | 
|---|
| 3218 | #define HAVE_INT32_DEFINED 1 | 
|---|
| 3219 | EOF | 
|---|
| 3220 |  | 
|---|
| 3221 | fi | 
|---|
| 3222 | rm -f conftest* | 
|---|
| 3223 |  | 
|---|
| 3224 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3225 | #line 3226 "configure" | 
|---|
| 3226 | #include "confdefs.h" | 
|---|
| 3227 | #include <inttypes.h> | 
|---|
| 3228 | EOF | 
|---|
| 3229 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|---|
| 3230 | egrep "uint32_t" >/dev/null 2>&1; then | 
|---|
| 3231 | rm -rf conftest* | 
|---|
| 3232 | cat >> confdefs.h <<\EOF | 
|---|
| 3233 | #define HAVE_INT32_DEFINED 1 | 
|---|
| 3234 | EOF | 
|---|
| 3235 |  | 
|---|
| 3236 | fi | 
|---|
| 3237 | rm -f conftest* | 
|---|
| 3238 |  | 
|---|
| 3239 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3240 | #line 3241 "configure" | 
|---|
| 3241 | #include "confdefs.h" | 
|---|
| 3242 | #include <sys/types.h> | 
|---|
| 3243 | EOF | 
|---|
| 3244 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|---|
| 3245 | egrep "u_int32_t" >/dev/null 2>&1; then | 
|---|
| 3246 | rm -rf conftest* | 
|---|
| 3247 | cat >> confdefs.h <<\EOF | 
|---|
| 3248 | #define HAVE_BSD_INT32_DEFINED 1 | 
|---|
| 3249 | EOF | 
|---|
| 3250 |  | 
|---|
| 3251 | fi | 
|---|
| 3252 | rm -f conftest* | 
|---|
| 3253 |  | 
|---|
| 3254 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3255 | #line 3256 "configure" | 
|---|
| 3256 | #include "confdefs.h" | 
|---|
| 3257 | #include <sys/config.h> | 
|---|
| 3258 | EOF | 
|---|
| 3259 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|---|
| 3260 | egrep "u_int32_t" >/dev/null 2>&1; then | 
|---|
| 3261 | rm -rf conftest* | 
|---|
| 3262 | cat >> confdefs.h <<\EOF | 
|---|
| 3263 | #define HAVE_BSD_INT32_DEFINED 1 | 
|---|
| 3264 | EOF | 
|---|
| 3265 |  | 
|---|
| 3266 | fi | 
|---|
| 3267 | rm -f conftest* | 
|---|
| 3268 |  | 
|---|
| 3269 |  | 
|---|
| 3270 |  | 
|---|
| 3271 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3272 | #line 3273 "configure" | 
|---|
| 3273 | #include "confdefs.h" | 
|---|
| 3274 | #include <time.h> | 
|---|
| 3275 | EOF | 
|---|
| 3276 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|---|
| 3277 | egrep "mktime" >/dev/null 2>&1; then | 
|---|
| 3278 | rm -rf conftest* | 
|---|
| 3279 | cat >> confdefs.h <<\EOF | 
|---|
| 3280 | #define HAVE_MKTIME 1 | 
|---|
| 3281 | EOF | 
|---|
| 3282 |  | 
|---|
| 3283 | fi | 
|---|
| 3284 | rm -f conftest* | 
|---|
| 3285 |  | 
|---|
| 3286 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3287 | #line 3288 "configure" | 
|---|
| 3288 | #include "confdefs.h" | 
|---|
| 3289 | #include <time.h> | 
|---|
| 3290 | EOF | 
|---|
| 3291 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|---|
| 3292 | egrep "localtime" >/dev/null 2>&1; then | 
|---|
| 3293 | rm -rf conftest* | 
|---|
| 3294 | cat >> confdefs.h <<\EOF | 
|---|
| 3295 | #define HAVE_LOCALTIME 1 | 
|---|
| 3296 | EOF | 
|---|
| 3297 |  | 
|---|
| 3298 | fi | 
|---|
| 3299 | rm -f conftest* | 
|---|
| 3300 |  | 
|---|
| 3301 |  | 
|---|
| 3302 | test -d java || mkdir java | 
|---|
| 3303 | test -d java/io || mkdir java/io | 
|---|
| 3304 | test -d gnu || mkdir gnu | 
|---|
| 3305 |  | 
|---|
| 3306 |  | 
|---|
| 3307 |  | 
|---|
| 3308 | test -d java/lang || mkdir java/lang | 
|---|
| 3309 |  | 
|---|
| 3310 |  | 
|---|
| 3311 |  | 
|---|
| 3312 | case "${host}" in | 
|---|
| 3313 | *mingw*) | 
|---|
| 3314 | SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32" | 
|---|
| 3315 | ;; | 
|---|
| 3316 | *) | 
|---|
| 3317 | SYSTEMSPEC= | 
|---|
| 3318 | ;; | 
|---|
| 3319 | esac | 
|---|
| 3320 |  | 
|---|
| 3321 |  | 
|---|
| 3322 | LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs" | 
|---|
| 3323 |  | 
|---|
| 3324 |  | 
|---|
| 3325 | # Check whether --with-system-zlib or --without-system-zlib was given. | 
|---|
| 3326 | if test "${with_system_zlib+set}" = set; then | 
|---|
| 3327 | withval="$with_system_zlib" | 
|---|
| 3328 | : | 
|---|
| 3329 | fi | 
|---|
| 3330 |  | 
|---|
| 3331 | ZLIBSPEC= | 
|---|
| 3332 |  | 
|---|
| 3333 | ZLIBTESTSPEC= | 
|---|
| 3334 |  | 
|---|
| 3335 |  | 
|---|
| 3336 | libsubdir=.libs | 
|---|
| 3337 |  | 
|---|
| 3338 | echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6 | 
|---|
| 3339 | echo "configure:3340: checking for garbage collector to use" >&5 | 
|---|
| 3340 | # Check whether --enable-java-gc or --disable-java-gc was given. | 
|---|
| 3341 | if test "${enable_java_gc+set}" = set; then | 
|---|
| 3342 | enableval="$enable_java_gc" | 
|---|
| 3343 |  | 
|---|
| 3344 | GC=$enableval | 
|---|
| 3345 | else | 
|---|
| 3346 | GC=boehm | 
|---|
| 3347 | fi | 
|---|
| 3348 |  | 
|---|
| 3349 | GCLIBS= | 
|---|
| 3350 | GCINCS= | 
|---|
| 3351 | GCDEPS= | 
|---|
| 3352 | GCOBJS= | 
|---|
| 3353 | GCSPEC= | 
|---|
| 3354 | JC1GCSPEC= | 
|---|
| 3355 | GCTESTSPEC= | 
|---|
| 3356 | case "$GC" in | 
|---|
| 3357 | boehm) | 
|---|
| 3358 | echo "$ac_t""boehm" 1>&6 | 
|---|
| 3359 | GCLIBS=../boehm-gc/libgcjgc_convenience.la | 
|---|
| 3360 | GCINCS='-I$(top_srcdir)/../boehm-gc/include' | 
|---|
| 3361 | JC1GCSPEC='-fuse-boehm-gc' | 
|---|
| 3362 | GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs" | 
|---|
| 3363 |  | 
|---|
| 3364 | GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`" | 
|---|
| 3365 | GCOBJS=boehm.lo | 
|---|
| 3366 | GCHDR=boehm-gc.h | 
|---|
| 3367 | cat >> confdefs.h <<\EOF | 
|---|
| 3368 | #define HAVE_BOEHM_GC 1 | 
|---|
| 3369 | EOF | 
|---|
| 3370 |  | 
|---|
| 3371 | ;; | 
|---|
| 3372 | no) | 
|---|
| 3373 | echo "$ac_t""none" 1>&6 | 
|---|
| 3374 | GCOBJS=nogc.lo | 
|---|
| 3375 | GCHDR=no-gc.h | 
|---|
| 3376 | ;; | 
|---|
| 3377 | *) | 
|---|
| 3378 | { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; } | 
|---|
| 3379 | ;; | 
|---|
| 3380 | esac | 
|---|
| 3381 |  | 
|---|
| 3382 |  | 
|---|
| 3383 |  | 
|---|
| 3384 |  | 
|---|
| 3385 |  | 
|---|
| 3386 |  | 
|---|
| 3387 |  | 
|---|
| 3388 |  | 
|---|
| 3389 |  | 
|---|
| 3390 |  | 
|---|
| 3391 | echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6 | 
|---|
| 3392 | echo "configure:3393: checking for thread model used by GCC" >&5 | 
|---|
| 3393 | THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'` | 
|---|
| 3394 | echo "$ac_t""$THREADS" 1>&6 | 
|---|
| 3395 |  | 
|---|
| 3396 | case "$THREADS" in | 
|---|
| 3397 | no | none | single) | 
|---|
| 3398 | THREADS=none | 
|---|
| 3399 | ;; | 
|---|
| 3400 | posix | pthreads) | 
|---|
| 3401 | THREADS=posix | 
|---|
| 3402 | case "$host" in | 
|---|
| 3403 | *-*-linux*) | 
|---|
| 3404 | cat >> confdefs.h <<\EOF | 
|---|
| 3405 | #define LINUX_THREADS 1 | 
|---|
| 3406 | EOF | 
|---|
| 3407 |  | 
|---|
| 3408 | ;; | 
|---|
| 3409 | esac | 
|---|
| 3410 | ;; | 
|---|
| 3411 | win32) | 
|---|
| 3412 | ;; | 
|---|
| 3413 | decosf1 | irix | mach | os2 | solaris | dce | vxworks) | 
|---|
| 3414 | { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; } | 
|---|
| 3415 | ;; | 
|---|
| 3416 | *) | 
|---|
| 3417 | { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; } | 
|---|
| 3418 | ;; | 
|---|
| 3419 | esac | 
|---|
| 3420 |  | 
|---|
| 3421 | THREADLDFLAGS= | 
|---|
| 3422 | THREADLIBS= | 
|---|
| 3423 | THREADINCS= | 
|---|
| 3424 | THREADDEPS= | 
|---|
| 3425 | THREADOBJS= | 
|---|
| 3426 | THREADH= | 
|---|
| 3427 | THREADSPEC= | 
|---|
| 3428 | case "$THREADS" in | 
|---|
| 3429 | posix) | 
|---|
| 3430 | case "$host" in | 
|---|
| 3431 | *-*-cygwin*) | 
|---|
| 3432 | # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread. | 
|---|
| 3433 | ;; | 
|---|
| 3434 |  | 
|---|
| 3435 | *-*-freebsd[1234]*) | 
|---|
| 3436 |  | 
|---|
| 3437 | # Before FreeBSD 5, it didn't have -lpthread (or any library which | 
|---|
| 3438 | # merely adds pthread_* functions) but it does have a -pthread switch | 
|---|
| 3439 | # which is required at link-time to select -lc_r *instead* of -lc. | 
|---|
| 3440 | THREADLDFLAGS=-pthread | 
|---|
| 3441 | # Don't set THREADSPEC here as might be expected since -pthread is | 
|---|
| 3442 | # not processed when found within a spec file, it must come from | 
|---|
| 3443 | # the command line.  For now, the user must provide the -pthread | 
|---|
| 3444 | # switch to link code compiled with gcj.  In future, consider adding | 
|---|
| 3445 | # support for weak references to pthread_* functions ala gthr.h API. | 
|---|
| 3446 | THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}' | 
|---|
| 3447 | ;; | 
|---|
| 3448 | *-*-freebsd*) | 
|---|
| 3449 | # FreeBSD 5 implements a model much closer to other modern UNIX | 
|---|
| 3450 | # which support threads.  However, it still does not support | 
|---|
| 3451 | # -lpthread. | 
|---|
| 3452 | THREADLDFLAGS=-pthread | 
|---|
| 3453 | THREADSPEC=-lc_r | 
|---|
| 3454 | ;; | 
|---|
| 3455 | *) | 
|---|
| 3456 | THREADLIBS=-lpthread | 
|---|
| 3457 | THREADSPEC=-lpthread | 
|---|
| 3458 | ;; | 
|---|
| 3459 | esac | 
|---|
| 3460 | THREADOBJS=posix-threads.lo | 
|---|
| 3461 | THREADH=posix-threads.h | 
|---|
| 3462 | # MIT pthreads doesn't seem to have the mutexattr functions. | 
|---|
| 3463 | # But for now we don't check for it.  We just assume you aren't | 
|---|
| 3464 | # using MIT pthreads. | 
|---|
| 3465 | cat >> confdefs.h <<\EOF | 
|---|
| 3466 | #define HAVE_PTHREAD_MUTEXATTR_INIT 1 | 
|---|
| 3467 | EOF | 
|---|
| 3468 |  | 
|---|
| 3469 |  | 
|---|
| 3470 | # If we're using the Boehm GC, then we happen to know that it | 
|---|
| 3471 | # defines _REENTRANT, so we don't bother.  Eww. | 
|---|
| 3472 | if test "$GC" != boehm; then | 
|---|
| 3473 | cat >> confdefs.h <<\EOF | 
|---|
| 3474 | #define _REENTRANT 1 | 
|---|
| 3475 | EOF | 
|---|
| 3476 |  | 
|---|
| 3477 | fi | 
|---|
| 3478 | cat >> confdefs.h <<\EOF | 
|---|
| 3479 | #define _POSIX_PTHREAD_SEMANTICS 1 | 
|---|
| 3480 | EOF | 
|---|
| 3481 |  | 
|---|
| 3482 | ;; | 
|---|
| 3483 |  | 
|---|
| 3484 | win32) | 
|---|
| 3485 | THREADOBJS=win32-threads.lo | 
|---|
| 3486 | THREADH=win32-threads.h | 
|---|
| 3487 | ;; | 
|---|
| 3488 |  | 
|---|
| 3489 | none) | 
|---|
| 3490 | THREADOBJS=no-threads.lo | 
|---|
| 3491 | THREADH=no-threads.h | 
|---|
| 3492 | ;; | 
|---|
| 3493 | esac | 
|---|
| 3494 |  | 
|---|
| 3495 |  | 
|---|
| 3496 |  | 
|---|
| 3497 |  | 
|---|
| 3498 |  | 
|---|
| 3499 |  | 
|---|
| 3500 |  | 
|---|
| 3501 |  | 
|---|
| 3502 | if test -d sysdep; then true; else mkdir sysdep; fi | 
|---|
| 3503 |  | 
|---|
| 3504 |  | 
|---|
| 3505 | HASH_SYNC_SPEC= | 
|---|
| 3506 | # Hash synchronization is only useful with posix threads right now. | 
|---|
| 3507 | if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then | 
|---|
| 3508 | HASH_SYNC_SPEC=-fhash-synchronization | 
|---|
| 3509 | cat >> confdefs.h <<\EOF | 
|---|
| 3510 | #define JV_HASH_SYNCHRONIZATION 1 | 
|---|
| 3511 | EOF | 
|---|
| 3512 |  | 
|---|
| 3513 | fi | 
|---|
| 3514 |  | 
|---|
| 3515 |  | 
|---|
| 3516 |  | 
|---|
| 3517 |  | 
|---|
| 3518 |  | 
|---|
| 3519 | if test "$GCC" = yes; then | 
|---|
| 3520 | USING_GCC_TRUE= | 
|---|
| 3521 | USING_GCC_FALSE='#' | 
|---|
| 3522 | else | 
|---|
| 3523 | USING_GCC_TRUE='#' | 
|---|
| 3524 | USING_GCC_FALSE= | 
|---|
| 3525 | fi | 
|---|
| 3526 |  | 
|---|
| 3527 | CANADIAN=no | 
|---|
| 3528 | NULL_TARGET=no | 
|---|
| 3529 | NATIVE=yes | 
|---|
| 3530 |  | 
|---|
| 3531 | # We're in the tree with gcc, and need to include some of its headers. | 
|---|
| 3532 | GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc' | 
|---|
| 3533 |  | 
|---|
| 3534 | # Figure out where generated headers like libgcj-config.h get installed. | 
|---|
| 3535 | gcc_version_trigger=${libgcj_basedir}/../gcc/version.c | 
|---|
| 3536 | gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'` | 
|---|
| 3537 | gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'` | 
|---|
| 3538 | tool_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include | 
|---|
| 3539 |  | 
|---|
| 3540 |  | 
|---|
| 3541 |  | 
|---|
| 3542 | if test "x${with_newlib}" = "xyes"; then | 
|---|
| 3543 | # We are being configured with a cross compiler.  AC_REPLACE_FUNCS | 
|---|
| 3544 | # may not work correctly, because the compiler may not be able to | 
|---|
| 3545 | # link executables. | 
|---|
| 3546 |  | 
|---|
| 3547 | # We assume newlib.  This lets us hard-code the functions we know | 
|---|
| 3548 | # we'll have. | 
|---|
| 3549 | cat >> confdefs.h <<\EOF | 
|---|
| 3550 | #define HAVE_MEMMOVE 1 | 
|---|
| 3551 | EOF | 
|---|
| 3552 |  | 
|---|
| 3553 | cat >> confdefs.h <<\EOF | 
|---|
| 3554 | #define HAVE_MEMCPY 1 | 
|---|
| 3555 | EOF | 
|---|
| 3556 |  | 
|---|
| 3557 | cat >> confdefs.h <<\EOF | 
|---|
| 3558 | #define HAVE_STRERROR 1 | 
|---|
| 3559 | EOF | 
|---|
| 3560 |  | 
|---|
| 3561 | cat >> confdefs.h <<\EOF | 
|---|
| 3562 | #define HAVE_TIME 1 | 
|---|
| 3563 | EOF | 
|---|
| 3564 |  | 
|---|
| 3565 | cat >> confdefs.h <<\EOF | 
|---|
| 3566 | #define HAVE_GMTIME_R 1 | 
|---|
| 3567 | EOF | 
|---|
| 3568 |  | 
|---|
| 3569 | cat >> confdefs.h <<\EOF | 
|---|
| 3570 | #define HAVE_LOCALTIME_R 1 | 
|---|
| 3571 | EOF | 
|---|
| 3572 |  | 
|---|
| 3573 | cat >> confdefs.h <<\EOF | 
|---|
| 3574 | #define HAVE_PTHREAD_MUTEXATTR_INIT 1 | 
|---|
| 3575 | EOF | 
|---|
| 3576 |  | 
|---|
| 3577 | cat >> confdefs.h <<\EOF | 
|---|
| 3578 | #define HAVE_ALLOCA 1 | 
|---|
| 3579 | EOF | 
|---|
| 3580 |  | 
|---|
| 3581 |  | 
|---|
| 3582 | cat >> confdefs.h <<\EOF | 
|---|
| 3583 | #define NO_GETUID 1 | 
|---|
| 3584 | EOF | 
|---|
| 3585 |  | 
|---|
| 3586 |  | 
|---|
| 3587 | # If Canadian cross, then don't pick up tools from the build | 
|---|
| 3588 | # directory. | 
|---|
| 3589 | if test x"$build" != x"$with_cross_host" \ | 
|---|
| 3590 | && test x"$build" != x"$target"; then | 
|---|
| 3591 | CANADIAN=yes | 
|---|
| 3592 | GCC_UNWIND_INCLUDE= | 
|---|
| 3593 | GCJ="${target_alias}-gcj" | 
|---|
| 3594 | fi | 
|---|
| 3595 | NATIVE=no | 
|---|
| 3596 | else | 
|---|
| 3597 | for ac_func in strerror ioctl select fstat open fsync sleep opendir | 
|---|
| 3598 | do | 
|---|
| 3599 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
|---|
| 3600 | echo "configure:3601: checking for $ac_func" >&5 | 
|---|
| 3601 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
|---|
| 3602 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3603 | else | 
|---|
| 3604 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3605 | #line 3606 "configure" | 
|---|
| 3606 | #include "confdefs.h" | 
|---|
| 3607 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 3608 | which can conflict with char $ac_func(); below.  */ | 
|---|
| 3609 | #include <assert.h> | 
|---|
| 3610 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 3611 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 3612 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 3613 | char $ac_func(); | 
|---|
| 3614 |  | 
|---|
| 3615 | int main() { | 
|---|
| 3616 |  | 
|---|
| 3617 | /* The GNU C library defines this for functions which it implements | 
|---|
| 3618 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 3619 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 3620 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|---|
| 3621 | choke me | 
|---|
| 3622 | #else | 
|---|
| 3623 | $ac_func(); | 
|---|
| 3624 | #endif | 
|---|
| 3625 |  | 
|---|
| 3626 | ; return 0; } | 
|---|
| 3627 | EOF | 
|---|
| 3628 | if { (eval echo configure:3629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 3629 | rm -rf conftest* | 
|---|
| 3630 | eval "ac_cv_func_$ac_func=yes" | 
|---|
| 3631 | else | 
|---|
| 3632 | echo "configure: failed program was:" >&5 | 
|---|
| 3633 | cat conftest.$ac_ext >&5 | 
|---|
| 3634 | rm -rf conftest* | 
|---|
| 3635 | eval "ac_cv_func_$ac_func=no" | 
|---|
| 3636 | fi | 
|---|
| 3637 | rm -f conftest* | 
|---|
| 3638 | fi | 
|---|
| 3639 |  | 
|---|
| 3640 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|---|
| 3641 | echo "$ac_t""yes" 1>&6 | 
|---|
| 3642 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|---|
| 3643 | cat >> confdefs.h <<EOF | 
|---|
| 3644 | #define $ac_tr_func 1 | 
|---|
| 3645 | EOF | 
|---|
| 3646 |  | 
|---|
| 3647 | else | 
|---|
| 3648 | echo "$ac_t""no" 1>&6 | 
|---|
| 3649 | fi | 
|---|
| 3650 | done | 
|---|
| 3651 |  | 
|---|
| 3652 | for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd | 
|---|
| 3653 | do | 
|---|
| 3654 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
|---|
| 3655 | echo "configure:3656: checking for $ac_func" >&5 | 
|---|
| 3656 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
|---|
| 3657 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3658 | else | 
|---|
| 3659 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3660 | #line 3661 "configure" | 
|---|
| 3661 | #include "confdefs.h" | 
|---|
| 3662 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 3663 | which can conflict with char $ac_func(); below.  */ | 
|---|
| 3664 | #include <assert.h> | 
|---|
| 3665 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 3666 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 3667 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 3668 | char $ac_func(); | 
|---|
| 3669 |  | 
|---|
| 3670 | int main() { | 
|---|
| 3671 |  | 
|---|
| 3672 | /* The GNU C library defines this for functions which it implements | 
|---|
| 3673 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 3674 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 3675 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|---|
| 3676 | choke me | 
|---|
| 3677 | #else | 
|---|
| 3678 | $ac_func(); | 
|---|
| 3679 | #endif | 
|---|
| 3680 |  | 
|---|
| 3681 | ; return 0; } | 
|---|
| 3682 | EOF | 
|---|
| 3683 | if { (eval echo configure:3684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 3684 | rm -rf conftest* | 
|---|
| 3685 | eval "ac_cv_func_$ac_func=yes" | 
|---|
| 3686 | else | 
|---|
| 3687 | echo "configure: failed program was:" >&5 | 
|---|
| 3688 | cat conftest.$ac_ext >&5 | 
|---|
| 3689 | rm -rf conftest* | 
|---|
| 3690 | eval "ac_cv_func_$ac_func=no" | 
|---|
| 3691 | fi | 
|---|
| 3692 | rm -f conftest* | 
|---|
| 3693 | fi | 
|---|
| 3694 |  | 
|---|
| 3695 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|---|
| 3696 | echo "$ac_t""yes" 1>&6 | 
|---|
| 3697 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|---|
| 3698 | cat >> confdefs.h <<EOF | 
|---|
| 3699 | #define $ac_tr_func 1 | 
|---|
| 3700 | EOF | 
|---|
| 3701 |  | 
|---|
| 3702 | else | 
|---|
| 3703 | echo "$ac_t""no" 1>&6 | 
|---|
| 3704 | fi | 
|---|
| 3705 | done | 
|---|
| 3706 |  | 
|---|
| 3707 | for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod | 
|---|
| 3708 | do | 
|---|
| 3709 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
|---|
| 3710 | echo "configure:3711: checking for $ac_func" >&5 | 
|---|
| 3711 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
|---|
| 3712 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3713 | else | 
|---|
| 3714 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3715 | #line 3716 "configure" | 
|---|
| 3716 | #include "confdefs.h" | 
|---|
| 3717 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 3718 | which can conflict with char $ac_func(); below.  */ | 
|---|
| 3719 | #include <assert.h> | 
|---|
| 3720 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 3721 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 3722 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 3723 | char $ac_func(); | 
|---|
| 3724 |  | 
|---|
| 3725 | int main() { | 
|---|
| 3726 |  | 
|---|
| 3727 | /* The GNU C library defines this for functions which it implements | 
|---|
| 3728 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 3729 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 3730 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|---|
| 3731 | choke me | 
|---|
| 3732 | #else | 
|---|
| 3733 | $ac_func(); | 
|---|
| 3734 | #endif | 
|---|
| 3735 |  | 
|---|
| 3736 | ; return 0; } | 
|---|
| 3737 | EOF | 
|---|
| 3738 | if { (eval echo configure:3739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 3739 | rm -rf conftest* | 
|---|
| 3740 | eval "ac_cv_func_$ac_func=yes" | 
|---|
| 3741 | else | 
|---|
| 3742 | echo "configure: failed program was:" >&5 | 
|---|
| 3743 | cat conftest.$ac_ext >&5 | 
|---|
| 3744 | rm -rf conftest* | 
|---|
| 3745 | eval "ac_cv_func_$ac_func=no" | 
|---|
| 3746 | fi | 
|---|
| 3747 | rm -f conftest* | 
|---|
| 3748 | fi | 
|---|
| 3749 |  | 
|---|
| 3750 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|---|
| 3751 | echo "$ac_t""yes" 1>&6 | 
|---|
| 3752 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|---|
| 3753 | cat >> confdefs.h <<EOF | 
|---|
| 3754 | #define $ac_tr_func 1 | 
|---|
| 3755 | EOF | 
|---|
| 3756 |  | 
|---|
| 3757 | else | 
|---|
| 3758 | echo "$ac_t""no" 1>&6 | 
|---|
| 3759 | fi | 
|---|
| 3760 | done | 
|---|
| 3761 |  | 
|---|
| 3762 | for ac_func in nl_langinfo setlocale | 
|---|
| 3763 | do | 
|---|
| 3764 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
|---|
| 3765 | echo "configure:3766: checking for $ac_func" >&5 | 
|---|
| 3766 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
|---|
| 3767 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3768 | else | 
|---|
| 3769 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3770 | #line 3771 "configure" | 
|---|
| 3771 | #include "confdefs.h" | 
|---|
| 3772 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 3773 | which can conflict with char $ac_func(); below.  */ | 
|---|
| 3774 | #include <assert.h> | 
|---|
| 3775 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 3776 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 3777 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 3778 | char $ac_func(); | 
|---|
| 3779 |  | 
|---|
| 3780 | int main() { | 
|---|
| 3781 |  | 
|---|
| 3782 | /* The GNU C library defines this for functions which it implements | 
|---|
| 3783 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 3784 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 3785 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|---|
| 3786 | choke me | 
|---|
| 3787 | #else | 
|---|
| 3788 | $ac_func(); | 
|---|
| 3789 | #endif | 
|---|
| 3790 |  | 
|---|
| 3791 | ; return 0; } | 
|---|
| 3792 | EOF | 
|---|
| 3793 | if { (eval echo configure:3794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 3794 | rm -rf conftest* | 
|---|
| 3795 | eval "ac_cv_func_$ac_func=yes" | 
|---|
| 3796 | else | 
|---|
| 3797 | echo "configure: failed program was:" >&5 | 
|---|
| 3798 | cat conftest.$ac_ext >&5 | 
|---|
| 3799 | rm -rf conftest* | 
|---|
| 3800 | eval "ac_cv_func_$ac_func=no" | 
|---|
| 3801 | fi | 
|---|
| 3802 | rm -f conftest* | 
|---|
| 3803 | fi | 
|---|
| 3804 |  | 
|---|
| 3805 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|---|
| 3806 | echo "$ac_t""yes" 1>&6 | 
|---|
| 3807 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|---|
| 3808 | cat >> confdefs.h <<EOF | 
|---|
| 3809 | #define $ac_tr_func 1 | 
|---|
| 3810 | EOF | 
|---|
| 3811 |  | 
|---|
| 3812 | else | 
|---|
| 3813 | echo "$ac_t""no" 1>&6 | 
|---|
| 3814 | fi | 
|---|
| 3815 | done | 
|---|
| 3816 |  | 
|---|
| 3817 | for ac_func in inet_aton inet_addr | 
|---|
| 3818 | do | 
|---|
| 3819 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
|---|
| 3820 | echo "configure:3821: checking for $ac_func" >&5 | 
|---|
| 3821 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
|---|
| 3822 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3823 | else | 
|---|
| 3824 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3825 | #line 3826 "configure" | 
|---|
| 3826 | #include "confdefs.h" | 
|---|
| 3827 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 3828 | which can conflict with char $ac_func(); below.  */ | 
|---|
| 3829 | #include <assert.h> | 
|---|
| 3830 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 3831 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 3832 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 3833 | char $ac_func(); | 
|---|
| 3834 |  | 
|---|
| 3835 | int main() { | 
|---|
| 3836 |  | 
|---|
| 3837 | /* The GNU C library defines this for functions which it implements | 
|---|
| 3838 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 3839 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 3840 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|---|
| 3841 | choke me | 
|---|
| 3842 | #else | 
|---|
| 3843 | $ac_func(); | 
|---|
| 3844 | #endif | 
|---|
| 3845 |  | 
|---|
| 3846 | ; return 0; } | 
|---|
| 3847 | EOF | 
|---|
| 3848 | if { (eval echo configure:3849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 3849 | rm -rf conftest* | 
|---|
| 3850 | eval "ac_cv_func_$ac_func=yes" | 
|---|
| 3851 | else | 
|---|
| 3852 | echo "configure: failed program was:" >&5 | 
|---|
| 3853 | cat conftest.$ac_ext >&5 | 
|---|
| 3854 | rm -rf conftest* | 
|---|
| 3855 | eval "ac_cv_func_$ac_func=no" | 
|---|
| 3856 | fi | 
|---|
| 3857 | rm -f conftest* | 
|---|
| 3858 | fi | 
|---|
| 3859 |  | 
|---|
| 3860 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|---|
| 3861 | echo "$ac_t""yes" 1>&6 | 
|---|
| 3862 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|---|
| 3863 | cat >> confdefs.h <<EOF | 
|---|
| 3864 | #define $ac_tr_func 1 | 
|---|
| 3865 | EOF | 
|---|
| 3866 | break | 
|---|
| 3867 | else | 
|---|
| 3868 | echo "$ac_t""no" 1>&6 | 
|---|
| 3869 | fi | 
|---|
| 3870 | done | 
|---|
| 3871 |  | 
|---|
| 3872 | for ac_func in inet_pton uname inet_ntoa | 
|---|
| 3873 | do | 
|---|
| 3874 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
|---|
| 3875 | echo "configure:3876: checking for $ac_func" >&5 | 
|---|
| 3876 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
|---|
| 3877 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3878 | else | 
|---|
| 3879 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3880 | #line 3881 "configure" | 
|---|
| 3881 | #include "confdefs.h" | 
|---|
| 3882 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 3883 | which can conflict with char $ac_func(); below.  */ | 
|---|
| 3884 | #include <assert.h> | 
|---|
| 3885 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 3886 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 3887 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 3888 | char $ac_func(); | 
|---|
| 3889 |  | 
|---|
| 3890 | int main() { | 
|---|
| 3891 |  | 
|---|
| 3892 | /* The GNU C library defines this for functions which it implements | 
|---|
| 3893 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 3894 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 3895 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|---|
| 3896 | choke me | 
|---|
| 3897 | #else | 
|---|
| 3898 | $ac_func(); | 
|---|
| 3899 | #endif | 
|---|
| 3900 |  | 
|---|
| 3901 | ; return 0; } | 
|---|
| 3902 | EOF | 
|---|
| 3903 | if { (eval echo configure:3904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 3904 | rm -rf conftest* | 
|---|
| 3905 | eval "ac_cv_func_$ac_func=yes" | 
|---|
| 3906 | else | 
|---|
| 3907 | echo "configure: failed program was:" >&5 | 
|---|
| 3908 | cat conftest.$ac_ext >&5 | 
|---|
| 3909 | rm -rf conftest* | 
|---|
| 3910 | eval "ac_cv_func_$ac_func=no" | 
|---|
| 3911 | fi | 
|---|
| 3912 | rm -f conftest* | 
|---|
| 3913 | fi | 
|---|
| 3914 |  | 
|---|
| 3915 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|---|
| 3916 | echo "$ac_t""yes" 1>&6 | 
|---|
| 3917 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|---|
| 3918 | cat >> confdefs.h <<EOF | 
|---|
| 3919 | #define $ac_tr_func 1 | 
|---|
| 3920 | EOF | 
|---|
| 3921 |  | 
|---|
| 3922 | else | 
|---|
| 3923 | echo "$ac_t""no" 1>&6 | 
|---|
| 3924 | fi | 
|---|
| 3925 | done | 
|---|
| 3926 |  | 
|---|
| 3927 | for ac_func in fork execvp pipe sigaction ftruncate | 
|---|
| 3928 | do | 
|---|
| 3929 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
|---|
| 3930 | echo "configure:3931: checking for $ac_func" >&5 | 
|---|
| 3931 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
|---|
| 3932 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3933 | else | 
|---|
| 3934 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3935 | #line 3936 "configure" | 
|---|
| 3936 | #include "confdefs.h" | 
|---|
| 3937 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 3938 | which can conflict with char $ac_func(); below.  */ | 
|---|
| 3939 | #include <assert.h> | 
|---|
| 3940 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 3941 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 3942 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 3943 | char $ac_func(); | 
|---|
| 3944 |  | 
|---|
| 3945 | int main() { | 
|---|
| 3946 |  | 
|---|
| 3947 | /* The GNU C library defines this for functions which it implements | 
|---|
| 3948 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 3949 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 3950 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|---|
| 3951 | choke me | 
|---|
| 3952 | #else | 
|---|
| 3953 | $ac_func(); | 
|---|
| 3954 | #endif | 
|---|
| 3955 |  | 
|---|
| 3956 | ; return 0; } | 
|---|
| 3957 | EOF | 
|---|
| 3958 | if { (eval echo configure:3959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 3959 | rm -rf conftest* | 
|---|
| 3960 | eval "ac_cv_func_$ac_func=yes" | 
|---|
| 3961 | else | 
|---|
| 3962 | echo "configure: failed program was:" >&5 | 
|---|
| 3963 | cat conftest.$ac_ext >&5 | 
|---|
| 3964 | rm -rf conftest* | 
|---|
| 3965 | eval "ac_cv_func_$ac_func=no" | 
|---|
| 3966 | fi | 
|---|
| 3967 | rm -f conftest* | 
|---|
| 3968 | fi | 
|---|
| 3969 |  | 
|---|
| 3970 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|---|
| 3971 | echo "$ac_t""yes" 1>&6 | 
|---|
| 3972 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|---|
| 3973 | cat >> confdefs.h <<EOF | 
|---|
| 3974 | #define $ac_tr_func 1 | 
|---|
| 3975 | EOF | 
|---|
| 3976 |  | 
|---|
| 3977 | else | 
|---|
| 3978 | echo "$ac_t""no" 1>&6 | 
|---|
| 3979 | fi | 
|---|
| 3980 | done | 
|---|
| 3981 |  | 
|---|
| 3982 | for ac_hdr in execinfo.h unistd.h dlfcn.h | 
|---|
| 3983 | do | 
|---|
| 3984 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 
|---|
| 3985 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 
|---|
| 3986 | echo "configure:3987: checking for $ac_hdr" >&5 | 
|---|
| 3987 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 
|---|
| 3988 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 3989 | else | 
|---|
| 3990 | cat > conftest.$ac_ext <<EOF | 
|---|
| 3991 | #include <sys/types.h> | 
|---|
| 3992 | #line 3993 "configure" | 
|---|
| 3993 | #include "confdefs.h" | 
|---|
| 3994 | #include <$ac_hdr> | 
|---|
| 3995 | EOF | 
|---|
| 3996 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 3997 | { (eval echo configure:3998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 3998 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 3999 | if test -z "$ac_err"; then | 
|---|
| 4000 | rm -rf conftest* | 
|---|
| 4001 | eval "ac_cv_header_$ac_safe=yes" | 
|---|
| 4002 | else | 
|---|
| 4003 | echo "$ac_err" >&5 | 
|---|
| 4004 | echo "configure: failed program was:" >&5 | 
|---|
| 4005 | cat conftest.$ac_ext >&5 | 
|---|
| 4006 | rm -rf conftest* | 
|---|
| 4007 | eval "ac_cv_header_$ac_safe=no" | 
|---|
| 4008 | fi | 
|---|
| 4009 | rm -f conftest* | 
|---|
| 4010 | fi | 
|---|
| 4011 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
|---|
| 4012 | echo "$ac_t""yes" 1>&6 | 
|---|
| 4013 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 
|---|
| 4014 | cat >> confdefs.h <<EOF | 
|---|
| 4015 | #define $ac_tr_hdr 1 | 
|---|
| 4016 | EOF | 
|---|
| 4017 |  | 
|---|
| 4018 | else | 
|---|
| 4019 | echo "$ac_t""no" 1>&6 | 
|---|
| 4020 | fi | 
|---|
| 4021 | done | 
|---|
| 4022 |  | 
|---|
| 4023 | echo $ac_n "checking for backtrace""... $ac_c" 1>&6 | 
|---|
| 4024 | echo "configure:4025: checking for backtrace" >&5 | 
|---|
| 4025 | if eval "test \"`echo '$''{'ac_cv_func_backtrace'+set}'`\" = set"; then | 
|---|
| 4026 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4027 | else | 
|---|
| 4028 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4029 | #line 4030 "configure" | 
|---|
| 4030 | #include "confdefs.h" | 
|---|
| 4031 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 4032 | which can conflict with char backtrace(); below.  */ | 
|---|
| 4033 | #include <assert.h> | 
|---|
| 4034 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 4035 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 4036 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 4037 | char backtrace(); | 
|---|
| 4038 |  | 
|---|
| 4039 | int main() { | 
|---|
| 4040 |  | 
|---|
| 4041 | /* The GNU C library defines this for functions which it implements | 
|---|
| 4042 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 4043 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 4044 | #if defined (__stub_backtrace) || defined (__stub___backtrace) | 
|---|
| 4045 | choke me | 
|---|
| 4046 | #else | 
|---|
| 4047 | backtrace(); | 
|---|
| 4048 | #endif | 
|---|
| 4049 |  | 
|---|
| 4050 | ; return 0; } | 
|---|
| 4051 | EOF | 
|---|
| 4052 | if { (eval echo configure:4053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4053 | rm -rf conftest* | 
|---|
| 4054 | eval "ac_cv_func_backtrace=yes" | 
|---|
| 4055 | else | 
|---|
| 4056 | echo "configure: failed program was:" >&5 | 
|---|
| 4057 | cat conftest.$ac_ext >&5 | 
|---|
| 4058 | rm -rf conftest* | 
|---|
| 4059 | eval "ac_cv_func_backtrace=no" | 
|---|
| 4060 | fi | 
|---|
| 4061 | rm -f conftest* | 
|---|
| 4062 | fi | 
|---|
| 4063 |  | 
|---|
| 4064 | if eval "test \"`echo '$ac_cv_func_'backtrace`\" = yes"; then | 
|---|
| 4065 | echo "$ac_t""yes" 1>&6 | 
|---|
| 4066 |  | 
|---|
| 4067 | case "$host" in | 
|---|
| 4068 | ia64-*-linux*) | 
|---|
| 4069 | # Has broken backtrace() | 
|---|
| 4070 | ;; | 
|---|
| 4071 | *) | 
|---|
| 4072 | cat >> confdefs.h <<\EOF | 
|---|
| 4073 | #define HAVE_BACKTRACE 1 | 
|---|
| 4074 | EOF | 
|---|
| 4075 |  | 
|---|
| 4076 | ;; | 
|---|
| 4077 | esac | 
|---|
| 4078 |  | 
|---|
| 4079 | else | 
|---|
| 4080 | echo "$ac_t""no" 1>&6 | 
|---|
| 4081 |  | 
|---|
| 4082 | case "$host" in | 
|---|
| 4083 | *mingw*) | 
|---|
| 4084 | # Has backtrace() defined in libgcj itself | 
|---|
| 4085 | cat >> confdefs.h <<\EOF | 
|---|
| 4086 | #define HAVE_BACKTRACE 1 | 
|---|
| 4087 | EOF | 
|---|
| 4088 |  | 
|---|
| 4089 | ;; | 
|---|
| 4090 | esac | 
|---|
| 4091 |  | 
|---|
| 4092 | fi | 
|---|
| 4093 |  | 
|---|
| 4094 |  | 
|---|
| 4095 | echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6 | 
|---|
| 4096 | echo "configure:4097: checking for dladdr in -ldl" >&5 | 
|---|
| 4097 | ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'` | 
|---|
| 4098 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|---|
| 4099 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4100 | else | 
|---|
| 4101 | ac_save_LIBS="$LIBS" | 
|---|
| 4102 | LIBS="-ldl  $LIBS" | 
|---|
| 4103 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4104 | #line 4105 "configure" | 
|---|
| 4105 | #include "confdefs.h" | 
|---|
| 4106 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 4107 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 4108 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 4109 | char dladdr(); | 
|---|
| 4110 |  | 
|---|
| 4111 | int main() { | 
|---|
| 4112 | dladdr() | 
|---|
| 4113 | ; return 0; } | 
|---|
| 4114 | EOF | 
|---|
| 4115 | if { (eval echo configure:4116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4116 | rm -rf conftest* | 
|---|
| 4117 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|---|
| 4118 | else | 
|---|
| 4119 | echo "configure: failed program was:" >&5 | 
|---|
| 4120 | cat conftest.$ac_ext >&5 | 
|---|
| 4121 | rm -rf conftest* | 
|---|
| 4122 | eval "ac_cv_lib_$ac_lib_var=no" | 
|---|
| 4123 | fi | 
|---|
| 4124 | rm -f conftest* | 
|---|
| 4125 | LIBS="$ac_save_LIBS" | 
|---|
| 4126 |  | 
|---|
| 4127 | fi | 
|---|
| 4128 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|---|
| 4129 | echo "$ac_t""yes" 1>&6 | 
|---|
| 4130 |  | 
|---|
| 4131 | cat >> confdefs.h <<\EOF | 
|---|
| 4132 | #define HAVE_DLADDR 1 | 
|---|
| 4133 | EOF | 
|---|
| 4134 |  | 
|---|
| 4135 | else | 
|---|
| 4136 | echo "$ac_t""no" 1>&6 | 
|---|
| 4137 | fi | 
|---|
| 4138 |  | 
|---|
| 4139 | if test x"$build" = x"$host"; then | 
|---|
| 4140 | for ac_file in /proc/self/exe | 
|---|
| 4141 | do | 
|---|
| 4142 |  | 
|---|
| 4143 | ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'` | 
|---|
| 4144 | echo $ac_n "checking for $ac_file""... $ac_c" 1>&6 | 
|---|
| 4145 | echo "configure:4146: checking for $ac_file" >&5 | 
|---|
| 4146 | if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then | 
|---|
| 4147 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4148 | else | 
|---|
| 4149 | if test "$cross_compiling" = yes; then | 
|---|
| 4150 | { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; } | 
|---|
| 4151 | else | 
|---|
| 4152 | if test -r $ac_file; then | 
|---|
| 4153 | eval "ac_cv_file_$ac_safe=yes" | 
|---|
| 4154 | else | 
|---|
| 4155 | eval "ac_cv_file_$ac_safe=no" | 
|---|
| 4156 | fi | 
|---|
| 4157 | fi | 
|---|
| 4158 | fi | 
|---|
| 4159 | if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then | 
|---|
| 4160 | echo "$ac_t""yes" 1>&6 | 
|---|
| 4161 | ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 
|---|
| 4162 | cat >> confdefs.h <<EOF | 
|---|
| 4163 | #define $ac_tr_file 1 | 
|---|
| 4164 | EOF | 
|---|
| 4165 |  | 
|---|
| 4166 | cat >> confdefs.h <<\EOF | 
|---|
| 4167 | #define HAVE_PROC_SELF_EXE 1 | 
|---|
| 4168 | EOF | 
|---|
| 4169 |  | 
|---|
| 4170 | else | 
|---|
| 4171 | echo "$ac_t""no" 1>&6 | 
|---|
| 4172 |  | 
|---|
| 4173 | fi | 
|---|
| 4174 | done | 
|---|
| 4175 |  | 
|---|
| 4176 | else | 
|---|
| 4177 | case $host in | 
|---|
| 4178 | *-linux*) | 
|---|
| 4179 | cat >> confdefs.h <<\EOF | 
|---|
| 4180 | #define HAVE_PROC_SELF_EXE 1 | 
|---|
| 4181 | EOF | 
|---|
| 4182 |  | 
|---|
| 4183 | ;; | 
|---|
| 4184 | esac | 
|---|
| 4185 | fi | 
|---|
| 4186 |  | 
|---|
| 4187 |  | 
|---|
| 4188 |  | 
|---|
| 4189 | am_cv_lib_iconv_ldpath= | 
|---|
| 4190 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | 
|---|
| 4191 | if test "${with_libiconv_prefix+set}" = set; then | 
|---|
| 4192 | withval="$with_libiconv_prefix" | 
|---|
| 4193 |  | 
|---|
| 4194 | for dir in `echo "$withval" | tr : ' '`; do | 
|---|
| 4195 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | 
|---|
| 4196 | if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi | 
|---|
| 4197 | done | 
|---|
| 4198 |  | 
|---|
| 4199 | fi | 
|---|
| 4200 |  | 
|---|
| 4201 |  | 
|---|
| 4202 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 | 
|---|
| 4203 | echo "configure:4204: checking for iconv" >&5 | 
|---|
| 4204 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then | 
|---|
| 4205 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4206 | else | 
|---|
| 4207 |  | 
|---|
| 4208 | am_cv_func_iconv="no, consider installing GNU libiconv" | 
|---|
| 4209 | am_cv_lib_iconv=no | 
|---|
| 4210 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4211 | #line 4212 "configure" | 
|---|
| 4212 | #include "confdefs.h" | 
|---|
| 4213 | #include <stdlib.h> | 
|---|
| 4214 | #include <iconv.h> | 
|---|
| 4215 | int main() { | 
|---|
| 4216 | iconv_t cd = iconv_open("",""); | 
|---|
| 4217 | iconv(cd,NULL,NULL,NULL,NULL); | 
|---|
| 4218 | iconv_close(cd); | 
|---|
| 4219 | ; return 0; } | 
|---|
| 4220 | EOF | 
|---|
| 4221 | if { (eval echo configure:4222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4222 | rm -rf conftest* | 
|---|
| 4223 | am_cv_func_iconv=yes | 
|---|
| 4224 | else | 
|---|
| 4225 | echo "configure: failed program was:" >&5 | 
|---|
| 4226 | cat conftest.$ac_ext >&5 | 
|---|
| 4227 | fi | 
|---|
| 4228 | rm -f conftest* | 
|---|
| 4229 | if test "$am_cv_func_iconv" != yes; then | 
|---|
| 4230 | am_save_LIBS="$LIBS" | 
|---|
| 4231 | LIBS="$LIBS $am_cv_libiconv_ldpath -liconv" | 
|---|
| 4232 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4233 | #line 4234 "configure" | 
|---|
| 4234 | #include "confdefs.h" | 
|---|
| 4235 | #include <stdlib.h> | 
|---|
| 4236 | #include <iconv.h> | 
|---|
| 4237 | int main() { | 
|---|
| 4238 | iconv_t cd = iconv_open("",""); | 
|---|
| 4239 | iconv(cd,NULL,NULL,NULL,NULL); | 
|---|
| 4240 | iconv_close(cd); | 
|---|
| 4241 | ; return 0; } | 
|---|
| 4242 | EOF | 
|---|
| 4243 | if { (eval echo configure:4244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4244 | rm -rf conftest* | 
|---|
| 4245 | am_cv_lib_iconv=yes | 
|---|
| 4246 | am_cv_func_iconv=yes | 
|---|
| 4247 | else | 
|---|
| 4248 | echo "configure: failed program was:" >&5 | 
|---|
| 4249 | cat conftest.$ac_ext >&5 | 
|---|
| 4250 | fi | 
|---|
| 4251 | rm -f conftest* | 
|---|
| 4252 | LIBS="$am_save_LIBS" | 
|---|
| 4253 | fi | 
|---|
| 4254 |  | 
|---|
| 4255 | fi | 
|---|
| 4256 |  | 
|---|
| 4257 | echo "$ac_t""$am_cv_func_iconv" 1>&6 | 
|---|
| 4258 | if test "$am_cv_func_iconv" = yes; then | 
|---|
| 4259 | cat >> confdefs.h <<\EOF | 
|---|
| 4260 | #define HAVE_ICONV 1 | 
|---|
| 4261 | EOF | 
|---|
| 4262 |  | 
|---|
| 4263 | echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6 | 
|---|
| 4264 | echo "configure:4265: checking for iconv declaration" >&5 | 
|---|
| 4265 | if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then | 
|---|
| 4266 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4267 | else | 
|---|
| 4268 |  | 
|---|
| 4269 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4270 | #line 4271 "configure" | 
|---|
| 4271 | #include "confdefs.h" | 
|---|
| 4272 |  | 
|---|
| 4273 | #include <stdlib.h> | 
|---|
| 4274 | #include <iconv.h> | 
|---|
| 4275 | extern | 
|---|
| 4276 | #ifdef __cplusplus | 
|---|
| 4277 | "C" | 
|---|
| 4278 | #endif | 
|---|
| 4279 | #if defined(__STDC__) || defined(__cplusplus) | 
|---|
| 4280 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | 
|---|
| 4281 | #else | 
|---|
| 4282 | size_t iconv(); | 
|---|
| 4283 | #endif | 
|---|
| 4284 |  | 
|---|
| 4285 | int main() { | 
|---|
| 4286 |  | 
|---|
| 4287 | ; return 0; } | 
|---|
| 4288 | EOF | 
|---|
| 4289 | if { (eval echo configure:4290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 4290 | rm -rf conftest* | 
|---|
| 4291 | am_cv_proto_iconv_arg1="" | 
|---|
| 4292 | else | 
|---|
| 4293 | echo "configure: failed program was:" >&5 | 
|---|
| 4294 | cat conftest.$ac_ext >&5 | 
|---|
| 4295 | rm -rf conftest* | 
|---|
| 4296 | am_cv_proto_iconv_arg1="const" | 
|---|
| 4297 | fi | 
|---|
| 4298 | rm -f conftest* | 
|---|
| 4299 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" | 
|---|
| 4300 | fi | 
|---|
| 4301 |  | 
|---|
| 4302 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | 
|---|
| 4303 | echo "$ac_t""${ac_t:- | 
|---|
| 4304 | }$am_cv_proto_iconv" 1>&6 | 
|---|
| 4305 | cat >> confdefs.h <<EOF | 
|---|
| 4306 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | 
|---|
| 4307 | EOF | 
|---|
| 4308 |  | 
|---|
| 4309 | fi | 
|---|
| 4310 | LIBICONV= | 
|---|
| 4311 | if test "$am_cv_lib_iconv" = yes; then | 
|---|
| 4312 | LIBICONV="$am_cv_lib_iconv_ldpath -liconv" | 
|---|
| 4313 | fi | 
|---|
| 4314 |  | 
|---|
| 4315 |  | 
|---|
| 4316 | if test $ac_cv_header_locale_h = yes; then | 
|---|
| 4317 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 | 
|---|
| 4318 | echo "configure:4319: checking for LC_MESSAGES" >&5 | 
|---|
| 4319 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then | 
|---|
| 4320 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4321 | else | 
|---|
| 4322 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4323 | #line 4324 "configure" | 
|---|
| 4324 | #include "confdefs.h" | 
|---|
| 4325 | #include <locale.h> | 
|---|
| 4326 | int main() { | 
|---|
| 4327 | return LC_MESSAGES | 
|---|
| 4328 | ; return 0; } | 
|---|
| 4329 | EOF | 
|---|
| 4330 | if { (eval echo configure:4331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4331 | rm -rf conftest* | 
|---|
| 4332 | am_cv_val_LC_MESSAGES=yes | 
|---|
| 4333 | else | 
|---|
| 4334 | echo "configure: failed program was:" >&5 | 
|---|
| 4335 | cat conftest.$ac_ext >&5 | 
|---|
| 4336 | rm -rf conftest* | 
|---|
| 4337 | am_cv_val_LC_MESSAGES=no | 
|---|
| 4338 | fi | 
|---|
| 4339 | rm -f conftest* | 
|---|
| 4340 | fi | 
|---|
| 4341 |  | 
|---|
| 4342 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 | 
|---|
| 4343 | if test $am_cv_val_LC_MESSAGES = yes; then | 
|---|
| 4344 | cat >> confdefs.h <<\EOF | 
|---|
| 4345 | #define HAVE_LC_MESSAGES 1 | 
|---|
| 4346 | EOF | 
|---|
| 4347 |  | 
|---|
| 4348 | fi | 
|---|
| 4349 | fi | 
|---|
| 4350 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 | 
|---|
| 4351 | echo "configure:4352: checking whether struct tm is in sys/time.h or time.h" >&5 | 
|---|
| 4352 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then | 
|---|
| 4353 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4354 | else | 
|---|
| 4355 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4356 | #line 4357 "configure" | 
|---|
| 4357 | #include "confdefs.h" | 
|---|
| 4358 | #include <sys/types.h> | 
|---|
| 4359 | #include <time.h> | 
|---|
| 4360 | int main() { | 
|---|
| 4361 | struct tm *tp; tp->tm_sec; | 
|---|
| 4362 | ; return 0; } | 
|---|
| 4363 | EOF | 
|---|
| 4364 | if { (eval echo configure:4365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 4365 | rm -rf conftest* | 
|---|
| 4366 | ac_cv_struct_tm=time.h | 
|---|
| 4367 | else | 
|---|
| 4368 | echo "configure: failed program was:" >&5 | 
|---|
| 4369 | cat conftest.$ac_ext >&5 | 
|---|
| 4370 | rm -rf conftest* | 
|---|
| 4371 | ac_cv_struct_tm=sys/time.h | 
|---|
| 4372 | fi | 
|---|
| 4373 | rm -f conftest* | 
|---|
| 4374 | fi | 
|---|
| 4375 |  | 
|---|
| 4376 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 | 
|---|
| 4377 | if test $ac_cv_struct_tm = sys/time.h; then | 
|---|
| 4378 | cat >> confdefs.h <<\EOF | 
|---|
| 4379 | #define TM_IN_SYS_TIME 1 | 
|---|
| 4380 | EOF | 
|---|
| 4381 |  | 
|---|
| 4382 | fi | 
|---|
| 4383 |  | 
|---|
| 4384 | echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 | 
|---|
| 4385 | echo "configure:4386: checking for tm_zone in struct tm" >&5 | 
|---|
| 4386 | if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then | 
|---|
| 4387 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4388 | else | 
|---|
| 4389 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4390 | #line 4391 "configure" | 
|---|
| 4391 | #include "confdefs.h" | 
|---|
| 4392 | #include <sys/types.h> | 
|---|
| 4393 | #include <$ac_cv_struct_tm> | 
|---|
| 4394 | int main() { | 
|---|
| 4395 | struct tm tm; tm.tm_zone; | 
|---|
| 4396 | ; return 0; } | 
|---|
| 4397 | EOF | 
|---|
| 4398 | if { (eval echo configure:4399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 4399 | rm -rf conftest* | 
|---|
| 4400 | ac_cv_struct_tm_zone=yes | 
|---|
| 4401 | else | 
|---|
| 4402 | echo "configure: failed program was:" >&5 | 
|---|
| 4403 | cat conftest.$ac_ext >&5 | 
|---|
| 4404 | rm -rf conftest* | 
|---|
| 4405 | ac_cv_struct_tm_zone=no | 
|---|
| 4406 | fi | 
|---|
| 4407 | rm -f conftest* | 
|---|
| 4408 | fi | 
|---|
| 4409 |  | 
|---|
| 4410 | echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 | 
|---|
| 4411 | if test "$ac_cv_struct_tm_zone" = yes; then | 
|---|
| 4412 | cat >> confdefs.h <<\EOF | 
|---|
| 4413 | #define HAVE_TM_ZONE 1 | 
|---|
| 4414 | EOF | 
|---|
| 4415 |  | 
|---|
| 4416 | else | 
|---|
| 4417 | echo $ac_n "checking for tzname""... $ac_c" 1>&6 | 
|---|
| 4418 | echo "configure:4419: checking for tzname" >&5 | 
|---|
| 4419 | if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then | 
|---|
| 4420 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4421 | else | 
|---|
| 4422 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4423 | #line 4424 "configure" | 
|---|
| 4424 | #include "confdefs.h" | 
|---|
| 4425 | #include <time.h> | 
|---|
| 4426 | #ifndef tzname /* For SGI.  */ | 
|---|
| 4427 | extern char *tzname[]; /* RS6000 and others reject char **tzname.  */ | 
|---|
| 4428 | #endif | 
|---|
| 4429 | int main() { | 
|---|
| 4430 | atoi(*tzname); | 
|---|
| 4431 | ; return 0; } | 
|---|
| 4432 | EOF | 
|---|
| 4433 | if { (eval echo configure:4434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4434 | rm -rf conftest* | 
|---|
| 4435 | ac_cv_var_tzname=yes | 
|---|
| 4436 | else | 
|---|
| 4437 | echo "configure: failed program was:" >&5 | 
|---|
| 4438 | cat conftest.$ac_ext >&5 | 
|---|
| 4439 | rm -rf conftest* | 
|---|
| 4440 | ac_cv_var_tzname=no | 
|---|
| 4441 | fi | 
|---|
| 4442 | rm -f conftest* | 
|---|
| 4443 | fi | 
|---|
| 4444 |  | 
|---|
| 4445 | echo "$ac_t""$ac_cv_var_tzname" 1>&6 | 
|---|
| 4446 | if test $ac_cv_var_tzname = yes; then | 
|---|
| 4447 | cat >> confdefs.h <<\EOF | 
|---|
| 4448 | #define HAVE_TZNAME 1 | 
|---|
| 4449 | EOF | 
|---|
| 4450 |  | 
|---|
| 4451 | fi | 
|---|
| 4452 | fi | 
|---|
| 4453 |  | 
|---|
| 4454 |  | 
|---|
| 4455 | for ac_func in gethostbyname_r | 
|---|
| 4456 | do | 
|---|
| 4457 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
|---|
| 4458 | echo "configure:4459: checking for $ac_func" >&5 | 
|---|
| 4459 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
|---|
| 4460 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4461 | else | 
|---|
| 4462 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4463 | #line 4464 "configure" | 
|---|
| 4464 | #include "confdefs.h" | 
|---|
| 4465 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 4466 | which can conflict with char $ac_func(); below.  */ | 
|---|
| 4467 | #include <assert.h> | 
|---|
| 4468 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 4469 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 4470 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 4471 | char $ac_func(); | 
|---|
| 4472 |  | 
|---|
| 4473 | int main() { | 
|---|
| 4474 |  | 
|---|
| 4475 | /* The GNU C library defines this for functions which it implements | 
|---|
| 4476 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 4477 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 4478 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|---|
| 4479 | choke me | 
|---|
| 4480 | #else | 
|---|
| 4481 | $ac_func(); | 
|---|
| 4482 | #endif | 
|---|
| 4483 |  | 
|---|
| 4484 | ; return 0; } | 
|---|
| 4485 | EOF | 
|---|
| 4486 | if { (eval echo configure:4487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4487 | rm -rf conftest* | 
|---|
| 4488 | eval "ac_cv_func_$ac_func=yes" | 
|---|
| 4489 | else | 
|---|
| 4490 | echo "configure: failed program was:" >&5 | 
|---|
| 4491 | cat conftest.$ac_ext >&5 | 
|---|
| 4492 | rm -rf conftest* | 
|---|
| 4493 | eval "ac_cv_func_$ac_func=no" | 
|---|
| 4494 | fi | 
|---|
| 4495 | rm -f conftest* | 
|---|
| 4496 | fi | 
|---|
| 4497 |  | 
|---|
| 4498 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|---|
| 4499 | echo "$ac_t""yes" 1>&6 | 
|---|
| 4500 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|---|
| 4501 | cat >> confdefs.h <<EOF | 
|---|
| 4502 | #define $ac_tr_func 1 | 
|---|
| 4503 | EOF | 
|---|
| 4504 |  | 
|---|
| 4505 | cat >> confdefs.h <<\EOF | 
|---|
| 4506 | #define HAVE_GETHOSTBYNAME_R 1 | 
|---|
| 4507 | EOF | 
|---|
| 4508 |  | 
|---|
| 4509 | # There are two different kinds of gethostbyname_r. | 
|---|
| 4510 | # We look for the one that returns `int'. | 
|---|
| 4511 | # Hopefully this check is robust enough. | 
|---|
| 4512 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4513 | #line 4514 "configure" | 
|---|
| 4514 | #include "confdefs.h" | 
|---|
| 4515 | #include <netdb.h> | 
|---|
| 4516 | EOF | 
|---|
| 4517 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|---|
| 4518 | egrep "int.*gethostbyname_r" >/dev/null 2>&1; then | 
|---|
| 4519 | rm -rf conftest* | 
|---|
| 4520 |  | 
|---|
| 4521 | cat >> confdefs.h <<\EOF | 
|---|
| 4522 | #define GETHOSTBYNAME_R_RETURNS_INT 1 | 
|---|
| 4523 | EOF | 
|---|
| 4524 |  | 
|---|
| 4525 | fi | 
|---|
| 4526 | rm -f conftest* | 
|---|
| 4527 |  | 
|---|
| 4528 |  | 
|---|
| 4529 | case " $GCINCS " in | 
|---|
| 4530 | *" -D_REENTRANT "*) ;; | 
|---|
| 4531 | *) | 
|---|
| 4532 | echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6 | 
|---|
| 4533 | echo "configure:4534: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5 | 
|---|
| 4534 | if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then | 
|---|
| 4535 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4536 | else | 
|---|
| 4537 |  | 
|---|
| 4538 | ac_ext=C | 
|---|
| 4539 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
|---|
| 4540 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|---|
| 4541 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
|---|
| 4542 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
|---|
| 4543 | cross_compiling=$ac_cv_prog_cxx_cross | 
|---|
| 4544 |  | 
|---|
| 4545 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4546 | #line 4547 "configure" | 
|---|
| 4547 | #include "confdefs.h" | 
|---|
| 4548 | #include <netdb.h> | 
|---|
| 4549 | int main() { | 
|---|
| 4550 | gethostbyname_r("", 0, 0); | 
|---|
| 4551 | ; return 0; } | 
|---|
| 4552 | EOF | 
|---|
| 4553 | if { (eval echo configure:4554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 4554 | rm -rf conftest* | 
|---|
| 4555 | libjava_cv_gethostbyname_r_needs_reentrant=no | 
|---|
| 4556 | else | 
|---|
| 4557 | echo "configure: failed program was:" >&5 | 
|---|
| 4558 | cat conftest.$ac_ext >&5 | 
|---|
| 4559 | rm -rf conftest* | 
|---|
| 4560 | CPPFLAGS_SAVE="$CPPFLAGS" | 
|---|
| 4561 | CPPFLAGS="$CPPFLAGS -D_REENTRANT" | 
|---|
| 4562 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4563 | #line 4564 "configure" | 
|---|
| 4564 | #include "confdefs.h" | 
|---|
| 4565 | #include <netdb.h> | 
|---|
| 4566 | int main() { | 
|---|
| 4567 | gethostbyname_r("", 0, 0); | 
|---|
| 4568 | ; return 0; } | 
|---|
| 4569 | EOF | 
|---|
| 4570 | if { (eval echo configure:4571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 4571 | rm -rf conftest* | 
|---|
| 4572 | libjava_cv_gethostbyname_r_needs_reentrant=yes | 
|---|
| 4573 | else | 
|---|
| 4574 | echo "configure: failed program was:" >&5 | 
|---|
| 4575 | cat conftest.$ac_ext >&5 | 
|---|
| 4576 | rm -rf conftest* | 
|---|
| 4577 | libjava_cv_gethostbyname_r_needs_reentrant=fail | 
|---|
| 4578 | fi | 
|---|
| 4579 | rm -f conftest* | 
|---|
| 4580 | CPPFLAGS="$CPPFLAGS_SAVE" | 
|---|
| 4581 |  | 
|---|
| 4582 | fi | 
|---|
| 4583 | rm -f conftest* | 
|---|
| 4584 | ac_ext=c | 
|---|
| 4585 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
|---|
| 4586 | ac_cpp='$CPP $CPPFLAGS' | 
|---|
| 4587 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
|---|
| 4588 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
|---|
| 4589 | cross_compiling=$ac_cv_prog_cc_cross | 
|---|
| 4590 |  | 
|---|
| 4591 |  | 
|---|
| 4592 | fi | 
|---|
| 4593 |  | 
|---|
| 4594 | echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6 | 
|---|
| 4595 | if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then | 
|---|
| 4596 | cat >> confdefs.h <<\EOF | 
|---|
| 4597 | #define _REENTRANT 1 | 
|---|
| 4598 | EOF | 
|---|
| 4599 |  | 
|---|
| 4600 | fi | 
|---|
| 4601 | ;; | 
|---|
| 4602 | esac | 
|---|
| 4603 |  | 
|---|
| 4604 | echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6 | 
|---|
| 4605 | echo "configure:4606: checking for struct hostent_data" >&5 | 
|---|
| 4606 | if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then | 
|---|
| 4607 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4608 | else | 
|---|
| 4609 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4610 | #line 4611 "configure" | 
|---|
| 4611 | #include "confdefs.h" | 
|---|
| 4612 |  | 
|---|
| 4613 | #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT) | 
|---|
| 4614 | # define _REENTRANT 1 | 
|---|
| 4615 | #endif | 
|---|
| 4616 | #include <netdb.h> | 
|---|
| 4617 | int main() { | 
|---|
| 4618 | struct hostent_data data; | 
|---|
| 4619 | ; return 0; } | 
|---|
| 4620 | EOF | 
|---|
| 4621 | if { (eval echo configure:4622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 4622 | rm -rf conftest* | 
|---|
| 4623 | libjava_cv_struct_hostent_data=yes | 
|---|
| 4624 | else | 
|---|
| 4625 | echo "configure: failed program was:" >&5 | 
|---|
| 4626 | cat conftest.$ac_ext >&5 | 
|---|
| 4627 | rm -rf conftest* | 
|---|
| 4628 | libjava_cv_struct_hostent_data=no | 
|---|
| 4629 | fi | 
|---|
| 4630 | rm -f conftest* | 
|---|
| 4631 | fi | 
|---|
| 4632 |  | 
|---|
| 4633 | echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6 | 
|---|
| 4634 | if test "x$libjava_cv_struct_hostent_data" = xyes; then | 
|---|
| 4635 | cat >> confdefs.h <<\EOF | 
|---|
| 4636 | #define HAVE_STRUCT_HOSTENT_DATA 1 | 
|---|
| 4637 | EOF | 
|---|
| 4638 |  | 
|---|
| 4639 | fi | 
|---|
| 4640 |  | 
|---|
| 4641 | else | 
|---|
| 4642 | echo "$ac_t""no" 1>&6 | 
|---|
| 4643 | fi | 
|---|
| 4644 | done | 
|---|
| 4645 |  | 
|---|
| 4646 |  | 
|---|
| 4647 | # FIXME: libjava source code expects to find a prototype for | 
|---|
| 4648 | # gethostbyaddr_r in netdb.h.  The outer check ensures that | 
|---|
| 4649 | # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails | 
|---|
| 4650 | # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C | 
|---|
| 4651 | # linkage check is enough, yet C++ code requires proper prototypes.) | 
|---|
| 4652 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4653 | #line 4654 "configure" | 
|---|
| 4654 | #include "confdefs.h" | 
|---|
| 4655 | #include <netdb.h> | 
|---|
| 4656 | EOF | 
|---|
| 4657 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|---|
| 4658 | egrep "gethostbyaddr_r" >/dev/null 2>&1; then | 
|---|
| 4659 | rm -rf conftest* | 
|---|
| 4660 |  | 
|---|
| 4661 | for ac_func in gethostbyaddr_r | 
|---|
| 4662 | do | 
|---|
| 4663 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
|---|
| 4664 | echo "configure:4665: checking for $ac_func" >&5 | 
|---|
| 4665 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
|---|
| 4666 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4667 | else | 
|---|
| 4668 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4669 | #line 4670 "configure" | 
|---|
| 4670 | #include "confdefs.h" | 
|---|
| 4671 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 4672 | which can conflict with char $ac_func(); below.  */ | 
|---|
| 4673 | #include <assert.h> | 
|---|
| 4674 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 4675 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 4676 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 4677 | char $ac_func(); | 
|---|
| 4678 |  | 
|---|
| 4679 | int main() { | 
|---|
| 4680 |  | 
|---|
| 4681 | /* The GNU C library defines this for functions which it implements | 
|---|
| 4682 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 4683 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 4684 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|---|
| 4685 | choke me | 
|---|
| 4686 | #else | 
|---|
| 4687 | $ac_func(); | 
|---|
| 4688 | #endif | 
|---|
| 4689 |  | 
|---|
| 4690 | ; return 0; } | 
|---|
| 4691 | EOF | 
|---|
| 4692 | if { (eval echo configure:4693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4693 | rm -rf conftest* | 
|---|
| 4694 | eval "ac_cv_func_$ac_func=yes" | 
|---|
| 4695 | else | 
|---|
| 4696 | echo "configure: failed program was:" >&5 | 
|---|
| 4697 | cat conftest.$ac_ext >&5 | 
|---|
| 4698 | rm -rf conftest* | 
|---|
| 4699 | eval "ac_cv_func_$ac_func=no" | 
|---|
| 4700 | fi | 
|---|
| 4701 | rm -f conftest* | 
|---|
| 4702 | fi | 
|---|
| 4703 |  | 
|---|
| 4704 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|---|
| 4705 | echo "$ac_t""yes" 1>&6 | 
|---|
| 4706 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|---|
| 4707 | cat >> confdefs.h <<EOF | 
|---|
| 4708 | #define $ac_tr_func 1 | 
|---|
| 4709 | EOF | 
|---|
| 4710 |  | 
|---|
| 4711 | cat >> confdefs.h <<\EOF | 
|---|
| 4712 | #define HAVE_GETHOSTBYADDR_R 1 | 
|---|
| 4713 | EOF | 
|---|
| 4714 |  | 
|---|
| 4715 | # There are two different kinds of gethostbyaddr_r. | 
|---|
| 4716 | # We look for the one that returns `int'. | 
|---|
| 4717 | # Hopefully this check is robust enough. | 
|---|
| 4718 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4719 | #line 4720 "configure" | 
|---|
| 4720 | #include "confdefs.h" | 
|---|
| 4721 | #include <netdb.h> | 
|---|
| 4722 | EOF | 
|---|
| 4723 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|---|
| 4724 | egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then | 
|---|
| 4725 | rm -rf conftest* | 
|---|
| 4726 |  | 
|---|
| 4727 | cat >> confdefs.h <<\EOF | 
|---|
| 4728 | #define GETHOSTBYADDR_R_RETURNS_INT 1 | 
|---|
| 4729 | EOF | 
|---|
| 4730 |  | 
|---|
| 4731 | fi | 
|---|
| 4732 | rm -f conftest* | 
|---|
| 4733 |  | 
|---|
| 4734 | else | 
|---|
| 4735 | echo "$ac_t""no" 1>&6 | 
|---|
| 4736 | fi | 
|---|
| 4737 | done | 
|---|
| 4738 |  | 
|---|
| 4739 | fi | 
|---|
| 4740 | rm -f conftest* | 
|---|
| 4741 |  | 
|---|
| 4742 |  | 
|---|
| 4743 | for ac_func in gethostname | 
|---|
| 4744 | do | 
|---|
| 4745 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
|---|
| 4746 | echo "configure:4747: checking for $ac_func" >&5 | 
|---|
| 4747 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
|---|
| 4748 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4749 | else | 
|---|
| 4750 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4751 | #line 4752 "configure" | 
|---|
| 4752 | #include "confdefs.h" | 
|---|
| 4753 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 4754 | which can conflict with char $ac_func(); below.  */ | 
|---|
| 4755 | #include <assert.h> | 
|---|
| 4756 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 4757 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 4758 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 4759 | char $ac_func(); | 
|---|
| 4760 |  | 
|---|
| 4761 | int main() { | 
|---|
| 4762 |  | 
|---|
| 4763 | /* The GNU C library defines this for functions which it implements | 
|---|
| 4764 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 4765 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 4766 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|---|
| 4767 | choke me | 
|---|
| 4768 | #else | 
|---|
| 4769 | $ac_func(); | 
|---|
| 4770 | #endif | 
|---|
| 4771 |  | 
|---|
| 4772 | ; return 0; } | 
|---|
| 4773 | EOF | 
|---|
| 4774 | if { (eval echo configure:4775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4775 | rm -rf conftest* | 
|---|
| 4776 | eval "ac_cv_func_$ac_func=yes" | 
|---|
| 4777 | else | 
|---|
| 4778 | echo "configure: failed program was:" >&5 | 
|---|
| 4779 | cat conftest.$ac_ext >&5 | 
|---|
| 4780 | rm -rf conftest* | 
|---|
| 4781 | eval "ac_cv_func_$ac_func=no" | 
|---|
| 4782 | fi | 
|---|
| 4783 | rm -f conftest* | 
|---|
| 4784 | fi | 
|---|
| 4785 |  | 
|---|
| 4786 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|---|
| 4787 | echo "$ac_t""yes" 1>&6 | 
|---|
| 4788 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|---|
| 4789 | cat >> confdefs.h <<EOF | 
|---|
| 4790 | #define $ac_tr_func 1 | 
|---|
| 4791 | EOF | 
|---|
| 4792 |  | 
|---|
| 4793 | cat >> confdefs.h <<\EOF | 
|---|
| 4794 | #define HAVE_GETHOSTNAME 1 | 
|---|
| 4795 | EOF | 
|---|
| 4796 |  | 
|---|
| 4797 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4798 | #line 4799 "configure" | 
|---|
| 4799 | #include "confdefs.h" | 
|---|
| 4800 | #include <unistd.h> | 
|---|
| 4801 | EOF | 
|---|
| 4802 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|---|
| 4803 | egrep "gethostname" >/dev/null 2>&1; then | 
|---|
| 4804 | rm -rf conftest* | 
|---|
| 4805 |  | 
|---|
| 4806 | cat >> confdefs.h <<\EOF | 
|---|
| 4807 | #define HAVE_GETHOSTNAME_DECL 1 | 
|---|
| 4808 | EOF | 
|---|
| 4809 |  | 
|---|
| 4810 | fi | 
|---|
| 4811 | rm -f conftest* | 
|---|
| 4812 |  | 
|---|
| 4813 | else | 
|---|
| 4814 | echo "$ac_t""no" 1>&6 | 
|---|
| 4815 | fi | 
|---|
| 4816 | done | 
|---|
| 4817 |  | 
|---|
| 4818 |  | 
|---|
| 4819 | # Look for these functions in the thread library, but only bother | 
|---|
| 4820 | # if using POSIX threads. | 
|---|
| 4821 | if test "$THREADS" = posix; then | 
|---|
| 4822 | save_LIBS="$LIBS" | 
|---|
| 4823 | LIBS="$LIBS $THREADLIBS" | 
|---|
| 4824 | # Some POSIX thread systems don't have pthread_mutexattr_settype. | 
|---|
| 4825 | # E.g., Solaris. | 
|---|
| 4826 | for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np | 
|---|
| 4827 | do | 
|---|
| 4828 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
|---|
| 4829 | echo "configure:4830: checking for $ac_func" >&5 | 
|---|
| 4830 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
|---|
| 4831 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4832 | else | 
|---|
| 4833 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4834 | #line 4835 "configure" | 
|---|
| 4835 | #include "confdefs.h" | 
|---|
| 4836 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 4837 | which can conflict with char $ac_func(); below.  */ | 
|---|
| 4838 | #include <assert.h> | 
|---|
| 4839 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 4840 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 4841 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 4842 | char $ac_func(); | 
|---|
| 4843 |  | 
|---|
| 4844 | int main() { | 
|---|
| 4845 |  | 
|---|
| 4846 | /* The GNU C library defines this for functions which it implements | 
|---|
| 4847 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 4848 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 4849 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|---|
| 4850 | choke me | 
|---|
| 4851 | #else | 
|---|
| 4852 | $ac_func(); | 
|---|
| 4853 | #endif | 
|---|
| 4854 |  | 
|---|
| 4855 | ; return 0; } | 
|---|
| 4856 | EOF | 
|---|
| 4857 | if { (eval echo configure:4858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4858 | rm -rf conftest* | 
|---|
| 4859 | eval "ac_cv_func_$ac_func=yes" | 
|---|
| 4860 | else | 
|---|
| 4861 | echo "configure: failed program was:" >&5 | 
|---|
| 4862 | cat conftest.$ac_ext >&5 | 
|---|
| 4863 | rm -rf conftest* | 
|---|
| 4864 | eval "ac_cv_func_$ac_func=no" | 
|---|
| 4865 | fi | 
|---|
| 4866 | rm -f conftest* | 
|---|
| 4867 | fi | 
|---|
| 4868 |  | 
|---|
| 4869 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|---|
| 4870 | echo "$ac_t""yes" 1>&6 | 
|---|
| 4871 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|---|
| 4872 | cat >> confdefs.h <<EOF | 
|---|
| 4873 | #define $ac_tr_func 1 | 
|---|
| 4874 | EOF | 
|---|
| 4875 |  | 
|---|
| 4876 | else | 
|---|
| 4877 | echo "$ac_t""no" 1>&6 | 
|---|
| 4878 | fi | 
|---|
| 4879 | done | 
|---|
| 4880 |  | 
|---|
| 4881 |  | 
|---|
| 4882 | # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since | 
|---|
| 4883 | # Solaris 7 the name librt is preferred. | 
|---|
| 4884 | for ac_func in sched_yield | 
|---|
| 4885 | do | 
|---|
| 4886 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
|---|
| 4887 | echo "configure:4888: checking for $ac_func" >&5 | 
|---|
| 4888 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
|---|
| 4889 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4890 | else | 
|---|
| 4891 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4892 | #line 4893 "configure" | 
|---|
| 4893 | #include "confdefs.h" | 
|---|
| 4894 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 4895 | which can conflict with char $ac_func(); below.  */ | 
|---|
| 4896 | #include <assert.h> | 
|---|
| 4897 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 4898 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 4899 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 4900 | char $ac_func(); | 
|---|
| 4901 |  | 
|---|
| 4902 | int main() { | 
|---|
| 4903 |  | 
|---|
| 4904 | /* The GNU C library defines this for functions which it implements | 
|---|
| 4905 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 4906 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 4907 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|---|
| 4908 | choke me | 
|---|
| 4909 | #else | 
|---|
| 4910 | $ac_func(); | 
|---|
| 4911 | #endif | 
|---|
| 4912 |  | 
|---|
| 4913 | ; return 0; } | 
|---|
| 4914 | EOF | 
|---|
| 4915 | if { (eval echo configure:4916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4916 | rm -rf conftest* | 
|---|
| 4917 | eval "ac_cv_func_$ac_func=yes" | 
|---|
| 4918 | else | 
|---|
| 4919 | echo "configure: failed program was:" >&5 | 
|---|
| 4920 | cat conftest.$ac_ext >&5 | 
|---|
| 4921 | rm -rf conftest* | 
|---|
| 4922 | eval "ac_cv_func_$ac_func=no" | 
|---|
| 4923 | fi | 
|---|
| 4924 | rm -f conftest* | 
|---|
| 4925 | fi | 
|---|
| 4926 |  | 
|---|
| 4927 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|---|
| 4928 | echo "$ac_t""yes" 1>&6 | 
|---|
| 4929 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|---|
| 4930 | cat >> confdefs.h <<EOF | 
|---|
| 4931 | #define $ac_tr_func 1 | 
|---|
| 4932 | EOF | 
|---|
| 4933 |  | 
|---|
| 4934 | else | 
|---|
| 4935 | echo "$ac_t""no" 1>&6 | 
|---|
| 4936 | echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6 | 
|---|
| 4937 | echo "configure:4938: checking for sched_yield in -lrt" >&5 | 
|---|
| 4938 | ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'` | 
|---|
| 4939 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|---|
| 4940 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4941 | else | 
|---|
| 4942 | ac_save_LIBS="$LIBS" | 
|---|
| 4943 | LIBS="-lrt  $LIBS" | 
|---|
| 4944 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4945 | #line 4946 "configure" | 
|---|
| 4946 | #include "confdefs.h" | 
|---|
| 4947 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 4948 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 4949 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 4950 | char sched_yield(); | 
|---|
| 4951 |  | 
|---|
| 4952 | int main() { | 
|---|
| 4953 | sched_yield() | 
|---|
| 4954 | ; return 0; } | 
|---|
| 4955 | EOF | 
|---|
| 4956 | if { (eval echo configure:4957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 4957 | rm -rf conftest* | 
|---|
| 4958 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|---|
| 4959 | else | 
|---|
| 4960 | echo "configure: failed program was:" >&5 | 
|---|
| 4961 | cat conftest.$ac_ext >&5 | 
|---|
| 4962 | rm -rf conftest* | 
|---|
| 4963 | eval "ac_cv_lib_$ac_lib_var=no" | 
|---|
| 4964 | fi | 
|---|
| 4965 | rm -f conftest* | 
|---|
| 4966 | LIBS="$ac_save_LIBS" | 
|---|
| 4967 |  | 
|---|
| 4968 | fi | 
|---|
| 4969 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|---|
| 4970 | echo "$ac_t""yes" 1>&6 | 
|---|
| 4971 |  | 
|---|
| 4972 | cat >> confdefs.h <<\EOF | 
|---|
| 4973 | #define HAVE_SCHED_YIELD 1 | 
|---|
| 4974 | EOF | 
|---|
| 4975 |  | 
|---|
| 4976 | THREADLIBS="$THREADLIBS -lrt" | 
|---|
| 4977 | THREADSPEC="$THREADSPEC -lrt" | 
|---|
| 4978 | else | 
|---|
| 4979 | echo "$ac_t""no" 1>&6 | 
|---|
| 4980 |  | 
|---|
| 4981 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | 
|---|
| 4982 | echo "configure:4983: checking for sched_yield in -lposix4" >&5 | 
|---|
| 4983 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` | 
|---|
| 4984 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|---|
| 4985 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 4986 | else | 
|---|
| 4987 | ac_save_LIBS="$LIBS" | 
|---|
| 4988 | LIBS="-lposix4  $LIBS" | 
|---|
| 4989 | cat > conftest.$ac_ext <<EOF | 
|---|
| 4990 | #line 4991 "configure" | 
|---|
| 4991 | #include "confdefs.h" | 
|---|
| 4992 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 4993 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 4994 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 4995 | char sched_yield(); | 
|---|
| 4996 |  | 
|---|
| 4997 | int main() { | 
|---|
| 4998 | sched_yield() | 
|---|
| 4999 | ; return 0; } | 
|---|
| 5000 | EOF | 
|---|
| 5001 | if { (eval echo configure:5002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 5002 | rm -rf conftest* | 
|---|
| 5003 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|---|
| 5004 | else | 
|---|
| 5005 | echo "configure: failed program was:" >&5 | 
|---|
| 5006 | cat conftest.$ac_ext >&5 | 
|---|
| 5007 | rm -rf conftest* | 
|---|
| 5008 | eval "ac_cv_lib_$ac_lib_var=no" | 
|---|
| 5009 | fi | 
|---|
| 5010 | rm -f conftest* | 
|---|
| 5011 | LIBS="$ac_save_LIBS" | 
|---|
| 5012 |  | 
|---|
| 5013 | fi | 
|---|
| 5014 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|---|
| 5015 | echo "$ac_t""yes" 1>&6 | 
|---|
| 5016 |  | 
|---|
| 5017 | cat >> confdefs.h <<\EOF | 
|---|
| 5018 | #define HAVE_SCHED_YIELD 1 | 
|---|
| 5019 | EOF | 
|---|
| 5020 |  | 
|---|
| 5021 | THREADLIBS="$THREADLIBS -lposix4" | 
|---|
| 5022 | THREADSPEC="$THREADSPEC -lposix4" | 
|---|
| 5023 | else | 
|---|
| 5024 | echo "$ac_t""no" 1>&6 | 
|---|
| 5025 | fi | 
|---|
| 5026 |  | 
|---|
| 5027 | fi | 
|---|
| 5028 |  | 
|---|
| 5029 | fi | 
|---|
| 5030 | done | 
|---|
| 5031 |  | 
|---|
| 5032 | LIBS="$save_LIBS" | 
|---|
| 5033 |  | 
|---|
| 5034 | # We can save a little space at runtime if the mutex has m_count | 
|---|
| 5035 | # or __m_count.  This is a nice hack for Linux. | 
|---|
| 5036 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5037 | #line 5038 "configure" | 
|---|
| 5038 | #include "confdefs.h" | 
|---|
| 5039 | #include <pthread.h> | 
|---|
| 5040 | int main() { | 
|---|
| 5041 |  | 
|---|
| 5042 | extern pthread_mutex_t *mutex; int q = mutex->m_count; | 
|---|
| 5043 |  | 
|---|
| 5044 | ; return 0; } | 
|---|
| 5045 | EOF | 
|---|
| 5046 | if { (eval echo configure:5047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 5047 | rm -rf conftest* | 
|---|
| 5048 | cat >> confdefs.h <<\EOF | 
|---|
| 5049 | #define PTHREAD_MUTEX_HAVE_M_COUNT 1 | 
|---|
| 5050 | EOF | 
|---|
| 5051 |  | 
|---|
| 5052 | else | 
|---|
| 5053 | echo "configure: failed program was:" >&5 | 
|---|
| 5054 | cat conftest.$ac_ext >&5 | 
|---|
| 5055 | rm -rf conftest* | 
|---|
| 5056 |  | 
|---|
| 5057 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5058 | #line 5059 "configure" | 
|---|
| 5059 | #include "confdefs.h" | 
|---|
| 5060 | #include <pthread.h> | 
|---|
| 5061 | int main() { | 
|---|
| 5062 |  | 
|---|
| 5063 | extern pthread_mutex_t *mutex; int q = mutex->__m_count; | 
|---|
| 5064 |  | 
|---|
| 5065 | ; return 0; } | 
|---|
| 5066 | EOF | 
|---|
| 5067 | if { (eval echo configure:5068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 5068 | rm -rf conftest* | 
|---|
| 5069 | cat >> confdefs.h <<\EOF | 
|---|
| 5070 | #define PTHREAD_MUTEX_HAVE___M_COUNT 1 | 
|---|
| 5071 | EOF | 
|---|
| 5072 |  | 
|---|
| 5073 | else | 
|---|
| 5074 | echo "configure: failed program was:" >&5 | 
|---|
| 5075 | cat conftest.$ac_ext >&5 | 
|---|
| 5076 | fi | 
|---|
| 5077 | rm -f conftest* | 
|---|
| 5078 | fi | 
|---|
| 5079 | rm -f conftest* | 
|---|
| 5080 | fi | 
|---|
| 5081 |  | 
|---|
| 5082 | # We require a way to get the time. | 
|---|
| 5083 | time_found=no | 
|---|
| 5084 | for ac_func in gettimeofday time ftime | 
|---|
| 5085 | do | 
|---|
| 5086 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
|---|
| 5087 | echo "configure:5088: checking for $ac_func" >&5 | 
|---|
| 5088 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
|---|
| 5089 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5090 | else | 
|---|
| 5091 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5092 | #line 5093 "configure" | 
|---|
| 5093 | #include "confdefs.h" | 
|---|
| 5094 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 5095 | which can conflict with char $ac_func(); below.  */ | 
|---|
| 5096 | #include <assert.h> | 
|---|
| 5097 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 5098 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 5099 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 5100 | char $ac_func(); | 
|---|
| 5101 |  | 
|---|
| 5102 | int main() { | 
|---|
| 5103 |  | 
|---|
| 5104 | /* The GNU C library defines this for functions which it implements | 
|---|
| 5105 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 5106 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 5107 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|---|
| 5108 | choke me | 
|---|
| 5109 | #else | 
|---|
| 5110 | $ac_func(); | 
|---|
| 5111 | #endif | 
|---|
| 5112 |  | 
|---|
| 5113 | ; return 0; } | 
|---|
| 5114 | EOF | 
|---|
| 5115 | if { (eval echo configure:5116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 5116 | rm -rf conftest* | 
|---|
| 5117 | eval "ac_cv_func_$ac_func=yes" | 
|---|
| 5118 | else | 
|---|
| 5119 | echo "configure: failed program was:" >&5 | 
|---|
| 5120 | cat conftest.$ac_ext >&5 | 
|---|
| 5121 | rm -rf conftest* | 
|---|
| 5122 | eval "ac_cv_func_$ac_func=no" | 
|---|
| 5123 | fi | 
|---|
| 5124 | rm -f conftest* | 
|---|
| 5125 | fi | 
|---|
| 5126 |  | 
|---|
| 5127 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|---|
| 5128 | echo "$ac_t""yes" 1>&6 | 
|---|
| 5129 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|---|
| 5130 | cat >> confdefs.h <<EOF | 
|---|
| 5131 | #define $ac_tr_func 1 | 
|---|
| 5132 | EOF | 
|---|
| 5133 | time_found=yes | 
|---|
| 5134 | else | 
|---|
| 5135 | echo "$ac_t""no" 1>&6 | 
|---|
| 5136 | fi | 
|---|
| 5137 | done | 
|---|
| 5138 |  | 
|---|
| 5139 | if test "$time_found" = no; then | 
|---|
| 5140 | { echo "configure: error: no function found to get the time" 1>&2; exit 1; } | 
|---|
| 5141 | fi | 
|---|
| 5142 |  | 
|---|
| 5143 | for ac_func in memmove | 
|---|
| 5144 | do | 
|---|
| 5145 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
|---|
| 5146 | echo "configure:5147: checking for $ac_func" >&5 | 
|---|
| 5147 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
|---|
| 5148 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5149 | else | 
|---|
| 5150 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5151 | #line 5152 "configure" | 
|---|
| 5152 | #include "confdefs.h" | 
|---|
| 5153 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 5154 | which can conflict with char $ac_func(); below.  */ | 
|---|
| 5155 | #include <assert.h> | 
|---|
| 5156 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 5157 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 5158 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 5159 | char $ac_func(); | 
|---|
| 5160 |  | 
|---|
| 5161 | int main() { | 
|---|
| 5162 |  | 
|---|
| 5163 | /* The GNU C library defines this for functions which it implements | 
|---|
| 5164 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 5165 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 5166 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|---|
| 5167 | choke me | 
|---|
| 5168 | #else | 
|---|
| 5169 | $ac_func(); | 
|---|
| 5170 | #endif | 
|---|
| 5171 |  | 
|---|
| 5172 | ; return 0; } | 
|---|
| 5173 | EOF | 
|---|
| 5174 | if { (eval echo configure:5175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 5175 | rm -rf conftest* | 
|---|
| 5176 | eval "ac_cv_func_$ac_func=yes" | 
|---|
| 5177 | else | 
|---|
| 5178 | echo "configure: failed program was:" >&5 | 
|---|
| 5179 | cat conftest.$ac_ext >&5 | 
|---|
| 5180 | rm -rf conftest* | 
|---|
| 5181 | eval "ac_cv_func_$ac_func=no" | 
|---|
| 5182 | fi | 
|---|
| 5183 | rm -f conftest* | 
|---|
| 5184 | fi | 
|---|
| 5185 |  | 
|---|
| 5186 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|---|
| 5187 | echo "$ac_t""yes" 1>&6 | 
|---|
| 5188 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|---|
| 5189 | cat >> confdefs.h <<EOF | 
|---|
| 5190 | #define $ac_tr_func 1 | 
|---|
| 5191 | EOF | 
|---|
| 5192 |  | 
|---|
| 5193 | else | 
|---|
| 5194 | echo "$ac_t""no" 1>&6 | 
|---|
| 5195 | fi | 
|---|
| 5196 | done | 
|---|
| 5197 |  | 
|---|
| 5198 |  | 
|---|
| 5199 | # We require memcpy. | 
|---|
| 5200 | memcpy_found=no | 
|---|
| 5201 | for ac_func in memcpy | 
|---|
| 5202 | do | 
|---|
| 5203 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
|---|
| 5204 | echo "configure:5205: checking for $ac_func" >&5 | 
|---|
| 5205 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
|---|
| 5206 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5207 | else | 
|---|
| 5208 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5209 | #line 5210 "configure" | 
|---|
| 5210 | #include "confdefs.h" | 
|---|
| 5211 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 5212 | which can conflict with char $ac_func(); below.  */ | 
|---|
| 5213 | #include <assert.h> | 
|---|
| 5214 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 5215 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 5216 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 5217 | char $ac_func(); | 
|---|
| 5218 |  | 
|---|
| 5219 | int main() { | 
|---|
| 5220 |  | 
|---|
| 5221 | /* The GNU C library defines this for functions which it implements | 
|---|
| 5222 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 5223 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 5224 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|---|
| 5225 | choke me | 
|---|
| 5226 | #else | 
|---|
| 5227 | $ac_func(); | 
|---|
| 5228 | #endif | 
|---|
| 5229 |  | 
|---|
| 5230 | ; return 0; } | 
|---|
| 5231 | EOF | 
|---|
| 5232 | if { (eval echo configure:5233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 5233 | rm -rf conftest* | 
|---|
| 5234 | eval "ac_cv_func_$ac_func=yes" | 
|---|
| 5235 | else | 
|---|
| 5236 | echo "configure: failed program was:" >&5 | 
|---|
| 5237 | cat conftest.$ac_ext >&5 | 
|---|
| 5238 | rm -rf conftest* | 
|---|
| 5239 | eval "ac_cv_func_$ac_func=no" | 
|---|
| 5240 | fi | 
|---|
| 5241 | rm -f conftest* | 
|---|
| 5242 | fi | 
|---|
| 5243 |  | 
|---|
| 5244 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|---|
| 5245 | echo "$ac_t""yes" 1>&6 | 
|---|
| 5246 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
|---|
| 5247 | cat >> confdefs.h <<EOF | 
|---|
| 5248 | #define $ac_tr_func 1 | 
|---|
| 5249 | EOF | 
|---|
| 5250 | memcpy_found=yes | 
|---|
| 5251 | else | 
|---|
| 5252 | echo "$ac_t""no" 1>&6 | 
|---|
| 5253 | fi | 
|---|
| 5254 | done | 
|---|
| 5255 |  | 
|---|
| 5256 | if test "$memcpy_found" = no; then | 
|---|
| 5257 | { echo "configure: error: memcpy is required" 1>&2; exit 1; } | 
|---|
| 5258 | fi | 
|---|
| 5259 |  | 
|---|
| 5260 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | 
|---|
| 5261 | echo "configure:5262: checking for dlopen in -ldl" >&5 | 
|---|
| 5262 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` | 
|---|
| 5263 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|---|
| 5264 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5265 | else | 
|---|
| 5266 | ac_save_LIBS="$LIBS" | 
|---|
| 5267 | LIBS="-ldl  $LIBS" | 
|---|
| 5268 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5269 | #line 5270 "configure" | 
|---|
| 5270 | #include "confdefs.h" | 
|---|
| 5271 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 5272 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 5273 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 5274 | char dlopen(); | 
|---|
| 5275 |  | 
|---|
| 5276 | int main() { | 
|---|
| 5277 | dlopen() | 
|---|
| 5278 | ; return 0; } | 
|---|
| 5279 | EOF | 
|---|
| 5280 | if { (eval echo configure:5281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 5281 | rm -rf conftest* | 
|---|
| 5282 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|---|
| 5283 | else | 
|---|
| 5284 | echo "configure: failed program was:" >&5 | 
|---|
| 5285 | cat conftest.$ac_ext >&5 | 
|---|
| 5286 | rm -rf conftest* | 
|---|
| 5287 | eval "ac_cv_lib_$ac_lib_var=no" | 
|---|
| 5288 | fi | 
|---|
| 5289 | rm -f conftest* | 
|---|
| 5290 | LIBS="$ac_save_LIBS" | 
|---|
| 5291 |  | 
|---|
| 5292 | fi | 
|---|
| 5293 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|---|
| 5294 | echo "$ac_t""yes" 1>&6 | 
|---|
| 5295 |  | 
|---|
| 5296 | cat >> confdefs.h <<\EOF | 
|---|
| 5297 | #define HAVE_DLOPEN 1 | 
|---|
| 5298 | EOF | 
|---|
| 5299 |  | 
|---|
| 5300 | else | 
|---|
| 5301 | echo "$ac_t""no" 1>&6 | 
|---|
| 5302 | fi | 
|---|
| 5303 |  | 
|---|
| 5304 |  | 
|---|
| 5305 | # Some library-finding code we stole from Tcl. | 
|---|
| 5306 | #-------------------------------------------------------------------- | 
|---|
| 5307 | #    Check for the existence of the -lsocket and -lnsl libraries. | 
|---|
| 5308 | #    The order here is important, so that they end up in the right | 
|---|
| 5309 | #    order in the command line generated by make.  Here are some | 
|---|
| 5310 | #    special considerations: | 
|---|
| 5311 | #    1. Use "connect" and "accept" to check for -lsocket, and | 
|---|
| 5312 | #       "gethostbyname" to check for -lnsl. | 
|---|
| 5313 | #    2. Use each function name only once:  can't redo a check because | 
|---|
| 5314 | #       autoconf caches the results of the last check and won't redo it. | 
|---|
| 5315 | #    3. Use -lnsl and -lsocket only if they supply procedures that | 
|---|
| 5316 | #       aren't already present in the normal libraries.  This is because | 
|---|
| 5317 | #       IRIX 5.2 has libraries, but they aren't needed and they're | 
|---|
| 5318 | #       bogus:  they goof up name resolution if used. | 
|---|
| 5319 | #    4. On some SVR4 systems, can't use -lsocket without -lnsl too. | 
|---|
| 5320 | #       To get around this problem, check for both libraries together | 
|---|
| 5321 | #       if -lsocket doesn't work by itself. | 
|---|
| 5322 | #-------------------------------------------------------------------- | 
|---|
| 5323 |  | 
|---|
| 5324 | echo $ac_n "checking for socket libraries""... $ac_c" 1>&6 | 
|---|
| 5325 | echo "configure:5326: checking for socket libraries" >&5 | 
|---|
| 5326 | if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then | 
|---|
| 5327 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5328 | else | 
|---|
| 5329 | gcj_cv_lib_sockets= | 
|---|
| 5330 | gcj_checkBoth=0 | 
|---|
| 5331 | unset ac_cv_func_connect | 
|---|
| 5332 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | 
|---|
| 5333 | echo "configure:5334: checking for connect" >&5 | 
|---|
| 5334 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then | 
|---|
| 5335 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5336 | else | 
|---|
| 5337 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5338 | #line 5339 "configure" | 
|---|
| 5339 | #include "confdefs.h" | 
|---|
| 5340 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 5341 | which can conflict with char connect(); below.  */ | 
|---|
| 5342 | #include <assert.h> | 
|---|
| 5343 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 5344 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 5345 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 5346 | char connect(); | 
|---|
| 5347 |  | 
|---|
| 5348 | int main() { | 
|---|
| 5349 |  | 
|---|
| 5350 | /* The GNU C library defines this for functions which it implements | 
|---|
| 5351 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 5352 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 5353 | #if defined (__stub_connect) || defined (__stub___connect) | 
|---|
| 5354 | choke me | 
|---|
| 5355 | #else | 
|---|
| 5356 | connect(); | 
|---|
| 5357 | #endif | 
|---|
| 5358 |  | 
|---|
| 5359 | ; return 0; } | 
|---|
| 5360 | EOF | 
|---|
| 5361 | if { (eval echo configure:5362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 5362 | rm -rf conftest* | 
|---|
| 5363 | eval "ac_cv_func_connect=yes" | 
|---|
| 5364 | else | 
|---|
| 5365 | echo "configure: failed program was:" >&5 | 
|---|
| 5366 | cat conftest.$ac_ext >&5 | 
|---|
| 5367 | rm -rf conftest* | 
|---|
| 5368 | eval "ac_cv_func_connect=no" | 
|---|
| 5369 | fi | 
|---|
| 5370 | rm -f conftest* | 
|---|
| 5371 | fi | 
|---|
| 5372 |  | 
|---|
| 5373 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | 
|---|
| 5374 | echo "$ac_t""yes" 1>&6 | 
|---|
| 5375 | gcj_checkSocket=0 | 
|---|
| 5376 | else | 
|---|
| 5377 | echo "$ac_t""no" 1>&6 | 
|---|
| 5378 | gcj_checkSocket=1 | 
|---|
| 5379 | fi | 
|---|
| 5380 |  | 
|---|
| 5381 | if test "$gcj_checkSocket" = 1; then | 
|---|
| 5382 | unset ac_cv_func_connect | 
|---|
| 5383 | echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6 | 
|---|
| 5384 | echo "configure:5385: checking for main in -lsocket" >&5 | 
|---|
| 5385 | ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'` | 
|---|
| 5386 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|---|
| 5387 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5388 | else | 
|---|
| 5389 | ac_save_LIBS="$LIBS" | 
|---|
| 5390 | LIBS="-lsocket  $LIBS" | 
|---|
| 5391 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5392 | #line 5393 "configure" | 
|---|
| 5393 | #include "confdefs.h" | 
|---|
| 5394 |  | 
|---|
| 5395 | int main() { | 
|---|
| 5396 | main() | 
|---|
| 5397 | ; return 0; } | 
|---|
| 5398 | EOF | 
|---|
| 5399 | if { (eval echo configure:5400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 5400 | rm -rf conftest* | 
|---|
| 5401 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|---|
| 5402 | else | 
|---|
| 5403 | echo "configure: failed program was:" >&5 | 
|---|
| 5404 | cat conftest.$ac_ext >&5 | 
|---|
| 5405 | rm -rf conftest* | 
|---|
| 5406 | eval "ac_cv_lib_$ac_lib_var=no" | 
|---|
| 5407 | fi | 
|---|
| 5408 | rm -f conftest* | 
|---|
| 5409 | LIBS="$ac_save_LIBS" | 
|---|
| 5410 |  | 
|---|
| 5411 | fi | 
|---|
| 5412 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|---|
| 5413 | echo "$ac_t""yes" 1>&6 | 
|---|
| 5414 | gcj_cv_lib_sockets="-lsocket" | 
|---|
| 5415 | else | 
|---|
| 5416 | echo "$ac_t""no" 1>&6 | 
|---|
| 5417 | gcj_checkBoth=1 | 
|---|
| 5418 | fi | 
|---|
| 5419 |  | 
|---|
| 5420 | fi | 
|---|
| 5421 | if test "$gcj_checkBoth" = 1; then | 
|---|
| 5422 | gcj_oldLibs=$LIBS | 
|---|
| 5423 | LIBS="$LIBS -lsocket -lnsl" | 
|---|
| 5424 | unset ac_cv_func_accept | 
|---|
| 5425 | echo $ac_n "checking for accept""... $ac_c" 1>&6 | 
|---|
| 5426 | echo "configure:5427: checking for accept" >&5 | 
|---|
| 5427 | if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then | 
|---|
| 5428 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5429 | else | 
|---|
| 5430 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5431 | #line 5432 "configure" | 
|---|
| 5432 | #include "confdefs.h" | 
|---|
| 5433 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 5434 | which can conflict with char accept(); below.  */ | 
|---|
| 5435 | #include <assert.h> | 
|---|
| 5436 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 5437 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 5438 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 5439 | char accept(); | 
|---|
| 5440 |  | 
|---|
| 5441 | int main() { | 
|---|
| 5442 |  | 
|---|
| 5443 | /* The GNU C library defines this for functions which it implements | 
|---|
| 5444 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 5445 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 5446 | #if defined (__stub_accept) || defined (__stub___accept) | 
|---|
| 5447 | choke me | 
|---|
| 5448 | #else | 
|---|
| 5449 | accept(); | 
|---|
| 5450 | #endif | 
|---|
| 5451 |  | 
|---|
| 5452 | ; return 0; } | 
|---|
| 5453 | EOF | 
|---|
| 5454 | if { (eval echo configure:5455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 5455 | rm -rf conftest* | 
|---|
| 5456 | eval "ac_cv_func_accept=yes" | 
|---|
| 5457 | else | 
|---|
| 5458 | echo "configure: failed program was:" >&5 | 
|---|
| 5459 | cat conftest.$ac_ext >&5 | 
|---|
| 5460 | rm -rf conftest* | 
|---|
| 5461 | eval "ac_cv_func_accept=no" | 
|---|
| 5462 | fi | 
|---|
| 5463 | rm -f conftest* | 
|---|
| 5464 | fi | 
|---|
| 5465 |  | 
|---|
| 5466 | if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then | 
|---|
| 5467 | echo "$ac_t""yes" 1>&6 | 
|---|
| 5468 | gcj_checkNsl=0 | 
|---|
| 5469 | gcj_cv_lib_sockets="-lsocket -lnsl" | 
|---|
| 5470 | else | 
|---|
| 5471 | echo "$ac_t""no" 1>&6 | 
|---|
| 5472 | fi | 
|---|
| 5473 |  | 
|---|
| 5474 | unset ac_cv_func_accept | 
|---|
| 5475 | LIBS=$gcj_oldLibs | 
|---|
| 5476 | fi | 
|---|
| 5477 | unset ac_cv_func_gethostbyname | 
|---|
| 5478 | gcj_oldLibs=$LIBS | 
|---|
| 5479 | LIBS="$LIBS $gcj_cv_lib_sockets" | 
|---|
| 5480 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | 
|---|
| 5481 | echo "configure:5482: checking for gethostbyname" >&5 | 
|---|
| 5482 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then | 
|---|
| 5483 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5484 | else | 
|---|
| 5485 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5486 | #line 5487 "configure" | 
|---|
| 5487 | #include "confdefs.h" | 
|---|
| 5488 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 5489 | which can conflict with char gethostbyname(); below.  */ | 
|---|
| 5490 | #include <assert.h> | 
|---|
| 5491 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 5492 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 5493 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 5494 | char gethostbyname(); | 
|---|
| 5495 |  | 
|---|
| 5496 | int main() { | 
|---|
| 5497 |  | 
|---|
| 5498 | /* The GNU C library defines this for functions which it implements | 
|---|
| 5499 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 5500 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 5501 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | 
|---|
| 5502 | choke me | 
|---|
| 5503 | #else | 
|---|
| 5504 | gethostbyname(); | 
|---|
| 5505 | #endif | 
|---|
| 5506 |  | 
|---|
| 5507 | ; return 0; } | 
|---|
| 5508 | EOF | 
|---|
| 5509 | if { (eval echo configure:5510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 5510 | rm -rf conftest* | 
|---|
| 5511 | eval "ac_cv_func_gethostbyname=yes" | 
|---|
| 5512 | else | 
|---|
| 5513 | echo "configure: failed program was:" >&5 | 
|---|
| 5514 | cat conftest.$ac_ext >&5 | 
|---|
| 5515 | rm -rf conftest* | 
|---|
| 5516 | eval "ac_cv_func_gethostbyname=no" | 
|---|
| 5517 | fi | 
|---|
| 5518 | rm -f conftest* | 
|---|
| 5519 | fi | 
|---|
| 5520 |  | 
|---|
| 5521 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | 
|---|
| 5522 | echo "$ac_t""yes" 1>&6 | 
|---|
| 5523 | : | 
|---|
| 5524 | else | 
|---|
| 5525 | echo "$ac_t""no" 1>&6 | 
|---|
| 5526 | echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6 | 
|---|
| 5527 | echo "configure:5528: checking for main in -lnsl" >&5 | 
|---|
| 5528 | ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'` | 
|---|
| 5529 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|---|
| 5530 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5531 | else | 
|---|
| 5532 | ac_save_LIBS="$LIBS" | 
|---|
| 5533 | LIBS="-lnsl  $LIBS" | 
|---|
| 5534 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5535 | #line 5536 "configure" | 
|---|
| 5536 | #include "confdefs.h" | 
|---|
| 5537 |  | 
|---|
| 5538 | int main() { | 
|---|
| 5539 | main() | 
|---|
| 5540 | ; return 0; } | 
|---|
| 5541 | EOF | 
|---|
| 5542 | if { (eval echo configure:5543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 5543 | rm -rf conftest* | 
|---|
| 5544 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|---|
| 5545 | else | 
|---|
| 5546 | echo "configure: failed program was:" >&5 | 
|---|
| 5547 | cat conftest.$ac_ext >&5 | 
|---|
| 5548 | rm -rf conftest* | 
|---|
| 5549 | eval "ac_cv_lib_$ac_lib_var=no" | 
|---|
| 5550 | fi | 
|---|
| 5551 | rm -f conftest* | 
|---|
| 5552 | LIBS="$ac_save_LIBS" | 
|---|
| 5553 |  | 
|---|
| 5554 | fi | 
|---|
| 5555 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|---|
| 5556 | echo "$ac_t""yes" 1>&6 | 
|---|
| 5557 | gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl" | 
|---|
| 5558 | else | 
|---|
| 5559 | echo "$ac_t""no" 1>&6 | 
|---|
| 5560 | fi | 
|---|
| 5561 |  | 
|---|
| 5562 | fi | 
|---|
| 5563 |  | 
|---|
| 5564 | unset ac_cv_func_gethostbyname | 
|---|
| 5565 | LIBS=$gcj_oldLIBS | 
|---|
| 5566 |  | 
|---|
| 5567 | fi | 
|---|
| 5568 |  | 
|---|
| 5569 | echo "$ac_t""$gcj_cv_lib_sockets" 1>&6 | 
|---|
| 5570 | SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets" | 
|---|
| 5571 |  | 
|---|
| 5572 | if test "$with_system_zlib" = yes; then | 
|---|
| 5573 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | 
|---|
| 5574 | echo "configure:5575: checking for deflate in -lz" >&5 | 
|---|
| 5575 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` | 
|---|
| 5576 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|---|
| 5577 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5578 | else | 
|---|
| 5579 | ac_save_LIBS="$LIBS" | 
|---|
| 5580 | LIBS="-lz  $LIBS" | 
|---|
| 5581 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5582 | #line 5583 "configure" | 
|---|
| 5583 | #include "confdefs.h" | 
|---|
| 5584 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 5585 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 5586 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 5587 | char deflate(); | 
|---|
| 5588 |  | 
|---|
| 5589 | int main() { | 
|---|
| 5590 | deflate() | 
|---|
| 5591 | ; return 0; } | 
|---|
| 5592 | EOF | 
|---|
| 5593 | if { (eval echo configure:5594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 5594 | rm -rf conftest* | 
|---|
| 5595 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|---|
| 5596 | else | 
|---|
| 5597 | echo "configure: failed program was:" >&5 | 
|---|
| 5598 | cat conftest.$ac_ext >&5 | 
|---|
| 5599 | rm -rf conftest* | 
|---|
| 5600 | eval "ac_cv_lib_$ac_lib_var=no" | 
|---|
| 5601 | fi | 
|---|
| 5602 | rm -f conftest* | 
|---|
| 5603 | LIBS="$ac_save_LIBS" | 
|---|
| 5604 |  | 
|---|
| 5605 | fi | 
|---|
| 5606 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|---|
| 5607 | echo "$ac_t""yes" 1>&6 | 
|---|
| 5608 | ZLIBSPEC=-lz | 
|---|
| 5609 | else | 
|---|
| 5610 | echo "$ac_t""no" 1>&6 | 
|---|
| 5611 | ZLIBSPEC= | 
|---|
| 5612 | fi | 
|---|
| 5613 |  | 
|---|
| 5614 | fi | 
|---|
| 5615 |  | 
|---|
| 5616 | # On Solaris, and maybe other architectures, the Boehm collector | 
|---|
| 5617 | # requires -ldl. | 
|---|
| 5618 | if test "$GC" = boehm; then | 
|---|
| 5619 | echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6 | 
|---|
| 5620 | echo "configure:5621: checking for main in -ldl" >&5 | 
|---|
| 5621 | ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'` | 
|---|
| 5622 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|---|
| 5623 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5624 | else | 
|---|
| 5625 | ac_save_LIBS="$LIBS" | 
|---|
| 5626 | LIBS="-ldl  $LIBS" | 
|---|
| 5627 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5628 | #line 5629 "configure" | 
|---|
| 5629 | #include "confdefs.h" | 
|---|
| 5630 |  | 
|---|
| 5631 | int main() { | 
|---|
| 5632 | main() | 
|---|
| 5633 | ; return 0; } | 
|---|
| 5634 | EOF | 
|---|
| 5635 | if { (eval echo configure:5636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 5636 | rm -rf conftest* | 
|---|
| 5637 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|---|
| 5638 | else | 
|---|
| 5639 | echo "configure: failed program was:" >&5 | 
|---|
| 5640 | cat conftest.$ac_ext >&5 | 
|---|
| 5641 | rm -rf conftest* | 
|---|
| 5642 | eval "ac_cv_lib_$ac_lib_var=no" | 
|---|
| 5643 | fi | 
|---|
| 5644 | rm -f conftest* | 
|---|
| 5645 | LIBS="$ac_save_LIBS" | 
|---|
| 5646 |  | 
|---|
| 5647 | fi | 
|---|
| 5648 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|---|
| 5649 | echo "$ac_t""yes" 1>&6 | 
|---|
| 5650 | SYSTEMSPEC="$SYSTEMSPEC -ldl" | 
|---|
| 5651 | else | 
|---|
| 5652 | echo "$ac_t""no" 1>&6 | 
|---|
| 5653 | fi | 
|---|
| 5654 |  | 
|---|
| 5655 | fi | 
|---|
| 5656 |  | 
|---|
| 5657 | if test -z "${with_multisubdir}"; then | 
|---|
| 5658 | builddotdot=. | 
|---|
| 5659 | else | 
|---|
| 5660 |  | 
|---|
| 5661 | builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'` | 
|---|
| 5662 |  | 
|---|
| 5663 | fi | 
|---|
| 5664 | if test -x "${builddotdot}/../../gcc/gcj"; then | 
|---|
| 5665 | dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`" | 
|---|
| 5666 | GCJ="$dir/gcj -B`${PWDCMD-pwd}`/ -B$dir/" | 
|---|
| 5667 | else | 
|---|
| 5668 | CANADIAN=yes | 
|---|
| 5669 | NULL_TARGET=yes | 
|---|
| 5670 | GCJ="gcj -B`${PWDCMD-pwd}`/" | 
|---|
| 5671 | fi | 
|---|
| 5672 | fi | 
|---|
| 5673 |  | 
|---|
| 5674 | # Create it, so that compile/link tests don't fail | 
|---|
| 5675 | test -f libgcj.spec || touch libgcj.spec | 
|---|
| 5676 |  | 
|---|
| 5677 | # We must search the source tree for java.lang, since we still don't | 
|---|
| 5678 | # have libgcj.jar nor java/lang/*.class | 
|---|
| 5679 | GCJ_SAVE_CPPFLAGS=$CPPFLAGS | 
|---|
| 5680 | CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`" | 
|---|
| 5681 |  | 
|---|
| 5682 | # Since some classes depend on this one, we need its source available | 
|---|
| 5683 | # before we can do any GCJ compilation test :-( | 
|---|
| 5684 | if test ! -f gnu/classpath/Configuration.java; then | 
|---|
| 5685 | test -d gnu || mkdir gnu | 
|---|
| 5686 | test -d gnu/classpath || mkdir gnu/classpath | 
|---|
| 5687 | sed 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \ | 
|---|
| 5688 | < $srcdir/gnu/classpath/Configuration.java.in \ | 
|---|
| 5689 | > gnu/classpath/Configuration.java | 
|---|
| 5690 | # We do not want to redirect the output of the grep below to /dev/null, | 
|---|
| 5691 | # but we add /dev/null to the input list so that grep will print the | 
|---|
| 5692 | # filename of Configuration.java in case it finds any matches. | 
|---|
| 5693 | if grep @ gnu/classpath/Configuration.java /dev/null; then | 
|---|
| 5694 | { echo "configure: error: configure.in is missing the substitutions above" 1>&2; exit 1; } | 
|---|
| 5695 | fi | 
|---|
| 5696 | fi | 
|---|
| 5697 |  | 
|---|
| 5698 | # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args. | 
|---|
| 5699 | set dummy ${ac_tool_prefix}gcj; ac_word=$2 | 
|---|
| 5700 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 5701 | echo "configure:5702: checking for $ac_word" >&5 | 
|---|
| 5702 | if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then | 
|---|
| 5703 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5704 | else | 
|---|
| 5705 | if test -n "$GCJ"; then | 
|---|
| 5706 | ac_cv_prog_GCJ="$GCJ" # Let the user override the test. | 
|---|
| 5707 | else | 
|---|
| 5708 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 5709 | ac_dummy="$PATH" | 
|---|
| 5710 | for ac_dir in $ac_dummy; do | 
|---|
| 5711 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 5712 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 5713 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 5714 | ac_cv_prog_GCJ="${ac_tool_prefix}gcj" | 
|---|
| 5715 | break | 
|---|
| 5716 | fi | 
|---|
| 5717 | done | 
|---|
| 5718 | IFS="$ac_save_ifs" | 
|---|
| 5719 | fi | 
|---|
| 5720 | fi | 
|---|
| 5721 | GCJ="$ac_cv_prog_GCJ" | 
|---|
| 5722 | if test -n "$GCJ"; then | 
|---|
| 5723 | echo "$ac_t""$GCJ" 1>&6 | 
|---|
| 5724 | else | 
|---|
| 5725 | echo "$ac_t""no" 1>&6 | 
|---|
| 5726 | fi | 
|---|
| 5727 |  | 
|---|
| 5728 |  | 
|---|
| 5729 | if test -z "$ac_cv_prog_GCJ"; then | 
|---|
| 5730 | if test -n "$ac_tool_prefix"; then | 
|---|
| 5731 | # Extract the first word of "gcj", so it can be a program name with args. | 
|---|
| 5732 | set dummy gcj; ac_word=$2 | 
|---|
| 5733 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 5734 | echo "configure:5735: checking for $ac_word" >&5 | 
|---|
| 5735 | if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then | 
|---|
| 5736 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5737 | else | 
|---|
| 5738 | if test -n "$GCJ"; then | 
|---|
| 5739 | ac_cv_prog_GCJ="$GCJ" # Let the user override the test. | 
|---|
| 5740 | else | 
|---|
| 5741 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 5742 | ac_dummy="$PATH" | 
|---|
| 5743 | for ac_dir in $ac_dummy; do | 
|---|
| 5744 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 5745 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 5746 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 5747 | ac_cv_prog_GCJ="gcj" | 
|---|
| 5748 | break | 
|---|
| 5749 | fi | 
|---|
| 5750 | done | 
|---|
| 5751 | IFS="$ac_save_ifs" | 
|---|
| 5752 | test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no" | 
|---|
| 5753 | fi | 
|---|
| 5754 | fi | 
|---|
| 5755 | GCJ="$ac_cv_prog_GCJ" | 
|---|
| 5756 | if test -n "$GCJ"; then | 
|---|
| 5757 | echo "$ac_t""$GCJ" 1>&6 | 
|---|
| 5758 | else | 
|---|
| 5759 | echo "$ac_t""no" 1>&6 | 
|---|
| 5760 | fi | 
|---|
| 5761 |  | 
|---|
| 5762 | else | 
|---|
| 5763 | GCJ="no" | 
|---|
| 5764 | fi | 
|---|
| 5765 | fi | 
|---|
| 5766 |  | 
|---|
| 5767 | test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" | 
|---|
| 5768 |  | 
|---|
| 5769 |  | 
|---|
| 5770 |  | 
|---|
| 5771 | LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh" | 
|---|
| 5772 | lt_save_CC="$CC" | 
|---|
| 5773 | lt_save_CFLAGS="$CFLAGS" | 
|---|
| 5774 | AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \ | 
|---|
| 5775 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ | 
|---|
| 5776 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ | 
|---|
| 5777 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | 
|---|
| 5778 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | 
|---|
| 5779 | deplibs_check_method="$deplibs_check_method" \ | 
|---|
| 5780 | file_magic_cmd="$file_magic_cmd" \ | 
|---|
| 5781 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \ | 
|---|
| 5782 | --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \ | 
|---|
| 5783 | || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; } | 
|---|
| 5784 | CC="$lt_save_CC" | 
|---|
| 5785 | CFLAGS="$lt_save_CFLAGS" | 
|---|
| 5786 |  | 
|---|
| 5787 | # Redirect the config.log output again, so that the ltconfig log is not | 
|---|
| 5788 | # clobbered by the next message. | 
|---|
| 5789 | exec 5>>./config.log | 
|---|
| 5790 |  | 
|---|
| 5791 |  | 
|---|
| 5792 |  | 
|---|
| 5793 |  | 
|---|
| 5794 | CPPFLAGS=$GCJ_SAVE_CPPFLAGS | 
|---|
| 5795 |  | 
|---|
| 5796 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 | 
|---|
| 5797 | echo "configure:5798: checking size of void *" >&5 | 
|---|
| 5798 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then | 
|---|
| 5799 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5800 | else | 
|---|
| 5801 | for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence. | 
|---|
| 5802 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5803 | #line 5804 "configure" | 
|---|
| 5804 | #include "confdefs.h" | 
|---|
| 5805 | #include "confdefs.h" | 
|---|
| 5806 | #include <sys/types.h> | 
|---|
| 5807 |  | 
|---|
| 5808 |  | 
|---|
| 5809 | int main() { | 
|---|
| 5810 | switch (0) case 0: case (sizeof (void *) == $ac_size):; | 
|---|
| 5811 | ; return 0; } | 
|---|
| 5812 | EOF | 
|---|
| 5813 | if { (eval echo configure:5814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 5814 | rm -rf conftest* | 
|---|
| 5815 | ac_cv_sizeof_void_p=$ac_size | 
|---|
| 5816 | else | 
|---|
| 5817 | echo "configure: failed program was:" >&5 | 
|---|
| 5818 | cat conftest.$ac_ext >&5 | 
|---|
| 5819 | fi | 
|---|
| 5820 | rm -f conftest* | 
|---|
| 5821 | if test x$ac_cv_sizeof_void_p != x ; then break; fi | 
|---|
| 5822 | done | 
|---|
| 5823 |  | 
|---|
| 5824 | fi | 
|---|
| 5825 |  | 
|---|
| 5826 | if test x$ac_cv_sizeof_void_p = x ; then | 
|---|
| 5827 | { echo "configure: error: cannot determine a size for void *" 1>&2; exit 1; } | 
|---|
| 5828 | fi | 
|---|
| 5829 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 | 
|---|
| 5830 | cat >> confdefs.h <<EOF | 
|---|
| 5831 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | 
|---|
| 5832 | EOF | 
|---|
| 5833 |  | 
|---|
| 5834 |  | 
|---|
| 5835 |  | 
|---|
| 5836 | ZLIBS= | 
|---|
| 5837 | SYS_ZLIBS= | 
|---|
| 5838 | ZINCS= | 
|---|
| 5839 |  | 
|---|
| 5840 | if test -z "$ZLIBSPEC"; then | 
|---|
| 5841 | # Use zlib from the GCC tree. | 
|---|
| 5842 | ZINCS='-I$(top_srcdir)/../zlib' | 
|---|
| 5843 | ZLIBS=../zlib/libzgcj_convenience.la | 
|---|
| 5844 | else | 
|---|
| 5845 | # System's zlib. | 
|---|
| 5846 | SYS_ZLIBS="$ZLIBSPEC" | 
|---|
| 5847 | fi | 
|---|
| 5848 |  | 
|---|
| 5849 |  | 
|---|
| 5850 |  | 
|---|
| 5851 |  | 
|---|
| 5852 |  | 
|---|
| 5853 |  | 
|---|
| 5854 |  | 
|---|
| 5855 |  | 
|---|
| 5856 |  | 
|---|
| 5857 |  | 
|---|
| 5858 | if test "$CANADIAN" = yes; then | 
|---|
| 5859 | CANADIAN_TRUE= | 
|---|
| 5860 | CANADIAN_FALSE='#' | 
|---|
| 5861 | else | 
|---|
| 5862 | CANADIAN_TRUE='#' | 
|---|
| 5863 | CANADIAN_FALSE= | 
|---|
| 5864 | fi | 
|---|
| 5865 |  | 
|---|
| 5866 |  | 
|---|
| 5867 | if test "$NULL_TARGET" = yes; then | 
|---|
| 5868 | NULL_TARGET_TRUE= | 
|---|
| 5869 | NULL_TARGET_FALSE='#' | 
|---|
| 5870 | else | 
|---|
| 5871 | NULL_TARGET_TRUE='#' | 
|---|
| 5872 | NULL_TARGET_FALSE= | 
|---|
| 5873 | fi | 
|---|
| 5874 |  | 
|---|
| 5875 |  | 
|---|
| 5876 | if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then | 
|---|
| 5877 | NATIVE_TRUE= | 
|---|
| 5878 | NATIVE_FALSE='#' | 
|---|
| 5879 | else | 
|---|
| 5880 | NATIVE_TRUE='#' | 
|---|
| 5881 | NATIVE_FALSE= | 
|---|
| 5882 | fi | 
|---|
| 5883 |  | 
|---|
| 5884 |  | 
|---|
| 5885 | if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then | 
|---|
| 5886 | NEEDS_DATA_START_TRUE= | 
|---|
| 5887 | NEEDS_DATA_START_FALSE='#' | 
|---|
| 5888 | else | 
|---|
| 5889 | NEEDS_DATA_START_TRUE='#' | 
|---|
| 5890 | NEEDS_DATA_START_FALSE= | 
|---|
| 5891 | fi | 
|---|
| 5892 |  | 
|---|
| 5893 |  | 
|---|
| 5894 | if test -n "$with_cross_host" && | 
|---|
| 5895 | test x"$with_cross_host" != x"no"; then | 
|---|
| 5896 | toolexecdir='$(exec_prefix)/$(target_alias)' | 
|---|
| 5897 | toolexecmainlibdir='$(toolexecdir)/lib' | 
|---|
| 5898 | else | 
|---|
| 5899 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)' | 
|---|
| 5900 | toolexecmainlibdir='$(libdir)' | 
|---|
| 5901 | fi | 
|---|
| 5902 | toolexeclibdir=$toolexecmainlibdir/`$CC -print-multi-os-directory` | 
|---|
| 5903 |  | 
|---|
| 5904 |  | 
|---|
| 5905 |  | 
|---|
| 5906 |  | 
|---|
| 5907 | # Determine gcj version number. | 
|---|
| 5908 |  | 
|---|
| 5909 | gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'` | 
|---|
| 5910 |  | 
|---|
| 5911 | GCJVERSION=$gcjversion | 
|---|
| 5912 |  | 
|---|
| 5913 | cat >> confdefs.h <<EOF | 
|---|
| 5914 | #define GCJVERSION "$GCJVERSION" | 
|---|
| 5915 | EOF | 
|---|
| 5916 |  | 
|---|
| 5917 |  | 
|---|
| 5918 | echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6 | 
|---|
| 5919 | echo "configure:5920: checking for g++ -ffloat-store bug" >&5 | 
|---|
| 5920 | save_CFLAGS="$CFLAGS" | 
|---|
| 5921 | CFLAGS="-x c++ -O2 -ffloat-store" | 
|---|
| 5922 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5923 | #line 5924 "configure" | 
|---|
| 5924 | #include "confdefs.h" | 
|---|
| 5925 | #include <math.h> | 
|---|
| 5926 | int main() { | 
|---|
| 5927 |  | 
|---|
| 5928 | ; return 0; } | 
|---|
| 5929 | EOF | 
|---|
| 5930 | if { (eval echo configure:5931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 5931 | rm -rf conftest* | 
|---|
| 5932 | echo "$ac_t""no" 1>&6 | 
|---|
| 5933 | else | 
|---|
| 5934 | echo "configure: failed program was:" >&5 | 
|---|
| 5935 | cat conftest.$ac_ext >&5 | 
|---|
| 5936 | rm -rf conftest* | 
|---|
| 5937 | cat >> confdefs.h <<\EOF | 
|---|
| 5938 | #define __NO_MATH_INLINES 1 | 
|---|
| 5939 | EOF | 
|---|
| 5940 |  | 
|---|
| 5941 | echo "$ac_t""yes" 1>&6 | 
|---|
| 5942 | fi | 
|---|
| 5943 | rm -f conftest* | 
|---|
| 5944 | CFLAGS="$save_CFLAGS" | 
|---|
| 5945 |  | 
|---|
| 5946 | for ac_hdr in unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h pwd.h sys/config.h stdint.h langinfo.h locale.h | 
|---|
| 5947 | do | 
|---|
| 5948 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 
|---|
| 5949 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 
|---|
| 5950 | echo "configure:5951: checking for $ac_hdr" >&5 | 
|---|
| 5951 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 
|---|
| 5952 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5953 | else | 
|---|
| 5954 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5955 | #include <sys/types.h> | 
|---|
| 5956 | #line 5957 "configure" | 
|---|
| 5957 | #include "confdefs.h" | 
|---|
| 5958 | #include <$ac_hdr> | 
|---|
| 5959 | EOF | 
|---|
| 5960 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 5961 | { (eval echo configure:5962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 5962 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 5963 | if test -z "$ac_err"; then | 
|---|
| 5964 | rm -rf conftest* | 
|---|
| 5965 | eval "ac_cv_header_$ac_safe=yes" | 
|---|
| 5966 | else | 
|---|
| 5967 | echo "$ac_err" >&5 | 
|---|
| 5968 | echo "configure: failed program was:" >&5 | 
|---|
| 5969 | cat conftest.$ac_ext >&5 | 
|---|
| 5970 | rm -rf conftest* | 
|---|
| 5971 | eval "ac_cv_header_$ac_safe=no" | 
|---|
| 5972 | fi | 
|---|
| 5973 | rm -f conftest* | 
|---|
| 5974 | fi | 
|---|
| 5975 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
|---|
| 5976 | echo "$ac_t""yes" 1>&6 | 
|---|
| 5977 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 
|---|
| 5978 | cat >> confdefs.h <<EOF | 
|---|
| 5979 | #define $ac_tr_hdr 1 | 
|---|
| 5980 | EOF | 
|---|
| 5981 |  | 
|---|
| 5982 | else | 
|---|
| 5983 | echo "$ac_t""no" 1>&6 | 
|---|
| 5984 | fi | 
|---|
| 5985 | done | 
|---|
| 5986 |  | 
|---|
| 5987 | for ac_hdr in dirent.h | 
|---|
| 5988 | do | 
|---|
| 5989 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 
|---|
| 5990 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 
|---|
| 5991 | echo "configure:5992: checking for $ac_hdr" >&5 | 
|---|
| 5992 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 
|---|
| 5993 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 5994 | else | 
|---|
| 5995 | cat > conftest.$ac_ext <<EOF | 
|---|
| 5996 | #include <sys/types.h> | 
|---|
| 5997 | #line 5998 "configure" | 
|---|
| 5998 | #include "confdefs.h" | 
|---|
| 5999 | #include <$ac_hdr> | 
|---|
| 6000 | EOF | 
|---|
| 6001 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 6002 | { (eval echo configure:6003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 6003 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 6004 | if test -z "$ac_err"; then | 
|---|
| 6005 | rm -rf conftest* | 
|---|
| 6006 | eval "ac_cv_header_$ac_safe=yes" | 
|---|
| 6007 | else | 
|---|
| 6008 | echo "$ac_err" >&5 | 
|---|
| 6009 | echo "configure: failed program was:" >&5 | 
|---|
| 6010 | cat conftest.$ac_ext >&5 | 
|---|
| 6011 | rm -rf conftest* | 
|---|
| 6012 | eval "ac_cv_header_$ac_safe=no" | 
|---|
| 6013 | fi | 
|---|
| 6014 | rm -f conftest* | 
|---|
| 6015 | fi | 
|---|
| 6016 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
|---|
| 6017 | echo "$ac_t""yes" 1>&6 | 
|---|
| 6018 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 
|---|
| 6019 | cat >> confdefs.h <<EOF | 
|---|
| 6020 | #define $ac_tr_hdr 1 | 
|---|
| 6021 | EOF | 
|---|
| 6022 |  | 
|---|
| 6023 | else | 
|---|
| 6024 | echo "$ac_t""no" 1>&6 | 
|---|
| 6025 | fi | 
|---|
| 6026 | done | 
|---|
| 6027 |  | 
|---|
| 6028 | for ac_hdr in inttypes.h | 
|---|
| 6029 | do | 
|---|
| 6030 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 
|---|
| 6031 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 
|---|
| 6032 | echo "configure:6033: checking for $ac_hdr" >&5 | 
|---|
| 6033 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 
|---|
| 6034 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6035 | else | 
|---|
| 6036 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6037 | #include <sys/types.h> | 
|---|
| 6038 | #line 6039 "configure" | 
|---|
| 6039 | #include "confdefs.h" | 
|---|
| 6040 | #include <$ac_hdr> | 
|---|
| 6041 | EOF | 
|---|
| 6042 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 6043 | { (eval echo configure:6044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 6044 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 6045 | if test -z "$ac_err"; then | 
|---|
| 6046 | rm -rf conftest* | 
|---|
| 6047 | eval "ac_cv_header_$ac_safe=yes" | 
|---|
| 6048 | else | 
|---|
| 6049 | echo "$ac_err" >&5 | 
|---|
| 6050 | echo "configure: failed program was:" >&5 | 
|---|
| 6051 | cat conftest.$ac_ext >&5 | 
|---|
| 6052 | rm -rf conftest* | 
|---|
| 6053 | eval "ac_cv_header_$ac_safe=no" | 
|---|
| 6054 | fi | 
|---|
| 6055 | rm -f conftest* | 
|---|
| 6056 | fi | 
|---|
| 6057 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
|---|
| 6058 | echo "$ac_t""yes" 1>&6 | 
|---|
| 6059 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 
|---|
| 6060 | cat >> confdefs.h <<EOF | 
|---|
| 6061 | #define $ac_tr_hdr 1 | 
|---|
| 6062 | EOF | 
|---|
| 6063 |  | 
|---|
| 6064 | cat >> confdefs.h <<\EOF | 
|---|
| 6065 | #define HAVE_INTTYPES_H 1 | 
|---|
| 6066 | EOF | 
|---|
| 6067 |  | 
|---|
| 6068 | cat >> confdefs.h <<\EOF | 
|---|
| 6069 | #define JV_HAVE_INTTYPES_H 1 | 
|---|
| 6070 | EOF | 
|---|
| 6071 |  | 
|---|
| 6072 |  | 
|---|
| 6073 | else | 
|---|
| 6074 | echo "$ac_t""no" 1>&6 | 
|---|
| 6075 | fi | 
|---|
| 6076 | done | 
|---|
| 6077 |  | 
|---|
| 6078 | echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 | 
|---|
| 6079 | echo "configure:6080: checking for sys/wait.h that is POSIX.1 compatible" >&5 | 
|---|
| 6080 | if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then | 
|---|
| 6081 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6082 | else | 
|---|
| 6083 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6084 | #line 6085 "configure" | 
|---|
| 6085 | #include "confdefs.h" | 
|---|
| 6086 | #include <sys/types.h> | 
|---|
| 6087 | #include <sys/wait.h> | 
|---|
| 6088 | #ifndef WEXITSTATUS | 
|---|
| 6089 | #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | 
|---|
| 6090 | #endif | 
|---|
| 6091 | #ifndef WIFEXITED | 
|---|
| 6092 | #define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | 
|---|
| 6093 | #endif | 
|---|
| 6094 | int main() { | 
|---|
| 6095 | int s; | 
|---|
| 6096 | wait (&s); | 
|---|
| 6097 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | 
|---|
| 6098 | ; return 0; } | 
|---|
| 6099 | EOF | 
|---|
| 6100 | if { (eval echo configure:6101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 6101 | rm -rf conftest* | 
|---|
| 6102 | ac_cv_header_sys_wait_h=yes | 
|---|
| 6103 | else | 
|---|
| 6104 | echo "configure: failed program was:" >&5 | 
|---|
| 6105 | cat conftest.$ac_ext >&5 | 
|---|
| 6106 | rm -rf conftest* | 
|---|
| 6107 | ac_cv_header_sys_wait_h=no | 
|---|
| 6108 | fi | 
|---|
| 6109 | rm -f conftest* | 
|---|
| 6110 | fi | 
|---|
| 6111 |  | 
|---|
| 6112 | echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 | 
|---|
| 6113 | if test $ac_cv_header_sys_wait_h = yes; then | 
|---|
| 6114 | cat >> confdefs.h <<\EOF | 
|---|
| 6115 | #define HAVE_SYS_WAIT_H 1 | 
|---|
| 6116 | EOF | 
|---|
| 6117 |  | 
|---|
| 6118 | fi | 
|---|
| 6119 |  | 
|---|
| 6120 |  | 
|---|
| 6121 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | 
|---|
| 6122 | echo "configure:6123: checking for ANSI C header files" >&5 | 
|---|
| 6123 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | 
|---|
| 6124 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6125 | else | 
|---|
| 6126 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6127 | #include <sys/types.h> | 
|---|
| 6128 | #line 6129 "configure" | 
|---|
| 6129 | #include "confdefs.h" | 
|---|
| 6130 | #include <stdlib.h> | 
|---|
| 6131 | #include <stdarg.h> | 
|---|
| 6132 | #include <string.h> | 
|---|
| 6133 | #include <float.h> | 
|---|
| 6134 | EOF | 
|---|
| 6135 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 6136 | { (eval echo configure:6137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 6137 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 6138 | if test -z "$ac_err"; then | 
|---|
| 6139 | rm -rf conftest* | 
|---|
| 6140 | ac_cv_header_stdc=yes | 
|---|
| 6141 | else | 
|---|
| 6142 | echo "$ac_err" >&5 | 
|---|
| 6143 | echo "configure: failed program was:" >&5 | 
|---|
| 6144 | cat conftest.$ac_ext >&5 | 
|---|
| 6145 | rm -rf conftest* | 
|---|
| 6146 | ac_cv_header_stdc=no | 
|---|
| 6147 | fi | 
|---|
| 6148 | rm -f conftest* | 
|---|
| 6149 |  | 
|---|
| 6150 | if test $ac_cv_header_stdc = yes; then | 
|---|
| 6151 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
|---|
| 6152 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6153 | #line 6154 "configure" | 
|---|
| 6154 | #include "confdefs.h" | 
|---|
| 6155 | #include <string.h> | 
|---|
| 6156 | EOF | 
|---|
| 6157 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|---|
| 6158 | egrep "memchr" >/dev/null 2>&1; then | 
|---|
| 6159 | : | 
|---|
| 6160 | else | 
|---|
| 6161 | rm -rf conftest* | 
|---|
| 6162 | ac_cv_header_stdc=no | 
|---|
| 6163 | fi | 
|---|
| 6164 | rm -f conftest* | 
|---|
| 6165 |  | 
|---|
| 6166 | fi | 
|---|
| 6167 |  | 
|---|
| 6168 | if test $ac_cv_header_stdc = yes; then | 
|---|
| 6169 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
|---|
| 6170 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6171 | #line 6172 "configure" | 
|---|
| 6172 | #include "confdefs.h" | 
|---|
| 6173 | #include <stdlib.h> | 
|---|
| 6174 | EOF | 
|---|
| 6175 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|---|
| 6176 | egrep "free" >/dev/null 2>&1; then | 
|---|
| 6177 | : | 
|---|
| 6178 | else | 
|---|
| 6179 | rm -rf conftest* | 
|---|
| 6180 | ac_cv_header_stdc=no | 
|---|
| 6181 | fi | 
|---|
| 6182 | rm -f conftest* | 
|---|
| 6183 |  | 
|---|
| 6184 | fi | 
|---|
| 6185 |  | 
|---|
| 6186 | if test $ac_cv_header_stdc = yes; then | 
|---|
| 6187 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
|---|
| 6188 | if test "$cross_compiling" = yes; then | 
|---|
| 6189 | : | 
|---|
| 6190 | else | 
|---|
| 6191 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6192 | #line 6193 "configure" | 
|---|
| 6193 | #include "confdefs.h" | 
|---|
| 6194 | #include <ctype.h> | 
|---|
| 6195 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|---|
| 6196 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|---|
| 6197 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|---|
| 6198 | int main () { int i; for (i = 0; i < 256; i++) | 
|---|
| 6199 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | 
|---|
| 6200 | exit (0); } | 
|---|
| 6201 |  | 
|---|
| 6202 | EOF | 
|---|
| 6203 | if { (eval echo configure:6204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
|---|
| 6204 | then | 
|---|
| 6205 | : | 
|---|
| 6206 | else | 
|---|
| 6207 | echo "configure: failed program was:" >&5 | 
|---|
| 6208 | cat conftest.$ac_ext >&5 | 
|---|
| 6209 | rm -fr conftest* | 
|---|
| 6210 | ac_cv_header_stdc=no | 
|---|
| 6211 | fi | 
|---|
| 6212 | rm -fr conftest* | 
|---|
| 6213 | fi | 
|---|
| 6214 |  | 
|---|
| 6215 | fi | 
|---|
| 6216 | fi | 
|---|
| 6217 |  | 
|---|
| 6218 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | 
|---|
| 6219 | if test $ac_cv_header_stdc = yes; then | 
|---|
| 6220 | cat >> confdefs.h <<\EOF | 
|---|
| 6221 | #define STDC_HEADERS 1 | 
|---|
| 6222 | EOF | 
|---|
| 6223 |  | 
|---|
| 6224 | fi | 
|---|
| 6225 |  | 
|---|
| 6226 | echo $ac_n "checking for ssize_t""... $ac_c" 1>&6 | 
|---|
| 6227 | echo "configure:6228: checking for ssize_t" >&5 | 
|---|
| 6228 | if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then | 
|---|
| 6229 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6230 | else | 
|---|
| 6231 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6232 | #line 6233 "configure" | 
|---|
| 6233 | #include "confdefs.h" | 
|---|
| 6234 | #include <sys/types.h> | 
|---|
| 6235 | #if STDC_HEADERS | 
|---|
| 6236 | #include <stdlib.h> | 
|---|
| 6237 | #include <stddef.h> | 
|---|
| 6238 | #endif | 
|---|
| 6239 | EOF | 
|---|
| 6240 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|---|
| 6241 | egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | 
|---|
| 6242 | rm -rf conftest* | 
|---|
| 6243 | ac_cv_type_ssize_t=yes | 
|---|
| 6244 | else | 
|---|
| 6245 | rm -rf conftest* | 
|---|
| 6246 | ac_cv_type_ssize_t=no | 
|---|
| 6247 | fi | 
|---|
| 6248 | rm -f conftest* | 
|---|
| 6249 |  | 
|---|
| 6250 | fi | 
|---|
| 6251 | echo "$ac_t""$ac_cv_type_ssize_t" 1>&6 | 
|---|
| 6252 | if test $ac_cv_type_ssize_t = no; then | 
|---|
| 6253 | cat >> confdefs.h <<\EOF | 
|---|
| 6254 | #define ssize_t int | 
|---|
| 6255 | EOF | 
|---|
| 6256 |  | 
|---|
| 6257 | fi | 
|---|
| 6258 |  | 
|---|
| 6259 |  | 
|---|
| 6260 | echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6 | 
|---|
| 6261 | echo "configure:6262: checking for in_addr_t" >&5 | 
|---|
| 6262 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6263 | #line 6264 "configure" | 
|---|
| 6264 | #include "confdefs.h" | 
|---|
| 6265 | #include <sys/types.h> | 
|---|
| 6266 | #if STDC_HEADERS | 
|---|
| 6267 | #include <stdlib.h> | 
|---|
| 6268 | #include <stddef.h> | 
|---|
| 6269 | #endif | 
|---|
| 6270 | #if HAVE_NETINET_IN_H | 
|---|
| 6271 | #include <netinet/in.h> | 
|---|
| 6272 | #endif | 
|---|
| 6273 | int main() { | 
|---|
| 6274 | in_addr_t foo; | 
|---|
| 6275 | ; return 0; } | 
|---|
| 6276 | EOF | 
|---|
| 6277 | if { (eval echo configure:6278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 6278 | rm -rf conftest* | 
|---|
| 6279 | cat >> confdefs.h <<\EOF | 
|---|
| 6280 | #define HAVE_IN_ADDR_T 1 | 
|---|
| 6281 | EOF | 
|---|
| 6282 |  | 
|---|
| 6283 | echo "$ac_t""yes" 1>&6 | 
|---|
| 6284 | else | 
|---|
| 6285 | echo "configure: failed program was:" >&5 | 
|---|
| 6286 | cat conftest.$ac_ext >&5 | 
|---|
| 6287 | rm -rf conftest* | 
|---|
| 6288 | echo "$ac_t""no" 1>&6 | 
|---|
| 6289 | fi | 
|---|
| 6290 | rm -f conftest* | 
|---|
| 6291 |  | 
|---|
| 6292 | echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6 | 
|---|
| 6293 | echo "configure:6294: checking whether struct ip_mreq is in netinet/in.h" >&5 | 
|---|
| 6294 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6295 | #line 6296 "configure" | 
|---|
| 6296 | #include "confdefs.h" | 
|---|
| 6297 | #include <netinet/in.h> | 
|---|
| 6298 | int main() { | 
|---|
| 6299 | struct ip_mreq mreq; | 
|---|
| 6300 | ; return 0; } | 
|---|
| 6301 | EOF | 
|---|
| 6302 | if { (eval echo configure:6303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 6303 | rm -rf conftest* | 
|---|
| 6304 | cat >> confdefs.h <<\EOF | 
|---|
| 6305 | #define HAVE_STRUCT_IP_MREQ 1 | 
|---|
| 6306 | EOF | 
|---|
| 6307 |  | 
|---|
| 6308 | echo "$ac_t""yes" 1>&6 | 
|---|
| 6309 | else | 
|---|
| 6310 | echo "configure: failed program was:" >&5 | 
|---|
| 6311 | cat conftest.$ac_ext >&5 | 
|---|
| 6312 | rm -rf conftest* | 
|---|
| 6313 | echo "$ac_t""no" 1>&6 | 
|---|
| 6314 | fi | 
|---|
| 6315 | rm -f conftest* | 
|---|
| 6316 |  | 
|---|
| 6317 | echo $ac_n "checking whether struct ipv6_mreq is in netinet/in.h""... $ac_c" 1>&6 | 
|---|
| 6318 | echo "configure:6319: checking whether struct ipv6_mreq is in netinet/in.h" >&5 | 
|---|
| 6319 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6320 | #line 6321 "configure" | 
|---|
| 6321 | #include "confdefs.h" | 
|---|
| 6322 | #include <netinet/in.h> | 
|---|
| 6323 | int main() { | 
|---|
| 6324 | struct ipv6_mreq mreq6; | 
|---|
| 6325 | ; return 0; } | 
|---|
| 6326 | EOF | 
|---|
| 6327 | if { (eval echo configure:6328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 6328 | rm -rf conftest* | 
|---|
| 6329 | cat >> confdefs.h <<\EOF | 
|---|
| 6330 | #define HAVE_STRUCT_IPV6_MREQ 1 | 
|---|
| 6331 | EOF | 
|---|
| 6332 |  | 
|---|
| 6333 | echo "$ac_t""yes" 1>&6 | 
|---|
| 6334 | else | 
|---|
| 6335 | echo "configure: failed program was:" >&5 | 
|---|
| 6336 | cat conftest.$ac_ext >&5 | 
|---|
| 6337 | rm -rf conftest* | 
|---|
| 6338 | echo "$ac_t""no" 1>&6 | 
|---|
| 6339 | fi | 
|---|
| 6340 | rm -f conftest* | 
|---|
| 6341 |  | 
|---|
| 6342 | echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6 | 
|---|
| 6343 | echo "configure:6344: checking whether struct sockaddr_in6 is in netinet/in.h" >&5 | 
|---|
| 6344 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6345 | #line 6346 "configure" | 
|---|
| 6346 | #include "confdefs.h" | 
|---|
| 6347 | #include <netinet/in.h> | 
|---|
| 6348 | int main() { | 
|---|
| 6349 | struct sockaddr_in6 addr6; | 
|---|
| 6350 | ; return 0; } | 
|---|
| 6351 | EOF | 
|---|
| 6352 | if { (eval echo configure:6353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 6353 | rm -rf conftest* | 
|---|
| 6354 | cat >> confdefs.h <<\EOF | 
|---|
| 6355 | #define HAVE_INET6 1 | 
|---|
| 6356 | EOF | 
|---|
| 6357 |  | 
|---|
| 6358 | echo "$ac_t""yes" 1>&6 | 
|---|
| 6359 | else | 
|---|
| 6360 | echo "configure: failed program was:" >&5 | 
|---|
| 6361 | cat conftest.$ac_ext >&5 | 
|---|
| 6362 | rm -rf conftest* | 
|---|
| 6363 | echo "$ac_t""no" 1>&6 | 
|---|
| 6364 | fi | 
|---|
| 6365 | rm -f conftest* | 
|---|
| 6366 |  | 
|---|
| 6367 | echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6 | 
|---|
| 6368 | echo "configure:6369: checking for socklen_t in sys/socket.h" >&5 | 
|---|
| 6369 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6370 | #line 6371 "configure" | 
|---|
| 6371 | #include "confdefs.h" | 
|---|
| 6372 | #define _POSIX_PII_SOCKET | 
|---|
| 6373 | #include <sys/types.h> | 
|---|
| 6374 | #include <sys/socket.h> | 
|---|
| 6375 | int main() { | 
|---|
| 6376 | socklen_t x = 5; | 
|---|
| 6377 | ; return 0; } | 
|---|
| 6378 | EOF | 
|---|
| 6379 | if { (eval echo configure:6380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 6380 | rm -rf conftest* | 
|---|
| 6381 | cat >> confdefs.h <<\EOF | 
|---|
| 6382 | #define HAVE_SOCKLEN_T 1 | 
|---|
| 6383 | EOF | 
|---|
| 6384 |  | 
|---|
| 6385 | echo "$ac_t""yes" 1>&6 | 
|---|
| 6386 | else | 
|---|
| 6387 | echo "configure: failed program was:" >&5 | 
|---|
| 6388 | cat conftest.$ac_ext >&5 | 
|---|
| 6389 | rm -rf conftest* | 
|---|
| 6390 | echo "$ac_t""no" 1>&6 | 
|---|
| 6391 | fi | 
|---|
| 6392 | rm -f conftest* | 
|---|
| 6393 |  | 
|---|
| 6394 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | 
|---|
| 6395 | echo "configure:6396: checking for tm_gmtoff in struct tm" >&5 | 
|---|
| 6396 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6397 | #line 6398 "configure" | 
|---|
| 6398 | #include "confdefs.h" | 
|---|
| 6399 | #include <time.h> | 
|---|
| 6400 | int main() { | 
|---|
| 6401 | struct tm tim; tim.tm_gmtoff = 0; | 
|---|
| 6402 | ; return 0; } | 
|---|
| 6403 | EOF | 
|---|
| 6404 | if { (eval echo configure:6405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 6405 | rm -rf conftest* | 
|---|
| 6406 | cat >> confdefs.h <<\EOF | 
|---|
| 6407 | #define STRUCT_TM_HAS_GMTOFF 1 | 
|---|
| 6408 | EOF | 
|---|
| 6409 |  | 
|---|
| 6410 | echo "$ac_t""yes" 1>&6 | 
|---|
| 6411 | else | 
|---|
| 6412 | echo "configure: failed program was:" >&5 | 
|---|
| 6413 | cat conftest.$ac_ext >&5 | 
|---|
| 6414 | rm -rf conftest* | 
|---|
| 6415 | echo "$ac_t""no" 1>&6 | 
|---|
| 6416 | echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6 | 
|---|
| 6417 | echo "configure:6418: checking for global timezone variable" >&5 | 
|---|
| 6418 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6419 | #line 6420 "configure" | 
|---|
| 6420 | #include "confdefs.h" | 
|---|
| 6421 | #include <time.h> | 
|---|
| 6422 | int main() { | 
|---|
| 6423 | void i(){long z2 = 2*timezone;} | 
|---|
| 6424 | ; return 0; } | 
|---|
| 6425 | EOF | 
|---|
| 6426 | if { (eval echo configure:6427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 6427 | rm -rf conftest* | 
|---|
| 6428 | cat >> confdefs.h <<\EOF | 
|---|
| 6429 | #define HAVE_TIMEZONE 1 | 
|---|
| 6430 | EOF | 
|---|
| 6431 |  | 
|---|
| 6432 | echo "$ac_t""yes" 1>&6 | 
|---|
| 6433 | else | 
|---|
| 6434 | echo "configure: failed program was:" >&5 | 
|---|
| 6435 | cat conftest.$ac_ext >&5 | 
|---|
| 6436 | rm -rf conftest* | 
|---|
| 6437 | echo "$ac_t""no" 1>&6 | 
|---|
| 6438 | echo $ac_n "checking for global _timezone variable""... $ac_c" 1>&6 | 
|---|
| 6439 | echo "configure:6440: checking for global _timezone variable" >&5 | 
|---|
| 6440 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6441 | #line 6442 "configure" | 
|---|
| 6442 | #include "confdefs.h" | 
|---|
| 6443 | #include <time.h> | 
|---|
| 6444 | int main() { | 
|---|
| 6445 | long z2 = _timezone; | 
|---|
| 6446 | ; return 0; } | 
|---|
| 6447 | EOF | 
|---|
| 6448 | if { (eval echo configure:6449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
|---|
| 6449 | rm -rf conftest* | 
|---|
| 6450 | cat >> confdefs.h <<\EOF | 
|---|
| 6451 | #define HAVE_UNDERSCORE_TIMEZONE 1 | 
|---|
| 6452 | EOF | 
|---|
| 6453 |  | 
|---|
| 6454 | echo "$ac_t""yes" 1>&6 | 
|---|
| 6455 | else | 
|---|
| 6456 | echo "configure: failed program was:" >&5 | 
|---|
| 6457 | cat conftest.$ac_ext >&5 | 
|---|
| 6458 | rm -rf conftest* | 
|---|
| 6459 | echo "$ac_t""no" 1>&6 | 
|---|
| 6460 | fi | 
|---|
| 6461 | rm -f conftest* | 
|---|
| 6462 | fi | 
|---|
| 6463 | rm -f conftest* | 
|---|
| 6464 | fi | 
|---|
| 6465 | rm -f conftest* | 
|---|
| 6466 |  | 
|---|
| 6467 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | 
|---|
| 6468 | # for constant arguments.  Useless! | 
|---|
| 6469 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | 
|---|
| 6470 | echo "configure:6471: checking for working alloca.h" >&5 | 
|---|
| 6471 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then | 
|---|
| 6472 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6473 | else | 
|---|
| 6474 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6475 | #line 6476 "configure" | 
|---|
| 6476 | #include "confdefs.h" | 
|---|
| 6477 | #include <alloca.h> | 
|---|
| 6478 | int main() { | 
|---|
| 6479 | char *p = alloca(2 * sizeof(int)); | 
|---|
| 6480 | ; return 0; } | 
|---|
| 6481 | EOF | 
|---|
| 6482 | if { (eval echo configure:6483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 6483 | rm -rf conftest* | 
|---|
| 6484 | ac_cv_header_alloca_h=yes | 
|---|
| 6485 | else | 
|---|
| 6486 | echo "configure: failed program was:" >&5 | 
|---|
| 6487 | cat conftest.$ac_ext >&5 | 
|---|
| 6488 | rm -rf conftest* | 
|---|
| 6489 | ac_cv_header_alloca_h=no | 
|---|
| 6490 | fi | 
|---|
| 6491 | rm -f conftest* | 
|---|
| 6492 | fi | 
|---|
| 6493 |  | 
|---|
| 6494 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | 
|---|
| 6495 | if test $ac_cv_header_alloca_h = yes; then | 
|---|
| 6496 | cat >> confdefs.h <<\EOF | 
|---|
| 6497 | #define HAVE_ALLOCA_H 1 | 
|---|
| 6498 | EOF | 
|---|
| 6499 |  | 
|---|
| 6500 | fi | 
|---|
| 6501 |  | 
|---|
| 6502 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 | 
|---|
| 6503 | echo "configure:6504: checking for alloca" >&5 | 
|---|
| 6504 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then | 
|---|
| 6505 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6506 | else | 
|---|
| 6507 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6508 | #line 6509 "configure" | 
|---|
| 6509 | #include "confdefs.h" | 
|---|
| 6510 |  | 
|---|
| 6511 | #ifdef __GNUC__ | 
|---|
| 6512 | # define alloca __builtin_alloca | 
|---|
| 6513 | #else | 
|---|
| 6514 | # ifdef _MSC_VER | 
|---|
| 6515 | #  include <malloc.h> | 
|---|
| 6516 | #  define alloca _alloca | 
|---|
| 6517 | # else | 
|---|
| 6518 | #  if HAVE_ALLOCA_H | 
|---|
| 6519 | #   include <alloca.h> | 
|---|
| 6520 | #  else | 
|---|
| 6521 | #   ifdef _AIX | 
|---|
| 6522 | #pragma alloca | 
|---|
| 6523 | #   else | 
|---|
| 6524 | #    ifndef alloca /* predefined by HP cc +Olibcalls */ | 
|---|
| 6525 | char *alloca (); | 
|---|
| 6526 | #    endif | 
|---|
| 6527 | #   endif | 
|---|
| 6528 | #  endif | 
|---|
| 6529 | # endif | 
|---|
| 6530 | #endif | 
|---|
| 6531 |  | 
|---|
| 6532 | int main() { | 
|---|
| 6533 | char *p = (char *) alloca(1); | 
|---|
| 6534 | ; return 0; } | 
|---|
| 6535 | EOF | 
|---|
| 6536 | if { (eval echo configure:6537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 6537 | rm -rf conftest* | 
|---|
| 6538 | ac_cv_func_alloca_works=yes | 
|---|
| 6539 | else | 
|---|
| 6540 | echo "configure: failed program was:" >&5 | 
|---|
| 6541 | cat conftest.$ac_ext >&5 | 
|---|
| 6542 | rm -rf conftest* | 
|---|
| 6543 | ac_cv_func_alloca_works=no | 
|---|
| 6544 | fi | 
|---|
| 6545 | rm -f conftest* | 
|---|
| 6546 | fi | 
|---|
| 6547 |  | 
|---|
| 6548 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 | 
|---|
| 6549 | if test $ac_cv_func_alloca_works = yes; then | 
|---|
| 6550 | cat >> confdefs.h <<\EOF | 
|---|
| 6551 | #define HAVE_ALLOCA 1 | 
|---|
| 6552 | EOF | 
|---|
| 6553 |  | 
|---|
| 6554 | fi | 
|---|
| 6555 |  | 
|---|
| 6556 | if test $ac_cv_func_alloca_works = no; then | 
|---|
| 6557 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | 
|---|
| 6558 | # that cause trouble.  Some versions do not even contain alloca or | 
|---|
| 6559 | # contain a buggy version.  If you still want to use their alloca, | 
|---|
| 6560 | # use ar to extract alloca.o from them instead of compiling alloca.c. | 
|---|
| 6561 | ALLOCA=alloca.${ac_objext} | 
|---|
| 6562 | cat >> confdefs.h <<\EOF | 
|---|
| 6563 | #define C_ALLOCA 1 | 
|---|
| 6564 | EOF | 
|---|
| 6565 |  | 
|---|
| 6566 |  | 
|---|
| 6567 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | 
|---|
| 6568 | echo "configure:6569: checking whether alloca needs Cray hooks" >&5 | 
|---|
| 6569 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then | 
|---|
| 6570 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6571 | else | 
|---|
| 6572 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6573 | #line 6574 "configure" | 
|---|
| 6574 | #include "confdefs.h" | 
|---|
| 6575 | #if defined(CRAY) && ! defined(CRAY2) | 
|---|
| 6576 | webecray | 
|---|
| 6577 | #else | 
|---|
| 6578 | wenotbecray | 
|---|
| 6579 | #endif | 
|---|
| 6580 |  | 
|---|
| 6581 | EOF | 
|---|
| 6582 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|---|
| 6583 | egrep "webecray" >/dev/null 2>&1; then | 
|---|
| 6584 | rm -rf conftest* | 
|---|
| 6585 | ac_cv_os_cray=yes | 
|---|
| 6586 | else | 
|---|
| 6587 | rm -rf conftest* | 
|---|
| 6588 | ac_cv_os_cray=no | 
|---|
| 6589 | fi | 
|---|
| 6590 | rm -f conftest* | 
|---|
| 6591 |  | 
|---|
| 6592 | fi | 
|---|
| 6593 |  | 
|---|
| 6594 | echo "$ac_t""$ac_cv_os_cray" 1>&6 | 
|---|
| 6595 | if test $ac_cv_os_cray = yes; then | 
|---|
| 6596 | for ac_func in _getb67 GETB67 getb67; do | 
|---|
| 6597 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
|---|
| 6598 | echo "configure:6599: checking for $ac_func" >&5 | 
|---|
| 6599 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
|---|
| 6600 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6601 | else | 
|---|
| 6602 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6603 | #line 6604 "configure" | 
|---|
| 6604 | #include "confdefs.h" | 
|---|
| 6605 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 6606 | which can conflict with char $ac_func(); below.  */ | 
|---|
| 6607 | #include <assert.h> | 
|---|
| 6608 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 6609 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 6610 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 6611 | char $ac_func(); | 
|---|
| 6612 |  | 
|---|
| 6613 | int main() { | 
|---|
| 6614 |  | 
|---|
| 6615 | /* The GNU C library defines this for functions which it implements | 
|---|
| 6616 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 6617 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 6618 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
|---|
| 6619 | choke me | 
|---|
| 6620 | #else | 
|---|
| 6621 | $ac_func(); | 
|---|
| 6622 | #endif | 
|---|
| 6623 |  | 
|---|
| 6624 | ; return 0; } | 
|---|
| 6625 | EOF | 
|---|
| 6626 | if { (eval echo configure:6627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 6627 | rm -rf conftest* | 
|---|
| 6628 | eval "ac_cv_func_$ac_func=yes" | 
|---|
| 6629 | else | 
|---|
| 6630 | echo "configure: failed program was:" >&5 | 
|---|
| 6631 | cat conftest.$ac_ext >&5 | 
|---|
| 6632 | rm -rf conftest* | 
|---|
| 6633 | eval "ac_cv_func_$ac_func=no" | 
|---|
| 6634 | fi | 
|---|
| 6635 | rm -f conftest* | 
|---|
| 6636 | fi | 
|---|
| 6637 |  | 
|---|
| 6638 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
|---|
| 6639 | echo "$ac_t""yes" 1>&6 | 
|---|
| 6640 | cat >> confdefs.h <<EOF | 
|---|
| 6641 | #define CRAY_STACKSEG_END $ac_func | 
|---|
| 6642 | EOF | 
|---|
| 6643 |  | 
|---|
| 6644 | break | 
|---|
| 6645 | else | 
|---|
| 6646 | echo "$ac_t""no" 1>&6 | 
|---|
| 6647 | fi | 
|---|
| 6648 |  | 
|---|
| 6649 | done | 
|---|
| 6650 | fi | 
|---|
| 6651 |  | 
|---|
| 6652 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | 
|---|
| 6653 | echo "configure:6654: checking stack direction for C alloca" >&5 | 
|---|
| 6654 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then | 
|---|
| 6655 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6656 | else | 
|---|
| 6657 | if test "$cross_compiling" = yes; then | 
|---|
| 6658 | ac_cv_c_stack_direction=0 | 
|---|
| 6659 | else | 
|---|
| 6660 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6661 | #line 6662 "configure" | 
|---|
| 6662 | #include "confdefs.h" | 
|---|
| 6663 | find_stack_direction () | 
|---|
| 6664 | { | 
|---|
| 6665 | static char *addr = 0; | 
|---|
| 6666 | auto char dummy; | 
|---|
| 6667 | if (addr == 0) | 
|---|
| 6668 | { | 
|---|
| 6669 | addr = &dummy; | 
|---|
| 6670 | return find_stack_direction (); | 
|---|
| 6671 | } | 
|---|
| 6672 | else | 
|---|
| 6673 | return (&dummy > addr) ? 1 : -1; | 
|---|
| 6674 | } | 
|---|
| 6675 | main () | 
|---|
| 6676 | { | 
|---|
| 6677 | exit (find_stack_direction() < 0); | 
|---|
| 6678 | } | 
|---|
| 6679 | EOF | 
|---|
| 6680 | if { (eval echo configure:6681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
|---|
| 6681 | then | 
|---|
| 6682 | ac_cv_c_stack_direction=1 | 
|---|
| 6683 | else | 
|---|
| 6684 | echo "configure: failed program was:" >&5 | 
|---|
| 6685 | cat conftest.$ac_ext >&5 | 
|---|
| 6686 | rm -fr conftest* | 
|---|
| 6687 | ac_cv_c_stack_direction=-1 | 
|---|
| 6688 | fi | 
|---|
| 6689 | rm -fr conftest* | 
|---|
| 6690 | fi | 
|---|
| 6691 |  | 
|---|
| 6692 | fi | 
|---|
| 6693 |  | 
|---|
| 6694 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 | 
|---|
| 6695 | cat >> confdefs.h <<EOF | 
|---|
| 6696 | #define STACK_DIRECTION $ac_cv_c_stack_direction | 
|---|
| 6697 | EOF | 
|---|
| 6698 |  | 
|---|
| 6699 | fi | 
|---|
| 6700 |  | 
|---|
| 6701 |  | 
|---|
| 6702 | for ac_prog in perl | 
|---|
| 6703 | do | 
|---|
| 6704 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|---|
| 6705 | set dummy $ac_prog; ac_word=$2 | 
|---|
| 6706 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
|---|
| 6707 | echo "configure:6708: checking for $ac_word" >&5 | 
|---|
| 6708 | if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then | 
|---|
| 6709 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6710 | else | 
|---|
| 6711 | if test -n "$PERL"; then | 
|---|
| 6712 | ac_cv_prog_PERL="$PERL" # Let the user override the test. | 
|---|
| 6713 | else | 
|---|
| 6714 | IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" | 
|---|
| 6715 | ac_dummy="$PATH" | 
|---|
| 6716 | for ac_dir in $ac_dummy; do | 
|---|
| 6717 | test -z "$ac_dir" && ac_dir=. | 
|---|
| 6718 | if test -f $ac_dir/$ac_word -o \ | 
|---|
| 6719 | -f $ac_dir/$ac_word$ac_exeext ; then | 
|---|
| 6720 | ac_cv_prog_PERL="$ac_prog" | 
|---|
| 6721 | break | 
|---|
| 6722 | fi | 
|---|
| 6723 | done | 
|---|
| 6724 | IFS="$ac_save_ifs" | 
|---|
| 6725 | fi | 
|---|
| 6726 | fi | 
|---|
| 6727 | PERL="$ac_cv_prog_PERL" | 
|---|
| 6728 | if test -n "$PERL"; then | 
|---|
| 6729 | echo "$ac_t""$PERL" 1>&6 | 
|---|
| 6730 | else | 
|---|
| 6731 | echo "$ac_t""no" 1>&6 | 
|---|
| 6732 | fi | 
|---|
| 6733 |  | 
|---|
| 6734 | test -n "$PERL" && break | 
|---|
| 6735 | done | 
|---|
| 6736 | test -n "$PERL" || PERL="false" | 
|---|
| 6737 |  | 
|---|
| 6738 |  | 
|---|
| 6739 | SYSDEP_SOURCES= | 
|---|
| 6740 |  | 
|---|
| 6741 | case "${host}" in | 
|---|
| 6742 | i?86-*-linux*) | 
|---|
| 6743 | SIGNAL_HANDLER=include/i386-signal.h | 
|---|
| 6744 | ;; | 
|---|
| 6745 | sparc*-sun-solaris*) | 
|---|
| 6746 | SIGNAL_HANDLER=include/sparc-signal.h | 
|---|
| 6747 | ;; | 
|---|
| 6748 | # ia64-*) | 
|---|
| 6749 | #    SYSDEP_SOURCES=sysdep/ia64.c | 
|---|
| 6750 | #    test -d sysdep || mkdir sysdep | 
|---|
| 6751 | #    ;; | 
|---|
| 6752 | ia64-*-linux*) | 
|---|
| 6753 | SIGNAL_HANDLER=include/dwarf2-signal.h | 
|---|
| 6754 | ;; | 
|---|
| 6755 | powerpc-*-linux*) | 
|---|
| 6756 | SIGNAL_HANDLER=include/powerpc-signal.h | 
|---|
| 6757 | ;; | 
|---|
| 6758 | alpha*-*-linux*) | 
|---|
| 6759 | SIGNAL_HANDLER=include/dwarf2-signal.h | 
|---|
| 6760 | ;; | 
|---|
| 6761 | s390*-*-linux*) | 
|---|
| 6762 | SIGNAL_HANDLER=include/s390-signal.h | 
|---|
| 6763 | ;; | 
|---|
| 6764 | x86_64*-*-linux*) | 
|---|
| 6765 | SIGNAL_HANDLER=include/x86_64-signal.h | 
|---|
| 6766 | ;; | 
|---|
| 6767 | sparc*-*-linux*) | 
|---|
| 6768 | SIGNAL_HANDLER=include/dwarf2-signal.h | 
|---|
| 6769 | ;; | 
|---|
| 6770 | *mingw*) | 
|---|
| 6771 | SIGNAL_HANDLER=include/win32-signal.h | 
|---|
| 6772 | ;; | 
|---|
| 6773 | *) | 
|---|
| 6774 | SIGNAL_HANDLER=include/default-signal.h | 
|---|
| 6775 | ;; | 
|---|
| 6776 | esac | 
|---|
| 6777 |  | 
|---|
| 6778 | # If we're using sjlj exceptions, forget what we just learned. | 
|---|
| 6779 | if test "$enable_sjlj_exceptions" = yes; then | 
|---|
| 6780 | SIGNAL_HANDLER=include/default-signal.h | 
|---|
| 6781 | fi | 
|---|
| 6782 |  | 
|---|
| 6783 | # Define here any compiler flags that you need in order to make backtrace() work. | 
|---|
| 6784 | BACKTRACESPEC= | 
|---|
| 6785 | case "${host}" in | 
|---|
| 6786 | x86_64*-*-linux*) | 
|---|
| 6787 | BACKTRACESPEC=-fno-omit-frame-pointer | 
|---|
| 6788 | ;; | 
|---|
| 6789 | esac | 
|---|
| 6790 |  | 
|---|
| 6791 |  | 
|---|
| 6792 |  | 
|---|
| 6793 |  | 
|---|
| 6794 |  | 
|---|
| 6795 |  | 
|---|
| 6796 | if test "${multilib}" = "yes"; then | 
|---|
| 6797 | multilib_arg="--enable-multilib" | 
|---|
| 6798 | else | 
|---|
| 6799 | multilib_arg= | 
|---|
| 6800 | fi | 
|---|
| 6801 |  | 
|---|
| 6802 | # If we find X, set shell vars x_includes and x_libraries to the | 
|---|
| 6803 | # paths, otherwise set no_x=yes. | 
|---|
| 6804 | # Uses ac_ vars as temps to allow command line to override cache and checks. | 
|---|
| 6805 | # --without-x overrides everything else, but does not touch the cache. | 
|---|
| 6806 | echo $ac_n "checking for X""... $ac_c" 1>&6 | 
|---|
| 6807 | echo "configure:6808: checking for X" >&5 | 
|---|
| 6808 |  | 
|---|
| 6809 | # Check whether --with-x or --without-x was given. | 
|---|
| 6810 | if test "${with_x+set}" = set; then | 
|---|
| 6811 | withval="$with_x" | 
|---|
| 6812 | : | 
|---|
| 6813 | fi | 
|---|
| 6814 |  | 
|---|
| 6815 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | 
|---|
| 6816 | if test "x$with_x" = xno; then | 
|---|
| 6817 | # The user explicitly disabled X. | 
|---|
| 6818 | have_x=disabled | 
|---|
| 6819 | else | 
|---|
| 6820 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | 
|---|
| 6821 | # Both variables are already set. | 
|---|
| 6822 | have_x=yes | 
|---|
| 6823 | else | 
|---|
| 6824 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | 
|---|
| 6825 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 6826 | else | 
|---|
| 6827 | # One or both of the vars are not set, and there is no cached value. | 
|---|
| 6828 | ac_x_includes=NO ac_x_libraries=NO | 
|---|
| 6829 | rm -fr conftestdir | 
|---|
| 6830 | if mkdir conftestdir; then | 
|---|
| 6831 | cd conftestdir | 
|---|
| 6832 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | 
|---|
| 6833 | cat > Imakefile <<'EOF' | 
|---|
| 6834 | acfindx: | 
|---|
| 6835 | @sh -c 'echo \'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${DESTDIR}${USRLIBDIR}"; ac_im_libdir="${DESTDIR}${LIBDIR}"\'' | 
|---|
| 6836 | EOF | 
|---|
| 6837 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | 
|---|
| 6838 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | 
|---|
| 6839 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | 
|---|
| 6840 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | 
|---|
| 6841 | for ac_extension in a so sl; do | 
|---|
| 6842 | if test ! -f $ac_im_usrlibdir/${ac_cv_libpre}X11.$ac_extension && | 
|---|
| 6843 | test -f $ac_im_libdir/${ac_cv_libpre}X11.$ac_extension; then | 
|---|
| 6844 | ac_im_usrlibdir=$ac_im_libdir; break | 
|---|
| 6845 | fi | 
|---|
| 6846 | done | 
|---|
| 6847 | # Screen out bogus values from the imake configuration.  They are | 
|---|
| 6848 | # bogus both because they are the default anyway, and because | 
|---|
| 6849 | # using them would break gcc on systems where it needs fixed includes. | 
|---|
| 6850 | case "$ac_im_incroot" in | 
|---|
| 6851 | /usr/include) ;; | 
|---|
| 6852 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | 
|---|
| 6853 | esac | 
|---|
| 6854 | case "$ac_im_usrlibdir" in | 
|---|
| 6855 | /usr/lib | /lib) ;; | 
|---|
| 6856 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | 
|---|
| 6857 | esac | 
|---|
| 6858 | fi | 
|---|
| 6859 | cd .. | 
|---|
| 6860 | rm -fr conftestdir | 
|---|
| 6861 | fi | 
|---|
| 6862 |  | 
|---|
| 6863 | if test "$ac_x_includes" = NO; then | 
|---|
| 6864 | # Guess where to find include files, by looking for this one X11 .h file. | 
|---|
| 6865 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | 
|---|
| 6866 |  | 
|---|
| 6867 | # First, try using that file with no special directory specified. | 
|---|
| 6868 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6869 | #include <sys/types.h> | 
|---|
| 6870 | #line 6871 "configure" | 
|---|
| 6871 | #include "confdefs.h" | 
|---|
| 6872 | #include <$x_direct_test_include> | 
|---|
| 6873 | EOF | 
|---|
| 6874 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
|---|
| 6875 | { (eval echo configure:6876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
|---|
| 6876 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
|---|
| 6877 | if test -z "$ac_err"; then | 
|---|
| 6878 | rm -rf conftest* | 
|---|
| 6879 | # We can compile using X headers with no special include directory. | 
|---|
| 6880 | ac_x_includes= | 
|---|
| 6881 | else | 
|---|
| 6882 | echo "$ac_err" >&5 | 
|---|
| 6883 | echo "configure: failed program was:" >&5 | 
|---|
| 6884 | cat conftest.$ac_ext >&5 | 
|---|
| 6885 | rm -rf conftest* | 
|---|
| 6886 | # Look for the header file in a standard set of common directories. | 
|---|
| 6887 | # Check X11 before X11Rn because it is often a symlink to the current release. | 
|---|
| 6888 | for ac_dir in               \ | 
|---|
| 6889 | /usr/X11/include          \ | 
|---|
| 6890 | /usr/X11R6/include        \ | 
|---|
| 6891 | /usr/X11R5/include        \ | 
|---|
| 6892 | /usr/X11R4/include        \ | 
|---|
| 6893 | \ | 
|---|
| 6894 | /usr/include/X11          \ | 
|---|
| 6895 | /usr/include/X11R6        \ | 
|---|
| 6896 | /usr/include/X11R5        \ | 
|---|
| 6897 | /usr/include/X11R4        \ | 
|---|
| 6898 | \ | 
|---|
| 6899 | /usr/local/X11/include    \ | 
|---|
| 6900 | /usr/local/X11R6/include  \ | 
|---|
| 6901 | /usr/local/X11R5/include  \ | 
|---|
| 6902 | /usr/local/X11R4/include  \ | 
|---|
| 6903 | \ | 
|---|
| 6904 | /usr/local/include/X11    \ | 
|---|
| 6905 | /usr/local/include/X11R6  \ | 
|---|
| 6906 | /usr/local/include/X11R5  \ | 
|---|
| 6907 | /usr/local/include/X11R4  \ | 
|---|
| 6908 | \ | 
|---|
| 6909 | /usr/X386/include         \ | 
|---|
| 6910 | /usr/x386/include         \ | 
|---|
| 6911 | /usr/XFree86/include/X11  \ | 
|---|
| 6912 | \ | 
|---|
| 6913 | /usr/include              \ | 
|---|
| 6914 | /usr/local/include        \ | 
|---|
| 6915 | /usr/unsupported/include  \ | 
|---|
| 6916 | /usr/athena/include       \ | 
|---|
| 6917 | /usr/local/x11r5/include  \ | 
|---|
| 6918 | /usr/lpp/Xamples/include  \ | 
|---|
| 6919 | \ | 
|---|
| 6920 | /usr/openwin/include      \ | 
|---|
| 6921 | /usr/openwin/share/include \ | 
|---|
| 6922 | ; \ | 
|---|
| 6923 | do | 
|---|
| 6924 | if test -r "$ac_dir/$x_direct_test_include"; then | 
|---|
| 6925 | ac_x_includes=$ac_dir | 
|---|
| 6926 | break | 
|---|
| 6927 | fi | 
|---|
| 6928 | done | 
|---|
| 6929 | fi | 
|---|
| 6930 | rm -f conftest* | 
|---|
| 6931 | fi # $ac_x_includes = NO | 
|---|
| 6932 |  | 
|---|
| 6933 | if test "$ac_x_libraries" = NO; then | 
|---|
| 6934 | # Check for the libraries. | 
|---|
| 6935 |  | 
|---|
| 6936 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | 
|---|
| 6937 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | 
|---|
| 6938 |  | 
|---|
| 6939 | # See if we find them without any special options. | 
|---|
| 6940 | # Don't add to $LIBS permanently. | 
|---|
| 6941 | ac_save_LIBS="$LIBS" | 
|---|
| 6942 | LIBS="-l$x_direct_test_library $LIBS" | 
|---|
| 6943 | cat > conftest.$ac_ext <<EOF | 
|---|
| 6944 | #line 6945 "configure" | 
|---|
| 6945 | #include "confdefs.h" | 
|---|
| 6946 |  | 
|---|
| 6947 | int main() { | 
|---|
| 6948 | ${x_direct_test_function}() | 
|---|
| 6949 | ; return 0; } | 
|---|
| 6950 | EOF | 
|---|
| 6951 | if { (eval echo configure:6952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 6952 | rm -rf conftest* | 
|---|
| 6953 | LIBS="$ac_save_LIBS" | 
|---|
| 6954 | # We can link X programs with no special library path. | 
|---|
| 6955 | ac_x_libraries= | 
|---|
| 6956 | else | 
|---|
| 6957 | echo "configure: failed program was:" >&5 | 
|---|
| 6958 | cat conftest.$ac_ext >&5 | 
|---|
| 6959 | rm -rf conftest* | 
|---|
| 6960 | LIBS="$ac_save_LIBS" | 
|---|
| 6961 | # First see if replacing the include by lib works. | 
|---|
| 6962 | # Check X11 before X11Rn because it is often a symlink to the current release. | 
|---|
| 6963 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | 
|---|
| 6964 | /usr/X11/lib          \ | 
|---|
| 6965 | /usr/X11R6/lib        \ | 
|---|
| 6966 | /usr/X11R5/lib        \ | 
|---|
| 6967 | /usr/X11R4/lib        \ | 
|---|
| 6968 | \ | 
|---|
| 6969 | /usr/lib/X11          \ | 
|---|
| 6970 | /usr/lib/X11R6        \ | 
|---|
| 6971 | /usr/lib/X11R5        \ | 
|---|
| 6972 | /usr/lib/X11R4        \ | 
|---|
| 6973 | \ | 
|---|
| 6974 | /usr/local/X11/lib    \ | 
|---|
| 6975 | /usr/local/X11R6/lib  \ | 
|---|
| 6976 | /usr/local/X11R5/lib  \ | 
|---|
| 6977 | /usr/local/X11R4/lib  \ | 
|---|
| 6978 | \ | 
|---|
| 6979 | /usr/local/lib/X11    \ | 
|---|
| 6980 | /usr/local/lib/X11R6  \ | 
|---|
| 6981 | /usr/local/lib/X11R5  \ | 
|---|
| 6982 | /usr/local/lib/X11R4  \ | 
|---|
| 6983 | \ | 
|---|
| 6984 | /usr/X386/lib         \ | 
|---|
| 6985 | /usr/x386/lib         \ | 
|---|
| 6986 | /usr/XFree86/lib/X11  \ | 
|---|
| 6987 | \ | 
|---|
| 6988 | /usr/lib              \ | 
|---|
| 6989 | /usr/local/lib        \ | 
|---|
| 6990 | /usr/unsupported/lib  \ | 
|---|
| 6991 | /usr/athena/lib       \ | 
|---|
| 6992 | /usr/local/x11r5/lib  \ | 
|---|
| 6993 | /usr/lpp/Xamples/lib  \ | 
|---|
| 6994 | /lib/usr/lib/X11      \ | 
|---|
| 6995 | \ | 
|---|
| 6996 | /usr/openwin/lib      \ | 
|---|
| 6997 | /usr/openwin/share/lib \ | 
|---|
| 6998 | ; \ | 
|---|
| 6999 | do | 
|---|
| 7000 | for ac_extension in a so sl; do | 
|---|
| 7001 | if test -r $ac_dir/${ac_cv_libpre}${x_direct_test_library}.$ac_extension; then | 
|---|
| 7002 | ac_x_libraries=$ac_dir | 
|---|
| 7003 | break 2 | 
|---|
| 7004 | fi | 
|---|
| 7005 | done | 
|---|
| 7006 | done | 
|---|
| 7007 | fi | 
|---|
| 7008 | rm -f conftest* | 
|---|
| 7009 | fi # $ac_x_libraries = NO | 
|---|
| 7010 |  | 
|---|
| 7011 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then | 
|---|
| 7012 | # Didn't find X anywhere.  Cache the known absence of X. | 
|---|
| 7013 | ac_cv_have_x="have_x=no" | 
|---|
| 7014 | else | 
|---|
| 7015 | # Record where we found X for the cache. | 
|---|
| 7016 | ac_cv_have_x="have_x=yes \ | 
|---|
| 7017 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | 
|---|
| 7018 | fi | 
|---|
| 7019 | fi | 
|---|
| 7020 | fi | 
|---|
| 7021 | eval "$ac_cv_have_x" | 
|---|
| 7022 | fi # $with_x != no | 
|---|
| 7023 |  | 
|---|
| 7024 | if test "$have_x" != yes; then | 
|---|
| 7025 | echo "$ac_t""$have_x" 1>&6 | 
|---|
| 7026 | no_x=yes | 
|---|
| 7027 | else | 
|---|
| 7028 | # If each of the values was on the command line, it overrides each guess. | 
|---|
| 7029 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | 
|---|
| 7030 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | 
|---|
| 7031 | # Update the cache value to reflect the command line values. | 
|---|
| 7032 | ac_cv_have_x="have_x=yes \ | 
|---|
| 7033 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | 
|---|
| 7034 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | 
|---|
| 7035 | fi | 
|---|
| 7036 |  | 
|---|
| 7037 | if test "$no_x" = yes; then | 
|---|
| 7038 | # Not all programs may use this symbol, but it does not hurt to define it. | 
|---|
| 7039 | cat >> confdefs.h <<\EOF | 
|---|
| 7040 | #define X_DISPLAY_MISSING 1 | 
|---|
| 7041 | EOF | 
|---|
| 7042 |  | 
|---|
| 7043 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | 
|---|
| 7044 | else | 
|---|
| 7045 | if test -n "$x_includes"; then | 
|---|
| 7046 | X_CFLAGS="$X_CFLAGS -I$x_includes" | 
|---|
| 7047 | fi | 
|---|
| 7048 | test -n "$x_includes" && CPPFLAGS="$CPPFLAGS -I$x_includes" | 
|---|
| 7049 |  | 
|---|
| 7050 | # It would also be nice to do this for all -L options, not just this one. | 
|---|
| 7051 | if test -n "$x_libraries"; then | 
|---|
| 7052 | X_LIBS="$X_LIBS -L$x_libraries" | 
|---|
| 7053 | # For Solaris; some versions of Sun CC require a space after -R and | 
|---|
| 7054 | # others require no space.  Words are not sufficient . . . . | 
|---|
| 7055 | case "`(uname -sr) 2>/dev/null`" in | 
|---|
| 7056 | "SunOS 5"*) | 
|---|
| 7057 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | 
|---|
| 7058 | echo "configure:7059: checking whether -R must be followed by a space" >&5 | 
|---|
| 7059 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" | 
|---|
| 7060 | cat > conftest.$ac_ext <<EOF | 
|---|
| 7061 | #line 7062 "configure" | 
|---|
| 7062 | #include "confdefs.h" | 
|---|
| 7063 |  | 
|---|
| 7064 | int main() { | 
|---|
| 7065 |  | 
|---|
| 7066 | ; return 0; } | 
|---|
| 7067 | EOF | 
|---|
| 7068 | if { (eval echo configure:7069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 7069 | rm -rf conftest* | 
|---|
| 7070 | ac_R_nospace=yes | 
|---|
| 7071 | else | 
|---|
| 7072 | echo "configure: failed program was:" >&5 | 
|---|
| 7073 | cat conftest.$ac_ext >&5 | 
|---|
| 7074 | rm -rf conftest* | 
|---|
| 7075 | ac_R_nospace=no | 
|---|
| 7076 | fi | 
|---|
| 7077 | rm -f conftest* | 
|---|
| 7078 | if test $ac_R_nospace = yes; then | 
|---|
| 7079 | echo "$ac_t""no" 1>&6 | 
|---|
| 7080 | X_LIBS="$X_LIBS -R$x_libraries" | 
|---|
| 7081 | else | 
|---|
| 7082 | LIBS="$ac_xsave_LIBS -R $x_libraries" | 
|---|
| 7083 | cat > conftest.$ac_ext <<EOF | 
|---|
| 7084 | #line 7085 "configure" | 
|---|
| 7085 | #include "confdefs.h" | 
|---|
| 7086 |  | 
|---|
| 7087 | int main() { | 
|---|
| 7088 |  | 
|---|
| 7089 | ; return 0; } | 
|---|
| 7090 | EOF | 
|---|
| 7091 | if { (eval echo configure:7092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 7092 | rm -rf conftest* | 
|---|
| 7093 | ac_R_space=yes | 
|---|
| 7094 | else | 
|---|
| 7095 | echo "configure: failed program was:" >&5 | 
|---|
| 7096 | cat conftest.$ac_ext >&5 | 
|---|
| 7097 | rm -rf conftest* | 
|---|
| 7098 | ac_R_space=no | 
|---|
| 7099 | fi | 
|---|
| 7100 | rm -f conftest* | 
|---|
| 7101 | if test $ac_R_space = yes; then | 
|---|
| 7102 | echo "$ac_t""yes" 1>&6 | 
|---|
| 7103 | X_LIBS="$X_LIBS -R $x_libraries" | 
|---|
| 7104 | else | 
|---|
| 7105 | echo "$ac_t""neither works" 1>&6 | 
|---|
| 7106 | fi | 
|---|
| 7107 | fi | 
|---|
| 7108 | LIBS="$ac_xsave_LIBS" | 
|---|
| 7109 | esac | 
|---|
| 7110 | fi | 
|---|
| 7111 |  | 
|---|
| 7112 | # Check for system-dependent libraries X programs must link with. | 
|---|
| 7113 | # Do this before checking for the system-independent R6 libraries | 
|---|
| 7114 | # (-lICE), since we may need -lsocket or whatever for X linking. | 
|---|
| 7115 |  | 
|---|
| 7116 | if test "$ISC" = yes; then | 
|---|
| 7117 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | 
|---|
| 7118 | else | 
|---|
| 7119 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | 
|---|
| 7120 | # libraries were built with DECnet support.  And karl@cs.umb.edu says | 
|---|
| 7121 | # the Alpha needs dnet_stub (dnet does not exist). | 
|---|
| 7122 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | 
|---|
| 7123 | echo "configure:7124: checking for dnet_ntoa in -ldnet" >&5 | 
|---|
| 7124 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` | 
|---|
| 7125 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|---|
| 7126 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 7127 | else | 
|---|
| 7128 | ac_save_LIBS="$LIBS" | 
|---|
| 7129 | LIBS="-ldnet  $LIBS" | 
|---|
| 7130 | cat > conftest.$ac_ext <<EOF | 
|---|
| 7131 | #line 7132 "configure" | 
|---|
| 7132 | #include "confdefs.h" | 
|---|
| 7133 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 7134 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 7135 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 7136 | char dnet_ntoa(); | 
|---|
| 7137 |  | 
|---|
| 7138 | int main() { | 
|---|
| 7139 | dnet_ntoa() | 
|---|
| 7140 | ; return 0; } | 
|---|
| 7141 | EOF | 
|---|
| 7142 | if { (eval echo configure:7143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 7143 | rm -rf conftest* | 
|---|
| 7144 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|---|
| 7145 | else | 
|---|
| 7146 | echo "configure: failed program was:" >&5 | 
|---|
| 7147 | cat conftest.$ac_ext >&5 | 
|---|
| 7148 | rm -rf conftest* | 
|---|
| 7149 | eval "ac_cv_lib_$ac_lib_var=no" | 
|---|
| 7150 | fi | 
|---|
| 7151 | rm -f conftest* | 
|---|
| 7152 | LIBS="$ac_save_LIBS" | 
|---|
| 7153 |  | 
|---|
| 7154 | fi | 
|---|
| 7155 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|---|
| 7156 | echo "$ac_t""yes" 1>&6 | 
|---|
| 7157 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | 
|---|
| 7158 | else | 
|---|
| 7159 | echo "$ac_t""no" 1>&6 | 
|---|
| 7160 | fi | 
|---|
| 7161 |  | 
|---|
| 7162 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | 
|---|
| 7163 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | 
|---|
| 7164 | echo "configure:7165: checking for dnet_ntoa in -ldnet_stub" >&5 | 
|---|
| 7165 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` | 
|---|
| 7166 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|---|
| 7167 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 7168 | else | 
|---|
| 7169 | ac_save_LIBS="$LIBS" | 
|---|
| 7170 | LIBS="-ldnet_stub  $LIBS" | 
|---|
| 7171 | cat > conftest.$ac_ext <<EOF | 
|---|
| 7172 | #line 7173 "configure" | 
|---|
| 7173 | #include "confdefs.h" | 
|---|
| 7174 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 7175 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 7176 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 7177 | char dnet_ntoa(); | 
|---|
| 7178 |  | 
|---|
| 7179 | int main() { | 
|---|
| 7180 | dnet_ntoa() | 
|---|
| 7181 | ; return 0; } | 
|---|
| 7182 | EOF | 
|---|
| 7183 | if { (eval echo configure:7184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 7184 | rm -rf conftest* | 
|---|
| 7185 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|---|
| 7186 | else | 
|---|
| 7187 | echo "configure: failed program was:" >&5 | 
|---|
| 7188 | cat conftest.$ac_ext >&5 | 
|---|
| 7189 | rm -rf conftest* | 
|---|
| 7190 | eval "ac_cv_lib_$ac_lib_var=no" | 
|---|
| 7191 | fi | 
|---|
| 7192 | rm -f conftest* | 
|---|
| 7193 | LIBS="$ac_save_LIBS" | 
|---|
| 7194 |  | 
|---|
| 7195 | fi | 
|---|
| 7196 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|---|
| 7197 | echo "$ac_t""yes" 1>&6 | 
|---|
| 7198 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | 
|---|
| 7199 | else | 
|---|
| 7200 | echo "$ac_t""no" 1>&6 | 
|---|
| 7201 | fi | 
|---|
| 7202 |  | 
|---|
| 7203 | fi | 
|---|
| 7204 |  | 
|---|
| 7205 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | 
|---|
| 7206 | # to get the SysV transport functions. | 
|---|
| 7207 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | 
|---|
| 7208 | # needs -lnsl. | 
|---|
| 7209 | # The nsl library prevents programs from opening the X display | 
|---|
| 7210 | # on Irix 5.2, according to dickey@clark.net. | 
|---|
| 7211 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | 
|---|
| 7212 | echo "configure:7213: checking for gethostbyname" >&5 | 
|---|
| 7213 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then | 
|---|
| 7214 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 7215 | else | 
|---|
| 7216 | cat > conftest.$ac_ext <<EOF | 
|---|
| 7217 | #line 7218 "configure" | 
|---|
| 7218 | #include "confdefs.h" | 
|---|
| 7219 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 7220 | which can conflict with char gethostbyname(); below.  */ | 
|---|
| 7221 | #include <assert.h> | 
|---|
| 7222 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 7223 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 7224 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 7225 | char gethostbyname(); | 
|---|
| 7226 |  | 
|---|
| 7227 | int main() { | 
|---|
| 7228 |  | 
|---|
| 7229 | /* The GNU C library defines this for functions which it implements | 
|---|
| 7230 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 7231 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 7232 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | 
|---|
| 7233 | choke me | 
|---|
| 7234 | #else | 
|---|
| 7235 | gethostbyname(); | 
|---|
| 7236 | #endif | 
|---|
| 7237 |  | 
|---|
| 7238 | ; return 0; } | 
|---|
| 7239 | EOF | 
|---|
| 7240 | if { (eval echo configure:7241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 7241 | rm -rf conftest* | 
|---|
| 7242 | eval "ac_cv_func_gethostbyname=yes" | 
|---|
| 7243 | else | 
|---|
| 7244 | echo "configure: failed program was:" >&5 | 
|---|
| 7245 | cat conftest.$ac_ext >&5 | 
|---|
| 7246 | rm -rf conftest* | 
|---|
| 7247 | eval "ac_cv_func_gethostbyname=no" | 
|---|
| 7248 | fi | 
|---|
| 7249 | rm -f conftest* | 
|---|
| 7250 | fi | 
|---|
| 7251 |  | 
|---|
| 7252 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | 
|---|
| 7253 | echo "$ac_t""yes" 1>&6 | 
|---|
| 7254 | : | 
|---|
| 7255 | else | 
|---|
| 7256 | echo "$ac_t""no" 1>&6 | 
|---|
| 7257 | fi | 
|---|
| 7258 |  | 
|---|
| 7259 | if test $ac_cv_func_gethostbyname = no; then | 
|---|
| 7260 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | 
|---|
| 7261 | echo "configure:7262: checking for gethostbyname in -lnsl" >&5 | 
|---|
| 7262 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` | 
|---|
| 7263 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|---|
| 7264 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 7265 | else | 
|---|
| 7266 | ac_save_LIBS="$LIBS" | 
|---|
| 7267 | LIBS="-lnsl  $LIBS" | 
|---|
| 7268 | cat > conftest.$ac_ext <<EOF | 
|---|
| 7269 | #line 7270 "configure" | 
|---|
| 7270 | #include "confdefs.h" | 
|---|
| 7271 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 7272 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 7273 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 7274 | char gethostbyname(); | 
|---|
| 7275 |  | 
|---|
| 7276 | int main() { | 
|---|
| 7277 | gethostbyname() | 
|---|
| 7278 | ; return 0; } | 
|---|
| 7279 | EOF | 
|---|
| 7280 | if { (eval echo configure:7281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 7281 | rm -rf conftest* | 
|---|
| 7282 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|---|
| 7283 | else | 
|---|
| 7284 | echo "configure: failed program was:" >&5 | 
|---|
| 7285 | cat conftest.$ac_ext >&5 | 
|---|
| 7286 | rm -rf conftest* | 
|---|
| 7287 | eval "ac_cv_lib_$ac_lib_var=no" | 
|---|
| 7288 | fi | 
|---|
| 7289 | rm -f conftest* | 
|---|
| 7290 | LIBS="$ac_save_LIBS" | 
|---|
| 7291 |  | 
|---|
| 7292 | fi | 
|---|
| 7293 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|---|
| 7294 | echo "$ac_t""yes" 1>&6 | 
|---|
| 7295 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | 
|---|
| 7296 | else | 
|---|
| 7297 | echo "$ac_t""no" 1>&6 | 
|---|
| 7298 | fi | 
|---|
| 7299 |  | 
|---|
| 7300 | fi | 
|---|
| 7301 |  | 
|---|
| 7302 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | 
|---|
| 7303 | # socket/setsockopt and other routines are undefined under SCO ODT | 
|---|
| 7304 | # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary | 
|---|
| 7305 | # on later versions), says simon@lia.di.epfl.ch: it contains | 
|---|
| 7306 | # gethostby* variants that don't use the nameserver (or something). | 
|---|
| 7307 | # -lsocket must be given before -lnsl if both are needed. | 
|---|
| 7308 | # We assume that if connect needs -lnsl, so does gethostbyname. | 
|---|
| 7309 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | 
|---|
| 7310 | echo "configure:7311: checking for connect" >&5 | 
|---|
| 7311 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then | 
|---|
| 7312 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 7313 | else | 
|---|
| 7314 | cat > conftest.$ac_ext <<EOF | 
|---|
| 7315 | #line 7316 "configure" | 
|---|
| 7316 | #include "confdefs.h" | 
|---|
| 7317 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 7318 | which can conflict with char connect(); below.  */ | 
|---|
| 7319 | #include <assert.h> | 
|---|
| 7320 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 7321 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 7322 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 7323 | char connect(); | 
|---|
| 7324 |  | 
|---|
| 7325 | int main() { | 
|---|
| 7326 |  | 
|---|
| 7327 | /* The GNU C library defines this for functions which it implements | 
|---|
| 7328 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 7329 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 7330 | #if defined (__stub_connect) || defined (__stub___connect) | 
|---|
| 7331 | choke me | 
|---|
| 7332 | #else | 
|---|
| 7333 | connect(); | 
|---|
| 7334 | #endif | 
|---|
| 7335 |  | 
|---|
| 7336 | ; return 0; } | 
|---|
| 7337 | EOF | 
|---|
| 7338 | if { (eval echo configure:7339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 7339 | rm -rf conftest* | 
|---|
| 7340 | eval "ac_cv_func_connect=yes" | 
|---|
| 7341 | else | 
|---|
| 7342 | echo "configure: failed program was:" >&5 | 
|---|
| 7343 | cat conftest.$ac_ext >&5 | 
|---|
| 7344 | rm -rf conftest* | 
|---|
| 7345 | eval "ac_cv_func_connect=no" | 
|---|
| 7346 | fi | 
|---|
| 7347 | rm -f conftest* | 
|---|
| 7348 | fi | 
|---|
| 7349 |  | 
|---|
| 7350 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | 
|---|
| 7351 | echo "$ac_t""yes" 1>&6 | 
|---|
| 7352 | : | 
|---|
| 7353 | else | 
|---|
| 7354 | echo "$ac_t""no" 1>&6 | 
|---|
| 7355 | fi | 
|---|
| 7356 |  | 
|---|
| 7357 | if test $ac_cv_func_connect = no; then | 
|---|
| 7358 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | 
|---|
| 7359 | echo "configure:7360: checking for connect in -lsocket" >&5 | 
|---|
| 7360 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` | 
|---|
| 7361 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|---|
| 7362 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 7363 | else | 
|---|
| 7364 | ac_save_LIBS="$LIBS" | 
|---|
| 7365 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | 
|---|
| 7366 | cat > conftest.$ac_ext <<EOF | 
|---|
| 7367 | #line 7368 "configure" | 
|---|
| 7368 | #include "confdefs.h" | 
|---|
| 7369 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 7370 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 7371 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 7372 | char connect(); | 
|---|
| 7373 |  | 
|---|
| 7374 | int main() { | 
|---|
| 7375 | connect() | 
|---|
| 7376 | ; return 0; } | 
|---|
| 7377 | EOF | 
|---|
| 7378 | if { (eval echo configure:7379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 7379 | rm -rf conftest* | 
|---|
| 7380 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|---|
| 7381 | else | 
|---|
| 7382 | echo "configure: failed program was:" >&5 | 
|---|
| 7383 | cat conftest.$ac_ext >&5 | 
|---|
| 7384 | rm -rf conftest* | 
|---|
| 7385 | eval "ac_cv_lib_$ac_lib_var=no" | 
|---|
| 7386 | fi | 
|---|
| 7387 | rm -f conftest* | 
|---|
| 7388 | LIBS="$ac_save_LIBS" | 
|---|
| 7389 |  | 
|---|
| 7390 | fi | 
|---|
| 7391 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|---|
| 7392 | echo "$ac_t""yes" 1>&6 | 
|---|
| 7393 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | 
|---|
| 7394 | else | 
|---|
| 7395 | echo "$ac_t""no" 1>&6 | 
|---|
| 7396 | fi | 
|---|
| 7397 |  | 
|---|
| 7398 | fi | 
|---|
| 7399 |  | 
|---|
| 7400 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | 
|---|
| 7401 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | 
|---|
| 7402 | echo "configure:7403: checking for remove" >&5 | 
|---|
| 7403 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then | 
|---|
| 7404 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 7405 | else | 
|---|
| 7406 | cat > conftest.$ac_ext <<EOF | 
|---|
| 7407 | #line 7408 "configure" | 
|---|
| 7408 | #include "confdefs.h" | 
|---|
| 7409 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 7410 | which can conflict with char remove(); below.  */ | 
|---|
| 7411 | #include <assert.h> | 
|---|
| 7412 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 7413 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 7414 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 7415 | char remove(); | 
|---|
| 7416 |  | 
|---|
| 7417 | int main() { | 
|---|
| 7418 |  | 
|---|
| 7419 | /* The GNU C library defines this for functions which it implements | 
|---|
| 7420 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 7421 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 7422 | #if defined (__stub_remove) || defined (__stub___remove) | 
|---|
| 7423 | choke me | 
|---|
| 7424 | #else | 
|---|
| 7425 | remove(); | 
|---|
| 7426 | #endif | 
|---|
| 7427 |  | 
|---|
| 7428 | ; return 0; } | 
|---|
| 7429 | EOF | 
|---|
| 7430 | if { (eval echo configure:7431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 7431 | rm -rf conftest* | 
|---|
| 7432 | eval "ac_cv_func_remove=yes" | 
|---|
| 7433 | else | 
|---|
| 7434 | echo "configure: failed program was:" >&5 | 
|---|
| 7435 | cat conftest.$ac_ext >&5 | 
|---|
| 7436 | rm -rf conftest* | 
|---|
| 7437 | eval "ac_cv_func_remove=no" | 
|---|
| 7438 | fi | 
|---|
| 7439 | rm -f conftest* | 
|---|
| 7440 | fi | 
|---|
| 7441 |  | 
|---|
| 7442 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | 
|---|
| 7443 | echo "$ac_t""yes" 1>&6 | 
|---|
| 7444 | : | 
|---|
| 7445 | else | 
|---|
| 7446 | echo "$ac_t""no" 1>&6 | 
|---|
| 7447 | fi | 
|---|
| 7448 |  | 
|---|
| 7449 | if test $ac_cv_func_remove = no; then | 
|---|
| 7450 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | 
|---|
| 7451 | echo "configure:7452: checking for remove in -lposix" >&5 | 
|---|
| 7452 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` | 
|---|
| 7453 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|---|
| 7454 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 7455 | else | 
|---|
| 7456 | ac_save_LIBS="$LIBS" | 
|---|
| 7457 | LIBS="-lposix  $LIBS" | 
|---|
| 7458 | cat > conftest.$ac_ext <<EOF | 
|---|
| 7459 | #line 7460 "configure" | 
|---|
| 7460 | #include "confdefs.h" | 
|---|
| 7461 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 7462 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 7463 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 7464 | char remove(); | 
|---|
| 7465 |  | 
|---|
| 7466 | int main() { | 
|---|
| 7467 | remove() | 
|---|
| 7468 | ; return 0; } | 
|---|
| 7469 | EOF | 
|---|
| 7470 | if { (eval echo configure:7471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 7471 | rm -rf conftest* | 
|---|
| 7472 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|---|
| 7473 | else | 
|---|
| 7474 | echo "configure: failed program was:" >&5 | 
|---|
| 7475 | cat conftest.$ac_ext >&5 | 
|---|
| 7476 | rm -rf conftest* | 
|---|
| 7477 | eval "ac_cv_lib_$ac_lib_var=no" | 
|---|
| 7478 | fi | 
|---|
| 7479 | rm -f conftest* | 
|---|
| 7480 | LIBS="$ac_save_LIBS" | 
|---|
| 7481 |  | 
|---|
| 7482 | fi | 
|---|
| 7483 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|---|
| 7484 | echo "$ac_t""yes" 1>&6 | 
|---|
| 7485 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | 
|---|
| 7486 | else | 
|---|
| 7487 | echo "$ac_t""no" 1>&6 | 
|---|
| 7488 | fi | 
|---|
| 7489 |  | 
|---|
| 7490 | fi | 
|---|
| 7491 |  | 
|---|
| 7492 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | 
|---|
| 7493 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | 
|---|
| 7494 | echo "configure:7495: checking for shmat" >&5 | 
|---|
| 7495 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then | 
|---|
| 7496 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 7497 | else | 
|---|
| 7498 | cat > conftest.$ac_ext <<EOF | 
|---|
| 7499 | #line 7500 "configure" | 
|---|
| 7500 | #include "confdefs.h" | 
|---|
| 7501 | /* System header to define __stub macros and hopefully few prototypes, | 
|---|
| 7502 | which can conflict with char shmat(); below.  */ | 
|---|
| 7503 | #include <assert.h> | 
|---|
| 7504 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 7505 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 7506 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 7507 | char shmat(); | 
|---|
| 7508 |  | 
|---|
| 7509 | int main() { | 
|---|
| 7510 |  | 
|---|
| 7511 | /* The GNU C library defines this for functions which it implements | 
|---|
| 7512 | to always fail with ENOSYS.  Some functions are actually named | 
|---|
| 7513 | something starting with __ and the normal name is an alias.  */ | 
|---|
| 7514 | #if defined (__stub_shmat) || defined (__stub___shmat) | 
|---|
| 7515 | choke me | 
|---|
| 7516 | #else | 
|---|
| 7517 | shmat(); | 
|---|
| 7518 | #endif | 
|---|
| 7519 |  | 
|---|
| 7520 | ; return 0; } | 
|---|
| 7521 | EOF | 
|---|
| 7522 | if { (eval echo configure:7523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 7523 | rm -rf conftest* | 
|---|
| 7524 | eval "ac_cv_func_shmat=yes" | 
|---|
| 7525 | else | 
|---|
| 7526 | echo "configure: failed program was:" >&5 | 
|---|
| 7527 | cat conftest.$ac_ext >&5 | 
|---|
| 7528 | rm -rf conftest* | 
|---|
| 7529 | eval "ac_cv_func_shmat=no" | 
|---|
| 7530 | fi | 
|---|
| 7531 | rm -f conftest* | 
|---|
| 7532 | fi | 
|---|
| 7533 |  | 
|---|
| 7534 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | 
|---|
| 7535 | echo "$ac_t""yes" 1>&6 | 
|---|
| 7536 | : | 
|---|
| 7537 | else | 
|---|
| 7538 | echo "$ac_t""no" 1>&6 | 
|---|
| 7539 | fi | 
|---|
| 7540 |  | 
|---|
| 7541 | if test $ac_cv_func_shmat = no; then | 
|---|
| 7542 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | 
|---|
| 7543 | echo "configure:7544: checking for shmat in -lipc" >&5 | 
|---|
| 7544 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` | 
|---|
| 7545 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|---|
| 7546 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 7547 | else | 
|---|
| 7548 | ac_save_LIBS="$LIBS" | 
|---|
| 7549 | LIBS="-lipc  $LIBS" | 
|---|
| 7550 | cat > conftest.$ac_ext <<EOF | 
|---|
| 7551 | #line 7552 "configure" | 
|---|
| 7552 | #include "confdefs.h" | 
|---|
| 7553 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 7554 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 7555 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 7556 | char shmat(); | 
|---|
| 7557 |  | 
|---|
| 7558 | int main() { | 
|---|
| 7559 | shmat() | 
|---|
| 7560 | ; return 0; } | 
|---|
| 7561 | EOF | 
|---|
| 7562 | if { (eval echo configure:7563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 7563 | rm -rf conftest* | 
|---|
| 7564 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|---|
| 7565 | else | 
|---|
| 7566 | echo "configure: failed program was:" >&5 | 
|---|
| 7567 | cat conftest.$ac_ext >&5 | 
|---|
| 7568 | rm -rf conftest* | 
|---|
| 7569 | eval "ac_cv_lib_$ac_lib_var=no" | 
|---|
| 7570 | fi | 
|---|
| 7571 | rm -f conftest* | 
|---|
| 7572 | LIBS="$ac_save_LIBS" | 
|---|
| 7573 |  | 
|---|
| 7574 | fi | 
|---|
| 7575 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|---|
| 7576 | echo "$ac_t""yes" 1>&6 | 
|---|
| 7577 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | 
|---|
| 7578 | else | 
|---|
| 7579 | echo "$ac_t""no" 1>&6 | 
|---|
| 7580 | fi | 
|---|
| 7581 |  | 
|---|
| 7582 | fi | 
|---|
| 7583 | # XFree86/OS2 | 
|---|
| 7584 | if test $ac_cv_func_shmat = no; then | 
|---|
| 7585 | echo $ac_n "checking for shmat in -lshm""... $ac_c" 1>&6 | 
|---|
| 7586 | echo "configure:7587: checking for shmat in -lshm" >&5 | 
|---|
| 7587 | ac_lib_var=`echo shm'_'shmat | sed 'y%./+-%__p_%'` | 
|---|
| 7588 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|---|
| 7589 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 7590 | else | 
|---|
| 7591 | ac_save_LIBS="$LIBS" | 
|---|
| 7592 | LIBS="-lshm  $LIBS" | 
|---|
| 7593 | cat > conftest.$ac_ext <<EOF | 
|---|
| 7594 | #line 7595 "configure" | 
|---|
| 7595 | #include "confdefs.h" | 
|---|
| 7596 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 7597 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 7598 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 7599 | char shmat(); | 
|---|
| 7600 |  | 
|---|
| 7601 | int main() { | 
|---|
| 7602 | shmat() | 
|---|
| 7603 | ; return 0; } | 
|---|
| 7604 | EOF | 
|---|
| 7605 | if { (eval echo configure:7606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 7606 | rm -rf conftest* | 
|---|
| 7607 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|---|
| 7608 | else | 
|---|
| 7609 | echo "configure: failed program was:" >&5 | 
|---|
| 7610 | cat conftest.$ac_ext >&5 | 
|---|
| 7611 | rm -rf conftest* | 
|---|
| 7612 | eval "ac_cv_lib_$ac_lib_var=no" | 
|---|
| 7613 | fi | 
|---|
| 7614 | rm -f conftest* | 
|---|
| 7615 | LIBS="$ac_save_LIBS" | 
|---|
| 7616 |  | 
|---|
| 7617 | fi | 
|---|
| 7618 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|---|
| 7619 | echo "$ac_t""yes" 1>&6 | 
|---|
| 7620 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lshm" | 
|---|
| 7621 | else | 
|---|
| 7622 | echo "$ac_t""no" 1>&6 | 
|---|
| 7623 | fi | 
|---|
| 7624 |  | 
|---|
| 7625 | fi | 
|---|
| 7626 | fi | 
|---|
| 7627 |  | 
|---|
| 7628 | # Check for libraries that X11R6 Xt/Xaw programs need. | 
|---|
| 7629 | ac_save_LDFLAGS="$LDFLAGS" | 
|---|
| 7630 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | 
|---|
| 7631 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | 
|---|
| 7632 | # check for ICE first), but we must link in the order -lSM -lICE or | 
|---|
| 7633 | # we get undefined symbols.  So assume we have SM if we have ICE. | 
|---|
| 7634 | # These have to be linked with before -lX11, unlike the other | 
|---|
| 7635 | # libraries we check for below, so use a different variable. | 
|---|
| 7636 | #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | 
|---|
| 7637 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | 
|---|
| 7638 | echo "configure:7639: checking for IceConnectionNumber in -lICE" >&5 | 
|---|
| 7639 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` | 
|---|
| 7640 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
|---|
| 7641 | echo $ac_n "(cached) $ac_c" 1>&6 | 
|---|
| 7642 | else | 
|---|
| 7643 | ac_save_LIBS="$LIBS" | 
|---|
| 7644 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | 
|---|
| 7645 | cat > conftest.$ac_ext <<EOF | 
|---|
| 7646 | #line 7647 "configure" | 
|---|
| 7647 | #include "confdefs.h" | 
|---|
| 7648 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
|---|
| 7649 | /* We use char because int might match the return type of a gcc2 | 
|---|
| 7650 | builtin and then its argument prototype would still apply.  */ | 
|---|
| 7651 | char IceConnectionNumber(); | 
|---|
| 7652 |  | 
|---|
| 7653 | int main() { | 
|---|
| 7654 | IceConnectionNumber() | 
|---|
| 7655 | ; return 0; } | 
|---|
| 7656 | EOF | 
|---|
| 7657 | if { (eval echo configure:7658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
|---|
| 7658 | rm -rf conftest* | 
|---|
| 7659 | eval "ac_cv_lib_$ac_lib_var=yes" | 
|---|
| 7660 | else | 
|---|
| 7661 | echo "configure: failed program was:" >&5 | 
|---|
| 7662 | cat conftest.$ac_ext >&5 | 
|---|
| 7663 | rm -rf conftest* | 
|---|
| 7664 | eval "ac_cv_lib_$ac_lib_var=no" | 
|---|
| 7665 | fi | 
|---|
| 7666 | rm -f conftest* | 
|---|
| 7667 | LIBS="$ac_save_LIBS" | 
|---|
| 7668 |  | 
|---|
| 7669 | fi | 
|---|
| 7670 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
|---|
| 7671 | echo "$ac_t""yes" 1>&6 | 
|---|
| 7672 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | 
|---|
| 7673 | else | 
|---|
| 7674 | echo "$ac_t""no" 1>&6 | 
|---|
| 7675 | fi | 
|---|
| 7676 |  | 
|---|
| 7677 | LDFLAGS="$ac_save_LDFLAGS" | 
|---|
| 7678 |  | 
|---|
| 7679 | fi | 
|---|
| 7680 |  | 
|---|
| 7681 |  | 
|---|
| 7682 | # Check whether --enable-java-awt or --disable-java-awt was given. | 
|---|
| 7683 | if test "${enable_java_awt+set}" = set; then | 
|---|
| 7684 | enableval="$enable_java_awt" | 
|---|
| 7685 | : | 
|---|
| 7686 | fi | 
|---|
| 7687 |  | 
|---|
| 7688 |  | 
|---|
| 7689 | peerlibs="`echo ${enable_java_awt} | tr ',' ' '`" | 
|---|
| 7690 | use_xlib_awt="" | 
|---|
| 7691 | use_gtk_awt="" | 
|---|
| 7692 |  | 
|---|
| 7693 | for peer in $peerlibs ; do | 
|---|
| 7694 | case $peer in | 
|---|
| 7695 | xlib) | 
|---|
| 7696 | if test "$no_x" = yes; then | 
|---|
| 7697 | echo "*** xlib peers requested but no X library available" 1>&2 | 
|---|
| 7698 | exit 1 | 
|---|
| 7699 | else | 
|---|
| 7700 | use_xlib_awt="yes" | 
|---|
| 7701 | fi | 
|---|
| 7702 | ;; | 
|---|
| 7703 | gtk) | 
|---|
| 7704 | # Nothing, yet... | 
|---|
| 7705 | ;; | 
|---|
| 7706 | no) | 
|---|
| 7707 | use_xlib_awt= | 
|---|
| 7708 | use_gtk_awt= | 
|---|
| 7709 | break | 
|---|
| 7710 | ;; | 
|---|
| 7711 | *) | 
|---|
| 7712 | echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2 | 
|---|
| 7713 | exit 1 | 
|---|
| 7714 | esac | 
|---|
| 7715 | done | 
|---|
| 7716 |  | 
|---|
| 7717 |  | 
|---|
| 7718 |  | 
|---|
| 7719 | if test "$use_xlib_awt" = yes; then | 
|---|
| 7720 | XLIB_AWT_TRUE= | 
|---|
| 7721 | XLIB_AWT_FALSE='#' | 
|---|
| 7722 | else | 
|---|
| 7723 | XLIB_AWT_TRUE='#' | 
|---|
| 7724 | XLIB_AWT_FALSE= | 
|---|
| 7725 | fi | 
|---|
| 7726 |  | 
|---|
| 7727 |  | 
|---|
| 7728 | if test "$use_gtk_awt" = yes; then | 
|---|
| 7729 | GTK_AWT_TRUE= | 
|---|
| 7730 | GTK_AWT_FALSE='#' | 
|---|
| 7731 | else | 
|---|
| 7732 | GTK_AWT_TRUE='#' | 
|---|
| 7733 | GTK_AWT_FALSE= | 
|---|
| 7734 | fi | 
|---|
| 7735 |  | 
|---|
| 7736 |  | 
|---|
| 7737 | here=`${PWDCMD-pwd}` | 
|---|
| 7738 |  | 
|---|
| 7739 |  | 
|---|
| 7740 | # We get this from the environment. | 
|---|
| 7741 |  | 
|---|
| 7742 |  | 
|---|
| 7743 | trap '' 1 2 15 | 
|---|
| 7744 | cat > confcache <<\EOF | 
|---|
| 7745 | # This file is a shell script that caches the results of configure | 
|---|
| 7746 | # tests run on this system so they can be shared between configure | 
|---|
| 7747 | # scripts and configure runs.  It is not useful on other systems. | 
|---|
| 7748 | # If it contains results you don't want to keep, you may remove or edit it. | 
|---|
| 7749 | # | 
|---|
| 7750 | # By default, configure uses ./config.cache as the cache file, | 
|---|
| 7751 | # creating it if it does not exist already.  You can give configure | 
|---|
| 7752 | # the --cache-file=FILE option to use a different cache file; that is | 
|---|
| 7753 | # what configure does when it calls configure scripts in | 
|---|
| 7754 | # subdirectories, so they share the cache. | 
|---|
| 7755 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | 
|---|
| 7756 | # config.status only pays attention to the cache file if you give it the | 
|---|
| 7757 | # --recheck option to rerun configure. | 
|---|
| 7758 | # | 
|---|
| 7759 | EOF | 
|---|
| 7760 | # The following way of writing the cache mishandles newlines in values, | 
|---|
| 7761 | # but we know of no workaround that is simple, portable, and efficient. | 
|---|
| 7762 | # So, don't put newlines in cache variables' values. | 
|---|
| 7763 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
|---|
| 7764 | # and sets the high bit in the cache file unless we assign to the vars. | 
|---|
| 7765 | (set) 2>&1 | | 
|---|
| 7766 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | 
|---|
| 7767 | *ac_space=\ *) | 
|---|
| 7768 | # `set' does not quote correctly, so add quotes (double-quote substitution | 
|---|
| 7769 | # turns \\\\ into \\, and sed turns \\ into \). | 
|---|
| 7770 | sed -n \ | 
|---|
| 7771 | -e "s/'/'\\\\''/g" \ | 
|---|
| 7772 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | 
|---|
| 7773 | ;; | 
|---|
| 7774 | *) | 
|---|
| 7775 | # `set' quotes correctly as required by POSIX, so do not add quotes. | 
|---|
| 7776 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | 
|---|
| 7777 | ;; | 
|---|
| 7778 | esac >> confcache | 
|---|
| 7779 | if cmp -s $cache_file confcache; then | 
|---|
| 7780 | : | 
|---|
| 7781 | else | 
|---|
| 7782 | if test -w $cache_file; then | 
|---|
| 7783 | echo "updating cache $cache_file" | 
|---|
| 7784 | cat confcache > $cache_file | 
|---|
| 7785 | else | 
|---|
| 7786 | echo "not updating unwritable cache $cache_file" | 
|---|
| 7787 | fi | 
|---|
| 7788 | fi | 
|---|
| 7789 | rm -f confcache | 
|---|
| 7790 |  | 
|---|
| 7791 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | 
|---|
| 7792 |  | 
|---|
| 7793 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
|---|
| 7794 | # Let make expand exec_prefix. | 
|---|
| 7795 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
|---|
| 7796 |  | 
|---|
| 7797 | # Any assignment to VPATH causes Sun make to only execute | 
|---|
| 7798 | # the first set of double-colon rules, so remove it if not needed. | 
|---|
| 7799 | # If there is a colon in the path, we need to keep it. | 
|---|
| 7800 | if test "x$srcdir" = x.; then | 
|---|
| 7801 | ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d' | 
|---|
| 7802 | fi | 
|---|
| 7803 |  | 
|---|
| 7804 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | 
|---|
| 7805 |  | 
|---|
| 7806 | DEFS=-DHAVE_CONFIG_H | 
|---|
| 7807 |  | 
|---|
| 7808 | # Without the "./", some shells look in PATH for config.status. | 
|---|
| 7809 | : ${CONFIG_STATUS=./config.status} | 
|---|
| 7810 |  | 
|---|
| 7811 | echo creating $CONFIG_STATUS | 
|---|
| 7812 | rm -f $CONFIG_STATUS | 
|---|
| 7813 | cat > $CONFIG_STATUS <<EOF | 
|---|
| 7814 | #! /bin/sh | 
|---|
| 7815 | # Generated automatically by configure. | 
|---|
| 7816 | # Run this file to recreate the current configuration. | 
|---|
| 7817 | # This directory was configured as follows, | 
|---|
| 7818 | EOF | 
|---|
| 7819 | echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS | 
|---|
| 7820 | cat >> $CONFIG_STATUS <<EOF | 
|---|
| 7821 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
|---|
| 7822 | # | 
|---|
| 7823 | # $0 $ac_configure_args | 
|---|
| 7824 | # | 
|---|
| 7825 | # Compiler output produced by configure, useful for debugging | 
|---|
| 7826 | # configure, is in ./config.log if it exists. | 
|---|
| 7827 |  | 
|---|
| 7828 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | 
|---|
| 7829 | for ac_option | 
|---|
| 7830 | do | 
|---|
| 7831 | case "\$ac_option" in | 
|---|
| 7832 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
|---|
| 7833 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | 
|---|
| 7834 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | 
|---|
| 7835 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | 
|---|
| 7836 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | 
|---|
| 7837 | exit 0 ;; | 
|---|
| 7838 | -help | --help | --hel | --he | --h) | 
|---|
| 7839 | echo "\$ac_cs_usage"; exit 0 ;; | 
|---|
| 7840 | *) echo "\$ac_cs_usage"; exit 1 ;; | 
|---|
| 7841 | esac | 
|---|
| 7842 | done | 
|---|
| 7843 |  | 
|---|
| 7844 | ac_given_srcdir=$srcdir | 
|---|
| 7845 | ac_given_INSTALL="$INSTALL" | 
|---|
| 7846 | PATHIFS="$PATH_IFS" | 
|---|
| 7847 |  | 
|---|
| 7848 | trap 'rm -fr `echo "Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile include/config.h gcj/libgcj-config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | 
|---|
| 7849 | EOF | 
|---|
| 7850 | cat >> $CONFIG_STATUS <<EOF | 
|---|
| 7851 |  | 
|---|
| 7852 | # Protect against being on the right side of a sed subst in config.status. | 
|---|
| 7853 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | 
|---|
| 7854 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | 
|---|
| 7855 | $ac_vpsub | 
|---|
| 7856 | $extrasub | 
|---|
| 7857 | s,\([^a-zA-Z0-9:]\)/bin/sh\(.exe\),\1${CONFIG_SHELL-/bin/sh}\2,g | 
|---|
| 7858 | s%@SHELL@%$SHELL%g | 
|---|
| 7859 | s%@CFLAGS@%$CFLAGS%g | 
|---|
| 7860 | s%@CPPFLAGS@%$CPPFLAGS%g | 
|---|
| 7861 | s%@CXXFLAGS@%$CXXFLAGS%g | 
|---|
| 7862 | s%@FFLAGS@%$FFLAGS%g | 
|---|
| 7863 | s%@DEFS@%$DEFS%g | 
|---|
| 7864 | s%@LDFLAGS@%$LDFLAGS%g | 
|---|
| 7865 | s%@LIBS@%$LIBS%g | 
|---|
| 7866 | s%@exec_prefix@%$exec_prefix%g | 
|---|
| 7867 | s%@prefix@%$prefix%g | 
|---|
| 7868 | s%@program_transform_name@%$program_transform_name%g | 
|---|
| 7869 | s%@bindir@%$bindir%g | 
|---|
| 7870 | s%@sbindir@%$sbindir%g | 
|---|
| 7871 | s%@libexecdir@%$libexecdir%g | 
|---|
| 7872 | s%@datadir@%$datadir%g | 
|---|
| 7873 | s%@sysconfdir@%$sysconfdir%g | 
|---|
| 7874 | s%@sharedstatedir@%$sharedstatedir%g | 
|---|
| 7875 | s%@localstatedir@%$localstatedir%g | 
|---|
| 7876 | s%@libdir@%$libdir%g | 
|---|
| 7877 | s%@includedir@%$includedir%g | 
|---|
| 7878 | s%@oldincludedir@%$oldincludedir%g | 
|---|
| 7879 | s%@infodir@%$infodir%g | 
|---|
| 7880 | s%@mandir@%$mandir%g | 
|---|
| 7881 | s%@PATH_IFS@%$PATH_IFS%g | 
|---|
| 7882 | s%@EXEEXT@%$EXEEXT%g | 
|---|
| 7883 | s%@LN_S@%$LN_S%g | 
|---|
| 7884 | s%@libgcj_basedir@%$libgcj_basedir%g | 
|---|
| 7885 | s%@mkinstalldirs@%$mkinstalldirs%g | 
|---|
| 7886 | s%@host@%$host%g | 
|---|
| 7887 | s%@host_alias@%$host_alias%g | 
|---|
| 7888 | s%@host_cpu@%$host_cpu%g | 
|---|
| 7889 | s%@host_vendor@%$host_vendor%g | 
|---|
| 7890 | s%@host_os@%$host_os%g | 
|---|
| 7891 | s%@target@%$target%g | 
|---|
| 7892 | s%@target_alias@%$target_alias%g | 
|---|
| 7893 | s%@target_cpu@%$target_cpu%g | 
|---|
| 7894 | s%@target_vendor@%$target_vendor%g | 
|---|
| 7895 | s%@target_os@%$target_os%g | 
|---|
| 7896 | s%@build@%$build%g | 
|---|
| 7897 | s%@build_alias@%$build_alias%g | 
|---|
| 7898 | s%@build_cpu@%$build_cpu%g | 
|---|
| 7899 | s%@build_vendor@%$build_vendor%g | 
|---|
| 7900 | s%@build_os@%$build_os%g | 
|---|
| 7901 | s%@CC@%$CC%g | 
|---|
| 7902 | s%@glibjava_CXX@%$glibjava_CXX%g | 
|---|
| 7903 | s%@CXX@%$CXX%g | 
|---|
| 7904 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | 
|---|
| 7905 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | 
|---|
| 7906 | s%@INSTALL_DATA@%$INSTALL_DATA%g | 
|---|
| 7907 | s%@PACKAGE@%$PACKAGE%g | 
|---|
| 7908 | s%@VERSION@%$VERSION%g | 
|---|
| 7909 | s%@ACLOCAL@%$ACLOCAL%g | 
|---|
| 7910 | s%@AUTOCONF@%$AUTOCONF%g | 
|---|
| 7911 | s%@AUTOMAKE@%$AUTOMAKE%g | 
|---|
| 7912 | s%@AUTOHEADER@%$AUTOHEADER%g | 
|---|
| 7913 | s%@MAKEINFO@%$MAKEINFO%g | 
|---|
| 7914 | s%@SET_MAKE@%$SET_MAKE%g | 
|---|
| 7915 | s%@AS@%$AS%g | 
|---|
| 7916 | s%@AR@%$AR%g | 
|---|
| 7917 | s%@RANLIB@%$RANLIB%g | 
|---|
| 7918 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g | 
|---|
| 7919 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g | 
|---|
| 7920 | s%@MAINT@%$MAINT%g | 
|---|
| 7921 | s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g | 
|---|
| 7922 | s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g | 
|---|
| 7923 | s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g | 
|---|
| 7924 | s%@INCLTDL@%$INCLTDL%g | 
|---|
| 7925 | s%@LIBLTDL@%$LIBLTDL%g | 
|---|
| 7926 | s%@DIRLTDL@%$DIRLTDL%g | 
|---|
| 7927 | s%@OBJEXT@%$OBJEXT%g | 
|---|
| 7928 | s%@STRIP@%$STRIP%g | 
|---|
| 7929 | s%@LIBTOOL@%$LIBTOOL%g | 
|---|
| 7930 | s%@CXXCPP@%$CXXCPP%g | 
|---|
| 7931 | s%@subdirs@%$subdirs%g | 
|---|
| 7932 | s%@COMPPATH@%$COMPPATH%g | 
|---|
| 7933 | s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g | 
|---|
| 7934 | s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g | 
|---|
| 7935 | s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g | 
|---|
| 7936 | s%@INTERPRETER@%$INTERPRETER%g | 
|---|
| 7937 | s%@LIBFFI@%$LIBFFI%g | 
|---|
| 7938 | s%@LIBFFIINCS@%$LIBFFIINCS%g | 
|---|
| 7939 | s%@PLATFORMOBJS@%$PLATFORMOBJS%g | 
|---|
| 7940 | s%@CPP@%$CPP%g | 
|---|
| 7941 | s%@SYSTEMSPEC@%$SYSTEMSPEC%g | 
|---|
| 7942 | s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g | 
|---|
| 7943 | s%@ZLIBSPEC@%$ZLIBSPEC%g | 
|---|
| 7944 | s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g | 
|---|
| 7945 | s%@GCLIBS@%$GCLIBS%g | 
|---|
| 7946 | s%@GCINCS@%$GCINCS%g | 
|---|
| 7947 | s%@GCDEPS@%$GCDEPS%g | 
|---|
| 7948 | s%@GCOBJS@%$GCOBJS%g | 
|---|
| 7949 | s%@GCSPEC@%$GCSPEC%g | 
|---|
| 7950 | s%@JC1GCSPEC@%$JC1GCSPEC%g | 
|---|
| 7951 | s%@GCTESTSPEC@%$GCTESTSPEC%g | 
|---|
| 7952 | s%@THREADLIBS@%$THREADLIBS%g | 
|---|
| 7953 | s%@THREADINCS@%$THREADINCS%g | 
|---|
| 7954 | s%@THREADDEPS@%$THREADDEPS%g | 
|---|
| 7955 | s%@THREADOBJS@%$THREADOBJS%g | 
|---|
| 7956 | s%@THREADSPEC@%$THREADSPEC%g | 
|---|
| 7957 | s%@THREADLDFLAGS@%$THREADLDFLAGS%g | 
|---|
| 7958 | s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g | 
|---|
| 7959 | s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g | 
|---|
| 7960 | s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g | 
|---|
| 7961 | s%@tool_include_dir@%$tool_include_dir%g | 
|---|
| 7962 | s%@gcc_version@%$gcc_version%g | 
|---|
| 7963 | s%@LIBICONV@%$LIBICONV%g | 
|---|
| 7964 | s%@GCJ@%$GCJ%g | 
|---|
| 7965 | s%@GCJFLAGS@%$GCJFLAGS%g | 
|---|
| 7966 | s%@ZLIBS@%$ZLIBS%g | 
|---|
| 7967 | s%@SYS_ZLIBS@%$SYS_ZLIBS%g | 
|---|
| 7968 | s%@ZINCS@%$ZINCS%g | 
|---|
| 7969 | s%@DIVIDESPEC@%$DIVIDESPEC%g | 
|---|
| 7970 | s%@CHECKREFSPEC@%$CHECKREFSPEC%g | 
|---|
| 7971 | s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g | 
|---|
| 7972 | s%@IEEESPEC@%$IEEESPEC%g | 
|---|
| 7973 | s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g | 
|---|
| 7974 | s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g | 
|---|
| 7975 | s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g | 
|---|
| 7976 | s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g | 
|---|
| 7977 | s%@NATIVE_TRUE@%$NATIVE_TRUE%g | 
|---|
| 7978 | s%@NATIVE_FALSE@%$NATIVE_FALSE%g | 
|---|
| 7979 | s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g | 
|---|
| 7980 | s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g | 
|---|
| 7981 | s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g | 
|---|
| 7982 | s%@toolexecdir@%$toolexecdir%g | 
|---|
| 7983 | s%@toolexecmainlibdir@%$toolexecmainlibdir%g | 
|---|
| 7984 | s%@toolexeclibdir@%$toolexeclibdir%g | 
|---|
| 7985 | s%@GCJVERSION@%$GCJVERSION%g | 
|---|
| 7986 | s%@ALLOCA@%$ALLOCA%g | 
|---|
| 7987 | s%@PERL@%$PERL%g | 
|---|
| 7988 | s%@BACKTRACESPEC@%$BACKTRACESPEC%g | 
|---|
| 7989 | s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g | 
|---|
| 7990 | s%@X_CFLAGS@%$X_CFLAGS%g | 
|---|
| 7991 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | 
|---|
| 7992 | s%@X_LIBS@%$X_LIBS%g | 
|---|
| 7993 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | 
|---|
| 7994 | s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g | 
|---|
| 7995 | s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g | 
|---|
| 7996 | s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g | 
|---|
| 7997 | s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g | 
|---|
| 7998 | s%@here@%$here%g | 
|---|
| 7999 |  | 
|---|
| 8000 | CEOF | 
|---|
| 8001 | EOF | 
|---|
| 8002 |  | 
|---|
| 8003 | cat >> $CONFIG_STATUS <<\EOF | 
|---|
| 8004 |  | 
|---|
| 8005 | # Split the substitutions into bite-sized pieces for seds with | 
|---|
| 8006 | # small command number limits, like on Digital OSF/1 and HP-UX. | 
|---|
| 8007 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | 
|---|
| 8008 | ac_file=1 # Number of current file. | 
|---|
| 8009 | ac_beg=1 # First line for current file. | 
|---|
| 8010 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | 
|---|
| 8011 | ac_more_lines=: | 
|---|
| 8012 | ac_sed_cmds="" | 
|---|
| 8013 | while $ac_more_lines; do | 
|---|
| 8014 | if test $ac_beg -gt 1; then | 
|---|
| 8015 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | 
|---|
| 8016 | else | 
|---|
| 8017 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | 
|---|
| 8018 | fi | 
|---|
| 8019 | if test ! -s conftest.s$ac_file; then | 
|---|
| 8020 | ac_more_lines=false | 
|---|
| 8021 | rm -f conftest.s$ac_file | 
|---|
| 8022 | else | 
|---|
| 8023 | if test -z "$ac_sed_cmds"; then | 
|---|
| 8024 | ac_sed_cmds="sed -f conftest.s$ac_file" | 
|---|
| 8025 | else | 
|---|
| 8026 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | 
|---|
| 8027 | fi | 
|---|
| 8028 | ac_file=`expr $ac_file + 1` | 
|---|
| 8029 | ac_beg=$ac_end | 
|---|
| 8030 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | 
|---|
| 8031 | fi | 
|---|
| 8032 | done | 
|---|
| 8033 | if test -z "$ac_sed_cmds"; then | 
|---|
| 8034 | ac_sed_cmds=cat | 
|---|
| 8035 | fi | 
|---|
| 8036 | EOF | 
|---|
| 8037 |  | 
|---|
| 8038 | cat >> $CONFIG_STATUS <<EOF | 
|---|
| 8039 |  | 
|---|
| 8040 | CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"} | 
|---|
| 8041 | EOF | 
|---|
| 8042 | cat >> $CONFIG_STATUS <<\EOF | 
|---|
| 8043 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | 
|---|
| 8044 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 
|---|
| 8045 | case "$ac_file" in | 
|---|
| 8046 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | 
|---|
| 8047 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | 
|---|
| 8048 | *) ac_file_in="${ac_file}.in" ;; | 
|---|
| 8049 | esac | 
|---|
| 8050 |  | 
|---|
| 8051 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | 
|---|
| 8052 |  | 
|---|
| 8053 | # Remove last slash and all that follows it.  Not all systems have dirname. | 
|---|
| 8054 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | 
|---|
| 8055 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | 
|---|
| 8056 | # The file is in a subdirectory. | 
|---|
| 8057 | test ! -d "$ac_dir" && mkdir "$ac_dir" | 
|---|
| 8058 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | 
|---|
| 8059 | # A "../" for each directory in $ac_dir_suffix. | 
|---|
| 8060 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | 
|---|
| 8061 | else | 
|---|
| 8062 | ac_dir_suffix= ac_dots= | 
|---|
| 8063 | fi | 
|---|
| 8064 |  | 
|---|
| 8065 | case "$ac_given_srcdir" in | 
|---|
| 8066 | .)  srcdir=. | 
|---|
| 8067 | if test -z "$ac_dots"; then top_srcdir=. | 
|---|
| 8068 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | 
|---|
| 8069 | [/\\]* | [a-zA-Z]:*) | 
|---|
| 8070 | srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | 
|---|
| 8071 | *) # Relative path. | 
|---|
| 8072 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | 
|---|
| 8073 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | 
|---|
| 8074 | esac | 
|---|
| 8075 |  | 
|---|
| 8076 | case "$ac_given_INSTALL" in | 
|---|
| 8077 | [/$\\]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;; | 
|---|
| 8078 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | 
|---|
| 8079 | esac | 
|---|
| 8080 |  | 
|---|
| 8081 | echo creating "$ac_file" | 
|---|
| 8082 | rm -f "$ac_file" | 
|---|
| 8083 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | 
|---|
| 8084 | case "$ac_file" in | 
|---|
| 8085 | *Makefile*) ac_comsub="1i\\ | 
|---|
| 8086 | # $configure_input" ;; | 
|---|
| 8087 | *) ac_comsub= ;; | 
|---|
| 8088 | esac | 
|---|
| 8089 |  | 
|---|
| 8090 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%$PATHIFS% $ac_given_srcdir/%g"` | 
|---|
| 8091 | sed -e "$ac_comsub | 
|---|
| 8092 | s%@configure_input@%$configure_input%g | 
|---|
| 8093 | s%@srcdir@%$srcdir%g | 
|---|
| 8094 | s%@top_srcdir@%$top_srcdir%g | 
|---|
| 8095 | s%@INSTALL@%$INSTALL%g | 
|---|
| 8096 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | 
|---|
| 8097 | fi; done | 
|---|
| 8098 | rm -f conftest.s* | 
|---|
| 8099 |  | 
|---|
| 8100 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | 
|---|
| 8101 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | 
|---|
| 8102 | # | 
|---|
| 8103 | # ac_d sets the value in "#define NAME VALUE" lines. | 
|---|
| 8104 | ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)' | 
|---|
| 8105 | ac_dB='\([      ][      ]*\)[^  ]*%\1#\2' | 
|---|
| 8106 | ac_dC='\3' | 
|---|
| 8107 | ac_dD='%g' | 
|---|
| 8108 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | 
|---|
| 8109 | ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)' | 
|---|
| 8110 | ac_uB='\([      ]\)%\1#\2define\3' | 
|---|
| 8111 | ac_uC=' ' | 
|---|
| 8112 | ac_uD='\4%g' | 
|---|
| 8113 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | 
|---|
| 8114 | ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)' | 
|---|
| 8115 | ac_eB='$%\1#\2define\3' | 
|---|
| 8116 | ac_eC=' ' | 
|---|
| 8117 | ac_eD='%g' | 
|---|
| 8118 |  | 
|---|
| 8119 | if test "${CONFIG_HEADERS+set}" != set; then | 
|---|
| 8120 | EOF | 
|---|
| 8121 | cat >> $CONFIG_STATUS <<EOF | 
|---|
| 8122 | CONFIG_HEADERS="include/config.h gcj/libgcj-config.h" | 
|---|
| 8123 | EOF | 
|---|
| 8124 | cat >> $CONFIG_STATUS <<\EOF | 
|---|
| 8125 | fi | 
|---|
| 8126 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | 
|---|
| 8127 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 
|---|
| 8128 | case "$ac_file" in | 
|---|
| 8129 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | 
|---|
| 8130 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | 
|---|
| 8131 | *) ac_file_in="${ac_file}.in" ;; | 
|---|
| 8132 | esac | 
|---|
| 8133 |  | 
|---|
| 8134 | echo creating $ac_file | 
|---|
| 8135 |  | 
|---|
| 8136 | rm -f conftest.frag conftest.in conftest.out | 
|---|
| 8137 | # kso the other way around might work better with drive letters and such. | 
|---|
| 8138 | #  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | 
|---|
| 8139 | ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%" ` | 
|---|
| 8140 | cat $ac_file_inputs > conftest.in | 
|---|
| 8141 |  | 
|---|
| 8142 | EOF | 
|---|
| 8143 |  | 
|---|
| 8144 | # Transform confdefs.h into a sed script conftest.vals that substitutes | 
|---|
| 8145 | # the proper values into config.h.in to produce config.h.  And first: | 
|---|
| 8146 | # Protect against being on the right side of a sed subst in config.status. | 
|---|
| 8147 | # Protect against being in an unquoted here document in config.status. | 
|---|
| 8148 | rm -f conftest.vals | 
|---|
| 8149 | cat > conftest.hdr <<\EOF | 
|---|
| 8150 | s/[\\&%]/\\&/g | 
|---|
| 8151 | s%[\\$`]%\\&%g | 
|---|
| 8152 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | 
|---|
| 8153 | s%ac_d%ac_u%gp | 
|---|
| 8154 | s%ac_u%ac_e%gp | 
|---|
| 8155 | EOF | 
|---|
| 8156 | sed -n -f conftest.hdr confdefs.h > conftest.vals | 
|---|
| 8157 | rm -f conftest.hdr | 
|---|
| 8158 |  | 
|---|
| 8159 | # This sed command replaces #undef with comments.  This is necessary, for | 
|---|
| 8160 | # example, in the case of _POSIX_SOURCE, which is predefined and required | 
|---|
| 8161 | # on some systems where configure will not decide to define it. | 
|---|
| 8162 | cat >> conftest.vals <<\EOF | 
|---|
| 8163 | s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | 
|---|
| 8164 | EOF | 
|---|
| 8165 |  | 
|---|
| 8166 | # Break up conftest.vals because some shells have a limit on | 
|---|
| 8167 | # the size of here documents, and old seds have small limits too. | 
|---|
| 8168 |  | 
|---|
| 8169 | rm -f conftest.tail | 
|---|
| 8170 | while : | 
|---|
| 8171 | do | 
|---|
| 8172 | ac_lines=`grep -c . conftest.vals` | 
|---|
| 8173 | # grep -c gives empty output for an empty file on some AIX systems. | 
|---|
| 8174 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | 
|---|
| 8175 | # Write a limited-size here document to conftest.frag. | 
|---|
| 8176 | echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | 
|---|
| 8177 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | 
|---|
| 8178 | echo 'CEOF | 
|---|
| 8179 | sed -f conftest.frag conftest.in > conftest.out | 
|---|
| 8180 | rm -f conftest.in | 
|---|
| 8181 | mv conftest.out conftest.in | 
|---|
| 8182 | ' >> $CONFIG_STATUS | 
|---|
| 8183 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | 
|---|
| 8184 | rm -f conftest.vals | 
|---|
| 8185 | mv conftest.tail conftest.vals | 
|---|
| 8186 | done | 
|---|
| 8187 | rm -f conftest.vals | 
|---|
| 8188 |  | 
|---|
| 8189 | cat >> $CONFIG_STATUS <<\EOF | 
|---|
| 8190 | rm -f conftest.frag conftest.h | 
|---|
| 8191 | echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h | 
|---|
| 8192 | cat conftest.in >> conftest.h | 
|---|
| 8193 | rm -f conftest.in | 
|---|
| 8194 | if cmp -s $ac_file conftest.h 2>/dev/null; then | 
|---|
| 8195 | echo "$ac_file is unchanged" | 
|---|
| 8196 | rm -f conftest.h | 
|---|
| 8197 | else | 
|---|
| 8198 | # Remove last slash and all that follows it.  Not all systems have dirname. | 
|---|
| 8199 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | 
|---|
| 8200 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | 
|---|
| 8201 | # The file is in a subdirectory. | 
|---|
| 8202 | test ! -d "$ac_dir" && mkdir "$ac_dir" | 
|---|
| 8203 | fi | 
|---|
| 8204 | rm -f $ac_file | 
|---|
| 8205 | mv conftest.h $ac_file | 
|---|
| 8206 | fi | 
|---|
| 8207 | fi; done | 
|---|
| 8208 |  | 
|---|
| 8209 | EOF | 
|---|
| 8210 |  | 
|---|
| 8211 | cat >> $CONFIG_STATUS <<EOF | 
|---|
| 8212 | ac_sources="include/$PLATFORMH java/io/natFile${FILE-${PLATFORM}}.cc java/io/natFileDescriptor${FILE-${PLATFORM}}.cc java/lang/${PLATFORM}Process.java java/lang/nat${PLATFORM}Process.cc include/$GCHDR include/$THREADH sysdep/$sysdeps_dir/locks.h $SIGNAL_HANDLER" | 
|---|
| 8213 | ac_dests="include/platform.h java/io/natFile.cc java/io/natFileDescriptor.cc java/lang/ConcreteProcess.java java/lang/natConcreteProcess.cc include/java-gc.h include/java-threads.h sysdep/locks.h include/java-signal.h" | 
|---|
| 8214 | EOF | 
|---|
| 8215 |  | 
|---|
| 8216 | cat >> $CONFIG_STATUS <<\EOF | 
|---|
| 8217 | srcdir=$ac_given_srcdir | 
|---|
| 8218 | while test -n "$ac_sources"; do | 
|---|
| 8219 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | 
|---|
| 8220 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | 
|---|
| 8221 |  | 
|---|
| 8222 | echo "linking $srcdir/$ac_source to $ac_dest" | 
|---|
| 8223 |  | 
|---|
| 8224 | if test ! -r $srcdir/$ac_source; then | 
|---|
| 8225 | { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } | 
|---|
| 8226 | fi | 
|---|
| 8227 | rm -f $ac_dest | 
|---|
| 8228 |  | 
|---|
| 8229 | # Make relative symlinks. | 
|---|
| 8230 | # Remove last slash and all that follows it.  Not all systems have dirname. | 
|---|
| 8231 | ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` | 
|---|
| 8232 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then | 
|---|
| 8233 | # The dest file is in a subdirectory. | 
|---|
| 8234 | test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" | 
|---|
| 8235 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" | 
|---|
| 8236 | # A "../" for each directory in $ac_dest_dir_suffix. | 
|---|
| 8237 | ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` | 
|---|
| 8238 | else | 
|---|
| 8239 | ac_dest_dir_suffix= ac_dots= | 
|---|
| 8240 | fi | 
|---|
| 8241 |  | 
|---|
| 8242 | case "$srcdir" in | 
|---|
| 8243 | [/$\\]* | [A-Za-z]:*) ac_rel_source="$srcdir/$ac_source" ;; | 
|---|
| 8244 | *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; | 
|---|
| 8245 | esac | 
|---|
| 8246 |  | 
|---|
| 8247 | # Make a symlink if possible; otherwise try a hard link. | 
|---|
| 8248 | if ln -s $ac_rel_source $ac_dest 2>/dev/null || | 
|---|
| 8249 | ln $srcdir/$ac_source $ac_dest 2>/dev/null || | 
|---|
| 8250 | cp $srcdir/$ac_source $ac_dest; then : | 
|---|
| 8251 | else | 
|---|
| 8252 | { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } | 
|---|
| 8253 | fi | 
|---|
| 8254 | done | 
|---|
| 8255 | EOF | 
|---|
| 8256 | cat >> $CONFIG_STATUS <<EOF | 
|---|
| 8257 |  | 
|---|
| 8258 | srcdir=${srcdir} | 
|---|
| 8259 | host=${host} | 
|---|
| 8260 | target=${target} | 
|---|
| 8261 | with_multisubdir=${with_multisubdir} | 
|---|
| 8262 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | 
|---|
| 8263 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | 
|---|
| 8264 | libgcj_basedir=${libgcj_basedir} | 
|---|
| 8265 | CC="${CC}" | 
|---|
| 8266 | CXX="${CXX}" | 
|---|
| 8267 | ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}" | 
|---|
| 8268 |  | 
|---|
| 8269 | EOF | 
|---|
| 8270 | cat >> $CONFIG_STATUS <<\EOF | 
|---|
| 8271 | am_indx=1 | 
|---|
| 8272 | for am_file in include/config.h gcj/libgcj-config.h; do | 
|---|
| 8273 | case " $CONFIG_HEADERS " in | 
|---|
| 8274 | *" $am_file "*) | 
|---|
| 8275 | echo timestamp > `echo $am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx | 
|---|
| 8276 | ;; | 
|---|
| 8277 | esac | 
|---|
| 8278 | am_indx=`expr "$am_indx" + 1` | 
|---|
| 8279 | done | 
|---|
| 8280 | # Only add multilib support code if we just rebuilt top-level Makefile. | 
|---|
| 8281 | case " $CONFIG_FILES " in | 
|---|
| 8282 | *" Makefile "*) | 
|---|
| 8283 | LD="${ORIGINAL_LD_FOR_MULTILIBS}" | 
|---|
| 8284 | ac_file=Makefile . ${libgcj_basedir}/../config-ml.in | 
|---|
| 8285 | ;; | 
|---|
| 8286 | esac | 
|---|
| 8287 |  | 
|---|
| 8288 | # Make subdirectories and `.d' files.  Look in both srcdir and | 
|---|
| 8289 | # builddir for the .java files. | 
|---|
| 8290 | h=`${PWDCMD-pwd}` | 
|---|
| 8291 | : > deps.mk | 
|---|
| 8292 | ( (cd $srcdir && find . \( -name '*.java' -o -name '*.cc' \) -print) ; | 
|---|
| 8293 | find . \( -name '*.java' -o -name '*.cc' \) -print) | \ | 
|---|
| 8294 | fgrep -v testsuite | \ | 
|---|
| 8295 | sed -e 's/\.java/.d/'\;'s/\.cc/.d/' | \ | 
|---|
| 8296 | while read f; do | 
|---|
| 8297 | echo "include $f" >> deps.mk | 
|---|
| 8298 | test -f $f || { | 
|---|
| 8299 |  | 
|---|
| 8300 | d=`echo $f | sed -e 's,/[^/]*$,,'` | 
|---|
| 8301 |  | 
|---|
| 8302 | if test ! -d $d; then | 
|---|
| 8303 | $libgcj_basedir/../mkinstalldirs $d | 
|---|
| 8304 | fi; | 
|---|
| 8305 | echo > $f | 
|---|
| 8306 | } | 
|---|
| 8307 | done | 
|---|
| 8308 |  | 
|---|
| 8309 | exit 0 | 
|---|
| 8310 | EOF | 
|---|
| 8311 | chmod +x $CONFIG_STATUS | 
|---|
| 8312 | rm -fr confdefs* $ac_clean_files | 
|---|
| 8313 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | 
|---|
| 8314 |  | 
|---|
| 8315 | if test "$no_recursion" != yes; then | 
|---|
| 8316 |  | 
|---|
| 8317 | # Remove --cache-file and --srcdir arguments so they do not pile up. | 
|---|
| 8318 | ac_sub_configure_args= | 
|---|
| 8319 | ac_prev= | 
|---|
| 8320 | for ac_arg in $ac_configure_args; do | 
|---|
| 8321 | if test -n "$ac_prev"; then | 
|---|
| 8322 | ac_prev= | 
|---|
| 8323 | continue | 
|---|
| 8324 | fi | 
|---|
| 8325 | case "$ac_arg" in | 
|---|
| 8326 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
|---|
| 8327 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
|---|
| 8328 | ac_prev=cache_file ;; | 
|---|
| 8329 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
|---|
| 8330 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
|---|
| 8331 | ;; | 
|---|
| 8332 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
|---|
| 8333 | ac_prev=srcdir ;; | 
|---|
| 8334 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
|---|
| 8335 | ;; | 
|---|
| 8336 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | 
|---|
| 8337 | esac | 
|---|
| 8338 | done | 
|---|
| 8339 |  | 
|---|
| 8340 | for ac_config_dir in $DIRLTDL; do | 
|---|
| 8341 |  | 
|---|
| 8342 | # Do not complain, so a configure script can configure whichever | 
|---|
| 8343 | # parts of a large source tree are present. | 
|---|
| 8344 | if test ! -d $srcdir/$ac_config_dir; then | 
|---|
| 8345 | continue | 
|---|
| 8346 | fi | 
|---|
| 8347 |  | 
|---|
| 8348 | echo configuring in $ac_config_dir | 
|---|
| 8349 |  | 
|---|
| 8350 | case "$srcdir" in | 
|---|
| 8351 | .) ;; | 
|---|
| 8352 | *) | 
|---|
| 8353 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | 
|---|
| 8354 | else | 
|---|
| 8355 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | 
|---|
| 8356 | fi | 
|---|
| 8357 | ;; | 
|---|
| 8358 | esac | 
|---|
| 8359 |  | 
|---|
| 8360 | ac_popdir=`pwd` | 
|---|
| 8361 | cd $ac_config_dir | 
|---|
| 8362 |  | 
|---|
| 8363 | # A "../" for each directory in /$ac_config_dir. | 
|---|
| 8364 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | 
|---|
| 8365 |  | 
|---|
| 8366 | case "$srcdir" in | 
|---|
| 8367 | .) # No --srcdir option.  We are building in place. | 
|---|
| 8368 | ac_sub_srcdir=$srcdir ;; | 
|---|
| 8369 | [/\\]* | [a-zA-Z]:*) # Absolute path. | 
|---|
| 8370 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | 
|---|
| 8371 | *) # Relative path. | 
|---|
| 8372 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | 
|---|
| 8373 | esac | 
|---|
| 8374 |  | 
|---|
| 8375 | # Check for guested configure; otherwise get Cygnus style configure. | 
|---|
| 8376 | if test -f $ac_sub_srcdir/configure; then | 
|---|
| 8377 | ac_sub_configure=$ac_sub_srcdir/configure | 
|---|
| 8378 | elif test -f $ac_sub_srcdir/configure.in; then | 
|---|
| 8379 | ac_current_dir=`pwd` | 
|---|
| 8380 | cd $ac_sub_srcdir | 
|---|
| 8381 | autoconf | 
|---|
| 8382 | cd $ac_current_dir | 
|---|
| 8383 | ac_sub_configure=$ac_sub_srcdir/configure | 
|---|
| 8384 | else | 
|---|
| 8385 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 | 
|---|
| 8386 | ac_sub_configure= | 
|---|
| 8387 | fi | 
|---|
| 8388 |  | 
|---|
| 8389 | # The recursion is here. | 
|---|
| 8390 | if test -n "$ac_sub_configure"; then | 
|---|
| 8391 |  | 
|---|
| 8392 | # Make the cache file name correct relative to the subdirectory. | 
|---|
| 8393 | case "$cache_file" in | 
|---|
| 8394 | [/\\]* | [a-zA-Z]:*) ac_sub_cache_file=$cache_file ;; | 
|---|
| 8395 | *) # Relative path. | 
|---|
| 8396 | ac_sub_cache_file="$ac_dots$cache_file" ;; | 
|---|
| 8397 | esac | 
|---|
| 8398 | case "$ac_given_INSTALL" in | 
|---|
| 8399 | [/$\\]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;; | 
|---|
| 8400 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | 
|---|
| 8401 | esac | 
|---|
| 8402 |  | 
|---|
| 8403 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" | 
|---|
| 8404 | # The eval makes quoting arguments work. | 
|---|
| 8405 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir | 
|---|
| 8406 | then : | 
|---|
| 8407 | else | 
|---|
| 8408 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | 
|---|
| 8409 | fi | 
|---|
| 8410 | fi | 
|---|
| 8411 |  | 
|---|
| 8412 | cd $ac_popdir | 
|---|
| 8413 | done | 
|---|
| 8414 | fi | 
|---|
| 8415 |  | 
|---|