| 1 |
#! /bin/sh |
| 2 |
|
| 3 |
# From configure.in Revision: 1.56 # Guess values for system-dependent variables and create Makefiles. |
| 4 |
# Generated automatically using autoconf version 2.13 |
| 5 |
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
| 6 |
# |
| 7 |
# This configure script is free software; the Free Software Foundation |
| 8 |
# gives unlimited permission to copy, distribute and modify it. |
| 9 |
|
| 10 |
# Defaults: |
| 11 |
ac_help= |
| 12 |
ac_default_prefix=/usr/local |
| 13 |
# Any additions from configure.in: |
| 14 |
ac_help="$ac_help |
| 15 |
--disable-utf8 Disable UTF-8 (iconv) support" |
| 16 |
ac_help="$ac_help |
| 17 |
--with-efence[=PATH] Compile with the ElectricFence debugging library." |
| 18 |
ac_help="$ac_help |
| 19 |
--with-paranoid Sets the compile-time paranoid flag." |
| 20 |
ac_help="$ac_help |
| 21 |
--with-default-server=SERVER[:PORT] Connect to SERVER by default." |
| 22 |
ac_help="$ac_help |
| 23 |
--with-socks Compile with SOCKS firewall traversal support." |
| 24 |
ac_help="$ac_help |
| 25 |
--with-socks5[=PATH] Compile with SOCKS5 firewall traversal support." |
| 26 |
ac_help="$ac_help |
| 27 |
--with-socks4[=PATH] Compile with SOCKS4 firewall traversal support." |
| 28 |
ac_help="$ac_help |
| 29 |
--enable-ipv6 Enable ipv6 (with ipv4) support" |
| 30 |
ac_help="$ac_help |
| 31 |
--with-ssl[=PATH] Prefix where GNU TLS is installed (optional)" |
| 32 |
ac_help="$ac_help |
| 33 |
--with-openssl[=PATH] Prefix where OpenSSL is installed (optional)" |
| 34 |
ac_help="$ac_help |
| 35 |
--enable-regexp Enable POSIX.2 regexp support" |
| 36 |
ac_help="$ac_help |
| 37 |
--enable-fish Enable FiSH encryption support" |
| 38 |
|
| 39 |
# Initialize some variables set by options. |
| 40 |
# The variables have the same names as the options, with |
| 41 |
# dashes changed to underlines. |
| 42 |
build=NONE |
| 43 |
cache_file=./config.cache |
| 44 |
exec_prefix=NONE |
| 45 |
host=NONE |
| 46 |
no_create= |
| 47 |
nonopt=NONE |
| 48 |
no_recursion= |
| 49 |
prefix=NONE |
| 50 |
program_prefix=NONE |
| 51 |
program_suffix=NONE |
| 52 |
program_transform_name=s,x,x, |
| 53 |
silent= |
| 54 |
site= |
| 55 |
srcdir= |
| 56 |
target=NONE |
| 57 |
verbose= |
| 58 |
x_includes=NONE |
| 59 |
x_libraries=NONE |
| 60 |
bindir='${exec_prefix}/bin' |
| 61 |
sbindir='${exec_prefix}/sbin' |
| 62 |
libexecdir='${exec_prefix}/libexec' |
| 63 |
datadir='${prefix}/share' |
| 64 |
sysconfdir='${prefix}/etc' |
| 65 |
sharedstatedir='${prefix}/com' |
| 66 |
localstatedir='${prefix}/var' |
| 67 |
libdir='${exec_prefix}/lib' |
| 68 |
includedir='${prefix}/include' |
| 69 |
oldincludedir='/usr/include' |
| 70 |
infodir='${prefix}/info' |
| 71 |
mandir='${prefix}/man' |
| 72 |
|
| 73 |
# Initialize some other variables. |
| 74 |
subdirs= |
| 75 |
MFLAGS= MAKEFLAGS= |
| 76 |
SHELL=${CONFIG_SHELL-/bin/sh} |
| 77 |
# Maximum number of lines to put in a shell here document. |
| 78 |
ac_max_here_lines=12 |
| 79 |
|
| 80 |
ac_prev= |
| 81 |
for ac_option |
| 82 |
do |
| 83 |
|
| 84 |
# If the previous option needs an argument, assign it. |
| 85 |
if test -n "$ac_prev"; then |
| 86 |
eval "$ac_prev=\$ac_option" |
| 87 |
ac_prev= |
| 88 |
continue |
| 89 |
fi |
| 90 |
|
| 91 |
case "$ac_option" in |
| 92 |
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 93 |
*) ac_optarg= ;; |
| 94 |
esac |
| 95 |
|
| 96 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
| 97 |
|
| 98 |
case "$ac_option" in |
| 99 |
|
| 100 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 101 |
ac_prev=bindir ;; |
| 102 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 103 |
bindir="$ac_optarg" ;; |
| 104 |
|
| 105 |
-build | --build | --buil | --bui | --bu) |
| 106 |
ac_prev=build ;; |
| 107 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 108 |
build="$ac_optarg" ;; |
| 109 |
|
| 110 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 111 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 112 |
ac_prev=cache_file ;; |
| 113 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 114 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 115 |
cache_file="$ac_optarg" ;; |
| 116 |
|
| 117 |
-datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 118 |
ac_prev=datadir ;; |
| 119 |
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 120 |
| --da=*) |
| 121 |
datadir="$ac_optarg" ;; |
| 122 |
|
| 123 |
-disable-* | --disable-*) |
| 124 |
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
| 125 |
# Reject names that are not valid shell variable names. |
| 126 |
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 127 |
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 128 |
fi |
| 129 |
ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 130 |
eval "enable_${ac_feature}=no" ;; |
| 131 |
|
| 132 |
-enable-* | --enable-*) |
| 133 |
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
| 134 |
# Reject names that are not valid shell variable names. |
| 135 |
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 136 |
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 137 |
fi |
| 138 |
ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 139 |
case "$ac_option" in |
| 140 |
*=*) ;; |
| 141 |
*) ac_optarg=yes ;; |
| 142 |
esac |
| 143 |
eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 144 |
|
| 145 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 146 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 147 |
| --exec | --exe | --ex) |
| 148 |
ac_prev=exec_prefix ;; |
| 149 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 150 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 151 |
| --exec=* | --exe=* | --ex=*) |
| 152 |
exec_prefix="$ac_optarg" ;; |
| 153 |
|
| 154 |
-gas | --gas | --ga | --g) |
| 155 |
# Obsolete; use --with-gas. |
| 156 |
with_gas=yes ;; |
| 157 |
|
| 158 |
-help | --help | --hel | --he) |
| 159 |
# Omit some internal or obsolete options to make the list less imposing. |
| 160 |
# This message is too long to be a string in the A/UX 3.1 sh. |
| 161 |
cat << EOF |
| 162 |
Usage: configure [options] [host] |
| 163 |
Options: [defaults in brackets after descriptions] |
| 164 |
Configuration: |
| 165 |
--cache-file=FILE cache test results in FILE |
| 166 |
--help print this message |
| 167 |
--no-create do not create output files |
| 168 |
--quiet, --silent do not print \`checking...' messages |
| 169 |
--version print the version of autoconf that created configure |
| 170 |
Directory and file names: |
| 171 |
--prefix=PREFIX install architecture-independent files in PREFIX |
| 172 |
[$ac_default_prefix] |
| 173 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 174 |
[same as prefix] |
| 175 |
--bindir=DIR user executables in DIR [EPREFIX/bin] |
| 176 |
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 177 |
--libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 178 |
--datadir=DIR read-only architecture-independent data in DIR |
| 179 |
[PREFIX/share] |
| 180 |
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 181 |
--sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 182 |
[PREFIX/com] |
| 183 |
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 184 |
--libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 185 |
--includedir=DIR C header files in DIR [PREFIX/include] |
| 186 |
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 187 |
--infodir=DIR info documentation in DIR [PREFIX/info] |
| 188 |
--mandir=DIR man documentation in DIR [PREFIX/man] |
| 189 |
--srcdir=DIR find the sources in DIR [configure dir or ..] |
| 190 |
--program-prefix=PREFIX prepend PREFIX to installed program names |
| 191 |
--program-suffix=SUFFIX append SUFFIX to installed program names |
| 192 |
--program-transform-name=PROGRAM |
| 193 |
run sed PROGRAM on installed program names |
| 194 |
EOF |
| 195 |
cat << EOF |
| 196 |
Host type: |
| 197 |
--build=BUILD configure for building on BUILD [BUILD=HOST] |
| 198 |
--host=HOST configure for HOST [guessed] |
| 199 |
--target=TARGET configure for TARGET [TARGET=HOST] |
| 200 |
Features and packages: |
| 201 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 202 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 203 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 204 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 205 |
--x-includes=DIR X include files are in DIR |
| 206 |
--x-libraries=DIR X library files are in DIR |
| 207 |
EOF |
| 208 |
if test -n "$ac_help"; then |
| 209 |
echo "--enable and --with options recognized:$ac_help" |
| 210 |
fi |
| 211 |
exit 0 ;; |
| 212 |
|
| 213 |
-host | --host | --hos | --ho) |
| 214 |
ac_prev=host ;; |
| 215 |
-host=* | --host=* | --hos=* | --ho=*) |
| 216 |
host="$ac_optarg" ;; |
| 217 |
|
| 218 |
-includedir | --includedir | --includedi | --included | --include \ |
| 219 |
| --includ | --inclu | --incl | --inc) |
| 220 |
ac_prev=includedir ;; |
| 221 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 222 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
| 223 |
includedir="$ac_optarg" ;; |
| 224 |
|
| 225 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
| 226 |
ac_prev=infodir ;; |
| 227 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 228 |
infodir="$ac_optarg" ;; |
| 229 |
|
| 230 |
-libdir | --libdir | --libdi | --libd) |
| 231 |
ac_prev=libdir ;; |
| 232 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 233 |
libdir="$ac_optarg" ;; |
| 234 |
|
| 235 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 236 |
| --libexe | --libex | --libe) |
| 237 |
ac_prev=libexecdir ;; |
| 238 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 239 |
| --libexe=* | --libex=* | --libe=*) |
| 240 |
libexecdir="$ac_optarg" ;; |
| 241 |
|
| 242 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 243 |
| --localstate | --localstat | --localsta | --localst \ |
| 244 |
| --locals | --local | --loca | --loc | --lo) |
| 245 |
ac_prev=localstatedir ;; |
| 246 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 247 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 248 |
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 249 |
localstatedir="$ac_optarg" ;; |
| 250 |
|
| 251 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 252 |
ac_prev=mandir ;; |
| 253 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 254 |
mandir="$ac_optarg" ;; |
| 255 |
|
| 256 |
-nfp | --nfp | --nf) |
| 257 |
# Obsolete; use --without-fp. |
| 258 |
with_fp=no ;; |
| 259 |
|
| 260 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 261 |
| --no-cr | --no-c) |
| 262 |
no_create=yes ;; |
| 263 |
|
| 264 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 265 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 266 |
no_recursion=yes ;; |
| 267 |
|
| 268 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 269 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 270 |
| --oldin | --oldi | --old | --ol | --o) |
| 271 |
ac_prev=oldincludedir ;; |
| 272 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 273 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 274 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 275 |
oldincludedir="$ac_optarg" ;; |
| 276 |
|
| 277 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 278 |
ac_prev=prefix ;; |
| 279 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 280 |
prefix="$ac_optarg" ;; |
| 281 |
|
| 282 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 283 |
| --program-pre | --program-pr | --program-p) |
| 284 |
ac_prev=program_prefix ;; |
| 285 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 286 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 287 |
program_prefix="$ac_optarg" ;; |
| 288 |
|
| 289 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 290 |
| --program-suf | --program-su | --program-s) |
| 291 |
ac_prev=program_suffix ;; |
| 292 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 293 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 294 |
program_suffix="$ac_optarg" ;; |
| 295 |
|
| 296 |
-program-transform-name | --program-transform-name \ |
| 297 |
| --program-transform-nam | --program-transform-na \ |
| 298 |
| --program-transform-n | --program-transform- \ |
| 299 |
| --program-transform | --program-transfor \ |
| 300 |
| --program-transfo | --program-transf \ |
| 301 |
| --program-trans | --program-tran \ |
| 302 |
| --progr-tra | --program-tr | --program-t) |
| 303 |
ac_prev=program_transform_name ;; |
| 304 |
-program-transform-name=* | --program-transform-name=* \ |
| 305 |
| --program-transform-nam=* | --program-transform-na=* \ |
| 306 |
| --program-transform-n=* | --program-transform-=* \ |
| 307 |
| --program-transform=* | --program-transfor=* \ |
| 308 |
| --program-transfo=* | --program-transf=* \ |
| 309 |
| --program-trans=* | --program-tran=* \ |
| 310 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
| 311 |
program_transform_name="$ac_optarg" ;; |
| 312 |
|
| 313 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 314 |
| -silent | --silent | --silen | --sile | --sil) |
| 315 |
silent=yes ;; |
| 316 |
|
| 317 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 318 |
ac_prev=sbindir ;; |
| 319 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 320 |
| --sbi=* | --sb=*) |
| 321 |
sbindir="$ac_optarg" ;; |
| 322 |
|
| 323 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 324 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 325 |
| --sharedst | --shareds | --shared | --share | --shar \ |
| 326 |
| --sha | --sh) |
| 327 |
ac_prev=sharedstatedir ;; |
| 328 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 329 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 330 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 331 |
| --sha=* | --sh=*) |
| 332 |
sharedstatedir="$ac_optarg" ;; |
| 333 |
|
| 334 |
-site | --site | --sit) |
| 335 |
ac_prev=site ;; |
| 336 |
-site=* | --site=* | --sit=*) |
| 337 |
site="$ac_optarg" ;; |
| 338 |
|
| 339 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 340 |
ac_prev=srcdir ;; |
| 341 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 342 |
srcdir="$ac_optarg" ;; |
| 343 |
|
| 344 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 345 |
| --syscon | --sysco | --sysc | --sys | --sy) |
| 346 |
ac_prev=sysconfdir ;; |
| 347 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 348 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 349 |
sysconfdir="$ac_optarg" ;; |
| 350 |
|
| 351 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
| 352 |
ac_prev=target ;; |
| 353 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 354 |
target="$ac_optarg" ;; |
| 355 |
|
| 356 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 357 |
verbose=yes ;; |
| 358 |
|
| 359 |
-version | --version | --versio | --versi | --vers) |
| 360 |
echo "configure generated by autoconf version 2.13" |
| 361 |
exit 0 ;; |
| 362 |
|
| 363 |
-with-* | --with-*) |
| 364 |
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
| 365 |
# Reject names that are not valid shell variable names. |
| 366 |
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 367 |
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 368 |
fi |
| 369 |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 370 |
case "$ac_option" in |
| 371 |
*=*) ;; |
| 372 |
*) ac_optarg=yes ;; |
| 373 |
esac |
| 374 |
eval "with_${ac_package}='$ac_optarg'" ;; |
| 375 |
|
| 376 |
-without-* | --without-*) |
| 377 |
ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
| 378 |
# Reject names that are not valid shell variable names. |
| 379 |
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 380 |
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 381 |
fi |
| 382 |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 383 |
eval "with_${ac_package}=no" ;; |
| 384 |
|
| 385 |
--x) |
| 386 |
# Obsolete; use --with-x. |
| 387 |
with_x=yes ;; |
| 388 |
|
| 389 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 390 |
| --x-incl | --x-inc | --x-in | --x-i) |
| 391 |
ac_prev=x_includes ;; |
| 392 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 393 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 394 |
x_includes="$ac_optarg" ;; |
| 395 |
|
| 396 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 397 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 398 |
ac_prev=x_libraries ;; |
| 399 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 400 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 401 |
x_libraries="$ac_optarg" ;; |
| 402 |
|
| 403 |
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
| 404 |
;; |
| 405 |
|
| 406 |
*) |
| 407 |
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
| 408 |
echo "configure: warning: $ac_option: invalid host type" 1>&2 |
| 409 |
fi |
| 410 |
if test "x$nonopt" != xNONE; then |
| 411 |
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
| 412 |
fi |
| 413 |
nonopt="$ac_option" |
| 414 |
;; |
| 415 |
|
| 416 |
esac |
| 417 |
done |
| 418 |
|
| 419 |
if test -n "$ac_prev"; then |
| 420 |
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
| 421 |
fi |
| 422 |
|
| 423 |
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 424 |
|
| 425 |
# File descriptor usage: |
| 426 |
# 0 standard input |
| 427 |
# 1 file creation |
| 428 |
# 2 errors and warnings |
| 429 |
# 3 some systems may open it to /dev/tty |
| 430 |
# 4 used on the Kubota Titan |
| 431 |
# 6 checking for... messages and results |
| 432 |
# 5 compiler messages saved in config.log |
| 433 |
if test "$silent" = yes; then |
| 434 |
exec 6>/dev/null |
| 435 |
else |
| 436 |
exec 6>&1 |
| 437 |
fi |
| 438 |
exec 5>./config.log |
| 439 |
|
| 440 |
echo "\ |
| 441 |
This file contains any messages produced by compilers while |
| 442 |
running configure, to aid debugging if configure makes a mistake. |
| 443 |
" 1>&5 |
| 444 |
|
| 445 |
# Strip out --no-create and --no-recursion so they do not pile up. |
| 446 |
# Also quote any args containing shell metacharacters. |
| 447 |
ac_configure_args= |
| 448 |
for ac_arg |
| 449 |
do |
| 450 |
case "$ac_arg" in |
| 451 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 452 |
| --no-cr | --no-c) ;; |
| 453 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 454 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 455 |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 456 |
ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 457 |
*) ac_configure_args="$ac_configure_args $ac_arg" ;; |
| 458 |
esac |
| 459 |
done |
| 460 |
|
| 461 |
# NLS nuisances. |
| 462 |
# Only set these to C if already set. These must not be set unconditionally |
| 463 |
# because not all systems understand e.g. LANG=C (notably SCO). |
| 464 |
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 465 |
# Non-C LC_CTYPE values break the ctype check. |
| 466 |
if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
| 467 |
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 468 |
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 469 |
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
| 470 |
|
| 471 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 472 |
rm -rf conftest* confdefs.h |
| 473 |
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 474 |
echo > confdefs.h |
| 475 |
|
| 476 |
# A filename unique to this package, relative to the directory that |
| 477 |
# configure is in, which we can look for to find out if srcdir is correct. |
| 478 |
ac_unique_file=${srcdir}/source/irc.c |
| 479 |
|
| 480 |
# Find the source files, if location was not specified. |
| 481 |
if test -z "$srcdir"; then |
| 482 |
ac_srcdir_defaulted=yes |
| 483 |
# Try the directory containing this script, then its parent. |
| 484 |
ac_prog=$0 |
| 485 |
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 486 |
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 487 |
srcdir=$ac_confdir |
| 488 |
if test ! -r $srcdir/$ac_unique_file; then |
| 489 |
srcdir=.. |
| 490 |
fi |
| 491 |
else |
| 492 |
ac_srcdir_defaulted=no |
| 493 |
fi |
| 494 |
if test ! -r $srcdir/$ac_unique_file; then |
| 495 |
if test "$ac_srcdir_defaulted" = yes; then |
| 496 |
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
| 497 |
else |
| 498 |
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
| 499 |
fi |
| 500 |
fi |
| 501 |
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 502 |
|
| 503 |
# Prefer explicitly selected file to automatically selected ones. |
| 504 |
if test -z "$CONFIG_SITE"; then |
| 505 |
if test "x$prefix" != xNONE; then |
| 506 |
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 507 |
else |
| 508 |
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 509 |
fi |
| 510 |
fi |
| 511 |
for ac_site_file in $CONFIG_SITE; do |
| 512 |
if test -r "$ac_site_file"; then |
| 513 |
echo "loading site script $ac_site_file" |
| 514 |
. "$ac_site_file" |
| 515 |
fi |
| 516 |
done |
| 517 |
|
| 518 |
if test -r "$cache_file"; then |
| 519 |
echo "loading cache $cache_file" |
| 520 |
. $cache_file |
| 521 |
else |
| 522 |
echo "creating cache $cache_file" |
| 523 |
> $cache_file |
| 524 |
fi |
| 525 |
|
| 526 |
ac_ext=c |
| 527 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 528 |
ac_cpp='$CPP $CPPFLAGS' |
| 529 |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 530 |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 531 |
cross_compiling=$ac_cv_prog_cc_cross |
| 532 |
|
| 533 |
ac_exeext= |
| 534 |
ac_objext=o |
| 535 |
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 536 |
# Stardent Vistra SVR4 grep lacks -e, says [email protected]. |
| 537 |
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 538 |
ac_n= ac_c=' |
| 539 |
' ac_t=' ' |
| 540 |
else |
| 541 |
ac_n=-n ac_c= ac_t= |
| 542 |
fi |
| 543 |
else |
| 544 |
ac_n= ac_c='\c' ac_t= |
| 545 |
fi |
| 546 |
|
| 547 |
|
| 548 |
|
| 549 |
|
| 550 |
# So many systems seem to need this that it is better do it here automatically. |
| 551 |
if test "x$prefix" != xNONE; then |
| 552 |
if test -d "$prefix/lib"; then |
| 553 |
LIBS="-L${prefix}/lib $LIBS" |
| 554 |
fi |
| 555 |
else |
| 556 |
if test -d "$ac_default_prefix/lib"; then |
| 557 |
LIBS="-L${ac_default_prefix}/lib $LIBS" |
| 558 |
fi |
| 559 |
fi |
| 560 |
|
| 561 |
|
| 562 |
VERSION=`sed -n -e 's/"$//' -e '/#define[ ]*SCROLLZ_VERSION[ ]*"/s///p' -e '/#define SCROLLZ_VERSION/q' < ${srcdir}/source/irc.c` |
| 563 |
IRCIIVERSION=`sed -n -e 's/"[^"]*$//' -e '/^#define[ ]*IRCII_VERSION[ ]*"/s///p' -e '/^#define IRCII_VERSION/q' < ${srcdir}/source/irc.c` |
| 564 |
echo this is ScrollZ version $VERSION + ircII version $IRCIIVERSION |
| 565 |
echo |
| 566 |
|
| 567 |
|
| 568 |
CATEGORIES='build change-request doc pending runtime' |
| 569 |
|
| 570 |
|
| 571 |
echo '$Id: configure.in,v 1.56 2009-12-21 14:56:02 f Exp $' > /dev/null |
| 572 |
|
| 573 |
|
| 574 |
# Extract the first word of "gcc", so it can be a program name with args. |
| 575 |
set dummy gcc; ac_word=$2 |
| 576 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 577 |
echo "configure:578: checking for $ac_word" >&5 |
| 578 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 579 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 580 |
else |
| 581 |
if test -n "$CC"; then |
| 582 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 583 |
else |
| 584 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 585 |
ac_dummy="$PATH" |
| 586 |
for ac_dir in $ac_dummy; do |
| 587 |
test -z "$ac_dir" && ac_dir=. |
| 588 |
if test -f $ac_dir/$ac_word; then |
| 589 |
ac_cv_prog_CC="gcc" |
| 590 |
break |
| 591 |
fi |
| 592 |
done |
| 593 |
IFS="$ac_save_ifs" |
| 594 |
fi |
| 595 |
fi |
| 596 |
CC="$ac_cv_prog_CC" |
| 597 |
if test -n "$CC"; then |
| 598 |
echo "$ac_t""$CC" 1>&6 |
| 599 |
else |
| 600 |
echo "$ac_t""no" 1>&6 |
| 601 |
fi |
| 602 |
|
| 603 |
if test -z "$CC"; then |
| 604 |
# Extract the first word of "cc", so it can be a program name with args. |
| 605 |
set dummy cc; ac_word=$2 |
| 606 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 607 |
echo "configure:608: checking for $ac_word" >&5 |
| 608 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 609 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 610 |
else |
| 611 |
if test -n "$CC"; then |
| 612 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 613 |
else |
| 614 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 615 |
ac_prog_rejected=no |
| 616 |
ac_dummy="$PATH" |
| 617 |
for ac_dir in $ac_dummy; do |
| 618 |
test -z "$ac_dir" && ac_dir=. |
| 619 |
if test -f $ac_dir/$ac_word; then |
| 620 |
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 621 |
ac_prog_rejected=yes |
| 622 |
continue |
| 623 |
fi |
| 624 |
ac_cv_prog_CC="cc" |
| 625 |
break |
| 626 |
fi |
| 627 |
done |
| 628 |
IFS="$ac_save_ifs" |
| 629 |
if test $ac_prog_rejected = yes; then |
| 630 |
# We found a bogon in the path, so make sure we never use it. |
| 631 |
set dummy $ac_cv_prog_CC |
| 632 |
shift |
| 633 |
if test $# -gt 0; then |
| 634 |
# We chose a different compiler from the bogus one. |
| 635 |
# However, it has the same basename, so the bogon will be chosen |
| 636 |
# first if we set CC to just the basename; use the full file name. |
| 637 |
shift |
| 638 |
set dummy "$ac_dir/$ac_word" "$@" |
| 639 |
shift |
| 640 |
ac_cv_prog_CC="$@" |
| 641 |
fi |
| 642 |
fi |
| 643 |
fi |
| 644 |
fi |
| 645 |
CC="$ac_cv_prog_CC" |
| 646 |
if test -n "$CC"; then |
| 647 |
echo "$ac_t""$CC" 1>&6 |
| 648 |
else |
| 649 |
echo "$ac_t""no" 1>&6 |
| 650 |
fi |
| 651 |
|
| 652 |
if test -z "$CC"; then |
| 653 |
case "`uname -s`" in |
| 654 |
*win32* | *WIN32*) |
| 655 |
# Extract the first word of "cl", so it can be a program name with args. |
| 656 |
set dummy cl; ac_word=$2 |
| 657 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 658 |
echo "configure:659: checking for $ac_word" >&5 |
| 659 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 660 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 661 |
else |
| 662 |
if test -n "$CC"; then |
| 663 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 664 |
else |
| 665 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 666 |
ac_dummy="$PATH" |
| 667 |
for ac_dir in $ac_dummy; do |
| 668 |
test -z "$ac_dir" && ac_dir=. |
| 669 |
if test -f $ac_dir/$ac_word; then |
| 670 |
ac_cv_prog_CC="cl" |
| 671 |
break |
| 672 |
fi |
| 673 |
done |
| 674 |
IFS="$ac_save_ifs" |
| 675 |
fi |
| 676 |
fi |
| 677 |
CC="$ac_cv_prog_CC" |
| 678 |
if test -n "$CC"; then |
| 679 |
echo "$ac_t""$CC" 1>&6 |
| 680 |
else |
| 681 |
echo "$ac_t""no" 1>&6 |
| 682 |
fi |
| 683 |
;; |
| 684 |
esac |
| 685 |
fi |
| 686 |
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 687 |
fi |
| 688 |
|
| 689 |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
| 690 |
echo "configure:691: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
| 691 |
|
| 692 |
ac_ext=c |
| 693 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 694 |
ac_cpp='$CPP $CPPFLAGS' |
| 695 |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 696 |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 697 |
cross_compiling=$ac_cv_prog_cc_cross |
| 698 |
|
| 699 |
cat > conftest.$ac_ext << EOF |
| 700 |
|
| 701 |
#line 702 "configure" |
| 702 |
#include "confdefs.h" |
| 703 |
|
| 704 |
main(){return(0);} |
| 705 |
EOF |
| 706 |
if { (eval echo configure:707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 707 |
ac_cv_prog_cc_works=yes |
| 708 |
# If we can't run a trivial program, we are probably using a cross compiler. |
| 709 |
if (./conftest; exit) 2>/dev/null; then |
| 710 |
ac_cv_prog_cc_cross=no |
| 711 |
else |
| 712 |
ac_cv_prog_cc_cross=yes |
| 713 |
fi |
| 714 |
else |
| 715 |
echo "configure: failed program was:" >&5 |
| 716 |
cat conftest.$ac_ext >&5 |
| 717 |
ac_cv_prog_cc_works=no |
| 718 |
fi |
| 719 |
rm -fr conftest* |
| 720 |
ac_ext=c |
| 721 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 722 |
ac_cpp='$CPP $CPPFLAGS' |
| 723 |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 724 |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 725 |
cross_compiling=$ac_cv_prog_cc_cross |
| 726 |
|
| 727 |
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 728 |
if test $ac_cv_prog_cc_works = no; then |
| 729 |
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 730 |
fi |
| 731 |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
| 732 |
echo "configure:733: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
| 733 |
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 734 |
cross_compiling=$ac_cv_prog_cc_cross |
| 735 |
|
| 736 |
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
| 737 |
echo "configure:738: checking whether we are using GNU C" >&5 |
| 738 |
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 739 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 740 |
else |
| 741 |
cat > conftest.c <<EOF |
| 742 |
#ifdef __GNUC__ |
| 743 |
yes; |
| 744 |
#endif |
| 745 |
EOF |
| 746 |
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
| 747 |
ac_cv_prog_gcc=yes |
| 748 |
else |
| 749 |
ac_cv_prog_gcc=no |
| 750 |
fi |
| 751 |
fi |
| 752 |
|
| 753 |
echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
| 754 |
|
| 755 |
if test $ac_cv_prog_gcc = yes; then |
| 756 |
GCC=yes |
| 757 |
else |
| 758 |
GCC= |
| 759 |
fi |
| 760 |
|
| 761 |
ac_test_CFLAGS="${CFLAGS+set}" |
| 762 |
ac_save_CFLAGS="$CFLAGS" |
| 763 |
CFLAGS= |
| 764 |
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
| 765 |
echo "configure:766: checking whether ${CC-cc} accepts -g" >&5 |
| 766 |
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
| 767 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 768 |
else |
| 769 |
echo 'void f(){}' > conftest.c |
| 770 |
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
| 771 |
ac_cv_prog_cc_g=yes |
| 772 |
else |
| 773 |
ac_cv_prog_cc_g=no |
| 774 |
fi |
| 775 |
rm -f conftest* |
| 776 |
|
| 777 |
fi |
| 778 |
|
| 779 |
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
| 780 |
if test "$ac_test_CFLAGS" = set; then |
| 781 |
CFLAGS="$ac_save_CFLAGS" |
| 782 |
elif test $ac_cv_prog_cc_g = yes; then |
| 783 |
if test "$GCC" = yes; then |
| 784 |
CFLAGS="-g -O2" |
| 785 |
else |
| 786 |
CFLAGS="-g" |
| 787 |
fi |
| 788 |
else |
| 789 |
if test "$GCC" = yes; then |
| 790 |
CFLAGS="-O2" |
| 791 |
else |
| 792 |
CFLAGS= |
| 793 |
fi |
| 794 |
fi |
| 795 |
|
| 796 |
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
| 797 |
echo "configure:798: checking how to run the C preprocessor" >&5 |
| 798 |
# On Suns, sometimes $CPP names a directory. |
| 799 |
if test -n "$CPP" && test -d "$CPP"; then |
| 800 |
CPP= |
| 801 |
fi |
| 802 |
if test -z "$CPP"; then |
| 803 |
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
| 804 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 805 |
else |
| 806 |
# This must be in double quotes, not single quotes, because CPP may get |
| 807 |
# substituted into the Makefile and "${CC-cc}" will confuse make. |
| 808 |
CPP="${CC-cc} -E" |
| 809 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 810 |
# not just through cpp. |
| 811 |
cat > conftest.$ac_ext <<EOF |
| 812 |
#line 813 "configure" |
| 813 |
#include "confdefs.h" |
| 814 |
#include <assert.h> |
| 815 |
Syntax Error |
| 816 |
EOF |
| 817 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 818 |
{ (eval echo configure:819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 819 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 820 |
if test -z "$ac_err"; then |
| 821 |
: |
| 822 |
else |
| 823 |
echo "$ac_err" >&5 |
| 824 |
echo "configure: failed program was:" >&5 |
| 825 |
cat conftest.$ac_ext >&5 |
| 826 |
rm -rf conftest* |
| 827 |
CPP="${CC-cc} -E -traditional-cpp" |
| 828 |
cat > conftest.$ac_ext <<EOF |
| 829 |
#line 830 "configure" |
| 830 |
#include "confdefs.h" |
| 831 |
#include <assert.h> |
| 832 |
Syntax Error |
| 833 |
EOF |
| 834 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 835 |
{ (eval echo configure:836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 836 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 837 |
if test -z "$ac_err"; then |
| 838 |
: |
| 839 |
else |
| 840 |
echo "$ac_err" >&5 |
| 841 |
echo "configure: failed program was:" >&5 |
| 842 |
cat conftest.$ac_ext >&5 |
| 843 |
rm -rf conftest* |
| 844 |
CPP="${CC-cc} -nologo -E" |
| 845 |
cat > conftest.$ac_ext <<EOF |
| 846 |
#line 847 "configure" |
| 847 |
#include "confdefs.h" |
| 848 |
#include <assert.h> |
| 849 |
Syntax Error |
| 850 |
EOF |
| 851 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 852 |
{ (eval echo configure:853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 853 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 854 |
if test -z "$ac_err"; then |
| 855 |
: |
| 856 |
else |
| 857 |
echo "$ac_err" >&5 |
| 858 |
echo "configure: failed program was:" >&5 |
| 859 |
cat conftest.$ac_ext >&5 |
| 860 |
rm -rf conftest* |
| 861 |
CPP=/lib/cpp |
| 862 |
fi |
| 863 |
rm -f conftest* |
| 864 |
fi |
| 865 |
rm -f conftest* |
| 866 |
fi |
| 867 |
rm -f conftest* |
| 868 |
ac_cv_prog_CPP="$CPP" |
| 869 |
fi |
| 870 |
CPP="$ac_cv_prog_CPP" |
| 871 |
else |
| 872 |
ac_cv_prog_CPP="$CPP" |
| 873 |
fi |
| 874 |
echo "$ac_t""$CPP" 1>&6 |
| 875 |
|
| 876 |
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 |
| 877 |
echo "configure:878: checking for POSIXized ISC" >&5 |
| 878 |
if test -d /etc/conf/kconfig.d && |
| 879 |
grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 |
| 880 |
then |
| 881 |
echo "$ac_t""yes" 1>&6 |
| 882 |
ISC=yes # If later tests want to check for ISC. |
| 883 |
cat >> confdefs.h <<\EOF |
| 884 |
#define _POSIX_SOURCE 1 |
| 885 |
EOF |
| 886 |
|
| 887 |
if test "$GCC" = yes; then |
| 888 |
CC="$CC -posix" |
| 889 |
else |
| 890 |
CC="$CC -Xp" |
| 891 |
fi |
| 892 |
else |
| 893 |
echo "$ac_t""no" 1>&6 |
| 894 |
ISC= |
| 895 |
fi |
| 896 |
|
| 897 |
|
| 898 |
srcdir=`(cd $srcdir; pwd)` |
| 899 |
|
| 900 |
objdir=`pwd` |
| 901 |
|
| 902 |
|
| 903 |
|
| 904 |
echo $ac_n "checking for NeXT""... $ac_c" 1>&6 |
| 905 |
echo "configure:906: checking for NeXT" >&5 |
| 906 |
cat > conftest.$ac_ext <<EOF |
| 907 |
#line 908 "configure" |
| 908 |
#include "confdefs.h" |
| 909 |
#if defined(NeXT) || defined(__NeXT) || defined(__NeXT__) |
| 910 |
yes |
| 911 |
#endif |
| 912 |
|
| 913 |
EOF |
| 914 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 915 |
egrep "yes" >/dev/null 2>&1; then |
| 916 |
rm -rf conftest* |
| 917 |
nextstep=1 |
| 918 |
fi |
| 919 |
rm -f conftest* |
| 920 |
|
| 921 |
|
| 922 |
if test -n "$nextstep"; then |
| 923 |
echo "$ac_t""yes" 1>&6 |
| 924 |
else |
| 925 |
echo "$ac_t""no" 1>&6 |
| 926 |
fi |
| 927 |
|
| 928 |
|
| 929 |
echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
| 930 |
echo "configure:931: checking for AIX" >&5 |
| 931 |
cat > conftest.$ac_ext <<EOF |
| 932 |
#line 933 "configure" |
| 933 |
#include "confdefs.h" |
| 934 |
|
| 935 |
#ifdef _AIX |
| 936 |
yes |
| 937 |
#endif |
| 938 |
|
| 939 |
EOF |
| 940 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 941 |
egrep "yes" >/dev/null 2>&1; then |
| 942 |
rm -rf conftest* |
| 943 |
echo "$ac_t""yes" 1>&6 |
| 944 |
aix=1 |
| 945 |
cat >> confdefs.h <<\EOF |
| 946 |
#define _ALL_SOURCE 1 |
| 947 |
EOF |
| 948 |
|
| 949 |
else |
| 950 |
rm -rf conftest* |
| 951 |
echo "$ac_t""no" 1>&6 |
| 952 |
fi |
| 953 |
rm -f conftest* |
| 954 |
|
| 955 |
|
| 956 |
if test $ac_cv_prog_gcc = yes; then |
| 957 |
echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 |
| 958 |
echo "configure:959: checking whether ${CC-cc} needs -traditional" >&5 |
| 959 |
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
| 960 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 961 |
else |
| 962 |
ac_pattern="Autoconf.*'x'" |
| 963 |
cat > conftest.$ac_ext <<EOF |
| 964 |
#line 965 "configure" |
| 965 |
#include "confdefs.h" |
| 966 |
#include <sgtty.h> |
| 967 |
Autoconf TIOCGETP |
| 968 |
EOF |
| 969 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 970 |
egrep "$ac_pattern" >/dev/null 2>&1; then |
| 971 |
rm -rf conftest* |
| 972 |
ac_cv_prog_gcc_traditional=yes |
| 973 |
else |
| 974 |
rm -rf conftest* |
| 975 |
ac_cv_prog_gcc_traditional=no |
| 976 |
fi |
| 977 |
rm -f conftest* |
| 978 |
|
| 979 |
|
| 980 |
if test $ac_cv_prog_gcc_traditional = no; then |
| 981 |
cat > conftest.$ac_ext <<EOF |
| 982 |
#line 983 "configure" |
| 983 |
#include "confdefs.h" |
| 984 |
#include <termio.h> |
| 985 |
Autoconf TCGETA |
| 986 |
EOF |
| 987 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 988 |
egrep "$ac_pattern" >/dev/null 2>&1; then |
| 989 |
rm -rf conftest* |
| 990 |
ac_cv_prog_gcc_traditional=yes |
| 991 |
fi |
| 992 |
rm -f conftest* |
| 993 |
|
| 994 |
fi |
| 995 |
fi |
| 996 |
|
| 997 |
echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 |
| 998 |
if test $ac_cv_prog_gcc_traditional = yes; then |
| 999 |
CC="$CC -traditional" |
| 1000 |
fi |
| 1001 |
fi |
| 1002 |
|
| 1003 |
echo $ac_n "checking for getpwnam in -lsun""... $ac_c" 1>&6 |
| 1004 |
echo "configure:1005: checking for getpwnam in -lsun" >&5 |
| 1005 |
ac_lib_var=`echo sun'_'getpwnam | sed 'y%./+-%__p_%'` |
| 1006 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 1007 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1008 |
else |
| 1009 |
ac_save_LIBS="$LIBS" |
| 1010 |
LIBS="-lsun $LIBS" |
| 1011 |
cat > conftest.$ac_ext <<EOF |
| 1012 |
#line 1013 "configure" |
| 1013 |
#include "confdefs.h" |
| 1014 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 1015 |
/* We use char because int might match the return type of a gcc2 |
| 1016 |
builtin and then its argument prototype would still apply. */ |
| 1017 |
char getpwnam(); |
| 1018 |
|
| 1019 |
int main() { |
| 1020 |
getpwnam() |
| 1021 |
; return 0; } |
| 1022 |
EOF |
| 1023 |
if { (eval echo configure:1024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1024 |
rm -rf conftest* |
| 1025 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 1026 |
else |
| 1027 |
echo "configure: failed program was:" >&5 |
| 1028 |
cat conftest.$ac_ext >&5 |
| 1029 |
rm -rf conftest* |
| 1030 |
eval "ac_cv_lib_$ac_lib_var=no" |
| 1031 |
fi |
| 1032 |
rm -f conftest* |
| 1033 |
LIBS="$ac_save_LIBS" |
| 1034 |
|
| 1035 |
fi |
| 1036 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 1037 |
echo "$ac_t""yes" 1>&6 |
| 1038 |
ac_tr_lib=HAVE_LIB`echo sun | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 1039 |
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 1040 |
cat >> confdefs.h <<EOF |
| 1041 |
#define $ac_tr_lib 1 |
| 1042 |
EOF |
| 1043 |
|
| 1044 |
LIBS="-lsun $LIBS" |
| 1045 |
|
| 1046 |
else |
| 1047 |
echo "$ac_t""no" 1>&6 |
| 1048 |
fi |
| 1049 |
|
| 1050 |
|
| 1051 |
echo $ac_n "checking for qnx""... $ac_c" 1>&6 |
| 1052 |
echo "configure:1053: checking for qnx" >&5 |
| 1053 |
case "`uname -s`" in |
| 1054 |
QNX*) |
| 1055 |
echo "$ac_t""yes" 1>&6 |
| 1056 |
if test -z "$GCC"; then |
| 1057 |
LDFLAGS="-N256k -M" |
| 1058 |
CFLAGS="-w4 -Otax -zc -Wc,-fr= -Wc,-wcd=121" |
| 1059 |
fi |
| 1060 |
;; |
| 1061 |
*) |
| 1062 |
echo "$ac_t""no" 1>&6 |
| 1063 |
esac |
| 1064 |
|
| 1065 |
echo $ac_n "checking for solaris""... $ac_c" 1>&6 |
| 1066 |
echo "configure:1067: checking for solaris" >&5 |
| 1067 |
if /bin/sun 2> /dev/null |
| 1068 |
then |
| 1069 |
uname=`uname -r` |
| 1070 |
case "$uname" in |
| 1071 |
4.*) |
| 1072 |
echo "$ac_t""no" 1>&6 |
| 1073 |
sunos4=1 |
| 1074 |
;; |
| 1075 |
5.*) |
| 1076 |
svr4=1 |
| 1077 |
;; |
| 1078 |
esac |
| 1079 |
else |
| 1080 |
echo "$ac_t""no" 1>&6 |
| 1081 |
echo $ac_n "checking for SVR4""... $ac_c" 1>&6 |
| 1082 |
echo "configure:1083: checking for SVR4" >&5 |
| 1083 |
cat > conftest.$ac_ext <<EOF |
| 1084 |
#line 1085 "configure" |
| 1085 |
#include "confdefs.h" |
| 1086 |
#if defined(SVR4) || defined(__svr4__) || defined(__SVR4) |
| 1087 |
yes |
| 1088 |
#endif |
| 1089 |
|
| 1090 |
EOF |
| 1091 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1092 |
egrep "yes" >/dev/null 2>&1; then |
| 1093 |
rm -rf conftest* |
| 1094 |
svr4=1 |
| 1095 |
fi |
| 1096 |
rm -f conftest* |
| 1097 |
|
| 1098 |
fi |
| 1099 |
|
| 1100 |
if test -n "$svr4" |
| 1101 |
then |
| 1102 |
echo "$ac_t""yes" 1>&6 |
| 1103 |
LIBS="-L/usr/ccs/lib $LIBS" |
| 1104 |
else |
| 1105 |
if test ! -n "$sunos4" |
| 1106 |
then |
| 1107 |
echo "$ac_t""no" 1>&6 |
| 1108 |
fi |
| 1109 |
fi |
| 1110 |
|
| 1111 |
|
| 1112 |
echo $ac_n "checking for -I/usr/netinclude""... $ac_c" 1>&6 |
| 1113 |
echo "configure:1114: checking for -I/usr/netinclude" >&5 |
| 1114 |
if test -d /usr/netinclude; then |
| 1115 |
echo "$ac_t""yes" 1>&6 |
| 1116 |
CFLAGS="$CFLAGS -I/usr/netinclude" |
| 1117 |
else |
| 1118 |
echo "$ac_t""no" 1>&6 |
| 1119 |
fi |
| 1120 |
|
| 1121 |
|
| 1122 |
echo $ac_n "checking for hpux version""... $ac_c" 1>&6 |
| 1123 |
echo "configure:1124: checking for hpux version" >&5 |
| 1124 |
if test -f /hp-ux -o -f /stand/vmunix; then |
| 1125 |
echo "$ac_t""yes" 1>&6 |
| 1126 |
hpux=1 |
| 1127 |
uname=`uname -r` 2> /dev/null |
| 1128 |
case $uname in |
| 1129 |
A.09* | A.9* | a.9* | a.09* | 9* | 09* | B.09*) |
| 1130 |
;; |
| 1131 |
A.08* | A.8* | a.8* | a.08* | 8* | 08*) |
| 1132 |
cat >> confdefs.h <<\EOF |
| 1133 |
#define HPUX8 1 |
| 1134 |
EOF |
| 1135 |
|
| 1136 |
;; |
| 1137 |
A.07* | A.B7* | A.7* | a.7* | a.07* | 7* | 07*) |
| 1138 |
cat >> confdefs.h <<\EOF |
| 1139 |
#define HPUX7 1 |
| 1140 |
EOF |
| 1141 |
|
| 1142 |
;; |
| 1143 |
*) |
| 1144 |
cat >> confdefs.h <<\EOF |
| 1145 |
#define HPUXUNKNOWN 1 |
| 1146 |
EOF |
| 1147 |
|
| 1148 |
;; |
| 1149 |
esac |
| 1150 |
else |
| 1151 |
echo "$ac_t""no" 1>&6 |
| 1152 |
fi |
| 1153 |
|
| 1154 |
echo $ac_n "checking for ultrix""... $ac_c" 1>&6 |
| 1155 |
echo "configure:1156: checking for ultrix" >&5 |
| 1156 |
cat > conftest.$ac_ext <<EOF |
| 1157 |
#line 1158 "configure" |
| 1158 |
#include "confdefs.h" |
| 1159 |
#if defined(ultrix) || defined(__ultrix) || defined(__ultrix) |
| 1160 |
yes |
| 1161 |
#endif |
| 1162 |
|
| 1163 |
EOF |
| 1164 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1165 |
egrep "yes" >/dev/null 2>&1; then |
| 1166 |
rm -rf conftest* |
| 1167 |
ultrix=1 |
| 1168 |
fi |
| 1169 |
rm -f conftest* |
| 1170 |
|
| 1171 |
if test -n "$ultrix"; then |
| 1172 |
echo "$ac_t""yes" 1>&6 |
| 1173 |
test -z "$GCC" && CC="$CC -YBSD" |
| 1174 |
else |
| 1175 |
echo "$ac_t""no" 1>&6 |
| 1176 |
fi |
| 1177 |
|
| 1178 |
echo $ac_n "checking for sequent/ptx""... $ac_c" 1>&6 |
| 1179 |
echo "configure:1180: checking for sequent/ptx" >&5 |
| 1180 |
cat > conftest.$ac_ext <<EOF |
| 1181 |
#line 1182 "configure" |
| 1182 |
#include "confdefs.h" |
| 1183 |
#ifdef _SEQUENT_ |
| 1184 |
yes |
| 1185 |
#endif |
| 1186 |
|
| 1187 |
EOF |
| 1188 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1189 |
egrep "yes" >/dev/null 2>&1; then |
| 1190 |
rm -rf conftest* |
| 1191 |
LIBS="$LIBS -lseq" seqptx=1 echo "$ac_t""yes" 1>&6 |
| 1192 |
else |
| 1193 |
rm -rf conftest* |
| 1194 |
echo "$ac_t""no" 1>&6 |
| 1195 |
fi |
| 1196 |
rm -f conftest* |
| 1197 |
|
| 1198 |
|
| 1199 |
echo $ac_n "checking whether to enable UTF-8 (iconv) support""... $ac_c" 1>&6 |
| 1200 |
echo "configure:1201: checking whether to enable UTF-8 (iconv) support" >&5 |
| 1201 |
# Check whether --enable-utf8 or --disable-utf8 was given. |
| 1202 |
if test "${enable_utf8+set}" = set; then |
| 1203 |
enableval="$enable_utf8" |
| 1204 |
case "$enableval" in |
| 1205 |
no) echo "$ac_t""no" 1>&6 |
| 1206 |
;; |
| 1207 |
*) echo "$ac_t""yes" 1>&6 |
| 1208 |
;; |
| 1209 |
esac |
| 1210 |
else |
| 1211 |
echo "$ac_t""yes" 1>&6 |
| 1212 |
enable_utf8=yes |
| 1213 |
|
| 1214 |
fi |
| 1215 |
|
| 1216 |
|
| 1217 |
echo $ac_n "checking for FreeBSD""... $ac_c" 1>&6 |
| 1218 |
echo "configure:1219: checking for FreeBSD" >&5 |
| 1219 |
case "`uname -s`" in |
| 1220 |
FreeBSD*) |
| 1221 |
echo "$ac_t""yes" 1>&6 |
| 1222 |
CFLAGS="$CFLAGS -I/usr/local/include" |
| 1223 |
CPPFLAGS="$CPPFLAGS -I/usr/local/include" |
| 1224 |
LIBS="$LIBS -L/usr/local/lib" |
| 1225 |
freebsd=1 |
| 1226 |
;; |
| 1227 |
*) |
| 1228 |
echo "$ac_t""no" 1>&6 |
| 1229 |
esac |
| 1230 |
|
| 1231 |
echo $ac_n "checking for IRIX""... $ac_c" 1>&6 |
| 1232 |
echo "configure:1233: checking for IRIX" >&5 |
| 1233 |
case "`uname -s`" in |
| 1234 |
IRIX*) |
| 1235 |
echo "$ac_t""yes" 1>&6 |
| 1236 |
CFLAGS="$CFLAGS -I/usr/nekoware/include" |
| 1237 |
CPPFLAGS="$CPPFLAGS -I/usr/nekoware/include" |
| 1238 |
LIBS="$LIBS -L/usr/nekoware/lib" |
| 1239 |
freebsd=1 |
| 1240 |
;; |
| 1241 |
*) |
| 1242 |
echo "$ac_t""no" 1>&6 |
| 1243 |
esac |
| 1244 |
|
| 1245 |
if test "x$enable_utf8" = "xyes" ; then |
| 1246 |
if test -n "$freebsd"; then |
| 1247 |
case "`uname -r`" in |
| 1248 |
10.*) |
| 1249 |
;; |
| 1250 |
*) |
| 1251 |
LIBS="$LIBS -liconv" |
| 1252 |
;; |
| 1253 |
esac |
| 1254 |
fi |
| 1255 |
fi |
| 1256 |
|
| 1257 |
for ac_hdr in sys/un.h sys/select.h sys/fcntl.h sys/ioctl.h sys/file.h sys/time.h sys/wait.h sys/twg_config.h sys/ptem.h sys/uio.h |
| 1258 |
do |
| 1259 |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 1260 |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 1261 |
echo "configure:1262: checking for $ac_hdr" >&5 |
| 1262 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1263 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1264 |
else |
| 1265 |
cat > conftest.$ac_ext <<EOF |
| 1266 |
#line 1267 "configure" |
| 1267 |
#include "confdefs.h" |
| 1268 |
#include <$ac_hdr> |
| 1269 |
EOF |
| 1270 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1271 |
{ (eval echo configure:1272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1272 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1273 |
if test -z "$ac_err"; then |
| 1274 |
rm -rf conftest* |
| 1275 |
eval "ac_cv_header_$ac_safe=yes" |
| 1276 |
else |
| 1277 |
echo "$ac_err" >&5 |
| 1278 |
echo "configure: failed program was:" >&5 |
| 1279 |
cat conftest.$ac_ext >&5 |
| 1280 |
rm -rf conftest* |
| 1281 |
eval "ac_cv_header_$ac_safe=no" |
| 1282 |
fi |
| 1283 |
rm -f conftest* |
| 1284 |
fi |
| 1285 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1286 |
echo "$ac_t""yes" 1>&6 |
| 1287 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 1288 |
cat >> confdefs.h <<EOF |
| 1289 |
#define $ac_tr_hdr 1 |
| 1290 |
EOF |
| 1291 |
|
| 1292 |
else |
| 1293 |
echo "$ac_t""no" 1>&6 |
| 1294 |
fi |
| 1295 |
done |
| 1296 |
for ac_hdr in unistd.h fcntl.h string.h memory.h netdb.h limits.h |
| 1297 |
do |
| 1298 |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 1299 |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 1300 |
echo "configure:1301: checking for $ac_hdr" >&5 |
| 1301 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1302 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1303 |
else |
| 1304 |
cat > conftest.$ac_ext <<EOF |
| 1305 |
#line 1306 "configure" |
| 1306 |
#include "confdefs.h" |
| 1307 |
#include <$ac_hdr> |
| 1308 |
EOF |
| 1309 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1310 |
{ (eval echo configure:1311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1311 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1312 |
if test -z "$ac_err"; then |
| 1313 |
rm -rf conftest* |
| 1314 |
eval "ac_cv_header_$ac_safe=yes" |
| 1315 |
else |
| 1316 |
echo "$ac_err" >&5 |
| 1317 |
echo "configure: failed program was:" >&5 |
| 1318 |
cat conftest.$ac_ext >&5 |
| 1319 |
rm -rf conftest* |
| 1320 |
eval "ac_cv_header_$ac_safe=no" |
| 1321 |
fi |
| 1322 |
rm -f conftest* |
| 1323 |
fi |
| 1324 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1325 |
echo "$ac_t""yes" 1>&6 |
| 1326 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 1327 |
cat >> confdefs.h <<EOF |
| 1328 |
#define $ac_tr_hdr 1 |
| 1329 |
EOF |
| 1330 |
|
| 1331 |
else |
| 1332 |
echo "$ac_t""no" 1>&6 |
| 1333 |
fi |
| 1334 |
done |
| 1335 |
for ac_hdr in stdarg.h varargs.h |
| 1336 |
do |
| 1337 |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 1338 |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 1339 |
echo "configure:1340: checking for $ac_hdr" >&5 |
| 1340 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1341 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1342 |
else |
| 1343 |
cat > conftest.$ac_ext <<EOF |
| 1344 |
#line 1345 "configure" |
| 1345 |
#include "confdefs.h" |
| 1346 |
#include <$ac_hdr> |
| 1347 |
EOF |
| 1348 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1349 |
{ (eval echo configure:1350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1350 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1351 |
if test -z "$ac_err"; then |
| 1352 |
rm -rf conftest* |
| 1353 |
eval "ac_cv_header_$ac_safe=yes" |
| 1354 |
else |
| 1355 |
echo "$ac_err" >&5 |
| 1356 |
echo "configure: failed program was:" >&5 |
| 1357 |
cat conftest.$ac_ext >&5 |
| 1358 |
rm -rf conftest* |
| 1359 |
eval "ac_cv_header_$ac_safe=no" |
| 1360 |
fi |
| 1361 |
rm -f conftest* |
| 1362 |
fi |
| 1363 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1364 |
echo "$ac_t""yes" 1>&6 |
| 1365 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 1366 |
cat >> confdefs.h <<EOF |
| 1367 |
#define $ac_tr_hdr 1 |
| 1368 |
EOF |
| 1369 |
break |
| 1370 |
else |
| 1371 |
echo "$ac_t""no" 1>&6 |
| 1372 |
fi |
| 1373 |
done |
| 1374 |
for ac_hdr in process.h termcap.h |
| 1375 |
do |
| 1376 |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 1377 |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 1378 |
echo "configure:1379: checking for $ac_hdr" >&5 |
| 1379 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1380 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1381 |
else |
| 1382 |
cat > conftest.$ac_ext <<EOF |
| 1383 |
#line 1384 "configure" |
| 1384 |
#include "confdefs.h" |
| 1385 |
#include <$ac_hdr> |
| 1386 |
EOF |
| 1387 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1388 |
{ (eval echo configure:1389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1389 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1390 |
if test -z "$ac_err"; then |
| 1391 |
rm -rf conftest* |
| 1392 |
eval "ac_cv_header_$ac_safe=yes" |
| 1393 |
else |
| 1394 |
echo "$ac_err" >&5 |
| 1395 |
echo "configure: failed program was:" >&5 |
| 1396 |
cat conftest.$ac_ext >&5 |
| 1397 |
rm -rf conftest* |
| 1398 |
eval "ac_cv_header_$ac_safe=no" |
| 1399 |
fi |
| 1400 |
rm -f conftest* |
| 1401 |
fi |
| 1402 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1403 |
echo "$ac_t""yes" 1>&6 |
| 1404 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 1405 |
cat >> confdefs.h <<EOF |
| 1406 |
#define $ac_tr_hdr 1 |
| 1407 |
EOF |
| 1408 |
|
| 1409 |
else |
| 1410 |
echo "$ac_t""no" 1>&6 |
| 1411 |
fi |
| 1412 |
done |
| 1413 |
|
| 1414 |
if test "x$enable_utf8" = "xyes" ; then |
| 1415 |
for ac_hdr in iconv.h |
| 1416 |
do |
| 1417 |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 1418 |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 1419 |
echo "configure:1420: checking for $ac_hdr" >&5 |
| 1420 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1421 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1422 |
else |
| 1423 |
cat > conftest.$ac_ext <<EOF |
| 1424 |
#line 1425 "configure" |
| 1425 |
#include "confdefs.h" |
| 1426 |
#include <$ac_hdr> |
| 1427 |
EOF |
| 1428 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1429 |
{ (eval echo configure:1430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1430 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1431 |
if test -z "$ac_err"; then |
| 1432 |
rm -rf conftest* |
| 1433 |
eval "ac_cv_header_$ac_safe=yes" |
| 1434 |
else |
| 1435 |
echo "$ac_err" >&5 |
| 1436 |
echo "configure: failed program was:" >&5 |
| 1437 |
cat conftest.$ac_ext >&5 |
| 1438 |
rm -rf conftest* |
| 1439 |
eval "ac_cv_header_$ac_safe=no" |
| 1440 |
fi |
| 1441 |
rm -f conftest* |
| 1442 |
fi |
| 1443 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1444 |
echo "$ac_t""yes" 1>&6 |
| 1445 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 1446 |
cat >> confdefs.h <<EOF |
| 1447 |
#define $ac_tr_hdr 1 |
| 1448 |
EOF |
| 1449 |
|
| 1450 |
else |
| 1451 |
echo "$ac_t""no" 1>&6 |
| 1452 |
fi |
| 1453 |
done |
| 1454 |
|
| 1455 |
fi |
| 1456 |
|
| 1457 |
if test -n "$ultrix" -o -n "$nextstep"; then |
| 1458 |
# POSIX termios is broken on Ultrix so don't look for it. |
| 1459 |
# NEXTSTEP POSIX is broken so don't look for it. |
| 1460 |
for ac_hdr in termio.h sgtty.h |
| 1461 |
do |
| 1462 |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 1463 |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 1464 |
echo "configure:1465: checking for $ac_hdr" >&5 |
| 1465 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1466 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1467 |
else |
| 1468 |
cat > conftest.$ac_ext <<EOF |
| 1469 |
#line 1470 "configure" |
| 1470 |
#include "confdefs.h" |
| 1471 |
#include <$ac_hdr> |
| 1472 |
EOF |
| 1473 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1474 |
{ (eval echo configure:1475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1475 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1476 |
if test -z "$ac_err"; then |
| 1477 |
rm -rf conftest* |
| 1478 |
eval "ac_cv_header_$ac_safe=yes" |
| 1479 |
else |
| 1480 |
echo "$ac_err" >&5 |
| 1481 |
echo "configure: failed program was:" >&5 |
| 1482 |
cat conftest.$ac_ext >&5 |
| 1483 |
rm -rf conftest* |
| 1484 |
eval "ac_cv_header_$ac_safe=no" |
| 1485 |
fi |
| 1486 |
rm -f conftest* |
| 1487 |
fi |
| 1488 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1489 |
echo "$ac_t""yes" 1>&6 |
| 1490 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 1491 |
cat >> confdefs.h <<EOF |
| 1492 |
#define $ac_tr_hdr 1 |
| 1493 |
EOF |
| 1494 |
break |
| 1495 |
else |
| 1496 |
echo "$ac_t""no" 1>&6 |
| 1497 |
fi |
| 1498 |
done |
| 1499 |
else |
| 1500 |
for ac_hdr in termios.h termio.h sgtty.h |
| 1501 |
do |
| 1502 |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 1503 |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 1504 |
echo "configure:1505: checking for $ac_hdr" >&5 |
| 1505 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1506 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1507 |
else |
| 1508 |
cat > conftest.$ac_ext <<EOF |
| 1509 |
#line 1510 "configure" |
| 1510 |
#include "confdefs.h" |
| 1511 |
#include <$ac_hdr> |
| 1512 |
EOF |
| 1513 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1514 |
{ (eval echo configure:1515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1515 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1516 |
if test -z "$ac_err"; then |
| 1517 |
rm -rf conftest* |
| 1518 |
eval "ac_cv_header_$ac_safe=yes" |
| 1519 |
else |
| 1520 |
echo "$ac_err" >&5 |
| 1521 |
echo "configure: failed program was:" >&5 |
| 1522 |
cat conftest.$ac_ext >&5 |
| 1523 |
rm -rf conftest* |
| 1524 |
eval "ac_cv_header_$ac_safe=no" |
| 1525 |
fi |
| 1526 |
rm -f conftest* |
| 1527 |
fi |
| 1528 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1529 |
echo "$ac_t""yes" 1>&6 |
| 1530 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 1531 |
cat >> confdefs.h <<EOF |
| 1532 |
#define $ac_tr_hdr 1 |
| 1533 |
EOF |
| 1534 |
break |
| 1535 |
else |
| 1536 |
echo "$ac_t""no" 1>&6 |
| 1537 |
fi |
| 1538 |
done |
| 1539 |
fi |
| 1540 |
|
| 1541 |
echo $ac_n "checking for fchmod""... $ac_c" 1>&6 |
| 1542 |
echo "configure:1543: checking for fchmod" >&5 |
| 1543 |
if eval "test \"`echo '$''{'ac_cv_func_fchmod'+set}'`\" = set"; then |
| 1544 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1545 |
else |
| 1546 |
cat > conftest.$ac_ext <<EOF |
| 1547 |
#line 1548 "configure" |
| 1548 |
#include "confdefs.h" |
| 1549 |
/* System header to define __stub macros and hopefully few prototypes, |
| 1550 |
which can conflict with char fchmod(); below. */ |
| 1551 |
#include <assert.h> |
| 1552 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 1553 |
/* We use char because int might match the return type of a gcc2 |
| 1554 |
builtin and then its argument prototype would still apply. */ |
| 1555 |
char fchmod(); |
| 1556 |
|
| 1557 |
int main() { |
| 1558 |
|
| 1559 |
/* The GNU C library defines this for functions which it implements |
| 1560 |
to always fail with ENOSYS. Some functions are actually named |
| 1561 |
something starting with __ and the normal name is an alias. */ |
| 1562 |
#if defined (__stub_fchmod) || defined (__stub___fchmod) |
| 1563 |
choke me |
| 1564 |
#else |
| 1565 |
fchmod(); |
| 1566 |
#endif |
| 1567 |
|
| 1568 |
; return 0; } |
| 1569 |
EOF |
| 1570 |
if { (eval echo configure:1571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1571 |
rm -rf conftest* |
| 1572 |
eval "ac_cv_func_fchmod=yes" |
| 1573 |
else |
| 1574 |
echo "configure: failed program was:" >&5 |
| 1575 |
cat conftest.$ac_ext >&5 |
| 1576 |
rm -rf conftest* |
| 1577 |
eval "ac_cv_func_fchmod=no" |
| 1578 |
fi |
| 1579 |
rm -f conftest* |
| 1580 |
fi |
| 1581 |
|
| 1582 |
if eval "test \"`echo '$ac_cv_func_'fchmod`\" = yes"; then |
| 1583 |
echo "$ac_t""yes" 1>&6 |
| 1584 |
: |
| 1585 |
else |
| 1586 |
echo "$ac_t""no" 1>&6 |
| 1587 |
cat >> confdefs.h <<\EOF |
| 1588 |
#define NEED_FCHMOD 1 |
| 1589 |
EOF |
| 1590 |
|
| 1591 |
fi |
| 1592 |
|
| 1593 |
echo $ac_n "checking for getcwd""... $ac_c" 1>&6 |
| 1594 |
echo "configure:1595: checking for getcwd" >&5 |
| 1595 |
if eval "test \"`echo '$''{'ac_cv_func_getcwd'+set}'`\" = set"; then |
| 1596 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1597 |
else |
| 1598 |
cat > conftest.$ac_ext <<EOF |
| 1599 |
#line 1600 "configure" |
| 1600 |
#include "confdefs.h" |
| 1601 |
/* System header to define __stub macros and hopefully few prototypes, |
| 1602 |
which can conflict with char getcwd(); below. */ |
| 1603 |
#include <assert.h> |
| 1604 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 1605 |
/* We use char because int might match the return type of a gcc2 |
| 1606 |
builtin and then its argument prototype would still apply. */ |
| 1607 |
char getcwd(); |
| 1608 |
|
| 1609 |
int main() { |
| 1610 |
|
| 1611 |
/* The GNU C library defines this for functions which it implements |
| 1612 |
to always fail with ENOSYS. Some functions are actually named |
| 1613 |
something starting with __ and the normal name is an alias. */ |
| 1614 |
#if defined (__stub_getcwd) || defined (__stub___getcwd) |
| 1615 |
choke me |
| 1616 |
#else |
| 1617 |
getcwd(); |
| 1618 |
#endif |
| 1619 |
|
| 1620 |
; return 0; } |
| 1621 |
EOF |
| 1622 |
if { (eval echo configure:1623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1623 |
rm -rf conftest* |
| 1624 |
eval "ac_cv_func_getcwd=yes" |
| 1625 |
else |
| 1626 |
echo "configure: failed program was:" >&5 |
| 1627 |
cat conftest.$ac_ext >&5 |
| 1628 |
rm -rf conftest* |
| 1629 |
eval "ac_cv_func_getcwd=no" |
| 1630 |
fi |
| 1631 |
rm -f conftest* |
| 1632 |
fi |
| 1633 |
|
| 1634 |
if eval "test \"`echo '$ac_cv_func_'getcwd`\" = yes"; then |
| 1635 |
echo "$ac_t""yes" 1>&6 |
| 1636 |
: |
| 1637 |
else |
| 1638 |
echo "$ac_t""no" 1>&6 |
| 1639 |
cat >> confdefs.h <<\EOF |
| 1640 |
#define NEED_GETCWD 1 |
| 1641 |
EOF |
| 1642 |
|
| 1643 |
fi |
| 1644 |
|
| 1645 |
echo $ac_n "checking for getpgid""... $ac_c" 1>&6 |
| 1646 |
echo "configure:1647: checking for getpgid" >&5 |
| 1647 |
if eval "test \"`echo '$''{'ac_cv_func_getpgid'+set}'`\" = set"; then |
| 1648 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1649 |
else |
| 1650 |
cat > conftest.$ac_ext <<EOF |
| 1651 |
#line 1652 "configure" |
| 1652 |
#include "confdefs.h" |
| 1653 |
/* System header to define __stub macros and hopefully few prototypes, |
| 1654 |
which can conflict with char getpgid(); below. */ |
| 1655 |
#include <assert.h> |
| 1656 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 1657 |
/* We use char because int might match the return type of a gcc2 |
| 1658 |
builtin and then its argument prototype would still apply. */ |
| 1659 |
char getpgid(); |
| 1660 |
|
| 1661 |
int main() { |
| 1662 |
|
| 1663 |
/* The GNU C library defines this for functions which it implements |
| 1664 |
to always fail with ENOSYS. Some functions are actually named |
| 1665 |
something starting with __ and the normal name is an alias. */ |
| 1666 |
#if defined (__stub_getpgid) || defined (__stub___getpgid) |
| 1667 |
choke me |
| 1668 |
#else |
| 1669 |
getpgid(); |
| 1670 |
#endif |
| 1671 |
|
| 1672 |
; return 0; } |
| 1673 |
EOF |
| 1674 |
if { (eval echo configure:1675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1675 |
rm -rf conftest* |
| 1676 |
eval "ac_cv_func_getpgid=yes" |
| 1677 |
else |
| 1678 |
echo "configure: failed program was:" >&5 |
| 1679 |
cat conftest.$ac_ext >&5 |
| 1680 |
rm -rf conftest* |
| 1681 |
eval "ac_cv_func_getpgid=no" |
| 1682 |
fi |
| 1683 |
rm -f conftest* |
| 1684 |
fi |
| 1685 |
|
| 1686 |
if eval "test \"`echo '$ac_cv_func_'getpgid`\" = yes"; then |
| 1687 |
echo "$ac_t""yes" 1>&6 |
| 1688 |
cat >> confdefs.h <<\EOF |
| 1689 |
#define HAVE_GETPGID 1 |
| 1690 |
EOF |
| 1691 |
|
| 1692 |
else |
| 1693 |
echo "$ac_t""no" 1>&6 |
| 1694 |
fi |
| 1695 |
|
| 1696 |
echo $ac_n "checking for getsid""... $ac_c" 1>&6 |
| 1697 |
echo "configure:1698: checking for getsid" >&5 |
| 1698 |
if eval "test \"`echo '$''{'ac_cv_func_getsid'+set}'`\" = set"; then |
| 1699 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1700 |
else |
| 1701 |
cat > conftest.$ac_ext <<EOF |
| 1702 |
#line 1703 "configure" |
| 1703 |
#include "confdefs.h" |
| 1704 |
/* System header to define __stub macros and hopefully few prototypes, |
| 1705 |
which can conflict with char getsid(); below. */ |
| 1706 |
#include <assert.h> |
| 1707 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 1708 |
/* We use char because int might match the return type of a gcc2 |
| 1709 |
builtin and then its argument prototype would still apply. */ |
| 1710 |
char getsid(); |
| 1711 |
|
| 1712 |
int main() { |
| 1713 |
|
| 1714 |
/* The GNU C library defines this for functions which it implements |
| 1715 |
to always fail with ENOSYS. Some functions are actually named |
| 1716 |
something starting with __ and the normal name is an alias. */ |
| 1717 |
#if defined (__stub_getsid) || defined (__stub___getsid) |
| 1718 |
choke me |
| 1719 |
#else |
| 1720 |
getsid(); |
| 1721 |
#endif |
| 1722 |
|
| 1723 |
; return 0; } |
| 1724 |
EOF |
| 1725 |
if { (eval echo configure:1726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1726 |
rm -rf conftest* |
| 1727 |
eval "ac_cv_func_getsid=yes" |
| 1728 |
else |
| 1729 |
echo "configure: failed program was:" >&5 |
| 1730 |
cat conftest.$ac_ext >&5 |
| 1731 |
rm -rf conftest* |
| 1732 |
eval "ac_cv_func_getsid=no" |
| 1733 |
fi |
| 1734 |
rm -f conftest* |
| 1735 |
fi |
| 1736 |
|
| 1737 |
if eval "test \"`echo '$ac_cv_func_'getsid`\" = yes"; then |
| 1738 |
echo "$ac_t""yes" 1>&6 |
| 1739 |
cat >> confdefs.h <<\EOF |
| 1740 |
#define HAVE_GETSID 1 |
| 1741 |
EOF |
| 1742 |
|
| 1743 |
else |
| 1744 |
echo "$ac_t""no" 1>&6 |
| 1745 |
fi |
| 1746 |
|
| 1747 |
echo $ac_n "checking for getloadavg""... $ac_c" 1>&6 |
| 1748 |
echo "configure:1749: checking for getloadavg" >&5 |
| 1749 |
if eval "test \"`echo '$''{'ac_cv_func_getloadavg'+set}'`\" = set"; then |
| 1750 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1751 |
else |
| 1752 |
cat > conftest.$ac_ext <<EOF |
| 1753 |
#line 1754 "configure" |
| 1754 |
#include "confdefs.h" |
| 1755 |
/* System header to define __stub macros and hopefully few prototypes, |
| 1756 |
which can conflict with char getloadavg(); below. */ |
| 1757 |
#include <assert.h> |
| 1758 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 1759 |
/* We use char because int might match the return type of a gcc2 |
| 1760 |
builtin and then its argument prototype would still apply. */ |
| 1761 |
char getloadavg(); |
| 1762 |
|
| 1763 |
int main() { |
| 1764 |
|
| 1765 |
/* The GNU C library defines this for functions which it implements |
| 1766 |
to always fail with ENOSYS. Some functions are actually named |
| 1767 |
something starting with __ and the normal name is an alias. */ |
| 1768 |
#if defined (__stub_getloadavg) || defined (__stub___getloadavg) |
| 1769 |
choke me |
| 1770 |
#else |
| 1771 |
getloadavg(); |
| 1772 |
#endif |
| 1773 |
|
| 1774 |
; return 0; } |
| 1775 |
EOF |
| 1776 |
if { (eval echo configure:1777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1777 |
rm -rf conftest* |
| 1778 |
eval "ac_cv_func_getloadavg=yes" |
| 1779 |
else |
| 1780 |
echo "configure: failed program was:" >&5 |
| 1781 |
cat conftest.$ac_ext >&5 |
| 1782 |
rm -rf conftest* |
| 1783 |
eval "ac_cv_func_getloadavg=no" |
| 1784 |
fi |
| 1785 |
rm -f conftest* |
| 1786 |
fi |
| 1787 |
|
| 1788 |
if eval "test \"`echo '$ac_cv_func_'getloadavg`\" = yes"; then |
| 1789 |
echo "$ac_t""yes" 1>&6 |
| 1790 |
cat >> confdefs.h <<\EOF |
| 1791 |
#define HAVEGETLOADAVG 1 |
| 1792 |
EOF |
| 1793 |
|
| 1794 |
else |
| 1795 |
echo "$ac_t""no" 1>&6 |
| 1796 |
fi |
| 1797 |
|
| 1798 |
echo $ac_n "checking for memmove""... $ac_c" 1>&6 |
| 1799 |
echo "configure:1800: checking for memmove" >&5 |
| 1800 |
if eval "test \"`echo '$''{'ac_cv_func_memmove'+set}'`\" = set"; then |
| 1801 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1802 |
else |
| 1803 |
cat > conftest.$ac_ext <<EOF |
| 1804 |
#line 1805 "configure" |
| 1805 |
#include "confdefs.h" |
| 1806 |
/* System header to define __stub macros and hopefully few prototypes, |
| 1807 |
which can conflict with char memmove(); below. */ |
| 1808 |
#include <assert.h> |
| 1809 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 1810 |
/* We use char because int might match the return type of a gcc2 |
| 1811 |
builtin and then its argument prototype would still apply. */ |
| 1812 |
char memmove(); |
| 1813 |
|
| 1814 |
int main() { |
| 1815 |
|
| 1816 |
/* The GNU C library defines this for functions which it implements |
| 1817 |
to always fail with ENOSYS. Some functions are actually named |
| 1818 |
something starting with __ and the normal name is an alias. */ |
| 1819 |
#if defined (__stub_memmove) || defined (__stub___memmove) |
| 1820 |
choke me |
| 1821 |
#else |
| 1822 |
memmove(); |
| 1823 |
#endif |
| 1824 |
|
| 1825 |
; return 0; } |
| 1826 |
EOF |
| 1827 |
if { (eval echo configure:1828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1828 |
rm -rf conftest* |
| 1829 |
eval "ac_cv_func_memmove=yes" |
| 1830 |
else |
| 1831 |
echo "configure: failed program was:" >&5 |
| 1832 |
cat conftest.$ac_ext >&5 |
| 1833 |
rm -rf conftest* |
| 1834 |
eval "ac_cv_func_memmove=no" |
| 1835 |
fi |
| 1836 |
rm -f conftest* |
| 1837 |
fi |
| 1838 |
|
| 1839 |
if eval "test \"`echo '$ac_cv_func_'memmove`\" = yes"; then |
| 1840 |
echo "$ac_t""yes" 1>&6 |
| 1841 |
cat >> confdefs.h <<\EOF |
| 1842 |
#define HAVE_MEMMOVE 1 |
| 1843 |
EOF |
| 1844 |
|
| 1845 |
else |
| 1846 |
echo "$ac_t""no" 1>&6 |
| 1847 |
fi |
| 1848 |
|
| 1849 |
echo $ac_n "checking for scandir""... $ac_c" 1>&6 |
| 1850 |
echo "configure:1851: checking for scandir" >&5 |
| 1851 |
if eval "test \"`echo '$''{'ac_cv_func_scandir'+set}'`\" = set"; then |
| 1852 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1853 |
else |
| 1854 |
cat > conftest.$ac_ext <<EOF |
| 1855 |
#line 1856 "configure" |
| 1856 |
#include "confdefs.h" |
| 1857 |
/* System header to define __stub macros and hopefully few prototypes, |
| 1858 |
which can conflict with char scandir(); below. */ |
| 1859 |
#include <assert.h> |
| 1860 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 1861 |
/* We use char because int might match the return type of a gcc2 |
| 1862 |
builtin and then its argument prototype would still apply. */ |
| 1863 |
char scandir(); |
| 1864 |
|
| 1865 |
int main() { |
| 1866 |
|
| 1867 |
/* The GNU C library defines this for functions which it implements |
| 1868 |
to always fail with ENOSYS. Some functions are actually named |
| 1869 |
something starting with __ and the normal name is an alias. */ |
| 1870 |
#if defined (__stub_scandir) || defined (__stub___scandir) |
| 1871 |
choke me |
| 1872 |
#else |
| 1873 |
scandir(); |
| 1874 |
#endif |
| 1875 |
|
| 1876 |
; return 0; } |
| 1877 |
EOF |
| 1878 |
if { (eval echo configure:1879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1879 |
rm -rf conftest* |
| 1880 |
eval "ac_cv_func_scandir=yes" |
| 1881 |
else |
| 1882 |
echo "configure: failed program was:" >&5 |
| 1883 |
cat conftest.$ac_ext >&5 |
| 1884 |
rm -rf conftest* |
| 1885 |
eval "ac_cv_func_scandir=no" |
| 1886 |
fi |
| 1887 |
rm -f conftest* |
| 1888 |
fi |
| 1889 |
|
| 1890 |
if eval "test \"`echo '$ac_cv_func_'scandir`\" = yes"; then |
| 1891 |
echo "$ac_t""yes" 1>&6 |
| 1892 |
cat >> confdefs.h <<\EOF |
| 1893 |
#define HAVE_SCANDIR 1 |
| 1894 |
EOF |
| 1895 |
|
| 1896 |
else |
| 1897 |
echo "$ac_t""no" 1>&6 |
| 1898 |
fi |
| 1899 |
|
| 1900 |
echo $ac_n "checking for setsid""... $ac_c" 1>&6 |
| 1901 |
echo "configure:1902: checking for setsid" >&5 |
| 1902 |
if eval "test \"`echo '$''{'ac_cv_func_setsid'+set}'`\" = set"; then |
| 1903 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1904 |
else |
| 1905 |
cat > conftest.$ac_ext <<EOF |
| 1906 |
#line 1907 "configure" |
| 1907 |
#include "confdefs.h" |
| 1908 |
/* System header to define __stub macros and hopefully few prototypes, |
| 1909 |
which can conflict with char setsid(); below. */ |
| 1910 |
#include <assert.h> |
| 1911 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 1912 |
/* We use char because int might match the return type of a gcc2 |
| 1913 |
builtin and then its argument prototype would still apply. */ |
| 1914 |
char setsid(); |
| 1915 |
|
| 1916 |
int main() { |
| 1917 |
|
| 1918 |
/* The GNU C library defines this for functions which it implements |
| 1919 |
to always fail with ENOSYS. Some functions are actually named |
| 1920 |
something starting with __ and the normal name is an alias. */ |
| 1921 |
#if defined (__stub_setsid) || defined (__stub___setsid) |
| 1922 |
choke me |
| 1923 |
#else |
| 1924 |
setsid(); |
| 1925 |
#endif |
| 1926 |
|
| 1927 |
; return 0; } |
| 1928 |
EOF |
| 1929 |
if { (eval echo configure:1930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1930 |
rm -rf conftest* |
| 1931 |
eval "ac_cv_func_setsid=yes" |
| 1932 |
else |
| 1933 |
echo "configure: failed program was:" >&5 |
| 1934 |
cat conftest.$ac_ext >&5 |
| 1935 |
rm -rf conftest* |
| 1936 |
eval "ac_cv_func_setsid=no" |
| 1937 |
fi |
| 1938 |
rm -f conftest* |
| 1939 |
fi |
| 1940 |
|
| 1941 |
if eval "test \"`echo '$ac_cv_func_'setsid`\" = yes"; then |
| 1942 |
echo "$ac_t""yes" 1>&6 |
| 1943 |
cat >> confdefs.h <<\EOF |
| 1944 |
#define HAVE_SETSID 1 |
| 1945 |
EOF |
| 1946 |
|
| 1947 |
else |
| 1948 |
echo "$ac_t""no" 1>&6 |
| 1949 |
fi |
| 1950 |
|
| 1951 |
echo $ac_n "checking for strerror""... $ac_c" 1>&6 |
| 1952 |
echo "configure:1953: checking for strerror" >&5 |
| 1953 |
if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then |
| 1954 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1955 |
else |
| 1956 |
cat > conftest.$ac_ext <<EOF |
| 1957 |
#line 1958 "configure" |
| 1958 |
#include "confdefs.h" |
| 1959 |
/* System header to define __stub macros and hopefully few prototypes, |
| 1960 |
which can conflict with char strerror(); below. */ |
| 1961 |
#include <assert.h> |
| 1962 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 1963 |
/* We use char because int might match the return type of a gcc2 |
| 1964 |
builtin and then its argument prototype would still apply. */ |
| 1965 |
char strerror(); |
| 1966 |
|
| 1967 |
int main() { |
| 1968 |
|
| 1969 |
/* The GNU C library defines this for functions which it implements |
| 1970 |
to always fail with ENOSYS. Some functions are actually named |
| 1971 |
something starting with __ and the normal name is an alias. */ |
| 1972 |
#if defined (__stub_strerror) || defined (__stub___strerror) |
| 1973 |
choke me |
| 1974 |
#else |
| 1975 |
strerror(); |
| 1976 |
#endif |
| 1977 |
|
| 1978 |
; return 0; } |
| 1979 |
EOF |
| 1980 |
if { (eval echo configure:1981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1981 |
rm -rf conftest* |
| 1982 |
eval "ac_cv_func_strerror=yes" |
| 1983 |
else |
| 1984 |
echo "configure: failed program was:" >&5 |
| 1985 |
cat conftest.$ac_ext >&5 |
| 1986 |
rm -rf conftest* |
| 1987 |
eval "ac_cv_func_strerror=no" |
| 1988 |
fi |
| 1989 |
rm -f conftest* |
| 1990 |
fi |
| 1991 |
|
| 1992 |
if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then |
| 1993 |
echo "$ac_t""yes" 1>&6 |
| 1994 |
: |
| 1995 |
else |
| 1996 |
echo "$ac_t""no" 1>&6 |
| 1997 |
cat >> confdefs.h <<\EOF |
| 1998 |
#define NEED_STRERROR 1 |
| 1999 |
EOF |
| 2000 |
|
| 2001 |
fi |
| 2002 |
|
| 2003 |
echo $ac_n "checking for strftime""... $ac_c" 1>&6 |
| 2004 |
echo "configure:2005: checking for strftime" >&5 |
| 2005 |
if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then |
| 2006 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2007 |
else |
| 2008 |
cat > conftest.$ac_ext <<EOF |
| 2009 |
#line 2010 "configure" |
| 2010 |
#include "confdefs.h" |
| 2011 |
/* System header to define __stub macros and hopefully few prototypes, |
| 2012 |
which can conflict with char strftime(); below. */ |
| 2013 |
#include <assert.h> |
| 2014 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 2015 |
/* We use char because int might match the return type of a gcc2 |
| 2016 |
builtin and then its argument prototype would still apply. */ |
| 2017 |
char strftime(); |
| 2018 |
|
| 2019 |
int main() { |
| 2020 |
|
| 2021 |
/* The GNU C library defines this for functions which it implements |
| 2022 |
to always fail with ENOSYS. Some functions are actually named |
| 2023 |
something starting with __ and the normal name is an alias. */ |
| 2024 |
#if defined (__stub_strftime) || defined (__stub___strftime) |
| 2025 |
choke me |
| 2026 |
#else |
| 2027 |
strftime(); |
| 2028 |
#endif |
| 2029 |
|
| 2030 |
; return 0; } |
| 2031 |
EOF |
| 2032 |
if { (eval echo configure:2033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2033 |
rm -rf conftest* |
| 2034 |
eval "ac_cv_func_strftime=yes" |
| 2035 |
else |
| 2036 |
echo "configure: failed program was:" >&5 |
| 2037 |
cat conftest.$ac_ext >&5 |
| 2038 |
rm -rf conftest* |
| 2039 |
eval "ac_cv_func_strftime=no" |
| 2040 |
fi |
| 2041 |
rm -f conftest* |
| 2042 |
fi |
| 2043 |
|
| 2044 |
if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then |
| 2045 |
echo "$ac_t""yes" 1>&6 |
| 2046 |
cat >> confdefs.h <<\EOF |
| 2047 |
#define HAVE_STRFTIME 1 |
| 2048 |
EOF |
| 2049 |
|
| 2050 |
else |
| 2051 |
echo "$ac_t""no" 1>&6 |
| 2052 |
fi |
| 2053 |
|
| 2054 |
echo $ac_n "checking for uname""... $ac_c" 1>&6 |
| 2055 |
echo "configure:2056: checking for uname" >&5 |
| 2056 |
if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then |
| 2057 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2058 |
else |
| 2059 |
cat > conftest.$ac_ext <<EOF |
| 2060 |
#line 2061 "configure" |
| 2061 |
#include "confdefs.h" |
| 2062 |
/* System header to define __stub macros and hopefully few prototypes, |
| 2063 |
which can conflict with char uname(); below. */ |
| 2064 |
#include <assert.h> |
| 2065 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 2066 |
/* We use char because int might match the return type of a gcc2 |
| 2067 |
builtin and then its argument prototype would still apply. */ |
| 2068 |
char uname(); |
| 2069 |
|
| 2070 |
int main() { |
| 2071 |
|
| 2072 |
/* The GNU C library defines this for functions which it implements |
| 2073 |
to always fail with ENOSYS. Some functions are actually named |
| 2074 |
something starting with __ and the normal name is an alias. */ |
| 2075 |
#if defined (__stub_uname) || defined (__stub___uname) |
| 2076 |
choke me |
| 2077 |
#else |
| 2078 |
uname(); |
| 2079 |
#endif |
| 2080 |
|
| 2081 |
; return 0; } |
| 2082 |
EOF |
| 2083 |
if { (eval echo configure:2084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2084 |
rm -rf conftest* |
| 2085 |
eval "ac_cv_func_uname=yes" |
| 2086 |
else |
| 2087 |
echo "configure: failed program was:" >&5 |
| 2088 |
cat conftest.$ac_ext >&5 |
| 2089 |
rm -rf conftest* |
| 2090 |
eval "ac_cv_func_uname=no" |
| 2091 |
fi |
| 2092 |
rm -f conftest* |
| 2093 |
fi |
| 2094 |
|
| 2095 |
if eval "test \"`echo '$ac_cv_func_'uname`\" = yes"; then |
| 2096 |
echo "$ac_t""yes" 1>&6 |
| 2097 |
cat >> confdefs.h <<\EOF |
| 2098 |
#define HAVE_UNAME 1 |
| 2099 |
EOF |
| 2100 |
|
| 2101 |
else |
| 2102 |
echo "$ac_t""no" 1>&6 |
| 2103 |
fi |
| 2104 |
|
| 2105 |
echo $ac_n "checking for writev""... $ac_c" 1>&6 |
| 2106 |
echo "configure:2107: checking for writev" >&5 |
| 2107 |
if eval "test \"`echo '$''{'ac_cv_func_writev'+set}'`\" = set"; then |
| 2108 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2109 |
else |
| 2110 |
cat > conftest.$ac_ext <<EOF |
| 2111 |
#line 2112 "configure" |
| 2112 |
#include "confdefs.h" |
| 2113 |
/* System header to define __stub macros and hopefully few prototypes, |
| 2114 |
which can conflict with char writev(); below. */ |
| 2115 |
#include <assert.h> |
| 2116 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 2117 |
/* We use char because int might match the return type of a gcc2 |
| 2118 |
builtin and then its argument prototype would still apply. */ |
| 2119 |
char writev(); |
| 2120 |
|
| 2121 |
int main() { |
| 2122 |
|
| 2123 |
/* The GNU C library defines this for functions which it implements |
| 2124 |
to always fail with ENOSYS. Some functions are actually named |
| 2125 |
something starting with __ and the normal name is an alias. */ |
| 2126 |
#if defined (__stub_writev) || defined (__stub___writev) |
| 2127 |
choke me |
| 2128 |
#else |
| 2129 |
writev(); |
| 2130 |
#endif |
| 2131 |
|
| 2132 |
; return 0; } |
| 2133 |
EOF |
| 2134 |
if { (eval echo configure:2135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2135 |
rm -rf conftest* |
| 2136 |
eval "ac_cv_func_writev=yes" |
| 2137 |
else |
| 2138 |
echo "configure: failed program was:" >&5 |
| 2139 |
cat conftest.$ac_ext >&5 |
| 2140 |
rm -rf conftest* |
| 2141 |
eval "ac_cv_func_writev=no" |
| 2142 |
fi |
| 2143 |
rm -f conftest* |
| 2144 |
fi |
| 2145 |
|
| 2146 |
if eval "test \"`echo '$ac_cv_func_'writev`\" = yes"; then |
| 2147 |
echo "$ac_t""yes" 1>&6 |
| 2148 |
cat >> confdefs.h <<\EOF |
| 2149 |
#define HAVE_WRITEV 1 |
| 2150 |
EOF |
| 2151 |
|
| 2152 |
else |
| 2153 |
echo "$ac_t""no" 1>&6 |
| 2154 |
fi |
| 2155 |
|
| 2156 |
echo $ac_n "checking for vasprintf""... $ac_c" 1>&6 |
| 2157 |
echo "configure:2158: checking for vasprintf" >&5 |
| 2158 |
if eval "test \"`echo '$''{'ac_cv_func_vasprintf'+set}'`\" = set"; then |
| 2159 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2160 |
else |
| 2161 |
cat > conftest.$ac_ext <<EOF |
| 2162 |
#line 2163 "configure" |
| 2163 |
#include "confdefs.h" |
| 2164 |
/* System header to define __stub macros and hopefully few prototypes, |
| 2165 |
which can conflict with char vasprintf(); below. */ |
| 2166 |
#include <assert.h> |
| 2167 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 2168 |
/* We use char because int might match the return type of a gcc2 |
| 2169 |
builtin and then its argument prototype would still apply. */ |
| 2170 |
char vasprintf(); |
| 2171 |
|
| 2172 |
int main() { |
| 2173 |
|
| 2174 |
/* The GNU C library defines this for functions which it implements |
| 2175 |
to always fail with ENOSYS. Some functions are actually named |
| 2176 |
something starting with __ and the normal name is an alias. */ |
| 2177 |
#if defined (__stub_vasprintf) || defined (__stub___vasprintf) |
| 2178 |
choke me |
| 2179 |
#else |
| 2180 |
vasprintf(); |
| 2181 |
#endif |
| 2182 |
|
| 2183 |
; return 0; } |
| 2184 |
EOF |
| 2185 |
if { (eval echo configure:2186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2186 |
rm -rf conftest* |
| 2187 |
eval "ac_cv_func_vasprintf=yes" |
| 2188 |
else |
| 2189 |
echo "configure: failed program was:" >&5 |
| 2190 |
cat conftest.$ac_ext >&5 |
| 2191 |
rm -rf conftest* |
| 2192 |
eval "ac_cv_func_vasprintf=no" |
| 2193 |
fi |
| 2194 |
rm -f conftest* |
| 2195 |
fi |
| 2196 |
|
| 2197 |
if eval "test \"`echo '$ac_cv_func_'vasprintf`\" = yes"; then |
| 2198 |
echo "$ac_t""yes" 1>&6 |
| 2199 |
cat >> confdefs.h <<\EOF |
| 2200 |
#define HAVE_VASPRINTF 1 |
| 2201 |
EOF |
| 2202 |
|
| 2203 |
else |
| 2204 |
echo "$ac_t""no" 1>&6 |
| 2205 |
fi |
| 2206 |
|
| 2207 |
echo $ac_n "checking for fputc""... $ac_c" 1>&6 |
| 2208 |
echo "configure:2209: checking for fputc" >&5 |
| 2209 |
if eval "test \"`echo '$''{'ac_cv_func_fputc'+set}'`\" = set"; then |
| 2210 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2211 |
else |
| 2212 |
cat > conftest.$ac_ext <<EOF |
| 2213 |
#line 2214 "configure" |
| 2214 |
#include "confdefs.h" |
| 2215 |
/* System header to define __stub macros and hopefully few prototypes, |
| 2216 |
which can conflict with char fputc(); below. */ |
| 2217 |
#include <assert.h> |
| 2218 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 2219 |
/* We use char because int might match the return type of a gcc2 |
| 2220 |
builtin and then its argument prototype would still apply. */ |
| 2221 |
char fputc(); |
| 2222 |
|
| 2223 |
int main() { |
| 2224 |
|
| 2225 |
/* The GNU C library defines this for functions which it implements |
| 2226 |
to always fail with ENOSYS. Some functions are actually named |
| 2227 |
something starting with __ and the normal name is an alias. */ |
| 2228 |
#if defined (__stub_fputc) || defined (__stub___fputc) |
| 2229 |
choke me |
| 2230 |
#else |
| 2231 |
fputc(); |
| 2232 |
#endif |
| 2233 |
|
| 2234 |
; return 0; } |
| 2235 |
EOF |
| 2236 |
if { (eval echo configure:2237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2237 |
rm -rf conftest* |
| 2238 |
eval "ac_cv_func_fputc=yes" |
| 2239 |
else |
| 2240 |
echo "configure: failed program was:" >&5 |
| 2241 |
cat conftest.$ac_ext >&5 |
| 2242 |
rm -rf conftest* |
| 2243 |
eval "ac_cv_func_fputc=no" |
| 2244 |
fi |
| 2245 |
rm -f conftest* |
| 2246 |
fi |
| 2247 |
|
| 2248 |
if eval "test \"`echo '$ac_cv_func_'fputc`\" = yes"; then |
| 2249 |
echo "$ac_t""yes" 1>&6 |
| 2250 |
cat >> confdefs.h <<\EOF |
| 2251 |
#define HAVE_FPUTC 1 |
| 2252 |
EOF |
| 2253 |
|
| 2254 |
else |
| 2255 |
echo "$ac_t""no" 1>&6 |
| 2256 |
fi |
| 2257 |
|
| 2258 |
echo $ac_n "checking for fwrite""... $ac_c" 1>&6 |
| 2259 |
echo "configure:2260: checking for fwrite" >&5 |
| 2260 |
if eval "test \"`echo '$''{'ac_cv_func_fwrite'+set}'`\" = set"; then |
| 2261 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2262 |
else |
| 2263 |
cat > conftest.$ac_ext <<EOF |
| 2264 |
#line 2265 "configure" |
| 2265 |
#include "confdefs.h" |
| 2266 |
/* System header to define __stub macros and hopefully few prototypes, |
| 2267 |
which can conflict with char fwrite(); below. */ |
| 2268 |
#include <assert.h> |
| 2269 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 2270 |
/* We use char because int might match the return type of a gcc2 |
| 2271 |
builtin and then its argument prototype would still apply. */ |
| 2272 |
char fwrite(); |
| 2273 |
|
| 2274 |
int main() { |
| 2275 |
|
| 2276 |
/* The GNU C library defines this for functions which it implements |
| 2277 |
to always fail with ENOSYS. Some functions are actually named |
| 2278 |
something starting with __ and the normal name is an alias. */ |
| 2279 |
#if defined (__stub_fwrite) || defined (__stub___fwrite) |
| 2280 |
choke me |
| 2281 |
#else |
| 2282 |
fwrite(); |
| 2283 |
#endif |
| 2284 |
|
| 2285 |
; return 0; } |
| 2286 |
EOF |
| 2287 |
if { (eval echo configure:2288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2288 |
rm -rf conftest* |
| 2289 |
eval "ac_cv_func_fwrite=yes" |
| 2290 |
else |
| 2291 |
echo "configure: failed program was:" >&5 |
| 2292 |
cat conftest.$ac_ext >&5 |
| 2293 |
rm -rf conftest* |
| 2294 |
eval "ac_cv_func_fwrite=no" |
| 2295 |
fi |
| 2296 |
rm -f conftest* |
| 2297 |
fi |
| 2298 |
|
| 2299 |
if eval "test \"`echo '$ac_cv_func_'fwrite`\" = yes"; then |
| 2300 |
echo "$ac_t""yes" 1>&6 |
| 2301 |
cat >> confdefs.h <<\EOF |
| 2302 |
#define HAVE_FWRITE 1 |
| 2303 |
EOF |
| 2304 |
|
| 2305 |
else |
| 2306 |
echo "$ac_t""no" 1>&6 |
| 2307 |
fi |
| 2308 |
|
| 2309 |
echo $ac_n "checking for snprintf""... $ac_c" 1>&6 |
| 2310 |
echo "configure:2311: checking for snprintf" >&5 |
| 2311 |
if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then |
| 2312 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2313 |
else |
| 2314 |
cat > conftest.$ac_ext <<EOF |
| 2315 |
#line 2316 "configure" |
| 2316 |
#include "confdefs.h" |
| 2317 |
/* System header to define __stub macros and hopefully few prototypes, |
| 2318 |
which can conflict with char snprintf(); below. */ |
| 2319 |
#include <assert.h> |
| 2320 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 2321 |
/* We use char because int might match the return type of a gcc2 |
| 2322 |
builtin and then its argument prototype would still apply. */ |
| 2323 |
char snprintf(); |
| 2324 |
|
| 2325 |
int main() { |
| 2326 |
|
| 2327 |
/* The GNU C library defines this for functions which it implements |
| 2328 |
to always fail with ENOSYS. Some functions are actually named |
| 2329 |
something starting with __ and the normal name is an alias. */ |
| 2330 |
#if defined (__stub_snprintf) || defined (__stub___snprintf) |
| 2331 |
choke me |
| 2332 |
#else |
| 2333 |
snprintf(); |
| 2334 |
#endif |
| 2335 |
|
| 2336 |
; return 0; } |
| 2337 |
EOF |
| 2338 |
if { (eval echo configure:2339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2339 |
rm -rf conftest* |
| 2340 |
eval "ac_cv_func_snprintf=yes" |
| 2341 |
else |
| 2342 |
echo "configure: failed program was:" >&5 |
| 2343 |
cat conftest.$ac_ext >&5 |
| 2344 |
rm -rf conftest* |
| 2345 |
eval "ac_cv_func_snprintf=no" |
| 2346 |
fi |
| 2347 |
rm -f conftest* |
| 2348 |
fi |
| 2349 |
|
| 2350 |
if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then |
| 2351 |
echo "$ac_t""yes" 1>&6 |
| 2352 |
cat >> confdefs.h <<\EOF |
| 2353 |
#define HAVE_SNPRINTF 1 |
| 2354 |
EOF |
| 2355 |
|
| 2356 |
else |
| 2357 |
echo "$ac_t""no" 1>&6 |
| 2358 |
fi |
| 2359 |
|
| 2360 |
echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 |
| 2361 |
echo "configure:2362: checking for vsnprintf" >&5 |
| 2362 |
if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then |
| 2363 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2364 |
else |
| 2365 |
cat > conftest.$ac_ext <<EOF |
| 2366 |
#line 2367 "configure" |
| 2367 |
#include "confdefs.h" |
| 2368 |
/* System header to define __stub macros and hopefully few prototypes, |
| 2369 |
which can conflict with char vsnprintf(); below. */ |
| 2370 |
#include <assert.h> |
| 2371 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 2372 |
/* We use char because int might match the return type of a gcc2 |
| 2373 |
builtin and then its argument prototype would still apply. */ |
| 2374 |
char vsnprintf(); |
| 2375 |
|
| 2376 |
int main() { |
| 2377 |
|
| 2378 |
/* The GNU C library defines this for functions which it implements |
| 2379 |
to always fail with ENOSYS. Some functions are actually named |
| 2380 |
something starting with __ and the normal name is an alias. */ |
| 2381 |
#if defined (__stub_vsnprintf) || defined (__stub___vsnprintf) |
| 2382 |
choke me |
| 2383 |
#else |
| 2384 |
vsnprintf(); |
| 2385 |
#endif |
| 2386 |
|
| 2387 |
; return 0; } |
| 2388 |
EOF |
| 2389 |
if { (eval echo configure:2390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2390 |
rm -rf conftest* |
| 2391 |
eval "ac_cv_func_vsnprintf=yes" |
| 2392 |
else |
| 2393 |
echo "configure: failed program was:" >&5 |
| 2394 |
cat conftest.$ac_ext >&5 |
| 2395 |
rm -rf conftest* |
| 2396 |
eval "ac_cv_func_vsnprintf=no" |
| 2397 |
fi |
| 2398 |
rm -f conftest* |
| 2399 |
fi |
| 2400 |
|
| 2401 |
if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then |
| 2402 |
echo "$ac_t""yes" 1>&6 |
| 2403 |
cat >> confdefs.h <<\EOF |
| 2404 |
#define HAVE_VSNPRINTF 1 |
| 2405 |
EOF |
| 2406 |
|
| 2407 |
else |
| 2408 |
echo "$ac_t""no" 1>&6 |
| 2409 |
fi |
| 2410 |
|
| 2411 |
|
| 2412 |
if test "x$enable_utf8" = "xyes" ; then |
| 2413 |
echo $ac_n "checking for iconv_open""... $ac_c" 1>&6 |
| 2414 |
echo "configure:2415: checking for iconv_open" >&5 |
| 2415 |
if eval "test \"`echo '$''{'ac_cv_func_iconv_open'+set}'`\" = set"; then |
| 2416 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2417 |
else |
| 2418 |
cat > conftest.$ac_ext <<EOF |
| 2419 |
#line 2420 "configure" |
| 2420 |
#include "confdefs.h" |
| 2421 |
/* System header to define __stub macros and hopefully few prototypes, |
| 2422 |
which can conflict with char iconv_open(); below. */ |
| 2423 |
#include <assert.h> |
| 2424 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 2425 |
/* We use char because int might match the return type of a gcc2 |
| 2426 |
builtin and then its argument prototype would still apply. */ |
| 2427 |
char iconv_open(); |
| 2428 |
|
| 2429 |
int main() { |
| 2430 |
|
| 2431 |
/* The GNU C library defines this for functions which it implements |
| 2432 |
to always fail with ENOSYS. Some functions are actually named |
| 2433 |
something starting with __ and the normal name is an alias. */ |
| 2434 |
#if defined (__stub_iconv_open) || defined (__stub___iconv_open) |
| 2435 |
choke me |
| 2436 |
#else |
| 2437 |
iconv_open(); |
| 2438 |
#endif |
| 2439 |
|
| 2440 |
; return 0; } |
| 2441 |
EOF |
| 2442 |
if { (eval echo configure:2443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2443 |
rm -rf conftest* |
| 2444 |
eval "ac_cv_func_iconv_open=yes" |
| 2445 |
else |
| 2446 |
echo "configure: failed program was:" >&5 |
| 2447 |
cat conftest.$ac_ext >&5 |
| 2448 |
rm -rf conftest* |
| 2449 |
eval "ac_cv_func_iconv_open=no" |
| 2450 |
fi |
| 2451 |
rm -f conftest* |
| 2452 |
fi |
| 2453 |
|
| 2454 |
if eval "test \"`echo '$ac_cv_func_'iconv_open`\" = yes"; then |
| 2455 |
echo "$ac_t""yes" 1>&6 |
| 2456 |
cat >> confdefs.h <<\EOF |
| 2457 |
#define HAVE_ICONV_OPEN 1 |
| 2458 |
EOF |
| 2459 |
|
| 2460 |
else |
| 2461 |
echo "$ac_t""no" 1>&6 |
| 2462 |
fi |
| 2463 |
|
| 2464 |
fi |
| 2465 |
|
| 2466 |
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
| 2467 |
echo "configure:2468: checking for ANSI C header files" >&5 |
| 2468 |
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
| 2469 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2470 |
else |
| 2471 |
cat > conftest.$ac_ext <<EOF |
| 2472 |
#line 2473 "configure" |
| 2473 |
#include "confdefs.h" |
| 2474 |
#include <stdlib.h> |
| 2475 |
#include <stdarg.h> |
| 2476 |
#include <string.h> |
| 2477 |
#include <float.h> |
| 2478 |
EOF |
| 2479 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 2480 |
{ (eval echo configure:2481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 2481 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 2482 |
if test -z "$ac_err"; then |
| 2483 |
rm -rf conftest* |
| 2484 |
ac_cv_header_stdc=yes |
| 2485 |
else |
| 2486 |
echo "$ac_err" >&5 |
| 2487 |
echo "configure: failed program was:" >&5 |
| 2488 |
cat conftest.$ac_ext >&5 |
| 2489 |
rm -rf conftest* |
| 2490 |
ac_cv_header_stdc=no |
| 2491 |
fi |
| 2492 |
rm -f conftest* |
| 2493 |
|
| 2494 |
if test $ac_cv_header_stdc = yes; then |
| 2495 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 2496 |
cat > conftest.$ac_ext <<EOF |
| 2497 |
#line 2498 "configure" |
| 2498 |
#include "confdefs.h" |
| 2499 |
#include <string.h> |
| 2500 |
EOF |
| 2501 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2502 |
egrep "memchr" >/dev/null 2>&1; then |
| 2503 |
: |
| 2504 |
else |
| 2505 |
rm -rf conftest* |
| 2506 |
ac_cv_header_stdc=no |
| 2507 |
fi |
| 2508 |
rm -f conftest* |
| 2509 |
|
| 2510 |
fi |
| 2511 |
|
| 2512 |
if test $ac_cv_header_stdc = yes; then |
| 2513 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 2514 |
cat > conftest.$ac_ext <<EOF |
| 2515 |
#line 2516 "configure" |
| 2516 |
#include "confdefs.h" |
| 2517 |
#include <stdlib.h> |
| 2518 |
EOF |
| 2519 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2520 |
egrep "free" >/dev/null 2>&1; then |
| 2521 |
: |
| 2522 |
else |
| 2523 |
rm -rf conftest* |
| 2524 |
ac_cv_header_stdc=no |
| 2525 |
fi |
| 2526 |
rm -f conftest* |
| 2527 |
|
| 2528 |
fi |
| 2529 |
|
| 2530 |
if test $ac_cv_header_stdc = yes; then |
| 2531 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 2532 |
if test "$cross_compiling" = yes; then |
| 2533 |
: |
| 2534 |
else |
| 2535 |
cat > conftest.$ac_ext <<EOF |
| 2536 |
#line 2537 "configure" |
| 2537 |
#include "confdefs.h" |
| 2538 |
#include <ctype.h> |
| 2539 |
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2540 |
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 2541 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 2542 |
int main () { int i; for (i = 0; i < 256; i++) |
| 2543 |
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 2544 |
exit (0); } |
| 2545 |
|
| 2546 |
EOF |
| 2547 |
if { (eval echo configure:2548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 2548 |
then |
| 2549 |
: |
| 2550 |
else |
| 2551 |
echo "configure: failed program was:" >&5 |
| 2552 |
cat conftest.$ac_ext >&5 |
| 2553 |
rm -fr conftest* |
| 2554 |
ac_cv_header_stdc=no |
| 2555 |
fi |
| 2556 |
rm -fr conftest* |
| 2557 |
fi |
| 2558 |
|
| 2559 |
fi |
| 2560 |
fi |
| 2561 |
|
| 2562 |
echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
| 2563 |
if test $ac_cv_header_stdc = yes; then |
| 2564 |
cat >> confdefs.h <<\EOF |
| 2565 |
#define STDC_HEADERS 1 |
| 2566 |
EOF |
| 2567 |
|
| 2568 |
fi |
| 2569 |
|
| 2570 |
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
| 2571 |
echo "configure:2572: checking whether time.h and sys/time.h may both be included" >&5 |
| 2572 |
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
| 2573 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2574 |
else |
| 2575 |
cat > conftest.$ac_ext <<EOF |
| 2576 |
#line 2577 "configure" |
| 2577 |
#include "confdefs.h" |
| 2578 |
#include <sys/types.h> |
| 2579 |
#include <sys/time.h> |
| 2580 |
#include <time.h> |
| 2581 |
int main() { |
| 2582 |
struct tm *tp; |
| 2583 |
; return 0; } |
| 2584 |
EOF |
| 2585 |
if { (eval echo configure:2586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2586 |
rm -rf conftest* |
| 2587 |
ac_cv_header_time=yes |
| 2588 |
else |
| 2589 |
echo "configure: failed program was:" >&5 |
| 2590 |
cat conftest.$ac_ext >&5 |
| 2591 |
rm -rf conftest* |
| 2592 |
ac_cv_header_time=no |
| 2593 |
fi |
| 2594 |
rm -f conftest* |
| 2595 |
fi |
| 2596 |
|
| 2597 |
echo "$ac_t""$ac_cv_header_time" 1>&6 |
| 2598 |
if test $ac_cv_header_time = yes; then |
| 2599 |
cat >> confdefs.h <<\EOF |
| 2600 |
#define TIME_WITH_SYS_TIME 1 |
| 2601 |
EOF |
| 2602 |
|
| 2603 |
fi |
| 2604 |
|
| 2605 |
ac_header_dirent=no |
| 2606 |
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
| 2607 |
do |
| 2608 |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 2609 |
echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
| 2610 |
echo "configure:2611: checking for $ac_hdr that defines DIR" >&5 |
| 2611 |
if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then |
| 2612 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2613 |
else |
| 2614 |
cat > conftest.$ac_ext <<EOF |
| 2615 |
#line 2616 "configure" |
| 2616 |
#include "confdefs.h" |
| 2617 |
#include <sys/types.h> |
| 2618 |
#include <$ac_hdr> |
| 2619 |
int main() { |
| 2620 |
DIR *dirp = 0; |
| 2621 |
; return 0; } |
| 2622 |
EOF |
| 2623 |
if { (eval echo configure:2624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2624 |
rm -rf conftest* |
| 2625 |
eval "ac_cv_header_dirent_$ac_safe=yes" |
| 2626 |
else |
| 2627 |
echo "configure: failed program was:" >&5 |
| 2628 |
cat conftest.$ac_ext >&5 |
| 2629 |
rm -rf conftest* |
| 2630 |
eval "ac_cv_header_dirent_$ac_safe=no" |
| 2631 |
fi |
| 2632 |
rm -f conftest* |
| 2633 |
fi |
| 2634 |
if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then |
| 2635 |
echo "$ac_t""yes" 1>&6 |
| 2636 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 2637 |
cat >> confdefs.h <<EOF |
| 2638 |
#define $ac_tr_hdr 1 |
| 2639 |
EOF |
| 2640 |
ac_header_dirent=$ac_hdr; break |
| 2641 |
else |
| 2642 |
echo "$ac_t""no" 1>&6 |
| 2643 |
fi |
| 2644 |
done |
| 2645 |
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 2646 |
if test $ac_header_dirent = dirent.h; then |
| 2647 |
echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
| 2648 |
echo "configure:2649: checking for opendir in -ldir" >&5 |
| 2649 |
ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
| 2650 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2651 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2652 |
else |
| 2653 |
ac_save_LIBS="$LIBS" |
| 2654 |
LIBS="-ldir $LIBS" |
| 2655 |
cat > conftest.$ac_ext <<EOF |
| 2656 |
#line 2657 "configure" |
| 2657 |
#include "confdefs.h" |
| 2658 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 2659 |
/* We use char because int might match the return type of a gcc2 |
| 2660 |
builtin and then its argument prototype would still apply. */ |
| 2661 |
char opendir(); |
| 2662 |
|
| 2663 |
int main() { |
| 2664 |
opendir() |
| 2665 |
; return 0; } |
| 2666 |
EOF |
| 2667 |
if { (eval echo configure:2668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2668 |
rm -rf conftest* |
| 2669 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 2670 |
else |
| 2671 |
echo "configure: failed program was:" >&5 |
| 2672 |
cat conftest.$ac_ext >&5 |
| 2673 |
rm -rf conftest* |
| 2674 |
eval "ac_cv_lib_$ac_lib_var=no" |
| 2675 |
fi |
| 2676 |
rm -f conftest* |
| 2677 |
LIBS="$ac_save_LIBS" |
| 2678 |
|
| 2679 |
fi |
| 2680 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2681 |
echo "$ac_t""yes" 1>&6 |
| 2682 |
LIBS="$LIBS -ldir" |
| 2683 |
else |
| 2684 |
echo "$ac_t""no" 1>&6 |
| 2685 |
fi |
| 2686 |
|
| 2687 |
else |
| 2688 |
echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
| 2689 |
echo "configure:2690: checking for opendir in -lx" >&5 |
| 2690 |
ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
| 2691 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2692 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2693 |
else |
| 2694 |
ac_save_LIBS="$LIBS" |
| 2695 |
LIBS="-lx $LIBS" |
| 2696 |
cat > conftest.$ac_ext <<EOF |
| 2697 |
#line 2698 "configure" |
| 2698 |
#include "confdefs.h" |
| 2699 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 2700 |
/* We use char because int might match the return type of a gcc2 |
| 2701 |
builtin and then its argument prototype would still apply. */ |
| 2702 |
char opendir(); |
| 2703 |
|
| 2704 |
int main() { |
| 2705 |
opendir() |
| 2706 |
; return 0; } |
| 2707 |
EOF |
| 2708 |
if { (eval echo configure:2709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2709 |
rm -rf conftest* |
| 2710 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 2711 |
else |
| 2712 |
echo "configure: failed program was:" >&5 |
| 2713 |
cat conftest.$ac_ext >&5 |
| 2714 |
rm -rf conftest* |
| 2715 |
eval "ac_cv_lib_$ac_lib_var=no" |
| 2716 |
fi |
| 2717 |
rm -f conftest* |
| 2718 |
LIBS="$ac_save_LIBS" |
| 2719 |
|
| 2720 |
fi |
| 2721 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2722 |
echo "$ac_t""yes" 1>&6 |
| 2723 |
LIBS="$LIBS -lx" |
| 2724 |
else |
| 2725 |
echo "$ac_t""no" 1>&6 |
| 2726 |
fi |
| 2727 |
|
| 2728 |
fi |
| 2729 |
|
| 2730 |
|
| 2731 |
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
| 2732 |
echo "configure:2733: checking return type of signal handlers" >&5 |
| 2733 |
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
| 2734 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2735 |
else |
| 2736 |
cat > conftest.$ac_ext <<EOF |
| 2737 |
#line 2738 "configure" |
| 2738 |
#include "confdefs.h" |
| 2739 |
#include <sys/types.h> |
| 2740 |
#include <signal.h> |
| 2741 |
#ifdef signal |
| 2742 |
#undef signal |
| 2743 |
#endif |
| 2744 |
#ifdef __cplusplus |
| 2745 |
extern "C" void (*signal (int, void (*)(int)))(int); |
| 2746 |
#else |
| 2747 |
void (*signal ()) (); |
| 2748 |
#endif |
| 2749 |
|
| 2750 |
int main() { |
| 2751 |
int i; |
| 2752 |
; return 0; } |
| 2753 |
EOF |
| 2754 |
if { (eval echo configure:2755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2755 |
rm -rf conftest* |
| 2756 |
ac_cv_type_signal=void |
| 2757 |
else |
| 2758 |
echo "configure: failed program was:" >&5 |
| 2759 |
cat conftest.$ac_ext >&5 |
| 2760 |
rm -rf conftest* |
| 2761 |
ac_cv_type_signal=int |
| 2762 |
fi |
| 2763 |
rm -f conftest* |
| 2764 |
fi |
| 2765 |
|
| 2766 |
echo "$ac_t""$ac_cv_type_signal" 1>&6 |
| 2767 |
cat >> confdefs.h <<EOF |
| 2768 |
#define RETSIGTYPE $ac_cv_type_signal |
| 2769 |
EOF |
| 2770 |
|
| 2771 |
|
| 2772 |
echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
| 2773 |
echo "configure:2774: checking for mode_t" >&5 |
| 2774 |
if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
| 2775 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2776 |
else |
| 2777 |
cat > conftest.$ac_ext <<EOF |
| 2778 |
#line 2779 "configure" |
| 2779 |
#include "confdefs.h" |
| 2780 |
#include <sys/types.h> |
| 2781 |
#if STDC_HEADERS |
| 2782 |
#include <stdlib.h> |
| 2783 |
#include <stddef.h> |
| 2784 |
#endif |
| 2785 |
EOF |
| 2786 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2787 |
egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 2788 |
rm -rf conftest* |
| 2789 |
ac_cv_type_mode_t=yes |
| 2790 |
else |
| 2791 |
rm -rf conftest* |
| 2792 |
ac_cv_type_mode_t=no |
| 2793 |
fi |
| 2794 |
rm -f conftest* |
| 2795 |
|
| 2796 |
fi |
| 2797 |
echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
| 2798 |
if test $ac_cv_type_mode_t = no; then |
| 2799 |
cat >> confdefs.h <<\EOF |
| 2800 |
#define mode_t int |
| 2801 |
EOF |
| 2802 |
|
| 2803 |
fi |
| 2804 |
|
| 2805 |
echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
| 2806 |
echo "configure:2807: checking for pid_t" >&5 |
| 2807 |
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
| 2808 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2809 |
else |
| 2810 |
cat > conftest.$ac_ext <<EOF |
| 2811 |
#line 2812 "configure" |
| 2812 |
#include "confdefs.h" |
| 2813 |
#include <sys/types.h> |
| 2814 |
#if STDC_HEADERS |
| 2815 |
#include <stdlib.h> |
| 2816 |
#include <stddef.h> |
| 2817 |
#endif |
| 2818 |
EOF |
| 2819 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2820 |
egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 2821 |
rm -rf conftest* |
| 2822 |
ac_cv_type_pid_t=yes |
| 2823 |
else |
| 2824 |
rm -rf conftest* |
| 2825 |
ac_cv_type_pid_t=no |
| 2826 |
fi |
| 2827 |
rm -f conftest* |
| 2828 |
|
| 2829 |
fi |
| 2830 |
echo "$ac_t""$ac_cv_type_pid_t" 1>&6 |
| 2831 |
if test $ac_cv_type_pid_t = no; then |
| 2832 |
cat >> confdefs.h <<\EOF |
| 2833 |
#define pid_t int |
| 2834 |
EOF |
| 2835 |
|
| 2836 |
fi |
| 2837 |
|
| 2838 |
echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
| 2839 |
echo "configure:2840: checking for size_t" >&5 |
| 2840 |
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
| 2841 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2842 |
else |
| 2843 |
cat > conftest.$ac_ext <<EOF |
| 2844 |
#line 2845 "configure" |
| 2845 |
#include "confdefs.h" |
| 2846 |
#include <sys/types.h> |
| 2847 |
#if STDC_HEADERS |
| 2848 |
#include <stdlib.h> |
| 2849 |
#include <stddef.h> |
| 2850 |
#endif |
| 2851 |
EOF |
| 2852 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2853 |
egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 2854 |
rm -rf conftest* |
| 2855 |
ac_cv_type_size_t=yes |
| 2856 |
else |
| 2857 |
rm -rf conftest* |
| 2858 |
ac_cv_type_size_t=no |
| 2859 |
fi |
| 2860 |
rm -f conftest* |
| 2861 |
|
| 2862 |
fi |
| 2863 |
echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
| 2864 |
if test $ac_cv_type_size_t = no; then |
| 2865 |
cat >> confdefs.h <<\EOF |
| 2866 |
#define size_t unsigned |
| 2867 |
EOF |
| 2868 |
|
| 2869 |
fi |
| 2870 |
|
| 2871 |
echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
| 2872 |
echo "configure:2873: checking for uid_t in sys/types.h" >&5 |
| 2873 |
if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
| 2874 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2875 |
else |
| 2876 |
cat > conftest.$ac_ext <<EOF |
| 2877 |
#line 2878 "configure" |
| 2878 |
#include "confdefs.h" |
| 2879 |
#include <sys/types.h> |
| 2880 |
EOF |
| 2881 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2882 |
egrep "uid_t" >/dev/null 2>&1; then |
| 2883 |
rm -rf conftest* |
| 2884 |
ac_cv_type_uid_t=yes |
| 2885 |
else |
| 2886 |
rm -rf conftest* |
| 2887 |
ac_cv_type_uid_t=no |
| 2888 |
fi |
| 2889 |
rm -f conftest* |
| 2890 |
|
| 2891 |
fi |
| 2892 |
|
| 2893 |
echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
| 2894 |
if test $ac_cv_type_uid_t = no; then |
| 2895 |
cat >> confdefs.h <<\EOF |
| 2896 |
#define uid_t int |
| 2897 |
EOF |
| 2898 |
|
| 2899 |
cat >> confdefs.h <<\EOF |
| 2900 |
#define gid_t int |
| 2901 |
EOF |
| 2902 |
|
| 2903 |
fi |
| 2904 |
|
| 2905 |
echo $ac_n "checking for ssize_t""... $ac_c" 1>&6 |
| 2906 |
echo "configure:2907: checking for ssize_t" >&5 |
| 2907 |
if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then |
| 2908 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2909 |
else |
| 2910 |
cat > conftest.$ac_ext <<EOF |
| 2911 |
#line 2912 "configure" |
| 2912 |
#include "confdefs.h" |
| 2913 |
#include <sys/types.h> |
| 2914 |
#if STDC_HEADERS |
| 2915 |
#include <stdlib.h> |
| 2916 |
#include <stddef.h> |
| 2917 |
#endif |
| 2918 |
EOF |
| 2919 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2920 |
egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 2921 |
rm -rf conftest* |
| 2922 |
ac_cv_type_ssize_t=yes |
| 2923 |
else |
| 2924 |
rm -rf conftest* |
| 2925 |
ac_cv_type_ssize_t=no |
| 2926 |
fi |
| 2927 |
rm -f conftest* |
| 2928 |
|
| 2929 |
fi |
| 2930 |
echo "$ac_t""$ac_cv_type_ssize_t" 1>&6 |
| 2931 |
if test $ac_cv_type_ssize_t = no; then |
| 2932 |
cat >> confdefs.h <<\EOF |
| 2933 |
#define ssize_t int |
| 2934 |
EOF |
| 2935 |
|
| 2936 |
fi |
| 2937 |
|
| 2938 |
|
| 2939 |
if test x$ac_cv_header_sys_twg_config_h = xyes |
| 2940 |
then |
| 2941 |
cat >> confdefs.h <<\EOF |
| 2942 |
#define WINS 1 |
| 2943 |
EOF |
| 2944 |
|
| 2945 |
fi |
| 2946 |
|
| 2947 |
if test x$ac_cv_func_snprintf != xyes || test x$ac_cv_func_vsnprintf != xyes |
| 2948 |
then |
| 2949 |
EXTRA_OBJECTS=snprintf.o |
| 2950 |
EXTRA_SOURCES=snprintf.c |
| 2951 |
else |
| 2952 |
EXTRA_OBJECTS= |
| 2953 |
EXTRA_SOURCES= |
| 2954 |
fi |
| 2955 |
|
| 2956 |
|
| 2957 |
|
| 2958 |
|
| 2959 |
echo $ac_n "checking for struct linger""... $ac_c" 1>&6 |
| 2960 |
echo "configure:2961: checking for struct linger" >&5 |
| 2961 |
cat > conftest.$ac_ext <<EOF |
| 2962 |
#line 2963 "configure" |
| 2963 |
#include "confdefs.h" |
| 2964 |
#include <sys/socket.h> |
| 2965 |
EOF |
| 2966 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2967 |
egrep "struct( | )*linger" >/dev/null 2>&1; then |
| 2968 |
rm -rf conftest* |
| 2969 |
echo "$ac_t""yes" 1>&6 |
| 2970 |
else |
| 2971 |
rm -rf conftest* |
| 2972 |
cat >> confdefs.h <<\EOF |
| 2973 |
#define NO_STRUCT_LINGER 1 |
| 2974 |
EOF |
| 2975 |
echo "$ac_t""no" 1>&6 |
| 2976 |
fi |
| 2977 |
rm -f conftest* |
| 2978 |
|
| 2979 |
|
| 2980 |
|
| 2981 |
if test x$ac_cv_func_getsid != xyes && test x$ac_cv_func_getpgid != xyes |
| 2982 |
then |
| 2983 |
echo $ac_n "checking if getpgrp takes an argument""... $ac_c" 1>&6 |
| 2984 |
echo "configure:2985: checking if getpgrp takes an argument" >&5 |
| 2985 |
if test "$cross_compiling" = yes; then |
| 2986 |
: |
| 2987 |
else |
| 2988 |
cat > conftest.$ac_ext <<EOF |
| 2989 |
#line 2990 "configure" |
| 2990 |
#include "confdefs.h" |
| 2991 |
|
| 2992 |
main() |
| 2993 |
{ |
| 2994 |
int pid; |
| 2995 |
int pgid; |
| 2996 |
|
| 2997 |
pid = fork(); |
| 2998 |
|
| 2999 |
if (0 == pid) |
| 3000 |
{ |
| 3001 |
#ifdef HAVE_SETSID |
| 3002 |
setsid(); |
| 3003 |
#else |
| 3004 |
setpgrp(0, getpid()); |
| 3005 |
#endif /* HAVE_SETSID */ |
| 3006 |
sleep(10); |
| 3007 |
} |
| 3008 |
else |
| 3009 |
{ |
| 3010 |
sleep(2); |
| 3011 |
pgid = getpgrp(pid); |
| 3012 |
kill(pid,9); |
| 3013 |
if (pid != pgid) |
| 3014 |
exit(1); |
| 3015 |
} |
| 3016 |
exit(0); |
| 3017 |
} |
| 3018 |
|
| 3019 |
EOF |
| 3020 |
if { (eval echo configure:3021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 3021 |
then |
| 3022 |
echo "$ac_t""yes" 1>&6 |
| 3023 |
else |
| 3024 |
echo "configure: failed program was:" >&5 |
| 3025 |
cat conftest.$ac_ext >&5 |
| 3026 |
rm -fr conftest* |
| 3027 |
echo "$ac_t""no your getpgrp is painful" 1>&6 |
| 3028 |
cat >> confdefs.h <<\EOF |
| 3029 |
#define BROKEN_GETPGRP 1 |
| 3030 |
EOF |
| 3031 |
|
| 3032 |
fi |
| 3033 |
rm -fr conftest* |
| 3034 |
fi |
| 3035 |
|
| 3036 |
fi |
| 3037 |
|
| 3038 |
|
| 3039 |
echo $ac_n "checking for waitpid""... $ac_c" 1>&6 |
| 3040 |
echo "configure:3041: checking for waitpid" >&5 |
| 3041 |
if eval "test \"`echo '$''{'ac_cv_func_waitpid'+set}'`\" = set"; then |
| 3042 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 3043 |
else |
| 3044 |
cat > conftest.$ac_ext <<EOF |
| 3045 |
#line 3046 "configure" |
| 3046 |
#include "confdefs.h" |
| 3047 |
/* System header to define __stub macros and hopefully few prototypes, |
| 3048 |
which can conflict with char waitpid(); below. */ |
| 3049 |
#include <assert.h> |
| 3050 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 3051 |
/* We use char because int might match the return type of a gcc2 |
| 3052 |
builtin and then its argument prototype would still apply. */ |
| 3053 |
char waitpid(); |
| 3054 |
|
| 3055 |
int main() { |
| 3056 |
|
| 3057 |
/* The GNU C library defines this for functions which it implements |
| 3058 |
to always fail with ENOSYS. Some functions are actually named |
| 3059 |
something starting with __ and the normal name is an alias. */ |
| 3060 |
#if defined (__stub_waitpid) || defined (__stub___waitpid) |
| 3061 |
choke me |
| 3062 |
#else |
| 3063 |
waitpid(); |
| 3064 |
#endif |
| 3065 |
|
| 3066 |
; return 0; } |
| 3067 |
EOF |
| 3068 |
if { (eval echo configure:3069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3069 |
rm -rf conftest* |
| 3070 |
eval "ac_cv_func_waitpid=yes" |
| 3071 |
else |
| 3072 |
echo "configure: failed program was:" >&5 |
| 3073 |
cat conftest.$ac_ext >&5 |
| 3074 |
rm -rf conftest* |
| 3075 |
eval "ac_cv_func_waitpid=no" |
| 3076 |
fi |
| 3077 |
rm -f conftest* |
| 3078 |
fi |
| 3079 |
|
| 3080 |
if eval "test \"`echo '$ac_cv_func_'waitpid`\" = yes"; then |
| 3081 |
echo "$ac_t""yes" 1>&6 |
| 3082 |
: |
| 3083 |
else |
| 3084 |
echo "$ac_t""no" 1>&6 |
| 3085 |
echo "$ac_t""no" 1>&6 |
| 3086 |
echo $ac_n "checking for bsd wait""... $ac_c" 1>&6 |
| 3087 |
echo "configure:3088: checking for bsd wait" >&5 |
| 3088 |
cat > conftest.$ac_ext <<EOF |
| 3089 |
#line 3090 "configure" |
| 3090 |
#include "confdefs.h" |
| 3091 |
|
| 3092 |
#include <sys/types.h> |
| 3093 |
#include <sys/wait.h> |
| 3094 |
|
| 3095 |
int main() { |
| 3096 |
|
| 3097 |
union wait x; |
| 3098 |
int y; |
| 3099 |
#ifdef WEXITSTATUS |
| 3100 |
y = WEXITSTATUS(x); |
| 3101 |
#endif |
| 3102 |
|
| 3103 |
; return 0; } |
| 3104 |
EOF |
| 3105 |
if { (eval echo configure:3106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3106 |
rm -rf conftest* |
| 3107 |
cat >> confdefs.h <<\EOF |
| 3108 |
#define BSDWAIT 1 |
| 3109 |
EOF |
| 3110 |
|
| 3111 |
bsdwait=1 |
| 3112 |
echo "$ac_t""yes" 1>&6 |
| 3113 |
else |
| 3114 |
echo "configure: failed program was:" >&5 |
| 3115 |
cat conftest.$ac_ext >&5 |
| 3116 |
rm -rf conftest* |
| 3117 |
echo "$ac_t""no" 1>&6 |
| 3118 |
cat >> confdefs.h <<\EOF |
| 3119 |
#define NEED_WAITPID 1 |
| 3120 |
EOF |
| 3121 |
|
| 3122 |
fi |
| 3123 |
rm -f conftest* |
| 3124 |
fi |
| 3125 |
|
| 3126 |
|
| 3127 |
|
| 3128 |
olibs="$LIBS" |
| 3129 |
echo $ac_n "checking for select""... $ac_c" 1>&6 |
| 3130 |
echo "configure:3131: checking for select" >&5 |
| 3131 |
if eval "test \"`echo '$''{'ac_cv_func_select'+set}'`\" = set"; then |
| 3132 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 3133 |
else |
| 3134 |
cat > conftest.$ac_ext <<EOF |
| 3135 |
#line 3136 "configure" |
| 3136 |
#include "confdefs.h" |
| 3137 |
/* System header to define __stub macros and hopefully few prototypes, |
| 3138 |
which can conflict with char select(); below. */ |
| 3139 |
#include <assert.h> |
| 3140 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 3141 |
/* We use char because int might match the return type of a gcc2 |
| 3142 |
builtin and then its argument prototype would still apply. */ |
| 3143 |
char select(); |
| 3144 |
|
| 3145 |
int main() { |
| 3146 |
|
| 3147 |
/* The GNU C library defines this for functions which it implements |
| 3148 |
to always fail with ENOSYS. Some functions are actually named |
| 3149 |
something starting with __ and the normal name is an alias. */ |
| 3150 |
#if defined (__stub_select) || defined (__stub___select) |
| 3151 |
choke me |
| 3152 |
#else |
| 3153 |
select(); |
| 3154 |
#endif |
| 3155 |
|
| 3156 |
; return 0; } |
| 3157 |
EOF |
| 3158 |
if { (eval echo configure:3159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3159 |
rm -rf conftest* |
| 3160 |
eval "ac_cv_func_select=yes" |
| 3161 |
else |
| 3162 |
echo "configure: failed program was:" >&5 |
| 3163 |
cat conftest.$ac_ext >&5 |
| 3164 |
rm -rf conftest* |
| 3165 |
eval "ac_cv_func_select=no" |
| 3166 |
fi |
| 3167 |
rm -f conftest* |
| 3168 |
fi |
| 3169 |
|
| 3170 |
if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then |
| 3171 |
echo "$ac_t""yes" 1>&6 |
| 3172 |
: |
| 3173 |
else |
| 3174 |
echo "$ac_t""no" 1>&6 |
| 3175 |
echo $ac_n "checking for select in -lsocket""... $ac_c" 1>&6 |
| 3176 |
echo "configure:3177: checking for select in -lsocket" >&5 |
| 3177 |
ac_lib_var=`echo socket'_'select | sed 'y%./+-%__p_%'` |
| 3178 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3179 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 3180 |
else |
| 3181 |
ac_save_LIBS="$LIBS" |
| 3182 |
LIBS="-lsocket $LIBS" |
| 3183 |
cat > conftest.$ac_ext <<EOF |
| 3184 |
#line 3185 "configure" |
| 3185 |
#include "confdefs.h" |
| 3186 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 3187 |
/* We use char because int might match the return type of a gcc2 |
| 3188 |
builtin and then its argument prototype would still apply. */ |
| 3189 |
char select(); |
| 3190 |
|
| 3191 |
int main() { |
| 3192 |
select() |
| 3193 |
; return 0; } |
| 3194 |
EOF |
| 3195 |
if { (eval echo configure:3196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3196 |
rm -rf conftest* |
| 3197 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 3198 |
else |
| 3199 |
echo "configure: failed program was:" >&5 |
| 3200 |
cat conftest.$ac_ext >&5 |
| 3201 |
rm -rf conftest* |
| 3202 |
eval "ac_cv_lib_$ac_lib_var=no" |
| 3203 |
fi |
| 3204 |
rm -f conftest* |
| 3205 |
LIBS="$ac_save_LIBS" |
| 3206 |
|
| 3207 |
fi |
| 3208 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3209 |
echo "$ac_t""yes" 1>&6 |
| 3210 |
LIBS="$LIBS -lsocket" |
| 3211 |
else |
| 3212 |
echo "$ac_t""no" 1>&6 |
| 3213 |
echo $ac_n "checking for select in -lnsl""... $ac_c" 1>&6 |
| 3214 |
echo "configure:3215: checking for select in -lnsl" >&5 |
| 3215 |
ac_lib_var=`echo nsl'_'select | sed 'y%./+-%__p_%'` |
| 3216 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3217 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 3218 |
else |
| 3219 |
ac_save_LIBS="$LIBS" |
| 3220 |
LIBS="-lnsl $LIBS" |
| 3221 |
cat > conftest.$ac_ext <<EOF |
| 3222 |
#line 3223 "configure" |
| 3223 |
#include "confdefs.h" |
| 3224 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 3225 |
/* We use char because int might match the return type of a gcc2 |
| 3226 |
builtin and then its argument prototype would still apply. */ |
| 3227 |
char select(); |
| 3228 |
|
| 3229 |
int main() { |
| 3230 |
select() |
| 3231 |
; return 0; } |
| 3232 |
EOF |
| 3233 |
if { (eval echo configure:3234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3234 |
rm -rf conftest* |
| 3235 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 3236 |
else |
| 3237 |
echo "configure: failed program was:" >&5 |
| 3238 |
cat conftest.$ac_ext >&5 |
| 3239 |
rm -rf conftest* |
| 3240 |
eval "ac_cv_lib_$ac_lib_var=no" |
| 3241 |
fi |
| 3242 |
rm -f conftest* |
| 3243 |
LIBS="$ac_save_LIBS" |
| 3244 |
|
| 3245 |
fi |
| 3246 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3247 |
echo "$ac_t""yes" 1>&6 |
| 3248 |
LIBS="$LIBS -lnsl" |
| 3249 |
else |
| 3250 |
echo "$ac_t""no" 1>&6 |
| 3251 |
echo $ac_n "checking for select in -linet""... $ac_c" 1>&6 |
| 3252 |
echo "configure:3253: checking for select in -linet" >&5 |
| 3253 |
ac_lib_var=`echo inet'_'select | sed 'y%./+-%__p_%'` |
| 3254 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3255 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 3256 |
else |
| 3257 |
ac_save_LIBS="$LIBS" |
| 3258 |
LIBS="-linet $LIBS" |
| 3259 |
cat > conftest.$ac_ext <<EOF |
| 3260 |
#line 3261 "configure" |
| 3261 |
#include "confdefs.h" |
| 3262 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 3263 |
/* We use char because int might match the return type of a gcc2 |
| 3264 |
builtin and then its argument prototype would still apply. */ |
| 3265 |
char select(); |
| 3266 |
|
| 3267 |
int main() { |
| 3268 |
select() |
| 3269 |
; return 0; } |
| 3270 |
EOF |
| 3271 |
if { (eval echo configure:3272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3272 |
rm -rf conftest* |
| 3273 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 3274 |
else |
| 3275 |
echo "configure: failed program was:" >&5 |
| 3276 |
cat conftest.$ac_ext >&5 |
| 3277 |
rm -rf conftest* |
| 3278 |
eval "ac_cv_lib_$ac_lib_var=no" |
| 3279 |
fi |
| 3280 |
rm -f conftest* |
| 3281 |
LIBS="$ac_save_LIBS" |
| 3282 |
|
| 3283 |
fi |
| 3284 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3285 |
echo "$ac_t""yes" 1>&6 |
| 3286 |
LIBS="$LIBS -linet" |
| 3287 |
else |
| 3288 |
echo "$ac_t""no" 1>&6 |
| 3289 |
echo $ac_n "checking for select in -lcposix""... $ac_c" 1>&6 |
| 3290 |
echo "configure:3291: checking for select in -lcposix" >&5 |
| 3291 |
ac_lib_var=`echo cposix'_'select | sed 'y%./+-%__p_%'` |
| 3292 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3293 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 3294 |
else |
| 3295 |
ac_save_LIBS="$LIBS" |
| 3296 |
LIBS="-lcposix $LIBS" |
| 3297 |
cat > conftest.$ac_ext <<EOF |
| 3298 |
#line 3299 "configure" |
| 3299 |
#include "confdefs.h" |
| 3300 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 3301 |
/* We use char because int might match the return type of a gcc2 |
| 3302 |
builtin and then its argument prototype would still apply. */ |
| 3303 |
char select(); |
| 3304 |
|
| 3305 |
int main() { |
| 3306 |
select() |
| 3307 |
; return 0; } |
| 3308 |
EOF |
| 3309 |
if { (eval echo configure:3310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3310 |
rm -rf conftest* |
| 3311 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 3312 |
else |
| 3313 |
echo "configure: failed program was:" >&5 |
| 3314 |
cat conftest.$ac_ext >&5 |
| 3315 |
rm -rf conftest* |
| 3316 |
eval "ac_cv_lib_$ac_lib_var=no" |
| 3317 |
fi |
| 3318 |
rm -f conftest* |
| 3319 |
LIBS="$ac_save_LIBS" |
| 3320 |
|
| 3321 |
fi |
| 3322 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3323 |
echo "$ac_t""yes" 1>&6 |
| 3324 |
LIBS="$LIBS -lcposix" |
| 3325 |
else |
| 3326 |
echo "$ac_t""no" 1>&6 |
| 3327 |
echo $ac_n "checking for select in -lnet""... $ac_c" 1>&6 |
| 3328 |
echo "configure:3329: checking for select in -lnet" >&5 |
| 3329 |
ac_lib_var=`echo net'_'select | sed 'y%./+-%__p_%'` |
| 3330 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3331 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 3332 |
else |
| 3333 |
ac_save_LIBS="$LIBS" |
| 3334 |
LIBS="-lnet $LIBS" |
| 3335 |
cat > conftest.$ac_ext <<EOF |
| 3336 |
#line 3337 "configure" |
| 3337 |
#include "confdefs.h" |
| 3338 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 3339 |
/* We use char because int might match the return type of a gcc2 |
| 3340 |
builtin and then its argument prototype would still apply. */ |
| 3341 |
char select(); |
| 3342 |
|
| 3343 |
int main() { |
| 3344 |
select() |
| 3345 |
; return 0; } |
| 3346 |
EOF |
| 3347 |
if { (eval echo configure:3348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3348 |
rm -rf conftest* |
| 3349 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 3350 |
else |
| 3351 |
echo "configure: failed program was:" >&5 |
| 3352 |
cat conftest.$ac_ext >&5 |
| 3353 |
rm -rf conftest* |
| 3354 |
eval "ac_cv_lib_$ac_lib_var=no" |
| 3355 |
fi |
| 3356 |
rm -f conftest* |
| 3357 |
LIBS="$ac_save_LIBS" |
| 3358 |
|
| 3359 |
fi |
| 3360 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3361 |
echo "$ac_t""yes" 1>&6 |
| 3362 |
LIBS="$LIBS -lnet" |
| 3363 |
else |
| 3364 |
echo "$ac_t""no" 1>&6 |
| 3365 |
echo "configure: warning: i can not find select. you might need to help me" 1>&2 |
| 3366 |
fi |
| 3367 |
|
| 3368 |
fi |
| 3369 |
|
| 3370 |
fi |
| 3371 |
|
| 3372 |
fi |
| 3373 |
|
| 3374 |
fi |
| 3375 |
|
| 3376 |
fi |
| 3377 |
|
| 3378 |
|
| 3379 |
if test x$aix = x1 |
| 3380 |
then |
| 3381 |
LIBS="-lcurses $LIBS" |
| 3382 |
cat >> confdefs.h <<\EOF |
| 3383 |
#define INCLUDE_CURSES_H 1 |
| 3384 |
EOF |
| 3385 |
|
| 3386 |
else |
| 3387 |
olibs="$LIBS" |
| 3388 |
case "`uname -s`" in |
| 3389 |
Linux*) |
| 3390 |
if test -d /usr/include/ncurses; then |
| 3391 |
CFLAGS="-I/usr/include/ncurses $CFLAGS" |
| 3392 |
fi |
| 3393 |
;; |
| 3394 |
esac |
| 3395 |
echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 |
| 3396 |
echo "configure:3397: checking for tgetent in -ltermcap" >&5 |
| 3397 |
ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` |
| 3398 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3399 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 3400 |
else |
| 3401 |
ac_save_LIBS="$LIBS" |
| 3402 |
LIBS="-ltermcap $LIBS" |
| 3403 |
cat > conftest.$ac_ext <<EOF |
| 3404 |
#line 3405 "configure" |
| 3405 |
#include "confdefs.h" |
| 3406 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 3407 |
/* We use char because int might match the return type of a gcc2 |
| 3408 |
builtin and then its argument prototype would still apply. */ |
| 3409 |
char tgetent(); |
| 3410 |
|
| 3411 |
int main() { |
| 3412 |
tgetent() |
| 3413 |
; return 0; } |
| 3414 |
EOF |
| 3415 |
if { (eval echo configure:3416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3416 |
rm -rf conftest* |
| 3417 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 3418 |
else |
| 3419 |
echo "configure: failed program was:" >&5 |
| 3420 |
cat conftest.$ac_ext >&5 |
| 3421 |
rm -rf conftest* |
| 3422 |
eval "ac_cv_lib_$ac_lib_var=no" |
| 3423 |
fi |
| 3424 |
rm -f conftest* |
| 3425 |
LIBS="$ac_save_LIBS" |
| 3426 |
|
| 3427 |
fi |
| 3428 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3429 |
echo "$ac_t""yes" 1>&6 |
| 3430 |
LIBS="-ltermcap $olibs" |
| 3431 |
else |
| 3432 |
echo "$ac_t""no" 1>&6 |
| 3433 |
echo $ac_n "checking for tgetent in -ltinfo""... $ac_c" 1>&6 |
| 3434 |
echo "configure:3435: checking for tgetent in -ltinfo" >&5 |
| 3435 |
ac_lib_var=`echo tinfo'_'tgetent | sed 'y%./+-%__p_%'` |
| 3436 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3437 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 3438 |
else |
| 3439 |
ac_save_LIBS="$LIBS" |
| 3440 |
LIBS="-ltinfo $LIBS" |
| 3441 |
cat > conftest.$ac_ext <<EOF |
| 3442 |
#line 3443 "configure" |
| 3443 |
#include "confdefs.h" |
| 3444 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 3445 |
/* We use char because int might match the return type of a gcc2 |
| 3446 |
builtin and then its argument prototype would still apply. */ |
| 3447 |
char tgetent(); |
| 3448 |
|
| 3449 |
int main() { |
| 3450 |
tgetent() |
| 3451 |
; return 0; } |
| 3452 |
EOF |
| 3453 |
if { (eval echo configure:3454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3454 |
rm -rf conftest* |
| 3455 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 3456 |
else |
| 3457 |
echo "configure: failed program was:" >&5 |
| 3458 |
cat conftest.$ac_ext >&5 |
| 3459 |
rm -rf conftest* |
| 3460 |
eval "ac_cv_lib_$ac_lib_var=no" |
| 3461 |
fi |
| 3462 |
rm -f conftest* |
| 3463 |
LIBS="$ac_save_LIBS" |
| 3464 |
|
| 3465 |
fi |
| 3466 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3467 |
echo "$ac_t""yes" 1>&6 |
| 3468 |
LIBS="-ltinfo $olibs" |
| 3469 |
else |
| 3470 |
echo "$ac_t""no" 1>&6 |
| 3471 |
echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6 |
| 3472 |
echo "configure:3473: checking for tgetent in -ltermlib" >&5 |
| 3473 |
ac_lib_var=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'` |
| 3474 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3475 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 3476 |
else |
| 3477 |
ac_save_LIBS="$LIBS" |
| 3478 |
LIBS="-ltermlib $LIBS" |
| 3479 |
cat > conftest.$ac_ext <<EOF |
| 3480 |
#line 3481 "configure" |
| 3481 |
#include "confdefs.h" |
| 3482 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 3483 |
/* We use char because int might match the return type of a gcc2 |
| 3484 |
builtin and then its argument prototype would still apply. */ |
| 3485 |
char tgetent(); |
| 3486 |
|
| 3487 |
int main() { |
| 3488 |
tgetent() |
| 3489 |
; return 0; } |
| 3490 |
EOF |
| 3491 |
if { (eval echo configure:3492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3492 |
rm -rf conftest* |
| 3493 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 3494 |
else |
| 3495 |
echo "configure: failed program was:" >&5 |
| 3496 |
cat conftest.$ac_ext >&5 |
| 3497 |
rm -rf conftest* |
| 3498 |
eval "ac_cv_lib_$ac_lib_var=no" |
| 3499 |
fi |
| 3500 |
rm -f conftest* |
| 3501 |
LIBS="$ac_save_LIBS" |
| 3502 |
|
| 3503 |
fi |
| 3504 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3505 |
echo "$ac_t""yes" 1>&6 |
| 3506 |
LIBS="-ltermlib $olibs" |
| 3507 |
else |
| 3508 |
echo "$ac_t""no" 1>&6 |
| 3509 |
echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 |
| 3510 |
echo "configure:3511: checking for tgetent in -lcurses" >&5 |
| 3511 |
ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` |
| 3512 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3513 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 3514 |
else |
| 3515 |
ac_save_LIBS="$LIBS" |
| 3516 |
LIBS="-lcurses $LIBS" |
| 3517 |
cat > conftest.$ac_ext <<EOF |
| 3518 |
#line 3519 "configure" |
| 3519 |
#include "confdefs.h" |
| 3520 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 3521 |
/* We use char because int might match the return type of a gcc2 |
| 3522 |
builtin and then its argument prototype would still apply. */ |
| 3523 |
char tgetent(); |
| 3524 |
|
| 3525 |
int main() { |
| 3526 |
tgetent() |
| 3527 |
; return 0; } |
| 3528 |
EOF |
| 3529 |
if { (eval echo configure:3530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3530 |
rm -rf conftest* |
| 3531 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 3532 |
else |
| 3533 |
echo "configure: failed program was:" >&5 |
| 3534 |
cat conftest.$ac_ext >&5 |
| 3535 |
rm -rf conftest* |
| 3536 |
eval "ac_cv_lib_$ac_lib_var=no" |
| 3537 |
fi |
| 3538 |
rm -f conftest* |
| 3539 |
LIBS="$ac_save_LIBS" |
| 3540 |
|
| 3541 |
fi |
| 3542 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3543 |
echo "$ac_t""yes" 1>&6 |
| 3544 |
LIBS="-lcurses $olibs" |
| 3545 |
else |
| 3546 |
echo "$ac_t""no" 1>&6 |
| 3547 |
echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 |
| 3548 |
echo "configure:3549: checking for tgetent in -lncurses" >&5 |
| 3549 |
ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` |
| 3550 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3551 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 3552 |
else |
| 3553 |
ac_save_LIBS="$LIBS" |
| 3554 |
LIBS="-lncurses $LIBS" |
| 3555 |
cat > conftest.$ac_ext <<EOF |
| 3556 |
#line 3557 "configure" |
| 3557 |
#include "confdefs.h" |
| 3558 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 3559 |
/* We use char because int might match the return type of a gcc2 |
| 3560 |
builtin and then its argument prototype would still apply. */ |
| 3561 |
char tgetent(); |
| 3562 |
|
| 3563 |
int main() { |
| 3564 |
tgetent() |
| 3565 |
; return 0; } |
| 3566 |
EOF |
| 3567 |
if { (eval echo configure:3568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3568 |
rm -rf conftest* |
| 3569 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 3570 |
else |
| 3571 |
echo "configure: failed program was:" >&5 |
| 3572 |
cat conftest.$ac_ext >&5 |
| 3573 |
rm -rf conftest* |
| 3574 |
eval "ac_cv_lib_$ac_lib_var=no" |
| 3575 |
fi |
| 3576 |
rm -f conftest* |
| 3577 |
LIBS="$ac_save_LIBS" |
| 3578 |
|
| 3579 |
fi |
| 3580 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3581 |
echo "$ac_t""yes" 1>&6 |
| 3582 |
LIBS="-lncurses $olibs" |
| 3583 |
else |
| 3584 |
echo "$ac_t""no" 1>&6 |
| 3585 |
echo $ac_n "checking for tgetent in -lxtermcap""... $ac_c" 1>&6 |
| 3586 |
echo "configure:3587: checking for tgetent in -lxtermcap" >&5 |
| 3587 |
ac_lib_var=`echo xtermcap'_'tgetent | sed 'y%./+-%__p_%'` |
| 3588 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3589 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 3590 |
else |
| 3591 |
ac_save_LIBS="$LIBS" |
| 3592 |
LIBS="-lxtermcap $LIBS" |
| 3593 |
cat > conftest.$ac_ext <<EOF |
| 3594 |
#line 3595 "configure" |
| 3595 |
#include "confdefs.h" |
| 3596 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 3597 |
/* We use char because int might match the return type of a gcc2 |
| 3598 |
builtin and then its argument prototype would still apply. */ |
| 3599 |
char tgetent(); |
| 3600 |
|
| 3601 |
int main() { |
| 3602 |
tgetent() |
| 3603 |
; return 0; } |
| 3604 |
EOF |
| 3605 |
if { (eval echo configure:3606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3606 |
rm -rf conftest* |
| 3607 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 3608 |
else |
| 3609 |
echo "configure: failed program was:" >&5 |
| 3610 |
cat conftest.$ac_ext >&5 |
| 3611 |
rm -rf conftest* |
| 3612 |
eval "ac_cv_lib_$ac_lib_var=no" |
| 3613 |
fi |
| 3614 |
rm -f conftest* |
| 3615 |
LIBS="$ac_save_LIBS" |
| 3616 |
|
| 3617 |
fi |
| 3618 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3619 |
echo "$ac_t""yes" 1>&6 |
| 3620 |
LIBS="-lxtermcap $olibs" |
| 3621 |
else |
| 3622 |
echo "$ac_t""no" 1>&6 |
| 3623 |
{ echo "configure: error: Can not find curses or termcap library. Installing package libncurses5-dev or ncurses-devel usually fixes this problem." 1>&2; exit 1; } |
| 3624 |
fi |
| 3625 |
|
| 3626 |
fi |
| 3627 |
|
| 3628 |
fi |
| 3629 |
|
| 3630 |
fi |
| 3631 |
|
| 3632 |
fi |
| 3633 |
|
| 3634 |
fi |
| 3635 |
|
| 3636 |
echo $ac_n "checking for tputs in curses.h""... $ac_c" 1>&6 |
| 3637 |
echo "configure:3638: checking for tputs in curses.h" >&5 |
| 3638 |
cat > conftest.$ac_ext <<EOF |
| 3639 |
#line 3640 "configure" |
| 3640 |
#include "confdefs.h" |
| 3641 |
#include <curses.h> |
| 3642 |
|
| 3643 |
EOF |
| 3644 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3645 |
egrep "tputs( | |\()" >/dev/null 2>&1; then |
| 3646 |
rm -rf conftest* |
| 3647 |
cat >> confdefs.h <<\EOF |
| 3648 |
#define INCLUDE_CURSES_H 1 |
| 3649 |
EOF |
| 3650 |
echo "$ac_t""yes" 1>&6 |
| 3651 |
else |
| 3652 |
rm -rf conftest* |
| 3653 |
blahhack=1; echo "$ac_t""no" 1>&6 |
| 3654 |
fi |
| 3655 |
rm -f conftest* |
| 3656 |
|
| 3657 |
fi |
| 3658 |
|
| 3659 |
if test "x$enable_utf8" = "xyes" ; then |
| 3660 |
if test -n "$svr4" -a -n "$GCC" |
| 3661 |
then |
| 3662 |
echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6 |
| 3663 |
echo "configure:3664: checking for iconv_open in -liconv" >&5 |
| 3664 |
ac_lib_var=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'` |
| 3665 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3666 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 3667 |
else |
| 3668 |
ac_save_LIBS="$LIBS" |
| 3669 |
LIBS="-liconv $LIBS" |
| 3670 |
cat > conftest.$ac_ext <<EOF |
| 3671 |
#line 3672 "configure" |
| 3672 |
#include "confdefs.h" |
| 3673 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 3674 |
/* We use char because int might match the return type of a gcc2 |
| 3675 |
builtin and then its argument prototype would still apply. */ |
| 3676 |
char iconv_open(); |
| 3677 |
|
| 3678 |
int main() { |
| 3679 |
iconv_open() |
| 3680 |
; return 0; } |
| 3681 |
EOF |
| 3682 |
if { (eval echo configure:3683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3683 |
rm -rf conftest* |
| 3684 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 3685 |
else |
| 3686 |
echo "configure: failed program was:" >&5 |
| 3687 |
cat conftest.$ac_ext >&5 |
| 3688 |
rm -rf conftest* |
| 3689 |
eval "ac_cv_lib_$ac_lib_var=no" |
| 3690 |
fi |
| 3691 |
rm -f conftest* |
| 3692 |
LIBS="$ac_save_LIBS" |
| 3693 |
|
| 3694 |
fi |
| 3695 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3696 |
echo "$ac_t""yes" 1>&6 |
| 3697 |
LIBS="$LIBS -liconv" |
| 3698 |
else |
| 3699 |
echo "$ac_t""no" 1>&6 |
| 3700 |
fi |
| 3701 |
|
| 3702 |
fi |
| 3703 |
fi |
| 3704 |
|
| 3705 |
|
| 3706 |
|
| 3707 |
|
| 3708 |
echo "checking signal implementation" 1>&6 |
| 3709 |
echo "configure:3710: checking signal implementation" >&5 |
| 3710 |
echo $ac_n "checking for sigaction""... $ac_c" 1>&6 |
| 3711 |
echo "configure:3712: checking for sigaction" >&5 |
| 3712 |
if eval "test \"`echo '$''{'ac_cv_func_sigaction'+set}'`\" = set"; then |
| 3713 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 3714 |
else |
| 3715 |
cat > conftest.$ac_ext <<EOF |
| 3716 |
#line 3717 "configure" |
| 3717 |
#include "confdefs.h" |
| 3718 |
/* System header to define __stub macros and hopefully few prototypes, |
| 3719 |
which can conflict with char sigaction(); below. */ |
| 3720 |
#include <assert.h> |
| 3721 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 3722 |
/* We use char because int might match the return type of a gcc2 |
| 3723 |
builtin and then its argument prototype would still apply. */ |
| 3724 |
char sigaction(); |
| 3725 |
|
| 3726 |
int main() { |
| 3727 |
|
| 3728 |
/* The GNU C library defines this for functions which it implements |
| 3729 |
to always fail with ENOSYS. Some functions are actually named |
| 3730 |
something starting with __ and the normal name is an alias. */ |
| 3731 |
#if defined (__stub_sigaction) || defined (__stub___sigaction) |
| 3732 |
choke me |
| 3733 |
#else |
| 3734 |
sigaction(); |
| 3735 |
#endif |
| 3736 |
|
| 3737 |
; return 0; } |
| 3738 |
EOF |
| 3739 |
if { (eval echo configure:3740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3740 |
rm -rf conftest* |
| 3741 |
eval "ac_cv_func_sigaction=yes" |
| 3742 |
else |
| 3743 |
echo "configure: failed program was:" >&5 |
| 3744 |
cat conftest.$ac_ext >&5 |
| 3745 |
rm -rf conftest* |
| 3746 |
eval "ac_cv_func_sigaction=no" |
| 3747 |
fi |
| 3748 |
rm -f conftest* |
| 3749 |
fi |
| 3750 |
|
| 3751 |
if eval "test \"`echo '$ac_cv_func_'sigaction`\" = yes"; then |
| 3752 |
echo "$ac_t""yes" 1>&6 |
| 3753 |
cat >> confdefs.h <<\EOF |
| 3754 |
#define USE_SIGACTION 1 |
| 3755 |
EOF |
| 3756 |
|
| 3757 |
echo using posix signals |
| 3758 |
|
| 3759 |
else |
| 3760 |
echo "$ac_t""no" 1>&6 |
| 3761 |
echo $ac_n "checking for sigset""... $ac_c" 1>&6 |
| 3762 |
echo "configure:3763: checking for sigset" >&5 |
| 3763 |
if eval "test \"`echo '$''{'ac_cv_func_sigset'+set}'`\" = set"; then |
| 3764 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 3765 |
else |
| 3766 |
cat > conftest.$ac_ext <<EOF |
| 3767 |
#line 3768 "configure" |
| 3768 |
#include "confdefs.h" |
| 3769 |
/* System header to define __stub macros and hopefully few prototypes, |
| 3770 |
which can conflict with char sigset(); below. */ |
| 3771 |
#include <assert.h> |
| 3772 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 3773 |
/* We use char because int might match the return type of a gcc2 |
| 3774 |
builtin and then its argument prototype would still apply. */ |
| 3775 |
char sigset(); |
| 3776 |
|
| 3777 |
int main() { |
| 3778 |
|
| 3779 |
/* The GNU C library defines this for functions which it implements |
| 3780 |
to always fail with ENOSYS. Some functions are actually named |
| 3781 |
something starting with __ and the normal name is an alias. */ |
| 3782 |
#if defined (__stub_sigset) || defined (__stub___sigset) |
| 3783 |
choke me |
| 3784 |
#else |
| 3785 |
sigset(); |
| 3786 |
#endif |
| 3787 |
|
| 3788 |
; return 0; } |
| 3789 |
EOF |
| 3790 |
if { (eval echo configure:3791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3791 |
rm -rf conftest* |
| 3792 |
eval "ac_cv_func_sigset=yes" |
| 3793 |
else |
| 3794 |
echo "configure: failed program was:" >&5 |
| 3795 |
cat conftest.$ac_ext >&5 |
| 3796 |
rm -rf conftest* |
| 3797 |
eval "ac_cv_func_sigset=no" |
| 3798 |
fi |
| 3799 |
rm -f conftest* |
| 3800 |
fi |
| 3801 |
|
| 3802 |
if eval "test \"`echo '$ac_cv_func_'sigset`\" = yes"; then |
| 3803 |
echo "$ac_t""yes" 1>&6 |
| 3804 |
cat >> confdefs.h <<\EOF |
| 3805 |
#define USE_SIGSET 1 |
| 3806 |
EOF |
| 3807 |
|
| 3808 |
echo using ok system v signals |
| 3809 |
|
| 3810 |
else |
| 3811 |
echo "$ac_t""no" 1>&6 |
| 3812 |
echo checking for reliable signals |
| 3813 |
if test "$cross_compiling" = yes; then |
| 3814 |
you lose. |
| 3815 |
|
| 3816 |
else |
| 3817 |
cat > conftest.$ac_ext <<EOF |
| 3818 |
#line 3819 "configure" |
| 3819 |
#include "confdefs.h" |
| 3820 |
|
| 3821 |
#include <sys/types.h> |
| 3822 |
#include <signal.h> |
| 3823 |
|
| 3824 |
#ifndef SIGCHLD |
| 3825 |
# define SIGCHLD SIGCLD |
| 3826 |
#endif |
| 3827 |
#ifdef USE_SIGSET |
| 3828 |
# define signal sigset |
| 3829 |
#endif |
| 3830 |
|
| 3831 |
int got; |
| 3832 |
|
| 3833 |
#ifdef SIGVOID |
| 3834 |
void |
| 3835 |
#endif |
| 3836 |
hand() |
| 3837 |
{ |
| 3838 |
got++; |
| 3839 |
} |
| 3840 |
|
| 3841 |
main() |
| 3842 |
{ |
| 3843 |
(void)signal(SIGCHLD, hand); |
| 3844 |
kill(getpid(), SIGCHLD); |
| 3845 |
kill(getpid(), SIGCHLD); |
| 3846 |
if (got < 2) |
| 3847 |
exit(1); |
| 3848 |
exit(0); |
| 3849 |
} |
| 3850 |
|
| 3851 |
EOF |
| 3852 |
if { (eval echo configure:3853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 3853 |
then |
| 3854 |
echo using bsd signals |
| 3855 |
|
| 3856 |
else |
| 3857 |
echo "configure: failed program was:" >&5 |
| 3858 |
cat conftest.$ac_ext >&5 |
| 3859 |
rm -fr conftest* |
| 3860 |
cat >> confdefs.h <<\EOF |
| 3861 |
#define SYSVSIGNALS 1 |
| 3862 |
EOF |
| 3863 |
|
| 3864 |
echo using system v signals |
| 3865 |
fi |
| 3866 |
rm -fr conftest* |
| 3867 |
fi |
| 3868 |
|
| 3869 |
fi |
| 3870 |
|
| 3871 |
fi |
| 3872 |
|
| 3873 |
|
| 3874 |
if test x$bsdwait = x1 |
| 3875 |
then |
| 3876 |
echo $ac_n "checking for wait3 declaration""... $ac_c" 1>&6 |
| 3877 |
echo "configure:3878: checking for wait3 declaration" >&5 |
| 3878 |
cat > conftest.$ac_ext <<EOF |
| 3879 |
#line 3880 "configure" |
| 3880 |
#include "confdefs.h" |
| 3881 |
#include <sys/types.h> dnl ) |
| 3882 |
#include <signal.h> |
| 3883 |
#include <sys/wait.h> |
| 3884 |
|
| 3885 |
EOF |
| 3886 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3887 |
egrep "wait3( | |\()" >/dev/null 2>&1; then |
| 3888 |
rm -rf conftest* |
| 3889 |
cat >> confdefs.h <<\EOF |
| 3890 |
#define WAIT3_DECLARED 1 |
| 3891 |
EOF |
| 3892 |
echo "$ac_t""yes" 1>&6 |
| 3893 |
else |
| 3894 |
rm -rf conftest* |
| 3895 |
echo "$ac_t""no" 1>&6 |
| 3896 |
fi |
| 3897 |
rm -f conftest* |
| 3898 |
|
| 3899 |
else |
| 3900 |
echo $ac_n "checking for waitpid declaration""... $ac_c" 1>&6 |
| 3901 |
echo "configure:3902: checking for waitpid declaration" >&5 |
| 3902 |
cat > conftest.$ac_ext <<EOF |
| 3903 |
#line 3904 "configure" |
| 3904 |
#include "confdefs.h" |
| 3905 |
#include <sys/types.h> dnl ) |
| 3906 |
#include <signal.h> |
| 3907 |
#include <sys/wait.h> |
| 3908 |
|
| 3909 |
EOF |
| 3910 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3911 |
egrep "waitpid( | |\()" >/dev/null 2>&1; then |
| 3912 |
rm -rf conftest* |
| 3913 |
cat >> confdefs.h <<\EOF |
| 3914 |
#define WAITPID_DECLARED 1 |
| 3915 |
EOF |
| 3916 |
echo "$ac_t""yes" 1>&6 |
| 3917 |
else |
| 3918 |
rm -rf conftest* |
| 3919 |
echo "$ac_t""no" 1>&6 |
| 3920 |
fi |
| 3921 |
rm -f conftest* |
| 3922 |
|
| 3923 |
fi |
| 3924 |
|
| 3925 |
|
| 3926 |
echo $ac_n "checking for errno declaration""... $ac_c" 1>&6 |
| 3927 |
echo "configure:3928: checking for errno declaration" >&5 |
| 3928 |
if test "$cross_compiling" = yes; then |
| 3929 |
: |
| 3930 |
else |
| 3931 |
cat > conftest.$ac_ext <<EOF |
| 3932 |
#line 3933 "configure" |
| 3933 |
#include "confdefs.h" |
| 3934 |
|
| 3935 |
#include <sys/types.h> |
| 3936 |
#include <errno.h> |
| 3937 |
main() |
| 3938 |
{ |
| 3939 |
int i = errno; |
| 3940 |
exit(0); |
| 3941 |
} |
| 3942 |
|
| 3943 |
EOF |
| 3944 |
if { (eval echo configure:3945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 3945 |
then |
| 3946 |
echo "$ac_t""yes" 1>&6 |
| 3947 |
cat >> confdefs.h <<\EOF |
| 3948 |
#define ERRNO_DECLARED 1 |
| 3949 |
EOF |
| 3950 |
|
| 3951 |
else |
| 3952 |
echo "configure: failed program was:" >&5 |
| 3953 |
cat conftest.$ac_ext >&5 |
| 3954 |
rm -fr conftest* |
| 3955 |
echo "$ac_t""no" 1>&6 |
| 3956 |
fi |
| 3957 |
rm -fr conftest* |
| 3958 |
fi |
| 3959 |
|
| 3960 |
|
| 3961 |
|
| 3962 |
echo $ac_n "checking for sys_errlist declaration""... $ac_c" 1>&6 |
| 3963 |
echo "configure:3964: checking for sys_errlist declaration" >&5 |
| 3964 |
if test "$cross_compiling" = yes; then |
| 3965 |
: |
| 3966 |
else |
| 3967 |
cat > conftest.$ac_ext <<EOF |
| 3968 |
#line 3969 "configure" |
| 3969 |
#include "confdefs.h" |
| 3970 |
|
| 3971 |
#include <sys/types.h> |
| 3972 |
#include <stdio.h> |
| 3973 |
#include <errno.h> |
| 3974 |
main() |
| 3975 |
{ |
| 3976 |
char *s = sys_errlist[0]; |
| 3977 |
exit(0); |
| 3978 |
} |
| 3979 |
|
| 3980 |
EOF |
| 3981 |
if { (eval echo configure:3982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 3982 |
then |
| 3983 |
echo "$ac_t""yes" 1>&6 |
| 3984 |
cat >> confdefs.h <<\EOF |
| 3985 |
#define SYS_ERRLIST_DECLARED 1 |
| 3986 |
EOF |
| 3987 |
|
| 3988 |
else |
| 3989 |
echo "configure: failed program was:" >&5 |
| 3990 |
cat conftest.$ac_ext >&5 |
| 3991 |
rm -fr conftest* |
| 3992 |
echo "$ac_t""no" 1>&6 |
| 3993 |
fi |
| 3994 |
rm -fr conftest* |
| 3995 |
fi |
| 3996 |
|
| 3997 |
|
| 3998 |
|
| 3999 |
if test "x$enable_utf8" = "xyes" ; then |
| 4000 |
echo $ac_n "checking for const iconv 2nd argument""... $ac_c" 1>&6 |
| 4001 |
echo "configure:4002: checking for const iconv 2nd argument" >&5 |
| 4002 |
cat > conftest.$ac_ext <<EOF |
| 4003 |
#line 4004 "configure" |
| 4004 |
#include "confdefs.h" |
| 4005 |
#include <iconv.h> |
| 4006 |
EOF |
| 4007 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4008 |
egrep "\\<iconv\\>.*\\(.*const" >/dev/null 2>&1; then |
| 4009 |
rm -rf conftest* |
| 4010 |
echo "$ac_t""yes" 1>&6 |
| 4011 |
cat >> confdefs.h <<\EOF |
| 4012 |
#define ICONV_CONST_ARG2 1 |
| 4013 |
EOF |
| 4014 |
|
| 4015 |
else |
| 4016 |
rm -rf conftest* |
| 4017 |
echo "$ac_t""no" 1>&6 |
| 4018 |
fi |
| 4019 |
rm -f conftest* |
| 4020 |
|
| 4021 |
fi |
| 4022 |
|
| 4023 |
|
| 4024 |
echo $ac_n "checking for a 32 bit integer""... $ac_c" 1>&6 |
| 4025 |
echo "configure:4026: checking for a 32 bit integer" >&5 |
| 4026 |
if test "$cross_compiling" = yes; then |
| 4027 |
: |
| 4028 |
else |
| 4029 |
cat > conftest.$ac_ext <<EOF |
| 4030 |
#line 4031 "configure" |
| 4031 |
#include "confdefs.h" |
| 4032 |
|
| 4033 |
main() |
| 4034 |
{ |
| 4035 |
if (4 == sizeof(unsigned long)) |
| 4036 |
exit(0); |
| 4037 |
exit(1); |
| 4038 |
} |
| 4039 |
|
| 4040 |
EOF |
| 4041 |
if { (eval echo configure:4042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 4042 |
then |
| 4043 |
echo "$ac_t""unsigned long" 1>&6 |
| 4044 |
cat >> confdefs.h <<\EOF |
| 4045 |
#define UNSIGNED_LONG32 1 |
| 4046 |
EOF |
| 4047 |
|
| 4048 |
else |
| 4049 |
echo "configure: failed program was:" >&5 |
| 4050 |
cat conftest.$ac_ext >&5 |
| 4051 |
rm -fr conftest* |
| 4052 |
if test "$cross_compiling" = yes; then |
| 4053 |
: |
| 4054 |
else |
| 4055 |
cat > conftest.$ac_ext <<EOF |
| 4056 |
#line 4057 "configure" |
| 4057 |
#include "confdefs.h" |
| 4058 |
|
| 4059 |
main() |
| 4060 |
{ |
| 4061 |
if (4 == sizeof(unsigned int)) |
| 4062 |
exit(0); |
| 4063 |
exit(1); |
| 4064 |
} |
| 4065 |
|
| 4066 |
EOF |
| 4067 |
if { (eval echo configure:4068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 4068 |
then |
| 4069 |
echo "$ac_t""unsigned int" 1>&6 |
| 4070 |
cat >> confdefs.h <<\EOF |
| 4071 |
#define UNSIGNED_INT32 1 |
| 4072 |
EOF |
| 4073 |
|
| 4074 |
else |
| 4075 |
echo "configure: failed program was:" >&5 |
| 4076 |
cat conftest.$ac_ext >&5 |
| 4077 |
rm -fr conftest* |
| 4078 |
echo "$ac_t""none" 1>&6 |
| 4079 |
cat >> confdefs.h <<\EOF |
| 4080 |
#define UNKNOWN_32INT 1 |
| 4081 |
EOF |
| 4082 |
|
| 4083 |
fi |
| 4084 |
rm -fr conftest* |
| 4085 |
fi |
| 4086 |
|
| 4087 |
fi |
| 4088 |
rm -fr conftest* |
| 4089 |
fi |
| 4090 |
|
| 4091 |
|
| 4092 |
|
| 4093 |
if test ! -n "$libsocket"; then |
| 4094 |
echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
| 4095 |
echo "configure:4096: checking for socket in -lsocket" >&5 |
| 4096 |
ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
| 4097 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 4098 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 4099 |
else |
| 4100 |
ac_save_LIBS="$LIBS" |
| 4101 |
LIBS="-lsocket $LIBS" |
| 4102 |
cat > conftest.$ac_ext <<EOF |
| 4103 |
#line 4104 "configure" |
| 4104 |
#include "confdefs.h" |
| 4105 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 4106 |
/* We use char because int might match the return type of a gcc2 |
| 4107 |
builtin and then its argument prototype would still apply. */ |
| 4108 |
char socket(); |
| 4109 |
|
| 4110 |
int main() { |
| 4111 |
socket() |
| 4112 |
; return 0; } |
| 4113 |
EOF |
| 4114 |
if { (eval echo configure:4115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4115 |
rm -rf conftest* |
| 4116 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 4117 |
else |
| 4118 |
echo "configure: failed program was:" >&5 |
| 4119 |
cat conftest.$ac_ext >&5 |
| 4120 |
rm -rf conftest* |
| 4121 |
eval "ac_cv_lib_$ac_lib_var=no" |
| 4122 |
fi |
| 4123 |
rm -f conftest* |
| 4124 |
LIBS="$ac_save_LIBS" |
| 4125 |
|
| 4126 |
fi |
| 4127 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4128 |
echo "$ac_t""yes" 1>&6 |
| 4129 |
LIBS="$LIBS -lsocket" |
| 4130 |
else |
| 4131 |
echo "$ac_t""no" 1>&6 |
| 4132 |
fi |
| 4133 |
|
| 4134 |
fi |
| 4135 |
if test ! -n "$libinet"; then |
| 4136 |
echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6 |
| 4137 |
echo "configure:4138: checking for socket in -linet" >&5 |
| 4138 |
ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'` |
| 4139 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 4140 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 4141 |
else |
| 4142 |
ac_save_LIBS="$LIBS" |
| 4143 |
LIBS="-linet $LIBS" |
| 4144 |
cat > conftest.$ac_ext <<EOF |
| 4145 |
#line 4146 "configure" |
| 4146 |
#include "confdefs.h" |
| 4147 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 4148 |
/* We use char because int might match the return type of a gcc2 |
| 4149 |
builtin and then its argument prototype would still apply. */ |
| 4150 |
char socket(); |
| 4151 |
|
| 4152 |
int main() { |
| 4153 |
socket() |
| 4154 |
; return 0; } |
| 4155 |
EOF |
| 4156 |
if { (eval echo configure:4157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4157 |
rm -rf conftest* |
| 4158 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 4159 |
else |
| 4160 |
echo "configure: failed program was:" >&5 |
| 4161 |
cat conftest.$ac_ext >&5 |
| 4162 |
rm -rf conftest* |
| 4163 |
eval "ac_cv_lib_$ac_lib_var=no" |
| 4164 |
fi |
| 4165 |
rm -f conftest* |
| 4166 |
LIBS="$ac_save_LIBS" |
| 4167 |
|
| 4168 |
fi |
| 4169 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4170 |
echo "$ac_t""yes" 1>&6 |
| 4171 |
libnsl=1; LIBS="$LIBS -linet -lnsl_s" |
| 4172 |
else |
| 4173 |
echo "$ac_t""no" 1>&6 |
| 4174 |
fi |
| 4175 |
|
| 4176 |
fi |
| 4177 |
echo $ac_n "checking for gethostname""... $ac_c" 1>&6 |
| 4178 |
echo "configure:4179: checking for gethostname" >&5 |
| 4179 |
if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then |
| 4180 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 4181 |
else |
| 4182 |
cat > conftest.$ac_ext <<EOF |
| 4183 |
#line 4184 "configure" |
| 4184 |
#include "confdefs.h" |
| 4185 |
/* System header to define __stub macros and hopefully few prototypes, |
| 4186 |
which can conflict with char gethostname(); below. */ |
| 4187 |
#include <assert.h> |
| 4188 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 4189 |
/* We use char because int might match the return type of a gcc2 |
| 4190 |
builtin and then its argument prototype would still apply. */ |
| 4191 |
char gethostname(); |
| 4192 |
|
| 4193 |
int main() { |
| 4194 |
|
| 4195 |
/* The GNU C library defines this for functions which it implements |
| 4196 |
to always fail with ENOSYS. Some functions are actually named |
| 4197 |
something starting with __ and the normal name is an alias. */ |
| 4198 |
#if defined (__stub_gethostname) || defined (__stub___gethostname) |
| 4199 |
choke me |
| 4200 |
#else |
| 4201 |
gethostname(); |
| 4202 |
#endif |
| 4203 |
|
| 4204 |
; return 0; } |
| 4205 |
EOF |
| 4206 |
if { (eval echo configure:4207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4207 |
rm -rf conftest* |
| 4208 |
eval "ac_cv_func_gethostname=yes" |
| 4209 |
else |
| 4210 |
echo "configure: failed program was:" >&5 |
| 4211 |
cat conftest.$ac_ext >&5 |
| 4212 |
rm -rf conftest* |
| 4213 |
eval "ac_cv_func_gethostname=no" |
| 4214 |
fi |
| 4215 |
rm -f conftest* |
| 4216 |
fi |
| 4217 |
|
| 4218 |
if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then |
| 4219 |
echo "$ac_t""yes" 1>&6 |
| 4220 |
: |
| 4221 |
else |
| 4222 |
echo "$ac_t""no" 1>&6 |
| 4223 |
echo $ac_n "checking for gethostname in -lnsl""... $ac_c" 1>&6 |
| 4224 |
echo "configure:4225: checking for gethostname in -lnsl" >&5 |
| 4225 |
ac_lib_var=`echo nsl'_'gethostname | sed 'y%./+-%__p_%'` |
| 4226 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 4227 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 4228 |
else |
| 4229 |
ac_save_LIBS="$LIBS" |
| 4230 |
LIBS="-lnsl $LIBS" |
| 4231 |
cat > conftest.$ac_ext <<EOF |
| 4232 |
#line 4233 "configure" |
| 4233 |
#include "confdefs.h" |
| 4234 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 4235 |
/* We use char because int might match the return type of a gcc2 |
| 4236 |
builtin and then its argument prototype would still apply. */ |
| 4237 |
char gethostname(); |
| 4238 |
|
| 4239 |
int main() { |
| 4240 |
gethostname() |
| 4241 |
; return 0; } |
| 4242 |
EOF |
| 4243 |
if { (eval echo configure:4244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4244 |
rm -rf conftest* |
| 4245 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 4246 |
else |
| 4247 |
echo "configure: failed program was:" >&5 |
| 4248 |
cat conftest.$ac_ext >&5 |
| 4249 |
rm -rf conftest* |
| 4250 |
eval "ac_cv_lib_$ac_lib_var=no" |
| 4251 |
fi |
| 4252 |
rm -f conftest* |
| 4253 |
LIBS="$ac_save_LIBS" |
| 4254 |
|
| 4255 |
fi |
| 4256 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4257 |
echo "$ac_t""yes" 1>&6 |
| 4258 |
LIBS="$LIBS -lnsl" |
| 4259 |
else |
| 4260 |
echo "$ac_t""no" 1>&6 |
| 4261 |
fi |
| 4262 |
|
| 4263 |
fi |
| 4264 |
|
| 4265 |
echo $ac_n "checking for inet_addr in -ldgc""... $ac_c" 1>&6 |
| 4266 |
echo "configure:4267: checking for inet_addr in -ldgc" >&5 |
| 4267 |
ac_lib_var=`echo dgc'_'inet_addr | sed 'y%./+-%__p_%'` |
| 4268 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 4269 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 4270 |
else |
| 4271 |
ac_save_LIBS="$LIBS" |
| 4272 |
LIBS="-ldgc $LIBS" |
| 4273 |
cat > conftest.$ac_ext <<EOF |
| 4274 |
#line 4275 "configure" |
| 4275 |
#include "confdefs.h" |
| 4276 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 4277 |
/* We use char because int might match the return type of a gcc2 |
| 4278 |
builtin and then its argument prototype would still apply. */ |
| 4279 |
char inet_addr(); |
| 4280 |
|
| 4281 |
int main() { |
| 4282 |
inet_addr() |
| 4283 |
; return 0; } |
| 4284 |
EOF |
| 4285 |
if { (eval echo configure:4286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4286 |
rm -rf conftest* |
| 4287 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 4288 |
else |
| 4289 |
echo "configure: failed program was:" >&5 |
| 4290 |
cat conftest.$ac_ext >&5 |
| 4291 |
rm -rf conftest* |
| 4292 |
eval "ac_cv_lib_$ac_lib_var=no" |
| 4293 |
fi |
| 4294 |
rm -f conftest* |
| 4295 |
LIBS="$ac_save_LIBS" |
| 4296 |
|
| 4297 |
fi |
| 4298 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4299 |
echo "$ac_t""yes" 1>&6 |
| 4300 |
LIBS="$LIBS -ldgc" |
| 4301 |
else |
| 4302 |
echo "$ac_t""no" 1>&6 |
| 4303 |
fi |
| 4304 |
|
| 4305 |
echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6 |
| 4306 |
echo "configure:4307: checking for gethostbyname in -lresolv" >&5 |
| 4307 |
ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'` |
| 4308 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 4309 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 4310 |
else |
| 4311 |
ac_save_LIBS="$LIBS" |
| 4312 |
LIBS="-lresolv $LIBS" |
| 4313 |
cat > conftest.$ac_ext <<EOF |
| 4314 |
#line 4315 "configure" |
| 4315 |
#include "confdefs.h" |
| 4316 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 4317 |
/* We use char because int might match the return type of a gcc2 |
| 4318 |
builtin and then its argument prototype would still apply. */ |
| 4319 |
char gethostbyname(); |
| 4320 |
|
| 4321 |
int main() { |
| 4322 |
gethostbyname() |
| 4323 |
; return 0; } |
| 4324 |
EOF |
| 4325 |
if { (eval echo configure:4326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4326 |
rm -rf conftest* |
| 4327 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 4328 |
else |
| 4329 |
echo "configure: failed program was:" >&5 |
| 4330 |
cat conftest.$ac_ext >&5 |
| 4331 |
rm -rf conftest* |
| 4332 |
eval "ac_cv_lib_$ac_lib_var=no" |
| 4333 |
fi |
| 4334 |
rm -f conftest* |
| 4335 |
LIBS="$ac_save_LIBS" |
| 4336 |
|
| 4337 |
fi |
| 4338 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4339 |
echo "$ac_t""yes" 1>&6 |
| 4340 |
olibs=$LIBS |
| 4341 |
LIBS="$LIBS -lresolv" |
| 4342 |
if test "$cross_compiling" = yes; then |
| 4343 |
: |
| 4344 |
else |
| 4345 |
cat > conftest.$ac_ext <<EOF |
| 4346 |
#line 4347 "configure" |
| 4347 |
#include "confdefs.h" |
| 4348 |
|
| 4349 |
#include <netdb.h> |
| 4350 |
main() |
| 4351 |
{ |
| 4352 |
struct hostent *hp; |
| 4353 |
|
| 4354 |
hp = gethostbyname("`uname -n`"); |
| 4355 |
exit(0); |
| 4356 |
} |
| 4357 |
|
| 4358 |
EOF |
| 4359 |
if { (eval echo configure:4360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 4360 |
then |
| 4361 |
: |
| 4362 |
else |
| 4363 |
echo "configure: failed program was:" >&5 |
| 4364 |
cat conftest.$ac_ext >&5 |
| 4365 |
rm -fr conftest* |
| 4366 |
LIBS=$olibs |
| 4367 |
fi |
| 4368 |
rm -fr conftest* |
| 4369 |
fi |
| 4370 |
|
| 4371 |
else |
| 4372 |
echo "$ac_t""no" 1>&6 |
| 4373 |
echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
| 4374 |
echo "configure:4375: checking for gethostbyname in -lnsl" >&5 |
| 4375 |
ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
| 4376 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 4377 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 4378 |
else |
| 4379 |
ac_save_LIBS="$LIBS" |
| 4380 |
LIBS="-lnsl $LIBS" |
| 4381 |
cat > conftest.$ac_ext <<EOF |
| 4382 |
#line 4383 "configure" |
| 4383 |
#include "confdefs.h" |
| 4384 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 4385 |
/* We use char because int might match the return type of a gcc2 |
| 4386 |
builtin and then its argument prototype would still apply. */ |
| 4387 |
char gethostbyname(); |
| 4388 |
|
| 4389 |
int main() { |
| 4390 |
gethostbyname() |
| 4391 |
; return 0; } |
| 4392 |
EOF |
| 4393 |
if { (eval echo configure:4394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4394 |
rm -rf conftest* |
| 4395 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 4396 |
else |
| 4397 |
echo "configure: failed program was:" >&5 |
| 4398 |
cat conftest.$ac_ext >&5 |
| 4399 |
rm -rf conftest* |
| 4400 |
eval "ac_cv_lib_$ac_lib_var=no" |
| 4401 |
fi |
| 4402 |
rm -f conftest* |
| 4403 |
LIBS="$ac_save_LIBS" |
| 4404 |
|
| 4405 |
fi |
| 4406 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4407 |
echo "$ac_t""yes" 1>&6 |
| 4408 |
olibs=$LIBS |
| 4409 |
LIBS="$LIBS -lnsl" |
| 4410 |
else |
| 4411 |
echo "$ac_t""no" 1>&6 |
| 4412 |
fi |
| 4413 |
|
| 4414 |
fi |
| 4415 |
|
| 4416 |
echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6 |
| 4417 |
echo "configure:4418: checking for inet_aton in -lresolv" >&5 |
| 4418 |
ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'` |
| 4419 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 4420 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 4421 |
else |
| 4422 |
ac_save_LIBS="$LIBS" |
| 4423 |
LIBS="-lresolv $LIBS" |
| 4424 |
cat > conftest.$ac_ext <<EOF |
| 4425 |
#line 4426 "configure" |
| 4426 |
#include "confdefs.h" |
| 4427 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 4428 |
/* We use char because int might match the return type of a gcc2 |
| 4429 |
builtin and then its argument prototype would still apply. */ |
| 4430 |
char inet_aton(); |
| 4431 |
|
| 4432 |
int main() { |
| 4433 |
inet_aton() |
| 4434 |
; return 0; } |
| 4435 |
EOF |
| 4436 |
if { (eval echo configure:4437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4437 |
rm -rf conftest* |
| 4438 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 4439 |
else |
| 4440 |
echo "configure: failed program was:" >&5 |
| 4441 |
cat conftest.$ac_ext >&5 |
| 4442 |
rm -rf conftest* |
| 4443 |
eval "ac_cv_lib_$ac_lib_var=no" |
| 4444 |
fi |
| 4445 |
rm -f conftest* |
| 4446 |
LIBS="$ac_save_LIBS" |
| 4447 |
|
| 4448 |
fi |
| 4449 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4450 |
echo "$ac_t""yes" 1>&6 |
| 4451 |
LIBS="$LIBS -lresolv" |
| 4452 |
else |
| 4453 |
echo "$ac_t""no" 1>&6 |
| 4454 |
fi |
| 4455 |
|
| 4456 |
|
| 4457 |
echo $ac_n "checking for non-blocking""... $ac_c" 1>&6 |
| 4458 |
echo "configure:4459: checking for non-blocking" >&5 |
| 4459 |
|
| 4460 |
precode='#include <sys/types.h> |
| 4461 |
#include <sys/socket.h> |
| 4462 |
#include <fcntl.h> |
| 4463 |
#include <sys/ioctl.h> |
| 4464 |
#include <sys/file.h> |
| 4465 |
#include <signal.h> |
| 4466 |
|
| 4467 |
alarmed() |
| 4468 |
{ |
| 4469 |
exit(1); |
| 4470 |
} |
| 4471 |
|
| 4472 |
main() |
| 4473 |
{ |
| 4474 |
char b[12], x[32]; |
| 4475 |
int f, l = sizeof(x); |
| 4476 |
f = socket(AF_INET, SOCK_DGRAM, 0); |
| 4477 |
if (f >= 0 && (fcntl(f, F_SETFL,' |
| 4478 |
postcode=') != -1)) { |
| 4479 |
signal(SIGALRM, alarmed); |
| 4480 |
alarm(3); |
| 4481 |
recvfrom(f, b, 12, 0, (struct sockaddr *)x, &l); |
| 4482 |
alarm(0); |
| 4483 |
exit(0); |
| 4484 |
} |
| 4485 |
exit(1); |
| 4486 |
}' |
| 4487 |
|
| 4488 |
|
| 4489 |
code="$precode O_NONBLOCK $postcode" |
| 4490 |
|
| 4491 |
if test "$cross_compiling" = yes; then |
| 4492 |
: |
| 4493 |
else |
| 4494 |
cat > conftest.$ac_ext <<EOF |
| 4495 |
#line 4496 "configure" |
| 4496 |
#include "confdefs.h" |
| 4497 |
$code |
| 4498 |
EOF |
| 4499 |
if { (eval echo configure:4500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 4500 |
then |
| 4501 |
cat >> confdefs.h <<\EOF |
| 4502 |
#define NBLOCK_POSIX 1 |
| 4503 |
EOF |
| 4504 |
|
| 4505 |
echo "$ac_t""posix" 1>&6 |
| 4506 |
else |
| 4507 |
echo "configure: failed program was:" >&5 |
| 4508 |
cat conftest.$ac_ext >&5 |
| 4509 |
rm -fr conftest* |
| 4510 |
code="$precode O_NDELAY $postcode" |
| 4511 |
if test "$cross_compiling" = yes; then |
| 4512 |
: |
| 4513 |
else |
| 4514 |
cat > conftest.$ac_ext <<EOF |
| 4515 |
#line 4516 "configure" |
| 4516 |
#include "confdefs.h" |
| 4517 |
$code |
| 4518 |
EOF |
| 4519 |
if { (eval echo configure:4520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 4520 |
then |
| 4521 |
cat >> confdefs.h <<\EOF |
| 4522 |
#define NBLOCK_BSD 1 |
| 4523 |
EOF |
| 4524 |
|
| 4525 |
echo "$ac_t""bsd" 1>&6 |
| 4526 |
else |
| 4527 |
echo "configure: failed program was:" >&5 |
| 4528 |
cat conftest.$ac_ext >&5 |
| 4529 |
rm -fr conftest* |
| 4530 |
code="$precode FIONBIO $postcode" |
| 4531 |
if test "$cross_compiling" = yes; then |
| 4532 |
: |
| 4533 |
else |
| 4534 |
cat > conftest.$ac_ext <<EOF |
| 4535 |
#line 4536 "configure" |
| 4536 |
#include "confdefs.h" |
| 4537 |
$code |
| 4538 |
EOF |
| 4539 |
if { (eval echo configure:4540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 4540 |
then |
| 4541 |
cat >> confdefs.h <<\EOF |
| 4542 |
#define NBLOCK_SYSV 1 |
| 4543 |
EOF |
| 4544 |
|
| 4545 |
echo "$ac_t""system v" 1>&6 |
| 4546 |
else |
| 4547 |
echo "configure: failed program was:" >&5 |
| 4548 |
cat conftest.$ac_ext >&5 |
| 4549 |
rm -fr conftest* |
| 4550 |
echo "configure: warning: i can't find a working non blocking system" 1>&2 |
| 4551 |
fi |
| 4552 |
rm -fr conftest* |
| 4553 |
fi |
| 4554 |
|
| 4555 |
fi |
| 4556 |
rm -fr conftest* |
| 4557 |
fi |
| 4558 |
|
| 4559 |
fi |
| 4560 |
rm -fr conftest* |
| 4561 |
fi |
| 4562 |
|
| 4563 |
|
| 4564 |
echo "generating a list of signal names..." |
| 4565 |
set X `cat /usr/include/signal.h /usr/include/sys/signal.h /usr/include/linux/signal.h 2>&1 | sed 's/^#[ ]*/#/' | awk ' |
| 4566 |
$1 ~ /^#define$/ && $2 ~ /^SIG[A-Z0-9]*$/ && $3 ~ /^[1-9][0-9]*$/ { |
| 4567 |
sig[$3] = substr($2,4,20) |
| 4568 |
if (max < $3 && $3 < 60) { |
| 4569 |
max = $3 |
| 4570 |
} |
| 4571 |
} |
| 4572 |
|
| 4573 |
END { |
| 4574 |
for (i=1; i<=max; i++) { |
| 4575 |
if (sig[i] == "") |
| 4576 |
printf "%d", i |
| 4577 |
else |
| 4578 |
printf "%s", sig[i] |
| 4579 |
if (i < max) |
| 4580 |
printf " " |
| 4581 |
} |
| 4582 |
printf "\n" |
| 4583 |
} |
| 4584 |
'` |
| 4585 |
shift |
| 4586 |
case $# in |
| 4587 |
0) |
| 4588 |
set X `kill -l 2> /dev/null` |
| 4589 |
shift |
| 4590 |
case $# in |
| 4591 |
0) |
| 4592 |
if test -f /bin/csh; then |
| 4593 |
set X `/bin/csh -cf 'kill -l'` |
| 4594 |
shift |
| 4595 |
case $# in |
| 4596 |
0) |
| 4597 |
set HUP INT QUIT ILL TRAP ABRT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM |
| 4598 |
;; |
| 4599 |
esac |
| 4600 |
fi |
| 4601 |
;; |
| 4602 |
esac |
| 4603 |
;; |
| 4604 |
esac |
| 4605 |
|
| 4606 |
sig_name="ZERO $*" |
| 4607 |
if test -f source/sig.inc; then |
| 4608 |
/bin/rm -f source/sig.inc |
| 4609 |
fi |
| 4610 |
|
| 4611 |
echo $sig_name | sed -e 's/$/"};/' -e 's/ /", "/g' -e 's/^/char *signals[] = { "/' -e 's/};/, NULL};/' >> source/sig.inc |
| 4612 |
|
| 4613 |
|
| 4614 |
echo $ac_n "checking for unix mail directory""... $ac_c" 1>&6 |
| 4615 |
echo "configure:4616: checking for unix mail directory" >&5 |
| 4616 |
|
| 4617 |
for foo in /var/spool/mail /usr/spool/mail /var/mail /usr/mail |
| 4618 |
do |
| 4619 |
if test -d $foo; then |
| 4620 |
mdir=$foo |
| 4621 |
break |
| 4622 |
fi |
| 4623 |
done |
| 4624 |
|
| 4625 |
if test -n "$mdir"; then |
| 4626 |
UNIX_MAIL=\"$mdir\" |
| 4627 |
echo "$ac_t""$mdir" 1>&6 |
| 4628 |
cat >> confdefs.h <<EOF |
| 4629 |
#define UNIX_MAIL "$mdir" |
| 4630 |
EOF |
| 4631 |
|
| 4632 |
else |
| 4633 |
echo "$ac_t""none" 1>&6 |
| 4634 |
echo $ac_n "checking for AMS mail""... $ac_c" 1>&6 |
| 4635 |
echo "configure:4636: checking for AMS mail" >&5 |
| 4636 |
if test "x$HOME" != "/" -o -z "x$HOME" && test -d "$HOME/Mailbox"; then |
| 4637 |
echo "$ac_t""using Mailbox" 1>&6 |
| 4638 |
cat >> confdefs.h <<EOF |
| 4639 |
#define AMS_MAIL "Mailbox" |
| 4640 |
EOF |
| 4641 |
|
| 4642 |
else |
| 4643 |
echo "$ac_t""no" 1>&6 |
| 4644 |
fi |
| 4645 |
fi |
| 4646 |
|
| 4647 |
|
| 4648 |
if test -z "$CFLAGS"; then CFLAGS=-O ; fi |
| 4649 |
if test -z "$LDFLAGS"; then LDFLAGS= ; fi |
| 4650 |
RM="rm -f" |
| 4651 |
LN="ln -s" |
| 4652 |
|
| 4653 |
if test ! -n "$bindir"; |
| 4654 |
then |
| 4655 |
bindir=\${exec_prefix}/bin |
| 4656 |
fi |
| 4657 |
|
| 4658 |
|
| 4659 |
if test ! -n "$IRCLIB"; |
| 4660 |
then |
| 4661 |
IRCLIB=\${datadir}/scrollz |
| 4662 |
fi |
| 4663 |
|
| 4664 |
|
| 4665 |
if test "x$exec_prefix" = "xNONE"; then |
| 4666 |
if test "x$prefix" = "xNONE"; then |
| 4667 |
libdir="$ac_default_prefix/lib" |
| 4668 |
else |
| 4669 |
if test "x$libdir" = "xNONE"; then |
| 4670 |
libdir="$prefix/lib" |
| 4671 |
fi |
| 4672 |
fi |
| 4673 |
else |
| 4674 |
libdir="$exec_prefix/lib" |
| 4675 |
fi |
| 4676 |
|
| 4677 |
echo $ac_n "checking for ElectricFence library""... $ac_c" 1>&6 |
| 4678 |
echo "configure:4679: checking for ElectricFence library" >&5 |
| 4679 |
# Check whether --with-efence or --without-efence was given. |
| 4680 |
if test "${with_efence+set}" = set; then |
| 4681 |
withval="$with_efence" |
| 4682 |
case "$withval" in |
| 4683 |
no) |
| 4684 |
echo "$ac_t""no" 1>&6 |
| 4685 |
;; |
| 4686 |
*) |
| 4687 |
echo "$ac_t""yes" 1>&6 |
| 4688 |
if test "x$withval" = xyes; then |
| 4689 |
withval="-lefence" |
| 4690 |
else |
| 4691 |
if test -d "$withval"; then |
| 4692 |
if test -d "$withval/lib"; then |
| 4693 |
withval="-L$withval/lib -lefence" |
| 4694 |
else |
| 4695 |
withval="-L$withval -lefence" |
| 4696 |
fi |
| 4697 |
fi |
| 4698 |
fi |
| 4699 |
LIBS="$withval $LIBS" |
| 4700 |
;; |
| 4701 |
esac |
| 4702 |
else |
| 4703 |
echo "$ac_t""no" 1>&6 |
| 4704 |
|
| 4705 |
fi |
| 4706 |
|
| 4707 |
|
| 4708 |
echo $ac_n "checking paranoia status""... $ac_c" 1>&6 |
| 4709 |
echo "configure:4710: checking paranoia status" >&5 |
| 4710 |
# Check whether --with-paranoid or --without-paranoid was given. |
| 4711 |
if test "${with_paranoid+set}" = set; then |
| 4712 |
withval="$with_paranoid" |
| 4713 |
echo "$ac_t""yes" 1>&6 |
| 4714 |
cat >> confdefs.h <<EOF |
| 4715 |
#define PARANOID 1 |
| 4716 |
EOF |
| 4717 |
|
| 4718 |
else |
| 4719 |
echo "$ac_t""none" 1>&6 |
| 4720 |
|
| 4721 |
fi |
| 4722 |
|
| 4723 |
|
| 4724 |
echo $ac_n "checking for /dev/urandom""... $ac_c" 1>&6 |
| 4725 |
echo "configure:4726: checking for /dev/urandom" >&5 |
| 4726 |
if test -c /dev/urandom; then |
| 4727 |
echo "$ac_t""yes" 1>&6 |
| 4728 |
cat >> confdefs.h <<EOF |
| 4729 |
#define HAVE_DEV_RANDOM 1 |
| 4730 |
EOF |
| 4731 |
|
| 4732 |
cat >> confdefs.h <<EOF |
| 4733 |
#define DEV_RANDOM_PATH "/dev/urandom" |
| 4734 |
EOF |
| 4735 |
|
| 4736 |
else |
| 4737 |
echo "$ac_t""no" 1>&6 |
| 4738 |
echo $ac_n "checking for /dev/random""... $ac_c" 1>&6 |
| 4739 |
echo "configure:4740: checking for /dev/random" >&5 |
| 4740 |
if test -c /dev/random; then |
| 4741 |
echo "$ac_t""yes" 1>&6 |
| 4742 |
cat >> confdefs.h <<EOF |
| 4743 |
#define HAVE_DEV_RANDOM 1 |
| 4744 |
EOF |
| 4745 |
|
| 4746 |
cat >> confdefs.h <<EOF |
| 4747 |
#define DEV_RANDOM_PATH "/dev/random" |
| 4748 |
EOF |
| 4749 |
|
| 4750 |
else |
| 4751 |
echo "$ac_t""no" 1>&6 |
| 4752 |
fi |
| 4753 |
fi |
| 4754 |
|
| 4755 |
echo $ac_n "checking for default server""... $ac_c" 1>&6 |
| 4756 |
echo "configure:4757: checking for default server" >&5 |
| 4757 |
# Check whether --with-default-server or --without-default-server was given. |
| 4758 |
if test "${with_default_server+set}" = set; then |
| 4759 |
withval="$with_default_server" |
| 4760 |
if test "$withval"; then |
| 4761 |
echo "$ac_t""$withval" 1>&6 |
| 4762 |
cat >> confdefs.h <<EOF |
| 4763 |
#define DEFAULT_SERVER "$withval" |
| 4764 |
EOF |
| 4765 |
|
| 4766 |
else |
| 4767 |
echo "$ac_t""none" 1>&6 |
| 4768 |
fi |
| 4769 |
else |
| 4770 |
echo "$ac_t""none" 1>&6 |
| 4771 |
|
| 4772 |
fi |
| 4773 |
|
| 4774 |
|
| 4775 |
echo $ac_n "checking for crypt in -lc""... $ac_c" 1>&6 |
| 4776 |
echo "configure:4777: checking for crypt in -lc" >&5 |
| 4777 |
ac_lib_var=`echo c'_'crypt | sed 'y%./+-%__p_%'` |
| 4778 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 4779 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 4780 |
else |
| 4781 |
ac_save_LIBS="$LIBS" |
| 4782 |
LIBS="-lc $LIBS" |
| 4783 |
cat > conftest.$ac_ext <<EOF |
| 4784 |
#line 4785 "configure" |
| 4785 |
#include "confdefs.h" |
| 4786 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 4787 |
/* We use char because int might match the return type of a gcc2 |
| 4788 |
builtin and then its argument prototype would still apply. */ |
| 4789 |
char crypt(); |
| 4790 |
|
| 4791 |
int main() { |
| 4792 |
crypt() |
| 4793 |
; return 0; } |
| 4794 |
EOF |
| 4795 |
if { (eval echo configure:4796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4796 |
rm -rf conftest* |
| 4797 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 4798 |
else |
| 4799 |
echo "configure: failed program was:" >&5 |
| 4800 |
cat conftest.$ac_ext >&5 |
| 4801 |
rm -rf conftest* |
| 4802 |
eval "ac_cv_lib_$ac_lib_var=no" |
| 4803 |
fi |
| 4804 |
rm -f conftest* |
| 4805 |
LIBS="$ac_save_LIBS" |
| 4806 |
|
| 4807 |
fi |
| 4808 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4809 |
echo "$ac_t""yes" 1>&6 |
| 4810 |
cat >> confdefs.h <<\EOF |
| 4811 |
#define HAVE_CRYPT 1 |
| 4812 |
EOF |
| 4813 |
|
| 4814 |
LIBS="-lc $LIBS" |
| 4815 |
else |
| 4816 |
echo "$ac_t""no" 1>&6 |
| 4817 |
echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 |
| 4818 |
echo "configure:4819: checking for crypt in -lcrypt" >&5 |
| 4819 |
ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` |
| 4820 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 4821 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 4822 |
else |
| 4823 |
ac_save_LIBS="$LIBS" |
| 4824 |
LIBS="-lcrypt $LIBS" |
| 4825 |
cat > conftest.$ac_ext <<EOF |
| 4826 |
#line 4827 "configure" |
| 4827 |
#include "confdefs.h" |
| 4828 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 4829 |
/* We use char because int might match the return type of a gcc2 |
| 4830 |
builtin and then its argument prototype would still apply. */ |
| 4831 |
char crypt(); |
| 4832 |
|
| 4833 |
int main() { |
| 4834 |
crypt() |
| 4835 |
; return 0; } |
| 4836 |
EOF |
| 4837 |
if { (eval echo configure:4838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4838 |
rm -rf conftest* |
| 4839 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 4840 |
else |
| 4841 |
echo "configure: failed program was:" >&5 |
| 4842 |
cat conftest.$ac_ext >&5 |
| 4843 |
rm -rf conftest* |
| 4844 |
eval "ac_cv_lib_$ac_lib_var=no" |
| 4845 |
fi |
| 4846 |
rm -f conftest* |
| 4847 |
LIBS="$ac_save_LIBS" |
| 4848 |
|
| 4849 |
fi |
| 4850 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4851 |
echo "$ac_t""yes" 1>&6 |
| 4852 |
cat >> confdefs.h <<\EOF |
| 4853 |
#define HAVE_CRYPT 1 |
| 4854 |
EOF |
| 4855 |
|
| 4856 |
LIBS="-lcrypt $LIBS" |
| 4857 |
else |
| 4858 |
echo "$ac_t""no" 1>&6 |
| 4859 |
echo $ac_n "checking for des in -ldes""... $ac_c" 1>&6 |
| 4860 |
echo "configure:4861: checking for des in -ldes" >&5 |
| 4861 |
ac_lib_var=`echo des'_'des | sed 'y%./+-%__p_%'` |
| 4862 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 4863 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 4864 |
else |
| 4865 |
ac_save_LIBS="$LIBS" |
| 4866 |
LIBS="-ldes $LIBS" |
| 4867 |
cat > conftest.$ac_ext <<EOF |
| 4868 |
#line 4869 "configure" |
| 4869 |
#include "confdefs.h" |
| 4870 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 4871 |
/* We use char because int might match the return type of a gcc2 |
| 4872 |
builtin and then its argument prototype would still apply. */ |
| 4873 |
char des(); |
| 4874 |
|
| 4875 |
int main() { |
| 4876 |
des() |
| 4877 |
; return 0; } |
| 4878 |
EOF |
| 4879 |
if { (eval echo configure:4880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4880 |
rm -rf conftest* |
| 4881 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 4882 |
else |
| 4883 |
echo "configure: failed program was:" >&5 |
| 4884 |
cat conftest.$ac_ext >&5 |
| 4885 |
rm -rf conftest* |
| 4886 |
eval "ac_cv_lib_$ac_lib_var=no" |
| 4887 |
fi |
| 4888 |
rm -f conftest* |
| 4889 |
LIBS="$ac_save_LIBS" |
| 4890 |
|
| 4891 |
fi |
| 4892 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4893 |
echo "$ac_t""yes" 1>&6 |
| 4894 |
cat >> confdefs.h <<\EOF |
| 4895 |
#define HAVE_CRYPT 1 |
| 4896 |
EOF |
| 4897 |
|
| 4898 |
LIBS="-ldes $LIBS" |
| 4899 |
else |
| 4900 |
echo "$ac_t""no" 1>&6 |
| 4901 |
fi |
| 4902 |
|
| 4903 |
fi |
| 4904 |
|
| 4905 |
fi |
| 4906 |
|
| 4907 |
|
| 4908 |
echo $ac_n "checking whether to support SOCKS""... $ac_c" 1>&6 |
| 4909 |
echo "configure:4910: checking whether to support SOCKS" >&5 |
| 4910 |
# Check whether --with-socks or --without-socks was given. |
| 4911 |
if test "${with_socks+set}" = set; then |
| 4912 |
withval="$with_socks" |
| 4913 |
case "$withval" in |
| 4914 |
no) |
| 4915 |
echo "$ac_t""no" 1>&6 |
| 4916 |
;; |
| 4917 |
yes) |
| 4918 |
echo "$ac_t""yes" 1>&6 |
| 4919 |
echo $ac_n "checking for SOCKSconnect in -lsocks5""... $ac_c" 1>&6 |
| 4920 |
echo "configure:4921: checking for SOCKSconnect in -lsocks5" >&5 |
| 4921 |
ac_lib_var=`echo socks5'_'SOCKSconnect | sed 'y%./+-%__p_%'` |
| 4922 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 4923 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 4924 |
else |
| 4925 |
ac_save_LIBS="$LIBS" |
| 4926 |
LIBS="-lsocks5 $LIBS" |
| 4927 |
cat > conftest.$ac_ext <<EOF |
| 4928 |
#line 4929 "configure" |
| 4929 |
#include "confdefs.h" |
| 4930 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 4931 |
/* We use char because int might match the return type of a gcc2 |
| 4932 |
builtin and then its argument prototype would still apply. */ |
| 4933 |
char SOCKSconnect(); |
| 4934 |
|
| 4935 |
int main() { |
| 4936 |
SOCKSconnect() |
| 4937 |
; return 0; } |
| 4938 |
EOF |
| 4939 |
if { (eval echo configure:4940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4940 |
rm -rf conftest* |
| 4941 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 4942 |
else |
| 4943 |
echo "configure: failed program was:" >&5 |
| 4944 |
cat conftest.$ac_ext >&5 |
| 4945 |
rm -rf conftest* |
| 4946 |
eval "ac_cv_lib_$ac_lib_var=no" |
| 4947 |
fi |
| 4948 |
rm -f conftest* |
| 4949 |
LIBS="$ac_save_LIBS" |
| 4950 |
|
| 4951 |
fi |
| 4952 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4953 |
echo "$ac_t""yes" 1>&6 |
| 4954 |
|
| 4955 |
socks=5 |
| 4956 |
LIBS="-lsocks5 $LIBS" |
| 4957 |
else |
| 4958 |
echo "$ac_t""no" 1>&6 |
| 4959 |
|
| 4960 |
echo $ac_n "checking for Rconnect in -lsocks""... $ac_c" 1>&6 |
| 4961 |
echo "configure:4962: checking for Rconnect in -lsocks" >&5 |
| 4962 |
ac_lib_var=`echo socks'_'Rconnect | sed 'y%./+-%__p_%'` |
| 4963 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 4964 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 4965 |
else |
| 4966 |
ac_save_LIBS="$LIBS" |
| 4967 |
LIBS="-lsocks $LIBS" |
| 4968 |
cat > conftest.$ac_ext <<EOF |
| 4969 |
#line 4970 "configure" |
| 4970 |
#include "confdefs.h" |
| 4971 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 4972 |
/* We use char because int might match the return type of a gcc2 |
| 4973 |
builtin and then its argument prototype would still apply. */ |
| 4974 |
char Rconnect(); |
| 4975 |
|
| 4976 |
int main() { |
| 4977 |
Rconnect() |
| 4978 |
; return 0; } |
| 4979 |
EOF |
| 4980 |
if { (eval echo configure:4981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4981 |
rm -rf conftest* |
| 4982 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 4983 |
else |
| 4984 |
echo "configure: failed program was:" >&5 |
| 4985 |
cat conftest.$ac_ext >&5 |
| 4986 |
rm -rf conftest* |
| 4987 |
eval "ac_cv_lib_$ac_lib_var=no" |
| 4988 |
fi |
| 4989 |
rm -f conftest* |
| 4990 |
LIBS="$ac_save_LIBS" |
| 4991 |
|
| 4992 |
fi |
| 4993 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4994 |
echo "$ac_t""yes" 1>&6 |
| 4995 |
|
| 4996 |
socks=4 |
| 4997 |
LIBS="-lsocks $LIBS" |
| 4998 |
else |
| 4999 |
echo "$ac_t""no" 1>&6 |
| 5000 |
|
| 5001 |
{ echo "configure: error: Could not find socks library. You must first install socks." 1>&2; exit 1; } |
| 5002 |
fi |
| 5003 |
|
| 5004 |
fi |
| 5005 |
|
| 5006 |
;; |
| 5007 |
esac |
| 5008 |
else |
| 5009 |
echo "$ac_t""no" 1>&6 |
| 5010 |
|
| 5011 |
fi |
| 5012 |
|
| 5013 |
|
| 5014 |
if test "x$socks" = "x"; then |
| 5015 |
echo $ac_n "checking whether to support SOCKS5""... $ac_c" 1>&6 |
| 5016 |
echo "configure:5017: checking whether to support SOCKS5" >&5 |
| 5017 |
# Check whether --with-socks5 or --without-socks5 was given. |
| 5018 |
if test "${with_socks5+set}" = set; then |
| 5019 |
withval="$with_socks5" |
| 5020 |
case "$withval" in |
| 5021 |
no) |
| 5022 |
echo "$ac_t""no" 1>&6 |
| 5023 |
;; |
| 5024 |
*) |
| 5025 |
echo "$ac_t""yes" 1>&6 |
| 5026 |
socks=5 |
| 5027 |
if test "x$withval" = "xyes"; then |
| 5028 |
withval="-lsocks5" |
| 5029 |
else |
| 5030 |
if test -d "$withval"; then |
| 5031 |
if test -d "$withval/include"; then |
| 5032 |
CFLAGS="$CFLAGS -I$withval/include" |
| 5033 |
else |
| 5034 |
CFLAGS="$CFLAGS -I$withval" |
| 5035 |
fi |
| 5036 |
if test -d "$withval/lib"; then |
| 5037 |
withval="-L$withval/lib -lsocks5" |
| 5038 |
else |
| 5039 |
withval="-L$withval -lsocks5" |
| 5040 |
fi |
| 5041 |
fi |
| 5042 |
fi |
| 5043 |
LIBS="$withval $LIBS" |
| 5044 |
# If Socks was compiled with Kerberos support, we will need |
| 5045 |
# to link against kerberos libraries. Temporarily append |
| 5046 |
# to LIBS. This is harmless if there is no kerberos support. |
| 5047 |
TMPLIBS="$LIBS" |
| 5048 |
LIBS="$LIBS $KERBEROS_LIBS" |
| 5049 |
cat > conftest.$ac_ext <<EOF |
| 5050 |
#line 5051 "configure" |
| 5051 |
#include "confdefs.h" |
| 5052 |
|
| 5053 |
int main() { |
| 5054 |
SOCKSconnect(); |
| 5055 |
; return 0; } |
| 5056 |
EOF |
| 5057 |
if { (eval echo configure:5058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 5058 |
: |
| 5059 |
else |
| 5060 |
echo "configure: failed program was:" >&5 |
| 5061 |
cat conftest.$ac_ext >&5 |
| 5062 |
rm -rf conftest* |
| 5063 |
{ echo "configure: error: Could not find the $withval library. You must first install socks5." 1>&2; exit 1; } |
| 5064 |
fi |
| 5065 |
rm -f conftest* |
| 5066 |
LIBS="$TMPLIBS" |
| 5067 |
;; |
| 5068 |
esac |
| 5069 |
else |
| 5070 |
echo "$ac_t""no" 1>&6 |
| 5071 |
|
| 5072 |
fi |
| 5073 |
|
| 5074 |
fi |
| 5075 |
|
| 5076 |
if test "x$socks" = "x"; then |
| 5077 |
echo $ac_n "checking whether to support SOCKS4""... $ac_c" 1>&6 |
| 5078 |
echo "configure:5079: checking whether to support SOCKS4" >&5 |
| 5079 |
# Check whether --with-socks4 or --without-socks4 was given. |
| 5080 |
if test "${with_socks4+set}" = set; then |
| 5081 |
withval="$with_socks4" |
| 5082 |
case "$withval" in |
| 5083 |
no) |
| 5084 |
echo "$ac_t""no" 1>&6 |
| 5085 |
;; |
| 5086 |
*) |
| 5087 |
echo "$ac_t""yes" 1>&6 |
| 5088 |
socks=4 |
| 5089 |
if test "x$withval" = "xyes"; then |
| 5090 |
withval="-lsocks" |
| 5091 |
else |
| 5092 |
if test -d "$withval"; then |
| 5093 |
withval="-L$withval -lsocks" |
| 5094 |
fi |
| 5095 |
fi |
| 5096 |
LIBS="$withval $LIBS" |
| 5097 |
cat > conftest.$ac_ext <<EOF |
| 5098 |
#line 5099 "configure" |
| 5099 |
#include "confdefs.h" |
| 5100 |
|
| 5101 |
int main() { |
| 5102 |
Rconnect(); |
| 5103 |
; return 0; } |
| 5104 |
EOF |
| 5105 |
if { (eval echo configure:5106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 5106 |
: |
| 5107 |
else |
| 5108 |
echo "configure: failed program was:" >&5 |
| 5109 |
cat conftest.$ac_ext >&5 |
| 5110 |
rm -rf conftest* |
| 5111 |
{ echo "configure: error: Could not find the $withval library. You must first install socks." 1>&2; exit 1; } |
| 5112 |
fi |
| 5113 |
rm -f conftest* |
| 5114 |
;; |
| 5115 |
esac |
| 5116 |
else |
| 5117 |
echo "$ac_t""no" 1>&6 |
| 5118 |
|
| 5119 |
fi |
| 5120 |
|
| 5121 |
fi |
| 5122 |
|
| 5123 |
|
| 5124 |
|
| 5125 |
if test "x$socks" = "x4"; then |
| 5126 |
cat >> confdefs.h <<\EOF |
| 5127 |
#define SOCKS 1 |
| 5128 |
EOF |
| 5129 |
|
| 5130 |
cat >> confdefs.h <<\EOF |
| 5131 |
#define SOCKS4 1 |
| 5132 |
EOF |
| 5133 |
|
| 5134 |
cat >> confdefs.h <<\EOF |
| 5135 |
#define connect Rconnect |
| 5136 |
EOF |
| 5137 |
|
| 5138 |
cat >> confdefs.h <<\EOF |
| 5139 |
#define getsockname Rgetsockname |
| 5140 |
EOF |
| 5141 |
|
| 5142 |
cat >> confdefs.h <<\EOF |
| 5143 |
#define bind Rbind |
| 5144 |
EOF |
| 5145 |
|
| 5146 |
cat >> confdefs.h <<\EOF |
| 5147 |
#define accept Raccept |
| 5148 |
EOF |
| 5149 |
|
| 5150 |
cat >> confdefs.h <<\EOF |
| 5151 |
#define listen Rlisten |
| 5152 |
EOF |
| 5153 |
|
| 5154 |
cat >> confdefs.h <<\EOF |
| 5155 |
#define select Rselect |
| 5156 |
EOF |
| 5157 |
|
| 5158 |
fi |
| 5159 |
|
| 5160 |
if test "x$socks" = "x5"; then |
| 5161 |
cat >> confdefs.h <<\EOF |
| 5162 |
#define SOCKS 1 |
| 5163 |
EOF |
| 5164 |
|
| 5165 |
cat >> confdefs.h <<\EOF |
| 5166 |
#define SOCKS5 1 |
| 5167 |
EOF |
| 5168 |
|
| 5169 |
cat >> confdefs.h <<\EOF |
| 5170 |
#define connect SOCKSconnect |
| 5171 |
EOF |
| 5172 |
|
| 5173 |
cat >> confdefs.h <<\EOF |
| 5174 |
#define getsockname SOCKSgetsockname |
| 5175 |
EOF |
| 5176 |
|
| 5177 |
cat >> confdefs.h <<\EOF |
| 5178 |
#define getpeername SOCKSgetpeername |
| 5179 |
EOF |
| 5180 |
|
| 5181 |
cat >> confdefs.h <<\EOF |
| 5182 |
#define bind SOCKSbind |
| 5183 |
EOF |
| 5184 |
|
| 5185 |
cat >> confdefs.h <<\EOF |
| 5186 |
#define accept SOCKSaccept |
| 5187 |
EOF |
| 5188 |
|
| 5189 |
cat >> confdefs.h <<\EOF |
| 5190 |
#define listen SOCKSlisten |
| 5191 |
EOF |
| 5192 |
|
| 5193 |
cat >> confdefs.h <<\EOF |
| 5194 |
#define select SOCKSselect |
| 5195 |
EOF |
| 5196 |
|
| 5197 |
cat >> confdefs.h <<\EOF |
| 5198 |
#define recvfrom SOCKSrecvfrom |
| 5199 |
EOF |
| 5200 |
|
| 5201 |
cat >> confdefs.h <<\EOF |
| 5202 |
#define sendto SOCKSsendto |
| 5203 |
EOF |
| 5204 |
|
| 5205 |
cat >> confdefs.h <<\EOF |
| 5206 |
#define recv SOCKSrecv |
| 5207 |
EOF |
| 5208 |
|
| 5209 |
cat >> confdefs.h <<\EOF |
| 5210 |
#define send SOCKSsend |
| 5211 |
EOF |
| 5212 |
|
| 5213 |
cat >> confdefs.h <<\EOF |
| 5214 |
#define read SOCKSread |
| 5215 |
EOF |
| 5216 |
|
| 5217 |
cat >> confdefs.h <<\EOF |
| 5218 |
#define write SOCKSwrite |
| 5219 |
EOF |
| 5220 |
|
| 5221 |
cat >> confdefs.h <<\EOF |
| 5222 |
#define rresvport SOCKSrresvport |
| 5223 |
EOF |
| 5224 |
|
| 5225 |
cat >> confdefs.h <<\EOF |
| 5226 |
#define shutdown SOCKSshutdown |
| 5227 |
EOF |
| 5228 |
|
| 5229 |
cat >> confdefs.h <<\EOF |
| 5230 |
#define listen SOCKSlisten |
| 5231 |
EOF |
| 5232 |
|
| 5233 |
cat >> confdefs.h <<\EOF |
| 5234 |
#define close SOCKSclose |
| 5235 |
EOF |
| 5236 |
|
| 5237 |
cat >> confdefs.h <<\EOF |
| 5238 |
#define dup SOCKSdup |
| 5239 |
EOF |
| 5240 |
|
| 5241 |
cat >> confdefs.h <<\EOF |
| 5242 |
#define dup2 SOCKSdup2 |
| 5243 |
EOF |
| 5244 |
|
| 5245 |
cat >> confdefs.h <<\EOF |
| 5246 |
#define fclose SOCKSfclose |
| 5247 |
EOF |
| 5248 |
|
| 5249 |
cat >> confdefs.h <<\EOF |
| 5250 |
#define gethostbyname SOCKSgethostbyname |
| 5251 |
EOF |
| 5252 |
|
| 5253 |
fi |
| 5254 |
|
| 5255 |
echo $ac_n "checking whether to enable ipv6""... $ac_c" 1>&6 |
| 5256 |
echo "configure:5257: checking whether to enable ipv6" >&5 |
| 5257 |
if test "x$socks" = "x4" -o "x$socks" = "x5"; then |
| 5258 |
echo "$ac_t""no" 1>&6 |
| 5259 |
else |
| 5260 |
# Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 5261 |
if test "${enable_ipv6+set}" = set; then |
| 5262 |
enableval="$enable_ipv6" |
| 5263 |
case "$enableval" in |
| 5264 |
yes) echo "$ac_t""yes" 1>&6 |
| 5265 |
cat >> confdefs.h <<\EOF |
| 5266 |
#define INET6 1 |
| 5267 |
EOF |
| 5268 |
|
| 5269 |
ipv6=yes |
| 5270 |
;; |
| 5271 |
esac |
| 5272 |
fi |
| 5273 |
|
| 5274 |
if test "x$ipv6" = "xno" -o "x$ipv6" = "x" ; then |
| 5275 |
echo "$ac_t""no" 1>&6 |
| 5276 |
ipv6=no |
| 5277 |
fi |
| 5278 |
|
| 5279 |
ipv6type=unknown |
| 5280 |
ipv6lib=none |
| 5281 |
ipv6trylibc=no |
| 5282 |
|
| 5283 |
if test "x$ipv6" = "xyes"; then |
| 5284 |
echo $ac_n "checking ipv6 stack type""... $ac_c" 1>&6 |
| 5285 |
echo "configure:5286: checking ipv6 stack type" >&5 |
| 5286 |
for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do |
| 5287 |
case $i in |
| 5288 |
inria) |
| 5289 |
cat > conftest.$ac_ext <<EOF |
| 5290 |
#line 5291 "configure" |
| 5291 |
#include "confdefs.h" |
| 5292 |
dnl |
| 5293 |
#include <netinet/in.h> |
| 5294 |
#ifdef IPV6_INRIA_VERSION |
| 5295 |
yes |
| 5296 |
#endif |
| 5297 |
EOF |
| 5298 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5299 |
egrep "yes" >/dev/null 2>&1; then |
| 5300 |
rm -rf conftest* |
| 5301 |
ipv6type=$i; |
| 5302 |
cat >> confdefs.h <<\EOF |
| 5303 |
#define INET6 1 |
| 5304 |
EOF |
| 5305 |
|
| 5306 |
fi |
| 5307 |
rm -f conftest* |
| 5308 |
|
| 5309 |
;; |
| 5310 |
kame) |
| 5311 |
cat > conftest.$ac_ext <<EOF |
| 5312 |
#line 5313 "configure" |
| 5313 |
#include "confdefs.h" |
| 5314 |
dnl |
| 5315 |
#include <netinet/in.h> |
| 5316 |
#ifdef __KAME__ |
| 5317 |
yes |
| 5318 |
#endif |
| 5319 |
EOF |
| 5320 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5321 |
egrep "yes" >/dev/null 2>&1; then |
| 5322 |
rm -rf conftest* |
| 5323 |
ipv6type=$i; |
| 5324 |
ipv6lib=inet6; |
| 5325 |
ipv6libdir=/usr/local/v6/lib; |
| 5326 |
ipv6trylibc=yes; |
| 5327 |
cat >> confdefs.h <<\EOF |
| 5328 |
#define INET6 1 |
| 5329 |
EOF |
| 5330 |
|
| 5331 |
fi |
| 5332 |
rm -f conftest* |
| 5333 |
|
| 5334 |
;; |
| 5335 |
linux-glibc) |
| 5336 |
cat > conftest.$ac_ext <<EOF |
| 5337 |
#line 5338 "configure" |
| 5338 |
#include "confdefs.h" |
| 5339 |
dnl |
| 5340 |
#include <features.h> |
| 5341 |
#if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1 |
| 5342 |
yes |
| 5343 |
#endif |
| 5344 |
EOF |
| 5345 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5346 |
egrep "yes" >/dev/null 2>&1; then |
| 5347 |
rm -rf conftest* |
| 5348 |
ipv6type=$i; |
| 5349 |
cat >> confdefs.h <<\EOF |
| 5350 |
#define INET6 1 |
| 5351 |
EOF |
| 5352 |
|
| 5353 |
fi |
| 5354 |
rm -f conftest* |
| 5355 |
|
| 5356 |
;; |
| 5357 |
linux-libinet6) |
| 5358 |
if test -d /usr/inet6 -a -f /usr/include/netinet/ip6.h; then |
| 5359 |
ipv6type=$i |
| 5360 |
ipv6lib=inet6 |
| 5361 |
ipv6libdir=/usr/inet6/lib |
| 5362 |
ipv6trylibc=yes; |
| 5363 |
CFLAGS="-I/usr/inet6/include $CFLAGS" |
| 5364 |
cat >> confdefs.h <<\EOF |
| 5365 |
#define INET6 1 |
| 5366 |
EOF |
| 5367 |
|
| 5368 |
fi |
| 5369 |
;; |
| 5370 |
toshiba) |
| 5371 |
cat > conftest.$ac_ext <<EOF |
| 5372 |
#line 5373 "configure" |
| 5373 |
#include "confdefs.h" |
| 5374 |
dnl |
| 5375 |
#include <sys/param.h> |
| 5376 |
#ifdef _TOSHIBA_INET6 |
| 5377 |
yes |
| 5378 |
#endif |
| 5379 |
EOF |
| 5380 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5381 |
egrep "yes" >/dev/null 2>&1; then |
| 5382 |
rm -rf conftest* |
| 5383 |
ipv6type=$i; |
| 5384 |
ipv6lib=inet6; |
| 5385 |
ipv6libdir=/usr/local/v6/lib; |
| 5386 |
cat >> confdefs.h <<\EOF |
| 5387 |
#define INET6 1 |
| 5388 |
EOF |
| 5389 |
|
| 5390 |
fi |
| 5391 |
rm -f conftest* |
| 5392 |
|
| 5393 |
;; |
| 5394 |
v6d) |
| 5395 |
cat > conftest.$ac_ext <<EOF |
| 5396 |
#line 5397 "configure" |
| 5397 |
#include "confdefs.h" |
| 5398 |
dnl |
| 5399 |
#include </usr/local/v6/include/sys/v6config.h> |
| 5400 |
#ifdef __V6D__ |
| 5401 |
yes |
| 5402 |
#endif |
| 5403 |
EOF |
| 5404 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5405 |
egrep "yes" >/dev/null 2>&1; then |
| 5406 |
rm -rf conftest* |
| 5407 |
ipv6type=$i; |
| 5408 |
ipv6lib=v6; |
| 5409 |
ipv6libdir=/usr/local/v6/lib; |
| 5410 |
CFLAGS="-I/usr/local/v6/include $CFLAGS" |
| 5411 |
fi |
| 5412 |
rm -f conftest* |
| 5413 |
|
| 5414 |
;; |
| 5415 |
zeta) |
| 5416 |
cat > conftest.$ac_ext <<EOF |
| 5417 |
#line 5418 "configure" |
| 5418 |
#include "confdefs.h" |
| 5419 |
dnl |
| 5420 |
#include <sys/param.h> |
| 5421 |
#ifdef _ZETA_MINAMI_INET6 |
| 5422 |
yes |
| 5423 |
#endif |
| 5424 |
EOF |
| 5425 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5426 |
egrep "yes" >/dev/null 2>&1; then |
| 5427 |
rm -rf conftest* |
| 5428 |
ipv6type=$i; |
| 5429 |
ipv6lib=inet6; |
| 5430 |
ipv6libdir=/usr/local/v6/lib; |
| 5431 |
cat >> confdefs.h <<\EOF |
| 5432 |
#define INET6 1 |
| 5433 |
EOF |
| 5434 |
|
| 5435 |
fi |
| 5436 |
rm -f conftest* |
| 5437 |
|
| 5438 |
;; |
| 5439 |
esac |
| 5440 |
if test "x$ipv6type" != "xunknown"; then |
| 5441 |
break |
| 5442 |
fi |
| 5443 |
done |
| 5444 |
echo "$ac_t""$ipv6type" 1>&6 |
| 5445 |
fi |
| 5446 |
if test "x$ipv6" = "xyes" -a "x$ipv6lib" != "xnone"; then |
| 5447 |
if test -d "$ipv6libdir" -a -f "$ipv6libdir/lib$ipv6lib.a"; then |
| 5448 |
LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 5449 |
echo "$ac_t""You have $ipv6lib library" 1>&6 |
| 5450 |
else |
| 5451 |
if test "x$ipv6trylibc" = "xyes"; then |
| 5452 |
echo "$ac_t""You do not have (need) $ipv6lib library, using libc" 1>&6 |
| 5453 |
else |
| 5454 |
{ echo "configure: error: Fatal: no $ipv6lib library found. cannot continue. |
| 5455 |
You need to fetch lib$ipv6lib.a from appropriate |
| 5456 |
ipv6 kit and compile beforehand." 1>&2; exit 1; } |
| 5457 |
fi |
| 5458 |
fi |
| 5459 |
fi |
| 5460 |
echo $ac_n "checking getaddrinfo bug""... $ac_c" 1>&6 |
| 5461 |
echo "configure:5462: checking getaddrinfo bug" >&5 |
| 5462 |
if test "$cross_compiling" = yes; then |
| 5463 |
echo "$ac_t""buggy" 1>&6 |
| 5464 |
buggygetaddrinfo=yes |
| 5465 |
else |
| 5466 |
cat > conftest.$ac_ext <<EOF |
| 5467 |
#line 5468 "configure" |
| 5468 |
#include "confdefs.h" |
| 5469 |
|
| 5470 |
#include <sys/types.h> |
| 5471 |
#include <netdb.h> |
| 5472 |
#include <string.h> |
| 5473 |
#include <sys/socket.h> |
| 5474 |
#include <netinet/in.h> |
| 5475 |
|
| 5476 |
main() |
| 5477 |
{ |
| 5478 |
int passive, gaierr, inet4 = 0, inet6 = 0; |
| 5479 |
struct addrinfo hints, *ai, *aitop; |
| 5480 |
char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 5481 |
|
| 5482 |
for (passive = 0; passive <= 1; passive++) { |
| 5483 |
memset(&hints, 0, sizeof(hints)); |
| 5484 |
hints.ai_family = AF_UNSPEC; |
| 5485 |
hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 5486 |
hints.ai_socktype = SOCK_STREAM; |
| 5487 |
if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 5488 |
(void)gai_strerror(gaierr); |
| 5489 |
goto bad; |
| 5490 |
} |
| 5491 |
for (ai = aitop; ai; ai = ai->ai_next) { |
| 5492 |
if (ai->ai_addr == NULL || |
| 5493 |
ai->ai_addrlen == 0 || |
| 5494 |
getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 5495 |
straddr, sizeof(straddr), strport, sizeof(strport), |
| 5496 |
NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 5497 |
goto bad; |
| 5498 |
} |
| 5499 |
switch (ai->ai_family) { |
| 5500 |
case AF_INET: |
| 5501 |
if (strcmp(strport, "54321") != 0) { |
| 5502 |
goto bad; |
| 5503 |
} |
| 5504 |
if (passive) { |
| 5505 |
if (strcmp(straddr, "0.0.0.0") != 0) { |
| 5506 |
goto bad; |
| 5507 |
} |
| 5508 |
} else { |
| 5509 |
if (strcmp(straddr, "127.0.0.1") != 0) { |
| 5510 |
goto bad; |
| 5511 |
} |
| 5512 |
} |
| 5513 |
inet4++; |
| 5514 |
break; |
| 5515 |
case AF_INET6: |
| 5516 |
if (strcmp(strport, "54321") != 0) { |
| 5517 |
goto bad; |
| 5518 |
} |
| 5519 |
if (passive) { |
| 5520 |
if (strcmp(straddr, "::") != 0) { |
| 5521 |
goto bad; |
| 5522 |
} |
| 5523 |
} else { |
| 5524 |
if (strcmp(straddr, "::1") != 0) { |
| 5525 |
goto bad; |
| 5526 |
} |
| 5527 |
} |
| 5528 |
inet6++; |
| 5529 |
break; |
| 5530 |
case AF_UNSPEC: |
| 5531 |
goto bad; |
| 5532 |
break; |
| 5533 |
default: |
| 5534 |
/* another family support? */ |
| 5535 |
break; |
| 5536 |
} |
| 5537 |
} |
| 5538 |
} |
| 5539 |
|
| 5540 |
if (inet4 != 0 && inet4 != 2) |
| 5541 |
goto bad; |
| 5542 |
if (inet6 != 0 && inet6 != 2) |
| 5543 |
goto bad; |
| 5544 |
|
| 5545 |
if (aitop) |
| 5546 |
freeaddrinfo(aitop); |
| 5547 |
exit(0); |
| 5548 |
|
| 5549 |
bad: |
| 5550 |
if (aitop) |
| 5551 |
freeaddrinfo(aitop); |
| 5552 |
exit(1); |
| 5553 |
} |
| 5554 |
|
| 5555 |
EOF |
| 5556 |
if { (eval echo configure:5557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 5557 |
then |
| 5558 |
echo "$ac_t""good" 1>&6 |
| 5559 |
buggygetaddrinfo=no |
| 5560 |
else |
| 5561 |
echo "configure: failed program was:" >&5 |
| 5562 |
cat conftest.$ac_ext >&5 |
| 5563 |
rm -fr conftest* |
| 5564 |
echo "$ac_t""buggy" 1>&6 |
| 5565 |
buggygetaddrinfo=yes |
| 5566 |
fi |
| 5567 |
rm -fr conftest* |
| 5568 |
fi |
| 5569 |
|
| 5570 |
fi |
| 5571 |
|
| 5572 |
if test "x$buggygetaddrinfo" = "xyes"; then |
| 5573 |
if test "x$ipv6" = "xyes" -a "x$ipv6type" != "xlinux"; then |
| 5574 |
{ echo "configure: error: Fatal: You must get working getaddrinfo() function." 1>&2; exit 1; } |
| 5575 |
{ echo "configure: error: or you can specify "--disable-ipv6"." 1>&2; exit 1; } |
| 5576 |
exit 1 |
| 5577 |
elif test "x$ipv6type" = "xlinux"; then |
| 5578 |
{ echo "configure: error: Warning: getaddrinfo() implementation on your system seems be buggy." 1>&2; exit 1; } |
| 5579 |
{ echo "configure: error: Better upgreade your system library to newest version" 1>&2; exit 1; } |
| 5580 |
{ echo "configure: error: of GNU C library (aka glibc)." 1>&2; exit 1; } |
| 5581 |
fi |
| 5582 |
fi |
| 5583 |
|
| 5584 |
echo $ac_n "checking for struct sockaddr's sa_len""... $ac_c" 1>&6 |
| 5585 |
echo "configure:5586: checking for struct sockaddr's sa_len" >&5 |
| 5586 |
cat > conftest.$ac_ext <<EOF |
| 5587 |
#line 5588 "configure" |
| 5588 |
#include "confdefs.h" |
| 5589 |
|
| 5590 |
#include <sys/types.h> |
| 5591 |
#include <sys/socket.h> |
| 5592 |
|
| 5593 |
int main() { |
| 5594 |
|
| 5595 |
struct sockaddr sa; |
| 5596 |
int i; |
| 5597 |
|
| 5598 |
i = sa.sa_len; |
| 5599 |
exit(0); |
| 5600 |
|
| 5601 |
; return 0; } |
| 5602 |
EOF |
| 5603 |
if { (eval echo configure:5604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 5604 |
rm -rf conftest* |
| 5605 |
cat >> confdefs.h <<\EOF |
| 5606 |
#define HAVE_SOCKADDR_SA_LEN 1 |
| 5607 |
EOF |
| 5608 |
|
| 5609 |
echo "$ac_t""yes" 1>&6 |
| 5610 |
else |
| 5611 |
echo "configure: failed program was:" >&5 |
| 5612 |
cat conftest.$ac_ext >&5 |
| 5613 |
rm -rf conftest* |
| 5614 |
echo "$ac_t""no" 1>&6 |
| 5615 |
fi |
| 5616 |
rm -f conftest* |
| 5617 |
|
| 5618 |
echo $ac_n "checking whether to enable SSL""... $ac_c" 1>&6 |
| 5619 |
echo "configure:5620: checking whether to enable SSL" >&5 |
| 5620 |
# Check whether --with-ssl or --without-ssl was given. |
| 5621 |
if test "${with_ssl+set}" = set; then |
| 5622 |
withval="$with_ssl" |
| 5623 |
case "$withval" in |
| 5624 |
no) echo "$ac_t""no" 1>&6 |
| 5625 |
;; |
| 5626 |
*) echo "$ac_t""yes" 1>&6 |
| 5627 |
olibs="$LIBS" |
| 5628 |
ocflags="$CFLAGS" |
| 5629 |
if test "x$withval" = "xyes"; |
| 5630 |
then |
| 5631 |
gnutls_prefix="" |
| 5632 |
else |
| 5633 |
gnutls_prefix="$withval" |
| 5634 |
fi |
| 5635 |
echo $ac_n "checking for GNU TLS""... $ac_c" 1>&6 |
| 5636 |
echo "configure:5637: checking for GNU TLS" >&5 |
| 5637 |
pkg-config --exists gnutls >/dev/null 2>&1 |
| 5638 |
if test $? -ne 0; |
| 5639 |
then |
| 5640 |
echo "$ac_t""no" 1>&6 |
| 5641 |
ssl=no |
| 5642 |
else |
| 5643 |
if test -d "$gnutls_prefix/include" -a -n "$gnutls_prefix"; then |
| 5644 |
CFLAGS="-I$gnutls_prefix/include" |
| 5645 |
else |
| 5646 |
CFLAGS="$ocflags `pkg-config --cflags gnutls`" |
| 5647 |
fi |
| 5648 |
if test -d "$gnutls_prefix/lib" -a -n "$gnutls_prefix"; then |
| 5649 |
LIBS="$olibs -L$gnutls_prefix/lib -lgnutls" |
| 5650 |
else |
| 5651 |
LIBS="$olibs `pkg-config --libs gnutls`" |
| 5652 |
fi |
| 5653 |
cat > conftest.$ac_ext <<EOF |
| 5654 |
#line 5655 "configure" |
| 5655 |
#include "confdefs.h" |
| 5656 |
|
| 5657 |
#include <gnutls/gnutls.h> |
| 5658 |
|
| 5659 |
int main() { |
| 5660 |
gnutls_check_version(NULL); |
| 5661 |
; return 0; } |
| 5662 |
EOF |
| 5663 |
if { (eval echo configure:5664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 5664 |
rm -rf conftest* |
| 5665 |
echo "$ac_t""yes" 1>&6 |
| 5666 |
cat >> confdefs.h <<\EOF |
| 5667 |
#define HAVE_SSL 1 |
| 5668 |
EOF |
| 5669 |
|
| 5670 |
ssl=yes |
| 5671 |
else |
| 5672 |
echo "configure: failed program was:" >&5 |
| 5673 |
cat conftest.$ac_ext >&5 |
| 5674 |
rm -rf conftest* |
| 5675 |
echo "$ac_t""no" 1>&6 |
| 5676 |
LIBS="$olibs" |
| 5677 |
CFLAGS="$ocflags" |
| 5678 |
ssl=no |
| 5679 |
fi |
| 5680 |
rm -f conftest* |
| 5681 |
fi |
| 5682 |
esac |
| 5683 |
else |
| 5684 |
echo "$ac_t""no" 1>&6 |
| 5685 |
|
| 5686 |
fi |
| 5687 |
|
| 5688 |
|
| 5689 |
echo $ac_n "checking whether to enable OpenSSL""... $ac_c" 1>&6 |
| 5690 |
echo "configure:5691: checking whether to enable OpenSSL" >&5 |
| 5691 |
if test "x$ssl" = "xyes"; then |
| 5692 |
echo "$ac_t""no (you enabled GNU TLS support)" 1>&6 |
| 5693 |
else |
| 5694 |
# Check whether --with-openssl or --without-openssl was given. |
| 5695 |
if test "${with_openssl+set}" = set; then |
| 5696 |
withval="$with_openssl" |
| 5697 |
case "$withval" in |
| 5698 |
no) echo "$ac_t""no" 1>&6 |
| 5699 |
;; |
| 5700 |
*) echo "$ac_t""yes" 1>&6 |
| 5701 |
olibs="$LIBS" |
| 5702 |
ocflags="$CFLAGS" |
| 5703 |
if test "x$withval" = "xyes"; |
| 5704 |
then |
| 5705 |
openssl_prefix="" |
| 5706 |
else |
| 5707 |
openssl_prefix="$withval" |
| 5708 |
fi |
| 5709 |
echo $ac_n "checking for OpenSSL""... $ac_c" 1>&6 |
| 5710 |
echo "configure:5711: checking for OpenSSL" >&5 |
| 5711 |
if test -d "$openssl_prefix/include" -a -n "$openssl_prefix"; then |
| 5712 |
CFLAGS="-I$openssl_prefix/include $CFLAGS" |
| 5713 |
fi |
| 5714 |
if test -d "$openssl_prefix/lib" -a -n "$openssl_prefix"; then |
| 5715 |
LIBS="-L$openssl_prefix/lib $LIBS -lssl -lcrypto" |
| 5716 |
else |
| 5717 |
LIBS="$LIBS -lssl -lcrypto" |
| 5718 |
fi |
| 5719 |
cat > conftest.$ac_ext <<EOF |
| 5720 |
#line 5721 "configure" |
| 5721 |
#include "confdefs.h" |
| 5722 |
|
| 5723 |
#include <openssl/opensslv.h> |
| 5724 |
|
| 5725 |
int main() { |
| 5726 |
return OPENSSL_VERSION_NUMBER; |
| 5727 |
; return 0; } |
| 5728 |
EOF |
| 5729 |
if { (eval echo configure:5730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 5730 |
rm -rf conftest* |
| 5731 |
echo "$ac_t""yes" 1>&6 |
| 5732 |
cat >> confdefs.h <<\EOF |
| 5733 |
#define HAVE_OPENSSL 1 |
| 5734 |
EOF |
| 5735 |
|
| 5736 |
openssl=yes |
| 5737 |
else |
| 5738 |
echo "configure: failed program was:" >&5 |
| 5739 |
cat conftest.$ac_ext >&5 |
| 5740 |
rm -rf conftest* |
| 5741 |
echo "$ac_t""no" 1>&6 |
| 5742 |
LIBS="$olibs" |
| 5743 |
CFLAGS="$ocflags" |
| 5744 |
openssl=no |
| 5745 |
fi |
| 5746 |
rm -f conftest* |
| 5747 |
;; |
| 5748 |
esac |
| 5749 |
else |
| 5750 |
echo "$ac_t""no" 1>&6 |
| 5751 |
|
| 5752 |
fi |
| 5753 |
|
| 5754 |
fi |
| 5755 |
|
| 5756 |
echo $ac_n "checking whether to enable regexp support""... $ac_c" 1>&6 |
| 5757 |
echo "configure:5758: checking whether to enable regexp support" >&5 |
| 5758 |
# Check whether --enable-regexp or --disable-regexp was given. |
| 5759 |
if test "${enable_regexp+set}" = set; then |
| 5760 |
enableval="$enable_regexp" |
| 5761 |
case "$enableval" in |
| 5762 |
yes) cat > conftest.$ac_ext <<EOF |
| 5763 |
#line 5764 "configure" |
| 5764 |
#include "confdefs.h" |
| 5765 |
|
| 5766 |
#include <sys/types.h> |
| 5767 |
#include <regex.h> |
| 5768 |
|
| 5769 |
int main() { |
| 5770 |
int rc; |
| 5771 |
regex_t preg; |
| 5772 |
rc = regcomp(&preg, "blah", REG_EXTENDED); |
| 5773 |
if (rc != 0) return 1; |
| 5774 |
else return 0; |
| 5775 |
; return 0; } |
| 5776 |
EOF |
| 5777 |
if { (eval echo configure:5778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 5778 |
rm -rf conftest* |
| 5779 |
echo "$ac_t""yes" 1>&6 |
| 5780 |
cat >> confdefs.h <<\EOF |
| 5781 |
#define HAVE_REGCOMP 1 |
| 5782 |
EOF |
| 5783 |
|
| 5784 |
regexp=yes |
| 5785 |
else |
| 5786 |
echo "configure: failed program was:" >&5 |
| 5787 |
cat conftest.$ac_ext >&5 |
| 5788 |
rm -rf conftest* |
| 5789 |
echo "$ac_t""no" 1>&6 |
| 5790 |
LIBS="$ac_save_LIBS" |
| 5791 |
regexp=no |
| 5792 |
fi |
| 5793 |
rm -f conftest* |
| 5794 |
;; |
| 5795 |
esac |
| 5796 |
fi |
| 5797 |
|
| 5798 |
if test "x$regexp" = "xno" -o "x$regexp" = "x" ; then |
| 5799 |
echo "$ac_t""no" 1>&6 |
| 5800 |
regexp=no |
| 5801 |
fi |
| 5802 |
|
| 5803 |
echo $ac_n "checking whether to enable FiSH support""... $ac_c" 1>&6 |
| 5804 |
echo "configure:5805: checking whether to enable FiSH support" >&5 |
| 5805 |
# Check whether --enable-fish or --disable-fish was given. |
| 5806 |
if test "${enable_fish+set}" = set; then |
| 5807 |
enableval="$enable_fish" |
| 5808 |
case "$enableval" in |
| 5809 |
yes) olibs="$LIBS" |
| 5810 |
LIBS="$LIBS -lgmp" |
| 5811 |
cat > conftest.$ac_ext <<EOF |
| 5812 |
#line 5813 "configure" |
| 5813 |
#include "confdefs.h" |
| 5814 |
|
| 5815 |
#include <sys/types.h> |
| 5816 |
#include <gmp.h> |
| 5817 |
|
| 5818 |
int main() { |
| 5819 |
int rc; |
| 5820 |
mpz_t val; |
| 5821 |
mpz_init(val); |
| 5822 |
return 0; |
| 5823 |
; return 0; } |
| 5824 |
EOF |
| 5825 |
if { (eval echo configure:5826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 5826 |
rm -rf conftest* |
| 5827 |
echo "$ac_t""yes" 1>&6 |
| 5828 |
cat >> confdefs.h <<\EOF |
| 5829 |
#define HAVE_GMP 1 |
| 5830 |
EOF |
| 5831 |
|
| 5832 |
fish=yes |
| 5833 |
else |
| 5834 |
echo "configure: failed program was:" >&5 |
| 5835 |
cat conftest.$ac_ext >&5 |
| 5836 |
rm -rf conftest* |
| 5837 |
LIBS="$olibs" |
| 5838 |
fish=no |
| 5839 |
fi |
| 5840 |
rm -f conftest* |
| 5841 |
;; |
| 5842 |
esac |
| 5843 |
fi |
| 5844 |
|
| 5845 |
if test "x$fish" = "xno" -o "x$fish" = "x" ; then |
| 5846 |
echo "$ac_t""no" 1>&6 |
| 5847 |
fish=no |
| 5848 |
fi |
| 5849 |
|
| 5850 |
if test -n "$hpux" |
| 5851 |
then |
| 5852 |
# HP-UX's pax is broken |
| 5853 |
for ac_prog in tar cpio |
| 5854 |
do |
| 5855 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5856 |
set dummy $ac_prog; ac_word=$2 |
| 5857 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 5858 |
echo "configure:5859: checking for $ac_word" >&5 |
| 5859 |
if eval "test \"`echo '$''{'ac_cv_prog_COPY_DIRECTORY'+set}'`\" = set"; then |
| 5860 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 5861 |
else |
| 5862 |
if test -n "$COPY_DIRECTORY"; then |
| 5863 |
ac_cv_prog_COPY_DIRECTORY="$COPY_DIRECTORY" # Let the user override the test. |
| 5864 |
else |
| 5865 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5866 |
ac_dummy="$PATH" |
| 5867 |
for ac_dir in $ac_dummy; do |
| 5868 |
test -z "$ac_dir" && ac_dir=. |
| 5869 |
if test -f $ac_dir/$ac_word; then |
| 5870 |
ac_cv_prog_COPY_DIRECTORY="$ac_prog" |
| 5871 |
break |
| 5872 |
fi |
| 5873 |
done |
| 5874 |
IFS="$ac_save_ifs" |
| 5875 |
fi |
| 5876 |
fi |
| 5877 |
COPY_DIRECTORY="$ac_cv_prog_COPY_DIRECTORY" |
| 5878 |
if test -n "$COPY_DIRECTORY"; then |
| 5879 |
echo "$ac_t""$COPY_DIRECTORY" 1>&6 |
| 5880 |
else |
| 5881 |
echo "$ac_t""no" 1>&6 |
| 5882 |
fi |
| 5883 |
|
| 5884 |
test -n "$COPY_DIRECTORY" && break |
| 5885 |
done |
| 5886 |
|
| 5887 |
else |
| 5888 |
for ac_prog in pax tar cpio |
| 5889 |
do |
| 5890 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5891 |
set dummy $ac_prog; ac_word=$2 |
| 5892 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 5893 |
echo "configure:5894: checking for $ac_word" >&5 |
| 5894 |
if eval "test \"`echo '$''{'ac_cv_prog_COPY_DIRECTORY'+set}'`\" = set"; then |
| 5895 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 5896 |
else |
| 5897 |
if test -n "$COPY_DIRECTORY"; then |
| 5898 |
ac_cv_prog_COPY_DIRECTORY="$COPY_DIRECTORY" # Let the user override the test. |
| 5899 |
else |
| 5900 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5901 |
ac_dummy="$PATH" |
| 5902 |
for ac_dir in $ac_dummy; do |
| 5903 |
test -z "$ac_dir" && ac_dir=. |
| 5904 |
if test -f $ac_dir/$ac_word; then |
| 5905 |
ac_cv_prog_COPY_DIRECTORY="$ac_prog" |
| 5906 |
break |
| 5907 |
fi |
| 5908 |
done |
| 5909 |
IFS="$ac_save_ifs" |
| 5910 |
fi |
| 5911 |
fi |
| 5912 |
COPY_DIRECTORY="$ac_cv_prog_COPY_DIRECTORY" |
| 5913 |
if test -n "$COPY_DIRECTORY"; then |
| 5914 |
echo "$ac_t""$COPY_DIRECTORY" 1>&6 |
| 5915 |
else |
| 5916 |
echo "$ac_t""no" 1>&6 |
| 5917 |
fi |
| 5918 |
|
| 5919 |
test -n "$COPY_DIRECTORY" && break |
| 5920 |
done |
| 5921 |
|
| 5922 |
fi |
| 5923 |
if test "x$COPY_DIRECTORY" = "xpax"; |
| 5924 |
then |
| 5925 |
INSTALL_HELP_CMD='cd help; pax -r -w -s ";.*/\.?CVS$$;;" -s ";.*/\.?CVS/.*;;" . $(DESTDIR)/$(HELP_DIR)' |
| 5926 |
else |
| 5927 |
if test "x$COPY_DIRECTORY" = "xtar"; |
| 5928 |
then |
| 5929 |
INSTALL_HELP_CMD='cd help; tar -cf - . | ( cd $(DESTDIR)/$(HELP_DIR); tar -xf - )' |
| 5930 |
else |
| 5931 |
if test "x$COPY_DIRECTORY" = "xcpio"; |
| 5932 |
then |
| 5933 |
INSTALL_HELP_CMD='cd help; find . -print | cpio -pdu $(DESTDIR)/$(HELP_DIR)' |
| 5934 |
else |
| 5935 |
INSTALL_HELP_CMD="@echo \"I couldn't figure out a way to install the help files.\"" |
| 5936 |
fi |
| 5937 |
fi |
| 5938 |
fi |
| 5939 |
|
| 5940 |
if test "x$COPY_DIRECTORY" = "xpax"; |
| 5941 |
then |
| 5942 |
INSTALL_TRANSLATION_CMD='cd translation; pax -r -w -s ";.*/\.?CVS$$;;" -s ";.*/\.?CVS/.*;;" . $(DESTDIR)/$(TRANS_PATH)' |
| 5943 |
else |
| 5944 |
if test "x$COPY_DIRECTORY" = "xtar"; |
| 5945 |
then |
| 5946 |
INSTALL_TRANSLATION_CMD='cd translation; tar -cf - . | ( cd $(DESTDIR)/$(TRANS_PATH); tar -xf - )' |
| 5947 |
else |
| 5948 |
if test "x$COPY_DIRECTORY" = "xcpio"; |
| 5949 |
then |
| 5950 |
INSTALL_TRANSLATION_CMD='cd translation; find . -print | cpio -pdu $(DESTDIR)/$(TRANS_PATH)' |
| 5951 |
else |
| 5952 |
INSTALL_TRANSLATION_CMD="@echo \"I couldn't figure out a way to install the translation files.\"" |
| 5953 |
fi |
| 5954 |
fi |
| 5955 |
fi |
| 5956 |
|
| 5957 |
|
| 5958 |
for ac_prog in gzcat zcat gunzip gzip uncompress uncompress |
| 5959 |
do |
| 5960 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5961 |
set dummy $ac_prog; ac_word=$2 |
| 5962 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 5963 |
echo "configure:5964: checking for $ac_word" >&5 |
| 5964 |
if eval "test \"`echo '$''{'ac_cv_prog_ZCAT'+set}'`\" = set"; then |
| 5965 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 5966 |
else |
| 5967 |
if test -n "$ZCAT"; then |
| 5968 |
ac_cv_prog_ZCAT="$ZCAT" # Let the user override the test. |
| 5969 |
else |
| 5970 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5971 |
ac_dummy="$PATH" |
| 5972 |
for ac_dir in $ac_dummy; do |
| 5973 |
test -z "$ac_dir" && ac_dir=. |
| 5974 |
if test -f $ac_dir/$ac_word; then |
| 5975 |
ac_cv_prog_ZCAT="$ac_prog" |
| 5976 |
break |
| 5977 |
fi |
| 5978 |
done |
| 5979 |
IFS="$ac_save_ifs" |
| 5980 |
fi |
| 5981 |
fi |
| 5982 |
ZCAT="$ac_cv_prog_ZCAT" |
| 5983 |
if test -n "$ZCAT"; then |
| 5984 |
echo "$ac_t""$ZCAT" 1>&6 |
| 5985 |
else |
| 5986 |
echo "$ac_t""no" 1>&6 |
| 5987 |
fi |
| 5988 |
|
| 5989 |
test -n "$ZCAT" && break |
| 5990 |
done |
| 5991 |
|
| 5992 |
case "x$ZCAT" in |
| 5993 |
xgzcat) |
| 5994 |
ZSUFFIX=".gz" |
| 5995 |
ZARGS= |
| 5996 |
;; |
| 5997 |
xzcat) |
| 5998 |
ZSUFFIX=".Z" |
| 5999 |
ZARGS= |
| 6000 |
;; |
| 6001 |
xgunzip) |
| 6002 |
ZSUFFIX=".gz" |
| 6003 |
ZARGS="-c" |
| 6004 |
;; |
| 6005 |
xgzip) |
| 6006 |
ZSUFFIX=".gz" |
| 6007 |
ZARGS="-dc" |
| 6008 |
;; |
| 6009 |
xuncompress) |
| 6010 |
ZSUFFIX=".Z" |
| 6011 |
ZARGS="-c" |
| 6012 |
;; |
| 6013 |
xcompress) |
| 6014 |
ZSUFFIX=".Z" |
| 6015 |
ZARGS="-dc" |
| 6016 |
;; |
| 6017 |
esac |
| 6018 |
cat >> confdefs.h <<EOF |
| 6019 |
#define ZCAT "$ZCAT" |
| 6020 |
EOF |
| 6021 |
|
| 6022 |
cat >> confdefs.h <<EOF |
| 6023 |
#define ZSUFFIX "$ZSUFFIX" |
| 6024 |
EOF |
| 6025 |
|
| 6026 |
if test x"$ZARGS" != x; then |
| 6027 |
cat >> confdefs.h <<EOF |
| 6028 |
#define ZARGS "$ZARGS" |
| 6029 |
EOF |
| 6030 |
|
| 6031 |
fi |
| 6032 |
|
| 6033 |
if test x/usr/sbin:/usr/lib:/usr/ucblib = x; then _PATH=$PATH; else _PATH=/usr/sbin:/usr/lib:/usr/ucblib; fi |
| 6034 |
if test -z "$SENDMAIL"; then |
| 6035 |
# Extract the first word of `sendmail', so it can be a program name with args. |
| 6036 |
set dummy sendmail; word=$2 |
| 6037 |
echo $ac_n "checking for $word""... $ac_c" 1>&6 |
| 6038 |
echo "configure:6039: checking for $word" >&5 |
| 6039 |
IFS="${IFS= }"; saveifs="$IFS"; IFS="${IFS}:" |
| 6040 |
for dir in $_PATH; do |
| 6041 |
test -z "$dir" && dir=. |
| 6042 |
if test -f $dir/$word; then |
| 6043 |
SENDMAIL=$dir/$word |
| 6044 |
break |
| 6045 |
fi |
| 6046 |
done |
| 6047 |
IFS="$saveifs" |
| 6048 |
fi |
| 6049 |
echo "$ac_t""$SENDMAIL" 1>&6 |
| 6050 |
|
| 6051 |
|
| 6052 |
|
| 6053 |
|
| 6054 |
trap '' 1 2 15 |
| 6055 |
cat > confcache <<\EOF |
| 6056 |
# This file is a shell script that caches the results of configure |
| 6057 |
# tests run on this system so they can be shared between configure |
| 6058 |
# scripts and configure runs. It is not useful on other systems. |
| 6059 |
# If it contains results you don't want to keep, you may remove or edit it. |
| 6060 |
# |
| 6061 |
# By default, configure uses ./config.cache as the cache file, |
| 6062 |
# creating it if it does not exist already. You can give configure |
| 6063 |
# the --cache-file=FILE option to use a different cache file; that is |
| 6064 |
# what configure does when it calls configure scripts in |
| 6065 |
# subdirectories, so they share the cache. |
| 6066 |
# Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 6067 |
# config.status only pays attention to the cache file if you give it the |
| 6068 |
# --recheck option to rerun configure. |
| 6069 |
# |
| 6070 |
EOF |
| 6071 |
# The following way of writing the cache mishandles newlines in values, |
| 6072 |
# but we know of no workaround that is simple, portable, and efficient. |
| 6073 |
# So, don't put newlines in cache variables' values. |
| 6074 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
| 6075 |
# and sets the high bit in the cache file unless we assign to the vars. |
| 6076 |
(set) 2>&1 | |
| 6077 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 6078 |
*ac_space=\ *) |
| 6079 |
# `set' does not quote correctly, so add quotes (double-quote substitution |
| 6080 |
# turns \\\\ into \\, and sed turns \\ into \). |
| 6081 |
sed -n \ |
| 6082 |
-e "s/'/'\\\\''/g" \ |
| 6083 |
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 6084 |
;; |
| 6085 |
*) |
| 6086 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
| 6087 |
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 6088 |
;; |
| 6089 |
esac >> confcache |
| 6090 |
if cmp -s $cache_file confcache; then |
| 6091 |
: |
| 6092 |
else |
| 6093 |
if test -w $cache_file; then |
| 6094 |
echo "updating cache $cache_file" |
| 6095 |
cat confcache > $cache_file |
| 6096 |
else |
| 6097 |
echo "not updating unwritable cache $cache_file" |
| 6098 |
fi |
| 6099 |
fi |
| 6100 |
rm -f confcache |
| 6101 |
|
| 6102 |
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 6103 |
|
| 6104 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 6105 |
# Let make expand exec_prefix. |
| 6106 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 6107 |
|
| 6108 |
# Any assignment to VPATH causes Sun make to only execute |
| 6109 |
# the first set of double-colon rules, so remove it if not needed. |
| 6110 |
# If there is a colon in the path, we need to keep it. |
| •6111 |
if test "x$srcdir" = x.; then |
| 6112 |
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 6113 |
fi |
| 6114 |
|
| 6115 |
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
| 6116 |
|
| 6117 |
DEFS="-DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2" |
| 6118 |
|
| 6119 |
# Without the "./", some shells look in PATH for config.status. |
| 6120 |
: ${CONFIG_STATUS=./config.status} |
| 6121 |
|
| 6122 |
echo creating $CONFIG_STATUS |
| 6123 |
rm -f $CONFIG_STATUS |
| 6124 |
cat > $CONFIG_STATUS <<EOF |
| 6125 |
#! /bin/sh |
| 6126 |
# Generated automatically by configure. |
| 6127 |
# Run this file to recreate the current configuration. |
| 6128 |
# This directory was configured as follows, |
| 6129 |
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 6130 |
# |
| 6131 |
# $0 $ac_configure_args |
| 6132 |
# |
| 6133 |
# Compiler output produced by configure, useful for debugging |
| 6134 |
# configure, is in ./config.log if it exists. |
| 6135 |
|
| 6136 |
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
| 6137 |
for ac_option |
| 6138 |
do |
| 6139 |
case "\$ac_option" in |
| 6140 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 6141 |
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 6142 |
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
| 6143 |
-version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
| 6144 |
echo "$CONFIG_STATUS generated by autoconf version 2.13" |
| 6145 |
exit 0 ;; |
| 6146 |
-help | --help | --hel | --he | --h) |
| 6147 |
echo "\$ac_cs_usage"; exit 0 ;; |
| 6148 |
*) echo "\$ac_cs_usage"; exit 1 ;; |
| 6149 |
esac |
| 6150 |
done |
| 6151 |
|
| 6152 |
ac_given_srcdir=$srcdir |
| 6153 |
|
| 6154 |
trap 'rm -fr `echo "Makefile source/Makefile ircbug include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
| 6155 |
EOF |
| 6156 |
cat >> $CONFIG_STATUS <<EOF |
| 6157 |
|
| 6158 |
# Protect against being on the right side of a sed subst in config.status. |
| 6159 |
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 6160 |
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
| 6161 |
$ac_vpsub |
| 6162 |
$extrasub |
| 6163 |
s%@SHELL@%$SHELL%g |
| 6164 |
s%@CFLAGS@%$CFLAGS%g |
| 6165 |
s%@CPPFLAGS@%$CPPFLAGS%g |
| 6166 |
s%@CXXFLAGS@%$CXXFLAGS%g |
| 6167 |
s%@FFLAGS@%$FFLAGS%g |
| 6168 |
s%@DEFS@%$DEFS%g |
| 6169 |
s%@LDFLAGS@%$LDFLAGS%g |
| 6170 |
s%@LIBS@%$LIBS%g |
| 6171 |
s%@exec_prefix@%$exec_prefix%g |
| 6172 |
s%@prefix@%$prefix%g |
| 6173 |
s%@program_transform_name@%$program_transform_name%g |
| 6174 |
s%@bindir@%$bindir%g |
| 6175 |
s%@sbindir@%$sbindir%g |
| 6176 |
s%@libexecdir@%$libexecdir%g |
| 6177 |
s%@datadir@%$datadir%g |
| 6178 |
s%@sysconfdir@%$sysconfdir%g |
| 6179 |
s%@sharedstatedir@%$sharedstatedir%g |
| 6180 |
s%@localstatedir@%$localstatedir%g |
| 6181 |
s%@libdir@%$libdir%g |
| 6182 |
s%@includedir@%$includedir%g |
| 6183 |
s%@oldincludedir@%$oldincludedir%g |
| 6184 |
s%@infodir@%$infodir%g |
| 6185 |
s%@mandir@%$mandir%g |
| 6186 |
s%@VERSION@%$VERSION%g |
| 6187 |
s%@CATEGORIES@%$CATEGORIES%g |
| 6188 |
s%@CC@%$CC%g |
| 6189 |
s%@CPP@%$CPP%g |
| 6190 |
s%@srcdir@%$srcdir%g |
| 6191 |
s%@objdir@%$objdir%g |
| 6192 |
s%@EXTRA_OBJECTS@%$EXTRA_OBJECTS%g |
| 6193 |
s%@EXTRA_SOURCES@%$EXTRA_SOURCES%g |
| 6194 |
s%@IRCLIB@%$IRCLIB%g |
| 6195 |
s%@COPY_DIRECTORY@%$COPY_DIRECTORY%g |
| 6196 |
s%@INSTALL_HELP_CMD@%$INSTALL_HELP_CMD%g |
| 6197 |
s%@INSTALL_TRANSLATION_CMD@%$INSTALL_TRANSLATION_CMD%g |
| 6198 |
s%@ZCAT@%$ZCAT%g |
| 6199 |
s%@SENDMAIL@%$SENDMAIL%g |
| 6200 |
s%@RM@%$RM%g |
| 6201 |
s%@LN@%$LN%g |
| 6202 |
|
| 6203 |
CEOF |
| 6204 |
EOF |
| 6205 |
|
| 6206 |
cat >> $CONFIG_STATUS <<\EOF |
| 6207 |
|
| 6208 |
# Split the substitutions into bite-sized pieces for seds with |
| 6209 |
# small command number limits, like on Digital OSF/1 and HP-UX. |
| 6210 |
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 6211 |
ac_file=1 # Number of current file. |
| 6212 |
ac_beg=1 # First line for current file. |
| 6213 |
ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 6214 |
ac_more_lines=: |
| 6215 |
ac_sed_cmds="" |
| 6216 |
while $ac_more_lines; do |
| 6217 |
if test $ac_beg -gt 1; then |
| 6218 |
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 6219 |
else |
| 6220 |
sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 6221 |
fi |
| 6222 |
if test ! -s conftest.s$ac_file; then |
| 6223 |
ac_more_lines=false |
| 6224 |
rm -f conftest.s$ac_file |
| 6225 |
else |
| 6226 |
if test -z "$ac_sed_cmds"; then |
| 6227 |
ac_sed_cmds="sed -f conftest.s$ac_file" |
| 6228 |
else |
| 6229 |
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 6230 |
fi |
| 6231 |
ac_file=`expr $ac_file + 1` |
| 6232 |
ac_beg=$ac_end |
| 6233 |
ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 6234 |
fi |
| 6235 |
done |
| 6236 |
if test -z "$ac_sed_cmds"; then |
| 6237 |
ac_sed_cmds=cat |
| 6238 |
fi |
| 6239 |
EOF |
| 6240 |
|
| 6241 |
cat >> $CONFIG_STATUS <<EOF |
| 6242 |
|
| 6243 |
CONFIG_FILES=\${CONFIG_FILES-"Makefile source/Makefile ircbug"} |
| 6244 |
EOF |
| 6245 |
cat >> $CONFIG_STATUS <<\EOF |
| 6246 |
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
| 6247 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 6248 |
case "$ac_file" in |
| 6249 |
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
| 6250 |
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 6251 |
*) ac_file_in="${ac_file}.in" ;; |
| 6252 |
esac |
| 6253 |
|
| 6254 |
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
| 6255 |
|
| 6256 |
# Remove last slash and all that follows it. Not all systems have dirname. |
| 6257 |
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 6258 |
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 6259 |
# The file is in a subdirectory. |
| 6260 |
test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 6261 |
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
| 6262 |
# A "../" for each directory in $ac_dir_suffix. |
| 6263 |
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 6264 |
else |
| 6265 |
ac_dir_suffix= ac_dots= |
| 6266 |
fi |
| 6267 |
|
| 6268 |
case "$ac_given_srcdir" in |
| 6269 |
.) srcdir=. |
| 6270 |
if test -z "$ac_dots"; then top_srcdir=. |
| 6271 |
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 6272 |
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 6273 |
*) # Relative path. |
| 6274 |
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 6275 |
top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 6276 |
esac |
| 6277 |
|
| 6278 |
|
| 6279 |
echo creating "$ac_file" |
| 6280 |
rm -f "$ac_file" |
| 6281 |
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 6282 |
case "$ac_file" in |
| 6283 |
*Makefile*) ac_comsub="1i\\ |
| 6284 |
# $configure_input" ;; |
| 6285 |
*) ac_comsub= ;; |
| 6286 |
esac |
| 6287 |
|
| 6288 |
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 6289 |
sed -e "$ac_comsub |
| 6290 |
s%@configure_input@%$configure_input%g |
| 6291 |
s%@srcdir@%$srcdir%g |
| 6292 |
s%@top_srcdir@%$top_srcdir%g |
| 6293 |
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
| 6294 |
fi; done |
| 6295 |
rm -f conftest.s* |
| 6296 |
|
| 6297 |
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 6298 |
# NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 6299 |
# |
| 6300 |
# ac_d sets the value in "#define NAME VALUE" lines. |
| 6301 |
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 6302 |
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
| 6303 |
ac_dC='\3' |
| 6304 |
ac_dD='%g' |
| 6305 |
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
| 6306 |
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 6307 |
ac_uB='\([ ]\)%\1#\2define\3' |
| 6308 |
ac_uC=' ' |
| 6309 |
ac_uD='\4%g' |
| 6310 |
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 6311 |
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 6312 |
ac_eB='$%\1#\2define\3' |
| 6313 |
ac_eC=' ' |
| 6314 |
ac_eD='%g' |
| 6315 |
|
| 6316 |
if test "${CONFIG_HEADERS+set}" != set; then |
| 6317 |
EOF |
| 6318 |
cat >> $CONFIG_STATUS <<EOF |
| 6319 |
CONFIG_HEADERS="include/defs.h" |
| 6320 |
EOF |
| 6321 |
cat >> $CONFIG_STATUS <<\EOF |
| 6322 |
fi |
| 6323 |
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
| 6324 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 6325 |
case "$ac_file" in |
| 6326 |
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
| 6327 |
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 6328 |
*) ac_file_in="${ac_file}.in" ;; |
| 6329 |
esac |
| 6330 |
|
| 6331 |
echo creating $ac_file |
| 6332 |
|
| 6333 |
rm -f conftest.frag conftest.in conftest.out |
| 6334 |
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 6335 |
cat $ac_file_inputs > conftest.in |
| 6336 |
|
| 6337 |
EOF |
| 6338 |
|
| 6339 |
# Transform confdefs.h into a sed script conftest.vals that substitutes |
| 6340 |
# the proper values into config.h.in to produce config.h. And first: |
| 6341 |
# Protect against being on the right side of a sed subst in config.status. |
| 6342 |
# Protect against being in an unquoted here document in config.status. |
| 6343 |
rm -f conftest.vals |
| 6344 |
cat > conftest.hdr <<\EOF |
| 6345 |
s/[\\&%]/\\&/g |
| 6346 |
s%[\\$`]%\\&%g |
| 6347 |
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
| 6348 |
s%ac_d%ac_u%gp |
| 6349 |
s%ac_u%ac_e%gp |
| 6350 |
EOF |
| 6351 |
sed -n -f conftest.hdr confdefs.h > conftest.vals |
| 6352 |
rm -f conftest.hdr |
| 6353 |
|
| 6354 |
# This sed command replaces #undef with comments. This is necessary, for |
| 6355 |
# example, in the case of _POSIX_SOURCE, which is predefined and required |
| 6356 |
# on some systems where configure will not decide to define it. |
| 6357 |
cat >> conftest.vals <<\EOF |
| 6358 |
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| 6359 |
EOF |
| 6360 |
|
| 6361 |
# Break up conftest.vals because some shells have a limit on |
| 6362 |
# the size of here documents, and old seds have small limits too. |
| 6363 |
|
| 6364 |
rm -f conftest.tail |
| 6365 |
while : |
| 6366 |
do |
| 6367 |
ac_lines=`grep -c . conftest.vals` |
| 6368 |
# grep -c gives empty output for an empty file on some AIX systems. |
| 6369 |
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 6370 |
# Write a limited-size here document to conftest.frag. |
| 6371 |
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 6372 |
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| 6373 |
echo 'CEOF |
| 6374 |
sed -f conftest.frag conftest.in > conftest.out |
| 6375 |
rm -f conftest.in |
| 6376 |
mv conftest.out conftest.in |
| 6377 |
' >> $CONFIG_STATUS |
| 6378 |
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 6379 |
rm -f conftest.vals |
| 6380 |
mv conftest.tail conftest.vals |
| 6381 |
done |
| 6382 |
rm -f conftest.vals |
| 6383 |
|
| 6384 |
cat >> $CONFIG_STATUS <<\EOF |
| 6385 |
rm -f conftest.frag conftest.h |
| 6386 |
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
| 6387 |
cat conftest.in >> conftest.h |
| 6388 |
rm -f conftest.in |
| 6389 |
if cmp -s $ac_file conftest.h 2>/dev/null; then |
| 6390 |
echo "$ac_file is unchanged" |
| 6391 |
rm -f conftest.h |
| 6392 |
else |
| 6393 |
# Remove last slash and all that follows it. Not all systems have dirname. |
| 6394 |
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 6395 |
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 6396 |
# The file is in a subdirectory. |
| 6397 |
test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 6398 |
fi |
| 6399 |
rm -f $ac_file |
| 6400 |
mv conftest.h $ac_file |
| 6401 |
fi |
| 6402 |
fi; done |
| 6403 |
|
| 6404 |
EOF |
| 6405 |
cat >> $CONFIG_STATUS <<EOF |
| 6406 |
|
| 6407 |
EOF |
| 6408 |
cat >> $CONFIG_STATUS <<\EOF |
| 6409 |
|
| 6410 |
exit 0 |
| 6411 |
EOF |
| 6412 |
chmod +x $CONFIG_STATUS |
| 6413 |
rm -fr confdefs* $ac_clean_files |
| 6414 |
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
| 6415 |
|
| 6416 |
|
| 6417 |
#if test ! -f config.h; then |
| 6418 |
# cp ${srcdir}/include/config.h.dist config.h |
| 6419 |
#fi |
| 6420 |
|
| 6421 |
echo |
| 6422 |
echo well there we are, you now might want to look in config.h and |
| 6423 |
echo see if there is anything you might want to tune, else you can |
| 6424 |
echo just run a make here.. good luck! |
| 6425 |
echo |
| 6426 |
|