home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / unixtex-6.1b-src.tgz / tar.out / contrib / unixtex / dvipsk / configure < prev    next >
Text File  |  1996-10-01  |  55KB  |  1,792 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.  
  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. guidedir='${prefix}/guide'
  48. psdir='${prefix}/ps'
  49. dvidir='${prefix}/dvi'
  50. mandir='${prefix}/man'
  51.  
  52. # Initialize some other variables.
  53. subdirs=
  54. MFLAGS= MAKEFLAGS=
  55.  
  56. ac_prev=
  57. for ac_option
  58. do
  59.  
  60.   # If the previous option needs an argument, assign it.
  61.   if test -n "$ac_prev"; then
  62.     eval "$ac_prev=\$ac_option"
  63.     ac_prev=
  64.     continue
  65.   fi
  66.  
  67.   case "$ac_option" in
  68.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  69.   *) ac_optarg= ;;
  70.   esac
  71.  
  72.   # Accept the important Cygnus configure options, so we can diagnose typos.
  73.  
  74.   case "$ac_option" in
  75.  
  76.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  77.     ac_prev=bindir ;;
  78.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  79.     bindir="$ac_optarg" ;;
  80.  
  81.   -build | --build | --buil | --bui | --bu)
  82.     ac_prev=build ;;
  83.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  84.     build="$ac_optarg" ;;
  85.  
  86.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  87.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  88.     ac_prev=cache_file ;;
  89.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  90.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  91.     cache_file="$ac_optarg" ;;
  92.  
  93.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  94.     ac_prev=datadir ;;
  95.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  96.   | --da=*)
  97.     datadir="$ac_optarg" ;;
  98.  
  99.   -disable-* | --disable-*)
  100.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  101.     # Reject names that are not valid shell variable names.
  102.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  103.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  104.     fi
  105.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  106.     eval "enable_${ac_feature}=no" ;;
  107.  
  108.   -enable-* | --enable-*)
  109.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  110.     # Reject names that are not valid shell variable names.
  111.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  112.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  113.     fi
  114.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  115.     case "$ac_option" in
  116.       *=*) ;;
  117.       *) ac_optarg=yes ;;
  118.     esac
  119.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  120.  
  121.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  122.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  123.   | --exec | --exe | --ex)
  124.     ac_prev=exec_prefix ;;
  125.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  126.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  127.   | --exec=* | --exe=* | --ex=*)
  128.     exec_prefix="$ac_optarg" ;;
  129.  
  130.   -gas | --gas | --ga | --g)
  131.     # Obsolete; use --with-gas.
  132.     with_gas=yes ;;
  133.  
  134.   -help | --help | --hel | --he)
  135.     # Omit some internal or obsolete options to make the list less imposing.
  136.     # This message is too long to be a string in the A/UX 3.1 sh.
  137.     cat << EOF
  138. Usage: configure [options] [host]
  139. Options: [defaults in brackets after descriptions]
  140. Configuration:
  141.   --cache-file=FILE       cache test results in FILE
  142.   --help                  print this message
  143.   --no-create             do not create output files
  144.   --quiet, --silent       do not print \`checking...' messages
  145.   --version               print the version of autoconf that created configure
  146. Directory and file names:
  147.   --prefix=PREFIX         install architecture-independent files in PREFIX
  148.                           [$ac_default_prefix]
  149.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  150.                           [same as prefix]
  151.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  152.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  153.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  154.   --datadir=DIR           read-only architecture-independent data in DIR
  155.                           [PREFIX/share]
  156.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  157.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  158.                           [PREFIX/com]
  159.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  160.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  161.   --includedir=DIR        C header files in DIR [PREFIX/include]
  162.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  163.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  164.   --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  165.   --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  166.   --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  167.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  168.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  169.   --program-prefix=PREFIX prepend PREFIX to installed program names
  170.   --program-suffix=SUFFIX append SUFFIX to installed program names
  171.   --program-transform-name=PROGRAM
  172.                           run sed PROGRAM on installed program names
  173. EOF
  174.     cat << EOF
  175. Host type:
  176.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  177.   --host=HOST             configure for HOST [guessed]
  178.   --target=TARGET         configure for TARGET [TARGET=HOST]
  179. Features and packages:
  180.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  181.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  182.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  183.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  184.   --x-includes=DIR        X include files are in DIR
  185.   --x-libraries=DIR       X library files are in DIR
  186. EOF
  187.     if test -n "$ac_help"; then
  188.       echo "--enable and --with options recognized:$ac_help"
  189.     fi
  190.     exit 0 ;;
  191.  
  192.   -host | --host | --hos | --ho)
  193.     ac_prev=host ;;
  194.   -host=* | --host=* | --hos=* | --ho=*)
  195.     host="$ac_optarg" ;;
  196.  
  197.   -includedir | --includedir | --includedi | --included | --include \
  198.   | --includ | --inclu | --incl | --inc)
  199.     ac_prev=includedir ;;
  200.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  201.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  202.     includedir="$ac_optarg" ;;
  203.  
  204.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  205.     ac_prev=infodir ;;
  206.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  207.     infodir="$ac_optarg" ;;
  208.  
  209.  -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  210.    ac_prev=guidedir ;;
  211.  -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  212.  
  213.  -psdir | --psdir | --psdi | --psd | --ps)
  214.    ac_prev=psdir ;;
  215.  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  216.  
  217.  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  218.    ac_prev=dvidir ;;
  219.  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  220.  
  221.   -libdir | --libdir | --libdi | --libd)
  222.     ac_prev=libdir ;;
  223.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  224.     libdir="$ac_optarg" ;;
  225.  
  226.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  227.   | --libexe | --libex | --libe)
  228.     ac_prev=libexecdir ;;
  229.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  230.   | --libexe=* | --libex=* | --libe=*)
  231.     libexecdir="$ac_optarg" ;;
  232.  
  233.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  234.   | --localstate | --localstat | --localsta | --localst \
  235.   | --locals | --local | --loca | --loc | --lo)
  236.     ac_prev=localstatedir ;;
  237.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  238.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  239.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  240.     localstatedir="$ac_optarg" ;;
  241.  
  242.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  243.     ac_prev=mandir ;;
  244.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  245.     mandir="$ac_optarg" ;;
  246.  
  247.   -nfp | --nfp | --nf)
  248.     # Obsolete; use --without-fp.
  249.     with_fp=no ;;
  250.  
  251.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  252.   | --no-cr | --no-c)
  253.     no_create=yes ;;
  254.  
  255.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  256.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  257.     no_recursion=yes ;;
  258.  
  259.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  260.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  261.   | --oldin | --oldi | --old | --ol | --o)
  262.     ac_prev=oldincludedir ;;
  263.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  264.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  265.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  266.     oldincludedir="$ac_optarg" ;;
  267.  
  268.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  269.     ac_prev=prefix ;;
  270.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  271.     prefix="$ac_optarg" ;;
  272.  
  273.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  274.   | --program-pre | --program-pr | --program-p)
  275.     ac_prev=program_prefix ;;
  276.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  277.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  278.     program_prefix="$ac_optarg" ;;
  279.  
  280.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  281.   | --program-suf | --program-su | --program-s)
  282.     ac_prev=program_suffix ;;
  283.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  284.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  285.     program_suffix="$ac_optarg" ;;
  286.  
  287.   -program-transform-name | --program-transform-name \
  288.   | --program-transform-nam | --program-transform-na \
  289.   | --program-transform-n | --program-transform- \
  290.   | --program-transform | --program-transfor \
  291.   | --program-transfo | --program-transf \
  292.   | --program-trans | --program-tran \
  293.   | --progr-tra | --program-tr | --program-t)
  294.     ac_prev=program_transform_name ;;
  295.   -program-transform-name=* | --program-transform-name=* \
  296.   | --program-transform-nam=* | --program-transform-na=* \
  297.   | --program-transform-n=* | --program-transform-=* \
  298.   | --program-transform=* | --program-transfor=* \
  299.   | --program-transfo=* | --program-transf=* \
  300.   | --program-trans=* | --program-tran=* \
  301.   | --progr-tra=* | --program-tr=* | --program-t=*)
  302.     program_transform_name="$ac_optarg" ;;
  303.  
  304.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  305.   | -silent | --silent | --silen | --sile | --sil)
  306.     silent=yes ;;
  307.  
  308.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  309.     ac_prev=sbindir ;;
  310.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  311.   | --sbi=* | --sb=*)
  312.     sbindir="$ac_optarg" ;;
  313.  
  314.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  315.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  316.   | --sharedst | --shareds | --shared | --share | --shar \
  317.   | --sha | --sh)
  318.     ac_prev=sharedstatedir ;;
  319.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  320.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  321.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  322.   | --sha=* | --sh=*)
  323.     sharedstatedir="$ac_optarg" ;;
  324.  
  325.   -site | --site | --sit)
  326.     ac_prev=site ;;
  327.   -site=* | --site=* | --sit=*)
  328.     site="$ac_optarg" ;;
  329.  
  330.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  331.     ac_prev=srcdir ;;
  332.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  333.     srcdir="$ac_optarg" ;;
  334.  
  335.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  336.   | --syscon | --sysco | --sysc | --sys | --sy)
  337.     ac_prev=sysconfdir ;;
  338.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  339.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  340.     sysconfdir="$ac_optarg" ;;
  341.  
  342.   -target | --target | --targe | --targ | --tar | --ta | --t)
  343.     ac_prev=target ;;
  344.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  345.     target="$ac_optarg" ;;
  346.  
  347.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  348.     verbose=yes ;;
  349.  
  350.   -version | --version | --versio | --versi | --vers)
  351.     echo "configure generated by autoconf version 2.10"
  352.     exit 0 ;;
  353.  
  354.   -with-* | --with-*)
  355.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  356.     # Reject names that are not valid shell variable names.
  357.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  358.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  359.     fi
  360.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  361.     case "$ac_option" in
  362.       *=*) ;;
  363.       *) ac_optarg=yes ;;
  364.     esac
  365.     eval "with_${ac_package}='$ac_optarg'" ;;
  366.  
  367.   -without-* | --without-*)
  368.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  369.     # Reject names that are not valid shell variable names.
  370.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  371.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  372.     fi
  373.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  374.     eval "with_${ac_package}=no" ;;
  375.  
  376.   --x)
  377.     # Obsolete; use --with-x.
  378.     with_x=yes ;;
  379.  
  380.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  381.   | --x-incl | --x-inc | --x-in | --x-i)
  382.     ac_prev=x_includes ;;
  383.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  384.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  385.     x_includes="$ac_optarg" ;;
  386.  
  387.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  388.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  389.     ac_prev=x_libraries ;;
  390.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  391.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  392.     x_libraries="$ac_optarg" ;;
  393.  
  394.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  395.     ;;
  396.  
  397.   *)
  398.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  399.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  400.     fi
  401.     if test "x$nonopt" != xNONE; then
  402.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  403.     fi
  404.     nonopt="$ac_option"
  405.     ;;
  406.  
  407.   esac
  408. done
  409.  
  410. if test -n "$ac_prev"; then
  411.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  412. fi
  413.  
  414. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  415.  
  416. # File descriptor usage:
  417. # 0 standard input
  418. # 1 file creation
  419. # 2 errors and warnings
  420. # 3 some systems may open it to /dev/tty
  421. # 4 used on the Kubota Titan
  422. # 6 checking for... messages and results
  423. # 5 compiler messages saved in config.log
  424. if test "$silent" = yes; then
  425.   exec 6>/dev/null
  426. else
  427.   exec 6>&1
  428. fi
  429. exec 5>./config.log
  430.  
  431. echo "\
  432. This file contains any messages produced by compilers while
  433. running configure, to aid debugging if configure makes a mistake.
  434. " 1>&5
  435.  
  436. # Strip out --no-create and --no-recursion so they do not pile up.
  437. # Also quote any args containing shell metacharacters.
  438. ac_configure_args=
  439. for ac_arg
  440. do
  441.   case "$ac_arg" in
  442.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  443.   | --no-cr | --no-c) ;;
  444.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  445.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  446.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  447.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  448.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  449.   esac
  450. done
  451.  
  452. # NLS nuisances.
  453. # Only set LANG and LC_ALL to C if already set.
  454. # These must not be set unconditionally because not all systems understand
  455. # e.g. LANG=C (notably SCO).
  456. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  457. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  458.  
  459. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  460. rm -rf conftest* confdefs.h
  461. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  462. echo > confdefs.h
  463.  
  464. # A filename unique to this package, relative to the directory that
  465. # configure is in, which we can look for to find out if srcdir is correct.
  466. ac_unique_file=dvips.c
  467.  
  468. # Find the source files, if location was not specified.
  469. if test -z "$srcdir"; then
  470.   ac_srcdir_defaulted=yes
  471.   # Try the directory containing this script, then its parent.
  472.   ac_prog=$0
  473.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  474.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  475.   srcdir=$ac_confdir
  476.   if test ! -r $srcdir/$ac_unique_file; then
  477.     srcdir=..
  478.   fi
  479. else
  480.   ac_srcdir_defaulted=no
  481. fi
  482. if test ! -r $srcdir/$ac_unique_file; then
  483.   if test "$ac_srcdir_defaulted" = yes; then
  484.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  485.   else
  486.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  487.   fi
  488. fi
  489. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  490.  
  491. # Prefer explicitly selected file to automatically selected ones.
  492. if test -z "$CONFIG_SITE"; then
  493.   if test "x$prefix" != xNONE; then
  494.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  495.   else
  496.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  497.   fi
  498. fi
  499. for ac_site_file in $CONFIG_SITE; do
  500.   if test -r "$ac_site_file"; then
  501.     echo "loading site script $ac_site_file"
  502.     . "$ac_site_file"
  503.   fi
  504. done
  505.  
  506. if test -r "$cache_file"; then
  507.   echo "loading cache $cache_file"
  508.   . $cache_file
  509. else
  510.   echo "creating cache $cache_file"
  511.   > $cache_file
  512. fi
  513.  
  514. ac_ext=c
  515. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  516. ac_cpp='$CPP $CPPFLAGS'
  517. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  518. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  519.  
  520. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  521.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  522.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  523.     ac_n= ac_c='
  524. ' ac_t='    '
  525.   else
  526.     ac_n=-n ac_c= ac_t=
  527.   fi
  528. else
  529.   ac_n= ac_c='\c' ac_t=
  530. fi
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  538. set dummy ${MAKE-make}; ac_make=$2
  539. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  540.   echo $ac_n "(cached) $ac_c" 1>&6
  541. else
  542.   cat > conftestmake <<\EOF
  543. all:
  544.     @echo 'ac_maketemp="${MAKE}"'
  545. EOF
  546. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  547. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  548. if test -n "$ac_maketemp"; then
  549.   eval ac_cv_prog_make_${ac_make}_set=yes
  550. else
  551.   eval ac_cv_prog_make_${ac_make}_set=no
  552. fi
  553. rm -f conftestmake
  554. fi
  555. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  556.   echo "$ac_t""yes" 1>&6
  557.   SET_MAKE=
  558. else
  559.   echo "$ac_t""no" 1>&6
  560.   SET_MAKE="MAKE=${MAKE-make}"
  561. fi
  562.  
  563.  
  564. # Extract the first word of "gcc", so it can be a program name with args.
  565. set dummy gcc; ac_word=$2
  566. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  567. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  568.   echo $ac_n "(cached) $ac_c" 1>&6
  569. else
  570.   if test -n "$CC"; then
  571.   ac_cv_prog_CC="$CC" # Let the user override the test.
  572. else
  573.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  574.   for ac_dir in $PATH; do
  575.     test -z "$ac_dir" && ac_dir=.
  576.     if test -f $ac_dir/$ac_word; then
  577.       ac_cv_prog_CC="gcc"
  578.       break
  579.     fi
  580.   done
  581.   IFS="$ac_save_ifs"
  582. fi
  583. fi
  584. CC="$ac_cv_prog_CC"
  585. if test -n "$CC"; then
  586.   echo "$ac_t""$CC" 1>&6
  587. else
  588.   echo "$ac_t""no" 1>&6
  589. fi
  590.  
  591. if test -z "$CC"; then
  592.   # Extract the first word of "cc", so it can be a program name with args.
  593. set dummy cc; ac_word=$2
  594. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  595. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  596.   echo $ac_n "(cached) $ac_c" 1>&6
  597. else
  598.   if test -n "$CC"; then
  599.   ac_cv_prog_CC="$CC" # Let the user override the test.
  600. else
  601.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  602.   ac_prog_rejected=no
  603.   for ac_dir in $PATH; do
  604.     test -z "$ac_dir" && ac_dir=.
  605.     if test -f $ac_dir/$ac_word; then
  606.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  607.         ac_prog_rejected=yes
  608.     continue
  609.       fi
  610.       ac_cv_prog_CC="cc"
  611.       break
  612.     fi
  613.   done
  614.   IFS="$ac_save_ifs"
  615. if test $ac_prog_rejected = yes; then
  616.   # We found a bogon in the path, so make sure we never use it.
  617.   set dummy $ac_cv_prog_CC
  618.   shift
  619.   if test $# -gt 0; then
  620.     # We chose a different compiler from the bogus one.
  621.     # However, it has the same basename, so the bogon will be chosen
  622.     # first if we set CC to just the basename; use the full file name.
  623.     shift
  624.     set dummy "$ac_dir/$ac_word" "$@"
  625.     shift
  626.     ac_cv_prog_CC="$@"
  627.   fi
  628. fi
  629. fi
  630. fi
  631. CC="$ac_cv_prog_CC"
  632. if test -n "$CC"; then
  633.   echo "$ac_t""$CC" 1>&6
  634. else
  635.   echo "$ac_t""no" 1>&6
  636. fi
  637.  
  638.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  639. fi
  640.  
  641. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  642. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  643.   echo $ac_n "(cached) $ac_c" 1>&6
  644. else
  645.   cat > conftest.c <<EOF
  646. #ifdef __GNUC__
  647.   yes;
  648. #endif
  649. EOF
  650. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  651.   ac_cv_prog_gcc=yes
  652. else
  653.   ac_cv_prog_gcc=no
  654. fi
  655. fi
  656.  
  657. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  658. if test $ac_cv_prog_gcc = yes; then
  659.   GCC=yes
  660.   if test "${CFLAGS+set}" != set; then
  661.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  662. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  663.   echo $ac_n "(cached) $ac_c" 1>&6
  664. else
  665.   echo 'void f(){}' > conftest.c
  666. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  667.   ac_cv_prog_gcc_g=yes
  668. else
  669.   ac_cv_prog_gcc_g=no
  670. fi
  671. rm -f conftest*
  672.  
  673. fi
  674.  
  675. echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  676.     if test $ac_cv_prog_gcc_g = yes; then
  677.       CFLAGS="-g -O2"
  678.     else
  679.       CFLAGS="-O2"
  680.     fi
  681.   fi
  682. else
  683.   GCC=
  684.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  685. fi
  686.  
  687. ac_aux_dir=
  688. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  689.   if test -f $ac_dir/install-sh; then
  690.     ac_aux_dir=$ac_dir
  691.     ac_install_sh="$ac_aux_dir/install-sh -c"
  692.     break
  693.   elif test -f $ac_dir/install.sh; then
  694.     ac_aux_dir=$ac_dir
  695.     ac_install_sh="$ac_aux_dir/install.sh -c"
  696.     break
  697.   fi
  698. done
  699. if test -z "$ac_aux_dir"; then
  700.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  701. fi
  702. ac_config_guess=$ac_aux_dir/config.guess
  703. ac_config_sub=$ac_aux_dir/config.sub
  704. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  705.  
  706. # Find a good install program.  We prefer a C program (faster),
  707. # so one script is as good as another.  But avoid the broken or
  708. # incompatible versions:
  709. # SysV /etc/install, /usr/sbin/install
  710. # SunOS /usr/etc/install
  711. # IRIX /sbin/install
  712. # AIX /bin/install
  713. # AmigaOS /c/install
  714. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  715. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  716. # ./install, which can be erroneously created by make from ./install.sh.
  717. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  718. if test -z "$INSTALL"; then
  719. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  720.   echo $ac_n "(cached) $ac_c" 1>&6
  721. else
  722.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  723.   for ac_dir in $PATH; do
  724.     # Account for people who put trailing slashes in PATH elements.
  725.     case "$ac_dir/" in
  726.     /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  727.     *)
  728.       # OSF1 and SCO ODT 3.0 have their own names for install.
  729.       for ac_prog in ginstall installbsd scoinst install; do
  730.         if test -f $ac_dir/$ac_prog; then
  731.       if test $ac_prog = install &&
  732.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  733.         # AIX install.  It has an incompatible calling convention.
  734.         # OSF/1 installbsd also uses dspmsg, but is usable.
  735.         :
  736.       else
  737.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  738.         break 2
  739.       fi
  740.     fi
  741.       done
  742.       ;;
  743.     esac
  744.   done
  745.   IFS="$ac_save_ifs"
  746.  
  747. fi
  748.   if test "${ac_cv_path_install+set}" = set; then
  749.     INSTALL="$ac_cv_path_install"
  750.   else
  751.     # As a last resort, use the slow shell script.  We don't cache a
  752.     # path for INSTALL within a source directory, because that will
  753.     # break other packages using the cache if that directory is
  754.     # removed, or if the path is relative.
  755.     INSTALL="$ac_install_sh"
  756.   fi
  757. fi
  758. echo "$ac_t""$INSTALL" 1>&6
  759.  
  760. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  761. # It thinks the first close brace ends the variable substitution.
  762. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  763.  
  764. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  765.  
  766. # Extract the first word of "ranlib", so it can be a program name with args.
  767. set dummy ranlib; ac_word=$2
  768. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  769. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  770.   echo $ac_n "(cached) $ac_c" 1>&6
  771. else
  772.   if test -n "$RANLIB"; then
  773.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  774. else
  775.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  776.   for ac_dir in $PATH; do
  777.     test -z "$ac_dir" && ac_dir=.
  778.     if test -f $ac_dir/$ac_word; then
  779.       ac_cv_prog_RANLIB="ranlib"
  780.       break
  781.     fi
  782.   done
  783.   IFS="$ac_save_ifs"
  784.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  785. fi
  786. fi
  787. RANLIB="$ac_cv_prog_RANLIB"
  788. if test -n "$RANLIB"; then
  789.   echo "$ac_t""$RANLIB" 1>&6
  790. else
  791.   echo "$ac_t""no" 1>&6
  792. fi
  793.  
  794.  
  795. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  796. if test -d /etc/conf/kconfig.d &&
  797.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  798. then
  799.   echo "$ac_t""yes" 1>&6
  800.   ISC=yes # If later tests want to check for ISC.
  801.   cat >> confdefs.h <<\EOF
  802. #define _POSIX_SOURCE 1
  803. EOF
  804.  
  805.   if test "$GCC" = yes; then
  806.     CC="$CC -posix"
  807.   else
  808.     CC="$CC -Xp"
  809.   fi
  810. else
  811.   echo "$ac_t""no" 1>&6
  812.   ISC=
  813. fi
  814.  
  815.  
  816. ac_header_dirent=no
  817. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  818. do
  819. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  820. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  821. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  822.   echo $ac_n "(cached) $ac_c" 1>&6
  823. else
  824.   cat > conftest.$ac_ext <<EOF
  825. #line 826 "configure"
  826. #include "confdefs.h"
  827. #include <sys/types.h>
  828. #include <$ac_hdr>
  829. int main() { return 0; }
  830. int t() {
  831. DIR *dirp = 0;
  832. ; return 0; }
  833. EOF
  834. if { (eval echo configure:835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  835.   rm -rf conftest*
  836.   eval "ac_cv_header_dirent_$ac_safe=yes"
  837. else
  838.   rm -rf conftest*
  839.   eval "ac_cv_header_dirent_$ac_safe=no"
  840. fi
  841. rm -f conftest*
  842.  
  843. fi
  844. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  845.   echo "$ac_t""yes" 1>&6
  846.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'`
  847.   cat >> confdefs.h <<EOF
  848. #define $ac_tr_hdr 1
  849. EOF
  850.  ac_header_dirent=$ac_hdr; break
  851. else
  852.   echo "$ac_t""no" 1>&6
  853. fi
  854. done
  855. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  856. if test $ac_header_dirent = dirent.h; then
  857. echo $ac_n "checking for -ldir""... $ac_c" 1>&6
  858. ac_lib_var=`echo dir'_'opendir | tr './+\055' '__p_'`
  859. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  860.   echo $ac_n "(cached) $ac_c" 1>&6
  861. else
  862.   ac_save_LIBS="$LIBS"
  863. LIBS="-ldir  $LIBS"
  864. cat > conftest.$ac_ext <<EOF
  865. #line 866 "configure"
  866. #include "confdefs.h"
  867. /* Override any gcc2 internal prototype to avoid an error.  */
  868. /* We use char because int might match the return type of a gcc2
  869.     builtin and then its argument prototype would still apply.  */
  870. char opendir();
  871.  
  872. int main() { t(); return 0; }
  873. int t() {
  874. opendir()
  875. ; return 0; }
  876. EOF
  877. if { (eval echo configure:878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  878.   rm -rf conftest*
  879.   eval "ac_cv_lib_$ac_lib_var=yes"
  880. else
  881.   rm -rf conftest*
  882.   eval "ac_cv_lib_$ac_lib_var=no"
  883. fi
  884. rm -f conftest*
  885. LIBS="$ac_save_LIBS"
  886.  
  887. fi
  888. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  889.   echo "$ac_t""yes" 1>&6
  890.   LIBS="$LIBS -ldir"
  891. else
  892.   echo "$ac_t""no" 1>&6
  893. fi
  894.  
  895. else
  896. echo $ac_n "checking for -lx""... $ac_c" 1>&6
  897. ac_lib_var=`echo x'_'opendir | tr './+\055' '__p_'`
  898. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  899.   echo $ac_n "(cached) $ac_c" 1>&6
  900. else
  901.   ac_save_LIBS="$LIBS"
  902. LIBS="-lx  $LIBS"
  903. cat > conftest.$ac_ext <<EOF
  904. #line 905 "configure"
  905. #include "confdefs.h"
  906. /* Override any gcc2 internal prototype to avoid an error.  */
  907. /* We use char because int might match the return type of a gcc2
  908.     builtin and then its argument prototype would still apply.  */
  909. char opendir();
  910.  
  911. int main() { t(); return 0; }
  912. int t() {
  913. opendir()
  914. ; return 0; }
  915. EOF
  916. if { (eval echo configure:917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  917.   rm -rf conftest*
  918.   eval "ac_cv_lib_$ac_lib_var=yes"
  919. else
  920.   rm -rf conftest*
  921.   eval "ac_cv_lib_$ac_lib_var=no"
  922. fi
  923. rm -f conftest*
  924. LIBS="$ac_save_LIBS"
  925.  
  926. fi
  927. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  928.   echo "$ac_t""yes" 1>&6
  929.   LIBS="$LIBS -lx"
  930. else
  931.   echo "$ac_t""no" 1>&6
  932. fi
  933.  
  934. fi
  935.  
  936. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  937. # On Suns, sometimes $CPP names a directory.
  938. if test -n "$CPP" && test -d "$CPP"; then
  939.   CPP=
  940. fi
  941. if test -z "$CPP"; then
  942. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  943.   echo $ac_n "(cached) $ac_c" 1>&6
  944. else
  945.     # This must be in double quotes, not single quotes, because CPP may get
  946.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  947.   CPP="${CC-cc} -E"
  948.   # On the NeXT, cc -E runs the code through the compiler's parser,
  949.   # not just through cpp.
  950.   cat > conftest.$ac_ext <<EOF
  951. #line 952 "configure"
  952. #include "confdefs.h"
  953. #include <assert.h>
  954. Syntax Error
  955. EOF
  956. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  957. { (eval echo configure:958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  958. ac_err=`grep -v '^ *+' conftest.out`
  959. if test -z "$ac_err"; then
  960.   :
  961. else
  962.   echo "$ac_err" >&5
  963.   rm -rf conftest*
  964.   CPP="${CC-cc} -E -traditional-cpp"
  965.   cat > conftest.$ac_ext <<EOF
  966. #line 967 "configure"
  967. #include "confdefs.h"
  968. #include <assert.h>
  969. Syntax Error
  970. EOF
  971. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  972. { (eval echo configure:973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  973. ac_err=`grep -v '^ *+' conftest.out`
  974. if test -z "$ac_err"; then
  975.   :
  976. else
  977.   echo "$ac_err" >&5
  978.   rm -rf conftest*
  979.   CPP=/lib/cpp
  980. fi
  981. rm -f conftest*
  982. fi
  983. rm -f conftest*
  984.   ac_cv_prog_CPP="$CPP"
  985. fi
  986.   CPP="$ac_cv_prog_CPP"
  987. else
  988.   ac_cv_prog_CPP="$CPP"
  989. fi
  990. echo "$ac_t""$CPP" 1>&6
  991.  
  992. # If we cannot run a trivial program, we must be cross compiling.
  993. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  994. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  995.   echo $ac_n "(cached) $ac_c" 1>&6
  996. else
  997.   if test "$cross_compiling" = yes; then
  998.   ac_cv_c_cross=yes
  999. else
  1000. cat > conftest.$ac_ext <<EOF
  1001. #line 1002 "configure"
  1002. #include "confdefs.h"
  1003. main(){return(0);}
  1004. EOF
  1005. { (eval echo configure:1006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1006. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1007.   ac_cv_c_cross=no
  1008. else
  1009.   ac_cv_c_cross=yes
  1010. fi
  1011. fi
  1012. rm -fr conftest*
  1013. fi
  1014.  
  1015. echo "$ac_t""$ac_cv_c_cross" 1>&6
  1016. cross_compiling=$ac_cv_c_cross
  1017.  
  1018. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1019. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1020.   echo $ac_n "(cached) $ac_c" 1>&6
  1021. else
  1022.   cat > conftest.$ac_ext <<EOF
  1023. #line 1024 "configure"
  1024. #include "confdefs.h"
  1025. #include <stdlib.h>
  1026. #include <stdarg.h>
  1027. #include <string.h>
  1028. #include <float.h>
  1029. EOF
  1030. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1031. { (eval echo configure:1032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1032. ac_err=`grep -v '^ *+' conftest.out`
  1033. if test -z "$ac_err"; then
  1034.   rm -rf conftest*
  1035.   ac_cv_header_stdc=yes
  1036. else
  1037.   echo "$ac_err" >&5
  1038.   rm -rf conftest*
  1039.   ac_cv_header_stdc=no
  1040. fi
  1041. rm -f conftest*
  1042.  
  1043. if test $ac_cv_header_stdc = yes; then
  1044.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1045. cat > conftest.$ac_ext <<EOF
  1046. #line 1047 "configure"
  1047. #include "confdefs.h"
  1048. #include <string.h>
  1049. EOF
  1050. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1051.   egrep "memchr" >/dev/null 2>&1; then
  1052.   :
  1053. else
  1054.   rm -rf conftest*
  1055.   ac_cv_header_stdc=no
  1056. fi
  1057. rm -f conftest*
  1058.  
  1059. fi
  1060.  
  1061. if test $ac_cv_header_stdc = yes; then
  1062.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1063. cat > conftest.$ac_ext <<EOF
  1064. #line 1065 "configure"
  1065. #include "confdefs.h"
  1066. #include <stdlib.h>
  1067. EOF
  1068. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1069.   egrep "free" >/dev/null 2>&1; then
  1070.   :
  1071. else
  1072.   rm -rf conftest*
  1073.   ac_cv_header_stdc=no
  1074. fi
  1075. rm -f conftest*
  1076.  
  1077. fi
  1078.  
  1079. if test $ac_cv_header_stdc = yes; then
  1080.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1081. if test "$cross_compiling" = yes; then
  1082.   :
  1083. else
  1084. cat > conftest.$ac_ext <<EOF
  1085. #line 1086 "configure"
  1086. #include "confdefs.h"
  1087. #include <ctype.h>
  1088. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1089. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1090. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1091. int main () { int i; for (i = 0; i < 256; i++)
  1092. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1093. exit (0); }
  1094.  
  1095. EOF
  1096. { (eval echo configure:1097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1097. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1098.   :
  1099. else
  1100.   ac_cv_header_stdc=no
  1101. fi
  1102. fi
  1103. rm -fr conftest*
  1104. fi
  1105. fi
  1106.  
  1107. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1108. if test $ac_cv_header_stdc = yes; then
  1109.   cat >> confdefs.h <<\EOF
  1110. #define STDC_HEADERS 1
  1111. EOF
  1112.  
  1113. fi
  1114.  
  1115. echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6
  1116. if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then
  1117.   echo $ac_n "(cached) $ac_c" 1>&6
  1118. else
  1119.   if test "$cross_compiling" = yes; then
  1120.   ac_cv_func_closedir_void=yes
  1121. else
  1122. cat > conftest.$ac_ext <<EOF
  1123. #line 1124 "configure"
  1124. #include "confdefs.h"
  1125. #include <sys/types.h>
  1126. #include <$ac_header_dirent>
  1127. int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  1128. EOF
  1129. { (eval echo configure:1130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1130. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1131.   ac_cv_func_closedir_void=no
  1132. else
  1133.   ac_cv_func_closedir_void=yes
  1134. fi
  1135. fi
  1136. rm -fr conftest*
  1137. fi
  1138.  
  1139. echo "$ac_t""$ac_cv_func_closedir_void" 1>&6
  1140. if test $ac_cv_func_closedir_void = yes; then
  1141.   cat >> confdefs.h <<\EOF
  1142. #define CLOSEDIR_VOID 1
  1143. EOF
  1144.  
  1145. fi
  1146.  
  1147. for ac_hdr in assert.h float.h limits.h memory.h pwd.h stdlib.h \
  1148.                  string.h unistd.h
  1149. do
  1150. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1151. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1152. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1153.   echo $ac_n "(cached) $ac_c" 1>&6
  1154. else
  1155.   cat > conftest.$ac_ext <<EOF
  1156. #line 1157 "configure"
  1157. #include "confdefs.h"
  1158. #include <$ac_hdr>
  1159. EOF
  1160. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1161. { (eval echo configure:1162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1162. ac_err=`grep -v '^ *+' conftest.out`
  1163. if test -z "$ac_err"; then
  1164.   rm -rf conftest*
  1165.   eval "ac_cv_header_$ac_safe=yes"
  1166. else
  1167.   echo "$ac_err" >&5
  1168.   rm -rf conftest*
  1169.   eval "ac_cv_header_$ac_safe=no"
  1170. fi
  1171. rm -f conftest*
  1172. fi
  1173. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1174.   echo "$ac_t""yes" 1>&6
  1175.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1176.   cat >> confdefs.h <<EOF
  1177. #define $ac_tr_hdr 1
  1178. EOF
  1179.  
  1180. else
  1181.   echo "$ac_t""no" 1>&6
  1182. fi
  1183. done
  1184.  
  1185.  
  1186. for ac_func in basename bcopy memmove putenv
  1187. do
  1188. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1189. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1190.   echo $ac_n "(cached) $ac_c" 1>&6
  1191. else
  1192.   cat > conftest.$ac_ext <<EOF
  1193. #line 1194 "configure"
  1194. #include "confdefs.h"
  1195. /* System header to define __stub macros and hopefully few prototypes,
  1196.     which can conflict with char $ac_func(); below.  */
  1197. #include <assert.h>
  1198. /* Override any gcc2 internal prototype to avoid an error.  */
  1199. /* We use char because int might match the return type of a gcc2
  1200.     builtin and then its argument prototype would still apply.  */
  1201. char $ac_func();
  1202.  
  1203. int main() { t(); return 0; }
  1204. int t() {
  1205.  
  1206. /* The GNU C library defines this for functions which it implements
  1207.     to always fail with ENOSYS.  Some functions are actually named
  1208.     something starting with __ and the normal name is an alias.  */
  1209. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1210. choke me
  1211. #else
  1212. $ac_func();
  1213. #endif
  1214.  
  1215. ; return 0; }
  1216. EOF
  1217. if { (eval echo configure:1218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1218.   rm -rf conftest*
  1219.   eval "ac_cv_func_$ac_func=yes"
  1220. else
  1221.   rm -rf conftest*
  1222.   eval "ac_cv_func_$ac_func=no"
  1223. fi
  1224. rm -f conftest*
  1225.  
  1226. fi
  1227. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1228.   echo "$ac_t""yes" 1>&6
  1229.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1230.   cat >> confdefs.h <<EOF
  1231. #define $ac_tr_func 1
  1232. EOF
  1233.  
  1234. else
  1235.   echo "$ac_t""no" 1>&6
  1236. fi
  1237. done
  1238.  
  1239.  
  1240. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1241. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1242.   echo $ac_n "(cached) $ac_c" 1>&6
  1243. else
  1244.   cat > conftest.$ac_ext <<EOF
  1245. #line 1246 "configure"
  1246. #include "confdefs.h"
  1247.  
  1248. int main() { return 0; }
  1249. int t() {
  1250.  
  1251. /* Ultrix mips cc rejects this.  */
  1252. typedef int charset[2]; const charset x;
  1253. /* SunOS 4.1.1 cc rejects this.  */
  1254. char const *const *ccp;
  1255. char **p;
  1256. /* NEC SVR4.0.2 mips cc rejects this.  */
  1257. struct point {int x, y;};
  1258. static struct point const zero = {0,0};
  1259. /* AIX XL C 1.02.0.0 rejects this.
  1260.    It does not let you subtract one const X* pointer from another in an arm
  1261.    of an if-expression whose if-part is not a constant expression */
  1262. const char *g = "string";
  1263. ccp = &g + (g ? g-g : 0);
  1264. /* HPUX 7.0 cc rejects these. */
  1265. ++ccp;
  1266. p = (char**) ccp;
  1267. ccp = (char const *const *) p;
  1268. { /* SCO 3.2v4 cc rejects this.  */
  1269.   char *t;
  1270.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  1271.  
  1272.   *t++ = 0;
  1273. }
  1274. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  1275.   int x[] = {25, 17};
  1276.   const int *foo = &x[0];
  1277.   ++foo;
  1278. }
  1279. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1280.   typedef const int *iptr;
  1281.   iptr p = 0;
  1282.   ++p;
  1283. }
  1284. { /* AIX XL C 1.02.0.0 rejects this saying
  1285.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1286.   struct s { int j; const int *ap[3]; };
  1287.   struct s *b; b->j = 5;
  1288. }
  1289. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1290.   const int foo = 10;
  1291. }
  1292.  
  1293. ; return 0; }
  1294. EOF
  1295. if { (eval echo configure:1296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1296.   rm -rf conftest*
  1297.   ac_cv_c_const=yes
  1298. else
  1299.   rm -rf conftest*
  1300.   ac_cv_c_const=no
  1301. fi
  1302. rm -f conftest*
  1303.  
  1304. fi
  1305.  
  1306. echo "$ac_t""$ac_cv_c_const" 1>&6
  1307. if test $ac_cv_c_const = no; then
  1308.   cat >> confdefs.h <<\EOF
  1309. #define const 
  1310. EOF
  1311.  
  1312. fi
  1313.  
  1314.  
  1315.  
  1316. # This is a GNU libc invention.
  1317. echo $ac_n "checking whether program_invocation_name is predefined""... $ac_c" 1>&6
  1318. if eval "test \"`echo '$''{'kb_cv_var_program_inv_name'+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.  
  1325. int main() { t(); return 0; }
  1326. int t() {
  1327. main() { program_invocation_name = "love"; }
  1328. ; return 0; }
  1329. EOF
  1330. if { (eval echo configure:1331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1331.   rm -rf conftest*
  1332.   kb_cv_var_program_inv_name=yes
  1333. else
  1334.   rm -rf conftest*
  1335.   kb_cv_var_program_inv_name=no
  1336. fi
  1337. rm -f conftest*
  1338.  
  1339. fi
  1340. echo "$ac_t""$kb_cv_var_program_inv_name" 1>&6
  1341. if test $kb_cv_var_program_inv_name = yes; then
  1342.   cat >> confdefs.h <<\EOF
  1343. #define HAVE_PROGRAM_INVOCATION_NAME 1
  1344. EOF
  1345.  
  1346. fi
  1347.  
  1348.  
  1349. # Some BSD putenv's, e.g., FreeBSD, do malloc/free's on the environment.
  1350. # This test program is due to Mike Hibler <mike@cs.utah.edu>.
  1351. # We don't actually need to run this if we don't have putenv, but it
  1352. # doesn't hurt.
  1353. echo $ac_n "checking whether putenv uses malloc""... $ac_c" 1>&6
  1354. if eval "test \"`echo '$''{'kb_cv_func_putenv_malloc'+set}'`\" = set"; then
  1355.   echo $ac_n "(cached) $ac_c" 1>&6
  1356. else
  1357.   if test "$cross_compiling" = yes; then
  1358.   kb_cv_func_putenv_malloc=no
  1359. else
  1360. cat > conftest.$ac_ext <<EOF
  1361. #line 1362 "configure"
  1362. #include "confdefs.h"
  1363.  
  1364. #define VAR    "YOW_VAR"
  1365. #define STRING1 "GabbaGabbaHey"
  1366. #define STRING2 "Yow!!"        /* should be shorter than STRING1 */
  1367. extern char *getenv (); /* in case char* and int don't mix gracefully */
  1368. main ()
  1369. {
  1370.   char *str1, *rstr1, *str2, *rstr2;
  1371.   str1 = getenv (VAR);
  1372.   if (str1)
  1373.     exit (1);
  1374.   str1 = malloc (strlen (VAR) + 1 + strlen (STRING1) + 1);
  1375.   if (str1 == 0)
  1376.     exit (2);
  1377.   strcpy (str1, VAR);
  1378.   strcat (str1, "=");
  1379.   strcat (str1, STRING1);
  1380.   if (putenv (str1) < 0)
  1381.     exit (3);
  1382.   rstr1 = getenv (VAR);
  1383.   if (rstr1 == 0)
  1384.     exit (4);
  1385.   rstr1 -= strlen (VAR) + 1;
  1386.   if (strncmp (rstr1, VAR, strlen (VAR)))
  1387.     exit (5);
  1388.   str2 = malloc (strlen (VAR) + 1 + strlen (STRING2) + 1);
  1389.   if (str2 == 0 || str1 == str2)
  1390.     exit (6);
  1391.   strcpy (str2, VAR);
  1392.   strcat (str2, "=");
  1393.   strcat (str2, STRING2);
  1394.   if (putenv (str2) < 0)
  1395.     exit (7);
  1396.   rstr2 = getenv (VAR);
  1397.   if (rstr2 == 0)
  1398.     exit (8);
  1399.   rstr2 -= strlen (VAR) + 1;
  1400. #if 0
  1401.   printf ("rstr1=0x%x, rstr2=0x%x\n", rstr1, rstr2);
  1402.   /*
  1403.    * If string from first call was reused for the second call,
  1404.    * you had better not do a free on the first string!
  1405.    */
  1406.   if (rstr1 == rstr2)
  1407.           printf ("#define SMART_PUTENV\n");
  1408.   else
  1409.           printf ("#undef SMART_PUTENV\n");
  1410. #endif
  1411.   exit (rstr1 == rstr2 ? 0 : 1);
  1412. }
  1413. EOF
  1414. { (eval echo configure:1415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1415. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1416.   kb_cv_func_putenv_malloc=yes
  1417. else
  1418.   kb_cv_func_putenv_malloc=no
  1419. fi
  1420. fi
  1421. rm -fr conftest*
  1422. fi
  1423. echo "$ac_t""$kb_cv_func_putenv_malloc" 1>&6
  1424. if test $kb_cv_func_putenv_malloc = yes; then
  1425.   cat >> confdefs.h <<\EOF
  1426. #define SMART_PUTENV 1
  1427. EOF
  1428.  
  1429. fi
  1430.  
  1431.  
  1432. echo $ac_n "checking size of int""... $ac_c" 1>&6
  1433. if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
  1434.   echo $ac_n "(cached) $ac_c" 1>&6
  1435. else
  1436.   if test "$cross_compiling" = yes; then
  1437.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1438. else
  1439. cat > conftest.$ac_ext <<EOF
  1440. #line 1441 "configure"
  1441. #include "confdefs.h"
  1442. #include <stdio.h>
  1443. main()
  1444. {
  1445.   FILE *f=fopen("conftestval", "w");
  1446.   if (!f) exit(1);
  1447.   fprintf(f, "%d\n", sizeof(int));
  1448.   exit(0);
  1449. }
  1450. EOF
  1451. { (eval echo configure:1452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1452. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1453.   ac_cv_sizeof_int=`cat conftestval`
  1454. else
  1455.   ac_cv_sizeof_int=0
  1456. fi
  1457. fi
  1458. rm -fr conftest*
  1459. fi
  1460. echo "$ac_t""$ac_cv_sizeof_int" 1>&6
  1461. cat >> confdefs.h <<EOF
  1462. #define SIZEOF_INT $ac_cv_sizeof_int
  1463. EOF
  1464.  
  1465.  
  1466.  
  1467. trap '' 1 2 15
  1468. cat > confcache <<\EOF
  1469. # This file is a shell script that caches the results of configure
  1470. # tests run on this system so they can be shared between configure
  1471. # scripts and configure runs.  It is not useful on other systems.
  1472. # If it contains results you don't want to keep, you may remove or edit it.
  1473. #
  1474. # By default, configure uses ./config.cache as the cache file,
  1475. # creating it if it does not exist already.  You can give configure
  1476. # the --cache-file=FILE option to use a different cache file; that is
  1477. # what configure does when it calls configure scripts in
  1478. # subdirectories, so they share the cache.
  1479. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1480. # config.status only pays attention to the cache file if you give it the
  1481. # --recheck option to rerun configure.
  1482. #
  1483. EOF
  1484. # Ultrix sh set writes to stderr and can't be redirected directly,
  1485. # and sets the high bit in the cache file unless we assign to the vars.
  1486. (set) 2>&1 |
  1487.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  1488.   >> confcache
  1489. if cmp -s $cache_file confcache; then
  1490.   :
  1491. else
  1492.   if test -w $cache_file; then
  1493.     echo "updating cache $cache_file"
  1494.     cat confcache > $cache_file
  1495.   else
  1496.     echo "not updating unwritable cache $cache_file"
  1497.   fi
  1498. fi
  1499. rm -f confcache
  1500.  
  1501. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1502.  
  1503. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1504. # Let make expand exec_prefix.
  1505. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1506.  
  1507. # Any assignment to VPATH causes Sun make to only execute
  1508. # the first set of double-colon rules, so remove it if not needed.
  1509. # If there is a colon in the path, we need to keep it.
  1510. if test "x$srcdir" = x.; then
  1511.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1512. fi
  1513.  
  1514. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1515.  
  1516. DEFS=-DHAVE_CONFIG_H
  1517.  
  1518. # Without the "./", some shells look in PATH for config.status.
  1519. : ${CONFIG_STATUS=./config.status}
  1520.  
  1521. echo creating $CONFIG_STATUS
  1522. # Some systems, like AmigaOS, won't allow you to remove a script that is
  1523. # being executed, so just move it out of the way instead.
  1524. if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  1525. cat > $CONFIG_STATUS <<EOF
  1526. #! /bin/sh
  1527. # Generated automatically by configure.
  1528. # Run this file to recreate the current configuration.
  1529. # This directory was configured as follows,
  1530. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1531. #
  1532. # $0 $ac_configure_args
  1533. #
  1534. # Compiler output produced by configure, useful for debugging
  1535. # configure, is in ./config.log if it exists.
  1536.  
  1537. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1538. for ac_option
  1539. do
  1540.   case "\$ac_option" in
  1541.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1542.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1543.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1544.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1545.     echo "$CONFIG_STATUS generated by autoconf version 2.10"
  1546.     exit 0 ;;
  1547.   -help | --help | --hel | --he | --h)
  1548.     echo "\$ac_cs_usage"; exit 0 ;;
  1549.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1550.   esac
  1551. done
  1552.  
  1553. ac_given_srcdir=$srcdir
  1554. ac_given_INSTALL="$INSTALL"
  1555.  
  1556. trap 'rm -fr `echo "Makefile c-auto.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1557. EOF
  1558. cat >> $CONFIG_STATUS <<EOF
  1559.  
  1560. # Protect against being on the right side of a sed subst in config.status. 
  1561. sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
  1562.  s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  1563. $ac_vpsub
  1564. $extrasub
  1565. s%@CFLAGS@%$CFLAGS%g
  1566. s%@CPPFLAGS@%$CPPFLAGS%g
  1567. s%@CXXFLAGS@%$CXXFLAGS%g
  1568. s%@DEFS@%$DEFS%g
  1569. s%@LDFLAGS@%$LDFLAGS%g
  1570. s%@LIBS@%$LIBS%g
  1571. s%@exec_prefix@%$exec_prefix%g
  1572. s%@prefix@%$prefix%g
  1573. s%@program_transform_name@%$program_transform_name%g
  1574. s%@bindir@%$bindir%g
  1575. s%@sbindir@%$sbindir%g
  1576. s%@libexecdir@%$libexecdir%g
  1577. s%@datadir@%$datadir%g
  1578. s%@sysconfdir@%$sysconfdir%g
  1579. s%@sharedstatedir@%$sharedstatedir%g
  1580. s%@localstatedir@%$localstatedir%g
  1581. s%@libdir@%$libdir%g
  1582. s%@includedir@%$includedir%g
  1583. s%@oldincludedir@%$oldincludedir%g
  1584. s%@infodir@%$infodir%g
  1585. s%@guidedir@%$guidedir%g
  1586. s%@psdir@%$psdir%g
  1587. s%@dvidir@%$dvidir%g
  1588. s%@mandir@%$mandir%g
  1589. s%@SET_MAKE@%$SET_MAKE%g
  1590. s%@CC@%$CC%g
  1591. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1592. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1593. s%@RANLIB@%$RANLIB%g
  1594. s%@CPP@%$CPP%g
  1595.  
  1596. CEOF
  1597. EOF
  1598. cat >> $CONFIG_STATUS <<EOF
  1599.  
  1600. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  1601. EOF
  1602. cat >> $CONFIG_STATUS <<\EOF
  1603. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1604.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  1605.   case "$ac_file" in
  1606.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  1607.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1608.   *) ac_file_in="${ac_file}.in" ;;
  1609.   esac
  1610.  
  1611.   # Adjust relative srcdir, etc. for subdirectories.
  1612.  
  1613.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1614.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1615.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1616.     # The file is in a subdirectory.
  1617.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1618.     ac_dir_suffix="/$ac_dir"
  1619.     # A "../" for each directory in $ac_dir_suffix.
  1620.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1621.   else
  1622.     ac_dir_suffix= ac_dots=
  1623.   fi
  1624.  
  1625.   case "$ac_given_srcdir" in
  1626.   .)  srcdir=.
  1627.       if test -z "$ac_dots"; then top_srcdir=.
  1628.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1629.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1630.   *) # Relative path.
  1631.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1632.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1633.   esac
  1634.  
  1635.   case "$ac_given_INSTALL" in
  1636.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1637.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1638.   esac
  1639.   echo creating "$ac_file"
  1640.   rm -f "$ac_file"
  1641.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1642.   case "$ac_file" in
  1643.   *Makefile*) ac_comsub="1i\\
  1644. # $configure_input" ;;
  1645.   *) ac_comsub= ;;
  1646.   esac
  1647.   # Replace lines of the form ac_include foo with the contents of foo:
  1648.   # first, from the ac_include lines construct a list of sed
  1649.   # commands to remove them, and include the files; then run sed.
  1650.   # Have to use sed because old (Ultrix, SunOS) awk does not support
  1651.   # getline or system. (Anyway, configure scripts aren't supposed to use awk.)
  1652.   # Use \@...@<cmd> form of sed address because the filename may contain /.
  1653.   # Can't use only one -e and commands {dr foo} because foo has to be last.
  1654.   # Use @e initially instead of -e because GNU echo has a -e option.
  1655.   # USe `X' to mean a bunch of backslashes; this is for FreeBSD.
  1656.   file_substs=`sed -n \
  1657. "/^ac_include/s%ac_include[     ]*\(.*\)%@e 'X@^&@r \1' -e 'X@^&@d'%p" \
  1658.                $ac_given_srcdir/${ac_file}.in`
  1659.   if test -n "$file_substs"; then
  1660.     # Change @e back to -e and X@^ to \@^.
  1661.     file_subst_cmd="sed `echo $file_substs \
  1662.                          | sed -e 's/@e/-e/g' -e 's/X@^/\\\\\@^/g'`"
  1663.   else
  1664.     # If no substitutions and hence no sed commands, don't choke.
  1665.     file_subst_cmd=cat
  1666.   fi
  1667.   # cd into the srcdir because the files being included more or less
  1668.   # must be part of the distribution. I can't find any way to do
  1669.   # variable substitution in the sed commands (so the user could have,
  1670.   # e.g., $top_srcdir in their ac_include line).
  1671.   (cd $ac_given_srcdir && eval $file_subst_cmd ${ac_file}.in) \
  1672.   | sed -e "$ac_comsub
  1673. s%@configure_input@%$configure_input%g
  1674. s%@srcdir@%$srcdir%g
  1675. s%@top_srcdir@%$top_srcdir%g
  1676. s%@INSTALL@%$INSTALL%g
  1677. " -f conftest.subs > $ac_file
  1678. fi; done
  1679. rm -f conftest.subs
  1680.  
  1681. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  1682. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  1683. #
  1684. # ac_d sets the value in "#define NAME VALUE" lines.
  1685. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  1686. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  1687. ac_dC='\3'
  1688. ac_dD='%g'
  1689. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  1690. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1691. ac_uB='\([     ]\)%\1#\2define\3'
  1692. ac_uC=' '
  1693. ac_uD='\4%g'
  1694. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  1695. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1696. ac_eB='$%\1#\2define\3'
  1697. ac_eC=' '
  1698. ac_eD='%g'
  1699.  
  1700. CONFIG_HEADERS=${CONFIG_HEADERS-"c-auto.h"}
  1701. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  1702.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  1703.   case "$ac_file" in
  1704.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  1705.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1706.   *) ac_file_in="${ac_file}.in" ;;
  1707.   esac
  1708.  
  1709.   echo creating $ac_file
  1710.  
  1711.   rm -f conftest.frag conftest.in conftest.out
  1712.   cp $ac_given_srcdir/$ac_file_in conftest.in
  1713.  
  1714. EOF
  1715.  
  1716. # Transform confdefs.h into a sed script conftest.vals that substitutes
  1717. # the proper values into config.h.in to produce config.h.  And first:
  1718. # Protect against being on the right side of a sed subst in config.status.
  1719. # Protect against being in an unquoted here document in config.status.
  1720. rm -f conftest.vals
  1721. cat > conftest.hdr <<\EOF
  1722. s/[\\&%]/\\&/g
  1723. s%[\\$`]%\\&%g
  1724. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  1725. s%ac_d%ac_u%gp
  1726. s%ac_u%ac_e%gp
  1727. EOF
  1728. sed -n -f conftest.hdr confdefs.h > conftest.vals
  1729. rm -f conftest.hdr
  1730.  
  1731. # This sed command replaces #undef with comments.  This is necessary, for
  1732. # example, in the case of _POSIX_SOURCE, which is predefined and required
  1733. # on some systems where configure will not decide to define it.
  1734. cat >> conftest.vals <<\EOF
  1735. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  1736. EOF
  1737.  
  1738. # Break up conftest.vals because some shells have a limit on
  1739. # the size of here documents, and old seds have small limits too.
  1740. # Maximum number of lines to put in a single here document.
  1741. ac_max_here_lines=12
  1742.  
  1743. rm -f conftest.tail
  1744. while :
  1745. do
  1746.   ac_lines=`grep -c . conftest.vals`
  1747.   # grep -c gives empty output for an empty file on some AIX systems.
  1748.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  1749.   # Write a limited-size here document to conftest.frag.
  1750.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  1751.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  1752.   echo 'CEOF
  1753.   sed -f conftest.frag conftest.in > conftest.out
  1754.   rm -f conftest.in
  1755.   mv conftest.out conftest.in
  1756. ' >> $CONFIG_STATUS
  1757.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  1758.   rm -f conftest.vals
  1759.   mv conftest.tail conftest.vals
  1760. done
  1761. rm -f conftest.vals
  1762.  
  1763. cat >> $CONFIG_STATUS <<\EOF
  1764.   rm -f conftest.frag conftest.h
  1765.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  1766.   cat conftest.in >> conftest.h
  1767.   rm -f conftest.in
  1768.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  1769.     echo "$ac_file is unchanged"
  1770.     rm -f conftest.h
  1771.   else
  1772.     # Remove last slash and all that follows it.  Not all systems have dirname.
  1773.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1774.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1775.       # The file is in a subdirectory.
  1776.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  1777.     fi
  1778.     rm -f $ac_file
  1779.     mv conftest.h $ac_file
  1780.   fi
  1781. fi; done
  1782.  
  1783.  
  1784.  
  1785. exit 0
  1786. EOF
  1787. chmod +x $CONFIG_STATUS
  1788. rm -f CONFIG.STATUS.old
  1789. rm -fr confdefs* $ac_clean_files
  1790. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1791.  
  1792.