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