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