1#! /bin/sh 2 3# Guess values for system-dependent variables and create Makefiles. 4# Generated automatically using autoconf version 2.13 5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 6# 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9 10# Defaults: 11ac_help= 12ac_default_prefix=/usr/local 13# Any additions from configure.in: 14ac_help="$ac_help 15 --enable-portals Enable /p as path prefix for portals" 16 17# Initialize some variables set by options. 18# The variables have the same names as the options, with 19# dashes changed to underlines. 20build=NONE 21cache_file=./config.cache 22exec_prefix=NONE 23host=NONE 24no_create= 25nonopt=NONE 26no_recursion= 27prefix=NONE 28program_prefix=NONE 29program_suffix=NONE 30program_transform_name=s,x,x, 31silent= 32site= 33srcdir= 34target=NONE 35verbose= 36x_includes=NONE 37x_libraries=NONE 38bindir='${exec_prefix}/bin' 39sbindir='${exec_prefix}/sbin' 40libexecdir='${exec_prefix}/libexec' 41datadir='${prefix}/share' 42sysconfdir='${prefix}/etc' 43sharedstatedir='${prefix}/com' 44localstatedir='${prefix}/var' 45libdir='${exec_prefix}/lib' 46includedir='${prefix}/include' 47oldincludedir='/usr/include' 48infodir='${prefix}/info' 49mandir='${prefix}/man' 50 51# Initialize some other variables. 52subdirs= 53MFLAGS= MAKEFLAGS= 54SHELL=${CONFIG_SHELL-/bin/sh} 55# Maximum number of lines to put in a shell here document. 56ac_max_here_lines=12 57 58ac_prev= 59for ac_option 60do 61 62 # If the previous option needs an argument, assign it. 63 if test -n "$ac_prev"; then 64 eval "$ac_prev=\$ac_option" 65 ac_prev= 66 continue 67 fi 68 69 case "$ac_option" in 70 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 71 *) ac_optarg= ;; 72 esac 73 74 # Accept the important Cygnus configure options, so we can diagnose typos. 75 76 case "$ac_option" in 77 78 -bindir | --bindir | --bindi | --bind | --bin | --bi) 79 ac_prev=bindir ;; 80 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 81 bindir="$ac_optarg" ;; 82 83 -build | --build | --buil | --bui | --bu) 84 ac_prev=build ;; 85 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 86 build="$ac_optarg" ;; 87 88 -cache-file | --cache-file | --cache-fil | --cache-fi \ 89 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 90 ac_prev=cache_file ;; 91 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 92 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 93 cache_file="$ac_optarg" ;; 94 95 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 96 ac_prev=datadir ;; 97 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 98 | --da=*) 99 datadir="$ac_optarg" ;; 100 101 -disable-* | --disable-*) 102 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 103 # Reject names that are not valid shell variable names. 104 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 105 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 106 fi 107 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 108 eval "enable_${ac_feature}=no" ;; 109 110 -enable-* | --enable-*) 111 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 112 # Reject names that are not valid shell variable names. 113 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 114 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 115 fi 116 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 117 case "$ac_option" in 118 *=*) ;; 119 *) ac_optarg=yes ;; 120 esac 121 eval "enable_${ac_feature}='$ac_optarg'" ;; 122 123 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 124 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 125 | --exec | --exe | --ex) 126 ac_prev=exec_prefix ;; 127 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 128 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 129 | --exec=* | --exe=* | --ex=*) 130 exec_prefix="$ac_optarg" ;; 131 132 -gas | --gas | --ga | --g) 133 # Obsolete; use --with-gas. 134 with_gas=yes ;; 135 136 -help | --help | --hel | --he) 137 # Omit some internal or obsolete options to make the list less imposing. 138 # This message is too long to be a string in the A/UX 3.1 sh. 139 cat << EOF 140Usage: configure [options] [host] 141Options: [defaults in brackets after descriptions] 142Configuration: 143 --cache-file=FILE cache test results in FILE 144 --help print this message 145 --no-create do not create output files 146 --quiet, --silent do not print \`checking...' messages 147 --version print the version of autoconf that created configure 148Directory and file names: 149 --prefix=PREFIX install architecture-independent files in PREFIX 150 [$ac_default_prefix] 151 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 152 [same as prefix] 153 --bindir=DIR user executables in DIR [EPREFIX/bin] 154 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 155 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 156 --datadir=DIR read-only architecture-independent data in DIR 157 [PREFIX/share] 158 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 159 --sharedstatedir=DIR modifiable architecture-independent data in DIR 160 [PREFIX/com] 161 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 162 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 163 --includedir=DIR C header files in DIR [PREFIX/include] 164 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 165 --infodir=DIR info documentation in DIR [PREFIX/info] 166 --mandir=DIR man documentation in DIR [PREFIX/man] 167 --srcdir=DIR find the sources in DIR [configure dir or ..] 168 --program-prefix=PREFIX prepend PREFIX to installed program names 169 --program-suffix=SUFFIX append SUFFIX to installed program names 170 --program-transform-name=PROGRAM 171 run sed PROGRAM on installed program names 172EOF 173 cat << EOF 174Host type: 175 --build=BUILD configure for building on BUILD [BUILD=HOST] 176 --host=HOST configure for HOST [guessed] 177 --target=TARGET configure for TARGET [TARGET=HOST] 178Features and packages: 179 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 180 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 181 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 182 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 183 --x-includes=DIR X include files are in DIR 184 --x-libraries=DIR X library files are in DIR 185EOF 186 if test -n "$ac_help"; then 187 echo "--enable and --with options recognized:$ac_help" 188 fi 189 exit 0 ;; 190 191 -host | --host | --hos | --ho) 192 ac_prev=host ;; 193 -host=* | --host=* | --hos=* | --ho=*) 194 host="$ac_optarg" ;; 195 196 -includedir | --includedir | --includedi | --included | --include \ 197 | --includ | --inclu | --incl | --inc) 198 ac_prev=includedir ;; 199 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 200 | --includ=* | --inclu=* | --incl=* | --inc=*) 201 includedir="$ac_optarg" ;; 202 203 -infodir | --infodir | --infodi | --infod | --info | --inf) 204 ac_prev=infodir ;; 205 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 206 infodir="$ac_optarg" ;; 207 208 -libdir | --libdir | --libdi | --libd) 209 ac_prev=libdir ;; 210 -libdir=* | --libdir=* | --libdi=* | --libd=*) 211 libdir="$ac_optarg" ;; 212 213 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 214 | --libexe | --libex | --libe) 215 ac_prev=libexecdir ;; 216 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 217 | --libexe=* | --libex=* | --libe=*) 218 libexecdir="$ac_optarg" ;; 219 220 -localstatedir | --localstatedir | --localstatedi | --localstated \ 221 | --localstate | --localstat | --localsta | --localst \ 222 | --locals | --local | --loca | --loc | --lo) 223 ac_prev=localstatedir ;; 224 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 225 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 226 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 227 localstatedir="$ac_optarg" ;; 228 229 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 230 ac_prev=mandir ;; 231 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 232 mandir="$ac_optarg" ;; 233 234 -nfp | --nfp | --nf) 235 # Obsolete; use --without-fp. 236 with_fp=no ;; 237 238 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 239 | --no-cr | --no-c) 240 no_create=yes ;; 241 242 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 243 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 244 no_recursion=yes ;; 245 246 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 247 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 248 | --oldin | --oldi | --old | --ol | --o) 249 ac_prev=oldincludedir ;; 250 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 251 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 252 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 253 oldincludedir="$ac_optarg" ;; 254 255 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 256 ac_prev=prefix ;; 257 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 258 prefix="$ac_optarg" ;; 259 260 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 261 | --program-pre | --program-pr | --program-p) 262 ac_prev=program_prefix ;; 263 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 264 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 265 program_prefix="$ac_optarg" ;; 266 267 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 268 | --program-suf | --program-su | --program-s) 269 ac_prev=program_suffix ;; 270 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 271 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 272 program_suffix="$ac_optarg" ;; 273 274 -program-transform-name | --program-transform-name \ 275 | --program-transform-nam | --program-transform-na \ 276 | --program-transform-n | --program-transform- \ 277 | --program-transform | --program-transfor \ 278 | --program-transfo | --program-transf \ 279 | --program-trans | --program-tran \ 280 | --progr-tra | --program-tr | --program-t) 281 ac_prev=program_transform_name ;; 282 -program-transform-name=* | --program-transform-name=* \ 283 | --program-transform-nam=* | --program-transform-na=* \ 284 | --program-transform-n=* | --program-transform-=* \ 285 | --program-transform=* | --program-transfor=* \ 286 | --program-transfo=* | --program-transf=* \ 287 | --program-trans=* | --program-tran=* \ 288 | --progr-tra=* | --program-tr=* | --program-t=*) 289 program_transform_name="$ac_optarg" ;; 290 291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 292 | -silent | --silent | --silen | --sile | --sil) 293 silent=yes ;; 294 295 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 296 ac_prev=sbindir ;; 297 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 298 | --sbi=* | --sb=*) 299 sbindir="$ac_optarg" ;; 300 301 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 302 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 303 | --sharedst | --shareds | --shared | --share | --shar \ 304 | --sha | --sh) 305 ac_prev=sharedstatedir ;; 306 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 307 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 308 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 309 | --sha=* | --sh=*) 310 sharedstatedir="$ac_optarg" ;; 311 312 -site | --site | --sit) 313 ac_prev=site ;; 314 -site=* | --site=* | --sit=*) 315 site="$ac_optarg" ;; 316 317 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 318 ac_prev=srcdir ;; 319 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 320 srcdir="$ac_optarg" ;; 321 322 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 323 | --syscon | --sysco | --sysc | --sys | --sy) 324 ac_prev=sysconfdir ;; 325 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 326 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 327 sysconfdir="$ac_optarg" ;; 328 329 -target | --target | --targe | --targ | --tar | --ta | --t) 330 ac_prev=target ;; 331 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 332 target="$ac_optarg" ;; 333 334 -v | -verbose | --verbose | --verbos | --verbo | --verb) 335 verbose=yes ;; 336 337 -version | --version | --versio | --versi | --vers) 338 echo "configure generated by autoconf version 2.13" 339 exit 0 ;; 340 341 -with-* | --with-*) 342 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 343 # Reject names that are not valid shell variable names. 344 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 345 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 346 fi 347 ac_package=`echo $ac_package| sed 's/-/_/g'` 348 case "$ac_option" in 349 *=*) ;; 350 *) ac_optarg=yes ;; 351 esac 352 eval "with_${ac_package}='$ac_optarg'" ;; 353 354 -without-* | --without-*) 355 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 356 # Reject names that are not valid shell variable names. 357 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 359 fi 360 ac_package=`echo $ac_package| sed 's/-/_/g'` 361 eval "with_${ac_package}=no" ;; 362 363 --x) 364 # Obsolete; use --with-x. 365 with_x=yes ;; 366 367 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 368 | --x-incl | --x-inc | --x-in | --x-i) 369 ac_prev=x_includes ;; 370 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 371 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 372 x_includes="$ac_optarg" ;; 373 374 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 375 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 376 ac_prev=x_libraries ;; 377 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 378 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 379 x_libraries="$ac_optarg" ;; 380 381 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 382 ;; 383 384 *) 385 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 386 echo "configure: warning: $ac_option: invalid host type" 1>&2 387 fi 388 if test "x$nonopt" != xNONE; then 389 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 390 fi 391 nonopt="$ac_option" 392 ;; 393 394 esac 395done 396 397if test -n "$ac_prev"; then 398 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 399fi 400 401trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 402 403# File descriptor usage: 404# 0 standard input 405# 1 file creation 406# 2 errors and warnings 407# 3 some systems may open it to /dev/tty 408# 4 used on the Kubota Titan 409# 6 checking for... messages and results 410# 5 compiler messages saved in config.log 411if test "$silent" = yes; then 412 exec 6>/dev/null 413else 414 exec 6>&1 415fi 416exec 5>./config.log 417 418echo "\ 419This file contains any messages produced by compilers while 420running configure, to aid debugging if configure makes a mistake. 421" 1>&5 422 423# Strip out --no-create and --no-recursion so they do not pile up. 424# Also quote any args containing shell metacharacters. 425ac_configure_args= 426for ac_arg 427do 428 case "$ac_arg" in 429 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 430 | --no-cr | --no-c) ;; 431 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 432 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 433 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 434 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 435 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 436 esac 437done 438 439# NLS nuisances. 440# Only set these to C if already set. These must not be set unconditionally 441# because not all systems understand e.g. LANG=C (notably SCO). 442# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 443# Non-C LC_CTYPE values break the ctype check. 444if test "${LANG+set}" = set; then LANG=C; export LANG; fi 445if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 446if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 447if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 448 449# confdefs.h avoids OS command line length limits that DEFS can exceed. 450rm -rf conftest* confdefs.h 451# AIX cpp loses on an empty file, so make sure it contains at least a newline. 452echo > confdefs.h 453 454# A filename unique to this package, relative to the directory that 455# configure is in, which we can look for to find out if srcdir is correct. 456ac_unique_file=lib/libawka.h.in 457 458# Find the source files, if location was not specified. 459if test -z "$srcdir"; then 460 ac_srcdir_defaulted=yes 461 # Try the directory containing this script, then its parent. 462 ac_prog=$0 463 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 464 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 465 srcdir=$ac_confdir 466 if test ! -r $srcdir/$ac_unique_file; then 467 srcdir=.. 468 fi 469else 470 ac_srcdir_defaulted=no 471fi 472if test ! -r $srcdir/$ac_unique_file; then 473 if test "$ac_srcdir_defaulted" = yes; then 474 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 475 else 476 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 477 fi 478fi 479srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 480 481# Prefer explicitly selected file to automatically selected ones. 482if test -z "$CONFIG_SITE"; then 483 if test "x$prefix" != xNONE; then 484 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 485 else 486 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 487 fi 488fi 489for ac_site_file in $CONFIG_SITE; do 490 if test -r "$ac_site_file"; then 491 echo "loading site script $ac_site_file" 492 . "$ac_site_file" 493 fi 494done 495 496if test -r "$cache_file"; then 497 echo "loading cache $cache_file" 498 . $cache_file 499else 500 echo "creating cache $cache_file" 501 > $cache_file 502fi 503 504ac_ext=c 505# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 506ac_cpp='$CPP $CPPFLAGS' 507ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 508ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 509cross_compiling=$ac_cv_prog_cc_cross 510 511ac_exeext= 512ac_objext=o 513if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 514 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 515 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 516 ac_n= ac_c=' 517' ac_t=' ' 518 else 519 ac_n=-n ac_c= ac_t= 520 fi 521else 522 ac_n= ac_c='\c' ac_t= 523fi 524 525 526 527 528 529 530 531# Check whether --enable-portals or --disable-portals was given. 532if test "${enable_portals+set}" = set; then 533 enableval="$enable_portals" 534 HAVE_PORTALS=1 535fi 536 537cat < /dev/null > defines.out 538test -f config.user && . ./config.user 539test "${MANEXT+set}" = set || MANEXT="1" 540 541test "${BUILDLIB+set}" = set || BUILDLIB="a" 542 543echo "$USER_DEFINES" >> defines.out 544# Extract the first word of "gcc", so it can be a program name with args. 545set dummy gcc; ac_word=$2 546echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 547echo "configure:548: checking for $ac_word" >&5 548if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 549 echo $ac_n "(cached) $ac_c" 1>&6 550else 551 if test -n "$CC"; then 552 ac_cv_prog_CC="$CC" # Let the user override the test. 553else 554 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 555 ac_dummy="$PATH" 556 for ac_dir in $ac_dummy; do 557 test -z "$ac_dir" && ac_dir=. 558 if test -f $ac_dir/$ac_word; then 559 ac_cv_prog_CC="gcc" 560 break 561 fi 562 done 563 IFS="$ac_save_ifs" 564 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc" 565fi 566fi 567CC="$ac_cv_prog_CC" 568if test -n "$CC"; then 569 echo "$ac_t""$CC" 1>&6 570else 571 echo "$ac_t""no" 1>&6 572fi 573 574echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 575echo "configure:576: checking whether we are using GNU C" >&5 576if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 577 echo $ac_n "(cached) $ac_c" 1>&6 578else 579 cat > conftest.c <<EOF 580#ifdef __GNUC__ 581 yes; 582#endif 583EOF 584if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then 585 ac_cv_prog_gcc=yes 586 GCC=yes 587else 588 ac_cv_prog_gcc=no 589 GCC=no 590fi 591fi 592echo "$ac_t""$ac_cv_prog_gcc" 1>&6 593rm -f conftest* 594 595echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 596echo "configure:597: checking how to run the C preprocessor" >&5 597# On Suns, sometimes $CPP names a directory. 598if test -n "$CPP" && test -d "$CPP"; then 599 CPP= 600fi 601if test -z "$CPP"; then 602if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 603 echo $ac_n "(cached) $ac_c" 1>&6 604else 605 # This must be in double quotes, not single quotes, because CPP may get 606 # substituted into the Makefile and "${CC-cc}" will confuse make. 607 CPP="${CC-cc} -E" 608 # On the NeXT, cc -E runs the code through the compiler's parser, 609 # not just through cpp. 610 cat > conftest.$ac_ext <<EOF 611#line 612 "configure" 612#include "confdefs.h" 613#include <assert.h> 614Syntax Error 615EOF 616ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 617{ (eval echo configure:618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 618ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 619if test -z "$ac_err"; then 620 : 621else 622 echo "$ac_err" >&5 623 echo "configure: failed program was:" >&5 624 cat conftest.$ac_ext >&5 625 rm -rf conftest* 626 CPP="${CC-cc} -E -traditional-cpp" 627 cat > conftest.$ac_ext <<EOF 628#line 629 "configure" 629#include "confdefs.h" 630#include <assert.h> 631Syntax Error 632EOF 633ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 634{ (eval echo configure:635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 635ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 636if test -z "$ac_err"; then 637 : 638else 639 echo "$ac_err" >&5 640 echo "configure: failed program was:" >&5 641 cat conftest.$ac_ext >&5 642 rm -rf conftest* 643 CPP="${CC-cc} -nologo -E" 644 cat > conftest.$ac_ext <<EOF 645#line 646 "configure" 646#include "confdefs.h" 647#include <assert.h> 648Syntax Error 649EOF 650ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 651{ (eval echo configure:652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 652ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 653if test -z "$ac_err"; then 654 : 655else 656 echo "$ac_err" >&5 657 echo "configure: failed program was:" >&5 658 cat conftest.$ac_ext >&5 659 rm -rf conftest* 660 CPP=/lib/cpp 661fi 662rm -f conftest* 663fi 664rm -f conftest* 665fi 666rm -f conftest* 667 ac_cv_prog_CPP="$CPP" 668fi 669 CPP="$ac_cv_prog_CPP" 670else 671 ac_cv_prog_CPP="$CPP" 672fi 673echo "$ac_t""$CPP" 1>&6 674 675test "${CFLAGS+set}" = set || CFLAGS="-O" 676 677 678if test "${MATHLIB+set}" != set ; then 679echo $ac_n "checking for log in -lm""... $ac_c" 1>&6 680echo "configure:681: checking for log in -lm" >&5 681ac_lib_var=`echo m'_'log | sed 'y%./+-%__p_%'` 682if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 683 echo $ac_n "(cached) $ac_c" 1>&6 684else 685 ac_save_LIBS="$LIBS" 686LIBS="-lm $LIBS" 687cat > conftest.$ac_ext <<EOF 688#line 689 "configure" 689#include "confdefs.h" 690/* Override any gcc2 internal prototype to avoid an error. */ 691/* We use char because int might match the return type of a gcc2 692 builtin and then its argument prototype would still apply. */ 693char log(); 694 695int main() { 696log() 697; return 0; } 698EOF 699if { (eval echo configure:700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 700 rm -rf conftest* 701 eval "ac_cv_lib_$ac_lib_var=yes" 702else 703 echo "configure: failed program was:" >&5 704 cat conftest.$ac_ext >&5 705 rm -rf conftest* 706 eval "ac_cv_lib_$ac_lib_var=no" 707fi 708rm -f conftest* 709LIBS="$ac_save_LIBS" 710 711fi 712if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 713 echo "$ac_t""yes" 1>&6 714 MATHLIB=-lm ; LIBS="$LIBS -lm" 715else 716 echo "$ac_t""no" 1>&6 717# maybe don't need separate math library 718echo $ac_n "checking for log""... $ac_c" 1>&6 719echo "configure:720: checking for log" >&5 720if eval "test \"`echo '$''{'ac_cv_func_log'+set}'`\" = set"; then 721 echo $ac_n "(cached) $ac_c" 1>&6 722else 723 cat > conftest.$ac_ext <<EOF 724#line 725 "configure" 725#include "confdefs.h" 726/* System header to define __stub macros and hopefully few prototypes, 727 which can conflict with char log(); below. */ 728#include <assert.h> 729/* Override any gcc2 internal prototype to avoid an error. */ 730/* We use char because int might match the return type of a gcc2 731 builtin and then its argument prototype would still apply. */ 732char log(); 733 734int main() { 735 736/* The GNU C library defines this for functions which it implements 737 to always fail with ENOSYS. Some functions are actually named 738 something starting with __ and the normal name is an alias. */ 739#if defined (__stub_log) || defined (__stub___log) 740choke me 741#else 742log(); 743#endif 744 745; return 0; } 746EOF 747if { (eval echo configure:748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 748 rm -rf conftest* 749 eval "ac_cv_func_log=yes" 750else 751 echo "configure: failed program was:" >&5 752 cat conftest.$ac_ext >&5 753 rm -rf conftest* 754 eval "ac_cv_func_log=no" 755fi 756rm -f conftest* 757fi 758 759if eval "test \"`echo '$ac_cv_func_'log`\" = yes"; then 760 echo "$ac_t""yes" 1>&6 761 log=yes 762else 763 echo "$ac_t""no" 1>&6 764fi 765 766if test "$log$" = yes 767then 768 MATHLIB='' # evidently don't need one 769else 770 { echo "configure: error: Cannot find a math library. You need to set MATHLIB in config.user" 1>&2; exit 1; } 771fi 772fi 773fi 774echo "X awka_MATHLIB \"$MATHLIB\"" >> defines.out 775 776echo $ac_n "checking checking for inline""... $ac_c" 1>&6 777echo "configure:778: checking checking for inline" >&5 778cat > conftest.$ac_ext <<EOF 779#line 780 "configure" 780#include "confdefs.h" 781static __inline__ int this() { return 0; } 782int main() { 783return this(); 784; return 0; } 785EOF 786if { (eval echo configure:787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 787 rm -rf conftest* 788 inline="__inline__" 789else 790 echo "configure: failed program was:" >&5 791 cat conftest.$ac_ext >&5 792 rm -rf conftest* 793 inline=no 794fi 795rm -f conftest* 796if test "$inline" = no 797then 798cat > conftest.$ac_ext <<EOF 799#line 800 "configure" 800#include "confdefs.h" 801static __inline int this() { return 0; } 802int main() { 803return this(); 804; return 0; } 805EOF 806if { (eval echo configure:807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 807 rm -rf conftest* 808 inline="__inline" 809else 810 echo "configure: failed program was:" >&5 811 cat conftest.$ac_ext >&5 812 rm -rf conftest* 813 inline=no 814fi 815rm -f conftest* 816if test "$inline" = no 817then 818cat > conftest.$ac_ext <<EOF 819#line 820 "configure" 820#include "confdefs.h" 821static inline int this() { return 0; } 822int main() { 823return this(); 824; return 0; } 825EOF 826if { (eval echo configure:827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 827 rm -rf conftest* 828 inline="inline" 829else 830 echo "configure: failed program was:" >&5 831 cat conftest.$ac_ext >&5 832 rm -rf conftest* 833 inline=no 834fi 835rm -f conftest* 836echo "$ac_t""$inline" 1>&6 837if test "$inline" = no 838then 839 echo X 'INLINE' '' >> defines.out 840else 841 echo X 'INLINE' 'inline' >> defines.out 842fi 843else 844 echo "$ac_t""$inline" 1>&6 845 echo X 'INLINE' '__inline' >> defines.out 846fi 847else 848 echo "$ac_t""$inline" 1>&6 849 echo X 'INLINE' '__inline__' >> defines.out 850fi 851for ac_prog in gawk mawk nawk awk 852do 853# Extract the first word of "$ac_prog", so it can be a program name with args. 854set dummy $ac_prog; ac_word=$2 855echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 856echo "configure:857: checking for $ac_word" >&5 857if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then 858 echo $ac_n "(cached) $ac_c" 1>&6 859else 860 if test -n "$AWK"; then 861 ac_cv_prog_AWK="$AWK" # Let the user override the test. 862else 863 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 864 ac_dummy="$PATH" 865 for ac_dir in $ac_dummy; do 866 test -z "$ac_dir" && ac_dir=. 867 if test -f $ac_dir/$ac_word; then 868 ac_cv_prog_AWK="$ac_prog" 869 break 870 fi 871 done 872 IFS="$ac_save_ifs" 873fi 874fi 875AWK="$ac_cv_prog_AWK" 876if test -n "$AWK"; then 877 echo "$ac_t""$AWK" 1>&6 878else 879 echo "$ac_t""no" 1>&6 880fi 881 882test -n "$AWK" && break 883done 884 885if test "$AWK" = "" 886then 887 { echo "configure: error: Cannot find an awk. Correct your PATH" 1>&2; exit 1; } 888fi 889 890for ac_prog in ash sh bash ksh tcsh csh 891do 892# Extract the first word of "$ac_prog", so it can be a program name with args. 893set dummy $ac_prog; ac_word=$2 894echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 895echo "configure:896: checking for $ac_word" >&5 896if eval "test \"`echo '$''{'ac_cv_prog_SH'+set}'`\" = set"; then 897 echo $ac_n "(cached) $ac_c" 1>&6 898else 899 if test -n "$SH"; then 900 ac_cv_prog_SH="$SH" # Let the user override the test. 901else 902 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 903 ac_dummy="$PATH" 904 for ac_dir in $ac_dummy; do 905 test -z "$ac_dir" && ac_dir=. 906 if test -f $ac_dir/$ac_word; then 907 ac_cv_prog_SH="$ac_prog" 908 break 909 fi 910 done 911 IFS="$ac_save_ifs" 912fi 913fi 914SH="$ac_cv_prog_SH" 915if test -n "$SH"; then 916 echo "$ac_t""$SH" 1>&6 917else 918 echo "$ac_t""no" 1>&6 919fi 920 921test -n "$SH" && break 922done 923 924if test "$SH" = "" 925then 926 { echo "configure: error: Cannot find a shell program. Correct your PATH" 1>&2; exit 1; } 927fi 928 929for ac_prog in byacc bison yacc 930do 931# Extract the first word of "$ac_prog", so it can be a program name with args. 932set dummy $ac_prog; ac_word=$2 933echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 934echo "configure:935: checking for $ac_word" >&5 935if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then 936 echo $ac_n "(cached) $ac_c" 1>&6 937else 938 if test -n "$YACC"; then 939 ac_cv_prog_YACC="$YACC" # Let the user override the test. 940else 941 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 942 ac_dummy="$PATH" 943 for ac_dir in $ac_dummy; do 944 test -z "$ac_dir" && ac_dir=. 945 if test -f $ac_dir/$ac_word; then 946 ac_cv_prog_YACC="$ac_prog" 947 break 948 fi 949 done 950 IFS="$ac_save_ifs" 951fi 952fi 953YACC="$ac_cv_prog_YACC" 954if test -n "$YACC"; then 955 echo "$ac_t""$YACC" 1>&6 956else 957 echo "$ac_t""no" 1>&6 958fi 959 960test -n "$YACC" && break 961done 962 963test "$YACC" = bison && YACC='bison -y' 964for ac_prog in ar gar 965do 966# Extract the first word of "$ac_prog", so it can be a program name with args. 967set dummy $ac_prog; ac_word=$2 968echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 969echo "configure:970: checking for $ac_word" >&5 970if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then 971 echo $ac_n "(cached) $ac_c" 1>&6 972else 973 if test -n "$AR"; then 974 ac_cv_prog_AR="$AR" # Let the user override the test. 975else 976 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 977 ac_dummy="$PATH" 978 for ac_dir in $ac_dummy; do 979 test -z "$ac_dir" && ac_dir=. 980 if test -f $ac_dir/$ac_word; then 981 ac_cv_prog_AR="$ac_prog" 982 break 983 fi 984 done 985 IFS="$ac_save_ifs" 986fi 987fi 988AR="$ac_cv_prog_AR" 989if test -n "$AR"; then 990 echo "$ac_t""$AR" 1>&6 991else 992 echo "$ac_t""no" 1>&6 993fi 994 995test -n "$AR" && break 996done 997 998for ac_prog in ranlib touch echo 999do 1000# Extract the first word of "$ac_prog", so it can be a program name with args. 1001set dummy $ac_prog; ac_word=$2 1002echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1003echo "configure:1004: checking for $ac_word" >&5 1004if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1005 echo $ac_n "(cached) $ac_c" 1>&6 1006else 1007 if test -n "$RANLIB"; then 1008 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1009else 1010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1011 ac_dummy="$PATH" 1012 for ac_dir in $ac_dummy; do 1013 test -z "$ac_dir" && ac_dir=. 1014 if test -f $ac_dir/$ac_word; then 1015 ac_cv_prog_RANLIB="$ac_prog" 1016 break 1017 fi 1018 done 1019 IFS="$ac_save_ifs" 1020fi 1021fi 1022RANLIB="$ac_cv_prog_RANLIB" 1023if test -n "$RANLIB"; then 1024 echo "$ac_t""$RANLIB" 1>&6 1025else 1026 echo "$ac_t""no" 1>&6 1027fi 1028 1029test -n "$RANLIB" && break 1030done 1031 1032cat > conftest.$ac_ext <<EOF 1033#line 1034 "configure" 1034#include "confdefs.h" 1035int this() { return __CYGWIN32__; } 1036int main() { 1037return this(); 1038; return 0; } 1039EOF 1040if { (eval echo configure:1041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1041 rm -rf conftest* 1042 cmp="diff" 1043else 1044 echo "configure: failed program was:" >&5 1045 cat conftest.$ac_ext >&5 1046 rm -rf conftest* 1047 cmp="cmp" 1048fi 1049rm -f conftest* 1050if test "$cmp" = "cmp" 1051then 1052 cat > conftest.$ac_ext <<EOF 1053#line 1054 "configure" 1054#include "confdefs.h" 1055int this() { return __DJGPP__; } 1056int main() { 1057return this(); 1058; return 0; } 1059EOF 1060if { (eval echo configure:1061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1061 rm -rf conftest* 1062 cmp="diff" 1063else 1064 echo "configure: failed program was:" >&5 1065 cat conftest.$ac_ext >&5 1066 rm -rf conftest* 1067 cmp="cmp" 1068fi 1069rm -f conftest* 1070fi 1071for ac_prog in $cmp 1072do 1073# Extract the first word of "$ac_prog", so it can be a program name with args. 1074set dummy $ac_prog; ac_word=$2 1075echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1076echo "configure:1077: checking for $ac_word" >&5 1077if eval "test \"`echo '$''{'ac_cv_prog_CMP'+set}'`\" = set"; then 1078 echo $ac_n "(cached) $ac_c" 1>&6 1079else 1080 if test -n "$CMP"; then 1081 ac_cv_prog_CMP="$CMP" # Let the user override the test. 1082else 1083 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1084 ac_dummy="$PATH" 1085 for ac_dir in $ac_dummy; do 1086 test -z "$ac_dir" && ac_dir=. 1087 if test -f $ac_dir/$ac_word; then 1088 ac_cv_prog_CMP="$ac_prog" 1089 break 1090 fi 1091 done 1092 IFS="$ac_save_ifs" 1093fi 1094fi 1095CMP="$ac_cv_prog_CMP" 1096if test -n "$CMP"; then 1097 echo "$ac_t""$CMP" 1>&6 1098else 1099 echo "$ac_t""no" 1>&6 1100fi 1101 1102test -n "$CMP" && break 1103done 1104 1105echo $ac_n "checking compiler supports void*""... $ac_c" 1>&6 1106echo "configure:1107: checking compiler supports void*" >&5 1107cat > conftest.$ac_ext <<EOF 1108#line 1109 "configure" 1109#include "confdefs.h" 1110char *cp ; 1111void *foo() ; 1112int main() { 1113cp = (char*)(void*)(int*)foo() ; 1114; return 0; } 1115EOF 1116if { (eval echo configure:1117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1117 rm -rf conftest* 1118 void_ptr=yes 1119else 1120 echo "configure: failed program was:" >&5 1121 cat conftest.$ac_ext >&5 1122 rm -rf conftest* 1123 void_ptr=no 1124fi 1125rm -f conftest* 1126echo "$ac_t""$void_ptr" 1>&6 1127test "$void_ptr" = no && echo X 'NO_VOID_PTR' '1' >> defines.out 1128echo $ac_n "checking compiler groks prototypes""... $ac_c" 1>&6 1129echo "configure:1130: checking compiler groks prototypes" >&5 1130cat > conftest.$ac_ext <<EOF 1131#line 1132 "configure" 1132#include "confdefs.h" 1133 1134int main() { 1135int x(char*); 1136; return 0; } 1137EOF 1138if { (eval echo configure:1139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1139 rm -rf conftest* 1140 protos=yes 1141else 1142 echo "configure: failed program was:" >&5 1143 cat conftest.$ac_ext >&5 1144 rm -rf conftest* 1145 protos=no 1146fi 1147rm -f conftest* 1148echo "$ac_t""$protos" 1>&6 1149test "$protos" = no && echo X 'NO_PROTOS' '1' >> defines.out 1150echo $ac_n "checking for working const""... $ac_c" 1>&6 1151echo "configure:1152: checking for working const" >&5 1152if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 1153 echo $ac_n "(cached) $ac_c" 1>&6 1154else 1155 cat > conftest.$ac_ext <<EOF 1156#line 1157 "configure" 1157#include "confdefs.h" 1158 1159int main() { 1160 1161/* Ultrix mips cc rejects this. */ 1162typedef int charset[2]; const charset x; 1163/* SunOS 4.1.1 cc rejects this. */ 1164char const *const *ccp; 1165char **p; 1166/* NEC SVR4.0.2 mips cc rejects this. */ 1167struct point {int x, y;}; 1168static struct point const zero = {0,0}; 1169/* AIX XL C 1.02.0.0 rejects this. 1170 It does not let you subtract one const X* pointer from another in an arm 1171 of an if-expression whose if-part is not a constant expression */ 1172const char *g = "string"; 1173ccp = &g + (g ? g-g : 0); 1174/* HPUX 7.0 cc rejects these. */ 1175++ccp; 1176p = (char**) ccp; 1177ccp = (char const *const *) p; 1178{ /* SCO 3.2v4 cc rejects this. */ 1179 char *t; 1180 char const *s = 0 ? (char *) 0 : (char const *) 0; 1181 1182 *t++ = 0; 1183} 1184{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 1185 int x[] = {25, 17}; 1186 const int *foo = &x[0]; 1187 ++foo; 1188} 1189{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 1190 typedef const int *iptr; 1191 iptr p = 0; 1192 ++p; 1193} 1194{ /* AIX XL C 1.02.0.0 rejects this saying 1195 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 1196 struct s { int j; const int *ap[3]; }; 1197 struct s *b; b->j = 5; 1198} 1199{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 1200 const int foo = 10; 1201} 1202 1203; return 0; } 1204EOF 1205if { (eval echo configure:1206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1206 rm -rf conftest* 1207 ac_cv_c_const=yes 1208else 1209 echo "configure: failed program was:" >&5 1210 cat conftest.$ac_ext >&5 1211 rm -rf conftest* 1212 ac_cv_c_const=no 1213fi 1214rm -f conftest* 1215fi 1216 1217echo "$ac_t""$ac_cv_c_const" 1>&6 1218if test $ac_cv_c_const = no; then 1219 cat >> confdefs.h <<\EOF 1220#define const 1221EOF 1222 1223fi 1224 1225test "$ac_cv_c_const" = no && echo X 'const' '' >> defines.out 1226 1227 if test "$size_t_defed" != 1 ; then 1228 ac_safe=`echo "stddef.h" | sed 'y%./+-%__p_%'` 1229echo $ac_n "checking for stddef.h""... $ac_c" 1>&6 1230echo "configure:1231: checking for stddef.h" >&5 1231if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1232 echo $ac_n "(cached) $ac_c" 1>&6 1233else 1234 cat > conftest.$ac_ext <<EOF 1235#line 1236 "configure" 1236#include "confdefs.h" 1237#include <stddef.h> 1238EOF 1239ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1240{ (eval echo configure:1241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1241ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1242if test -z "$ac_err"; then 1243 rm -rf conftest* 1244 eval "ac_cv_header_$ac_safe=yes" 1245else 1246 echo "$ac_err" >&5 1247 echo "configure: failed program was:" >&5 1248 cat conftest.$ac_ext >&5 1249 rm -rf conftest* 1250 eval "ac_cv_header_$ac_safe=no" 1251fi 1252rm -f conftest* 1253fi 1254if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1255 echo "$ac_t""yes" 1>&6 1256 size_t_header=ok 1257else 1258 echo "$ac_t""no" 1>&6 1259fi 1260 1261 if test "$size_t_header" = ok ; then 1262 cat > conftest.$ac_ext <<EOF 1263#line 1264 "configure" 1264#include "confdefs.h" 1265 1266#include <stddef.h> 1267int main() { 1268size_t *n ; 1269 1270; return 0; } 1271EOF 1272if { (eval echo configure:1273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1273 rm -rf conftest* 1274 size_t_defed=1; 1275echo X 'SIZE_T_STDDEF_H' '1' >> defines.out 1276echo getting size_t from '<stddef.h>' 1277else 1278 echo "configure: failed program was:" >&5 1279 cat conftest.$ac_ext >&5 1280fi 1281rm -f conftest* 1282fi;fi 1283 1284 if test "$size_t_defed" != 1 ; then 1285 ac_safe=`echo "sys/types.h" | sed 'y%./+-%__p_%'` 1286echo $ac_n "checking for sys/types.h""... $ac_c" 1>&6 1287echo "configure:1288: checking for sys/types.h" >&5 1288if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1289 echo $ac_n "(cached) $ac_c" 1>&6 1290else 1291 cat > conftest.$ac_ext <<EOF 1292#line 1293 "configure" 1293#include "confdefs.h" 1294#include <sys/types.h> 1295EOF 1296ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1297{ (eval echo configure:1298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1298ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1299if test -z "$ac_err"; then 1300 rm -rf conftest* 1301 eval "ac_cv_header_$ac_safe=yes" 1302else 1303 echo "$ac_err" >&5 1304 echo "configure: failed program was:" >&5 1305 cat conftest.$ac_ext >&5 1306 rm -rf conftest* 1307 eval "ac_cv_header_$ac_safe=no" 1308fi 1309rm -f conftest* 1310fi 1311if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1312 echo "$ac_t""yes" 1>&6 1313 size_t_header=ok 1314else 1315 echo "$ac_t""no" 1>&6 1316fi 1317 1318 if test "$size_t_header" = ok ; then 1319 cat > conftest.$ac_ext <<EOF 1320#line 1321 "configure" 1321#include "confdefs.h" 1322 1323#include <sys/types.h> 1324int main() { 1325size_t *n ; 1326 1327; return 0; } 1328EOF 1329if { (eval echo configure:1330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1330 rm -rf conftest* 1331 size_t_defed=1; 1332echo X 'SIZE_T_TYPES_H' '1' >> defines.out 1333echo getting size_t from '<sys/types.h>' 1334else 1335 echo "configure: failed program was:" >&5 1336 cat conftest.$ac_ext >&5 1337fi 1338rm -f conftest* 1339fi;fi 1340ac_safe=`echo "fcntl.h" | sed 'y%./+-%__p_%'` 1341echo $ac_n "checking for fcntl.h""... $ac_c" 1>&6 1342echo "configure:1343: checking for fcntl.h" >&5 1343if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1344 echo $ac_n "(cached) $ac_c" 1>&6 1345else 1346 cat > conftest.$ac_ext <<EOF 1347#line 1348 "configure" 1348#include "confdefs.h" 1349#include <fcntl.h> 1350EOF 1351ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1352{ (eval echo configure:1353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1353ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1354if test -z "$ac_err"; then 1355 rm -rf conftest* 1356 eval "ac_cv_header_$ac_safe=yes" 1357else 1358 echo "$ac_err" >&5 1359 echo "configure: failed program was:" >&5 1360 cat conftest.$ac_ext >&5 1361 rm -rf conftest* 1362 eval "ac_cv_header_$ac_safe=no" 1363fi 1364rm -f conftest* 1365fi 1366if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1367 echo "$ac_t""yes" 1>&6 1368 : 1369else 1370 echo "$ac_t""no" 1>&6 1371cat >> confdefs.h <<\EOF 1372#define NO_FCNTL_H 1 1373EOF 1374 1375echo X 'NO_FCNTL_H' '1' >> defines.out 1376fi 1377 1378ac_safe=`echo "errno.h" | sed 'y%./+-%__p_%'` 1379echo $ac_n "checking for errno.h""... $ac_c" 1>&6 1380echo "configure:1381: checking for errno.h" >&5 1381if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1382 echo $ac_n "(cached) $ac_c" 1>&6 1383else 1384 cat > conftest.$ac_ext <<EOF 1385#line 1386 "configure" 1386#include "confdefs.h" 1387#include <errno.h> 1388EOF 1389ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1390{ (eval echo configure:1391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1391ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1392if test -z "$ac_err"; then 1393 rm -rf conftest* 1394 eval "ac_cv_header_$ac_safe=yes" 1395else 1396 echo "$ac_err" >&5 1397 echo "configure: failed program was:" >&5 1398 cat conftest.$ac_ext >&5 1399 rm -rf conftest* 1400 eval "ac_cv_header_$ac_safe=no" 1401fi 1402rm -f conftest* 1403fi 1404if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1405 echo "$ac_t""yes" 1>&6 1406 : 1407else 1408 echo "$ac_t""no" 1>&6 1409cat >> confdefs.h <<\EOF 1410#define NO_ERRNO_H 1 1411EOF 1412 1413echo X 'NO_ERRNO_H' '1' >> defines.out 1414fi 1415 1416ac_safe=`echo "time.h" | sed 'y%./+-%__p_%'` 1417echo $ac_n "checking for time.h""... $ac_c" 1>&6 1418echo "configure:1419: checking for time.h" >&5 1419if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1420 echo $ac_n "(cached) $ac_c" 1>&6 1421else 1422 cat > conftest.$ac_ext <<EOF 1423#line 1424 "configure" 1424#include "confdefs.h" 1425#include <time.h> 1426EOF 1427ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1428{ (eval echo configure:1429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1429ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1430if test -z "$ac_err"; then 1431 rm -rf conftest* 1432 eval "ac_cv_header_$ac_safe=yes" 1433else 1434 echo "$ac_err" >&5 1435 echo "configure: failed program was:" >&5 1436 cat conftest.$ac_ext >&5 1437 rm -rf conftest* 1438 eval "ac_cv_header_$ac_safe=no" 1439fi 1440rm -f conftest* 1441fi 1442if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1443 echo "$ac_t""yes" 1>&6 1444 : 1445else 1446 echo "$ac_t""no" 1>&6 1447cat >> confdefs.h <<\EOF 1448#define NO_TIME_H 1 1449EOF 1450 1451echo X 'NO_TIME_H' '1' >> defines.out 1452fi 1453 1454ac_safe=`echo "stdarg.h" | sed 'y%./+-%__p_%'` 1455echo $ac_n "checking for stdarg.h""... $ac_c" 1>&6 1456echo "configure:1457: checking for stdarg.h" >&5 1457if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1458 echo $ac_n "(cached) $ac_c" 1>&6 1459else 1460 cat > conftest.$ac_ext <<EOF 1461#line 1462 "configure" 1462#include "confdefs.h" 1463#include <stdarg.h> 1464EOF 1465ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1466{ (eval echo configure:1467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1467ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1468if test -z "$ac_err"; then 1469 rm -rf conftest* 1470 eval "ac_cv_header_$ac_safe=yes" 1471else 1472 echo "$ac_err" >&5 1473 echo "configure: failed program was:" >&5 1474 cat conftest.$ac_ext >&5 1475 rm -rf conftest* 1476 eval "ac_cv_header_$ac_safe=no" 1477fi 1478rm -f conftest* 1479fi 1480if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1481 echo "$ac_t""yes" 1>&6 1482 : 1483else 1484 echo "$ac_t""no" 1>&6 1485cat >> confdefs.h <<\EOF 1486#define NO_STDARG_H 1 1487EOF 1488 1489echo X 'NO_STDARG_H' '1' >> defines.out 1490fi 1491 1492ac_safe=`echo "netdb.h" | sed 'y%./+-%__p_%'` 1493echo $ac_n "checking for netdb.h""... $ac_c" 1>&6 1494echo "configure:1495: checking for netdb.h" >&5 1495if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1496 echo $ac_n "(cached) $ac_c" 1>&6 1497else 1498 cat > conftest.$ac_ext <<EOF 1499#line 1500 "configure" 1500#include "confdefs.h" 1501#include <netdb.h> 1502EOF 1503ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1504{ (eval echo configure:1505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1505ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1506if test -z "$ac_err"; then 1507 rm -rf conftest* 1508 eval "ac_cv_header_$ac_safe=yes" 1509else 1510 echo "$ac_err" >&5 1511 echo "configure: failed program was:" >&5 1512 cat conftest.$ac_ext >&5 1513 rm -rf conftest* 1514 eval "ac_cv_header_$ac_safe=no" 1515fi 1516rm -f conftest* 1517fi 1518if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1519 echo "$ac_t""yes" 1>&6 1520 : 1521else 1522 echo "$ac_t""no" 1>&6 1523cat >> confdefs.h <<\EOF 1524#define NO_NETDB_H 1 1525EOF 1526 1527echo X 'NO_NETDB_H' '1' >> defines.out 1528fi 1529 1530ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 1531echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 1532echo "configure:1533: checking for netinet/in.h" >&5 1533if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1534 echo $ac_n "(cached) $ac_c" 1>&6 1535else 1536 cat > conftest.$ac_ext <<EOF 1537#line 1538 "configure" 1538#include "confdefs.h" 1539#include <netinet/in.h> 1540EOF 1541ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1542{ (eval echo configure:1543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1543ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1544if test -z "$ac_err"; then 1545 rm -rf conftest* 1546 eval "ac_cv_header_$ac_safe=yes" 1547else 1548 echo "$ac_err" >&5 1549 echo "configure: failed program was:" >&5 1550 cat conftest.$ac_ext >&5 1551 rm -rf conftest* 1552 eval "ac_cv_header_$ac_safe=no" 1553fi 1554rm -f conftest* 1555fi 1556if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1557 echo "$ac_t""yes" 1>&6 1558 : 1559else 1560 echo "$ac_t""no" 1>&6 1561cat >> confdefs.h <<\EOF 1562#define NO_NETINET/IN_H 1 1563EOF 1564 1565echo X 'NO_NETINET/IN_H' '1' >> defines.out 1566fi 1567 1568ac_safe=`echo "sys/socket.h" | sed 'y%./+-%__p_%'` 1569echo $ac_n "checking for sys/socket.h""... $ac_c" 1>&6 1570echo "configure:1571: checking for sys/socket.h" >&5 1571if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1572 echo $ac_n "(cached) $ac_c" 1>&6 1573else 1574 cat > conftest.$ac_ext <<EOF 1575#line 1576 "configure" 1576#include "confdefs.h" 1577#include <sys/socket.h> 1578EOF 1579ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1580{ (eval echo configure:1581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1581ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1582if test -z "$ac_err"; then 1583 rm -rf conftest* 1584 eval "ac_cv_header_$ac_safe=yes" 1585else 1586 echo "$ac_err" >&5 1587 echo "configure: failed program was:" >&5 1588 cat conftest.$ac_ext >&5 1589 rm -rf conftest* 1590 eval "ac_cv_header_$ac_safe=no" 1591fi 1592rm -f conftest* 1593fi 1594if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1595 echo "$ac_t""yes" 1>&6 1596 : 1597else 1598 echo "$ac_t""no" 1>&6 1599cat >> confdefs.h <<\EOF 1600#define NO_SYS/SOCKET_H 1 1601EOF 1602 1603echo X 'NO_SYS/SOCKET_H' '1' >> defines.out 1604fi 1605 1606ac_safe=`echo "unistd.h" | sed 'y%./+-%__p_%'` 1607echo $ac_n "checking for unistd.h""... $ac_c" 1>&6 1608echo "configure:1609: checking for unistd.h" >&5 1609if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1610 echo $ac_n "(cached) $ac_c" 1>&6 1611else 1612 cat > conftest.$ac_ext <<EOF 1613#line 1614 "configure" 1614#include "confdefs.h" 1615#include <unistd.h> 1616EOF 1617ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1618{ (eval echo configure:1619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1619ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1620if test -z "$ac_err"; then 1621 rm -rf conftest* 1622 eval "ac_cv_header_$ac_safe=yes" 1623else 1624 echo "$ac_err" >&5 1625 echo "configure: failed program was:" >&5 1626 cat conftest.$ac_ext >&5 1627 rm -rf conftest* 1628 eval "ac_cv_header_$ac_safe=no" 1629fi 1630rm -f conftest* 1631fi 1632if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1633 echo "$ac_t""yes" 1>&6 1634 : 1635else 1636 echo "$ac_t""no" 1>&6 1637cat >> confdefs.h <<\EOF 1638#define NO_UNISTD_H 1 1639EOF 1640 1641echo X 'NO_UNISTD_H' '1' >> defines.out 1642fi 1643 1644echo $ac_n "checking for memcpy""... $ac_c" 1>&6 1645echo "configure:1646: checking for memcpy" >&5 1646if eval "test \"`echo '$''{'ac_cv_func_memcpy'+set}'`\" = set"; then 1647 echo $ac_n "(cached) $ac_c" 1>&6 1648else 1649 cat > conftest.$ac_ext <<EOF 1650#line 1651 "configure" 1651#include "confdefs.h" 1652/* System header to define __stub macros and hopefully few prototypes, 1653 which can conflict with char memcpy(); below. */ 1654#include <assert.h> 1655/* Override any gcc2 internal prototype to avoid an error. */ 1656/* We use char because int might match the return type of a gcc2 1657 builtin and then its argument prototype would still apply. */ 1658char memcpy(); 1659 1660int main() { 1661 1662/* The GNU C library defines this for functions which it implements 1663 to always fail with ENOSYS. Some functions are actually named 1664 something starting with __ and the normal name is an alias. */ 1665#if defined (__stub_memcpy) || defined (__stub___memcpy) 1666choke me 1667#else 1668memcpy(); 1669#endif 1670 1671; return 0; } 1672EOF 1673if { (eval echo configure:1674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1674 rm -rf conftest* 1675 eval "ac_cv_func_memcpy=yes" 1676else 1677 echo "configure: failed program was:" >&5 1678 cat conftest.$ac_ext >&5 1679 rm -rf conftest* 1680 eval "ac_cv_func_memcpy=no" 1681fi 1682rm -f conftest* 1683fi 1684 1685if eval "test \"`echo '$ac_cv_func_'memcpy`\" = yes"; then 1686 echo "$ac_t""yes" 1>&6 1687 : 1688else 1689 echo "$ac_t""no" 1>&6 1690cat >> confdefs.h <<\EOF 1691#define NO_MEMCPY 1 1692EOF 1693 1694echo X 'NO_MEMCPY' '1' >> defines.out 1695fi 1696 1697echo $ac_n "checking for strchr""... $ac_c" 1>&6 1698echo "configure:1699: checking for strchr" >&5 1699if eval "test \"`echo '$''{'ac_cv_func_strchr'+set}'`\" = set"; then 1700 echo $ac_n "(cached) $ac_c" 1>&6 1701else 1702 cat > conftest.$ac_ext <<EOF 1703#line 1704 "configure" 1704#include "confdefs.h" 1705/* System header to define __stub macros and hopefully few prototypes, 1706 which can conflict with char strchr(); below. */ 1707#include <assert.h> 1708/* Override any gcc2 internal prototype to avoid an error. */ 1709/* We use char because int might match the return type of a gcc2 1710 builtin and then its argument prototype would still apply. */ 1711char strchr(); 1712 1713int main() { 1714 1715/* The GNU C library defines this for functions which it implements 1716 to always fail with ENOSYS. Some functions are actually named 1717 something starting with __ and the normal name is an alias. */ 1718#if defined (__stub_strchr) || defined (__stub___strchr) 1719choke me 1720#else 1721strchr(); 1722#endif 1723 1724; return 0; } 1725EOF 1726if { (eval echo configure:1727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1727 rm -rf conftest* 1728 eval "ac_cv_func_strchr=yes" 1729else 1730 echo "configure: failed program was:" >&5 1731 cat conftest.$ac_ext >&5 1732 rm -rf conftest* 1733 eval "ac_cv_func_strchr=no" 1734fi 1735rm -f conftest* 1736fi 1737 1738if eval "test \"`echo '$ac_cv_func_'strchr`\" = yes"; then 1739 echo "$ac_t""yes" 1>&6 1740 : 1741else 1742 echo "$ac_t""no" 1>&6 1743cat >> confdefs.h <<\EOF 1744#define NO_STRCHR 1 1745EOF 1746 1747echo X 'NO_STRCHR' '1' >> defines.out 1748fi 1749 1750echo $ac_n "checking for strstr""... $ac_c" 1>&6 1751echo "configure:1752: checking for strstr" >&5 1752if eval "test \"`echo '$''{'ac_cv_func_strstr'+set}'`\" = set"; then 1753 echo $ac_n "(cached) $ac_c" 1>&6 1754else 1755 cat > conftest.$ac_ext <<EOF 1756#line 1757 "configure" 1757#include "confdefs.h" 1758/* System header to define __stub macros and hopefully few prototypes, 1759 which can conflict with char strstr(); below. */ 1760#include <assert.h> 1761/* Override any gcc2 internal prototype to avoid an error. */ 1762/* We use char because int might match the return type of a gcc2 1763 builtin and then its argument prototype would still apply. */ 1764char strstr(); 1765 1766int main() { 1767 1768/* The GNU C library defines this for functions which it implements 1769 to always fail with ENOSYS. Some functions are actually named 1770 something starting with __ and the normal name is an alias. */ 1771#if defined (__stub_strstr) || defined (__stub___strstr) 1772choke me 1773#else 1774strstr(); 1775#endif 1776 1777; return 0; } 1778EOF 1779if { (eval echo configure:1780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1780 rm -rf conftest* 1781 eval "ac_cv_func_strstr=yes" 1782else 1783 echo "configure: failed program was:" >&5 1784 cat conftest.$ac_ext >&5 1785 rm -rf conftest* 1786 eval "ac_cv_func_strstr=no" 1787fi 1788rm -f conftest* 1789fi 1790 1791if eval "test \"`echo '$ac_cv_func_'strstr`\" = yes"; then 1792 echo "$ac_t""yes" 1>&6 1793 : 1794else 1795 echo "$ac_t""no" 1>&6 1796cat >> confdefs.h <<\EOF 1797#define NO_STRSTR 1 1798EOF 1799 1800echo X 'NO_STRSTR' '1' >> defines.out 1801fi 1802 1803echo $ac_n "checking for strerror""... $ac_c" 1>&6 1804echo "configure:1805: checking for strerror" >&5 1805if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then 1806 echo $ac_n "(cached) $ac_c" 1>&6 1807else 1808 cat > conftest.$ac_ext <<EOF 1809#line 1810 "configure" 1810#include "confdefs.h" 1811/* System header to define __stub macros and hopefully few prototypes, 1812 which can conflict with char strerror(); below. */ 1813#include <assert.h> 1814/* Override any gcc2 internal prototype to avoid an error. */ 1815/* We use char because int might match the return type of a gcc2 1816 builtin and then its argument prototype would still apply. */ 1817char strerror(); 1818 1819int main() { 1820 1821/* The GNU C library defines this for functions which it implements 1822 to always fail with ENOSYS. Some functions are actually named 1823 something starting with __ and the normal name is an alias. */ 1824#if defined (__stub_strerror) || defined (__stub___strerror) 1825choke me 1826#else 1827strerror(); 1828#endif 1829 1830; return 0; } 1831EOF 1832if { (eval echo configure:1833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1833 rm -rf conftest* 1834 eval "ac_cv_func_strerror=yes" 1835else 1836 echo "configure: failed program was:" >&5 1837 cat conftest.$ac_ext >&5 1838 rm -rf conftest* 1839 eval "ac_cv_func_strerror=no" 1840fi 1841rm -f conftest* 1842fi 1843 1844if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then 1845 echo "$ac_t""yes" 1>&6 1846 : 1847else 1848 echo "$ac_t""no" 1>&6 1849cat >> confdefs.h <<\EOF 1850#define NO_STRERROR 1 1851EOF 1852 1853echo X 'NO_STRERROR' '1' >> defines.out 1854fi 1855 1856echo $ac_n "checking for vfprintf""... $ac_c" 1>&6 1857echo "configure:1858: checking for vfprintf" >&5 1858if eval "test \"`echo '$''{'ac_cv_func_vfprintf'+set}'`\" = set"; then 1859 echo $ac_n "(cached) $ac_c" 1>&6 1860else 1861 cat > conftest.$ac_ext <<EOF 1862#line 1863 "configure" 1863#include "confdefs.h" 1864/* System header to define __stub macros and hopefully few prototypes, 1865 which can conflict with char vfprintf(); below. */ 1866#include <assert.h> 1867/* Override any gcc2 internal prototype to avoid an error. */ 1868/* We use char because int might match the return type of a gcc2 1869 builtin and then its argument prototype would still apply. */ 1870char vfprintf(); 1871 1872int main() { 1873 1874/* The GNU C library defines this for functions which it implements 1875 to always fail with ENOSYS. Some functions are actually named 1876 something starting with __ and the normal name is an alias. */ 1877#if defined (__stub_vfprintf) || defined (__stub___vfprintf) 1878choke me 1879#else 1880vfprintf(); 1881#endif 1882 1883; return 0; } 1884EOF 1885if { (eval echo configure:1886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1886 rm -rf conftest* 1887 eval "ac_cv_func_vfprintf=yes" 1888else 1889 echo "configure: failed program was:" >&5 1890 cat conftest.$ac_ext >&5 1891 rm -rf conftest* 1892 eval "ac_cv_func_vfprintf=no" 1893fi 1894rm -f conftest* 1895fi 1896 1897if eval "test \"`echo '$ac_cv_func_'vfprintf`\" = yes"; then 1898 echo "$ac_t""yes" 1>&6 1899 : 1900else 1901 echo "$ac_t""no" 1>&6 1902cat >> confdefs.h <<\EOF 1903#define NO_VFPRINTF 1 1904EOF 1905 1906echo X 'NO_VFPRINTF' '1' >> defines.out 1907fi 1908 1909echo $ac_n "checking for fmod""... $ac_c" 1>&6 1910echo "configure:1911: checking for fmod" >&5 1911if eval "test \"`echo '$''{'ac_cv_func_fmod'+set}'`\" = set"; then 1912 echo $ac_n "(cached) $ac_c" 1>&6 1913else 1914 cat > conftest.$ac_ext <<EOF 1915#line 1916 "configure" 1916#include "confdefs.h" 1917/* System header to define __stub macros and hopefully few prototypes, 1918 which can conflict with char fmod(); below. */ 1919#include <assert.h> 1920/* Override any gcc2 internal prototype to avoid an error. */ 1921/* We use char because int might match the return type of a gcc2 1922 builtin and then its argument prototype would still apply. */ 1923char fmod(); 1924 1925int main() { 1926 1927/* The GNU C library defines this for functions which it implements 1928 to always fail with ENOSYS. Some functions are actually named 1929 something starting with __ and the normal name is an alias. */ 1930#if defined (__stub_fmod) || defined (__stub___fmod) 1931choke me 1932#else 1933fmod(); 1934#endif 1935 1936; return 0; } 1937EOF 1938if { (eval echo configure:1939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1939 rm -rf conftest* 1940 eval "ac_cv_func_fmod=yes" 1941else 1942 echo "configure: failed program was:" >&5 1943 cat conftest.$ac_ext >&5 1944 rm -rf conftest* 1945 eval "ac_cv_func_fmod=no" 1946fi 1947rm -f conftest* 1948fi 1949 1950if eval "test \"`echo '$ac_cv_func_'fmod`\" = yes"; then 1951 echo "$ac_t""yes" 1>&6 1952 : 1953else 1954 echo "$ac_t""no" 1>&6 1955cat >> confdefs.h <<\EOF 1956#define NO_FMOD 1 1957EOF 1958 1959echo X 'NO_FMOD' '1' >> defines.out 1960fi 1961 1962echo $ac_n "checking for matherr""... $ac_c" 1>&6 1963echo "configure:1964: checking for matherr" >&5 1964if eval "test \"`echo '$''{'ac_cv_func_matherr'+set}'`\" = set"; then 1965 echo $ac_n "(cached) $ac_c" 1>&6 1966else 1967 cat > conftest.$ac_ext <<EOF 1968#line 1969 "configure" 1969#include "confdefs.h" 1970/* System header to define __stub macros and hopefully few prototypes, 1971 which can conflict with char matherr(); below. */ 1972#include <assert.h> 1973/* Override any gcc2 internal prototype to avoid an error. */ 1974/* We use char because int might match the return type of a gcc2 1975 builtin and then its argument prototype would still apply. */ 1976char matherr(); 1977 1978int main() { 1979 1980/* The GNU C library defines this for functions which it implements 1981 to always fail with ENOSYS. Some functions are actually named 1982 something starting with __ and the normal name is an alias. */ 1983#if defined (__stub_matherr) || defined (__stub___matherr) 1984choke me 1985#else 1986matherr(); 1987#endif 1988 1989; return 0; } 1990EOF 1991if { (eval echo configure:1992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1992 rm -rf conftest* 1993 eval "ac_cv_func_matherr=yes" 1994else 1995 echo "configure: failed program was:" >&5 1996 cat conftest.$ac_ext >&5 1997 rm -rf conftest* 1998 eval "ac_cv_func_matherr=no" 1999fi 2000rm -f conftest* 2001fi 2002 2003if eval "test \"`echo '$ac_cv_func_'matherr`\" = yes"; then 2004 echo "$ac_t""yes" 1>&6 2005 : 2006else 2007 echo "$ac_t""no" 1>&6 2008cat >> confdefs.h <<\EOF 2009#define NO_MATHERR 1 2010EOF 2011 2012echo X 'NO_MATHERR' '1' >> defines.out 2013fi 2014 2015cat > conftest.$ac_ext <<EOF 2016#line 2017 "configure" 2017#include "confdefs.h" 2018#include <stdio.h> 2019EOF 2020if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2021 egrep "[[^v]]fprintf" >/dev/null 2>&1; then 2022 : 2023else 2024 rm -rf conftest* 2025 cat >> confdefs.h <<\EOF 2026#define NO_FPRINTF_IN_STDIO 1 2027EOF 2028 2029echo X 'NO_FPRINTF_IN_STDIO' '1' >> defines.out 2030fi 2031rm -f conftest* 2032 2033cat > conftest.$ac_ext <<EOF 2034#line 2035 "configure" 2035#include "confdefs.h" 2036#include <stdio.h> 2037EOF 2038if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2039 egrep "[[^v]]sprintf" >/dev/null 2>&1; then 2040 : 2041else 2042 rm -rf conftest* 2043 cat >> confdefs.h <<\EOF 2044#define NO_SPRINTF_IN_STDIO 1 2045EOF 2046 2047echo X 'NO_SPRINTF_IN_STDIO' '1' >> defines.out 2048fi 2049rm -f conftest* 2050 2051ac_safe=`echo "limits.h" | sed 'y%./+-%__p_%'` 2052echo $ac_n "checking for limits.h""... $ac_c" 1>&6 2053echo "configure:2054: checking for limits.h" >&5 2054if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2055 echo $ac_n "(cached) $ac_c" 1>&6 2056else 2057 cat > conftest.$ac_ext <<EOF 2058#line 2059 "configure" 2059#include "confdefs.h" 2060#include <limits.h> 2061EOF 2062ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2063{ (eval echo configure:2064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2064ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2065if test -z "$ac_err"; then 2066 rm -rf conftest* 2067 eval "ac_cv_header_$ac_safe=yes" 2068else 2069 echo "$ac_err" >&5 2070 echo "configure: failed program was:" >&5 2071 cat conftest.$ac_ext >&5 2072 rm -rf conftest* 2073 eval "ac_cv_header_$ac_safe=no" 2074fi 2075rm -f conftest* 2076fi 2077if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2078 echo "$ac_t""yes" 1>&6 2079 limits_h=yes 2080else 2081 echo "$ac_t""no" 1>&6 2082fi 2083 2084if test "$limits_h" = yes ; then : 2085else 2086ac_safe=`echo "values.h" | sed 'y%./+-%__p_%'` 2087echo $ac_n "checking for values.h""... $ac_c" 1>&6 2088echo "configure:2089: checking for values.h" >&5 2089if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2090 echo $ac_n "(cached) $ac_c" 1>&6 2091else 2092 cat > conftest.$ac_ext <<EOF 2093#line 2094 "configure" 2094#include "confdefs.h" 2095#include <values.h> 2096EOF 2097ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2098{ (eval echo configure:2099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2099ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2100if test -z "$ac_err"; then 2101 rm -rf conftest* 2102 eval "ac_cv_header_$ac_safe=yes" 2103else 2104 echo "$ac_err" >&5 2105 echo "configure: failed program was:" >&5 2106 cat conftest.$ac_ext >&5 2107 rm -rf conftest* 2108 eval "ac_cv_header_$ac_safe=no" 2109fi 2110rm -f conftest* 2111fi 2112if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2113 echo "$ac_t""yes" 1>&6 2114 values_h=yes 2115else 2116 echo "$ac_t""no" 1>&6 2117fi 2118 2119 if test "$values_h" = yes ; then 2120 if test "$cross_compiling" = yes; then 2121 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 2122else 2123 cat > conftest.$ac_ext <<EOF 2124#line 2125 "configure" 2125#include "confdefs.h" 2126#include <values.h> 2127#include <stdio.h> 2128int main() 2129{ FILE *out = fopen("maxint.out", "w") ; 2130 if ( ! out ) exit(1) ; 2131 fprintf(out, "X MAX__INT 0x%x\n", MAXINT) ; 2132 fprintf(out, "X MAX__LONG 0x%lx\n", MAXLONG) ; 2133 exit(0) ; return(0) ; 2134} 2135 2136EOF 2137if { (eval echo configure:2138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2138then 2139 maxint_set=1 2140else 2141 echo "configure: failed program was:" >&5 2142 cat conftest.$ac_ext >&5 2143 rm -fr conftest* 2144 { echo "configure: error: C program to compute maxint and maxlong failed. 2145Please send bug report to andrewsumner@yahoo.com." 1>&2; exit 1; } 2146fi 2147rm -fr conftest* 2148fi 2149 2150 fi 2151if test "$maxint_set" != 1 ; then 2152# compute it -- assumes two's complement 2153if test "$cross_compiling" = yes; then 2154 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 2155else 2156 cat > conftest.$ac_ext <<EOF 2157#line 2158 "configure" 2158#include "confdefs.h" 2159#include <stdio.h> 2160int main() 2161{ int y ; long yy ; 2162 FILE *out ; 2163 2164 if ( !(out = fopen("maxint.out","w")) ) exit(1) ; 2165 /* find max int and max long */ 2166 y = 0x1000 ; 2167 while ( y > 0 ) y *= 2 ; 2168 fprintf(out,"X MAX__INT 0x%x\n", y-1) ; 2169 yy = 0x1000 ; 2170 while ( yy > 0 ) yy *= 2 ; 2171 fprintf(out,"X MAX__LONG 0x%lx\n", yy-1) ; 2172 exit(0) ; 2173 return 0 ; 2174 } 2175EOF 2176if { (eval echo configure:2177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2177then 2178 : 2179else 2180 echo "configure: failed program was:" >&5 2181 cat conftest.$ac_ext >&5 2182 rm -fr conftest* 2183 { echo "configure: error: C program to compute maxint and maxlong failed. 2184Please send bug report to andrewsumner@yahoo.com." 1>&2; exit 1; } 2185fi 2186rm -fr conftest* 2187fi 2188 2189fi 2190cat maxint.out >> defines.out ; rm -f maxint.out 2191fi ; 2192 2193awka_have_sockets=no 2194SOCKET_DEFINE=0 2195# Check for system-dependent location of socket libraries 2196 2197SOCKET_LIBS= 2198if test "$ISC" = yes; then 2199 SOCKET_LIBS="-lnsl_s -linet" 2200else 2201 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X 2202 # libraries were built with DECnet support. And karl@cs.umb.edu says 2203 # the Alpha needs dnet_stub (dnet does not exist). 2204 # 2205 # ADR: Is this needed just for sockets??? 2206# AC_CHECK_LIB(dnet, dnet_ntoa, [SOCKET_LIBS="$SOCKET_LIBS -ldnet"]) 2207# if test $ac_cv_lib_dnet_ntoa = no; then 2208# AC_CHECK_LIB(dnet_stub, dnet_ntoa, 2209# [SOCKET_LIBS="$SOCKET_LIBS -ldnet_stub"]) 2210# fi 2211 2212 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 2213 # to get the SysV transport functions. 2214 # chad@anasazi.com says the Pyramid MIS-ES running DC/OSx (SVR4) 2215 # needs -lnsl. 2216 # The nsl library prevents programs from opening the X display 2217 # on Irix 5.2, according to dickey@clark.net. 2218 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 2219echo "configure:2220: checking for gethostbyname" >&5 2220if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then 2221 echo $ac_n "(cached) $ac_c" 1>&6 2222else 2223 cat > conftest.$ac_ext <<EOF 2224#line 2225 "configure" 2225#include "confdefs.h" 2226/* System header to define __stub macros and hopefully few prototypes, 2227 which can conflict with char gethostbyname(); below. */ 2228#include <assert.h> 2229/* Override any gcc2 internal prototype to avoid an error. */ 2230/* We use char because int might match the return type of a gcc2 2231 builtin and then its argument prototype would still apply. */ 2232char gethostbyname(); 2233 2234int main() { 2235 2236/* The GNU C library defines this for functions which it implements 2237 to always fail with ENOSYS. Some functions are actually named 2238 something starting with __ and the normal name is an alias. */ 2239#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 2240choke me 2241#else 2242gethostbyname(); 2243#endif 2244 2245; return 0; } 2246EOF 2247if { (eval echo configure:2248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2248 rm -rf conftest* 2249 eval "ac_cv_func_gethostbyname=yes" 2250else 2251 echo "configure: failed program was:" >&5 2252 cat conftest.$ac_ext >&5 2253 rm -rf conftest* 2254 eval "ac_cv_func_gethostbyname=no" 2255fi 2256rm -f conftest* 2257fi 2258 2259if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then 2260 echo "$ac_t""yes" 1>&6 2261 : 2262else 2263 echo "$ac_t""no" 1>&6 2264fi 2265 2266 if test $ac_cv_func_gethostbyname = no; then 2267 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 2268echo "configure:2269: checking for gethostbyname in -lnsl" >&5 2269ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 2270if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2271 echo $ac_n "(cached) $ac_c" 1>&6 2272else 2273 ac_save_LIBS="$LIBS" 2274LIBS="-lnsl $LIBS" 2275cat > conftest.$ac_ext <<EOF 2276#line 2277 "configure" 2277#include "confdefs.h" 2278/* Override any gcc2 internal prototype to avoid an error. */ 2279/* We use char because int might match the return type of a gcc2 2280 builtin and then its argument prototype would still apply. */ 2281char gethostbyname(); 2282 2283int main() { 2284gethostbyname() 2285; return 0; } 2286EOF 2287if { (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_lib_$ac_lib_var=yes" 2290else 2291 echo "configure: failed program was:" >&5 2292 cat conftest.$ac_ext >&5 2293 rm -rf conftest* 2294 eval "ac_cv_lib_$ac_lib_var=no" 2295fi 2296rm -f conftest* 2297LIBS="$ac_save_LIBS" 2298 2299fi 2300if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2301 echo "$ac_t""yes" 1>&6 2302 SOCKET_LIBS="$SOCKET_LIBS -lnsl" 2303else 2304 echo "$ac_t""no" 1>&6 2305fi 2306 2307 fi 2308 2309 # lieder@skyler.mavd.honeywell.com says without -lsocket, 2310 # socket/setsockopt and other routines are undefined under SCO ODT 2311 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 2312 # on later versions), says simon@lia.di.epfl.ch: it contains 2313 # gethostby* variants that don't use the nameserver (or something). 2314 # -lsocket must be given before -lnsl if both are needed. 2315 # We assume that if connect needs -lnsl, so does gethostbyname. 2316 echo $ac_n "checking for connect""... $ac_c" 1>&6 2317echo "configure:2318: checking for connect" >&5 2318if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then 2319 echo $ac_n "(cached) $ac_c" 1>&6 2320else 2321 cat > conftest.$ac_ext <<EOF 2322#line 2323 "configure" 2323#include "confdefs.h" 2324/* System header to define __stub macros and hopefully few prototypes, 2325 which can conflict with char connect(); below. */ 2326#include <assert.h> 2327/* Override any gcc2 internal prototype to avoid an error. */ 2328/* We use char because int might match the return type of a gcc2 2329 builtin and then its argument prototype would still apply. */ 2330char connect(); 2331 2332int main() { 2333 2334/* The GNU C library defines this for functions which it implements 2335 to always fail with ENOSYS. Some functions are actually named 2336 something starting with __ and the normal name is an alias. */ 2337#if defined (__stub_connect) || defined (__stub___connect) 2338choke me 2339#else 2340connect(); 2341#endif 2342 2343; return 0; } 2344EOF 2345if { (eval echo configure:2346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2346 rm -rf conftest* 2347 eval "ac_cv_func_connect=yes" 2348else 2349 echo "configure: failed program was:" >&5 2350 cat conftest.$ac_ext >&5 2351 rm -rf conftest* 2352 eval "ac_cv_func_connect=no" 2353fi 2354rm -f conftest* 2355fi 2356 2357if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then 2358 echo "$ac_t""yes" 1>&6 2359 : 2360else 2361 echo "$ac_t""no" 1>&6 2362fi 2363 2364 if test $ac_cv_func_connect = no; then 2365 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 2366echo "configure:2367: checking for connect in -lsocket" >&5 2367ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 2368if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2369 echo $ac_n "(cached) $ac_c" 1>&6 2370else 2371 ac_save_LIBS="$LIBS" 2372LIBS="-lsocket $SOCKET_LIBS $LIBS" 2373cat > conftest.$ac_ext <<EOF 2374#line 2375 "configure" 2375#include "confdefs.h" 2376/* Override any gcc2 internal prototype to avoid an error. */ 2377/* We use char because int might match the return type of a gcc2 2378 builtin and then its argument prototype would still apply. */ 2379char connect(); 2380 2381int main() { 2382connect() 2383; return 0; } 2384EOF 2385if { (eval echo configure:2386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2386 rm -rf conftest* 2387 eval "ac_cv_lib_$ac_lib_var=yes" 2388else 2389 echo "configure: failed program was:" >&5 2390 cat conftest.$ac_ext >&5 2391 rm -rf conftest* 2392 eval "ac_cv_lib_$ac_lib_var=no" 2393fi 2394rm -f conftest* 2395LIBS="$ac_save_LIBS" 2396 2397fi 2398if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2399 echo "$ac_t""yes" 1>&6 2400 SOCKET_LIBS="-lsocket $SOCKET_LIBS" 2401 awka_have_sockets=yes 2402else 2403 echo "$ac_t""no" 1>&6 2404fi 2405 2406 else 2407 awka_have_sockets=yes 2408 fi 2409fi 2410if test "${awka_have_sockets}" = "yes" 2411then 2412 SOCKET_DEFINE=1 2413 echo $ac_n "checking where to find the socket library calls""... $ac_c" 1>&6 2414echo "configure:2415: checking where to find the socket library calls" >&5 2415 case "${SOCKET_LIBS}" in 2416 ?*) awka_lib_loc="${SOCKET_LIBS}" ;; 2417 *) awka_lib_loc="the standard library" ;; 2418 esac 2419 echo "$ac_t""${awka_lib_loc}" 1>&6 2420 cat >> confdefs.h <<\EOF 2421#define HAVE_SOCKETS 1 2422EOF 2423 2424fi 2425echo "X awka_SOCKET_LIBS \"$SOCKET_LIBS\"" >> defines.out 2426 2427 2428echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2429echo "configure:2430: checking whether time.h and sys/time.h may both be included" >&5 2430if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 2431 echo $ac_n "(cached) $ac_c" 1>&6 2432else 2433 cat > conftest.$ac_ext <<EOF 2434#line 2435 "configure" 2435#include "confdefs.h" 2436#include <sys/types.h> 2437#include <sys/time.h> 2438#include <time.h> 2439int main() { 2440struct tm *tp; 2441; return 0; } 2442EOF 2443if { (eval echo configure:2444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2444 rm -rf conftest* 2445 ac_cv_header_time=yes 2446else 2447 echo "configure: failed program was:" >&5 2448 cat conftest.$ac_ext >&5 2449 rm -rf conftest* 2450 ac_cv_header_time=no 2451fi 2452rm -f conftest* 2453fi 2454 2455echo "$ac_t""$ac_cv_header_time" 1>&6 2456if test $ac_cv_header_time = yes; then 2457 cat >> confdefs.h <<\EOF 2458#define TIME_WITH_SYS_TIME 1 2459EOF 2460 2461fi 2462 2463echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 2464echo "configure:2465: checking whether struct tm is in sys/time.h or time.h" >&5 2465if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 2466 echo $ac_n "(cached) $ac_c" 1>&6 2467else 2468 cat > conftest.$ac_ext <<EOF 2469#line 2470 "configure" 2470#include "confdefs.h" 2471#include <sys/types.h> 2472#include <time.h> 2473int main() { 2474struct tm *tp; tp->tm_sec; 2475; return 0; } 2476EOF 2477if { (eval echo configure:2478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2478 rm -rf conftest* 2479 ac_cv_struct_tm=time.h 2480else 2481 echo "configure: failed program was:" >&5 2482 cat conftest.$ac_ext >&5 2483 rm -rf conftest* 2484 ac_cv_struct_tm=sys/time.h 2485fi 2486rm -f conftest* 2487fi 2488 2489echo "$ac_t""$ac_cv_struct_tm" 1>&6 2490if test $ac_cv_struct_tm = sys/time.h; then 2491 cat >> confdefs.h <<\EOF 2492#define TM_IN_SYS_TIME 1 2493EOF 2494 2495fi 2496 2497echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 2498echo "configure:2499: checking for tm_zone in struct tm" >&5 2499if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then 2500 echo $ac_n "(cached) $ac_c" 1>&6 2501else 2502 cat > conftest.$ac_ext <<EOF 2503#line 2504 "configure" 2504#include "confdefs.h" 2505#include <sys/types.h> 2506#include <$ac_cv_struct_tm> 2507int main() { 2508struct tm tm; tm.tm_zone; 2509; return 0; } 2510EOF 2511if { (eval echo configure:2512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2512 rm -rf conftest* 2513 ac_cv_struct_tm_zone=yes 2514else 2515 echo "configure: failed program was:" >&5 2516 cat conftest.$ac_ext >&5 2517 rm -rf conftest* 2518 ac_cv_struct_tm_zone=no 2519fi 2520rm -f conftest* 2521fi 2522 2523echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 2524if test "$ac_cv_struct_tm_zone" = yes; then 2525 cat >> confdefs.h <<\EOF 2526#define HAVE_TM_ZONE 1 2527EOF 2528 2529else 2530 echo $ac_n "checking for tzname""... $ac_c" 1>&6 2531echo "configure:2532: checking for tzname" >&5 2532if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then 2533 echo $ac_n "(cached) $ac_c" 1>&6 2534else 2535 cat > conftest.$ac_ext <<EOF 2536#line 2537 "configure" 2537#include "confdefs.h" 2538#include <time.h> 2539#ifndef tzname /* For SGI. */ 2540extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 2541#endif 2542int main() { 2543atoi(*tzname); 2544; return 0; } 2545EOF 2546if { (eval echo configure:2547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2547 rm -rf conftest* 2548 ac_cv_var_tzname=yes 2549else 2550 echo "configure: failed program was:" >&5 2551 cat conftest.$ac_ext >&5 2552 rm -rf conftest* 2553 ac_cv_var_tzname=no 2554fi 2555rm -f conftest* 2556fi 2557 2558echo "$ac_t""$ac_cv_var_tzname" 1>&6 2559 if test $ac_cv_var_tzname = yes; then 2560 cat >> confdefs.h <<\EOF 2561#define HAVE_TZNAME 1 2562EOF 2563 2564 fi 2565fi 2566 2567echo $ac_n "checking for time""... $ac_c" 1>&6 2568echo "configure:2569: checking for time" >&5 2569if eval "test \"`echo '$''{'ac_cv_func_time'+set}'`\" = set"; then 2570 echo $ac_n "(cached) $ac_c" 1>&6 2571else 2572 cat > conftest.$ac_ext <<EOF 2573#line 2574 "configure" 2574#include "confdefs.h" 2575/* System header to define __stub macros and hopefully few prototypes, 2576 which can conflict with char time(); below. */ 2577#include <assert.h> 2578/* Override any gcc2 internal prototype to avoid an error. */ 2579/* We use char because int might match the return type of a gcc2 2580 builtin and then its argument prototype would still apply. */ 2581char time(); 2582 2583int main() { 2584 2585/* The GNU C library defines this for functions which it implements 2586 to always fail with ENOSYS. Some functions are actually named 2587 something starting with __ and the normal name is an alias. */ 2588#if defined (__stub_time) || defined (__stub___time) 2589choke me 2590#else 2591time(); 2592#endif 2593 2594; return 0; } 2595EOF 2596if { (eval echo configure:2597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2597 rm -rf conftest* 2598 eval "ac_cv_func_time=yes" 2599else 2600 echo "configure: failed program was:" >&5 2601 cat conftest.$ac_ext >&5 2602 rm -rf conftest* 2603 eval "ac_cv_func_time=no" 2604fi 2605rm -f conftest* 2606fi 2607 2608if eval "test \"`echo '$ac_cv_func_'time`\" = yes"; then 2609 echo "$ac_t""yes" 1>&6 2610 : 2611else 2612 echo "$ac_t""no" 1>&6 2613cat >> confdefs.h <<\EOF 2614#define NO_TIME 1 2615EOF 2616 2617echo X 'NO_TIME' '1' >> defines.out 2618fi 2619 2620echo $ac_n "checking for mktime""... $ac_c" 1>&6 2621echo "configure:2622: checking for mktime" >&5 2622if eval "test \"`echo '$''{'ac_cv_func_mktime'+set}'`\" = set"; then 2623 echo $ac_n "(cached) $ac_c" 1>&6 2624else 2625 cat > conftest.$ac_ext <<EOF 2626#line 2627 "configure" 2627#include "confdefs.h" 2628/* System header to define __stub macros and hopefully few prototypes, 2629 which can conflict with char mktime(); below. */ 2630#include <assert.h> 2631/* Override any gcc2 internal prototype to avoid an error. */ 2632/* We use char because int might match the return type of a gcc2 2633 builtin and then its argument prototype would still apply. */ 2634char mktime(); 2635 2636int main() { 2637 2638/* The GNU C library defines this for functions which it implements 2639 to always fail with ENOSYS. Some functions are actually named 2640 something starting with __ and the normal name is an alias. */ 2641#if defined (__stub_mktime) || defined (__stub___mktime) 2642choke me 2643#else 2644mktime(); 2645#endif 2646 2647; return 0; } 2648EOF 2649if { (eval echo configure:2650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2650 rm -rf conftest* 2651 eval "ac_cv_func_mktime=yes" 2652else 2653 echo "configure: failed program was:" >&5 2654 cat conftest.$ac_ext >&5 2655 rm -rf conftest* 2656 eval "ac_cv_func_mktime=no" 2657fi 2658rm -f conftest* 2659fi 2660 2661if eval "test \"`echo '$ac_cv_func_'mktime`\" = yes"; then 2662 echo "$ac_t""yes" 1>&6 2663 : 2664else 2665 echo "$ac_t""no" 1>&6 2666cat >> confdefs.h <<\EOF 2667#define NO_MKTIME 1 2668EOF 2669 2670echo X 'NO_MKTIME' '1' >> defines.out 2671fi 2672 2673echo $ac_n "checking for asctime""... $ac_c" 1>&6 2674echo "configure:2675: checking for asctime" >&5 2675if eval "test \"`echo '$''{'ac_cv_func_asctime'+set}'`\" = set"; then 2676 echo $ac_n "(cached) $ac_c" 1>&6 2677else 2678 cat > conftest.$ac_ext <<EOF 2679#line 2680 "configure" 2680#include "confdefs.h" 2681/* System header to define __stub macros and hopefully few prototypes, 2682 which can conflict with char asctime(); below. */ 2683#include <assert.h> 2684/* Override any gcc2 internal prototype to avoid an error. */ 2685/* We use char because int might match the return type of a gcc2 2686 builtin and then its argument prototype would still apply. */ 2687char asctime(); 2688 2689int main() { 2690 2691/* The GNU C library defines this for functions which it implements 2692 to always fail with ENOSYS. Some functions are actually named 2693 something starting with __ and the normal name is an alias. */ 2694#if defined (__stub_asctime) || defined (__stub___asctime) 2695choke me 2696#else 2697asctime(); 2698#endif 2699 2700; return 0; } 2701EOF 2702if { (eval echo configure:2703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2703 rm -rf conftest* 2704 eval "ac_cv_func_asctime=yes" 2705else 2706 echo "configure: failed program was:" >&5 2707 cat conftest.$ac_ext >&5 2708 rm -rf conftest* 2709 eval "ac_cv_func_asctime=no" 2710fi 2711rm -f conftest* 2712fi 2713 2714if eval "test \"`echo '$ac_cv_func_'asctime`\" = yes"; then 2715 echo "$ac_t""yes" 1>&6 2716 : 2717else 2718 echo "$ac_t""no" 1>&6 2719cat >> confdefs.h <<\EOF 2720#define NO_ASCTIME 1 2721EOF 2722 2723echo X 'NO_ASCTIME' '1' >> defines.out 2724fi 2725 2726echo $ac_n "checking for localtime""... $ac_c" 1>&6 2727echo "configure:2728: checking for localtime" >&5 2728if eval "test \"`echo '$''{'ac_cv_func_localtime'+set}'`\" = set"; then 2729 echo $ac_n "(cached) $ac_c" 1>&6 2730else 2731 cat > conftest.$ac_ext <<EOF 2732#line 2733 "configure" 2733#include "confdefs.h" 2734/* System header to define __stub macros and hopefully few prototypes, 2735 which can conflict with char localtime(); below. */ 2736#include <assert.h> 2737/* Override any gcc2 internal prototype to avoid an error. */ 2738/* We use char because int might match the return type of a gcc2 2739 builtin and then its argument prototype would still apply. */ 2740char localtime(); 2741 2742int main() { 2743 2744/* The GNU C library defines this for functions which it implements 2745 to always fail with ENOSYS. Some functions are actually named 2746 something starting with __ and the normal name is an alias. */ 2747#if defined (__stub_localtime) || defined (__stub___localtime) 2748choke me 2749#else 2750localtime(); 2751#endif 2752 2753; return 0; } 2754EOF 2755if { (eval echo configure:2756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2756 rm -rf conftest* 2757 eval "ac_cv_func_localtime=yes" 2758else 2759 echo "configure: failed program was:" >&5 2760 cat conftest.$ac_ext >&5 2761 rm -rf conftest* 2762 eval "ac_cv_func_localtime=no" 2763fi 2764rm -f conftest* 2765fi 2766 2767if eval "test \"`echo '$ac_cv_func_'localtime`\" = yes"; then 2768 echo "$ac_t""yes" 1>&6 2769 : 2770else 2771 echo "$ac_t""no" 1>&6 2772cat >> confdefs.h <<\EOF 2773#define NO_LOCALTIME 1 2774EOF 2775 2776echo X 'NO_LOCALTIME' '1' >> defines.out 2777fi 2778 2779echo $ac_n "checking for gmtime""... $ac_c" 1>&6 2780echo "configure:2781: checking for gmtime" >&5 2781if eval "test \"`echo '$''{'ac_cv_func_gmtime'+set}'`\" = set"; then 2782 echo $ac_n "(cached) $ac_c" 1>&6 2783else 2784 cat > conftest.$ac_ext <<EOF 2785#line 2786 "configure" 2786#include "confdefs.h" 2787/* System header to define __stub macros and hopefully few prototypes, 2788 which can conflict with char gmtime(); below. */ 2789#include <assert.h> 2790/* Override any gcc2 internal prototype to avoid an error. */ 2791/* We use char because int might match the return type of a gcc2 2792 builtin and then its argument prototype would still apply. */ 2793char gmtime(); 2794 2795int main() { 2796 2797/* The GNU C library defines this for functions which it implements 2798 to always fail with ENOSYS. Some functions are actually named 2799 something starting with __ and the normal name is an alias. */ 2800#if defined (__stub_gmtime) || defined (__stub___gmtime) 2801choke me 2802#else 2803gmtime(); 2804#endif 2805 2806; return 0; } 2807EOF 2808if { (eval echo configure:2809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2809 rm -rf conftest* 2810 eval "ac_cv_func_gmtime=yes" 2811else 2812 echo "configure: failed program was:" >&5 2813 cat conftest.$ac_ext >&5 2814 rm -rf conftest* 2815 eval "ac_cv_func_gmtime=no" 2816fi 2817rm -f conftest* 2818fi 2819 2820if eval "test \"`echo '$ac_cv_func_'gmtime`\" = yes"; then 2821 echo "$ac_t""yes" 1>&6 2822 : 2823else 2824 echo "$ac_t""no" 1>&6 2825cat >> confdefs.h <<\EOF 2826#define NO_GMTIME 1 2827EOF 2828 2829echo X 'NO_GMTIME' '1' >> defines.out 2830fi 2831 2832echo $ac_n "checking for .exe extension""... $ac_c" 1>&6 2833echo "configure:2834: checking for .exe extension" >&5 2834cat > conftest.$ac_ext <<EOF 2835#line 2836 "configure" 2836#include "confdefs.h" 2837int this() { return __CYGWIN32__; } 2838int main() { 2839return this(); 2840; return 0; } 2841EOF 2842if { (eval echo configure:2843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2843 rm -rf conftest* 2844 cygnus=".exe" 2845else 2846 echo "configure: failed program was:" >&5 2847 cat conftest.$ac_ext >&5 2848 rm -rf conftest* 2849 cygnus=no 2850fi 2851rm -f conftest* 2852SHARED_LIB='' 2853SHAREDFLAG='' 2854if test "$cygnus" = no 2855then 2856 cat > conftest.$ac_ext <<EOF 2857#line 2858 "configure" 2858#include "confdefs.h" 2859int this() { return __DJGPP__; } 2860int main() { 2861return this(); 2862; return 0; } 2863EOF 2864if { (eval echo configure:2865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2865 rm -rf conftest* 2866 djgpp=".exe" 2867else 2868 echo "configure: failed program was:" >&5 2869 cat conftest.$ac_ext >&5 2870 rm -rf conftest* 2871 djgpp=no 2872fi 2873rm -f conftest* 2874 echo "$ac_t""$djgpp" 1>&6 2875 if test "$djgpp" = no 2876 then 2877 EXE='' 2878 if test "$GCC" = yes 2879 then 2880 SHARED_LIB='libawka.so' 2881 SHAREDFLAG='-fPIC' 2882 fi 2883 else 2884 EXE=$djgpp 2885 fi 2886else 2887 echo "$ac_t""$cygnus" 1>&6 2888 EXE=$cygnus 2889fi 2890 2891 2892 2893 2894# output config.h 2895rm -f config.h 2896( 2897cat<<'EOF' 2898/* config.h -- generated by configure */ 2899#ifndef CONFIG_H 2900#define CONFIG_H 2901 2902EOF 2903echo "X awka_CC \"$CC\"" >> defines.out 2904echo "X awka_CFLAGS \"$CFLAGS\"" >> defines.out 2905echo "X awka_shell \"$SH\"" >> defines.out 2906if [ "$SOCKET_DEFINE" = "1" ]; then echo "#define HAVE_SOCKETS 1"; fi; 2907if [ "$HAVE_PORTALS" = "1" ]; then echo "#define HAVE_PORTALS 1"; fi; 2908if [ "${ac_cv_header_sys_socket_h}" = "yes" ]; then echo "#define HAVE_SYS_SOCKET_H"; fi; 2909if [ "${ac_cv_header_unistd_h}" = "yes" ]; then echo "#define HAVE_UNISTD_H"; fi; 2910if [ "${ac_cv_header_netdb_h}" = "yes" ]; then echo "#define HAVE_NETDB_H"; fi; 2911if [ "${ac_cv_header_netinet_in_h}" = "yes" ]; then echo "#define HAVE_NETINET_IN_H"; fi; 2912if [ "${ac_cv_header_fcntl_h}" = "yes" ]; then echo "#define HAVE_FCNTL_H"; fi; 2913sed 's/^X/#define/' defines.out 2914cat<<'EOF' 2915 2916#define HAVE_REAL_PIPES 1 2917/* #define NO_BIN_CHARS */ 2918/* #define MEM_DEBUG */ 2919#endif /* CONFIG_H */ 2920EOF 2921) | tee config.h 2922rm defines.out 2923trap '' 1 2 15 2924cat > confcache <<\EOF 2925# This file is a shell script that caches the results of configure 2926# tests run on this system so they can be shared between configure 2927# scripts and configure runs. It is not useful on other systems. 2928# If it contains results you don't want to keep, you may remove or edit it. 2929# 2930# By default, configure uses ./config.cache as the cache file, 2931# creating it if it does not exist already. You can give configure 2932# the --cache-file=FILE option to use a different cache file; that is 2933# what configure does when it calls configure scripts in 2934# subdirectories, so they share the cache. 2935# Giving --cache-file=/dev/null disables caching, for debugging configure. 2936# config.status only pays attention to the cache file if you give it the 2937# --recheck option to rerun configure. 2938# 2939EOF 2940# The following way of writing the cache mishandles newlines in values, 2941# but we know of no workaround that is simple, portable, and efficient. 2942# So, don't put newlines in cache variables' values. 2943# Ultrix sh set writes to stderr and can't be redirected directly, 2944# and sets the high bit in the cache file unless we assign to the vars. 2945(set) 2>&1 | 2946 case `(ac_space=' '; set | grep ac_space) 2>&1` in 2947 *ac_space=\ *) 2948 # `set' does not quote correctly, so add quotes (double-quote substitution 2949 # turns \\\\ into \\, and sed turns \\ into \). 2950 sed -n \ 2951 -e "s/'/'\\\\''/g" \ 2952 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 2953 ;; 2954 *) 2955 # `set' quotes correctly as required by POSIX, so do not add quotes. 2956 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 2957 ;; 2958 esac >> confcache 2959if cmp -s $cache_file confcache; then 2960 : 2961else 2962 if test -w $cache_file; then 2963 echo "updating cache $cache_file" 2964 cat confcache > $cache_file 2965 else 2966 echo "not updating unwritable cache $cache_file" 2967 fi 2968fi 2969rm -f confcache 2970 2971trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 2972 2973test "x$prefix" = xNONE && prefix=$ac_default_prefix 2974# Let make expand exec_prefix. 2975test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 2976 2977# Any assignment to VPATH causes Sun make to only execute 2978# the first set of double-colon rules, so remove it if not needed. 2979# If there is a colon in the path, we need to keep it. 2980if test "x$srcdir" = x.; then 2981 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 2982fi 2983 2984trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 2985 2986# Transform confdefs.h into DEFS. 2987# Protect against shell expansion while executing Makefile rules. 2988# Protect against Makefile macro expansion. 2989cat > conftest.defs <<\EOF 2990s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g 2991s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g 2992s%\[%\\&%g 2993s%\]%\\&%g 2994s%\$%$$%g 2995EOF 2996DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` 2997rm -f conftest.defs 2998 2999 3000# Without the "./", some shells look in PATH for config.status. 3001: ${CONFIG_STATUS=./config.status} 3002 3003echo creating $CONFIG_STATUS 3004rm -f $CONFIG_STATUS 3005cat > $CONFIG_STATUS <<EOF 3006#! /bin/sh 3007# Generated automatically by configure. 3008# Run this file to recreate the current configuration. 3009# This directory was configured as follows, 3010# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 3011# 3012# $0 $ac_configure_args 3013# 3014# Compiler output produced by configure, useful for debugging 3015# configure, is in ./config.log if it exists. 3016 3017ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 3018for ac_option 3019do 3020 case "\$ac_option" in 3021 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 3022 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 3023 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 3024 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 3025 echo "$CONFIG_STATUS generated by autoconf version 2.13" 3026 exit 0 ;; 3027 -help | --help | --hel | --he | --h) 3028 echo "\$ac_cs_usage"; exit 0 ;; 3029 *) echo "\$ac_cs_usage"; exit 1 ;; 3030 esac 3031done 3032 3033ac_given_srcdir=$srcdir 3034 3035trap 'rm -fr `echo "Makefile lib/Makefile awka/Makefile test/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 3036EOF 3037cat >> $CONFIG_STATUS <<EOF 3038 3039# Protect against being on the right side of a sed subst in config.status. 3040sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 3041 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 3042$ac_vpsub 3043$extrasub 3044s%@SHELL@%$SHELL%g 3045s%@CFLAGS@%$CFLAGS%g 3046s%@CPPFLAGS@%$CPPFLAGS%g 3047s%@CXXFLAGS@%$CXXFLAGS%g 3048s%@FFLAGS@%$FFLAGS%g 3049s%@DEFS@%$DEFS%g 3050s%@LDFLAGS@%$LDFLAGS%g 3051s%@LIBS@%$LIBS%g 3052s%@exec_prefix@%$exec_prefix%g 3053s%@prefix@%$prefix%g 3054s%@program_transform_name@%$program_transform_name%g 3055s%@bindir@%$bindir%g 3056s%@sbindir@%$sbindir%g 3057s%@libexecdir@%$libexecdir%g 3058s%@datadir@%$datadir%g 3059s%@sysconfdir@%$sysconfdir%g 3060s%@sharedstatedir@%$sharedstatedir%g 3061s%@localstatedir@%$localstatedir%g 3062s%@libdir@%$libdir%g 3063s%@includedir@%$includedir%g 3064s%@oldincludedir@%$oldincludedir%g 3065s%@infodir@%$infodir%g 3066s%@mandir@%$mandir%g 3067s%@MANEXT@%$MANEXT%g 3068s%@BUILDLIB@%$BUILDLIB%g 3069s%@CC@%$CC%g 3070s%@CPP@%$CPP%g 3071s%@MATHLIB@%$MATHLIB%g 3072s%@AWK@%$AWK%g 3073s%@SH@%$SH%g 3074s%@YACC@%$YACC%g 3075s%@AR@%$AR%g 3076s%@RANLIB@%$RANLIB%g 3077s%@CMP@%$CMP%g 3078s%@SOCKET_LIBS@%$SOCKET_LIBS%g 3079s%@SHARED_LIB@%$SHARED_LIB%g 3080s%@SHAREDFLAG@%$SHAREDFLAG%g 3081s%@EXE@%$EXE%g 3082 3083CEOF 3084EOF 3085 3086cat >> $CONFIG_STATUS <<\EOF 3087 3088# Split the substitutions into bite-sized pieces for seds with 3089# small command number limits, like on Digital OSF/1 and HP-UX. 3090ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 3091ac_file=1 # Number of current file. 3092ac_beg=1 # First line for current file. 3093ac_end=$ac_max_sed_cmds # Line after last line for current file. 3094ac_more_lines=: 3095ac_sed_cmds="" 3096while $ac_more_lines; do 3097 if test $ac_beg -gt 1; then 3098 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 3099 else 3100 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 3101 fi 3102 if test ! -s conftest.s$ac_file; then 3103 ac_more_lines=false 3104 rm -f conftest.s$ac_file 3105 else 3106 if test -z "$ac_sed_cmds"; then 3107 ac_sed_cmds="sed -f conftest.s$ac_file" 3108 else 3109 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 3110 fi 3111 ac_file=`expr $ac_file + 1` 3112 ac_beg=$ac_end 3113 ac_end=`expr $ac_end + $ac_max_sed_cmds` 3114 fi 3115done 3116if test -z "$ac_sed_cmds"; then 3117 ac_sed_cmds=cat 3118fi 3119EOF 3120 3121cat >> $CONFIG_STATUS <<EOF 3122 3123CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile awka/Makefile test/Makefile"} 3124EOF 3125cat >> $CONFIG_STATUS <<\EOF 3126for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 3127 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 3128 case "$ac_file" in 3129 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 3130 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 3131 *) ac_file_in="${ac_file}.in" ;; 3132 esac 3133 3134 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 3135 3136 # Remove last slash and all that follows it. Not all systems have dirname. 3137 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 3138 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 3139 # The file is in a subdirectory. 3140 test ! -d "$ac_dir" && mkdir "$ac_dir" 3141 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 3142 # A "../" for each directory in $ac_dir_suffix. 3143 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 3144 else 3145 ac_dir_suffix= ac_dots= 3146 fi 3147 3148 case "$ac_given_srcdir" in 3149 .) srcdir=. 3150 if test -z "$ac_dots"; then top_srcdir=. 3151 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 3152 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 3153 *) # Relative path. 3154 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 3155 top_srcdir="$ac_dots$ac_given_srcdir" ;; 3156 esac 3157 3158 3159 echo creating "$ac_file" 3160 rm -f "$ac_file" 3161 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 3162 case "$ac_file" in 3163 *Makefile*) ac_comsub="1i\\ 3164# $configure_input" ;; 3165 *) ac_comsub= ;; 3166 esac 3167 3168 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 3169 sed -e "$ac_comsub 3170s%@configure_input@%$configure_input%g 3171s%@srcdir@%$srcdir%g 3172s%@top_srcdir@%$top_srcdir%g 3173" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 3174fi; done 3175rm -f conftest.s* 3176 3177EOF 3178cat >> $CONFIG_STATUS <<EOF 3179 3180EOF 3181cat >> $CONFIG_STATUS <<\EOF 3182 3183exit 0 3184EOF 3185chmod +x $CONFIG_STATUS 3186rm -fr confdefs* $ac_clean_files 3187test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 3188 3189 3190 3191