home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / unix / vim-6.2.tar.bz2 / vim-6.2.tar / vim62 / src / auto / configure < prev   
Encoding:
Text File  |  2003-06-01  |  227.7 KB  |  8,279 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.13 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --with-vim-name=NAME    what to call the Vim executable"
  16. ac_help="$ac_help
  17.   --with-ex-name=NAME     what to call the Ex executable"
  18. ac_help="$ac_help
  19.   --with-view-name=NAME   what to call the View executable"
  20. ac_help="$ac_help
  21.   --with-global-runtime=DIR    global runtime directory in 'runtimepath'"
  22. ac_help="$ac_help
  23.   --with-modified-by=NAME       name of who modified a release version"
  24. ac_help="$ac_help
  25.   --with-features=TYPE    tiny, small, normal, big or huge (default: normal)"
  26. ac_help="$ac_help
  27.   --with-compiledby=NAME  name to show in :version message"
  28. ac_help="$ac_help
  29.   --disable-xsmp          Disable XSMP session management"
  30. ac_help="$ac_help
  31.   --disable-xsmp-interact Disable XSMP interaction"
  32. ac_help="$ac_help
  33.   --enable-perlinterp     Include Perl interpreter."
  34. ac_help="$ac_help
  35.   --enable-pythoninterp   Include Python interpreter."
  36. ac_help="$ac_help
  37.   --with-python-config-dir=PATH  Python's config directory"
  38. ac_help="$ac_help
  39.   --enable-tclinterp      Include Tcl interpreter."
  40. ac_help="$ac_help
  41.   --with-tclsh=PATH       which tclsh to use (default: tclsh8.0)"
  42. ac_help="$ac_help
  43.   --enable-rubyinterp     Include Ruby interpreter."
  44. ac_help="$ac_help
  45.   --enable-cscope         Include cscope interface."
  46. ac_help="$ac_help
  47.   --enable-workshop       Include Sun Visual Workshop support."
  48. ac_help="$ac_help
  49.   --disable-netbeans      Disable NetBeans integration support."
  50. ac_help="$ac_help
  51.   --enable-sniff          Include Sniff interface."
  52. ac_help="$ac_help
  53.   --enable-multibyte      Include multibyte editing support."
  54. ac_help="$ac_help
  55.   --enable-hangulinput    Include Hangul input support."
  56. ac_help="$ac_help
  57.   --enable-xim            Include XIM input support."
  58. ac_help="$ac_help
  59.   --enable-fontset        Include X fontset output support."
  60. ac_help="$ac_help
  61.   --with-x                use the X Window System"
  62. ac_help="$ac_help
  63.   --enable-gui[=OPTS]     X11 GUI [default=auto] [OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/beos/photon]"
  64. ac_help="$ac_help
  65.   --enable-gtk-check      If auto-select GUI, check for GTK [default=yes]"
  66. ac_help="$ac_help
  67.   --enable-gtk2-check     If GTK GUI, check for GTK+ 2 [default=yes]"
  68. ac_help="$ac_help
  69.   --enable-gnome-check    If GTK GUI, check for GNOME [default=no]"
  70. ac_help="$ac_help
  71.   --enable-motif-check    If auto-select GUI, check for Motif [default=yes]"
  72. ac_help="$ac_help
  73.   --enable-athena-check   If auto-select GUI, check for Athena [default=yes]"
  74. ac_help="$ac_help
  75.   --enable-nextaw-check   If auto-select GUI, check for neXtaw [default=yes]"
  76. ac_help="$ac_help
  77.   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
  78. ac_help="$ac_help
  79.   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
  80. ac_help="$ac_help
  81.   --disable-gtktest       Do not try to compile and run a test GTK program"
  82. ac_help="$ac_help
  83.   --with-gnome-includes=DIR Specify location of GNOME headers"
  84. ac_help="$ac_help
  85.   --with-gnome-libs=DIR   Specify location of GNOME libs"
  86. ac_help="$ac_help
  87.   --with-gnome            Specify prefix for GNOME files"
  88. ac_help="$ac_help
  89.   --with-motif-lib=STRING   Library for Motif "
  90. ac_help="$ac_help
  91.   --with-tlib=library     terminal library to be used "
  92. ac_help="$ac_help
  93.   --disable-acl           Don't check for ACL support."
  94. ac_help="$ac_help
  95.   --disable-gpm           Don't use gpm (Linux mouse daemon)."
  96. ac_help="$ac_help
  97.   --disable-nls           Don't support NLS (gettext())."
  98.  
  99. # Initialize some variables set by options.
  100. # The variables have the same names as the options, with
  101. # dashes changed to underlines.
  102. build=NONE
  103. cache_file=./config.cache
  104. exec_prefix=NONE
  105. host=NONE
  106. no_create=
  107. nonopt=NONE
  108. no_recursion=
  109. prefix=NONE
  110. program_prefix=NONE
  111. program_suffix=NONE
  112. program_transform_name=s,x,x,
  113. silent=
  114. site=
  115. srcdir=
  116. target=NONE
  117. verbose=
  118. x_includes=NONE
  119. x_libraries=NONE
  120. bindir='${exec_prefix}/bin'
  121. sbindir='${exec_prefix}/sbin'
  122. libexecdir='${exec_prefix}/libexec'
  123. datadir='${prefix}/share'
  124. sysconfdir='${prefix}/etc'
  125. sharedstatedir='${prefix}/com'
  126. localstatedir='${prefix}/var'
  127. libdir='${exec_prefix}/lib'
  128. includedir='${prefix}/include'
  129. oldincludedir='/usr/include'
  130. infodir='${prefix}/info'
  131. mandir='${prefix}/man'
  132.  
  133. # Initialize some other variables.
  134. subdirs=
  135. MFLAGS= MAKEFLAGS=
  136. SHELL=${CONFIG_SHELL-/bin/sh}
  137. # Maximum number of lines to put in a shell here document.
  138. ac_max_here_lines=12
  139.  
  140. ac_prev=
  141. for ac_option
  142. do
  143.  
  144.   # If the previous option needs an argument, assign it.
  145.   if test -n "$ac_prev"; then
  146.     eval "$ac_prev=\$ac_option"
  147.     ac_prev=
  148.     continue
  149.   fi
  150.  
  151.   case "$ac_option" in
  152.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  153.   *) ac_optarg= ;;
  154.   esac
  155.  
  156.   # Accept the important Cygnus configure options, so we can diagnose typos.
  157.  
  158.   case "$ac_option" in
  159.  
  160.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  161.     ac_prev=bindir ;;
  162.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  163.     bindir="$ac_optarg" ;;
  164.  
  165.   -build | --build | --buil | --bui | --bu)
  166.     ac_prev=build ;;
  167.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  168.     build="$ac_optarg" ;;
  169.  
  170.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  171.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  172.     ac_prev=cache_file ;;
  173.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  174.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  175.     cache_file="$ac_optarg" ;;
  176.  
  177.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  178.     ac_prev=datadir ;;
  179.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  180.   | --da=*)
  181.     datadir="$ac_optarg" ;;
  182.  
  183.   -disable-* | --disable-*)
  184.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  185.     # Reject names that are not valid shell variable names.
  186.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  187.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  188.     fi
  189.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  190.     eval "enable_${ac_feature}=no" ;;
  191.  
  192.   -enable-* | --enable-*)
  193.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  194.     # Reject names that are not valid shell variable names.
  195.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  196.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  197.     fi
  198.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  199.     case "$ac_option" in
  200.       *=*) ;;
  201.       *) ac_optarg=yes ;;
  202.     esac
  203.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  204.  
  205.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  206.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  207.   | --exec | --exe | --ex)
  208.     ac_prev=exec_prefix ;;
  209.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  210.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  211.   | --exec=* | --exe=* | --ex=*)
  212.     exec_prefix="$ac_optarg" ;;
  213.  
  214.   -gas | --gas | --ga | --g)
  215.     # Obsolete; use --with-gas.
  216.     with_gas=yes ;;
  217.  
  218.   -help | --help | --hel | --he)
  219.     # Omit some internal or obsolete options to make the list less imposing.
  220.     # This message is too long to be a string in the A/UX 3.1 sh.
  221.     cat << EOF
  222. Usage: configure [options] [host]
  223. Options: [defaults in brackets after descriptions]
  224. Configuration:
  225.   --cache-file=FILE       cache test results in FILE
  226.   --help                  print this message
  227.   --no-create             do not create output files
  228.   --quiet, --silent       do not print \`checking...' messages
  229.   --version               print the version of autoconf that created configure
  230. Directory and file names:
  231.   --prefix=PREFIX         install architecture-independent files in PREFIX
  232.                           [$ac_default_prefix]
  233.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  234.                           [same as prefix]
  235.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  236.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  237.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  238.   --datadir=DIR           read-only architecture-independent data in DIR
  239.                           [PREFIX/share]
  240.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  241.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  242.                           [PREFIX/com]
  243.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  244.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  245.   --includedir=DIR        C header files in DIR [PREFIX/include]
  246.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  247.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  248.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  249.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  250.   --program-prefix=PREFIX prepend PREFIX to installed program names
  251.   --program-suffix=SUFFIX append SUFFIX to installed program names
  252.   --program-transform-name=PROGRAM
  253.                           run sed PROGRAM on installed program names
  254. EOF
  255.     cat << EOF
  256. Host type:
  257.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  258.   --host=HOST             configure for HOST [guessed]
  259.   --target=TARGET         configure for TARGET [TARGET=HOST]
  260. Features and packages:
  261.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  262.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  263.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  264.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  265.   --x-includes=DIR        X include files are in DIR
  266.   --x-libraries=DIR       X library files are in DIR
  267. EOF
  268.     if test -n "$ac_help"; then
  269.       echo "--enable and --with options recognized:$ac_help"
  270.     fi
  271.     exit 0 ;;
  272.  
  273.   -host | --host | --hos | --ho)
  274.     ac_prev=host ;;
  275.   -host=* | --host=* | --hos=* | --ho=*)
  276.     host="$ac_optarg" ;;
  277.  
  278.   -includedir | --includedir | --includedi | --included | --include \
  279.   | --includ | --inclu | --incl | --inc)
  280.     ac_prev=includedir ;;
  281.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  282.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  283.     includedir="$ac_optarg" ;;
  284.  
  285.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  286.     ac_prev=infodir ;;
  287.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  288.     infodir="$ac_optarg" ;;
  289.  
  290.   -libdir | --libdir | --libdi | --libd)
  291.     ac_prev=libdir ;;
  292.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  293.     libdir="$ac_optarg" ;;
  294.  
  295.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  296.   | --libexe | --libex | --libe)
  297.     ac_prev=libexecdir ;;
  298.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  299.   | --libexe=* | --libex=* | --libe=*)
  300.     libexecdir="$ac_optarg" ;;
  301.  
  302.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  303.   | --localstate | --localstat | --localsta | --localst \
  304.   | --locals | --local | --loca | --loc | --lo)
  305.     ac_prev=localstatedir ;;
  306.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  307.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  308.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  309.     localstatedir="$ac_optarg" ;;
  310.  
  311.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  312.     ac_prev=mandir ;;
  313.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  314.     mandir="$ac_optarg" ;;
  315.  
  316.   -nfp | --nfp | --nf)
  317.     # Obsolete; use --without-fp.
  318.     with_fp=no ;;
  319.  
  320.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  321.   | --no-cr | --no-c)
  322.     no_create=yes ;;
  323.  
  324.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  325.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  326.     no_recursion=yes ;;
  327.  
  328.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  329.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  330.   | --oldin | --oldi | --old | --ol | --o)
  331.     ac_prev=oldincludedir ;;
  332.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  333.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  334.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  335.     oldincludedir="$ac_optarg" ;;
  336.  
  337.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  338.     ac_prev=prefix ;;
  339.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  340.     prefix="$ac_optarg" ;;
  341.  
  342.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  343.   | --program-pre | --program-pr | --program-p)
  344.     ac_prev=program_prefix ;;
  345.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  346.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  347.     program_prefix="$ac_optarg" ;;
  348.  
  349.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  350.   | --program-suf | --program-su | --program-s)
  351.     ac_prev=program_suffix ;;
  352.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  353.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  354.     program_suffix="$ac_optarg" ;;
  355.  
  356.   -program-transform-name | --program-transform-name \
  357.   | --program-transform-nam | --program-transform-na \
  358.   | --program-transform-n | --program-transform- \
  359.   | --program-transform | --program-transfor \
  360.   | --program-transfo | --program-transf \
  361.   | --program-trans | --program-tran \
  362.   | --progr-tra | --program-tr | --program-t)
  363.     ac_prev=program_transform_name ;;
  364.   -program-transform-name=* | --program-transform-name=* \
  365.   | --program-transform-nam=* | --program-transform-na=* \
  366.   | --program-transform-n=* | --program-transform-=* \
  367.   | --program-transform=* | --program-transfor=* \
  368.   | --program-transfo=* | --program-transf=* \
  369.   | --program-trans=* | --program-tran=* \
  370.   | --progr-tra=* | --program-tr=* | --program-t=*)
  371.     program_transform_name="$ac_optarg" ;;
  372.  
  373.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  374.   | -silent | --silent | --silen | --sile | --sil)
  375.     silent=yes ;;
  376.  
  377.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  378.     ac_prev=sbindir ;;
  379.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  380.   | --sbi=* | --sb=*)
  381.     sbindir="$ac_optarg" ;;
  382.  
  383.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  384.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  385.   | --sharedst | --shareds | --shared | --share | --shar \
  386.   | --sha | --sh)
  387.     ac_prev=sharedstatedir ;;
  388.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  389.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  390.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  391.   | --sha=* | --sh=*)
  392.     sharedstatedir="$ac_optarg" ;;
  393.  
  394.   -site | --site | --sit)
  395.     ac_prev=site ;;
  396.   -site=* | --site=* | --sit=*)
  397.     site="$ac_optarg" ;;
  398.  
  399.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  400.     ac_prev=srcdir ;;
  401.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  402.     srcdir="$ac_optarg" ;;
  403.  
  404.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  405.   | --syscon | --sysco | --sysc | --sys | --sy)
  406.     ac_prev=sysconfdir ;;
  407.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  408.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  409.     sysconfdir="$ac_optarg" ;;
  410.  
  411.   -target | --target | --targe | --targ | --tar | --ta | --t)
  412.     ac_prev=target ;;
  413.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  414.     target="$ac_optarg" ;;
  415.  
  416.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  417.     verbose=yes ;;
  418.  
  419.   -version | --version | --versio | --versi | --vers)
  420.     echo "configure generated by autoconf version 2.13"
  421.     exit 0 ;;
  422.  
  423.   -with-* | --with-*)
  424.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  425.     # Reject names that are not valid shell variable names.
  426.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  427.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  428.     fi
  429.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  430.     case "$ac_option" in
  431.       *=*) ;;
  432.       *) ac_optarg=yes ;;
  433.     esac
  434.     eval "with_${ac_package}='$ac_optarg'" ;;
  435.  
  436.   -without-* | --without-*)
  437.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  438.     # Reject names that are not valid shell variable names.
  439.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  440.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  441.     fi
  442.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  443.     eval "with_${ac_package}=no" ;;
  444.  
  445.   --x)
  446.     # Obsolete; use --with-x.
  447.     with_x=yes ;;
  448.  
  449.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  450.   | --x-incl | --x-inc | --x-in | --x-i)
  451.     ac_prev=x_includes ;;
  452.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  453.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  454.     x_includes="$ac_optarg" ;;
  455.  
  456.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  457.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  458.     ac_prev=x_libraries ;;
  459.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  460.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  461.     x_libraries="$ac_optarg" ;;
  462.  
  463.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  464.     ;;
  465.  
  466.   *)
  467.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  468.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  469.     fi
  470.     if test "x$nonopt" != xNONE; then
  471.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  472.     fi
  473.     nonopt="$ac_option"
  474.     ;;
  475.  
  476.   esac
  477. done
  478.  
  479. if test -n "$ac_prev"; then
  480.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  481. fi
  482.  
  483. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  484.  
  485. # File descriptor usage:
  486. # 0 standard input
  487. # 1 file creation
  488. # 2 errors and warnings
  489. # 3 some systems may open it to /dev/tty
  490. # 4 used on the Kubota Titan
  491. # 6 checking for... messages and results
  492. # 5 compiler messages saved in config.log
  493. if test "$silent" = yes; then
  494.   exec 6>/dev/null
  495. else
  496.   exec 6>&1
  497. fi
  498. exec 5>auto/config.log
  499.  
  500. echo "\
  501. This file contains any messages produced by compilers while
  502. running configure, to aid debugging if configure makes a mistake.
  503. " 1>&5
  504.  
  505. # Strip out --no-create and --no-recursion so they do not pile up.
  506. # Also quote any args containing shell metacharacters.
  507. ac_configure_args=
  508. for ac_arg
  509. do
  510.   case "$ac_arg" in
  511.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  512.   | --no-cr | --no-c) ;;
  513.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  514.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  515.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  516.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  517.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  518.   esac
  519. done
  520.  
  521. # NLS nuisances.
  522. # Only set these to C if already set.  These must not be set unconditionally
  523. # because not all systems understand e.g. LANG=C (notably SCO).
  524. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  525. # Non-C LC_CTYPE values break the ctype check.
  526. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  527. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  528. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  529. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  530.  
  531. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  532. rm -rf conftest* confdefs.h
  533. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  534. echo > confdefs.h
  535.  
  536. # A filename unique to this package, relative to the directory that
  537. # configure is in, which we can look for to find out if srcdir is correct.
  538. ac_unique_file=vim.h
  539.  
  540. # Find the source files, if location was not specified.
  541. if test -z "$srcdir"; then
  542.   ac_srcdir_defaulted=yes
  543.   # Try the directory containing this script, then its parent.
  544.   ac_prog=$0
  545.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  546.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  547.   srcdir=$ac_confdir
  548.   if test ! -r $srcdir/$ac_unique_file; then
  549.     srcdir=..
  550.   fi
  551. else
  552.   ac_srcdir_defaulted=no
  553. fi
  554. if test ! -r $srcdir/$ac_unique_file; then
  555.   if test "$ac_srcdir_defaulted" = yes; then
  556.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  557.   else
  558.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  559.   fi
  560. fi
  561. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  562.  
  563. # Prefer explicitly selected file to automatically selected ones.
  564. if test -z "$CONFIG_SITE"; then
  565.   if test "x$prefix" != xNONE; then
  566.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  567.   else
  568.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  569.   fi
  570. fi
  571. for ac_site_file in $CONFIG_SITE; do
  572.   if test -r "$ac_site_file"; then
  573.     echo "loading site script $ac_site_file"
  574.     . "$ac_site_file"
  575.   fi
  576. done
  577.  
  578. if test -r "$cache_file"; then
  579.   echo "loading cache $cache_file"
  580.   . $cache_file
  581. else
  582.   echo "creating cache $cache_file"
  583.   > $cache_file
  584. fi
  585.  
  586. ac_ext=c
  587. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  588. ac_cpp='$CPP $CPPFLAGS'
  589. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  590. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  591. cross_compiling=$ac_cv_prog_cc_cross
  592.  
  593. ac_exeext=
  594. ac_objext=o
  595. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  596.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  597.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  598.     ac_n= ac_c='
  599. ' ac_t='    '
  600.   else
  601.     ac_n=-n ac_c= ac_t=
  602.   fi
  603. else
  604.   ac_n= ac_c='\c' ac_t=
  605. fi
  606.  
  607.  
  608.  
  609.  
  610. cat >> confdefs.h <<\EOF
  611. #define UNIX 1
  612. EOF
  613.  
  614. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  615. echo "configure:616: checking whether ${MAKE-make} sets \${MAKE}" >&5
  616. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  617. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  618.   echo $ac_n "(cached) $ac_c" 1>&6
  619. else
  620.   cat > conftestmake <<\EOF
  621. all:
  622.     @echo 'ac_maketemp="${MAKE}"'
  623. EOF
  624. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  625. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  626. if test -n "$ac_maketemp"; then
  627.   eval ac_cv_prog_make_${ac_make}_set=yes
  628. else
  629.   eval ac_cv_prog_make_${ac_make}_set=no
  630. fi
  631. rm -f conftestmake
  632. fi
  633. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  634.   echo "$ac_t""yes" 1>&6
  635.   SET_MAKE=
  636. else
  637.   echo "$ac_t""no" 1>&6
  638.   SET_MAKE="MAKE=${MAKE-make}"
  639. fi
  640.  
  641.  
  642. # Extract the first word of "gcc", so it can be a program name with args.
  643. set dummy gcc; ac_word=$2
  644. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  645. echo "configure:646: checking for $ac_word" >&5
  646. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  647.   echo $ac_n "(cached) $ac_c" 1>&6
  648. else
  649.   if test -n "$CC"; then
  650.   ac_cv_prog_CC="$CC" # Let the user override the test.
  651. else
  652.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  653.   ac_dummy="$PATH"
  654.   for ac_dir in $ac_dummy; do
  655.     test -z "$ac_dir" && ac_dir=.
  656.     if test -f $ac_dir/$ac_word; then
  657.       ac_cv_prog_CC="gcc"
  658.       break
  659.     fi
  660.   done
  661.   IFS="$ac_save_ifs"
  662. fi
  663. fi
  664. CC="$ac_cv_prog_CC"
  665. if test -n "$CC"; then
  666.   echo "$ac_t""$CC" 1>&6
  667. else
  668.   echo "$ac_t""no" 1>&6
  669. fi
  670.  
  671. if test -z "$CC"; then
  672.   # Extract the first word of "cc", so it can be a program name with args.
  673. set dummy cc; ac_word=$2
  674. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  675. echo "configure:676: checking for $ac_word" >&5
  676. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  677.   echo $ac_n "(cached) $ac_c" 1>&6
  678. else
  679.   if test -n "$CC"; then
  680.   ac_cv_prog_CC="$CC" # Let the user override the test.
  681. else
  682.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  683.   ac_prog_rejected=no
  684.   ac_dummy="$PATH"
  685.   for ac_dir in $ac_dummy; do
  686.     test -z "$ac_dir" && ac_dir=.
  687.     if test -f $ac_dir/$ac_word; then
  688.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  689.         ac_prog_rejected=yes
  690.     continue
  691.       fi
  692.       ac_cv_prog_CC="cc"
  693.       break
  694.     fi
  695.   done
  696.   IFS="$ac_save_ifs"
  697. if test $ac_prog_rejected = yes; then
  698.   # We found a bogon in the path, so make sure we never use it.
  699.   set dummy $ac_cv_prog_CC
  700.   shift
  701.   if test $# -gt 0; then
  702.     # We chose a different compiler from the bogus one.
  703.     # However, it has the same basename, so the bogon will be chosen
  704.     # first if we set CC to just the basename; use the full file name.
  705.     shift
  706.     set dummy "$ac_dir/$ac_word" "$@"
  707.     shift
  708.     ac_cv_prog_CC="$@"
  709.   fi
  710. fi
  711. fi
  712. fi
  713. CC="$ac_cv_prog_CC"
  714. if test -n "$CC"; then
  715.   echo "$ac_t""$CC" 1>&6
  716. else
  717.   echo "$ac_t""no" 1>&6
  718. fi
  719.  
  720.   if test -z "$CC"; then
  721.     case "`uname -s`" in
  722.     *win32* | *WIN32*)
  723.       # Extract the first word of "cl", so it can be a program name with args.
  724. set dummy cl; ac_word=$2
  725. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  726. echo "configure:727: checking for $ac_word" >&5
  727. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  728.   echo $ac_n "(cached) $ac_c" 1>&6
  729. else
  730.   if test -n "$CC"; then
  731.   ac_cv_prog_CC="$CC" # Let the user override the test.
  732. else
  733.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  734.   ac_dummy="$PATH"
  735.   for ac_dir in $ac_dummy; do
  736.     test -z "$ac_dir" && ac_dir=.
  737.     if test -f $ac_dir/$ac_word; then
  738.       ac_cv_prog_CC="cl"
  739.       break
  740.     fi
  741.   done
  742.   IFS="$ac_save_ifs"
  743. fi
  744. fi
  745. CC="$ac_cv_prog_CC"
  746. if test -n "$CC"; then
  747.   echo "$ac_t""$CC" 1>&6
  748. else
  749.   echo "$ac_t""no" 1>&6
  750. fi
  751.  ;;
  752.     esac
  753.   fi
  754.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  755. fi
  756.  
  757. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  758. echo "configure:759: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  759.  
  760. ac_ext=c
  761. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  762. ac_cpp='$CPP $CPPFLAGS'
  763. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  764. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  765. cross_compiling=$ac_cv_prog_cc_cross
  766.  
  767. cat > conftest.$ac_ext << EOF
  768.  
  769. #line 770 "configure"
  770. #include "confdefs.h"
  771.  
  772. main(){return(0);}
  773. EOF
  774. if { (eval echo configure:775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  775.   ac_cv_prog_cc_works=yes
  776.   # If we can't run a trivial program, we are probably using a cross compiler.
  777.   if (./conftest; exit) 2>/dev/null; then
  778.     ac_cv_prog_cc_cross=no
  779.   else
  780.     ac_cv_prog_cc_cross=yes
  781.   fi
  782. else
  783.   echo "configure: failed program was:" >&5
  784.   cat conftest.$ac_ext >&5
  785.   ac_cv_prog_cc_works=no
  786. fi
  787. rm -fr conftest*
  788. ac_ext=c
  789. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  790. ac_cpp='$CPP $CPPFLAGS'
  791. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  792. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  793. cross_compiling=$ac_cv_prog_cc_cross
  794.  
  795. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  796. if test $ac_cv_prog_cc_works = no; then
  797.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  798. fi
  799. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  800. echo "configure:801: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  801. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  802. cross_compiling=$ac_cv_prog_cc_cross
  803.  
  804. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  805. echo "configure:806: checking whether we are using GNU C" >&5
  806. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  807.   echo $ac_n "(cached) $ac_c" 1>&6
  808. else
  809.   cat > conftest.c <<EOF
  810. #ifdef __GNUC__
  811.   yes;
  812. #endif
  813. EOF
  814. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  815.   ac_cv_prog_gcc=yes
  816. else
  817.   ac_cv_prog_gcc=no
  818. fi
  819. fi
  820.  
  821. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  822.  
  823. if test $ac_cv_prog_gcc = yes; then
  824.   GCC=yes
  825. else
  826.   GCC=
  827. fi
  828.  
  829. ac_test_CFLAGS="${CFLAGS+set}"
  830. ac_save_CFLAGS="$CFLAGS"
  831. CFLAGS=
  832. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  833. echo "configure:834: checking whether ${CC-cc} accepts -g" >&5
  834. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  835.   echo $ac_n "(cached) $ac_c" 1>&6
  836. else
  837.   echo 'void f(){}' > conftest.c
  838. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  839.   ac_cv_prog_cc_g=yes
  840. else
  841.   ac_cv_prog_cc_g=no
  842. fi
  843. rm -f conftest*
  844.  
  845. fi
  846.  
  847. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  848. if test "$ac_test_CFLAGS" = set; then
  849.   CFLAGS="$ac_save_CFLAGS"
  850. elif test $ac_cv_prog_cc_g = yes; then
  851.   if test "$GCC" = yes; then
  852.     CFLAGS="-g -O2"
  853.   else
  854.     CFLAGS="-g"
  855.   fi
  856. else
  857.   if test "$GCC" = yes; then
  858.     CFLAGS="-O2"
  859.   else
  860.     CFLAGS=
  861.   fi
  862. fi
  863.     echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  864. echo "configure:865: checking how to run the C preprocessor" >&5
  865. # On Suns, sometimes $CPP names a directory.
  866. if test -n "$CPP" && test -d "$CPP"; then
  867.   CPP=
  868. fi
  869. if test -z "$CPP"; then
  870. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  871.   echo $ac_n "(cached) $ac_c" 1>&6
  872. else
  873.     # This must be in double quotes, not single quotes, because CPP may get
  874.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  875.   CPP="${CC-cc} -E"
  876.   # On the NeXT, cc -E runs the code through the compiler's parser,
  877.   # not just through cpp.
  878.   cat > conftest.$ac_ext <<EOF
  879. #line 880 "configure"
  880. #include "confdefs.h"
  881. #include <assert.h>
  882. Syntax Error
  883. EOF
  884. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  885. { (eval echo configure:886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  886. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  887. if test -z "$ac_err"; then
  888.   :
  889. else
  890.   echo "$ac_err" >&5
  891.   echo "configure: failed program was:" >&5
  892.   cat conftest.$ac_ext >&5
  893.   rm -rf conftest*
  894.   CPP="${CC-cc} -E -traditional-cpp"
  895.   cat > conftest.$ac_ext <<EOF
  896. #line 897 "configure"
  897. #include "confdefs.h"
  898. #include <assert.h>
  899. Syntax Error
  900. EOF
  901. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  902. { (eval echo configure:903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  903. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  904. if test -z "$ac_err"; then
  905.   :
  906. else
  907.   echo "$ac_err" >&5
  908.   echo "configure: failed program was:" >&5
  909.   cat conftest.$ac_ext >&5
  910.   rm -rf conftest*
  911.   CPP="${CC-cc} -nologo -E"
  912.   cat > conftest.$ac_ext <<EOF
  913. #line 914 "configure"
  914. #include "confdefs.h"
  915. #include <assert.h>
  916. Syntax Error
  917. EOF
  918. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  919. { (eval echo configure:920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  920. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  921. if test -z "$ac_err"; then
  922.   :
  923. else
  924.   echo "$ac_err" >&5
  925.   echo "configure: failed program was:" >&5
  926.   cat conftest.$ac_ext >&5
  927.   rm -rf conftest*
  928.   CPP=/lib/cpp
  929. fi
  930. rm -f conftest*
  931. fi
  932. rm -f conftest*
  933. fi
  934. rm -f conftest*
  935.   ac_cv_prog_CPP="$CPP"
  936. fi
  937.   CPP="$ac_cv_prog_CPP"
  938. else
  939.   ac_cv_prog_CPP="$CPP"
  940. fi
  941. echo "$ac_t""$CPP" 1>&6
  942.     echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  943. echo "configure:944: checking for POSIXized ISC" >&5
  944. if test -d /etc/conf/kconfig.d &&
  945.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  946. then
  947.   echo "$ac_t""yes" 1>&6
  948.   ISC=yes # If later tests want to check for ISC.
  949.   cat >> confdefs.h <<\EOF
  950. #define _POSIX_SOURCE 1
  951. EOF
  952.  
  953.   if test "$GCC" = yes; then
  954.     CC="$CC -posix"
  955.   else
  956.     CC="$CC -Xp"
  957.   fi
  958. else
  959.   echo "$ac_t""no" 1>&6
  960.   ISC=
  961. fi
  962.     for ac_prog in mawk gawk nawk awk
  963. do
  964. # Extract the first word of "$ac_prog", so it can be a program name with args.
  965. set dummy $ac_prog; ac_word=$2
  966. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  967. echo "configure:968: checking for $ac_word" >&5
  968. if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
  969.   echo $ac_n "(cached) $ac_c" 1>&6
  970. else
  971.   if test -n "$AWK"; then
  972.   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  973. else
  974.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  975.   ac_dummy="$PATH"
  976.   for ac_dir in $ac_dummy; do
  977.     test -z "$ac_dir" && ac_dir=.
  978.     if test -f $ac_dir/$ac_word; then
  979.       ac_cv_prog_AWK="$ac_prog"
  980.       break
  981.     fi
  982.   done
  983.   IFS="$ac_save_ifs"
  984. fi
  985. fi
  986. AWK="$ac_cv_prog_AWK"
  987. if test -n "$AWK"; then
  988.   echo "$ac_t""$AWK" 1>&6
  989. else
  990.   echo "$ac_t""no" 1>&6
  991. fi
  992.  
  993. test -n "$AWK" && break
  994. done
  995.     
  996. # Extract the first word of "strip", so it can be a program name with args.
  997. set dummy strip; ac_word=$2
  998. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  999. echo "configure:1000: checking for $ac_word" >&5
  1000. if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
  1001.   echo $ac_n "(cached) $ac_c" 1>&6
  1002. else
  1003.   if test -n "$STRIP"; then
  1004.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1005. else
  1006.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1007.   ac_dummy="$PATH"
  1008.   for ac_dir in $ac_dummy; do
  1009.     test -z "$ac_dir" && ac_dir=.
  1010.     if test -f $ac_dir/$ac_word; then
  1011.       ac_cv_prog_STRIP="strip"
  1012.       break
  1013.     fi
  1014.   done
  1015.   IFS="$ac_save_ifs"
  1016.   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
  1017. fi
  1018. fi
  1019. STRIP="$ac_cv_prog_STRIP"
  1020. if test -n "$STRIP"; then
  1021.   echo "$ac_t""$STRIP" 1>&6
  1022. else
  1023.   echo "$ac_t""no" 1>&6
  1024. fi
  1025.  
  1026.  
  1027. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  1028. echo "configure:1029: checking for Cygwin environment" >&5
  1029. if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
  1030.   echo $ac_n "(cached) $ac_c" 1>&6
  1031. else
  1032.   cat > conftest.$ac_ext <<EOF
  1033. #line 1034 "configure"
  1034. #include "confdefs.h"
  1035.  
  1036. int main() {
  1037.  
  1038. #ifndef __CYGWIN__
  1039. #define __CYGWIN__ __CYGWIN32__
  1040. #endif
  1041. return __CYGWIN__;
  1042. ; return 0; }
  1043. EOF
  1044. if { (eval echo configure:1045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1045.   rm -rf conftest*
  1046.   ac_cv_cygwin=yes
  1047. else
  1048.   echo "configure: failed program was:" >&5
  1049.   cat conftest.$ac_ext >&5
  1050.   rm -rf conftest*
  1051.   ac_cv_cygwin=no
  1052. fi
  1053. rm -f conftest*
  1054. rm -f conftest*
  1055. fi
  1056.  
  1057. echo "$ac_t""$ac_cv_cygwin" 1>&6
  1058. CYGWIN=
  1059. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  1060. echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
  1061. echo "configure:1062: checking for mingw32 environment" >&5
  1062. if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
  1063.   echo $ac_n "(cached) $ac_c" 1>&6
  1064. else
  1065.   cat > conftest.$ac_ext <<EOF
  1066. #line 1067 "configure"
  1067. #include "confdefs.h"
  1068.  
  1069. int main() {
  1070. return __MINGW32__;
  1071. ; return 0; }
  1072. EOF
  1073. if { (eval echo configure:1074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1074.   rm -rf conftest*
  1075.   ac_cv_mingw32=yes
  1076. else
  1077.   echo "configure: failed program was:" >&5
  1078.   cat conftest.$ac_ext >&5
  1079.   rm -rf conftest*
  1080.   ac_cv_mingw32=no
  1081. fi
  1082. rm -f conftest*
  1083. rm -f conftest*
  1084. fi
  1085.  
  1086. echo "$ac_t""$ac_cv_mingw32" 1>&6
  1087. MINGW32=
  1088. test "$ac_cv_mingw32" = yes && MINGW32=yes
  1089.  
  1090.  
  1091. echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
  1092. echo "configure:1093: checking for executable suffix" >&5
  1093. if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
  1094.   echo $ac_n "(cached) $ac_c" 1>&6
  1095. else
  1096.   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
  1097.   ac_cv_exeext=.exe
  1098. else
  1099.   rm -f conftest*
  1100.   echo 'int main () { return 0; }' > conftest.$ac_ext
  1101.   ac_cv_exeext=
  1102.   if { (eval echo configure:1103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1103.     for file in conftest.*; do
  1104.       case $file in
  1105.       *.c | *.o | *.obj) ;;
  1106.       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
  1107.       esac
  1108.     done
  1109.   else
  1110.     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
  1111.   fi
  1112.   rm -f conftest*
  1113.   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
  1114. fi
  1115. fi
  1116.  
  1117. EXEEXT=""
  1118. test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
  1119. echo "$ac_t""${ac_cv_exeext}" 1>&6
  1120. ac_exeext=$EXEEXT
  1121.  
  1122.  
  1123. if test -z "$CFLAGS"; then
  1124.   CFLAGS="-O"
  1125.   test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
  1126. fi
  1127. if test "$GCC" = yes; then
  1128.   gccversion=`"$CC" --version | sed -e '2,$d;s/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
  1129.   if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2"; then
  1130.     echo 'GCC 3.0.x has a bug in the optimizer, disabling "-O#"'
  1131.     CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
  1132.   else
  1133.     if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
  1134.       echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
  1135.       CFLAGS="$CFLAGS -fno-strength-reduce"
  1136.     fi
  1137.   fi
  1138. fi
  1139.  
  1140. if test "$cross_compiling" = yes; then
  1141.   { echo "configure: error: cannot compile a simple program, check CC and CFLAGS
  1142.   (cross compiling doesn't work)" 1>&2; exit 1; }
  1143. fi
  1144.  
  1145. test "$GCC" = yes && CPP_MM=M; 
  1146.  
  1147. if test -f ./toolcheck; then
  1148.   echo "checking for buggy tools" 1>&6
  1149. echo "configure:1150: checking for buggy tools" >&5
  1150.   sh ./toolcheck 1>&6
  1151. fi
  1152.  
  1153. OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
  1154.  
  1155. echo $ac_n "checking for BeOS""... $ac_c" 1>&6
  1156. echo "configure:1157: checking for BeOS" >&5
  1157. case `uname` in
  1158.     BeOS)    OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
  1159.         BEOS=yes; echo "$ac_t""yes" 1>&6;;
  1160.     *)        BEOS=no; echo "$ac_t""no" 1>&6;;
  1161. esac
  1162.  
  1163. echo $ac_n "checking for QNX""... $ac_c" 1>&6
  1164. echo "configure:1165: checking for QNX" >&5
  1165. case `uname` in
  1166.     QNX)    OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
  1167.         test -z "$with_x" && with_x=no
  1168.         QNX=yes; echo "$ac_t""yes" 1>&6;;
  1169.     *)        QNX=no; echo "$ac_t""no" 1>&6;;
  1170. esac
  1171.  
  1172.  
  1173.  
  1174.  
  1175. have_local_include=''
  1176. have_local_lib=''
  1177. if test "$GCC" = yes; then
  1178.   echo 'void f(){}' > conftest.c
  1179.     have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep '/usr/local/include'`
  1180.   have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'`
  1181.   rm -f conftest.c conftest.o
  1182. fi
  1183. if test -z "$have_local_lib" -a -d /usr/local/lib; then
  1184.   tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'`
  1185.   if test "$tt" = "$LDFLAGS"; then
  1186.     LDFLAGS="$LDFLAGS -L/usr/local/lib"
  1187.   fi
  1188. fi
  1189. if test -z "$have_local_include" -a -d /usr/local/include; then
  1190.   tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'`
  1191.   if test "$tt" = "$CPPFLAGS"; then
  1192.     CPPFLAGS="$CPPFLAGS -I/usr/local/include"
  1193.   fi
  1194. fi
  1195.  
  1196. echo $ac_n "checking --with-vim-name argument""... $ac_c" 1>&6
  1197. echo "configure:1198: checking --with-vim-name argument" >&5
  1198. # Check whether --with-vim-name or --without-vim-name was given.
  1199. if test "${with_vim_name+set}" = set; then
  1200.   withval="$with_vim_name"
  1201.   VIMNAME="$withval"; echo "$ac_t""$VIMNAME" 1>&6
  1202. else
  1203.   VIMNAME="vim"; echo "$ac_t""Defaulting to vim" 1>&6
  1204. fi
  1205.  
  1206.  
  1207. echo $ac_n "checking --with-ex-name argument""... $ac_c" 1>&6
  1208. echo "configure:1209: checking --with-ex-name argument" >&5
  1209. # Check whether --with-ex-name or --without-ex-name was given.
  1210. if test "${with_ex_name+set}" = set; then
  1211.   withval="$with_ex_name"
  1212.   EXNAME="$withval"; echo "$ac_t""$EXNAME" 1>&6
  1213. else
  1214.   EXNAME="ex"; echo "$ac_t""Defaulting to ex" 1>&6
  1215. fi
  1216.  
  1217.  
  1218. echo $ac_n "checking --with-view-name argument""... $ac_c" 1>&6
  1219. echo "configure:1220: checking --with-view-name argument" >&5
  1220. # Check whether --with-view-name or --without-view-name was given.
  1221. if test "${with_view_name+set}" = set; then
  1222.   withval="$with_view_name"
  1223.   VIEWNAME="$withval"; echo "$ac_t""$VIEWNAME" 1>&6
  1224. else
  1225.   VIEWNAME="view"; echo "$ac_t""Defaulting to view" 1>&6
  1226. fi
  1227.  
  1228.  
  1229.  
  1230. echo $ac_n "checking --with-global-runtime argument""... $ac_c" 1>&6
  1231. echo "configure:1232: checking --with-global-runtime argument" >&5
  1232. # Check whether --with-global-runtime or --without-global-runtime was given.
  1233. if test "${with_global_runtime+set}" = set; then
  1234.   withval="$with_global_runtime"
  1235.   echo "$ac_t""$withval" 1>&6; cat >> confdefs.h <<EOF
  1236. #define RUNTIME_GLOBAL "$withval"
  1237. EOF
  1238.  
  1239. else
  1240.   echo "$ac_t""no" 1>&6
  1241. fi
  1242.  
  1243.  
  1244. echo $ac_n "checking --with-modified-by argument""... $ac_c" 1>&6
  1245. echo "configure:1246: checking --with-modified-by argument" >&5
  1246. # Check whether --with-modified-by or --without-modified-by was given.
  1247. if test "${with_modified_by+set}" = set; then
  1248.   withval="$with_modified_by"
  1249.   echo "$ac_t""$withval" 1>&6; cat >> confdefs.h <<EOF
  1250. #define MODIFIED_BY "$withval"
  1251. EOF
  1252.  
  1253. else
  1254.   echo "$ac_t""no" 1>&6
  1255. fi
  1256.  
  1257.  
  1258. echo $ac_n "checking if character set is EBCDIC""... $ac_c" 1>&6
  1259. echo "configure:1260: checking if character set is EBCDIC" >&5
  1260. cat > conftest.$ac_ext <<EOF
  1261. #line 1262 "configure"
  1262. #include "confdefs.h"
  1263.  
  1264. int main() {
  1265.  /* TryCompile function for CharSet.
  1266.    Treat any failure as ASCII for compatibility with existing art.
  1267.    Use compile-time rather than run-time tests for cross-compiler
  1268.    tolerance.  */
  1269. #if '0'!=240
  1270. make an error "Character set is not EBCDIC"
  1271. #endif 
  1272. ; return 0; }
  1273. EOF
  1274. if { (eval echo configure:1275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1275.   rm -rf conftest*
  1276.    # TryCompile action if true
  1277. cf_cv_ebcdic=yes 
  1278. else
  1279.   echo "configure: failed program was:" >&5
  1280.   cat conftest.$ac_ext >&5
  1281.   rm -rf conftest*
  1282.    # TryCompile action if false
  1283. cf_cv_ebcdic=no
  1284. fi
  1285. rm -f conftest*
  1286. # end of TryCompile ])
  1287. # end of CacheVal CvEbcdic
  1288. echo "$ac_t""$cf_cv_ebcdic" 1>&6
  1289. case "$cf_cv_ebcdic" in  #(vi
  1290.     yes)    cat >> confdefs.h <<\EOF
  1291. #define EBCDIC 1
  1292. EOF
  1293.  
  1294.         line_break='"\\n"'
  1295.         ;;
  1296.     *)        line_break='"\\012"';;
  1297. esac
  1298.  
  1299.  
  1300. if test "$cf_cv_ebcdic" = "yes"; then
  1301. echo $ac_n "checking for OS/390 Unix""... $ac_c" 1>&6
  1302. echo "configure:1303: checking for OS/390 Unix" >&5
  1303. case `uname` in
  1304.     OS/390)    OS390Unix="yes";
  1305.                                         if test "$CC" = "cc"; then
  1306.           ccm="$_CC_CCMODE"
  1307.           ccn="CC"
  1308.         else
  1309.           if test "$CC" = "c89"; then
  1310.             ccm="$_CC_C89MODE"
  1311.             ccn="C89"
  1312.           else
  1313.             ccm=1
  1314.           fi
  1315.         fi
  1316.         if test "$ccm" != "1"; then
  1317.           echo ""
  1318.           echo "------------------------------------------"
  1319.           echo " On OS/390 Unix, the environment variable"
  1320.           echo " __CC_${ccn}MODE must be set to \"1\"!"
  1321.           echo " Do:"
  1322.           echo "    export _CC_${ccn}MODE=1"
  1323.           echo " and then call configure again."
  1324.           echo "------------------------------------------"
  1325.           exit 1
  1326.         fi
  1327.         CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
  1328.         echo "$ac_t""yes" 1>&6
  1329.         ;;
  1330.     *)        OS390Unix="no";
  1331.         echo "$ac_t""no" 1>&6
  1332.         ;;
  1333. esac
  1334. fi
  1335.  
  1336.  
  1337.  
  1338. echo $ac_n "checking --with-features argument""... $ac_c" 1>&6
  1339. echo "configure:1340: checking --with-features argument" >&5
  1340. # Check whether --with-features or --without-features was given.
  1341. if test "${with_features+set}" = set; then
  1342.   withval="$with_features"
  1343.   features="$withval"; echo "$ac_t""$features" 1>&6
  1344. else
  1345.   features="normal"; echo "$ac_t""Defaulting to normal" 1>&6
  1346. fi
  1347.  
  1348.  
  1349. dovimdiff=""
  1350. dogvimdiff=""
  1351. case "$features" in
  1352.   tiny)        cat >> confdefs.h <<\EOF
  1353. #define FEAT_TINY 1
  1354. EOF
  1355.  ;;
  1356.   small)    cat >> confdefs.h <<\EOF
  1357. #define FEAT_SMALL 1
  1358. EOF
  1359.  ;;
  1360.   normal)    cat >> confdefs.h <<\EOF
  1361. #define FEAT_NORMAL 1
  1362. EOF
  1363.  dovimdiff="installvimdiff";
  1364.             dogvimdiff="installgvimdiff" ;;
  1365.   big)        cat >> confdefs.h <<\EOF
  1366. #define FEAT_BIG 1
  1367. EOF
  1368.  dovimdiff="installvimdiff";
  1369.             dogvimdiff="installgvimdiff" ;;
  1370.   huge)        cat >> confdefs.h <<\EOF
  1371. #define FEAT_HUGE 1
  1372. EOF
  1373.  dovimdiff="installvimdiff";
  1374.             dogvimdiff="installgvimdiff" ;;
  1375.   *)        echo "$ac_t""Sorry, $features is not supported" 1>&6 ;;
  1376. esac
  1377.  
  1378.  
  1379.  
  1380.  
  1381. echo $ac_n "checking --with-compiledby argument""... $ac_c" 1>&6
  1382. echo "configure:1383: checking --with-compiledby argument" >&5
  1383. # Check whether --with-compiledby or --without-compiledby was given.
  1384. if test "${with_compiledby+set}" = set; then
  1385.   withval="$with_compiledby"
  1386.   compiledby="$withval"; echo "$ac_t""$withval" 1>&6
  1387. else
  1388.   compiledby=""; echo "$ac_t""no" 1>&6
  1389. fi
  1390.  
  1391.  
  1392.  
  1393. echo $ac_n "checking --disable-xsmp argument""... $ac_c" 1>&6
  1394. echo "configure:1395: checking --disable-xsmp argument" >&5
  1395. # Check whether --enable-xsmp or --disable-xsmp was given.
  1396. if test "${enable_xsmp+set}" = set; then
  1397.   enableval="$enable_xsmp"
  1398.   :
  1399. else
  1400.   enable_xsmp="yes"
  1401. fi
  1402.  
  1403.  
  1404. if test "$enable_xsmp" = "yes"; then
  1405.   echo "$ac_t""no" 1>&6
  1406.   echo $ac_n "checking --disable-xsmp-interact argument""... $ac_c" 1>&6
  1407. echo "configure:1408: checking --disable-xsmp-interact argument" >&5
  1408.   # Check whether --enable-xsmp-interact or --disable-xsmp-interact was given.
  1409. if test "${enable_xsmp_interact+set}" = set; then
  1410.   enableval="$enable_xsmp_interact"
  1411.   :
  1412. else
  1413.   enable_xsmp_interact="yes"
  1414. fi
  1415.  
  1416.   if test "$enable_xsmp_interact" = "yes"; then
  1417.     echo "$ac_t""no" 1>&6
  1418.     cat >> confdefs.h <<\EOF
  1419. #define USE_XSMP_INTERACT 1
  1420. EOF
  1421.  
  1422.   else
  1423.     echo "$ac_t""yes" 1>&6
  1424.   fi
  1425. else
  1426.   echo "$ac_t""yes" 1>&6
  1427. fi
  1428.  
  1429. echo $ac_n "checking --enable-perlinterp argument""... $ac_c" 1>&6
  1430. echo "configure:1431: checking --enable-perlinterp argument" >&5
  1431. # Check whether --enable-perlinterp or --disable-perlinterp was given.
  1432. if test "${enable_perlinterp+set}" = set; then
  1433.   enableval="$enable_perlinterp"
  1434.   :
  1435. else
  1436.   enable_perlinterp="no"
  1437. fi
  1438.  
  1439. echo "$ac_t""$enable_perlinterp" 1>&6
  1440. if test "$enable_perlinterp" = "yes"; then
  1441.   
  1442.   # Extract the first word of "perl", so it can be a program name with args.
  1443. set dummy perl; ac_word=$2
  1444. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1445. echo "configure:1446: checking for $ac_word" >&5
  1446. if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_perl'+set}'`\" = set"; then
  1447.   echo $ac_n "(cached) $ac_c" 1>&6
  1448. else
  1449.   case "$vi_cv_path_perl" in
  1450.   /*)
  1451.   ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
  1452.   ;;
  1453.   ?:/*)             
  1454.   ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a dos path.
  1455.   ;;
  1456.   *)
  1457.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1458.   ac_dummy="$PATH"
  1459.   for ac_dir in $ac_dummy; do 
  1460.     test -z "$ac_dir" && ac_dir=.
  1461.     if test -f $ac_dir/$ac_word; then
  1462.       ac_cv_path_vi_cv_path_perl="$ac_dir/$ac_word"
  1463.       break
  1464.     fi
  1465.   done
  1466.   IFS="$ac_save_ifs"
  1467.   ;;
  1468. esac
  1469. fi
  1470. vi_cv_path_perl="$ac_cv_path_vi_cv_path_perl"
  1471. if test -n "$vi_cv_path_perl"; then
  1472.   echo "$ac_t""$vi_cv_path_perl" 1>&6
  1473. else
  1474.   echo "$ac_t""no" 1>&6
  1475. fi
  1476.  
  1477.   if test "X$vi_cv_path_perl" != "X"; then
  1478.     echo $ac_n "checking Perl version""... $ac_c" 1>&6
  1479. echo "configure:1480: checking Perl version" >&5
  1480.     if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
  1481.      eval `$vi_cv_path_perl -V:usethreads`
  1482.      if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
  1483.       echo "$ac_t""OK" 1>&6
  1484.       eval `$vi_cv_path_perl -V:shrpenv`
  1485.       if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
  1486.     shrpenv=""
  1487.       fi
  1488.       vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
  1489.       
  1490.       perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
  1491.           -e 'ccflags;perl_inc'`
  1492.       if test "X$perlcppflags" != "X"; then
  1493.     PERL_CFLAGS="$perlcppflags"
  1494.       fi
  1495.             perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
  1496.         sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
  1497.             -e 's/-bE:perl.exp//' -e 's/-lc //'`
  1498.       
  1499.                   perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
  1500.         -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
  1501.       if test "X$perlldflags" != "X"; then
  1502.     LDFLAGS="$perlldflags $LDFLAGS"
  1503.       fi
  1504.       PERL_SRC="auto/if_perl.c if_perlsfio.c"
  1505.       PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
  1506.       PERL_PRO="if_perl.pro if_perlsfio.pro"
  1507.       cat >> confdefs.h <<\EOF
  1508. #define FEAT_PERL 1
  1509. EOF
  1510.  
  1511.      else
  1512.       echo "$ac_t"">>> Perl with threads cannot be used <<<" 1>&6
  1513.      fi
  1514.     else
  1515.       echo "$ac_t"">>> too old; need Perl version 5.003_01 or later <<<" 1>&6
  1516.     fi
  1517.   fi
  1518. fi
  1519.  
  1520.  
  1521.  
  1522.  
  1523.  
  1524.  
  1525. echo $ac_n "checking --enable-pythoninterp argument""... $ac_c" 1>&6
  1526. echo "configure:1527: checking --enable-pythoninterp argument" >&5
  1527. # Check whether --enable-pythoninterp or --disable-pythoninterp was given.
  1528. if test "${enable_pythoninterp+set}" = set; then
  1529.   enableval="$enable_pythoninterp"
  1530.   :
  1531. else
  1532.   enable_pythoninterp="no"
  1533. fi
  1534.  
  1535. echo "$ac_t""$enable_pythoninterp" 1>&6
  1536. if test "$enable_pythoninterp" = "yes"; then
  1537.     # Extract the first word of "python", so it can be a program name with args.
  1538. set dummy python; ac_word=$2
  1539. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1540. echo "configure:1541: checking for $ac_word" >&5
  1541. if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_python'+set}'`\" = set"; then
  1542.   echo $ac_n "(cached) $ac_c" 1>&6
  1543. else
  1544.   case "$vi_cv_path_python" in
  1545.   /*)
  1546.   ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
  1547.   ;;
  1548.   ?:/*)             
  1549.   ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a dos path.
  1550.   ;;
  1551.   *)
  1552.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1553.   ac_dummy="$PATH"
  1554.   for ac_dir in $ac_dummy; do 
  1555.     test -z "$ac_dir" && ac_dir=.
  1556.     if test -f $ac_dir/$ac_word; then
  1557.       ac_cv_path_vi_cv_path_python="$ac_dir/$ac_word"
  1558.       break
  1559.     fi
  1560.   done
  1561.   IFS="$ac_save_ifs"
  1562.   ;;
  1563. esac
  1564. fi
  1565. vi_cv_path_python="$ac_cv_path_vi_cv_path_python"
  1566. if test -n "$vi_cv_path_python"; then
  1567.   echo "$ac_t""$vi_cv_path_python" 1>&6
  1568. else
  1569.   echo "$ac_t""no" 1>&6
  1570. fi
  1571.  
  1572.   if test "X$vi_cv_path_python" != "X"; then
  1573.  
  1574.         echo $ac_n "checking Python version""... $ac_c" 1>&6
  1575. echo "configure:1576: checking Python version" >&5
  1576. if eval "test \"`echo '$''{'vi_cv_var_python_version'+set}'`\" = set"; then
  1577.   echo $ac_n "(cached) $ac_c" 1>&6
  1578. else
  1579.   vi_cv_var_python_version=`
  1580.         ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
  1581.     
  1582. fi
  1583.  
  1584. echo "$ac_t""$vi_cv_var_python_version" 1>&6
  1585.  
  1586.         echo $ac_n "checking Python is 1.4 or better""... $ac_c" 1>&6
  1587. echo "configure:1588: checking Python is 1.4 or better" >&5
  1588.     if ${vi_cv_path_python} -c \
  1589.     "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
  1590.     then
  1591.       echo "$ac_t""yep" 1>&6
  1592.  
  1593.             echo $ac_n "checking Python's install prefix""... $ac_c" 1>&6
  1594. echo "configure:1595: checking Python's install prefix" >&5
  1595. if eval "test \"`echo '$''{'vi_cv_path_python_pfx'+set}'`\" = set"; then
  1596.   echo $ac_n "(cached) $ac_c" 1>&6
  1597. else
  1598.    vi_cv_path_python_pfx=`
  1599.         ${vi_cv_path_python} -c \
  1600.         "import sys; print sys.prefix"` 
  1601. fi
  1602.  
  1603. echo "$ac_t""$vi_cv_path_python_pfx" 1>&6
  1604.  
  1605.             echo $ac_n "checking Python's execution prefix""... $ac_c" 1>&6
  1606. echo "configure:1607: checking Python's execution prefix" >&5
  1607. if eval "test \"`echo '$''{'vi_cv_path_python_epfx'+set}'`\" = set"; then
  1608.   echo $ac_n "(cached) $ac_c" 1>&6
  1609. else
  1610.    vi_cv_path_python_epfx=`
  1611.         ${vi_cv_path_python} -c \
  1612.         "import sys; print sys.exec_prefix"` 
  1613. fi
  1614.  
  1615. echo "$ac_t""$vi_cv_path_python_epfx" 1>&6
  1616.  
  1617.       
  1618.       if eval "test \"`echo '$''{'vi_cv_path_pythonpath'+set}'`\" = set"; then
  1619.   echo $ac_n "(cached) $ac_c" 1>&6
  1620. else
  1621.    vi_cv_path_pythonpath=`
  1622.         unset PYTHONPATH;
  1623.         ${vi_cv_path_python} -c \
  1624.         "import sys, string; print string.join(sys.path,':')"` 
  1625. fi
  1626.  
  1627.  
  1628.       
  1629.       # Check whether --with-python-config-dir or --without-python-config-dir was given.
  1630. if test "${with_python_config_dir+set}" = set; then
  1631.   withval="$with_python_config_dir"
  1632.    vi_cv_path_python_conf="${withval}"  
  1633. fi
  1634.  
  1635.  
  1636.       echo $ac_n "checking Python's configuration directory""... $ac_c" 1>&6
  1637. echo "configure:1638: checking Python's configuration directory" >&5
  1638. if eval "test \"`echo '$''{'vi_cv_path_python_conf'+set}'`\" = set"; then
  1639.   echo $ac_n "(cached) $ac_c" 1>&6
  1640. else
  1641.   
  1642.     vi_cv_path_python_conf=
  1643.     for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
  1644.       for subdir in lib share; do
  1645.         d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
  1646.         if test -d "$d" && test -f "$d/config.c"; then
  1647.           vi_cv_path_python_conf="$d"
  1648.         fi
  1649.       done
  1650.     done
  1651.       
  1652. fi
  1653.  
  1654. echo "$ac_t""$vi_cv_path_python_conf" 1>&6
  1655.  
  1656.       PYTHON_CONFDIR="${vi_cv_path_python_conf}"
  1657.  
  1658.       if test "X$PYTHON_CONFDIR" = "X"; then
  1659.     echo "$ac_t""can't find it!" 1>&6
  1660.       else
  1661.  
  1662.             if eval "test \"`echo '$''{'vi_cv_path_python_plibs'+set}'`\" = set"; then
  1663.   echo $ac_n "(cached) $ac_c" 1>&6
  1664. else
  1665.   
  1666.         tmp_mkf="/tmp/Makefile-conf$$"
  1667.         cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf}
  1668. __:
  1669.     @echo "python_MODLIBS='$(MODLIBS)'"
  1670.     @echo "python_LIBS='$(LIBS)'"
  1671.     @echo "python_SYSLIBS='$(SYSLIBS)'"
  1672.     @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
  1673. eof
  1674.                 eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`"
  1675.         rm -f ${tmp_mkf}
  1676.         if test "${vi_cv_var_python_version}" = "1.4"; then
  1677.         vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
  1678.         else
  1679.         vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
  1680.         fi
  1681.         vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
  1682.                 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
  1683.     
  1684. fi
  1685.  
  1686.  
  1687.     PYTHON_LIBS="${vi_cv_path_python_plibs}"
  1688.     if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
  1689.       PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
  1690.     else
  1691.       PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -I${vi_cv_path_python_epfx}/include/python${vi_cv_var_python_version}"
  1692.     fi
  1693.     PYTHON_SRC="if_python.c"
  1694.     PYTHON_OBJ="objects/if_python.o objects/py_config.o"
  1695.     if test "${vi_cv_var_python_version}" = "1.4"; then
  1696.        PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
  1697.     fi
  1698.     PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
  1699.  
  1700.                             echo $ac_n "checking if -pthread should be used""... $ac_c" 1>&6
  1701. echo "configure:1702: checking if -pthread should be used" >&5
  1702.     threadsafe_flag=
  1703.     thread_lib=
  1704.     test "$GCC" = yes && threadsafe_flag="-pthread"
  1705.     if test "`(uname) 2>/dev/null`" = FreeBSD; then
  1706.       threadsafe_flag="-D_THREAD_SAFE"
  1707.       thread_lib="-pthread"
  1708.     fi
  1709.     if test -n "$threadsafe_flag"; then
  1710.       cflags_save=$CFLAGS
  1711.       libs_save=$LIBS
  1712.       CFLAGS="$CFLAGS $threadsafe_flag"
  1713.       LIBS="$LIBS $thread_lib"
  1714.       cat > conftest.$ac_ext <<EOF
  1715. #line 1716 "configure"
  1716. #include "confdefs.h"
  1717.  
  1718. int main() {
  1719.  
  1720. ; return 0; }
  1721. EOF
  1722. if { (eval echo configure:1723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1723.   rm -rf conftest*
  1724.   echo "$ac_t""yes" 1>&6; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
  1725. else
  1726.   echo "configure: failed program was:" >&5
  1727.   cat conftest.$ac_ext >&5
  1728.   rm -rf conftest*
  1729.   echo "$ac_t""no" 1>&6; LIBS=$libs_save
  1730.          
  1731. fi
  1732. rm -f conftest*
  1733.       CFLAGS=$cflags_save
  1734.     else
  1735.       echo "$ac_t""no" 1>&6
  1736.     fi
  1737.  
  1738.     cat >> confdefs.h <<\EOF
  1739. #define FEAT_PYTHON 1
  1740. EOF
  1741.  
  1742.  
  1743.       fi
  1744.     else
  1745.       echo "$ac_t""too old" 1>&6
  1746.     fi
  1747.   fi
  1748. fi
  1749.  
  1750.  
  1751.  
  1752.  
  1753.  
  1754.  
  1755.  
  1756. echo $ac_n "checking --enable-tclinterp argument""... $ac_c" 1>&6
  1757. echo "configure:1758: checking --enable-tclinterp argument" >&5
  1758. # Check whether --enable-tclinterp or --disable-tclinterp was given.
  1759. if test "${enable_tclinterp+set}" = set; then
  1760.   enableval="$enable_tclinterp"
  1761.   :
  1762. else
  1763.   enable_tclinterp="no"
  1764. fi
  1765.  
  1766. echo "$ac_t""$enable_tclinterp" 1>&6
  1767.  
  1768. if test "$enable_tclinterp" = "yes"; then
  1769.  
  1770.     echo $ac_n "checking --with-tclsh argument""... $ac_c" 1>&6
  1771. echo "configure:1772: checking --with-tclsh argument" >&5
  1772.   # Check whether --with-tclsh or --without-tclsh was given.
  1773. if test "${with_tclsh+set}" = set; then
  1774.   withval="$with_tclsh"
  1775.   tclsh_name="$withval"; echo "$ac_t""$tclsh_name" 1>&6
  1776. else
  1777.   tclsh_name="tclsh8.0"; echo "$ac_t""no" 1>&6
  1778. fi
  1779.  
  1780.   # Extract the first word of "$tclsh_name", so it can be a program name with args.
  1781. set dummy $tclsh_name; ac_word=$2
  1782. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1783. echo "configure:1784: checking for $ac_word" >&5
  1784. if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_tcl'+set}'`\" = set"; then
  1785.   echo $ac_n "(cached) $ac_c" 1>&6
  1786. else
  1787.   case "$vi_cv_path_tcl" in
  1788.   /*)
  1789.   ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
  1790.   ;;
  1791.   ?:/*)             
  1792.   ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a dos path.
  1793.   ;;
  1794.   *)
  1795.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1796.   ac_dummy="$PATH"
  1797.   for ac_dir in $ac_dummy; do 
  1798.     test -z "$ac_dir" && ac_dir=.
  1799.     if test -f $ac_dir/$ac_word; then
  1800.       ac_cv_path_vi_cv_path_tcl="$ac_dir/$ac_word"
  1801.       break
  1802.     fi
  1803.   done
  1804.   IFS="$ac_save_ifs"
  1805.   ;;
  1806. esac
  1807. fi
  1808. vi_cv_path_tcl="$ac_cv_path_vi_cv_path_tcl"
  1809. if test -n "$vi_cv_path_tcl"; then
  1810.   echo "$ac_t""$vi_cv_path_tcl" 1>&6
  1811. else
  1812.   echo "$ac_t""no" 1>&6
  1813. fi
  1814.  
  1815.   
  1816.  
  1817.     if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.0"; then
  1818.     tclsh_name="tclsh8.2"
  1819.     # Extract the first word of "$tclsh_name", so it can be a program name with args.
  1820. set dummy $tclsh_name; ac_word=$2
  1821. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1822. echo "configure:1823: checking for $ac_word" >&5
  1823. if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_tcl'+set}'`\" = set"; then
  1824.   echo $ac_n "(cached) $ac_c" 1>&6
  1825. else
  1826.   case "$vi_cv_path_tcl" in
  1827.   /*)
  1828.   ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
  1829.   ;;
  1830.   ?:/*)             
  1831.   ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a dos path.
  1832.   ;;
  1833.   *)
  1834.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1835.   ac_dummy="$PATH"
  1836.   for ac_dir in $ac_dummy; do 
  1837.     test -z "$ac_dir" && ac_dir=.
  1838.     if test -f $ac_dir/$ac_word; then
  1839.       ac_cv_path_vi_cv_path_tcl="$ac_dir/$ac_word"
  1840.       break
  1841.     fi
  1842.   done
  1843.   IFS="$ac_save_ifs"
  1844.   ;;
  1845. esac
  1846. fi
  1847. vi_cv_path_tcl="$ac_cv_path_vi_cv_path_tcl"
  1848. if test -n "$vi_cv_path_tcl"; then
  1849.   echo "$ac_t""$vi_cv_path_tcl" 1>&6
  1850. else
  1851.   echo "$ac_t""no" 1>&6
  1852. fi
  1853.  
  1854.   fi
  1855.     if test "X$vi_cv_path_tcl" = "X"; then
  1856.     tclsh_name="tclsh"
  1857.     # Extract the first word of "$tclsh_name", so it can be a program name with args.
  1858. set dummy $tclsh_name; ac_word=$2
  1859. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1860. echo "configure:1861: checking for $ac_word" >&5
  1861. if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_tcl'+set}'`\" = set"; then
  1862.   echo $ac_n "(cached) $ac_c" 1>&6
  1863. else
  1864.   case "$vi_cv_path_tcl" in
  1865.   /*)
  1866.   ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
  1867.   ;;
  1868.   ?:/*)             
  1869.   ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a dos path.
  1870.   ;;
  1871.   *)
  1872.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1873.   ac_dummy="$PATH"
  1874.   for ac_dir in $ac_dummy; do 
  1875.     test -z "$ac_dir" && ac_dir=.
  1876.     if test -f $ac_dir/$ac_word; then
  1877.       ac_cv_path_vi_cv_path_tcl="$ac_dir/$ac_word"
  1878.       break
  1879.     fi
  1880.   done
  1881.   IFS="$ac_save_ifs"
  1882.   ;;
  1883. esac
  1884. fi
  1885. vi_cv_path_tcl="$ac_cv_path_vi_cv_path_tcl"
  1886. if test -n "$vi_cv_path_tcl"; then
  1887.   echo "$ac_t""$vi_cv_path_tcl" 1>&6
  1888. else
  1889.   echo "$ac_t""no" 1>&6
  1890. fi
  1891.  
  1892.   fi
  1893.   if test "X$vi_cv_path_tcl" != "X"; then
  1894.     echo $ac_n "checking Tcl version""... $ac_c" 1>&6
  1895. echo "configure:1896: checking Tcl version" >&5
  1896.     if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
  1897.       tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
  1898.       echo "$ac_t""$tclver - OK" 1>&6;
  1899.       tclloc=`echo 'set l [info library];set i [string last lib $l];incr i -2;puts [string range $l 0 $i]' | $vi_cv_path_tcl -`
  1900.  
  1901.       echo $ac_n "checking for location of Tcl include""... $ac_c" 1>&6
  1902. echo "configure:1903: checking for location of Tcl include" >&5
  1903.       tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include"
  1904.       for try in $tclinc; do
  1905.     if test -f "$try/tcl.h"; then
  1906.       echo "$ac_t""$try/tcl.h" 1>&6
  1907.       TCL_INC=$try
  1908.       break
  1909.     fi
  1910.       done
  1911.       if test -z "$TCL_INC"; then
  1912.     echo "$ac_t""<not found>" 1>&6
  1913.     SKIP_TCL=YES
  1914.       fi
  1915.       if test -z "$SKIP_TCL"; then
  1916.     echo $ac_n "checking for location of tclConfig.sh script""... $ac_c" 1>&6
  1917. echo "configure:1918: checking for location of tclConfig.sh script" >&5
  1918.     tclcnf=`echo $tclinc | sed s/include/lib/g`
  1919.     for try in $tclcnf; do
  1920.       if test -f $try/tclConfig.sh; then
  1921.         echo "$ac_t""$try/tclConfig.sh" 1>&6
  1922.         . $try/tclConfig.sh
  1923.                 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
  1924.         break
  1925.       fi
  1926.     done
  1927.     if test -z "$TCL_LIBS"; then
  1928.       echo "$ac_t""<not found>" 1>&6
  1929.       echo $ac_n "checking for Tcl library by myself""... $ac_c" 1>&6
  1930. echo "configure:1931: checking for Tcl library by myself" >&5
  1931.       tcllib=`echo $tclinc | sed s/include/lib/g`
  1932.       for ext in .so .a ; do
  1933.         for ver in "" $tclver ; do
  1934.           for try in $tcllib ; do
  1935.         trylib=tcl$ver$ext
  1936.         if test -f $try/lib$trylib ; then
  1937.           echo "$ac_t""$try/lib$trylib" 1>&6
  1938.           TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
  1939.           if test "`(uname) 2>/dev/null`" = SunOS &&
  1940.                      uname -r | grep '^5' >/dev/null; then
  1941.             TCL_LIBS="$TCL_LIBS -R $try"
  1942.           fi
  1943.           break 3
  1944.         fi
  1945.           done
  1946.         done
  1947.       done
  1948.       if test -z "$TCL_LIBS"; then
  1949.         echo "$ac_t""<not found>" 1>&6
  1950.         SKIP_TCL=YES
  1951.       fi
  1952.     fi
  1953.     if test -z "$SKIP_TCL"; then
  1954.       cat >> confdefs.h <<\EOF
  1955. #define FEAT_TCL 1
  1956. EOF
  1957.  
  1958.       TCL_SRC=if_tcl.c
  1959.       TCL_OBJ=objects/if_tcl.o
  1960.       TCL_PRO=if_tcl.pro
  1961.       TCL_CFLAGS="-I$TCL_INC"
  1962.     fi
  1963.       fi
  1964.     else
  1965.       echo "$ac_t""too old; need Tcl version 8.0 or later" 1>&6
  1966.     fi
  1967.   fi
  1968. fi
  1969.  
  1970.  
  1971.  
  1972.  
  1973.  
  1974.  
  1975. echo $ac_n "checking --enable-rubyinterp argument""... $ac_c" 1>&6
  1976. echo "configure:1977: checking --enable-rubyinterp argument" >&5
  1977. # Check whether --enable-rubyinterp or --disable-rubyinterp was given.
  1978. if test "${enable_rubyinterp+set}" = set; then
  1979.   enableval="$enable_rubyinterp"
  1980.   :
  1981. else
  1982.   enable_rubyinterp="no"
  1983. fi
  1984.  
  1985. echo "$ac_t""$enable_rubyinterp" 1>&6
  1986. if test "$enable_rubyinterp" = "yes"; then
  1987.   
  1988.   # Extract the first word of "ruby", so it can be a program name with args.
  1989. set dummy ruby; ac_word=$2
  1990. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1991. echo "configure:1992: checking for $ac_word" >&5
  1992. if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_ruby'+set}'`\" = set"; then
  1993.   echo $ac_n "(cached) $ac_c" 1>&6
  1994. else
  1995.   case "$vi_cv_path_ruby" in
  1996.   /*)
  1997.   ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
  1998.   ;;
  1999.   ?:/*)             
  2000.   ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a dos path.
  2001.   ;;
  2002.   *)
  2003.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  2004.   ac_dummy="$PATH"
  2005.   for ac_dir in $ac_dummy; do 
  2006.     test -z "$ac_dir" && ac_dir=.
  2007.     if test -f $ac_dir/$ac_word; then
  2008.       ac_cv_path_vi_cv_path_ruby="$ac_dir/$ac_word"
  2009.       break
  2010.     fi
  2011.   done
  2012.   IFS="$ac_save_ifs"
  2013.   ;;
  2014. esac
  2015. fi
  2016. vi_cv_path_ruby="$ac_cv_path_vi_cv_path_ruby"
  2017. if test -n "$vi_cv_path_ruby"; then
  2018.   echo "$ac_t""$vi_cv_path_ruby" 1>&6
  2019. else
  2020.   echo "$ac_t""no" 1>&6
  2021. fi
  2022.  
  2023.   if test "X$vi_cv_path_ruby" != "X"; then
  2024.     echo $ac_n "checking Ruby version""... $ac_c" 1>&6
  2025. echo "configure:2026: checking Ruby version" >&5
  2026.     if $vi_cv_path_ruby -e 'VERSION >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
  2027.       echo "$ac_t""OK" 1>&6
  2028.       rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir'`
  2029.       RUBY_CFLAGS="-I$rubyhdrdir"
  2030.       rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
  2031.       if test "X$rubylibs" != "X"; then
  2032.     RUBY_LIBS="$rubylibs"
  2033.       fi
  2034.       librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
  2035.       if test -f "$rubyhdrdir/$librubyarg"; then
  2036.     librubyarg="$rubyhdrdir/$librubyarg"
  2037.       else
  2038.     librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
  2039.       fi
  2040.  
  2041.       if test "X$librubyarg" != "X"; then
  2042.     RUBY_LIBS="$librubyarg $RUBY_LIBS"
  2043.       fi
  2044.       rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
  2045.       if test "X$rubyldflags" != "X"; then
  2046.     LDFLAGS="$rubyldflags $LDFLAGS"
  2047.       fi
  2048.       RUBY_SRC="if_ruby.c"
  2049.       RUBY_OBJ="objects/if_ruby.o"
  2050.       RUBY_PRO="if_ruby.pro"
  2051.       cat >> confdefs.h <<\EOF
  2052. #define FEAT_RUBY 1
  2053. EOF
  2054.  
  2055.     else
  2056.       echo "$ac_t""too old; need Ruby version 1.6.0 or later" 1>&6
  2057.     fi
  2058.   fi
  2059. fi
  2060.  
  2061.  
  2062.  
  2063.  
  2064.  
  2065.  
  2066. echo $ac_n "checking --enable-cscope argument""... $ac_c" 1>&6
  2067. echo "configure:2068: checking --enable-cscope argument" >&5
  2068. # Check whether --enable-cscope or --disable-cscope was given.
  2069. if test "${enable_cscope+set}" = set; then
  2070.   enableval="$enable_cscope"
  2071.   :
  2072. else
  2073.   enable_cscope="no"
  2074. fi
  2075.  
  2076. echo "$ac_t""$enable_cscope" 1>&6
  2077. if test "$enable_cscope" = "yes"; then
  2078.   cat >> confdefs.h <<\EOF
  2079. #define FEAT_CSCOPE 1
  2080. EOF
  2081.  
  2082. fi
  2083.  
  2084. echo $ac_n "checking --enable-workshop argument""... $ac_c" 1>&6
  2085. echo "configure:2086: checking --enable-workshop argument" >&5
  2086. # Check whether --enable-workshop or --disable-workshop was given.
  2087. if test "${enable_workshop+set}" = set; then
  2088.   enableval="$enable_workshop"
  2089.   :
  2090. else
  2091.   enable_workshop="no"
  2092. fi
  2093.  
  2094. echo "$ac_t""$enable_workshop" 1>&6
  2095. if test "$enable_workshop" = "yes"; then
  2096.   cat >> confdefs.h <<\EOF
  2097. #define FEAT_SUN_WORKSHOP 1
  2098. EOF
  2099.  
  2100.   WORKSHOP_SRC="workshop.c integration.c"
  2101.   
  2102.   WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
  2103.   
  2104.   if test "${enable_gui-xxx}" = xxx; then
  2105.     enable_gui=motif
  2106.   fi
  2107. fi
  2108.  
  2109. echo $ac_n "checking --disable-netbeans argument""... $ac_c" 1>&6
  2110. echo "configure:2111: checking --disable-netbeans argument" >&5
  2111. # Check whether --enable-netbeans or --disable-netbeans was given.
  2112. if test "${enable_netbeans+set}" = set; then
  2113.   enableval="$enable_netbeans"
  2114.   :
  2115. else
  2116.   enable_netbeans="yes"
  2117. fi
  2118.  
  2119. if test "$enable_netbeans" = "yes"; then
  2120.   echo "$ac_t""no" 1>&6
  2121.     echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
  2122. echo "configure:2123: checking for socket in -lsocket" >&5
  2123. ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
  2124. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2125.   echo $ac_n "(cached) $ac_c" 1>&6
  2126. else
  2127.   ac_save_LIBS="$LIBS"
  2128. LIBS="-lsocket  $LIBS"
  2129. cat > conftest.$ac_ext <<EOF
  2130. #line 2131 "configure"
  2131. #include "confdefs.h"
  2132. /* Override any gcc2 internal prototype to avoid an error.  */
  2133. /* We use char because int might match the return type of a gcc2
  2134.     builtin and then its argument prototype would still apply.  */
  2135. char socket();
  2136.  
  2137. int main() {
  2138. socket()
  2139. ; return 0; }
  2140. EOF
  2141. if { (eval echo configure:2142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2142.   rm -rf conftest*
  2143.   eval "ac_cv_lib_$ac_lib_var=yes"
  2144. else
  2145.   echo "configure: failed program was:" >&5
  2146.   cat conftest.$ac_ext >&5
  2147.   rm -rf conftest*
  2148.   eval "ac_cv_lib_$ac_lib_var=no"
  2149. fi
  2150. rm -f conftest*
  2151. LIBS="$ac_save_LIBS"
  2152.  
  2153. fi
  2154. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2155.   echo "$ac_t""yes" 1>&6
  2156.     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  2157.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  2158.   cat >> confdefs.h <<EOF
  2159. #define $ac_tr_lib 1
  2160. EOF
  2161.  
  2162.   LIBS="-lsocket $LIBS"
  2163.  
  2164. else
  2165.   echo "$ac_t""no" 1>&6
  2166. fi
  2167.  
  2168.   echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  2169. echo "configure:2170: checking for gethostbyname in -lnsl" >&5
  2170. ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  2171. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2172.   echo $ac_n "(cached) $ac_c" 1>&6
  2173. else
  2174.   ac_save_LIBS="$LIBS"
  2175. LIBS="-lnsl  $LIBS"
  2176. cat > conftest.$ac_ext <<EOF
  2177. #line 2178 "configure"
  2178. #include "confdefs.h"
  2179. /* Override any gcc2 internal prototype to avoid an error.  */
  2180. /* We use char because int might match the return type of a gcc2
  2181.     builtin and then its argument prototype would still apply.  */
  2182. char gethostbyname();
  2183.  
  2184. int main() {
  2185. gethostbyname()
  2186. ; return 0; }
  2187. EOF
  2188. if { (eval echo configure:2189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2189.   rm -rf conftest*
  2190.   eval "ac_cv_lib_$ac_lib_var=yes"
  2191. else
  2192.   echo "configure: failed program was:" >&5
  2193.   cat conftest.$ac_ext >&5
  2194.   rm -rf conftest*
  2195.   eval "ac_cv_lib_$ac_lib_var=no"
  2196. fi
  2197. rm -f conftest*
  2198. LIBS="$ac_save_LIBS"
  2199.  
  2200. fi
  2201. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2202.   echo "$ac_t""yes" 1>&6
  2203.     ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  2204.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  2205.   cat >> confdefs.h <<EOF
  2206. #define $ac_tr_lib 1
  2207. EOF
  2208.  
  2209.   LIBS="-lnsl $LIBS"
  2210.  
  2211. else
  2212.   echo "$ac_t""no" 1>&6
  2213. fi
  2214.  
  2215.   echo $ac_n "checking whether compiling netbeans integration is possible""... $ac_c" 1>&6
  2216. echo "configure:2217: checking whether compiling netbeans integration is possible" >&5
  2217.   cat > conftest.$ac_ext <<EOF
  2218. #line 2219 "configure"
  2219. #include "confdefs.h"
  2220.  
  2221. #include <stdio.h>
  2222. #include <stdlib.h>
  2223. #include <stdarg.h>
  2224. #include <fcntl.h>
  2225. #include <netdb.h>
  2226. #include <netinet/in.h>
  2227. #include <errno.h>
  2228. #include <sys/types.h>
  2229. #include <sys/socket.h>
  2230.     /* Check bitfields */
  2231.     struct nbbuf {
  2232.     unsigned int  initDone:1;
  2233.     ushort signmaplen;
  2234.     };
  2235.         
  2236. int main() {
  2237.  
  2238.         /* Check creating a socket. */
  2239.         struct sockaddr_in server;
  2240.         (void)socket(AF_INET, SOCK_STREAM, 0);
  2241.         (void)htons(100);
  2242.         (void)gethostbyname("microsoft.com");
  2243.         if (errno == ECONNREFUSED)
  2244.           (void)connect(1, (struct sockaddr *)&server, sizeof(server));
  2245.         
  2246. ; return 0; }
  2247. EOF
  2248. if { (eval echo configure:2249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2249.   rm -rf conftest*
  2250.   echo "$ac_t""yes" 1>&6
  2251. else
  2252.   echo "configure: failed program was:" >&5
  2253.   cat conftest.$ac_ext >&5
  2254.   rm -rf conftest*
  2255.   echo "$ac_t""no" 1>&6; enable_netbeans="no"
  2256. fi
  2257. rm -f conftest*
  2258. else
  2259.   echo "$ac_t""yes" 1>&6
  2260. fi
  2261. if test "$enable_netbeans" = "yes"; then
  2262.   cat >> confdefs.h <<\EOF
  2263. #define FEAT_NETBEANS_INTG 1
  2264. EOF
  2265.  
  2266.   NETBEANS_SRC="netbeans.c"
  2267.   
  2268.   NETBEANS_OBJ="objects/netbeans.o"
  2269.   
  2270. fi
  2271.  
  2272. echo $ac_n "checking --enable-sniff argument""... $ac_c" 1>&6
  2273. echo "configure:2274: checking --enable-sniff argument" >&5
  2274. # Check whether --enable-sniff or --disable-sniff was given.
  2275. if test "${enable_sniff+set}" = set; then
  2276.   enableval="$enable_sniff"
  2277.   :
  2278. else
  2279.   enable_sniff="no"
  2280. fi
  2281.  
  2282. echo "$ac_t""$enable_sniff" 1>&6
  2283. if test "$enable_sniff" = "yes"; then
  2284.   cat >> confdefs.h <<\EOF
  2285. #define FEAT_SNIFF 1
  2286. EOF
  2287.  
  2288.   SNIFF_SRC="if_sniff.c"
  2289.   
  2290.   SNIFF_OBJ="objects/if_sniff.o"
  2291.   
  2292. fi
  2293.  
  2294. echo $ac_n "checking --enable-multibyte argument""... $ac_c" 1>&6
  2295. echo "configure:2296: checking --enable-multibyte argument" >&5
  2296. # Check whether --enable-multibyte or --disable-multibyte was given.
  2297. if test "${enable_multibyte+set}" = set; then
  2298.   enableval="$enable_multibyte"
  2299.   :
  2300. else
  2301.   enable_multibyte="no"
  2302. fi
  2303.  
  2304. echo "$ac_t""$enable_multibyte" 1>&6
  2305. if test "$enable_multibyte" = "yes"; then
  2306.   cat >> confdefs.h <<\EOF
  2307. #define FEAT_MBYTE 1
  2308. EOF
  2309.  
  2310. fi
  2311.  
  2312. echo $ac_n "checking --enable-hangulinput argument""... $ac_c" 1>&6
  2313. echo "configure:2314: checking --enable-hangulinput argument" >&5
  2314. # Check whether --enable-hangulinput or --disable-hangulinput was given.
  2315. if test "${enable_hangulinput+set}" = set; then
  2316.   enableval="$enable_hangulinput"
  2317.   :
  2318. else
  2319.   enable_hangulinput="no"
  2320. fi
  2321.  
  2322. echo "$ac_t""$enable_hangulinput" 1>&6
  2323.  
  2324. echo $ac_n "checking --enable-xim argument""... $ac_c" 1>&6
  2325. echo "configure:2326: checking --enable-xim argument" >&5
  2326. # Check whether --enable-xim or --disable-xim was given.
  2327. if test "${enable_xim+set}" = set; then
  2328.   enableval="$enable_xim"
  2329.   echo "$ac_t""$enable_xim" 1>&6
  2330. else
  2331.   enable_xim="auto"; echo "$ac_t""defaulting to auto" 1>&6
  2332. fi
  2333.  
  2334.  
  2335. echo $ac_n "checking --enable-fontset argument""... $ac_c" 1>&6
  2336. echo "configure:2337: checking --enable-fontset argument" >&5
  2337. # Check whether --enable-fontset or --disable-fontset was given.
  2338. if test "${enable_fontset+set}" = set; then
  2339.   enableval="$enable_fontset"
  2340.   :
  2341. else
  2342.   enable_fontset="no"
  2343. fi
  2344.  
  2345. echo "$ac_t""$enable_fontset" 1>&6
  2346.  
  2347. test -z "$with_x" && with_x=yes
  2348. test "${enable_gui-yes}" != no -a "x$QNX" != "xyes" && with_x=yes
  2349. if test "$with_x" = no; then
  2350.   echo "$ac_t""defaulting to: don't HAVE_X11" 1>&6
  2351. else
  2352.   
  2353.   # Extract the first word of "xmkmf", so it can be a program name with args.
  2354. set dummy xmkmf; ac_word=$2
  2355. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2356. echo "configure:2357: checking for $ac_word" >&5
  2357. if eval "test \"`echo '$''{'ac_cv_path_xmkmfpath'+set}'`\" = set"; then
  2358.   echo $ac_n "(cached) $ac_c" 1>&6
  2359. else
  2360.   case "$xmkmfpath" in
  2361.   /*)
  2362.   ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
  2363.   ;;
  2364.   ?:/*)             
  2365.   ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a dos path.
  2366.   ;;
  2367.   *)
  2368.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  2369.   ac_dummy="$PATH"
  2370.   for ac_dir in $ac_dummy; do 
  2371.     test -z "$ac_dir" && ac_dir=.
  2372.     if test -f $ac_dir/$ac_word; then
  2373.       ac_cv_path_xmkmfpath="$ac_dir/$ac_word"
  2374.       break
  2375.     fi
  2376.   done
  2377.   IFS="$ac_save_ifs"
  2378.   ;;
  2379. esac
  2380. fi
  2381. xmkmfpath="$ac_cv_path_xmkmfpath"
  2382. if test -n "$xmkmfpath"; then
  2383.   echo "$ac_t""$xmkmfpath" 1>&6
  2384. else
  2385.   echo "$ac_t""no" 1>&6
  2386. fi
  2387.  
  2388.  
  2389.   # If we find X, set shell vars x_includes and x_libraries to the
  2390. # paths, otherwise set no_x=yes.
  2391. # Uses ac_ vars as temps to allow command line to override cache and checks.
  2392. # --without-x overrides everything else, but does not touch the cache.
  2393. echo $ac_n "checking for X""... $ac_c" 1>&6
  2394. echo "configure:2395: checking for X" >&5
  2395.  
  2396. # Check whether --with-x or --without-x was given.
  2397. if test "${with_x+set}" = set; then
  2398.   withval="$with_x"
  2399.   :
  2400. fi
  2401.  
  2402. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  2403. if test "x$with_x" = xno; then
  2404.   # The user explicitly disabled X.
  2405.   have_x=disabled
  2406. else
  2407.   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  2408.     # Both variables are already set.
  2409.     have_x=yes
  2410.   else
  2411. if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
  2412.   echo $ac_n "(cached) $ac_c" 1>&6
  2413. else
  2414.   # One or both of the vars are not set, and there is no cached value.
  2415. ac_x_includes=NO ac_x_libraries=NO
  2416. rm -fr conftestdir
  2417. if mkdir conftestdir; then
  2418.   cd conftestdir
  2419.   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  2420.   cat > Imakefile <<'EOF'
  2421. acfindx:
  2422.     @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  2423. EOF
  2424.   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  2425.     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2426.     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  2427.     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  2428.     for ac_extension in a so sl; do
  2429.       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  2430.         test -f $ac_im_libdir/libX11.$ac_extension; then
  2431.         ac_im_usrlibdir=$ac_im_libdir; break
  2432.       fi
  2433.     done
  2434.     # Screen out bogus values from the imake configuration.  They are
  2435.     # bogus both because they are the default anyway, and because
  2436.     # using them would break gcc on systems where it needs fixed includes.
  2437.     case "$ac_im_incroot" in
  2438.     /usr/include) ;;
  2439.     *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
  2440.     esac
  2441.     case "$ac_im_usrlibdir" in
  2442.     /usr/lib | /lib) ;;
  2443.     *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
  2444.     esac
  2445.   fi
  2446.   cd ..
  2447.   rm -fr conftestdir
  2448. fi
  2449.  
  2450. if test "$ac_x_includes" = NO; then
  2451.   # Guess where to find include files, by looking for this one X11 .h file.
  2452.   test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  2453.  
  2454.   # First, try using that file with no special directory specified.
  2455. cat > conftest.$ac_ext <<EOF
  2456. #line 2457 "configure"
  2457. #include "confdefs.h"
  2458. #include <$x_direct_test_include>
  2459. EOF
  2460. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2461. { (eval echo configure:2462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2462. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2463. if test -z "$ac_err"; then
  2464.   rm -rf conftest*
  2465.   # We can compile using X headers with no special include directory.
  2466. ac_x_includes=
  2467. else
  2468.   echo "$ac_err" >&5
  2469.   echo "configure: failed program was:" >&5
  2470.   cat conftest.$ac_ext >&5
  2471.   rm -rf conftest*
  2472.   # Look for the header file in a standard set of common directories.
  2473. # Check X11 before X11Rn because it is often a symlink to the current release.
  2474.   for ac_dir in               \
  2475.     /usr/X11/include          \
  2476.     /usr/X11R6/include        \
  2477.     /usr/X11R5/include        \
  2478.     /usr/X11R4/include        \
  2479.                               \
  2480.     /usr/include/X11          \
  2481.     /usr/include/X11R6        \
  2482.     /usr/include/X11R5        \
  2483.     /usr/include/X11R4        \
  2484.                               \
  2485.     /usr/local/X11/include    \
  2486.     /usr/local/X11R6/include  \
  2487.     /usr/local/X11R5/include  \
  2488.     /usr/local/X11R4/include  \
  2489.                               \
  2490.     /usr/local/include/X11    \
  2491.     /usr/local/include/X11R6  \
  2492.     /usr/local/include/X11R5  \
  2493.     /usr/local/include/X11R4  \
  2494.                               \
  2495.     /usr/X386/include         \
  2496.     /usr/x386/include         \
  2497.     /usr/XFree86/include/X11  \
  2498.                               \
  2499.     /usr/include              \
  2500.     /usr/local/include        \
  2501.     /usr/unsupported/include  \
  2502.     /usr/athena/include       \
  2503.     /usr/local/x11r5/include  \
  2504.     /usr/lpp/Xamples/include  \
  2505.                               \
  2506.     /usr/openwin/include      \
  2507.     /usr/openwin/share/include \
  2508.     ; \
  2509.   do
  2510.     if test -r "$ac_dir/$x_direct_test_include"; then
  2511.       ac_x_includes=$ac_dir
  2512.       break
  2513.     fi
  2514.   done
  2515. fi
  2516. rm -f conftest*
  2517. fi # $ac_x_includes = NO
  2518.  
  2519. if test "$ac_x_libraries" = NO; then
  2520.   # Check for the libraries.
  2521.  
  2522.   test -z "$x_direct_test_library" && x_direct_test_library=Xt
  2523.   test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  2524.  
  2525.   # See if we find them without any special options.
  2526.   # Don't add to $LIBS permanently.
  2527.   ac_save_LIBS="$LIBS"
  2528.   LIBS="-l$x_direct_test_library $LIBS"
  2529. cat > conftest.$ac_ext <<EOF
  2530. #line 2531 "configure"
  2531. #include "confdefs.h"
  2532.  
  2533. int main() {
  2534. ${x_direct_test_function}()
  2535. ; return 0; }
  2536. EOF
  2537. if { (eval echo configure:2538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2538.   rm -rf conftest*
  2539.   LIBS="$ac_save_LIBS"
  2540. # We can link X programs with no special library path.
  2541. ac_x_libraries=
  2542. else
  2543.   echo "configure: failed program was:" >&5
  2544.   cat conftest.$ac_ext >&5
  2545.   rm -rf conftest*
  2546.   LIBS="$ac_save_LIBS"
  2547. # First see if replacing the include by lib works.
  2548. # Check X11 before X11Rn because it is often a symlink to the current release.
  2549. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
  2550.     /usr/X11/lib          \
  2551.     /usr/X11R6/lib        \
  2552.     /usr/X11R5/lib        \
  2553.     /usr/X11R4/lib        \
  2554.                           \
  2555.     /usr/lib/X11          \
  2556.     /usr/lib/X11R6        \
  2557.     /usr/lib/X11R5        \
  2558.     /usr/lib/X11R4        \
  2559.                           \
  2560.     /usr/local/X11/lib    \
  2561.     /usr/local/X11R6/lib  \
  2562.     /usr/local/X11R5/lib  \
  2563.     /usr/local/X11R4/lib  \
  2564.                           \
  2565.     /usr/local/lib/X11    \
  2566.     /usr/local/lib/X11R6  \
  2567.     /usr/local/lib/X11R5  \
  2568.     /usr/local/lib/X11R4  \
  2569.                           \
  2570.     /usr/X386/lib         \
  2571.     /usr/x386/lib         \
  2572.     /usr/XFree86/lib/X11  \
  2573.                           \
  2574.     /usr/lib              \
  2575.     /usr/local/lib        \
  2576.     /usr/unsupported/lib  \
  2577.     /usr/athena/lib       \
  2578.     /usr/local/x11r5/lib  \
  2579.     /usr/lpp/Xamples/lib  \
  2580.     /lib/usr/lib/X11      \
  2581.                           \
  2582.     /usr/openwin/lib      \
  2583.     /usr/openwin/share/lib \
  2584.     ; \
  2585. do
  2586.   for ac_extension in a so sl; do
  2587.     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  2588.       ac_x_libraries=$ac_dir
  2589.       break 2
  2590.     fi
  2591.   done
  2592. done
  2593. fi
  2594. rm -f conftest*
  2595. fi # $ac_x_libraries = NO
  2596.  
  2597. if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
  2598.   # Didn't find X anywhere.  Cache the known absence of X.
  2599.   ac_cv_have_x="have_x=no"
  2600. else
  2601.   # Record where we found X for the cache.
  2602.   ac_cv_have_x="have_x=yes \
  2603.             ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  2604. fi
  2605. fi
  2606.   fi
  2607.   eval "$ac_cv_have_x"
  2608. fi # $with_x != no
  2609.  
  2610. if test "$have_x" != yes; then
  2611.   echo "$ac_t""$have_x" 1>&6
  2612.   no_x=yes
  2613. else
  2614.   # If each of the values was on the command line, it overrides each guess.
  2615.   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  2616.   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  2617.   # Update the cache value to reflect the command line values.
  2618.   ac_cv_have_x="have_x=yes \
  2619.         ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  2620.   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
  2621. fi
  2622.  
  2623. if test "$no_x" = yes; then
  2624.   # Not all programs may use this symbol, but it does not hurt to define it.
  2625.   cat >> confdefs.h <<\EOF
  2626. #define X_DISPLAY_MISSING 1
  2627. EOF
  2628.  
  2629.   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  2630. else
  2631.   if test -n "$x_includes"; then
  2632.     X_CFLAGS="$X_CFLAGS -I$x_includes"
  2633.   fi
  2634.  
  2635.   # It would also be nice to do this for all -L options, not just this one.
  2636.   if test -n "$x_libraries"; then
  2637.     X_LIBS="$X_LIBS -L$x_libraries"
  2638.     # For Solaris; some versions of Sun CC require a space after -R and
  2639.     # others require no space.  Words are not sufficient . . . .
  2640.     case "`(uname -sr) 2>/dev/null`" in
  2641.     "SunOS 5"*)
  2642.       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
  2643. echo "configure:2644: checking whether -R must be followed by a space" >&5
  2644.       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
  2645.       cat > conftest.$ac_ext <<EOF
  2646. #line 2647 "configure"
  2647. #include "confdefs.h"
  2648.  
  2649. int main() {
  2650.  
  2651. ; return 0; }
  2652. EOF
  2653. if { (eval echo configure:2654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2654.   rm -rf conftest*
  2655.   ac_R_nospace=yes
  2656. else
  2657.   echo "configure: failed program was:" >&5
  2658.   cat conftest.$ac_ext >&5
  2659.   rm -rf conftest*
  2660.   ac_R_nospace=no
  2661. fi
  2662. rm -f conftest*
  2663.       if test $ac_R_nospace = yes; then
  2664.     echo "$ac_t""no" 1>&6
  2665.     X_LIBS="$X_LIBS -R$x_libraries"
  2666.       else
  2667.     LIBS="$ac_xsave_LIBS -R $x_libraries"
  2668.     cat > conftest.$ac_ext <<EOF
  2669. #line 2670 "configure"
  2670. #include "confdefs.h"
  2671.  
  2672. int main() {
  2673.  
  2674. ; return 0; }
  2675. EOF
  2676. if { (eval echo configure:2677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2677.   rm -rf conftest*
  2678.   ac_R_space=yes
  2679. else
  2680.   echo "configure: failed program was:" >&5
  2681.   cat conftest.$ac_ext >&5
  2682.   rm -rf conftest*
  2683.   ac_R_space=no
  2684. fi
  2685. rm -f conftest*
  2686.     if test $ac_R_space = yes; then
  2687.       echo "$ac_t""yes" 1>&6
  2688.       X_LIBS="$X_LIBS -R $x_libraries"
  2689.     else
  2690.       echo "$ac_t""neither works" 1>&6
  2691.     fi
  2692.       fi
  2693.       LIBS="$ac_xsave_LIBS"
  2694.     esac
  2695.   fi
  2696.  
  2697.   # Check for system-dependent libraries X programs must link with.
  2698.   # Do this before checking for the system-independent R6 libraries
  2699.   # (-lICE), since we may need -lsocket or whatever for X linking.
  2700.  
  2701.   if test "$ISC" = yes; then
  2702.     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  2703.   else
  2704.     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  2705.     # libraries were built with DECnet support.  And karl@cs.umb.edu says
  2706.     # the Alpha needs dnet_stub (dnet does not exist).
  2707.     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
  2708. echo "configure:2709: checking for dnet_ntoa in -ldnet" >&5
  2709. ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  2710. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2711.   echo $ac_n "(cached) $ac_c" 1>&6
  2712. else
  2713.   ac_save_LIBS="$LIBS"
  2714. LIBS="-ldnet  $LIBS"
  2715. cat > conftest.$ac_ext <<EOF
  2716. #line 2717 "configure"
  2717. #include "confdefs.h"
  2718. /* Override any gcc2 internal prototype to avoid an error.  */
  2719. /* We use char because int might match the return type of a gcc2
  2720.     builtin and then its argument prototype would still apply.  */
  2721. char dnet_ntoa();
  2722.  
  2723. int main() {
  2724. dnet_ntoa()
  2725. ; return 0; }
  2726. EOF
  2727. if { (eval echo configure:2728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2728.   rm -rf conftest*
  2729.   eval "ac_cv_lib_$ac_lib_var=yes"
  2730. else
  2731.   echo "configure: failed program was:" >&5
  2732.   cat conftest.$ac_ext >&5
  2733.   rm -rf conftest*
  2734.   eval "ac_cv_lib_$ac_lib_var=no"
  2735. fi
  2736. rm -f conftest*
  2737. LIBS="$ac_save_LIBS"
  2738.  
  2739. fi
  2740. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2741.   echo "$ac_t""yes" 1>&6
  2742.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  2743. else
  2744.   echo "$ac_t""no" 1>&6
  2745. fi
  2746.  
  2747.     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  2748.       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
  2749. echo "configure:2750: checking for dnet_ntoa in -ldnet_stub" >&5
  2750. ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  2751. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2752.   echo $ac_n "(cached) $ac_c" 1>&6
  2753. else
  2754.   ac_save_LIBS="$LIBS"
  2755. LIBS="-ldnet_stub  $LIBS"
  2756. cat > conftest.$ac_ext <<EOF
  2757. #line 2758 "configure"
  2758. #include "confdefs.h"
  2759. /* Override any gcc2 internal prototype to avoid an error.  */
  2760. /* We use char because int might match the return type of a gcc2
  2761.     builtin and then its argument prototype would still apply.  */
  2762. char dnet_ntoa();
  2763.  
  2764. int main() {
  2765. dnet_ntoa()
  2766. ; return 0; }
  2767. EOF
  2768. if { (eval echo configure:2769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2769.   rm -rf conftest*
  2770.   eval "ac_cv_lib_$ac_lib_var=yes"
  2771. else
  2772.   echo "configure: failed program was:" >&5
  2773.   cat conftest.$ac_ext >&5
  2774.   rm -rf conftest*
  2775.   eval "ac_cv_lib_$ac_lib_var=no"
  2776. fi
  2777. rm -f conftest*
  2778. LIBS="$ac_save_LIBS"
  2779.  
  2780. fi
  2781. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2782.   echo "$ac_t""yes" 1>&6
  2783.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  2784. else
  2785.   echo "$ac_t""no" 1>&6
  2786. fi
  2787.  
  2788.     fi
  2789.  
  2790.     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  2791.     # to get the SysV transport functions.
  2792.     # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
  2793.     # needs -lnsl.
  2794.     # The nsl library prevents programs from opening the X display
  2795.     # on Irix 5.2, according to dickey@clark.net.
  2796.     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
  2797. echo "configure:2798: checking for gethostbyname" >&5
  2798. if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
  2799.   echo $ac_n "(cached) $ac_c" 1>&6
  2800. else
  2801.   cat > conftest.$ac_ext <<EOF
  2802. #line 2803 "configure"
  2803. #include "confdefs.h"
  2804. /* System header to define __stub macros and hopefully few prototypes,
  2805.     which can conflict with char gethostbyname(); below.  */
  2806. #include <assert.h>
  2807. /* Override any gcc2 internal prototype to avoid an error.  */
  2808. /* We use char because int might match the return type of a gcc2
  2809.     builtin and then its argument prototype would still apply.  */
  2810. char gethostbyname();
  2811.  
  2812. int main() {
  2813.  
  2814. /* The GNU C library defines this for functions which it implements
  2815.     to always fail with ENOSYS.  Some functions are actually named
  2816.     something starting with __ and the normal name is an alias.  */
  2817. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  2818. choke me
  2819. #else
  2820. gethostbyname();
  2821. #endif
  2822.  
  2823. ; return 0; }
  2824. EOF
  2825. if { (eval echo configure:2826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2826.   rm -rf conftest*
  2827.   eval "ac_cv_func_gethostbyname=yes"
  2828. else
  2829.   echo "configure: failed program was:" >&5
  2830.   cat conftest.$ac_ext >&5
  2831.   rm -rf conftest*
  2832.   eval "ac_cv_func_gethostbyname=no"
  2833. fi
  2834. rm -f conftest*
  2835. fi
  2836.  
  2837. if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  2838.   echo "$ac_t""yes" 1>&6
  2839.   :
  2840. else
  2841.   echo "$ac_t""no" 1>&6
  2842. fi
  2843.  
  2844.     if test $ac_cv_func_gethostbyname = no; then
  2845.       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  2846. echo "configure:2847: checking for gethostbyname in -lnsl" >&5
  2847. ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  2848. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2849.   echo $ac_n "(cached) $ac_c" 1>&6
  2850. else
  2851.   ac_save_LIBS="$LIBS"
  2852. LIBS="-lnsl  $LIBS"
  2853. cat > conftest.$ac_ext <<EOF
  2854. #line 2855 "configure"
  2855. #include "confdefs.h"
  2856. /* Override any gcc2 internal prototype to avoid an error.  */
  2857. /* We use char because int might match the return type of a gcc2
  2858.     builtin and then its argument prototype would still apply.  */
  2859. char gethostbyname();
  2860.  
  2861. int main() {
  2862. gethostbyname()
  2863. ; return 0; }
  2864. EOF
  2865. if { (eval echo configure:2866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2866.   rm -rf conftest*
  2867.   eval "ac_cv_lib_$ac_lib_var=yes"
  2868. else
  2869.   echo "configure: failed program was:" >&5
  2870.   cat conftest.$ac_ext >&5
  2871.   rm -rf conftest*
  2872.   eval "ac_cv_lib_$ac_lib_var=no"
  2873. fi
  2874. rm -f conftest*
  2875. LIBS="$ac_save_LIBS"
  2876.  
  2877. fi
  2878. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2879.   echo "$ac_t""yes" 1>&6
  2880.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  2881. else
  2882.   echo "$ac_t""no" 1>&6
  2883. fi
  2884.  
  2885.     fi
  2886.  
  2887.     # lieder@skyler.mavd.honeywell.com says without -lsocket,
  2888.     # socket/setsockopt and other routines are undefined under SCO ODT
  2889.     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
  2890.     # on later versions), says simon@lia.di.epfl.ch: it contains
  2891.     # gethostby* variants that don't use the nameserver (or something).
  2892.     # -lsocket must be given before -lnsl if both are needed.
  2893.     # We assume that if connect needs -lnsl, so does gethostbyname.
  2894.     echo $ac_n "checking for connect""... $ac_c" 1>&6
  2895. echo "configure:2896: checking for connect" >&5
  2896. if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
  2897.   echo $ac_n "(cached) $ac_c" 1>&6
  2898. else
  2899.   cat > conftest.$ac_ext <<EOF
  2900. #line 2901 "configure"
  2901. #include "confdefs.h"
  2902. /* System header to define __stub macros and hopefully few prototypes,
  2903.     which can conflict with char connect(); below.  */
  2904. #include <assert.h>
  2905. /* Override any gcc2 internal prototype to avoid an error.  */
  2906. /* We use char because int might match the return type of a gcc2
  2907.     builtin and then its argument prototype would still apply.  */
  2908. char connect();
  2909.  
  2910. int main() {
  2911.  
  2912. /* The GNU C library defines this for functions which it implements
  2913.     to always fail with ENOSYS.  Some functions are actually named
  2914.     something starting with __ and the normal name is an alias.  */
  2915. #if defined (__stub_connect) || defined (__stub___connect)
  2916. choke me
  2917. #else
  2918. connect();
  2919. #endif
  2920.  
  2921. ; return 0; }
  2922. EOF
  2923. if { (eval echo configure:2924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2924.   rm -rf conftest*
  2925.   eval "ac_cv_func_connect=yes"
  2926. else
  2927.   echo "configure: failed program was:" >&5
  2928.   cat conftest.$ac_ext >&5
  2929.   rm -rf conftest*
  2930.   eval "ac_cv_func_connect=no"
  2931. fi
  2932. rm -f conftest*
  2933. fi
  2934.  
  2935. if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  2936.   echo "$ac_t""yes" 1>&6
  2937.   :
  2938. else
  2939.   echo "$ac_t""no" 1>&6
  2940. fi
  2941.  
  2942.     if test $ac_cv_func_connect = no; then
  2943.       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
  2944. echo "configure:2945: checking for connect in -lsocket" >&5
  2945. ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
  2946. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2947.   echo $ac_n "(cached) $ac_c" 1>&6
  2948. else
  2949.   ac_save_LIBS="$LIBS"
  2950. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  2951. cat > conftest.$ac_ext <<EOF
  2952. #line 2953 "configure"
  2953. #include "confdefs.h"
  2954. /* Override any gcc2 internal prototype to avoid an error.  */
  2955. /* We use char because int might match the return type of a gcc2
  2956.     builtin and then its argument prototype would still apply.  */
  2957. char connect();
  2958.  
  2959. int main() {
  2960. connect()
  2961. ; return 0; }
  2962. EOF
  2963. if { (eval echo configure:2964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2964.   rm -rf conftest*
  2965.   eval "ac_cv_lib_$ac_lib_var=yes"
  2966. else
  2967.   echo "configure: failed program was:" >&5
  2968.   cat conftest.$ac_ext >&5
  2969.   rm -rf conftest*
  2970.   eval "ac_cv_lib_$ac_lib_var=no"
  2971. fi
  2972. rm -f conftest*
  2973. LIBS="$ac_save_LIBS"
  2974.  
  2975. fi
  2976. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2977.   echo "$ac_t""yes" 1>&6
  2978.   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  2979. else
  2980.   echo "$ac_t""no" 1>&6
  2981. fi
  2982.  
  2983.     fi
  2984.  
  2985.     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
  2986.     echo $ac_n "checking for remove""... $ac_c" 1>&6
  2987. echo "configure:2988: checking for remove" >&5
  2988. if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
  2989.   echo $ac_n "(cached) $ac_c" 1>&6
  2990. else
  2991.   cat > conftest.$ac_ext <<EOF
  2992. #line 2993 "configure"
  2993. #include "confdefs.h"
  2994. /* System header to define __stub macros and hopefully few prototypes,
  2995.     which can conflict with char remove(); below.  */
  2996. #include <assert.h>
  2997. /* Override any gcc2 internal prototype to avoid an error.  */
  2998. /* We use char because int might match the return type of a gcc2
  2999.     builtin and then its argument prototype would still apply.  */
  3000. char remove();
  3001.  
  3002. int main() {
  3003.  
  3004. /* The GNU C library defines this for functions which it implements
  3005.     to always fail with ENOSYS.  Some functions are actually named
  3006.     something starting with __ and the normal name is an alias.  */
  3007. #if defined (__stub_remove) || defined (__stub___remove)
  3008. choke me
  3009. #else
  3010. remove();
  3011. #endif
  3012.  
  3013. ; return 0; }
  3014. EOF
  3015. if { (eval echo configure:3016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3016.   rm -rf conftest*
  3017.   eval "ac_cv_func_remove=yes"
  3018. else
  3019.   echo "configure: failed program was:" >&5
  3020.   cat conftest.$ac_ext >&5
  3021.   rm -rf conftest*
  3022.   eval "ac_cv_func_remove=no"
  3023. fi
  3024. rm -f conftest*
  3025. fi
  3026.  
  3027. if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
  3028.   echo "$ac_t""yes" 1>&6
  3029.   :
  3030. else
  3031.   echo "$ac_t""no" 1>&6
  3032. fi
  3033.  
  3034.     if test $ac_cv_func_remove = no; then
  3035.       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
  3036. echo "configure:3037: checking for remove in -lposix" >&5
  3037. ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
  3038. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3039.   echo $ac_n "(cached) $ac_c" 1>&6
  3040. else
  3041.   ac_save_LIBS="$LIBS"
  3042. LIBS="-lposix  $LIBS"
  3043. cat > conftest.$ac_ext <<EOF
  3044. #line 3045 "configure"
  3045. #include "confdefs.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 remove();
  3050.  
  3051. int main() {
  3052. remove()
  3053. ; return 0; }
  3054. EOF
  3055. if { (eval echo configure:3056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3056.   rm -rf conftest*
  3057.   eval "ac_cv_lib_$ac_lib_var=yes"
  3058. else
  3059.   echo "configure: failed program was:" >&5
  3060.   cat conftest.$ac_ext >&5
  3061.   rm -rf conftest*
  3062.   eval "ac_cv_lib_$ac_lib_var=no"
  3063. fi
  3064. rm -f conftest*
  3065. LIBS="$ac_save_LIBS"
  3066.  
  3067. fi
  3068. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3069.   echo "$ac_t""yes" 1>&6
  3070.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  3071. else
  3072.   echo "$ac_t""no" 1>&6
  3073. fi
  3074.  
  3075.     fi
  3076.  
  3077.     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  3078.     echo $ac_n "checking for shmat""... $ac_c" 1>&6
  3079. echo "configure:3080: checking for shmat" >&5
  3080. if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
  3081.   echo $ac_n "(cached) $ac_c" 1>&6
  3082. else
  3083.   cat > conftest.$ac_ext <<EOF
  3084. #line 3085 "configure"
  3085. #include "confdefs.h"
  3086. /* System header to define __stub macros and hopefully few prototypes,
  3087.     which can conflict with char shmat(); below.  */
  3088. #include <assert.h>
  3089. /* Override any gcc2 internal prototype to avoid an error.  */
  3090. /* We use char because int might match the return type of a gcc2
  3091.     builtin and then its argument prototype would still apply.  */
  3092. char shmat();
  3093.  
  3094. int main() {
  3095.  
  3096. /* The GNU C library defines this for functions which it implements
  3097.     to always fail with ENOSYS.  Some functions are actually named
  3098.     something starting with __ and the normal name is an alias.  */
  3099. #if defined (__stub_shmat) || defined (__stub___shmat)
  3100. choke me
  3101. #else
  3102. shmat();
  3103. #endif
  3104.  
  3105. ; return 0; }
  3106. EOF
  3107. if { (eval echo configure:3108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3108.   rm -rf conftest*
  3109.   eval "ac_cv_func_shmat=yes"
  3110. else
  3111.   echo "configure: failed program was:" >&5
  3112.   cat conftest.$ac_ext >&5
  3113.   rm -rf conftest*
  3114.   eval "ac_cv_func_shmat=no"
  3115. fi
  3116. rm -f conftest*
  3117. fi
  3118.  
  3119. if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
  3120.   echo "$ac_t""yes" 1>&6
  3121.   :
  3122. else
  3123.   echo "$ac_t""no" 1>&6
  3124. fi
  3125.  
  3126.     if test $ac_cv_func_shmat = no; then
  3127.       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
  3128. echo "configure:3129: checking for shmat in -lipc" >&5
  3129. ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
  3130. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3131.   echo $ac_n "(cached) $ac_c" 1>&6
  3132. else
  3133.   ac_save_LIBS="$LIBS"
  3134. LIBS="-lipc  $LIBS"
  3135. cat > conftest.$ac_ext <<EOF
  3136. #line 3137 "configure"
  3137. #include "confdefs.h"
  3138. /* Override any gcc2 internal prototype to avoid an error.  */
  3139. /* We use char because int might match the return type of a gcc2
  3140.     builtin and then its argument prototype would still apply.  */
  3141. char shmat();
  3142.  
  3143. int main() {
  3144. shmat()
  3145. ; return 0; }
  3146. EOF
  3147. if { (eval echo configure:3148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3148.   rm -rf conftest*
  3149.   eval "ac_cv_lib_$ac_lib_var=yes"
  3150. else
  3151.   echo "configure: failed program was:" >&5
  3152.   cat conftest.$ac_ext >&5
  3153.   rm -rf conftest*
  3154.   eval "ac_cv_lib_$ac_lib_var=no"
  3155. fi
  3156. rm -f conftest*
  3157. LIBS="$ac_save_LIBS"
  3158.  
  3159. fi
  3160. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3161.   echo "$ac_t""yes" 1>&6
  3162.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  3163. else
  3164.   echo "$ac_t""no" 1>&6
  3165. fi
  3166.  
  3167.     fi
  3168.   fi
  3169.  
  3170.   # Check for libraries that X11R6 Xt/Xaw programs need.
  3171.   ac_save_LDFLAGS="$LDFLAGS"
  3172.   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  3173.   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  3174.   # check for ICE first), but we must link in the order -lSM -lICE or
  3175.   # we get undefined symbols.  So assume we have SM if we have ICE.
  3176.   # These have to be linked with before -lX11, unlike the other
  3177.   # libraries we check for below, so use a different variable.
  3178.   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  3179.   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
  3180. echo "configure:3181: checking for IceConnectionNumber in -lICE" >&5
  3181. ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
  3182. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3183.   echo $ac_n "(cached) $ac_c" 1>&6
  3184. else
  3185.   ac_save_LIBS="$LIBS"
  3186. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  3187. cat > conftest.$ac_ext <<EOF
  3188. #line 3189 "configure"
  3189. #include "confdefs.h"
  3190. /* Override any gcc2 internal prototype to avoid an error.  */
  3191. /* We use char because int might match the return type of a gcc2
  3192.     builtin and then its argument prototype would still apply.  */
  3193. char IceConnectionNumber();
  3194.  
  3195. int main() {
  3196. IceConnectionNumber()
  3197. ; return 0; }
  3198. EOF
  3199. if { (eval echo configure:3200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3200.   rm -rf conftest*
  3201.   eval "ac_cv_lib_$ac_lib_var=yes"
  3202. else
  3203.   echo "configure: failed program was:" >&5
  3204.   cat conftest.$ac_ext >&5
  3205.   rm -rf conftest*
  3206.   eval "ac_cv_lib_$ac_lib_var=no"
  3207. fi
  3208. rm -f conftest*
  3209. LIBS="$ac_save_LIBS"
  3210.  
  3211. fi
  3212. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3213.   echo "$ac_t""yes" 1>&6
  3214.   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  3215. else
  3216.   echo "$ac_t""no" 1>&6
  3217. fi
  3218.  
  3219.   LDFLAGS="$ac_save_LDFLAGS"
  3220.  
  3221. fi
  3222.  
  3223.  
  3224.         if test "$OS390Unix" = "yes"; then
  3225.     CFLAGS="$CFLAGS -W c,dll"
  3226.     LDFLAGS="$LDFLAGS -W l,dll"
  3227.     X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
  3228.   fi
  3229.  
  3230.     
  3231.   if test -d "$x_includes" && test ! -d "$x_libraries"; then
  3232.     x_libraries=`echo "$x_includes" | sed s/include/lib/`
  3233.     echo "$ac_t""Corrected X libraries to $x_libraries" 1>&6
  3234.     X_LIBS="$X_LIBS -L$x_libraries"
  3235.     if test "`(uname) 2>/dev/null`" = SunOS &&
  3236.                      uname -r | grep '^5' >/dev/null; then
  3237.       X_LIBS="$X_LIBS -R $x_libraries"
  3238.     fi
  3239.   fi
  3240.  
  3241.   if test -d "$x_libraries" && test ! -d "$x_includes"; then
  3242.     x_includes=`echo "$x_libraries" | sed s/lib/include/`
  3243.     echo "$ac_t""Corrected X includes to $x_includes" 1>&6
  3244.     X_CFLAGS="$X_CFLAGS -I$x_includes"
  3245.   fi
  3246.  
  3247.     X_CFLAGS="`echo $X_CFLAGS\  | sed 's%-I/usr/include %%'`"
  3248.     X_LIBS="`echo $X_LIBS\  | sed 's% -L/usr/lib%%'`"
  3249.  
  3250.  
  3251.       echo $ac_n "checking if X11 header files can be found""... $ac_c" 1>&6
  3252. echo "configure:3253: checking if X11 header files can be found" >&5
  3253.   cflags_save=$CFLAGS
  3254.   CFLAGS="$CFLAGS $X_CFLAGS"
  3255.   cat > conftest.$ac_ext <<EOF
  3256. #line 3257 "configure"
  3257. #include "confdefs.h"
  3258. #include <X11/Xlib.h>
  3259. int main() {
  3260.  
  3261. ; return 0; }
  3262. EOF
  3263. if { (eval echo configure:3264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3264.   rm -rf conftest*
  3265.   echo "$ac_t""yes" 1>&6
  3266. else
  3267.   echo "configure: failed program was:" >&5
  3268.   cat conftest.$ac_ext >&5
  3269.   rm -rf conftest*
  3270.   echo "$ac_t""no" 1>&6; no_x=yes
  3271. fi
  3272. rm -f conftest*
  3273.   CFLAGS=$cflags_save
  3274.  
  3275.   if test "${no_x-no}" = yes; then
  3276.     with_x=no
  3277.   else
  3278.     cat >> confdefs.h <<\EOF
  3279. #define HAVE_X11 1
  3280. EOF
  3281.  
  3282.     X_LIB="-lXt -lX11";
  3283.     
  3284.  
  3285.     ac_save_LDFLAGS="$LDFLAGS"
  3286.     LDFLAGS="-L$x_libraries $LDFLAGS"
  3287.  
  3288.             echo $ac_n "checking for _XdmcpAuthDoIt in -lXdmcp""... $ac_c" 1>&6
  3289. echo "configure:3290: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
  3290. ac_lib_var=`echo Xdmcp'_'_XdmcpAuthDoIt | sed 'y%./+-%__p_%'`
  3291. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3292.   echo $ac_n "(cached) $ac_c" 1>&6
  3293. else
  3294.   ac_save_LIBS="$LIBS"
  3295. LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
  3296. cat > conftest.$ac_ext <<EOF
  3297. #line 3298 "configure"
  3298. #include "confdefs.h"
  3299. /* Override any gcc2 internal prototype to avoid an error.  */
  3300. /* We use char because int might match the return type of a gcc2
  3301.     builtin and then its argument prototype would still apply.  */
  3302. char _XdmcpAuthDoIt();
  3303.  
  3304. int main() {
  3305. _XdmcpAuthDoIt()
  3306. ; return 0; }
  3307. EOF
  3308. if { (eval echo configure:3309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3309.   rm -rf conftest*
  3310.   eval "ac_cv_lib_$ac_lib_var=yes"
  3311. else
  3312.   echo "configure: failed program was:" >&5
  3313.   cat conftest.$ac_ext >&5
  3314.   rm -rf conftest*
  3315.   eval "ac_cv_lib_$ac_lib_var=no"
  3316. fi
  3317. rm -f conftest*
  3318. LIBS="$ac_save_LIBS"
  3319.  
  3320. fi
  3321. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3322.   echo "$ac_t""yes" 1>&6
  3323.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
  3324. else
  3325.   echo "$ac_t""no" 1>&6
  3326. fi
  3327.  
  3328.  
  3329.                     echo $ac_n "checking for IceOpenConnection in -lICE""... $ac_c" 1>&6
  3330. echo "configure:3331: checking for IceOpenConnection in -lICE" >&5
  3331. ac_lib_var=`echo ICE'_'IceOpenConnection | sed 'y%./+-%__p_%'`
  3332. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3333.   echo $ac_n "(cached) $ac_c" 1>&6
  3334. else
  3335.   ac_save_LIBS="$LIBS"
  3336. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  3337. cat > conftest.$ac_ext <<EOF
  3338. #line 3339 "configure"
  3339. #include "confdefs.h"
  3340. /* Override any gcc2 internal prototype to avoid an error.  */
  3341. /* We use char because int might match the return type of a gcc2
  3342.     builtin and then its argument prototype would still apply.  */
  3343. char IceOpenConnection();
  3344.  
  3345. int main() {
  3346. IceOpenConnection()
  3347. ; return 0; }
  3348. EOF
  3349. if { (eval echo configure:3350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3350.   rm -rf conftest*
  3351.   eval "ac_cv_lib_$ac_lib_var=yes"
  3352. else
  3353.   echo "configure: failed program was:" >&5
  3354.   cat conftest.$ac_ext >&5
  3355.   rm -rf conftest*
  3356.   eval "ac_cv_lib_$ac_lib_var=no"
  3357. fi
  3358. rm -f conftest*
  3359. LIBS="$ac_save_LIBS"
  3360.  
  3361. fi
  3362. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3363.   echo "$ac_t""yes" 1>&6
  3364.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
  3365. else
  3366.   echo "$ac_t""no" 1>&6
  3367. fi
  3368.  
  3369.  
  3370.         LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
  3371.     echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
  3372. echo "configure:3373: checking for XpmCreatePixmapFromData in -lXpm" >&5
  3373. ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
  3374. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3375.   echo $ac_n "(cached) $ac_c" 1>&6
  3376. else
  3377.   ac_save_LIBS="$LIBS"
  3378. LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
  3379. cat > conftest.$ac_ext <<EOF
  3380. #line 3381 "configure"
  3381. #include "confdefs.h"
  3382. /* Override any gcc2 internal prototype to avoid an error.  */
  3383. /* We use char because int might match the return type of a gcc2
  3384.     builtin and then its argument prototype would still apply.  */
  3385. char XpmCreatePixmapFromData();
  3386.  
  3387. int main() {
  3388. XpmCreatePixmapFromData()
  3389. ; return 0; }
  3390. EOF
  3391. if { (eval echo configure:3392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3392.   rm -rf conftest*
  3393.   eval "ac_cv_lib_$ac_lib_var=yes"
  3394. else
  3395.   echo "configure: failed program was:" >&5
  3396.   cat conftest.$ac_ext >&5
  3397.   rm -rf conftest*
  3398.   eval "ac_cv_lib_$ac_lib_var=no"
  3399. fi
  3400. rm -f conftest*
  3401. LIBS="$ac_save_LIBS"
  3402.  
  3403. fi
  3404. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3405.   echo "$ac_t""yes" 1>&6
  3406.   X_PRE_LIBS="$X_PRE_LIBS -lXpm"
  3407. else
  3408.   echo "$ac_t""no" 1>&6
  3409. fi
  3410.  
  3411.  
  3412.         echo $ac_n "checking if X11 header files implicitly declare return values""... $ac_c" 1>&6
  3413. echo "configure:3414: checking if X11 header files implicitly declare return values" >&5
  3414.     cflags_save=$CFLAGS
  3415.     CFLAGS="$CFLAGS $X_CFLAGS -Werror"
  3416.     cat > conftest.$ac_ext <<EOF
  3417. #line 3418 "configure"
  3418. #include "confdefs.h"
  3419. #include <X11/Xlib.h>
  3420. int main() {
  3421.  
  3422. ; return 0; }
  3423. EOF
  3424. if { (eval echo configure:3425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3425.   rm -rf conftest*
  3426.   echo "$ac_t""no" 1>&6
  3427. else
  3428.   echo "configure: failed program was:" >&5
  3429.   cat conftest.$ac_ext >&5
  3430.   rm -rf conftest*
  3431.   CFLAGS="$CFLAGS -Wno-implicit-int"
  3432.     cat > conftest.$ac_ext <<EOF
  3433. #line 3434 "configure"
  3434. #include "confdefs.h"
  3435. #include <X11/Xlib.h>
  3436. int main() {
  3437.  
  3438. ; return 0; }
  3439. EOF
  3440. if { (eval echo configure:3441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3441.   rm -rf conftest*
  3442.   echo "$ac_t""yes" 1>&6; cflags_save="$cflags_save -Wno-implicit-int"
  3443. else
  3444.   echo "configure: failed program was:" >&5
  3445.   cat conftest.$ac_ext >&5
  3446.   rm -rf conftest*
  3447.   echo "$ac_t""test failed" 1>&6
  3448.     
  3449. fi
  3450. rm -f conftest*
  3451.     
  3452. fi
  3453. rm -f conftest*
  3454.     CFLAGS=$cflags_save
  3455.  
  3456.     LDFLAGS="$ac_save_LDFLAGS"
  3457.  
  3458.   fi
  3459. fi
  3460.  
  3461. test "x$with_x" = xno -a "x$BEOS" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
  3462.  
  3463. echo $ac_n "checking --enable-gui argument""... $ac_c" 1>&6
  3464. echo "configure:3465: checking --enable-gui argument" >&5
  3465. # Check whether --enable-gui or --disable-gui was given.
  3466. if test "${enable_gui+set}" = set; then
  3467.   enableval="$enable_gui"
  3468.   :
  3469. else
  3470.   enable_gui="auto"
  3471. fi
  3472.  
  3473.  
  3474. ## Canonicalize the --enable-gui= argument so that it can be easily compared.
  3475. ## Do not use character classes for portability with old tools.
  3476. enable_gui_canon=`echo "_$enable_gui" | \
  3477.     sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
  3478.  
  3479. if test "x$BEOS" = "xyes"; then
  3480.  
  3481.   SKIP_GTK=YES
  3482.   SKIP_GTK2=YES
  3483.   SKIP_GNOME=YES
  3484.   SKIP_MOTIF=YES
  3485.   SKIP_ATHENA=YES
  3486.   SKIP_NEXTAW=YES
  3487.   SKIP_PHOTON=YES
  3488.   SKIP_BEOS=
  3489.   GUITYPE=NONE
  3490.  
  3491.   case "$enable_gui_canon" in
  3492.     no)        echo "$ac_t""no GUI support" 1>&6
  3493.         SKIP_BEOS=YES ;;
  3494.     yes|"")    echo "$ac_t""yes - automatic GUI support" 1>&6 ;;
  3495.     auto)    echo "$ac_t""auto - automatic GUI support" 1>&6 ;;
  3496.     beos)    echo "$ac_t""BeOS GUI support" 1>&6 ;;
  3497.     *)        echo "$ac_t""Sorry, $enable_gui GUI is not supported" 1>&6 ;;
  3498.   esac
  3499.  
  3500. elif test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
  3501.   SKIP_GTK=YES
  3502.   SKIP_GTK2=YES
  3503.   SKIP_GNOME=YES
  3504.   SKIP_MOTIF=YES
  3505.   SKIP_ATHENA=YES
  3506.   SKIP_NEXTAW=YES
  3507.   SKIP_BEOS=YES
  3508.   SKIP_PHOTON=
  3509.   GUITYPE=NONE
  3510.  
  3511.   case "$enable_gui_canon" in
  3512.     no)        echo "$ac_t""no GUI support" 1>&6
  3513.         SKIP_PHOTON=YES ;;
  3514.     yes|"")    echo "$ac_t""yes - automatic GUI support" 1>&6 ;;
  3515.     auto)    echo "$ac_t""auto - automatic GUI support" 1>&6 ;;
  3516.     photon)    echo "$ac_t""Photon GUI support" 1>&6 ;;
  3517.     *)        echo "$ac_t""Sorry, $enable_gui GUI is not supported" 1>&6 ;;
  3518.   esac
  3519.  
  3520. else
  3521.  
  3522.   SKIP_GTK=
  3523.   SKIP_GTK2=
  3524.   SKIP_GNOME=
  3525.   SKIP_MOTIF=
  3526.   SKIP_ATHENA=
  3527.   SKIP_NEXTAW=
  3528.   SKIP_BEOS=YES
  3529.   SKIP_PHOTON=YES
  3530.   GUITYPE=NONE
  3531.  
  3532.   case "$enable_gui_canon" in
  3533.     no|none)    echo "$ac_t""no GUI support" 1>&6
  3534.         SKIP_GTK=YES; SKIP_GTK2=YES; SKIP_GNOME=YES; SKIP_MOTIF=YES; SKIP_ATHENA=YES; SKIP_NEXTAW=YES ;;
  3535.     yes|"")    echo "$ac_t""yes - automatic GUI support" 1>&6 ;;
  3536.     auto)    echo "$ac_t""auto - automatic GUI support" 1>&6 ;;
  3537.     gtk)    echo "$ac_t""GTK+ 1.x GUI support" 1>&6
  3538.         SKIP_GTK2=YES; SKIP_GNOME=YES; SKIP_MOTIF=YES; SKIP_ATHENA=YES; SKIP_NEXTAW=YES ;;
  3539.     gtk2)    echo "$ac_t""GTK+ 2.x GUI support" 1>&6
  3540.         SKIP_GNOME=YES; SKIP_MOTIF=YES; SKIP_ATHENA=YES; SKIP_NEXTAW=YES ;;
  3541.     gnome)    echo "$ac_t""GNOME 1.x GUI support" 1>&6
  3542.         SKIP_GTK2=YES; SKIP_MOTIF=YES; SKIP_ATHENA=YES; SKIP_NEXTAW=YES ;;
  3543.     gnome2)    echo "$ac_t""GNOME 2.x GUI support" 1>&6
  3544.         SKIP_MOTIF=YES; SKIP_ATHENA=YES; SKIP_NEXTAW=YES ;;
  3545.     motif)    echo "$ac_t""Motif GUI support" 1>&6
  3546.         SKIP_GTK=YES; SKIP_GNOME=YES; SKIP_ATHENA=YES; SKIP_NEXTAW=YES ;;
  3547.     athena)    echo "$ac_t""Athena GUI support" 1>&6
  3548.         SKIP_GTK=YES; SKIP_GNOME=YES; SKIP_MOTIF=YES; SKIP_NEXTAW=YES ;;
  3549.     nextaw)    echo "$ac_t""neXtaw GUI support" 1>&6
  3550.         SKIP_GTK=YES; SKIP_GNOME=YES; SKIP_MOTIF=YES; SKIP_ATHENA=YES ;;
  3551.     *)        echo "$ac_t""Sorry, $enable_gui GUI is not supported" 1>&6 ;;
  3552.   esac
  3553.  
  3554. fi
  3555.  
  3556. if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
  3557.   echo $ac_n "checking whether or not to look for GTK""... $ac_c" 1>&6
  3558. echo "configure:3559: checking whether or not to look for GTK" >&5
  3559.   # Check whether --enable-gtk-check or --disable-gtk-check was given.
  3560. if test "${enable_gtk_check+set}" = set; then
  3561.   enableval="$enable_gtk_check"
  3562.   :
  3563. else
  3564.   enable_gtk_check="yes"
  3565. fi
  3566.  
  3567.   echo "$ac_t""$enable_gtk_check" 1>&6
  3568.   if test "x$enable_gtk_check" = "xno"; then
  3569.     SKIP_GTK=YES
  3570.     SKIP_GNOME=YES
  3571.   fi
  3572. fi
  3573.  
  3574. if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
  3575.                 -a "$enable_gui_canon" != "gnome2"; then
  3576.   echo $ac_n "checking whether or not to look for GTK+ 2""... $ac_c" 1>&6
  3577. echo "configure:3578: checking whether or not to look for GTK+ 2" >&5
  3578.   # Check whether --enable-gtk2-check or --disable-gtk2-check was given.
  3579. if test "${enable_gtk2_check+set}" = set; then
  3580.   enableval="$enable_gtk2_check"
  3581.   :
  3582. else
  3583.   enable_gtk2_check="yes"
  3584. fi
  3585.  
  3586.   echo "$ac_t""$enable_gtk2_check" 1>&6
  3587.   if test "x$enable_gtk2_check" = "xno"; then
  3588.     SKIP_GTK2=YES
  3589.   fi
  3590. fi
  3591.  
  3592. if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
  3593.                  -a "$enable_gui_canon" != "gnome2"; then
  3594.   echo $ac_n "checking whether or not to look for GNOME""... $ac_c" 1>&6
  3595. echo "configure:3596: checking whether or not to look for GNOME" >&5
  3596.   # Check whether --enable-gnome-check or --disable-gnome-check was given.
  3597. if test "${enable_gnome_check+set}" = set; then
  3598.   enableval="$enable_gnome_check"
  3599.   :
  3600. else
  3601.   enable_gnome_check="no"
  3602. fi
  3603.  
  3604.   echo "$ac_t""$enable_gnome_check" 1>&6
  3605.   if test "x$enable_gnome_check" = "xno"; then
  3606.     SKIP_GNOME=YES
  3607.   fi
  3608. fi
  3609.  
  3610. if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
  3611.   echo $ac_n "checking whether or not to look for Motif""... $ac_c" 1>&6
  3612. echo "configure:3613: checking whether or not to look for Motif" >&5
  3613.   # Check whether --enable-motif-check or --disable-motif-check was given.
  3614. if test "${enable_motif_check+set}" = set; then
  3615.   enableval="$enable_motif_check"
  3616.   :
  3617. else
  3618.   enable_motif_check="yes"
  3619. fi
  3620.  
  3621.   echo "$ac_t""$enable_motif_check" 1>&6
  3622.   if test "x$enable_motif_check" = "xno"; then
  3623.     SKIP_MOTIF=YES
  3624.   fi
  3625. fi
  3626.  
  3627. if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
  3628.   echo $ac_n "checking whether or not to look for Athena""... $ac_c" 1>&6
  3629. echo "configure:3630: checking whether or not to look for Athena" >&5
  3630.   # Check whether --enable-athena-check or --disable-athena-check was given.
  3631. if test "${enable_athena_check+set}" = set; then
  3632.   enableval="$enable_athena_check"
  3633.   :
  3634. else
  3635.   enable_athena_check="yes"
  3636. fi
  3637.  
  3638.   echo "$ac_t""$enable_athena_check" 1>&6
  3639.   if test "x$enable_athena_check" = "xno"; then
  3640.     SKIP_ATHENA=YES
  3641.   fi
  3642. fi
  3643.  
  3644. if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
  3645.   echo $ac_n "checking whether or not to look for neXtaw""... $ac_c" 1>&6
  3646. echo "configure:3647: checking whether or not to look for neXtaw" >&5
  3647.   # Check whether --enable-nextaw-check or --disable-nextaw-check was given.
  3648. if test "${enable_nextaw_check+set}" = set; then
  3649.   enableval="$enable_nextaw_check"
  3650.   :
  3651. else
  3652.   enable_nextaw_check="yes"
  3653. fi
  3654.  
  3655.   echo "$ac_t""$enable_nextaw_check" 1>&6;
  3656.   if test "x$enable_nextaw_check" = "xno"; then
  3657.     SKIP_NEXTAW=YES
  3658.   fi
  3659. fi
  3660.  
  3661.  
  3662.  
  3663.  
  3664.  
  3665.  
  3666.  
  3667.  
  3668.  
  3669.  
  3670. if test -z "$SKIP_GTK"; then
  3671.  
  3672.   echo $ac_n "checking --with-gtk-prefix argument""... $ac_c" 1>&6
  3673. echo "configure:3674: checking --with-gtk-prefix argument" >&5
  3674.   # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
  3675. if test "${with_gtk_prefix+set}" = set; then
  3676.   withval="$with_gtk_prefix"
  3677.   gtk_config_prefix="$withval"; echo "$ac_t""$gtk_config_prefix" 1>&6
  3678. else
  3679.   gtk_config_prefix=""; echo "$ac_t""no" 1>&6
  3680. fi
  3681.  
  3682.  
  3683.   echo $ac_n "checking --with-gtk-exec-prefix argument""... $ac_c" 1>&6
  3684. echo "configure:3685: checking --with-gtk-exec-prefix argument" >&5
  3685.   # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
  3686. if test "${with_gtk_exec_prefix+set}" = set; then
  3687.   withval="$with_gtk_exec_prefix"
  3688.   gtk_config_exec_prefix="$withval"; echo "$ac_t""$gtk_config_prefix" 1>&6
  3689. else
  3690.   gtk_config_exec_prefix=""; echo "$ac_t""no" 1>&6
  3691. fi
  3692.  
  3693.  
  3694.   echo $ac_n "checking --disable-gtktest argument""... $ac_c" 1>&6
  3695. echo "configure:3696: checking --disable-gtktest argument" >&5
  3696.   # Check whether --enable-gtktest or --disable-gtktest was given.
  3697. if test "${enable_gtktest+set}" = set; then
  3698.   enableval="$enable_gtktest"
  3699.   :
  3700. else
  3701.   enable_gtktest=yes
  3702. fi
  3703.  
  3704.   if test "x$enable_gtktest" = "xyes" ; then
  3705.     echo "$ac_t""gtk test enabled" 1>&6
  3706.   else
  3707.     echo "$ac_t""gtk test disabled" 1>&6
  3708.   fi
  3709.  
  3710.   if test "x$gtk_config_prefix" != "x" ; then
  3711.     gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
  3712.     GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
  3713.   fi
  3714.   if test "x$gtk_config_exec_prefix" != "x" ; then
  3715.     gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
  3716.     GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
  3717.   fi
  3718.   if test "X$GTK_CONFIG" = "X"; then
  3719.     # Extract the first word of "gtk-config", so it can be a program name with args.
  3720. set dummy gtk-config; ac_word=$2
  3721. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3722. echo "configure:3723: checking for $ac_word" >&5
  3723. if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
  3724.   echo $ac_n "(cached) $ac_c" 1>&6
  3725. else
  3726.   case "$GTK_CONFIG" in
  3727.   /*)
  3728.   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
  3729.   ;;
  3730.   ?:/*)             
  3731.   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
  3732.   ;;
  3733.   *)
  3734.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  3735.   ac_dummy="$PATH"
  3736.   for ac_dir in $ac_dummy; do 
  3737.     test -z "$ac_dir" && ac_dir=.
  3738.     if test -f $ac_dir/$ac_word; then
  3739.       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
  3740.       break
  3741.     fi
  3742.   done
  3743.   IFS="$ac_save_ifs"
  3744.   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
  3745.   ;;
  3746. esac
  3747. fi
  3748. GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
  3749. if test -n "$GTK_CONFIG"; then
  3750.   echo "$ac_t""$GTK_CONFIG" 1>&6
  3751. else
  3752.   echo "$ac_t""no" 1>&6
  3753. fi
  3754.  
  3755.     if test "X$GTK_CONFIG" = "Xno"; then
  3756.             # Extract the first word of "gtk12-config", so it can be a program name with args.
  3757. set dummy gtk12-config; ac_word=$2
  3758. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3759. echo "configure:3760: checking for $ac_word" >&5
  3760. if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
  3761.   echo $ac_n "(cached) $ac_c" 1>&6
  3762. else
  3763.   case "$GTK12_CONFIG" in
  3764.   /*)
  3765.   ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
  3766.   ;;
  3767.   ?:/*)             
  3768.   ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
  3769.   ;;
  3770.   *)
  3771.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  3772.   ac_dummy="$PATH"
  3773.   for ac_dir in $ac_dummy; do 
  3774.     test -z "$ac_dir" && ac_dir=.
  3775.     if test -f $ac_dir/$ac_word; then
  3776.       ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
  3777.       break
  3778.     fi
  3779.   done
  3780.   IFS="$ac_save_ifs"
  3781.   test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
  3782.   ;;
  3783. esac
  3784. fi
  3785. GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
  3786. if test -n "$GTK12_CONFIG"; then
  3787.   echo "$ac_t""$GTK12_CONFIG" 1>&6
  3788. else
  3789.   echo "$ac_t""no" 1>&6
  3790. fi
  3791.  
  3792.       GTK_CONFIG="$GTK12_CONFIG"
  3793.     fi
  3794.   else
  3795.     echo "$ac_t""Using GTK configuration program $GTK_CONFIG" 1>&6
  3796.   fi
  3797.   if test "X$PKG_CONFIG" = "X"; then
  3798.     # Extract the first word of "pkg-config", so it can be a program name with args.
  3799. set dummy pkg-config; ac_word=$2
  3800. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3801. echo "configure:3802: checking for $ac_word" >&5
  3802. if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
  3803.   echo $ac_n "(cached) $ac_c" 1>&6
  3804. else
  3805.   case "$PKG_CONFIG" in
  3806.   /*)
  3807.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  3808.   ;;
  3809.   ?:/*)             
  3810.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
  3811.   ;;
  3812.   *)
  3813.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  3814.   ac_dummy="$PATH"
  3815.   for ac_dir in $ac_dummy; do 
  3816.     test -z "$ac_dir" && ac_dir=.
  3817.     if test -f $ac_dir/$ac_word; then
  3818.       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
  3819.       break
  3820.     fi
  3821.   done
  3822.   IFS="$ac_save_ifs"
  3823.   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  3824.   ;;
  3825. esac
  3826. fi
  3827. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  3828. if test -n "$PKG_CONFIG"; then
  3829.   echo "$ac_t""$PKG_CONFIG" 1>&6
  3830. else
  3831.   echo "$ac_t""no" 1>&6
  3832. fi
  3833.  
  3834.   fi
  3835.  
  3836.   if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
  3837.             if test "X$SKIP_GTK2" != "XYES"; then
  3838.       
  3839.   if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
  3840.   {
  3841.     min_gtk_version=2.2.0
  3842.     echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
  3843. echo "configure:3844: checking for GTK - version >= $min_gtk_version" >&5
  3844.     no_gtk=""
  3845.     if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
  3846.       && $PKG_CONFIG --exists gtk+-2.0; then
  3847.     {
  3848.                         GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
  3849.       GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
  3850.       gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
  3851.          sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  3852.       gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
  3853.          sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  3854.       gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
  3855.          sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  3856.     }
  3857.     elif test "X$GTK_CONFIG" != "Xno"; then
  3858.     {
  3859.       GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
  3860.       GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
  3861.       gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
  3862.          sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  3863.       gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
  3864.          sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  3865.       gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
  3866.          sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  3867.     }
  3868.     else
  3869.       no_gtk=yes
  3870.     fi
  3871.  
  3872.     if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
  3873.     {
  3874.       ac_save_CFLAGS="$CFLAGS"
  3875.       ac_save_LIBS="$LIBS"
  3876.       CFLAGS="$CFLAGS $GTK_CFLAGS"
  3877.       LIBS="$LIBS $GTK_LIBS"
  3878.  
  3879.                               rm -f conf.gtktest
  3880.       if test "$cross_compiling" = yes; then
  3881.   echo $ac_n "cross compiling; assumed OK... $ac_c"
  3882. else
  3883.   cat > conftest.$ac_ext <<EOF
  3884. #line 3885 "configure"
  3885. #include "confdefs.h"
  3886.  
  3887. #include <gtk/gtk.h>
  3888. #include <stdio.h>
  3889.  
  3890. int
  3891. main ()
  3892. {
  3893. int major, minor, micro;
  3894. char *tmp_version;
  3895.  
  3896. system ("touch conf.gtktest");
  3897.  
  3898. /* HP/UX 9 (%@#!) writes to sscanf strings */
  3899. tmp_version = g_strdup("$min_gtk_version");
  3900. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
  3901.    printf("%s, bad version string\n", "$min_gtk_version");
  3902.    exit(1);
  3903.  }
  3904.  
  3905. if ((gtk_major_version > major) ||
  3906.     ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
  3907.     ((gtk_major_version == major) && (gtk_minor_version == minor) &&
  3908.                      (gtk_micro_version >= micro)))
  3909. {
  3910.     return 0;
  3911. }
  3912. return 1;
  3913. }
  3914.  
  3915. EOF
  3916. if { (eval echo configure:3917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3917. then
  3918.   :
  3919. else
  3920.   echo "configure: failed program was:" >&5
  3921.   cat conftest.$ac_ext >&5
  3922.   rm -fr conftest*
  3923.   no_gtk=yes
  3924. fi
  3925. rm -fr conftest*
  3926. fi
  3927.  
  3928.       CFLAGS="$ac_save_CFLAGS"
  3929.       LIBS="$ac_save_LIBS"
  3930.     }
  3931.     fi
  3932.     if test "x$no_gtk" = x ; then
  3933.       if test "x$enable_gtktest" = "xyes"; then
  3934.     echo "$ac_t""yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" 1>&6
  3935.       else
  3936.     echo "$ac_t""found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" 1>&6
  3937.       fi
  3938.       GTK_LIBNAME="$GTK_LIBS"
  3939.           GUI_INC_LOC="$GTK_CFLAGS"
  3940.     else
  3941.     {
  3942.       echo "$ac_t""no" 1>&6
  3943.       GTK_CFLAGS=""
  3944.       GTK_LIBS=""
  3945.       :
  3946.     }
  3947.     fi
  3948.   }
  3949.   else
  3950.     GTK_CFLAGS=""
  3951.     GTK_LIBS=""
  3952.     :
  3953.   fi
  3954.   
  3955.   
  3956.   rm -f conf.gtktest
  3957.  
  3958.       if test "x$GTK_CFLAGS" != "x"; then
  3959.     SKIP_ATHENA=YES
  3960.     SKIP_NEXTAW=YES
  3961.     SKIP_MOTIF=YES
  3962.     GUITYPE=GTK
  3963.     
  3964.       fi
  3965.     fi
  3966.  
  3967.                 if test "x$GUITYPE" != "xGTK"; then
  3968.       SKIP_GTK2=YES
  3969.       
  3970.   if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
  3971.   {
  3972.     min_gtk_version=1.1.16
  3973.     echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
  3974. echo "configure:3975: checking for GTK - version >= $min_gtk_version" >&5
  3975.     no_gtk=""
  3976.     if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
  3977.       && $PKG_CONFIG --exists gtk+-2.0; then
  3978.     {
  3979.                         GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
  3980.       GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
  3981.       gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
  3982.          sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  3983.       gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
  3984.          sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  3985.       gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
  3986.          sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  3987.     }
  3988.     elif test "X$GTK_CONFIG" != "Xno"; then
  3989.     {
  3990.       GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
  3991.       GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
  3992.       gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
  3993.          sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  3994.       gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
  3995.          sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  3996.       gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
  3997.          sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  3998.     }
  3999.     else
  4000.       no_gtk=yes
  4001.     fi
  4002.  
  4003.     if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
  4004.     {
  4005.       ac_save_CFLAGS="$CFLAGS"
  4006.       ac_save_LIBS="$LIBS"
  4007.       CFLAGS="$CFLAGS $GTK_CFLAGS"
  4008.       LIBS="$LIBS $GTK_LIBS"
  4009.  
  4010.                               rm -f conf.gtktest
  4011.       if test "$cross_compiling" = yes; then
  4012.   echo $ac_n "cross compiling; assumed OK... $ac_c"
  4013. else
  4014.   cat > conftest.$ac_ext <<EOF
  4015. #line 4016 "configure"
  4016. #include "confdefs.h"
  4017.  
  4018. #include <gtk/gtk.h>
  4019. #include <stdio.h>
  4020.  
  4021. int
  4022. main ()
  4023. {
  4024. int major, minor, micro;
  4025. char *tmp_version;
  4026.  
  4027. system ("touch conf.gtktest");
  4028.  
  4029. /* HP/UX 9 (%@#!) writes to sscanf strings */
  4030. tmp_version = g_strdup("$min_gtk_version");
  4031. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
  4032.    printf("%s, bad version string\n", "$min_gtk_version");
  4033.    exit(1);
  4034.  }
  4035.  
  4036. if ((gtk_major_version > major) ||
  4037.     ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
  4038.     ((gtk_major_version == major) && (gtk_minor_version == minor) &&
  4039.                      (gtk_micro_version >= micro)))
  4040. {
  4041.     return 0;
  4042. }
  4043. return 1;
  4044. }
  4045.  
  4046. EOF
  4047. if { (eval echo configure:4048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4048. then
  4049.   :
  4050. else
  4051.   echo "configure: failed program was:" >&5
  4052.   cat conftest.$ac_ext >&5
  4053.   rm -fr conftest*
  4054.   no_gtk=yes
  4055. fi
  4056. rm -fr conftest*
  4057. fi
  4058.  
  4059.       CFLAGS="$ac_save_CFLAGS"
  4060.       LIBS="$ac_save_LIBS"
  4061.     }
  4062.     fi
  4063.     if test "x$no_gtk" = x ; then
  4064.       if test "x$enable_gtktest" = "xyes"; then
  4065.     echo "$ac_t""yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" 1>&6
  4066.       else
  4067.     echo "$ac_t""found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" 1>&6
  4068.       fi
  4069.       GTK_LIBNAME="$GTK_LIBS"
  4070.           GUI_INC_LOC="$GTK_CFLAGS"
  4071.     else
  4072.     {
  4073.       echo "$ac_t""no" 1>&6
  4074.       GTK_CFLAGS=""
  4075.       GTK_LIBS=""
  4076.       :
  4077.     }
  4078.     fi
  4079.   }
  4080.   else
  4081.     GTK_CFLAGS=""
  4082.     GTK_LIBS=""
  4083.     :
  4084.   fi
  4085.   
  4086.   
  4087.   rm -f conf.gtktest
  4088.  
  4089.       if test "x$GTK_CFLAGS" != "x"; then
  4090.     SKIP_ATHENA=YES
  4091.     SKIP_NEXTAW=YES
  4092.     SKIP_MOTIF=YES
  4093.     GUITYPE=GTK
  4094.     
  4095.       fi
  4096.     fi
  4097.   fi
  4098.     if test "x$GUITYPE" = "xGTK"; then
  4099.     if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
  4100.      -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
  4101.       echo "$ac_t""this GTK version is old; version 1.2.3 or later is recommended" 1>&6
  4102.     else
  4103.     {
  4104.       if test "0$gtk_major_version" -ge 2; then
  4105.     cat >> confdefs.h <<\EOF
  4106. #define HAVE_GTK2 1
  4107. EOF
  4108.  
  4109.     if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
  4110.         || test "0$gtk_minor_version" -ge 2 \
  4111.         || test "0$gtk_major_version" -gt 2; then
  4112.       cat >> confdefs.h <<\EOF
  4113. #define HAVE_GTK_MULTIHEAD 1
  4114. EOF
  4115.  
  4116.     fi
  4117.       fi
  4118.                         if test -z "$SKIP_GNOME"; then
  4119.       {
  4120.     
  4121.   
  4122.   
  4123.   
  4124.  
  4125.   # Check whether --with-gnome-includes or --without-gnome-includes was given.
  4126. if test "${with_gnome_includes+set}" = set; then
  4127.   withval="$with_gnome_includes"
  4128.   CFLAGS="$CFLAGS -I$withval"
  4129.   
  4130. fi
  4131.  
  4132.  
  4133.   # Check whether --with-gnome-libs or --without-gnome-libs was given.
  4134. if test "${with_gnome_libs+set}" = set; then
  4135.   withval="$with_gnome_libs"
  4136.   LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
  4137.   
  4138. fi
  4139.  
  4140.  
  4141.   # Check whether --with-gnome or --without-gnome was given.
  4142. if test "${with_gnome+set}" = set; then
  4143.   withval="$with_gnome"
  4144.   if test x$withval = xyes; then
  4145.       want_gnome=yes
  4146.       have_gnome=yes
  4147.     else
  4148.       if test "x$withval" = xno; then
  4149.     want_gnome=no
  4150.       else
  4151.     want_gnome=yes
  4152.     LDFLAGS="$LDFLAGS -L$withval/lib"
  4153.     CFLAGS="$CFLAGS -I$withval/include"
  4154.     gnome_prefix=$withval/lib
  4155.       fi
  4156.     fi
  4157. else
  4158.   want_gnome=yes
  4159. fi
  4160.  
  4161.  
  4162.   if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
  4163.   {
  4164.     echo $ac_n "checking for libgnomeui-2.0""... $ac_c" 1>&6
  4165. echo "configure:4166: checking for libgnomeui-2.0" >&5
  4166.     if $PKG_CONFIG --exists libgnomeui-2.0; then
  4167.       echo "$ac_t""yes" 1>&6
  4168.       GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
  4169.       GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
  4170.       GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
  4171.       have_gnome=yes
  4172.     else
  4173.       echo "$ac_t""not found" 1>&6
  4174.       if test "x" = xfail; then
  4175.     { echo "configure: error: Could not find libgnomeui-2.0 via pkg-config" 1>&2; exit 1; }
  4176.       fi
  4177.     fi
  4178.   }
  4179.   elif test "x$want_gnome" = xyes; then
  4180.   {
  4181.     # Extract the first word of "gnome-config", so it can be a program name with args.
  4182. set dummy gnome-config; ac_word=$2
  4183. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  4184. echo "configure:4185: checking for $ac_word" >&5
  4185. if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
  4186.   echo $ac_n "(cached) $ac_c" 1>&6
  4187. else
  4188.   case "$GNOME_CONFIG" in
  4189.   /*)
  4190.   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
  4191.   ;;
  4192.   ?:/*)             
  4193.   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
  4194.   ;;
  4195.   *)
  4196.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  4197.   ac_dummy="$PATH"
  4198.   for ac_dir in $ac_dummy; do 
  4199.     test -z "$ac_dir" && ac_dir=.
  4200.     if test -f $ac_dir/$ac_word; then
  4201.       ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
  4202.       break
  4203.     fi
  4204.   done
  4205.   IFS="$ac_save_ifs"
  4206.   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
  4207.   ;;
  4208. esac
  4209. fi
  4210. GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
  4211. if test -n "$GNOME_CONFIG"; then
  4212.   echo "$ac_t""$GNOME_CONFIG" 1>&6
  4213. else
  4214.   echo "$ac_t""no" 1>&6
  4215. fi
  4216.  
  4217.     if test "$GNOME_CONFIG" = "no"; then
  4218.       no_gnome_config="yes"
  4219.     else
  4220.       echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6
  4221. echo "configure:4222: checking if $GNOME_CONFIG works" >&5
  4222.       if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
  4223.     echo "$ac_t""yes" 1>&6
  4224.     GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
  4225.     GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
  4226.     GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
  4227.     have_gnome=yes
  4228.       else
  4229.     echo "$ac_t""no" 1>&6
  4230.     no_gnome_config="yes"
  4231.       fi
  4232.     fi
  4233.  
  4234.     if test x$exec_prefix = xNONE; then
  4235.       if test x$prefix = xNONE; then
  4236.     gnome_prefix=$ac_default_prefix/lib
  4237.       else
  4238.     gnome_prefix=$prefix/lib
  4239.       fi
  4240.     else
  4241.       gnome_prefix=`eval echo \`echo $libdir\``
  4242.     fi
  4243.  
  4244.     if test "$no_gnome_config" = "yes"; then
  4245.       echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6
  4246. echo "configure:4247: checking for gnomeConf.sh file in $gnome_prefix" >&5
  4247.       if test -f $gnome_prefix/gnomeConf.sh; then
  4248.     echo "$ac_t""found" 1>&6
  4249.     echo "loading gnome configuration from" \
  4250.       "$gnome_prefix/gnomeConf.sh"
  4251.     . $gnome_prefix/gnomeConf.sh
  4252.     have_gnome=yes
  4253.       else
  4254.     echo "$ac_t""not found" 1>&6
  4255.     if test x = xfail; then
  4256.       { echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; }
  4257.     fi
  4258.       fi
  4259.     fi
  4260.   }
  4261.   fi
  4262.  
  4263.     if test x$have_gnome = xyes ; then
  4264.       cat >> confdefs.h <<\EOF
  4265. #define FEAT_GUI_GNOME 1
  4266. EOF
  4267.  
  4268.       GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
  4269.       GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
  4270.     fi
  4271.       }
  4272.       fi
  4273.     }
  4274.     fi
  4275.   fi
  4276. fi
  4277.  
  4278.  
  4279. if test -z "$SKIP_MOTIF"; then
  4280.   gui_XXX="/usr/XXX/Motif* /usr/Motif*/XXX /usr/XXX /usr/shlib /usr/X11*/XXX /usr/XXX/X11* /usr/dt/XXX /local/Motif*/XXX /local/XXX/Motif* /usr/local/Motif*/XXX /usr/local/XXX/Motif* /usr/local/XXX /usr/local/X11*/XXX /usr/local/LessTif/Motif*/XXX $MOTIFHOME/XXX"
  4281.     GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
  4282.  
  4283.   echo $ac_n "checking for location of Motif GUI includes""... $ac_c" 1>&6
  4284. echo "configure:4285: checking for location of Motif GUI includes" >&5
  4285.   gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
  4286.   GUI_INC_LOC=
  4287.   for try in $gui_includes; do
  4288.     if test -f "$try/Xm/Xm.h"; then
  4289.       GUI_INC_LOC=$try
  4290.     fi
  4291.   done
  4292.   if test -n "$GUI_INC_LOC"; then
  4293.     if test "$GUI_INC_LOC" = /usr/include; then
  4294.       GUI_INC_LOC=
  4295.       echo "$ac_t""in default path" 1>&6
  4296.     else
  4297.       echo "$ac_t""$GUI_INC_LOC" 1>&6
  4298.     fi
  4299.   else
  4300.     echo "$ac_t""<not found>" 1>&6
  4301.     SKIP_MOTIF=YES
  4302.   fi
  4303. fi
  4304.  
  4305.  
  4306. if test -z "$SKIP_MOTIF"; then
  4307.   echo $ac_n "checking --with-motif-lib argument""... $ac_c" 1>&6
  4308. echo "configure:4309: checking --with-motif-lib argument" >&5
  4309.   # Check whether --with-motif-lib or --without-motif-lib was given.
  4310. if test "${with_motif_lib+set}" = set; then
  4311.   withval="$with_motif_lib"
  4312.    MOTIF_LIBNAME="${withval}"  
  4313. fi
  4314.  
  4315.  
  4316.   if test -n "$MOTIF_LIBNAME"; then
  4317.     echo "$ac_t""$MOTIF_LIBNAME" 1>&6
  4318.     GUI_LIB_LOC=
  4319.   else
  4320.     echo "$ac_t""no" 1>&6
  4321.  
  4322.         GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
  4323.  
  4324.     echo $ac_n "checking for location of Motif GUI libs""... $ac_c" 1>&6
  4325. echo "configure:4326: checking for location of Motif GUI libs" >&5
  4326.     gui_libs="`echo $x_libraries|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC"
  4327.     GUI_LIB_LOC=
  4328.     for try in $gui_libs; do
  4329.       for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl; do
  4330.     if test -f "$libtry"; then
  4331.       GUI_LIB_LOC=$try
  4332.     fi
  4333.       done
  4334.     done
  4335.     if test -n "$GUI_LIB_LOC"; then
  4336.             if test "$GUI_LIB_LOC" = /usr/lib; then
  4337.     GUI_LIB_LOC=
  4338.     echo "$ac_t""in default path" 1>&6
  4339.       else
  4340.     if test -n "$GUI_LIB_LOC"; then
  4341.       echo "$ac_t""$GUI_LIB_LOC" 1>&6
  4342.       if test "`(uname) 2>/dev/null`" = SunOS &&
  4343.                      uname -r | grep '^5' >/dev/null; then
  4344.         GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
  4345.       fi
  4346.     fi
  4347.       fi
  4348.       MOTIF_LIBNAME=-lXm
  4349.     else
  4350.       echo "$ac_t""<not found>" 1>&6
  4351.       SKIP_MOTIF=YES
  4352.     fi
  4353.   fi
  4354. fi
  4355.  
  4356. if test -z "$SKIP_MOTIF"; then
  4357.   SKIP_ATHENA=YES
  4358.   SKIP_NEXTAW=YES
  4359.   GUITYPE=MOTIF
  4360.   
  4361. fi
  4362.  
  4363.  
  4364. GUI_X_LIBS=
  4365.  
  4366. if test -z "$SKIP_ATHENA"; then
  4367.   echo $ac_n "checking if Athena header files can be found""... $ac_c" 1>&6
  4368. echo "configure:4369: checking if Athena header files can be found" >&5
  4369.   cflags_save=$CFLAGS
  4370.   CFLAGS="$CFLAGS $X_CFLAGS"
  4371.   cat > conftest.$ac_ext <<EOF
  4372. #line 4373 "configure"
  4373. #include "confdefs.h"
  4374.  
  4375. #include <X11/Intrinsic.h>
  4376. #include <X11/Xaw/Paned.h>
  4377. int main() {
  4378.  
  4379. ; return 0; }
  4380. EOF
  4381. if { (eval echo configure:4382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4382.   rm -rf conftest*
  4383.   echo "$ac_t""yes" 1>&6
  4384. else
  4385.   echo "configure: failed program was:" >&5
  4386.   cat conftest.$ac_ext >&5
  4387.   rm -rf conftest*
  4388.   echo "$ac_t""no" 1>&6; SKIP_ATHENA=YES 
  4389. fi
  4390. rm -f conftest*
  4391.   CFLAGS=$cflags_save
  4392. fi
  4393.  
  4394. if test -z "$SKIP_ATHENA"; then
  4395.   GUITYPE=ATHENA
  4396. fi
  4397.  
  4398. if test -z "$SKIP_NEXTAW"; then
  4399.   echo $ac_n "checking if neXtaw header files can be found""... $ac_c" 1>&6
  4400. echo "configure:4401: checking if neXtaw header files can be found" >&5
  4401.   cflags_save=$CFLAGS
  4402.   CFLAGS="$CFLAGS $X_CFLAGS"
  4403.   cat > conftest.$ac_ext <<EOF
  4404. #line 4405 "configure"
  4405. #include "confdefs.h"
  4406.  
  4407. #include <X11/Intrinsic.h>
  4408. #include <X11/neXtaw/Paned.h>
  4409. int main() {
  4410.  
  4411. ; return 0; }
  4412. EOF
  4413. if { (eval echo configure:4414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4414.   rm -rf conftest*
  4415.   echo "$ac_t""yes" 1>&6
  4416. else
  4417.   echo "configure: failed program was:" >&5
  4418.   cat conftest.$ac_ext >&5
  4419.   rm -rf conftest*
  4420.   echo "$ac_t""no" 1>&6; SKIP_NEXTAW=YES 
  4421. fi
  4422. rm -f conftest*
  4423.   CFLAGS=$cflags_save
  4424. fi
  4425.  
  4426. if test -z "$SKIP_NEXTAW"; then
  4427.   GUITYPE=NEXTAW
  4428. fi
  4429.  
  4430. if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
  4431.       if test -n "$GUI_INC_LOC"; then
  4432.     GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
  4433.   fi
  4434.   if test -n "$GUI_LIB_LOC"; then
  4435.     GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
  4436.   fi
  4437.  
  4438.     ldflags_save=$LDFLAGS
  4439.   LDFLAGS="$X_LIBS $LDFLAGS"
  4440.   echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
  4441. echo "configure:4442: checking for XShapeQueryExtension in -lXext" >&5
  4442. ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
  4443. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4444.   echo $ac_n "(cached) $ac_c" 1>&6
  4445. else
  4446.   ac_save_LIBS="$LIBS"
  4447. LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
  4448. cat > conftest.$ac_ext <<EOF
  4449. #line 4450 "configure"
  4450. #include "confdefs.h"
  4451. /* Override any gcc2 internal prototype to avoid an error.  */
  4452. /* We use char because int might match the return type of a gcc2
  4453.     builtin and then its argument prototype would still apply.  */
  4454. char XShapeQueryExtension();
  4455.  
  4456. int main() {
  4457. XShapeQueryExtension()
  4458. ; return 0; }
  4459. EOF
  4460. if { (eval echo configure:4461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4461.   rm -rf conftest*
  4462.   eval "ac_cv_lib_$ac_lib_var=yes"
  4463. else
  4464.   echo "configure: failed program was:" >&5
  4465.   cat conftest.$ac_ext >&5
  4466.   rm -rf conftest*
  4467.   eval "ac_cv_lib_$ac_lib_var=no"
  4468. fi
  4469. rm -f conftest*
  4470. LIBS="$ac_save_LIBS"
  4471.  
  4472. fi
  4473. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4474.   echo "$ac_t""yes" 1>&6
  4475.   GUI_X_LIBS="-lXext"
  4476. else
  4477.   echo "$ac_t""no" 1>&6
  4478. fi
  4479.  
  4480.   echo $ac_n "checking for XmuCreateStippledPixmap in -lXmu""... $ac_c" 1>&6
  4481. echo "configure:4482: checking for XmuCreateStippledPixmap in -lXmu" >&5
  4482. ac_lib_var=`echo Xmu'_'XmuCreateStippledPixmap | sed 'y%./+-%__p_%'`
  4483. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4484.   echo $ac_n "(cached) $ac_c" 1>&6
  4485. else
  4486.   ac_save_LIBS="$LIBS"
  4487. LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
  4488. cat > conftest.$ac_ext <<EOF
  4489. #line 4490 "configure"
  4490. #include "confdefs.h"
  4491. /* Override any gcc2 internal prototype to avoid an error.  */
  4492. /* We use char because int might match the return type of a gcc2
  4493.     builtin and then its argument prototype would still apply.  */
  4494. char XmuCreateStippledPixmap();
  4495.  
  4496. int main() {
  4497. XmuCreateStippledPixmap()
  4498. ; return 0; }
  4499. EOF
  4500. if { (eval echo configure:4501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4501.   rm -rf conftest*
  4502.   eval "ac_cv_lib_$ac_lib_var=yes"
  4503. else
  4504.   echo "configure: failed program was:" >&5
  4505.   cat conftest.$ac_ext >&5
  4506.   rm -rf conftest*
  4507.   eval "ac_cv_lib_$ac_lib_var=no"
  4508. fi
  4509. rm -f conftest*
  4510. LIBS="$ac_save_LIBS"
  4511.  
  4512. fi
  4513. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4514.   echo "$ac_t""yes" 1>&6
  4515.   GUI_X_LIBS="-lXmu $GUI_X_LIBS"
  4516. else
  4517.   echo "$ac_t""no" 1>&6
  4518. fi
  4519.  
  4520.   if test -z "$SKIP_MOTIF"; then
  4521.     echo $ac_n "checking for XpEndJob in -lXp""... $ac_c" 1>&6
  4522. echo "configure:4523: checking for XpEndJob in -lXp" >&5
  4523. ac_lib_var=`echo Xp'_'XpEndJob | sed 'y%./+-%__p_%'`
  4524. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4525.   echo $ac_n "(cached) $ac_c" 1>&6
  4526. else
  4527.   ac_save_LIBS="$LIBS"
  4528. LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
  4529. cat > conftest.$ac_ext <<EOF
  4530. #line 4531 "configure"
  4531. #include "confdefs.h"
  4532. /* Override any gcc2 internal prototype to avoid an error.  */
  4533. /* We use char because int might match the return type of a gcc2
  4534.     builtin and then its argument prototype would still apply.  */
  4535. char XpEndJob();
  4536.  
  4537. int main() {
  4538. XpEndJob()
  4539. ; return 0; }
  4540. EOF
  4541. if { (eval echo configure:4542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4542.   rm -rf conftest*
  4543.   eval "ac_cv_lib_$ac_lib_var=yes"
  4544. else
  4545.   echo "configure: failed program was:" >&5
  4546.   cat conftest.$ac_ext >&5
  4547.   rm -rf conftest*
  4548.   eval "ac_cv_lib_$ac_lib_var=no"
  4549. fi
  4550. rm -f conftest*
  4551. LIBS="$ac_save_LIBS"
  4552.  
  4553. fi
  4554. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4555.   echo "$ac_t""yes" 1>&6
  4556.   GUI_X_LIBS="-lXp $GUI_X_LIBS"
  4557. else
  4558.   echo "$ac_t""no" 1>&6
  4559. fi
  4560.  
  4561.   fi
  4562.   LDFLAGS=$ldflags_save
  4563.  
  4564.     echo $ac_n "checking for extra X11 defines""... $ac_c" 1>&6
  4565. echo "configure:4566: checking for extra X11 defines" >&5
  4566.   NARROW_PROTO=
  4567.   rm -fr conftestdir
  4568.   if mkdir conftestdir; then
  4569.     cd conftestdir
  4570.     cat > Imakefile <<'EOF'
  4571. acfindx:
  4572.     @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
  4573. EOF
  4574.     if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  4575.       eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  4576.     fi
  4577.     cd ..
  4578.     rm -fr conftestdir
  4579.   fi
  4580.   if test -z "$NARROW_PROTO"; then
  4581.     echo "$ac_t""no" 1>&6
  4582.   else
  4583.     echo "$ac_t""$NARROW_PROTO" 1>&6
  4584.   fi
  4585.   
  4586. fi
  4587.  
  4588. if test "$enable_xsmp" = "yes"; then
  4589.   cppflags_save=$CPPFLAGS
  4590.   CPPFLAGS="$CPPFLAGS $X_CFLAGS"
  4591.   for ac_hdr in X11/SM/SMlib.h
  4592. do
  4593. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4594. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4595. echo "configure:4596: checking for $ac_hdr" >&5
  4596. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4597.   echo $ac_n "(cached) $ac_c" 1>&6
  4598. else
  4599.   cat > conftest.$ac_ext <<EOF
  4600. #line 4601 "configure"
  4601. #include "confdefs.h"
  4602. #include <$ac_hdr>
  4603. EOF
  4604. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4605. { (eval echo configure:4606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4606. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4607. if test -z "$ac_err"; then
  4608.   rm -rf conftest*
  4609.   eval "ac_cv_header_$ac_safe=yes"
  4610. else
  4611.   echo "$ac_err" >&5
  4612.   echo "configure: failed program was:" >&5
  4613.   cat conftest.$ac_ext >&5
  4614.   rm -rf conftest*
  4615.   eval "ac_cv_header_$ac_safe=no"
  4616. fi
  4617. rm -f conftest*
  4618. fi
  4619. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4620.   echo "$ac_t""yes" 1>&6
  4621.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4622.   cat >> confdefs.h <<EOF
  4623. #define $ac_tr_hdr 1
  4624. EOF
  4625.  
  4626. else
  4627.   echo "$ac_t""no" 1>&6
  4628. fi
  4629. done
  4630.  
  4631.   CPPFLAGS=$cppflags_save
  4632. fi
  4633.  
  4634.  
  4635. if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
  4636.     cppflags_save=$CPPFLAGS
  4637.   CPPFLAGS="$CPPFLAGS $X_CFLAGS"
  4638.   for ac_hdr in X11/xpm.h X11/Sunkeysym.h
  4639. do
  4640. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4641. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4642. echo "configure:4643: checking for $ac_hdr" >&5
  4643. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4644.   echo $ac_n "(cached) $ac_c" 1>&6
  4645. else
  4646.   cat > conftest.$ac_ext <<EOF
  4647. #line 4648 "configure"
  4648. #include "confdefs.h"
  4649. #include <$ac_hdr>
  4650. EOF
  4651. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4652. { (eval echo configure:4653: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4653. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4654. if test -z "$ac_err"; then
  4655.   rm -rf conftest*
  4656.   eval "ac_cv_header_$ac_safe=yes"
  4657. else
  4658.   echo "$ac_err" >&5
  4659.   echo "configure: failed program was:" >&5
  4660.   cat conftest.$ac_ext >&5
  4661.   rm -rf conftest*
  4662.   eval "ac_cv_header_$ac_safe=no"
  4663. fi
  4664. rm -f conftest*
  4665. fi
  4666. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4667.   echo "$ac_t""yes" 1>&6
  4668.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4669.   cat >> confdefs.h <<EOF
  4670. #define $ac_tr_hdr 1
  4671. EOF
  4672.  
  4673. else
  4674.   echo "$ac_t""no" 1>&6
  4675. fi
  4676. done
  4677.  
  4678.  
  4679.     if test ! "$enable_xim" = "no"; then
  4680.     echo $ac_n "checking for XIMText in X11/Xlib.h""... $ac_c" 1>&6
  4681. echo "configure:4682: checking for XIMText in X11/Xlib.h" >&5
  4682.     cat > conftest.$ac_ext <<EOF
  4683. #line 4684 "configure"
  4684. #include "confdefs.h"
  4685. #include <X11/Xlib.h>
  4686. EOF
  4687. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4688.   egrep "XIMText" >/dev/null 2>&1; then
  4689.   rm -rf conftest*
  4690.   echo "$ac_t""yes" 1>&6
  4691. else
  4692.   rm -rf conftest*
  4693.   echo "$ac_t""no; xim has been disabled" 1>&6; enable_xim = "no"
  4694. fi
  4695. rm -f conftest*
  4696.  
  4697.   fi
  4698.   CPPFLAGS=$cppflags_save
  4699.  
  4700.     if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
  4701.         -a "x$GUITYPE" != "xNONE" ; then
  4702.     echo "$ac_t""X GUI selected; xim has been enabled" 1>&6
  4703.     enable_xim="yes"
  4704.   fi
  4705. fi
  4706.  
  4707. if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
  4708.   cppflags_save=$CPPFLAGS
  4709.   CPPFLAGS="$CPPFLAGS $X_CFLAGS"
  4710.   for ac_hdr in X11/Xmu/Editres.h
  4711. do
  4712. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4713. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4714. echo "configure:4715: checking for $ac_hdr" >&5
  4715. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4716.   echo $ac_n "(cached) $ac_c" 1>&6
  4717. else
  4718.   cat > conftest.$ac_ext <<EOF
  4719. #line 4720 "configure"
  4720. #include "confdefs.h"
  4721. #include <$ac_hdr>
  4722. EOF
  4723. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4724. { (eval echo configure:4725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4725. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4726. if test -z "$ac_err"; then
  4727.   rm -rf conftest*
  4728.   eval "ac_cv_header_$ac_safe=yes"
  4729. else
  4730.   echo "$ac_err" >&5
  4731.   echo "configure: failed program was:" >&5
  4732.   cat conftest.$ac_ext >&5
  4733.   rm -rf conftest*
  4734.   eval "ac_cv_header_$ac_safe=no"
  4735. fi
  4736. rm -f conftest*
  4737. fi
  4738. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4739.   echo "$ac_t""yes" 1>&6
  4740.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4741.   cat >> confdefs.h <<EOF
  4742. #define $ac_tr_hdr 1
  4743. EOF
  4744.  
  4745. else
  4746.   echo "$ac_t""no" 1>&6
  4747. fi
  4748. done
  4749.  
  4750.   CPPFLAGS=$cppflags_save
  4751. fi
  4752.  
  4753. if test -z "$SKIP_MOTIF"; then
  4754.   cppflags_save=$CPPFLAGS
  4755.   CPPFLAGS="$CPPFLAGS $X_CFLAGS"
  4756.   for ac_hdr in Xm/Xm.h Xm/XpmP.h
  4757. do
  4758. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4759. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4760. echo "configure:4761: checking for $ac_hdr" >&5
  4761. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4762.   echo $ac_n "(cached) $ac_c" 1>&6
  4763. else
  4764.   cat > conftest.$ac_ext <<EOF
  4765. #line 4766 "configure"
  4766. #include "confdefs.h"
  4767. #include <$ac_hdr>
  4768. EOF
  4769. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4770. { (eval echo configure:4771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4771. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4772. if test -z "$ac_err"; then
  4773.   rm -rf conftest*
  4774.   eval "ac_cv_header_$ac_safe=yes"
  4775. else
  4776.   echo "$ac_err" >&5
  4777.   echo "configure: failed program was:" >&5
  4778.   cat conftest.$ac_ext >&5
  4779.   rm -rf conftest*
  4780.   eval "ac_cv_header_$ac_safe=no"
  4781. fi
  4782. rm -f conftest*
  4783. fi
  4784. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4785.   echo "$ac_t""yes" 1>&6
  4786.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4787.   cat >> confdefs.h <<EOF
  4788. #define $ac_tr_hdr 1
  4789. EOF
  4790.  
  4791. else
  4792.   echo "$ac_t""no" 1>&6
  4793. fi
  4794. done
  4795.  
  4796.   CPPFLAGS=$cppflags_save
  4797. fi
  4798.  
  4799. if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
  4800.   echo "$ac_t""no GUI selected; xim has been disabled" 1>&6
  4801.   enable_xim="no"
  4802. fi
  4803. if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
  4804.   echo "$ac_t""no GUI selected; fontset has been disabled" 1>&6
  4805.   enable_fontset="no"
  4806. fi
  4807. if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
  4808.   echo "$ac_t""GTK+ 2 GUI selected; fontset has been disabled" 1>&6
  4809.   enable_fontset="no"
  4810. fi
  4811.  
  4812. if test -z "$SKIP_BEOS"; then
  4813.   GUITYPE=BEOSGUI
  4814. fi
  4815.  
  4816. if test -z "$SKIP_PHOTON"; then
  4817.   GUITYPE=PHOTONGUI
  4818. fi
  4819.  
  4820.  
  4821.  
  4822.  
  4823.  
  4824.  
  4825. if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
  4826.   { echo "configure: error: cannot use workshop without Motif" 1>&2; exit 1; }
  4827. fi
  4828.  
  4829. if test "$enable_xim" = "yes"; then
  4830.   cat >> confdefs.h <<\EOF
  4831. #define FEAT_XIM 1
  4832. EOF
  4833.  
  4834. fi
  4835. if test "$enable_fontset" = "yes"; then
  4836.   cat >> confdefs.h <<\EOF
  4837. #define FEAT_XFONTSET 1
  4838. EOF
  4839.  
  4840. fi
  4841.  
  4842. if test "$enable_hangulinput" = "yes"; then
  4843.   if test "x$GUITYPE" = "xNONE"; then
  4844.     echo "$ac_t""no GUI selected; hangul input has been disabled" 1>&6
  4845.     enable_hangulinput=no
  4846.   else
  4847.     cat >> confdefs.h <<\EOF
  4848. #define FEAT_HANGULIN 1
  4849. EOF
  4850.  
  4851.     HANGULIN_SRC=hangulin.c
  4852.     
  4853.     HANGULIN_OBJ=objects/hangulin.o
  4854.     
  4855.   fi
  4856. fi
  4857.  
  4858.  
  4859. echo $ac_n "checking quality of toupper""... $ac_c" 1>&6
  4860. echo "configure:4861: checking quality of toupper" >&5
  4861. if test "$cross_compiling" = yes; then
  4862.   { echo "configure: error: failed to compile test program" 1>&2; exit 1; }
  4863. else
  4864.   cat > conftest.$ac_ext <<EOF
  4865. #line 4866 "configure"
  4866. #include "confdefs.h"
  4867. #include <ctype.h>
  4868. main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
  4869. EOF
  4870. if { (eval echo configure:4871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4871. then
  4872.   cat >> confdefs.h <<\EOF
  4873. #define BROKEN_TOUPPER 1
  4874. EOF
  4875.  echo "$ac_t""bad" 1>&6
  4876. else
  4877.   echo "configure: failed program was:" >&5
  4878.   cat conftest.$ac_ext >&5
  4879.   rm -fr conftest*
  4880.   echo "$ac_t""good" 1>&6
  4881. fi
  4882. rm -fr conftest*
  4883. fi
  4884.  
  4885.  
  4886. echo $ac_n "checking whether __DATE__ and __TIME__ work""... $ac_c" 1>&6
  4887. echo "configure:4888: checking whether __DATE__ and __TIME__ work" >&5
  4888. cat > conftest.$ac_ext <<EOF
  4889. #line 4890 "configure"
  4890. #include "confdefs.h"
  4891.  
  4892. int main() {
  4893. printf("(" __DATE__ " " __TIME__ ")");
  4894. ; return 0; }
  4895. EOF
  4896. if { (eval echo configure:4897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4897.   rm -rf conftest*
  4898.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  4899. #define HAVE_DATE_TIME 1
  4900. EOF
  4901.  
  4902. else
  4903.   echo "configure: failed program was:" >&5
  4904.   cat conftest.$ac_ext >&5
  4905.   rm -rf conftest*
  4906.   echo "$ac_t""no" 1>&6
  4907. fi
  4908. rm -f conftest*
  4909.  
  4910. ac_safe=`echo "elf.h" | sed 'y%./+-%__p_%'`
  4911. echo $ac_n "checking for elf.h""... $ac_c" 1>&6
  4912. echo "configure:4913: checking for elf.h" >&5
  4913. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4914.   echo $ac_n "(cached) $ac_c" 1>&6
  4915. else
  4916.   cat > conftest.$ac_ext <<EOF
  4917. #line 4918 "configure"
  4918. #include "confdefs.h"
  4919. #include <elf.h>
  4920. EOF
  4921. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4922. { (eval echo configure:4923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4923. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4924. if test -z "$ac_err"; then
  4925.   rm -rf conftest*
  4926.   eval "ac_cv_header_$ac_safe=yes"
  4927. else
  4928.   echo "$ac_err" >&5
  4929.   echo "configure: failed program was:" >&5
  4930.   cat conftest.$ac_ext >&5
  4931.   rm -rf conftest*
  4932.   eval "ac_cv_header_$ac_safe=no"
  4933. fi
  4934. rm -f conftest*
  4935. fi
  4936. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4937.   echo "$ac_t""yes" 1>&6
  4938.   HAS_ELF=1
  4939. else
  4940.   echo "$ac_t""no" 1>&6
  4941. fi
  4942.  
  4943. if test "$HAS_ELF" = 1; then
  4944.   echo $ac_n "checking for main in -lelf""... $ac_c" 1>&6
  4945. echo "configure:4946: checking for main in -lelf" >&5
  4946. ac_lib_var=`echo elf'_'main | sed 'y%./+-%__p_%'`
  4947. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4948.   echo $ac_n "(cached) $ac_c" 1>&6
  4949. else
  4950.   ac_save_LIBS="$LIBS"
  4951. LIBS="-lelf  $LIBS"
  4952. cat > conftest.$ac_ext <<EOF
  4953. #line 4954 "configure"
  4954. #include "confdefs.h"
  4955.  
  4956. int main() {
  4957. main()
  4958. ; return 0; }
  4959. EOF
  4960. if { (eval echo configure:4961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4961.   rm -rf conftest*
  4962.   eval "ac_cv_lib_$ac_lib_var=yes"
  4963. else
  4964.   echo "configure: failed program was:" >&5
  4965.   cat conftest.$ac_ext >&5
  4966.   rm -rf conftest*
  4967.   eval "ac_cv_lib_$ac_lib_var=no"
  4968. fi
  4969. rm -f conftest*
  4970. LIBS="$ac_save_LIBS"
  4971.  
  4972. fi
  4973. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4974.   echo "$ac_t""yes" 1>&6
  4975.     ac_tr_lib=HAVE_LIB`echo elf | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  4976.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  4977.   cat >> confdefs.h <<EOF
  4978. #define $ac_tr_lib 1
  4979. EOF
  4980.  
  4981.   LIBS="-lelf $LIBS"
  4982.  
  4983. else
  4984.   echo "$ac_t""no" 1>&6
  4985. fi
  4986.  
  4987. fi
  4988.  
  4989. ac_header_dirent=no
  4990. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  4991. do
  4992. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4993. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  4994. echo "configure:4995: checking for $ac_hdr that defines DIR" >&5
  4995. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  4996.   echo $ac_n "(cached) $ac_c" 1>&6
  4997. else
  4998.   cat > conftest.$ac_ext <<EOF
  4999. #line 5000 "configure"
  5000. #include "confdefs.h"
  5001. #include <sys/types.h>
  5002. #include <$ac_hdr>
  5003. int main() {
  5004. DIR *dirp = 0;
  5005. ; return 0; }
  5006. EOF
  5007. if { (eval echo configure:5008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5008.   rm -rf conftest*
  5009.   eval "ac_cv_header_dirent_$ac_safe=yes"
  5010. else
  5011.   echo "configure: failed program was:" >&5
  5012.   cat conftest.$ac_ext >&5
  5013.   rm -rf conftest*
  5014.   eval "ac_cv_header_dirent_$ac_safe=no"
  5015. fi
  5016. rm -f conftest*
  5017. fi
  5018. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  5019.   echo "$ac_t""yes" 1>&6
  5020.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5021.   cat >> confdefs.h <<EOF
  5022. #define $ac_tr_hdr 1
  5023. EOF
  5024.  ac_header_dirent=$ac_hdr; break
  5025. else
  5026.   echo "$ac_t""no" 1>&6
  5027. fi
  5028. done
  5029. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  5030. if test $ac_header_dirent = dirent.h; then
  5031. echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
  5032. echo "configure:5033: checking for opendir in -ldir" >&5
  5033. ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
  5034. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5035.   echo $ac_n "(cached) $ac_c" 1>&6
  5036. else
  5037.   ac_save_LIBS="$LIBS"
  5038. LIBS="-ldir  $LIBS"
  5039. cat > conftest.$ac_ext <<EOF
  5040. #line 5041 "configure"
  5041. #include "confdefs.h"
  5042. /* Override any gcc2 internal prototype to avoid an error.  */
  5043. /* We use char because int might match the return type of a gcc2
  5044.     builtin and then its argument prototype would still apply.  */
  5045. char opendir();
  5046.  
  5047. int main() {
  5048. opendir()
  5049. ; return 0; }
  5050. EOF
  5051. if { (eval echo configure:5052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5052.   rm -rf conftest*
  5053.   eval "ac_cv_lib_$ac_lib_var=yes"
  5054. else
  5055.   echo "configure: failed program was:" >&5
  5056.   cat conftest.$ac_ext >&5
  5057.   rm -rf conftest*
  5058.   eval "ac_cv_lib_$ac_lib_var=no"
  5059. fi
  5060. rm -f conftest*
  5061. LIBS="$ac_save_LIBS"
  5062.  
  5063. fi
  5064. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5065.   echo "$ac_t""yes" 1>&6
  5066.   LIBS="$LIBS -ldir"
  5067. else
  5068.   echo "$ac_t""no" 1>&6
  5069. fi
  5070.  
  5071. else
  5072. echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
  5073. echo "configure:5074: checking for opendir in -lx" >&5
  5074. ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
  5075. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5076.   echo $ac_n "(cached) $ac_c" 1>&6
  5077. else
  5078.   ac_save_LIBS="$LIBS"
  5079. LIBS="-lx  $LIBS"
  5080. cat > conftest.$ac_ext <<EOF
  5081. #line 5082 "configure"
  5082. #include "confdefs.h"
  5083. /* Override any gcc2 internal prototype to avoid an error.  */
  5084. /* We use char because int might match the return type of a gcc2
  5085.     builtin and then its argument prototype would still apply.  */
  5086. char opendir();
  5087.  
  5088. int main() {
  5089. opendir()
  5090. ; return 0; }
  5091. EOF
  5092. if { (eval echo configure:5093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5093.   rm -rf conftest*
  5094.   eval "ac_cv_lib_$ac_lib_var=yes"
  5095. else
  5096.   echo "configure: failed program was:" >&5
  5097.   cat conftest.$ac_ext >&5
  5098.   rm -rf conftest*
  5099.   eval "ac_cv_lib_$ac_lib_var=no"
  5100. fi
  5101. rm -f conftest*
  5102. LIBS="$ac_save_LIBS"
  5103.  
  5104. fi
  5105. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5106.   echo "$ac_t""yes" 1>&6
  5107.   LIBS="$LIBS -lx"
  5108. else
  5109.   echo "$ac_t""no" 1>&6
  5110. fi
  5111.  
  5112. fi
  5113.  
  5114.  
  5115. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  5116. echo "configure:5117: checking for ANSI C header files" >&5
  5117. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  5118.   echo $ac_n "(cached) $ac_c" 1>&6
  5119. else
  5120.   cat > conftest.$ac_ext <<EOF
  5121. #line 5122 "configure"
  5122. #include "confdefs.h"
  5123. #include <stdlib.h>
  5124. #include <stdarg.h>
  5125. #include <string.h>
  5126. #include <float.h>
  5127. EOF
  5128. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5129. { (eval echo configure:5130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5130. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5131. if test -z "$ac_err"; then
  5132.   rm -rf conftest*
  5133.   ac_cv_header_stdc=yes
  5134. else
  5135.   echo "$ac_err" >&5
  5136.   echo "configure: failed program was:" >&5
  5137.   cat conftest.$ac_ext >&5
  5138.   rm -rf conftest*
  5139.   ac_cv_header_stdc=no
  5140. fi
  5141. rm -f conftest*
  5142.  
  5143. if test $ac_cv_header_stdc = yes; then
  5144.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5145. cat > conftest.$ac_ext <<EOF
  5146. #line 5147 "configure"
  5147. #include "confdefs.h"
  5148. #include <string.h>
  5149. EOF
  5150. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5151.   egrep "memchr" >/dev/null 2>&1; then
  5152.   :
  5153. else
  5154.   rm -rf conftest*
  5155.   ac_cv_header_stdc=no
  5156. fi
  5157. rm -f conftest*
  5158.  
  5159. fi
  5160.  
  5161. if test $ac_cv_header_stdc = yes; then
  5162.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5163. cat > conftest.$ac_ext <<EOF
  5164. #line 5165 "configure"
  5165. #include "confdefs.h"
  5166. #include <stdlib.h>
  5167. EOF
  5168. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5169.   egrep "free" >/dev/null 2>&1; then
  5170.   :
  5171. else
  5172.   rm -rf conftest*
  5173.   ac_cv_header_stdc=no
  5174. fi
  5175. rm -f conftest*
  5176.  
  5177. fi
  5178.  
  5179. if test $ac_cv_header_stdc = yes; then
  5180.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5181. if test "$cross_compiling" = yes; then
  5182.   :
  5183. else
  5184.   cat > conftest.$ac_ext <<EOF
  5185. #line 5186 "configure"
  5186. #include "confdefs.h"
  5187. #include <ctype.h>
  5188. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5189. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5190. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5191. int main () { int i; for (i = 0; i < 256; i++)
  5192. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  5193. exit (0); }
  5194.  
  5195. EOF
  5196. if { (eval echo configure:5197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  5197. then
  5198.   :
  5199. else
  5200.   echo "configure: failed program was:" >&5
  5201.   cat conftest.$ac_ext >&5
  5202.   rm -fr conftest*
  5203.   ac_cv_header_stdc=no
  5204. fi
  5205. rm -fr conftest*
  5206. fi
  5207.  
  5208. fi
  5209. fi
  5210.  
  5211. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  5212. if test $ac_cv_header_stdc = yes; then
  5213.   cat >> confdefs.h <<\EOF
  5214. #define STDC_HEADERS 1
  5215. EOF
  5216.  
  5217. fi
  5218.  
  5219. echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
  5220. echo "configure:5221: checking for sys/wait.h that is POSIX.1 compatible" >&5
  5221. if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  5222.   echo $ac_n "(cached) $ac_c" 1>&6
  5223. else
  5224.   cat > conftest.$ac_ext <<EOF
  5225. #line 5226 "configure"
  5226. #include "confdefs.h"
  5227. #include <sys/types.h>
  5228. #include <sys/wait.h>
  5229. #ifndef WEXITSTATUS
  5230. #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  5231. #endif
  5232. #ifndef WIFEXITED
  5233. #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  5234. #endif
  5235. int main() {
  5236. int s;
  5237. wait (&s);
  5238. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  5239. ; return 0; }
  5240. EOF
  5241. if { (eval echo configure:5242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5242.   rm -rf conftest*
  5243.   ac_cv_header_sys_wait_h=yes
  5244. else
  5245.   echo "configure: failed program was:" >&5
  5246.   cat conftest.$ac_ext >&5
  5247.   rm -rf conftest*
  5248.   ac_cv_header_sys_wait_h=no
  5249. fi
  5250. rm -f conftest*
  5251. fi
  5252.  
  5253. echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
  5254. if test $ac_cv_header_sys_wait_h = yes; then
  5255.   cat >> confdefs.h <<\EOF
  5256. #define HAVE_SYS_WAIT_H 1
  5257. EOF
  5258.  
  5259. fi
  5260.  
  5261.  
  5262. if test $ac_cv_header_sys_wait_h = no; then
  5263.   echo $ac_n "checking for sys/wait.h that defines union wait""... $ac_c" 1>&6
  5264. echo "configure:5265: checking for sys/wait.h that defines union wait" >&5
  5265.   cat > conftest.$ac_ext <<EOF
  5266. #line 5267 "configure"
  5267. #include "confdefs.h"
  5268. #include <sys/wait.h>
  5269. int main() {
  5270. union wait xx, yy; xx = yy
  5271. ; return 0; }
  5272. EOF
  5273. if { (eval echo configure:5274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5274.   rm -rf conftest*
  5275.   echo "$ac_t""yes" 1>&6
  5276.             cat >> confdefs.h <<\EOF
  5277. #define HAVE_SYS_WAIT_H 1
  5278. EOF
  5279.  
  5280.             cat >> confdefs.h <<\EOF
  5281. #define HAVE_UNION_WAIT 1
  5282. EOF
  5283.  
  5284. else
  5285.   echo "configure: failed program was:" >&5
  5286.   cat conftest.$ac_ext >&5
  5287.   rm -rf conftest*
  5288.   echo "$ac_t""no" 1>&6
  5289. fi
  5290. rm -f conftest*
  5291. fi
  5292.  
  5293. for ac_hdr in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
  5294.     termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h \
  5295.     iconv.h langinfo.h unistd.h stropts.h errno.h strings.h \
  5296.     sys/resource.h sys/systeminfo.h locale.h \
  5297.     sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \
  5298.     poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
  5299.     libgen.h util/debug.h util/msg18n.h frame.h \
  5300.     sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h
  5301. do
  5302. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5303. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5304. echo "configure:5305: checking for $ac_hdr" >&5
  5305. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  5306.   echo $ac_n "(cached) $ac_c" 1>&6
  5307. else
  5308.   cat > conftest.$ac_ext <<EOF
  5309. #line 5310 "configure"
  5310. #include "confdefs.h"
  5311. #include <$ac_hdr>
  5312. EOF
  5313. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5314. { (eval echo configure:5315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5315. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5316. if test -z "$ac_err"; then
  5317.   rm -rf conftest*
  5318.   eval "ac_cv_header_$ac_safe=yes"
  5319. else
  5320.   echo "$ac_err" >&5
  5321.   echo "configure: failed program was:" >&5
  5322.   cat conftest.$ac_ext >&5
  5323.   rm -rf conftest*
  5324.   eval "ac_cv_header_$ac_safe=no"
  5325. fi
  5326. rm -f conftest*
  5327. fi
  5328. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5329.   echo "$ac_t""yes" 1>&6
  5330.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5331.   cat >> confdefs.h <<EOF
  5332. #define $ac_tr_hdr 1
  5333. EOF
  5334.  
  5335. else
  5336.   echo "$ac_t""no" 1>&6
  5337. fi
  5338. done
  5339.  
  5340.  
  5341. echo $ac_n "checking if strings.h can be included after string.h""... $ac_c" 1>&6
  5342. echo "configure:5343: checking if strings.h can be included after string.h" >&5
  5343. cppflags_save=$CPPFLAGS
  5344. CPPFLAGS="$CPPFLAGS $X_CFLAGS"
  5345. cat > conftest.$ac_ext <<EOF
  5346. #line 5347 "configure"
  5347. #include "confdefs.h"
  5348.  
  5349. #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
  5350. # define _NO_PROTO    /* like in os_unix.h, causes conflict for AIX (Winn) */
  5351.             /* but don't do it on AIX 5.1 (Uribarri) */
  5352. #endif
  5353. #ifdef HAVE_XM_XM_H
  5354. # include <Xm/Xm.h>    /* This breaks it for HP-UX 11 (Squassabia) */
  5355. #endif
  5356. #ifdef HAVE_STRING_H
  5357. # include <string.h>
  5358. #endif
  5359. #if defined(HAVE_STRINGS_H)
  5360. # include <strings.h>
  5361. #endif
  5362.         
  5363. int main() {
  5364. int i; i = 0;
  5365. ; return 0; }
  5366. EOF
  5367. if { (eval echo configure:5368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5368.   rm -rf conftest*
  5369.   echo "$ac_t""yes" 1>&6
  5370. else
  5371.   echo "configure: failed program was:" >&5
  5372.   cat conftest.$ac_ext >&5
  5373.   rm -rf conftest*
  5374.   cat >> confdefs.h <<\EOF
  5375. #define NO_STRINGS_WITH_STRING_H 1
  5376. EOF
  5377.  
  5378.         echo "$ac_t""no" 1>&6
  5379. fi
  5380. rm -f conftest*
  5381. CPPFLAGS=$cppflags_save
  5382.  
  5383. if test $ac_cv_prog_gcc = yes; then
  5384.     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  5385. echo "configure:5386: checking whether ${CC-cc} needs -traditional" >&5
  5386. if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  5387.   echo $ac_n "(cached) $ac_c" 1>&6
  5388. else
  5389.     ac_pattern="Autoconf.*'x'"
  5390.   cat > conftest.$ac_ext <<EOF
  5391. #line 5392 "configure"
  5392. #include "confdefs.h"
  5393. #include <sgtty.h>
  5394. Autoconf TIOCGETP
  5395. EOF
  5396. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5397.   egrep "$ac_pattern" >/dev/null 2>&1; then
  5398.   rm -rf conftest*
  5399.   ac_cv_prog_gcc_traditional=yes
  5400. else
  5401.   rm -rf conftest*
  5402.   ac_cv_prog_gcc_traditional=no
  5403. fi
  5404. rm -f conftest*
  5405.  
  5406.  
  5407.   if test $ac_cv_prog_gcc_traditional = no; then
  5408.     cat > conftest.$ac_ext <<EOF
  5409. #line 5410 "configure"
  5410. #include "confdefs.h"
  5411. #include <termio.h>
  5412. Autoconf TCGETA
  5413. EOF
  5414. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5415.   egrep "$ac_pattern" >/dev/null 2>&1; then
  5416.   rm -rf conftest*
  5417.   ac_cv_prog_gcc_traditional=yes
  5418. fi
  5419. rm -f conftest*
  5420.  
  5421.   fi
  5422. fi
  5423.  
  5424. echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  5425.   if test $ac_cv_prog_gcc_traditional = yes; then
  5426.     CC="$CC -traditional"
  5427.   fi
  5428. fi
  5429.  
  5430. echo $ac_n "checking for working const""... $ac_c" 1>&6
  5431. echo "configure:5432: checking for working const" >&5
  5432. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  5433.   echo $ac_n "(cached) $ac_c" 1>&6
  5434. else
  5435.   cat > conftest.$ac_ext <<EOF
  5436. #line 5437 "configure"
  5437. #include "confdefs.h"
  5438.  
  5439. int main() {
  5440.  
  5441. /* Ultrix mips cc rejects this.  */
  5442. typedef int charset[2]; const charset x;
  5443. /* SunOS 4.1.1 cc rejects this.  */
  5444. char const *const *ccp;
  5445. char **p;
  5446. /* NEC SVR4.0.2 mips cc rejects this.  */
  5447. struct point {int x, y;};
  5448. static struct point const zero = {0,0};
  5449. /* AIX XL C 1.02.0.0 rejects this.
  5450.    It does not let you subtract one const X* pointer from another in an arm
  5451.    of an if-expression whose if-part is not a constant expression */
  5452. const char *g = "string";
  5453. ccp = &g + (g ? g-g : 0);
  5454. /* HPUX 7.0 cc rejects these. */
  5455. ++ccp;
  5456. p = (char**) ccp;
  5457. ccp = (char const *const *) p;
  5458. { /* SCO 3.2v4 cc rejects this.  */
  5459.   char *t;
  5460.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  5461.  
  5462.   *t++ = 0;
  5463. }
  5464. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  5465.   int x[] = {25, 17};
  5466.   const int *foo = &x[0];
  5467.   ++foo;
  5468. }
  5469. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5470.   typedef const int *iptr;
  5471.   iptr p = 0;
  5472.   ++p;
  5473. }
  5474. { /* AIX XL C 1.02.0.0 rejects this saying
  5475.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5476.   struct s { int j; const int *ap[3]; };
  5477.   struct s *b; b->j = 5;
  5478. }
  5479. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5480.   const int foo = 10;
  5481. }
  5482.  
  5483. ; return 0; }
  5484. EOF
  5485. if { (eval echo configure:5486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5486.   rm -rf conftest*
  5487.   ac_cv_c_const=yes
  5488. else
  5489.   echo "configure: failed program was:" >&5
  5490.   cat conftest.$ac_ext >&5
  5491.   rm -rf conftest*
  5492.   ac_cv_c_const=no
  5493. fi
  5494. rm -f conftest*
  5495. fi
  5496.  
  5497. echo "$ac_t""$ac_cv_c_const" 1>&6
  5498. if test $ac_cv_c_const = no; then
  5499.   cat >> confdefs.h <<\EOF
  5500. #define const 
  5501. EOF
  5502.  
  5503. fi
  5504.  
  5505. echo $ac_n "checking for mode_t""... $ac_c" 1>&6
  5506. echo "configure:5507: checking for mode_t" >&5
  5507. if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
  5508.   echo $ac_n "(cached) $ac_c" 1>&6
  5509. else
  5510.   cat > conftest.$ac_ext <<EOF
  5511. #line 5512 "configure"
  5512. #include "confdefs.h"
  5513. #include <sys/types.h>
  5514. #if STDC_HEADERS
  5515. #include <stdlib.h>
  5516. #include <stddef.h>
  5517. #endif
  5518. EOF
  5519. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5520.   egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  5521.   rm -rf conftest*
  5522.   ac_cv_type_mode_t=yes
  5523. else
  5524.   rm -rf conftest*
  5525.   ac_cv_type_mode_t=no
  5526. fi
  5527. rm -f conftest*
  5528.  
  5529. fi
  5530. echo "$ac_t""$ac_cv_type_mode_t" 1>&6
  5531. if test $ac_cv_type_mode_t = no; then
  5532.   cat >> confdefs.h <<\EOF
  5533. #define mode_t int
  5534. EOF
  5535.  
  5536. fi
  5537.  
  5538. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  5539. echo "configure:5540: checking for off_t" >&5
  5540. if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
  5541.   echo $ac_n "(cached) $ac_c" 1>&6
  5542. else
  5543.   cat > conftest.$ac_ext <<EOF
  5544. #line 5545 "configure"
  5545. #include "confdefs.h"
  5546. #include <sys/types.h>
  5547. #if STDC_HEADERS
  5548. #include <stdlib.h>
  5549. #include <stddef.h>
  5550. #endif
  5551. EOF
  5552. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5553.   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  5554.   rm -rf conftest*
  5555.   ac_cv_type_off_t=yes
  5556. else
  5557.   rm -rf conftest*
  5558.   ac_cv_type_off_t=no
  5559. fi
  5560. rm -f conftest*
  5561.  
  5562. fi
  5563. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  5564. if test $ac_cv_type_off_t = no; then
  5565.   cat >> confdefs.h <<\EOF
  5566. #define off_t long
  5567. EOF
  5568.  
  5569. fi
  5570.  
  5571. echo $ac_n "checking for pid_t""... $ac_c" 1>&6
  5572. echo "configure:5573: checking for pid_t" >&5
  5573. if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  5574.   echo $ac_n "(cached) $ac_c" 1>&6
  5575. else
  5576.   cat > conftest.$ac_ext <<EOF
  5577. #line 5578 "configure"
  5578. #include "confdefs.h"
  5579. #include <sys/types.h>
  5580. #if STDC_HEADERS
  5581. #include <stdlib.h>
  5582. #include <stddef.h>
  5583. #endif
  5584. EOF
  5585. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5586.   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  5587.   rm -rf conftest*
  5588.   ac_cv_type_pid_t=yes
  5589. else
  5590.   rm -rf conftest*
  5591.   ac_cv_type_pid_t=no
  5592. fi
  5593. rm -f conftest*
  5594.  
  5595. fi
  5596. echo "$ac_t""$ac_cv_type_pid_t" 1>&6
  5597. if test $ac_cv_type_pid_t = no; then
  5598.   cat >> confdefs.h <<\EOF
  5599. #define pid_t int
  5600. EOF
  5601.  
  5602. fi
  5603.  
  5604. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  5605. echo "configure:5606: checking for size_t" >&5
  5606. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  5607.   echo $ac_n "(cached) $ac_c" 1>&6
  5608. else
  5609.   cat > conftest.$ac_ext <<EOF
  5610. #line 5611 "configure"
  5611. #include "confdefs.h"
  5612. #include <sys/types.h>
  5613. #if STDC_HEADERS
  5614. #include <stdlib.h>
  5615. #include <stddef.h>
  5616. #endif
  5617. EOF
  5618. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5619.   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  5620.   rm -rf conftest*
  5621.   ac_cv_type_size_t=yes
  5622. else
  5623.   rm -rf conftest*
  5624.   ac_cv_type_size_t=no
  5625. fi
  5626. rm -f conftest*
  5627.  
  5628. fi
  5629. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  5630. if test $ac_cv_type_size_t = no; then
  5631.   cat >> confdefs.h <<\EOF
  5632. #define size_t unsigned
  5633. EOF
  5634.  
  5635. fi
  5636.  
  5637. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  5638. echo "configure:5639: checking for uid_t in sys/types.h" >&5
  5639. if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  5640.   echo $ac_n "(cached) $ac_c" 1>&6
  5641. else
  5642.   cat > conftest.$ac_ext <<EOF
  5643. #line 5644 "configure"
  5644. #include "confdefs.h"
  5645. #include <sys/types.h>
  5646. EOF
  5647. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5648.   egrep "uid_t" >/dev/null 2>&1; then
  5649.   rm -rf conftest*
  5650.   ac_cv_type_uid_t=yes
  5651. else
  5652.   rm -rf conftest*
  5653.   ac_cv_type_uid_t=no
  5654. fi
  5655. rm -f conftest*
  5656.  
  5657. fi
  5658.  
  5659. echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  5660. if test $ac_cv_type_uid_t = no; then
  5661.   cat >> confdefs.h <<\EOF
  5662. #define uid_t int
  5663. EOF
  5664.  
  5665.   cat >> confdefs.h <<\EOF
  5666. #define gid_t int
  5667. EOF
  5668.  
  5669. fi
  5670.  
  5671. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  5672. echo "configure:5673: checking whether time.h and sys/time.h may both be included" >&5
  5673. if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  5674.   echo $ac_n "(cached) $ac_c" 1>&6
  5675. else
  5676.   cat > conftest.$ac_ext <<EOF
  5677. #line 5678 "configure"
  5678. #include "confdefs.h"
  5679. #include <sys/types.h>
  5680. #include <sys/time.h>
  5681. #include <time.h>
  5682. int main() {
  5683. struct tm *tp;
  5684. ; return 0; }
  5685. EOF
  5686. if { (eval echo configure:5687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5687.   rm -rf conftest*
  5688.   ac_cv_header_time=yes
  5689. else
  5690.   echo "configure: failed program was:" >&5
  5691.   cat conftest.$ac_ext >&5
  5692.   rm -rf conftest*
  5693.   ac_cv_header_time=no
  5694. fi
  5695. rm -f conftest*
  5696. fi
  5697.  
  5698. echo "$ac_t""$ac_cv_header_time" 1>&6
  5699. if test $ac_cv_header_time = yes; then
  5700.   cat >> confdefs.h <<\EOF
  5701. #define TIME_WITH_SYS_TIME 1
  5702. EOF
  5703.  
  5704. fi
  5705.  
  5706. echo $ac_n "checking for ino_t""... $ac_c" 1>&6
  5707. echo "configure:5708: checking for ino_t" >&5
  5708. if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
  5709.   echo $ac_n "(cached) $ac_c" 1>&6
  5710. else
  5711.   cat > conftest.$ac_ext <<EOF
  5712. #line 5713 "configure"
  5713. #include "confdefs.h"
  5714. #include <sys/types.h>
  5715. #if STDC_HEADERS
  5716. #include <stdlib.h>
  5717. #include <stddef.h>
  5718. #endif
  5719. EOF
  5720. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5721.   egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  5722.   rm -rf conftest*
  5723.   ac_cv_type_ino_t=yes
  5724. else
  5725.   rm -rf conftest*
  5726.   ac_cv_type_ino_t=no
  5727. fi
  5728. rm -f conftest*
  5729.  
  5730. fi
  5731. echo "$ac_t""$ac_cv_type_ino_t" 1>&6
  5732. if test $ac_cv_type_ino_t = no; then
  5733.   cat >> confdefs.h <<\EOF
  5734. #define ino_t long
  5735. EOF
  5736.  
  5737. fi
  5738.  
  5739. echo $ac_n "checking for dev_t""... $ac_c" 1>&6
  5740. echo "configure:5741: checking for dev_t" >&5
  5741. if eval "test \"`echo '$''{'ac_cv_type_dev_t'+set}'`\" = set"; then
  5742.   echo $ac_n "(cached) $ac_c" 1>&6
  5743. else
  5744.   cat > conftest.$ac_ext <<EOF
  5745. #line 5746 "configure"
  5746. #include "confdefs.h"
  5747. #include <sys/types.h>
  5748. #if STDC_HEADERS
  5749. #include <stdlib.h>
  5750. #include <stddef.h>
  5751. #endif
  5752. EOF
  5753. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5754.   egrep "(^|[^a-zA-Z_0-9])dev_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  5755.   rm -rf conftest*
  5756.   ac_cv_type_dev_t=yes
  5757. else
  5758.   rm -rf conftest*
  5759.   ac_cv_type_dev_t=no
  5760. fi
  5761. rm -f conftest*
  5762.  
  5763. fi
  5764. echo "$ac_t""$ac_cv_type_dev_t" 1>&6
  5765. if test $ac_cv_type_dev_t = no; then
  5766.   cat >> confdefs.h <<\EOF
  5767. #define dev_t unsigned
  5768. EOF
  5769.  
  5770. fi
  5771.  
  5772.  
  5773. echo $ac_n "checking for rlim_t""... $ac_c" 1>&6
  5774. echo "configure:5775: checking for rlim_t" >&5
  5775. if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
  5776.   echo "$ac_t""(cached) $ac_cv_type_rlim_t" 1>&6
  5777. else
  5778.   cat > conftest.$ac_ext <<EOF
  5779. #line 5780 "configure"
  5780. #include "confdefs.h"
  5781.  
  5782. #include <sys/types.h>
  5783. #if STDC_HEADERS
  5784. #include <stdlib.h>
  5785. #include <stddef.h>
  5786. #endif
  5787. #ifdef HAVE_SYS_RESOURCE_H
  5788. #include <sys/resource.h>
  5789. #endif
  5790.       
  5791. EOF
  5792. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5793.   egrep "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  5794.   rm -rf conftest*
  5795.   ac_cv_type_rlim_t=yes
  5796. else
  5797.   rm -rf conftest*
  5798.   ac_cv_type_rlim_t=no
  5799. fi
  5800. rm -f conftest*
  5801.  
  5802.       echo "$ac_t""$ac_cv_type_rlim_t" 1>&6
  5803. fi
  5804. if test $ac_cv_type_rlim_t = no; then
  5805.   cat >> confdefs.h <<\EOF
  5806. #define rlim_t unsigned long
  5807. EOF
  5808. fi
  5809.  
  5810. echo $ac_n "checking for stack_t""... $ac_c" 1>&6
  5811. echo "configure:5812: checking for stack_t" >&5
  5812. if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
  5813.   echo "$ac_t""(cached) $ac_cv_type_stack_t" 1>&6
  5814. else
  5815.   cat > conftest.$ac_ext <<EOF
  5816. #line 5817 "configure"
  5817. #include "confdefs.h"
  5818.  
  5819. #include <sys/types.h>
  5820. #if STDC_HEADERS
  5821. #include <stdlib.h>
  5822. #include <stddef.h>
  5823. #endif
  5824. #include <signal.h>
  5825.       
  5826. EOF
  5827. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5828.   egrep "stack_t" >/dev/null 2>&1; then
  5829.   rm -rf conftest*
  5830.   ac_cv_type_stack_t=yes
  5831. else
  5832.   rm -rf conftest*
  5833.   ac_cv_type_stack_t=no
  5834. fi
  5835. rm -f conftest*
  5836.  
  5837.       echo "$ac_t""$ac_cv_type_stack_t" 1>&6
  5838. fi
  5839. if test $ac_cv_type_stack_t = no; then
  5840.   cat >> confdefs.h <<\EOF
  5841. #define stack_t struct sigaltstack
  5842. EOF
  5843. fi
  5844.  
  5845. echo $ac_n "checking whether stack_t has an ss_base field""... $ac_c" 1>&6
  5846. echo "configure:5847: checking whether stack_t has an ss_base field" >&5
  5847. cat > conftest.$ac_ext <<EOF
  5848. #line 5849 "configure"
  5849. #include "confdefs.h"
  5850.  
  5851. #include <sys/types.h>
  5852. #if STDC_HEADERS
  5853. #include <stdlib.h>
  5854. #include <stddef.h>
  5855. #endif
  5856. #include <signal.h>
  5857. #include "confdefs.h"
  5858.             
  5859. int main() {
  5860. stack_t sigstk; sigstk.ss_base = 0; 
  5861. ; return 0; }
  5862. EOF
  5863. if { (eval echo configure:5864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5864.   rm -rf conftest*
  5865.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  5866. #define HAVE_SS_BASE 1
  5867. EOF
  5868.  
  5869. else
  5870.   echo "configure: failed program was:" >&5
  5871.   cat conftest.$ac_ext >&5
  5872.   rm -rf conftest*
  5873.   echo "$ac_t""no" 1>&6
  5874. fi
  5875. rm -f conftest*
  5876.  
  5877. olibs="$LIBS"
  5878. echo $ac_n "checking --with-tlib argument""... $ac_c" 1>&6
  5879. echo "configure:5880: checking --with-tlib argument" >&5
  5880. # Check whether --with-tlib or --without-tlib was given.
  5881. if test "${with_tlib+set}" = set; then
  5882.   withval="$with_tlib"
  5883.   :
  5884. fi
  5885.  
  5886. if test -n "$with_tlib"; then
  5887.   echo "$ac_t""$with_tlib" 1>&6
  5888.   LIBS="$LIBS -l$with_tlib"
  5889. else
  5890.   echo "$ac_t""automatic terminal library selection" 1>&6
  5891.             case "`uname -s 2>/dev/null`" in
  5892.     OSF1)    tlibs="ncurses curses termlib termcap";;
  5893.     *)    tlibs="ncurses termlib termcap curses";;
  5894.   esac
  5895.   for libname in $tlibs; do
  5896.     echo $ac_n "checking for tgetent in -l${libname}""... $ac_c" 1>&6
  5897. echo "configure:5898: checking for tgetent in -l${libname}" >&5
  5898. ac_lib_var=`echo ${libname}'_'tgetent | sed 'y%./+-%__p_%'`
  5899. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5900.   echo $ac_n "(cached) $ac_c" 1>&6
  5901. else
  5902.   ac_save_LIBS="$LIBS"
  5903. LIBS="-l${libname}  $LIBS"
  5904. cat > conftest.$ac_ext <<EOF
  5905. #line 5906 "configure"
  5906. #include "confdefs.h"
  5907. /* Override any gcc2 internal prototype to avoid an error.  */
  5908. /* We use char because int might match the return type of a gcc2
  5909.     builtin and then its argument prototype would still apply.  */
  5910. char tgetent();
  5911.  
  5912. int main() {
  5913. tgetent()
  5914. ; return 0; }
  5915. EOF
  5916. if { (eval echo configure:5917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5917.   rm -rf conftest*
  5918.   eval "ac_cv_lib_$ac_lib_var=yes"
  5919. else
  5920.   echo "configure: failed program was:" >&5
  5921.   cat conftest.$ac_ext >&5
  5922.   rm -rf conftest*
  5923.   eval "ac_cv_lib_$ac_lib_var=no"
  5924. fi
  5925. rm -f conftest*
  5926. LIBS="$ac_save_LIBS"
  5927.  
  5928. fi
  5929. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5930.   echo "$ac_t""yes" 1>&6
  5931.     ac_tr_lib=HAVE_LIB`echo ${libname} | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  5932.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  5933.   cat >> confdefs.h <<EOF
  5934. #define $ac_tr_lib 1
  5935. EOF
  5936.  
  5937.   LIBS="-l${libname} $LIBS"
  5938.  
  5939. else
  5940.   echo "$ac_t""no" 1>&6
  5941. fi
  5942.  
  5943.     if test "x$olibs" != "x$LIBS"; then
  5944.                         if test "$cross_compiling" = yes; then
  5945.   res="FAIL"
  5946. else
  5947.   cat > conftest.$ac_ext <<EOF
  5948. #line 5949 "configure"
  5949. #include "confdefs.h"
  5950.  
  5951. #ifdef HAVE_TERMCAP_H
  5952. # include <termcap.h>
  5953. #endif
  5954. main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
  5955. EOF
  5956. if { (eval echo configure:5957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  5957. then
  5958.   res="OK"
  5959. else
  5960.   echo "configure: failed program was:" >&5
  5961.   cat conftest.$ac_ext >&5
  5962.   rm -fr conftest*
  5963.   res="FAIL"
  5964. fi
  5965. rm -fr conftest*
  5966. fi
  5967.  
  5968.       if test "$res" = "OK"; then
  5969.     break
  5970.       fi
  5971.       echo "$ac_t""$libname library is not usable" 1>&6
  5972.       LIBS="$olibs"
  5973.     fi
  5974.   done
  5975. fi
  5976. if test "x$olibs" != "x$LIBS"; then
  5977.   echo $ac_n "checking whether we talk terminfo""... $ac_c" 1>&6
  5978. echo "configure:5979: checking whether we talk terminfo" >&5
  5979.   if test "$cross_compiling" = yes; then
  5980.   { echo "configure: error: failed to compile test program." 1>&2; exit 1; }
  5981. else
  5982.   cat > conftest.$ac_ext <<EOF
  5983. #line 5984 "configure"
  5984. #include "confdefs.h"
  5985.  
  5986. #ifdef HAVE_TERMCAP_H
  5987. # include <termcap.h>
  5988. #endif
  5989. main()
  5990. {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
  5991. EOF
  5992. if { (eval echo configure:5993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  5993. then
  5994.   echo "$ac_t""no -- we are in termcap land" 1>&6
  5995. else
  5996.   echo "configure: failed program was:" >&5
  5997.   cat conftest.$ac_ext >&5
  5998.   rm -fr conftest*
  5999.   echo "$ac_t""yes -- terminfo spoken here" 1>&6; cat >> confdefs.h <<\EOF
  6000. #define TERMINFO 1
  6001. EOF
  6002.  
  6003. fi
  6004. rm -fr conftest*
  6005. fi
  6006.  
  6007. else
  6008.   echo "$ac_t""none found" 1>&6
  6009. fi
  6010.  
  6011. if test "x$olibs" != "x$LIBS"; then
  6012.   echo $ac_n "checking what tgetent() returns for an unknown terminal""... $ac_c" 1>&6
  6013. echo "configure:6014: checking what tgetent() returns for an unknown terminal" >&5
  6014.   if test "$cross_compiling" = yes; then
  6015.   { echo "configure: error: failed to compile test program." 1>&2; exit 1; }
  6016. else
  6017.   cat > conftest.$ac_ext <<EOF
  6018. #line 6019 "configure"
  6019. #include "confdefs.h"
  6020.  
  6021. #ifdef HAVE_TERMCAP_H
  6022. # include <termcap.h>
  6023. #endif
  6024. main()
  6025. {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
  6026. EOF
  6027. if { (eval echo configure:6028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  6028. then
  6029.   echo "$ac_t""zero" 1>&6; cat >> confdefs.h <<\EOF
  6030. #define TGETENT_ZERO_ERR 0
  6031. EOF
  6032.  
  6033. else
  6034.   echo "configure: failed program was:" >&5
  6035.   cat conftest.$ac_ext >&5
  6036.   rm -fr conftest*
  6037.   echo "$ac_t""non-zero" 1>&6
  6038. fi
  6039. rm -fr conftest*
  6040. fi
  6041.  
  6042. fi
  6043.  
  6044. echo $ac_n "checking whether termcap.h contains ospeed""... $ac_c" 1>&6
  6045. echo "configure:6046: checking whether termcap.h contains ospeed" >&5
  6046. cat > conftest.$ac_ext <<EOF
  6047. #line 6048 "configure"
  6048. #include "confdefs.h"
  6049.  
  6050. #ifdef HAVE_TERMCAP_H
  6051. # include <termcap.h>
  6052. #endif
  6053.             
  6054. int main() {
  6055. ospeed = 20000
  6056. ; return 0; }
  6057. EOF
  6058. if { (eval echo configure:6059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6059.   rm -rf conftest*
  6060.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  6061. #define HAVE_OSPEED 1
  6062. EOF
  6063.  
  6064. else
  6065.   echo "configure: failed program was:" >&5
  6066.   cat conftest.$ac_ext >&5
  6067.   rm -rf conftest*
  6068.   echo "$ac_t""no" 1>&6
  6069.     echo $ac_n "checking whether ospeed can be extern""... $ac_c" 1>&6
  6070. echo "configure:6071: checking whether ospeed can be extern" >&5
  6071.     cat > conftest.$ac_ext <<EOF
  6072. #line 6073 "configure"
  6073. #include "confdefs.h"
  6074.  
  6075. #ifdef HAVE_TERMCAP_H
  6076. # include <termcap.h>
  6077. #endif
  6078. extern short ospeed;
  6079.             
  6080. int main() {
  6081. ospeed = 20000
  6082. ; return 0; }
  6083. EOF
  6084. if { (eval echo configure:6085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6085.   rm -rf conftest*
  6086.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  6087. #define OSPEED_EXTERN 1
  6088. EOF
  6089.  
  6090. else
  6091.   echo "configure: failed program was:" >&5
  6092.   cat conftest.$ac_ext >&5
  6093.   rm -rf conftest*
  6094.   echo "$ac_t""no" 1>&6
  6095. fi
  6096. rm -f conftest*
  6097.     
  6098. fi
  6099. rm -f conftest*
  6100.  
  6101. echo $ac_n "checking whether termcap.h contains UP, BC and PC""... $ac_c" 1>&6
  6102. echo "configure:6103: checking whether termcap.h contains UP, BC and PC" >&5
  6103. cat > conftest.$ac_ext <<EOF
  6104. #line 6105 "configure"
  6105. #include "confdefs.h"
  6106.  
  6107. #ifdef HAVE_TERMCAP_H
  6108. # include <termcap.h>
  6109. #endif
  6110.             
  6111. int main() {
  6112. if (UP == 0 && BC == 0) PC = 1
  6113. ; return 0; }
  6114. EOF
  6115. if { (eval echo configure:6116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6116.   rm -rf conftest*
  6117.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  6118. #define HAVE_UP_BC_PC 1
  6119. EOF
  6120.  
  6121. else
  6122.   echo "configure: failed program was:" >&5
  6123.   cat conftest.$ac_ext >&5
  6124.   rm -rf conftest*
  6125.   echo "$ac_t""no" 1>&6
  6126.     echo $ac_n "checking whether UP, BC and PC can be extern""... $ac_c" 1>&6
  6127. echo "configure:6128: checking whether UP, BC and PC can be extern" >&5
  6128.     cat > conftest.$ac_ext <<EOF
  6129. #line 6130 "configure"
  6130. #include "confdefs.h"
  6131.  
  6132. #ifdef HAVE_TERMCAP_H
  6133. # include <termcap.h>
  6134. #endif
  6135. extern char *UP, *BC, PC;
  6136.             
  6137. int main() {
  6138. if (UP == 0 && BC == 0) PC = 1
  6139. ; return 0; }
  6140. EOF
  6141. if { (eval echo configure:6142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6142.   rm -rf conftest*
  6143.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  6144. #define UP_BC_PC_EXTERN 1
  6145. EOF
  6146.  
  6147. else
  6148.   echo "configure: failed program was:" >&5
  6149.   cat conftest.$ac_ext >&5
  6150.   rm -rf conftest*
  6151.   echo "$ac_t""no" 1>&6
  6152. fi
  6153. rm -f conftest*
  6154.     
  6155. fi
  6156. rm -f conftest*
  6157.  
  6158. echo $ac_n "checking whether tputs() uses outfuntype""... $ac_c" 1>&6
  6159. echo "configure:6160: checking whether tputs() uses outfuntype" >&5
  6160. cat > conftest.$ac_ext <<EOF
  6161. #line 6162 "configure"
  6162. #include "confdefs.h"
  6163.  
  6164. #ifdef HAVE_TERMCAP_H
  6165. # include <termcap.h>
  6166. #endif
  6167.             
  6168. int main() {
  6169. extern int xx(); tputs("test", 1, (outfuntype)xx)
  6170. ; return 0; }
  6171. EOF
  6172. if { (eval echo configure:6173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  6173.   rm -rf conftest*
  6174.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  6175. #define HAVE_OUTFUNTYPE 1
  6176. EOF
  6177.  
  6178. else
  6179.   echo "configure: failed program was:" >&5
  6180.   cat conftest.$ac_ext >&5
  6181.   rm -rf conftest*
  6182.   echo "$ac_t""no" 1>&6
  6183. fi
  6184. rm -f conftest*
  6185.  
  6186. echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6
  6187. echo "configure:6188: checking whether sys/select.h and sys/time.h may both be included" >&5
  6188. cat > conftest.$ac_ext <<EOF
  6189. #line 6190 "configure"
  6190. #include "confdefs.h"
  6191.  
  6192. #include <sys/types.h>
  6193. #include <sys/time.h>
  6194. #include <sys/select.h>
  6195. int main() {
  6196.  
  6197. ; return 0; }
  6198. EOF
  6199. if { (eval echo configure:6200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  6200.   rm -rf conftest*
  6201.   echo "$ac_t""yes" 1>&6
  6202.             cat >> confdefs.h <<\EOF
  6203. #define SYS_SELECT_WITH_SYS_TIME 1
  6204. EOF
  6205.  
  6206. else
  6207.   echo "configure: failed program was:" >&5
  6208.   cat conftest.$ac_ext >&5
  6209.   rm -rf conftest*
  6210.   echo "$ac_t""no" 1>&6
  6211. fi
  6212. rm -f conftest*
  6213.  
  6214.  
  6215. echo $ac_n "checking for /dev/ptc""... $ac_c" 1>&6
  6216. echo "configure:6217: checking for /dev/ptc" >&5
  6217. if test -r /dev/ptc; then
  6218.   cat >> confdefs.h <<\EOF
  6219. #define HAVE_DEV_PTC 1
  6220. EOF
  6221.  
  6222.   echo "$ac_t""yes" 1>&6
  6223. else
  6224.   echo "$ac_t""no" 1>&6
  6225. fi
  6226.  
  6227. echo $ac_n "checking for SVR4 ptys""... $ac_c" 1>&6
  6228. echo "configure:6229: checking for SVR4 ptys" >&5
  6229. if test -c /dev/ptmx ; then
  6230.   cat > conftest.$ac_ext <<EOF
  6231. #line 6232 "configure"
  6232. #include "confdefs.h"
  6233.  
  6234. int main() {
  6235. ptsname(0);grantpt(0);unlockpt(0);
  6236. ; return 0; }
  6237. EOF
  6238. if { (eval echo configure:6239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6239.   rm -rf conftest*
  6240.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  6241. #define HAVE_SVR4_PTYS 1
  6242. EOF
  6243.  
  6244. else
  6245.   echo "configure: failed program was:" >&5
  6246.   cat conftest.$ac_ext >&5
  6247.   rm -rf conftest*
  6248.   echo "$ac_t""no" 1>&6
  6249. fi
  6250. rm -f conftest*
  6251. else
  6252.   echo "$ac_t""no" 1>&6
  6253. fi
  6254.  
  6255. echo $ac_n "checking for ptyranges""... $ac_c" 1>&6
  6256. echo "configure:6257: checking for ptyranges" >&5
  6257. if test -d /dev/ptym ; then
  6258.   pdir='/dev/ptym'
  6259. else
  6260.   pdir='/dev'
  6261. fi
  6262. cat > conftest.$ac_ext <<EOF
  6263. #line 6264 "configure"
  6264. #include "confdefs.h"
  6265. #ifdef M_UNIX
  6266.    yes;
  6267. #endif
  6268.     
  6269. EOF
  6270. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6271.   egrep "yes" >/dev/null 2>&1; then
  6272.   rm -rf conftest*
  6273.   ptys=`echo /dev/ptyp??`
  6274. else
  6275.   rm -rf conftest*
  6276.   ptys=`echo $pdir/pty??`
  6277. fi
  6278. rm -f conftest*
  6279.  
  6280. if test "$ptys" != "$pdir/pty??" ; then
  6281.   p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
  6282.   p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g'  | sort -u | tr -d '\012'`
  6283.   cat >> confdefs.h <<EOF
  6284. #define PTYRANGE0 "$p0"
  6285. EOF
  6286.  
  6287.   cat >> confdefs.h <<EOF
  6288. #define PTYRANGE1 "$p1"
  6289. EOF
  6290.  
  6291.   echo "$ac_t""$p0 / $p1" 1>&6
  6292. else
  6293.   echo "$ac_t""don't know" 1>&6
  6294. fi
  6295.  
  6296. echo $ac_n "checking default tty permissions/group""... $ac_c" 1>&6
  6297. echo "configure:6298: checking default tty permissions/group" >&5
  6298. rm -f conftest_grp
  6299. if test "$cross_compiling" = yes; then
  6300.   { echo "configure: error: failed to compile test program" 1>&2; exit 1; }
  6301. else
  6302.   cat > conftest.$ac_ext <<EOF
  6303. #line 6304 "configure"
  6304. #include "confdefs.h"
  6305.  
  6306. #include <sys/types.h>
  6307. #include <sys/stat.h>
  6308. #include <stdio.h>
  6309. main()
  6310. {
  6311.   struct stat sb;
  6312.   char *x,*ttyname();
  6313.   int om, m;
  6314.   FILE *fp;
  6315.  
  6316.   if (!(x = ttyname(0))) exit(1);
  6317.   if (stat(x, &sb)) exit(1);
  6318.   om = sb.st_mode;
  6319.   if (om & 002) exit(0);
  6320.   m = system("mesg y");
  6321.   if (m == -1 || m == 127) exit(1);
  6322.   if (stat(x, &sb)) exit(1);
  6323.   m = sb.st_mode;
  6324.   if (chmod(x, om)) exit(1);
  6325.   if (m & 002) exit(0);
  6326.   if (sb.st_gid == getgid()) exit(1);
  6327.   if (!(fp=fopen("conftest_grp", "w")))
  6328.     exit(1);
  6329.   fprintf(fp, "%d\n", sb.st_gid);
  6330.   fclose(fp);
  6331.   exit(0);
  6332. }
  6333.  
  6334. EOF
  6335. if { (eval echo configure:6336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  6336. then
  6337.   
  6338.     if test -f conftest_grp; then
  6339.     ptygrp=`cat conftest_grp`
  6340.     echo "$ac_t""pty mode: 0620, group: $ptygrp" 1>&6
  6341.     cat >> confdefs.h <<\EOF
  6342. #define PTYMODE 0620
  6343. EOF
  6344.  
  6345.     cat >> confdefs.h <<EOF
  6346. #define PTYGROUP $ptygrp
  6347. EOF
  6348.  
  6349.     else
  6350.     echo "$ac_t""ptys are world accessable" 1>&6
  6351.     fi
  6352.  
  6353. else
  6354.   echo "configure: failed program was:" >&5
  6355.   cat conftest.$ac_ext >&5
  6356.   rm -fr conftest*
  6357.   echo "$ac_t""can't determine - assume ptys are world accessable" 1>&6
  6358. fi
  6359. rm -fr conftest*
  6360. fi
  6361.  
  6362. rm -f conftest_grp
  6363.  
  6364.  
  6365. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  6366. echo "configure:6367: checking return type of signal handlers" >&5
  6367. if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  6368.   echo $ac_n "(cached) $ac_c" 1>&6
  6369. else
  6370.   cat > conftest.$ac_ext <<EOF
  6371. #line 6372 "configure"
  6372. #include "confdefs.h"
  6373. #include <sys/types.h>
  6374. #include <signal.h>
  6375. #ifdef signal
  6376. #undef signal
  6377. #endif
  6378. #ifdef __cplusplus
  6379. extern "C" void (*signal (int, void (*)(int)))(int);
  6380. #else
  6381. void (*signal ()) ();
  6382. #endif
  6383.  
  6384. int main() {
  6385. int i;
  6386. ; return 0; }
  6387. EOF
  6388. if { (eval echo configure:6389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  6389.   rm -rf conftest*
  6390.   ac_cv_type_signal=void
  6391. else
  6392.   echo "configure: failed program was:" >&5
  6393.   cat conftest.$ac_ext >&5
  6394.   rm -rf conftest*
  6395.   ac_cv_type_signal=int
  6396. fi
  6397. rm -f conftest*
  6398. fi
  6399.  
  6400. echo "$ac_t""$ac_cv_type_signal" 1>&6
  6401. cat >> confdefs.h <<EOF
  6402. #define RETSIGTYPE $ac_cv_type_signal
  6403. EOF
  6404.  
  6405.  
  6406.  
  6407. if test $ac_cv_type_signal = void; then
  6408.   cat >> confdefs.h <<\EOF
  6409. #define SIGRETURN return
  6410. EOF
  6411.  
  6412. else
  6413.   cat >> confdefs.h <<\EOF
  6414. #define SIGRETURN return 0
  6415. EOF
  6416.  
  6417. fi
  6418.  
  6419. echo $ac_n "checking for struct sigcontext""... $ac_c" 1>&6
  6420. echo "configure:6421: checking for struct sigcontext" >&5
  6421. cat > conftest.$ac_ext <<EOF
  6422. #line 6423 "configure"
  6423. #include "confdefs.h"
  6424.  
  6425. #include <signal.h>
  6426. test_sig()
  6427. {
  6428.     struct sigcontext *scont;
  6429.     scont = (struct sigcontext *)0;
  6430.     return 1;
  6431. int main() {
  6432.  
  6433. ; return 0; }
  6434. EOF
  6435. if { (eval echo configure:6437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  6436.   rm -rf conftest*
  6437.   echo "$ac_t""yes" 1>&6
  6438.         cat >> confdefs.h <<\EOF
  6439. #define HAVE_SIGCONTEXT 1
  6440. EOF
  6441.  
  6442. else
  6443.   echo "configure: failed program was:" >&5
  6444.   cat conftest.$ac_ext >&5
  6445.   rm -rf conftest*
  6446.   echo "$ac_t""no" 1>&6
  6447. fi
  6448. rm -f conftest*
  6449.  
  6450. echo $ac_n "checking getcwd implementation""... $ac_c" 1>&6
  6451. echo "configure:6453: checking getcwd implementation" >&5
  6452. if test "$cross_compiling" = yes; then
  6453.   { echo "configure: error: failed to compile test program" 1>&2; exit 1; }
  6454. else
  6455.   cat > conftest.$ac_ext <<EOF
  6456. #line 6458 "configure"
  6457. #include "confdefs.h"
  6458.  
  6459. char *dagger[] = { "IFS=pwd", 0 };
  6460. main()
  6461. {
  6462.   char buffer[500];
  6463.   extern char **environ;
  6464.   environ = dagger;
  6465.   return getcwd(buffer, 500) ? 0 : 1;
  6466. }
  6467. EOF
  6468. if { (eval echo configure:6470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  6469. then
  6470.   echo "$ac_t""it is usable" 1>&6
  6471. else
  6472.   echo "configure: failed program was:" >&5
  6473.   cat conftest.$ac_ext >&5
  6474.   rm -fr conftest*
  6475.   echo "$ac_t""it stinks" 1>&6
  6476.         cat >> confdefs.h <<\EOF
  6477. #define BAD_GETCWD 1
  6478. EOF
  6479.  
  6480. fi
  6481. rm -fr conftest*
  6482. fi
  6483.  
  6484.  
  6485. for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
  6486.     getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
  6487.     memset nanosleep opendir putenv qsort readlink select setenv \
  6488.     setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
  6489.     sigvec snprintf strcasecmp strerror strftime stricmp strncasecmp \
  6490.     strnicmp strpbrk strtol tgetent towlower towupper usleep utime utimes
  6491. do
  6492. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  6493. echo "configure:6495: checking for $ac_func" >&5
  6494. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  6495.   echo $ac_n "(cached) $ac_c" 1>&6
  6496. else
  6497.   cat > conftest.$ac_ext <<EOF
  6498. #line 6500 "configure"
  6499. #include "confdefs.h"
  6500. /* System header to define __stub macros and hopefully few prototypes,
  6501.     which can conflict with char $ac_func(); below.  */
  6502. #include <assert.h>
  6503. /* Override any gcc2 internal prototype to avoid an error.  */
  6504. /* We use char because int might match the return type of a gcc2
  6505.     builtin and then its argument prototype would still apply.  */
  6506. char $ac_func();
  6507.  
  6508. int main() {
  6509.  
  6510. /* The GNU C library defines this for functions which it implements
  6511.     to always fail with ENOSYS.  Some functions are actually named
  6512.     something starting with __ and the normal name is an alias.  */
  6513. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6514. choke me
  6515. #else
  6516. $ac_func();
  6517. #endif
  6518.  
  6519. ; return 0; }
  6520. EOF
  6521. if { (eval echo configure:6523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6522.   rm -rf conftest*
  6523.   eval "ac_cv_func_$ac_func=yes"
  6524. else
  6525.   echo "configure: failed program was:" >&5
  6526.   cat conftest.$ac_ext >&5
  6527.   rm -rf conftest*
  6528.   eval "ac_cv_func_$ac_func=no"
  6529. fi
  6530. rm -f conftest*
  6531. fi
  6532.  
  6533. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  6534.   echo "$ac_t""yes" 1>&6
  6535.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  6536.   cat >> confdefs.h <<EOF
  6537. #define $ac_tr_func 1
  6538. EOF
  6539.  
  6540. else
  6541.   echo "$ac_t""no" 1>&6
  6542. fi
  6543. done
  6544.  
  6545.  
  6546. echo $ac_n "checking for st_blksize""... $ac_c" 1>&6
  6547. echo "configure:6549: checking for st_blksize" >&5
  6548. cat > conftest.$ac_ext <<EOF
  6549. #line 6551 "configure"
  6550. #include "confdefs.h"
  6551. #include <sys/types.h>
  6552. #include <sys/stat.h>
  6553. int main() {
  6554.     struct stat st;
  6555.     int n;
  6556.  
  6557.     stat("/", &st);
  6558.     n = (int)st.st_blksize;
  6559. ; return 0; }
  6560. EOF
  6561. if { (eval echo configure:6563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  6562.   rm -rf conftest*
  6563.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  6564. #define HAVE_ST_BLKSIZE 1
  6565. EOF
  6566.  
  6567. else
  6568.   echo "configure: failed program was:" >&5
  6569.   cat conftest.$ac_ext >&5
  6570.   rm -rf conftest*
  6571.   echo "$ac_t""no" 1>&6
  6572. fi
  6573. rm -f conftest*
  6574.  
  6575. echo $ac_n "checking whether stat() ignores a trailing slash""... $ac_c" 1>&6
  6576. echo "configure:6578: checking whether stat() ignores a trailing slash" >&5
  6577. if test "$cross_compiling" = yes; then
  6578.   { echo "configure: error: failed to compile test program" 1>&2; exit 1; }
  6579. else
  6580.   cat > conftest.$ac_ext <<EOF
  6581. #line 6583 "configure"
  6582. #include "confdefs.h"
  6583. #include <sys/types.h>
  6584. #include <sys/stat.h>
  6585. main() {struct stat st;  exit(stat("configure/", &st) != 0); }
  6586. EOF
  6587. if { (eval echo configure:6589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  6588. then
  6589.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  6590. #define STAT_IGNORES_SLASH 1
  6591. EOF
  6592.  
  6593. else
  6594.   echo "configure: failed program was:" >&5
  6595.   cat conftest.$ac_ext >&5
  6596.   rm -fr conftest*
  6597.   echo "$ac_t""no" 1>&6
  6598. fi
  6599. rm -fr conftest*
  6600. fi
  6601.  
  6602.  
  6603. echo $ac_n "checking for iconv_open()""... $ac_c" 1>&6
  6604. echo "configure:6606: checking for iconv_open()" >&5
  6605. save_LIBS="$LIBS"
  6606. LIBS="$LIBS -liconv"
  6607. cat > conftest.$ac_ext <<EOF
  6608. #line 6610 "configure"
  6609. #include "confdefs.h"
  6610.  
  6611. #ifdef HAVE_ICONV_H
  6612. # include <iconv.h>
  6613. #endif
  6614.     
  6615. int main() {
  6616. iconv_open("fr", "to");
  6617. ; return 0; }
  6618. EOF
  6619. if { (eval echo configure:6621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6620.   rm -rf conftest*
  6621.   echo "$ac_t""yes; with -liconv" 1>&6; cat >> confdefs.h <<\EOF
  6622. #define HAVE_ICONV 1
  6623. EOF
  6624.  
  6625. else
  6626.   echo "configure: failed program was:" >&5
  6627.   cat conftest.$ac_ext >&5
  6628.   rm -rf conftest*
  6629.   LIBS="$save_LIBS"
  6630.     cat > conftest.$ac_ext <<EOF
  6631. #line 6633 "configure"
  6632. #include "confdefs.h"
  6633.  
  6634. #ifdef HAVE_ICONV_H
  6635. # include <iconv.h>
  6636. #endif
  6637.     
  6638. int main() {
  6639. iconv_open("fr", "to");
  6640. ; return 0; }
  6641. EOF
  6642. if { (eval echo configure:6644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6643.   rm -rf conftest*
  6644.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  6645. #define HAVE_ICONV 1
  6646. EOF
  6647.  
  6648. else
  6649.   echo "configure: failed program was:" >&5
  6650.   cat conftest.$ac_ext >&5
  6651.   rm -rf conftest*
  6652.   echo "$ac_t""no" 1>&6
  6653. fi
  6654. rm -f conftest*
  6655. fi
  6656. rm -f conftest*
  6657.  
  6658.  
  6659. echo $ac_n "checking for nl_langinfo(CODESET)""... $ac_c" 1>&6
  6660. echo "configure:6662: checking for nl_langinfo(CODESET)" >&5
  6661. cat > conftest.$ac_ext <<EOF
  6662. #line 6664 "configure"
  6663. #include "confdefs.h"
  6664.  
  6665. #ifdef HAVE_LANGINFO_H
  6666. # include <langinfo.h>
  6667. #endif
  6668.  
  6669. int main() {
  6670. char *cs = nl_langinfo(CODESET);
  6671. ; return 0; }
  6672. EOF
  6673. if { (eval echo configure:6675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6674.   rm -rf conftest*
  6675.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  6676. #define HAVE_NL_LANGINFO_CODESET 1
  6677. EOF
  6678.  
  6679. else
  6680.   echo "configure: failed program was:" >&5
  6681.   cat conftest.$ac_ext >&5
  6682.   rm -rf conftest*
  6683.   echo "$ac_t""no" 1>&6
  6684. fi
  6685. rm -f conftest*
  6686.  
  6687. echo $ac_n "checking --disable-acl argument""... $ac_c" 1>&6
  6688. echo "configure:6690: checking --disable-acl argument" >&5
  6689. # Check whether --enable-acl or --disable-acl was given.
  6690. if test "${enable_acl+set}" = set; then
  6691.   enableval="$enable_acl"
  6692.   :
  6693. else
  6694.   enable_acl="yes"
  6695. fi
  6696.  
  6697. if test "$enable_acl" = "yes"; then
  6698. echo "$ac_t""no" 1>&6
  6699. echo $ac_n "checking for acl_get_file in -lposix1e""... $ac_c" 1>&6
  6700. echo "configure:6702: checking for acl_get_file in -lposix1e" >&5
  6701. ac_lib_var=`echo posix1e'_'acl_get_file | sed 'y%./+-%__p_%'`
  6702. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  6703.   echo $ac_n "(cached) $ac_c" 1>&6
  6704. else
  6705.   ac_save_LIBS="$LIBS"
  6706. LIBS="-lposix1e  $LIBS"
  6707. cat > conftest.$ac_ext <<EOF
  6708. #line 6710 "configure"
  6709. #include "confdefs.h"
  6710. /* Override any gcc2 internal prototype to avoid an error.  */
  6711. /* We use char because int might match the return type of a gcc2
  6712.     builtin and then its argument prototype would still apply.  */
  6713. char acl_get_file();
  6714.  
  6715. int main() {
  6716. acl_get_file()
  6717. ; return 0; }
  6718. EOF
  6719. if { (eval echo configure:6721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6720.   rm -rf conftest*
  6721.   eval "ac_cv_lib_$ac_lib_var=yes"
  6722. else
  6723.   echo "configure: failed program was:" >&5
  6724.   cat conftest.$ac_ext >&5
  6725.   rm -rf conftest*
  6726.   eval "ac_cv_lib_$ac_lib_var=no"
  6727. fi
  6728. rm -f conftest*
  6729. LIBS="$ac_save_LIBS"
  6730.  
  6731. fi
  6732. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6733.   echo "$ac_t""yes" 1>&6
  6734.   LIBS="$LIBS -lposix1e"
  6735. else
  6736.   echo "$ac_t""no" 1>&6
  6737. echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
  6738. echo "configure:6740: checking for acl_get_file in -lacl" >&5
  6739. ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
  6740. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  6741.   echo $ac_n "(cached) $ac_c" 1>&6
  6742. else
  6743.   ac_save_LIBS="$LIBS"
  6744. LIBS="-lacl  $LIBS"
  6745. cat > conftest.$ac_ext <<EOF
  6746. #line 6748 "configure"
  6747. #include "confdefs.h"
  6748. /* Override any gcc2 internal prototype to avoid an error.  */
  6749. /* We use char because int might match the return type of a gcc2
  6750.     builtin and then its argument prototype would still apply.  */
  6751. char acl_get_file();
  6752.  
  6753. int main() {
  6754. acl_get_file()
  6755. ; return 0; }
  6756. EOF
  6757. if { (eval echo configure:6759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6758.   rm -rf conftest*
  6759.   eval "ac_cv_lib_$ac_lib_var=yes"
  6760. else
  6761.   echo "configure: failed program was:" >&5
  6762.   cat conftest.$ac_ext >&5
  6763.   rm -rf conftest*
  6764.   eval "ac_cv_lib_$ac_lib_var=no"
  6765. fi
  6766. rm -f conftest*
  6767. LIBS="$ac_save_LIBS"
  6768.  
  6769. fi
  6770. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6771.   echo "$ac_t""yes" 1>&6
  6772.   LIBS="$LIBS -lacl"
  6773.           echo $ac_n "checking for fgetxattr in -lattr""... $ac_c" 1>&6
  6774. echo "configure:6776: checking for fgetxattr in -lattr" >&5
  6775. ac_lib_var=`echo attr'_'fgetxattr | sed 'y%./+-%__p_%'`
  6776. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  6777.   echo $ac_n "(cached) $ac_c" 1>&6
  6778. else
  6779.   ac_save_LIBS="$LIBS"
  6780. LIBS="-lattr  $LIBS"
  6781. cat > conftest.$ac_ext <<EOF
  6782. #line 6784 "configure"
  6783. #include "confdefs.h"
  6784. /* Override any gcc2 internal prototype to avoid an error.  */
  6785. /* We use char because int might match the return type of a gcc2
  6786.     builtin and then its argument prototype would still apply.  */
  6787. char fgetxattr();
  6788.  
  6789. int main() {
  6790. fgetxattr()
  6791. ; return 0; }
  6792. EOF
  6793. if { (eval echo configure:6795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6794.   rm -rf conftest*
  6795.   eval "ac_cv_lib_$ac_lib_var=yes"
  6796. else
  6797.   echo "configure: failed program was:" >&5
  6798.   cat conftest.$ac_ext >&5
  6799.   rm -rf conftest*
  6800.   eval "ac_cv_lib_$ac_lib_var=no"
  6801. fi
  6802. rm -f conftest*
  6803. LIBS="$ac_save_LIBS"
  6804.  
  6805. fi
  6806. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6807.   echo "$ac_t""yes" 1>&6
  6808.   LIBS="$LIBS -lattr"
  6809. else
  6810.   echo "$ac_t""no" 1>&6
  6811. fi
  6812.  
  6813. else
  6814.   echo "$ac_t""no" 1>&6
  6815. fi
  6816.  
  6817. fi
  6818.  
  6819.  
  6820. echo $ac_n "checking for POSIX ACL support""... $ac_c" 1>&6
  6821. echo "configure:6823: checking for POSIX ACL support" >&5
  6822. cat > conftest.$ac_ext <<EOF
  6823. #line 6825 "configure"
  6824. #include "confdefs.h"
  6825.  
  6826. #include <sys/types.h>
  6827. #ifdef HAVE_SYS_ACL_H
  6828. # include <sys/acl.h>
  6829. #endif
  6830. acl_t acl;
  6831. int main() {
  6832. acl = acl_get_file("foo", ACL_TYPE_ACCESS);
  6833.     acl_set_file("foo", ACL_TYPE_ACCESS, acl);
  6834.     acl_free(acl);
  6835. ; return 0; }
  6836. EOF
  6837. if { (eval echo configure:6839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6838.   rm -rf conftest*
  6839.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  6840. #define HAVE_POSIX_ACL 1
  6841. EOF
  6842.  
  6843. else
  6844.   echo "configure: failed program was:" >&5
  6845.   cat conftest.$ac_ext >&5
  6846.   rm -rf conftest*
  6847.   echo "$ac_t""no" 1>&6
  6848. fi
  6849. rm -f conftest*
  6850.  
  6851. echo $ac_n "checking for Solaris ACL support""... $ac_c" 1>&6
  6852. echo "configure:6854: checking for Solaris ACL support" >&5
  6853. cat > conftest.$ac_ext <<EOF
  6854. #line 6856 "configure"
  6855. #include "confdefs.h"
  6856.  
  6857. #ifdef HAVE_SYS_ACL_H
  6858. # include <sys/acl.h>
  6859. #endif
  6860. int main() {
  6861. acl("foo", GETACLCNT, 0, NULL);
  6862.     
  6863. ; return 0; }
  6864. EOF
  6865. if { (eval echo configure:6867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6866.   rm -rf conftest*
  6867.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  6868. #define HAVE_SOLARIS_ACL 1
  6869. EOF
  6870.  
  6871. else
  6872.   echo "configure: failed program was:" >&5
  6873.   cat conftest.$ac_ext >&5
  6874.   rm -rf conftest*
  6875.   echo "$ac_t""no" 1>&6
  6876. fi
  6877. rm -f conftest*
  6878.  
  6879. echo $ac_n "checking for AIX ACL support""... $ac_c" 1>&6
  6880. echo "configure:6882: checking for AIX ACL support" >&5
  6881. cat > conftest.$ac_ext <<EOF
  6882. #line 6884 "configure"
  6883. #include "confdefs.h"
  6884.  
  6885. #ifdef HAVE_SYS_ACL_H
  6886. # include <sys/acl.h>
  6887. #endif
  6888. #ifdef HAVE_SYS_ACCESS_H
  6889. # include <sys/access.h>
  6890. #endif
  6891. #define _ALL_SOURCE
  6892.  
  6893. #include <sys/stat.h>
  6894.  
  6895. int aclsize;
  6896. struct acl *aclent;
  6897. int main() {
  6898. aclsize = sizeof(struct acl);
  6899.     aclent = (void *)malloc(aclsize);
  6900.     statacl("foo", STX_NORMAL, aclent, aclsize);
  6901.     
  6902. ; return 0; }
  6903. EOF
  6904. if { (eval echo configure:6906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6905.   rm -rf conftest*
  6906.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  6907. #define HAVE_AIX_ACL 1
  6908. EOF
  6909.  
  6910. else
  6911.   echo "configure: failed program was:" >&5
  6912.   cat conftest.$ac_ext >&5
  6913.   rm -rf conftest*
  6914.   echo "$ac_t""no" 1>&6
  6915. fi
  6916. rm -f conftest*
  6917. else
  6918.   echo "$ac_t""yes" 1>&6
  6919. fi
  6920.  
  6921. echo $ac_n "checking --disable-gpm argument""... $ac_c" 1>&6
  6922. echo "configure:6924: checking --disable-gpm argument" >&5
  6923. # Check whether --enable-gpm or --disable-gpm was given.
  6924. if test "${enable_gpm+set}" = set; then
  6925.   enableval="$enable_gpm"
  6926.   :
  6927. else
  6928.   enable_gpm="yes"
  6929. fi
  6930.  
  6931.  
  6932. if test "$enable_gpm" = "yes"; then
  6933.   echo "$ac_t""no" 1>&6
  6934.     echo $ac_n "checking for gpm""... $ac_c" 1>&6
  6935. echo "configure:6937: checking for gpm" >&5
  6936. if eval "test \"`echo '$''{'vi_cv_have_gpm'+set}'`\" = set"; then
  6937.   echo $ac_n "(cached) $ac_c" 1>&6
  6938. else
  6939.   olibs="$LIBS" ; LIBS="-lgpm"
  6940.     cat > conftest.$ac_ext <<EOF
  6941. #line 6943 "configure"
  6942. #include "confdefs.h"
  6943. #include <gpm.h>
  6944.         #include <linux/keyboard.h>
  6945. int main() {
  6946. Gpm_GetLibVersion(NULL);
  6947. ; return 0; }
  6948. EOF
  6949. if { (eval echo configure:6951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6950.   rm -rf conftest*
  6951.                   vi_cv_have_gpm=yes
  6952. else
  6953.   echo "configure: failed program was:" >&5
  6954.   cat conftest.$ac_ext >&5
  6955.   rm -rf conftest*
  6956.   vi_cv_have_gpm=no
  6957. fi
  6958. rm -f conftest*
  6959.     LIBS="$olibs"
  6960.     
  6961. fi
  6962.  
  6963. echo "$ac_t""$vi_cv_have_gpm" 1>&6
  6964.   if test $vi_cv_have_gpm = yes; then
  6965.     LIBS="$LIBS -lgpm"
  6966.     cat >> confdefs.h <<\EOF
  6967. #define HAVE_GPM 1
  6968. EOF
  6969.  
  6970.   fi
  6971. else
  6972.   echo "$ac_t""yes" 1>&6
  6973. fi
  6974.  
  6975. echo $ac_n "checking for vsnprintf()""... $ac_c" 1>&6
  6976. echo "configure:6978: checking for vsnprintf()" >&5
  6977. if test "$cross_compiling" = yes; then
  6978.   { echo "configure: error: failed to compile test program" 1>&2; exit 1; }
  6979. else
  6980.   cat > conftest.$ac_ext <<EOF
  6981. #line 6983 "configure"
  6982. #include "confdefs.h"
  6983.  
  6984. #include <stdio.h>
  6985. #include <stdarg.h>
  6986.     /* Check use of vsnprintf() */
  6987.     void warn(char *fmt, ...);
  6988.     void warn(char *fmt, ...)
  6989.     {
  6990.       va_list ap; char buf[20];
  6991.       va_start(ap, fmt);
  6992.       vsnprintf(buf, 20, fmt, ap);
  6993.       va_end(ap);
  6994.     }
  6995.     main()
  6996.     {
  6997.     warn("testing %s\n", "a very long string that won't fit");
  6998.     exit(0);
  6999.     }
  7000.         
  7001. EOF
  7002. if { (eval echo configure:7004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  7003. then
  7004.   cat >> confdefs.h <<\EOF
  7005. #define HAVE_VSNPRINTF 1
  7006. EOF
  7007.  echo "$ac_t""yes" 1>&6
  7008. else
  7009.   echo "configure: failed program was:" >&5
  7010.   cat conftest.$ac_ext >&5
  7011.   rm -fr conftest*
  7012.   echo "$ac_t""no" 1>&6
  7013. fi
  7014. rm -fr conftest*
  7015. fi
  7016.  
  7017.  
  7018.  
  7019. echo $ac_n "checking for rename""... $ac_c" 1>&6
  7020. echo "configure:7022: checking for rename" >&5
  7021. cat > conftest.$ac_ext <<EOF
  7022. #line 7024 "configure"
  7023. #include "confdefs.h"
  7024. #include <stdio.h>
  7025. int main() {
  7026. rename("this", "that")
  7027. ; return 0; }
  7028. EOF
  7029. if { (eval echo configure:7031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7030.   rm -rf conftest*
  7031.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  7032. #define HAVE_RENAME 1
  7033. EOF
  7034.  
  7035. else
  7036.   echo "configure: failed program was:" >&5
  7037.   cat conftest.$ac_ext >&5
  7038.   rm -rf conftest*
  7039.   echo "$ac_t""no" 1>&6
  7040. fi
  7041. rm -f conftest*
  7042.  
  7043. echo $ac_n "checking for sysctl""... $ac_c" 1>&6
  7044. echo "configure:7046: checking for sysctl" >&5
  7045. cat > conftest.$ac_ext <<EOF
  7046. #line 7048 "configure"
  7047. #include "confdefs.h"
  7048. #include <sys/types.h>
  7049. #include <sys/sysctl.h>
  7050. int main() {
  7051.     int mib[2], r;
  7052.     size_t len;
  7053.  
  7054.     mib[0] = CTL_HW;
  7055.     mib[1] = HW_USERMEM;
  7056.     len = sizeof(r);
  7057.     (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
  7058.     
  7059. ; return 0; }
  7060. EOF
  7061. if { (eval echo configure:7063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7062.   rm -rf conftest*
  7063.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  7064. #define HAVE_SYSCTL 1
  7065. EOF
  7066.  
  7067. else
  7068.   echo "configure: failed program was:" >&5
  7069.   cat conftest.$ac_ext >&5
  7070.   rm -rf conftest*
  7071.   echo "$ac_t""not usable" 1>&6
  7072. fi
  7073. rm -f conftest*
  7074.  
  7075. echo $ac_n "checking for sysinfo""... $ac_c" 1>&6
  7076. echo "configure:7078: checking for sysinfo" >&5
  7077. cat > conftest.$ac_ext <<EOF
  7078. #line 7080 "configure"
  7079. #include "confdefs.h"
  7080. #include <sys/types.h>
  7081. #include <sys/sysinfo.h>
  7082. int main() {
  7083.     struct sysinfo sinfo;
  7084.     int t;
  7085.  
  7086.     (void)sysinfo(&sinfo);
  7087.     t = sinfo.totalram;
  7088.     
  7089. ; return 0; }
  7090. EOF
  7091. if { (eval echo configure:7093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7092.   rm -rf conftest*
  7093.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  7094. #define HAVE_SYSINFO 1
  7095. EOF
  7096.  
  7097. else
  7098.   echo "configure: failed program was:" >&5
  7099.   cat conftest.$ac_ext >&5
  7100.   rm -rf conftest*
  7101.   echo "$ac_t""not usable" 1>&6
  7102. fi
  7103. rm -f conftest*
  7104.  
  7105. echo $ac_n "checking for sysconf""... $ac_c" 1>&6
  7106. echo "configure:7108: checking for sysconf" >&5
  7107. cat > conftest.$ac_ext <<EOF
  7108. #line 7110 "configure"
  7109. #include "confdefs.h"
  7110. #include <unistd.h>
  7111. int main() {
  7112.     (void)sysconf(_SC_PAGESIZE);
  7113.     (void)sysconf(_SC_PHYS_PAGES);
  7114.     
  7115. ; return 0; }
  7116. EOF
  7117. if { (eval echo configure:7119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7118.   rm -rf conftest*
  7119.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  7120. #define HAVE_SYSCONF 1
  7121. EOF
  7122.  
  7123. else
  7124.   echo "configure: failed program was:" >&5
  7125.   cat conftest.$ac_ext >&5
  7126.   rm -rf conftest*
  7127.   echo "$ac_t""not usable" 1>&6
  7128. fi
  7129. rm -f conftest*
  7130.  
  7131.  
  7132. echo $ac_n "checking size of int""... $ac_c" 1>&6
  7133. echo "configure:7135: checking size of int" >&5
  7134. if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
  7135.   echo $ac_n "(cached) $ac_c" 1>&6
  7136. else
  7137.   if test "$cross_compiling" = yes; then
  7138.   { echo "configure: error: failed to compile test program" 1>&2; exit 1; }
  7139. else
  7140.   cat > conftest.$ac_ext <<EOF
  7141. #line 7143 "configure"
  7142. #include "confdefs.h"
  7143. #include <stdio.h>
  7144.         main()
  7145.         {
  7146.           FILE *f=fopen("conftestval", "w");
  7147.           if (!f) exit(1);
  7148.           fprintf(f, "%d\n", (int)sizeof(int));
  7149.           exit(0);
  7150.         }
  7151. EOF
  7152. if { (eval echo configure:7154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  7153. then
  7154.   ac_cv_sizeof_int=`cat conftestval`
  7155. else
  7156.   echo "configure: failed program was:" >&5
  7157.   cat conftest.$ac_ext >&5
  7158.   rm -fr conftest*
  7159.   ac_cv_sizeof_int=0
  7160. fi
  7161. rm -fr conftest*
  7162. fi
  7163.  
  7164. fi
  7165.  
  7166. echo "$ac_t""$ac_cv_sizeof_int" 1>&6
  7167. cat >> confdefs.h <<EOF
  7168. #define SIZEOF_INT $ac_cv_sizeof_int
  7169. EOF
  7170.  
  7171.  
  7172. echo $ac_n "checking whether memmove/bcopy/memcpy handle overlaps""... $ac_c" 1>&6
  7173. echo "configure:7175: checking whether memmove/bcopy/memcpy handle overlaps" >&5
  7174. bcopy_test_prog='
  7175. main() {
  7176.   char buf[10];
  7177.   strcpy(buf, "abcdefghi");
  7178.   mch_memmove(buf, buf + 2, 3);
  7179.   if (strncmp(buf, "ababcf", 6))
  7180.     exit(1);
  7181.   strcpy(buf, "abcdefghi");
  7182.   mch_memmove(buf + 2, buf, 3);
  7183.   if (strncmp(buf, "cdedef", 6))
  7184.     exit(1);
  7185.   exit(0); /* libc version works properly.  */
  7186. }'
  7187.  
  7188.  
  7189. if test "$cross_compiling" = yes; then
  7190.   { echo "configure: error: failed to compile test program" 1>&2; exit 1; }
  7191. else
  7192.   cat > conftest.$ac_ext <<EOF
  7193. #line 7195 "configure"
  7194. #include "confdefs.h"
  7195. #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
  7196. EOF
  7197. if { (eval echo configure:7199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  7198. then
  7199.   cat >> confdefs.h <<\EOF
  7200. #define USEMEMMOVE 1
  7201. EOF
  7202.  echo "$ac_t""memmove does" 1>&6
  7203. else
  7204.   echo "configure: failed program was:" >&5
  7205.   cat conftest.$ac_ext >&5
  7206.   rm -fr conftest*
  7207.   if test "$cross_compiling" = yes; then
  7208.   { echo "configure: error: failed to compile test program" 1>&2; exit 1; }
  7209. else
  7210.   cat > conftest.$ac_ext <<EOF
  7211. #line 7213 "configure"
  7212. #include "confdefs.h"
  7213. #define mch_memmove(s,d,l) bcopy(d,s,l) $bcopy_test_prog
  7214. EOF
  7215. if { (eval echo configure:7217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  7216. then
  7217.   cat >> confdefs.h <<\EOF
  7218. #define USEBCOPY 1
  7219. EOF
  7220.  echo "$ac_t""bcopy does" 1>&6
  7221. else
  7222.   echo "configure: failed program was:" >&5
  7223.   cat conftest.$ac_ext >&5
  7224.   rm -fr conftest*
  7225.   if test "$cross_compiling" = yes; then
  7226.   { echo "configure: error: failed to compile test program" 1>&2; exit 1; }
  7227. else
  7228.   cat > conftest.$ac_ext <<EOF
  7229. #line 7231 "configure"
  7230. #include "confdefs.h"
  7231. #define mch_memmove(s,d,l) memcpy(d,s,l) $bcopy_test_prog
  7232. EOF
  7233. if { (eval echo configure:7235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  7234. then
  7235.   cat >> confdefs.h <<\EOF
  7236. #define USEMEMCPY 1
  7237. EOF
  7238.  echo "$ac_t""memcpy does" 1>&6
  7239. else
  7240.   echo "configure: failed program was:" >&5
  7241.   cat conftest.$ac_ext >&5
  7242.   rm -fr conftest*
  7243.   echo "$ac_t""no" 1>&6
  7244. fi
  7245. rm -fr conftest*
  7246. fi
  7247.  
  7248. fi
  7249. rm -fr conftest*
  7250. fi
  7251.  
  7252. fi
  7253. rm -fr conftest*
  7254. fi
  7255.  
  7256.  
  7257.  
  7258. if test "$enable_multibyte" = "yes"; then
  7259.   cflags_save=$CFLAGS
  7260.   ldflags_save=$LDFLAGS
  7261.   if test -n "$x_includes" ; then
  7262.     CFLAGS="$CFLAGS -I$x_includes"
  7263.     LDFLAGS="$X_LIBS $LDFLAGS -lX11"
  7264.     echo $ac_n "checking whether X_LOCALE needed""... $ac_c" 1>&6
  7265. echo "configure:7267: checking whether X_LOCALE needed" >&5
  7266.     cat > conftest.$ac_ext <<EOF
  7267. #line 7269 "configure"
  7268. #include "confdefs.h"
  7269. #include <X11/Xlocale.h>
  7270. int main() {
  7271.  
  7272. ; return 0; }
  7273. EOF
  7274. if { (eval echo configure:7276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7275.   rm -rf conftest*
  7276.   cat > conftest.$ac_ext <<EOF
  7277. #line 7279 "configure"
  7278. #include "confdefs.h"
  7279. /* Override any gcc2 internal prototype to avoid an error.  */
  7280. /* We use char because int might match the return type of a gcc2
  7281.     builtin and then its argument prototype would still apply.  */
  7282. char _Xsetlocale();
  7283.  
  7284. int main() {
  7285. _Xsetlocale()
  7286. ; return 0; }
  7287. EOF
  7288. if { (eval echo configure:7290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7289.   rm -rf conftest*
  7290.   echo "$ac_t""yes" 1>&6
  7291.         cat >> confdefs.h <<\EOF
  7292. #define X_LOCALE 1
  7293. EOF
  7294.  
  7295. else
  7296.   echo "configure: failed program was:" >&5
  7297.   cat conftest.$ac_ext >&5
  7298.   rm -rf conftest*
  7299.   echo "$ac_t""no" 1>&6
  7300. fi
  7301. rm -f conftest*
  7302. else
  7303.   echo "configure: failed program was:" >&5
  7304.   cat conftest.$ac_ext >&5
  7305.   rm -rf conftest*
  7306.   echo "$ac_t""no" 1>&6
  7307. fi
  7308. rm -f conftest*
  7309.   fi
  7310.   CFLAGS=$cflags_save
  7311.   LDFLAGS=$ldflags_save
  7312. fi
  7313.  
  7314. echo $ac_n "checking for _xpg4_setrunelocale in -lxpg4""... $ac_c" 1>&6
  7315. echo "configure:7317: checking for _xpg4_setrunelocale in -lxpg4" >&5
  7316. ac_lib_var=`echo xpg4'_'_xpg4_setrunelocale | sed 'y%./+-%__p_%'`
  7317. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  7318.   echo $ac_n "(cached) $ac_c" 1>&6
  7319. else
  7320.   ac_save_LIBS="$LIBS"
  7321. LIBS="-lxpg4  $LIBS"
  7322. cat > conftest.$ac_ext <<EOF
  7323. #line 7325 "configure"
  7324. #include "confdefs.h"
  7325. /* Override any gcc2 internal prototype to avoid an error.  */
  7326. /* We use char because int might match the return type of a gcc2
  7327.     builtin and then its argument prototype would still apply.  */
  7328. char _xpg4_setrunelocale();
  7329.  
  7330. int main() {
  7331. _xpg4_setrunelocale()
  7332. ; return 0; }
  7333. EOF
  7334. if { (eval echo configure:7336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7335.   rm -rf conftest*
  7336.   eval "ac_cv_lib_$ac_lib_var=yes"
  7337. else
  7338.   echo "configure: failed program was:" >&5
  7339.   cat conftest.$ac_ext >&5
  7340.   rm -rf conftest*
  7341.   eval "ac_cv_lib_$ac_lib_var=no"
  7342. fi
  7343. rm -f conftest*
  7344. LIBS="$ac_save_LIBS"
  7345.  
  7346. fi
  7347. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7348.   echo "$ac_t""yes" 1>&6
  7349.   LIBS="$LIBS -lxpg4"
  7350. else
  7351.   echo "$ac_t""no" 1>&6
  7352. fi
  7353.  
  7354.  
  7355. echo $ac_n "checking how to create tags""... $ac_c" 1>&6
  7356. echo "configure:7358: checking how to create tags" >&5
  7357. test -f tags && mv tags tags.save
  7358. if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
  7359.   TAGPRG="ctags"
  7360. else
  7361.   (eval etags       /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
  7362.   (eval etags -c   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
  7363.   (eval ctags       /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
  7364.   (eval ctags -t   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
  7365.   (eval ctags -ts  /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
  7366.   (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
  7367.   (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
  7368. fi
  7369. test -f tags.save && mv tags.save tags
  7370. echo "$ac_t""$TAGPRG" 1>&6 
  7371.  
  7372. echo $ac_n "checking how to run man with a section nr""... $ac_c" 1>&6
  7373. echo "configure:7375: checking how to run man with a section nr" >&5
  7374. MANDEF="man"
  7375. (eval man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
  7376. echo "$ac_t""$MANDEF" 1>&6
  7377. if test "$MANDEF" = "man -s"; then
  7378.   cat >> confdefs.h <<\EOF
  7379. #define USEMAN_S 1
  7380. EOF
  7381.  
  7382. fi
  7383.  
  7384. echo $ac_n "checking --disable-nls argument""... $ac_c" 1>&6
  7385. echo "configure:7387: checking --disable-nls argument" >&5
  7386. # Check whether --enable-nls or --disable-nls was given.
  7387. if test "${enable_nls+set}" = set; then
  7388.   enableval="$enable_nls"
  7389.   :
  7390. else
  7391.   enable_nls="yes"
  7392. fi
  7393.  
  7394.  
  7395. if test "$enable_nls" = "yes"; then
  7396.   echo "$ac_t""no" 1>&6
  7397.   # Extract the first word of "msgfmt", so it can be a program name with args.
  7398. set dummy msgfmt; ac_word=$2
  7399. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  7400. echo "configure:7402: checking for $ac_word" >&5
  7401. if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
  7402.   echo $ac_n "(cached) $ac_c" 1>&6
  7403. else
  7404.   if test -n "$MSGFMT"; then
  7405.   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
  7406. else
  7407.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  7408.   ac_dummy="$PATH"
  7409.   for ac_dir in $ac_dummy; do
  7410.     test -z "$ac_dir" && ac_dir=.
  7411.     if test -f $ac_dir/$ac_word; then
  7412.       ac_cv_prog_MSGFMT="msgfmt"
  7413.       break
  7414.     fi
  7415.   done
  7416.   IFS="$ac_save_ifs"
  7417. fi
  7418. fi
  7419. MSGFMT="$ac_cv_prog_MSGFMT"
  7420. if test -n "$MSGFMT"; then
  7421.   echo "$ac_t""$MSGFMT" 1>&6
  7422. else
  7423.   echo "$ac_t""no" 1>&6
  7424. fi
  7425.  
  7426.   echo $ac_n "checking for NLS""... $ac_c" 1>&6
  7427. echo "configure:7429: checking for NLS" >&5
  7428.   if test -d po; then
  7429.     have_gettext="no"
  7430.     if test -n "$MSGFMT"; then
  7431.       cat > conftest.$ac_ext <<EOF
  7432. #line 7434 "configure"
  7433. #include "confdefs.h"
  7434. #include <libintl.h>
  7435. int main() {
  7436. gettext("Test");
  7437. ; return 0; }
  7438. EOF
  7439. if { (eval echo configure:7441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7440.   rm -rf conftest*
  7441.   echo "$ac_t""gettext() works" 1>&6; have_gettext="yes"
  7442. else
  7443.   echo "configure: failed program was:" >&5
  7444.   cat conftest.$ac_ext >&5
  7445.   rm -rf conftest*
  7446.   olibs=$LIBS
  7447.       LIBS="$LIBS -lintl"
  7448.       cat > conftest.$ac_ext <<EOF
  7449. #line 7451 "configure"
  7450. #include "confdefs.h"
  7451. #include <libintl.h>
  7452. int main() {
  7453. gettext("Test");
  7454. ; return 0; }
  7455. EOF
  7456. if { (eval echo configure:7458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7457.   rm -rf conftest*
  7458.   echo "$ac_t""gettext() works with -lintl" 1>&6; have_gettext="yes"
  7459. else
  7460.   echo "configure: failed program was:" >&5
  7461.   cat conftest.$ac_ext >&5
  7462.   rm -rf conftest*
  7463.   echo "$ac_t""gettext() doesn't work" 1>&6;
  7464.           LIBS=$olibs
  7465. fi
  7466. rm -f conftest*
  7467. fi
  7468. rm -f conftest*
  7469.     else
  7470.       echo "$ac_t""msgfmt not found - disabled" 1>&6;
  7471.     fi
  7472.     if test $have_gettext = "yes"; then
  7473.       cat >> confdefs.h <<\EOF
  7474. #define HAVE_GETTEXT 1
  7475. EOF
  7476.  
  7477.       MAKEMO=yes
  7478.       
  7479.             for ac_func in bind_textdomain_codeset
  7480. do
  7481. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  7482. echo "configure:7484: checking for $ac_func" >&5
  7483. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  7484.   echo $ac_n "(cached) $ac_c" 1>&6
  7485. else
  7486.   cat > conftest.$ac_ext <<EOF
  7487. #line 7489 "configure"
  7488. #include "confdefs.h"
  7489. /* System header to define __stub macros and hopefully few prototypes,
  7490.     which can conflict with char $ac_func(); below.  */
  7491. #include <assert.h>
  7492. /* Override any gcc2 internal prototype to avoid an error.  */
  7493. /* We use char because int might match the return type of a gcc2
  7494.     builtin and then its argument prototype would still apply.  */
  7495. char $ac_func();
  7496.  
  7497. int main() {
  7498.  
  7499. /* The GNU C library defines this for functions which it implements
  7500.     to always fail with ENOSYS.  Some functions are actually named
  7501.     something starting with __ and the normal name is an alias.  */
  7502. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7503. choke me
  7504. #else
  7505. $ac_func();
  7506. #endif
  7507.  
  7508. ; return 0; }
  7509. EOF
  7510. if { (eval echo configure:7512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7511.   rm -rf conftest*
  7512.   eval "ac_cv_func_$ac_func=yes"
  7513. else
  7514.   echo "configure: failed program was:" >&5
  7515.   cat conftest.$ac_ext >&5
  7516.   rm -rf conftest*
  7517.   eval "ac_cv_func_$ac_func=no"
  7518. fi
  7519. rm -f conftest*
  7520. fi
  7521.  
  7522. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  7523.   echo "$ac_t""yes" 1>&6
  7524.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  7525.   cat >> confdefs.h <<EOF
  7526. #define $ac_tr_func 1
  7527. EOF
  7528.  
  7529. else
  7530.   echo "$ac_t""no" 1>&6
  7531. fi
  7532. done
  7533.  
  7534.             echo $ac_n "checking for _nl_msg_cat_cntr""... $ac_c" 1>&6
  7535. echo "configure:7537: checking for _nl_msg_cat_cntr" >&5
  7536.       cat > conftest.$ac_ext <<EOF
  7537. #line 7539 "configure"
  7538. #include "confdefs.h"
  7539. #include <libintl.h>
  7540.         extern int _nl_msg_cat_cntr;
  7541. int main() {
  7542. ++_nl_msg_cat_cntr;
  7543. ; return 0; }
  7544. EOF
  7545. if { (eval echo configure:7547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7546.   rm -rf conftest*
  7547.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  7548. #define HAVE_NL_MSG_CAT_CNTR 1
  7549. EOF
  7550.  
  7551. else
  7552.   echo "configure: failed program was:" >&5
  7553.   cat conftest.$ac_ext >&5
  7554.   rm -rf conftest*
  7555.   echo "$ac_t""no" 1>&6
  7556. fi
  7557. rm -f conftest*
  7558.     fi
  7559.   else
  7560.     echo "$ac_t""no "po" directory - disabled" 1>&6;
  7561.   fi
  7562. else
  7563.   echo "$ac_t""yes" 1>&6
  7564. fi
  7565.  
  7566. ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
  7567. echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
  7568. echo "configure:7570: checking for dlfcn.h" >&5
  7569. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  7570.   echo $ac_n "(cached) $ac_c" 1>&6
  7571. else
  7572.   cat > conftest.$ac_ext <<EOF
  7573. #line 7575 "configure"
  7574. #include "confdefs.h"
  7575. #include <dlfcn.h>
  7576. EOF
  7577. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7578. { (eval echo configure:7580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7579. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7580. if test -z "$ac_err"; then
  7581.   rm -rf conftest*
  7582.   eval "ac_cv_header_$ac_safe=yes"
  7583. else
  7584.   echo "$ac_err" >&5
  7585.   echo "configure: failed program was:" >&5
  7586.   cat conftest.$ac_ext >&5
  7587.   rm -rf conftest*
  7588.   eval "ac_cv_header_$ac_safe=no"
  7589. fi
  7590. rm -f conftest*
  7591. fi
  7592. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7593.   echo "$ac_t""yes" 1>&6
  7594.   DLL=dlfcn.h
  7595. else
  7596.   echo "$ac_t""no" 1>&6
  7597. ac_safe=`echo "dl.h" | sed 'y%./+-%__p_%'`
  7598. echo $ac_n "checking for dl.h""... $ac_c" 1>&6
  7599. echo "configure:7601: checking for dl.h" >&5
  7600. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  7601.   echo $ac_n "(cached) $ac_c" 1>&6
  7602. else
  7603.   cat > conftest.$ac_ext <<EOF
  7604. #line 7606 "configure"
  7605. #include "confdefs.h"
  7606. #include <dl.h>
  7607. EOF
  7608. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7609. { (eval echo configure:7611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7610. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7611. if test -z "$ac_err"; then
  7612.   rm -rf conftest*
  7613.   eval "ac_cv_header_$ac_safe=yes"
  7614. else
  7615.   echo "$ac_err" >&5
  7616.   echo "configure: failed program was:" >&5
  7617.   cat conftest.$ac_ext >&5
  7618.   rm -rf conftest*
  7619.   eval "ac_cv_header_$ac_safe=no"
  7620. fi
  7621. rm -f conftest*
  7622. fi
  7623. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7624.   echo "$ac_t""yes" 1>&6
  7625.   DLL=dl.h
  7626. else
  7627.   echo "$ac_t""no" 1>&6
  7628. fi
  7629.  
  7630. fi
  7631.  
  7632. if test x${DLL} = xdlfcn.h; then
  7633.   cat >> confdefs.h <<\EOF
  7634. #define HAVE_DLFCN_H 1
  7635. EOF
  7636.  
  7637.   echo $ac_n "checking for dlopen()""... $ac_c" 1>&6
  7638. echo "configure:7640: checking for dlopen()" >&5
  7639.   cat > conftest.$ac_ext <<EOF
  7640. #line 7642 "configure"
  7641. #include "confdefs.h"
  7642.  
  7643. int main() {
  7644.  
  7645.         extern void* dlopen();
  7646.         dlopen();
  7647.       
  7648. ; return 0; }
  7649. EOF
  7650. if { (eval echo configure:7652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7651.   rm -rf conftest*
  7652.   echo "$ac_t""yes" 1>&6;
  7653.           cat >> confdefs.h <<\EOF
  7654. #define HAVE_DLOPEN 1
  7655. EOF
  7656.  
  7657. else
  7658.   echo "configure: failed program was:" >&5
  7659.   cat conftest.$ac_ext >&5
  7660.   rm -rf conftest*
  7661.   echo "$ac_t""no" 1>&6;
  7662.           echo $ac_n "checking for dlopen() in -ldl""... $ac_c" 1>&6
  7663. echo "configure:7665: checking for dlopen() in -ldl" >&5
  7664.           olibs=$LIBS
  7665.           LIBS="$LIBS -ldl"
  7666.           cat > conftest.$ac_ext <<EOF
  7667. #line 7669 "configure"
  7668. #include "confdefs.h"
  7669.  
  7670. int main() {
  7671.  
  7672.                 extern void* dlopen();
  7673.                 dlopen();
  7674.          
  7675. ; return 0; }
  7676. EOF
  7677. if { (eval echo configure:7679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7678.   rm -rf conftest*
  7679.   echo "$ac_t""yes" 1>&6;
  7680.               cat >> confdefs.h <<\EOF
  7681. #define HAVE_DLOPEN 1
  7682. EOF
  7683.  
  7684. else
  7685.   echo "configure: failed program was:" >&5
  7686.   cat conftest.$ac_ext >&5
  7687.   rm -rf conftest*
  7688.   echo "$ac_t""no" 1>&6;
  7689.               LIBS=$olibs
  7690. fi
  7691. rm -f conftest*
  7692. fi
  7693. rm -f conftest*
  7694.       echo $ac_n "checking for dlsym()""... $ac_c" 1>&6
  7695. echo "configure:7697: checking for dlsym()" >&5
  7696.   cat > conftest.$ac_ext <<EOF
  7697. #line 7699 "configure"
  7698. #include "confdefs.h"
  7699.  
  7700. int main() {
  7701.  
  7702.         extern void* dlsym();
  7703.         dlsym();
  7704.       
  7705. ; return 0; }
  7706. EOF
  7707. if { (eval echo configure:7709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7708.   rm -rf conftest*
  7709.   echo "$ac_t""yes" 1>&6;
  7710.           cat >> confdefs.h <<\EOF
  7711. #define HAVE_DLSYM 1
  7712. EOF
  7713.  
  7714. else
  7715.   echo "configure: failed program was:" >&5
  7716.   cat conftest.$ac_ext >&5
  7717.   rm -rf conftest*
  7718.   echo "$ac_t""no" 1>&6;
  7719.           echo $ac_n "checking for dlsym() in -ldl""... $ac_c" 1>&6
  7720. echo "configure:7722: checking for dlsym() in -ldl" >&5
  7721.           olibs=$LIBS
  7722.           LIBS="$LIBS -ldl"
  7723.           cat > conftest.$ac_ext <<EOF
  7724. #line 7726 "configure"
  7725. #include "confdefs.h"
  7726.  
  7727. int main() {
  7728.  
  7729.                 extern void* dlsym();
  7730.                 dlsym();
  7731.          
  7732. ; return 0; }
  7733. EOF
  7734. if { (eval echo configure:7736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7735.   rm -rf conftest*
  7736.   echo "$ac_t""yes" 1>&6;
  7737.               cat >> confdefs.h <<\EOF
  7738. #define HAVE_DLSYM 1
  7739. EOF
  7740.  
  7741. else
  7742.   echo "configure: failed program was:" >&5
  7743.   cat conftest.$ac_ext >&5
  7744.   rm -rf conftest*
  7745.   echo "$ac_t""no" 1>&6;
  7746.               LIBS=$olibs
  7747. fi
  7748. rm -f conftest*
  7749. fi
  7750. rm -f conftest*
  7751. elif test x${DLL} = xdl.h; then
  7752.   cat >> confdefs.h <<\EOF
  7753. #define HAVE_DL_H 1
  7754. EOF
  7755.  
  7756.   echo $ac_n "checking for shl_load()""... $ac_c" 1>&6
  7757. echo "configure:7759: checking for shl_load()" >&5
  7758.   cat > conftest.$ac_ext <<EOF
  7759. #line 7761 "configure"
  7760. #include "confdefs.h"
  7761.  
  7762. int main() {
  7763.  
  7764.         extern void* shl_load();
  7765.         shl_load();
  7766.      
  7767. ; return 0; }
  7768. EOF
  7769. if { (eval echo configure:7771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7770.   rm -rf conftest*
  7771.   echo "$ac_t""yes" 1>&6;
  7772.       cat >> confdefs.h <<\EOF
  7773. #define HAVE_SHL_LOAD 1
  7774. EOF
  7775.  
  7776. else
  7777.   echo "configure: failed program was:" >&5
  7778.   cat conftest.$ac_ext >&5
  7779.   rm -rf conftest*
  7780.   echo "$ac_t""no" 1>&6;
  7781.       echo $ac_n "checking for shl_load() in -ldld""... $ac_c" 1>&6
  7782. echo "configure:7784: checking for shl_load() in -ldld" >&5
  7783.       olibs=$LIBS
  7784.       LIBS="$LIBS -ldld"
  7785.       cat > conftest.$ac_ext <<EOF
  7786. #line 7788 "configure"
  7787. #include "confdefs.h"
  7788.  
  7789. int main() {
  7790.  
  7791.             extern void* shl_load();
  7792.             shl_load();
  7793.          
  7794. ; return 0; }
  7795. EOF
  7796. if { (eval echo configure:7798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7797.   rm -rf conftest*
  7798.   echo "$ac_t""yes" 1>&6;
  7799.           cat >> confdefs.h <<\EOF
  7800. #define HAVE_SHL_LOAD 1
  7801. EOF
  7802.  
  7803. else
  7804.   echo "configure: failed program was:" >&5
  7805.   cat conftest.$ac_ext >&5
  7806.   rm -rf conftest*
  7807.   echo "$ac_t""no" 1>&6;
  7808.           LIBS=$olibs
  7809. fi
  7810. rm -f conftest*
  7811. fi
  7812. rm -f conftest*
  7813. fi
  7814. for ac_hdr in setjmp.h
  7815. do
  7816. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7817. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7818. echo "configure:7820: checking for $ac_hdr" >&5
  7819. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  7820.   echo $ac_n "(cached) $ac_c" 1>&6
  7821. else
  7822.   cat > conftest.$ac_ext <<EOF
  7823. #line 7825 "configure"
  7824. #include "confdefs.h"
  7825. #include <$ac_hdr>
  7826. EOF
  7827. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7828. { (eval echo configure:7830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7829. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7830. if test -z "$ac_err"; then
  7831.   rm -rf conftest*
  7832.   eval "ac_cv_header_$ac_safe=yes"
  7833. else
  7834.   echo "$ac_err" >&5
  7835.   echo "configure: failed program was:" >&5
  7836.   cat conftest.$ac_ext >&5
  7837.   rm -rf conftest*
  7838.   eval "ac_cv_header_$ac_safe=no"
  7839. fi
  7840. rm -f conftest*
  7841. fi
  7842. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7843.   echo "$ac_t""yes" 1>&6
  7844.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7845.   cat >> confdefs.h <<EOF
  7846. #define $ac_tr_hdr 1
  7847. EOF
  7848.  
  7849. else
  7850.   echo "$ac_t""no" 1>&6
  7851. fi
  7852. done
  7853.  
  7854.  
  7855. trap '' 1 2 15
  7856. cat > confcache <<\EOF
  7857. # This file is a shell script that caches the results of configure
  7858. # tests run on this system so they can be shared between configure
  7859. # scripts and configure runs.  It is not useful on other systems.
  7860. # If it contains results you don't want to keep, you may remove or edit it.
  7861. #
  7862. # By default, configure uses ./config.cache as the cache file,
  7863. # creating it if it does not exist already.  You can give configure
  7864. # the --cache-file=FILE option to use a different cache file; that is
  7865. # what configure does when it calls configure scripts in
  7866. # subdirectories, so they share the cache.
  7867. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  7868. # config.status only pays attention to the cache file if you give it the
  7869. # --recheck option to rerun configure.
  7870. #
  7871. EOF
  7872. # The following way of writing the cache mishandles newlines in values,
  7873. # but we know of no workaround that is simple, portable, and efficient.
  7874. # So, don't put newlines in cache variables' values.
  7875. # Ultrix sh set writes to stderr and can't be redirected directly,
  7876. # and sets the high bit in the cache file unless we assign to the vars.
  7877. (set) 2>&1 |
  7878.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7879.   *ac_space=\ *)
  7880.     # `set' does not quote correctly, so add quotes (double-quote substitution
  7881.     # turns \\\\ into \\, and sed turns \\ into \).
  7882.     sed -n \
  7883.       -e "s/'/'\\\\''/g" \
  7884.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  7885.     ;;
  7886.   *)
  7887.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  7888.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  7889.     ;;
  7890.   esac >> confcache
  7891. if cmp -s $cache_file confcache; then
  7892.   :
  7893. else
  7894.   if test -w $cache_file; then
  7895.     echo "updating cache $cache_file"
  7896.     cat confcache > $cache_file
  7897.   else
  7898.     echo "not updating unwritable cache $cache_file"
  7899.   fi
  7900. fi
  7901. rm -f confcache
  7902.  
  7903. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  7904.  
  7905. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  7906. # Let make expand exec_prefix.
  7907. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  7908.  
  7909. # Any assignment to VPATH causes Sun make to only execute
  7910. # the first set of double-colon rules, so remove it if not needed.
  7911. # If there is a colon in the path, we need to keep it.
  7912. if test "x$srcdir" = x.; then
  7913.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  7914. fi
  7915.  
  7916. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  7917.  
  7918. DEFS=-DHAVE_CONFIG_H
  7919.  
  7920. # Without the "./", some shells look in PATH for config.status.
  7921. : ${CONFIG_STATUS=./config.status}
  7922.  
  7923. echo creating $CONFIG_STATUS
  7924. rm -f $CONFIG_STATUS
  7925. cat > $CONFIG_STATUS <<EOF
  7926. #! /bin/sh
  7927. # Generated automatically by configure.
  7928. # Run this file to recreate the current configuration.
  7929. # This directory was configured as follows,
  7930. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  7931. #
  7932. # $0 $ac_configure_args
  7933. #
  7934. # Compiler output produced by configure, useful for debugging
  7935. # configure, is in auto/config.log if it exists.
  7936.  
  7937. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  7938. for ac_option
  7939. do
  7940.   case "\$ac_option" in
  7941.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  7942.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  7943.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  7944.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  7945.     echo "$CONFIG_STATUS generated by autoconf version 2.13"
  7946.     exit 0 ;;
  7947.   -help | --help | --hel | --he | --h)
  7948.     echo "\$ac_cs_usage"; exit 0 ;;
  7949.   *) echo "\$ac_cs_usage"; exit 1 ;;
  7950.   esac
  7951. done
  7952.  
  7953. ac_given_srcdir=$srcdir
  7954.  
  7955. trap 'rm -fr `echo "auto/config.mk:config.mk.in auto/config.h:config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  7956. EOF
  7957. cat >> $CONFIG_STATUS <<EOF
  7958.  
  7959. # Protect against being on the right side of a sed subst in config.status.
  7960. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  7961.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  7962. $ac_vpsub
  7963. $extrasub
  7964. s%@SHELL@%$SHELL%g
  7965. s%@CFLAGS@%$CFLAGS%g
  7966. s%@CPPFLAGS@%$CPPFLAGS%g
  7967. s%@CXXFLAGS@%$CXXFLAGS%g
  7968. s%@FFLAGS@%$FFLAGS%g
  7969. s%@DEFS@%$DEFS%g
  7970. s%@LDFLAGS@%$LDFLAGS%g
  7971. s%@LIBS@%$LIBS%g
  7972. s%@exec_prefix@%$exec_prefix%g
  7973. s%@prefix@%$prefix%g
  7974. s%@program_transform_name@%$program_transform_name%g
  7975. s%@bindir@%$bindir%g
  7976. s%@sbindir@%$sbindir%g
  7977. s%@libexecdir@%$libexecdir%g
  7978. s%@datadir@%$datadir%g
  7979. s%@sysconfdir@%$sysconfdir%g
  7980. s%@sharedstatedir@%$sharedstatedir%g
  7981. s%@localstatedir@%$localstatedir%g
  7982. s%@libdir@%$libdir%g
  7983. s%@includedir@%$includedir%g
  7984. s%@oldincludedir@%$oldincludedir%g
  7985. s%@infodir@%$infodir%g
  7986. s%@mandir@%$mandir%g
  7987. s%@SET_MAKE@%$SET_MAKE%g
  7988. s%@CC@%$CC%g
  7989. s%@CPP@%$CPP%g
  7990. s%@AWK@%$AWK%g
  7991. s%@STRIP@%$STRIP%g
  7992. s%@EXEEXT@%$EXEEXT%g
  7993. s%@CPP_MM@%$CPP_MM%g
  7994. s%@OS_EXTRA_SRC@%$OS_EXTRA_SRC%g
  7995. s%@OS_EXTRA_OBJ@%$OS_EXTRA_OBJ%g
  7996. s%@VIMNAME@%$VIMNAME%g
  7997. s%@EXNAME@%$EXNAME%g
  7998. s%@VIEWNAME@%$VIEWNAME%g
  7999. s%@line_break@%$line_break%g
  8000. s%@dovimdiff@%$dovimdiff%g
  8001. s%@dogvimdiff@%$dogvimdiff%g
  8002. s%@compiledby@%$compiledby%g
  8003. s%@vi_cv_path_perl@%$vi_cv_path_perl%g
  8004. s%@vi_cv_perllib@%$vi_cv_perllib%g
  8005. s%@perllibs@%$perllibs%g
  8006. s%@shrpenv@%$shrpenv%g
  8007. s%@PERL_SRC@%$PERL_SRC%g
  8008. s%@PERL_OBJ@%$PERL_OBJ%g
  8009. s%@PERL_PRO@%$PERL_PRO%g
  8010. s%@PERL_CFLAGS@%$PERL_CFLAGS%g
  8011. s%@vi_cv_path_python@%$vi_cv_path_python%g
  8012. s%@PYTHON_CONFDIR@%$PYTHON_CONFDIR%g
  8013. s%@PYTHON_LIBS@%$PYTHON_LIBS%g
  8014. s%@PYTHON_GETPATH_CFLAGS@%$PYTHON_GETPATH_CFLAGS%g
  8015. s%@PYTHON_CFLAGS@%$PYTHON_CFLAGS%g
  8016. s%@PYTHON_SRC@%$PYTHON_SRC%g
  8017. s%@PYTHON_OBJ@%$PYTHON_OBJ%g
  8018. s%@vi_cv_path_tcl@%$vi_cv_path_tcl%g
  8019. s%@TCL_SRC@%$TCL_SRC%g
  8020. s%@TCL_OBJ@%$TCL_OBJ%g
  8021. s%@TCL_PRO@%$TCL_PRO%g
  8022. s%@TCL_CFLAGS@%$TCL_CFLAGS%g
  8023. s%@TCL_LIBS@%$TCL_LIBS%g
  8024. s%@vi_cv_path_ruby@%$vi_cv_path_ruby%g
  8025. s%@RUBY_SRC@%$RUBY_SRC%g
  8026. s%@RUBY_OBJ@%$RUBY_OBJ%g
  8027. s%@RUBY_PRO@%$RUBY_PRO%g
  8028. s%@RUBY_CFLAGS@%$RUBY_CFLAGS%g
  8029. s%@RUBY_LIBS@%$RUBY_LIBS%g
  8030. s%@WORKSHOP_SRC@%$WORKSHOP_SRC%g
  8031. s%@WORKSHOP_OBJ@%$WORKSHOP_OBJ%g
  8032. s%@NETBEANS_SRC@%$NETBEANS_SRC%g
  8033. s%@NETBEANS_OBJ@%$NETBEANS_OBJ%g
  8034. s%@SNIFF_SRC@%$SNIFF_SRC%g
  8035. s%@SNIFF_OBJ@%$SNIFF_OBJ%g
  8036. s%@xmkmfpath@%$xmkmfpath%g
  8037. s%@X_CFLAGS@%$X_CFLAGS%g
  8038. s%@X_PRE_LIBS@%$X_PRE_LIBS%g
  8039. s%@X_LIBS@%$X_LIBS%g
  8040. s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
  8041. s%@X_LIB@%$X_LIB%g
  8042. s%@GTK_CONFIG@%$GTK_CONFIG%g
  8043. s%@GTK12_CONFIG@%$GTK12_CONFIG%g
  8044. s%@PKG_CONFIG@%$PKG_CONFIG%g
  8045. s%@GTK_CFLAGS@%$GTK_CFLAGS%g
  8046. s%@GTK_LIBS@%$GTK_LIBS%g
  8047. s%@GTK_LIBNAME@%$GTK_LIBNAME%g
  8048. s%@GNOME_LIBS@%$GNOME_LIBS%g
  8049. s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g
  8050. s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g
  8051. s%@GNOME_CONFIG@%$GNOME_CONFIG%g
  8052. s%@MOTIF_LIBNAME@%$MOTIF_LIBNAME%g
  8053. s%@NARROW_PROTO@%$NARROW_PROTO%g
  8054. s%@GUI_INC_LOC@%$GUI_INC_LOC%g
  8055. s%@GUI_LIB_LOC@%$GUI_LIB_LOC%g
  8056. s%@GUITYPE@%$GUITYPE%g
  8057. s%@GUI_X_LIBS@%$GUI_X_LIBS%g
  8058. s%@HANGULIN_SRC@%$HANGULIN_SRC%g
  8059. s%@HANGULIN_OBJ@%$HANGULIN_OBJ%g
  8060. s%@TAGPRG@%$TAGPRG%g
  8061. s%@MSGFMT@%$MSGFMT%g
  8062. s%@MAKEMO@%$MAKEMO%g
  8063.  
  8064. CEOF
  8065. EOF
  8066.  
  8067. cat >> $CONFIG_STATUS <<\EOF
  8068.  
  8069. # Split the substitutions into bite-sized pieces for seds with
  8070. # small command number limits, like on Digital OSF/1 and HP-UX.
  8071. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  8072. ac_file=1 # Number of current file.
  8073. ac_beg=1 # First line for current file.
  8074. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  8075. ac_more_lines=:
  8076. ac_sed_cmds=""
  8077. while $ac_more_lines; do
  8078.   if test $ac_beg -gt 1; then
  8079.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  8080.   else
  8081.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  8082.   fi
  8083.   if test ! -s conftest.s$ac_file; then
  8084.     ac_more_lines=false
  8085.     rm -f conftest.s$ac_file
  8086.   else
  8087.     if test -z "$ac_sed_cmds"; then
  8088.       ac_sed_cmds="sed -f conftest.s$ac_file"
  8089.     else
  8090.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  8091.     fi
  8092.     ac_file=`expr $ac_file + 1`
  8093.     ac_beg=$ac_end
  8094.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  8095.   fi
  8096. done
  8097. if test -z "$ac_sed_cmds"; then
  8098.   ac_sed_cmds=cat
  8099. fi
  8100. EOF
  8101.  
  8102. cat >> $CONFIG_STATUS <<EOF
  8103.  
  8104. CONFIG_FILES=\${CONFIG_FILES-"auto/config.mk:config.mk.in"}
  8105. EOF
  8106. cat >> $CONFIG_STATUS <<\EOF
  8107. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  8108.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  8109.   case "$ac_file" in
  8110.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  8111.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  8112.   *) ac_file_in="${ac_file}.in" ;;
  8113.   esac
  8114.  
  8115.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  8116.  
  8117.   # Remove last slash and all that follows it.  Not all systems have dirname.
  8118.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  8119.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  8120.     # The file is in a subdirectory.
  8121.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  8122.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  8123.     # A "../" for each directory in $ac_dir_suffix.
  8124.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  8125.   else
  8126.     ac_dir_suffix= ac_dots=
  8127.   fi
  8128.  
  8129.   case "$ac_given_srcdir" in
  8130.   .)  srcdir=.
  8131.       if test -z "$ac_dots"; then top_srcdir=.
  8132.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  8133.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  8134.   *) # Relative path.
  8135.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  8136.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  8137.   esac
  8138.  
  8139.  
  8140.   echo creating "$ac_file"
  8141.   rm -f "$ac_file"
  8142.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  8143.   case "$ac_file" in
  8144.   *Makefile*) ac_comsub="1i\\
  8145. # $configure_input" ;;
  8146.   *) ac_comsub= ;;
  8147.   esac
  8148.  
  8149.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  8150.   sed -e "$ac_comsub
  8151. s%@configure_input@%$configure_input%g
  8152. s%@srcdir@%$srcdir%g
  8153. s%@top_srcdir@%$top_srcdir%g
  8154. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  8155. fi; done
  8156. rm -f conftest.s*
  8157.  
  8158. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  8159. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  8160. #
  8161. # ac_d sets the value in "#define NAME VALUE" lines.
  8162. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  8163. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  8164. ac_dC='\3'
  8165. ac_dD='%g'
  8166. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  8167. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  8168. ac_uB='\([     ]\)%\1#\2define\3'
  8169. ac_uC=' '
  8170. ac_uD='\4%g'
  8171. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  8172. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  8173. ac_eB='$%\1#\2define\3'
  8174. ac_eC=' '
  8175. ac_eD='%g'
  8176.  
  8177. if test "${CONFIG_HEADERS+set}" != set; then
  8178. EOF
  8179. cat >> $CONFIG_STATUS <<EOF
  8180.   CONFIG_HEADERS="auto/config.h:config.h.in"
  8181. EOF
  8182. cat >> $CONFIG_STATUS <<\EOF
  8183. fi
  8184. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  8185.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  8186.   case "$ac_file" in
  8187.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  8188.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  8189.   *) ac_file_in="${ac_file}.in" ;;
  8190.   esac
  8191.  
  8192.   echo creating $ac_file
  8193.  
  8194.   rm -f conftest.frag conftest.in conftest.out
  8195.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  8196.   cat $ac_file_inputs > conftest.in
  8197.  
  8198. EOF
  8199.  
  8200. # Transform confdefs.h into a sed script conftest.vals that substitutes
  8201. # the proper values into config.h.in to produce config.h.  And first:
  8202. # Protect against being on the right side of a sed subst in config.status.
  8203. # Protect against being in an unquoted here document in config.status.
  8204. rm -f conftest.vals
  8205. cat > conftest.hdr <<\EOF
  8206. s/[\\&%]/\\&/g
  8207. s%[\\$`]%\\&%g
  8208. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  8209. s%ac_d%ac_u%gp
  8210. s%ac_u%ac_e%gp
  8211. EOF
  8212. sed -n -f conftest.hdr confdefs.h > conftest.vals
  8213. rm -f conftest.hdr
  8214.  
  8215. # This sed command replaces #undef with comments.  This is necessary, for
  8216. # example, in the case of _POSIX_SOURCE, which is predefined and required
  8217. # on some systems where configure will not decide to define it.
  8218. cat >> conftest.vals <<\EOF
  8219. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  8220. EOF
  8221.  
  8222. # Break up conftest.vals because some shells have a limit on
  8223. # the size of here documents, and old seds have small limits too.
  8224.  
  8225. rm -f conftest.tail
  8226. while :
  8227. do
  8228.   ac_lines=`grep -c . conftest.vals`
  8229.   # grep -c gives empty output for an empty file on some AIX systems.
  8230.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  8231.   # Write a limited-size here document to conftest.frag.
  8232.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  8233.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  8234.   echo 'CEOF
  8235.   sed -f conftest.frag conftest.in > conftest.out
  8236.   rm -f conftest.in
  8237.   mv conftest.out conftest.in
  8238. ' >> $CONFIG_STATUS
  8239.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  8240.   rm -f conftest.vals
  8241.   mv conftest.tail conftest.vals
  8242. done
  8243. rm -f conftest.vals
  8244.  
  8245. cat >> $CONFIG_STATUS <<\EOF
  8246.   rm -f conftest.frag conftest.h
  8247.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  8248.   cat conftest.in >> conftest.h
  8249.   rm -f conftest.in
  8250.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  8251.     echo "$ac_file is unchanged"
  8252.     rm -f conftest.h
  8253.   else
  8254.     # Remove last slash and all that follows it.  Not all systems have dirname.
  8255.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  8256.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  8257.       # The file is in a subdirectory.
  8258.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  8259.     fi
  8260.     rm -f $ac_file
  8261.     mv conftest.h $ac_file
  8262.   fi
  8263. fi; done
  8264.  
  8265. EOF
  8266. cat >> $CONFIG_STATUS <<EOF
  8267.  
  8268. EOF
  8269. cat >> $CONFIG_STATUS <<\EOF
  8270.  
  8271. exit 0
  8272. EOF
  8273. chmod +x $CONFIG_STATUS
  8274. rm -fr confdefs* $ac_clean_files
  8275. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  8276.  
  8277.  
  8278.