home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lzo100.zip / lzo-1.00 / configure < prev    next >
Text File  |  1997-07-13  |  91KB  |  3,079 lines

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