home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1997 May / PCO_5_97.ISO / FilesBBS / OS2 / GNUWGET.ARJ / GNUWGET.ZIP / wget-1.4.3 / configure < prev    next >
Encoding:
Text File  |  1997-01-27  |  60.4 KB  |  2,137 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.10 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --with-socks            use the socks library"
  16.  
  17. # Initialize some variables set by options.
  18. # The variables have the same names as the options, with
  19. # dashes changed to underlines.
  20. build=NONE
  21. cache_file=./config.cache
  22. exec_prefix=NONE
  23. host=NONE
  24. no_create=
  25. nonopt=NONE
  26. no_recursion=
  27. prefix=NONE
  28. program_prefix=NONE
  29. program_suffix=NONE
  30. program_transform_name=s,x,x,
  31. silent=
  32. site=
  33. srcdir=
  34. target=NONE
  35. verbose=
  36. x_includes=NONE
  37. x_libraries=NONE
  38. bindir='${exec_prefix}/bin'
  39. sbindir='${exec_prefix}/sbin'
  40. libexecdir='${exec_prefix}/libexec'
  41. datadir='${prefix}/share'
  42. sysconfdir='${prefix}/etc'
  43. sharedstatedir='${prefix}/com'
  44. localstatedir='${prefix}/var'
  45. libdir='${exec_prefix}/lib'
  46. includedir='${prefix}/include'
  47. oldincludedir='/usr/include'
  48. infodir='${prefix}/info'
  49. mandir='${prefix}/man'
  50.  
  51. # Initialize some other variables.
  52. subdirs=
  53. MFLAGS= MAKEFLAGS=
  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.10"
  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 LANG and LC_ALL to C if already set.
  438. # These must not be set unconditionally because not all systems understand
  439. # e.g. LANG=C (notably SCO).
  440. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  441. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  442.  
  443. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  444. rm -rf conftest* confdefs.h
  445. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  446. echo > confdefs.h
  447.  
  448. # A filename unique to this package, relative to the directory that
  449. # configure is in, which we can look for to find out if srcdir is correct.
  450. ac_unique_file=src/version.c
  451.  
  452. # Find the source files, if location was not specified.
  453. if test -z "$srcdir"; then
  454.   ac_srcdir_defaulted=yes
  455.   # Try the directory containing this script, then its parent.
  456.   ac_prog=$0
  457.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  458.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  459.   srcdir=$ac_confdir
  460.   if test ! -r $srcdir/$ac_unique_file; then
  461.     srcdir=..
  462.   fi
  463. else
  464.   ac_srcdir_defaulted=no
  465. fi
  466. if test ! -r $srcdir/$ac_unique_file; then
  467.   if test "$ac_srcdir_defaulted" = yes; then
  468.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  469.   else
  470.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  471.   fi
  472. fi
  473. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  474.  
  475. # Prefer explicitly selected file to automatically selected ones.
  476. if test -z "$CONFIG_SITE"; then
  477.   if test "x$prefix" != xNONE; then
  478.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  479.   else
  480.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  481.   fi
  482. fi
  483. for ac_site_file in $CONFIG_SITE; do
  484.   if test -r "$ac_site_file"; then
  485.     echo "loading site script $ac_site_file"
  486.     . "$ac_site_file"
  487.   fi
  488. done
  489.  
  490. if test -r "$cache_file"; then
  491.   echo "loading cache $cache_file"
  492.   . $cache_file
  493. else
  494.   echo "creating cache $cache_file"
  495.   > $cache_file
  496. fi
  497.  
  498. ac_ext=c
  499. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  500. ac_cpp='$CPP $CPPFLAGS'
  501. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  502. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  503.  
  504. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  505.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  506.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  507.     ac_n= ac_c='
  508. ' ac_t='    '
  509.   else
  510.     ac_n=-n ac_c= ac_t=
  511.   fi
  512. else
  513.   ac_n= ac_c='\c' ac_t=
  514. fi
  515.  
  516.  
  517.  
  518.  
  519.  
  520. VERSION=`sed -e 's/^.*"\(.*\)";$/\1/' ${srcdir}/src/version.c`
  521. echo "configuring for $VERSION"
  522.  
  523.  
  524. ac_aux_dir=
  525. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  526.   if test -f $ac_dir/install-sh; then
  527.     ac_aux_dir=$ac_dir
  528.     ac_install_sh="$ac_aux_dir/install-sh -c"
  529.     break
  530.   elif test -f $ac_dir/install.sh; then
  531.     ac_aux_dir=$ac_dir
  532.     ac_install_sh="$ac_aux_dir/install.sh -c"
  533.     break
  534.   fi
  535. done
  536. if test -z "$ac_aux_dir"; then
  537.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  538. fi
  539. ac_config_guess=$ac_aux_dir/config.guess
  540. ac_config_sub=$ac_aux_dir/config.sub
  541. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  542.  
  543.  
  544. # Make sure we can run config.sub.
  545. if $ac_config_sub sun4 >/dev/null 2>&1; then :
  546. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  547. fi
  548.  
  549. echo $ac_n "checking host system type""... $ac_c" 1>&6
  550.  
  551. host_alias=$host
  552. case "$host_alias" in
  553. NONE)
  554.   case $nonopt in
  555.   NONE)
  556.     if host_alias=`$ac_config_guess`; then :
  557.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  558.     fi ;;
  559.   *) host_alias=$nonopt ;;
  560.   esac ;;
  561. esac
  562.  
  563. host=`$ac_config_sub $host_alias`
  564. host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  565. host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  566. host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  567. echo "$ac_t""$host" 1>&6
  568.  
  569. cat >> confdefs.h <<EOF
  570. #define OS_TYPE "$host_os"
  571. EOF
  572.  
  573.  
  574. # Check whether --with-socks or --without-socks was given.
  575. if test "${with_socks+set}" = set; then
  576.   withval="$with_socks"
  577.   cat >> confdefs.h <<\EOF
  578. #define HAVE_SOCKS 1
  579. EOF
  580.  
  581. fi
  582.  
  583.  
  584. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  585. set dummy ${MAKE-make}; ac_make=$2
  586. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  587.   echo $ac_n "(cached) $ac_c" 1>&6
  588. else
  589.   cat > conftestmake <<\EOF
  590. all:
  591.     @echo 'ac_maketemp="${MAKE}"'
  592. EOF
  593. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  594. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  595. if test -n "$ac_maketemp"; then
  596.   eval ac_cv_prog_make_${ac_make}_set=yes
  597. else
  598.   eval ac_cv_prog_make_${ac_make}_set=no
  599. fi
  600. rm -f conftestmake
  601. fi
  602. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  603.   echo "$ac_t""yes" 1>&6
  604.   SET_MAKE=
  605. else
  606.   echo "$ac_t""no" 1>&6
  607.   SET_MAKE="MAKE=${MAKE-make}"
  608. fi
  609.  
  610.  
  611. # Find a good install program.  We prefer a C program (faster),
  612. # so one script is as good as another.  But avoid the broken or
  613. # incompatible versions:
  614. # SysV /etc/install, /usr/sbin/install
  615. # SunOS /usr/etc/install
  616. # IRIX /sbin/install
  617. # AIX /bin/install
  618. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  619. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  620. # ./install, which can be erroneously created by make from ./install.sh.
  621. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  622. if test -z "$INSTALL"; then
  623. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  624.   echo $ac_n "(cached) $ac_c" 1>&6
  625. else
  626.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  627.   for ac_dir in $PATH; do
  628.     # Account for people who put trailing slashes in PATH elements.
  629.     case "$ac_dir/" in
  630.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  631.     *)
  632.       # OSF1 and SCO ODT 3.0 have their own names for install.
  633.       for ac_prog in ginstall installbsd scoinst install; do
  634.         if test -f $ac_dir/$ac_prog; then
  635.       if test $ac_prog = install &&
  636.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  637.         # AIX install.  It has an incompatible calling convention.
  638.         # OSF/1 installbsd also uses dspmsg, but is usable.
  639.         :
  640.       else
  641.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  642.         break 2
  643.       fi
  644.     fi
  645.       done
  646.       ;;
  647.     esac
  648.   done
  649.   IFS="$ac_save_ifs"
  650.  
  651. fi
  652.   if test "${ac_cv_path_install+set}" = set; then
  653.     INSTALL="$ac_cv_path_install"
  654.   else
  655.     # As a last resort, use the slow shell script.  We don't cache a
  656.     # path for INSTALL within a source directory, because that will
  657.     # break other packages using the cache if that directory is
  658.     # removed, or if the path is relative.
  659.     INSTALL="$ac_install_sh"
  660.   fi
  661. fi
  662. echo "$ac_t""$INSTALL" 1>&6
  663.  
  664. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  665. # It thinks the first close brace ends the variable substitution.
  666. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  667.  
  668. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  669.  
  670.  
  671.  
  672. test -z "$CFLAGS"  && CFLAGS= auto_cflags=1
  673. test -z "$CC" && cc_specified=yes
  674.  
  675. # Extract the first word of "gcc", so it can be a program name with args.
  676. set dummy gcc; ac_word=$2
  677. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  678. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  679.   echo $ac_n "(cached) $ac_c" 1>&6
  680. else
  681.   if test -n "$CC"; then
  682.   ac_cv_prog_CC="$CC" # Let the user override the test.
  683. else
  684.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  685.   for ac_dir in $PATH; do
  686.     test -z "$ac_dir" && ac_dir=.
  687.     if test -f $ac_dir/$ac_word; then
  688.       ac_cv_prog_CC="gcc"
  689.       break
  690.     fi
  691.   done
  692.   IFS="$ac_save_ifs"
  693. fi
  694. fi
  695. CC="$ac_cv_prog_CC"
  696. if test -n "$CC"; then
  697.   echo "$ac_t""$CC" 1>&6
  698. else
  699.   echo "$ac_t""no" 1>&6
  700. fi
  701.  
  702. if test -z "$CC"; then
  703.   # Extract the first word of "cc", so it can be a program name with args.
  704. set dummy cc; ac_word=$2
  705. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  706. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  707.   echo $ac_n "(cached) $ac_c" 1>&6
  708. else
  709.   if test -n "$CC"; then
  710.   ac_cv_prog_CC="$CC" # Let the user override the test.
  711. else
  712.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  713.   ac_prog_rejected=no
  714.   for ac_dir in $PATH; do
  715.     test -z "$ac_dir" && ac_dir=.
  716.     if test -f $ac_dir/$ac_word; then
  717.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  718.         ac_prog_rejected=yes
  719.     continue
  720.       fi
  721.       ac_cv_prog_CC="cc"
  722.       break
  723.     fi
  724.   done
  725.   IFS="$ac_save_ifs"
  726. if test $ac_prog_rejected = yes; then
  727.   # We found a bogon in the path, so make sure we never use it.
  728.   set dummy $ac_cv_prog_CC
  729.   shift
  730.   if test $# -gt 0; then
  731.     # We chose a different compiler from the bogus one.
  732.     # However, it has the same basename, so the bogon will be chosen
  733.     # first if we set CC to just the basename; use the full file name.
  734.     shift
  735.     set dummy "$ac_dir/$ac_word" "$@"
  736.     shift
  737.     ac_cv_prog_CC="$@"
  738.   fi
  739. fi
  740. fi
  741. fi
  742. CC="$ac_cv_prog_CC"
  743. if test -n "$CC"; then
  744.   echo "$ac_t""$CC" 1>&6
  745. else
  746.   echo "$ac_t""no" 1>&6
  747. fi
  748.  
  749.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  750. fi
  751.  
  752. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  753. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  754.   echo $ac_n "(cached) $ac_c" 1>&6
  755. else
  756.   cat > conftest.c <<EOF
  757. #ifdef __GNUC__
  758.   yes;
  759. #endif
  760. EOF
  761. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  762.   ac_cv_prog_gcc=yes
  763. else
  764.   ac_cv_prog_gcc=no
  765. fi
  766. fi
  767.  
  768. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  769. if test $ac_cv_prog_gcc = yes; then
  770.   GCC=yes
  771.   if test "${CFLAGS+set}" != set; then
  772.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  773. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  774.   echo $ac_n "(cached) $ac_c" 1>&6
  775. else
  776.   echo 'void f(){}' > conftest.c
  777. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  778.   ac_cv_prog_gcc_g=yes
  779. else
  780.   ac_cv_prog_gcc_g=no
  781. fi
  782. rm -f conftest*
  783.  
  784. fi
  785.  
  786. echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  787.     if test $ac_cv_prog_gcc_g = yes; then
  788.       CFLAGS="-g -O"
  789.     else
  790.       CFLAGS="-O"
  791.     fi
  792.   fi
  793. else
  794.   GCC=
  795.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  796. fi
  797.  
  798.  
  799. if test -n "$auto_cflags"; then
  800.   if test -n "$GCC"; then
  801.     CFLAGS="$CFLAGS -O2 -Wall -Wno-switch -Wno-implicit"
  802.   else
  803.     case "$host_os" in
  804.       *hpux*)  CFLAGS="$CFLAGS +O3"                      ;;
  805.       *ultrix* | *osf*) CFLAGS="$CFLAGS -O -Olimit 2000" ;;
  806.       *)       CFLAGS="$CFLAGS -O" ;;
  807.     esac
  808.   fi
  809. fi
  810.  
  811.  
  812. for ac_prog in makeinfo emacs xemacs
  813. do
  814. # Extract the first word of "$ac_prog", so it can be a program name with args.
  815. set dummy $ac_prog; ac_word=$2
  816. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  817. if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
  818.   echo $ac_n "(cached) $ac_c" 1>&6
  819. else
  820.   if test -n "$MAKEINFO"; then
  821.   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
  822. else
  823.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  824.   for ac_dir in $PATH; do
  825.     test -z "$ac_dir" && ac_dir=.
  826.     if test -f $ac_dir/$ac_word; then
  827.       ac_cv_prog_MAKEINFO="$ac_prog"
  828.       break
  829.     fi
  830.   done
  831.   IFS="$ac_save_ifs"
  832. fi
  833. fi
  834. MAKEINFO="$ac_cv_prog_MAKEINFO"
  835. if test -n "$MAKEINFO"; then
  836.   echo "$ac_t""$MAKEINFO" 1>&6
  837. else
  838.   echo "$ac_t""no" 1>&6
  839. fi
  840.  
  841. test -n "$MAKEINFO" && break
  842. done
  843.  
  844.  
  845. case "${MAKEINFO}" in
  846.    *makeinfo) MAKEINFO="${MAKEINFO} \$(srcdir)/wget.texi"  ;;
  847.    *emacs | *xemacs) MAKEINFO="${MAKEINFO} -batch -q -no-site-file -eval '(find-file \"\$(srcdir)/wget.texi\")' -l texinfmt -f texinfo-format-buffer -f save-buffer"  ;;
  848.    *) MAKEINFO="makeinfo \$(srcdir)/wget.texi"            ;;
  849. esac
  850.  
  851. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  852. # On Suns, sometimes $CPP names a directory.
  853. if test -n "$CPP" && test -d "$CPP"; then
  854.   CPP=
  855. fi
  856. if test -z "$CPP"; then
  857. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  858.   echo $ac_n "(cached) $ac_c" 1>&6
  859. else
  860.     # This must be in double quotes, not single quotes, because CPP may get
  861.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  862.   CPP="${CC-cc} -E"
  863.   # On the NeXT, cc -E runs the code through the compiler's parser,
  864.   # not just through cpp.
  865.   cat > conftest.$ac_ext <<EOF
  866. #line 867 "configure"
  867. #include "confdefs.h"
  868. #include <assert.h>
  869. Syntax Error
  870. EOF
  871. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  872. { (eval echo configure:873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  873. ac_err=`grep -v '^ *+' conftest.out`
  874. if test -z "$ac_err"; then
  875.   :
  876. else
  877.   echo "$ac_err" >&5
  878.   rm -rf conftest*
  879.   CPP="${CC-cc} -E -traditional-cpp"
  880.   cat > conftest.$ac_ext <<EOF
  881. #line 882 "configure"
  882. #include "confdefs.h"
  883. #include <assert.h>
  884. Syntax Error
  885. EOF
  886. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  887. { (eval echo configure:888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  888. ac_err=`grep -v '^ *+' conftest.out`
  889. if test -z "$ac_err"; then
  890.   :
  891. else
  892.   echo "$ac_err" >&5
  893.   rm -rf conftest*
  894.   CPP=/lib/cpp
  895. fi
  896. rm -f conftest*
  897. fi
  898. rm -f conftest*
  899.   ac_cv_prog_CPP="$CPP"
  900. fi
  901.   CPP="$ac_cv_prog_CPP"
  902. else
  903.   ac_cv_prog_CPP="$CPP"
  904. fi
  905. echo "$ac_t""$CPP" 1>&6
  906.  
  907. echo $ac_n "checking for AIX""... $ac_c" 1>&6
  908. cat > conftest.$ac_ext <<EOF
  909. #line 910 "configure"
  910. #include "confdefs.h"
  911. #ifdef _AIX
  912.   yes
  913. #endif
  914.  
  915. EOF
  916. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  917.   egrep "yes" >/dev/null 2>&1; then
  918.   rm -rf conftest*
  919.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  920. #define _ALL_SOURCE 1
  921. EOF
  922.  
  923. else
  924.   rm -rf conftest*
  925.   echo "$ac_t""no" 1>&6
  926. fi
  927. rm -f conftest*
  928.  
  929.  
  930.  
  931.  
  932. echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
  933. if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
  934.   echo $ac_n "(cached) $ac_c" 1>&6
  935. else
  936.   am_cv_prog_cc_stdc=no
  937. ac_save_CC="$CC"
  938. # Don't try gcc -ansi; that turns off useful extensions and
  939. # breaks some systems' header files.
  940. # AIX            -qlanglvl=ansi
  941. # Ultrix and OSF/1    -std1
  942. # HP-UX            -Aa -D_HPUX_SOURCE
  943. # SVR4            -Xc -D__EXTENSIONS__
  944. for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  945. do
  946.   CC="$ac_save_CC $ac_arg"
  947.   cat > conftest.$ac_ext <<EOF
  948. #line 949 "configure"
  949. #include "confdefs.h"
  950. #if !defined(__STDC__) || __STDC__ != 1
  951. choke me
  952. #endif
  953. /* DYNIX/ptx V4.1.3 can't compile sys/stat.h with -Xc -D__EXTENSIONS__. */
  954. #ifdef _SEQUENT_
  955. # include <sys/types.h>
  956. # include <sys/stat.h>
  957. #endif
  958.  
  959. int main() { return 0; }
  960. int t() {
  961.  
  962. int test (int i, double x);
  963. struct s1 {int (*f) (int a);};
  964. struct s2 {int (*f) (double a);};
  965. ; return 0; }
  966. EOF
  967. if { (eval echo configure:968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  968.   rm -rf conftest*
  969.   am_cv_prog_cc_stdc="$ac_arg"; break
  970. fi
  971. rm -f conftest*
  972.  
  973. done
  974. CC="$ac_save_CC"
  975.  
  976. fi
  977.  
  978. echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
  979. case "x$am_cv_prog_cc_stdc" in
  980.   x|xno) ;;
  981.   *) CC="$CC $am_cv_prog_cc_stdc" ;;
  982. esac
  983.  
  984. # If we cannot run a trivial program, we must be cross compiling.
  985. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  986. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  987.   echo $ac_n "(cached) $ac_c" 1>&6
  988. else
  989.   if test "$cross_compiling" = yes; then
  990.   ac_cv_c_cross=yes
  991. else
  992. cat > conftest.$ac_ext <<EOF
  993. #line 994 "configure"
  994. #include "confdefs.h"
  995. main(){return(0);}
  996. EOF
  997. { (eval echo configure:998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  998. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  999.   ac_cv_c_cross=no
  1000. else
  1001.   ac_cv_c_cross=yes
  1002. fi
  1003. fi
  1004. rm -fr conftest*
  1005. fi
  1006.  
  1007. echo "$ac_t""$ac_cv_c_cross" 1>&6
  1008. cross_compiling=$ac_cv_c_cross
  1009.  
  1010.  
  1011.  
  1012. echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
  1013. if test "$am_cv_prog_cc_stdc" != no; then
  1014.   echo "$ac_t""yes" 1>&6
  1015.   cat >> confdefs.h <<\EOF
  1016. #define PROTOTYPES 1
  1017. EOF
  1018.  
  1019.   U= ANSI2KNR=
  1020. else
  1021.   echo "$ac_t""no" 1>&6
  1022.   U=_ ANSI2KNR=./ansi2knr
  1023.   # Ensure some checks needed by ansi2knr itself.
  1024.   echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1025. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1026.   echo $ac_n "(cached) $ac_c" 1>&6
  1027. else
  1028.   cat > conftest.$ac_ext <<EOF
  1029. #line 1030 "configure"
  1030. #include "confdefs.h"
  1031. #include <stdlib.h>
  1032. #include <stdarg.h>
  1033. #include <string.h>
  1034. #include <float.h>
  1035. EOF
  1036. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1037. { (eval echo configure:1038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1038. ac_err=`grep -v '^ *+' conftest.out`
  1039. if test -z "$ac_err"; then
  1040.   rm -rf conftest*
  1041.   ac_cv_header_stdc=yes
  1042. else
  1043.   echo "$ac_err" >&5
  1044.   rm -rf conftest*
  1045.   ac_cv_header_stdc=no
  1046. fi
  1047. rm -f conftest*
  1048.  
  1049. if test $ac_cv_header_stdc = yes; then
  1050.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1051. cat > conftest.$ac_ext <<EOF
  1052. #line 1053 "configure"
  1053. #include "confdefs.h"
  1054. #include <string.h>
  1055. EOF
  1056. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1057.   egrep "memchr" >/dev/null 2>&1; then
  1058.   :
  1059. else
  1060.   rm -rf conftest*
  1061.   ac_cv_header_stdc=no
  1062. fi
  1063. rm -f conftest*
  1064.  
  1065. fi
  1066.  
  1067. if test $ac_cv_header_stdc = yes; then
  1068.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1069. cat > conftest.$ac_ext <<EOF
  1070. #line 1071 "configure"
  1071. #include "confdefs.h"
  1072. #include <stdlib.h>
  1073. EOF
  1074. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1075.   egrep "free" >/dev/null 2>&1; then
  1076.   :
  1077. else
  1078.   rm -rf conftest*
  1079.   ac_cv_header_stdc=no
  1080. fi
  1081. rm -f conftest*
  1082.  
  1083. fi
  1084.  
  1085. if test $ac_cv_header_stdc = yes; then
  1086.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1087. if test "$cross_compiling" = yes; then
  1088.   :
  1089. else
  1090. cat > conftest.$ac_ext <<EOF
  1091. #line 1092 "configure"
  1092. #include "confdefs.h"
  1093. #include <ctype.h>
  1094. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1095. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1096. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1097. int main () { int i; for (i = 0; i < 256; i++)
  1098. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1099. exit (0); }
  1100.  
  1101. EOF
  1102. { (eval echo configure:1103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1103. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1104.   :
  1105. else
  1106.   ac_cv_header_stdc=no
  1107. fi
  1108. fi
  1109. rm -fr conftest*
  1110. fi
  1111. fi
  1112.  
  1113. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1114. if test $ac_cv_header_stdc = yes; then
  1115.   cat >> confdefs.h <<\EOF
  1116. #define STDC_HEADERS 1
  1117. EOF
  1118.  
  1119. fi
  1120.  
  1121.   for ac_hdr in string.h
  1122. do
  1123. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1124. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1125. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1126.   echo $ac_n "(cached) $ac_c" 1>&6
  1127. else
  1128.   cat > conftest.$ac_ext <<EOF
  1129. #line 1130 "configure"
  1130. #include "confdefs.h"
  1131. #include <$ac_hdr>
  1132. EOF
  1133. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1134. { (eval echo configure:1135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1135. ac_err=`grep -v '^ *+' conftest.out`
  1136. if test -z "$ac_err"; then
  1137.   rm -rf conftest*
  1138.   eval "ac_cv_header_$ac_safe=yes"
  1139. else
  1140.   echo "$ac_err" >&5
  1141.   rm -rf conftest*
  1142.   eval "ac_cv_header_$ac_safe=no"
  1143. fi
  1144. rm -f conftest*
  1145. fi
  1146. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1147.   echo "$ac_t""yes" 1>&6
  1148.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1149.   cat >> confdefs.h <<EOF
  1150. #define $ac_tr_hdr 1
  1151. EOF
  1152.  
  1153. else
  1154.   echo "$ac_t""no" 1>&6
  1155. fi
  1156. done
  1157.  
  1158. fi
  1159.  
  1160.  
  1161. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1162. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1163.   echo $ac_n "(cached) $ac_c" 1>&6
  1164. else
  1165.   cat > conftest.$ac_ext <<EOF
  1166. #line 1167 "configure"
  1167. #include "confdefs.h"
  1168.  
  1169. int main() { return 0; }
  1170. int t() {
  1171.  
  1172. /* Ultrix mips cc rejects this.  */
  1173. typedef int charset[2]; const charset x;
  1174. /* SunOS 4.1.1 cc rejects this.  */
  1175. char const *const *ccp;
  1176. char **p;
  1177. /* NEC SVR4.0.2 mips cc rejects this.  */
  1178. struct point {int x, y;};
  1179. static struct point const zero = {0,0};
  1180. /* AIX XL C 1.02.0.0 rejects this.
  1181.    It does not let you subtract one const X* pointer from another in an arm
  1182.    of an if-expression whose if-part is not a constant expression */
  1183. const char *g = "string";
  1184. ccp = &g + (g ? g-g : 0);
  1185. /* HPUX 7.0 cc rejects these. */
  1186. ++ccp;
  1187. p = (char**) ccp;
  1188. ccp = (char const *const *) p;
  1189. { /* SCO 3.2v4 cc rejects this.  */
  1190.   char *t;
  1191.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  1192.  
  1193.   *t++ = 0;
  1194. }
  1195. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  1196.   int x[] = {25, 17};
  1197.   const int *foo = &x[0];
  1198.   ++foo;
  1199. }
  1200. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1201.   typedef const int *iptr;
  1202.   iptr p = 0;
  1203.   ++p;
  1204. }
  1205. { /* AIX XL C 1.02.0.0 rejects this saying
  1206.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1207.   struct s { int j; const int *ap[3]; };
  1208.   struct s *b; b->j = 5;
  1209. }
  1210. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1211.   const int foo = 10;
  1212. }
  1213.  
  1214. ; return 0; }
  1215. EOF
  1216. if { (eval echo configure:1217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1217.   rm -rf conftest*
  1218.   ac_cv_c_const=yes
  1219. else
  1220.   rm -rf conftest*
  1221.   ac_cv_c_const=no
  1222. fi
  1223. rm -f conftest*
  1224.  
  1225. fi
  1226.  
  1227. echo "$ac_t""$ac_cv_c_const" 1>&6
  1228. if test $ac_cv_c_const = no; then
  1229.   cat >> confdefs.h <<\EOF
  1230. #define const 
  1231. EOF
  1232.  
  1233. fi
  1234.  
  1235. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  1236. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  1237.   echo $ac_n "(cached) $ac_c" 1>&6
  1238. else
  1239.   cat > conftest.$ac_ext <<EOF
  1240. #line 1241 "configure"
  1241. #include "confdefs.h"
  1242. #include <sys/types.h>
  1243. #if STDC_HEADERS
  1244. #include <stdlib.h>
  1245. #endif
  1246. EOF
  1247. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1248.   egrep "size_t" >/dev/null 2>&1; then
  1249.   rm -rf conftest*
  1250.   ac_cv_type_size_t=yes
  1251. else
  1252.   rm -rf conftest*
  1253.   ac_cv_type_size_t=no
  1254. fi
  1255. rm -f conftest*
  1256.  
  1257. fi
  1258. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  1259. if test $ac_cv_type_size_t = no; then
  1260.   cat >> confdefs.h <<\EOF
  1261. #define size_t unsigned
  1262. EOF
  1263.  
  1264. fi
  1265.  
  1266.  
  1267. for ac_hdr in string.h unistd.h sys/time.h utime.h sys/utime.h sys/select.h
  1268. do
  1269. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1270. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1271. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1272.   echo $ac_n "(cached) $ac_c" 1>&6
  1273. else
  1274.   cat > conftest.$ac_ext <<EOF
  1275. #line 1276 "configure"
  1276. #include "confdefs.h"
  1277. #include <$ac_hdr>
  1278. EOF
  1279. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1280. { (eval echo configure:1281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1281. ac_err=`grep -v '^ *+' conftest.out`
  1282. if test -z "$ac_err"; then
  1283.   rm -rf conftest*
  1284.   eval "ac_cv_header_$ac_safe=yes"
  1285. else
  1286.   echo "$ac_err" >&5
  1287.   rm -rf conftest*
  1288.   eval "ac_cv_header_$ac_safe=no"
  1289. fi
  1290. rm -f conftest*
  1291. fi
  1292. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1293.   echo "$ac_t""yes" 1>&6
  1294.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1295.   cat >> confdefs.h <<EOF
  1296. #define $ac_tr_hdr 1
  1297. EOF
  1298.  
  1299. else
  1300.   echo "$ac_t""no" 1>&6
  1301. fi
  1302. done
  1303.  
  1304. for ac_hdr in sys/utsname.h sys/systeminfo.h pwd.h signal.h
  1305. do
  1306. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1307. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1308. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1309.   echo $ac_n "(cached) $ac_c" 1>&6
  1310. else
  1311.   cat > conftest.$ac_ext <<EOF
  1312. #line 1313 "configure"
  1313. #include "confdefs.h"
  1314. #include <$ac_hdr>
  1315. EOF
  1316. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1317. { (eval echo configure:1318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1318. ac_err=`grep -v '^ *+' conftest.out`
  1319. if test -z "$ac_err"; then
  1320.   rm -rf conftest*
  1321.   eval "ac_cv_header_$ac_safe=yes"
  1322. else
  1323.   echo "$ac_err" >&5
  1324.   rm -rf conftest*
  1325.   eval "ac_cv_header_$ac_safe=no"
  1326. fi
  1327. rm -f conftest*
  1328. fi
  1329. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1330.   echo "$ac_t""yes" 1>&6
  1331.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1332.   cat >> confdefs.h <<EOF
  1333. #define $ac_tr_hdr 1
  1334. EOF
  1335.  
  1336. else
  1337.   echo "$ac_t""no" 1>&6
  1338. fi
  1339. done
  1340.  
  1341. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  1342. if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  1343.   echo $ac_n "(cached) $ac_c" 1>&6
  1344. else
  1345.   cat > conftest.$ac_ext <<EOF
  1346. #line 1347 "configure"
  1347. #include "confdefs.h"
  1348. #include <sys/types.h>
  1349. #include <sys/time.h>
  1350. #include <time.h>
  1351. int main() { return 0; }
  1352. int t() {
  1353. struct tm *tp;
  1354. ; return 0; }
  1355. EOF
  1356. if { (eval echo configure:1357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1357.   rm -rf conftest*
  1358.   ac_cv_header_time=yes
  1359. else
  1360.   rm -rf conftest*
  1361.   ac_cv_header_time=no
  1362. fi
  1363. rm -f conftest*
  1364.  
  1365. fi
  1366.  
  1367. echo "$ac_t""$ac_cv_header_time" 1>&6
  1368. if test $ac_cv_header_time = yes; then
  1369.   cat >> confdefs.h <<\EOF
  1370. #define TIME_WITH_SYS_TIME 1
  1371. EOF
  1372.  
  1373. fi
  1374.  
  1375.  
  1376. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  1377. if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  1378.   echo $ac_n "(cached) $ac_c" 1>&6
  1379. else
  1380.   cat > conftest.$ac_ext <<EOF
  1381. #line 1382 "configure"
  1382. #include "confdefs.h"
  1383. #include <sys/types.h>
  1384. #include <signal.h>
  1385. #ifdef signal
  1386. #undef signal
  1387. #endif
  1388. #ifdef __cplusplus
  1389. extern "C" void (*signal (int, void (*)(int)))(int);
  1390. #else
  1391. void (*signal ()) ();
  1392. #endif
  1393.  
  1394. int main() { return 0; }
  1395. int t() {
  1396. int i;
  1397. ; return 0; }
  1398. EOF
  1399. if { (eval echo configure:1400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1400.   rm -rf conftest*
  1401.   ac_cv_type_signal=void
  1402. else
  1403.   rm -rf conftest*
  1404.   ac_cv_type_signal=int
  1405. fi
  1406. rm -f conftest*
  1407.  
  1408. fi
  1409.  
  1410. echo "$ac_t""$ac_cv_type_signal" 1>&6
  1411. cat >> confdefs.h <<EOF
  1412. #define RETSIGTYPE $ac_cv_type_signal
  1413. EOF
  1414.  
  1415.  
  1416.  
  1417. echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
  1418. if test x"$ac_cv_header_utime_h" = xyes; then
  1419.   cat > conftest.$ac_ext <<EOF
  1420. #line 1421 "configure"
  1421. #include "confdefs.h"
  1422. #include <utime.h>
  1423. EOF
  1424. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1425.   egrep "struct +utimbuf" >/dev/null 2>&1; then
  1426.   rm -rf conftest*
  1427.   cat >> confdefs.h <<\EOF
  1428. #define HAVE_STRUCT_UTIMBUF 1
  1429. EOF
  1430.  
  1431.       echo "$ac_t""yes" 1>&6
  1432. else
  1433.   rm -rf conftest*
  1434.   echo "$ac_t""no" 1>&6
  1435. fi
  1436. rm -f conftest*
  1437.  
  1438. else
  1439.   echo "$ac_t""no" 1>&6
  1440. fi
  1441.  
  1442. for ac_func in strdup strstr strcasecmp strncasecmp
  1443. do
  1444. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1445. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1446.   echo $ac_n "(cached) $ac_c" 1>&6
  1447. else
  1448.   cat > conftest.$ac_ext <<EOF
  1449. #line 1450 "configure"
  1450. #include "confdefs.h"
  1451. /* System header to define __stub macros and hopefully few prototypes,
  1452.     which can conflict with char $ac_func(); below.  */
  1453. #include <assert.h>
  1454. /* Override any gcc2 internal prototype to avoid an error.  */
  1455. /* We use char because int might match the return type of a gcc2
  1456.     builtin and then its argument prototype would still apply.  */
  1457. char $ac_func();
  1458.  
  1459. int main() { return 0; }
  1460. int t() {
  1461.  
  1462. /* The GNU C library defines this for functions which it implements
  1463.     to always fail with ENOSYS.  Some functions are actually named
  1464.     something starting with __ and the normal name is an alias.  */
  1465. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1466. choke me
  1467. #else
  1468. $ac_func();
  1469. #endif
  1470.  
  1471. ; return 0; }
  1472. EOF
  1473. if { (eval echo configure:1474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1474.   rm -rf conftest*
  1475.   eval "ac_cv_func_$ac_func=yes"
  1476. else
  1477.   rm -rf conftest*
  1478.   eval "ac_cv_func_$ac_func=no"
  1479. fi
  1480. rm -f conftest*
  1481.  
  1482. fi
  1483. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1484.   echo "$ac_t""yes" 1>&6
  1485.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1486.   cat >> confdefs.h <<EOF
  1487. #define $ac_tr_func 1
  1488. EOF
  1489.  
  1490. else
  1491.   echo "$ac_t""no" 1>&6
  1492. fi
  1493. done
  1494.  
  1495. for ac_func in gettimeofday mktime strptime
  1496. do
  1497. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1498. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1499.   echo $ac_n "(cached) $ac_c" 1>&6
  1500. else
  1501.   cat > conftest.$ac_ext <<EOF
  1502. #line 1503 "configure"
  1503. #include "confdefs.h"
  1504. /* System header to define __stub macros and hopefully few prototypes,
  1505.     which can conflict with char $ac_func(); below.  */
  1506. #include <assert.h>
  1507. /* Override any gcc2 internal prototype to avoid an error.  */
  1508. /* We use char because int might match the return type of a gcc2
  1509.     builtin and then its argument prototype would still apply.  */
  1510. char $ac_func();
  1511.  
  1512. int main() { return 0; }
  1513. int t() {
  1514.  
  1515. /* The GNU C library defines this for functions which it implements
  1516.     to always fail with ENOSYS.  Some functions are actually named
  1517.     something starting with __ and the normal name is an alias.  */
  1518. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1519. choke me
  1520. #else
  1521. $ac_func();
  1522. #endif
  1523.  
  1524. ; return 0; }
  1525. EOF
  1526. if { (eval echo configure:1527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1527.   rm -rf conftest*
  1528.   eval "ac_cv_func_$ac_func=yes"
  1529. else
  1530.   rm -rf conftest*
  1531.   eval "ac_cv_func_$ac_func=no"
  1532. fi
  1533. rm -f conftest*
  1534.  
  1535. fi
  1536. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1537.   echo "$ac_t""yes" 1>&6
  1538.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1539.   cat >> confdefs.h <<EOF
  1540. #define $ac_tr_func 1
  1541. EOF
  1542.  
  1543. else
  1544.   echo "$ac_t""no" 1>&6
  1545. fi
  1546. done
  1547.  
  1548. for ac_func in strerror select signal symlink
  1549. do
  1550. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1551. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1552.   echo $ac_n "(cached) $ac_c" 1>&6
  1553. else
  1554.   cat > conftest.$ac_ext <<EOF
  1555. #line 1556 "configure"
  1556. #include "confdefs.h"
  1557. /* System header to define __stub macros and hopefully few prototypes,
  1558.     which can conflict with char $ac_func(); below.  */
  1559. #include <assert.h>
  1560. /* Override any gcc2 internal prototype to avoid an error.  */
  1561. /* We use char because int might match the return type of a gcc2
  1562.     builtin and then its argument prototype would still apply.  */
  1563. char $ac_func();
  1564.  
  1565. int main() { return 0; }
  1566. int t() {
  1567.  
  1568. /* The GNU C library defines this for functions which it implements
  1569.     to always fail with ENOSYS.  Some functions are actually named
  1570.     something starting with __ and the normal name is an alias.  */
  1571. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1572. choke me
  1573. #else
  1574. $ac_func();
  1575. #endif
  1576.  
  1577. ; return 0; }
  1578. EOF
  1579. if { (eval echo configure:1580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1580.   rm -rf conftest*
  1581.   eval "ac_cv_func_$ac_func=yes"
  1582. else
  1583.   rm -rf conftest*
  1584.   eval "ac_cv_func_$ac_func=no"
  1585. fi
  1586. rm -f conftest*
  1587.  
  1588. fi
  1589. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1590.   echo "$ac_t""yes" 1>&6
  1591.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1592.   cat >> confdefs.h <<EOF
  1593. #define $ac_tr_func 1
  1594. EOF
  1595.  
  1596. else
  1597.   echo "$ac_t""no" 1>&6
  1598. fi
  1599. done
  1600.  
  1601. for ac_func in sysinfo gethostname getdomainname
  1602. do
  1603. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1604. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1605.   echo $ac_n "(cached) $ac_c" 1>&6
  1606. else
  1607.   cat > conftest.$ac_ext <<EOF
  1608. #line 1609 "configure"
  1609. #include "confdefs.h"
  1610. /* System header to define __stub macros and hopefully few prototypes,
  1611.     which can conflict with char $ac_func(); below.  */
  1612. #include <assert.h>
  1613. /* Override any gcc2 internal prototype to avoid an error.  */
  1614. /* We use char because int might match the return type of a gcc2
  1615.     builtin and then its argument prototype would still apply.  */
  1616. char $ac_func();
  1617.  
  1618. int main() { return 0; }
  1619. int t() {
  1620.  
  1621. /* The GNU C library defines this for functions which it implements
  1622.     to always fail with ENOSYS.  Some functions are actually named
  1623.     something starting with __ and the normal name is an alias.  */
  1624. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1625. choke me
  1626. #else
  1627. $ac_func();
  1628. #endif
  1629.  
  1630. ; return 0; }
  1631. EOF
  1632. if { (eval echo configure:1633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1633.   rm -rf conftest*
  1634.   eval "ac_cv_func_$ac_func=yes"
  1635. else
  1636.   rm -rf conftest*
  1637.   eval "ac_cv_func_$ac_func=no"
  1638. fi
  1639. rm -f conftest*
  1640.  
  1641. fi
  1642. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1643.   echo "$ac_t""yes" 1>&6
  1644.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1645.   cat >> confdefs.h <<EOF
  1646. #define $ac_tr_func 1
  1647. EOF
  1648.  
  1649. else
  1650.   echo "$ac_t""no" 1>&6
  1651. fi
  1652. done
  1653.  
  1654. if test x"$ac_cv_func_getdomainname" = xno; then
  1655.   echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
  1656. ac_lib_var=`echo nsl'_'getdomainname | tr './+\055' '__p_'`
  1657. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1658.   echo $ac_n "(cached) $ac_c" 1>&6
  1659. else
  1660.   ac_save_LIBS="$LIBS"
  1661. LIBS="-lnsl  $LIBS"
  1662. cat > conftest.$ac_ext <<EOF
  1663. #line 1664 "configure"
  1664. #include "confdefs.h"
  1665. /* Override any gcc2 internal prototype to avoid an error.  */
  1666. /* We use char because int might match the return type of a gcc2
  1667.     builtin and then its argument prototype would still apply.  */
  1668. char getdomainname();
  1669.  
  1670. int main() { return 0; }
  1671. int t() {
  1672. getdomainname()
  1673. ; return 0; }
  1674. EOF
  1675. if { (eval echo configure:1676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1676.   rm -rf conftest*
  1677.   eval "ac_cv_lib_$ac_lib_var=yes"
  1678. else
  1679.   rm -rf conftest*
  1680.   eval "ac_cv_lib_$ac_lib_var=no"
  1681. fi
  1682. rm -f conftest*
  1683. LIBS="$ac_save_LIBS"
  1684.  
  1685. fi
  1686. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1687.   echo "$ac_t""yes" 1>&6
  1688.     ac_tr_lib=HAVE_LIB`echo nsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1689.   cat >> confdefs.h <<EOF
  1690. #define $ac_tr_lib 1
  1691. EOF
  1692.  
  1693.   LIBS="-lnsl $LIBS"
  1694.  
  1695. else
  1696.   echo "$ac_t""no" 1>&6
  1697. fi
  1698.  
  1699. fi
  1700.  
  1701.  
  1702. echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
  1703. ac_lib_var=`echo socket'_'socket | tr './+\055' '__p_'`
  1704. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1705.   echo $ac_n "(cached) $ac_c" 1>&6
  1706. else
  1707.   ac_save_LIBS="$LIBS"
  1708. LIBS="-lsocket  $LIBS"
  1709. cat > conftest.$ac_ext <<EOF
  1710. #line 1711 "configure"
  1711. #include "confdefs.h"
  1712. /* Override any gcc2 internal prototype to avoid an error.  */
  1713. /* We use char because int might match the return type of a gcc2
  1714.     builtin and then its argument prototype would still apply.  */
  1715. char socket();
  1716.  
  1717. int main() { return 0; }
  1718. int t() {
  1719. socket()
  1720. ; return 0; }
  1721. EOF
  1722. if { (eval echo configure:1723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1723.   rm -rf conftest*
  1724.   eval "ac_cv_lib_$ac_lib_var=yes"
  1725. else
  1726.   rm -rf conftest*
  1727.   eval "ac_cv_lib_$ac_lib_var=no"
  1728. fi
  1729. rm -f conftest*
  1730. LIBS="$ac_save_LIBS"
  1731.  
  1732. fi
  1733. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1734.   echo "$ac_t""yes" 1>&6
  1735.     ac_tr_lib=HAVE_LIB`echo socket | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1736.   cat >> confdefs.h <<EOF
  1737. #define $ac_tr_lib 1
  1738. EOF
  1739.  
  1740.   LIBS="-lsocket $LIBS"
  1741.  
  1742. else
  1743.   echo "$ac_t""no" 1>&6
  1744. fi
  1745.  
  1746.  
  1747. if test "x${with_socks}" = xyes
  1748. then
  1749.   echo $ac_n "checking for -lresolv""... $ac_c" 1>&6
  1750. ac_lib_var=`echo resolv'_'main | tr './+\055' '__p_'`
  1751. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1752.   echo $ac_n "(cached) $ac_c" 1>&6
  1753. else
  1754.   ac_save_LIBS="$LIBS"
  1755. LIBS="-lresolv  $LIBS"
  1756. cat > conftest.$ac_ext <<EOF
  1757. #line 1758 "configure"
  1758. #include "confdefs.h"
  1759.  
  1760. int main() { return 0; }
  1761. int t() {
  1762. main()
  1763. ; return 0; }
  1764. EOF
  1765. if { (eval echo configure:1766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1766.   rm -rf conftest*
  1767.   eval "ac_cv_lib_$ac_lib_var=yes"
  1768. else
  1769.   rm -rf conftest*
  1770.   eval "ac_cv_lib_$ac_lib_var=no"
  1771. fi
  1772. rm -f conftest*
  1773. LIBS="$ac_save_LIBS"
  1774.  
  1775. fi
  1776. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1777.   echo "$ac_t""yes" 1>&6
  1778.     ac_tr_lib=HAVE_LIB`echo resolv | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1779.   cat >> confdefs.h <<EOF
  1780. #define $ac_tr_lib 1
  1781. EOF
  1782.  
  1783.   LIBS="-lresolv $LIBS"
  1784.  
  1785. else
  1786.   echo "$ac_t""no" 1>&6
  1787. fi
  1788.  
  1789.   echo $ac_n "checking for -lsocks""... $ac_c" 1>&6
  1790. ac_lib_var=`echo socks'_'Rconnect | tr './+\055' '__p_'`
  1791. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1792.   echo $ac_n "(cached) $ac_c" 1>&6
  1793. else
  1794.   ac_save_LIBS="$LIBS"
  1795. LIBS="-lsocks  $LIBS"
  1796. cat > conftest.$ac_ext <<EOF
  1797. #line 1798 "configure"
  1798. #include "confdefs.h"
  1799. /* Override any gcc2 internal prototype to avoid an error.  */
  1800. /* We use char because int might match the return type of a gcc2
  1801.     builtin and then its argument prototype would still apply.  */
  1802. char Rconnect();
  1803.  
  1804. int main() { return 0; }
  1805. int t() {
  1806. Rconnect()
  1807. ; return 0; }
  1808. EOF
  1809. if { (eval echo configure:1810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1810.   rm -rf conftest*
  1811.   eval "ac_cv_lib_$ac_lib_var=yes"
  1812. else
  1813.   rm -rf conftest*
  1814.   eval "ac_cv_lib_$ac_lib_var=no"
  1815. fi
  1816. rm -f conftest*
  1817. LIBS="$ac_save_LIBS"
  1818.  
  1819. fi
  1820. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1821.   echo "$ac_t""yes" 1>&6
  1822.     ac_tr_lib=HAVE_LIB`echo socks | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1823.   cat >> confdefs.h <<EOF
  1824. #define $ac_tr_lib 1
  1825. EOF
  1826.  
  1827.   LIBS="-lsocks $LIBS"
  1828.  
  1829. else
  1830.   echo "$ac_t""no" 1>&6
  1831. fi
  1832.  
  1833. fi
  1834.  
  1835. trap '' 1 2 15
  1836. cat > confcache <<\EOF
  1837. # This file is a shell script that caches the results of configure
  1838. # tests run on this system so they can be shared between configure
  1839. # scripts and configure runs.  It is not useful on other systems.
  1840. # If it contains results you don't want to keep, you may remove or edit it.
  1841. #
  1842. # By default, configure uses ./config.cache as the cache file,
  1843. # creating it if it does not exist already.  You can give configure
  1844. # the --cache-file=FILE option to use a different cache file; that is
  1845. # what configure does when it calls configure scripts in
  1846. # subdirectories, so they share the cache.
  1847. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1848. # config.status only pays attention to the cache file if you give it the
  1849. # --recheck option to rerun configure.
  1850. #
  1851. EOF
  1852. # Ultrix sh set writes to stderr and can't be redirected directly,
  1853. # and sets the high bit in the cache file unless we assign to the vars.
  1854. (set) 2>&1 |
  1855.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  1856.   >> confcache
  1857. if cmp -s $cache_file confcache; then
  1858.   :
  1859. else
  1860.   if test -w $cache_file; then
  1861.     echo "updating cache $cache_file"
  1862.     cat confcache > $cache_file
  1863.   else
  1864.     echo "not updating unwritable cache $cache_file"
  1865.   fi
  1866. fi
  1867. rm -f confcache
  1868.  
  1869. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1870.  
  1871. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1872. # Let make expand exec_prefix.
  1873. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1874.  
  1875. # Any assignment to VPATH causes Sun make to only execute
  1876. # the first set of double-colon rules, so remove it if not needed.
  1877. # If there is a colon in the path, we need to keep it.
  1878. if test "x$srcdir" = x.; then
  1879.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1880. fi
  1881.  
  1882. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1883.  
  1884. DEFS=-DHAVE_CONFIG_H
  1885.  
  1886. # Without the "./", some shells look in PATH for config.status.
  1887. : ${CONFIG_STATUS=./config.status}
  1888.  
  1889. echo creating $CONFIG_STATUS
  1890. rm -f $CONFIG_STATUS
  1891. cat > $CONFIG_STATUS <<EOF
  1892. #! /bin/sh
  1893. # Generated automatically by configure.
  1894. # Run this file to recreate the current configuration.
  1895. # This directory was configured as follows,
  1896. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1897. #
  1898. # $0 $ac_configure_args
  1899. #
  1900. # Compiler output produced by configure, useful for debugging
  1901. # configure, is in ./config.log if it exists.
  1902.  
  1903. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1904. for ac_option
  1905. do
  1906.   case "\$ac_option" in
  1907.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1908.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1909.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1910.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1911.     echo "$CONFIG_STATUS generated by autoconf version 2.10"
  1912.     exit 0 ;;
  1913.   -help | --help | --hel | --he | --h)
  1914.     echo "\$ac_cs_usage"; exit 0 ;;
  1915.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1916.   esac
  1917. done
  1918.  
  1919. ac_given_srcdir=$srcdir
  1920. ac_given_INSTALL="$INSTALL"
  1921.  
  1922. trap 'rm -fr `echo "Makefile src/Makefile doc/Makefile util/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1923. EOF
  1924. cat >> $CONFIG_STATUS <<EOF
  1925.  
  1926. # Protect against being on the right side of a sed subst in config.status.
  1927. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1928.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1929. $ac_vpsub
  1930. $extrasub
  1931. s%@CFLAGS@%$CFLAGS%g
  1932. s%@CPPFLAGS@%$CPPFLAGS%g
  1933. s%@CXXFLAGS@%$CXXFLAGS%g
  1934. s%@DEFS@%$DEFS%g
  1935. s%@LDFLAGS@%$LDFLAGS%g
  1936. s%@LIBS@%$LIBS%g
  1937. s%@exec_prefix@%$exec_prefix%g
  1938. s%@prefix@%$prefix%g
  1939. s%@program_transform_name@%$program_transform_name%g
  1940. s%@bindir@%$bindir%g
  1941. s%@sbindir@%$sbindir%g
  1942. s%@libexecdir@%$libexecdir%g
  1943. s%@datadir@%$datadir%g
  1944. s%@sysconfdir@%$sysconfdir%g
  1945. s%@sharedstatedir@%$sharedstatedir%g
  1946. s%@localstatedir@%$localstatedir%g
  1947. s%@libdir@%$libdir%g
  1948. s%@includedir@%$includedir%g
  1949. s%@oldincludedir@%$oldincludedir%g
  1950. s%@infodir@%$infodir%g
  1951. s%@mandir@%$mandir%g
  1952. s%@VERSION@%$VERSION%g
  1953. s%@host@%$host%g
  1954. s%@host_alias@%$host_alias%g
  1955. s%@host_cpu@%$host_cpu%g
  1956. s%@host_vendor@%$host_vendor%g
  1957. s%@host_os@%$host_os%g
  1958. s%@SET_MAKE@%$SET_MAKE%g
  1959. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1960. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1961. s%@CC@%$CC%g
  1962. s%@MAKEINFO@%$MAKEINFO%g
  1963. s%@CPP@%$CPP%g
  1964. s%@U@%$U%g
  1965. s%@ANSI2KNR@%$ANSI2KNR%g
  1966.  
  1967. CEOF
  1968. EOF
  1969. cat >> $CONFIG_STATUS <<EOF
  1970.  
  1971. CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile doc/Makefile util/Makefile"}
  1972. EOF
  1973. cat >> $CONFIG_STATUS <<\EOF
  1974. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1975.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  1976.   case "$ac_file" in
  1977.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  1978.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1979.   *) ac_file_in="${ac_file}.in" ;;
  1980.   esac
  1981.  
  1982.   # Adjust relative srcdir, etc. for subdirectories.
  1983.  
  1984.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1985.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1986.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1987.     # The file is in a subdirectory.
  1988.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1989.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1990.     # A "../" for each directory in $ac_dir_suffix.
  1991.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1992.   else
  1993.     ac_dir_suffix= ac_dots=
  1994.   fi
  1995.  
  1996.   case "$ac_given_srcdir" in
  1997.   .)  srcdir=.
  1998.       if test -z "$ac_dots"; then top_srcdir=.
  1999.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2000.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2001.   *) # Relative path.
  2002.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2003.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2004.   esac
  2005.  
  2006.   case "$ac_given_INSTALL" in
  2007.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2008.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2009.   esac
  2010.   echo creating "$ac_file"
  2011.   rm -f "$ac_file"
  2012.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2013.   case "$ac_file" in
  2014.   *Makefile*) ac_comsub="1i\\
  2015. # $configure_input" ;;
  2016.   *) ac_comsub= ;;
  2017.   esac
  2018.   sed -e "$ac_comsub
  2019. s%@configure_input@%$configure_input%g
  2020. s%@srcdir@%$srcdir%g
  2021. s%@top_srcdir@%$top_srcdir%g
  2022. s%@INSTALL@%$INSTALL%g
  2023. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  2024. fi; done
  2025. rm -f conftest.subs
  2026.  
  2027. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  2028. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  2029. #
  2030. # ac_d sets the value in "#define NAME VALUE" lines.
  2031. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  2032. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  2033. ac_dC='\3'
  2034. ac_dD='%g'
  2035. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  2036. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2037. ac_uB='\([     ]\)%\1#\2define\3'
  2038. ac_uC=' '
  2039. ac_uD='\4%g'
  2040. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2041. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2042. ac_eB='$%\1#\2define\3'
  2043. ac_eC=' '
  2044. ac_eD='%g'
  2045.  
  2046. CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  2047. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  2048.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  2049.   case "$ac_file" in
  2050.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  2051.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2052.   *) ac_file_in="${ac_file}.in" ;;
  2053.   esac
  2054.  
  2055.   echo creating $ac_file
  2056.  
  2057.   rm -f conftest.frag conftest.in conftest.out
  2058.   cp $ac_given_srcdir/$ac_file_in conftest.in
  2059.  
  2060. EOF
  2061.  
  2062. # Transform confdefs.h into a sed script conftest.vals that substitutes
  2063. # the proper values into config.h.in to produce config.h.  And first:
  2064. # Protect against being on the right side of a sed subst in config.status.
  2065. # Protect against being in an unquoted here document in config.status.
  2066. rm -f conftest.vals
  2067. cat > conftest.hdr <<\EOF
  2068. s/[\\&%]/\\&/g
  2069. s%[\\$`]%\\&%g
  2070. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  2071. s%ac_d%ac_u%gp
  2072. s%ac_u%ac_e%gp
  2073. EOF
  2074. sed -n -f conftest.hdr confdefs.h > conftest.vals
  2075. rm -f conftest.hdr
  2076.  
  2077. # This sed command replaces #undef with comments.  This is necessary, for
  2078. # example, in the case of _POSIX_SOURCE, which is predefined and required
  2079. # on some systems where configure will not decide to define it.
  2080. cat >> conftest.vals <<\EOF
  2081. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  2082. EOF
  2083.  
  2084. # Break up conftest.vals because some shells have a limit on
  2085. # the size of here documents, and old seds have small limits too.
  2086. # Maximum number of lines to put in a single here document.
  2087. ac_max_here_lines=12
  2088.  
  2089. rm -f conftest.tail
  2090. while :
  2091. do
  2092.   ac_lines=`grep -c . conftest.vals`
  2093.   # grep -c gives empty output for an empty file on some AIX systems.
  2094.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2095.   # Write a limited-size here document to conftest.frag.
  2096.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  2097.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  2098.   echo 'CEOF
  2099.   sed -f conftest.frag conftest.in > conftest.out
  2100.   rm -f conftest.in
  2101.   mv conftest.out conftest.in
  2102. ' >> $CONFIG_STATUS
  2103.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  2104.   rm -f conftest.vals
  2105.   mv conftest.tail conftest.vals
  2106. done
  2107. rm -f conftest.vals
  2108.  
  2109. cat >> $CONFIG_STATUS <<\EOF
  2110.   rm -f conftest.frag conftest.h
  2111.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  2112.   cat conftest.in >> conftest.h
  2113.   rm -f conftest.in
  2114.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  2115.     echo "$ac_file is unchanged"
  2116.     rm -f conftest.h
  2117.   else
  2118.     # Remove last slash and all that follows it.  Not all systems have dirname.
  2119.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2120.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2121.       # The file is in a subdirectory.
  2122.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  2123.     fi
  2124.     rm -f $ac_file
  2125.     mv conftest.h $ac_file
  2126.   fi
  2127. fi; done
  2128.  
  2129.  
  2130. echo timestamp > stamp-h
  2131. exit 0
  2132. EOF
  2133. chmod +x $CONFIG_STATUS
  2134. rm -fr confdefs* $ac_clean_files
  2135. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2136.  
  2137.