home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / rsync221.zip / configure < prev    next >
Text File  |  1999-03-04  |  101KB  |  3,375 lines

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