Annotation of embedaddon/lrzsz/configure, revision 1.1
1.1 ! misho 1: #! /bin/sh
! 2:
! 3: # Guess values for system-dependent variables and create Makefiles.
! 4: # Generated automatically using autoconf version 2.12
! 5: # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
! 6: #
! 7: # This configure script is free software; the Free Software Foundation
! 8: # gives unlimited permission to copy, distribute and modify it.
! 9:
! 10: # Defaults:
! 11: ac_help=
! 12: ac_default_prefix=/usr/local
! 13: # Any additions from configure.in:
! 14: ac_help="$ac_help
! 15: --disable-timesync exclude support for timesync protocol"
! 16: ac_help="$ac_help
! 17: --enable-pubdir=/path include support for a public writeable directory"
! 18: ac_help="$ac_help
! 19: --disable-mkdir disable support for creating directories (lrz)"
! 20: ac_help="$ac_help
! 21: --enable-syslog=FACILITY,{force,default,optional} include syslogsupport"
! 22: ac_help="$ac_help
! 23: --disable-nls do not use Native Language Support"
! 24: ac_help="$ac_help
! 25: --with-included-gettext use the GNU gettext library included here"
! 26: ac_help="$ac_help
! 27: --with-catgets use catgets functions if available"
! 28:
! 29: # Initialize some variables set by options.
! 30: # The variables have the same names as the options, with
! 31: # dashes changed to underlines.
! 32: build=NONE
! 33: cache_file=./config.cache
! 34: exec_prefix=NONE
! 35: host=NONE
! 36: no_create=
! 37: nonopt=NONE
! 38: no_recursion=
! 39: prefix=NONE
! 40: program_prefix=NONE
! 41: program_suffix=NONE
! 42: program_transform_name=s,x,x,
! 43: silent=
! 44: site=
! 45: srcdir=
! 46: target=NONE
! 47: verbose=
! 48: x_includes=NONE
! 49: x_libraries=NONE
! 50: bindir='${exec_prefix}/bin'
! 51: sbindir='${exec_prefix}/sbin'
! 52: libexecdir='${exec_prefix}/libexec'
! 53: datadir='${prefix}/share'
! 54: sysconfdir='${prefix}/etc'
! 55: sharedstatedir='${prefix}/com'
! 56: localstatedir='${prefix}/var'
! 57: libdir='${exec_prefix}/lib'
! 58: includedir='${prefix}/include'
! 59: oldincludedir='/usr/include'
! 60: infodir='${prefix}/info'
! 61: mandir='${prefix}/man'
! 62:
! 63: # Initialize some other variables.
! 64: subdirs=
! 65: MFLAGS= MAKEFLAGS=
! 66: # Maximum number of lines to put in a shell here document.
! 67: ac_max_here_lines=12
! 68:
! 69: ac_prev=
! 70: for ac_option
! 71: do
! 72:
! 73: # If the previous option needs an argument, assign it.
! 74: if test -n "$ac_prev"; then
! 75: eval "$ac_prev=\$ac_option"
! 76: ac_prev=
! 77: continue
! 78: fi
! 79:
! 80: case "$ac_option" in
! 81: -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
! 82: *) ac_optarg= ;;
! 83: esac
! 84:
! 85: # Accept the important Cygnus configure options, so we can diagnose typos.
! 86:
! 87: case "$ac_option" in
! 88:
! 89: -bindir | --bindir | --bindi | --bind | --bin | --bi)
! 90: ac_prev=bindir ;;
! 91: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
! 92: bindir="$ac_optarg" ;;
! 93:
! 94: -build | --build | --buil | --bui | --bu)
! 95: ac_prev=build ;;
! 96: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
! 97: build="$ac_optarg" ;;
! 98:
! 99: -cache-file | --cache-file | --cache-fil | --cache-fi \
! 100: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
! 101: ac_prev=cache_file ;;
! 102: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
! 103: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
! 104: cache_file="$ac_optarg" ;;
! 105:
! 106: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
! 107: ac_prev=datadir ;;
! 108: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
! 109: | --da=*)
! 110: datadir="$ac_optarg" ;;
! 111:
! 112: -disable-* | --disable-*)
! 113: ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
! 114: # Reject names that are not valid shell variable names.
! 115: if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
! 116: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
! 117: fi
! 118: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
! 119: eval "enable_${ac_feature}=no" ;;
! 120:
! 121: -enable-* | --enable-*)
! 122: ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
! 123: # Reject names that are not valid shell variable names.
! 124: if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
! 125: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
! 126: fi
! 127: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
! 128: case "$ac_option" in
! 129: *=*) ;;
! 130: *) ac_optarg=yes ;;
! 131: esac
! 132: eval "enable_${ac_feature}='$ac_optarg'" ;;
! 133:
! 134: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
! 135: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
! 136: | --exec | --exe | --ex)
! 137: ac_prev=exec_prefix ;;
! 138: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
! 139: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
! 140: | --exec=* | --exe=* | --ex=*)
! 141: exec_prefix="$ac_optarg" ;;
! 142:
! 143: -gas | --gas | --ga | --g)
! 144: # Obsolete; use --with-gas.
! 145: with_gas=yes ;;
! 146:
! 147: -help | --help | --hel | --he)
! 148: # Omit some internal or obsolete options to make the list less imposing.
! 149: # This message is too long to be a string in the A/UX 3.1 sh.
! 150: cat << EOF
! 151: Usage: configure [options] [host]
! 152: Options: [defaults in brackets after descriptions]
! 153: Configuration:
! 154: --cache-file=FILE cache test results in FILE
! 155: --help print this message
! 156: --no-create do not create output files
! 157: --quiet, --silent do not print \`checking...' messages
! 158: --version print the version of autoconf that created configure
! 159: Directory and file names:
! 160: --prefix=PREFIX install architecture-independent files in PREFIX
! 161: [$ac_default_prefix]
! 162: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
! 163: [same as prefix]
! 164: --bindir=DIR user executables in DIR [EPREFIX/bin]
! 165: --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
! 166: --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
! 167: --datadir=DIR read-only architecture-independent data in DIR
! 168: [PREFIX/share]
! 169: --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
! 170: --sharedstatedir=DIR modifiable architecture-independent data in DIR
! 171: [PREFIX/com]
! 172: --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
! 173: --libdir=DIR object code libraries in DIR [EPREFIX/lib]
! 174: --includedir=DIR C header files in DIR [PREFIX/include]
! 175: --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
! 176: --infodir=DIR info documentation in DIR [PREFIX/info]
! 177: --mandir=DIR man documentation in DIR [PREFIX/man]
! 178: --srcdir=DIR find the sources in DIR [configure dir or ..]
! 179: --program-prefix=PREFIX prepend PREFIX to installed program names
! 180: --program-suffix=SUFFIX append SUFFIX to installed program names
! 181: --program-transform-name=PROGRAM
! 182: run sed PROGRAM on installed program names
! 183: EOF
! 184: cat << EOF
! 185: Host type:
! 186: --build=BUILD configure for building on BUILD [BUILD=HOST]
! 187: --host=HOST configure for HOST [guessed]
! 188: --target=TARGET configure for TARGET [TARGET=HOST]
! 189: Features and packages:
! 190: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
! 191: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
! 192: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
! 193: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
! 194: --x-includes=DIR X include files are in DIR
! 195: --x-libraries=DIR X library files are in DIR
! 196: EOF
! 197: if test -n "$ac_help"; then
! 198: echo "--enable and --with options recognized:$ac_help"
! 199: fi
! 200: exit 0 ;;
! 201:
! 202: -host | --host | --hos | --ho)
! 203: ac_prev=host ;;
! 204: -host=* | --host=* | --hos=* | --ho=*)
! 205: host="$ac_optarg" ;;
! 206:
! 207: -includedir | --includedir | --includedi | --included | --include \
! 208: | --includ | --inclu | --incl | --inc)
! 209: ac_prev=includedir ;;
! 210: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
! 211: | --includ=* | --inclu=* | --incl=* | --inc=*)
! 212: includedir="$ac_optarg" ;;
! 213:
! 214: -infodir | --infodir | --infodi | --infod | --info | --inf)
! 215: ac_prev=infodir ;;
! 216: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
! 217: infodir="$ac_optarg" ;;
! 218:
! 219: -libdir | --libdir | --libdi | --libd)
! 220: ac_prev=libdir ;;
! 221: -libdir=* | --libdir=* | --libdi=* | --libd=*)
! 222: libdir="$ac_optarg" ;;
! 223:
! 224: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
! 225: | --libexe | --libex | --libe)
! 226: ac_prev=libexecdir ;;
! 227: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
! 228: | --libexe=* | --libex=* | --libe=*)
! 229: libexecdir="$ac_optarg" ;;
! 230:
! 231: -localstatedir | --localstatedir | --localstatedi | --localstated \
! 232: | --localstate | --localstat | --localsta | --localst \
! 233: | --locals | --local | --loca | --loc | --lo)
! 234: ac_prev=localstatedir ;;
! 235: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
! 236: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
! 237: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
! 238: localstatedir="$ac_optarg" ;;
! 239:
! 240: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
! 241: ac_prev=mandir ;;
! 242: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
! 243: mandir="$ac_optarg" ;;
! 244:
! 245: -nfp | --nfp | --nf)
! 246: # Obsolete; use --without-fp.
! 247: with_fp=no ;;
! 248:
! 249: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
! 250: | --no-cr | --no-c)
! 251: no_create=yes ;;
! 252:
! 253: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
! 254: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
! 255: no_recursion=yes ;;
! 256:
! 257: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
! 258: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
! 259: | --oldin | --oldi | --old | --ol | --o)
! 260: ac_prev=oldincludedir ;;
! 261: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
! 262: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
! 263: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
! 264: oldincludedir="$ac_optarg" ;;
! 265:
! 266: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
! 267: ac_prev=prefix ;;
! 268: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
! 269: prefix="$ac_optarg" ;;
! 270:
! 271: -program-prefix | --program-prefix | --program-prefi | --program-pref \
! 272: | --program-pre | --program-pr | --program-p)
! 273: ac_prev=program_prefix ;;
! 274: -program-prefix=* | --program-prefix=* | --program-prefi=* \
! 275: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
! 276: program_prefix="$ac_optarg" ;;
! 277:
! 278: -program-suffix | --program-suffix | --program-suffi | --program-suff \
! 279: | --program-suf | --program-su | --program-s)
! 280: ac_prev=program_suffix ;;
! 281: -program-suffix=* | --program-suffix=* | --program-suffi=* \
! 282: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
! 283: program_suffix="$ac_optarg" ;;
! 284:
! 285: -program-transform-name | --program-transform-name \
! 286: | --program-transform-nam | --program-transform-na \
! 287: | --program-transform-n | --program-transform- \
! 288: | --program-transform | --program-transfor \
! 289: | --program-transfo | --program-transf \
! 290: | --program-trans | --program-tran \
! 291: | --progr-tra | --program-tr | --program-t)
! 292: ac_prev=program_transform_name ;;
! 293: -program-transform-name=* | --program-transform-name=* \
! 294: | --program-transform-nam=* | --program-transform-na=* \
! 295: | --program-transform-n=* | --program-transform-=* \
! 296: | --program-transform=* | --program-transfor=* \
! 297: | --program-transfo=* | --program-transf=* \
! 298: | --program-trans=* | --program-tran=* \
! 299: | --progr-tra=* | --program-tr=* | --program-t=*)
! 300: program_transform_name="$ac_optarg" ;;
! 301:
! 302: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
! 303: | -silent | --silent | --silen | --sile | --sil)
! 304: silent=yes ;;
! 305:
! 306: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
! 307: ac_prev=sbindir ;;
! 308: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
! 309: | --sbi=* | --sb=*)
! 310: sbindir="$ac_optarg" ;;
! 311:
! 312: -sharedstatedir | --sharedstatedir | --sharedstatedi \
! 313: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
! 314: | --sharedst | --shareds | --shared | --share | --shar \
! 315: | --sha | --sh)
! 316: ac_prev=sharedstatedir ;;
! 317: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
! 318: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
! 319: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
! 320: | --sha=* | --sh=*)
! 321: sharedstatedir="$ac_optarg" ;;
! 322:
! 323: -site | --site | --sit)
! 324: ac_prev=site ;;
! 325: -site=* | --site=* | --sit=*)
! 326: site="$ac_optarg" ;;
! 327:
! 328: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
! 329: ac_prev=srcdir ;;
! 330: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
! 331: srcdir="$ac_optarg" ;;
! 332:
! 333: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
! 334: | --syscon | --sysco | --sysc | --sys | --sy)
! 335: ac_prev=sysconfdir ;;
! 336: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
! 337: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
! 338: sysconfdir="$ac_optarg" ;;
! 339:
! 340: -target | --target | --targe | --targ | --tar | --ta | --t)
! 341: ac_prev=target ;;
! 342: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
! 343: target="$ac_optarg" ;;
! 344:
! 345: -v | -verbose | --verbose | --verbos | --verbo | --verb)
! 346: verbose=yes ;;
! 347:
! 348: -version | --version | --versio | --versi | --vers)
! 349: echo "configure generated by autoconf version 2.12"
! 350: exit 0 ;;
! 351:
! 352: -with-* | --with-*)
! 353: ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
! 354: # Reject names that are not valid shell variable names.
! 355: if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
! 356: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
! 357: fi
! 358: ac_package=`echo $ac_package| sed 's/-/_/g'`
! 359: case "$ac_option" in
! 360: *=*) ;;
! 361: *) ac_optarg=yes ;;
! 362: esac
! 363: eval "with_${ac_package}='$ac_optarg'" ;;
! 364:
! 365: -without-* | --without-*)
! 366: ac_package=`echo $ac_option|sed -e 's/-*without-//'`
! 367: # Reject names that are not valid shell variable names.
! 368: if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
! 369: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
! 370: fi
! 371: ac_package=`echo $ac_package| sed 's/-/_/g'`
! 372: eval "with_${ac_package}=no" ;;
! 373:
! 374: --x)
! 375: # Obsolete; use --with-x.
! 376: with_x=yes ;;
! 377:
! 378: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
! 379: | --x-incl | --x-inc | --x-in | --x-i)
! 380: ac_prev=x_includes ;;
! 381: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
! 382: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
! 383: x_includes="$ac_optarg" ;;
! 384:
! 385: -x-libraries | --x-libraries | --x-librarie | --x-librari \
! 386: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
! 387: ac_prev=x_libraries ;;
! 388: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
! 389: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
! 390: x_libraries="$ac_optarg" ;;
! 391:
! 392: -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
! 393: ;;
! 394:
! 395: *)
! 396: if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
! 397: echo "configure: warning: $ac_option: invalid host type" 1>&2
! 398: fi
! 399: if test "x$nonopt" != xNONE; then
! 400: { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
! 401: fi
! 402: nonopt="$ac_option"
! 403: ;;
! 404:
! 405: esac
! 406: done
! 407:
! 408: if test -n "$ac_prev"; then
! 409: { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
! 410: fi
! 411:
! 412: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
! 413:
! 414: # File descriptor usage:
! 415: # 0 standard input
! 416: # 1 file creation
! 417: # 2 errors and warnings
! 418: # 3 some systems may open it to /dev/tty
! 419: # 4 used on the Kubota Titan
! 420: # 6 checking for... messages and results
! 421: # 5 compiler messages saved in config.log
! 422: if test "$silent" = yes; then
! 423: exec 6>/dev/null
! 424: else
! 425: exec 6>&1
! 426: fi
! 427: exec 5>./config.log
! 428:
! 429: echo "\
! 430: This file contains any messages produced by compilers while
! 431: running configure, to aid debugging if configure makes a mistake.
! 432: " 1>&5
! 433:
! 434: # Strip out --no-create and --no-recursion so they do not pile up.
! 435: # Also quote any args containing shell metacharacters.
! 436: ac_configure_args=
! 437: for ac_arg
! 438: do
! 439: case "$ac_arg" in
! 440: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
! 441: | --no-cr | --no-c) ;;
! 442: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
! 443: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
! 444: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
! 445: ac_configure_args="$ac_configure_args '$ac_arg'" ;;
! 446: *) ac_configure_args="$ac_configure_args $ac_arg" ;;
! 447: esac
! 448: done
! 449:
! 450: # NLS nuisances.
! 451: # Only set these to C if already set. These must not be set unconditionally
! 452: # because not all systems understand e.g. LANG=C (notably SCO).
! 453: # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
! 454: # Non-C LC_CTYPE values break the ctype check.
! 455: if test "${LANG+set}" = set; then LANG=C; export LANG; fi
! 456: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
! 457: if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
! 458: if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
! 459:
! 460: # confdefs.h avoids OS command line length limits that DEFS can exceed.
! 461: rm -rf conftest* confdefs.h
! 462: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
! 463: echo > confdefs.h
! 464:
! 465: # A filename unique to this package, relative to the directory that
! 466: # configure is in, which we can look for to find out if srcdir is correct.
! 467: ac_unique_file=src/crctab.c
! 468:
! 469: # Find the source files, if location was not specified.
! 470: if test -z "$srcdir"; then
! 471: ac_srcdir_defaulted=yes
! 472: # Try the directory containing this script, then its parent.
! 473: ac_prog=$0
! 474: ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
! 475: test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
! 476: srcdir=$ac_confdir
! 477: if test ! -r $srcdir/$ac_unique_file; then
! 478: srcdir=..
! 479: fi
! 480: else
! 481: ac_srcdir_defaulted=no
! 482: fi
! 483: if test ! -r $srcdir/$ac_unique_file; then
! 484: if test "$ac_srcdir_defaulted" = yes; then
! 485: { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
! 486: else
! 487: { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
! 488: fi
! 489: fi
! 490: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
! 491:
! 492: # Prefer explicitly selected file to automatically selected ones.
! 493: if test -z "$CONFIG_SITE"; then
! 494: if test "x$prefix" != xNONE; then
! 495: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
! 496: else
! 497: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
! 498: fi
! 499: fi
! 500: for ac_site_file in $CONFIG_SITE; do
! 501: if test -r "$ac_site_file"; then
! 502: echo "loading site script $ac_site_file"
! 503: . "$ac_site_file"
! 504: fi
! 505: done
! 506:
! 507: if test -r "$cache_file"; then
! 508: echo "loading cache $cache_file"
! 509: . $cache_file
! 510: else
! 511: echo "creating cache $cache_file"
! 512: > $cache_file
! 513: fi
! 514:
! 515: ac_ext=c
! 516: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
! 517: ac_cpp='$CPP $CPPFLAGS'
! 518: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
! 519: ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
! 520: cross_compiling=$ac_cv_prog_cc_cross
! 521:
! 522: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
! 523: # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
! 524: if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
! 525: ac_n= ac_c='
! 526: ' ac_t=' '
! 527: else
! 528: ac_n=-n ac_c= ac_t=
! 529: fi
! 530: else
! 531: ac_n= ac_c='\c' ac_t=
! 532: fi
! 533:
! 534:
! 535: ac_aux_dir=
! 536: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
! 537: if test -f $ac_dir/install-sh; then
! 538: ac_aux_dir=$ac_dir
! 539: ac_install_sh="$ac_aux_dir/install-sh -c"
! 540: break
! 541: elif test -f $ac_dir/install.sh; then
! 542: ac_aux_dir=$ac_dir
! 543: ac_install_sh="$ac_aux_dir/install.sh -c"
! 544: break
! 545: fi
! 546: done
! 547: if test -z "$ac_aux_dir"; then
! 548: { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
! 549: fi
! 550: ac_config_guess=$ac_aux_dir/config.guess
! 551: ac_config_sub=$ac_aux_dir/config.sub
! 552: ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
! 553:
! 554: # Find a good install program. We prefer a C program (faster),
! 555: # so one script is as good as another. But avoid the broken or
! 556: # incompatible versions:
! 557: # SysV /etc/install, /usr/sbin/install
! 558: # SunOS /usr/etc/install
! 559: # IRIX /sbin/install
! 560: # AIX /bin/install
! 561: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
! 562: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
! 563: # ./install, which can be erroneously created by make from ./install.sh.
! 564: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
! 565: echo "configure:566: checking for a BSD compatible install" >&5
! 566: if test -z "$INSTALL"; then
! 567: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
! 568: echo $ac_n "(cached) $ac_c" 1>&6
! 569: else
! 570: IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
! 571: for ac_dir in $PATH; do
! 572: # Account for people who put trailing slashes in PATH elements.
! 573: case "$ac_dir/" in
! 574: /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
! 575: *)
! 576: # OSF1 and SCO ODT 3.0 have their own names for install.
! 577: for ac_prog in ginstall installbsd scoinst install; do
! 578: if test -f $ac_dir/$ac_prog; then
! 579: if test $ac_prog = install &&
! 580: grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
! 581: # AIX install. It has an incompatible calling convention.
! 582: # OSF/1 installbsd also uses dspmsg, but is usable.
! 583: :
! 584: else
! 585: ac_cv_path_install="$ac_dir/$ac_prog -c"
! 586: break 2
! 587: fi
! 588: fi
! 589: done
! 590: ;;
! 591: esac
! 592: done
! 593: IFS="$ac_save_IFS"
! 594:
! 595: fi
! 596: if test "${ac_cv_path_install+set}" = set; then
! 597: INSTALL="$ac_cv_path_install"
! 598: else
! 599: # As a last resort, use the slow shell script. We don't cache a
! 600: # path for INSTALL within a source directory, because that will
! 601: # break other packages using the cache if that directory is
! 602: # removed, or if the path is relative.
! 603: INSTALL="$ac_install_sh"
! 604: fi
! 605: fi
! 606: echo "$ac_t""$INSTALL" 1>&6
! 607:
! 608: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
! 609: # It thinks the first close brace ends the variable substitution.
! 610: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
! 611:
! 612: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
! 613:
! 614:
! 615: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
! 616:
! 617: echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
! 618: echo "configure:619: checking whether build environment is sane" >&5
! 619: # Just in case
! 620: sleep 1
! 621: echo timestamp > conftestfile
! 622: # Do `set' in a subshell so we don't clobber the current shell's
! 623: # arguments. Must try -L first in case configure is actually a
! 624: # symlink; some systems play weird games with the mod time of symlinks
! 625: # (eg FreeBSD returns the mod time of the symlink's containing
! 626: # directory).
! 627: if (
! 628: set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
! 629: if test "$*" = "X"; then
! 630: # -L didn't work.
! 631: set X `ls -t $srcdir/configure conftestfile`
! 632: fi
! 633: if test "$*" != "X $srcdir/configure conftestfile" \
! 634: && test "$*" != "X conftestfile $srcdir/configure"; then
! 635:
! 636: # If neither matched, then we have a broken ls. This can happen
! 637: # if, for instance, CONFIG_SHELL is bash and it inherits a
! 638: # broken ls alias from the environment. This has actually
! 639: # happened. Such a system could not be considered "sane".
! 640: { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
! 641: alias in your environment" 1>&2; exit 1; }
! 642: fi
! 643:
! 644: test "$2" = conftestfile
! 645: )
! 646: then
! 647: # Ok.
! 648: :
! 649: else
! 650: { echo "configure: error: newly created file is older than distributed files!
! 651: Check your system clock" 1>&2; exit 1; }
! 652: fi
! 653: rm -f conftest*
! 654: echo "$ac_t""yes" 1>&6
! 655: if test "$program_transform_name" = s,x,x,; then
! 656: program_transform_name=
! 657: else
! 658: # Double any \ or $. echo might interpret backslashes.
! 659: cat <<\EOF_SED > conftestsed
! 660: s,\\,\\\\,g; s,\$,$$,g
! 661: EOF_SED
! 662: program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
! 663: rm -f conftestsed
! 664: fi
! 665: test "$program_prefix" != NONE &&
! 666: program_transform_name="s,^,${program_prefix},; $program_transform_name"
! 667: # Use a double $ so make ignores it.
! 668: test "$program_suffix" != NONE &&
! 669: program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
! 670:
! 671: # sed with no file args requires a program.
! 672: test "$program_transform_name" = "" && program_transform_name="s,x,x,"
! 673:
! 674: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
! 675: echo "configure:676: checking whether ${MAKE-make} sets \${MAKE}" >&5
! 676: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
! 677: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
! 678: echo $ac_n "(cached) $ac_c" 1>&6
! 679: else
! 680: cat > conftestmake <<\EOF
! 681: all:
! 682: @echo 'ac_maketemp="${MAKE}"'
! 683: EOF
! 684: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
! 685: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
! 686: if test -n "$ac_maketemp"; then
! 687: eval ac_cv_prog_make_${ac_make}_set=yes
! 688: else
! 689: eval ac_cv_prog_make_${ac_make}_set=no
! 690: fi
! 691: rm -f conftestmake
! 692: fi
! 693: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
! 694: echo "$ac_t""yes" 1>&6
! 695: SET_MAKE=
! 696: else
! 697: echo "$ac_t""no" 1>&6
! 698: SET_MAKE="MAKE=${MAKE-make}"
! 699: fi
! 700:
! 701:
! 702: PACKAGE=lrzsz
! 703:
! 704: VERSION=0.12.20
! 705:
! 706: if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
! 707: { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
! 708: fi
! 709: cat >> confdefs.h <<EOF
! 710: #define PACKAGE "$PACKAGE"
! 711: EOF
! 712:
! 713: cat >> confdefs.h <<EOF
! 714: #define VERSION "$VERSION"
! 715: EOF
! 716:
! 717:
! 718:
! 719: missing_dir=`cd $ac_aux_dir && pwd`
! 720: echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
! 721: echo "configure:722: checking for working aclocal" >&5
! 722: # Run test in a subshell; some versions of sh will print an error if
! 723: # an executable is not found, even if stderr is redirected.
! 724: # Redirect stdin to placate older versions of autoconf. Sigh.
! 725: if (aclocal --version) < /dev/null > /dev/null 2>&1; then
! 726: ACLOCAL=aclocal
! 727: echo "$ac_t""found" 1>&6
! 728: else
! 729: ACLOCAL="$missing_dir/missing aclocal"
! 730: echo "$ac_t""missing" 1>&6
! 731: fi
! 732:
! 733: echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
! 734: echo "configure:735: checking for working autoconf" >&5
! 735: # Run test in a subshell; some versions of sh will print an error if
! 736: # an executable is not found, even if stderr is redirected.
! 737: # Redirect stdin to placate older versions of autoconf. Sigh.
! 738: if (autoconf --version) < /dev/null > /dev/null 2>&1; then
! 739: AUTOCONF=autoconf
! 740: echo "$ac_t""found" 1>&6
! 741: else
! 742: AUTOCONF="$missing_dir/missing autoconf"
! 743: echo "$ac_t""missing" 1>&6
! 744: fi
! 745:
! 746: echo $ac_n "checking for working automake""... $ac_c" 1>&6
! 747: echo "configure:748: checking for working automake" >&5
! 748: # Run test in a subshell; some versions of sh will print an error if
! 749: # an executable is not found, even if stderr is redirected.
! 750: # Redirect stdin to placate older versions of autoconf. Sigh.
! 751: if (automake --version) < /dev/null > /dev/null 2>&1; then
! 752: AUTOMAKE=automake
! 753: echo "$ac_t""found" 1>&6
! 754: else
! 755: AUTOMAKE="$missing_dir/missing automake"
! 756: echo "$ac_t""missing" 1>&6
! 757: fi
! 758:
! 759: echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
! 760: echo "configure:761: checking for working autoheader" >&5
! 761: # Run test in a subshell; some versions of sh will print an error if
! 762: # an executable is not found, even if stderr is redirected.
! 763: # Redirect stdin to placate older versions of autoconf. Sigh.
! 764: if (autoheader --version) < /dev/null > /dev/null 2>&1; then
! 765: AUTOHEADER=autoheader
! 766: echo "$ac_t""found" 1>&6
! 767: else
! 768: AUTOHEADER="$missing_dir/missing autoheader"
! 769: echo "$ac_t""missing" 1>&6
! 770: fi
! 771:
! 772: echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
! 773: echo "configure:774: checking for working makeinfo" >&5
! 774: # Run test in a subshell; some versions of sh will print an error if
! 775: # an executable is not found, even if stderr is redirected.
! 776: # Redirect stdin to placate older versions of autoconf. Sigh.
! 777: if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
! 778: MAKEINFO=makeinfo
! 779: echo "$ac_t""found" 1>&6
! 780: else
! 781: MAKEINFO="$missing_dir/missing makeinfo"
! 782: echo "$ac_t""missing" 1>&6
! 783: fi
! 784:
! 785:
! 786:
! 787:
! 788:
! 789:
! 790:
! 791:
! 792:
! 793: PACKAGE_VERSION="$PACKAGE-$VERSION"
! 794: cat >> confdefs.h <<EOF
! 795: #define PACKAGE "$PACKAGE"
! 796: EOF
! 797:
! 798: cat >> confdefs.h <<EOF
! 799: #define VERSION "$VERSION"
! 800: EOF
! 801:
! 802: cat >> confdefs.h <<EOF
! 803: #define PACKAGE_VERSION "$PACKAGE_VERSION"
! 804: EOF
! 805:
! 806:
! 807:
! 808:
! 809:
! 810: ALL_LINGUAS="de"
! 811:
! 812:
! 813:
! 814:
! 815: case $VERSION in
! 816: [0-9]*.[0-9]*.[0-9]*) README_ALPHA="README-alpha";;
! 817: *) README_ALPHA=;;
! 818: esac
! 819:
! 820:
! 821: # Check whether --enable-timesync or --disable-timesync was given.
! 822: if test "${enable_timesync+set}" = set; then
! 823: enableval="$enable_timesync"
! 824: if test "$enableval" = "no" ; then
! 825: :
! 826: else
! 827: cat >> confdefs.h <<\EOF
! 828: #define ENABLE_TIMESYNC 1
! 829: EOF
! 830:
! 831: fi
! 832: else
! 833: cat >> confdefs.h <<\EOF
! 834: #define ENABLE_TIMESYNC 1
! 835: EOF
! 836:
! 837: fi
! 838:
! 839:
! 840: # Check whether --enable-pubdir or --disable-pubdir was given.
! 841: if test "${enable_pubdir+set}" = set; then
! 842: enableval="$enable_pubdir"
! 843: if test "$enableval" = "no" ; then
! 844: :
! 845: else
! 846: cat >> confdefs.h <<EOF
! 847: #define PUBDIR "$enableval"
! 848: EOF
! 849:
! 850: fi
! 851: fi
! 852:
! 853: # Check whether --enable-mkdir or --disable-mkdir was given.
! 854: if test "${enable_mkdir+set}" = set; then
! 855: enableval="$enable_mkdir"
! 856: if test "$enableval" = "no" ; then
! 857: :
! 858: else
! 859: cat >> confdefs.h <<\EOF
! 860: #define ENABLE_MKDIR 1
! 861: EOF
! 862:
! 863: fi
! 864: else
! 865: cat >> confdefs.h <<\EOF
! 866: #define ENABLE_MKDIR 1
! 867: EOF
! 868:
! 869: fi
! 870:
! 871: # Check whether --enable-syslog or --disable-syslog was given.
! 872: if test "${enable_syslog+set}" = set; then
! 873: enableval="$enable_syslog"
! 874:
! 875: if test "$enableval" = "no" ; then
! 876: :
! 877: else
! 878: case "$enableval" in
! 879: *,*)
! 880: level=`echo $enableval|sed -e 's/^.*,//'`
! 881: fac=`echo $enableval|sed -e 's/,.*$//'`
! 882: cat >> confdefs.h <<EOF
! 883: #define ENABLE_SYSLOG $fac
! 884: EOF
! 885:
! 886: ;;
! 887: *)
! 888: lookup_facility=LOG_UUCP
! 889: level="$enableval"
! 890: ;;
! 891: esac
! 892: if test "$level" = "force" ; then
! 893: cat >> confdefs.h <<\EOF
! 894: #define ENABLE_SYSLOG_FORCE 1
! 895: EOF
! 896:
! 897: else
! 898: if test "$level" = "optional" ; then
! 899: :
! 900: else
! 901: cat >> confdefs.h <<\EOF
! 902: #define ENABLE_SYSLOG_DEFAULT 1
! 903: EOF
! 904:
! 905: fi
! 906: fi
! 907: fi
! 908: else
! 909:
! 910: cat >> confdefs.h <<\EOF
! 911: #define ENABLE_SYSLOG_DEFAULT 1
! 912: EOF
! 913:
! 914: lookup_facility=LOG_UUCP
! 915:
! 916: fi
! 917:
! 918:
! 919: # Extract the first word of "gcc", so it can be a program name with args.
! 920: set dummy gcc; ac_word=$2
! 921: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! 922: echo "configure:923: checking for $ac_word" >&5
! 923: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
! 924: echo $ac_n "(cached) $ac_c" 1>&6
! 925: else
! 926: if test -n "$CC"; then
! 927: ac_cv_prog_CC="$CC" # Let the user override the test.
! 928: else
! 929: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
! 930: for ac_dir in $PATH; do
! 931: test -z "$ac_dir" && ac_dir=.
! 932: if test -f $ac_dir/$ac_word; then
! 933: ac_cv_prog_CC="gcc"
! 934: break
! 935: fi
! 936: done
! 937: IFS="$ac_save_ifs"
! 938: fi
! 939: fi
! 940: CC="$ac_cv_prog_CC"
! 941: if test -n "$CC"; then
! 942: echo "$ac_t""$CC" 1>&6
! 943: else
! 944: echo "$ac_t""no" 1>&6
! 945: fi
! 946:
! 947: if test -z "$CC"; then
! 948: # Extract the first word of "cc", so it can be a program name with args.
! 949: set dummy cc; ac_word=$2
! 950: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! 951: echo "configure:952: checking for $ac_word" >&5
! 952: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
! 953: echo $ac_n "(cached) $ac_c" 1>&6
! 954: else
! 955: if test -n "$CC"; then
! 956: ac_cv_prog_CC="$CC" # Let the user override the test.
! 957: else
! 958: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
! 959: ac_prog_rejected=no
! 960: for ac_dir in $PATH; do
! 961: test -z "$ac_dir" && ac_dir=.
! 962: if test -f $ac_dir/$ac_word; then
! 963: if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
! 964: ac_prog_rejected=yes
! 965: continue
! 966: fi
! 967: ac_cv_prog_CC="cc"
! 968: break
! 969: fi
! 970: done
! 971: IFS="$ac_save_ifs"
! 972: if test $ac_prog_rejected = yes; then
! 973: # We found a bogon in the path, so make sure we never use it.
! 974: set dummy $ac_cv_prog_CC
! 975: shift
! 976: if test $# -gt 0; then
! 977: # We chose a different compiler from the bogus one.
! 978: # However, it has the same basename, so the bogon will be chosen
! 979: # first if we set CC to just the basename; use the full file name.
! 980: shift
! 981: set dummy "$ac_dir/$ac_word" "$@"
! 982: shift
! 983: ac_cv_prog_CC="$@"
! 984: fi
! 985: fi
! 986: fi
! 987: fi
! 988: CC="$ac_cv_prog_CC"
! 989: if test -n "$CC"; then
! 990: echo "$ac_t""$CC" 1>&6
! 991: else
! 992: echo "$ac_t""no" 1>&6
! 993: fi
! 994:
! 995: test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
! 996: fi
! 997:
! 998: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
! 999: echo "configure:1000: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
! 1000:
! 1001: ac_ext=c
! 1002: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
! 1003: ac_cpp='$CPP $CPPFLAGS'
! 1004: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
! 1005: ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
! 1006: cross_compiling=$ac_cv_prog_cc_cross
! 1007:
! 1008: cat > conftest.$ac_ext <<EOF
! 1009: #line 1010 "configure"
! 1010: #include "confdefs.h"
! 1011: main(){return(0);}
! 1012: EOF
! 1013: if { (eval echo configure:1014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 1014: ac_cv_prog_cc_works=yes
! 1015: # If we can't run a trivial program, we are probably using a cross compiler.
! 1016: if (./conftest; exit) 2>/dev/null; then
! 1017: ac_cv_prog_cc_cross=no
! 1018: else
! 1019: ac_cv_prog_cc_cross=yes
! 1020: fi
! 1021: else
! 1022: echo "configure: failed program was:" >&5
! 1023: cat conftest.$ac_ext >&5
! 1024: ac_cv_prog_cc_works=no
! 1025: fi
! 1026: rm -fr conftest*
! 1027:
! 1028: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
! 1029: if test $ac_cv_prog_cc_works = no; then
! 1030: { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
! 1031: fi
! 1032: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
! 1033: echo "configure:1034: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
! 1034: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
! 1035: cross_compiling=$ac_cv_prog_cc_cross
! 1036:
! 1037: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
! 1038: echo "configure:1039: checking whether we are using GNU C" >&5
! 1039: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
! 1040: echo $ac_n "(cached) $ac_c" 1>&6
! 1041: else
! 1042: cat > conftest.c <<EOF
! 1043: #ifdef __GNUC__
! 1044: yes;
! 1045: #endif
! 1046: EOF
! 1047: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
! 1048: ac_cv_prog_gcc=yes
! 1049: else
! 1050: ac_cv_prog_gcc=no
! 1051: fi
! 1052: fi
! 1053:
! 1054: echo "$ac_t""$ac_cv_prog_gcc" 1>&6
! 1055:
! 1056: if test $ac_cv_prog_gcc = yes; then
! 1057: GCC=yes
! 1058: ac_test_CFLAGS="${CFLAGS+set}"
! 1059: ac_save_CFLAGS="$CFLAGS"
! 1060: CFLAGS=
! 1061: echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
! 1062: echo "configure:1063: checking whether ${CC-cc} accepts -g" >&5
! 1063: if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
! 1064: echo $ac_n "(cached) $ac_c" 1>&6
! 1065: else
! 1066: echo 'void f(){}' > conftest.c
! 1067: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
! 1068: ac_cv_prog_cc_g=yes
! 1069: else
! 1070: ac_cv_prog_cc_g=no
! 1071: fi
! 1072: rm -f conftest*
! 1073:
! 1074: fi
! 1075:
! 1076: echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
! 1077: if test "$ac_test_CFLAGS" = set; then
! 1078: CFLAGS="$ac_save_CFLAGS"
! 1079: elif test $ac_cv_prog_cc_g = yes; then
! 1080: CFLAGS="-g -O2"
! 1081: else
! 1082: CFLAGS="-O2"
! 1083: fi
! 1084: else
! 1085: GCC=
! 1086: test "${CFLAGS+set}" = set || CFLAGS="-g"
! 1087: fi
! 1088:
! 1089: echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
! 1090: echo "configure:1091: checking how to run the C preprocessor" >&5
! 1091: # On Suns, sometimes $CPP names a directory.
! 1092: if test -n "$CPP" && test -d "$CPP"; then
! 1093: CPP=
! 1094: fi
! 1095: if test -z "$CPP"; then
! 1096: if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
! 1097: echo $ac_n "(cached) $ac_c" 1>&6
! 1098: else
! 1099: # This must be in double quotes, not single quotes, because CPP may get
! 1100: # substituted into the Makefile and "${CC-cc}" will confuse make.
! 1101: CPP="${CC-cc} -E"
! 1102: # On the NeXT, cc -E runs the code through the compiler's parser,
! 1103: # not just through cpp.
! 1104: cat > conftest.$ac_ext <<EOF
! 1105: #line 1106 "configure"
! 1106: #include "confdefs.h"
! 1107: #include <assert.h>
! 1108: Syntax Error
! 1109: EOF
! 1110: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 1111: { (eval echo configure:1112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 1112: ac_err=`grep -v '^ *+' conftest.out`
! 1113: if test -z "$ac_err"; then
! 1114: :
! 1115: else
! 1116: echo "$ac_err" >&5
! 1117: echo "configure: failed program was:" >&5
! 1118: cat conftest.$ac_ext >&5
! 1119: rm -rf conftest*
! 1120: CPP="${CC-cc} -E -traditional-cpp"
! 1121: cat > conftest.$ac_ext <<EOF
! 1122: #line 1123 "configure"
! 1123: #include "confdefs.h"
! 1124: #include <assert.h>
! 1125: Syntax Error
! 1126: EOF
! 1127: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 1128: { (eval echo configure:1129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 1129: ac_err=`grep -v '^ *+' conftest.out`
! 1130: if test -z "$ac_err"; then
! 1131: :
! 1132: else
! 1133: echo "$ac_err" >&5
! 1134: echo "configure: failed program was:" >&5
! 1135: cat conftest.$ac_ext >&5
! 1136: rm -rf conftest*
! 1137: CPP=/lib/cpp
! 1138: fi
! 1139: rm -f conftest*
! 1140: fi
! 1141: rm -f conftest*
! 1142: ac_cv_prog_CPP="$CPP"
! 1143: fi
! 1144: CPP="$ac_cv_prog_CPP"
! 1145: else
! 1146: ac_cv_prog_CPP="$CPP"
! 1147: fi
! 1148: echo "$ac_t""$CPP" 1>&6
! 1149:
! 1150: if test $ac_cv_prog_gcc = yes; then
! 1151: echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
! 1152: echo "configure:1153: checking whether ${CC-cc} needs -traditional" >&5
! 1153: if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
! 1154: echo $ac_n "(cached) $ac_c" 1>&6
! 1155: else
! 1156: ac_pattern="Autoconf.*'x'"
! 1157: cat > conftest.$ac_ext <<EOF
! 1158: #line 1159 "configure"
! 1159: #include "confdefs.h"
! 1160: #include <sgtty.h>
! 1161: Autoconf TIOCGETP
! 1162: EOF
! 1163: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 1164: egrep "$ac_pattern" >/dev/null 2>&1; then
! 1165: rm -rf conftest*
! 1166: ac_cv_prog_gcc_traditional=yes
! 1167: else
! 1168: rm -rf conftest*
! 1169: ac_cv_prog_gcc_traditional=no
! 1170: fi
! 1171: rm -f conftest*
! 1172:
! 1173:
! 1174: if test $ac_cv_prog_gcc_traditional = no; then
! 1175: cat > conftest.$ac_ext <<EOF
! 1176: #line 1177 "configure"
! 1177: #include "confdefs.h"
! 1178: #include <termio.h>
! 1179: Autoconf TCGETA
! 1180: EOF
! 1181: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 1182: egrep "$ac_pattern" >/dev/null 2>&1; then
! 1183: rm -rf conftest*
! 1184: ac_cv_prog_gcc_traditional=yes
! 1185: fi
! 1186: rm -f conftest*
! 1187:
! 1188: fi
! 1189: fi
! 1190:
! 1191: echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
! 1192: if test $ac_cv_prog_gcc_traditional = yes; then
! 1193: CC="$CC -traditional"
! 1194: fi
! 1195: fi
! 1196:
! 1197: # Extract the first word of "ranlib", so it can be a program name with args.
! 1198: set dummy ranlib; ac_word=$2
! 1199: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! 1200: echo "configure:1201: checking for $ac_word" >&5
! 1201: if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
! 1202: echo $ac_n "(cached) $ac_c" 1>&6
! 1203: else
! 1204: if test -n "$RANLIB"; then
! 1205: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
! 1206: else
! 1207: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
! 1208: for ac_dir in $PATH; do
! 1209: test -z "$ac_dir" && ac_dir=.
! 1210: if test -f $ac_dir/$ac_word; then
! 1211: ac_cv_prog_RANLIB="ranlib"
! 1212: break
! 1213: fi
! 1214: done
! 1215: IFS="$ac_save_ifs"
! 1216: test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
! 1217: fi
! 1218: fi
! 1219: RANLIB="$ac_cv_prog_RANLIB"
! 1220: if test -n "$RANLIB"; then
! 1221: echo "$ac_t""$RANLIB" 1>&6
! 1222: else
! 1223: echo "$ac_t""no" 1>&6
! 1224: fi
! 1225:
! 1226: echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
! 1227: echo "configure:1228: checking for POSIXized ISC" >&5
! 1228: if test -d /etc/conf/kconfig.d &&
! 1229: grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
! 1230: then
! 1231: echo "$ac_t""yes" 1>&6
! 1232: ISC=yes # If later tests want to check for ISC.
! 1233: cat >> confdefs.h <<\EOF
! 1234: #define _POSIX_SOURCE 1
! 1235: EOF
! 1236:
! 1237: if test "$GCC" = yes; then
! 1238: CC="$CC -posix"
! 1239: else
! 1240: CC="$CC -Xp"
! 1241: fi
! 1242: else
! 1243: echo "$ac_t""no" 1>&6
! 1244: ISC=
! 1245: fi
! 1246:
! 1247: echo $ac_n "checking for AIX""... $ac_c" 1>&6
! 1248: echo "configure:1249: checking for AIX" >&5
! 1249: cat > conftest.$ac_ext <<EOF
! 1250: #line 1251 "configure"
! 1251: #include "confdefs.h"
! 1252: #ifdef _AIX
! 1253: yes
! 1254: #endif
! 1255:
! 1256: EOF
! 1257: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 1258: egrep "yes" >/dev/null 2>&1; then
! 1259: rm -rf conftest*
! 1260: echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
! 1261: #define _ALL_SOURCE 1
! 1262: EOF
! 1263:
! 1264: else
! 1265: rm -rf conftest*
! 1266: echo "$ac_t""no" 1>&6
! 1267: fi
! 1268: rm -f conftest*
! 1269:
! 1270:
! 1271: ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
! 1272: echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
! 1273: echo "configure:1274: checking for minix/config.h" >&5
! 1274: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
! 1275: echo $ac_n "(cached) $ac_c" 1>&6
! 1276: else
! 1277: cat > conftest.$ac_ext <<EOF
! 1278: #line 1279 "configure"
! 1279: #include "confdefs.h"
! 1280: #include <minix/config.h>
! 1281: EOF
! 1282: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 1283: { (eval echo configure:1284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 1284: ac_err=`grep -v '^ *+' conftest.out`
! 1285: if test -z "$ac_err"; then
! 1286: rm -rf conftest*
! 1287: eval "ac_cv_header_$ac_safe=yes"
! 1288: else
! 1289: echo "$ac_err" >&5
! 1290: echo "configure: failed program was:" >&5
! 1291: cat conftest.$ac_ext >&5
! 1292: rm -rf conftest*
! 1293: eval "ac_cv_header_$ac_safe=no"
! 1294: fi
! 1295: rm -f conftest*
! 1296: fi
! 1297: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
! 1298: echo "$ac_t""yes" 1>&6
! 1299: MINIX=yes
! 1300: else
! 1301: echo "$ac_t""no" 1>&6
! 1302: MINIX=
! 1303: fi
! 1304:
! 1305: if test "$MINIX" = yes; then
! 1306: cat >> confdefs.h <<\EOF
! 1307: #define _POSIX_SOURCE 1
! 1308: EOF
! 1309:
! 1310: cat >> confdefs.h <<\EOF
! 1311: #define _POSIX_1_SOURCE 2
! 1312: EOF
! 1313:
! 1314: cat >> confdefs.h <<\EOF
! 1315: #define _MINIX 1
! 1316: EOF
! 1317:
! 1318: fi
! 1319:
! 1320:
! 1321:
! 1322:
! 1323: echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
! 1324: echo "configure:1325: checking for ${CC-cc} option to accept ANSI C" >&5
! 1325: if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
! 1326: echo $ac_n "(cached) $ac_c" 1>&6
! 1327: else
! 1328: am_cv_prog_cc_stdc=no
! 1329: ac_save_CC="$CC"
! 1330: # Don't try gcc -ansi; that turns off useful extensions and
! 1331: # breaks some systems' header files.
! 1332: # AIX -qlanglvl=ansi
! 1333: # Ultrix and OSF/1 -std1
! 1334: # HP-UX -Aa -D_HPUX_SOURCE
! 1335: # SVR4 -Xc -D__EXTENSIONS__
! 1336: for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
! 1337: do
! 1338: CC="$ac_save_CC $ac_arg"
! 1339: cat > conftest.$ac_ext <<EOF
! 1340: #line 1341 "configure"
! 1341: #include "confdefs.h"
! 1342: #include <stdarg.h>
! 1343: #include <stdio.h>
! 1344: #include <sys/types.h>
! 1345: #include <sys/stat.h>
! 1346: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
! 1347: struct buf { int x; };
! 1348: FILE * (*rcsopen) (struct buf *, struct stat *, int);
! 1349: static char *e (p, i)
! 1350: char **p;
! 1351: int i;
! 1352: {
! 1353: return p[i];
! 1354: }
! 1355: static char *f (char * (*g) (char **, int), char **p, ...)
! 1356: {
! 1357: char *s;
! 1358: va_list v;
! 1359: va_start (v,p);
! 1360: s = g (p, va_arg (v,int));
! 1361: va_end (v);
! 1362: return s;
! 1363: }
! 1364: int test (int i, double x);
! 1365: struct s1 {int (*f) (int a);};
! 1366: struct s2 {int (*f) (double a);};
! 1367: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
! 1368: int argc;
! 1369: char **argv;
! 1370:
! 1371: int main() {
! 1372:
! 1373: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
! 1374:
! 1375: ; return 0; }
! 1376: EOF
! 1377: if { (eval echo configure:1378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
! 1378: rm -rf conftest*
! 1379: am_cv_prog_cc_stdc="$ac_arg"; break
! 1380: else
! 1381: echo "configure: failed program was:" >&5
! 1382: cat conftest.$ac_ext >&5
! 1383: fi
! 1384: rm -f conftest*
! 1385: done
! 1386: CC="$ac_save_CC"
! 1387:
! 1388: fi
! 1389:
! 1390: if test -z "$am_cv_prog_cc_stdc"; then
! 1391: echo "$ac_t""none needed" 1>&6
! 1392: else
! 1393: echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
! 1394: fi
! 1395: case "x$am_cv_prog_cc_stdc" in
! 1396: x|xno) ;;
! 1397: *) CC="$CC $am_cv_prog_cc_stdc" ;;
! 1398: esac
! 1399:
! 1400:
! 1401:
! 1402: echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
! 1403: echo "configure:1404: checking for function prototypes" >&5
! 1404: if test "$am_cv_prog_cc_stdc" != no; then
! 1405: echo "$ac_t""yes" 1>&6
! 1406: cat >> confdefs.h <<\EOF
! 1407: #define PROTOTYPES 1
! 1408: EOF
! 1409:
! 1410: U= ANSI2KNR=
! 1411: else
! 1412: echo "$ac_t""no" 1>&6
! 1413: U=_ ANSI2KNR=./ansi2knr
! 1414: # Ensure some checks needed by ansi2knr itself.
! 1415: echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
! 1416: echo "configure:1417: checking for ANSI C header files" >&5
! 1417: if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
! 1418: echo $ac_n "(cached) $ac_c" 1>&6
! 1419: else
! 1420: cat > conftest.$ac_ext <<EOF
! 1421: #line 1422 "configure"
! 1422: #include "confdefs.h"
! 1423: #include <stdlib.h>
! 1424: #include <stdarg.h>
! 1425: #include <string.h>
! 1426: #include <float.h>
! 1427: EOF
! 1428: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 1429: { (eval echo configure:1430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 1430: ac_err=`grep -v '^ *+' conftest.out`
! 1431: if test -z "$ac_err"; then
! 1432: rm -rf conftest*
! 1433: ac_cv_header_stdc=yes
! 1434: else
! 1435: echo "$ac_err" >&5
! 1436: echo "configure: failed program was:" >&5
! 1437: cat conftest.$ac_ext >&5
! 1438: rm -rf conftest*
! 1439: ac_cv_header_stdc=no
! 1440: fi
! 1441: rm -f conftest*
! 1442:
! 1443: if test $ac_cv_header_stdc = yes; then
! 1444: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
! 1445: cat > conftest.$ac_ext <<EOF
! 1446: #line 1447 "configure"
! 1447: #include "confdefs.h"
! 1448: #include <string.h>
! 1449: EOF
! 1450: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 1451: egrep "memchr" >/dev/null 2>&1; then
! 1452: :
! 1453: else
! 1454: rm -rf conftest*
! 1455: ac_cv_header_stdc=no
! 1456: fi
! 1457: rm -f conftest*
! 1458:
! 1459: fi
! 1460:
! 1461: if test $ac_cv_header_stdc = yes; then
! 1462: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
! 1463: cat > conftest.$ac_ext <<EOF
! 1464: #line 1465 "configure"
! 1465: #include "confdefs.h"
! 1466: #include <stdlib.h>
! 1467: EOF
! 1468: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 1469: egrep "free" >/dev/null 2>&1; then
! 1470: :
! 1471: else
! 1472: rm -rf conftest*
! 1473: ac_cv_header_stdc=no
! 1474: fi
! 1475: rm -f conftest*
! 1476:
! 1477: fi
! 1478:
! 1479: if test $ac_cv_header_stdc = yes; then
! 1480: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
! 1481: if test "$cross_compiling" = yes; then
! 1482: :
! 1483: else
! 1484: cat > conftest.$ac_ext <<EOF
! 1485: #line 1486 "configure"
! 1486: #include "confdefs.h"
! 1487: #include <ctype.h>
! 1488: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
! 1489: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
! 1490: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
! 1491: int main () { int i; for (i = 0; i < 256; i++)
! 1492: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
! 1493: exit (0); }
! 1494:
! 1495: EOF
! 1496: if { (eval echo configure:1497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
! 1497: then
! 1498: :
! 1499: else
! 1500: echo "configure: failed program was:" >&5
! 1501: cat conftest.$ac_ext >&5
! 1502: rm -fr conftest*
! 1503: ac_cv_header_stdc=no
! 1504: fi
! 1505: rm -fr conftest*
! 1506: fi
! 1507:
! 1508: fi
! 1509: fi
! 1510:
! 1511: echo "$ac_t""$ac_cv_header_stdc" 1>&6
! 1512: if test $ac_cv_header_stdc = yes; then
! 1513: cat >> confdefs.h <<\EOF
! 1514: #define STDC_HEADERS 1
! 1515: EOF
! 1516:
! 1517: fi
! 1518:
! 1519: for ac_hdr in string.h
! 1520: do
! 1521: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
! 1522: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
! 1523: echo "configure:1524: checking for $ac_hdr" >&5
! 1524: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
! 1525: echo $ac_n "(cached) $ac_c" 1>&6
! 1526: else
! 1527: cat > conftest.$ac_ext <<EOF
! 1528: #line 1529 "configure"
! 1529: #include "confdefs.h"
! 1530: #include <$ac_hdr>
! 1531: EOF
! 1532: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 1533: { (eval echo configure:1534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 1534: ac_err=`grep -v '^ *+' conftest.out`
! 1535: if test -z "$ac_err"; then
! 1536: rm -rf conftest*
! 1537: eval "ac_cv_header_$ac_safe=yes"
! 1538: else
! 1539: echo "$ac_err" >&5
! 1540: echo "configure: failed program was:" >&5
! 1541: cat conftest.$ac_ext >&5
! 1542: rm -rf conftest*
! 1543: eval "ac_cv_header_$ac_safe=no"
! 1544: fi
! 1545: rm -f conftest*
! 1546: fi
! 1547: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
! 1548: echo "$ac_t""yes" 1>&6
! 1549: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
! 1550: cat >> confdefs.h <<EOF
! 1551: #define $ac_tr_hdr 1
! 1552: EOF
! 1553:
! 1554: else
! 1555: echo "$ac_t""no" 1>&6
! 1556: fi
! 1557: done
! 1558:
! 1559: fi
! 1560:
! 1561: echo $ac_n "checking for working const""... $ac_c" 1>&6
! 1562: echo "configure:1563: checking for working const" >&5
! 1563: if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
! 1564: echo $ac_n "(cached) $ac_c" 1>&6
! 1565: else
! 1566: cat > conftest.$ac_ext <<EOF
! 1567: #line 1568 "configure"
! 1568: #include "confdefs.h"
! 1569:
! 1570: int main() {
! 1571:
! 1572: /* Ultrix mips cc rejects this. */
! 1573: typedef int charset[2]; const charset x;
! 1574: /* SunOS 4.1.1 cc rejects this. */
! 1575: char const *const *ccp;
! 1576: char **p;
! 1577: /* NEC SVR4.0.2 mips cc rejects this. */
! 1578: struct point {int x, y;};
! 1579: static struct point const zero = {0,0};
! 1580: /* AIX XL C 1.02.0.0 rejects this.
! 1581: It does not let you subtract one const X* pointer from another in an arm
! 1582: of an if-expression whose if-part is not a constant expression */
! 1583: const char *g = "string";
! 1584: ccp = &g + (g ? g-g : 0);
! 1585: /* HPUX 7.0 cc rejects these. */
! 1586: ++ccp;
! 1587: p = (char**) ccp;
! 1588: ccp = (char const *const *) p;
! 1589: { /* SCO 3.2v4 cc rejects this. */
! 1590: char *t;
! 1591: char const *s = 0 ? (char *) 0 : (char const *) 0;
! 1592:
! 1593: *t++ = 0;
! 1594: }
! 1595: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
! 1596: int x[] = {25, 17};
! 1597: const int *foo = &x[0];
! 1598: ++foo;
! 1599: }
! 1600: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
! 1601: typedef const int *iptr;
! 1602: iptr p = 0;
! 1603: ++p;
! 1604: }
! 1605: { /* AIX XL C 1.02.0.0 rejects this saying
! 1606: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
! 1607: struct s { int j; const int *ap[3]; };
! 1608: struct s *b; b->j = 5;
! 1609: }
! 1610: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
! 1611: const int foo = 10;
! 1612: }
! 1613:
! 1614: ; return 0; }
! 1615: EOF
! 1616: if { (eval echo configure:1617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
! 1617: rm -rf conftest*
! 1618: ac_cv_c_const=yes
! 1619: else
! 1620: echo "configure: failed program was:" >&5
! 1621: cat conftest.$ac_ext >&5
! 1622: rm -rf conftest*
! 1623: ac_cv_c_const=no
! 1624: fi
! 1625: rm -f conftest*
! 1626: fi
! 1627:
! 1628: echo "$ac_t""$ac_cv_c_const" 1>&6
! 1629: if test $ac_cv_c_const = no; then
! 1630: cat >> confdefs.h <<\EOF
! 1631: #define const
! 1632: EOF
! 1633:
! 1634: fi
! 1635:
! 1636: echo $ac_n "checking for inline""... $ac_c" 1>&6
! 1637: echo "configure:1638: checking for inline" >&5
! 1638: if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
! 1639: echo $ac_n "(cached) $ac_c" 1>&6
! 1640: else
! 1641: ac_cv_c_inline=no
! 1642: for ac_kw in inline __inline__ __inline; do
! 1643: cat > conftest.$ac_ext <<EOF
! 1644: #line 1645 "configure"
! 1645: #include "confdefs.h"
! 1646:
! 1647: int main() {
! 1648: } $ac_kw foo() {
! 1649: ; return 0; }
! 1650: EOF
! 1651: if { (eval echo configure:1652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
! 1652: rm -rf conftest*
! 1653: ac_cv_c_inline=$ac_kw; break
! 1654: else
! 1655: echo "configure: failed program was:" >&5
! 1656: cat conftest.$ac_ext >&5
! 1657: fi
! 1658: rm -f conftest*
! 1659: done
! 1660:
! 1661: fi
! 1662:
! 1663: echo "$ac_t""$ac_cv_c_inline" 1>&6
! 1664: case "$ac_cv_c_inline" in
! 1665: inline | yes) ;;
! 1666: no) cat >> confdefs.h <<\EOF
! 1667: #define inline
! 1668: EOF
! 1669: ;;
! 1670: *) cat >> confdefs.h <<EOF
! 1671: #define inline $ac_cv_c_inline
! 1672: EOF
! 1673: ;;
! 1674: esac
! 1675:
! 1676:
! 1677: if test `hostname` = tirka.ohse.de -a "$cross_compiling" = no ; then
! 1678: test $prefix = NONE && prefix=/usr
! 1679: if test -z "$CFLAGS" ; then
! 1680: case "$CC" in
! 1681: *gcc*)
! 1682: CFLAGS="-Wall -Wstrict-prototypes -Wmissing-prototypes"
! 1683: # -Wnested_externs entfernt wegen dcgettext()
! 1684: CFLAGS="$CFLAGS -Wpointer-arith -Wcast-qual -Wcast-align"
! 1685: CFLAGS="$CFLAGS -Winline -Wwrite-strings -Wshadow -Wmissing-braces"
! 1686: CFLAGS="$CFLAGS -Wcomments -fforce-mem -fforce-addr -O2 -m486 -pipe"
! 1687: CFLAGS="$CFLAGS -malign-loops=2 -malign-jumps=2 -malign-functions=2 -g3"
! 1688: ;;
! 1689: esac
! 1690: fi
! 1691: fi
! 1692: case "$CFLAGS" in
! 1693: *-Wstrict-prototypes*)
! 1694: cat >> confdefs.h <<\EOF
! 1695: #define STRICT_PROTOTYPES 1
! 1696: EOF
! 1697:
! 1698: ;;
! 1699: esac
! 1700:
! 1701: echo $ac_n "checking for syslog in -lsocket""... $ac_c" 1>&6
! 1702: echo "configure:1703: checking for syslog in -lsocket" >&5
! 1703: ac_lib_var=`echo socket'_'syslog | sed 'y%./+-%__p_%'`
! 1704: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
! 1705: echo $ac_n "(cached) $ac_c" 1>&6
! 1706: else
! 1707: ac_save_LIBS="$LIBS"
! 1708: LIBS="-lsocket $LIBS"
! 1709: cat > conftest.$ac_ext <<EOF
! 1710: #line 1711 "configure"
! 1711: #include "confdefs.h"
! 1712: /* Override any gcc2 internal prototype to avoid an error. */
! 1713: /* We use char because int might match the return type of a gcc2
! 1714: builtin and then its argument prototype would still apply. */
! 1715: char syslog();
! 1716:
! 1717: int main() {
! 1718: syslog()
! 1719: ; return 0; }
! 1720: EOF
! 1721: if { (eval echo configure:1722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 1722: rm -rf conftest*
! 1723: eval "ac_cv_lib_$ac_lib_var=yes"
! 1724: else
! 1725: echo "configure: failed program was:" >&5
! 1726: cat conftest.$ac_ext >&5
! 1727: rm -rf conftest*
! 1728: eval "ac_cv_lib_$ac_lib_var=no"
! 1729: fi
! 1730: rm -f conftest*
! 1731: LIBS="$ac_save_LIBS"
! 1732:
! 1733: fi
! 1734: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
! 1735: echo "$ac_t""yes" 1>&6
! 1736: ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
! 1737: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
! 1738: cat >> confdefs.h <<EOF
! 1739: #define $ac_tr_lib 1
! 1740: EOF
! 1741:
! 1742: LIBS="-lsocket $LIBS"
! 1743:
! 1744: else
! 1745: echo "$ac_t""no" 1>&6
! 1746: fi
! 1747:
! 1748: echo $ac_n "checking for syslog in -lbe""... $ac_c" 1>&6
! 1749: echo "configure:1750: checking for syslog in -lbe" >&5
! 1750: ac_lib_var=`echo be'_'syslog | sed 'y%./+-%__p_%'`
! 1751: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
! 1752: echo $ac_n "(cached) $ac_c" 1>&6
! 1753: else
! 1754: ac_save_LIBS="$LIBS"
! 1755: LIBS="-lbe $LIBS"
! 1756: cat > conftest.$ac_ext <<EOF
! 1757: #line 1758 "configure"
! 1758: #include "confdefs.h"
! 1759: /* Override any gcc2 internal prototype to avoid an error. */
! 1760: /* We use char because int might match the return type of a gcc2
! 1761: builtin and then its argument prototype would still apply. */
! 1762: char syslog();
! 1763:
! 1764: int main() {
! 1765: syslog()
! 1766: ; return 0; }
! 1767: EOF
! 1768: if { (eval echo configure:1769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 1769: rm -rf conftest*
! 1770: eval "ac_cv_lib_$ac_lib_var=yes"
! 1771: else
! 1772: echo "configure: failed program was:" >&5
! 1773: cat conftest.$ac_ext >&5
! 1774: rm -rf conftest*
! 1775: eval "ac_cv_lib_$ac_lib_var=no"
! 1776: fi
! 1777: rm -f conftest*
! 1778: LIBS="$ac_save_LIBS"
! 1779:
! 1780: fi
! 1781: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
! 1782: echo "$ac_t""yes" 1>&6
! 1783: ac_tr_lib=HAVE_LIB`echo be | sed -e 's/[^a-zA-Z0-9_]/_/g' \
! 1784: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
! 1785: cat >> confdefs.h <<EOF
! 1786: #define $ac_tr_lib 1
! 1787: EOF
! 1788:
! 1789: LIBS="-lbe $LIBS"
! 1790:
! 1791: else
! 1792: echo "$ac_t""no" 1>&6
! 1793: fi
! 1794:
! 1795: echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
! 1796: echo "configure:1797: checking for gethostbyname in -lnsl" >&5
! 1797: ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
! 1798: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
! 1799: echo $ac_n "(cached) $ac_c" 1>&6
! 1800: else
! 1801: ac_save_LIBS="$LIBS"
! 1802: LIBS="-lnsl $LIBS"
! 1803: cat > conftest.$ac_ext <<EOF
! 1804: #line 1805 "configure"
! 1805: #include "confdefs.h"
! 1806: /* Override any gcc2 internal prototype to avoid an error. */
! 1807: /* We use char because int might match the return type of a gcc2
! 1808: builtin and then its argument prototype would still apply. */
! 1809: char gethostbyname();
! 1810:
! 1811: int main() {
! 1812: gethostbyname()
! 1813: ; return 0; }
! 1814: EOF
! 1815: if { (eval echo configure:1816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 1816: rm -rf conftest*
! 1817: eval "ac_cv_lib_$ac_lib_var=yes"
! 1818: else
! 1819: echo "configure: failed program was:" >&5
! 1820: cat conftest.$ac_ext >&5
! 1821: rm -rf conftest*
! 1822: eval "ac_cv_lib_$ac_lib_var=no"
! 1823: fi
! 1824: rm -f conftest*
! 1825: LIBS="$ac_save_LIBS"
! 1826:
! 1827: fi
! 1828: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
! 1829: echo "$ac_t""yes" 1>&6
! 1830: ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
! 1831: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
! 1832: cat >> confdefs.h <<EOF
! 1833: #define $ac_tr_lib 1
! 1834: EOF
! 1835:
! 1836: LIBS="-lnsl $LIBS"
! 1837:
! 1838: else
! 1839: echo "$ac_t""no" 1>&6
! 1840: fi
! 1841:
! 1842:
! 1843: echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
! 1844: echo "configure:1845: checking for ANSI C header files" >&5
! 1845: if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
! 1846: echo $ac_n "(cached) $ac_c" 1>&6
! 1847: else
! 1848: cat > conftest.$ac_ext <<EOF
! 1849: #line 1850 "configure"
! 1850: #include "confdefs.h"
! 1851: #include <stdlib.h>
! 1852: #include <stdarg.h>
! 1853: #include <string.h>
! 1854: #include <float.h>
! 1855: EOF
! 1856: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 1857: { (eval echo configure:1858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 1858: ac_err=`grep -v '^ *+' conftest.out`
! 1859: if test -z "$ac_err"; then
! 1860: rm -rf conftest*
! 1861: ac_cv_header_stdc=yes
! 1862: else
! 1863: echo "$ac_err" >&5
! 1864: echo "configure: failed program was:" >&5
! 1865: cat conftest.$ac_ext >&5
! 1866: rm -rf conftest*
! 1867: ac_cv_header_stdc=no
! 1868: fi
! 1869: rm -f conftest*
! 1870:
! 1871: if test $ac_cv_header_stdc = yes; then
! 1872: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
! 1873: cat > conftest.$ac_ext <<EOF
! 1874: #line 1875 "configure"
! 1875: #include "confdefs.h"
! 1876: #include <string.h>
! 1877: EOF
! 1878: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 1879: egrep "memchr" >/dev/null 2>&1; then
! 1880: :
! 1881: else
! 1882: rm -rf conftest*
! 1883: ac_cv_header_stdc=no
! 1884: fi
! 1885: rm -f conftest*
! 1886:
! 1887: fi
! 1888:
! 1889: if test $ac_cv_header_stdc = yes; then
! 1890: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
! 1891: cat > conftest.$ac_ext <<EOF
! 1892: #line 1893 "configure"
! 1893: #include "confdefs.h"
! 1894: #include <stdlib.h>
! 1895: EOF
! 1896: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 1897: egrep "free" >/dev/null 2>&1; then
! 1898: :
! 1899: else
! 1900: rm -rf conftest*
! 1901: ac_cv_header_stdc=no
! 1902: fi
! 1903: rm -f conftest*
! 1904:
! 1905: fi
! 1906:
! 1907: if test $ac_cv_header_stdc = yes; then
! 1908: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
! 1909: if test "$cross_compiling" = yes; then
! 1910: :
! 1911: else
! 1912: cat > conftest.$ac_ext <<EOF
! 1913: #line 1914 "configure"
! 1914: #include "confdefs.h"
! 1915: #include <ctype.h>
! 1916: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
! 1917: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
! 1918: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
! 1919: int main () { int i; for (i = 0; i < 256; i++)
! 1920: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
! 1921: exit (0); }
! 1922:
! 1923: EOF
! 1924: if { (eval echo configure:1925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
! 1925: then
! 1926: :
! 1927: else
! 1928: echo "configure: failed program was:" >&5
! 1929: cat conftest.$ac_ext >&5
! 1930: rm -fr conftest*
! 1931: ac_cv_header_stdc=no
! 1932: fi
! 1933: rm -fr conftest*
! 1934: fi
! 1935:
! 1936: fi
! 1937: fi
! 1938:
! 1939: echo "$ac_t""$ac_cv_header_stdc" 1>&6
! 1940: if test $ac_cv_header_stdc = yes; then
! 1941: cat >> confdefs.h <<\EOF
! 1942: #define STDC_HEADERS 1
! 1943: EOF
! 1944:
! 1945: fi
! 1946:
! 1947: for ac_hdr in fcntl.h limits.h sys/ioctl.h sys/time.h unistd.h sys/times.h
! 1948: do
! 1949: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
! 1950: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
! 1951: echo "configure:1952: checking for $ac_hdr" >&5
! 1952: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
! 1953: echo $ac_n "(cached) $ac_c" 1>&6
! 1954: else
! 1955: cat > conftest.$ac_ext <<EOF
! 1956: #line 1957 "configure"
! 1957: #include "confdefs.h"
! 1958: #include <$ac_hdr>
! 1959: EOF
! 1960: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 1961: { (eval echo configure:1962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 1962: ac_err=`grep -v '^ *+' conftest.out`
! 1963: if test -z "$ac_err"; then
! 1964: rm -rf conftest*
! 1965: eval "ac_cv_header_$ac_safe=yes"
! 1966: else
! 1967: echo "$ac_err" >&5
! 1968: echo "configure: failed program was:" >&5
! 1969: cat conftest.$ac_ext >&5
! 1970: rm -rf conftest*
! 1971: eval "ac_cv_header_$ac_safe=no"
! 1972: fi
! 1973: rm -f conftest*
! 1974: fi
! 1975: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
! 1976: echo "$ac_t""yes" 1>&6
! 1977: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
! 1978: cat >> confdefs.h <<EOF
! 1979: #define $ac_tr_hdr 1
! 1980: EOF
! 1981:
! 1982: else
! 1983: echo "$ac_t""no" 1>&6
! 1984: fi
! 1985: done
! 1986:
! 1987:
! 1988: for ac_hdr in termios.h sys/termios.h termio.h sys/termio.h sgtty.h
! 1989: do
! 1990: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
! 1991: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
! 1992: echo "configure:1993: checking for $ac_hdr" >&5
! 1993: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
! 1994: echo $ac_n "(cached) $ac_c" 1>&6
! 1995: else
! 1996: cat > conftest.$ac_ext <<EOF
! 1997: #line 1998 "configure"
! 1998: #include "confdefs.h"
! 1999: #include <$ac_hdr>
! 2000: EOF
! 2001: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 2002: { (eval echo configure:2003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 2003: ac_err=`grep -v '^ *+' conftest.out`
! 2004: if test -z "$ac_err"; then
! 2005: rm -rf conftest*
! 2006: eval "ac_cv_header_$ac_safe=yes"
! 2007: else
! 2008: echo "$ac_err" >&5
! 2009: echo "configure: failed program was:" >&5
! 2010: cat conftest.$ac_ext >&5
! 2011: rm -rf conftest*
! 2012: eval "ac_cv_header_$ac_safe=no"
! 2013: fi
! 2014: rm -f conftest*
! 2015: fi
! 2016: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
! 2017: echo "$ac_t""yes" 1>&6
! 2018: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
! 2019: cat >> confdefs.h <<EOF
! 2020: #define $ac_tr_hdr 1
! 2021: EOF
! 2022:
! 2023: else
! 2024: echo "$ac_t""no" 1>&6
! 2025: fi
! 2026: done
! 2027:
! 2028: for ac_hdr in termios.h sys/termios.h termio.h sys/termio.h sgtty.h
! 2029: do
! 2030: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
! 2031: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
! 2032: echo "configure:2033: checking for $ac_hdr" >&5
! 2033: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
! 2034: echo $ac_n "(cached) $ac_c" 1>&6
! 2035: else
! 2036: cat > conftest.$ac_ext <<EOF
! 2037: #line 2038 "configure"
! 2038: #include "confdefs.h"
! 2039: #include <$ac_hdr>
! 2040: EOF
! 2041: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 2042: { (eval echo configure:2043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 2043: ac_err=`grep -v '^ *+' conftest.out`
! 2044: if test -z "$ac_err"; then
! 2045: rm -rf conftest*
! 2046: eval "ac_cv_header_$ac_safe=yes"
! 2047: else
! 2048: echo "$ac_err" >&5
! 2049: echo "configure: failed program was:" >&5
! 2050: cat conftest.$ac_ext >&5
! 2051: rm -rf conftest*
! 2052: eval "ac_cv_header_$ac_safe=no"
! 2053: fi
! 2054: rm -f conftest*
! 2055: fi
! 2056: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
! 2057: echo "$ac_t""yes" 1>&6
! 2058: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
! 2059: cat >> confdefs.h <<EOF
! 2060: #define $ac_tr_hdr 1
! 2061: EOF
! 2062:
! 2063: else
! 2064: echo "$ac_t""no" 1>&6
! 2065: fi
! 2066: done
! 2067:
! 2068: for ac_hdr in sys/mman.h utime.h syslog.h sys/syslog.h sys/param.h
! 2069: do
! 2070: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
! 2071: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
! 2072: echo "configure:2073: checking for $ac_hdr" >&5
! 2073: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
! 2074: echo $ac_n "(cached) $ac_c" 1>&6
! 2075: else
! 2076: cat > conftest.$ac_ext <<EOF
! 2077: #line 2078 "configure"
! 2078: #include "confdefs.h"
! 2079: #include <$ac_hdr>
! 2080: EOF
! 2081: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 2082: { (eval echo configure:2083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 2083: ac_err=`grep -v '^ *+' conftest.out`
! 2084: if test -z "$ac_err"; then
! 2085: rm -rf conftest*
! 2086: eval "ac_cv_header_$ac_safe=yes"
! 2087: else
! 2088: echo "$ac_err" >&5
! 2089: echo "configure: failed program was:" >&5
! 2090: cat conftest.$ac_ext >&5
! 2091: rm -rf conftest*
! 2092: eval "ac_cv_header_$ac_safe=no"
! 2093: fi
! 2094: rm -f conftest*
! 2095: fi
! 2096: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
! 2097: echo "$ac_t""yes" 1>&6
! 2098: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
! 2099: cat >> confdefs.h <<EOF
! 2100: #define $ac_tr_hdr 1
! 2101: EOF
! 2102:
! 2103: else
! 2104: echo "$ac_t""no" 1>&6
! 2105: fi
! 2106: done
! 2107:
! 2108: for ac_hdr in sys/select.h strings.h arpa/inet.h
! 2109: do
! 2110: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
! 2111: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
! 2112: echo "configure:2113: checking for $ac_hdr" >&5
! 2113: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
! 2114: echo $ac_n "(cached) $ac_c" 1>&6
! 2115: else
! 2116: cat > conftest.$ac_ext <<EOF
! 2117: #line 2118 "configure"
! 2118: #include "confdefs.h"
! 2119: #include <$ac_hdr>
! 2120: EOF
! 2121: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 2122: { (eval echo configure:2123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 2123: ac_err=`grep -v '^ *+' conftest.out`
! 2124: if test -z "$ac_err"; then
! 2125: rm -rf conftest*
! 2126: eval "ac_cv_header_$ac_safe=yes"
! 2127: else
! 2128: echo "$ac_err" >&5
! 2129: echo "configure: failed program was:" >&5
! 2130: cat conftest.$ac_ext >&5
! 2131: rm -rf conftest*
! 2132: eval "ac_cv_header_$ac_safe=no"
! 2133: fi
! 2134: rm -f conftest*
! 2135: fi
! 2136: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
! 2137: echo "$ac_t""yes" 1>&6
! 2138: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
! 2139: cat >> confdefs.h <<EOF
! 2140: #define $ac_tr_hdr 1
! 2141: EOF
! 2142:
! 2143: else
! 2144: echo "$ac_t""no" 1>&6
! 2145: fi
! 2146: done
! 2147:
! 2148:
! 2149: echo $ac_n "checking for size_t""... $ac_c" 1>&6
! 2150: echo "configure:2151: checking for size_t" >&5
! 2151: if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
! 2152: echo $ac_n "(cached) $ac_c" 1>&6
! 2153: else
! 2154: cat > conftest.$ac_ext <<EOF
! 2155: #line 2156 "configure"
! 2156: #include "confdefs.h"
! 2157: #include <sys/types.h>
! 2158: #if STDC_HEADERS
! 2159: #include <stdlib.h>
! 2160: #include <stddef.h>
! 2161: #endif
! 2162: EOF
! 2163: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 2164: egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
! 2165: rm -rf conftest*
! 2166: ac_cv_type_size_t=yes
! 2167: else
! 2168: rm -rf conftest*
! 2169: ac_cv_type_size_t=no
! 2170: fi
! 2171: rm -f conftest*
! 2172:
! 2173: fi
! 2174: echo "$ac_t""$ac_cv_type_size_t" 1>&6
! 2175: if test $ac_cv_type_size_t = no; then
! 2176: cat >> confdefs.h <<\EOF
! 2177: #define size_t unsigned
! 2178: EOF
! 2179:
! 2180: fi
! 2181:
! 2182: echo $ac_n "checking for mode_t""... $ac_c" 1>&6
! 2183: echo "configure:2184: checking for mode_t" >&5
! 2184: if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
! 2185: echo $ac_n "(cached) $ac_c" 1>&6
! 2186: else
! 2187: cat > conftest.$ac_ext <<EOF
! 2188: #line 2189 "configure"
! 2189: #include "confdefs.h"
! 2190: #include <sys/types.h>
! 2191: #if STDC_HEADERS
! 2192: #include <stdlib.h>
! 2193: #include <stddef.h>
! 2194: #endif
! 2195: EOF
! 2196: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 2197: egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
! 2198: rm -rf conftest*
! 2199: ac_cv_type_mode_t=yes
! 2200: else
! 2201: rm -rf conftest*
! 2202: ac_cv_type_mode_t=no
! 2203: fi
! 2204: rm -f conftest*
! 2205:
! 2206: fi
! 2207: echo "$ac_t""$ac_cv_type_mode_t" 1>&6
! 2208: if test $ac_cv_type_mode_t = no; then
! 2209: cat >> confdefs.h <<\EOF
! 2210: #define mode_t int
! 2211: EOF
! 2212:
! 2213: fi
! 2214:
! 2215: echo $ac_n "checking for off_t""... $ac_c" 1>&6
! 2216: echo "configure:2217: checking for off_t" >&5
! 2217: if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
! 2218: echo $ac_n "(cached) $ac_c" 1>&6
! 2219: else
! 2220: cat > conftest.$ac_ext <<EOF
! 2221: #line 2222 "configure"
! 2222: #include "confdefs.h"
! 2223: #include <sys/types.h>
! 2224: #if STDC_HEADERS
! 2225: #include <stdlib.h>
! 2226: #include <stddef.h>
! 2227: #endif
! 2228: EOF
! 2229: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 2230: egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
! 2231: rm -rf conftest*
! 2232: ac_cv_type_off_t=yes
! 2233: else
! 2234: rm -rf conftest*
! 2235: ac_cv_type_off_t=no
! 2236: fi
! 2237: rm -f conftest*
! 2238:
! 2239: fi
! 2240: echo "$ac_t""$ac_cv_type_off_t" 1>&6
! 2241: if test $ac_cv_type_off_t = no; then
! 2242: cat >> confdefs.h <<\EOF
! 2243: #define off_t long
! 2244: EOF
! 2245:
! 2246: fi
! 2247:
! 2248:
! 2249: echo $ac_n "checking for speed_t""... $ac_c" 1>&6
! 2250: echo "configure:2251: checking for speed_t" >&5
! 2251: if eval "test \"`echo '$''{'ac_cv_type_speed_t'+set}'`\" = set"; then
! 2252: echo $ac_n "(cached) $ac_c" 1>&6
! 2253: else
! 2254: cat > conftest.$ac_ext <<EOF
! 2255: #line 2256 "configure"
! 2256: #include "confdefs.h"
! 2257: #include <sys/types.h>
! 2258: #if STDC_HEADERS
! 2259: #include <stdlib.h>
! 2260: #include <stddef.h>
! 2261: #endif
! 2262: #ifdef HAVE_TERMIOS_H
! 2263: #include <termios.h>
! 2264: #else
! 2265: #if defined(HAVE_SYS_TERMIOS_H)
! 2266: #include <sys/termios.h>
! 2267: #else
! 2268: #if defined(HAVE_TERMIO_H)
! 2269: #include <termio.h>
! 2270: #else
! 2271: #if defined(HAVE_SYS_TERMIO_H)
! 2272: #include <sys/termio.h>
! 2273: #else
! 2274: #if defined(HAVE_SGTTY_H)
! 2275: #include <sgtty.h>
! 2276: #else
! 2277: #error neither termio.h nor sgtty.h found. Cannot continue. */
! 2278: #endif
! 2279: #endif
! 2280: #endif
! 2281: #endif
! 2282: #endif
! 2283:
! 2284: EOF
! 2285: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 2286: egrep "speed_t" >/dev/null 2>&1; then
! 2287: rm -rf conftest*
! 2288: ac_cv_type_speed_t=yes
! 2289: else
! 2290: rm -rf conftest*
! 2291: ac_cv_type_speed_t=no
! 2292: fi
! 2293: rm -f conftest*
! 2294:
! 2295: fi
! 2296: echo "$ac_t""$ac_cv_type_speed_t" 1>&6
! 2297: if test $ac_cv_type_speed_t = no; then
! 2298: cat >> confdefs.h <<\EOF
! 2299: #define speed_t long
! 2300: EOF
! 2301:
! 2302: fi
! 2303:
! 2304: echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
! 2305: echo "configure:2306: checking for st_rdev in struct stat" >&5
! 2306: if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
! 2307: echo $ac_n "(cached) $ac_c" 1>&6
! 2308: else
! 2309: cat > conftest.$ac_ext <<EOF
! 2310: #line 2311 "configure"
! 2311: #include "confdefs.h"
! 2312: #include <sys/types.h>
! 2313: #include <sys/stat.h>
! 2314: int main() {
! 2315: struct stat s; s.st_rdev;
! 2316: ; return 0; }
! 2317: EOF
! 2318: if { (eval echo configure:2319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
! 2319: rm -rf conftest*
! 2320: ac_cv_struct_st_rdev=yes
! 2321: else
! 2322: echo "configure: failed program was:" >&5
! 2323: cat conftest.$ac_ext >&5
! 2324: rm -rf conftest*
! 2325: ac_cv_struct_st_rdev=no
! 2326: fi
! 2327: rm -f conftest*
! 2328: fi
! 2329:
! 2330: echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
! 2331: if test $ac_cv_struct_st_rdev = yes; then
! 2332: cat >> confdefs.h <<\EOF
! 2333: #define HAVE_ST_RDEV 1
! 2334: EOF
! 2335:
! 2336: fi
! 2337:
! 2338: echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
! 2339: echo "configure:2340: checking whether time.h and sys/time.h may both be included" >&5
! 2340: if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
! 2341: echo $ac_n "(cached) $ac_c" 1>&6
! 2342: else
! 2343: cat > conftest.$ac_ext <<EOF
! 2344: #line 2345 "configure"
! 2345: #include "confdefs.h"
! 2346: #include <sys/types.h>
! 2347: #include <sys/time.h>
! 2348: #include <time.h>
! 2349: int main() {
! 2350: struct tm *tp;
! 2351: ; return 0; }
! 2352: EOF
! 2353: if { (eval echo configure:2354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
! 2354: rm -rf conftest*
! 2355: ac_cv_header_time=yes
! 2356: else
! 2357: echo "configure: failed program was:" >&5
! 2358: cat conftest.$ac_ext >&5
! 2359: rm -rf conftest*
! 2360: ac_cv_header_time=no
! 2361: fi
! 2362: rm -f conftest*
! 2363: fi
! 2364:
! 2365: echo "$ac_t""$ac_cv_header_time" 1>&6
! 2366: if test $ac_cv_header_time = yes; then
! 2367: cat >> confdefs.h <<\EOF
! 2368: #define TIME_WITH_SYS_TIME 1
! 2369: EOF
! 2370:
! 2371: fi
! 2372:
! 2373: echo $ac_n "checking whether sys/time.h and sys/select.h may both be included""... $ac_c" 1>&6
! 2374: echo "configure:2375: checking whether sys/time.h and sys/select.h may both be included" >&5
! 2375: if eval "test \"`echo '$''{'lrzsz_cv_header_sys_select'+set}'`\" = set"; then
! 2376: echo $ac_n "(cached) $ac_c" 1>&6
! 2377: else
! 2378: cat > conftest.$ac_ext <<EOF
! 2379: #line 2380 "configure"
! 2380: #include "confdefs.h"
! 2381: #include <sys/types.h>
! 2382: #include <sys/time.h>
! 2383: #include <sys/select.h>
! 2384: int main() {
! 2385: struct tm *tp;
! 2386: ; return 0; }
! 2387: EOF
! 2388: if { (eval echo configure:2389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
! 2389: rm -rf conftest*
! 2390: lrzsz_cv_header_sys_select=yes
! 2391: else
! 2392: echo "configure: failed program was:" >&5
! 2393: cat conftest.$ac_ext >&5
! 2394: rm -rf conftest*
! 2395: lrzsz_cv_header_sys_select=no
! 2396: fi
! 2397: rm -f conftest*
! 2398: fi
! 2399:
! 2400: echo "$ac_t""$lrzsz_cv_header_sys_select" 1>&6
! 2401: if test $lrzsz_cv_header_sys_select = no; then
! 2402: cat >> confdefs.h <<\EOF
! 2403: #define SYS_TIME_WITHOUT_SYS_SELECT 1
! 2404: EOF
! 2405:
! 2406: fi
! 2407:
! 2408: echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
! 2409: echo "configure:2410: checking whether struct tm is in sys/time.h or time.h" >&5
! 2410: if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
! 2411: echo $ac_n "(cached) $ac_c" 1>&6
! 2412: else
! 2413: cat > conftest.$ac_ext <<EOF
! 2414: #line 2415 "configure"
! 2415: #include "confdefs.h"
! 2416: #include <sys/types.h>
! 2417: #include <time.h>
! 2418: int main() {
! 2419: struct tm *tp; tp->tm_sec;
! 2420: ; return 0; }
! 2421: EOF
! 2422: if { (eval echo configure:2423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
! 2423: rm -rf conftest*
! 2424: ac_cv_struct_tm=time.h
! 2425: else
! 2426: echo "configure: failed program was:" >&5
! 2427: cat conftest.$ac_ext >&5
! 2428: rm -rf conftest*
! 2429: ac_cv_struct_tm=sys/time.h
! 2430: fi
! 2431: rm -f conftest*
! 2432: fi
! 2433:
! 2434: echo "$ac_t""$ac_cv_struct_tm" 1>&6
! 2435: if test $ac_cv_struct_tm = sys/time.h; then
! 2436: cat >> confdefs.h <<\EOF
! 2437: #define TM_IN_SYS_TIME 1
! 2438: EOF
! 2439:
! 2440: fi
! 2441:
! 2442:
! 2443: echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
! 2444: echo "configure:2445: checking for errno declaration" >&5
! 2445: if eval "test \"`echo '$''{'lrzsz_cv_decl_errno'+set}'`\" = set"; then
! 2446: echo $ac_n "(cached) $ac_c" 1>&6
! 2447: else
! 2448: cat > conftest.$ac_ext <<EOF
! 2449: #line 2450 "configure"
! 2450: #include "confdefs.h"
! 2451: #include <errno.h>
! 2452: int main() {
! 2453: int i = errno; errno = 1;
! 2454: ; return 0; }
! 2455: EOF
! 2456: if { (eval echo configure:2457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
! 2457: rm -rf conftest*
! 2458: lrzsz_cv_decl_errno=yes
! 2459: else
! 2460: echo "configure: failed program was:" >&5
! 2461: cat conftest.$ac_ext >&5
! 2462: rm -rf conftest*
! 2463: lrzsz_cv_decl_errno=no
! 2464: fi
! 2465: rm -f conftest*
! 2466: fi
! 2467:
! 2468: echo "$ac_t""$lrzsz_cv_decl_errno" 1>&6
! 2469: if test $lrzsz_cv_decl_errno = yes; then
! 2470: cat >> confdefs.h <<\EOF
! 2471: #define HAVE_ERRNO_DECLARATION 1
! 2472: EOF
! 2473:
! 2474: fi
! 2475:
! 2476:
! 2477: if test $cross_compiling = no ; then
! 2478: echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6
! 2479: echo "configure:2480: checking whether setvbuf arguments are reversed" >&5
! 2480: if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
! 2481: echo $ac_n "(cached) $ac_c" 1>&6
! 2482: else
! 2483: if test "$cross_compiling" = yes; then
! 2484: { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
! 2485: else
! 2486: cat > conftest.$ac_ext <<EOF
! 2487: #line 2488 "configure"
! 2488: #include "confdefs.h"
! 2489: #include <stdio.h>
! 2490: /* If setvbuf has the reversed format, exit 0. */
! 2491: main () {
! 2492: /* This call has the arguments reversed.
! 2493: A reversed system may check and see that the address of main
! 2494: is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
! 2495: if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
! 2496: exit(1);
! 2497: putc('\r', stdout);
! 2498: exit(0); /* Non-reversed systems segv here. */
! 2499: }
! 2500: EOF
! 2501: if { (eval echo configure:2502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
! 2502: then
! 2503: ac_cv_func_setvbuf_reversed=yes
! 2504: else
! 2505: echo "configure: failed program was:" >&5
! 2506: cat conftest.$ac_ext >&5
! 2507: rm -fr conftest*
! 2508: ac_cv_func_setvbuf_reversed=no
! 2509: fi
! 2510: rm -fr conftest*
! 2511: fi
! 2512:
! 2513: rm -f core core.* *.core
! 2514: fi
! 2515:
! 2516: echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6
! 2517: if test $ac_cv_func_setvbuf_reversed = yes; then
! 2518: cat >> confdefs.h <<\EOF
! 2519: #define SETVBUF_REVERSED 1
! 2520: EOF
! 2521:
! 2522: fi
! 2523:
! 2524: fi
! 2525: echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
! 2526: echo "configure:2527: checking return type of signal handlers" >&5
! 2527: if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
! 2528: echo $ac_n "(cached) $ac_c" 1>&6
! 2529: else
! 2530: cat > conftest.$ac_ext <<EOF
! 2531: #line 2532 "configure"
! 2532: #include "confdefs.h"
! 2533: #include <sys/types.h>
! 2534: #include <signal.h>
! 2535: #ifdef signal
! 2536: #undef signal
! 2537: #endif
! 2538: #ifdef __cplusplus
! 2539: extern "C" void (*signal (int, void (*)(int)))(int);
! 2540: #else
! 2541: void (*signal ()) ();
! 2542: #endif
! 2543:
! 2544: int main() {
! 2545: int i;
! 2546: ; return 0; }
! 2547: EOF
! 2548: if { (eval echo configure:2549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
! 2549: rm -rf conftest*
! 2550: ac_cv_type_signal=void
! 2551: else
! 2552: echo "configure: failed program was:" >&5
! 2553: cat conftest.$ac_ext >&5
! 2554: rm -rf conftest*
! 2555: ac_cv_type_signal=int
! 2556: fi
! 2557: rm -f conftest*
! 2558: fi
! 2559:
! 2560: echo "$ac_t""$ac_cv_type_signal" 1>&6
! 2561: cat >> confdefs.h <<EOF
! 2562: #define RETSIGTYPE $ac_cv_type_signal
! 2563: EOF
! 2564:
! 2565:
! 2566: for ac_hdr in unistd.h
! 2567: do
! 2568: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
! 2569: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
! 2570: echo "configure:2571: checking for $ac_hdr" >&5
! 2571: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
! 2572: echo $ac_n "(cached) $ac_c" 1>&6
! 2573: else
! 2574: cat > conftest.$ac_ext <<EOF
! 2575: #line 2576 "configure"
! 2576: #include "confdefs.h"
! 2577: #include <$ac_hdr>
! 2578: EOF
! 2579: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 2580: { (eval echo configure:2581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 2581: ac_err=`grep -v '^ *+' conftest.out`
! 2582: if test -z "$ac_err"; then
! 2583: rm -rf conftest*
! 2584: eval "ac_cv_header_$ac_safe=yes"
! 2585: else
! 2586: echo "$ac_err" >&5
! 2587: echo "configure: failed program was:" >&5
! 2588: cat conftest.$ac_ext >&5
! 2589: rm -rf conftest*
! 2590: eval "ac_cv_header_$ac_safe=no"
! 2591: fi
! 2592: rm -f conftest*
! 2593: fi
! 2594: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
! 2595: echo "$ac_t""yes" 1>&6
! 2596: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
! 2597: cat >> confdefs.h <<EOF
! 2598: #define $ac_tr_hdr 1
! 2599: EOF
! 2600:
! 2601: else
! 2602: echo "$ac_t""no" 1>&6
! 2603: fi
! 2604: done
! 2605:
! 2606: for ac_func in getpagesize
! 2607: do
! 2608: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! 2609: echo "configure:2610: checking for $ac_func" >&5
! 2610: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
! 2611: echo $ac_n "(cached) $ac_c" 1>&6
! 2612: else
! 2613: cat > conftest.$ac_ext <<EOF
! 2614: #line 2615 "configure"
! 2615: #include "confdefs.h"
! 2616: /* System header to define __stub macros and hopefully few prototypes,
! 2617: which can conflict with char $ac_func(); below. */
! 2618: #include <assert.h>
! 2619: /* Override any gcc2 internal prototype to avoid an error. */
! 2620: /* We use char because int might match the return type of a gcc2
! 2621: builtin and then its argument prototype would still apply. */
! 2622: char $ac_func();
! 2623:
! 2624: int main() {
! 2625:
! 2626: /* The GNU C library defines this for functions which it implements
! 2627: to always fail with ENOSYS. Some functions are actually named
! 2628: something starting with __ and the normal name is an alias. */
! 2629: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 2630: choke me
! 2631: #else
! 2632: $ac_func();
! 2633: #endif
! 2634:
! 2635: ; return 0; }
! 2636: EOF
! 2637: if { (eval echo configure:2638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 2638: rm -rf conftest*
! 2639: eval "ac_cv_func_$ac_func=yes"
! 2640: else
! 2641: echo "configure: failed program was:" >&5
! 2642: cat conftest.$ac_ext >&5
! 2643: rm -rf conftest*
! 2644: eval "ac_cv_func_$ac_func=no"
! 2645: fi
! 2646: rm -f conftest*
! 2647: fi
! 2648:
! 2649: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
! 2650: echo "$ac_t""yes" 1>&6
! 2651: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
! 2652: cat >> confdefs.h <<EOF
! 2653: #define $ac_tr_func 1
! 2654: EOF
! 2655:
! 2656: else
! 2657: echo "$ac_t""no" 1>&6
! 2658: fi
! 2659: done
! 2660:
! 2661: echo $ac_n "checking for working mmap""... $ac_c" 1>&6
! 2662: echo "configure:2663: checking for working mmap" >&5
! 2663: if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
! 2664: echo $ac_n "(cached) $ac_c" 1>&6
! 2665: else
! 2666: if test "$cross_compiling" = yes; then
! 2667: ac_cv_func_mmap_fixed_mapped=no
! 2668: else
! 2669: cat > conftest.$ac_ext <<EOF
! 2670: #line 2671 "configure"
! 2671: #include "confdefs.h"
! 2672:
! 2673: /* Thanks to Mike Haertel and Jim Avera for this test.
! 2674: Here is a matrix of mmap possibilities:
! 2675: mmap private not fixed
! 2676: mmap private fixed at somewhere currently unmapped
! 2677: mmap private fixed at somewhere already mapped
! 2678: mmap shared not fixed
! 2679: mmap shared fixed at somewhere currently unmapped
! 2680: mmap shared fixed at somewhere already mapped
! 2681: For private mappings, we should verify that changes cannot be read()
! 2682: back from the file, nor mmap's back from the file at a different
! 2683: address. (There have been systems where private was not correctly
! 2684: implemented like the infamous i386 svr4.0, and systems where the
! 2685: VM page cache was not coherent with the filesystem buffer cache
! 2686: like early versions of FreeBSD and possibly contemporary NetBSD.)
! 2687: For shared mappings, we should conversely verify that changes get
! 2688: propogated back to all the places they're supposed to be.
! 2689:
! 2690: Grep wants private fixed already mapped.
! 2691: The main things grep needs to know about mmap are:
! 2692: * does it exist and is it safe to write into the mmap'd area
! 2693: * how to use it (BSD variants) */
! 2694: #include <sys/types.h>
! 2695: #include <fcntl.h>
! 2696: #include <sys/mman.h>
! 2697:
! 2698: /* This mess was copied from the GNU getpagesize.h. */
! 2699: #ifndef HAVE_GETPAGESIZE
! 2700: # ifdef HAVE_UNISTD_H
! 2701: # include <unistd.h>
! 2702: # endif
! 2703:
! 2704: /* Assume that all systems that can run configure have sys/param.h. */
! 2705: # ifndef HAVE_SYS_PARAM_H
! 2706: # define HAVE_SYS_PARAM_H 1
! 2707: # endif
! 2708:
! 2709: # ifdef _SC_PAGESIZE
! 2710: # define getpagesize() sysconf(_SC_PAGESIZE)
! 2711: # else /* no _SC_PAGESIZE */
! 2712: # ifdef HAVE_SYS_PARAM_H
! 2713: # include <sys/param.h>
! 2714: # ifdef EXEC_PAGESIZE
! 2715: # define getpagesize() EXEC_PAGESIZE
! 2716: # else /* no EXEC_PAGESIZE */
! 2717: # ifdef NBPG
! 2718: # define getpagesize() NBPG * CLSIZE
! 2719: # ifndef CLSIZE
! 2720: # define CLSIZE 1
! 2721: # endif /* no CLSIZE */
! 2722: # else /* no NBPG */
! 2723: # ifdef NBPC
! 2724: # define getpagesize() NBPC
! 2725: # else /* no NBPC */
! 2726: # ifdef PAGESIZE
! 2727: # define getpagesize() PAGESIZE
! 2728: # endif /* PAGESIZE */
! 2729: # endif /* no NBPC */
! 2730: # endif /* no NBPG */
! 2731: # endif /* no EXEC_PAGESIZE */
! 2732: # else /* no HAVE_SYS_PARAM_H */
! 2733: # define getpagesize() 8192 /* punt totally */
! 2734: # endif /* no HAVE_SYS_PARAM_H */
! 2735: # endif /* no _SC_PAGESIZE */
! 2736:
! 2737: #endif /* no HAVE_GETPAGESIZE */
! 2738:
! 2739: #ifdef __cplusplus
! 2740: extern "C" { void *malloc(unsigned); }
! 2741: #else
! 2742: char *malloc();
! 2743: #endif
! 2744:
! 2745: int
! 2746: main()
! 2747: {
! 2748: char *data, *data2, *data3;
! 2749: int i, pagesize;
! 2750: int fd;
! 2751:
! 2752: pagesize = getpagesize();
! 2753:
! 2754: /*
! 2755: * First, make a file with some known garbage in it.
! 2756: */
! 2757: data = malloc(pagesize);
! 2758: if (!data)
! 2759: exit(1);
! 2760: for (i = 0; i < pagesize; ++i)
! 2761: *(data + i) = rand();
! 2762: umask(0);
! 2763: fd = creat("conftestmmap", 0600);
! 2764: if (fd < 0)
! 2765: exit(1);
! 2766: if (write(fd, data, pagesize) != pagesize)
! 2767: exit(1);
! 2768: close(fd);
! 2769:
! 2770: /*
! 2771: * Next, try to mmap the file at a fixed address which
! 2772: * already has something else allocated at it. If we can,
! 2773: * also make sure that we see the same garbage.
! 2774: */
! 2775: fd = open("conftestmmap", O_RDWR);
! 2776: if (fd < 0)
! 2777: exit(1);
! 2778: data2 = malloc(2 * pagesize);
! 2779: if (!data2)
! 2780: exit(1);
! 2781: data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
! 2782: if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
! 2783: MAP_PRIVATE | MAP_FIXED, fd, 0L))
! 2784: exit(1);
! 2785: for (i = 0; i < pagesize; ++i)
! 2786: if (*(data + i) != *(data2 + i))
! 2787: exit(1);
! 2788:
! 2789: /*
! 2790: * Finally, make sure that changes to the mapped area
! 2791: * do not percolate back to the file as seen by read().
! 2792: * (This is a bug on some variants of i386 svr4.0.)
! 2793: */
! 2794: for (i = 0; i < pagesize; ++i)
! 2795: *(data2 + i) = *(data2 + i) + 1;
! 2796: data3 = malloc(pagesize);
! 2797: if (!data3)
! 2798: exit(1);
! 2799: if (read(fd, data3, pagesize) != pagesize)
! 2800: exit(1);
! 2801: for (i = 0; i < pagesize; ++i)
! 2802: if (*(data + i) != *(data3 + i))
! 2803: exit(1);
! 2804: close(fd);
! 2805: unlink("conftestmmap");
! 2806: exit(0);
! 2807: }
! 2808:
! 2809: EOF
! 2810: if { (eval echo configure:2811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
! 2811: then
! 2812: ac_cv_func_mmap_fixed_mapped=yes
! 2813: else
! 2814: echo "configure: failed program was:" >&5
! 2815: cat conftest.$ac_ext >&5
! 2816: rm -fr conftest*
! 2817: ac_cv_func_mmap_fixed_mapped=no
! 2818: fi
! 2819: rm -fr conftest*
! 2820: fi
! 2821:
! 2822: fi
! 2823:
! 2824: echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
! 2825: if test $ac_cv_func_mmap_fixed_mapped = yes; then
! 2826: cat >> confdefs.h <<\EOF
! 2827: #define HAVE_MMAP 1
! 2828: EOF
! 2829:
! 2830: fi
! 2831:
! 2832: # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
! 2833: # for constant arguments. Useless!
! 2834: echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
! 2835: echo "configure:2836: checking for working alloca.h" >&5
! 2836: if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
! 2837: echo $ac_n "(cached) $ac_c" 1>&6
! 2838: else
! 2839: cat > conftest.$ac_ext <<EOF
! 2840: #line 2841 "configure"
! 2841: #include "confdefs.h"
! 2842: #include <alloca.h>
! 2843: int main() {
! 2844: char *p = alloca(2 * sizeof(int));
! 2845: ; return 0; }
! 2846: EOF
! 2847: if { (eval echo configure:2848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 2848: rm -rf conftest*
! 2849: ac_cv_header_alloca_h=yes
! 2850: else
! 2851: echo "configure: failed program was:" >&5
! 2852: cat conftest.$ac_ext >&5
! 2853: rm -rf conftest*
! 2854: ac_cv_header_alloca_h=no
! 2855: fi
! 2856: rm -f conftest*
! 2857: fi
! 2858:
! 2859: echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
! 2860: if test $ac_cv_header_alloca_h = yes; then
! 2861: cat >> confdefs.h <<\EOF
! 2862: #define HAVE_ALLOCA_H 1
! 2863: EOF
! 2864:
! 2865: fi
! 2866:
! 2867: echo $ac_n "checking for alloca""... $ac_c" 1>&6
! 2868: echo "configure:2869: checking for alloca" >&5
! 2869: if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
! 2870: echo $ac_n "(cached) $ac_c" 1>&6
! 2871: else
! 2872: cat > conftest.$ac_ext <<EOF
! 2873: #line 2874 "configure"
! 2874: #include "confdefs.h"
! 2875:
! 2876: #ifdef __GNUC__
! 2877: # define alloca __builtin_alloca
! 2878: #else
! 2879: # if HAVE_ALLOCA_H
! 2880: # include <alloca.h>
! 2881: # else
! 2882: # ifdef _AIX
! 2883: #pragma alloca
! 2884: # else
! 2885: # ifndef alloca /* predefined by HP cc +Olibcalls */
! 2886: char *alloca ();
! 2887: # endif
! 2888: # endif
! 2889: # endif
! 2890: #endif
! 2891:
! 2892: int main() {
! 2893: char *p = (char *) alloca(1);
! 2894: ; return 0; }
! 2895: EOF
! 2896: if { (eval echo configure:2897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 2897: rm -rf conftest*
! 2898: ac_cv_func_alloca_works=yes
! 2899: else
! 2900: echo "configure: failed program was:" >&5
! 2901: cat conftest.$ac_ext >&5
! 2902: rm -rf conftest*
! 2903: ac_cv_func_alloca_works=no
! 2904: fi
! 2905: rm -f conftest*
! 2906: fi
! 2907:
! 2908: echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
! 2909: if test $ac_cv_func_alloca_works = yes; then
! 2910: cat >> confdefs.h <<\EOF
! 2911: #define HAVE_ALLOCA 1
! 2912: EOF
! 2913:
! 2914: fi
! 2915:
! 2916: if test $ac_cv_func_alloca_works = no; then
! 2917: # The SVR3 libPW and SVR4 libucb both contain incompatible functions
! 2918: # that cause trouble. Some versions do not even contain alloca or
! 2919: # contain a buggy version. If you still want to use their alloca,
! 2920: # use ar to extract alloca.o from them instead of compiling alloca.c.
! 2921: ALLOCA=alloca.o
! 2922: cat >> confdefs.h <<\EOF
! 2923: #define C_ALLOCA 1
! 2924: EOF
! 2925:
! 2926:
! 2927: echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
! 2928: echo "configure:2929: checking whether alloca needs Cray hooks" >&5
! 2929: if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
! 2930: echo $ac_n "(cached) $ac_c" 1>&6
! 2931: else
! 2932: cat > conftest.$ac_ext <<EOF
! 2933: #line 2934 "configure"
! 2934: #include "confdefs.h"
! 2935: #if defined(CRAY) && ! defined(CRAY2)
! 2936: webecray
! 2937: #else
! 2938: wenotbecray
! 2939: #endif
! 2940:
! 2941: EOF
! 2942: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 2943: egrep "webecray" >/dev/null 2>&1; then
! 2944: rm -rf conftest*
! 2945: ac_cv_os_cray=yes
! 2946: else
! 2947: rm -rf conftest*
! 2948: ac_cv_os_cray=no
! 2949: fi
! 2950: rm -f conftest*
! 2951:
! 2952: fi
! 2953:
! 2954: echo "$ac_t""$ac_cv_os_cray" 1>&6
! 2955: if test $ac_cv_os_cray = yes; then
! 2956: for ac_func in _getb67 GETB67 getb67; do
! 2957: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! 2958: echo "configure:2959: checking for $ac_func" >&5
! 2959: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
! 2960: echo $ac_n "(cached) $ac_c" 1>&6
! 2961: else
! 2962: cat > conftest.$ac_ext <<EOF
! 2963: #line 2964 "configure"
! 2964: #include "confdefs.h"
! 2965: /* System header to define __stub macros and hopefully few prototypes,
! 2966: which can conflict with char $ac_func(); below. */
! 2967: #include <assert.h>
! 2968: /* Override any gcc2 internal prototype to avoid an error. */
! 2969: /* We use char because int might match the return type of a gcc2
! 2970: builtin and then its argument prototype would still apply. */
! 2971: char $ac_func();
! 2972:
! 2973: int main() {
! 2974:
! 2975: /* The GNU C library defines this for functions which it implements
! 2976: to always fail with ENOSYS. Some functions are actually named
! 2977: something starting with __ and the normal name is an alias. */
! 2978: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 2979: choke me
! 2980: #else
! 2981: $ac_func();
! 2982: #endif
! 2983:
! 2984: ; return 0; }
! 2985: EOF
! 2986: if { (eval echo configure:2987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 2987: rm -rf conftest*
! 2988: eval "ac_cv_func_$ac_func=yes"
! 2989: else
! 2990: echo "configure: failed program was:" >&5
! 2991: cat conftest.$ac_ext >&5
! 2992: rm -rf conftest*
! 2993: eval "ac_cv_func_$ac_func=no"
! 2994: fi
! 2995: rm -f conftest*
! 2996: fi
! 2997:
! 2998: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
! 2999: echo "$ac_t""yes" 1>&6
! 3000: cat >> confdefs.h <<EOF
! 3001: #define CRAY_STACKSEG_END $ac_func
! 3002: EOF
! 3003:
! 3004: break
! 3005: else
! 3006: echo "$ac_t""no" 1>&6
! 3007: fi
! 3008:
! 3009: done
! 3010: fi
! 3011:
! 3012: echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
! 3013: echo "configure:3014: checking stack direction for C alloca" >&5
! 3014: if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
! 3015: echo $ac_n "(cached) $ac_c" 1>&6
! 3016: else
! 3017: if test "$cross_compiling" = yes; then
! 3018: ac_cv_c_stack_direction=0
! 3019: else
! 3020: cat > conftest.$ac_ext <<EOF
! 3021: #line 3022 "configure"
! 3022: #include "confdefs.h"
! 3023: find_stack_direction ()
! 3024: {
! 3025: static char *addr = 0;
! 3026: auto char dummy;
! 3027: if (addr == 0)
! 3028: {
! 3029: addr = &dummy;
! 3030: return find_stack_direction ();
! 3031: }
! 3032: else
! 3033: return (&dummy > addr) ? 1 : -1;
! 3034: }
! 3035: main ()
! 3036: {
! 3037: exit (find_stack_direction() < 0);
! 3038: }
! 3039: EOF
! 3040: if { (eval echo configure:3041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
! 3041: then
! 3042: ac_cv_c_stack_direction=1
! 3043: else
! 3044: echo "configure: failed program was:" >&5
! 3045: cat conftest.$ac_ext >&5
! 3046: rm -fr conftest*
! 3047: ac_cv_c_stack_direction=-1
! 3048: fi
! 3049: rm -fr conftest*
! 3050: fi
! 3051:
! 3052: fi
! 3053:
! 3054: echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
! 3055: cat >> confdefs.h <<EOF
! 3056: #define STACK_DIRECTION $ac_cv_c_stack_direction
! 3057: EOF
! 3058:
! 3059: fi
! 3060:
! 3061: cat > conftest.$ac_ext <<EOF
! 3062: #line 3063 "configure"
! 3063: #include "confdefs.h"
! 3064: #include <utime.h>
! 3065: EOF
! 3066: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 3067: egrep "struct.*utimbuf" >/dev/null 2>&1; then
! 3068: rm -rf conftest*
! 3069: cat >> confdefs.h <<\EOF
! 3070: #define HAVE_STRUCT_UTIMBUF 1
! 3071: EOF
! 3072:
! 3073: fi
! 3074: rm -f conftest*
! 3075:
! 3076:
! 3077: for ac_func in gettimeofday settimeofday
! 3078: do
! 3079: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! 3080: echo "configure:3081: checking for $ac_func" >&5
! 3081: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
! 3082: echo $ac_n "(cached) $ac_c" 1>&6
! 3083: else
! 3084: cat > conftest.$ac_ext <<EOF
! 3085: #line 3086 "configure"
! 3086: #include "confdefs.h"
! 3087: /* System header to define __stub macros and hopefully few prototypes,
! 3088: which can conflict with char $ac_func(); below. */
! 3089: #include <assert.h>
! 3090: /* Override any gcc2 internal prototype to avoid an error. */
! 3091: /* We use char because int might match the return type of a gcc2
! 3092: builtin and then its argument prototype would still apply. */
! 3093: char $ac_func();
! 3094:
! 3095: int main() {
! 3096:
! 3097: /* The GNU C library defines this for functions which it implements
! 3098: to always fail with ENOSYS. Some functions are actually named
! 3099: something starting with __ and the normal name is an alias. */
! 3100: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 3101: choke me
! 3102: #else
! 3103: $ac_func();
! 3104: #endif
! 3105:
! 3106: ; return 0; }
! 3107: EOF
! 3108: if { (eval echo configure:3109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 3109: rm -rf conftest*
! 3110: eval "ac_cv_func_$ac_func=yes"
! 3111: else
! 3112: echo "configure: failed program was:" >&5
! 3113: cat conftest.$ac_ext >&5
! 3114: rm -rf conftest*
! 3115: eval "ac_cv_func_$ac_func=no"
! 3116: fi
! 3117: rm -f conftest*
! 3118: fi
! 3119:
! 3120: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
! 3121: echo "$ac_t""yes" 1>&6
! 3122: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
! 3123: cat >> confdefs.h <<EOF
! 3124: #define $ac_tr_func 1
! 3125: EOF
! 3126:
! 3127: else
! 3128: echo "$ac_t""no" 1>&6
! 3129: fi
! 3130: done
! 3131:
! 3132: for ac_func in strchr memcpy select vprintf
! 3133: do
! 3134: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! 3135: echo "configure:3136: checking for $ac_func" >&5
! 3136: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
! 3137: echo $ac_n "(cached) $ac_c" 1>&6
! 3138: else
! 3139: cat > conftest.$ac_ext <<EOF
! 3140: #line 3141 "configure"
! 3141: #include "confdefs.h"
! 3142: /* System header to define __stub macros and hopefully few prototypes,
! 3143: which can conflict with char $ac_func(); below. */
! 3144: #include <assert.h>
! 3145: /* Override any gcc2 internal prototype to avoid an error. */
! 3146: /* We use char because int might match the return type of a gcc2
! 3147: builtin and then its argument prototype would still apply. */
! 3148: char $ac_func();
! 3149:
! 3150: int main() {
! 3151:
! 3152: /* The GNU C library defines this for functions which it implements
! 3153: to always fail with ENOSYS. Some functions are actually named
! 3154: something starting with __ and the normal name is an alias. */
! 3155: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 3156: choke me
! 3157: #else
! 3158: $ac_func();
! 3159: #endif
! 3160:
! 3161: ; return 0; }
! 3162: EOF
! 3163: if { (eval echo configure:3164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 3164: rm -rf conftest*
! 3165: eval "ac_cv_func_$ac_func=yes"
! 3166: else
! 3167: echo "configure: failed program was:" >&5
! 3168: cat conftest.$ac_ext >&5
! 3169: rm -rf conftest*
! 3170: eval "ac_cv_func_$ac_func=no"
! 3171: fi
! 3172: rm -f conftest*
! 3173: fi
! 3174:
! 3175: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
! 3176: echo "$ac_t""yes" 1>&6
! 3177: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
! 3178: cat >> confdefs.h <<EOF
! 3179: #define $ac_tr_func 1
! 3180: EOF
! 3181:
! 3182: else
! 3183: echo "$ac_t""no" 1>&6
! 3184: fi
! 3185: done
! 3186:
! 3187: for ac_func in times rdchk utime syslog siginterrupt
! 3188: do
! 3189: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! 3190: echo "configure:3191: checking for $ac_func" >&5
! 3191: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
! 3192: echo $ac_n "(cached) $ac_c" 1>&6
! 3193: else
! 3194: cat > conftest.$ac_ext <<EOF
! 3195: #line 3196 "configure"
! 3196: #include "confdefs.h"
! 3197: /* System header to define __stub macros and hopefully few prototypes,
! 3198: which can conflict with char $ac_func(); below. */
! 3199: #include <assert.h>
! 3200: /* Override any gcc2 internal prototype to avoid an error. */
! 3201: /* We use char because int might match the return type of a gcc2
! 3202: builtin and then its argument prototype would still apply. */
! 3203: char $ac_func();
! 3204:
! 3205: int main() {
! 3206:
! 3207: /* The GNU C library defines this for functions which it implements
! 3208: to always fail with ENOSYS. Some functions are actually named
! 3209: something starting with __ and the normal name is an alias. */
! 3210: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 3211: choke me
! 3212: #else
! 3213: $ac_func();
! 3214: #endif
! 3215:
! 3216: ; return 0; }
! 3217: EOF
! 3218: if { (eval echo configure:3219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 3219: rm -rf conftest*
! 3220: eval "ac_cv_func_$ac_func=yes"
! 3221: else
! 3222: echo "configure: failed program was:" >&5
! 3223: cat conftest.$ac_ext >&5
! 3224: rm -rf conftest*
! 3225: eval "ac_cv_func_$ac_func=no"
! 3226: fi
! 3227: rm -f conftest*
! 3228: fi
! 3229:
! 3230: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
! 3231: echo "$ac_t""yes" 1>&6
! 3232: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
! 3233: cat >> confdefs.h <<EOF
! 3234: #define $ac_tr_func 1
! 3235: EOF
! 3236:
! 3237: else
! 3238: echo "$ac_t""no" 1>&6
! 3239: fi
! 3240: done
! 3241:
! 3242: for ac_func in mkdir mktime strerror strstr strdup strtoul strtol strpbrk
! 3243: do
! 3244: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! 3245: echo "configure:3246: checking for $ac_func" >&5
! 3246: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
! 3247: echo $ac_n "(cached) $ac_c" 1>&6
! 3248: else
! 3249: cat > conftest.$ac_ext <<EOF
! 3250: #line 3251 "configure"
! 3251: #include "confdefs.h"
! 3252: /* System header to define __stub macros and hopefully few prototypes,
! 3253: which can conflict with char $ac_func(); below. */
! 3254: #include <assert.h>
! 3255: /* Override any gcc2 internal prototype to avoid an error. */
! 3256: /* We use char because int might match the return type of a gcc2
! 3257: builtin and then its argument prototype would still apply. */
! 3258: char $ac_func();
! 3259:
! 3260: int main() {
! 3261:
! 3262: /* The GNU C library defines this for functions which it implements
! 3263: to always fail with ENOSYS. Some functions are actually named
! 3264: something starting with __ and the normal name is an alias. */
! 3265: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 3266: choke me
! 3267: #else
! 3268: $ac_func();
! 3269: #endif
! 3270:
! 3271: ; return 0; }
! 3272: EOF
! 3273: if { (eval echo configure:3274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 3274: rm -rf conftest*
! 3275: eval "ac_cv_func_$ac_func=yes"
! 3276: else
! 3277: echo "configure: failed program was:" >&5
! 3278: cat conftest.$ac_ext >&5
! 3279: rm -rf conftest*
! 3280: eval "ac_cv_func_$ac_func=no"
! 3281: fi
! 3282: rm -f conftest*
! 3283: fi
! 3284:
! 3285: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
! 3286: echo "$ac_t""yes" 1>&6
! 3287: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
! 3288: cat >> confdefs.h <<EOF
! 3289: #define $ac_tr_func 1
! 3290: EOF
! 3291:
! 3292: else
! 3293: echo "$ac_t""no" 1>&6
! 3294: LIBOBJS="$LIBOBJS ${ac_func}.o"
! 3295: fi
! 3296: done
! 3297:
! 3298:
! 3299: for ac_func in stpcpy strftime vasprintf
! 3300: do
! 3301: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! 3302: echo "configure:3303: checking for $ac_func" >&5
! 3303: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
! 3304: echo $ac_n "(cached) $ac_c" 1>&6
! 3305: else
! 3306: cat > conftest.$ac_ext <<EOF
! 3307: #line 3308 "configure"
! 3308: #include "confdefs.h"
! 3309: /* System header to define __stub macros and hopefully few prototypes,
! 3310: which can conflict with char $ac_func(); below. */
! 3311: #include <assert.h>
! 3312: /* Override any gcc2 internal prototype to avoid an error. */
! 3313: /* We use char because int might match the return type of a gcc2
! 3314: builtin and then its argument prototype would still apply. */
! 3315: char $ac_func();
! 3316:
! 3317: int main() {
! 3318:
! 3319: /* The GNU C library defines this for functions which it implements
! 3320: to always fail with ENOSYS. Some functions are actually named
! 3321: something starting with __ and the normal name is an alias. */
! 3322: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 3323: choke me
! 3324: #else
! 3325: $ac_func();
! 3326: #endif
! 3327:
! 3328: ; return 0; }
! 3329: EOF
! 3330: if { (eval echo configure:3331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 3331: rm -rf conftest*
! 3332: eval "ac_cv_func_$ac_func=yes"
! 3333: else
! 3334: echo "configure: failed program was:" >&5
! 3335: cat conftest.$ac_ext >&5
! 3336: rm -rf conftest*
! 3337: eval "ac_cv_func_$ac_func=no"
! 3338: fi
! 3339: rm -f conftest*
! 3340: fi
! 3341:
! 3342: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
! 3343: echo "$ac_t""yes" 1>&6
! 3344: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
! 3345: cat >> confdefs.h <<EOF
! 3346: #define $ac_tr_func 1
! 3347: EOF
! 3348:
! 3349: else
! 3350: echo "$ac_t""no" 1>&6
! 3351: LIBOBJS="$LIBOBJS ${ac_func}.o"
! 3352: fi
! 3353: done
! 3354:
! 3355:
! 3356:
! 3357: echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
! 3358: echo "configure:3359: checking for getopt_long" >&5
! 3359: if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
! 3360: echo $ac_n "(cached) $ac_c" 1>&6
! 3361: else
! 3362: cat > conftest.$ac_ext <<EOF
! 3363: #line 3364 "configure"
! 3364: #include "confdefs.h"
! 3365: /* System header to define __stub macros and hopefully few prototypes,
! 3366: which can conflict with char getopt_long(); below. */
! 3367: #include <assert.h>
! 3368: /* Override any gcc2 internal prototype to avoid an error. */
! 3369: /* We use char because int might match the return type of a gcc2
! 3370: builtin and then its argument prototype would still apply. */
! 3371: char getopt_long();
! 3372:
! 3373: int main() {
! 3374:
! 3375: /* The GNU C library defines this for functions which it implements
! 3376: to always fail with ENOSYS. Some functions are actually named
! 3377: something starting with __ and the normal name is an alias. */
! 3378: #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
! 3379: choke me
! 3380: #else
! 3381: getopt_long();
! 3382: #endif
! 3383:
! 3384: ; return 0; }
! 3385: EOF
! 3386: if { (eval echo configure:3387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 3387: rm -rf conftest*
! 3388: eval "ac_cv_func_getopt_long=yes"
! 3389: else
! 3390: echo "configure: failed program was:" >&5
! 3391: cat conftest.$ac_ext >&5
! 3392: rm -rf conftest*
! 3393: eval "ac_cv_func_getopt_long=no"
! 3394: fi
! 3395: rm -f conftest*
! 3396: fi
! 3397:
! 3398: if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
! 3399: echo "$ac_t""yes" 1>&6
! 3400: :
! 3401: else
! 3402: echo "$ac_t""no" 1>&6
! 3403: LIBOBJS="$LIBOBJS getopt1.o getopt.o"
! 3404: fi
! 3405:
! 3406:
! 3407:
! 3408: cat >> confdefs.h <<\EOF
! 3409: #define HAVE_STRERROR 1
! 3410: EOF
! 3411:
! 3412:
! 3413:
! 3414:
! 3415: echo $ac_n "checking for ftime""... $ac_c" 1>&6
! 3416: echo "configure:3417: checking for ftime" >&5
! 3417: if eval "test \"`echo '$''{'ac_cv_func_ftime'+set}'`\" = set"; then
! 3418: echo $ac_n "(cached) $ac_c" 1>&6
! 3419: else
! 3420: cat > conftest.$ac_ext <<EOF
! 3421: #line 3422 "configure"
! 3422: #include "confdefs.h"
! 3423: /* System header to define __stub macros and hopefully few prototypes,
! 3424: which can conflict with char ftime(); below. */
! 3425: #include <assert.h>
! 3426: /* Override any gcc2 internal prototype to avoid an error. */
! 3427: /* We use char because int might match the return type of a gcc2
! 3428: builtin and then its argument prototype would still apply. */
! 3429: char ftime();
! 3430:
! 3431: int main() {
! 3432:
! 3433: /* The GNU C library defines this for functions which it implements
! 3434: to always fail with ENOSYS. Some functions are actually named
! 3435: something starting with __ and the normal name is an alias. */
! 3436: #if defined (__stub_ftime) || defined (__stub___ftime)
! 3437: choke me
! 3438: #else
! 3439: ftime();
! 3440: #endif
! 3441:
! 3442: ; return 0; }
! 3443: EOF
! 3444: if { (eval echo configure:3445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 3445: rm -rf conftest*
! 3446: eval "ac_cv_func_ftime=yes"
! 3447: else
! 3448: echo "configure: failed program was:" >&5
! 3449: cat conftest.$ac_ext >&5
! 3450: rm -rf conftest*
! 3451: eval "ac_cv_func_ftime=no"
! 3452: fi
! 3453: rm -f conftest*
! 3454: fi
! 3455:
! 3456: if eval "test \"`echo '$ac_cv_func_'ftime`\" = yes"; then
! 3457: echo "$ac_t""yes" 1>&6
! 3458: echo $ac_n "checking that ftime works correctly""... $ac_c" 1>&6
! 3459: echo "configure:3460: checking that ftime works correctly" >&5
! 3460: if eval "test \"`echo '$''{'lrzsz_cv_sys_ftime_ok'+set}'`\" = set"; then
! 3461: echo $ac_n "(cached) $ac_c" 1>&6
! 3462: else
! 3463: if test "$cross_compiling" = yes; then
! 3464: lrzsz_cv_sys_ftime_ok=runtime
! 3465: else
! 3466: cat > conftest.$ac_ext <<EOF
! 3467: #line 3468 "configure"
! 3468: #include "confdefs.h"
! 3469:
! 3470: #include <sys/types.h>
! 3471: #include <sys/timeb.h>
! 3472: #include <stdio.h>
! 3473: main ()
! 3474: {
! 3475: struct timeb s, slast;
! 3476: int c = 0;
! 3477: ftime (&slast);
! 3478: while (c < 10)
! 3479: {
! 3480: ftime (&s);
! 3481: if (s.time < slast.time
! 3482: || (s.time == slast.time && s.millitm < slast.millitm)) {
! 3483: fprintf(stderr,"s: %ld, %ld, slast: %ld, %ld\n",
! 3484: s.time,s.millitm, slast.time,slast.millitm);
! 3485: exit (1);
! 3486: }
! 3487: if (s.time != slast.time)
! 3488: ++c;
! 3489: slast.time = s.time;
! 3490: slast.millitm = s.millitm;
! 3491: }
! 3492: exit (0);
! 3493: }
! 3494:
! 3495: EOF
! 3496: if { (eval echo configure:3497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
! 3497: then
! 3498: lrzsz_cv_sys_ftime_ok=yes
! 3499: else
! 3500: echo "configure: failed program was:" >&5
! 3501: cat conftest.$ac_ext >&5
! 3502: rm -fr conftest*
! 3503: lrzsz_cv_sys_ftime_ok=no
! 3504: fi
! 3505: rm -fr conftest*
! 3506: fi
! 3507:
! 3508: fi
! 3509:
! 3510: case $lrzsz_cv_sys_ftime_ok in
! 3511: yes) cat >> confdefs.h <<\EOF
! 3512: #define HAVE_FTIME 1
! 3513: EOF
! 3514: echo "$ac_t""yes" 1>&6 ;;
! 3515: no) echo "$ac_t""no" 1>&6
! 3516: echo "configure: warning: ftime seems to be buggy" 1>&2 ;;
! 3517: runtime) cat >> confdefs.h <<\EOF
! 3518: #define HAVE_FTIME 1
! 3519: EOF
! 3520:
! 3521: echo "$ac_t""will check at run time" 1>&6 ;;
! 3522: esac
! 3523:
! 3524: else
! 3525: echo "$ac_t""no" 1>&6
! 3526: fi
! 3527:
! 3528:
! 3529: echo $ac_n "checking for timezone variable""... $ac_c" 1>&6
! 3530: echo "configure:3531: checking for timezone variable" >&5
! 3531: if eval "test \"`echo '$''{'libquark_cv_var_timezone'+set}'`\" = set"; then
! 3532: echo $ac_n "(cached) $ac_c" 1>&6
! 3533: else
! 3534:
! 3535: cat > conftest.$ac_ext <<EOF
! 3536: #line 3537 "configure"
! 3537: #include "confdefs.h"
! 3538: #include <time.h>
! 3539: int main() {
! 3540: return(int)(timezone/2);
! 3541: ; return 0; }
! 3542: EOF
! 3543: if { (eval echo configure:3544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 3544: rm -rf conftest*
! 3545: libquark_cv_var_timezone=yes
! 3546: else
! 3547: echo "configure: failed program was:" >&5
! 3548: cat conftest.$ac_ext >&5
! 3549: rm -rf conftest*
! 3550: libquark_cv_var_timezone=no
! 3551: fi
! 3552: rm -f conftest*
! 3553:
! 3554: fi
! 3555:
! 3556: if test $libquark_cv_var_timezone = yes ; then
! 3557: echo "$ac_t""yes" 1>&6
! 3558: cat >> confdefs.h <<\EOF
! 3559: #define HAVE_TIMEZONE_VAR 1
! 3560: EOF
! 3561:
! 3562: else
! 3563: echo "$ac_t""no" 1>&6
! 3564: fi
! 3565: if test "x$lookup_facility" = x ; then
! 3566: :
! 3567: else
! 3568: echo $ac_n "checking for $lookup_facility""... $ac_c" 1>&6
! 3569: echo "configure:3570: checking for $lookup_facility" >&5
! 3570: if eval "test \"`echo '$''{'lrzsz_cv_lookup_facility'+set}'`\" = set"; then
! 3571: echo $ac_n "(cached) $ac_c" 1>&6
! 3572: else
! 3573:
! 3574: cat > conftest.$ac_ext <<EOF
! 3575: #line 3576 "configure"
! 3576: #include "confdefs.h"
! 3577:
! 3578: #ifdef HAVE_SYSLOG_H
! 3579: #include <syslog.h>
! 3580: #else
! 3581: #include <sys/syslog.h>
! 3582: #endif
! 3583: #ifdef $lookup_facility
! 3584: ihave$lookup_facility
! 3585: #endif
! 3586:
! 3587: EOF
! 3588: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 3589: egrep "ihave$lookup_facility" >/dev/null 2>&1; then
! 3590: rm -rf conftest*
! 3591: lrzsz_cv_lookup_facility=yes
! 3592: else
! 3593: rm -rf conftest*
! 3594: lrzsz_cv_lookup_facility=no
! 3595: fi
! 3596: rm -f conftest*
! 3597:
! 3598:
! 3599: fi
! 3600:
! 3601: if test $lrzsz_cv_lookup_facility = yes ; then
! 3602: echo "$ac_t""yes" 1>&6
! 3603: cat >> confdefs.h <<EOF
! 3604: #define ENABLE_SYSLOG $lookup_facility
! 3605: EOF
! 3606:
! 3607: else
! 3608: cat >> confdefs.h <<\EOF
! 3609: #define ENABLE_SYSLOG LOG_USER
! 3610: EOF
! 3611:
! 3612: echo "$ac_t""no" 1>&6
! 3613: fi
! 3614: fi
! 3615:
! 3616:
! 3617:
! 3618:
! 3619:
! 3620:
! 3621:
! 3622: for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
! 3623: unistd.h values.h sys/param.h
! 3624: do
! 3625: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
! 3626: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
! 3627: echo "configure:3628: checking for $ac_hdr" >&5
! 3628: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
! 3629: echo $ac_n "(cached) $ac_c" 1>&6
! 3630: else
! 3631: cat > conftest.$ac_ext <<EOF
! 3632: #line 3633 "configure"
! 3633: #include "confdefs.h"
! 3634: #include <$ac_hdr>
! 3635: EOF
! 3636: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 3637: { (eval echo configure:3638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 3638: ac_err=`grep -v '^ *+' conftest.out`
! 3639: if test -z "$ac_err"; then
! 3640: rm -rf conftest*
! 3641: eval "ac_cv_header_$ac_safe=yes"
! 3642: else
! 3643: echo "$ac_err" >&5
! 3644: echo "configure: failed program was:" >&5
! 3645: cat conftest.$ac_ext >&5
! 3646: rm -rf conftest*
! 3647: eval "ac_cv_header_$ac_safe=no"
! 3648: fi
! 3649: rm -f conftest*
! 3650: fi
! 3651: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
! 3652: echo "$ac_t""yes" 1>&6
! 3653: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
! 3654: cat >> confdefs.h <<EOF
! 3655: #define $ac_tr_hdr 1
! 3656: EOF
! 3657:
! 3658: else
! 3659: echo "$ac_t""no" 1>&6
! 3660: fi
! 3661: done
! 3662:
! 3663: for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
! 3664: __argz_count __argz_stringify __argz_next
! 3665: do
! 3666: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! 3667: echo "configure:3668: checking for $ac_func" >&5
! 3668: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
! 3669: echo $ac_n "(cached) $ac_c" 1>&6
! 3670: else
! 3671: cat > conftest.$ac_ext <<EOF
! 3672: #line 3673 "configure"
! 3673: #include "confdefs.h"
! 3674: /* System header to define __stub macros and hopefully few prototypes,
! 3675: which can conflict with char $ac_func(); below. */
! 3676: #include <assert.h>
! 3677: /* Override any gcc2 internal prototype to avoid an error. */
! 3678: /* We use char because int might match the return type of a gcc2
! 3679: builtin and then its argument prototype would still apply. */
! 3680: char $ac_func();
! 3681:
! 3682: int main() {
! 3683:
! 3684: /* The GNU C library defines this for functions which it implements
! 3685: to always fail with ENOSYS. Some functions are actually named
! 3686: something starting with __ and the normal name is an alias. */
! 3687: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 3688: choke me
! 3689: #else
! 3690: $ac_func();
! 3691: #endif
! 3692:
! 3693: ; return 0; }
! 3694: EOF
! 3695: if { (eval echo configure:3696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 3696: rm -rf conftest*
! 3697: eval "ac_cv_func_$ac_func=yes"
! 3698: else
! 3699: echo "configure: failed program was:" >&5
! 3700: cat conftest.$ac_ext >&5
! 3701: rm -rf conftest*
! 3702: eval "ac_cv_func_$ac_func=no"
! 3703: fi
! 3704: rm -f conftest*
! 3705: fi
! 3706:
! 3707: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
! 3708: echo "$ac_t""yes" 1>&6
! 3709: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
! 3710: cat >> confdefs.h <<EOF
! 3711: #define $ac_tr_func 1
! 3712: EOF
! 3713:
! 3714: else
! 3715: echo "$ac_t""no" 1>&6
! 3716: fi
! 3717: done
! 3718:
! 3719:
! 3720: if test "${ac_cv_func_stpcpy+set}" != "set"; then
! 3721: for ac_func in stpcpy
! 3722: do
! 3723: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! 3724: echo "configure:3725: checking for $ac_func" >&5
! 3725: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
! 3726: echo $ac_n "(cached) $ac_c" 1>&6
! 3727: else
! 3728: cat > conftest.$ac_ext <<EOF
! 3729: #line 3730 "configure"
! 3730: #include "confdefs.h"
! 3731: /* System header to define __stub macros and hopefully few prototypes,
! 3732: which can conflict with char $ac_func(); below. */
! 3733: #include <assert.h>
! 3734: /* Override any gcc2 internal prototype to avoid an error. */
! 3735: /* We use char because int might match the return type of a gcc2
! 3736: builtin and then its argument prototype would still apply. */
! 3737: char $ac_func();
! 3738:
! 3739: int main() {
! 3740:
! 3741: /* The GNU C library defines this for functions which it implements
! 3742: to always fail with ENOSYS. Some functions are actually named
! 3743: something starting with __ and the normal name is an alias. */
! 3744: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 3745: choke me
! 3746: #else
! 3747: $ac_func();
! 3748: #endif
! 3749:
! 3750: ; return 0; }
! 3751: EOF
! 3752: if { (eval echo configure:3753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 3753: rm -rf conftest*
! 3754: eval "ac_cv_func_$ac_func=yes"
! 3755: else
! 3756: echo "configure: failed program was:" >&5
! 3757: cat conftest.$ac_ext >&5
! 3758: rm -rf conftest*
! 3759: eval "ac_cv_func_$ac_func=no"
! 3760: fi
! 3761: rm -f conftest*
! 3762: fi
! 3763:
! 3764: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
! 3765: echo "$ac_t""yes" 1>&6
! 3766: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
! 3767: cat >> confdefs.h <<EOF
! 3768: #define $ac_tr_func 1
! 3769: EOF
! 3770:
! 3771: else
! 3772: echo "$ac_t""no" 1>&6
! 3773: fi
! 3774: done
! 3775:
! 3776: fi
! 3777: if test "${ac_cv_func_stpcpy}" = "yes"; then
! 3778: cat >> confdefs.h <<\EOF
! 3779: #define HAVE_STPCPY 1
! 3780: EOF
! 3781:
! 3782: fi
! 3783:
! 3784: if test $ac_cv_header_locale_h = yes; then
! 3785: echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
! 3786: echo "configure:3787: checking for LC_MESSAGES" >&5
! 3787: if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
! 3788: echo $ac_n "(cached) $ac_c" 1>&6
! 3789: else
! 3790: cat > conftest.$ac_ext <<EOF
! 3791: #line 3792 "configure"
! 3792: #include "confdefs.h"
! 3793: #include <locale.h>
! 3794: int main() {
! 3795: return LC_MESSAGES
! 3796: ; return 0; }
! 3797: EOF
! 3798: if { (eval echo configure:3799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 3799: rm -rf conftest*
! 3800: am_cv_val_LC_MESSAGES=yes
! 3801: else
! 3802: echo "configure: failed program was:" >&5
! 3803: cat conftest.$ac_ext >&5
! 3804: rm -rf conftest*
! 3805: am_cv_val_LC_MESSAGES=no
! 3806: fi
! 3807: rm -f conftest*
! 3808: fi
! 3809:
! 3810: echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
! 3811: if test $am_cv_val_LC_MESSAGES = yes; then
! 3812: cat >> confdefs.h <<\EOF
! 3813: #define HAVE_LC_MESSAGES 1
! 3814: EOF
! 3815:
! 3816: fi
! 3817: fi
! 3818: echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
! 3819: echo "configure:3820: checking whether NLS is requested" >&5
! 3820: # Check whether --enable-nls or --disable-nls was given.
! 3821: if test "${enable_nls+set}" = set; then
! 3822: enableval="$enable_nls"
! 3823: USE_NLS=$enableval
! 3824: else
! 3825: USE_NLS=yes
! 3826: fi
! 3827:
! 3828: echo "$ac_t""$USE_NLS" 1>&6
! 3829:
! 3830:
! 3831: USE_INCLUDED_LIBINTL=no
! 3832:
! 3833: if test "$USE_NLS" = "yes"; then
! 3834: cat >> confdefs.h <<\EOF
! 3835: #define ENABLE_NLS 1
! 3836: EOF
! 3837:
! 3838: echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
! 3839: echo "configure:3840: checking whether included gettext is requested" >&5
! 3840: # Check whether --with-included-gettext or --without-included-gettext was given.
! 3841: if test "${with_included_gettext+set}" = set; then
! 3842: withval="$with_included_gettext"
! 3843: nls_cv_force_use_gnu_gettext=$withval
! 3844: else
! 3845: nls_cv_force_use_gnu_gettext=no
! 3846: fi
! 3847:
! 3848: echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
! 3849:
! 3850: nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
! 3851: if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
! 3852: nls_cv_header_intl=
! 3853: nls_cv_header_libgt=
! 3854: CATOBJEXT=NONE
! 3855:
! 3856: ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
! 3857: echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
! 3858: echo "configure:3859: checking for libintl.h" >&5
! 3859: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
! 3860: echo $ac_n "(cached) $ac_c" 1>&6
! 3861: else
! 3862: cat > conftest.$ac_ext <<EOF
! 3863: #line 3864 "configure"
! 3864: #include "confdefs.h"
! 3865: #include <libintl.h>
! 3866: EOF
! 3867: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 3868: { (eval echo configure:3869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 3869: ac_err=`grep -v '^ *+' conftest.out`
! 3870: if test -z "$ac_err"; then
! 3871: rm -rf conftest*
! 3872: eval "ac_cv_header_$ac_safe=yes"
! 3873: else
! 3874: echo "$ac_err" >&5
! 3875: echo "configure: failed program was:" >&5
! 3876: cat conftest.$ac_ext >&5
! 3877: rm -rf conftest*
! 3878: eval "ac_cv_header_$ac_safe=no"
! 3879: fi
! 3880: rm -f conftest*
! 3881: fi
! 3882: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
! 3883: echo "$ac_t""yes" 1>&6
! 3884: echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
! 3885: echo "configure:3886: checking for gettext in libc" >&5
! 3886: if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
! 3887: echo $ac_n "(cached) $ac_c" 1>&6
! 3888: else
! 3889: cat > conftest.$ac_ext <<EOF
! 3890: #line 3891 "configure"
! 3891: #include "confdefs.h"
! 3892: #include <libintl.h>
! 3893: int main() {
! 3894: return (int) gettext ("")
! 3895: ; return 0; }
! 3896: EOF
! 3897: if { (eval echo configure:3898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 3898: rm -rf conftest*
! 3899: gt_cv_func_gettext_libc=yes
! 3900: else
! 3901: echo "configure: failed program was:" >&5
! 3902: cat conftest.$ac_ext >&5
! 3903: rm -rf conftest*
! 3904: gt_cv_func_gettext_libc=no
! 3905: fi
! 3906: rm -f conftest*
! 3907: fi
! 3908:
! 3909: echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
! 3910:
! 3911: if test "$gt_cv_func_gettext_libc" != "yes"; then
! 3912: echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
! 3913: echo "configure:3914: checking for bindtextdomain in -lintl" >&5
! 3914: ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
! 3915: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
! 3916: echo $ac_n "(cached) $ac_c" 1>&6
! 3917: else
! 3918: ac_save_LIBS="$LIBS"
! 3919: LIBS="-lintl $LIBS"
! 3920: cat > conftest.$ac_ext <<EOF
! 3921: #line 3922 "configure"
! 3922: #include "confdefs.h"
! 3923: /* Override any gcc2 internal prototype to avoid an error. */
! 3924: /* We use char because int might match the return type of a gcc2
! 3925: builtin and then its argument prototype would still apply. */
! 3926: char bindtextdomain();
! 3927:
! 3928: int main() {
! 3929: bindtextdomain()
! 3930: ; return 0; }
! 3931: EOF
! 3932: if { (eval echo configure:3933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 3933: rm -rf conftest*
! 3934: eval "ac_cv_lib_$ac_lib_var=yes"
! 3935: else
! 3936: echo "configure: failed program was:" >&5
! 3937: cat conftest.$ac_ext >&5
! 3938: rm -rf conftest*
! 3939: eval "ac_cv_lib_$ac_lib_var=no"
! 3940: fi
! 3941: rm -f conftest*
! 3942: LIBS="$ac_save_LIBS"
! 3943:
! 3944: fi
! 3945: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
! 3946: echo "$ac_t""yes" 1>&6
! 3947: echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
! 3948: echo "configure:3949: checking for gettext in libintl" >&5
! 3949: if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
! 3950: echo $ac_n "(cached) $ac_c" 1>&6
! 3951: else
! 3952: cat > conftest.$ac_ext <<EOF
! 3953: #line 3954 "configure"
! 3954: #include "confdefs.h"
! 3955:
! 3956: int main() {
! 3957: return (int) gettext ("")
! 3958: ; return 0; }
! 3959: EOF
! 3960: if { (eval echo configure:3961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 3961: rm -rf conftest*
! 3962: gt_cv_func_gettext_libintl=yes
! 3963: else
! 3964: echo "configure: failed program was:" >&5
! 3965: cat conftest.$ac_ext >&5
! 3966: rm -rf conftest*
! 3967: gt_cv_func_gettext_libintl=no
! 3968: fi
! 3969: rm -f conftest*
! 3970: fi
! 3971:
! 3972: echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
! 3973: else
! 3974: echo "$ac_t""no" 1>&6
! 3975: fi
! 3976:
! 3977: fi
! 3978:
! 3979: if test "$gt_cv_func_gettext_libc" = "yes" \
! 3980: || test "$gt_cv_func_gettext_libintl" = "yes"; then
! 3981: cat >> confdefs.h <<\EOF
! 3982: #define HAVE_GETTEXT 1
! 3983: EOF
! 3984:
! 3985: # Extract the first word of "msgfmt", so it can be a program name with args.
! 3986: set dummy msgfmt; ac_word=$2
! 3987: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! 3988: echo "configure:3989: checking for $ac_word" >&5
! 3989: if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
! 3990: echo $ac_n "(cached) $ac_c" 1>&6
! 3991: else
! 3992: case "$MSGFMT" in
! 3993: /*)
! 3994: ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
! 3995: ;;
! 3996: *)
! 3997: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
! 3998: for ac_dir in $PATH; do
! 3999: test -z "$ac_dir" && ac_dir=.
! 4000: if test -f $ac_dir/$ac_word; then
! 4001: if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
! 4002: ac_cv_path_MSGFMT="$ac_dir/$ac_word"
! 4003: break
! 4004: fi
! 4005: fi
! 4006: done
! 4007: IFS="$ac_save_ifs"
! 4008: test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
! 4009: ;;
! 4010: esac
! 4011: fi
! 4012: MSGFMT="$ac_cv_path_MSGFMT"
! 4013: if test -n "$MSGFMT"; then
! 4014: echo "$ac_t""$MSGFMT" 1>&6
! 4015: else
! 4016: echo "$ac_t""no" 1>&6
! 4017: fi
! 4018: if test "$MSGFMT" != "no"; then
! 4019: for ac_func in dcgettext
! 4020: do
! 4021: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! 4022: echo "configure:4023: checking for $ac_func" >&5
! 4023: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
! 4024: echo $ac_n "(cached) $ac_c" 1>&6
! 4025: else
! 4026: cat > conftest.$ac_ext <<EOF
! 4027: #line 4028 "configure"
! 4028: #include "confdefs.h"
! 4029: /* System header to define __stub macros and hopefully few prototypes,
! 4030: which can conflict with char $ac_func(); below. */
! 4031: #include <assert.h>
! 4032: /* Override any gcc2 internal prototype to avoid an error. */
! 4033: /* We use char because int might match the return type of a gcc2
! 4034: builtin and then its argument prototype would still apply. */
! 4035: char $ac_func();
! 4036:
! 4037: int main() {
! 4038:
! 4039: /* The GNU C library defines this for functions which it implements
! 4040: to always fail with ENOSYS. Some functions are actually named
! 4041: something starting with __ and the normal name is an alias. */
! 4042: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 4043: choke me
! 4044: #else
! 4045: $ac_func();
! 4046: #endif
! 4047:
! 4048: ; return 0; }
! 4049: EOF
! 4050: if { (eval echo configure:4051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 4051: rm -rf conftest*
! 4052: eval "ac_cv_func_$ac_func=yes"
! 4053: else
! 4054: echo "configure: failed program was:" >&5
! 4055: cat conftest.$ac_ext >&5
! 4056: rm -rf conftest*
! 4057: eval "ac_cv_func_$ac_func=no"
! 4058: fi
! 4059: rm -f conftest*
! 4060: fi
! 4061:
! 4062: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
! 4063: echo "$ac_t""yes" 1>&6
! 4064: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
! 4065: cat >> confdefs.h <<EOF
! 4066: #define $ac_tr_func 1
! 4067: EOF
! 4068:
! 4069: else
! 4070: echo "$ac_t""no" 1>&6
! 4071: fi
! 4072: done
! 4073:
! 4074: # Extract the first word of "gmsgfmt", so it can be a program name with args.
! 4075: set dummy gmsgfmt; ac_word=$2
! 4076: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! 4077: echo "configure:4078: checking for $ac_word" >&5
! 4078: if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
! 4079: echo $ac_n "(cached) $ac_c" 1>&6
! 4080: else
! 4081: case "$GMSGFMT" in
! 4082: /*)
! 4083: ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
! 4084: ;;
! 4085: *)
! 4086: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
! 4087: for ac_dir in $PATH; do
! 4088: test -z "$ac_dir" && ac_dir=.
! 4089: if test -f $ac_dir/$ac_word; then
! 4090: ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
! 4091: break
! 4092: fi
! 4093: done
! 4094: IFS="$ac_save_ifs"
! 4095: test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
! 4096: ;;
! 4097: esac
! 4098: fi
! 4099: GMSGFMT="$ac_cv_path_GMSGFMT"
! 4100: if test -n "$GMSGFMT"; then
! 4101: echo "$ac_t""$GMSGFMT" 1>&6
! 4102: else
! 4103: echo "$ac_t""no" 1>&6
! 4104: fi
! 4105:
! 4106: # Extract the first word of "xgettext", so it can be a program name with args.
! 4107: set dummy xgettext; ac_word=$2
! 4108: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! 4109: echo "configure:4110: checking for $ac_word" >&5
! 4110: if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
! 4111: echo $ac_n "(cached) $ac_c" 1>&6
! 4112: else
! 4113: case "$XGETTEXT" in
! 4114: /*)
! 4115: ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
! 4116: ;;
! 4117: *)
! 4118: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
! 4119: for ac_dir in $PATH; do
! 4120: test -z "$ac_dir" && ac_dir=.
! 4121: if test -f $ac_dir/$ac_word; then
! 4122: if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
! 4123: ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
! 4124: break
! 4125: fi
! 4126: fi
! 4127: done
! 4128: IFS="$ac_save_ifs"
! 4129: test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
! 4130: ;;
! 4131: esac
! 4132: fi
! 4133: XGETTEXT="$ac_cv_path_XGETTEXT"
! 4134: if test -n "$XGETTEXT"; then
! 4135: echo "$ac_t""$XGETTEXT" 1>&6
! 4136: else
! 4137: echo "$ac_t""no" 1>&6
! 4138: fi
! 4139:
! 4140: cat > conftest.$ac_ext <<EOF
! 4141: #line 4142 "configure"
! 4142: #include "confdefs.h"
! 4143:
! 4144: int main() {
! 4145: extern int _nl_msg_cat_cntr;
! 4146: return _nl_msg_cat_cntr
! 4147: ; return 0; }
! 4148: EOF
! 4149: if { (eval echo configure:4150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 4150: rm -rf conftest*
! 4151: CATOBJEXT=.gmo
! 4152: DATADIRNAME=share
! 4153: else
! 4154: echo "configure: failed program was:" >&5
! 4155: cat conftest.$ac_ext >&5
! 4156: rm -rf conftest*
! 4157: CATOBJEXT=.mo
! 4158: DATADIRNAME=lib
! 4159: fi
! 4160: rm -f conftest*
! 4161: INSTOBJEXT=.mo
! 4162: fi
! 4163: fi
! 4164:
! 4165: else
! 4166: echo "$ac_t""no" 1>&6
! 4167: fi
! 4168:
! 4169:
! 4170: if test "$CATOBJEXT" = "NONE"; then
! 4171: echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
! 4172: echo "configure:4173: checking whether catgets can be used" >&5
! 4173: # Check whether --with-catgets or --without-catgets was given.
! 4174: if test "${with_catgets+set}" = set; then
! 4175: withval="$with_catgets"
! 4176: nls_cv_use_catgets=$withval
! 4177: else
! 4178: nls_cv_use_catgets=no
! 4179: fi
! 4180:
! 4181: echo "$ac_t""$nls_cv_use_catgets" 1>&6
! 4182:
! 4183: if test "$nls_cv_use_catgets" = "yes"; then
! 4184: echo $ac_n "checking for main in -li""... $ac_c" 1>&6
! 4185: echo "configure:4186: checking for main in -li" >&5
! 4186: ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
! 4187: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
! 4188: echo $ac_n "(cached) $ac_c" 1>&6
! 4189: else
! 4190: ac_save_LIBS="$LIBS"
! 4191: LIBS="-li $LIBS"
! 4192: cat > conftest.$ac_ext <<EOF
! 4193: #line 4194 "configure"
! 4194: #include "confdefs.h"
! 4195:
! 4196: int main() {
! 4197: main()
! 4198: ; return 0; }
! 4199: EOF
! 4200: if { (eval echo configure:4201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 4201: rm -rf conftest*
! 4202: eval "ac_cv_lib_$ac_lib_var=yes"
! 4203: else
! 4204: echo "configure: failed program was:" >&5
! 4205: cat conftest.$ac_ext >&5
! 4206: rm -rf conftest*
! 4207: eval "ac_cv_lib_$ac_lib_var=no"
! 4208: fi
! 4209: rm -f conftest*
! 4210: LIBS="$ac_save_LIBS"
! 4211:
! 4212: fi
! 4213: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
! 4214: echo "$ac_t""yes" 1>&6
! 4215: ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
! 4216: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
! 4217: cat >> confdefs.h <<EOF
! 4218: #define $ac_tr_lib 1
! 4219: EOF
! 4220:
! 4221: LIBS="-li $LIBS"
! 4222:
! 4223: else
! 4224: echo "$ac_t""no" 1>&6
! 4225: fi
! 4226:
! 4227: echo $ac_n "checking for catgets""... $ac_c" 1>&6
! 4228: echo "configure:4229: checking for catgets" >&5
! 4229: if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
! 4230: echo $ac_n "(cached) $ac_c" 1>&6
! 4231: else
! 4232: cat > conftest.$ac_ext <<EOF
! 4233: #line 4234 "configure"
! 4234: #include "confdefs.h"
! 4235: /* System header to define __stub macros and hopefully few prototypes,
! 4236: which can conflict with char catgets(); below. */
! 4237: #include <assert.h>
! 4238: /* Override any gcc2 internal prototype to avoid an error. */
! 4239: /* We use char because int might match the return type of a gcc2
! 4240: builtin and then its argument prototype would still apply. */
! 4241: char catgets();
! 4242:
! 4243: int main() {
! 4244:
! 4245: /* The GNU C library defines this for functions which it implements
! 4246: to always fail with ENOSYS. Some functions are actually named
! 4247: something starting with __ and the normal name is an alias. */
! 4248: #if defined (__stub_catgets) || defined (__stub___catgets)
! 4249: choke me
! 4250: #else
! 4251: catgets();
! 4252: #endif
! 4253:
! 4254: ; return 0; }
! 4255: EOF
! 4256: if { (eval echo configure:4257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 4257: rm -rf conftest*
! 4258: eval "ac_cv_func_catgets=yes"
! 4259: else
! 4260: echo "configure: failed program was:" >&5
! 4261: cat conftest.$ac_ext >&5
! 4262: rm -rf conftest*
! 4263: eval "ac_cv_func_catgets=no"
! 4264: fi
! 4265: rm -f conftest*
! 4266: fi
! 4267:
! 4268: if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
! 4269: echo "$ac_t""yes" 1>&6
! 4270: cat >> confdefs.h <<\EOF
! 4271: #define HAVE_CATGETS 1
! 4272: EOF
! 4273:
! 4274: INTLOBJS="\$(CATOBJS)"
! 4275: # Extract the first word of "gencat", so it can be a program name with args.
! 4276: set dummy gencat; ac_word=$2
! 4277: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! 4278: echo "configure:4279: checking for $ac_word" >&5
! 4279: if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
! 4280: echo $ac_n "(cached) $ac_c" 1>&6
! 4281: else
! 4282: case "$GENCAT" in
! 4283: /*)
! 4284: ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
! 4285: ;;
! 4286: *)
! 4287: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
! 4288: for ac_dir in $PATH; do
! 4289: test -z "$ac_dir" && ac_dir=.
! 4290: if test -f $ac_dir/$ac_word; then
! 4291: ac_cv_path_GENCAT="$ac_dir/$ac_word"
! 4292: break
! 4293: fi
! 4294: done
! 4295: IFS="$ac_save_ifs"
! 4296: test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
! 4297: ;;
! 4298: esac
! 4299: fi
! 4300: GENCAT="$ac_cv_path_GENCAT"
! 4301: if test -n "$GENCAT"; then
! 4302: echo "$ac_t""$GENCAT" 1>&6
! 4303: else
! 4304: echo "$ac_t""no" 1>&6
! 4305: fi
! 4306: if test "$GENCAT" != "no"; then
! 4307: # Extract the first word of "gmsgfmt", so it can be a program name with args.
! 4308: set dummy gmsgfmt; ac_word=$2
! 4309: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! 4310: echo "configure:4311: checking for $ac_word" >&5
! 4311: if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
! 4312: echo $ac_n "(cached) $ac_c" 1>&6
! 4313: else
! 4314: case "$GMSGFMT" in
! 4315: /*)
! 4316: ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
! 4317: ;;
! 4318: *)
! 4319: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
! 4320: for ac_dir in $PATH; do
! 4321: test -z "$ac_dir" && ac_dir=.
! 4322: if test -f $ac_dir/$ac_word; then
! 4323: ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
! 4324: break
! 4325: fi
! 4326: done
! 4327: IFS="$ac_save_ifs"
! 4328: test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
! 4329: ;;
! 4330: esac
! 4331: fi
! 4332: GMSGFMT="$ac_cv_path_GMSGFMT"
! 4333: if test -n "$GMSGFMT"; then
! 4334: echo "$ac_t""$GMSGFMT" 1>&6
! 4335: else
! 4336: echo "$ac_t""no" 1>&6
! 4337: fi
! 4338:
! 4339: if test "$GMSGFMT" = "no"; then
! 4340: # Extract the first word of "msgfmt", so it can be a program name with args.
! 4341: set dummy msgfmt; ac_word=$2
! 4342: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! 4343: echo "configure:4344: checking for $ac_word" >&5
! 4344: if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
! 4345: echo $ac_n "(cached) $ac_c" 1>&6
! 4346: else
! 4347: case "$GMSGFMT" in
! 4348: /*)
! 4349: ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
! 4350: ;;
! 4351: *)
! 4352: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
! 4353: for ac_dir in $PATH; do
! 4354: test -z "$ac_dir" && ac_dir=.
! 4355: if test -f $ac_dir/$ac_word; then
! 4356: if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
! 4357: ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
! 4358: break
! 4359: fi
! 4360: fi
! 4361: done
! 4362: IFS="$ac_save_ifs"
! 4363: test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
! 4364: ;;
! 4365: esac
! 4366: fi
! 4367: GMSGFMT="$ac_cv_path_GMSGFMT"
! 4368: if test -n "$GMSGFMT"; then
! 4369: echo "$ac_t""$GMSGFMT" 1>&6
! 4370: else
! 4371: echo "$ac_t""no" 1>&6
! 4372: fi
! 4373:
! 4374: fi
! 4375: # Extract the first word of "xgettext", so it can be a program name with args.
! 4376: set dummy xgettext; ac_word=$2
! 4377: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! 4378: echo "configure:4379: checking for $ac_word" >&5
! 4379: if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
! 4380: echo $ac_n "(cached) $ac_c" 1>&6
! 4381: else
! 4382: case "$XGETTEXT" in
! 4383: /*)
! 4384: ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
! 4385: ;;
! 4386: *)
! 4387: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
! 4388: for ac_dir in $PATH; do
! 4389: test -z "$ac_dir" && ac_dir=.
! 4390: if test -f $ac_dir/$ac_word; then
! 4391: if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
! 4392: ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
! 4393: break
! 4394: fi
! 4395: fi
! 4396: done
! 4397: IFS="$ac_save_ifs"
! 4398: test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
! 4399: ;;
! 4400: esac
! 4401: fi
! 4402: XGETTEXT="$ac_cv_path_XGETTEXT"
! 4403: if test -n "$XGETTEXT"; then
! 4404: echo "$ac_t""$XGETTEXT" 1>&6
! 4405: else
! 4406: echo "$ac_t""no" 1>&6
! 4407: fi
! 4408:
! 4409: USE_INCLUDED_LIBINTL=yes
! 4410: CATOBJEXT=.cat
! 4411: INSTOBJEXT=.cat
! 4412: DATADIRNAME=lib
! 4413: INTLDEPS='$(top_builddir)/intl/libintl.a'
! 4414: INTLLIBS=$INTLDEPS
! 4415: LIBS=`echo $LIBS | sed -e 's/-lintl//'`
! 4416: nls_cv_header_intl=intl/libintl.h
! 4417: nls_cv_header_libgt=intl/libgettext.h
! 4418: fi
! 4419: else
! 4420: echo "$ac_t""no" 1>&6
! 4421: fi
! 4422:
! 4423: fi
! 4424: fi
! 4425:
! 4426: if test "$CATOBJEXT" = "NONE"; then
! 4427: nls_cv_use_gnu_gettext=yes
! 4428: fi
! 4429: fi
! 4430:
! 4431: if test "$nls_cv_use_gnu_gettext" = "yes"; then
! 4432: INTLOBJS="\$(GETTOBJS)"
! 4433: # Extract the first word of "msgfmt", so it can be a program name with args.
! 4434: set dummy msgfmt; ac_word=$2
! 4435: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! 4436: echo "configure:4437: checking for $ac_word" >&5
! 4437: if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
! 4438: echo $ac_n "(cached) $ac_c" 1>&6
! 4439: else
! 4440: case "$MSGFMT" in
! 4441: /*)
! 4442: ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
! 4443: ;;
! 4444: *)
! 4445: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
! 4446: for ac_dir in $PATH; do
! 4447: test -z "$ac_dir" && ac_dir=.
! 4448: if test -f $ac_dir/$ac_word; then
! 4449: if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
! 4450: ac_cv_path_MSGFMT="$ac_dir/$ac_word"
! 4451: break
! 4452: fi
! 4453: fi
! 4454: done
! 4455: IFS="$ac_save_ifs"
! 4456: test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
! 4457: ;;
! 4458: esac
! 4459: fi
! 4460: MSGFMT="$ac_cv_path_MSGFMT"
! 4461: if test -n "$MSGFMT"; then
! 4462: echo "$ac_t""$MSGFMT" 1>&6
! 4463: else
! 4464: echo "$ac_t""no" 1>&6
! 4465: fi
! 4466:
! 4467: # Extract the first word of "gmsgfmt", so it can be a program name with args.
! 4468: set dummy gmsgfmt; ac_word=$2
! 4469: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! 4470: echo "configure:4471: checking for $ac_word" >&5
! 4471: if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
! 4472: echo $ac_n "(cached) $ac_c" 1>&6
! 4473: else
! 4474: case "$GMSGFMT" in
! 4475: /*)
! 4476: ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
! 4477: ;;
! 4478: *)
! 4479: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
! 4480: for ac_dir in $PATH; do
! 4481: test -z "$ac_dir" && ac_dir=.
! 4482: if test -f $ac_dir/$ac_word; then
! 4483: ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
! 4484: break
! 4485: fi
! 4486: done
! 4487: IFS="$ac_save_ifs"
! 4488: test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
! 4489: ;;
! 4490: esac
! 4491: fi
! 4492: GMSGFMT="$ac_cv_path_GMSGFMT"
! 4493: if test -n "$GMSGFMT"; then
! 4494: echo "$ac_t""$GMSGFMT" 1>&6
! 4495: else
! 4496: echo "$ac_t""no" 1>&6
! 4497: fi
! 4498:
! 4499: # Extract the first word of "xgettext", so it can be a program name with args.
! 4500: set dummy xgettext; ac_word=$2
! 4501: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! 4502: echo "configure:4503: checking for $ac_word" >&5
! 4503: if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
! 4504: echo $ac_n "(cached) $ac_c" 1>&6
! 4505: else
! 4506: case "$XGETTEXT" in
! 4507: /*)
! 4508: ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
! 4509: ;;
! 4510: *)
! 4511: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
! 4512: for ac_dir in $PATH; do
! 4513: test -z "$ac_dir" && ac_dir=.
! 4514: if test -f $ac_dir/$ac_word; then
! 4515: if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
! 4516: ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
! 4517: break
! 4518: fi
! 4519: fi
! 4520: done
! 4521: IFS="$ac_save_ifs"
! 4522: test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
! 4523: ;;
! 4524: esac
! 4525: fi
! 4526: XGETTEXT="$ac_cv_path_XGETTEXT"
! 4527: if test -n "$XGETTEXT"; then
! 4528: echo "$ac_t""$XGETTEXT" 1>&6
! 4529: else
! 4530: echo "$ac_t""no" 1>&6
! 4531: fi
! 4532:
! 4533:
! 4534: USE_INCLUDED_LIBINTL=yes
! 4535: CATOBJEXT=.gmo
! 4536: INSTOBJEXT=.mo
! 4537: DATADIRNAME=share
! 4538: INTLDEPS='$(top_builddir)/intl/libintl.a'
! 4539: INTLLIBS=$INTLDEPS
! 4540: LIBS=`echo $LIBS | sed -e 's/-lintl//'`
! 4541: nls_cv_header_intl=intl/libintl.h
! 4542: nls_cv_header_libgt=intl/libgettext.h
! 4543: fi
! 4544:
! 4545: if test "$XGETTEXT" != ":"; then
! 4546: if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
! 4547: : ;
! 4548: else
! 4549: echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
! 4550: XGETTEXT=":"
! 4551: fi
! 4552: fi
! 4553:
! 4554: # We need to process the po/ directory.
! 4555: POSUB=po
! 4556: else
! 4557: DATADIRNAME=share
! 4558: nls_cv_header_intl=intl/libintl.h
! 4559: nls_cv_header_libgt=intl/libgettext.h
! 4560: fi
! 4561:
! 4562: # If this is used in GNU gettext we have to set USE_NLS to `yes'
! 4563: # because some of the sources are only built for this goal.
! 4564: if test "$PACKAGE" = gettext; then
! 4565: USE_NLS=yes
! 4566: USE_INCLUDED_LIBINTL=yes
! 4567: fi
! 4568:
! 4569: for lang in $ALL_LINGUAS; do
! 4570: GMOFILES="$GMOFILES $lang.gmo"
! 4571: POFILES="$POFILES $lang.po"
! 4572: done
! 4573:
! 4574:
! 4575:
! 4576:
! 4577:
! 4578:
! 4579:
! 4580:
! 4581:
! 4582:
! 4583:
! 4584:
! 4585:
! 4586:
! 4587: if test "x$CATOBJEXT" != "x"; then
! 4588: if test "x$ALL_LINGUAS" = "x"; then
! 4589: LINGUAS=
! 4590: else
! 4591: echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
! 4592: echo "configure:4593: checking for catalogs to be installed" >&5
! 4593: NEW_LINGUAS=
! 4594: for lang in ${LINGUAS=$ALL_LINGUAS}; do
! 4595: case "$ALL_LINGUAS" in
! 4596: *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
! 4597: esac
! 4598: done
! 4599: LINGUAS=$NEW_LINGUAS
! 4600: echo "$ac_t""$LINGUAS" 1>&6
! 4601: fi
! 4602:
! 4603: if test -n "$LINGUAS"; then
! 4604: for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
! 4605: fi
! 4606: fi
! 4607:
! 4608: if test $ac_cv_header_locale_h = yes; then
! 4609: INCLUDE_LOCALE_H="#include <locale.h>"
! 4610: else
! 4611: INCLUDE_LOCALE_H="\
! 4612: /* The system does not provide the header <locale.h>. Take care yourself. */"
! 4613: fi
! 4614:
! 4615:
! 4616: test -d intl || mkdir intl
! 4617: if test "$CATOBJEXT" = ".cat"; then
! 4618: ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
! 4619: echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
! 4620: echo "configure:4621: checking for linux/version.h" >&5
! 4621: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
! 4622: echo $ac_n "(cached) $ac_c" 1>&6
! 4623: else
! 4624: cat > conftest.$ac_ext <<EOF
! 4625: #line 4626 "configure"
! 4626: #include "confdefs.h"
! 4627: #include <linux/version.h>
! 4628: EOF
! 4629: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 4630: { (eval echo configure:4631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 4631: ac_err=`grep -v '^ *+' conftest.out`
! 4632: if test -z "$ac_err"; then
! 4633: rm -rf conftest*
! 4634: eval "ac_cv_header_$ac_safe=yes"
! 4635: else
! 4636: echo "$ac_err" >&5
! 4637: echo "configure: failed program was:" >&5
! 4638: cat conftest.$ac_ext >&5
! 4639: rm -rf conftest*
! 4640: eval "ac_cv_header_$ac_safe=no"
! 4641: fi
! 4642: rm -f conftest*
! 4643: fi
! 4644: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
! 4645: echo "$ac_t""yes" 1>&6
! 4646: msgformat=linux
! 4647: else
! 4648: echo "$ac_t""no" 1>&6
! 4649: msgformat=xopen
! 4650: fi
! 4651:
! 4652:
! 4653: sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
! 4654: fi
! 4655: sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
! 4656: $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
! 4657:
! 4658: if test "$PACKAGE" = "gettext"; then
! 4659: GT_NO="#NO#"
! 4660: GT_YES=
! 4661: else
! 4662: GT_NO=
! 4663: GT_YES="#YES#"
! 4664: fi
! 4665:
! 4666:
! 4667:
! 4668: MKINSTALLDIRS=
! 4669: if test -n "$ac_aux_dir"; then
! 4670: MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
! 4671: fi
! 4672: if test -z "$MKINSTALLDIRS"; then
! 4673: MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
! 4674: fi
! 4675:
! 4676:
! 4677: l=
! 4678:
! 4679:
! 4680: test -d po || mkdir po
! 4681: if test "x$srcdir" != "x."; then
! 4682: if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
! 4683: posrcprefix="$srcdir/"
! 4684: else
! 4685: posrcprefix="../$srcdir/"
! 4686: fi
! 4687: else
! 4688: posrcprefix="../"
! 4689: fi
! 4690: rm -f po/POTFILES
! 4691: sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
! 4692: < $srcdir/po/POTFILES.in > po/POTFILES
! 4693:
! 4694:
! 4695: cat >> confdefs.h <<EOF
! 4696: #define LOCALEDIR "$prefix/$DATADIRNAME"
! 4697: EOF
! 4698:
! 4699:
! 4700:
! 4701: trap '' 1 2 15
! 4702: cat > confcache <<\EOF
! 4703: # This file is a shell script that caches the results of configure
! 4704: # tests run on this system so they can be shared between configure
! 4705: # scripts and configure runs. It is not useful on other systems.
! 4706: # If it contains results you don't want to keep, you may remove or edit it.
! 4707: #
! 4708: # By default, configure uses ./config.cache as the cache file,
! 4709: # creating it if it does not exist already. You can give configure
! 4710: # the --cache-file=FILE option to use a different cache file; that is
! 4711: # what configure does when it calls configure scripts in
! 4712: # subdirectories, so they share the cache.
! 4713: # Giving --cache-file=/dev/null disables caching, for debugging configure.
! 4714: # config.status only pays attention to the cache file if you give it the
! 4715: # --recheck option to rerun configure.
! 4716: #
! 4717: EOF
! 4718: # The following way of writing the cache mishandles newlines in values,
! 4719: # but we know of no workaround that is simple, portable, and efficient.
! 4720: # So, don't put newlines in cache variables' values.
! 4721: # Ultrix sh set writes to stderr and can't be redirected directly,
! 4722: # and sets the high bit in the cache file unless we assign to the vars.
! 4723: (set) 2>&1 |
! 4724: case `(ac_space=' '; set) 2>&1` in
! 4725: *ac_space=\ *)
! 4726: # `set' does not quote correctly, so add quotes (double-quote substitution
! 4727: # turns \\\\ into \\, and sed turns \\ into \).
! 4728: sed -n \
! 4729: -e "s/'/'\\\\''/g" \
! 4730: -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
! 4731: ;;
! 4732: *)
! 4733: # `set' quotes correctly as required by POSIX, so do not add quotes.
! 4734: sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
! 4735: ;;
! 4736: esac >> confcache
! 4737: if cmp -s $cache_file confcache; then
! 4738: :
! 4739: else
! 4740: if test -w $cache_file; then
! 4741: echo "updating cache $cache_file"
! 4742: cat confcache > $cache_file
! 4743: else
! 4744: echo "not updating unwritable cache $cache_file"
! 4745: fi
! 4746: fi
! 4747: rm -f confcache
! 4748:
! 4749: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
! 4750:
! 4751: test "x$prefix" = xNONE && prefix=$ac_default_prefix
! 4752: # Let make expand exec_prefix.
! 4753: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
! 4754:
! 4755: # Any assignment to VPATH causes Sun make to only execute
! 4756: # the first set of double-colon rules, so remove it if not needed.
! 4757: # If there is a colon in the path, we need to keep it.
! 4758: if test "x$srcdir" = x.; then
! 4759: ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
! 4760: fi
! 4761:
! 4762: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
! 4763:
! 4764: DEFS=-DHAVE_CONFIG_H
! 4765:
! 4766: # Without the "./", some shells look in PATH for config.status.
! 4767: : ${CONFIG_STATUS=./config.status}
! 4768:
! 4769: echo creating $CONFIG_STATUS
! 4770: rm -f $CONFIG_STATUS
! 4771: cat > $CONFIG_STATUS <<EOF
! 4772: #! /bin/sh
! 4773: # Generated automatically by configure.
! 4774: # Run this file to recreate the current configuration.
! 4775: # This directory was configured as follows,
! 4776: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
! 4777: #
! 4778: # $0 $ac_configure_args
! 4779: #
! 4780: # Compiler output produced by configure, useful for debugging
! 4781: # configure, is in ./config.log if it exists.
! 4782:
! 4783: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
! 4784: for ac_option
! 4785: do
! 4786: case "\$ac_option" in
! 4787: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
! 4788: echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
! 4789: exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
! 4790: -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
! 4791: echo "$CONFIG_STATUS generated by autoconf version 2.12"
! 4792: exit 0 ;;
! 4793: -help | --help | --hel | --he | --h)
! 4794: echo "\$ac_cs_usage"; exit 0 ;;
! 4795: *) echo "\$ac_cs_usage"; exit 1 ;;
! 4796: esac
! 4797: done
! 4798:
! 4799: ac_given_srcdir=$srcdir
! 4800: ac_given_INSTALL="$INSTALL"
! 4801:
! 4802: trap 'rm -fr `echo "Makefile intl/Makefile lib/Makefile testsuite/Makefile \
! 4803: man/Makefile po/Makefile.in src/Makefile debian/rules Specfile systype \
! 4804: src/lrzszbug config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
! 4805: EOF
! 4806: cat >> $CONFIG_STATUS <<EOF
! 4807:
! 4808: # Protect against being on the right side of a sed subst in config.status.
! 4809: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
! 4810: s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
! 4811: $ac_vpsub
! 4812: $extrasub
! 4813: s%@CFLAGS@%$CFLAGS%g
! 4814: s%@CPPFLAGS@%$CPPFLAGS%g
! 4815: s%@CXXFLAGS@%$CXXFLAGS%g
! 4816: s%@DEFS@%$DEFS%g
! 4817: s%@LDFLAGS@%$LDFLAGS%g
! 4818: s%@LIBS@%$LIBS%g
! 4819: s%@exec_prefix@%$exec_prefix%g
! 4820: s%@prefix@%$prefix%g
! 4821: s%@program_transform_name@%$program_transform_name%g
! 4822: s%@bindir@%$bindir%g
! 4823: s%@sbindir@%$sbindir%g
! 4824: s%@libexecdir@%$libexecdir%g
! 4825: s%@datadir@%$datadir%g
! 4826: s%@sysconfdir@%$sysconfdir%g
! 4827: s%@sharedstatedir@%$sharedstatedir%g
! 4828: s%@localstatedir@%$localstatedir%g
! 4829: s%@libdir@%$libdir%g
! 4830: s%@includedir@%$includedir%g
! 4831: s%@oldincludedir@%$oldincludedir%g
! 4832: s%@infodir@%$infodir%g
! 4833: s%@mandir@%$mandir%g
! 4834: s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
! 4835: s%@INSTALL_DATA@%$INSTALL_DATA%g
! 4836: s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
! 4837: s%@PACKAGE@%$PACKAGE%g
! 4838: s%@VERSION@%$VERSION%g
! 4839: s%@ACLOCAL@%$ACLOCAL%g
! 4840: s%@AUTOCONF@%$AUTOCONF%g
! 4841: s%@AUTOMAKE@%$AUTOMAKE%g
! 4842: s%@AUTOHEADER@%$AUTOHEADER%g
! 4843: s%@MAKEINFO@%$MAKEINFO%g
! 4844: s%@SET_MAKE@%$SET_MAKE%g
! 4845: s%@PACKAGE_VERSION@%$PACKAGE_VERSION%g
! 4846: s%@ENABLE_TIMESYNC@%$ENABLE_TIMESYNC%g
! 4847: s%@CC@%$CC%g
! 4848: s%@CPP@%$CPP%g
! 4849: s%@RANLIB@%$RANLIB%g
! 4850: s%@U@%$U%g
! 4851: s%@ANSI2KNR@%$ANSI2KNR%g
! 4852: s%@ALLOCA@%$ALLOCA%g
! 4853: s%@LIBOBJS@%$LIBOBJS%g
! 4854: s%@USE_NLS@%$USE_NLS%g
! 4855: s%@MSGFMT@%$MSGFMT%g
! 4856: s%@GMSGFMT@%$GMSGFMT%g
! 4857: s%@XGETTEXT@%$XGETTEXT%g
! 4858: s%@GENCAT@%$GENCAT%g
! 4859: s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
! 4860: s%@CATALOGS@%$CATALOGS%g
! 4861: s%@CATOBJEXT@%$CATOBJEXT%g
! 4862: s%@DATADIRNAME@%$DATADIRNAME%g
! 4863: s%@GMOFILES@%$GMOFILES%g
! 4864: s%@INSTOBJEXT@%$INSTOBJEXT%g
! 4865: s%@INTLDEPS@%$INTLDEPS%g
! 4866: s%@INTLLIBS@%$INTLLIBS%g
! 4867: s%@INTLOBJS@%$INTLOBJS%g
! 4868: s%@POFILES@%$POFILES%g
! 4869: s%@POSUB@%$POSUB%g
! 4870: s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
! 4871: s%@GT_NO@%$GT_NO%g
! 4872: s%@GT_YES@%$GT_YES%g
! 4873: s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
! 4874: s%@l@%$l%g
! 4875:
! 4876: CEOF
! 4877: EOF
! 4878:
! 4879: cat >> $CONFIG_STATUS <<\EOF
! 4880:
! 4881: # Split the substitutions into bite-sized pieces for seds with
! 4882: # small command number limits, like on Digital OSF/1 and HP-UX.
! 4883: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
! 4884: ac_file=1 # Number of current file.
! 4885: ac_beg=1 # First line for current file.
! 4886: ac_end=$ac_max_sed_cmds # Line after last line for current file.
! 4887: ac_more_lines=:
! 4888: ac_sed_cmds=""
! 4889: while $ac_more_lines; do
! 4890: if test $ac_beg -gt 1; then
! 4891: sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
! 4892: else
! 4893: sed "${ac_end}q" conftest.subs > conftest.s$ac_file
! 4894: fi
! 4895: if test ! -s conftest.s$ac_file; then
! 4896: ac_more_lines=false
! 4897: rm -f conftest.s$ac_file
! 4898: else
! 4899: if test -z "$ac_sed_cmds"; then
! 4900: ac_sed_cmds="sed -f conftest.s$ac_file"
! 4901: else
! 4902: ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
! 4903: fi
! 4904: ac_file=`expr $ac_file + 1`
! 4905: ac_beg=$ac_end
! 4906: ac_end=`expr $ac_end + $ac_max_sed_cmds`
! 4907: fi
! 4908: done
! 4909: if test -z "$ac_sed_cmds"; then
! 4910: ac_sed_cmds=cat
! 4911: fi
! 4912: EOF
! 4913:
! 4914: cat >> $CONFIG_STATUS <<EOF
! 4915:
! 4916: CONFIG_FILES=\${CONFIG_FILES-"Makefile intl/Makefile lib/Makefile testsuite/Makefile \
! 4917: man/Makefile po/Makefile.in src/Makefile debian/rules Specfile systype \
! 4918: src/lrzszbug"}
! 4919: EOF
! 4920: cat >> $CONFIG_STATUS <<\EOF
! 4921: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
! 4922: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
! 4923: case "$ac_file" in
! 4924: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
! 4925: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
! 4926: *) ac_file_in="${ac_file}.in" ;;
! 4927: esac
! 4928:
! 4929: # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
! 4930:
! 4931: # Remove last slash and all that follows it. Not all systems have dirname.
! 4932: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
! 4933: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
! 4934: # The file is in a subdirectory.
! 4935: test ! -d "$ac_dir" && mkdir "$ac_dir"
! 4936: ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
! 4937: # A "../" for each directory in $ac_dir_suffix.
! 4938: ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
! 4939: else
! 4940: ac_dir_suffix= ac_dots=
! 4941: fi
! 4942:
! 4943: case "$ac_given_srcdir" in
! 4944: .) srcdir=.
! 4945: if test -z "$ac_dots"; then top_srcdir=.
! 4946: else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
! 4947: /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
! 4948: *) # Relative path.
! 4949: srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
! 4950: top_srcdir="$ac_dots$ac_given_srcdir" ;;
! 4951: esac
! 4952:
! 4953: case "$ac_given_INSTALL" in
! 4954: [/$]*) INSTALL="$ac_given_INSTALL" ;;
! 4955: *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
! 4956: esac
! 4957:
! 4958: echo creating "$ac_file"
! 4959: rm -f "$ac_file"
! 4960: configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
! 4961: case "$ac_file" in
! 4962: *Makefile*) ac_comsub="1i\\
! 4963: # $configure_input" ;;
! 4964: *) ac_comsub= ;;
! 4965: esac
! 4966:
! 4967: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
! 4968: sed -e "$ac_comsub
! 4969: s%@configure_input@%$configure_input%g
! 4970: s%@srcdir@%$srcdir%g
! 4971: s%@top_srcdir@%$top_srcdir%g
! 4972: s%@INSTALL@%$INSTALL%g
! 4973: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
! 4974: fi; done
! 4975: rm -f conftest.s*
! 4976:
! 4977: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
! 4978: # NAME is the cpp macro being defined and VALUE is the value it is being given.
! 4979: #
! 4980: # ac_d sets the value in "#define NAME VALUE" lines.
! 4981: ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
! 4982: ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
! 4983: ac_dC='\3'
! 4984: ac_dD='%g'
! 4985: # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
! 4986: ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
! 4987: ac_uB='\([ ]\)%\1#\2define\3'
! 4988: ac_uC=' '
! 4989: ac_uD='\4%g'
! 4990: # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
! 4991: ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
! 4992: ac_eB='$%\1#\2define\3'
! 4993: ac_eC=' '
! 4994: ac_eD='%g'
! 4995:
! 4996: if test "${CONFIG_HEADERS+set}" != set; then
! 4997: EOF
! 4998: cat >> $CONFIG_STATUS <<EOF
! 4999: CONFIG_HEADERS="config.h"
! 5000: EOF
! 5001: cat >> $CONFIG_STATUS <<\EOF
! 5002: fi
! 5003: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
! 5004: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
! 5005: case "$ac_file" in
! 5006: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
! 5007: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
! 5008: *) ac_file_in="${ac_file}.in" ;;
! 5009: esac
! 5010:
! 5011: echo creating $ac_file
! 5012:
! 5013: rm -f conftest.frag conftest.in conftest.out
! 5014: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
! 5015: cat $ac_file_inputs > conftest.in
! 5016:
! 5017: EOF
! 5018:
! 5019: # Transform confdefs.h into a sed script conftest.vals that substitutes
! 5020: # the proper values into config.h.in to produce config.h. And first:
! 5021: # Protect against being on the right side of a sed subst in config.status.
! 5022: # Protect against being in an unquoted here document in config.status.
! 5023: rm -f conftest.vals
! 5024: cat > conftest.hdr <<\EOF
! 5025: s/[\\&%]/\\&/g
! 5026: s%[\\$`]%\\&%g
! 5027: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
! 5028: s%ac_d%ac_u%gp
! 5029: s%ac_u%ac_e%gp
! 5030: EOF
! 5031: sed -n -f conftest.hdr confdefs.h > conftest.vals
! 5032: rm -f conftest.hdr
! 5033:
! 5034: # This sed command replaces #undef with comments. This is necessary, for
! 5035: # example, in the case of _POSIX_SOURCE, which is predefined and required
! 5036: # on some systems where configure will not decide to define it.
! 5037: cat >> conftest.vals <<\EOF
! 5038: s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
! 5039: EOF
! 5040:
! 5041: # Break up conftest.vals because some shells have a limit on
! 5042: # the size of here documents, and old seds have small limits too.
! 5043:
! 5044: rm -f conftest.tail
! 5045: while :
! 5046: do
! 5047: ac_lines=`grep -c . conftest.vals`
! 5048: # grep -c gives empty output for an empty file on some AIX systems.
! 5049: if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
! 5050: # Write a limited-size here document to conftest.frag.
! 5051: echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
! 5052: sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
! 5053: echo 'CEOF
! 5054: sed -f conftest.frag conftest.in > conftest.out
! 5055: rm -f conftest.in
! 5056: mv conftest.out conftest.in
! 5057: ' >> $CONFIG_STATUS
! 5058: sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
! 5059: rm -f conftest.vals
! 5060: mv conftest.tail conftest.vals
! 5061: done
! 5062: rm -f conftest.vals
! 5063:
! 5064: cat >> $CONFIG_STATUS <<\EOF
! 5065: rm -f conftest.frag conftest.h
! 5066: echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
! 5067: cat conftest.in >> conftest.h
! 5068: rm -f conftest.in
! 5069: if cmp -s $ac_file conftest.h 2>/dev/null; then
! 5070: echo "$ac_file is unchanged"
! 5071: rm -f conftest.h
! 5072: else
! 5073: # Remove last slash and all that follows it. Not all systems have dirname.
! 5074: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
! 5075: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
! 5076: # The file is in a subdirectory.
! 5077: test ! -d "$ac_dir" && mkdir "$ac_dir"
! 5078: fi
! 5079: rm -f $ac_file
! 5080: mv conftest.h $ac_file
! 5081: fi
! 5082: fi; done
! 5083:
! 5084: EOF
! 5085:
! 5086: cat >> $CONFIG_STATUS <<EOF
! 5087: ac_sources="$nls_cv_header_libgt"
! 5088: ac_dests="$nls_cv_header_intl"
! 5089: EOF
! 5090:
! 5091: cat >> $CONFIG_STATUS <<\EOF
! 5092: srcdir=$ac_given_srcdir
! 5093: while test -n "$ac_sources"; do
! 5094: set $ac_dests; ac_dest=$1; shift; ac_dests=$*
! 5095: set $ac_sources; ac_source=$1; shift; ac_sources=$*
! 5096:
! 5097: echo "linking $srcdir/$ac_source to $ac_dest"
! 5098:
! 5099: if test ! -r $srcdir/$ac_source; then
! 5100: { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
! 5101: fi
! 5102: rm -f $ac_dest
! 5103:
! 5104: # Make relative symlinks.
! 5105: # Remove last slash and all that follows it. Not all systems have dirname.
! 5106: ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
! 5107: if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
! 5108: # The dest file is in a subdirectory.
! 5109: test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
! 5110: ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
! 5111: # A "../" for each directory in $ac_dest_dir_suffix.
! 5112: ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
! 5113: else
! 5114: ac_dest_dir_suffix= ac_dots=
! 5115: fi
! 5116:
! 5117: case "$srcdir" in
! 5118: [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
! 5119: *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
! 5120: esac
! 5121:
! 5122: # Make a symlink if possible; otherwise try a hard link.
! 5123: if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
! 5124: ln $srcdir/$ac_source $ac_dest; then :
! 5125: else
! 5126: { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
! 5127: fi
! 5128: done
! 5129: EOF
! 5130: cat >> $CONFIG_STATUS <<EOF
! 5131:
! 5132:
! 5133: EOF
! 5134: cat >> $CONFIG_STATUS <<\EOF
! 5135: test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
! 5136: sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile;
! 5137: chmod +x debian/rules;
! 5138: test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
! 5139: exit 0
! 5140: EOF
! 5141: chmod +x $CONFIG_STATUS
! 5142: rm -fr confdefs* $ac_clean_files
! 5143: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
! 5144:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>