home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / CMDS / mtools_3.6.src.lzh / MTOOLS_3.6 / configure < prev    next >
Text File  |  1997-11-12  |  70KB  |  2,403 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.12 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --enable-xdf           support for OS/2 extended density format disks"
  16. ac_help="$ac_help
  17.   --enable-vold          compatibility with Solaris' vold"
  18. ac_help="$ac_help
  19.   --enable-debug         debuging messages"
  20.  
  21. # Initialize some variables set by options.
  22. # The variables have the same names as the options, with
  23. # dashes changed to underlines.
  24. build=NONE
  25. cache_file=./config.cache
  26. exec_prefix=NONE
  27. host=NONE
  28. no_create=
  29. nonopt=NONE
  30. no_recursion=
  31. prefix=NONE
  32. program_prefix=NONE
  33. program_suffix=NONE
  34. program_transform_name=s,x,x,
  35. silent=
  36. site=
  37. srcdir=
  38. target=NONE
  39. verbose=
  40. x_includes=NONE
  41. x_libraries=NONE
  42. bindir='${exec_prefix}/bin'
  43. sbindir='${exec_prefix}/sbin'
  44. libexecdir='${exec_prefix}/libexec'
  45. datadir='${prefix}/share'
  46. sysconfdir='${prefix}/etc'
  47. sharedstatedir='${prefix}/com'
  48. localstatedir='${prefix}/var'
  49. libdir='${exec_prefix}/lib'
  50. includedir='${prefix}/include'
  51. oldincludedir='/usr/include'
  52. infodir='${prefix}/info'
  53. mandir='${prefix}/man'
  54.  
  55. # Initialize some other variables.
  56. subdirs=
  57. MFLAGS= MAKEFLAGS=
  58. # Maximum number of lines to put in a shell here document.
  59. ac_max_here_lines=12
  60.  
  61. ac_prev=
  62. for ac_option
  63. do
  64.  
  65.   # If the previous option needs an argument, assign it.
  66.   if test -n "$ac_prev"; then
  67.     eval "$ac_prev=\$ac_option"
  68.     ac_prev=
  69.     continue
  70.   fi
  71.  
  72.   case "$ac_option" in
  73.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  74.   *) ac_optarg= ;;
  75.   esac
  76.  
  77.   # Accept the important Cygnus configure options, so we can diagnose typos.
  78.  
  79.   case "$ac_option" in
  80.  
  81.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  82.     ac_prev=bindir ;;
  83.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  84.     bindir="$ac_optarg" ;;
  85.  
  86.   -build | --build | --buil | --bui | --bu)
  87.     ac_prev=build ;;
  88.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  89.     build="$ac_optarg" ;;
  90.  
  91.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  92.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  93.     ac_prev=cache_file ;;
  94.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  95.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  96.     cache_file="$ac_optarg" ;;
  97.  
  98.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  99.     ac_prev=datadir ;;
  100.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  101.   | --da=*)
  102.     datadir="$ac_optarg" ;;
  103.  
  104.   -disable-* | --disable-*)
  105.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  106.     # Reject names that are not valid shell variable names.
  107.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  108.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  109.     fi
  110.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  111.     eval "enable_${ac_feature}=no" ;;
  112.  
  113.   -enable-* | --enable-*)
  114.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  115.     # Reject names that are not valid shell variable names.
  116.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  117.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  118.     fi
  119.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  120.     case "$ac_option" in
  121.       *=*) ;;
  122.       *) ac_optarg=yes ;;
  123.     esac
  124.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  125.  
  126.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  127.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  128.   | --exec | --exe | --ex)
  129.     ac_prev=exec_prefix ;;
  130.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  131.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  132.   | --exec=* | --exe=* | --ex=*)
  133.     exec_prefix="$ac_optarg" ;;
  134.  
  135.   -gas | --gas | --ga | --g)
  136.     # Obsolete; use --with-gas.
  137.     with_gas=yes ;;
  138.  
  139.   -help | --help | --hel | --he)
  140.     # Omit some internal or obsolete options to make the list less imposing.
  141.     # This message is too long to be a string in the A/UX 3.1 sh.
  142.     cat << EOF
  143. Usage: configure [options] [host]
  144. Options: [defaults in brackets after descriptions]
  145. Configuration:
  146.   --cache-file=FILE       cache test results in FILE
  147.   --help                  print this message
  148.   --no-create             do not create output files
  149.   --quiet, --silent       do not print \`checking...' messages
  150.   --version               print the version of autoconf that created configure
  151. Directory and file names:
  152.   --prefix=PREFIX         install architecture-independent files in PREFIX
  153.                           [$ac_default_prefix]
  154.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  155.                           [same as prefix]
  156.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  157.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  158.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  159.   --datadir=DIR           read-only architecture-independent data in DIR
  160.                           [PREFIX/share]
  161.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  162.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  163.                           [PREFIX/com]
  164.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  165.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  166.   --includedir=DIR        C header files in DIR [PREFIX/include]
  167.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  168.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  169.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  170.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  171.   --program-prefix=PREFIX prepend PREFIX to installed program names
  172.   --program-suffix=SUFFIX append SUFFIX to installed program names
  173.   --program-transform-name=PROGRAM
  174.                           run sed PROGRAM on installed program names
  175. EOF
  176.     cat << EOF
  177. Host type:
  178.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  179.   --host=HOST             configure for HOST [guessed]
  180.   --target=TARGET         configure for TARGET [TARGET=HOST]
  181. Features and packages:
  182.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  183.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  184.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  185.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  186.   --x-includes=DIR        X include files are in DIR
  187.   --x-libraries=DIR       X library files are in DIR
  188. EOF
  189.     if test -n "$ac_help"; then
  190.       echo "--enable and --with options recognized:$ac_help"
  191.     fi
  192.     exit 0 ;;
  193.  
  194.   -host | --host | --hos | --ho)
  195.     ac_prev=host ;;
  196.   -host=* | --host=* | --hos=* | --ho=*)
  197.     host="$ac_optarg" ;;
  198.  
  199.   -includedir | --includedir | --includedi | --included | --include \
  200.   | --includ | --inclu | --incl | --inc)
  201.     ac_prev=includedir ;;
  202.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  203.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  204.     includedir="$ac_optarg" ;;
  205.  
  206.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  207.     ac_prev=infodir ;;
  208.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  209.     infodir="$ac_optarg" ;;
  210.  
  211.   -libdir | --libdir | --libdi | --libd)
  212.     ac_prev=libdir ;;
  213.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  214.     libdir="$ac_optarg" ;;
  215.  
  216.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  217.   | --libexe | --libex | --libe)
  218.     ac_prev=libexecdir ;;
  219.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  220.   | --libexe=* | --libex=* | --libe=*)
  221.     libexecdir="$ac_optarg" ;;
  222.  
  223.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  224.   | --localstate | --localstat | --localsta | --localst \
  225.   | --locals | --local | --loca | --loc | --lo)
  226.     ac_prev=localstatedir ;;
  227.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  228.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  229.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  230.     localstatedir="$ac_optarg" ;;
  231.  
  232.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  233.     ac_prev=mandir ;;
  234.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  235.     mandir="$ac_optarg" ;;
  236.  
  237.   -nfp | --nfp | --nf)
  238.     # Obsolete; use --without-fp.
  239.     with_fp=no ;;
  240.  
  241.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  242.   | --no-cr | --no-c)
  243.     no_create=yes ;;
  244.  
  245.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  246.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  247.     no_recursion=yes ;;
  248.  
  249.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  250.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  251.   | --oldin | --oldi | --old | --ol | --o)
  252.     ac_prev=oldincludedir ;;
  253.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  254.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  255.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  256.     oldincludedir="$ac_optarg" ;;
  257.  
  258.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  259.     ac_prev=prefix ;;
  260.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  261.     prefix="$ac_optarg" ;;
  262.  
  263.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  264.   | --program-pre | --program-pr | --program-p)
  265.     ac_prev=program_prefix ;;
  266.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  267.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  268.     program_prefix="$ac_optarg" ;;
  269.  
  270.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  271.   | --program-suf | --program-su | --program-s)
  272.     ac_prev=program_suffix ;;
  273.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  274.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  275.     program_suffix="$ac_optarg" ;;
  276.  
  277.   -program-transform-name | --program-transform-name \
  278.   | --program-transform-nam | --program-transform-na \
  279.   | --program-transform-n | --program-transform- \
  280.   | --program-transform | --program-transfor \
  281.   | --program-transfo | --program-transf \
  282.   | --program-trans | --program-tran \
  283.   | --progr-tra | --program-tr | --program-t)
  284.     ac_prev=program_transform_name ;;
  285.   -program-transform-name=* | --program-transform-name=* \
  286.   | --program-transform-nam=* | --program-transform-na=* \
  287.   | --program-transform-n=* | --program-transform-=* \
  288.   | --program-transform=* | --program-transfor=* \
  289.   | --program-transfo=* | --program-transf=* \
  290.   | --program-trans=* | --program-tran=* \
  291.   | --progr-tra=* | --program-tr=* | --program-t=*)
  292.     program_transform_name="$ac_optarg" ;;
  293.  
  294.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  295.   | -silent | --silent | --silen | --sile | --sil)
  296.     silent=yes ;;
  297.  
  298.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  299.     ac_prev=sbindir ;;
  300.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  301.   | --sbi=* | --sb=*)
  302.     sbindir="$ac_optarg" ;;
  303.  
  304.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  305.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  306.   | --sharedst | --shareds | --shared | --share | --shar \
  307.   | --sha | --sh)
  308.     ac_prev=sharedstatedir ;;
  309.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  310.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  311.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  312.   | --sha=* | --sh=*)
  313.     sharedstatedir="$ac_optarg" ;;
  314.  
  315.   -site | --site | --sit)
  316.     ac_prev=site ;;
  317.   -site=* | --site=* | --sit=*)
  318.     site="$ac_optarg" ;;
  319.  
  320.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  321.     ac_prev=srcdir ;;
  322.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  323.     srcdir="$ac_optarg" ;;
  324.  
  325.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  326.   | --syscon | --sysco | --sysc | --sys | --sy)
  327.     ac_prev=sysconfdir ;;
  328.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  329.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  330.     sysconfdir="$ac_optarg" ;;
  331.  
  332.   -target | --target | --targe | --targ | --tar | --ta | --t)
  333.     ac_prev=target ;;
  334.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  335.     target="$ac_optarg" ;;
  336.  
  337.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  338.     verbose=yes ;;
  339.  
  340.   -version | --version | --versio | --versi | --vers)
  341.     echo "configure generated by autoconf version 2.12"
  342.     exit 0 ;;
  343.  
  344.   -with-* | --with-*)
  345.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  346.     # Reject names that are not valid shell variable names.
  347.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  348.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  349.     fi
  350.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  351.     case "$ac_option" in
  352.       *=*) ;;
  353.       *) ac_optarg=yes ;;
  354.     esac
  355.     eval "with_${ac_package}='$ac_optarg'" ;;
  356.  
  357.   -without-* | --without-*)
  358.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  359.     # Reject names that are not valid shell variable names.
  360.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  361.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  362.     fi
  363.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  364.     eval "with_${ac_package}=no" ;;
  365.  
  366.   --x)
  367.     # Obsolete; use --with-x.
  368.     with_x=yes ;;
  369.  
  370.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  371.   | --x-incl | --x-inc | --x-in | --x-i)
  372.     ac_prev=x_includes ;;
  373.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  374.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  375.     x_includes="$ac_optarg" ;;
  376.  
  377.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  378.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  379.     ac_prev=x_libraries ;;
  380.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  381.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  382.     x_libraries="$ac_optarg" ;;
  383.  
  384.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  385.     ;;
  386.  
  387.   *)
  388.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  389.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  390.     fi
  391.     if test "x$nonopt" != xNONE; then
  392.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  393.     fi
  394.     nonopt="$ac_option"
  395.     ;;
  396.  
  397.   esac
  398. done
  399.  
  400. if test -n "$ac_prev"; then
  401.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  402. fi
  403.  
  404. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  405.  
  406. # File descriptor usage:
  407. # 0 standard input
  408. # 1 file creation
  409. # 2 errors and warnings
  410. # 3 some systems may open it to /dev/tty
  411. # 4 used on the Kubota Titan
  412. # 6 checking for... messages and results
  413. # 5 compiler messages saved in config.log
  414. if test "$silent" = yes; then
  415.   exec 6>/dev/null
  416. else
  417.   exec 6>&1
  418. fi
  419. exec 5>./config.log
  420.  
  421. echo "\
  422. This file contains any messages produced by compilers while
  423. running configure, to aid debugging if configure makes a mistake.
  424. " 1>&5
  425.  
  426. # Strip out --no-create and --no-recursion so they do not pile up.
  427. # Also quote any args containing shell metacharacters.
  428. ac_configure_args=
  429. for ac_arg
  430. do
  431.   case "$ac_arg" in
  432.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  433.   | --no-cr | --no-c) ;;
  434.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  435.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  436.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  437.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  438.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  439.   esac
  440. done
  441.  
  442. # NLS nuisances.
  443. # Only set these to C if already set.  These must not be set unconditionally
  444. # because not all systems understand e.g. LANG=C (notably SCO).
  445. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  446. # Non-C LC_CTYPE values break the ctype check.
  447. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  448. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  449. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  450. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  451.  
  452. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  453. rm -rf conftest* confdefs.h
  454. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  455. echo > confdefs.h
  456.  
  457. # A filename unique to this package, relative to the directory that
  458. # configure is in, which we can look for to find out if srcdir is correct.
  459. ac_unique_file=buffer.c
  460.  
  461. # Find the source files, if location was not specified.
  462. if test -z "$srcdir"; then
  463.   ac_srcdir_defaulted=yes
  464.   # Try the directory containing this script, then its parent.
  465.   ac_prog=$0
  466.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  467.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  468.   srcdir=$ac_confdir
  469.   if test ! -r $srcdir/$ac_unique_file; then
  470.     srcdir=..
  471.   fi
  472. else
  473.   ac_srcdir_defaulted=no
  474. fi
  475. if test ! -r $srcdir/$ac_unique_file; then
  476.   if test "$ac_srcdir_defaulted" = yes; then
  477.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  478.   else
  479.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  480.   fi
  481. fi
  482. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  483.  
  484. # Prefer explicitly selected file to automatically selected ones.
  485. if test -z "$CONFIG_SITE"; then
  486.   if test "x$prefix" != xNONE; then
  487.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  488.   else
  489.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  490.   fi
  491. fi
  492. for ac_site_file in $CONFIG_SITE; do
  493.   if test -r "$ac_site_file"; then
  494.     echo "loading site script $ac_site_file"
  495.     . "$ac_site_file"
  496.   fi
  497. done
  498.  
  499. if test -r "$cache_file"; then
  500.   echo "loading cache $cache_file"
  501.   . $cache_file
  502. else
  503.   echo "creating cache $cache_file"
  504.   > $cache_file
  505. fi
  506.  
  507. ac_ext=c
  508. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  509. ac_cpp='$CPP $CPPFLAGS'
  510. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  511. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  512. cross_compiling=$ac_cv_prog_cc_cross
  513.  
  514. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  515.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  516.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  517.     ac_n= ac_c='
  518. ' ac_t='    '
  519.   else
  520.     ac_n=-n ac_c= ac_t=
  521.   fi
  522. else
  523.   ac_n= ac_c='\c' ac_t=
  524. fi
  525.  
  526.  
  527.  
  528.  
  529.  
  530. # Extract the first word of "gcc", so it can be a program name with args.
  531. set dummy gcc; ac_word=$2
  532. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  533. echo "configure:534: checking for $ac_word" >&5
  534. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  535.   echo $ac_n "(cached) $ac_c" 1>&6
  536. else
  537.   if test -n "$CC"; then
  538.   ac_cv_prog_CC="$CC" # Let the user override the test.
  539. else
  540.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  541.   for ac_dir in $PATH; do
  542.     test -z "$ac_dir" && ac_dir=.
  543.     if test -f $ac_dir/$ac_word; then
  544.       ac_cv_prog_CC="gcc"
  545.       break
  546.     fi
  547.   done
  548.   IFS="$ac_save_ifs"
  549. fi
  550. fi
  551. CC="$ac_cv_prog_CC"
  552. if test -n "$CC"; then
  553.   echo "$ac_t""$CC" 1>&6
  554. else
  555.   echo "$ac_t""no" 1>&6
  556. fi
  557.  
  558. if test -z "$CC"; then
  559.   # Extract the first word of "cc", so it can be a program name with args.
  560. set dummy cc; ac_word=$2
  561. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  562. echo "configure:563: checking for $ac_word" >&5
  563. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  564.   echo $ac_n "(cached) $ac_c" 1>&6
  565. else
  566.   if test -n "$CC"; then
  567.   ac_cv_prog_CC="$CC" # Let the user override the test.
  568. else
  569.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  570.   ac_prog_rejected=no
  571.   for ac_dir in $PATH; do
  572.     test -z "$ac_dir" && ac_dir=.
  573.     if test -f $ac_dir/$ac_word; then
  574.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  575.         ac_prog_rejected=yes
  576.     continue
  577.       fi
  578.       ac_cv_prog_CC="cc"
  579.       break
  580.     fi
  581.   done
  582.   IFS="$ac_save_ifs"
  583. if test $ac_prog_rejected = yes; then
  584.   # We found a bogon in the path, so make sure we never use it.
  585.   set dummy $ac_cv_prog_CC
  586.   shift
  587.   if test $# -gt 0; then
  588.     # We chose a different compiler from the bogus one.
  589.     # However, it has the same basename, so the bogon will be chosen
  590.     # first if we set CC to just the basename; use the full file name.
  591.     shift
  592.     set dummy "$ac_dir/$ac_word" "$@"
  593.     shift
  594.     ac_cv_prog_CC="$@"
  595.   fi
  596. fi
  597. fi
  598. fi
  599. CC="$ac_cv_prog_CC"
  600. if test -n "$CC"; then
  601.   echo "$ac_t""$CC" 1>&6
  602. else
  603.   echo "$ac_t""no" 1>&6
  604. fi
  605.  
  606.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  607. fi
  608.  
  609. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  610. echo "configure:611: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  611.  
  612. ac_ext=c
  613. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  614. ac_cpp='$CPP $CPPFLAGS'
  615. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  616. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  617. cross_compiling=$ac_cv_prog_cc_cross
  618.  
  619. cat > conftest.$ac_ext <<EOF
  620. #line 621 "configure"
  621. #include "confdefs.h"
  622. main(){return(0);}
  623. EOF
  624. if { (eval echo configure:625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  625.   ac_cv_prog_cc_works=yes
  626.   # If we can't run a trivial program, we are probably using a cross compiler.
  627.   if (./conftest; exit) 2>/dev/null; then
  628.     ac_cv_prog_cc_cross=no
  629.   else
  630.     ac_cv_prog_cc_cross=yes
  631.   fi
  632. else
  633.   echo "configure: failed program was:" >&5
  634.   cat conftest.$ac_ext >&5
  635.   ac_cv_prog_cc_works=no
  636. fi
  637. rm -fr conftest*
  638.  
  639. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  640. if test $ac_cv_prog_cc_works = no; then
  641.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  642. fi
  643. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  644. echo "configure:645: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  645. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  646. cross_compiling=$ac_cv_prog_cc_cross
  647.  
  648. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  649. echo "configure:650: checking whether we are using GNU C" >&5
  650. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  651.   echo $ac_n "(cached) $ac_c" 1>&6
  652. else
  653.   cat > conftest.c <<EOF
  654. #ifdef __GNUC__
  655.   yes;
  656. #endif
  657. EOF
  658. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  659.   ac_cv_prog_gcc=yes
  660. else
  661.   ac_cv_prog_gcc=no
  662. fi
  663. fi
  664.  
  665. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  666.  
  667. if test $ac_cv_prog_gcc = yes; then
  668.   GCC=yes
  669.   ac_test_CFLAGS="${CFLAGS+set}"
  670.   ac_save_CFLAGS="$CFLAGS"
  671.   CFLAGS=
  672.   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  673. echo "configure:674: checking whether ${CC-cc} accepts -g" >&5
  674. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  675.   echo $ac_n "(cached) $ac_c" 1>&6
  676. else
  677.   echo 'void f(){}' > conftest.c
  678. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  679.   ac_cv_prog_cc_g=yes
  680. else
  681.   ac_cv_prog_cc_g=no
  682. fi
  683. rm -f conftest*
  684.  
  685. fi
  686.  
  687. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  688.   if test "$ac_test_CFLAGS" = set; then
  689.     CFLAGS="$ac_save_CFLAGS"
  690.   elif test $ac_cv_prog_cc_g = yes; then
  691.     CFLAGS="-g -O2"
  692.   else
  693.     CFLAGS="-O2"
  694.   fi
  695. else
  696.   GCC=
  697.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  698. fi
  699.  
  700. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  701. echo "configure:702: checking how to run the C preprocessor" >&5
  702. # On Suns, sometimes $CPP names a directory.
  703. if test -n "$CPP" && test -d "$CPP"; then
  704.   CPP=
  705. fi
  706. if test -z "$CPP"; then
  707. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  708.   echo $ac_n "(cached) $ac_c" 1>&6
  709. else
  710.     # This must be in double quotes, not single quotes, because CPP may get
  711.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  712.   CPP="${CC-cc} -E"
  713.   # On the NeXT, cc -E runs the code through the compiler's parser,
  714.   # not just through cpp.
  715.   cat > conftest.$ac_ext <<EOF
  716. #line 717 "configure"
  717. #include "confdefs.h"
  718. #include <assert.h>
  719. Syntax Error
  720. EOF
  721. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  722. { (eval echo configure:723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  723. ac_err=`grep -v '^ *+' conftest.out`
  724. if test -z "$ac_err"; then
  725.   :
  726. else
  727.   echo "$ac_err" >&5
  728.   echo "configure: failed program was:" >&5
  729.   cat conftest.$ac_ext >&5
  730.   rm -rf conftest*
  731.   CPP="${CC-cc} -E -traditional-cpp"
  732.   cat > conftest.$ac_ext <<EOF
  733. #line 734 "configure"
  734. #include "confdefs.h"
  735. #include <assert.h>
  736. Syntax Error
  737. EOF
  738. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  739. { (eval echo configure:740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  740. ac_err=`grep -v '^ *+' conftest.out`
  741. if test -z "$ac_err"; then
  742.   :
  743. else
  744.   echo "$ac_err" >&5
  745.   echo "configure: failed program was:" >&5
  746.   cat conftest.$ac_ext >&5
  747.   rm -rf conftest*
  748.   CPP=/lib/cpp
  749. fi
  750. rm -f conftest*
  751. fi
  752. rm -f conftest*
  753.   ac_cv_prog_CPP="$CPP"
  754. fi
  755.   CPP="$ac_cv_prog_CPP"
  756. else
  757.   ac_cv_prog_CPP="$CPP"
  758. fi
  759. echo "$ac_t""$CPP" 1>&6
  760.  
  761. if test $ac_cv_prog_gcc = yes; then
  762.     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  763. echo "configure:764: checking whether ${CC-cc} needs -traditional" >&5
  764. if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  765.   echo $ac_n "(cached) $ac_c" 1>&6
  766. else
  767.     ac_pattern="Autoconf.*'x'"
  768.   cat > conftest.$ac_ext <<EOF
  769. #line 770 "configure"
  770. #include "confdefs.h"
  771. #include <sgtty.h>
  772. Autoconf TIOCGETP
  773. EOF
  774. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  775.   egrep "$ac_pattern" >/dev/null 2>&1; then
  776.   rm -rf conftest*
  777.   ac_cv_prog_gcc_traditional=yes
  778. else
  779.   rm -rf conftest*
  780.   ac_cv_prog_gcc_traditional=no
  781. fi
  782. rm -f conftest*
  783.  
  784.  
  785.   if test $ac_cv_prog_gcc_traditional = no; then
  786.     cat > conftest.$ac_ext <<EOF
  787. #line 788 "configure"
  788. #include "confdefs.h"
  789. #include <termio.h>
  790. Autoconf TCGETA
  791. EOF
  792. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  793.   egrep "$ac_pattern" >/dev/null 2>&1; then
  794.   rm -rf conftest*
  795.   ac_cv_prog_gcc_traditional=yes
  796. fi
  797. rm -f conftest*
  798.  
  799.   fi
  800. fi
  801.  
  802. echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  803.   if test $ac_cv_prog_gcc_traditional = yes; then
  804.     CC="$CC -traditional"
  805.   fi
  806. fi
  807.  
  808. ac_aux_dir=
  809. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  810.   if test -f $ac_dir/install-sh; then
  811.     ac_aux_dir=$ac_dir
  812.     ac_install_sh="$ac_aux_dir/install-sh -c"
  813.     break
  814.   elif test -f $ac_dir/install.sh; then
  815.     ac_aux_dir=$ac_dir
  816.     ac_install_sh="$ac_aux_dir/install.sh -c"
  817.     break
  818.   fi
  819. done
  820. if test -z "$ac_aux_dir"; then
  821.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  822. fi
  823. ac_config_guess=$ac_aux_dir/config.guess
  824. ac_config_sub=$ac_aux_dir/config.sub
  825. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  826.  
  827. # Find a good install program.  We prefer a C program (faster),
  828. # so one script is as good as another.  But avoid the broken or
  829. # incompatible versions:
  830. # SysV /etc/install, /usr/sbin/install
  831. # SunOS /usr/etc/install
  832. # IRIX /sbin/install
  833. # AIX /bin/install
  834. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  835. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  836. # ./install, which can be erroneously created by make from ./install.sh.
  837. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  838. echo "configure:839: checking for a BSD compatible install" >&5
  839. if test -z "$INSTALL"; then
  840. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  841.   echo $ac_n "(cached) $ac_c" 1>&6
  842. else
  843.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
  844.   for ac_dir in $PATH; do
  845.     # Account for people who put trailing slashes in PATH elements.
  846.     case "$ac_dir/" in
  847.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  848.     *)
  849.       # OSF1 and SCO ODT 3.0 have their own names for install.
  850.       for ac_prog in ginstall installbsd scoinst install; do
  851.         if test -f $ac_dir/$ac_prog; then
  852.       if test $ac_prog = install &&
  853.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  854.         # AIX install.  It has an incompatible calling convention.
  855.         # OSF/1 installbsd also uses dspmsg, but is usable.
  856.         :
  857.       else
  858.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  859.         break 2
  860.       fi
  861.     fi
  862.       done
  863.       ;;
  864.     esac
  865.   done
  866.   IFS="$ac_save_IFS"
  867.  
  868. fi
  869.   if test "${ac_cv_path_install+set}" = set; then
  870.     INSTALL="$ac_cv_path_install"
  871.   else
  872.     # As a last resort, use the slow shell script.  We don't cache a
  873.     # path for INSTALL within a source directory, because that will
  874.     # break other packages using the cache if that directory is
  875.     # removed, or if the path is relative.
  876.     INSTALL="$ac_install_sh"
  877.   fi
  878. fi
  879. echo "$ac_t""$INSTALL" 1>&6
  880.  
  881. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  882. # It thinks the first close brace ends the variable substitution.
  883. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  884.  
  885. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  886.  
  887. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  888. echo "configure:889: checking whether ln -s works" >&5
  889. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  890.   echo $ac_n "(cached) $ac_c" 1>&6
  891. else
  892.   rm -f conftestdata
  893. if ln -s X conftestdata 2>/dev/null
  894. then
  895.   rm -f conftestdata
  896.   ac_cv_prog_LN_S="ln -s"
  897. else
  898.   ac_cv_prog_LN_S=ln
  899. fi
  900. fi
  901. LN_S="$ac_cv_prog_LN_S"
  902. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  903.   echo "$ac_t""yes" 1>&6
  904. else
  905.   echo "$ac_t""no" 1>&6
  906. fi
  907.  
  908.  
  909. echo $ac_n "checking for AIX""... $ac_c" 1>&6
  910. echo "configure:911: checking for AIX" >&5
  911. cat > conftest.$ac_ext <<EOF
  912. #line 913 "configure"
  913. #include "confdefs.h"
  914. #ifdef _AIX
  915.   yes
  916. #endif
  917.  
  918. EOF
  919. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  920.   egrep "yes" >/dev/null 2>&1; then
  921.   rm -rf conftest*
  922.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  923. #define _ALL_SOURCE 1
  924. EOF
  925.  
  926. else
  927.   rm -rf conftest*
  928.   echo "$ac_t""no" 1>&6
  929. fi
  930. rm -f conftest*
  931.  
  932.  
  933. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  934. echo "configure:935: checking for POSIXized ISC" >&5
  935. if test -d /etc/conf/kconfig.d &&
  936.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  937. then
  938.   echo "$ac_t""yes" 1>&6
  939.   ISC=yes # If later tests want to check for ISC.
  940.   cat >> confdefs.h <<\EOF
  941. #define _POSIX_SOURCE 1
  942. EOF
  943.  
  944.   if test "$GCC" = yes; then
  945.     CC="$CC -posix"
  946.   else
  947.     CC="$CC -Xp"
  948.   fi
  949. else
  950.   echo "$ac_t""no" 1>&6
  951.   ISC=
  952. fi
  953.  
  954. ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
  955. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  956. echo "configure:957: checking for minix/config.h" >&5
  957. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  958.   echo $ac_n "(cached) $ac_c" 1>&6
  959. else
  960.   cat > conftest.$ac_ext <<EOF
  961. #line 962 "configure"
  962. #include "confdefs.h"
  963. #include <minix/config.h>
  964. EOF
  965. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  966. { (eval echo configure:967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  967. ac_err=`grep -v '^ *+' conftest.out`
  968. if test -z "$ac_err"; then
  969.   rm -rf conftest*
  970.   eval "ac_cv_header_$ac_safe=yes"
  971. else
  972.   echo "$ac_err" >&5
  973.   echo "configure: failed program was:" >&5
  974.   cat conftest.$ac_ext >&5
  975.   rm -rf conftest*
  976.   eval "ac_cv_header_$ac_safe=no"
  977. fi
  978. rm -f conftest*
  979. fi
  980. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  981.   echo "$ac_t""yes" 1>&6
  982.   MINIX=yes
  983. else
  984.   echo "$ac_t""no" 1>&6
  985. MINIX=
  986. fi
  987.  
  988. if test "$MINIX" = yes; then
  989.   cat >> confdefs.h <<\EOF
  990. #define _POSIX_SOURCE 1
  991. EOF
  992.  
  993.   cat >> confdefs.h <<\EOF
  994. #define _POSIX_1_SOURCE 2
  995. EOF
  996.  
  997.   cat >> confdefs.h <<\EOF
  998. #define _MINIX 1
  999. EOF
  1000.  
  1001. fi
  1002.  
  1003.  
  1004. # Do some error checking and defaulting for the host and target type.
  1005. # The inputs are:
  1006. #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
  1007. #
  1008. # The rules are:
  1009. # 1. You are not allowed to specify --host, --target, and nonopt at the
  1010. #    same time.
  1011. # 2. Host defaults to nonopt.
  1012. # 3. If nonopt is not specified, then host defaults to the current host,
  1013. #    as determined by config.guess.
  1014. # 4. Target and build default to nonopt.
  1015. # 5. If nonopt is not specified, then target and build default to host.
  1016.  
  1017. # The aliases save the names the user supplied, while $host etc.
  1018. # will get canonicalized.
  1019. case $host---$target---$nonopt in
  1020. NONE---*---* | *---NONE---* | *---*---NONE) ;;
  1021. *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
  1022. esac
  1023.  
  1024.  
  1025. # Make sure we can run config.sub.
  1026. if $ac_config_sub sun4 >/dev/null 2>&1; then :
  1027. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  1028. fi
  1029.  
  1030. echo $ac_n "checking host system type""... $ac_c" 1>&6
  1031. echo "configure:1032: checking host system type" >&5
  1032.  
  1033. host_alias=$host
  1034. case "$host_alias" in
  1035. NONE)
  1036.   case $nonopt in
  1037.   NONE)
  1038.     if host_alias=`$ac_config_guess`; then :
  1039.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  1040.     fi ;;
  1041.   *) host_alias=$nonopt ;;
  1042.   esac ;;
  1043. esac
  1044.  
  1045. host=`$ac_config_sub $host_alias`
  1046. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1047. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1048. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1049. echo "$ac_t""$host" 1>&6
  1050.  
  1051. echo $ac_n "checking target system type""... $ac_c" 1>&6
  1052. echo "configure:1053: checking target system type" >&5
  1053.  
  1054. target_alias=$target
  1055. case "$target_alias" in
  1056. NONE)
  1057.   case $nonopt in
  1058.   NONE) target_alias=$host_alias ;;
  1059.   *) target_alias=$nonopt ;;
  1060.   esac ;;
  1061. esac
  1062.  
  1063. target=`$ac_config_sub $target_alias`
  1064. target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1065. target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1066. target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1067. echo "$ac_t""$target" 1>&6
  1068.  
  1069. echo $ac_n "checking build system type""... $ac_c" 1>&6
  1070. echo "configure:1071: checking build system type" >&5
  1071.  
  1072. build_alias=$build
  1073. case "$build_alias" in
  1074. NONE)
  1075.   case $nonopt in
  1076.   NONE) build_alias=$host_alias ;;
  1077.   *) build_alias=$nonopt ;;
  1078.   esac ;;
  1079. esac
  1080.  
  1081. build=`$ac_config_sub $build_alias`
  1082. build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1083. build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1084. build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1085. echo "$ac_t""$build" 1>&6
  1086.  
  1087. test "$host_alias" != "$target_alias" &&
  1088.   test "$program_prefix$program_suffix$program_transform_name" = \
  1089.     NONENONEs,x,x, &&
  1090.   program_prefix=${target_alias}-
  1091.  
  1092.  
  1093. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1094. echo "configure:1095: checking for working const" >&5
  1095. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1096.   echo $ac_n "(cached) $ac_c" 1>&6
  1097. else
  1098.   cat > conftest.$ac_ext <<EOF
  1099. #line 1100 "configure"
  1100. #include "confdefs.h"
  1101.  
  1102. int main() {
  1103.  
  1104. /* Ultrix mips cc rejects this.  */
  1105. typedef int charset[2]; const charset x;
  1106. /* SunOS 4.1.1 cc rejects this.  */
  1107. char const *const *ccp;
  1108. char **p;
  1109. /* NEC SVR4.0.2 mips cc rejects this.  */
  1110. struct point {int x, y;};
  1111. static struct point const zero = {0,0};
  1112. /* AIX XL C 1.02.0.0 rejects this.
  1113.    It does not let you subtract one const X* pointer from another in an arm
  1114.    of an if-expression whose if-part is not a constant expression */
  1115. const char *g = "string";
  1116. ccp = &g + (g ? g-g : 0);
  1117. /* HPUX 7.0 cc rejects these. */
  1118. ++ccp;
  1119. p = (char**) ccp;
  1120. ccp = (char const *const *) p;
  1121. { /* SCO 3.2v4 cc rejects this.  */
  1122.   char *t;
  1123.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  1124.  
  1125.   *t++ = 0;
  1126. }
  1127. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  1128.   int x[] = {25, 17};
  1129.   const int *foo = &x[0];
  1130.   ++foo;
  1131. }
  1132. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1133.   typedef const int *iptr;
  1134.   iptr p = 0;
  1135.   ++p;
  1136. }
  1137. { /* AIX XL C 1.02.0.0 rejects this saying
  1138.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1139.   struct s { int j; const int *ap[3]; };
  1140.   struct s *b; b->j = 5;
  1141. }
  1142. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1143.   const int foo = 10;
  1144. }
  1145.  
  1146. ; return 0; }
  1147. EOF
  1148. if { (eval echo configure:1149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1149.   rm -rf conftest*
  1150.   ac_cv_c_const=yes
  1151. else
  1152.   echo "configure: failed program was:" >&5
  1153.   cat conftest.$ac_ext >&5
  1154.   rm -rf conftest*
  1155.   ac_cv_c_const=no
  1156. fi
  1157. rm -f conftest*
  1158. fi
  1159.  
  1160. echo "$ac_t""$ac_cv_c_const" 1>&6
  1161. if test $ac_cv_c_const = no; then
  1162.   cat >> confdefs.h <<\EOF
  1163. #define const 
  1164. EOF
  1165.  
  1166. fi
  1167.  
  1168. echo $ac_n "checking for inline""... $ac_c" 1>&6
  1169. echo "configure:1170: checking for inline" >&5
  1170. if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  1171.   echo $ac_n "(cached) $ac_c" 1>&6
  1172. else
  1173.   ac_cv_c_inline=no
  1174. for ac_kw in inline __inline__ __inline; do
  1175.   cat > conftest.$ac_ext <<EOF
  1176. #line 1177 "configure"
  1177. #include "confdefs.h"
  1178.  
  1179. int main() {
  1180. } $ac_kw foo() {
  1181. ; return 0; }
  1182. EOF
  1183. if { (eval echo configure:1184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1184.   rm -rf conftest*
  1185.   ac_cv_c_inline=$ac_kw; break
  1186. else
  1187.   echo "configure: failed program was:" >&5
  1188.   cat conftest.$ac_ext >&5
  1189. fi
  1190. rm -f conftest*
  1191. done
  1192.  
  1193. fi
  1194.  
  1195. echo "$ac_t""$ac_cv_c_inline" 1>&6
  1196. case "$ac_cv_c_inline" in
  1197.   inline | yes) ;;
  1198.   no) cat >> confdefs.h <<\EOF
  1199. #define inline 
  1200. EOF
  1201.  ;;
  1202.   *)  cat >> confdefs.h <<EOF
  1203. #define inline $ac_cv_c_inline
  1204. EOF
  1205.  ;;
  1206. esac
  1207.  
  1208.  
  1209.  
  1210. # Check whether --enable-xdf or --disable-xdf was given.
  1211. if test "${enable_xdf+set}" = set; then
  1212.   enableval="$enable_xdf"
  1213.   if test x$enableval = xyes; then
  1214.   cat >> confdefs.h <<\EOF
  1215. #define USE_XDF 1
  1216. EOF
  1217.  
  1218. fi
  1219. else
  1220.   cat >> confdefs.h <<\EOF
  1221. #define USE_XDF 1
  1222. EOF
  1223.  
  1224. fi
  1225.  
  1226.  
  1227.  
  1228. # Check whether --enable-vold or --disable-vold was given.
  1229. if test "${enable_vold+set}" = set; then
  1230.   enableval="$enable_vold"
  1231.   if test x$enableval = xyes; then
  1232.   cat >> confdefs.h <<\EOF
  1233. #define USING_VOLD 1
  1234. EOF
  1235.  
  1236. fi
  1237. fi
  1238.  
  1239.  
  1240. # Check whether --enable-debug or --disable-debug was given.
  1241. if test "${enable_debug+set}" = set; then
  1242.   enableval="$enable_debug"
  1243.   if test x$enableval = xyes; then
  1244.   cat >> confdefs.h <<\EOF
  1245. #define DEBUG 1
  1246. EOF
  1247.  
  1248. fi
  1249. fi
  1250.  
  1251.  
  1252.  
  1253. echo $ac_n "checking for getpwnam in -lsun""... $ac_c" 1>&6
  1254. echo "configure:1255: checking for getpwnam in -lsun" >&5
  1255. ac_lib_var=`echo sun'_'getpwnam | sed 'y%./+-%__p_%'`
  1256. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1257.   echo $ac_n "(cached) $ac_c" 1>&6
  1258. else
  1259.   ac_save_LIBS="$LIBS"
  1260. LIBS="-lsun  $LIBS"
  1261. cat > conftest.$ac_ext <<EOF
  1262. #line 1263 "configure"
  1263. #include "confdefs.h"
  1264. /* Override any gcc2 internal prototype to avoid an error.  */
  1265. /* We use char because int might match the return type of a gcc2
  1266.     builtin and then its argument prototype would still apply.  */
  1267. char getpwnam();
  1268.  
  1269. int main() {
  1270. getpwnam()
  1271. ; return 0; }
  1272. EOF
  1273. if { (eval echo configure:1274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1274.   rm -rf conftest*
  1275.   eval "ac_cv_lib_$ac_lib_var=yes"
  1276. else
  1277.   echo "configure: failed program was:" >&5
  1278.   cat conftest.$ac_ext >&5
  1279.   rm -rf conftest*
  1280.   eval "ac_cv_lib_$ac_lib_var=no"
  1281. fi
  1282. rm -f conftest*
  1283. LIBS="$ac_save_LIBS"
  1284.  
  1285. fi
  1286. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1287.   echo "$ac_t""yes" 1>&6
  1288.     ac_tr_lib=HAVE_LIB`echo sun | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1289.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1290.   cat >> confdefs.h <<EOF
  1291. #define $ac_tr_lib 1
  1292. EOF
  1293.  
  1294.   LIBS="-lsun $LIBS"
  1295.  
  1296. else
  1297.   echo "$ac_t""no" 1>&6
  1298. fi
  1299.  
  1300.  
  1301. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1302. echo "configure:1303: checking for ANSI C header files" >&5
  1303. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1304.   echo $ac_n "(cached) $ac_c" 1>&6
  1305. else
  1306.   cat > conftest.$ac_ext <<EOF
  1307. #line 1308 "configure"
  1308. #include "confdefs.h"
  1309. #include <stdlib.h>
  1310. #include <stdarg.h>
  1311. #include <string.h>
  1312. #include <float.h>
  1313. EOF
  1314. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1315. { (eval echo configure:1316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1316. ac_err=`grep -v '^ *+' conftest.out`
  1317. if test -z "$ac_err"; then
  1318.   rm -rf conftest*
  1319.   ac_cv_header_stdc=yes
  1320. else
  1321.   echo "$ac_err" >&5
  1322.   echo "configure: failed program was:" >&5
  1323.   cat conftest.$ac_ext >&5
  1324.   rm -rf conftest*
  1325.   ac_cv_header_stdc=no
  1326. fi
  1327. rm -f conftest*
  1328.  
  1329. if test $ac_cv_header_stdc = yes; then
  1330.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1331. cat > conftest.$ac_ext <<EOF
  1332. #line 1333 "configure"
  1333. #include "confdefs.h"
  1334. #include <string.h>
  1335. EOF
  1336. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1337.   egrep "memchr" >/dev/null 2>&1; then
  1338.   :
  1339. else
  1340.   rm -rf conftest*
  1341.   ac_cv_header_stdc=no
  1342. fi
  1343. rm -f conftest*
  1344.  
  1345. fi
  1346.  
  1347. if test $ac_cv_header_stdc = yes; then
  1348.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1349. cat > conftest.$ac_ext <<EOF
  1350. #line 1351 "configure"
  1351. #include "confdefs.h"
  1352. #include <stdlib.h>
  1353. EOF
  1354. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1355.   egrep "free" >/dev/null 2>&1; then
  1356.   :
  1357. else
  1358.   rm -rf conftest*
  1359.   ac_cv_header_stdc=no
  1360. fi
  1361. rm -f conftest*
  1362.  
  1363. fi
  1364.  
  1365. if test $ac_cv_header_stdc = yes; then
  1366.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1367. if test "$cross_compiling" = yes; then
  1368.   :
  1369. else
  1370.   cat > conftest.$ac_ext <<EOF
  1371. #line 1372 "configure"
  1372. #include "confdefs.h"
  1373. #include <ctype.h>
  1374. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1375. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1376. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1377. int main () { int i; for (i = 0; i < 256; i++)
  1378. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1379. exit (0); }
  1380.  
  1381. EOF
  1382. if { (eval echo configure:1383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  1383. then
  1384.   :
  1385. else
  1386.   echo "configure: failed program was:" >&5
  1387.   cat conftest.$ac_ext >&5
  1388.   rm -fr conftest*
  1389.   ac_cv_header_stdc=no
  1390. fi
  1391. rm -fr conftest*
  1392. fi
  1393.  
  1394. fi
  1395. fi
  1396.  
  1397. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1398. if test $ac_cv_header_stdc = yes; then
  1399.   cat >> confdefs.h <<\EOF
  1400. #define STDC_HEADERS 1
  1401. EOF
  1402.  
  1403. fi
  1404.  
  1405. echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
  1406. echo "configure:1407: checking for sys/wait.h that is POSIX.1 compatible" >&5
  1407. if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  1408.   echo $ac_n "(cached) $ac_c" 1>&6
  1409. else
  1410.   cat > conftest.$ac_ext <<EOF
  1411. #line 1412 "configure"
  1412. #include "confdefs.h"
  1413. #include <sys/types.h>
  1414. #include <sys/wait.h>
  1415. #ifndef WEXITSTATUS
  1416. #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  1417. #endif
  1418. #ifndef WIFEXITED
  1419. #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  1420. #endif
  1421. int main() {
  1422. int s;
  1423. wait (&s);
  1424. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  1425. ; return 0; }
  1426. EOF
  1427. if { (eval echo configure:1428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1428.   rm -rf conftest*
  1429.   ac_cv_header_sys_wait_h=yes
  1430. else
  1431.   echo "configure: failed program was:" >&5
  1432.   cat conftest.$ac_ext >&5
  1433.   rm -rf conftest*
  1434.   ac_cv_header_sys_wait_h=no
  1435. fi
  1436. rm -f conftest*
  1437. fi
  1438.  
  1439. echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
  1440. if test $ac_cv_header_sys_wait_h = yes; then
  1441.   cat >> confdefs.h <<\EOF
  1442. #define HAVE_SYS_WAIT_H 1
  1443. EOF
  1444.  
  1445. fi
  1446.  
  1447. for ac_hdr in getopt.h sys/stat.h stdlib.h unistd.h libc.h \
  1448. fcntl.h limits.h sys/file.h sys/ioctl.h sys/time.h strings.h string.h \
  1449. sys/param.h memory.h malloc.h signal.h sys/signal.h utime.h
  1450. do
  1451. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1452. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1453. echo "configure:1454: checking for $ac_hdr" >&5
  1454. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1455.   echo $ac_n "(cached) $ac_c" 1>&6
  1456. else
  1457.   cat > conftest.$ac_ext <<EOF
  1458. #line 1459 "configure"
  1459. #include "confdefs.h"
  1460. #include <$ac_hdr>
  1461. EOF
  1462. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1463. { (eval echo configure:1464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1464. ac_err=`grep -v '^ *+' conftest.out`
  1465. if test -z "$ac_err"; then
  1466.   rm -rf conftest*
  1467.   eval "ac_cv_header_$ac_safe=yes"
  1468. else
  1469.   echo "$ac_err" >&5
  1470.   echo "configure: failed program was:" >&5
  1471.   cat conftest.$ac_ext >&5
  1472.   rm -rf conftest*
  1473.   eval "ac_cv_header_$ac_safe=no"
  1474. fi
  1475. rm -f conftest*
  1476. fi
  1477. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1478.   echo "$ac_t""yes" 1>&6
  1479.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1480.   cat >> confdefs.h <<EOF
  1481. #define $ac_tr_hdr 1
  1482. EOF
  1483.  
  1484. else
  1485.   echo "$ac_t""no" 1>&6
  1486. fi
  1487. done
  1488.  
  1489. for ac_hdr in termio.h sys/termio.h termios.h sys/termios.h
  1490. do
  1491. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1492. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1493. echo "configure:1494: checking for $ac_hdr" >&5
  1494. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1495.   echo $ac_n "(cached) $ac_c" 1>&6
  1496. else
  1497.   cat > conftest.$ac_ext <<EOF
  1498. #line 1499 "configure"
  1499. #include "confdefs.h"
  1500. #include <$ac_hdr>
  1501. EOF
  1502. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1503. { (eval echo configure:1504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1504. ac_err=`grep -v '^ *+' conftest.out`
  1505. if test -z "$ac_err"; then
  1506.   rm -rf conftest*
  1507.   eval "ac_cv_header_$ac_safe=yes"
  1508. else
  1509.   echo "$ac_err" >&5
  1510.   echo "configure: failed program was:" >&5
  1511.   cat conftest.$ac_ext >&5
  1512.   rm -rf conftest*
  1513.   eval "ac_cv_header_$ac_safe=no"
  1514. fi
  1515. rm -f conftest*
  1516. fi
  1517. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1518.   echo "$ac_t""yes" 1>&6
  1519.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1520.   cat >> confdefs.h <<EOF
  1521. #define $ac_tr_hdr 1
  1522. EOF
  1523.  break
  1524. else
  1525.   echo "$ac_t""no" 1>&6
  1526. fi
  1527. done
  1528.  
  1529.  
  1530. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1531. echo "configure:1532: checking for working const" >&5
  1532. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1533.   echo $ac_n "(cached) $ac_c" 1>&6
  1534. else
  1535.   cat > conftest.$ac_ext <<EOF
  1536. #line 1537 "configure"
  1537. #include "confdefs.h"
  1538.  
  1539. int main() {
  1540.  
  1541. /* Ultrix mips cc rejects this.  */
  1542. typedef int charset[2]; const charset x;
  1543. /* SunOS 4.1.1 cc rejects this.  */
  1544. char const *const *ccp;
  1545. char **p;
  1546. /* NEC SVR4.0.2 mips cc rejects this.  */
  1547. struct point {int x, y;};
  1548. static struct point const zero = {0,0};
  1549. /* AIX XL C 1.02.0.0 rejects this.
  1550.    It does not let you subtract one const X* pointer from another in an arm
  1551.    of an if-expression whose if-part is not a constant expression */
  1552. const char *g = "string";
  1553. ccp = &g + (g ? g-g : 0);
  1554. /* HPUX 7.0 cc rejects these. */
  1555. ++ccp;
  1556. p = (char**) ccp;
  1557. ccp = (char const *const *) p;
  1558. { /* SCO 3.2v4 cc rejects this.  */
  1559.   char *t;
  1560.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  1561.  
  1562.   *t++ = 0;
  1563. }
  1564. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  1565.   int x[] = {25, 17};
  1566.   const int *foo = &x[0];
  1567.   ++foo;
  1568. }
  1569. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1570.   typedef const int *iptr;
  1571.   iptr p = 0;
  1572.   ++p;
  1573. }
  1574. { /* AIX XL C 1.02.0.0 rejects this saying
  1575.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1576.   struct s { int j; const int *ap[3]; };
  1577.   struct s *b; b->j = 5;
  1578. }
  1579. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1580.   const int foo = 10;
  1581. }
  1582.  
  1583. ; return 0; }
  1584. EOF
  1585. if { (eval echo configure:1586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1586.   rm -rf conftest*
  1587.   ac_cv_c_const=yes
  1588. else
  1589.   echo "configure: failed program was:" >&5
  1590.   cat conftest.$ac_ext >&5
  1591.   rm -rf conftest*
  1592.   ac_cv_c_const=no
  1593. fi
  1594. rm -f conftest*
  1595. fi
  1596.  
  1597. echo "$ac_t""$ac_cv_c_const" 1>&6
  1598. if test $ac_cv_c_const = no; then
  1599.   cat >> confdefs.h <<\EOF
  1600. #define const 
  1601. EOF
  1602.  
  1603. fi
  1604.  
  1605. echo $ac_n "checking for inline""... $ac_c" 1>&6
  1606. echo "configure:1607: checking for inline" >&5
  1607. if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  1608.   echo $ac_n "(cached) $ac_c" 1>&6
  1609. else
  1610.   ac_cv_c_inline=no
  1611. for ac_kw in inline __inline__ __inline; do
  1612.   cat > conftest.$ac_ext <<EOF
  1613. #line 1614 "configure"
  1614. #include "confdefs.h"
  1615.  
  1616. int main() {
  1617. } $ac_kw foo() {
  1618. ; return 0; }
  1619. EOF
  1620. if { (eval echo configure:1621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1621.   rm -rf conftest*
  1622.   ac_cv_c_inline=$ac_kw; break
  1623. else
  1624.   echo "configure: failed program was:" >&5
  1625.   cat conftest.$ac_ext >&5
  1626. fi
  1627. rm -f conftest*
  1628. done
  1629.  
  1630. fi
  1631.  
  1632. echo "$ac_t""$ac_cv_c_inline" 1>&6
  1633. case "$ac_cv_c_inline" in
  1634.   inline | yes) ;;
  1635.   no) cat >> confdefs.h <<\EOF
  1636. #define inline 
  1637. EOF
  1638.  ;;
  1639.   *)  cat >> confdefs.h <<EOF
  1640. #define inline $ac_cv_c_inline
  1641. EOF
  1642.  ;;
  1643. esac
  1644.  
  1645. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  1646. echo "configure:1647: checking for size_t" >&5
  1647. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  1648.   echo $ac_n "(cached) $ac_c" 1>&6
  1649. else
  1650.   cat > conftest.$ac_ext <<EOF
  1651. #line 1652 "configure"
  1652. #include "confdefs.h"
  1653. #include <sys/types.h>
  1654. #if STDC_HEADERS
  1655. #include <stdlib.h>
  1656. #include <stddef.h>
  1657. #endif
  1658. EOF
  1659. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1660.   egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  1661.   rm -rf conftest*
  1662.   ac_cv_type_size_t=yes
  1663. else
  1664.   rm -rf conftest*
  1665.   ac_cv_type_size_t=no
  1666. fi
  1667. rm -f conftest*
  1668.  
  1669. fi
  1670. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  1671. if test $ac_cv_type_size_t = no; then
  1672.   cat >> confdefs.h <<\EOF
  1673. #define size_t unsigned
  1674. EOF
  1675.  
  1676. fi
  1677.  
  1678. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  1679. echo "configure:1680: checking whether time.h and sys/time.h may both be included" >&5
  1680. if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  1681.   echo $ac_n "(cached) $ac_c" 1>&6
  1682. else
  1683.   cat > conftest.$ac_ext <<EOF
  1684. #line 1685 "configure"
  1685. #include "confdefs.h"
  1686. #include <sys/types.h>
  1687. #include <sys/time.h>
  1688. #include <time.h>
  1689. int main() {
  1690. struct tm *tp;
  1691. ; return 0; }
  1692. EOF
  1693. if { (eval echo configure:1694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1694.   rm -rf conftest*
  1695.   ac_cv_header_time=yes
  1696. else
  1697.   echo "configure: failed program was:" >&5
  1698.   cat conftest.$ac_ext >&5
  1699.   rm -rf conftest*
  1700.   ac_cv_header_time=no
  1701. fi
  1702. rm -f conftest*
  1703. fi
  1704.  
  1705. echo "$ac_t""$ac_cv_header_time" 1>&6
  1706. if test $ac_cv_header_time = yes; then
  1707.   cat >> confdefs.h <<\EOF
  1708. #define TIME_WITH_SYS_TIME 1
  1709. EOF
  1710.  
  1711. fi
  1712.  
  1713. echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
  1714. echo "configure:1715: checking whether struct tm is in sys/time.h or time.h" >&5
  1715. if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
  1716.   echo $ac_n "(cached) $ac_c" 1>&6
  1717. else
  1718.   cat > conftest.$ac_ext <<EOF
  1719. #line 1720 "configure"
  1720. #include "confdefs.h"
  1721. #include <sys/types.h>
  1722. #include <time.h>
  1723. int main() {
  1724. struct tm *tp; tp->tm_sec;
  1725. ; return 0; }
  1726. EOF
  1727. if { (eval echo configure:1728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1728.   rm -rf conftest*
  1729.   ac_cv_struct_tm=time.h
  1730. else
  1731.   echo "configure: failed program was:" >&5
  1732.   cat conftest.$ac_ext >&5
  1733.   rm -rf conftest*
  1734.   ac_cv_struct_tm=sys/time.h
  1735. fi
  1736. rm -f conftest*
  1737. fi
  1738.  
  1739. echo "$ac_t""$ac_cv_struct_tm" 1>&6
  1740. if test $ac_cv_struct_tm = sys/time.h; then
  1741.   cat >> confdefs.h <<\EOF
  1742. #define TM_IN_SYS_TIME 1
  1743. EOF
  1744.  
  1745. fi
  1746.  
  1747.  
  1748. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  1749. echo "configure:1750: checking return type of signal handlers" >&5
  1750. if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  1751.   echo $ac_n "(cached) $ac_c" 1>&6
  1752. else
  1753.   cat > conftest.$ac_ext <<EOF
  1754. #line 1755 "configure"
  1755. #include "confdefs.h"
  1756. #include <sys/types.h>
  1757. #include <signal.h>
  1758. #ifdef signal
  1759. #undef signal
  1760. #endif
  1761. #ifdef __cplusplus
  1762. extern "C" void (*signal (int, void (*)(int)))(int);
  1763. #else
  1764. void (*signal ()) ();
  1765. #endif
  1766.  
  1767. int main() {
  1768. int i;
  1769. ; return 0; }
  1770. EOF
  1771. if { (eval echo configure:1772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1772.   rm -rf conftest*
  1773.   ac_cv_type_signal=void
  1774. else
  1775.   echo "configure: failed program was:" >&5
  1776.   cat conftest.$ac_ext >&5
  1777.   rm -rf conftest*
  1778.   ac_cv_type_signal=int
  1779. fi
  1780. rm -f conftest*
  1781. fi
  1782.  
  1783. echo "$ac_t""$ac_cv_type_signal" 1>&6
  1784. cat >> confdefs.h <<EOF
  1785. #define RETSIGTYPE $ac_cv_type_signal
  1786. EOF
  1787.  
  1788.  
  1789. for ac_func in strerror random srandom strchr strrchr lockf flock \
  1790. strcasecmp strncasecmp atexit on_exit getpass memmove \
  1791. strdup strcspn strspn strtoul memcpy strpbrk memset seteuid setresuid
  1792. do
  1793. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1794. echo "configure:1795: checking for $ac_func" >&5
  1795. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1796.   echo $ac_n "(cached) $ac_c" 1>&6
  1797. else
  1798.   cat > conftest.$ac_ext <<EOF
  1799. #line 1800 "configure"
  1800. #include "confdefs.h"
  1801. /* System header to define __stub macros and hopefully few prototypes,
  1802.     which can conflict with char $ac_func(); below.  */
  1803. #include <assert.h>
  1804. /* Override any gcc2 internal prototype to avoid an error.  */
  1805. /* We use char because int might match the return type of a gcc2
  1806.     builtin and then its argument prototype would still apply.  */
  1807. char $ac_func();
  1808.  
  1809. int main() {
  1810.  
  1811. /* The GNU C library defines this for functions which it implements
  1812.     to always fail with ENOSYS.  Some functions are actually named
  1813.     something starting with __ and the normal name is an alias.  */
  1814. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1815. choke me
  1816. #else
  1817. $ac_func();
  1818. #endif
  1819.  
  1820. ; return 0; }
  1821. EOF
  1822. if { (eval echo configure:1823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1823.   rm -rf conftest*
  1824.   eval "ac_cv_func_$ac_func=yes"
  1825. else
  1826.   echo "configure: failed program was:" >&5
  1827.   cat conftest.$ac_ext >&5
  1828.   rm -rf conftest*
  1829.   eval "ac_cv_func_$ac_func=no"
  1830. fi
  1831. rm -f conftest*
  1832. fi
  1833.  
  1834. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1835.   echo "$ac_t""yes" 1>&6
  1836.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1837.   cat >> confdefs.h <<EOF
  1838. #define $ac_tr_func 1
  1839. EOF
  1840.  
  1841. else
  1842.   echo "$ac_t""no" 1>&6
  1843. fi
  1844. done
  1845.  
  1846.  
  1847. for ac_func in utime utimes
  1848. do
  1849. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1850. echo "configure:1851: checking for $ac_func" >&5
  1851. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1852.   echo $ac_n "(cached) $ac_c" 1>&6
  1853. else
  1854.   cat > conftest.$ac_ext <<EOF
  1855. #line 1856 "configure"
  1856. #include "confdefs.h"
  1857. /* System header to define __stub macros and hopefully few prototypes,
  1858.     which can conflict with char $ac_func(); below.  */
  1859. #include <assert.h>
  1860. /* Override any gcc2 internal prototype to avoid an error.  */
  1861. /* We use char because int might match the return type of a gcc2
  1862.     builtin and then its argument prototype would still apply.  */
  1863. char $ac_func();
  1864.  
  1865. int main() {
  1866.  
  1867. /* The GNU C library defines this for functions which it implements
  1868.     to always fail with ENOSYS.  Some functions are actually named
  1869.     something starting with __ and the normal name is an alias.  */
  1870. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1871. choke me
  1872. #else
  1873. $ac_func();
  1874. #endif
  1875.  
  1876. ; return 0; }
  1877. EOF
  1878. if { (eval echo configure:1879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1879.   rm -rf conftest*
  1880.   eval "ac_cv_func_$ac_func=yes"
  1881. else
  1882.   echo "configure: failed program was:" >&5
  1883.   cat conftest.$ac_ext >&5
  1884.   rm -rf conftest*
  1885.   eval "ac_cv_func_$ac_func=no"
  1886. fi
  1887. rm -f conftest*
  1888. fi
  1889.  
  1890. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1891.   echo "$ac_t""yes" 1>&6
  1892.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1893.   cat >> confdefs.h <<EOF
  1894. #define $ac_tr_func 1
  1895. EOF
  1896.  break
  1897. else
  1898.   echo "$ac_t""no" 1>&6
  1899. fi
  1900. done
  1901.  
  1902. for ac_func in tzset gettimeofday
  1903. do
  1904. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1905. echo "configure:1906: checking for $ac_func" >&5
  1906. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1907.   echo $ac_n "(cached) $ac_c" 1>&6
  1908. else
  1909.   cat > conftest.$ac_ext <<EOF
  1910. #line 1911 "configure"
  1911. #include "confdefs.h"
  1912. /* System header to define __stub macros and hopefully few prototypes,
  1913.     which can conflict with char $ac_func(); below.  */
  1914. #include <assert.h>
  1915. /* Override any gcc2 internal prototype to avoid an error.  */
  1916. /* We use char because int might match the return type of a gcc2
  1917.     builtin and then its argument prototype would still apply.  */
  1918. char $ac_func();
  1919.  
  1920. int main() {
  1921.  
  1922. /* The GNU C library defines this for functions which it implements
  1923.     to always fail with ENOSYS.  Some functions are actually named
  1924.     something starting with __ and the normal name is an alias.  */
  1925. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1926. choke me
  1927. #else
  1928. $ac_func();
  1929. #endif
  1930.  
  1931. ; return 0; }
  1932. EOF
  1933. if { (eval echo configure:1934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1934.   rm -rf conftest*
  1935.   eval "ac_cv_func_$ac_func=yes"
  1936. else
  1937.   echo "configure: failed program was:" >&5
  1938.   cat conftest.$ac_ext >&5
  1939.   rm -rf conftest*
  1940.   eval "ac_cv_func_$ac_func=no"
  1941. fi
  1942. rm -f conftest*
  1943. fi
  1944.  
  1945. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1946.   echo "$ac_t""yes" 1>&6
  1947.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1948.   cat >> confdefs.h <<EOF
  1949. #define $ac_tr_func 1
  1950. EOF
  1951.  
  1952. else
  1953.   echo "$ac_t""no" 1>&6
  1954. fi
  1955. done
  1956.  
  1957.  
  1958.  
  1959. host_os0=`echo $host_os | sed 's/-/_/g'`
  1960. host_os1=`echo $host_os0 | sed 's/\./_/g'`
  1961. host_os2=`echo $host_os0 | sed 's/^\([^.]*\)\..*$/\1/g'`
  1962. host_os3=`echo $host_os2 | sed 's/^\([^0-9]*\)[0-9]*$/\1/g'`
  1963. host_cpu1=`echo $host_cpu | sed 's/\./_/g'`
  1964. host_vendor1=`echo $host_vendor | sed 's/\./_/g'`
  1965. HOST_ID="-D$host_cpu1 -D$host_vendor1 -D$host_os1"
  1966. if [ $host_os1 != $host_os2 ] ; then
  1967.     HOST_ID="$HOST_ID -D$host_os2"
  1968. fi
  1969. if [ $host_os1 != $host_os3 ] && [ $host_os2 != $host_os3 ] ; then
  1970.     HOST_ID="$HOST_ID -D$host_os3"
  1971. fi
  1972.  
  1973. my_host_os=`echo $host_os1 $host_os2 $host_os3 | sort -u`
  1974. objs=`echo $srcdir/*.c | sed 's/\.c$/.o/' `
  1975. if [ "X$GCC" = "Xyes" ] ; then
  1976.     if [ "$host_cpu" = i486 ] ; then
  1977.         CFLAGS="$CFLAGS -m486"
  1978.     fi
  1979.     Wall=-Wall
  1980.     if [ "$host_os3" = sunos ] ; then
  1981.         Wall=""
  1982.     fi
  1983.     if [ "$host_os3" = ultrix ] ; then
  1984.         Wall=""
  1985.     fi
  1986.     if [ "$host_os3" = linux ] ; then
  1987.         CFLAGS="$CFLAGS -fno-strength-reduce"
  1988.     fi
  1989.     if [ "$host_os3" = aux ] ; then
  1990.         CFLAGS="$CFLAGS -ZP"
  1991.         MACHDEPLIBS="-lposix -UTIL"
  1992.     fi    
  1993.     CFLAGS="$CFLAGS $Wall"
  1994. fi
  1995.  
  1996. if [ $host_vendor = linux ] ; then
  1997.     CFLAGS="$CFLAGS -DUSE_XDF"
  1998. fi
  1999.  
  2000.  
  2001. if [ $host_vendor = att ] ; then
  2002.     CFLAGS="$CFLAGS -Datt"
  2003. fi
  2004.  
  2005. if [ $host_os3 = xenix ] ; then
  2006.     CFLAGS="$CFLAGS -M2e"
  2007.     LDFLAGS="$LDFLAGS -M2e -i -f 5000"
  2008. fi
  2009.  
  2010. if [ $host_os3 = hpux ] ; then
  2011.     LDFLAGS="$LDFLAGS -z"
  2012. fi
  2013.  
  2014. if [ $host_os2 = sysv4 ] ; then
  2015.     SHLIB="-lc -L/usr/ucblib -lucb"
  2016. else
  2017.     SHLIB=""
  2018. fi
  2019.  
  2020. if [ $host_os3 = isc ] ; then
  2021.     CFLAGS="$CFLAGS -D_SYSV3"
  2022.     SHLIB="-lc_s"
  2023. fi
  2024.  
  2025.  
  2026.  
  2027.  
  2028.  
  2029.  
  2030. trap '' 1 2 15
  2031. cat > confcache <<\EOF
  2032. # This file is a shell script that caches the results of configure
  2033. # tests run on this system so they can be shared between configure
  2034. # scripts and configure runs.  It is not useful on other systems.
  2035. # If it contains results you don't want to keep, you may remove or edit it.
  2036. #
  2037. # By default, configure uses ./config.cache as the cache file,
  2038. # creating it if it does not exist already.  You can give configure
  2039. # the --cache-file=FILE option to use a different cache file; that is
  2040. # what configure does when it calls configure scripts in
  2041. # subdirectories, so they share the cache.
  2042. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2043. # config.status only pays attention to the cache file if you give it the
  2044. # --recheck option to rerun configure.
  2045. #
  2046. EOF
  2047. # The following way of writing the cache mishandles newlines in values,
  2048. # but we know of no workaround that is simple, portable, and efficient.
  2049. # So, don't put newlines in cache variables' values.
  2050. # Ultrix sh set writes to stderr and can't be redirected directly,
  2051. # and sets the high bit in the cache file unless we assign to the vars.
  2052. (set) 2>&1 |
  2053.   case `(ac_space=' '; set) 2>&1` in
  2054.   *ac_space=\ *)
  2055.     # `set' does not quote correctly, so add quotes (double-quote substitution
  2056.     # turns \\\\ into \\, and sed turns \\ into \).
  2057.     sed -n \
  2058.       -e "s/'/'\\\\''/g" \
  2059.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  2060.     ;;
  2061.   *)
  2062.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  2063.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  2064.     ;;
  2065.   esac >> confcache
  2066. if cmp -s $cache_file confcache; then
  2067.   :
  2068. else
  2069.   if test -w $cache_file; then
  2070.     echo "updating cache $cache_file"
  2071.     cat confcache > $cache_file
  2072.   else
  2073.     echo "not updating unwritable cache $cache_file"
  2074.   fi
  2075. fi
  2076. rm -f confcache
  2077.  
  2078. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2079.  
  2080. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2081. # Let make expand exec_prefix.
  2082. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2083.  
  2084. # Any assignment to VPATH causes Sun make to only execute
  2085. # the first set of double-colon rules, so remove it if not needed.
  2086. # If there is a colon in the path, we need to keep it.
  2087. if test "x$srcdir" = x.; then
  2088.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2089. fi
  2090.  
  2091. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2092.  
  2093. DEFS=-DHAVE_CONFIG_H
  2094.  
  2095. # Without the "./", some shells look in PATH for config.status.
  2096. : ${CONFIG_STATUS=./config.status}
  2097.  
  2098. echo creating $CONFIG_STATUS
  2099. rm -f $CONFIG_STATUS
  2100. cat > $CONFIG_STATUS <<EOF
  2101. #! /bin/sh
  2102. # Generated automatically by configure.
  2103. # Run this file to recreate the current configuration.
  2104. # This directory was configured as follows,
  2105. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2106. #
  2107. # $0 $ac_configure_args
  2108. #
  2109. # Compiler output produced by configure, useful for debugging
  2110. # configure, is in ./config.log if it exists.
  2111.  
  2112. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2113. for ac_option
  2114. do
  2115.   case "\$ac_option" in
  2116.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2117.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2118.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2119.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2120.     echo "$CONFIG_STATUS generated by autoconf version 2.12"
  2121.     exit 0 ;;
  2122.   -help | --help | --hel | --he | --h)
  2123.     echo "\$ac_cs_usage"; exit 0 ;;
  2124.   *) echo "\$ac_cs_usage"; exit 1 ;;
  2125.   esac
  2126. done
  2127.  
  2128. ac_given_srcdir=$srcdir
  2129. ac_given_INSTALL="$INSTALL"
  2130.  
  2131. trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2132. EOF
  2133. cat >> $CONFIG_STATUS <<EOF
  2134.  
  2135. # Protect against being on the right side of a sed subst in config.status.
  2136. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2137.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2138. $ac_vpsub
  2139. $extrasub
  2140. s%@CFLAGS@%$CFLAGS%g
  2141. s%@CPPFLAGS@%$CPPFLAGS%g
  2142. s%@CXXFLAGS@%$CXXFLAGS%g
  2143. s%@DEFS@%$DEFS%g
  2144. s%@LDFLAGS@%$LDFLAGS%g
  2145. s%@LIBS@%$LIBS%g
  2146. s%@exec_prefix@%$exec_prefix%g
  2147. s%@prefix@%$prefix%g
  2148. s%@program_transform_name@%$program_transform_name%g
  2149. s%@bindir@%$bindir%g
  2150. s%@sbindir@%$sbindir%g
  2151. s%@libexecdir@%$libexecdir%g
  2152. s%@datadir@%$datadir%g
  2153. s%@sysconfdir@%$sysconfdir%g
  2154. s%@sharedstatedir@%$sharedstatedir%g
  2155. s%@localstatedir@%$localstatedir%g
  2156. s%@libdir@%$libdir%g
  2157. s%@includedir@%$includedir%g
  2158. s%@oldincludedir@%$oldincludedir%g
  2159. s%@infodir@%$infodir%g
  2160. s%@mandir@%$mandir%g
  2161. s%@CC@%$CC%g
  2162. s%@CPP@%$CPP%g
  2163. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2164. s%@INSTALL_DATA@%$INSTALL_DATA%g
  2165. s%@LN_S@%$LN_S%g
  2166. s%@host@%$host%g
  2167. s%@host_alias@%$host_alias%g
  2168. s%@host_cpu@%$host_cpu%g
  2169. s%@host_vendor@%$host_vendor%g
  2170. s%@host_os@%$host_os%g
  2171. s%@target@%$target%g
  2172. s%@target_alias@%$target_alias%g
  2173. s%@target_cpu@%$target_cpu%g
  2174. s%@target_vendor@%$target_vendor%g
  2175. s%@target_os@%$target_os%g
  2176. s%@build@%$build%g
  2177. s%@build_alias@%$build_alias%g
  2178. s%@build_cpu@%$build_cpu%g
  2179. s%@build_vendor@%$build_vendor%g
  2180. s%@build_os@%$build_os%g
  2181. s%@MACHDEPLIBS@%$MACHDEPLIBS%g
  2182. s%@SHLIB@%$SHLIB%g
  2183. s%@HOST_ID@%$HOST_ID%g
  2184.  
  2185. CEOF
  2186. EOF
  2187.  
  2188. cat >> $CONFIG_STATUS <<\EOF
  2189.  
  2190. # Split the substitutions into bite-sized pieces for seds with
  2191. # small command number limits, like on Digital OSF/1 and HP-UX.
  2192. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  2193. ac_file=1 # Number of current file.
  2194. ac_beg=1 # First line for current file.
  2195. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  2196. ac_more_lines=:
  2197. ac_sed_cmds=""
  2198. while $ac_more_lines; do
  2199.   if test $ac_beg -gt 1; then
  2200.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  2201.   else
  2202.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  2203.   fi
  2204.   if test ! -s conftest.s$ac_file; then
  2205.     ac_more_lines=false
  2206.     rm -f conftest.s$ac_file
  2207.   else
  2208.     if test -z "$ac_sed_cmds"; then
  2209.       ac_sed_cmds="sed -f conftest.s$ac_file"
  2210.     else
  2211.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  2212.     fi
  2213.     ac_file=`expr $ac_file + 1`
  2214.     ac_beg=$ac_end
  2215.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  2216.   fi
  2217. done
  2218. if test -z "$ac_sed_cmds"; then
  2219.   ac_sed_cmds=cat
  2220. fi
  2221. EOF
  2222.  
  2223. cat >> $CONFIG_STATUS <<EOF
  2224.  
  2225. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  2226. EOF
  2227. cat >> $CONFIG_STATUS <<\EOF
  2228. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2229.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2230.   case "$ac_file" in
  2231.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  2232.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2233.   *) ac_file_in="${ac_file}.in" ;;
  2234.   esac
  2235.  
  2236.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  2237.  
  2238.   # Remove last slash and all that follows it.  Not all systems have dirname.
  2239.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2240.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2241.     # The file is in a subdirectory.
  2242.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  2243.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2244.     # A "../" for each directory in $ac_dir_suffix.
  2245.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2246.   else
  2247.     ac_dir_suffix= ac_dots=
  2248.   fi
  2249.  
  2250.   case "$ac_given_srcdir" in
  2251.   .)  srcdir=.
  2252.       if test -z "$ac_dots"; then top_srcdir=.
  2253.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2254.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2255.   *) # Relative path.
  2256.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2257.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2258.   esac
  2259.  
  2260.   case "$ac_given_INSTALL" in
  2261.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2262.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2263.   esac
  2264.  
  2265.   echo creating "$ac_file"
  2266.   rm -f "$ac_file"
  2267.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2268.   case "$ac_file" in
  2269.   *Makefile*) ac_comsub="1i\\
  2270. # $configure_input" ;;
  2271.   *) ac_comsub= ;;
  2272.   esac
  2273.  
  2274.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  2275.   sed -e "$ac_comsub
  2276. s%@configure_input@%$configure_input%g
  2277. s%@srcdir@%$srcdir%g
  2278. s%@top_srcdir@%$top_srcdir%g
  2279. s%@INSTALL@%$INSTALL%g
  2280. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  2281. fi; done
  2282. rm -f conftest.s*
  2283.  
  2284. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  2285. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  2286. #
  2287. # ac_d sets the value in "#define NAME VALUE" lines.
  2288. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  2289. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  2290. ac_dC='\3'
  2291. ac_dD='%g'
  2292. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  2293. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2294. ac_uB='\([     ]\)%\1#\2define\3'
  2295. ac_uC=' '
  2296. ac_uD='\4%g'
  2297. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2298. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2299. ac_eB='$%\1#\2define\3'
  2300. ac_eC=' '
  2301. ac_eD='%g'
  2302.  
  2303. if test "${CONFIG_HEADERS+set}" != set; then
  2304. EOF
  2305. cat >> $CONFIG_STATUS <<EOF
  2306.   CONFIG_HEADERS="config.h"
  2307. EOF
  2308. cat >> $CONFIG_STATUS <<\EOF
  2309. fi
  2310. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  2311.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2312.   case "$ac_file" in
  2313.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  2314.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2315.   *) ac_file_in="${ac_file}.in" ;;
  2316.   esac
  2317.  
  2318.   echo creating $ac_file
  2319.  
  2320.   rm -f conftest.frag conftest.in conftest.out
  2321.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  2322.   cat $ac_file_inputs > conftest.in
  2323.  
  2324. EOF
  2325.  
  2326. # Transform confdefs.h into a sed script conftest.vals that substitutes
  2327. # the proper values into config.h.in to produce config.h.  And first:
  2328. # Protect against being on the right side of a sed subst in config.status.
  2329. # Protect against being in an unquoted here document in config.status.
  2330. rm -f conftest.vals
  2331. cat > conftest.hdr <<\EOF
  2332. s/[\\&%]/\\&/g
  2333. s%[\\$`]%\\&%g
  2334. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  2335. s%ac_d%ac_u%gp
  2336. s%ac_u%ac_e%gp
  2337. EOF
  2338. sed -n -f conftest.hdr confdefs.h > conftest.vals
  2339. rm -f conftest.hdr
  2340.  
  2341. # This sed command replaces #undef with comments.  This is necessary, for
  2342. # example, in the case of _POSIX_SOURCE, which is predefined and required
  2343. # on some systems where configure will not decide to define it.
  2344. cat >> conftest.vals <<\EOF
  2345. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  2346. EOF
  2347.  
  2348. # Break up conftest.vals because some shells have a limit on
  2349. # the size of here documents, and old seds have small limits too.
  2350.  
  2351. rm -f conftest.tail
  2352. while :
  2353. do
  2354.   ac_lines=`grep -c . conftest.vals`
  2355.   # grep -c gives empty output for an empty file on some AIX systems.
  2356.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2357.   # Write a limited-size here document to conftest.frag.
  2358.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  2359.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  2360.   echo 'CEOF
  2361.   sed -f conftest.frag conftest.in > conftest.out
  2362.   rm -f conftest.in
  2363.   mv conftest.out conftest.in
  2364. ' >> $CONFIG_STATUS
  2365.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  2366.   rm -f conftest.vals
  2367.   mv conftest.tail conftest.vals
  2368. done
  2369. rm -f conftest.vals
  2370.  
  2371. cat >> $CONFIG_STATUS <<\EOF
  2372.   rm -f conftest.frag conftest.h
  2373.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  2374.   cat conftest.in >> conftest.h
  2375.   rm -f conftest.in
  2376.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  2377.     echo "$ac_file is unchanged"
  2378.     rm -f conftest.h
  2379.   else
  2380.     # Remove last slash and all that follows it.  Not all systems have dirname.
  2381.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2382.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2383.       # The file is in a subdirectory.
  2384.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  2385.     fi
  2386.     rm -f $ac_file
  2387.     mv conftest.h $ac_file
  2388.   fi
  2389. fi; done
  2390.  
  2391. EOF
  2392. cat >> $CONFIG_STATUS <<EOF
  2393.  
  2394. EOF
  2395. cat >> $CONFIG_STATUS <<\EOF
  2396.  
  2397. exit 0
  2398. EOF
  2399. chmod +x $CONFIG_STATUS
  2400. rm -fr confdefs* $ac_clean_files
  2401. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2402.  
  2403.