home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / ImageMagick-4.0.6.tar.gz / ImageMagick-4.0.6.tar / ImageMagick-4.0.6 / configure < prev    next >
Text File  |  1998-05-12  |  164KB  |  5,697 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.12 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --enable-shared[=PKGS]  build shared libraries [default=no]"
  16. ac_help="$ac_help
  17.   --enable-static[=PKGS]  build static libraries [default=yes]"
  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-maintainer-mode enable make rules and dependencies not useful
  22.                           (and sometimes confusing) to the casual installer"
  23. ac_help="$ac_help
  24.   --with-dmalloc          use dmalloc, as in
  25.                           ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz"
  26. ac_help="$ac_help
  27.   --enable-lzw            enable LZW support (default is no)"
  28. ac_help="$ac_help
  29.   --enable-16bit-pixel    enable 16 bit pixels (default is no)"
  30. ac_help="$ac_help
  31.   --enable-socks          enable SOCKS v5 proxy support (default is no)"
  32. ac_help="$ac_help
  33.   --with-perl             enable build/install of PerlMagick (default is no)"
  34. ac_help="$ac_help
  35.   --with-dps              enable Display Postscript (default is yes)"
  36. ac_help="$ac_help
  37.   --with-fpx              enable FlashPIX (default is yes)"
  38. ac_help="$ac_help
  39.   --with-hdf              enable HDF (default is yes)"
  40. ac_help="$ac_help
  41.   --with-jbig             enable JBIG (default is yes)"
  42. ac_help="$ac_help
  43.   --with-jpeg             enable JPEG (default is yes)"
  44. ac_help="$ac_help
  45.   --with-mpeg             enable MPEG (default is yes)"
  46. ac_help="$ac_help
  47.   --with-png              enable PNG (default is yes)"
  48. ac_help="$ac_help
  49.   --with-tiff             enable TIFF (default is yes)"
  50. ac_help="$ac_help
  51.   --with-ttf              enable TrueType (default is yes)"
  52. ac_help="$ac_help
  53.   --with-x                use the X Window System"
  54.  
  55. # Initialize some variables set by options.
  56. # The variables have the same names as the options, with
  57. # dashes changed to underlines.
  58. build=NONE
  59. cache_file=./config.cache
  60. exec_prefix=NONE
  61. host=NONE
  62. no_create=
  63. nonopt=NONE
  64. no_recursion=
  65. prefix=NONE
  66. program_prefix=NONE
  67. program_suffix=NONE
  68. program_transform_name=s,x,x,
  69. silent=
  70. site=
  71. srcdir=
  72. target=NONE
  73. verbose=
  74. x_includes=NONE
  75. x_libraries=NONE
  76. bindir='${exec_prefix}/bin'
  77. sbindir='${exec_prefix}/sbin'
  78. libexecdir='${exec_prefix}/libexec'
  79. datadir='${prefix}/share'
  80. sysconfdir='${prefix}/etc'
  81. sharedstatedir='${prefix}/com'
  82. localstatedir='${prefix}/var'
  83. libdir='${exec_prefix}/lib'
  84. includedir='${prefix}/include'
  85. oldincludedir='/usr/include'
  86. infodir='${prefix}/info'
  87. mandir='${prefix}/man'
  88.  
  89. # Initialize some other variables.
  90. subdirs=
  91. MFLAGS= MAKEFLAGS=
  92. # Maximum number of lines to put in a shell here document.
  93. ac_max_here_lines=12
  94.  
  95. ac_prev=
  96. for ac_option
  97. do
  98.  
  99.   # If the previous option needs an argument, assign it.
  100.   if test -n "$ac_prev"; then
  101.     eval "$ac_prev=\$ac_option"
  102.     ac_prev=
  103.     continue
  104.   fi
  105.  
  106.   case "$ac_option" in
  107.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  108.   *) ac_optarg= ;;
  109.   esac
  110.  
  111.   # Accept the important Cygnus configure options, so we can diagnose typos.
  112.  
  113.   case "$ac_option" in
  114.  
  115.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  116.     ac_prev=bindir ;;
  117.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  118.     bindir="$ac_optarg" ;;
  119.  
  120.   -build | --build | --buil | --bui | --bu)
  121.     ac_prev=build ;;
  122.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  123.     build="$ac_optarg" ;;
  124.  
  125.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  126.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  127.     ac_prev=cache_file ;;
  128.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  129.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  130.     cache_file="$ac_optarg" ;;
  131.  
  132.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  133.     ac_prev=datadir ;;
  134.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  135.   | --da=*)
  136.     datadir="$ac_optarg" ;;
  137.  
  138.   -disable-* | --disable-*)
  139.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  140.     # Reject names that are not valid shell variable names.
  141.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  142.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  143.     fi
  144.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  145.     eval "enable_${ac_feature}=no" ;;
  146.  
  147.   -enable-* | --enable-*)
  148.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  149.     # Reject names that are not valid shell variable names.
  150.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  151.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  152.     fi
  153.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  154.     case "$ac_option" in
  155.       *=*) ;;
  156.       *) ac_optarg=yes ;;
  157.     esac
  158.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  159.  
  160.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  161.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  162.   | --exec | --exe | --ex)
  163.     ac_prev=exec_prefix ;;
  164.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  165.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  166.   | --exec=* | --exe=* | --ex=*)
  167.     exec_prefix="$ac_optarg" ;;
  168.  
  169.   -gas | --gas | --ga | --g)
  170.     # Obsolete; use --with-gas.
  171.     with_gas=yes ;;
  172.  
  173.   -help | --help | --hel | --he)
  174.     # Omit some internal or obsolete options to make the list less imposing.
  175.     # This message is too long to be a string in the A/UX 3.1 sh.
  176.     cat << EOF
  177. Usage: configure [options] [host]
  178. Options: [defaults in brackets after descriptions]
  179. Configuration:
  180.   --cache-file=FILE       cache test results in FILE
  181.   --help                  print this message
  182.   --no-create             do not create output files
  183.   --quiet, --silent       do not print \`checking...' messages
  184.   --version               print the version of autoconf that created configure
  185. Directory and file names:
  186.   --prefix=PREFIX         install architecture-independent files in PREFIX
  187.                           [$ac_default_prefix]
  188.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  189.                           [same as prefix]
  190.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  191.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  192.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  193.   --datadir=DIR           read-only architecture-independent data in DIR
  194.                           [PREFIX/share]
  195.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  196.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  197.                           [PREFIX/com]
  198.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  199.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  200.   --includedir=DIR        C header files in DIR [PREFIX/include]
  201.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  202.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  203.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  204.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  205.   --program-prefix=PREFIX prepend PREFIX to installed program names
  206.   --program-suffix=SUFFIX append SUFFIX to installed program names
  207.   --program-transform-name=PROGRAM
  208.                           run sed PROGRAM on installed program names
  209. EOF
  210.     cat << EOF
  211. Host type:
  212.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  213.   --host=HOST             configure for HOST [guessed]
  214.   --target=TARGET         configure for TARGET [TARGET=HOST]
  215. Features and packages:
  216.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  217.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  218.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  219.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  220.   --x-includes=DIR        X include files are in DIR
  221.   --x-libraries=DIR       X library files are in DIR
  222. EOF
  223.     if test -n "$ac_help"; then
  224.       echo "--enable and --with options recognized:$ac_help"
  225.     fi
  226.     exit 0 ;;
  227.  
  228.   -host | --host | --hos | --ho)
  229.     ac_prev=host ;;
  230.   -host=* | --host=* | --hos=* | --ho=*)
  231.     host="$ac_optarg" ;;
  232.  
  233.   -includedir | --includedir | --includedi | --included | --include \
  234.   | --includ | --inclu | --incl | --inc)
  235.     ac_prev=includedir ;;
  236.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  237.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  238.     includedir="$ac_optarg" ;;
  239.  
  240.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  241.     ac_prev=infodir ;;
  242.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  243.     infodir="$ac_optarg" ;;
  244.  
  245.   -libdir | --libdir | --libdi | --libd)
  246.     ac_prev=libdir ;;
  247.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  248.     libdir="$ac_optarg" ;;
  249.  
  250.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  251.   | --libexe | --libex | --libe)
  252.     ac_prev=libexecdir ;;
  253.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  254.   | --libexe=* | --libex=* | --libe=*)
  255.     libexecdir="$ac_optarg" ;;
  256.  
  257.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  258.   | --localstate | --localstat | --localsta | --localst \
  259.   | --locals | --local | --loca | --loc | --lo)
  260.     ac_prev=localstatedir ;;
  261.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  262.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  263.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  264.     localstatedir="$ac_optarg" ;;
  265.  
  266.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  267.     ac_prev=mandir ;;
  268.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  269.     mandir="$ac_optarg" ;;
  270.  
  271.   -nfp | --nfp | --nf)
  272.     # Obsolete; use --without-fp.
  273.     with_fp=no ;;
  274.  
  275.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  276.   | --no-cr | --no-c)
  277.     no_create=yes ;;
  278.  
  279.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  280.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  281.     no_recursion=yes ;;
  282.  
  283.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  284.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  285.   | --oldin | --oldi | --old | --ol | --o)
  286.     ac_prev=oldincludedir ;;
  287.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  288.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  289.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  290.     oldincludedir="$ac_optarg" ;;
  291.  
  292.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  293.     ac_prev=prefix ;;
  294.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  295.     prefix="$ac_optarg" ;;
  296.  
  297.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  298.   | --program-pre | --program-pr | --program-p)
  299.     ac_prev=program_prefix ;;
  300.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  301.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  302.     program_prefix="$ac_optarg" ;;
  303.  
  304.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  305.   | --program-suf | --program-su | --program-s)
  306.     ac_prev=program_suffix ;;
  307.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  308.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  309.     program_suffix="$ac_optarg" ;;
  310.  
  311.   -program-transform-name | --program-transform-name \
  312.   | --program-transform-nam | --program-transform-na \
  313.   | --program-transform-n | --program-transform- \
  314.   | --program-transform | --program-transfor \
  315.   | --program-transfo | --program-transf \
  316.   | --program-trans | --program-tran \
  317.   | --progr-tra | --program-tr | --program-t)
  318.     ac_prev=program_transform_name ;;
  319.   -program-transform-name=* | --program-transform-name=* \
  320.   | --program-transform-nam=* | --program-transform-na=* \
  321.   | --program-transform-n=* | --program-transform-=* \
  322.   | --program-transform=* | --program-transfor=* \
  323.   | --program-transfo=* | --program-transf=* \
  324.   | --program-trans=* | --program-tran=* \
  325.   | --progr-tra=* | --program-tr=* | --program-t=*)
  326.     program_transform_name="$ac_optarg" ;;
  327.  
  328.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  329.   | -silent | --silent | --silen | --sile | --sil)
  330.     silent=yes ;;
  331.  
  332.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  333.     ac_prev=sbindir ;;
  334.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  335.   | --sbi=* | --sb=*)
  336.     sbindir="$ac_optarg" ;;
  337.  
  338.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  339.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  340.   | --sharedst | --shareds | --shared | --share | --shar \
  341.   | --sha | --sh)
  342.     ac_prev=sharedstatedir ;;
  343.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  344.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  345.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  346.   | --sha=* | --sh=*)
  347.     sharedstatedir="$ac_optarg" ;;
  348.  
  349.   -site | --site | --sit)
  350.     ac_prev=site ;;
  351.   -site=* | --site=* | --sit=*)
  352.     site="$ac_optarg" ;;
  353.  
  354.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  355.     ac_prev=srcdir ;;
  356.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  357.     srcdir="$ac_optarg" ;;
  358.  
  359.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  360.   | --syscon | --sysco | --sysc | --sys | --sy)
  361.     ac_prev=sysconfdir ;;
  362.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  363.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  364.     sysconfdir="$ac_optarg" ;;
  365.  
  366.   -target | --target | --targe | --targ | --tar | --ta | --t)
  367.     ac_prev=target ;;
  368.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  369.     target="$ac_optarg" ;;
  370.  
  371.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  372.     verbose=yes ;;
  373.  
  374.   -version | --version | --versio | --versi | --vers)
  375.     echo "configure generated by autoconf version 2.12"
  376.     exit 0 ;;
  377.  
  378.   -with-* | --with-*)
  379.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  380.     # Reject names that are not valid shell variable names.
  381.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  382.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  383.     fi
  384.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  385.     case "$ac_option" in
  386.       *=*) ;;
  387.       *) ac_optarg=yes ;;
  388.     esac
  389.     eval "with_${ac_package}='$ac_optarg'" ;;
  390.  
  391.   -without-* | --without-*)
  392.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  393.     # Reject names that are not valid shell variable names.
  394.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  395.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  396.     fi
  397.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  398.     eval "with_${ac_package}=no" ;;
  399.  
  400.   --x)
  401.     # Obsolete; use --with-x.
  402.     with_x=yes ;;
  403.  
  404.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  405.   | --x-incl | --x-inc | --x-in | --x-i)
  406.     ac_prev=x_includes ;;
  407.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  408.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  409.     x_includes="$ac_optarg" ;;
  410.  
  411.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  412.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  413.     ac_prev=x_libraries ;;
  414.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  415.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  416.     x_libraries="$ac_optarg" ;;
  417.  
  418.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  419.     ;;
  420.  
  421.   *)
  422.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  423.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  424.     fi
  425.     if test "x$nonopt" != xNONE; then
  426.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  427.     fi
  428.     nonopt="$ac_option"
  429.     ;;
  430.  
  431.   esac
  432. done
  433.  
  434. if test -n "$ac_prev"; then
  435.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  436. fi
  437.  
  438. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  439.  
  440. # File descriptor usage:
  441. # 0 standard input
  442. # 1 file creation
  443. # 2 errors and warnings
  444. # 3 some systems may open it to /dev/tty
  445. # 4 used on the Kubota Titan
  446. # 6 checking for... messages and results
  447. # 5 compiler messages saved in config.log
  448. if test "$silent" = yes; then
  449.   exec 6>/dev/null
  450. else
  451.   exec 6>&1
  452. fi
  453. exec 5>./config.log
  454.  
  455. echo "\
  456. This file contains any messages produced by compilers while
  457. running configure, to aid debugging if configure makes a mistake.
  458. " 1>&5
  459.  
  460. # Strip out --no-create and --no-recursion so they do not pile up.
  461. # Also quote any args containing shell metacharacters.
  462. ac_configure_args=
  463. for ac_arg
  464. do
  465.   case "$ac_arg" in
  466.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  467.   | --no-cr | --no-c) ;;
  468.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  469.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  470.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  471.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  472.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  473.   esac
  474. done
  475.  
  476. # NLS nuisances.
  477. # Only set these to C if already set.  These must not be set unconditionally
  478. # because not all systems understand e.g. LANG=C (notably SCO).
  479. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  480. # Non-C LC_CTYPE values break the ctype check.
  481. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  482. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  483. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  484. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  485.  
  486. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  487. rm -rf conftest* confdefs.h
  488. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  489. echo > confdefs.h
  490.  
  491. # A filename unique to this package, relative to the directory that
  492. # configure is in, which we can look for to find out if srcdir is correct.
  493. ac_unique_file=magick/magick.h
  494.  
  495. # Find the source files, if location was not specified.
  496. if test -z "$srcdir"; then
  497.   ac_srcdir_defaulted=yes
  498.   # Try the directory containing this script, then its parent.
  499.   ac_prog=$0
  500.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  501.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  502.   srcdir=$ac_confdir
  503.   if test ! -r $srcdir/$ac_unique_file; then
  504.     srcdir=..
  505.   fi
  506. else
  507.   ac_srcdir_defaulted=no
  508. fi
  509. if test ! -r $srcdir/$ac_unique_file; then
  510.   if test "$ac_srcdir_defaulted" = yes; then
  511.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  512.   else
  513.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  514.   fi
  515. fi
  516. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  517.  
  518. # Prefer explicitly selected file to automatically selected ones.
  519. if test -z "$CONFIG_SITE"; then
  520.   if test "x$prefix" != xNONE; then
  521.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  522.   else
  523.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  524.   fi
  525. fi
  526. for ac_site_file in $CONFIG_SITE; do
  527.   if test -r "$ac_site_file"; then
  528.     echo "loading site script $ac_site_file"
  529.     . "$ac_site_file"
  530.   fi
  531. done
  532.  
  533. if test -r "$cache_file"; then
  534.   echo "loading cache $cache_file"
  535.   . $cache_file
  536. else
  537.   echo "creating cache $cache_file"
  538.   > $cache_file
  539. fi
  540.  
  541. ac_ext=c
  542. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  543. ac_cpp='$CPP $CPPFLAGS'
  544. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  545. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  546. cross_compiling=$ac_cv_prog_cc_cross
  547.  
  548. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  549.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  550.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  551.     ac_n= ac_c='
  552. ' ac_t='    '
  553.   else
  554.     ac_n=-n ac_c= ac_t=
  555.   fi
  556. else
  557.   ac_n= ac_c='\c' ac_t=
  558. fi
  559.  
  560.  
  561.  
  562.  
  563.  
  564. ac_aux_dir=
  565. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  566.   if test -f $ac_dir/install-sh; then
  567.     ac_aux_dir=$ac_dir
  568.     ac_install_sh="$ac_aux_dir/install-sh -c"
  569.     break
  570.   elif test -f $ac_dir/install.sh; then
  571.     ac_aux_dir=$ac_dir
  572.     ac_install_sh="$ac_aux_dir/install.sh -c"
  573.     break
  574.   fi
  575. done
  576. if test -z "$ac_aux_dir"; then
  577.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  578. fi
  579. ac_config_guess=$ac_aux_dir/config.guess
  580. ac_config_sub=$ac_aux_dir/config.sub
  581. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  582.  
  583. # Find a good install program.  We prefer a C program (faster),
  584. # so one script is as good as another.  But avoid the broken or
  585. # incompatible versions:
  586. # SysV /etc/install, /usr/sbin/install
  587. # SunOS /usr/etc/install
  588. # IRIX /sbin/install
  589. # AIX /bin/install
  590. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  591. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  592. # ./install, which can be erroneously created by make from ./install.sh.
  593. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  594. echo "configure:595: checking for a BSD compatible install" >&5
  595. if test -z "$INSTALL"; then
  596. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  597.   echo $ac_n "(cached) $ac_c" 1>&6
  598. else
  599.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
  600.   for ac_dir in $PATH; do
  601.     # Account for people who put trailing slashes in PATH elements.
  602.     case "$ac_dir/" in
  603.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  604.     *)
  605.       # OSF1 and SCO ODT 3.0 have their own names for install.
  606.       for ac_prog in ginstall installbsd scoinst install; do
  607.         if test -f $ac_dir/$ac_prog; then
  608.       if test $ac_prog = install &&
  609.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  610.         # AIX install.  It has an incompatible calling convention.
  611.         # OSF/1 installbsd also uses dspmsg, but is usable.
  612.         :
  613.       else
  614.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  615.         break 2
  616.       fi
  617.     fi
  618.       done
  619.       ;;
  620.     esac
  621.   done
  622.   IFS="$ac_save_IFS"
  623.  
  624. fi
  625.   if test "${ac_cv_path_install+set}" = set; then
  626.     INSTALL="$ac_cv_path_install"
  627.   else
  628.     # As a last resort, use the slow shell script.  We don't cache a
  629.     # path for INSTALL within a source directory, because that will
  630.     # break other packages using the cache if that directory is
  631.     # removed, or if the path is relative.
  632.     INSTALL="$ac_install_sh"
  633.   fi
  634. fi
  635. echo "$ac_t""$INSTALL" 1>&6
  636.  
  637. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  638. # It thinks the first close brace ends the variable substitution.
  639. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  640.  
  641. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  642.  
  643.  
  644. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  645.  
  646. echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  647. echo "configure:648: checking whether build environment is sane" >&5
  648. # Just in case
  649. sleep 1
  650. echo timestamp > conftestfile
  651. # Do `set' in a subshell so we don't clobber the current shell's
  652. # arguments.  Must try -L first in case configure is actually a
  653. # symlink; some systems play weird games with the mod time of symlinks
  654. # (eg FreeBSD returns the mod time of the symlink's containing
  655. # directory).
  656. if (
  657.    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  658.    if test "$*" = "X"; then
  659.       # -L didn't work.
  660.       set X `ls -t $srcdir/configure conftestfile`
  661.    fi
  662.    if test "$*" != "X $srcdir/configure conftestfile" \
  663.       && test "$*" != "X conftestfile $srcdir/configure"; then
  664.  
  665.       # If neither matched, then we have a broken ls.  This can happen
  666.       # if, for instance, CONFIG_SHELL is bash and it inherits a
  667.       # broken ls alias from the environment.  This has actually
  668.       # happened.  Such a system could not be considered "sane".
  669.       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
  670. alias in your environment" 1>&2; exit 1; }
  671.    fi
  672.  
  673.    test "$2" = conftestfile
  674.    )
  675. then
  676.    # Ok.
  677.    :
  678. else
  679.    { echo "configure: error: newly created file is older than distributed files!
  680. Check your system clock" 1>&2; exit 1; }
  681. fi
  682. rm -f conftest*
  683. echo "$ac_t""yes" 1>&6
  684. if test "$program_transform_name" = s,x,x,; then
  685.   program_transform_name=
  686. else
  687.   # Double any \ or $.  echo might interpret backslashes.
  688.   cat <<\EOF_SED > conftestsed
  689. s,\\,\\\\,g; s,\$,$$,g
  690. EOF_SED
  691.   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  692.   rm -f conftestsed
  693. fi
  694. test "$program_prefix" != NONE &&
  695.   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  696. # Use a double $ so make ignores it.
  697. test "$program_suffix" != NONE &&
  698.   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  699.  
  700. # sed with no file args requires a program.
  701. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  702.  
  703. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  704. echo "configure:705: checking whether ${MAKE-make} sets \${MAKE}" >&5
  705. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  706. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  707.   echo $ac_n "(cached) $ac_c" 1>&6
  708. else
  709.   cat > conftestmake <<\EOF
  710. all:
  711.     @echo 'ac_maketemp="${MAKE}"'
  712. EOF
  713. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  714. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  715. if test -n "$ac_maketemp"; then
  716.   eval ac_cv_prog_make_${ac_make}_set=yes
  717. else
  718.   eval ac_cv_prog_make_${ac_make}_set=no
  719. fi
  720. rm -f conftestmake
  721. fi
  722. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  723.   echo "$ac_t""yes" 1>&6
  724.   SET_MAKE=
  725. else
  726.   echo "$ac_t""no" 1>&6
  727.   SET_MAKE="MAKE=${MAKE-make}"
  728. fi
  729.  
  730.  
  731. PACKAGE=ImageMagick
  732.  
  733. VERSION=4.0.6
  734.  
  735. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  736.   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  737. fi
  738. cat >> confdefs.h <<EOF
  739. #define PACKAGE "$PACKAGE"
  740. EOF
  741.  
  742. cat >> confdefs.h <<EOF
  743. #define VERSION "$VERSION"
  744. EOF
  745.  
  746.  
  747.  
  748. missing_dir=`cd $ac_aux_dir && pwd`
  749. echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
  750. echo "configure:751: checking for working aclocal" >&5
  751. # Run test in a subshell; some versions of sh will print an error if
  752. # an executable is not found, even if stderr is redirected.
  753. # Redirect stdin to placate older versions of autoconf.  Sigh.
  754. if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  755.    ACLOCAL=aclocal
  756.    echo "$ac_t""found" 1>&6
  757. else
  758.    ACLOCAL="$missing_dir/missing aclocal"
  759.    echo "$ac_t""missing" 1>&6
  760. fi
  761.  
  762. echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  763. echo "configure:764: checking for working autoconf" >&5
  764. # Run test in a subshell; some versions of sh will print an error if
  765. # an executable is not found, even if stderr is redirected.
  766. # Redirect stdin to placate older versions of autoconf.  Sigh.
  767. if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  768.    AUTOCONF=autoconf
  769.    echo "$ac_t""found" 1>&6
  770. else
  771.    AUTOCONF="$missing_dir/missing autoconf"
  772.    echo "$ac_t""missing" 1>&6
  773. fi
  774.  
  775. echo $ac_n "checking for working automake""... $ac_c" 1>&6
  776. echo "configure:777: checking for working automake" >&5
  777. # Run test in a subshell; some versions of sh will print an error if
  778. # an executable is not found, even if stderr is redirected.
  779. # Redirect stdin to placate older versions of autoconf.  Sigh.
  780. if (automake --version) < /dev/null > /dev/null 2>&1; then
  781.    AUTOMAKE=automake
  782.    echo "$ac_t""found" 1>&6
  783. else
  784.    AUTOMAKE="$missing_dir/missing automake"
  785.    echo "$ac_t""missing" 1>&6
  786. fi
  787.  
  788. echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  789. echo "configure:790: checking for working autoheader" >&5
  790. # Run test in a subshell; some versions of sh will print an error if
  791. # an executable is not found, even if stderr is redirected.
  792. # Redirect stdin to placate older versions of autoconf.  Sigh.
  793. if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  794.    AUTOHEADER=autoheader
  795.    echo "$ac_t""found" 1>&6
  796. else
  797.    AUTOHEADER="$missing_dir/missing autoheader"
  798.    echo "$ac_t""missing" 1>&6
  799. fi
  800.  
  801. echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  802. echo "configure:803: checking for working makeinfo" >&5
  803. # Run test in a subshell; some versions of sh will print an error if
  804. # an executable is not found, even if stderr is redirected.
  805. # Redirect stdin to placate older versions of autoconf.  Sigh.
  806. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  807.    MAKEINFO=makeinfo
  808.    echo "$ac_t""found" 1>&6
  809. else
  810.    MAKEINFO="$missing_dir/missing makeinfo"
  811.    echo "$ac_t""missing" 1>&6
  812. fi
  813.  
  814.  
  815. VERSION_CURRENT=4
  816. VERSION_REVISION=6
  817. VERSION_AGE=0
  818.  
  819.  
  820. # Extract the first word of "gcc", so it can be a program name with args.
  821. set dummy gcc; ac_word=$2
  822. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  823. echo "configure:824: checking for $ac_word" >&5
  824. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  825.   echo $ac_n "(cached) $ac_c" 1>&6
  826. else
  827.   if test -n "$CC"; then
  828.   ac_cv_prog_CC="$CC" # Let the user override the test.
  829. else
  830.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  831.   for ac_dir in $PATH; do
  832.     test -z "$ac_dir" && ac_dir=.
  833.     if test -f $ac_dir/$ac_word; then
  834.       ac_cv_prog_CC="gcc"
  835.       break
  836.     fi
  837.   done
  838.   IFS="$ac_save_ifs"
  839. fi
  840. fi
  841. CC="$ac_cv_prog_CC"
  842. if test -n "$CC"; then
  843.   echo "$ac_t""$CC" 1>&6
  844. else
  845.   echo "$ac_t""no" 1>&6
  846. fi
  847.  
  848. if test -z "$CC"; then
  849.   # Extract the first word of "cc", so it can be a program name with args.
  850. set dummy cc; ac_word=$2
  851. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  852. echo "configure:853: checking for $ac_word" >&5
  853. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  854.   echo $ac_n "(cached) $ac_c" 1>&6
  855. else
  856.   if test -n "$CC"; then
  857.   ac_cv_prog_CC="$CC" # Let the user override the test.
  858. else
  859.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  860.   ac_prog_rejected=no
  861.   for ac_dir in $PATH; do
  862.     test -z "$ac_dir" && ac_dir=.
  863.     if test -f $ac_dir/$ac_word; then
  864.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  865.         ac_prog_rejected=yes
  866.     continue
  867.       fi
  868.       ac_cv_prog_CC="cc"
  869.       break
  870.     fi
  871.   done
  872.   IFS="$ac_save_ifs"
  873. if test $ac_prog_rejected = yes; then
  874.   # We found a bogon in the path, so make sure we never use it.
  875.   set dummy $ac_cv_prog_CC
  876.   shift
  877.   if test $# -gt 0; then
  878.     # We chose a different compiler from the bogus one.
  879.     # However, it has the same basename, so the bogon will be chosen
  880.     # first if we set CC to just the basename; use the full file name.
  881.     shift
  882.     set dummy "$ac_dir/$ac_word" "$@"
  883.     shift
  884.     ac_cv_prog_CC="$@"
  885.   fi
  886. fi
  887. fi
  888. fi
  889. CC="$ac_cv_prog_CC"
  890. if test -n "$CC"; then
  891.   echo "$ac_t""$CC" 1>&6
  892. else
  893.   echo "$ac_t""no" 1>&6
  894. fi
  895.  
  896.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  897. fi
  898.  
  899. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  900. echo "configure:901: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  901.  
  902. ac_ext=c
  903. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  904. ac_cpp='$CPP $CPPFLAGS'
  905. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  906. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  907. cross_compiling=$ac_cv_prog_cc_cross
  908.  
  909. cat > conftest.$ac_ext <<EOF
  910. #line 911 "configure"
  911. #include "confdefs.h"
  912. main(){return(0);}
  913. EOF
  914. if { (eval echo configure:915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  915.   ac_cv_prog_cc_works=yes
  916.   # If we can't run a trivial program, we are probably using a cross compiler.
  917.   if (./conftest; exit) 2>/dev/null; then
  918.     ac_cv_prog_cc_cross=no
  919.   else
  920.     ac_cv_prog_cc_cross=yes
  921.   fi
  922. else
  923.   echo "configure: failed program was:" >&5
  924.   cat conftest.$ac_ext >&5
  925.   ac_cv_prog_cc_works=no
  926. fi
  927. rm -fr conftest*
  928.  
  929. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  930. if test $ac_cv_prog_cc_works = no; then
  931.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  932. fi
  933. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  934. echo "configure:935: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  935. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  936. cross_compiling=$ac_cv_prog_cc_cross
  937.  
  938. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  939. echo "configure:940: checking whether we are using GNU C" >&5
  940. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  941.   echo $ac_n "(cached) $ac_c" 1>&6
  942. else
  943.   cat > conftest.c <<EOF
  944. #ifdef __GNUC__
  945.   yes;
  946. #endif
  947. EOF
  948. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  949.   ac_cv_prog_gcc=yes
  950. else
  951.   ac_cv_prog_gcc=no
  952. fi
  953. fi
  954.  
  955. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  956.  
  957. if test $ac_cv_prog_gcc = yes; then
  958.   GCC=yes
  959.   ac_test_CFLAGS="${CFLAGS+set}"
  960.   ac_save_CFLAGS="$CFLAGS"
  961.   CFLAGS=
  962.   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  963. echo "configure:964: checking whether ${CC-cc} accepts -g" >&5
  964. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  965.   echo $ac_n "(cached) $ac_c" 1>&6
  966. else
  967.   echo 'void f(){}' > conftest.c
  968. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  969.   ac_cv_prog_cc_g=yes
  970. else
  971.   ac_cv_prog_cc_g=no
  972. fi
  973. rm -f conftest*
  974.  
  975. fi
  976.  
  977. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  978.   if test "$ac_test_CFLAGS" = set; then
  979.     CFLAGS="$ac_save_CFLAGS"
  980.   elif test $ac_cv_prog_cc_g = yes; then
  981.     CFLAGS="-g -O2"
  982.   else
  983.     CFLAGS="-O2"
  984.   fi
  985. else
  986.   GCC=
  987.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  988. fi
  989.  
  990.  
  991.  
  992.  
  993. echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
  994. echo "configure:995: checking for ${CC-cc} option to accept ANSI C" >&5
  995. if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
  996.   echo $ac_n "(cached) $ac_c" 1>&6
  997. else
  998.   am_cv_prog_cc_stdc=no
  999. ac_save_CC="$CC"
  1000. # Don't try gcc -ansi; that turns off useful extensions and
  1001. # breaks some systems' header files.
  1002. # AIX            -qlanglvl=ansi
  1003. # Ultrix and OSF/1    -std1
  1004. # HP-UX            -Aa -D_HPUX_SOURCE
  1005. # SVR4            -Xc -D__EXTENSIONS__
  1006. for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1007. do
  1008.   CC="$ac_save_CC $ac_arg"
  1009.   cat > conftest.$ac_ext <<EOF
  1010. #line 1011 "configure"
  1011. #include "confdefs.h"
  1012. #include <stdarg.h>
  1013. #include <stdio.h>
  1014. #include <sys/types.h>
  1015. #include <sys/stat.h>
  1016. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  1017. struct buf { int x; };
  1018. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1019. static char *e (p, i)
  1020.      char **p;
  1021.      int i;
  1022. {
  1023.   return p[i];
  1024. }
  1025. static char *f (char * (*g) (char **, int), char **p, ...)
  1026. {
  1027.   char *s;
  1028.   va_list v;
  1029.   va_start (v,p);
  1030.   s = g (p, va_arg (v,int));
  1031.   va_end (v);
  1032.   return s;
  1033. }
  1034. int test (int i, double x);
  1035. struct s1 {int (*f) (int a);};
  1036. struct s2 {int (*f) (double a);};
  1037. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1038. int argc;
  1039. char **argv;
  1040.  
  1041. int main() {
  1042.  
  1043. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  1044.  
  1045. ; return 0; }
  1046. EOF
  1047. if { (eval echo configure:1048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1048.   rm -rf conftest*
  1049.   am_cv_prog_cc_stdc="$ac_arg"; break
  1050. else
  1051.   echo "configure: failed program was:" >&5
  1052.   cat conftest.$ac_ext >&5
  1053. fi
  1054. rm -f conftest*
  1055. done
  1056. CC="$ac_save_CC"
  1057.  
  1058. fi
  1059.  
  1060. if test -z "$am_cv_prog_cc_stdc"; then
  1061.   echo "$ac_t""none needed" 1>&6
  1062. else
  1063.   echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
  1064. fi
  1065. case "x$am_cv_prog_cc_stdc" in
  1066.   x|xno) ;;
  1067.   *) CC="$CC $am_cv_prog_cc_stdc" ;;
  1068. esac
  1069.  
  1070. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  1071. echo "configure:1072: checking how to run the C preprocessor" >&5
  1072. # On Suns, sometimes $CPP names a directory.
  1073. if test -n "$CPP" && test -d "$CPP"; then
  1074.   CPP=
  1075. fi
  1076. if test -z "$CPP"; then
  1077. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  1078.   echo $ac_n "(cached) $ac_c" 1>&6
  1079. else
  1080.     # This must be in double quotes, not single quotes, because CPP may get
  1081.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  1082.   CPP="${CC-cc} -E"
  1083.   # On the NeXT, cc -E runs the code through the compiler's parser,
  1084.   # not just through cpp.
  1085.   cat > conftest.$ac_ext <<EOF
  1086. #line 1087 "configure"
  1087. #include "confdefs.h"
  1088. #include <assert.h>
  1089. Syntax Error
  1090. EOF
  1091. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1092. { (eval echo configure:1093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1093. ac_err=`grep -v '^ *+' conftest.out`
  1094. if test -z "$ac_err"; then
  1095.   :
  1096. else
  1097.   echo "$ac_err" >&5
  1098.   echo "configure: failed program was:" >&5
  1099.   cat conftest.$ac_ext >&5
  1100.   rm -rf conftest*
  1101.   CPP="${CC-cc} -E -traditional-cpp"
  1102.   cat > conftest.$ac_ext <<EOF
  1103. #line 1104 "configure"
  1104. #include "confdefs.h"
  1105. #include <assert.h>
  1106. Syntax Error
  1107. EOF
  1108. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1109. { (eval echo configure:1110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1110. ac_err=`grep -v '^ *+' conftest.out`
  1111. if test -z "$ac_err"; then
  1112.   :
  1113. else
  1114.   echo "$ac_err" >&5
  1115.   echo "configure: failed program was:" >&5
  1116.   cat conftest.$ac_ext >&5
  1117.   rm -rf conftest*
  1118.   CPP=/lib/cpp
  1119. fi
  1120. rm -f conftest*
  1121. fi
  1122. rm -f conftest*
  1123.   ac_cv_prog_CPP="$CPP"
  1124. fi
  1125.   CPP="$ac_cv_prog_CPP"
  1126. else
  1127.   ac_cv_prog_CPP="$CPP"
  1128. fi
  1129. echo "$ac_t""$CPP" 1>&6
  1130.  
  1131. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  1132. echo "configure:1133: checking whether ln -s works" >&5
  1133. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  1134.   echo $ac_n "(cached) $ac_c" 1>&6
  1135. else
  1136.   rm -f conftestdata
  1137. if ln -s X conftestdata 2>/dev/null
  1138. then
  1139.   rm -f conftestdata
  1140.   ac_cv_prog_LN_S="ln -s"
  1141. else
  1142.   ac_cv_prog_LN_S=ln
  1143. fi
  1144. fi
  1145. LN_S="$ac_cv_prog_LN_S"
  1146. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  1147.   echo "$ac_t""yes" 1>&6
  1148. else
  1149.   echo "$ac_t""no" 1>&6
  1150. fi
  1151.  
  1152.  
  1153. # Check whether --enable-shared or --disable-shared was given.
  1154. if test "${enable_shared+set}" = set; then
  1155.   enableval="$enable_shared"
  1156.   p=${PACKAGE-default}
  1157. case "$enableval" in
  1158. yes) enable_shared=yes ;;
  1159. no) enable_shared=no ;;
  1160. *)
  1161.   enable_shared=no
  1162.   # Look at the argument we got.  We use all the common list separators.
  1163.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1164.   for pkg in $enableval; do
  1165.     if test "X$pkg" = "X$p"; then
  1166.       enable_shared=yes
  1167.     fi
  1168.   done
  1169.   IFS="$ac_save_ifs"
  1170.   ;;
  1171. esac
  1172. else
  1173.   enable_shared=no
  1174. fi
  1175.  
  1176. # Check whether --enable-static or --disable-static was given.
  1177. if test "${enable_static+set}" = set; then
  1178.   enableval="$enable_static"
  1179.   p=${PACKAGE-default}
  1180. case "$enableval" in
  1181. yes) enable_static=yes ;;
  1182. no) enable_static=no ;;
  1183. *)
  1184.   enable_static=no
  1185.   # Look at the argument we got.  We use all the common list separators.
  1186.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1187.   for pkg in $enableval; do
  1188.     if test "X$pkg" = "X$p"; then
  1189.       enable_static=yes
  1190.     fi
  1191.   done
  1192.   IFS="$ac_save_ifs"
  1193.   ;;
  1194. esac
  1195. else
  1196.   enable_static=yes
  1197. fi
  1198.  
  1199.  
  1200. # Make sure we can run config.sub.
  1201. if $ac_config_sub sun4 >/dev/null 2>&1; then :
  1202. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  1203. fi
  1204.  
  1205. echo $ac_n "checking host system type""... $ac_c" 1>&6
  1206. echo "configure:1207: checking host system type" >&5
  1207.  
  1208. host_alias=$host
  1209. case "$host_alias" in
  1210. NONE)
  1211.   case $nonopt in
  1212.   NONE)
  1213.     if host_alias=`$ac_config_guess`; then :
  1214.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  1215.     fi ;;
  1216.   *) host_alias=$nonopt ;;
  1217.   esac ;;
  1218. esac
  1219.  
  1220. host=`$ac_config_sub $host_alias`
  1221. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1222. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1223. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1224. echo "$ac_t""$host" 1>&6
  1225.  
  1226. # Extract the first word of "ranlib", so it can be a program name with args.
  1227. set dummy ranlib; ac_word=$2
  1228. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1229. echo "configure:1230: checking for $ac_word" >&5
  1230. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1231.   echo $ac_n "(cached) $ac_c" 1>&6
  1232. else
  1233.   if test -n "$RANLIB"; then
  1234.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1235. else
  1236.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1237.   for ac_dir in $PATH; do
  1238.     test -z "$ac_dir" && ac_dir=.
  1239.     if test -f $ac_dir/$ac_word; then
  1240.       ac_cv_prog_RANLIB="ranlib"
  1241.       break
  1242.     fi
  1243.   done
  1244.   IFS="$ac_save_ifs"
  1245.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  1246. fi
  1247. fi
  1248. RANLIB="$ac_cv_prog_RANLIB"
  1249. if test -n "$RANLIB"; then
  1250.   echo "$ac_t""$RANLIB" 1>&6
  1251. else
  1252.   echo "$ac_t""no" 1>&6
  1253. fi
  1254.  
  1255. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  1256. if test "${with_gnu_ld+set}" = set; then
  1257.   withval="$with_gnu_ld"
  1258.   test "$withval" = no || with_gnu_ld=yes
  1259. else
  1260.   with_gnu_ld=no
  1261. fi
  1262.  
  1263.  
  1264. ac_prog=ld
  1265. if test "$ac_cv_prog_gcc" = yes; then
  1266.   # Check if gcc -print-prog-name=ld gives a path.
  1267.   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
  1268. echo "configure:1269: checking for ld used by GCC" >&5
  1269.   ac_prog=`($CC -print-prog-name=ld) 2>&5`
  1270.   case "$ac_prog" in
  1271.   # Accept absolute paths.
  1272.   /* | [A-Za-z]:\\*)
  1273.     test -z "$LD" && LD="$ac_prog"
  1274.     ;;
  1275.   "")
  1276.     # If it fails, then pretend we aren't using GCC.
  1277.     ac_prog=ld
  1278.     ;;
  1279.   *)
  1280.     # If it is relative, then search for the first ld in PATH.
  1281.     with_gnu_ld=unknown
  1282.     ;;
  1283.   esac
  1284. elif test "$with_gnu_ld" = yes; then
  1285.   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
  1286. echo "configure:1287: checking for GNU ld" >&5
  1287. else
  1288.   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
  1289. echo "configure:1290: checking for non-GNU ld" >&5
  1290. fi
  1291. if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
  1292.   echo $ac_n "(cached) $ac_c" 1>&6
  1293. else
  1294.   if test -z "$LD"; then
  1295.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1296.   for ac_dir in $PATH; do
  1297.     test -z "$ac_dir" && ac_dir=.
  1298.     if test -f "$ac_dir/$ac_prog"; then
  1299.       ac_cv_path_LD="$ac_dir/$ac_prog"
  1300.       # Check to see if the program is GNU ld.  I'd rather use --version,
  1301.       # but apparently some GNU ld's only accept -v.
  1302.       # Break only if it was the GNU/non-GNU ld that we prefer.
  1303.       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  1304.     test "$with_gnu_ld" != no && break
  1305.       else
  1306.         test "$with_gnu_ld" != yes && break
  1307.       fi
  1308.     fi
  1309.   done
  1310.   IFS="$ac_save_ifs"
  1311. else
  1312.   ac_cv_path_LD="$LD" # Let the user override the test with a path.
  1313. fi
  1314. fi
  1315.  
  1316. LD="$ac_cv_path_LD"
  1317. if test -n "$LD"; then
  1318.   echo "$ac_t""$LD" 1>&6
  1319. else
  1320.   echo "$ac_t""no" 1>&6
  1321. fi
  1322. test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
  1323.  
  1324. echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
  1325. echo "configure:1326: checking if the linker ($LD) is GNU ld" >&5
  1326. if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
  1327.   echo $ac_n "(cached) $ac_c" 1>&6
  1328. else
  1329.   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  1330. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  1331.   ac_cv_prog_gnu_ld=yes
  1332. else
  1333.   ac_cv_prog_gnu_ld=no
  1334. fi
  1335. fi
  1336.  
  1337. echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
  1338.  
  1339.  
  1340. echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
  1341. echo "configure:1342: checking for BSD-compatible nm" >&5
  1342. if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
  1343.   echo $ac_n "(cached) $ac_c" 1>&6
  1344. else
  1345.   if test -n "$NM"; then
  1346.   # Let the user override the test.
  1347.   ac_cv_path_NM="$NM"
  1348. else
  1349.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1350.   for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
  1351.     test -z "$ac_dir" && ac_dir=.
  1352.     if test -f $ac_dir/nm; then
  1353.       # Check to see if the nm accepts a BSD-compat flag.
  1354.       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  1355.       #   nm: unknown option "B" ignored
  1356.       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  1357.         ac_cv_path_NM="$ac_dir/nm -B"
  1358.       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  1359.         ac_cv_path_NM="$ac_dir/nm -p"
  1360.       else
  1361.         ac_cv_path_NM="$ac_dir/nm"
  1362.       fi
  1363.       break
  1364.     fi
  1365.   done
  1366.   IFS="$ac_save_ifs"
  1367.   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
  1368. fi
  1369. fi
  1370.  
  1371. NM="$ac_cv_path_NM"
  1372. echo "$ac_t""$NM" 1>&6
  1373.  
  1374.  
  1375. # Always use our own libtool.
  1376. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  1377.  
  1378. # Check for any special flags to pass to ltconfig.
  1379. libtool_flags=
  1380. test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
  1381. test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
  1382. test "$silent" = yes && libtool_flags="$libtool_flags --silent"
  1383. test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
  1384. test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
  1385.  
  1386. # Some flags need to be propagated to the compiler or linker for good
  1387. # libtool support.
  1388. case "$host" in
  1389. *-*-irix6*)
  1390.   # Find out which ABI we are using.
  1391.   echo '#line 1392 "configure"' > conftest.$ac_ext
  1392.   if { (eval echo configure:1393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1393.     case "`/usr/bin/file conftest.o`" in
  1394.     *32-bit*)
  1395.       LD="${LD-ld} -32"
  1396.       ;;
  1397.     *N32*)
  1398.       LD="${LD-ld} -n32"
  1399.       ;;
  1400.     *64-bit*)
  1401.       LD="${LD-ld} -64"
  1402.       ;;
  1403.     esac
  1404.   fi
  1405.   rm -rf conftest*
  1406.   ;;
  1407.  
  1408. *-*-sco3.2v5*)
  1409.   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1410.   CFLAGS="$CFLAGS -belf"
  1411.   ;;
  1412. esac
  1413.  
  1414. # Actually configure libtool.  ac_aux_dir is where install-sh is found.
  1415. CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
  1416. LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
  1417. ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
  1418. $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
  1419. || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
  1420.  
  1421. # Redirect the config.log output again, so that the ltconfig log is not
  1422. # clobbered by the next message.
  1423. exec 5>>./config.log
  1424.  
  1425.  
  1426. ac_header_dirent=no
  1427. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  1428. do
  1429. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1430. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  1431. echo "configure:1432: checking for $ac_hdr that defines DIR" >&5
  1432. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  1433.   echo $ac_n "(cached) $ac_c" 1>&6
  1434. else
  1435.   cat > conftest.$ac_ext <<EOF
  1436. #line 1437 "configure"
  1437. #include "confdefs.h"
  1438. #include <sys/types.h>
  1439. #include <$ac_hdr>
  1440. int main() {
  1441. DIR *dirp = 0;
  1442. ; return 0; }
  1443. EOF
  1444. if { (eval echo configure:1445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1445.   rm -rf conftest*
  1446.   eval "ac_cv_header_dirent_$ac_safe=yes"
  1447. else
  1448.   echo "configure: failed program was:" >&5
  1449.   cat conftest.$ac_ext >&5
  1450.   rm -rf conftest*
  1451.   eval "ac_cv_header_dirent_$ac_safe=no"
  1452. fi
  1453. rm -f conftest*
  1454. fi
  1455. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  1456.   echo "$ac_t""yes" 1>&6
  1457.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1458.   cat >> confdefs.h <<EOF
  1459. #define $ac_tr_hdr 1
  1460. EOF
  1461.  ac_header_dirent=$ac_hdr; break
  1462. else
  1463.   echo "$ac_t""no" 1>&6
  1464. fi
  1465. done
  1466. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  1467. if test $ac_header_dirent = dirent.h; then
  1468. echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
  1469. echo "configure:1470: checking for opendir in -ldir" >&5
  1470. ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
  1471. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1472.   echo $ac_n "(cached) $ac_c" 1>&6
  1473. else
  1474.   ac_save_LIBS="$LIBS"
  1475. LIBS="-ldir  $LIBS"
  1476. cat > conftest.$ac_ext <<EOF
  1477. #line 1478 "configure"
  1478. #include "confdefs.h"
  1479. /* Override any gcc2 internal prototype to avoid an error.  */
  1480. /* We use char because int might match the return type of a gcc2
  1481.     builtin and then its argument prototype would still apply.  */
  1482. char opendir();
  1483.  
  1484. int main() {
  1485. opendir()
  1486. ; return 0; }
  1487. EOF
  1488. if { (eval echo configure:1489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1489.   rm -rf conftest*
  1490.   eval "ac_cv_lib_$ac_lib_var=yes"
  1491. else
  1492.   echo "configure: failed program was:" >&5
  1493.   cat conftest.$ac_ext >&5
  1494.   rm -rf conftest*
  1495.   eval "ac_cv_lib_$ac_lib_var=no"
  1496. fi
  1497. rm -f conftest*
  1498. LIBS="$ac_save_LIBS"
  1499.  
  1500. fi
  1501. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1502.   echo "$ac_t""yes" 1>&6
  1503.   LIBS="$LIBS -ldir"
  1504. else
  1505.   echo "$ac_t""no" 1>&6
  1506. fi
  1507.  
  1508. else
  1509. echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
  1510. echo "configure:1511: checking for opendir in -lx" >&5
  1511. ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
  1512. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1513.   echo $ac_n "(cached) $ac_c" 1>&6
  1514. else
  1515.   ac_save_LIBS="$LIBS"
  1516. LIBS="-lx  $LIBS"
  1517. cat > conftest.$ac_ext <<EOF
  1518. #line 1519 "configure"
  1519. #include "confdefs.h"
  1520. /* Override any gcc2 internal prototype to avoid an error.  */
  1521. /* We use char because int might match the return type of a gcc2
  1522.     builtin and then its argument prototype would still apply.  */
  1523. char opendir();
  1524.  
  1525. int main() {
  1526. opendir()
  1527. ; return 0; }
  1528. EOF
  1529. if { (eval echo configure:1530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1530.   rm -rf conftest*
  1531.   eval "ac_cv_lib_$ac_lib_var=yes"
  1532. else
  1533.   echo "configure: failed program was:" >&5
  1534.   cat conftest.$ac_ext >&5
  1535.   rm -rf conftest*
  1536.   eval "ac_cv_lib_$ac_lib_var=no"
  1537. fi
  1538. rm -f conftest*
  1539. LIBS="$ac_save_LIBS"
  1540.  
  1541. fi
  1542. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1543.   echo "$ac_t""yes" 1>&6
  1544.   LIBS="$LIBS -lx"
  1545. else
  1546.   echo "$ac_t""no" 1>&6
  1547. fi
  1548.  
  1549. fi
  1550.  
  1551. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1552. echo "configure:1553: checking for ANSI C header files" >&5
  1553. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1554.   echo $ac_n "(cached) $ac_c" 1>&6
  1555. else
  1556.   cat > conftest.$ac_ext <<EOF
  1557. #line 1558 "configure"
  1558. #include "confdefs.h"
  1559. #include <stdlib.h>
  1560. #include <stdarg.h>
  1561. #include <string.h>
  1562. #include <float.h>
  1563. EOF
  1564. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1565. { (eval echo configure:1566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1566. ac_err=`grep -v '^ *+' conftest.out`
  1567. if test -z "$ac_err"; then
  1568.   rm -rf conftest*
  1569.   ac_cv_header_stdc=yes
  1570. else
  1571.   echo "$ac_err" >&5
  1572.   echo "configure: failed program was:" >&5
  1573.   cat conftest.$ac_ext >&5
  1574.   rm -rf conftest*
  1575.   ac_cv_header_stdc=no
  1576. fi
  1577. rm -f conftest*
  1578.  
  1579. if test $ac_cv_header_stdc = yes; then
  1580.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1581. cat > conftest.$ac_ext <<EOF
  1582. #line 1583 "configure"
  1583. #include "confdefs.h"
  1584. #include <string.h>
  1585. EOF
  1586. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1587.   egrep "memchr" >/dev/null 2>&1; then
  1588.   :
  1589. else
  1590.   rm -rf conftest*
  1591.   ac_cv_header_stdc=no
  1592. fi
  1593. rm -f conftest*
  1594.  
  1595. fi
  1596.  
  1597. if test $ac_cv_header_stdc = yes; then
  1598.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1599. cat > conftest.$ac_ext <<EOF
  1600. #line 1601 "configure"
  1601. #include "confdefs.h"
  1602. #include <stdlib.h>
  1603. EOF
  1604. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1605.   egrep "free" >/dev/null 2>&1; then
  1606.   :
  1607. else
  1608.   rm -rf conftest*
  1609.   ac_cv_header_stdc=no
  1610. fi
  1611. rm -f conftest*
  1612.  
  1613. fi
  1614.  
  1615. if test $ac_cv_header_stdc = yes; then
  1616.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1617. if test "$cross_compiling" = yes; then
  1618.   :
  1619. else
  1620.   cat > conftest.$ac_ext <<EOF
  1621. #line 1622 "configure"
  1622. #include "confdefs.h"
  1623. #include <ctype.h>
  1624. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1625. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1626. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1627. int main () { int i; for (i = 0; i < 256; i++)
  1628. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1629. exit (0); }
  1630.  
  1631. EOF
  1632. if { (eval echo configure:1633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  1633. then
  1634.   :
  1635. else
  1636.   echo "configure: failed program was:" >&5
  1637.   cat conftest.$ac_ext >&5
  1638.   rm -fr conftest*
  1639.   ac_cv_header_stdc=no
  1640. fi
  1641. rm -fr conftest*
  1642. fi
  1643.  
  1644. fi
  1645. fi
  1646.  
  1647. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1648. if test $ac_cv_header_stdc = yes; then
  1649.   cat >> confdefs.h <<\EOF
  1650. #define STDC_HEADERS 1
  1651. EOF
  1652.  
  1653. fi
  1654.  
  1655. echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
  1656. echo "configure:1657: checking for sys/wait.h that is POSIX.1 compatible" >&5
  1657. if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  1658.   echo $ac_n "(cached) $ac_c" 1>&6
  1659. else
  1660.   cat > conftest.$ac_ext <<EOF
  1661. #line 1662 "configure"
  1662. #include "confdefs.h"
  1663. #include <sys/types.h>
  1664. #include <sys/wait.h>
  1665. #ifndef WEXITSTATUS
  1666. #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  1667. #endif
  1668. #ifndef WIFEXITED
  1669. #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  1670. #endif
  1671. int main() {
  1672. int s;
  1673. wait (&s);
  1674. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  1675. ; return 0; }
  1676. EOF
  1677. if { (eval echo configure:1678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1678.   rm -rf conftest*
  1679.   ac_cv_header_sys_wait_h=yes
  1680. else
  1681.   echo "configure: failed program was:" >&5
  1682.   cat conftest.$ac_ext >&5
  1683.   rm -rf conftest*
  1684.   ac_cv_header_sys_wait_h=no
  1685. fi
  1686. rm -f conftest*
  1687. fi
  1688.  
  1689. echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
  1690. if test $ac_cv_header_sys_wait_h = yes; then
  1691.   cat >> confdefs.h <<\EOF
  1692. #define HAVE_SYS_WAIT_H 1
  1693. EOF
  1694.  
  1695. fi
  1696.  
  1697. ac_safe=`echo "elf.h" | sed 'y%./+-%__p_%'`
  1698. echo $ac_n "checking for elf.h""... $ac_c" 1>&6
  1699. echo "configure:1700: checking for elf.h" >&5
  1700. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1701.   echo $ac_n "(cached) $ac_c" 1>&6
  1702. else
  1703.   cat > conftest.$ac_ext <<EOF
  1704. #line 1705 "configure"
  1705. #include "confdefs.h"
  1706. #include <elf.h>
  1707. EOF
  1708. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1709. { (eval echo configure:1710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1710. ac_err=`grep -v '^ *+' conftest.out`
  1711. if test -z "$ac_err"; then
  1712.   rm -rf conftest*
  1713.   eval "ac_cv_header_$ac_safe=yes"
  1714. else
  1715.   echo "$ac_err" >&5
  1716.   echo "configure: failed program was:" >&5
  1717.   cat conftest.$ac_ext >&5
  1718.   rm -rf conftest*
  1719.   eval "ac_cv_header_$ac_safe=no"
  1720. fi
  1721. rm -f conftest*
  1722. fi
  1723. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1724.   echo "$ac_t""yes" 1>&6
  1725.   cat >> confdefs.h <<\EOF
  1726. #define SVR4 1
  1727. EOF
  1728.  
  1729. else
  1730.   echo "$ac_t""no" 1>&6
  1731. fi
  1732.  
  1733. for ac_hdr in fcntl.h strings.h sys/file.h sys/time.h unistd.h
  1734. do
  1735. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1736. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1737. echo "configure:1738: checking for $ac_hdr" >&5
  1738. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1739.   echo $ac_n "(cached) $ac_c" 1>&6
  1740. else
  1741.   cat > conftest.$ac_ext <<EOF
  1742. #line 1743 "configure"
  1743. #include "confdefs.h"
  1744. #include <$ac_hdr>
  1745. EOF
  1746. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1747. { (eval echo configure:1748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1748. ac_err=`grep -v '^ *+' conftest.out`
  1749. if test -z "$ac_err"; then
  1750.   rm -rf conftest*
  1751.   eval "ac_cv_header_$ac_safe=yes"
  1752. else
  1753.   echo "$ac_err" >&5
  1754.   echo "configure: failed program was:" >&5
  1755.   cat conftest.$ac_ext >&5
  1756.   rm -rf conftest*
  1757.   eval "ac_cv_header_$ac_safe=no"
  1758. fi
  1759. rm -f conftest*
  1760. fi
  1761. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1762.   echo "$ac_t""yes" 1>&6
  1763.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1764.   cat >> confdefs.h <<EOF
  1765. #define $ac_tr_hdr 1
  1766. EOF
  1767.  
  1768. else
  1769.   echo "$ac_t""no" 1>&6
  1770. fi
  1771. done
  1772.  
  1773.  
  1774. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1775. echo "configure:1776: checking for working const" >&5
  1776. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1777.   echo $ac_n "(cached) $ac_c" 1>&6
  1778. else
  1779.   cat > conftest.$ac_ext <<EOF
  1780. #line 1781 "configure"
  1781. #include "confdefs.h"
  1782.  
  1783. int main() {
  1784.  
  1785. /* Ultrix mips cc rejects this.  */
  1786. typedef int charset[2]; const charset x;
  1787. /* SunOS 4.1.1 cc rejects this.  */
  1788. char const *const *ccp;
  1789. char **p;
  1790. /* NEC SVR4.0.2 mips cc rejects this.  */
  1791. struct point {int x, y;};
  1792. static struct point const zero = {0,0};
  1793. /* AIX XL C 1.02.0.0 rejects this.
  1794.    It does not let you subtract one const X* pointer from another in an arm
  1795.    of an if-expression whose if-part is not a constant expression */
  1796. const char *g = "string";
  1797. ccp = &g + (g ? g-g : 0);
  1798. /* HPUX 7.0 cc rejects these. */
  1799. ++ccp;
  1800. p = (char**) ccp;
  1801. ccp = (char const *const *) p;
  1802. { /* SCO 3.2v4 cc rejects this.  */
  1803.   char *t;
  1804.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  1805.  
  1806.   *t++ = 0;
  1807. }
  1808. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  1809.   int x[] = {25, 17};
  1810.   const int *foo = &x[0];
  1811.   ++foo;
  1812. }
  1813. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1814.   typedef const int *iptr;
  1815.   iptr p = 0;
  1816.   ++p;
  1817. }
  1818. { /* AIX XL C 1.02.0.0 rejects this saying
  1819.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1820.   struct s { int j; const int *ap[3]; };
  1821.   struct s *b; b->j = 5;
  1822. }
  1823. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1824.   const int foo = 10;
  1825. }
  1826.  
  1827. ; return 0; }
  1828. EOF
  1829. if { (eval echo configure:1830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1830.   rm -rf conftest*
  1831.   ac_cv_c_const=yes
  1832. else
  1833.   echo "configure: failed program was:" >&5
  1834.   cat conftest.$ac_ext >&5
  1835.   rm -rf conftest*
  1836.   ac_cv_c_const=no
  1837. fi
  1838. rm -f conftest*
  1839. fi
  1840.  
  1841. echo "$ac_t""$ac_cv_c_const" 1>&6
  1842. if test $ac_cv_c_const = no; then
  1843.   cat >> confdefs.h <<\EOF
  1844. #define const 
  1845. EOF
  1846.  
  1847. fi
  1848.  
  1849. echo $ac_n "checking for mode_t""... $ac_c" 1>&6
  1850. echo "configure:1851: checking for mode_t" >&5
  1851. if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
  1852.   echo $ac_n "(cached) $ac_c" 1>&6
  1853. else
  1854.   cat > conftest.$ac_ext <<EOF
  1855. #line 1856 "configure"
  1856. #include "confdefs.h"
  1857. #include <sys/types.h>
  1858. #if STDC_HEADERS
  1859. #include <stdlib.h>
  1860. #include <stddef.h>
  1861. #endif
  1862. EOF
  1863. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1864.   egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  1865.   rm -rf conftest*
  1866.   ac_cv_type_mode_t=yes
  1867. else
  1868.   rm -rf conftest*
  1869.   ac_cv_type_mode_t=no
  1870. fi
  1871. rm -f conftest*
  1872.  
  1873. fi
  1874. echo "$ac_t""$ac_cv_type_mode_t" 1>&6
  1875. if test $ac_cv_type_mode_t = no; then
  1876.   cat >> confdefs.h <<\EOF
  1877. #define mode_t int
  1878. EOF
  1879.  
  1880. fi
  1881.  
  1882. echo $ac_n "checking for pid_t""... $ac_c" 1>&6
  1883. echo "configure:1884: checking for pid_t" >&5
  1884. if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  1885.   echo $ac_n "(cached) $ac_c" 1>&6
  1886. else
  1887.   cat > conftest.$ac_ext <<EOF
  1888. #line 1889 "configure"
  1889. #include "confdefs.h"
  1890. #include <sys/types.h>
  1891. #if STDC_HEADERS
  1892. #include <stdlib.h>
  1893. #include <stddef.h>
  1894. #endif
  1895. EOF
  1896. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1897.   egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  1898.   rm -rf conftest*
  1899.   ac_cv_type_pid_t=yes
  1900. else
  1901.   rm -rf conftest*
  1902.   ac_cv_type_pid_t=no
  1903. fi
  1904. rm -f conftest*
  1905.  
  1906. fi
  1907. echo "$ac_t""$ac_cv_type_pid_t" 1>&6
  1908. if test $ac_cv_type_pid_t = no; then
  1909.   cat >> confdefs.h <<\EOF
  1910. #define pid_t int
  1911. EOF
  1912.  
  1913. fi
  1914.  
  1915. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  1916. echo "configure:1917: checking for size_t" >&5
  1917. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  1918.   echo $ac_n "(cached) $ac_c" 1>&6
  1919. else
  1920.   cat > conftest.$ac_ext <<EOF
  1921. #line 1922 "configure"
  1922. #include "confdefs.h"
  1923. #include <sys/types.h>
  1924. #if STDC_HEADERS
  1925. #include <stdlib.h>
  1926. #include <stddef.h>
  1927. #endif
  1928. EOF
  1929. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1930.   egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  1931.   rm -rf conftest*
  1932.   ac_cv_type_size_t=yes
  1933. else
  1934.   rm -rf conftest*
  1935.   ac_cv_type_size_t=no
  1936. fi
  1937. rm -f conftest*
  1938.  
  1939. fi
  1940. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  1941. if test $ac_cv_type_size_t = no; then
  1942.   cat >> confdefs.h <<\EOF
  1943. #define size_t unsigned
  1944. EOF
  1945.  
  1946. fi
  1947.  
  1948. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  1949. echo "configure:1950: checking whether time.h and sys/time.h may both be included" >&5
  1950. if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  1951.   echo $ac_n "(cached) $ac_c" 1>&6
  1952. else
  1953.   cat > conftest.$ac_ext <<EOF
  1954. #line 1955 "configure"
  1955. #include "confdefs.h"
  1956. #include <sys/types.h>
  1957. #include <sys/time.h>
  1958. #include <time.h>
  1959. int main() {
  1960. struct tm *tp;
  1961. ; return 0; }
  1962. EOF
  1963. if { (eval echo configure:1964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1964.   rm -rf conftest*
  1965.   ac_cv_header_time=yes
  1966. else
  1967.   echo "configure: failed program was:" >&5
  1968.   cat conftest.$ac_ext >&5
  1969.   rm -rf conftest*
  1970.   ac_cv_header_time=no
  1971. fi
  1972. rm -f conftest*
  1973. fi
  1974.  
  1975. echo "$ac_t""$ac_cv_header_time" 1>&6
  1976. if test $ac_cv_header_time = yes; then
  1977.   cat >> confdefs.h <<\EOF
  1978. #define TIME_WITH_SYS_TIME 1
  1979. EOF
  1980.  
  1981. fi
  1982.  
  1983.  
  1984. if test $ac_cv_prog_gcc = yes; then
  1985.     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  1986. echo "configure:1987: checking whether ${CC-cc} needs -traditional" >&5
  1987. if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  1988.   echo $ac_n "(cached) $ac_c" 1>&6
  1989. else
  1990.     ac_pattern="Autoconf.*'x'"
  1991.   cat > conftest.$ac_ext <<EOF
  1992. #line 1993 "configure"
  1993. #include "confdefs.h"
  1994. #include <sgtty.h>
  1995. Autoconf TIOCGETP
  1996. EOF
  1997. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1998.   egrep "$ac_pattern" >/dev/null 2>&1; then
  1999.   rm -rf conftest*
  2000.   ac_cv_prog_gcc_traditional=yes
  2001. else
  2002.   rm -rf conftest*
  2003.   ac_cv_prog_gcc_traditional=no
  2004. fi
  2005. rm -f conftest*
  2006.  
  2007.  
  2008.   if test $ac_cv_prog_gcc_traditional = no; then
  2009.     cat > conftest.$ac_ext <<EOF
  2010. #line 2011 "configure"
  2011. #include "confdefs.h"
  2012. #include <termio.h>
  2013. Autoconf TCGETA
  2014. EOF
  2015. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2016.   egrep "$ac_pattern" >/dev/null 2>&1; then
  2017.   rm -rf conftest*
  2018.   ac_cv_prog_gcc_traditional=yes
  2019. fi
  2020. rm -f conftest*
  2021.  
  2022.   fi
  2023. fi
  2024.  
  2025. echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  2026.   if test $ac_cv_prog_gcc_traditional = yes; then
  2027.     CC="$CC -traditional"
  2028.   fi
  2029. fi
  2030.  
  2031. echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
  2032. echo "configure:2033: checking for 8-bit clean memcmp" >&5
  2033. if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
  2034.   echo $ac_n "(cached) $ac_c" 1>&6
  2035. else
  2036.   if test "$cross_compiling" = yes; then
  2037.   ac_cv_func_memcmp_clean=no
  2038. else
  2039.   cat > conftest.$ac_ext <<EOF
  2040. #line 2041 "configure"
  2041. #include "confdefs.h"
  2042.  
  2043. main()
  2044. {
  2045.   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  2046.   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
  2047. }
  2048.  
  2049. EOF
  2050. if { (eval echo configure:2051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  2051. then
  2052.   ac_cv_func_memcmp_clean=yes
  2053. else
  2054.   echo "configure: failed program was:" >&5
  2055.   cat conftest.$ac_ext >&5
  2056.   rm -fr conftest*
  2057.   ac_cv_func_memcmp_clean=no
  2058. fi
  2059. rm -fr conftest*
  2060. fi
  2061.  
  2062. fi
  2063.  
  2064. echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
  2065. test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
  2066.  
  2067. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  2068. echo "configure:2069: checking return type of signal handlers" >&5
  2069. if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  2070.   echo $ac_n "(cached) $ac_c" 1>&6
  2071. else
  2072.   cat > conftest.$ac_ext <<EOF
  2073. #line 2074 "configure"
  2074. #include "confdefs.h"
  2075. #include <sys/types.h>
  2076. #include <signal.h>
  2077. #ifdef signal
  2078. #undef signal
  2079. #endif
  2080. #ifdef __cplusplus
  2081. extern "C" void (*signal (int, void (*)(int)))(int);
  2082. #else
  2083. void (*signal ()) ();
  2084. #endif
  2085.  
  2086. int main() {
  2087. int i;
  2088. ; return 0; }
  2089. EOF
  2090. if { (eval echo configure:2091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2091.   rm -rf conftest*
  2092.   ac_cv_type_signal=void
  2093. else
  2094.   echo "configure: failed program was:" >&5
  2095.   cat conftest.$ac_ext >&5
  2096.   rm -rf conftest*
  2097.   ac_cv_type_signal=int
  2098. fi
  2099. rm -f conftest*
  2100. fi
  2101.  
  2102. echo "$ac_t""$ac_cv_type_signal" 1>&6
  2103. cat >> confdefs.h <<EOF
  2104. #define RETSIGTYPE $ac_cv_type_signal
  2105. EOF
  2106.  
  2107.  
  2108. echo $ac_n "checking for vprintf""... $ac_c" 1>&6
  2109. echo "configure:2110: checking for vprintf" >&5
  2110. if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
  2111.   echo $ac_n "(cached) $ac_c" 1>&6
  2112. else
  2113.   cat > conftest.$ac_ext <<EOF
  2114. #line 2115 "configure"
  2115. #include "confdefs.h"
  2116. /* System header to define __stub macros and hopefully few prototypes,
  2117.     which can conflict with char vprintf(); below.  */
  2118. #include <assert.h>
  2119. /* Override any gcc2 internal prototype to avoid an error.  */
  2120. /* We use char because int might match the return type of a gcc2
  2121.     builtin and then its argument prototype would still apply.  */
  2122. char vprintf();
  2123.  
  2124. int main() {
  2125.  
  2126. /* The GNU C library defines this for functions which it implements
  2127.     to always fail with ENOSYS.  Some functions are actually named
  2128.     something starting with __ and the normal name is an alias.  */
  2129. #if defined (__stub_vprintf) || defined (__stub___vprintf)
  2130. choke me
  2131. #else
  2132. vprintf();
  2133. #endif
  2134.  
  2135. ; return 0; }
  2136. EOF
  2137. if { (eval echo configure:2138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2138.   rm -rf conftest*
  2139.   eval "ac_cv_func_vprintf=yes"
  2140. else
  2141.   echo "configure: failed program was:" >&5
  2142.   cat conftest.$ac_ext >&5
  2143.   rm -rf conftest*
  2144.   eval "ac_cv_func_vprintf=no"
  2145. fi
  2146. rm -f conftest*
  2147. fi
  2148.  
  2149. if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
  2150.   echo "$ac_t""yes" 1>&6
  2151.   cat >> confdefs.h <<\EOF
  2152. #define HAVE_VPRINTF 1
  2153. EOF
  2154.  
  2155. else
  2156.   echo "$ac_t""no" 1>&6
  2157. fi
  2158.  
  2159. if test "$ac_cv_func_vprintf" != yes; then
  2160. echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
  2161. echo "configure:2162: checking for _doprnt" >&5
  2162. if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
  2163.   echo $ac_n "(cached) $ac_c" 1>&6
  2164. else
  2165.   cat > conftest.$ac_ext <<EOF
  2166. #line 2167 "configure"
  2167. #include "confdefs.h"
  2168. /* System header to define __stub macros and hopefully few prototypes,
  2169.     which can conflict with char _doprnt(); below.  */
  2170. #include <assert.h>
  2171. /* Override any gcc2 internal prototype to avoid an error.  */
  2172. /* We use char because int might match the return type of a gcc2
  2173.     builtin and then its argument prototype would still apply.  */
  2174. char _doprnt();
  2175.  
  2176. int main() {
  2177.  
  2178. /* The GNU C library defines this for functions which it implements
  2179.     to always fail with ENOSYS.  Some functions are actually named
  2180.     something starting with __ and the normal name is an alias.  */
  2181. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  2182. choke me
  2183. #else
  2184. _doprnt();
  2185. #endif
  2186.  
  2187. ; return 0; }
  2188. EOF
  2189. if { (eval echo configure:2190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2190.   rm -rf conftest*
  2191.   eval "ac_cv_func__doprnt=yes"
  2192. else
  2193.   echo "configure: failed program was:" >&5
  2194.   cat conftest.$ac_ext >&5
  2195.   rm -rf conftest*
  2196.   eval "ac_cv_func__doprnt=no"
  2197. fi
  2198. rm -f conftest*
  2199. fi
  2200.  
  2201. if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
  2202.   echo "$ac_t""yes" 1>&6
  2203.   cat >> confdefs.h <<\EOF
  2204. #define HAVE_DOPRNT 1
  2205. EOF
  2206.  
  2207. else
  2208.   echo "$ac_t""no" 1>&6
  2209. fi
  2210.  
  2211. fi
  2212.  
  2213. for ac_func in getcwd gethostname mkdir select strcspn strerror strtol
  2214. do
  2215. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2216. echo "configure:2217: checking for $ac_func" >&5
  2217. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2218.   echo $ac_n "(cached) $ac_c" 1>&6
  2219. else
  2220.   cat > conftest.$ac_ext <<EOF
  2221. #line 2222 "configure"
  2222. #include "confdefs.h"
  2223. /* System header to define __stub macros and hopefully few prototypes,
  2224.     which can conflict with char $ac_func(); below.  */
  2225. #include <assert.h>
  2226. /* Override any gcc2 internal prototype to avoid an error.  */
  2227. /* We use char because int might match the return type of a gcc2
  2228.     builtin and then its argument prototype would still apply.  */
  2229. char $ac_func();
  2230.  
  2231. int main() {
  2232.  
  2233. /* The GNU C library defines this for functions which it implements
  2234.     to always fail with ENOSYS.  Some functions are actually named
  2235.     something starting with __ and the normal name is an alias.  */
  2236. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2237. choke me
  2238. #else
  2239. $ac_func();
  2240. #endif
  2241.  
  2242. ; return 0; }
  2243. EOF
  2244. if { (eval echo configure:2245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2245.   rm -rf conftest*
  2246.   eval "ac_cv_func_$ac_func=yes"
  2247. else
  2248.   echo "configure: failed program was:" >&5
  2249.   cat conftest.$ac_ext >&5
  2250.   rm -rf conftest*
  2251.   eval "ac_cv_func_$ac_func=no"
  2252. fi
  2253. rm -f conftest*
  2254. fi
  2255.  
  2256. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2257.   echo "$ac_t""yes" 1>&6
  2258.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2259.   cat >> confdefs.h <<EOF
  2260. #define $ac_tr_func 1
  2261. EOF
  2262.  
  2263. else
  2264.   echo "$ac_t""no" 1>&6
  2265. fi
  2266. done
  2267.  
  2268.  
  2269. for ac_func in strerror
  2270. do
  2271. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2272. echo "configure:2273: checking for $ac_func" >&5
  2273. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2274.   echo $ac_n "(cached) $ac_c" 1>&6
  2275. else
  2276.   cat > conftest.$ac_ext <<EOF
  2277. #line 2278 "configure"
  2278. #include "confdefs.h"
  2279. /* System header to define __stub macros and hopefully few prototypes,
  2280.     which can conflict with char $ac_func(); below.  */
  2281. #include <assert.h>
  2282. /* Override any gcc2 internal prototype to avoid an error.  */
  2283. /* We use char because int might match the return type of a gcc2
  2284.     builtin and then its argument prototype would still apply.  */
  2285. char $ac_func();
  2286.  
  2287. int main() {
  2288.  
  2289. /* The GNU C library defines this for functions which it implements
  2290.     to always fail with ENOSYS.  Some functions are actually named
  2291.     something starting with __ and the normal name is an alias.  */
  2292. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2293. choke me
  2294. #else
  2295. $ac_func();
  2296. #endif
  2297.  
  2298. ; return 0; }
  2299. EOF
  2300. if { (eval echo configure:2301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2301.   rm -rf conftest*
  2302.   eval "ac_cv_func_$ac_func=yes"
  2303. else
  2304.   echo "configure: failed program was:" >&5
  2305.   cat conftest.$ac_ext >&5
  2306.   rm -rf conftest*
  2307.   eval "ac_cv_func_$ac_func=no"
  2308. fi
  2309. rm -f conftest*
  2310. fi
  2311.  
  2312. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2313.   echo "$ac_t""yes" 1>&6
  2314.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2315.   cat >> confdefs.h <<EOF
  2316. #define $ac_tr_func 1
  2317. EOF
  2318.  
  2319. else
  2320.   echo "$ac_t""no" 1>&6
  2321. fi
  2322. done
  2323.  
  2324. echo $ac_n "checking for sys_errlist""... $ac_c" 1>&6
  2325. echo "configure:2326: checking for sys_errlist" >&5
  2326. cat > conftest.$ac_ext <<EOF
  2327. #line 2328 "configure"
  2328. #include "confdefs.h"
  2329. extern char** sys_errlist;
  2330. int main() {
  2331. char** p = sys_errlist;
  2332. ; return 0; }
  2333. EOF
  2334. if { (eval echo configure:2335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2335.   rm -rf conftest*
  2336.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  2337. #define HAVE_SYS_ERRLIST 1
  2338. EOF
  2339.  
  2340. else
  2341.   echo "configure: failed program was:" >&5
  2342.   cat conftest.$ac_ext >&5
  2343.   rm -rf conftest*
  2344.   echo "$ac_t""no" 1>&6
  2345. fi
  2346. rm -f conftest*
  2347.  
  2348. echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
  2349. echo "configure:2350: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2350.     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  2351. if test "${enable_maintainer_mode+set}" = set; then
  2352.   enableval="$enable_maintainer_mode"
  2353.   USE_MAINTAINER_MODE=$enableval
  2354. else
  2355.   USE_MAINTAINER_MODE=no
  2356. fi
  2357.  
  2358.   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
  2359.   if test $USE_MAINTAINER_MODE = yes; then
  2360.     MAINT=
  2361.   else
  2362.     MAINT='#M#'
  2363.   fi
  2364.   
  2365.  
  2366.  
  2367. echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6
  2368. echo "configure:2369: checking if malloc debugging is wanted" >&5
  2369. # Check whether --with-dmalloc or --without-dmalloc was given.
  2370. if test "${with_dmalloc+set}" = set; then
  2371.   withval="$with_dmalloc"
  2372.   if test "$withval" = yes; then
  2373.   echo "$ac_t""yes" 1>&6
  2374.   cat >> confdefs.h <<\EOF
  2375. #define WITH_DMALLOC 1
  2376. EOF
  2377.  
  2378.   LIBS="$LIBS -ldmalloc"
  2379.   LDFLAGS="$LDFLAGS -g"
  2380. else
  2381.   echo "$ac_t""no" 1>&6
  2382. fi
  2383. else
  2384.   echo "$ac_t""no" 1>&6
  2385. fi
  2386.  
  2387.  
  2388.  
  2389. # Check whether --enable-lzw or --disable-lzw was given.
  2390. if test "${enable_lzw+set}" = set; then
  2391.   enableval="$enable_lzw"
  2392.   with_lzw=$enableval
  2393. else
  2394.   with_lzw='no'
  2395. fi
  2396.  
  2397. test "$with_lzw" = 'yes' && cat >> confdefs.h <<\EOF
  2398. #define HasLZW 1
  2399. EOF
  2400.  
  2401.  
  2402. # Check whether --enable-16bit-pixel or --disable-16bit-pixel was given.
  2403. if test "${enable_16bit_pixel+set}" = set; then
  2404.   enableval="$enable_16bit_pixel"
  2405.   with_16_bit_pixel=$enableval
  2406. else
  2407.   with_16_bit_pixel='no'
  2408. fi
  2409.  
  2410. test "$with_16_bit_pixel" = 'yes' && cat >> confdefs.h <<\EOF
  2411. #define QuantumLeap 1
  2412. EOF
  2413.  
  2414.  
  2415. # Check whether --enable-socks or --disable-socks was given.
  2416. if test "${enable_socks+set}" = set; then
  2417.   enableval="$enable_socks"
  2418.   with_socks=$enableval
  2419. else
  2420.   with_socks='no'
  2421. fi
  2422.  
  2423.  
  2424. # Check whether --with-perl or --without-perl was given.
  2425. if test "${with_perl+set}" = set; then
  2426.   withval="$with_perl"
  2427.   with_perl=$withval
  2428. else
  2429.   with_perl='no'
  2430. fi
  2431.  
  2432.  
  2433.  
  2434.  
  2435. if test "$with_perl" != 'no'; then
  2436.   WITH_PERL_TRUE=
  2437.   WITH_PERL_FALSE='#'
  2438. else
  2439.   WITH_PERL_TRUE='#'
  2440.   WITH_PERL_FALSE=
  2441. fi
  2442. with_perl_static='no'
  2443. if test "$with_perl" != 'no' && ./libtool --features | grep 'disable shared'
  2444. then
  2445.   with_perl_static='yes'
  2446. fi
  2447. with_perl_dynamic='no'
  2448. if test "$with_perl" != 'no' && ./libtool --features | grep 'enable shared'
  2449. then
  2450.   with_perl_dynamic='yes'
  2451. fi
  2452.  
  2453.  
  2454. if test $with_perl_static = 'yes'; then
  2455.   WITH_PERL_STATIC_TRUE=
  2456.   WITH_PERL_STATIC_FALSE='#'
  2457. else
  2458.   WITH_PERL_STATIC_TRUE='#'
  2459.   WITH_PERL_STATIC_FALSE=
  2460. fi
  2461.  
  2462.  
  2463. if test $with_perl_dynamic = 'yes'; then
  2464.   WITH_PERL_DYNAMIC_TRUE=
  2465.   WITH_PERL_DYNAMIC_FALSE='#'
  2466. else
  2467.   WITH_PERL_DYNAMIC_TRUE='#'
  2468.   WITH_PERL_DYNAMIC_FALSE=
  2469. fi
  2470.  
  2471. # Check whether --with-dps or --without-dps was given.
  2472. if test "${with_dps+set}" = set; then
  2473.   withval="$with_dps"
  2474.   with_dps=$withval
  2475. else
  2476.   with_dps='yes'
  2477. fi
  2478.  
  2479.  
  2480. # Check whether --with-fpx or --without-fpx was given.
  2481. if test "${with_fpx+set}" = set; then
  2482.   withval="$with_fpx"
  2483.   with_fpx=$withval
  2484. else
  2485.   with_fpx='yes'
  2486. fi
  2487.  
  2488.  
  2489. # Check whether --with-hdf or --without-hdf was given.
  2490. if test "${with_hdf+set}" = set; then
  2491.   withval="$with_hdf"
  2492.   with_hdf=$withval
  2493. else
  2494.   with_hdf='yes'
  2495. fi
  2496.  
  2497.  
  2498. # Check whether --with-jbig or --without-jbig was given.
  2499. if test "${with_jbig+set}" = set; then
  2500.   withval="$with_jbig"
  2501.   with_jbig=$withval
  2502. else
  2503.   with_jbig='yes'
  2504. fi
  2505.  
  2506.  
  2507. # Check whether --with-jpeg or --without-jpeg was given.
  2508. if test "${with_jpeg+set}" = set; then
  2509.   withval="$with_jpeg"
  2510.   with_jpeg=$withval
  2511. else
  2512.   with_jpeg='yes'
  2513. fi
  2514.  
  2515.  
  2516. # Check whether --with-mpeg or --without-mpeg was given.
  2517. if test "${with_mpeg+set}" = set; then
  2518.   withval="$with_mpeg"
  2519.   with_mpeg=$withval
  2520. else
  2521.   with_mpeg='yes'
  2522. fi
  2523.  
  2524.  
  2525. # Check whether --with-png or --without-png was given.
  2526. if test "${with_png+set}" = set; then
  2527.   withval="$with_png"
  2528.   with_png=$withval
  2529. else
  2530.   with_png='yes'
  2531. fi
  2532.  
  2533.  
  2534. # Check whether --with-tiff or --without-tiff was given.
  2535. if test "${with_tiff+set}" = set; then
  2536.   withval="$with_tiff"
  2537.   with_tiff=$withval
  2538. else
  2539.   with_tiff='yes'
  2540. fi
  2541.  
  2542.  
  2543. # Check whether --with-ttf or --without-ttf was given.
  2544. if test "${with_ttf+set}" = set; then
  2545.   withval="$with_ttf"
  2546.   with_ttf=$withval
  2547. else
  2548.   with_ttf='yes'
  2549. fi
  2550.  
  2551.  
  2552. includedir="$includedir/magick"
  2553.  
  2554.  
  2555. srcdirfull=`cd $srcdir && pwd`
  2556. builddir=`pwd`
  2557. for dir in hdf/hdf/src jbig/libjbig jpeg mpeg zlib png tiff/libtiff ttf ttf/lib
  2558. do
  2559.   if test -d "$builddir/$dir"
  2560.   then
  2561.     CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
  2562.     LDFLAGS="$LDFLAGS -L$builddir/$dir"
  2563.   else
  2564.     if test -d "$srcdirfull/$dir"
  2565.     then
  2566.       CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
  2567.       LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
  2568.     fi
  2569.   fi
  2570. done
  2571.  
  2572. PREFIX="$prefix"
  2573. test "x$PREFIX" = xNONE && PREFIX=$ac_default_prefix
  2574.  
  2575. libdir="$PREFIX/lib"
  2576. LIBS="$LIBS -L$libdir"
  2577.  
  2578. CPPFLAGS="$CPPFLAGS -I$PREFIX/include"
  2579. TRAILING_LIBS=''
  2580.  
  2581. echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
  2582. echo "configure:2583: checking for sqrt in -lm" >&5
  2583. ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
  2584. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2585.   echo $ac_n "(cached) $ac_c" 1>&6
  2586. else
  2587.   ac_save_LIBS="$LIBS"
  2588. LIBS="-lm  $LIBS"
  2589. cat > conftest.$ac_ext <<EOF
  2590. #line 2591 "configure"
  2591. #include "confdefs.h"
  2592. /* Override any gcc2 internal prototype to avoid an error.  */
  2593. /* We use char because int might match the return type of a gcc2
  2594.     builtin and then its argument prototype would still apply.  */
  2595. char sqrt();
  2596.  
  2597. int main() {
  2598. sqrt()
  2599. ; return 0; }
  2600. EOF
  2601. if { (eval echo configure:2602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2602.   rm -rf conftest*
  2603.   eval "ac_cv_lib_$ac_lib_var=yes"
  2604. else
  2605.   echo "configure: failed program was:" >&5
  2606.   cat conftest.$ac_ext >&5
  2607.   rm -rf conftest*
  2608.   eval "ac_cv_lib_$ac_lib_var=no"
  2609. fi
  2610. rm -f conftest*
  2611. LIBS="$ac_save_LIBS"
  2612.  
  2613. fi
  2614. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2615.   echo "$ac_t""yes" 1>&6
  2616.   LIB_MATH="-lm"
  2617. else
  2618.   echo "$ac_t""no" 1>&6
  2619. fi
  2620.  
  2621.  
  2622. if test "$LIB_MATH"
  2623. then
  2624.     TRAILING_LIBS="$TRAILING_LIBS $LIB_MATH"
  2625. fi
  2626.  
  2627.  
  2628. # If we find X, set shell vars x_includes and x_libraries to the
  2629. # paths, otherwise set no_x=yes.
  2630. # Uses ac_ vars as temps to allow command line to override cache and checks.
  2631. # --without-x overrides everything else, but does not touch the cache.
  2632. echo $ac_n "checking for X""... $ac_c" 1>&6
  2633. echo "configure:2634: checking for X" >&5
  2634.  
  2635. # Check whether --with-x or --without-x was given.
  2636. if test "${with_x+set}" = set; then
  2637.   withval="$with_x"
  2638.   :
  2639. fi
  2640.  
  2641. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  2642. if test "x$with_x" = xno; then
  2643.   # The user explicitly disabled X.
  2644.   have_x=disabled
  2645. else
  2646.   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  2647.     # Both variables are already set.
  2648.     have_x=yes
  2649.   else
  2650. if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
  2651.   echo $ac_n "(cached) $ac_c" 1>&6
  2652. else
  2653.   # One or both of the vars are not set, and there is no cached value.
  2654. ac_x_includes=NO ac_x_libraries=NO
  2655. rm -fr conftestdir
  2656. if mkdir conftestdir; then
  2657.   cd conftestdir
  2658.   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  2659.   cat > Imakefile <<'EOF'
  2660. acfindx:
  2661.     @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  2662. EOF
  2663.   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  2664.     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2665.     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  2666.     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  2667.     for ac_extension in a so sl; do
  2668.       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  2669.         test -f $ac_im_libdir/libX11.$ac_extension; then
  2670.         ac_im_usrlibdir=$ac_im_libdir; break
  2671.       fi
  2672.     done
  2673.     # Screen out bogus values from the imake configuration.  They are
  2674.     # bogus both because they are the default anyway, and because
  2675.     # using them would break gcc on systems where it needs fixed includes.
  2676.     case "$ac_im_incroot" in
  2677.     /usr/include) ;;
  2678.     *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
  2679.     esac
  2680.     case "$ac_im_usrlibdir" in
  2681.     /usr/lib | /lib) ;;
  2682.     *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
  2683.     esac
  2684.   fi
  2685.   cd ..
  2686.   rm -fr conftestdir
  2687. fi
  2688.  
  2689. if test "$ac_x_includes" = NO; then
  2690.   # Guess where to find include files, by looking for this one X11 .h file.
  2691.   test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  2692.  
  2693.   # First, try using that file with no special directory specified.
  2694. cat > conftest.$ac_ext <<EOF
  2695. #line 2696 "configure"
  2696. #include "confdefs.h"
  2697. #include <$x_direct_test_include>
  2698. EOF
  2699. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2700. { (eval echo configure:2701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2701. ac_err=`grep -v '^ *+' conftest.out`
  2702. if test -z "$ac_err"; then
  2703.   rm -rf conftest*
  2704.   # We can compile using X headers with no special include directory.
  2705. ac_x_includes=
  2706. else
  2707.   echo "$ac_err" >&5
  2708.   echo "configure: failed program was:" >&5
  2709.   cat conftest.$ac_ext >&5
  2710.   rm -rf conftest*
  2711.   # Look for the header file in a standard set of common directories.
  2712. # Check X11 before X11Rn because it is often a symlink to the current release.
  2713.   for ac_dir in               \
  2714.     /usr/X11/include          \
  2715.     /usr/X11R6/include        \
  2716.     /usr/X11R5/include        \
  2717.     /usr/X11R4/include        \
  2718.                               \
  2719.     /usr/include/X11          \
  2720.     /usr/include/X11R6        \
  2721.     /usr/include/X11R5        \
  2722.     /usr/include/X11R4        \
  2723.                               \
  2724.     /usr/local/X11/include    \
  2725.     /usr/local/X11R6/include  \
  2726.     /usr/local/X11R5/include  \
  2727.     /usr/local/X11R4/include  \
  2728.                               \
  2729.     /usr/local/include/X11    \
  2730.     /usr/local/include/X11R6  \
  2731.     /usr/local/include/X11R5  \
  2732.     /usr/local/include/X11R4  \
  2733.                               \
  2734.     /usr/X386/include         \
  2735.     /usr/x386/include         \
  2736.     /usr/XFree86/include/X11  \
  2737.                               \
  2738.     /usr/include              \
  2739.     /usr/local/include        \
  2740.     /usr/unsupported/include  \
  2741.     /usr/athena/include       \
  2742.     /usr/local/x11r5/include  \
  2743.     /usr/lpp/Xamples/include  \
  2744.                               \
  2745.     /usr/openwin/include      \
  2746.     /usr/openwin/share/include \
  2747.     ; \
  2748.   do
  2749.     if test -r "$ac_dir/$x_direct_test_include"; then
  2750.       ac_x_includes=$ac_dir
  2751.       break
  2752.     fi
  2753.   done
  2754. fi
  2755. rm -f conftest*
  2756. fi # $ac_x_includes = NO
  2757.  
  2758. if test "$ac_x_libraries" = NO; then
  2759.   # Check for the libraries.
  2760.  
  2761.   test -z "$x_direct_test_library" && x_direct_test_library=Xt
  2762.   test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  2763.  
  2764.   # See if we find them without any special options.
  2765.   # Don't add to $LIBS permanently.
  2766.   ac_save_LIBS="$LIBS"
  2767.   LIBS="-l$x_direct_test_library $LIBS"
  2768. cat > conftest.$ac_ext <<EOF
  2769. #line 2770 "configure"
  2770. #include "confdefs.h"
  2771.  
  2772. int main() {
  2773. ${x_direct_test_function}()
  2774. ; return 0; }
  2775. EOF
  2776. if { (eval echo configure:2777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2777.   rm -rf conftest*
  2778.   LIBS="$ac_save_LIBS"
  2779. # We can link X programs with no special library path.
  2780. ac_x_libraries=
  2781. else
  2782.   echo "configure: failed program was:" >&5
  2783.   cat conftest.$ac_ext >&5
  2784.   rm -rf conftest*
  2785.   LIBS="$ac_save_LIBS"
  2786. # First see if replacing the include by lib works.
  2787. # Check X11 before X11Rn because it is often a symlink to the current release.
  2788. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
  2789.     /usr/X11/lib          \
  2790.     /usr/X11R6/lib        \
  2791.     /usr/X11R5/lib        \
  2792.     /usr/X11R4/lib        \
  2793.                           \
  2794.     /usr/lib/X11          \
  2795.     /usr/lib/X11R6        \
  2796.     /usr/lib/X11R5        \
  2797.     /usr/lib/X11R4        \
  2798.                           \
  2799.     /usr/local/X11/lib    \
  2800.     /usr/local/X11R6/lib  \
  2801.     /usr/local/X11R5/lib  \
  2802.     /usr/local/X11R4/lib  \
  2803.                           \
  2804.     /usr/local/lib/X11    \
  2805.     /usr/local/lib/X11R6  \
  2806.     /usr/local/lib/X11R5  \
  2807.     /usr/local/lib/X11R4  \
  2808.                           \
  2809.     /usr/X386/lib         \
  2810.     /usr/x386/lib         \
  2811.     /usr/XFree86/lib/X11  \
  2812.                           \
  2813.     /usr/lib              \
  2814.     /usr/local/lib        \
  2815.     /usr/unsupported/lib  \
  2816.     /usr/athena/lib       \
  2817.     /usr/local/x11r5/lib  \
  2818.     /usr/lpp/Xamples/lib  \
  2819.     /lib/usr/lib/X11      \
  2820.                           \
  2821.     /usr/openwin/lib      \
  2822.     /usr/openwin/share/lib \
  2823.     ; \
  2824. do
  2825.   for ac_extension in a so sl; do
  2826.     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  2827.       ac_x_libraries=$ac_dir
  2828.       break 2
  2829.     fi
  2830.   done
  2831. done
  2832. fi
  2833. rm -f conftest*
  2834. fi # $ac_x_libraries = NO
  2835.  
  2836. if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
  2837.   # Didn't find X anywhere.  Cache the known absence of X.
  2838.   ac_cv_have_x="have_x=no"
  2839. else
  2840.   # Record where we found X for the cache.
  2841.   ac_cv_have_x="have_x=yes \
  2842.             ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  2843. fi
  2844. fi
  2845.   fi
  2846.   eval "$ac_cv_have_x"
  2847. fi # $with_x != no
  2848.  
  2849. if test "$have_x" != yes; then
  2850.   echo "$ac_t""$have_x" 1>&6
  2851.   no_x=yes
  2852. else
  2853.   # If each of the values was on the command line, it overrides each guess.
  2854.   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  2855.   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  2856.   # Update the cache value to reflect the command line values.
  2857.   ac_cv_have_x="have_x=yes \
  2858.         ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  2859.   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
  2860. fi
  2861.  
  2862. if test "$no_x" = yes; then
  2863.   # Not all programs may use this symbol, but it does not hurt to define it.
  2864.   cat >> confdefs.h <<\EOF
  2865. #define X_DISPLAY_MISSING 1
  2866. EOF
  2867.  
  2868.   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  2869. else
  2870.   if test -n "$x_includes"; then
  2871.     X_CFLAGS="$X_CFLAGS -I$x_includes"
  2872.   fi
  2873.  
  2874.   # It would also be nice to do this for all -L options, not just this one.
  2875.   if test -n "$x_libraries"; then
  2876.     X_LIBS="$X_LIBS -L$x_libraries"
  2877.     # For Solaris; some versions of Sun CC require a space after -R and
  2878.     # others require no space.  Words are not sufficient . . . .
  2879.     case "`(uname -sr) 2>/dev/null`" in
  2880.     "SunOS 5"*)
  2881.       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
  2882. echo "configure:2883: checking whether -R must be followed by a space" >&5
  2883.       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
  2884.       cat > conftest.$ac_ext <<EOF
  2885. #line 2886 "configure"
  2886. #include "confdefs.h"
  2887.  
  2888. int main() {
  2889.  
  2890. ; return 0; }
  2891. EOF
  2892. if { (eval echo configure:2893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2893.   rm -rf conftest*
  2894.   ac_R_nospace=yes
  2895. else
  2896.   echo "configure: failed program was:" >&5
  2897.   cat conftest.$ac_ext >&5
  2898.   rm -rf conftest*
  2899.   ac_R_nospace=no
  2900. fi
  2901. rm -f conftest*
  2902.       if test $ac_R_nospace = yes; then
  2903.     echo "$ac_t""no" 1>&6
  2904.     X_LIBS="$X_LIBS -R$x_libraries"
  2905.       else
  2906.     LIBS="$ac_xsave_LIBS -R $x_libraries"
  2907.     cat > conftest.$ac_ext <<EOF
  2908. #line 2909 "configure"
  2909. #include "confdefs.h"
  2910.  
  2911. int main() {
  2912.  
  2913. ; return 0; }
  2914. EOF
  2915. if { (eval echo configure:2916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2916.   rm -rf conftest*
  2917.   ac_R_space=yes
  2918. else
  2919.   echo "configure: failed program was:" >&5
  2920.   cat conftest.$ac_ext >&5
  2921.   rm -rf conftest*
  2922.   ac_R_space=no
  2923. fi
  2924. rm -f conftest*
  2925.     if test $ac_R_space = yes; then
  2926.       echo "$ac_t""yes" 1>&6
  2927.       X_LIBS="$X_LIBS -R $x_libraries"
  2928.     else
  2929.       echo "$ac_t""neither works" 1>&6
  2930.     fi
  2931.       fi
  2932.       LIBS="$ac_xsave_LIBS"
  2933.     esac
  2934.   fi
  2935.  
  2936.   # Check for system-dependent libraries X programs must link with.
  2937.   # Do this before checking for the system-independent R6 libraries
  2938.   # (-lICE), since we may need -lsocket or whatever for X linking.
  2939.  
  2940.   if test "$ISC" = yes; then
  2941.     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  2942.   else
  2943.     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  2944.     # libraries were built with DECnet support.  And karl@cs.umb.edu says
  2945.     # the Alpha needs dnet_stub (dnet does not exist).
  2946.     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
  2947. echo "configure:2948: checking for dnet_ntoa in -ldnet" >&5
  2948. ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  2949. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2950.   echo $ac_n "(cached) $ac_c" 1>&6
  2951. else
  2952.   ac_save_LIBS="$LIBS"
  2953. LIBS="-ldnet  $LIBS"
  2954. cat > conftest.$ac_ext <<EOF
  2955. #line 2956 "configure"
  2956. #include "confdefs.h"
  2957. /* Override any gcc2 internal prototype to avoid an error.  */
  2958. /* We use char because int might match the return type of a gcc2
  2959.     builtin and then its argument prototype would still apply.  */
  2960. char dnet_ntoa();
  2961.  
  2962. int main() {
  2963. dnet_ntoa()
  2964. ; return 0; }
  2965. EOF
  2966. if { (eval echo configure:2967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2967.   rm -rf conftest*
  2968.   eval "ac_cv_lib_$ac_lib_var=yes"
  2969. else
  2970.   echo "configure: failed program was:" >&5
  2971.   cat conftest.$ac_ext >&5
  2972.   rm -rf conftest*
  2973.   eval "ac_cv_lib_$ac_lib_var=no"
  2974. fi
  2975. rm -f conftest*
  2976. LIBS="$ac_save_LIBS"
  2977.  
  2978. fi
  2979. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2980.   echo "$ac_t""yes" 1>&6
  2981.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  2982. else
  2983.   echo "$ac_t""no" 1>&6
  2984. fi
  2985.  
  2986.     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  2987.       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
  2988. echo "configure:2989: checking for dnet_ntoa in -ldnet_stub" >&5
  2989. ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  2990. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2991.   echo $ac_n "(cached) $ac_c" 1>&6
  2992. else
  2993.   ac_save_LIBS="$LIBS"
  2994. LIBS="-ldnet_stub  $LIBS"
  2995. cat > conftest.$ac_ext <<EOF
  2996. #line 2997 "configure"
  2997. #include "confdefs.h"
  2998. /* Override any gcc2 internal prototype to avoid an error.  */
  2999. /* We use char because int might match the return type of a gcc2
  3000.     builtin and then its argument prototype would still apply.  */
  3001. char dnet_ntoa();
  3002.  
  3003. int main() {
  3004. dnet_ntoa()
  3005. ; return 0; }
  3006. EOF
  3007. if { (eval echo configure:3008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3008.   rm -rf conftest*
  3009.   eval "ac_cv_lib_$ac_lib_var=yes"
  3010. else
  3011.   echo "configure: failed program was:" >&5
  3012.   cat conftest.$ac_ext >&5
  3013.   rm -rf conftest*
  3014.   eval "ac_cv_lib_$ac_lib_var=no"
  3015. fi
  3016. rm -f conftest*
  3017. LIBS="$ac_save_LIBS"
  3018.  
  3019. fi
  3020. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3021.   echo "$ac_t""yes" 1>&6
  3022.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  3023. else
  3024.   echo "$ac_t""no" 1>&6
  3025. fi
  3026.  
  3027.     fi
  3028.  
  3029.     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  3030.     # to get the SysV transport functions.
  3031.     # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
  3032.     # needs -lnsl.
  3033.     # The nsl library prevents programs from opening the X display
  3034.     # on Irix 5.2, according to dickey@clark.net.
  3035.     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
  3036. echo "configure:3037: checking for gethostbyname" >&5
  3037. if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
  3038.   echo $ac_n "(cached) $ac_c" 1>&6
  3039. else
  3040.   cat > conftest.$ac_ext <<EOF
  3041. #line 3042 "configure"
  3042. #include "confdefs.h"
  3043. /* System header to define __stub macros and hopefully few prototypes,
  3044.     which can conflict with char gethostbyname(); below.  */
  3045. #include <assert.h>
  3046. /* Override any gcc2 internal prototype to avoid an error.  */
  3047. /* We use char because int might match the return type of a gcc2
  3048.     builtin and then its argument prototype would still apply.  */
  3049. char gethostbyname();
  3050.  
  3051. int main() {
  3052.  
  3053. /* The GNU C library defines this for functions which it implements
  3054.     to always fail with ENOSYS.  Some functions are actually named
  3055.     something starting with __ and the normal name is an alias.  */
  3056. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  3057. choke me
  3058. #else
  3059. gethostbyname();
  3060. #endif
  3061.  
  3062. ; return 0; }
  3063. EOF
  3064. if { (eval echo configure:3065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3065.   rm -rf conftest*
  3066.   eval "ac_cv_func_gethostbyname=yes"
  3067. else
  3068.   echo "configure: failed program was:" >&5
  3069.   cat conftest.$ac_ext >&5
  3070.   rm -rf conftest*
  3071.   eval "ac_cv_func_gethostbyname=no"
  3072. fi
  3073. rm -f conftest*
  3074. fi
  3075.  
  3076. if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  3077.   echo "$ac_t""yes" 1>&6
  3078.   :
  3079. else
  3080.   echo "$ac_t""no" 1>&6
  3081. fi
  3082.  
  3083.     if test $ac_cv_func_gethostbyname = no; then
  3084.       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  3085. echo "configure:3086: checking for gethostbyname in -lnsl" >&5
  3086. ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  3087. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3088.   echo $ac_n "(cached) $ac_c" 1>&6
  3089. else
  3090.   ac_save_LIBS="$LIBS"
  3091. LIBS="-lnsl  $LIBS"
  3092. cat > conftest.$ac_ext <<EOF
  3093. #line 3094 "configure"
  3094. #include "confdefs.h"
  3095. /* Override any gcc2 internal prototype to avoid an error.  */
  3096. /* We use char because int might match the return type of a gcc2
  3097.     builtin and then its argument prototype would still apply.  */
  3098. char gethostbyname();
  3099.  
  3100. int main() {
  3101. gethostbyname()
  3102. ; return 0; }
  3103. EOF
  3104. if { (eval echo configure:3105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3105.   rm -rf conftest*
  3106.   eval "ac_cv_lib_$ac_lib_var=yes"
  3107. else
  3108.   echo "configure: failed program was:" >&5
  3109.   cat conftest.$ac_ext >&5
  3110.   rm -rf conftest*
  3111.   eval "ac_cv_lib_$ac_lib_var=no"
  3112. fi
  3113. rm -f conftest*
  3114. LIBS="$ac_save_LIBS"
  3115.  
  3116. fi
  3117. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3118.   echo "$ac_t""yes" 1>&6
  3119.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  3120. else
  3121.   echo "$ac_t""no" 1>&6
  3122. fi
  3123.  
  3124.     fi
  3125.  
  3126.     # lieder@skyler.mavd.honeywell.com says without -lsocket,
  3127.     # socket/setsockopt and other routines are undefined under SCO ODT
  3128.     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
  3129.     # on later versions), says simon@lia.di.epfl.ch: it contains
  3130.     # gethostby* variants that don't use the nameserver (or something).
  3131.     # -lsocket must be given before -lnsl if both are needed.
  3132.     # We assume that if connect needs -lnsl, so does gethostbyname.
  3133.     echo $ac_n "checking for connect""... $ac_c" 1>&6
  3134. echo "configure:3135: checking for connect" >&5
  3135. if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
  3136.   echo $ac_n "(cached) $ac_c" 1>&6
  3137. else
  3138.   cat > conftest.$ac_ext <<EOF
  3139. #line 3140 "configure"
  3140. #include "confdefs.h"
  3141. /* System header to define __stub macros and hopefully few prototypes,
  3142.     which can conflict with char connect(); below.  */
  3143. #include <assert.h>
  3144. /* Override any gcc2 internal prototype to avoid an error.  */
  3145. /* We use char because int might match the return type of a gcc2
  3146.     builtin and then its argument prototype would still apply.  */
  3147. char connect();
  3148.  
  3149. int main() {
  3150.  
  3151. /* The GNU C library defines this for functions which it implements
  3152.     to always fail with ENOSYS.  Some functions are actually named
  3153.     something starting with __ and the normal name is an alias.  */
  3154. #if defined (__stub_connect) || defined (__stub___connect)
  3155. choke me
  3156. #else
  3157. connect();
  3158. #endif
  3159.  
  3160. ; return 0; }
  3161. EOF
  3162. if { (eval echo configure:3163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3163.   rm -rf conftest*
  3164.   eval "ac_cv_func_connect=yes"
  3165. else
  3166.   echo "configure: failed program was:" >&5
  3167.   cat conftest.$ac_ext >&5
  3168.   rm -rf conftest*
  3169.   eval "ac_cv_func_connect=no"
  3170. fi
  3171. rm -f conftest*
  3172. fi
  3173.  
  3174. if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  3175.   echo "$ac_t""yes" 1>&6
  3176.   :
  3177. else
  3178.   echo "$ac_t""no" 1>&6
  3179. fi
  3180.  
  3181.     if test $ac_cv_func_connect = no; then
  3182.       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
  3183. echo "configure:3184: checking for connect in -lsocket" >&5
  3184. ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
  3185. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3186.   echo $ac_n "(cached) $ac_c" 1>&6
  3187. else
  3188.   ac_save_LIBS="$LIBS"
  3189. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  3190. cat > conftest.$ac_ext <<EOF
  3191. #line 3192 "configure"
  3192. #include "confdefs.h"
  3193. /* Override any gcc2 internal prototype to avoid an error.  */
  3194. /* We use char because int might match the return type of a gcc2
  3195.     builtin and then its argument prototype would still apply.  */
  3196. char connect();
  3197.  
  3198. int main() {
  3199. connect()
  3200. ; return 0; }
  3201. EOF
  3202. if { (eval echo configure:3203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3203.   rm -rf conftest*
  3204.   eval "ac_cv_lib_$ac_lib_var=yes"
  3205. else
  3206.   echo "configure: failed program was:" >&5
  3207.   cat conftest.$ac_ext >&5
  3208.   rm -rf conftest*
  3209.   eval "ac_cv_lib_$ac_lib_var=no"
  3210. fi
  3211. rm -f conftest*
  3212. LIBS="$ac_save_LIBS"
  3213.  
  3214. fi
  3215. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3216.   echo "$ac_t""yes" 1>&6
  3217.   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  3218. else
  3219.   echo "$ac_t""no" 1>&6
  3220. fi
  3221.  
  3222.     fi
  3223.  
  3224.     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
  3225.     echo $ac_n "checking for remove""... $ac_c" 1>&6
  3226. echo "configure:3227: checking for remove" >&5
  3227. if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
  3228.   echo $ac_n "(cached) $ac_c" 1>&6
  3229. else
  3230.   cat > conftest.$ac_ext <<EOF
  3231. #line 3232 "configure"
  3232. #include "confdefs.h"
  3233. /* System header to define __stub macros and hopefully few prototypes,
  3234.     which can conflict with char remove(); below.  */
  3235. #include <assert.h>
  3236. /* Override any gcc2 internal prototype to avoid an error.  */
  3237. /* We use char because int might match the return type of a gcc2
  3238.     builtin and then its argument prototype would still apply.  */
  3239. char remove();
  3240.  
  3241. int main() {
  3242.  
  3243. /* The GNU C library defines this for functions which it implements
  3244.     to always fail with ENOSYS.  Some functions are actually named
  3245.     something starting with __ and the normal name is an alias.  */
  3246. #if defined (__stub_remove) || defined (__stub___remove)
  3247. choke me
  3248. #else
  3249. remove();
  3250. #endif
  3251.  
  3252. ; return 0; }
  3253. EOF
  3254. if { (eval echo configure:3255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3255.   rm -rf conftest*
  3256.   eval "ac_cv_func_remove=yes"
  3257. else
  3258.   echo "configure: failed program was:" >&5
  3259.   cat conftest.$ac_ext >&5
  3260.   rm -rf conftest*
  3261.   eval "ac_cv_func_remove=no"
  3262. fi
  3263. rm -f conftest*
  3264. fi
  3265.  
  3266. if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
  3267.   echo "$ac_t""yes" 1>&6
  3268.   :
  3269. else
  3270.   echo "$ac_t""no" 1>&6
  3271. fi
  3272.  
  3273.     if test $ac_cv_func_remove = no; then
  3274.       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
  3275. echo "configure:3276: checking for remove in -lposix" >&5
  3276. ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
  3277. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3278.   echo $ac_n "(cached) $ac_c" 1>&6
  3279. else
  3280.   ac_save_LIBS="$LIBS"
  3281. LIBS="-lposix  $LIBS"
  3282. cat > conftest.$ac_ext <<EOF
  3283. #line 3284 "configure"
  3284. #include "confdefs.h"
  3285. /* Override any gcc2 internal prototype to avoid an error.  */
  3286. /* We use char because int might match the return type of a gcc2
  3287.     builtin and then its argument prototype would still apply.  */
  3288. char remove();
  3289.  
  3290. int main() {
  3291. remove()
  3292. ; return 0; }
  3293. EOF
  3294. if { (eval echo configure:3295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3295.   rm -rf conftest*
  3296.   eval "ac_cv_lib_$ac_lib_var=yes"
  3297. else
  3298.   echo "configure: failed program was:" >&5
  3299.   cat conftest.$ac_ext >&5
  3300.   rm -rf conftest*
  3301.   eval "ac_cv_lib_$ac_lib_var=no"
  3302. fi
  3303. rm -f conftest*
  3304. LIBS="$ac_save_LIBS"
  3305.  
  3306. fi
  3307. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3308.   echo "$ac_t""yes" 1>&6
  3309.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  3310. else
  3311.   echo "$ac_t""no" 1>&6
  3312. fi
  3313.  
  3314.     fi
  3315.  
  3316.     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  3317.     echo $ac_n "checking for shmat""... $ac_c" 1>&6
  3318. echo "configure:3319: checking for shmat" >&5
  3319. if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
  3320.   echo $ac_n "(cached) $ac_c" 1>&6
  3321. else
  3322.   cat > conftest.$ac_ext <<EOF
  3323. #line 3324 "configure"
  3324. #include "confdefs.h"
  3325. /* System header to define __stub macros and hopefully few prototypes,
  3326.     which can conflict with char shmat(); below.  */
  3327. #include <assert.h>
  3328. /* Override any gcc2 internal prototype to avoid an error.  */
  3329. /* We use char because int might match the return type of a gcc2
  3330.     builtin and then its argument prototype would still apply.  */
  3331. char shmat();
  3332.  
  3333. int main() {
  3334.  
  3335. /* The GNU C library defines this for functions which it implements
  3336.     to always fail with ENOSYS.  Some functions are actually named
  3337.     something starting with __ and the normal name is an alias.  */
  3338. #if defined (__stub_shmat) || defined (__stub___shmat)
  3339. choke me
  3340. #else
  3341. shmat();
  3342. #endif
  3343.  
  3344. ; return 0; }
  3345. EOF
  3346. if { (eval echo configure:3347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3347.   rm -rf conftest*
  3348.   eval "ac_cv_func_shmat=yes"
  3349. else
  3350.   echo "configure: failed program was:" >&5
  3351.   cat conftest.$ac_ext >&5
  3352.   rm -rf conftest*
  3353.   eval "ac_cv_func_shmat=no"
  3354. fi
  3355. rm -f conftest*
  3356. fi
  3357.  
  3358. if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
  3359.   echo "$ac_t""yes" 1>&6
  3360.   :
  3361. else
  3362.   echo "$ac_t""no" 1>&6
  3363. fi
  3364.  
  3365.     if test $ac_cv_func_shmat = no; then
  3366.       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
  3367. echo "configure:3368: checking for shmat in -lipc" >&5
  3368. ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
  3369. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3370.   echo $ac_n "(cached) $ac_c" 1>&6
  3371. else
  3372.   ac_save_LIBS="$LIBS"
  3373. LIBS="-lipc  $LIBS"
  3374. cat > conftest.$ac_ext <<EOF
  3375. #line 3376 "configure"
  3376. #include "confdefs.h"
  3377. /* Override any gcc2 internal prototype to avoid an error.  */
  3378. /* We use char because int might match the return type of a gcc2
  3379.     builtin and then its argument prototype would still apply.  */
  3380. char shmat();
  3381.  
  3382. int main() {
  3383. shmat()
  3384. ; return 0; }
  3385. EOF
  3386. if { (eval echo configure:3387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3387.   rm -rf conftest*
  3388.   eval "ac_cv_lib_$ac_lib_var=yes"
  3389. else
  3390.   echo "configure: failed program was:" >&5
  3391.   cat conftest.$ac_ext >&5
  3392.   rm -rf conftest*
  3393.   eval "ac_cv_lib_$ac_lib_var=no"
  3394. fi
  3395. rm -f conftest*
  3396. LIBS="$ac_save_LIBS"
  3397.  
  3398. fi
  3399. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3400.   echo "$ac_t""yes" 1>&6
  3401.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  3402. else
  3403.   echo "$ac_t""no" 1>&6
  3404. fi
  3405.  
  3406.     fi
  3407.   fi
  3408.  
  3409.   # Check for libraries that X11R6 Xt/Xaw programs need.
  3410.   ac_save_LDFLAGS="$LDFLAGS"
  3411.   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  3412.   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  3413.   # check for ICE first), but we must link in the order -lSM -lICE or
  3414.   # we get undefined symbols.  So assume we have SM if we have ICE.
  3415.   # These have to be linked with before -lX11, unlike the other
  3416.   # libraries we check for below, so use a different variable.
  3417.   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  3418.   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
  3419. echo "configure:3420: checking for IceConnectionNumber in -lICE" >&5
  3420. ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
  3421. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3422.   echo $ac_n "(cached) $ac_c" 1>&6
  3423. else
  3424.   ac_save_LIBS="$LIBS"
  3425. LIBS="-lICE  $LIBS"
  3426. cat > conftest.$ac_ext <<EOF
  3427. #line 3428 "configure"
  3428. #include "confdefs.h"
  3429. /* Override any gcc2 internal prototype to avoid an error.  */
  3430. /* We use char because int might match the return type of a gcc2
  3431.     builtin and then its argument prototype would still apply.  */
  3432. char IceConnectionNumber();
  3433.  
  3434. int main() {
  3435. IceConnectionNumber()
  3436. ; return 0; }
  3437. EOF
  3438. if { (eval echo configure:3439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3439.   rm -rf conftest*
  3440.   eval "ac_cv_lib_$ac_lib_var=yes"
  3441. else
  3442.   echo "configure: failed program was:" >&5
  3443.   cat conftest.$ac_ext >&5
  3444.   rm -rf conftest*
  3445.   eval "ac_cv_lib_$ac_lib_var=no"
  3446. fi
  3447. rm -f conftest*
  3448. LIBS="$ac_save_LIBS"
  3449.  
  3450. fi
  3451. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3452.   echo "$ac_t""yes" 1>&6
  3453.   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  3454. else
  3455.   echo "$ac_t""no" 1>&6
  3456. fi
  3457.  
  3458.   LDFLAGS="$ac_save_LDFLAGS"
  3459.  
  3460. fi
  3461.  
  3462.  
  3463. X11STUBSDIR=''
  3464. X11STUBSLA=''
  3465. X11STUBSLIB=''
  3466. if test "$with_x" != 'no'
  3467. then
  3468.     LIBS="$LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
  3469.     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
  3470.  
  3471.     echo $ac_n "checking for XShmAttach in -lXext""... $ac_c" 1>&6
  3472. echo "configure:3473: checking for XShmAttach in -lXext" >&5
  3473. ac_lib_var=`echo Xext'_'XShmAttach | sed 'y%./+-%__p_%'`
  3474. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3475.   echo $ac_n "(cached) $ac_c" 1>&6
  3476. else
  3477.   ac_save_LIBS="$LIBS"
  3478. LIBS="-lXext  $LIBS"
  3479. cat > conftest.$ac_ext <<EOF
  3480. #line 3481 "configure"
  3481. #include "confdefs.h"
  3482. /* Override any gcc2 internal prototype to avoid an error.  */
  3483. /* We use char because int might match the return type of a gcc2
  3484.     builtin and then its argument prototype would still apply.  */
  3485. char XShmAttach();
  3486.  
  3487. int main() {
  3488. XShmAttach()
  3489. ; return 0; }
  3490. EOF
  3491. if { (eval echo configure:3492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3492.   rm -rf conftest*
  3493.   eval "ac_cv_lib_$ac_lib_var=yes"
  3494. else
  3495.   echo "configure: failed program was:" >&5
  3496.   cat conftest.$ac_ext >&5
  3497.   rm -rf conftest*
  3498.   eval "ac_cv_lib_$ac_lib_var=no"
  3499. fi
  3500. rm -f conftest*
  3501. LIBS="$ac_save_LIBS"
  3502.  
  3503. fi
  3504. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3505.   echo "$ac_t""yes" 1>&6
  3506.   LIBS="$LIBS -lXext"
  3507. else
  3508.   echo "$ac_t""no" 1>&6
  3509. fi
  3510.  
  3511.     echo $ac_n "checking for XShmAttach in -lXext""... $ac_c" 1>&6
  3512. echo "configure:3513: checking for XShmAttach in -lXext" >&5
  3513. ac_lib_var=`echo Xext'_'XShmAttach | sed 'y%./+-%__p_%'`
  3514. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3515.   echo $ac_n "(cached) $ac_c" 1>&6
  3516. else
  3517.   ac_save_LIBS="$LIBS"
  3518. LIBS="-lXext  $LIBS"
  3519. cat > conftest.$ac_ext <<EOF
  3520. #line 3521 "configure"
  3521. #include "confdefs.h"
  3522. /* Override any gcc2 internal prototype to avoid an error.  */
  3523. /* We use char because int might match the return type of a gcc2
  3524.     builtin and then its argument prototype would still apply.  */
  3525. char XShmAttach();
  3526.  
  3527. int main() {
  3528. XShmAttach()
  3529. ; return 0; }
  3530. EOF
  3531. if { (eval echo configure:3532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3532.   rm -rf conftest*
  3533.   eval "ac_cv_lib_$ac_lib_var=yes"
  3534. else
  3535.   echo "configure: failed program was:" >&5
  3536.   cat conftest.$ac_ext >&5
  3537.   rm -rf conftest*
  3538.   eval "ac_cv_lib_$ac_lib_var=no"
  3539. fi
  3540. rm -f conftest*
  3541. LIBS="$ac_save_LIBS"
  3542.  
  3543. fi
  3544. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3545.   echo "$ac_t""yes" 1>&6
  3546.   cat >> confdefs.h <<\EOF
  3547. #define HasSharedMemory 1
  3548. EOF
  3549.  
  3550. else
  3551.   echo "$ac_t""no" 1>&6
  3552. fi
  3553.  
  3554.     echo $ac_n "checking for XShapeCombineMask in -lXext""... $ac_c" 1>&6
  3555. echo "configure:3556: checking for XShapeCombineMask in -lXext" >&5
  3556. ac_lib_var=`echo Xext'_'XShapeCombineMask | sed 'y%./+-%__p_%'`
  3557. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3558.   echo $ac_n "(cached) $ac_c" 1>&6
  3559. else
  3560.   ac_save_LIBS="$LIBS"
  3561. LIBS="-lXext  $LIBS"
  3562. cat > conftest.$ac_ext <<EOF
  3563. #line 3564 "configure"
  3564. #include "confdefs.h"
  3565. /* Override any gcc2 internal prototype to avoid an error.  */
  3566. /* We use char because int might match the return type of a gcc2
  3567.     builtin and then its argument prototype would still apply.  */
  3568. char XShapeCombineMask();
  3569.  
  3570. int main() {
  3571. XShapeCombineMask()
  3572. ; return 0; }
  3573. EOF
  3574. if { (eval echo configure:3575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3575.   rm -rf conftest*
  3576.   eval "ac_cv_lib_$ac_lib_var=yes"
  3577. else
  3578.   echo "configure: failed program was:" >&5
  3579.   cat conftest.$ac_ext >&5
  3580.   rm -rf conftest*
  3581.   eval "ac_cv_lib_$ac_lib_var=no"
  3582. fi
  3583. rm -f conftest*
  3584. LIBS="$ac_save_LIBS"
  3585.  
  3586. fi
  3587. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3588.   echo "$ac_t""yes" 1>&6
  3589.   cat >> confdefs.h <<\EOF
  3590. #define HasShape 1
  3591. EOF
  3592.  
  3593. else
  3594.   echo "$ac_t""no" 1>&6
  3595. fi
  3596.  
  3597.  
  3598.     echo $ac_n "checking for XtSetEventDispatcher in -lXt""... $ac_c" 1>&6
  3599. echo "configure:3600: checking for XtSetEventDispatcher in -lXt" >&5
  3600. ac_lib_var=`echo Xt'_'XtSetEventDispatcher | sed 'y%./+-%__p_%'`
  3601. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3602.   echo $ac_n "(cached) $ac_c" 1>&6
  3603. else
  3604.   ac_save_LIBS="$LIBS"
  3605. LIBS="-lXt  $LIBS"
  3606. cat > conftest.$ac_ext <<EOF
  3607. #line 3608 "configure"
  3608. #include "confdefs.h"
  3609. /* Override any gcc2 internal prototype to avoid an error.  */
  3610. /* We use char because int might match the return type of a gcc2
  3611.     builtin and then its argument prototype would still apply.  */
  3612. char XtSetEventDispatcher();
  3613.  
  3614. int main() {
  3615. XtSetEventDispatcher()
  3616. ; return 0; }
  3617. EOF
  3618. if { (eval echo configure:3619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3619.   rm -rf conftest*
  3620.   eval "ac_cv_lib_$ac_lib_var=yes"
  3621. else
  3622.   echo "configure: failed program was:" >&5
  3623.   cat conftest.$ac_ext >&5
  3624.   rm -rf conftest*
  3625.   eval "ac_cv_lib_$ac_lib_var=no"
  3626. fi
  3627. rm -f conftest*
  3628. LIBS="$ac_save_LIBS"
  3629.  
  3630. fi
  3631. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3632.   echo "$ac_t""yes" 1>&6
  3633.   LIBS="$LIBS -lXt"
  3634. else
  3635.   echo "$ac_t""no" 1>&6
  3636. fi
  3637.  
  3638. else
  3639.         echo $ac_n "checking for X11 stubs library""... $ac_c" 1>&6
  3640. echo "configure:3641: checking for X11 stubs library" >&5
  3641.     if test -f "$srcdir/xlib/X11_stubs.c"
  3642.     then
  3643.     CPPFLAGS="$CPPFLAGS -I$srcdirfull/xlib"
  3644.     X11STUBSDIR="$srcdir/xlib"
  3645.     X11STUBSLANAME="libX11_stubs.la"
  3646.     X11STUBSLA="$srcdir/xlib/$X11STUBSLANAME"
  3647.     X11STUBSLIB="-lX11_stubs"
  3648.     echo "$ac_t""yes" 1>&6
  3649.     else
  3650.     echo "$ac_t""no" 1>&6
  3651.     { echo "configure: error: ImageMagick requires X11 library or X11 stubs library to build" 1>&2; exit 1; }
  3652.     fi
  3653. fi
  3654.  
  3655.  
  3656.  
  3657.  
  3658.  
  3659.  
  3660. echo $ac_n "checking for X11 RGB database""... $ac_c" 1>&6
  3661. echo "configure:3662: checking for X11 RGB database" >&5
  3662. if eval "test \"`echo '$''{'im_cv_x_rgbdb'+set}'`\" = set"; then
  3663.   echo $ac_n "(cached) $ac_c" 1>&6
  3664. else
  3665.   # Look for the header file in a standard set of common directories.
  3666. # Check X11 before X11Rn because it is often a symlink to the current release.
  3667.   for ac_dir in               \
  3668.     /lib/usr/lib/X11      \
  3669.     /usr/X11/lib          \
  3670.     /usr/X11R4/lib        \
  3671.     /usr/X11R5/lib        \
  3672.     /usr/X11R6/lib        \
  3673.     /usr/X386/lib         \
  3674.     /usr/XFree86/lib/X11  \
  3675.     /usr/athena/lib       \
  3676.     /usr/lib              \
  3677.     /usr/lib/X11          \
  3678.     /usr/lib/X11R4        \
  3679.     /usr/lib/X11R5        \
  3680.     /usr/lib/X11R6        \
  3681.     /usr/local/X11/lib    \
  3682.     /usr/local/X11R4/lib  \
  3683.     /usr/local/X11R5/lib  \
  3684.     /usr/local/X11R6/lib  \
  3685.     /usr/local/lib        \
  3686.     /usr/local/lib/X11    \
  3687.     /usr/local/lib/X11R4  \
  3688.     /usr/local/lib/X11R5  \
  3689.     /usr/local/lib/X11R6  \
  3690.     /usr/local/x11r5/lib  \
  3691.     /usr/lpp/Xamples/lib  \
  3692.     /usr/openwin/lib      \
  3693.     /usr/openwin/share/lib \
  3694.     /usr/unsupported/lib  \
  3695.     /usr/x386/lib         \
  3696.     ; \
  3697.   do
  3698.     if test -f "$ac_dir/X11/rgb.txt"
  3699.     then
  3700.         im_cv_x_rgbdb="$ac_dir/X11/rgb.txt"
  3701.     break
  3702.     elif test -f "$ac_dir/rgb.txt"
  3703.     then 
  3704.         im_cv_x_rgbdb="$ac_dir/rgb.txt"
  3705.         break
  3706.     fi
  3707.  
  3708.   done
  3709. fi
  3710.  
  3711. echo "$ac_t""$im_cv_x_rgbdb" 1>&6
  3712. cat >> confdefs.h <<EOF
  3713. #define RGBColorDatabase "$im_cv_x_rgbdb"
  3714. EOF
  3715.  
  3716.  
  3717. LIB_FPX=''
  3718. if test "$with_fpx" != 'no'
  3719. then
  3720.     echo "checking for FlashPIX components ..." 1>&6
  3721. echo "configure:3722: checking for FlashPIX components ..." >&5
  3722.     failed=0;
  3723.     passed=0;
  3724.     ac_safe=`echo "fpx.h" | sed 'y%./+-%__p_%'`
  3725. echo $ac_n "checking for fpx.h""... $ac_c" 1>&6
  3726. echo "configure:3727: checking for fpx.h" >&5
  3727. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3728.   echo $ac_n "(cached) $ac_c" 1>&6
  3729. else
  3730.   cat > conftest.$ac_ext <<EOF
  3731. #line 3732 "configure"
  3732. #include "confdefs.h"
  3733. #include <fpx.h>
  3734. EOF
  3735. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3736. { (eval echo configure:3737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3737. ac_err=`grep -v '^ *+' conftest.out`
  3738. if test -z "$ac_err"; then
  3739.   rm -rf conftest*
  3740.   eval "ac_cv_header_$ac_safe=yes"
  3741. else
  3742.   echo "$ac_err" >&5
  3743.   echo "configure: failed program was:" >&5
  3744.   cat conftest.$ac_ext >&5
  3745.   rm -rf conftest*
  3746.   eval "ac_cv_header_$ac_safe=no"
  3747. fi
  3748. rm -f conftest*
  3749. fi
  3750. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3751.   echo "$ac_t""yes" 1>&6
  3752.   passed=`expr $passed + 1`
  3753. else
  3754.   echo "$ac_t""no" 1>&6
  3755. failed=`expr $failed + 1`
  3756. fi
  3757.  
  3758.     echo $ac_n "checking for FPX_OpenImageByFilename in -lfpx""... $ac_c" 1>&6
  3759. echo "configure:3760: checking for FPX_OpenImageByFilename in -lfpx" >&5
  3760. ac_lib_var=`echo fpx'_'FPX_OpenImageByFilename | sed 'y%./+-%__p_%'`
  3761. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3762.   echo $ac_n "(cached) $ac_c" 1>&6
  3763. else
  3764.   ac_save_LIBS="$LIBS"
  3765. LIBS="-lfpx $TRAILING_LIBS $LIBS"
  3766. cat > conftest.$ac_ext <<EOF
  3767. #line 3768 "configure"
  3768. #include "confdefs.h"
  3769. /* Override any gcc2 internal prototype to avoid an error.  */
  3770. /* We use char because int might match the return type of a gcc2
  3771.     builtin and then its argument prototype would still apply.  */
  3772. char FPX_OpenImageByFilename();
  3773.  
  3774. int main() {
  3775. FPX_OpenImageByFilename()
  3776. ; return 0; }
  3777. EOF
  3778. if { (eval echo configure:3779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3779.   rm -rf conftest*
  3780.   eval "ac_cv_lib_$ac_lib_var=yes"
  3781. else
  3782.   echo "configure: failed program was:" >&5
  3783.   cat conftest.$ac_ext >&5
  3784.   rm -rf conftest*
  3785.   eval "ac_cv_lib_$ac_lib_var=no"
  3786. fi
  3787. rm -f conftest*
  3788. LIBS="$ac_save_LIBS"
  3789.  
  3790. fi
  3791. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3792.   echo "$ac_t""yes" 1>&6
  3793.   passed=`expr $passed + 1`
  3794. else
  3795.   echo "$ac_t""no" 1>&6
  3796. failed=`expr $failed + 1`
  3797. fi
  3798.  
  3799.     echo $ac_n "checking if FlashPIX package is complete""... $ac_c" 1>&6
  3800. echo "configure:3801: checking if FlashPIX package is complete" >&5
  3801.     if test $passed -gt 0
  3802.     then
  3803.     if test $failed -gt 0
  3804.     then
  3805.     echo "$ac_t""no -- some components failed test" 1>&6
  3806.     else
  3807.     LIB_FPX='-lfpx'
  3808.     LIBS="$LIBS $LIB_FPX"
  3809.     cat >> confdefs.h <<\EOF
  3810. #define HasFPX 1
  3811. EOF
  3812.  
  3813.     echo "$ac_t""yes" 1>&6
  3814.     fi
  3815.     else
  3816.     echo "$ac_t""no" 1>&6
  3817.     fi
  3818. fi
  3819.  
  3820. LIB_JBIG=''
  3821. if test "$with_jbig" != 'no'
  3822. then
  3823.     echo "checking for JBIG support ..." 1>&6
  3824. echo "configure:3825: checking for JBIG support ..." >&5
  3825.     failed=0;
  3826.     passed=0;
  3827.     ac_safe=`echo "jbig.h" | sed 'y%./+-%__p_%'`
  3828. echo $ac_n "checking for jbig.h""... $ac_c" 1>&6
  3829. echo "configure:3830: checking for jbig.h" >&5
  3830. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3831.   echo $ac_n "(cached) $ac_c" 1>&6
  3832. else
  3833.   cat > conftest.$ac_ext <<EOF
  3834. #line 3835 "configure"
  3835. #include "confdefs.h"
  3836. #include <jbig.h>
  3837. EOF
  3838. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3839. { (eval echo configure:3840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3840. ac_err=`grep -v '^ *+' conftest.out`
  3841. if test -z "$ac_err"; then
  3842.   rm -rf conftest*
  3843.   eval "ac_cv_header_$ac_safe=yes"
  3844. else
  3845.   echo "$ac_err" >&5
  3846.   echo "configure: failed program was:" >&5
  3847.   cat conftest.$ac_ext >&5
  3848.   rm -rf conftest*
  3849.   eval "ac_cv_header_$ac_safe=no"
  3850. fi
  3851. rm -f conftest*
  3852. fi
  3853. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3854.   echo "$ac_t""yes" 1>&6
  3855.   passed=`expr $passed + 1`
  3856. else
  3857.   echo "$ac_t""no" 1>&6
  3858. failed=`expr $failed + 1`
  3859. fi
  3860.  
  3861.     echo $ac_n "checking for jbg_dec_init in -ljbig""... $ac_c" 1>&6
  3862. echo "configure:3863: checking for jbg_dec_init in -ljbig" >&5
  3863. ac_lib_var=`echo jbig'_'jbg_dec_init | sed 'y%./+-%__p_%'`
  3864. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3865.   echo $ac_n "(cached) $ac_c" 1>&6
  3866. else
  3867.   ac_save_LIBS="$LIBS"
  3868. LIBS="-ljbig $TRAILING_LIBS $LIBS"
  3869. cat > conftest.$ac_ext <<EOF
  3870. #line 3871 "configure"
  3871. #include "confdefs.h"
  3872. /* Override any gcc2 internal prototype to avoid an error.  */
  3873. /* We use char because int might match the return type of a gcc2
  3874.     builtin and then its argument prototype would still apply.  */
  3875. char jbg_dec_init();
  3876.  
  3877. int main() {
  3878. jbg_dec_init()
  3879. ; return 0; }
  3880. EOF
  3881. if { (eval echo configure:3882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3882.   rm -rf conftest*
  3883.   eval "ac_cv_lib_$ac_lib_var=yes"
  3884. else
  3885.   echo "configure: failed program was:" >&5
  3886.   cat conftest.$ac_ext >&5
  3887.   rm -rf conftest*
  3888.   eval "ac_cv_lib_$ac_lib_var=no"
  3889. fi
  3890. rm -f conftest*
  3891. LIBS="$ac_save_LIBS"
  3892.  
  3893. fi
  3894. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3895.   echo "$ac_t""yes" 1>&6
  3896.   passed=`expr $passed + 1`
  3897. else
  3898.   echo "$ac_t""no" 1>&6
  3899. failed=`expr $failed + 1`
  3900. fi
  3901.  
  3902.     echo $ac_n "checking if JBIG package is complete""... $ac_c" 1>&6
  3903. echo "configure:3904: checking if JBIG package is complete" >&5
  3904.     if test $passed -gt 0
  3905.     then
  3906.     if test $failed -gt 0
  3907.     then
  3908.     echo "$ac_t""no -- some components failed test" 1>&6
  3909.     else
  3910.     LIB_JBIG='-ljbig'
  3911.     LIBS="$LIBS $LIB_JBIG"
  3912.     cat >> confdefs.h <<\EOF
  3913. #define HasJBIG 1
  3914. EOF
  3915.  
  3916.     echo "$ac_t""yes" 1>&6
  3917.     fi
  3918.     else
  3919.     echo "$ac_t""no" 1>&6
  3920.     fi
  3921. fi
  3922.  
  3923. LIB_JPEG=''
  3924. if test "$with_jpeg" != 'no'
  3925. then
  3926.     echo "checking for JPEG support ..." 1>&6
  3927. echo "configure:3928: checking for JPEG support ..." >&5
  3928.     failed=0;
  3929.     passed=0;
  3930.     ac_safe=`echo "jconfig.h" | sed 'y%./+-%__p_%'`
  3931. echo $ac_n "checking for jconfig.h""... $ac_c" 1>&6
  3932. echo "configure:3933: checking for jconfig.h" >&5
  3933. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3934.   echo $ac_n "(cached) $ac_c" 1>&6
  3935. else
  3936.   cat > conftest.$ac_ext <<EOF
  3937. #line 3938 "configure"
  3938. #include "confdefs.h"
  3939. #include <jconfig.h>
  3940. EOF
  3941. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3942. { (eval echo configure:3943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3943. ac_err=`grep -v '^ *+' conftest.out`
  3944. if test -z "$ac_err"; then
  3945.   rm -rf conftest*
  3946.   eval "ac_cv_header_$ac_safe=yes"
  3947. else
  3948.   echo "$ac_err" >&5
  3949.   echo "configure: failed program was:" >&5
  3950.   cat conftest.$ac_ext >&5
  3951.   rm -rf conftest*
  3952.   eval "ac_cv_header_$ac_safe=no"
  3953. fi
  3954. rm -f conftest*
  3955. fi
  3956. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3957.   echo "$ac_t""yes" 1>&6
  3958.   passed=`expr $passed + 1`
  3959. else
  3960.   echo "$ac_t""no" 1>&6
  3961. failed=`expr $failed + 1`
  3962. fi
  3963.  
  3964.     ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'`
  3965. echo $ac_n "checking for jerror.h""... $ac_c" 1>&6
  3966. echo "configure:3967: checking for jerror.h" >&5
  3967. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3968.   echo $ac_n "(cached) $ac_c" 1>&6
  3969. else
  3970.   cat > conftest.$ac_ext <<EOF
  3971. #line 3972 "configure"
  3972. #include "confdefs.h"
  3973. #include <jerror.h>
  3974. EOF
  3975. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3976. { (eval echo configure:3977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3977. ac_err=`grep -v '^ *+' conftest.out`
  3978. if test -z "$ac_err"; then
  3979.   rm -rf conftest*
  3980.   eval "ac_cv_header_$ac_safe=yes"
  3981. else
  3982.   echo "$ac_err" >&5
  3983.   echo "configure: failed program was:" >&5
  3984.   cat conftest.$ac_ext >&5
  3985.   rm -rf conftest*
  3986.   eval "ac_cv_header_$ac_safe=no"
  3987. fi
  3988. rm -f conftest*
  3989. fi
  3990. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3991.   echo "$ac_t""yes" 1>&6
  3992.   passed=`expr $passed + 1`
  3993. else
  3994.   echo "$ac_t""no" 1>&6
  3995. failed=`expr $failed + 1`
  3996. fi
  3997.  
  3998.     ac_safe=`echo "jmorecfg.h" | sed 'y%./+-%__p_%'`
  3999. echo $ac_n "checking for jmorecfg.h""... $ac_c" 1>&6
  4000. echo "configure:4001: checking for jmorecfg.h" >&5
  4001. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4002.   echo $ac_n "(cached) $ac_c" 1>&6
  4003. else
  4004.   cat > conftest.$ac_ext <<EOF
  4005. #line 4006 "configure"
  4006. #include "confdefs.h"
  4007. #include <jmorecfg.h>
  4008. EOF
  4009. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4010. { (eval echo configure:4011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4011. ac_err=`grep -v '^ *+' conftest.out`
  4012. if test -z "$ac_err"; then
  4013.   rm -rf conftest*
  4014.   eval "ac_cv_header_$ac_safe=yes"
  4015. else
  4016.   echo "$ac_err" >&5
  4017.   echo "configure: failed program was:" >&5
  4018.   cat conftest.$ac_ext >&5
  4019.   rm -rf conftest*
  4020.   eval "ac_cv_header_$ac_safe=no"
  4021. fi
  4022. rm -f conftest*
  4023. fi
  4024. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4025.   echo "$ac_t""yes" 1>&6
  4026.   passed=`expr $passed + 1`
  4027. else
  4028.   echo "$ac_t""no" 1>&6
  4029. failed=`expr $failed + 1`
  4030. fi
  4031.  
  4032.     ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
  4033. echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
  4034. echo "configure:4035: checking for jpeglib.h" >&5
  4035. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4036.   echo $ac_n "(cached) $ac_c" 1>&6
  4037. else
  4038.   cat > conftest.$ac_ext <<EOF
  4039. #line 4040 "configure"
  4040. #include "confdefs.h"
  4041. #include <jpeglib.h>
  4042. EOF
  4043. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4044. { (eval echo configure:4045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4045. ac_err=`grep -v '^ *+' conftest.out`
  4046. if test -z "$ac_err"; then
  4047.   rm -rf conftest*
  4048.   eval "ac_cv_header_$ac_safe=yes"
  4049. else
  4050.   echo "$ac_err" >&5
  4051.   echo "configure: failed program was:" >&5
  4052.   cat conftest.$ac_ext >&5
  4053.   rm -rf conftest*
  4054.   eval "ac_cv_header_$ac_safe=no"
  4055. fi
  4056. rm -f conftest*
  4057. fi
  4058. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4059.   echo "$ac_t""yes" 1>&6
  4060.   passed=`expr $passed + 1`
  4061. else
  4062.   echo "$ac_t""no" 1>&6
  4063. failed=`expr $failed + 1`
  4064. fi
  4065.  
  4066.     echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
  4067. echo "configure:4068: checking for jpeg_read_header in -ljpeg" >&5
  4068. ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
  4069. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4070.   echo $ac_n "(cached) $ac_c" 1>&6
  4071. else
  4072.   ac_save_LIBS="$LIBS"
  4073. LIBS="-ljpeg $TRAILING_LIBS $LIBS"
  4074. cat > conftest.$ac_ext <<EOF
  4075. #line 4076 "configure"
  4076. #include "confdefs.h"
  4077. /* Override any gcc2 internal prototype to avoid an error.  */
  4078. /* We use char because int might match the return type of a gcc2
  4079.     builtin and then its argument prototype would still apply.  */
  4080. char jpeg_read_header();
  4081.  
  4082. int main() {
  4083. jpeg_read_header()
  4084. ; return 0; }
  4085. EOF
  4086. if { (eval echo configure:4087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  4087.   rm -rf conftest*
  4088.   eval "ac_cv_lib_$ac_lib_var=yes"
  4089. else
  4090.   echo "configure: failed program was:" >&5
  4091.   cat conftest.$ac_ext >&5
  4092.   rm -rf conftest*
  4093.   eval "ac_cv_lib_$ac_lib_var=no"
  4094. fi
  4095. rm -f conftest*
  4096. LIBS="$ac_save_LIBS"
  4097.  
  4098. fi
  4099. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4100.   echo "$ac_t""yes" 1>&6
  4101.   passed=`expr $passed + 1`
  4102. else
  4103.   echo "$ac_t""no" 1>&6
  4104. failed=`expr $failed + 1`
  4105. fi
  4106.  
  4107.     echo $ac_n "checking if JPEG package is complete""... $ac_c" 1>&6
  4108. echo "configure:4109: checking if JPEG package is complete" >&5
  4109.     if test $passed -gt 0
  4110.     then
  4111.     if test $failed -gt 0
  4112.     then
  4113.     echo "$ac_t""no -- some components failed test" 1>&6
  4114.     else
  4115.     LIB_JPEG='-ljpeg'
  4116.     LIBS="$LIBS $LIB_JPEG"
  4117.     cat >> confdefs.h <<\EOF
  4118. #define HasJPEG 1
  4119. EOF
  4120.  
  4121.     echo "$ac_t""yes" 1>&6
  4122.     fi
  4123.     else
  4124.     echo "$ac_t""no" 1>&6
  4125.     fi
  4126. fi
  4127.  
  4128. LIB_MPEG=''
  4129. if test "$with_mpeg" != 'no'
  4130. then
  4131.     echo "checking for MPEG support ..." 1>&6
  4132. echo "configure:4133: checking for MPEG support ..." >&5
  4133.     failed=0;
  4134.     passed=0;
  4135.     ac_safe=`echo "mpeg.h" | sed 'y%./+-%__p_%'`
  4136. echo $ac_n "checking for mpeg.h""... $ac_c" 1>&6
  4137. echo "configure:4138: checking for mpeg.h" >&5
  4138. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4139.   echo $ac_n "(cached) $ac_c" 1>&6
  4140. else
  4141.   cat > conftest.$ac_ext <<EOF
  4142. #line 4143 "configure"
  4143. #include "confdefs.h"
  4144. #include <mpeg.h>
  4145. EOF
  4146. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4147. { (eval echo configure:4148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4148. ac_err=`grep -v '^ *+' conftest.out`
  4149. if test -z "$ac_err"; then
  4150.   rm -rf conftest*
  4151.   eval "ac_cv_header_$ac_safe=yes"
  4152. else
  4153.   echo "$ac_err" >&5
  4154.   echo "configure: failed program was:" >&5
  4155.   cat conftest.$ac_ext >&5
  4156.   rm -rf conftest*
  4157.   eval "ac_cv_header_$ac_safe=no"
  4158. fi
  4159. rm -f conftest*
  4160. fi
  4161. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4162.   echo "$ac_t""yes" 1>&6
  4163.   passed=`expr $passed + 1`
  4164. else
  4165.   echo "$ac_t""no" 1>&6
  4166. failed=`expr $failed + 1`
  4167. fi
  4168.  
  4169.     echo $ac_n "checking for GetMPEGInfo in -lmpeg""... $ac_c" 1>&6
  4170. echo "configure:4171: checking for GetMPEGInfo in -lmpeg" >&5
  4171. ac_lib_var=`echo mpeg'_'GetMPEGInfo | sed 'y%./+-%__p_%'`
  4172. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4173.   echo $ac_n "(cached) $ac_c" 1>&6
  4174. else
  4175.   ac_save_LIBS="$LIBS"
  4176. LIBS="-lmpeg $TRAILING_LIBS $LIBS"
  4177. cat > conftest.$ac_ext <<EOF
  4178. #line 4179 "configure"
  4179. #include "confdefs.h"
  4180. /* Override any gcc2 internal prototype to avoid an error.  */
  4181. /* We use char because int might match the return type of a gcc2
  4182.     builtin and then its argument prototype would still apply.  */
  4183. char GetMPEGInfo();
  4184.  
  4185. int main() {
  4186. GetMPEGInfo()
  4187. ; return 0; }
  4188. EOF
  4189. if { (eval echo configure:4190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  4190.   rm -rf conftest*
  4191.   eval "ac_cv_lib_$ac_lib_var=yes"
  4192. else
  4193.   echo "configure: failed program was:" >&5
  4194.   cat conftest.$ac_ext >&5
  4195.   rm -rf conftest*
  4196.   eval "ac_cv_lib_$ac_lib_var=no"
  4197. fi
  4198. rm -f conftest*
  4199. LIBS="$ac_save_LIBS"
  4200.  
  4201. fi
  4202. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4203.   echo "$ac_t""yes" 1>&6
  4204.   passed=`expr $passed + 1`
  4205. else
  4206.   echo "$ac_t""no" 1>&6
  4207. failed=`expr $failed + 1`
  4208. fi
  4209.  
  4210.     echo $ac_n "checking if MPEG package is complete""... $ac_c" 1>&6
  4211. echo "configure:4212: checking if MPEG package is complete" >&5
  4212.     if test $passed -gt 0
  4213.     then
  4214.     if test $failed -gt 0
  4215.     then
  4216.     echo "$ac_t""no -- some components failed test" 1>&6
  4217.     else
  4218.     LIB_MPEG='-lmpeg'
  4219.     LIBS="$LIBS $LIB_MPEG"
  4220.     cat >> confdefs.h <<\EOF
  4221. #define HasMPEG 1
  4222. EOF
  4223.  
  4224.     echo "$ac_t""yes" 1>&6
  4225.     fi
  4226.     else
  4227.     echo "$ac_t""no" 1>&6
  4228.     fi
  4229. fi
  4230.  
  4231.  
  4232. LIB_ZLIB=''
  4233. echo "checking for ZLIB support ..." 1>&6
  4234. echo "configure:4235: checking for ZLIB support ..." >&5
  4235. failed=0;
  4236. passed=0;
  4237. ac_safe=`echo "zconf.h" | sed 'y%./+-%__p_%'`
  4238. echo $ac_n "checking for zconf.h""... $ac_c" 1>&6
  4239. echo "configure:4240: checking for zconf.h" >&5
  4240. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4241.   echo $ac_n "(cached) $ac_c" 1>&6
  4242. else
  4243.   cat > conftest.$ac_ext <<EOF
  4244. #line 4245 "configure"
  4245. #include "confdefs.h"
  4246. #include <zconf.h>
  4247. EOF
  4248. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4249. { (eval echo configure:4250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4250. ac_err=`grep -v '^ *+' conftest.out`
  4251. if test -z "$ac_err"; then
  4252.   rm -rf conftest*
  4253.   eval "ac_cv_header_$ac_safe=yes"
  4254. else
  4255.   echo "$ac_err" >&5
  4256.   echo "configure: failed program was:" >&5
  4257.   cat conftest.$ac_ext >&5
  4258.   rm -rf conftest*
  4259.   eval "ac_cv_header_$ac_safe=no"
  4260. fi
  4261. rm -f conftest*
  4262. fi
  4263. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4264.   echo "$ac_t""yes" 1>&6
  4265.   passed=`expr $passed + 1`
  4266. else
  4267.   echo "$ac_t""no" 1>&6
  4268. failed=`expr $failed + 1`
  4269. fi
  4270.  
  4271. ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
  4272. echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
  4273. echo "configure:4274: checking for zlib.h" >&5
  4274. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4275.   echo $ac_n "(cached) $ac_c" 1>&6
  4276. else
  4277.   cat > conftest.$ac_ext <<EOF
  4278. #line 4279 "configure"
  4279. #include "confdefs.h"
  4280. #include <zlib.h>
  4281. EOF
  4282. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4283. { (eval echo configure:4284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4284. ac_err=`grep -v '^ *+' conftest.out`
  4285. if test -z "$ac_err"; then
  4286.   rm -rf conftest*
  4287.   eval "ac_cv_header_$ac_safe=yes"
  4288. else
  4289.   echo "$ac_err" >&5
  4290.   echo "configure: failed program was:" >&5
  4291.   cat conftest.$ac_ext >&5
  4292.   rm -rf conftest*
  4293.   eval "ac_cv_header_$ac_safe=no"
  4294. fi
  4295. rm -f conftest*
  4296. fi
  4297. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4298.   echo "$ac_t""yes" 1>&6
  4299.   passed=`expr $passed + 1`
  4300. else
  4301.   echo "$ac_t""no" 1>&6
  4302. failed=`expr $failed + 1`
  4303. fi
  4304.  
  4305. echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
  4306. echo "configure:4307: checking for inflate in -lz" >&5
  4307. ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
  4308. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4309.   echo $ac_n "(cached) $ac_c" 1>&6
  4310. else
  4311.   ac_save_LIBS="$LIBS"
  4312. LIBS="-lz $TRAILING_LIBS $LIBS"
  4313. cat > conftest.$ac_ext <<EOF
  4314. #line 4315 "configure"
  4315. #include "confdefs.h"
  4316. /* Override any gcc2 internal prototype to avoid an error.  */
  4317. /* We use char because int might match the return type of a gcc2
  4318.     builtin and then its argument prototype would still apply.  */
  4319. char inflate();
  4320.  
  4321. int main() {
  4322. inflate()
  4323. ; return 0; }
  4324. EOF
  4325. if { (eval echo configure:4326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  4326.   rm -rf conftest*
  4327.   eval "ac_cv_lib_$ac_lib_var=yes"
  4328. else
  4329.   echo "configure: failed program was:" >&5
  4330.   cat conftest.$ac_ext >&5
  4331.   rm -rf conftest*
  4332.   eval "ac_cv_lib_$ac_lib_var=no"
  4333. fi
  4334. rm -f conftest*
  4335. LIBS="$ac_save_LIBS"
  4336.  
  4337. fi
  4338. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4339.   echo "$ac_t""yes" 1>&6
  4340.   passed=`expr $passed + 1`
  4341. else
  4342.   echo "$ac_t""no" 1>&6
  4343. failed=`expr $failed + 1`
  4344. fi
  4345.  
  4346. echo $ac_n "checking if ZLIB package is complete""... $ac_c" 1>&6
  4347. echo "configure:4348: checking if ZLIB package is complete" >&5
  4348. if test $passed -gt 0
  4349. then
  4350.     if test $failed -gt 0
  4351.     then
  4352.     echo "$ac_t""no -- some components failed test" 1>&6
  4353.     else
  4354.     LIB_ZLIB='-lz'
  4355.     TRAILING_LIBS="$LIB_ZLIB $TRAILING_LIBS"
  4356.     cat >> confdefs.h <<\EOF
  4357. #define HasZLIB 1
  4358. EOF
  4359.  
  4360.     echo "$ac_t""yes" 1>&6
  4361.     fi
  4362. else
  4363.     echo "$ac_t""no" 1>&6
  4364. fi
  4365.  
  4366. LIB_HDF=''
  4367. if test "$with_hdf" != 'no'
  4368. then
  4369.     echo "checking for HDF components ..." 1>&6
  4370. echo "configure:4371: checking for HDF components ..." >&5
  4371.     failed=0;
  4372.     passed=0;
  4373.     ac_safe=`echo "hdf.h" | sed 'y%./+-%__p_%'`
  4374. echo $ac_n "checking for hdf.h""... $ac_c" 1>&6
  4375. echo "configure:4376: checking for hdf.h" >&5
  4376. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4377.   echo $ac_n "(cached) $ac_c" 1>&6
  4378. else
  4379.   cat > conftest.$ac_ext <<EOF
  4380. #line 4381 "configure"
  4381. #include "confdefs.h"
  4382. #include <hdf.h>
  4383. EOF
  4384. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4385. { (eval echo configure:4386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4386. ac_err=`grep -v '^ *+' conftest.out`
  4387. if test -z "$ac_err"; then
  4388.   rm -rf conftest*
  4389.   eval "ac_cv_header_$ac_safe=yes"
  4390. else
  4391.   echo "$ac_err" >&5
  4392.   echo "configure: failed program was:" >&5
  4393.   cat conftest.$ac_ext >&5
  4394.   rm -rf conftest*
  4395.   eval "ac_cv_header_$ac_safe=no"
  4396. fi
  4397. rm -f conftest*
  4398. fi
  4399. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4400.   echo "$ac_t""yes" 1>&6
  4401.   passed=`expr $passed + 1`
  4402. else
  4403.   echo "$ac_t""no" 1>&6
  4404. failed=`expr $failed + 1`
  4405. fi
  4406.  
  4407.     echo $ac_n "checking for DFANputlabel in -ldf""... $ac_c" 1>&6
  4408. echo "configure:4409: checking for DFANputlabel in -ldf" >&5
  4409. ac_lib_var=`echo df'_'DFANputlabel | sed 'y%./+-%__p_%'`
  4410. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4411.   echo $ac_n "(cached) $ac_c" 1>&6
  4412. else
  4413.   ac_save_LIBS="$LIBS"
  4414. LIBS="-ldf $TRAILING_LIBS $LIBS"
  4415. cat > conftest.$ac_ext <<EOF
  4416. #line 4417 "configure"
  4417. #include "confdefs.h"
  4418. /* Override any gcc2 internal prototype to avoid an error.  */
  4419. /* We use char because int might match the return type of a gcc2
  4420.     builtin and then its argument prototype would still apply.  */
  4421. char DFANputlabel();
  4422.  
  4423. int main() {
  4424. DFANputlabel()
  4425. ; return 0; }
  4426. EOF
  4427. if { (eval echo configure:4428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  4428.   rm -rf conftest*
  4429.   eval "ac_cv_lib_$ac_lib_var=yes"
  4430. else
  4431.   echo "configure: failed program was:" >&5
  4432.   cat conftest.$ac_ext >&5
  4433.   rm -rf conftest*
  4434.   eval "ac_cv_lib_$ac_lib_var=no"
  4435. fi
  4436. rm -f conftest*
  4437. LIBS="$ac_save_LIBS"
  4438.  
  4439. fi
  4440. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4441.   echo "$ac_t""yes" 1>&6
  4442.   passed=`expr $passed + 1`
  4443. else
  4444.   echo "$ac_t""no" 1>&6
  4445. failed=`expr $failed + 1`
  4446. fi
  4447.  
  4448.     echo $ac_n "checking if HDF package is complete""... $ac_c" 1>&6
  4449. echo "configure:4450: checking if HDF package is complete" >&5
  4450.     if test $passed -gt 0
  4451.     then
  4452.     if test $failed -gt 0
  4453.     then
  4454.     echo "$ac_t""no -- some components failed test" 1>&6
  4455.     else
  4456.     LIB_HDF='-ldf'
  4457.     LIBS="$LIBS $LIB_HDF"
  4458.     cat >> confdefs.h <<\EOF
  4459. #define HasHDF 1
  4460. EOF
  4461.  
  4462.     echo "$ac_t""yes" 1>&6
  4463.     fi
  4464.     else
  4465.     echo "$ac_t""no" 1>&6
  4466.     fi
  4467. fi
  4468.  
  4469. LIB_PNG=''
  4470. if test "$with_png" != 'no'
  4471. then
  4472.     echo "checking for PNG support ..." 1>&6
  4473. echo "configure:4474: checking for PNG support ..." >&5
  4474.     failed=0;
  4475.     passed=0;
  4476.     ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
  4477. echo $ac_n "checking for png.h""... $ac_c" 1>&6
  4478. echo "configure:4479: checking for png.h" >&5
  4479. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4480.   echo $ac_n "(cached) $ac_c" 1>&6
  4481. else
  4482.   cat > conftest.$ac_ext <<EOF
  4483. #line 4484 "configure"
  4484. #include "confdefs.h"
  4485. #include <png.h>
  4486. EOF
  4487. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4488. { (eval echo configure:4489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4489. ac_err=`grep -v '^ *+' conftest.out`
  4490. if test -z "$ac_err"; then
  4491.   rm -rf conftest*
  4492.   eval "ac_cv_header_$ac_safe=yes"
  4493. else
  4494.   echo "$ac_err" >&5
  4495.   echo "configure: failed program was:" >&5
  4496.   cat conftest.$ac_ext >&5
  4497.   rm -rf conftest*
  4498.   eval "ac_cv_header_$ac_safe=no"
  4499. fi
  4500. rm -f conftest*
  4501. fi
  4502. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4503.   echo "$ac_t""yes" 1>&6
  4504.   passed=`expr $passed + 1`
  4505. else
  4506.   echo "$ac_t""no" 1>&6
  4507. failed=`expr $failed + 1`
  4508. fi
  4509.  
  4510.     ac_safe=`echo "pngconf.h" | sed 'y%./+-%__p_%'`
  4511. echo $ac_n "checking for pngconf.h""... $ac_c" 1>&6
  4512. echo "configure:4513: checking for pngconf.h" >&5
  4513. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4514.   echo $ac_n "(cached) $ac_c" 1>&6
  4515. else
  4516.   cat > conftest.$ac_ext <<EOF
  4517. #line 4518 "configure"
  4518. #include "confdefs.h"
  4519. #include <pngconf.h>
  4520. EOF
  4521. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4522. { (eval echo configure:4523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4523. ac_err=`grep -v '^ *+' conftest.out`
  4524. if test -z "$ac_err"; then
  4525.   rm -rf conftest*
  4526.   eval "ac_cv_header_$ac_safe=yes"
  4527. else
  4528.   echo "$ac_err" >&5
  4529.   echo "configure: failed program was:" >&5
  4530.   cat conftest.$ac_ext >&5
  4531.   rm -rf conftest*
  4532.   eval "ac_cv_header_$ac_safe=no"
  4533. fi
  4534. rm -f conftest*
  4535. fi
  4536. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4537.   echo "$ac_t""yes" 1>&6
  4538.   passed=`expr $passed + 1`
  4539. else
  4540.   echo "$ac_t""no" 1>&6
  4541. failed=`expr $failed + 1`
  4542. fi
  4543.  
  4544.     echo $ac_n "checking for png_info_init in -lpng""... $ac_c" 1>&6
  4545. echo "configure:4546: checking for png_info_init in -lpng" >&5
  4546. ac_lib_var=`echo png'_'png_info_init | sed 'y%./+-%__p_%'`
  4547. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4548.   echo $ac_n "(cached) $ac_c" 1>&6
  4549. else
  4550.   ac_save_LIBS="$LIBS"
  4551. LIBS="-lpng $TRAILING_LIBS $LIBS"
  4552. cat > conftest.$ac_ext <<EOF
  4553. #line 4554 "configure"
  4554. #include "confdefs.h"
  4555. /* Override any gcc2 internal prototype to avoid an error.  */
  4556. /* We use char because int might match the return type of a gcc2
  4557.     builtin and then its argument prototype would still apply.  */
  4558. char png_info_init();
  4559.  
  4560. int main() {
  4561. png_info_init()
  4562. ; return 0; }
  4563. EOF
  4564. if { (eval echo configure:4565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  4565.   rm -rf conftest*
  4566.   eval "ac_cv_lib_$ac_lib_var=yes"
  4567. else
  4568.   echo "configure: failed program was:" >&5
  4569.   cat conftest.$ac_ext >&5
  4570.   rm -rf conftest*
  4571.   eval "ac_cv_lib_$ac_lib_var=no"
  4572. fi
  4573. rm -f conftest*
  4574. LIBS="$ac_save_LIBS"
  4575.  
  4576. fi
  4577. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4578.   echo "$ac_t""yes" 1>&6
  4579.   passed=`expr $passed + 1`
  4580. else
  4581.   echo "$ac_t""no" 1>&6
  4582. failed=`expr $failed + 1`
  4583. fi
  4584.  
  4585.     echo $ac_n "checking if PNG package is complete""... $ac_c" 1>&6
  4586. echo "configure:4587: checking if PNG package is complete" >&5
  4587.     if test $passed -gt 0
  4588.     then
  4589.     if test $failed -gt 0
  4590.     then
  4591.     echo "$ac_t""no -- some components failed test" 1>&6
  4592.     else
  4593.     LIB_PNG='-lpng'
  4594.     LIBS="$LIBS $LIB_PNG"
  4595.     cat >> confdefs.h <<\EOF
  4596. #define HasPNG 1
  4597. EOF
  4598.  
  4599.     echo "$ac_t""yes" 1>&6
  4600.     fi
  4601.     else
  4602.     echo "$ac_t""no" 1>&6
  4603.     fi
  4604. fi
  4605.  
  4606.  
  4607. LIB_TIFF=''
  4608. if test "$with_tiff" != 'no'
  4609. then
  4610.     echo "checking for TIFF support ..." 1>&6
  4611. echo "configure:4612: checking for TIFF support ..." >&5
  4612.     failed=0;
  4613.     passed=0;
  4614.     ac_safe=`echo "tiff.h" | sed 'y%./+-%__p_%'`
  4615. echo $ac_n "checking for tiff.h""... $ac_c" 1>&6
  4616. echo "configure:4617: checking for tiff.h" >&5
  4617. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4618.   echo $ac_n "(cached) $ac_c" 1>&6
  4619. else
  4620.   cat > conftest.$ac_ext <<EOF
  4621. #line 4622 "configure"
  4622. #include "confdefs.h"
  4623. #include <tiff.h>
  4624. EOF
  4625. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4626. { (eval echo configure:4627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4627. ac_err=`grep -v '^ *+' conftest.out`
  4628. if test -z "$ac_err"; then
  4629.   rm -rf conftest*
  4630.   eval "ac_cv_header_$ac_safe=yes"
  4631. else
  4632.   echo "$ac_err" >&5
  4633.   echo "configure: failed program was:" >&5
  4634.   cat conftest.$ac_ext >&5
  4635.   rm -rf conftest*
  4636.   eval "ac_cv_header_$ac_safe=no"
  4637. fi
  4638. rm -f conftest*
  4639. fi
  4640. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4641.   echo "$ac_t""yes" 1>&6
  4642.   passed=`expr $passed + 1`
  4643. else
  4644.   echo "$ac_t""no" 1>&6
  4645. failed=`expr $failed + 1`
  4646. fi
  4647.  
  4648.     ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
  4649. echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
  4650. echo "configure:4651: checking for tiffio.h" >&5
  4651. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4652.   echo $ac_n "(cached) $ac_c" 1>&6
  4653. else
  4654.   cat > conftest.$ac_ext <<EOF
  4655. #line 4656 "configure"
  4656. #include "confdefs.h"
  4657. #include <tiffio.h>
  4658. EOF
  4659. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4660. { (eval echo configure:4661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4661. ac_err=`grep -v '^ *+' conftest.out`
  4662. if test -z "$ac_err"; then
  4663.   rm -rf conftest*
  4664.   eval "ac_cv_header_$ac_safe=yes"
  4665. else
  4666.   echo "$ac_err" >&5
  4667.   echo "configure: failed program was:" >&5
  4668.   cat conftest.$ac_ext >&5
  4669.   rm -rf conftest*
  4670.   eval "ac_cv_header_$ac_safe=no"
  4671. fi
  4672. rm -f conftest*
  4673. fi
  4674. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4675.   echo "$ac_t""yes" 1>&6
  4676.   passed=`expr $passed + 1`
  4677. else
  4678.   echo "$ac_t""no" 1>&6
  4679. failed=`expr $failed + 1`
  4680. fi
  4681.  
  4682.     echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
  4683. echo "configure:4684: checking for TIFFOpen in -ltiff" >&5
  4684. ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
  4685. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4686.   echo $ac_n "(cached) $ac_c" 1>&6
  4687. else
  4688.   ac_save_LIBS="$LIBS"
  4689. LIBS="-ltiff $TRAILING_LIBS $LIBS"
  4690. cat > conftest.$ac_ext <<EOF
  4691. #line 4692 "configure"
  4692. #include "confdefs.h"
  4693. /* Override any gcc2 internal prototype to avoid an error.  */
  4694. /* We use char because int might match the return type of a gcc2
  4695.     builtin and then its argument prototype would still apply.  */
  4696. char TIFFOpen();
  4697.  
  4698. int main() {
  4699. TIFFOpen()
  4700. ; return 0; }
  4701. EOF
  4702. if { (eval echo configure:4703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  4703.   rm -rf conftest*
  4704.   eval "ac_cv_lib_$ac_lib_var=yes"
  4705. else
  4706.   echo "configure: failed program was:" >&5
  4707.   cat conftest.$ac_ext >&5
  4708.   rm -rf conftest*
  4709.   eval "ac_cv_lib_$ac_lib_var=no"
  4710. fi
  4711. rm -f conftest*
  4712. LIBS="$ac_save_LIBS"
  4713.  
  4714. fi
  4715. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4716.   echo "$ac_t""yes" 1>&6
  4717.   passed=`expr $passed + 1`
  4718. else
  4719.   echo "$ac_t""no" 1>&6
  4720. failed=`expr $failed + 1`
  4721. fi
  4722.  
  4723.     echo $ac_n "checking if TIFF package is complete""... $ac_c" 1>&6
  4724. echo "configure:4725: checking if TIFF package is complete" >&5
  4725.     if test $passed -gt 0
  4726.     then
  4727.     if test $failed -gt 0
  4728.     then
  4729.     echo "$ac_t""no -- some components failed test" 1>&6
  4730.     else
  4731.     LIB_TIFF='-ltiff'
  4732.     LIBS="$LIBS $LIB_TIFF"
  4733.     cat >> confdefs.h <<\EOF
  4734. #define HasTIFF 1
  4735. EOF
  4736.  
  4737.     echo "$ac_t""yes" 1>&6
  4738.     fi
  4739.     else
  4740.     echo "$ac_t""no" 1>&6
  4741.     fi
  4742. fi
  4743.  
  4744. LIB_TTF=''
  4745. if test "$with_ttf" != 'no'
  4746. then
  4747.     echo "checking for TrueType Font support ..." 1>&6
  4748. echo "configure:4749: checking for TrueType Font support ..." >&5
  4749.     failed=0;
  4750.     passed=0;
  4751.     ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
  4752. echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
  4753. echo "configure:4754: checking for freetype.h" >&5
  4754. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4755.   echo $ac_n "(cached) $ac_c" 1>&6
  4756. else
  4757.   cat > conftest.$ac_ext <<EOF
  4758. #line 4759 "configure"
  4759. #include "confdefs.h"
  4760. #include <freetype.h>
  4761. EOF
  4762. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4763. { (eval echo configure:4764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4764. ac_err=`grep -v '^ *+' conftest.out`
  4765. if test -z "$ac_err"; then
  4766.   rm -rf conftest*
  4767.   eval "ac_cv_header_$ac_safe=yes"
  4768. else
  4769.   echo "$ac_err" >&5
  4770.   echo "configure: failed program was:" >&5
  4771.   cat conftest.$ac_ext >&5
  4772.   rm -rf conftest*
  4773.   eval "ac_cv_header_$ac_safe=no"
  4774. fi
  4775. rm -f conftest*
  4776. fi
  4777. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4778.   echo "$ac_t""yes" 1>&6
  4779.   passed=`expr $passed + 1`
  4780. else
  4781.   echo "$ac_t""no" 1>&6
  4782. failed=`expr $failed + 1`
  4783. fi
  4784.  
  4785.     echo $ac_n "checking for TT_Init_FreeType in -lttf""... $ac_c" 1>&6
  4786. echo "configure:4787: checking for TT_Init_FreeType in -lttf" >&5
  4787. ac_lib_var=`echo ttf'_'TT_Init_FreeType | sed 'y%./+-%__p_%'`
  4788. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4789.   echo $ac_n "(cached) $ac_c" 1>&6
  4790. else
  4791.   ac_save_LIBS="$LIBS"
  4792. LIBS="-lttf $TRAILING_LIBS $LIBS"
  4793. cat > conftest.$ac_ext <<EOF
  4794. #line 4795 "configure"
  4795. #include "confdefs.h"
  4796. /* Override any gcc2 internal prototype to avoid an error.  */
  4797. /* We use char because int might match the return type of a gcc2
  4798.     builtin and then its argument prototype would still apply.  */
  4799. char TT_Init_FreeType();
  4800.  
  4801. int main() {
  4802. TT_Init_FreeType()
  4803. ; return 0; }
  4804. EOF
  4805. if { (eval echo configure:4806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  4806.   rm -rf conftest*
  4807.   eval "ac_cv_lib_$ac_lib_var=yes"
  4808. else
  4809.   echo "configure: failed program was:" >&5
  4810.   cat conftest.$ac_ext >&5
  4811.   rm -rf conftest*
  4812.   eval "ac_cv_lib_$ac_lib_var=no"
  4813. fi
  4814. rm -f conftest*
  4815. LIBS="$ac_save_LIBS"
  4816.  
  4817. fi
  4818. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4819.   echo "$ac_t""yes" 1>&6
  4820.   passed=`expr $passed + 1`
  4821. else
  4822.   echo "$ac_t""no" 1>&6
  4823. failed=`expr $failed + 1`
  4824. fi
  4825.  
  4826.     echo $ac_n "checking if FreeType package is complete""... $ac_c" 1>&6
  4827. echo "configure:4828: checking if FreeType package is complete" >&5
  4828.     if test $passed -gt 0
  4829.     then
  4830.     if test $failed -gt 0
  4831.     then
  4832.         echo "$ac_t""no -- some components failed test" 1>&6
  4833.     else
  4834.         LIB_TTF='-lttf'
  4835.         LIBS="$LIBS $LIB_TTF"
  4836.         cat >> confdefs.h <<\EOF
  4837. #define HasTTF 1
  4838. EOF
  4839.  
  4840.         echo "$ac_t""yes" 1>&6
  4841.     fi
  4842.     else
  4843.     echo "$ac_t""no" 1>&6
  4844.     fi
  4845. fi
  4846.  
  4847. LIB_DPS=''
  4848. if test "$with_dps" != 'no' && test "$with_x" != 'no'
  4849. then
  4850.     echo "checking for Display Postscript support ..." 1>&6
  4851. echo "configure:4852: checking for Display Postscript support ..." >&5
  4852.     failed=0;
  4853.     passed=0;
  4854.     O_CPPFLAGS=$CPPFLAGS
  4855.     CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
  4856.     ac_safe=`echo "DPS/dpsXclient.h" | sed 'y%./+-%__p_%'`
  4857. echo $ac_n "checking for DPS/dpsXclient.h""... $ac_c" 1>&6
  4858. echo "configure:4859: checking for DPS/dpsXclient.h" >&5
  4859. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4860.   echo $ac_n "(cached) $ac_c" 1>&6
  4861. else
  4862.   cat > conftest.$ac_ext <<EOF
  4863. #line 4864 "configure"
  4864. #include "confdefs.h"
  4865. #include <DPS/dpsXclient.h>
  4866. EOF
  4867. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4868. { (eval echo configure:4869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4869. ac_err=`grep -v '^ *+' conftest.out`
  4870. if test -z "$ac_err"; then
  4871.   rm -rf conftest*
  4872.   eval "ac_cv_header_$ac_safe=yes"
  4873. else
  4874.   echo "$ac_err" >&5
  4875.   echo "configure: failed program was:" >&5
  4876.   cat conftest.$ac_ext >&5
  4877.   rm -rf conftest*
  4878.   eval "ac_cv_header_$ac_safe=no"
  4879. fi
  4880. rm -f conftest*
  4881. fi
  4882. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4883.   echo "$ac_t""yes" 1>&6
  4884.   passed=`expr $passed + 1`
  4885. else
  4886.   echo "$ac_t""no" 1>&6
  4887. failed=`expr $failed + 1`
  4888. fi
  4889.  
  4890.     ac_safe=`echo "DPS/dpsXpreview.h" | sed 'y%./+-%__p_%'`
  4891. echo $ac_n "checking for DPS/dpsXpreview.h""... $ac_c" 1>&6
  4892. echo "configure:4893: checking for DPS/dpsXpreview.h" >&5
  4893. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4894.   echo $ac_n "(cached) $ac_c" 1>&6
  4895. else
  4896.   cat > conftest.$ac_ext <<EOF
  4897. #line 4898 "configure"
  4898. #include "confdefs.h"
  4899. #include <DPS/dpsXpreview.h>
  4900. EOF
  4901. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4902. { (eval echo configure:4903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4903. ac_err=`grep -v '^ *+' conftest.out`
  4904. if test -z "$ac_err"; then
  4905.   rm -rf conftest*
  4906.   eval "ac_cv_header_$ac_safe=yes"
  4907. else
  4908.   echo "$ac_err" >&5
  4909.   echo "configure: failed program was:" >&5
  4910.   cat conftest.$ac_ext >&5
  4911.   rm -rf conftest*
  4912.   eval "ac_cv_header_$ac_safe=no"
  4913. fi
  4914. rm -f conftest*
  4915. fi
  4916. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4917.   echo "$ac_t""yes" 1>&6
  4918.   passed=`expr $passed + 1`
  4919. else
  4920.   echo "$ac_t""no" 1>&6
  4921. failed=`expr $failed + 1`
  4922. fi
  4923.  
  4924.     echo $ac_n "checking for DPSInitialize in -ldps""... $ac_c" 1>&6
  4925. echo "configure:4926: checking for DPSInitialize in -ldps" >&5
  4926. ac_lib_var=`echo dps'_'DPSInitialize | sed 'y%./+-%__p_%'`
  4927. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4928.   echo $ac_n "(cached) $ac_c" 1>&6
  4929. else
  4930.   ac_save_LIBS="$LIBS"
  4931. LIBS="-ldps $TRAILING_LIBS $LIBS"
  4932. cat > conftest.$ac_ext <<EOF
  4933. #line 4934 "configure"
  4934. #include "confdefs.h"
  4935. /* Override any gcc2 internal prototype to avoid an error.  */
  4936. /* We use char because int might match the return type of a gcc2
  4937.     builtin and then its argument prototype would still apply.  */
  4938. char DPSInitialize();
  4939.  
  4940. int main() {
  4941. DPSInitialize()
  4942. ; return 0; }
  4943. EOF
  4944. if { (eval echo configure:4945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  4945.   rm -rf conftest*
  4946.   eval "ac_cv_lib_$ac_lib_var=yes"
  4947. else
  4948.   echo "configure: failed program was:" >&5
  4949.   cat conftest.$ac_ext >&5
  4950.   rm -rf conftest*
  4951.   eval "ac_cv_lib_$ac_lib_var=no"
  4952. fi
  4953. rm -f conftest*
  4954. LIBS="$ac_save_LIBS"
  4955.  
  4956. fi
  4957. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4958.   echo "$ac_t""yes" 1>&6
  4959.   passed=`expr $passed + 1`
  4960. else
  4961.   echo "$ac_t""no" 1>&6
  4962. failed=`expr $failed + 1`
  4963. fi
  4964.  
  4965.     echo $ac_n "checking for XDPSPixelsPerPoint in -ldpstk""... $ac_c" 1>&6
  4966. echo "configure:4967: checking for XDPSPixelsPerPoint in -ldpstk" >&5
  4967. ac_lib_var=`echo dpstk'_'XDPSPixelsPerPoint | sed 'y%./+-%__p_%'`
  4968. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4969.   echo $ac_n "(cached) $ac_c" 1>&6
  4970. else
  4971.   ac_save_LIBS="$LIBS"
  4972. LIBS="-ldpstk -ldps $TRAILING_LIBS $LIBS"
  4973. cat > conftest.$ac_ext <<EOF
  4974. #line 4975 "configure"
  4975. #include "confdefs.h"
  4976. /* Override any gcc2 internal prototype to avoid an error.  */
  4977. /* We use char because int might match the return type of a gcc2
  4978.     builtin and then its argument prototype would still apply.  */
  4979. char XDPSPixelsPerPoint();
  4980.  
  4981. int main() {
  4982. XDPSPixelsPerPoint()
  4983. ; return 0; }
  4984. EOF
  4985. if { (eval echo configure:4986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  4986.   rm -rf conftest*
  4987.   eval "ac_cv_lib_$ac_lib_var=yes"
  4988. else
  4989.   echo "configure: failed program was:" >&5
  4990.   cat conftest.$ac_ext >&5
  4991.   rm -rf conftest*
  4992.   eval "ac_cv_lib_$ac_lib_var=no"
  4993. fi
  4994. rm -f conftest*
  4995. LIBS="$ac_save_LIBS"
  4996.  
  4997. fi
  4998. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4999.   echo "$ac_t""yes" 1>&6
  5000.   passed=`expr $passed + 1`
  5001. else
  5002.   echo "$ac_t""no" 1>&6
  5003. failed=`expr $failed + 1`
  5004. fi
  5005.  
  5006.     echo $ac_n "checking if DPS package is complete""... $ac_c" 1>&6
  5007. echo "configure:5008: checking if DPS package is complete" >&5
  5008.     if test $passed -gt 0
  5009.     then
  5010.     if test $failed -gt 0
  5011.     then
  5012.     echo "$ac_t""no -- some components failed test" 1>&6
  5013.     CPPFLAGS=$O_CPPFLAGS
  5014.     else
  5015.     LIB_DPS='-ldpstk -ldps'
  5016.     LIBS="$LIBS $LIB_DPS"
  5017.     cat >> confdefs.h <<\EOF
  5018. #define HasDPS 1
  5019. EOF
  5020.  
  5021.     echo "$ac_t""yes" 1>&6
  5022.     fi
  5023.     else
  5024.     echo "$ac_t""no" 1>&6
  5025.     CPPFLAGS=$O_CPPFLAGS
  5026.     fi
  5027. fi
  5028.  
  5029. if test "$TRAILING_LIBS"
  5030. then
  5031.     LIBS="$LIBS $TRAILING_LIBS"
  5032. fi
  5033.  
  5034. if test "$with_perl" != 'no'
  5035. then
  5036.     if test "$with_perl" != 'yes'
  5037.     then
  5038.     echo $ac_n "checking for perl""... $ac_c" 1>&6
  5039. echo "configure:5040: checking for perl" >&5
  5040. if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
  5041.   echo $ac_n "(cached) $ac_c" 1>&6
  5042. else
  5043.   ac_cv_path_PERL="$with_perl"
  5044. fi
  5045.  
  5046. echo "$ac_t""$ac_cv_path_PERL" 1>&6;
  5047.     else
  5048.     for ac_prog in perl perl5
  5049. do
  5050. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5051. set dummy $ac_prog; ac_word=$2
  5052. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5053. echo "configure:5054: checking for $ac_word" >&5
  5054. if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
  5055.   echo $ac_n "(cached) $ac_c" 1>&6
  5056. else
  5057.   case "$PERL" in
  5058.   /*)
  5059.   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  5060.   ;;
  5061.   *)
  5062.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  5063.   for ac_dir in $PATH; do
  5064.     test -z "$ac_dir" && ac_dir=.
  5065.     if test -f $ac_dir/$ac_word; then
  5066.       ac_cv_path_PERL="$ac_dir/$ac_word"
  5067.       break
  5068.     fi
  5069.   done
  5070.   IFS="$ac_save_ifs"
  5071.   ;;
  5072. esac
  5073. fi
  5074. PERL="$ac_cv_path_PERL"
  5075. if test -n "$PERL"; then
  5076.   echo "$ac_t""$PERL" 1>&6
  5077. else
  5078.   echo "$ac_t""no" 1>&6
  5079. fi
  5080.  
  5081. test -n "$PERL" && break
  5082. done
  5083.     fi
  5084. fi
  5085.  
  5086. MAGICKLIB="-L$PREFIX/lib -L/usr/local/lib -lMagick"
  5087. if test $with_perl_static = 'yes'
  5088. then
  5089.   MAGICKLIB="-L${builddir}/magick -lMagick"
  5090. fi
  5091.  
  5092. XTP_LIBS=''
  5093. XTP_DEFS=''
  5094. XTP_FTP='ftp'
  5095. if test "$with_socks" = 'yes'
  5096. then
  5097.   have_socks_header='no'
  5098.   have_socks_lib='no'
  5099.   ac_safe=`echo "socks.h" | sed 'y%./+-%__p_%'`
  5100. echo $ac_n "checking for socks.h""... $ac_c" 1>&6
  5101. echo "configure:5102: checking for socks.h" >&5
  5102. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  5103.   echo $ac_n "(cached) $ac_c" 1>&6
  5104. else
  5105.   cat > conftest.$ac_ext <<EOF
  5106. #line 5107 "configure"
  5107. #include "confdefs.h"
  5108. #include <socks.h>
  5109. EOF
  5110. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5111. { (eval echo configure:5112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5112. ac_err=`grep -v '^ *+' conftest.out`
  5113. if test -z "$ac_err"; then
  5114.   rm -rf conftest*
  5115.   eval "ac_cv_header_$ac_safe=yes"
  5116. else
  5117.   echo "$ac_err" >&5
  5118.   echo "configure: failed program was:" >&5
  5119.   cat conftest.$ac_ext >&5
  5120.   rm -rf conftest*
  5121.   eval "ac_cv_header_$ac_safe=no"
  5122. fi
  5123. rm -f conftest*
  5124. fi
  5125. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5126.   echo "$ac_t""yes" 1>&6
  5127.   have_socks_header='yes'
  5128. else
  5129.   echo "$ac_t""no" 1>&6
  5130. have_socks_header='no'
  5131. fi
  5132.  
  5133.   echo $ac_n "checking for SOCKSinit in -lsocks5""... $ac_c" 1>&6
  5134. echo "configure:5135: checking for SOCKSinit in -lsocks5" >&5
  5135. ac_lib_var=`echo socks5'_'SOCKSinit | sed 'y%./+-%__p_%'`
  5136. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5137.   echo $ac_n "(cached) $ac_c" 1>&6
  5138. else
  5139.   ac_save_LIBS="$LIBS"
  5140. LIBS="-lsocks5  $LIBS"
  5141. cat > conftest.$ac_ext <<EOF
  5142. #line 5143 "configure"
  5143. #include "confdefs.h"
  5144. /* Override any gcc2 internal prototype to avoid an error.  */
  5145. /* We use char because int might match the return type of a gcc2
  5146.     builtin and then its argument prototype would still apply.  */
  5147. char SOCKSinit();
  5148.  
  5149. int main() {
  5150. SOCKSinit()
  5151. ; return 0; }
  5152. EOF
  5153. if { (eval echo configure:5154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  5154.   rm -rf conftest*
  5155.   eval "ac_cv_lib_$ac_lib_var=yes"
  5156. else
  5157.   echo "configure: failed program was:" >&5
  5158.   cat conftest.$ac_ext >&5
  5159.   rm -rf conftest*
  5160.   eval "ac_cv_lib_$ac_lib_var=no"
  5161. fi
  5162. rm -f conftest*
  5163. LIBS="$ac_save_LIBS"
  5164.  
  5165. fi
  5166. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5167.   echo "$ac_t""yes" 1>&6
  5168.   have_socks_lib='yes'
  5169. else
  5170.   echo "$ac_t""no" 1>&6
  5171. have_socks_lib='no'
  5172. fi
  5173.  
  5174.   if test $have_socks_header = 'yes' && test $have_socks_lib = 'yes'
  5175.   then
  5176.     XTP_LIBS="$XTP_LIBS -lsocks5"
  5177.     XTP_DEFS="$XTP_DEFS -DSOCKS"
  5178.   fi
  5179.   for ac_prog in rftp ftp
  5180. do
  5181. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5182. set dummy $ac_prog; ac_word=$2
  5183. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5184. echo "configure:5185: checking for $ac_word" >&5
  5185. if eval "test \"`echo '$''{'ac_cv_path_XTP_FTP'+set}'`\" = set"; then
  5186.   echo $ac_n "(cached) $ac_c" 1>&6
  5187. else
  5188.   case "$XTP_FTP" in
  5189.   /*)
  5190.   ac_cv_path_XTP_FTP="$XTP_FTP" # Let the user override the test with a path.
  5191.   ;;
  5192.   *)
  5193.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  5194.   for ac_dir in $PATH; do
  5195.     test -z "$ac_dir" && ac_dir=.
  5196.     if test -f $ac_dir/$ac_word; then
  5197.       ac_cv_path_XTP_FTP="$ac_dir/$ac_word"
  5198.       break
  5199.     fi
  5200.   done
  5201.   IFS="$ac_save_ifs"
  5202.   ;;
  5203. esac
  5204. fi
  5205. XTP_FTP="$ac_cv_path_XTP_FTP"
  5206. if test -n "$XTP_FTP"; then
  5207.   echo "$ac_t""$XTP_FTP" 1>&6
  5208. else
  5209.   echo "$ac_t""no" 1>&6
  5210. fi
  5211.  
  5212. test -n "$XTP_FTP" && break
  5213. done
  5214.  
  5215. fi
  5216. XTP_DEFS="$XTP_DEFS -DXTP_FTP=\"\\\"$XTP_FTP\\\"\""
  5217. echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  5218. echo "configure:5219: checking for gethostbyname in -lnsl" >&5
  5219. ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  5220. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5221.   echo $ac_n "(cached) $ac_c" 1>&6
  5222. else
  5223.   ac_save_LIBS="$LIBS"
  5224. LIBS="-lnsl  $LIBS"
  5225. cat > conftest.$ac_ext <<EOF
  5226. #line 5227 "configure"
  5227. #include "confdefs.h"
  5228. /* Override any gcc2 internal prototype to avoid an error.  */
  5229. /* We use char because int might match the return type of a gcc2
  5230.     builtin and then its argument prototype would still apply.  */
  5231. char gethostbyname();
  5232.  
  5233. int main() {
  5234. gethostbyname()
  5235. ; return 0; }
  5236. EOF
  5237. if { (eval echo configure:5238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  5238.   rm -rf conftest*
  5239.   eval "ac_cv_lib_$ac_lib_var=yes"
  5240. else
  5241.   echo "configure: failed program was:" >&5
  5242.   cat conftest.$ac_ext >&5
  5243.   rm -rf conftest*
  5244.   eval "ac_cv_lib_$ac_lib_var=no"
  5245. fi
  5246. rm -f conftest*
  5247. LIBS="$ac_save_LIBS"
  5248.  
  5249. fi
  5250. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5251.   echo "$ac_t""yes" 1>&6
  5252.   XTP_LIBS="$XTP_LIBS -lnsl"
  5253. else
  5254.   echo "$ac_t""no" 1>&6
  5255. fi
  5256.  
  5257. echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
  5258. echo "configure:5259: checking for socket in -lsocket" >&5
  5259. ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
  5260. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5261.   echo $ac_n "(cached) $ac_c" 1>&6
  5262. else
  5263.   ac_save_LIBS="$LIBS"
  5264. LIBS="-lsocket  $LIBS"
  5265. cat > conftest.$ac_ext <<EOF
  5266. #line 5267 "configure"
  5267. #include "confdefs.h"
  5268. /* Override any gcc2 internal prototype to avoid an error.  */
  5269. /* We use char because int might match the return type of a gcc2
  5270.     builtin and then its argument prototype would still apply.  */
  5271. char socket();
  5272.  
  5273. int main() {
  5274. socket()
  5275. ; return 0; }
  5276. EOF
  5277. if { (eval echo configure:5278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  5278.   rm -rf conftest*
  5279.   eval "ac_cv_lib_$ac_lib_var=yes"
  5280. else
  5281.   echo "configure: failed program was:" >&5
  5282.   cat conftest.$ac_ext >&5
  5283.   rm -rf conftest*
  5284.   eval "ac_cv_lib_$ac_lib_var=no"
  5285. fi
  5286. rm -f conftest*
  5287. LIBS="$ac_save_LIBS"
  5288.  
  5289. fi
  5290. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5291.   echo "$ac_t""yes" 1>&6
  5292.   XTP_LIBS="$XTP_LIBS -lsocket"
  5293. else
  5294.   echo "$ac_t""no" 1>&6
  5295. fi
  5296.  
  5297.  
  5298. trap '' 1 2 15
  5299. cat > confcache <<\EOF
  5300. # This file is a shell script that caches the results of configure
  5301. # tests run on this system so they can be shared between configure
  5302. # scripts and configure runs.  It is not useful on other systems.
  5303. # If it contains results you don't want to keep, you may remove or edit it.
  5304. #
  5305. # By default, configure uses ./config.cache as the cache file,
  5306. # creating it if it does not exist already.  You can give configure
  5307. # the --cache-file=FILE option to use a different cache file; that is
  5308. # what configure does when it calls configure scripts in
  5309. # subdirectories, so they share the cache.
  5310. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  5311. # config.status only pays attention to the cache file if you give it the
  5312. # --recheck option to rerun configure.
  5313. #
  5314. EOF
  5315. # The following way of writing the cache mishandles newlines in values,
  5316. # but we know of no workaround that is simple, portable, and efficient.
  5317. # So, don't put newlines in cache variables' values.
  5318. # Ultrix sh set writes to stderr and can't be redirected directly,
  5319. # and sets the high bit in the cache file unless we assign to the vars.
  5320. (set) 2>&1 |
  5321.   case `(ac_space=' '; set) 2>&1` in
  5322.   *ac_space=\ *)
  5323.     # `set' does not quote correctly, so add quotes (double-quote substitution
  5324.     # turns \\\\ into \\, and sed turns \\ into \).
  5325.     sed -n \
  5326.       -e "s/'/'\\\\''/g" \
  5327.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  5328.     ;;
  5329.   *)
  5330.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  5331.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  5332.     ;;
  5333.   esac >> confcache
  5334. if cmp -s $cache_file confcache; then
  5335.   :
  5336. else
  5337.   if test -w $cache_file; then
  5338.     echo "updating cache $cache_file"
  5339.     cat confcache > $cache_file
  5340.   else
  5341.     echo "not updating unwritable cache $cache_file"
  5342.   fi
  5343. fi
  5344. rm -f confcache
  5345.  
  5346. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  5347.  
  5348. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  5349. # Let make expand exec_prefix.
  5350. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  5351.  
  5352. # Any assignment to VPATH causes Sun make to only execute
  5353. # the first set of double-colon rules, so remove it if not needed.
  5354. # If there is a colon in the path, we need to keep it.
  5355. if test "x$srcdir" = x.; then
  5356.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  5357. fi
  5358.  
  5359. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  5360.  
  5361. DEFS=-DHAVE_CONFIG_H
  5362.  
  5363. # Without the "./", some shells look in PATH for config.status.
  5364. : ${CONFIG_STATUS=./config.status}
  5365.  
  5366. echo creating $CONFIG_STATUS
  5367. rm -f $CONFIG_STATUS
  5368. cat > $CONFIG_STATUS <<EOF
  5369. #! /bin/sh
  5370. # Generated automatically by configure.
  5371. # Run this file to recreate the current configuration.
  5372. # This directory was configured as follows,
  5373. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  5374. #
  5375. # $0 $ac_configure_args
  5376. #
  5377. # Compiler output produced by configure, useful for debugging
  5378. # configure, is in ./config.log if it exists.
  5379.  
  5380. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  5381. for ac_option
  5382. do
  5383.   case "\$ac_option" in
  5384.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  5385.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  5386.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  5387.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  5388.     echo "$CONFIG_STATUS generated by autoconf version 2.12"
  5389.     exit 0 ;;
  5390.   -help | --help | --hel | --he | --h)
  5391.     echo "\$ac_cs_usage"; exit 0 ;;
  5392.   *) echo "\$ac_cs_usage"; exit 1 ;;
  5393.   esac
  5394. done
  5395.  
  5396. ac_given_srcdir=$srcdir
  5397. ac_given_INSTALL="$INSTALL"
  5398.  
  5399. trap 'rm -fr `echo "Makefile magick/Makefile xtp/Makefile xlib/Makefile PerlMagick/Makefile.PL magick/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  5400. EOF
  5401. cat >> $CONFIG_STATUS <<EOF
  5402.  
  5403. # Protect against being on the right side of a sed subst in config.status.
  5404. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  5405.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  5406. $ac_vpsub
  5407. $extrasub
  5408. s%@CFLAGS@%$CFLAGS%g
  5409. s%@CPPFLAGS@%$CPPFLAGS%g
  5410. s%@CXXFLAGS@%$CXXFLAGS%g
  5411. s%@DEFS@%$DEFS%g
  5412. s%@LDFLAGS@%$LDFLAGS%g
  5413. s%@LIBS@%$LIBS%g
  5414. s%@exec_prefix@%$exec_prefix%g
  5415. s%@prefix@%$prefix%g
  5416. s%@program_transform_name@%$program_transform_name%g
  5417. s%@bindir@%$bindir%g
  5418. s%@sbindir@%$sbindir%g
  5419. s%@libexecdir@%$libexecdir%g
  5420. s%@datadir@%$datadir%g
  5421. s%@sysconfdir@%$sysconfdir%g
  5422. s%@sharedstatedir@%$sharedstatedir%g
  5423. s%@localstatedir@%$localstatedir%g
  5424. s%@libdir@%$libdir%g
  5425. s%@includedir@%$includedir%g
  5426. s%@oldincludedir@%$oldincludedir%g
  5427. s%@infodir@%$infodir%g
  5428. s%@mandir@%$mandir%g
  5429. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  5430. s%@INSTALL_DATA@%$INSTALL_DATA%g
  5431. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  5432. s%@PACKAGE@%$PACKAGE%g
  5433. s%@VERSION@%$VERSION%g
  5434. s%@ACLOCAL@%$ACLOCAL%g
  5435. s%@AUTOCONF@%$AUTOCONF%g
  5436. s%@AUTOMAKE@%$AUTOMAKE%g
  5437. s%@AUTOHEADER@%$AUTOHEADER%g
  5438. s%@MAKEINFO@%$MAKEINFO%g
  5439. s%@SET_MAKE@%$SET_MAKE%g
  5440. s%@VERSION_CURRENT@%$VERSION_CURRENT%g
  5441. s%@VERSION_REVISION@%$VERSION_REVISION%g
  5442. s%@VERSION_AGE@%$VERSION_AGE%g
  5443. s%@CC@%$CC%g
  5444. s%@CPP@%$CPP%g
  5445. s%@LN_S@%$LN_S%g
  5446. s%@host@%$host%g
  5447. s%@host_alias@%$host_alias%g
  5448. s%@host_cpu@%$host_cpu%g
  5449. s%@host_vendor@%$host_vendor%g
  5450. s%@host_os@%$host_os%g
  5451. s%@RANLIB@%$RANLIB%g
  5452. s%@LD@%$LD%g
  5453. s%@NM@%$NM%g
  5454. s%@LIBTOOL@%$LIBTOOL%g
  5455. s%@LIBOBJS@%$LIBOBJS%g
  5456. s%@MAINT@%$MAINT%g
  5457. s%@WITH_PERL_TRUE@%$WITH_PERL_TRUE%g
  5458. s%@WITH_PERL_FALSE@%$WITH_PERL_FALSE%g
  5459. s%@WITH_PERL_STATIC_TRUE@%$WITH_PERL_STATIC_TRUE%g
  5460. s%@WITH_PERL_STATIC_FALSE@%$WITH_PERL_STATIC_FALSE%g
  5461. s%@WITH_PERL_DYNAMIC_TRUE@%$WITH_PERL_DYNAMIC_TRUE%g
  5462. s%@WITH_PERL_DYNAMIC_FALSE@%$WITH_PERL_DYNAMIC_FALSE%g
  5463. s%@X_CFLAGS@%$X_CFLAGS%g
  5464. s%@X_PRE_LIBS@%$X_PRE_LIBS%g
  5465. s%@X_LIBS@%$X_LIBS%g
  5466. s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
  5467. s%@X11STUBSDIR@%$X11STUBSDIR%g
  5468. s%@X11STUBSLANAME@%$X11STUBSLANAME%g
  5469. s%@X11STUBSLA@%$X11STUBSLA%g
  5470. s%@X11STUBSLIB@%$X11STUBSLIB%g
  5471. s%@PERL@%$PERL%g
  5472. s%@MAGICKLIB@%$MAGICKLIB%g
  5473. s%@XTP_FTP@%$XTP_FTP%g
  5474. s%@XTP_LIBS@%$XTP_LIBS%g
  5475. s%@XTP_DEFS@%$XTP_DEFS%g
  5476.  
  5477. CEOF
  5478. EOF
  5479.  
  5480. cat >> $CONFIG_STATUS <<\EOF
  5481.  
  5482. # Split the substitutions into bite-sized pieces for seds with
  5483. # small command number limits, like on Digital OSF/1 and HP-UX.
  5484. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  5485. ac_file=1 # Number of current file.
  5486. ac_beg=1 # First line for current file.
  5487. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  5488. ac_more_lines=:
  5489. ac_sed_cmds=""
  5490. while $ac_more_lines; do
  5491.   if test $ac_beg -gt 1; then
  5492.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  5493.   else
  5494.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  5495.   fi
  5496.   if test ! -s conftest.s$ac_file; then
  5497.     ac_more_lines=false
  5498.     rm -f conftest.s$ac_file
  5499.   else
  5500.     if test -z "$ac_sed_cmds"; then
  5501.       ac_sed_cmds="sed -f conftest.s$ac_file"
  5502.     else
  5503.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  5504.     fi
  5505.     ac_file=`expr $ac_file + 1`
  5506.     ac_beg=$ac_end
  5507.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  5508.   fi
  5509. done
  5510. if test -z "$ac_sed_cmds"; then
  5511.   ac_sed_cmds=cat
  5512. fi
  5513. EOF
  5514.  
  5515. cat >> $CONFIG_STATUS <<EOF
  5516.  
  5517. CONFIG_FILES=\${CONFIG_FILES-"Makefile magick/Makefile xtp/Makefile xlib/Makefile PerlMagick/Makefile.PL"}
  5518. EOF
  5519. cat >> $CONFIG_STATUS <<\EOF
  5520. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  5521.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  5522.   case "$ac_file" in
  5523.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  5524.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  5525.   *) ac_file_in="${ac_file}.in" ;;
  5526.   esac
  5527.  
  5528.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  5529.  
  5530.   # Remove last slash and all that follows it.  Not all systems have dirname.
  5531.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  5532.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  5533.     # The file is in a subdirectory.
  5534.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  5535.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  5536.     # A "../" for each directory in $ac_dir_suffix.
  5537.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  5538.   else
  5539.     ac_dir_suffix= ac_dots=
  5540.   fi
  5541.  
  5542.   case "$ac_given_srcdir" in
  5543.   .)  srcdir=.
  5544.       if test -z "$ac_dots"; then top_srcdir=.
  5545.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  5546.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  5547.   *) # Relative path.
  5548.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  5549.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  5550.   esac
  5551.  
  5552.   case "$ac_given_INSTALL" in
  5553.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  5554.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  5555.   esac
  5556.  
  5557.   echo creating "$ac_file"
  5558.   rm -f "$ac_file"
  5559.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  5560.   case "$ac_file" in
  5561.   *Makefile*) ac_comsub="1i\\
  5562. # $configure_input" ;;
  5563.   *) ac_comsub= ;;
  5564.   esac
  5565.  
  5566.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  5567.   sed -e "$ac_comsub
  5568. s%@configure_input@%$configure_input%g
  5569. s%@srcdir@%$srcdir%g
  5570. s%@top_srcdir@%$top_srcdir%g
  5571. s%@INSTALL@%$INSTALL%g
  5572. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  5573. fi; done
  5574. rm -f conftest.s*
  5575.  
  5576. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  5577. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  5578. #
  5579. # ac_d sets the value in "#define NAME VALUE" lines.
  5580. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  5581. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  5582. ac_dC='\3'
  5583. ac_dD='%g'
  5584. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  5585. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  5586. ac_uB='\([     ]\)%\1#\2define\3'
  5587. ac_uC=' '
  5588. ac_uD='\4%g'
  5589. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  5590. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  5591. ac_eB='$%\1#\2define\3'
  5592. ac_eC=' '
  5593. ac_eD='%g'
  5594.  
  5595. if test "${CONFIG_HEADERS+set}" != set; then
  5596. EOF
  5597. cat >> $CONFIG_STATUS <<EOF
  5598.   CONFIG_HEADERS="magick/config.h"
  5599. EOF
  5600. cat >> $CONFIG_STATUS <<\EOF
  5601. fi
  5602. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  5603.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  5604.   case "$ac_file" in
  5605.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  5606.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  5607.   *) ac_file_in="${ac_file}.in" ;;
  5608.   esac
  5609.  
  5610.   echo creating $ac_file
  5611.  
  5612.   rm -f conftest.frag conftest.in conftest.out
  5613.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  5614.   cat $ac_file_inputs > conftest.in
  5615.  
  5616. EOF
  5617.  
  5618. # Transform confdefs.h into a sed script conftest.vals that substitutes
  5619. # the proper values into config.h.in to produce config.h.  And first:
  5620. # Protect against being on the right side of a sed subst in config.status.
  5621. # Protect against being in an unquoted here document in config.status.
  5622. rm -f conftest.vals
  5623. cat > conftest.hdr <<\EOF
  5624. s/[\\&%]/\\&/g
  5625. s%[\\$`]%\\&%g
  5626. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  5627. s%ac_d%ac_u%gp
  5628. s%ac_u%ac_e%gp
  5629. EOF
  5630. sed -n -f conftest.hdr confdefs.h > conftest.vals
  5631. rm -f conftest.hdr
  5632.  
  5633. # This sed command replaces #undef with comments.  This is necessary, for
  5634. # example, in the case of _POSIX_SOURCE, which is predefined and required
  5635. # on some systems where configure will not decide to define it.
  5636. cat >> conftest.vals <<\EOF
  5637. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  5638. EOF
  5639.  
  5640. # Break up conftest.vals because some shells have a limit on
  5641. # the size of here documents, and old seds have small limits too.
  5642.  
  5643. rm -f conftest.tail
  5644. while :
  5645. do
  5646.   ac_lines=`grep -c . conftest.vals`
  5647.   # grep -c gives empty output for an empty file on some AIX systems.
  5648.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  5649.   # Write a limited-size here document to conftest.frag.
  5650.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  5651.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  5652.   echo 'CEOF
  5653.   sed -f conftest.frag conftest.in > conftest.out
  5654.   rm -f conftest.in
  5655.   mv conftest.out conftest.in
  5656. ' >> $CONFIG_STATUS
  5657.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  5658.   rm -f conftest.vals
  5659.   mv conftest.tail conftest.vals
  5660. done
  5661. rm -f conftest.vals
  5662.  
  5663. cat >> $CONFIG_STATUS <<\EOF
  5664.   rm -f conftest.frag conftest.h
  5665.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  5666.   cat conftest.in >> conftest.h
  5667.   rm -f conftest.in
  5668.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  5669.     echo "$ac_file is unchanged"
  5670.     rm -f conftest.h
  5671.   else
  5672.     # Remove last slash and all that follows it.  Not all systems have dirname.
  5673.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  5674.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  5675.       # The file is in a subdirectory.
  5676.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  5677.     fi
  5678.     rm -f $ac_file
  5679.     mv conftest.h $ac_file
  5680.   fi
  5681. fi; done
  5682.  
  5683. EOF
  5684. cat >> $CONFIG_STATUS <<EOF
  5685.  
  5686.  
  5687. EOF
  5688. cat >> $CONFIG_STATUS <<\EOF
  5689. test -z "$CONFIG_HEADERS" || echo timestamp > magick/stamp-h
  5690.  
  5691. exit 0
  5692. EOF
  5693. chmod +x $CONFIG_STATUS
  5694. rm -fr confdefs* $ac_clean_files
  5695. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  5696.  
  5697.