home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / dev / gcc / fd2inl_src.lha / fd2inline-1.11 / configure next >
Text File  |  1997-01-01  |  37KB  |  1,119 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.12 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14.  
  15. # Initialize some variables set by options.
  16. # The variables have the same names as the options, with
  17. # dashes changed to underlines.
  18. build=NONE
  19. cache_file=./config.cache
  20. exec_prefix=NONE
  21. host=NONE
  22. no_create=
  23. nonopt=NONE
  24. no_recursion=
  25. prefix=NONE
  26. program_prefix=NONE
  27. program_suffix=NONE
  28. program_transform_name=s,x,x,
  29. silent=
  30. site=
  31. srcdir=
  32. target=NONE
  33. verbose=
  34. x_includes=NONE
  35. x_libraries=NONE
  36. bindir='${exec_prefix}/bin'
  37. sbindir='${exec_prefix}/sbin'
  38. libexecdir='${exec_prefix}/libexec'
  39. datadir='${prefix}/share'
  40. sysconfdir='${prefix}/etc'
  41. sharedstatedir='${prefix}/com'
  42. localstatedir='${prefix}/var'
  43. libdir='${exec_prefix}/lib'
  44. includedir='${prefix}/include'
  45. oldincludedir='/usr/include'
  46. infodir='${prefix}/info'
  47. guidedir='${prefix}/guide'
  48. psdir='${prefix}/ps'
  49. dvidir='${prefix}/dvi'
  50. mandir='${prefix}/man'
  51.  
  52. # Initialize some other variables.
  53. subdirs=
  54. MFLAGS= MAKEFLAGS=
  55. # Maximum number of lines to put in a shell here document.
  56. ac_max_here_lines=12
  57.  
  58. ac_prev=
  59. for ac_option
  60. do
  61.  
  62.   # If the previous option needs an argument, assign it.
  63.   if test -n "$ac_prev"; then
  64.     eval "$ac_prev=\$ac_option"
  65.     ac_prev=
  66.     continue
  67.   fi
  68.  
  69.   case "$ac_option" in
  70.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  71.   *) ac_optarg= ;;
  72.   esac
  73.  
  74.   # Accept the important Cygnus configure options, so we can diagnose typos.
  75.  
  76.   case "$ac_option" in
  77.  
  78.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  79.     ac_prev=bindir ;;
  80.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  81.     bindir="$ac_optarg" ;;
  82.  
  83.   -build | --build | --buil | --bui | --bu)
  84.     ac_prev=build ;;
  85.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  86.     build="$ac_optarg" ;;
  87.  
  88.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  89.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  90.     ac_prev=cache_file ;;
  91.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  92.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  93.     cache_file="$ac_optarg" ;;
  94.  
  95.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  96.     ac_prev=datadir ;;
  97.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  98.   | --da=*)
  99.     datadir="$ac_optarg" ;;
  100.  
  101.   -disable-* | --disable-*)
  102.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  103.     # Reject names that are not valid shell variable names.
  104.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  105.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  106.     fi
  107.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  108.     eval "enable_${ac_feature}=no" ;;
  109.  
  110.   -enable-* | --enable-*)
  111.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  112.     # Reject names that are not valid shell variable names.
  113.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  114.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  115.     fi
  116.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  117.     case "$ac_option" in
  118.       *=*) ;;
  119.       *) ac_optarg=yes ;;
  120.     esac
  121.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  122.  
  123.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  124.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  125.   | --exec | --exe | --ex)
  126.     ac_prev=exec_prefix ;;
  127.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  128.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  129.   | --exec=* | --exe=* | --ex=*)
  130.     exec_prefix="$ac_optarg" ;;
  131.  
  132.   -gas | --gas | --ga | --g)
  133.     # Obsolete; use --with-gas.
  134.     with_gas=yes ;;
  135.  
  136.   -help | --help | --hel | --he)
  137.     # Omit some internal or obsolete options to make the list less imposing.
  138.     # This message is too long to be a string in the A/UX 3.1 sh.
  139.     cat << EOF
  140. Usage: configure [options] [host]
  141. Options: [defaults in brackets after descriptions]
  142. Configuration:
  143.   --cache-file=FILE       cache test results in FILE
  144.   --help                  print this message
  145.   --no-create             do not create output files
  146.   --quiet, --silent       do not print \`checking...' messages
  147.   --version               print the version of autoconf that created configure
  148. Directory and file names:
  149.   --prefix=PREFIX         install architecture-independent files in PREFIX
  150.                           [$ac_default_prefix]
  151.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  152.                           [same as prefix]
  153.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  154.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  155.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  156.   --datadir=DIR           read-only architecture-independent data in DIR
  157.                           [PREFIX/share]
  158.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  159.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  160.                           [PREFIX/com]
  161.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  162.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  163.   --includedir=DIR        C header files in DIR [PREFIX/include]
  164.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  165.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  166.   --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  167.   --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  168.   --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  169.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  170.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  171.   --program-prefix=PREFIX prepend PREFIX to installed program names
  172.   --program-suffix=SUFFIX append SUFFIX to installed program names
  173.   --program-transform-name=PROGRAM
  174.                           run sed PROGRAM on installed program names
  175. EOF
  176.     cat << EOF
  177. Host type:
  178.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  179.   --host=HOST             configure for HOST [guessed]
  180.   --target=TARGET         configure for TARGET [TARGET=HOST]
  181. Features and packages:
  182.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  183.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  184.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  185.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  186.   --x-includes=DIR        X include files are in DIR
  187.   --x-libraries=DIR       X library files are in DIR
  188. EOF
  189.     if test -n "$ac_help"; then
  190.       echo "--enable and --with options recognized:$ac_help"
  191.     fi
  192.     exit 0 ;;
  193.  
  194.   -host | --host | --hos | --ho)
  195.     ac_prev=host ;;
  196.   -host=* | --host=* | --hos=* | --ho=*)
  197.     host="$ac_optarg" ;;
  198.  
  199.   -includedir | --includedir | --includedi | --included | --include \
  200.   | --includ | --inclu | --incl | --inc)
  201.     ac_prev=includedir ;;
  202.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  203.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  204.     includedir="$ac_optarg" ;;
  205.  
  206.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  207.     ac_prev=infodir ;;
  208.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  209.     infodir="$ac_optarg" ;;
  210.  
  211.  -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  212.    ac_prev=guidedir ;;
  213.  -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  214.  
  215.  -psdir | --psdir | --psdi | --psd | --ps)
  216.    ac_prev=psdir ;;
  217.  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  218.  
  219.  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  220.    ac_prev=dvidir ;;
  221.  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  222.  
  223.   -libdir | --libdir | --libdi | --libd)
  224.     ac_prev=libdir ;;
  225.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  226.     libdir="$ac_optarg" ;;
  227.  
  228.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  229.   | --libexe | --libex | --libe)
  230.     ac_prev=libexecdir ;;
  231.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  232.   | --libexe=* | --libex=* | --libe=*)
  233.     libexecdir="$ac_optarg" ;;
  234.  
  235.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  236.   | --localstate | --localstat | --localsta | --localst \
  237.   | --locals | --local | --loca | --loc | --lo)
  238.     ac_prev=localstatedir ;;
  239.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  240.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  241.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  242.     localstatedir="$ac_optarg" ;;
  243.  
  244.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  245.     ac_prev=mandir ;;
  246.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  247.     mandir="$ac_optarg" ;;
  248.  
  249.   -nfp | --nfp | --nf)
  250.     # Obsolete; use --without-fp.
  251.     with_fp=no ;;
  252.  
  253.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  254.   | --no-cr | --no-c)
  255.     no_create=yes ;;
  256.  
  257.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  258.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  259.     no_recursion=yes ;;
  260.  
  261.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  262.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  263.   | --oldin | --oldi | --old | --ol | --o)
  264.     ac_prev=oldincludedir ;;
  265.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  266.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  267.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  268.     oldincludedir="$ac_optarg" ;;
  269.  
  270.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  271.     ac_prev=prefix ;;
  272.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  273.     prefix="$ac_optarg" ;;
  274.  
  275.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  276.   | --program-pre | --program-pr | --program-p)
  277.     ac_prev=program_prefix ;;
  278.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  279.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  280.     program_prefix="$ac_optarg" ;;
  281.  
  282.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  283.   | --program-suf | --program-su | --program-s)
  284.     ac_prev=program_suffix ;;
  285.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  286.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  287.     program_suffix="$ac_optarg" ;;
  288.  
  289.   -program-transform-name | --program-transform-name \
  290.   | --program-transform-nam | --program-transform-na \
  291.   | --program-transform-n | --program-transform- \
  292.   | --program-transform | --program-transfor \
  293.   | --program-transfo | --program-transf \
  294.   | --program-trans | --program-tran \
  295.   | --progr-tra | --program-tr | --program-t)
  296.     ac_prev=program_transform_name ;;
  297.   -program-transform-name=* | --program-transform-name=* \
  298.   | --program-transform-nam=* | --program-transform-na=* \
  299.   | --program-transform-n=* | --program-transform-=* \
  300.   | --program-transform=* | --program-transfor=* \
  301.   | --program-transfo=* | --program-transf=* \
  302.   | --program-trans=* | --program-tran=* \
  303.   | --progr-tra=* | --program-tr=* | --program-t=*)
  304.     program_transform_name="$ac_optarg" ;;
  305.  
  306.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  307.   | -silent | --silent | --silen | --sile | --sil)
  308.     silent=yes ;;
  309.  
  310.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  311.     ac_prev=sbindir ;;
  312.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  313.   | --sbi=* | --sb=*)
  314.     sbindir="$ac_optarg" ;;
  315.  
  316.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  317.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  318.   | --sharedst | --shareds | --shared | --share | --shar \
  319.   | --sha | --sh)
  320.     ac_prev=sharedstatedir ;;
  321.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  322.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  323.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  324.   | --sha=* | --sh=*)
  325.     sharedstatedir="$ac_optarg" ;;
  326.  
  327.   -site | --site | --sit)
  328.     ac_prev=site ;;
  329.   -site=* | --site=* | --sit=*)
  330.     site="$ac_optarg" ;;
  331.  
  332.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  333.     ac_prev=srcdir ;;
  334.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  335.     srcdir="$ac_optarg" ;;
  336.  
  337.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  338.   | --syscon | --sysco | --sysc | --sys | --sy)
  339.     ac_prev=sysconfdir ;;
  340.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  341.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  342.     sysconfdir="$ac_optarg" ;;
  343.  
  344.   -target | --target | --targe | --targ | --tar | --ta | --t)
  345.     ac_prev=target ;;
  346.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  347.     target="$ac_optarg" ;;
  348.  
  349.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  350.     verbose=yes ;;
  351.  
  352.   -version | --version | --versio | --versi | --vers)
  353.     echo "configure generated by autoconf version 2.12"
  354.     exit 0 ;;
  355.  
  356.   -with-* | --with-*)
  357.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  358.     # Reject names that are not valid shell variable names.
  359.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  360.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  361.     fi
  362.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  363.     case "$ac_option" in
  364.       *=*) ;;
  365.       *) ac_optarg=yes ;;
  366.     esac
  367.     eval "with_${ac_package}='$ac_optarg'" ;;
  368.  
  369.   -without-* | --without-*)
  370.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  371.     # Reject names that are not valid shell variable names.
  372.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  373.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  374.     fi
  375.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  376.     eval "with_${ac_package}=no" ;;
  377.  
  378.   --x)
  379.     # Obsolete; use --with-x.
  380.     with_x=yes ;;
  381.  
  382.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  383.   | --x-incl | --x-inc | --x-in | --x-i)
  384.     ac_prev=x_includes ;;
  385.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  386.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  387.     x_includes="$ac_optarg" ;;
  388.  
  389.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  390.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  391.     ac_prev=x_libraries ;;
  392.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  393.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  394.     x_libraries="$ac_optarg" ;;
  395.  
  396.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  397.     ;;
  398.  
  399.   *)
  400.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  401.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  402.     fi
  403.     if test "x$nonopt" != xNONE; then
  404.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  405.     fi
  406.     nonopt="$ac_option"
  407.     ;;
  408.  
  409.   esac
  410. done
  411.  
  412. if test -n "$ac_prev"; then
  413.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  414. fi
  415.  
  416. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  417.  
  418. # File descriptor usage:
  419. # 0 standard input
  420. # 1 file creation
  421. # 2 errors and warnings
  422. # 3 some systems may open it to /dev/tty
  423. # 4 used on the Kubota Titan
  424. # 6 checking for... messages and results
  425. # 5 compiler messages saved in config.log
  426. if test "$silent" = yes; then
  427.   exec 6>/dev/null
  428. else
  429.   exec 6>&1
  430. fi
  431. exec 5>./config.log
  432.  
  433. echo "\
  434. This file contains any messages produced by compilers while
  435. running configure, to aid debugging if configure makes a mistake.
  436. " 1>&5
  437.  
  438. # Strip out --no-create and --no-recursion so they do not pile up.
  439. # Also quote any args containing shell metacharacters.
  440. ac_configure_args=
  441. for ac_arg
  442. do
  443.   case "$ac_arg" in
  444.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  445.   | --no-cr | --no-c) ;;
  446.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  447.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  448.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  449.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  450.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  451.   esac
  452. done
  453.  
  454. # NLS nuisances.
  455. # Only set these to C if already set.  These must not be set unconditionally
  456. # because not all systems understand e.g. LANG=C (notably SCO).
  457. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  458. # Non-C LC_CTYPE values break the ctype check.
  459. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  460. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  461. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  462. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  463.  
  464. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  465. rm -rf conftest* confdefs.h
  466. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  467. echo > confdefs.h
  468.  
  469. # A filename unique to this package, relative to the directory that
  470. # configure is in, which we can look for to find out if srcdir is correct.
  471. ac_unique_file=fd2inline.c
  472.  
  473. # Find the source files, if location was not specified.
  474. if test -z "$srcdir"; then
  475.   ac_srcdir_defaulted=yes
  476.   # Try the directory containing this script, then its parent.
  477.   ac_prog=$0
  478.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  479.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  480.   srcdir=$ac_confdir
  481.   if test ! -r $srcdir/$ac_unique_file; then
  482.     srcdir=..
  483.   fi
  484. else
  485.   ac_srcdir_defaulted=no
  486. fi
  487. if test ! -r $srcdir/$ac_unique_file; then
  488.   if test "$ac_srcdir_defaulted" = yes; then
  489.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  490.   else
  491.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  492.   fi
  493. fi
  494. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  495.  
  496. # Prefer explicitly selected file to automatically selected ones.
  497. if test -z "$CONFIG_SITE"; then
  498.   if test "x$prefix" != xNONE; then
  499.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  500.   else
  501.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  502.   fi
  503. fi
  504. for ac_site_file in $CONFIG_SITE; do
  505.   if test -r "$ac_site_file"; then
  506.     echo "loading site script $ac_site_file"
  507.     . "$ac_site_file"
  508.   fi
  509. done
  510.  
  511. if test -r "$cache_file"; then
  512.   echo "loading cache $cache_file"
  513.   . $cache_file
  514. else
  515.   echo "creating cache $cache_file"
  516.   > $cache_file
  517. fi
  518.  
  519. ac_ext=c
  520. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  521. ac_cpp='$CPP $CPPFLAGS'
  522. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  523. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  524. cross_compiling=$ac_cv_prog_cc_cross
  525.  
  526. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  527.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  528.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  529.     ac_n= ac_c='
  530. ' ac_t='    '
  531.   else
  532.     ac_n=-n ac_c= ac_t=
  533.   fi
  534. else
  535.   ac_n= ac_c='\c' ac_t=
  536. fi
  537.  
  538.  
  539.  
  540. # Extract the first word of "gcc", so it can be a program name with args.
  541. set dummy gcc; ac_word=$2
  542. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  543. echo "configure:544: checking for $ac_word" >&5
  544. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  545.   echo $ac_n "(cached) $ac_c" 1>&6
  546. else
  547.   if test -n "$CC"; then
  548.   ac_cv_prog_CC="$CC" # Let the user override the test.
  549. else
  550.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  551.   for ac_dir in $PATH; do
  552.     test -z "$ac_dir" && ac_dir=.
  553.     if test -f $ac_dir/$ac_word; then
  554.       ac_cv_prog_CC="gcc"
  555.       break
  556.     fi
  557.   done
  558.   IFS="$ac_save_ifs"
  559. fi
  560. fi
  561. CC="$ac_cv_prog_CC"
  562. if test -n "$CC"; then
  563.   echo "$ac_t""$CC" 1>&6
  564. else
  565.   echo "$ac_t""no" 1>&6
  566. fi
  567.  
  568. if test -z "$CC"; then
  569.   # Extract the first word of "cc", so it can be a program name with args.
  570. set dummy cc; ac_word=$2
  571. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  572. echo "configure:573: checking for $ac_word" >&5
  573. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  574.   echo $ac_n "(cached) $ac_c" 1>&6
  575. else
  576.   if test -n "$CC"; then
  577.   ac_cv_prog_CC="$CC" # Let the user override the test.
  578. else
  579.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  580.   ac_prog_rejected=no
  581.   for ac_dir in $PATH; do
  582.     test -z "$ac_dir" && ac_dir=.
  583.     if test -f $ac_dir/$ac_word; then
  584.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  585.         ac_prog_rejected=yes
  586.     continue
  587.       fi
  588.       ac_cv_prog_CC="cc"
  589.       break
  590.     fi
  591.   done
  592.   IFS="$ac_save_ifs"
  593. if test $ac_prog_rejected = yes; then
  594.   # We found a bogon in the path, so make sure we never use it.
  595.   set dummy $ac_cv_prog_CC
  596.   shift
  597.   if test $# -gt 0; then
  598.     # We chose a different compiler from the bogus one.
  599.     # However, it has the same basename, so the bogon will be chosen
  600.     # first if we set CC to just the basename; use the full file name.
  601.     shift
  602.     set dummy "$ac_dir/$ac_word" "$@"
  603.     shift
  604.     ac_cv_prog_CC="$@"
  605.   fi
  606. fi
  607. fi
  608. fi
  609. CC="$ac_cv_prog_CC"
  610. if test -n "$CC"; then
  611.   echo "$ac_t""$CC" 1>&6
  612. else
  613.   echo "$ac_t""no" 1>&6
  614. fi
  615.  
  616.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  617. fi
  618.  
  619. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  620. echo "configure:621: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  621.  
  622. ac_ext=c
  623. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  624. ac_cpp='$CPP $CPPFLAGS'
  625. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  626. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  627. cross_compiling=$ac_cv_prog_cc_cross
  628.  
  629. cat > conftest.$ac_ext <<EOF
  630. #line 631 "configure"
  631. #include "confdefs.h"
  632. main(){return(0);}
  633. EOF
  634. if { (eval echo configure:635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  635.   ac_cv_prog_cc_works=yes
  636.   # If we can't run a trivial program, we are probably using a cross compiler.
  637.   if (./conftest; exit) 2>/dev/null; then
  638.     ac_cv_prog_cc_cross=no
  639.   else
  640.     ac_cv_prog_cc_cross=yes
  641.   fi
  642. else
  643.   echo "configure: failed program was:" >&5
  644.   cat conftest.$ac_ext >&5
  645.   ac_cv_prog_cc_works=no
  646. fi
  647. rm -fr conftest*
  648.  
  649. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  650. if test $ac_cv_prog_cc_works = no; then
  651.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  652. fi
  653. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  654. echo "configure:655: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  655. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  656. cross_compiling=$ac_cv_prog_cc_cross
  657.  
  658. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  659. echo "configure:660: checking whether we are using GNU C" >&5
  660. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  661.   echo $ac_n "(cached) $ac_c" 1>&6
  662. else
  663.   cat > conftest.c <<EOF
  664. #ifdef __GNUC__
  665.   yes;
  666. #endif
  667. EOF
  668. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  669.   ac_cv_prog_gcc=yes
  670. else
  671.   ac_cv_prog_gcc=no
  672. fi
  673. fi
  674.  
  675. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  676.  
  677. if test $ac_cv_prog_gcc = yes; then
  678.   GCC=yes
  679.   ac_test_CFLAGS="${CFLAGS+set}"
  680.   ac_save_CFLAGS="$CFLAGS"
  681.   CFLAGS=
  682.   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  683. echo "configure:684: checking whether ${CC-cc} accepts -g" >&5
  684. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  685.   echo $ac_n "(cached) $ac_c" 1>&6
  686. else
  687.   echo 'void f(){}' > conftest.c
  688. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  689.   ac_cv_prog_cc_g=yes
  690. else
  691.   ac_cv_prog_cc_g=no
  692. fi
  693. rm -f conftest*
  694.  
  695. fi
  696.  
  697. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  698.   if test "$ac_test_CFLAGS" = set; then
  699.     CFLAGS="$ac_save_CFLAGS"
  700.   elif test $ac_cv_prog_cc_g = yes; then
  701.     CFLAGS="-g -O2"
  702.   else
  703.     CFLAGS="-O2"
  704.   fi
  705. else
  706.   GCC=
  707.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  708. fi
  709.  
  710. ac_aux_dir=
  711. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  712.   if test -f $ac_dir/install-sh; then
  713.     ac_aux_dir=$ac_dir
  714.     ac_install_sh="$ac_aux_dir/install-sh -c"
  715.     break
  716.   elif test -f $ac_dir/install.sh; then
  717.     ac_aux_dir=$ac_dir
  718.     ac_install_sh="$ac_aux_dir/install.sh -c"
  719.     break
  720.   fi
  721. done
  722. if test -z "$ac_aux_dir"; then
  723.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  724. fi
  725. ac_config_guess=$ac_aux_dir/config.guess
  726. ac_config_sub=$ac_aux_dir/config.sub
  727. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  728.  
  729. # Find a good install program.  We prefer a C program (faster),
  730. # so one script is as good as another.  But avoid the broken or
  731. # incompatible versions:
  732. # SysV /etc/install, /usr/sbin/install
  733. # SunOS /usr/etc/install
  734. # IRIX /sbin/install
  735. # AIX /bin/install
  736. # AmigaOS /c/install
  737. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  738. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  739. # ./install, which can be erroneously created by make from ./install.sh.
  740. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  741. echo "configure:742: checking for a BSD compatible install" >&5
  742. if test -z "$INSTALL"; then
  743. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  744.   echo $ac_n "(cached) $ac_c" 1>&6
  745. else
  746.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
  747.   for ac_dir in $PATH; do
  748.     # Account for people who put trailing slashes in PATH elements.
  749.     case "$ac_dir/" in
  750.     /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  751.     *)
  752.       # OSF1 and SCO ODT 3.0 have their own names for install.
  753.       for ac_prog in ginstall installbsd scoinst install; do
  754.         if test -f $ac_dir/$ac_prog; then
  755.       if test $ac_prog = install &&
  756.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  757.         # AIX install.  It has an incompatible calling convention.
  758.         # OSF/1 installbsd also uses dspmsg, but is usable.
  759.         :
  760.       else
  761.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  762.         break 2
  763.       fi
  764.     fi
  765.       done
  766.       ;;
  767.     esac
  768.   done
  769.   IFS="$ac_save_IFS"
  770.  
  771. fi
  772.   if test "${ac_cv_path_install+set}" = set; then
  773.     INSTALL="$ac_cv_path_install"
  774.   else
  775.     # As a last resort, use the slow shell script.  We don't cache a
  776.     # path for INSTALL within a source directory, because that will
  777.     # break other packages using the cache if that directory is
  778.     # removed, or if the path is relative.
  779.     INSTALL="$ac_install_sh"
  780.   fi
  781. fi
  782. echo "$ac_t""$INSTALL" 1>&6
  783.  
  784. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  785. # It thinks the first close brace ends the variable substitution.
  786. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  787.  
  788. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  789.  
  790. # Extract the first word of "ranlib", so it can be a program name with args.
  791. set dummy ranlib; 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_RANLIB'+set}'`\" = set"; then
  795.   echo $ac_n "(cached) $ac_c" 1>&6
  796. else
  797.   if test -n "$RANLIB"; then
  798.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  799. else
  800.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  801.   for ac_dir in $PATH; do
  802.     test -z "$ac_dir" && ac_dir=.
  803.     if test -f $ac_dir/$ac_word; then
  804.       ac_cv_prog_RANLIB="ranlib"
  805.       break
  806.     fi
  807.   done
  808.   IFS="$ac_save_ifs"
  809.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  810. fi
  811. fi
  812. RANLIB="$ac_cv_prog_RANLIB"
  813. if test -n "$RANLIB"; then
  814.   echo "$ac_t""$RANLIB" 1>&6
  815. else
  816.   echo "$ac_t""no" 1>&6
  817. fi
  818.  
  819. for ac_prog in mawk gawk nawk awk
  820. do
  821. # Extract the first word of "$ac_prog", so it can be a program name with args.
  822. set dummy $ac_prog; ac_word=$2
  823. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  824. echo "configure:825: checking for $ac_word" >&5
  825. if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
  826.   echo $ac_n "(cached) $ac_c" 1>&6
  827. else
  828.   if test -n "$AWK"; then
  829.   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  830. else
  831.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  832.   for ac_dir in $PATH; do
  833.     test -z "$ac_dir" && ac_dir=.
  834.     if test -f $ac_dir/$ac_word; then
  835.       ac_cv_prog_AWK="$ac_prog"
  836.       break
  837.     fi
  838.   done
  839.   IFS="$ac_save_ifs"
  840. fi
  841. fi
  842. AWK="$ac_cv_prog_AWK"
  843. if test -n "$AWK"; then
  844.   echo "$ac_t""$AWK" 1>&6
  845. else
  846.   echo "$ac_t""no" 1>&6
  847. fi
  848.  
  849. test -n "$AWK" && break
  850. done
  851.  
  852.  
  853. trap '' 1 2 15
  854. cat > confcache <<\EOF
  855. # This file is a shell script that caches the results of configure
  856. # tests run on this system so they can be shared between configure
  857. # scripts and configure runs.  It is not useful on other systems.
  858. # If it contains results you don't want to keep, you may remove or edit it.
  859. #
  860. # By default, configure uses ./config.cache as the cache file,
  861. # creating it if it does not exist already.  You can give configure
  862. # the --cache-file=FILE option to use a different cache file; that is
  863. # what configure does when it calls configure scripts in
  864. # subdirectories, so they share the cache.
  865. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  866. # config.status only pays attention to the cache file if you give it the
  867. # --recheck option to rerun configure.
  868. #
  869. EOF
  870. # The following way of writing the cache mishandles newlines in values,
  871. # but we know of no workaround that is simple, portable, and efficient.
  872. # So, don't put newlines in cache variables' values.
  873. # Ultrix sh set writes to stderr and can't be redirected directly,
  874. # and sets the high bit in the cache file unless we assign to the vars.
  875. (set) 2>&1 |
  876.   case `(ac_space=' '; set) 2>&1` in
  877.   *ac_space=\ *)
  878.     # `set' does not quote correctly, so add quotes (double-quote substitution
  879.     # turns \\\\ into \\, and sed turns \\ into \).
  880.     sed -n \
  881.       -e "s/'/'\\\\''/g" \
  882.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  883.     ;;
  884.   *)
  885.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  886.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  887.     ;;
  888.   esac >> confcache
  889. if cmp -s $cache_file confcache; then
  890.   :
  891. else
  892.   if test -w $cache_file; then
  893.     echo "updating cache $cache_file"
  894.     cat confcache > $cache_file
  895.   else
  896.     echo "not updating unwritable cache $cache_file"
  897.   fi
  898. fi
  899. rm -f confcache
  900.  
  901. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  902.  
  903. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  904. # Let make expand exec_prefix.
  905. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  906.  
  907. # Any assignment to VPATH causes Sun make to only execute
  908. # the first set of double-colon rules, so remove it if not needed.
  909. # If there is a colon in the path, we need to keep it.
  910. if test "x$srcdir" = x.; then
  911.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  912. fi
  913.  
  914. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  915.  
  916. # Transform confdefs.h into DEFS.
  917. # Protect against shell expansion while executing Makefile rules.
  918. # Protect against Makefile macro expansion.
  919. cat > conftest.defs <<\EOF
  920. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  921. s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  922. s%\[%\\&%g
  923. s%\]%\\&%g
  924. s%\$%$$%g
  925. EOF
  926. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  927. rm -f conftest.defs
  928.  
  929.  
  930. # Without the "./", some shells look in PATH for config.status.
  931. : ${CONFIG_STATUS=./config.status}
  932.  
  933. echo creating $CONFIG_STATUS
  934. # Some systems, like AmigaOS, won't allow you to remove a script that is
  935. # being executed, so just move it out of the way instead.
  936. if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  937. cat > $CONFIG_STATUS <<EOF
  938. #! /bin/sh
  939. # Generated automatically by configure.
  940. # Run this file to recreate the current configuration.
  941. # This directory was configured as follows,
  942. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  943. #
  944. # $0 $ac_configure_args
  945. #
  946. # Compiler output produced by configure, useful for debugging
  947. # configure, is in ./config.log if it exists.
  948.  
  949. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  950. for ac_option
  951. do
  952.   case "\$ac_option" in
  953.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  954.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  955.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  956.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  957.     echo "$CONFIG_STATUS generated by autoconf version 2.12"
  958.     exit 0 ;;
  959.   -help | --help | --hel | --he | --h)
  960.     echo "\$ac_cs_usage"; exit 0 ;;
  961.   *) echo "\$ac_cs_usage"; exit 1 ;;
  962.   esac
  963. done
  964.  
  965. ac_given_srcdir=$srcdir
  966. ac_given_INSTALL="$INSTALL"
  967.  
  968. trap 'rm -fr `echo "Makefile lib/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  969. EOF
  970. cat >> $CONFIG_STATUS <<EOF
  971.  
  972. # Protect against being on the right side of a sed subst in config.status.
  973. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  974.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  975. $ac_vpsub
  976. $extrasub
  977. s%@CFLAGS@%$CFLAGS%g
  978. s%@CPPFLAGS@%$CPPFLAGS%g
  979. s%@CXXFLAGS@%$CXXFLAGS%g
  980. s%@DEFS@%$DEFS%g
  981. s%@LDFLAGS@%$LDFLAGS%g
  982. s%@LIBS@%$LIBS%g
  983. s%@exec_prefix@%$exec_prefix%g
  984. s%@prefix@%$prefix%g
  985. s%@program_transform_name@%$program_transform_name%g
  986. s%@bindir@%$bindir%g
  987. s%@sbindir@%$sbindir%g
  988. s%@libexecdir@%$libexecdir%g
  989. s%@datadir@%$datadir%g
  990. s%@sysconfdir@%$sysconfdir%g
  991. s%@sharedstatedir@%$sharedstatedir%g
  992. s%@localstatedir@%$localstatedir%g
  993. s%@libdir@%$libdir%g
  994. s%@includedir@%$includedir%g
  995. s%@oldincludedir@%$oldincludedir%g
  996. s%@infodir@%$infodir%g
  997. s%@guidedir@%$guidedir%g
  998. s%@psdir@%$psdir%g
  999. s%@dvidir@%$dvidir%g
  1000. s%@mandir@%$mandir%g
  1001. s%@CC@%$CC%g
  1002. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1003. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1004. s%@RANLIB@%$RANLIB%g
  1005. s%@AWK@%$AWK%g
  1006.  
  1007. CEOF
  1008. EOF
  1009.  
  1010. cat >> $CONFIG_STATUS <<\EOF
  1011.  
  1012. # Split the substitutions into bite-sized pieces for seds with
  1013. # small command number limits, like on Digital OSF/1 and HP-UX.
  1014. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  1015. ac_file=1 # Number of current file.
  1016. ac_beg=1 # First line for current file.
  1017. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  1018. ac_more_lines=:
  1019. ac_sed_cmds=""
  1020. while $ac_more_lines; do
  1021.   if test $ac_beg -gt 1; then
  1022.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  1023.   else
  1024.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  1025.   fi
  1026.   if test ! -s conftest.s$ac_file; then
  1027.     ac_more_lines=false
  1028.     rm -f conftest.s$ac_file
  1029.   else
  1030.     if test -z "$ac_sed_cmds"; then
  1031.       ac_sed_cmds="sed -f conftest.s$ac_file"
  1032.     else
  1033.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  1034.     fi
  1035.     ac_file=`expr $ac_file + 1`
  1036.     ac_beg=$ac_end
  1037.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  1038.   fi
  1039. done
  1040. if test -z "$ac_sed_cmds"; then
  1041.   ac_sed_cmds=cat
  1042. fi
  1043. EOF
  1044.  
  1045. cat >> $CONFIG_STATUS <<EOF
  1046.  
  1047. CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile"}
  1048. EOF
  1049. cat >> $CONFIG_STATUS <<\EOF
  1050. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1051.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1052.   case "$ac_file" in
  1053.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1054.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1055.   *) ac_file_in="${ac_file}.in" ;;
  1056.   esac
  1057.  
  1058.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  1059.  
  1060.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1061.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1062.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1063.     # The file is in a subdirectory.
  1064.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1065.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1066.     # A "../" for each directory in $ac_dir_suffix.
  1067.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1068.   else
  1069.     ac_dir_suffix= ac_dots=
  1070.   fi
  1071.  
  1072.   case "$ac_given_srcdir" in
  1073.   .)  srcdir=.
  1074.       if test -z "$ac_dots"; then top_srcdir=.
  1075.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1076.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1077.   *) # Relative path.
  1078.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1079.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1080.   esac
  1081.  
  1082.   case "$ac_given_INSTALL" in
  1083.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1084.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1085.   esac
  1086.  
  1087.   echo creating "$ac_file"
  1088.   rm -f "$ac_file"
  1089.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1090.   case "$ac_file" in
  1091.   *Makefile*) ac_comsub="1i\\
  1092. # $configure_input" ;;
  1093.   *) ac_comsub= ;;
  1094.   esac
  1095.  
  1096.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  1097.   sed -e "$ac_comsub
  1098. s%@configure_input@%$configure_input%g
  1099. s%@srcdir@%$srcdir%g
  1100. s%@top_srcdir@%$top_srcdir%g
  1101. s%@INSTALL@%$INSTALL%g
  1102. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  1103. fi; done
  1104. rm -f conftest.s*
  1105.  
  1106. EOF
  1107. cat >> $CONFIG_STATUS <<EOF
  1108.  
  1109. EOF
  1110. cat >> $CONFIG_STATUS <<\EOF
  1111.  
  1112. exit 0
  1113. EOF
  1114. chmod +x $CONFIG_STATUS
  1115. rm -f CONFIG.STATUS.old
  1116. rm -fr confdefs* $ac_clean_files
  1117. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1118.  
  1119.