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