home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Emulators / Begemot-2.4 / configure < prev    next >
Encoding:
Text File  |  1999-11-22  |  83.1 KB  |  3,007 lines

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