xref: /vim-8.2.3635/src/auto/configure (revision a3227e2b)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete.  It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="vim.h"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289#  include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294#  include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305#  include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP AWK STRIP CPP_MM OS_EXTRA_SRC OS_EXTRA_OBJ VIMNAME EXNAME VIEWNAME line_break dovimdiff dogvimdiff compiledby vi_cv_path_mzscheme MZSCHEME_SRC MZSCHEME_OBJ MZSCHEME_PRO MZSCHEME_LIBS MZSCHEME_CFLAGS vi_cv_path_perl vi_cv_perllib shrpenv PERL_SRC PERL_OBJ PERL_PRO PERL_CFLAGS PERL_LIBS vi_cv_path_python PYTHON_CONFDIR PYTHON_LIBS PYTHON_GETPATH_CFLAGS PYTHON_CFLAGS PYTHON_SRC PYTHON_OBJ vi_cv_path_tcl TCL_SRC TCL_OBJ TCL_PRO TCL_CFLAGS TCL_LIBS vi_cv_path_ruby RUBY_SRC RUBY_OBJ RUBY_PRO RUBY_CFLAGS RUBY_LIBS WORKSHOP_SRC WORKSHOP_OBJ NETBEANS_SRC NETBEANS_OBJ SNIFF_SRC SNIFF_OBJ xmkmfpath X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS X_LIB GTK_CONFIG GTK12_CONFIG PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_LIBNAME GNOME_LIBS GNOME_LIBDIR GNOME_INCLUDEDIR GNOME_CONFIG MOTIF_LIBNAME NARROW_PROTO GUI_INC_LOC GUI_LIB_LOC GUITYPE GUI_X_LIBS HANGULIN_SRC HANGULIN_OBJ TAGPRG INSTALL_LANGS INSTALL_TOOL_LANGS MSGFMT MAKEMO DEPEND_CFLAGS_FILTER LIBOBJS LTLIBOBJS'
313ac_subst_files=''
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
356  # If the previous option needs an argument, assign it.
357  if test -n "$ac_prev"; then
358    eval "$ac_prev=\$ac_option"
359    ac_prev=
360    continue
361  fi
362
363  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365  # Accept the important Cygnus configure options, so we can diagnose typos.
366
367  case $ac_option in
368
369  -bindir | --bindir | --bindi | --bind | --bin | --bi)
370    ac_prev=bindir ;;
371  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372    bindir=$ac_optarg ;;
373
374  -build | --build | --buil | --bui | --bu)
375    ac_prev=build_alias ;;
376  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377    build_alias=$ac_optarg ;;
378
379  -cache-file | --cache-file | --cache-fil | --cache-fi \
380  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381    ac_prev=cache_file ;;
382  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384    cache_file=$ac_optarg ;;
385
386  --config-cache | -C)
387    cache_file=config.cache ;;
388
389  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390    ac_prev=datadir ;;
391  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392  | --da=*)
393    datadir=$ac_optarg ;;
394
395  -disable-* | --disable-*)
396    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397    # Reject names that are not valid shell variable names.
398    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400   { (exit 1); exit 1; }; }
401    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402    eval "enable_$ac_feature=no" ;;
403
404  -enable-* | --enable-*)
405    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406    # Reject names that are not valid shell variable names.
407    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409   { (exit 1); exit 1; }; }
410    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411    case $ac_option in
412      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413      *) ac_optarg=yes ;;
414    esac
415    eval "enable_$ac_feature='$ac_optarg'" ;;
416
417  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419  | --exec | --exe | --ex)
420    ac_prev=exec_prefix ;;
421  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423  | --exec=* | --exe=* | --ex=*)
424    exec_prefix=$ac_optarg ;;
425
426  -gas | --gas | --ga | --g)
427    # Obsolete; use --with-gas.
428    with_gas=yes ;;
429
430  -help | --help | --hel | --he | -h)
431    ac_init_help=long ;;
432  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433    ac_init_help=recursive ;;
434  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435    ac_init_help=short ;;
436
437  -host | --host | --hos | --ho)
438    ac_prev=host_alias ;;
439  -host=* | --host=* | --hos=* | --ho=*)
440    host_alias=$ac_optarg ;;
441
442  -includedir | --includedir | --includedi | --included | --include \
443  | --includ | --inclu | --incl | --inc)
444    ac_prev=includedir ;;
445  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446  | --includ=* | --inclu=* | --incl=* | --inc=*)
447    includedir=$ac_optarg ;;
448
449  -infodir | --infodir | --infodi | --infod | --info | --inf)
450    ac_prev=infodir ;;
451  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452    infodir=$ac_optarg ;;
453
454  -libdir | --libdir | --libdi | --libd)
455    ac_prev=libdir ;;
456  -libdir=* | --libdir=* | --libdi=* | --libd=*)
457    libdir=$ac_optarg ;;
458
459  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460  | --libexe | --libex | --libe)
461    ac_prev=libexecdir ;;
462  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463  | --libexe=* | --libex=* | --libe=*)
464    libexecdir=$ac_optarg ;;
465
466  -localstatedir | --localstatedir | --localstatedi | --localstated \
467  | --localstate | --localstat | --localsta | --localst \
468  | --locals | --local | --loca | --loc | --lo)
469    ac_prev=localstatedir ;;
470  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473    localstatedir=$ac_optarg ;;
474
475  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476    ac_prev=mandir ;;
477  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478    mandir=$ac_optarg ;;
479
480  -nfp | --nfp | --nf)
481    # Obsolete; use --without-fp.
482    with_fp=no ;;
483
484  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485  | --no-cr | --no-c | -n)
486    no_create=yes ;;
487
488  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490    no_recursion=yes ;;
491
492  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494  | --oldin | --oldi | --old | --ol | --o)
495    ac_prev=oldincludedir ;;
496  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499    oldincludedir=$ac_optarg ;;
500
501  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502    ac_prev=prefix ;;
503  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504    prefix=$ac_optarg ;;
505
506  -program-prefix | --program-prefix | --program-prefi | --program-pref \
507  | --program-pre | --program-pr | --program-p)
508    ac_prev=program_prefix ;;
509  -program-prefix=* | --program-prefix=* | --program-prefi=* \
510  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511    program_prefix=$ac_optarg ;;
512
513  -program-suffix | --program-suffix | --program-suffi | --program-suff \
514  | --program-suf | --program-su | --program-s)
515    ac_prev=program_suffix ;;
516  -program-suffix=* | --program-suffix=* | --program-suffi=* \
517  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518    program_suffix=$ac_optarg ;;
519
520  -program-transform-name | --program-transform-name \
521  | --program-transform-nam | --program-transform-na \
522  | --program-transform-n | --program-transform- \
523  | --program-transform | --program-transfor \
524  | --program-transfo | --program-transf \
525  | --program-trans | --program-tran \
526  | --progr-tra | --program-tr | --program-t)
527    ac_prev=program_transform_name ;;
528  -program-transform-name=* | --program-transform-name=* \
529  | --program-transform-nam=* | --program-transform-na=* \
530  | --program-transform-n=* | --program-transform-=* \
531  | --program-transform=* | --program-transfor=* \
532  | --program-transfo=* | --program-transf=* \
533  | --program-trans=* | --program-tran=* \
534  | --progr-tra=* | --program-tr=* | --program-t=*)
535    program_transform_name=$ac_optarg ;;
536
537  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538  | -silent | --silent | --silen | --sile | --sil)
539    silent=yes ;;
540
541  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542    ac_prev=sbindir ;;
543  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544  | --sbi=* | --sb=*)
545    sbindir=$ac_optarg ;;
546
547  -sharedstatedir | --sharedstatedir | --sharedstatedi \
548  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549  | --sharedst | --shareds | --shared | --share | --shar \
550  | --sha | --sh)
551    ac_prev=sharedstatedir ;;
552  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555  | --sha=* | --sh=*)
556    sharedstatedir=$ac_optarg ;;
557
558  -site | --site | --sit)
559    ac_prev=site ;;
560  -site=* | --site=* | --sit=*)
561    site=$ac_optarg ;;
562
563  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564    ac_prev=srcdir ;;
565  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566    srcdir=$ac_optarg ;;
567
568  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569  | --syscon | --sysco | --sysc | --sys | --sy)
570    ac_prev=sysconfdir ;;
571  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573    sysconfdir=$ac_optarg ;;
574
575  -target | --target | --targe | --targ | --tar | --ta | --t)
576    ac_prev=target_alias ;;
577  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578    target_alias=$ac_optarg ;;
579
580  -v | -verbose | --verbose | --verbos | --verbo | --verb)
581    verbose=yes ;;
582
583  -version | --version | --versio | --versi | --vers | -V)
584    ac_init_version=: ;;
585
586  -with-* | --with-*)
587    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588    # Reject names that are not valid shell variable names.
589    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590      { echo "$as_me: error: invalid package name: $ac_package" >&2
591   { (exit 1); exit 1; }; }
592    ac_package=`echo $ac_package| sed 's/-/_/g'`
593    case $ac_option in
594      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595      *) ac_optarg=yes ;;
596    esac
597    eval "with_$ac_package='$ac_optarg'" ;;
598
599  -without-* | --without-*)
600    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601    # Reject names that are not valid shell variable names.
602    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603      { echo "$as_me: error: invalid package name: $ac_package" >&2
604   { (exit 1); exit 1; }; }
605    ac_package=`echo $ac_package | sed 's/-/_/g'`
606    eval "with_$ac_package=no" ;;
607
608  --x)
609    # Obsolete; use --with-x.
610    with_x=yes ;;
611
612  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613  | --x-incl | --x-inc | --x-in | --x-i)
614    ac_prev=x_includes ;;
615  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617    x_includes=$ac_optarg ;;
618
619  -x-libraries | --x-libraries | --x-librarie | --x-librari \
620  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621    ac_prev=x_libraries ;;
622  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624    x_libraries=$ac_optarg ;;
625
626  -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628   { (exit 1); exit 1; }; }
629    ;;
630
631  *=*)
632    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633    # Reject names that are not valid shell variable names.
634    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636   { (exit 1); exit 1; }; }
637    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638    eval "$ac_envvar='$ac_optarg'"
639    export $ac_envvar ;;
640
641  *)
642    # FIXME: should be removed in autoconf 3.0.
643    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647    ;;
648
649  esac
650done
651
652if test -n "$ac_prev"; then
653  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654  { echo "$as_me: error: missing argument to $ac_option" >&2
655   { (exit 1); exit 1; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661  eval ac_val=$`echo $ac_var`
662  case $ac_val in
663    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665   { (exit 1); exit 1; }; };;
666  esac
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671	      localstatedir libdir includedir oldincludedir infodir mandir
672do
673  eval ac_val=$`echo $ac_var`
674  case $ac_val in
675    [\\/$]* | ?:[\\/]* ) ;;
676    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677   { (exit 1); exit 1; }; };;
678  esac
679done
680
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690  if test "x$build_alias" = x; then
691    cross_compiling=maybe
692    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693    If a cross compiler is detected then cross compile mode will be used." >&2
694  elif test "x$build_alias" != "x$host_alias"; then
695    cross_compiling=yes
696  fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707  ac_srcdir_defaulted=yes
708  # Try the directory containing this script, then its parent.
709  ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711	 X"$0" : 'X\(//\)[^/]' \| \
712	 X"$0" : 'X\(//\)$' \| \
713	 X"$0" : 'X\(/\)' \| \
714	 .     : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718  	  /^X\(\/\/\)$/{ s//\1/; q; }
719  	  /^X\(\/\).*/{ s//\1/; q; }
720  	  s/.*/./; q'`
721  srcdir=$ac_confdir
722  if test ! -r $srcdir/$ac_unique_file; then
723    srcdir=..
724  fi
725else
726  ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729  if test "$ac_srcdir_defaulted" = yes; then
730    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731   { (exit 1); exit 1; }; }
732  else
733    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734   { (exit 1); exit 1; }; }
735  fi
736fi
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739   { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
773
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778  # Omit some internal or obsolete options to make the list less imposing.
779  # This message is too long to be a string in the A/UX 3.1 sh.
780  cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
791  -h, --help              display this help and exit
792      --help=short        display options specific to this package
793      --help=recursive    display the short help of all the included packages
794  -V, --version           display version information and exit
795  -q, --quiet, --silent   do not print \`checking...' messages
796      --cache-file=FILE   cache test results in FILE [disabled]
797  -C, --config-cache      alias for \`--cache-file=config.cache'
798  -n, --no-create         do not create output files
799      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803  cat <<_ACEOF
804Installation directories:
805  --prefix=PREFIX         install architecture-independent files in PREFIX
806			  [$ac_default_prefix]
807  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808			  [PREFIX]
809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818  --bindir=DIR           user executables [EPREFIX/bin]
819  --sbindir=DIR          system admin executables [EPREFIX/sbin]
820  --libexecdir=DIR       program executables [EPREFIX/libexec]
821  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825  --libdir=DIR           object code libraries [EPREFIX/lib]
826  --includedir=DIR       C header files [PREFIX/include]
827  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828  --infodir=DIR          info documentation [PREFIX/info]
829  --mandir=DIR           man documentation [PREFIX/man]
830_ACEOF
831
832  cat <<\_ACEOF
833
834X features:
835  --x-includes=DIR    X include files are in DIR
836  --x-libraries=DIR   X library files are in DIR
837_ACEOF
838fi
839
840if test -n "$ac_init_help"; then
841
842  cat <<\_ACEOF
843
844Optional Features:
845  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
846  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
847  --disable-darwin        Disable Darwin (Mac OS X) support.
848  --disable-xsmp          Disable XSMP session management
849  --disable-xsmp-interact Disable XSMP interaction
850  --enable-mzschemeinterp   Include MzScheme interpreter.
851  --enable-perlinterp     Include Perl interpreter.
852  --enable-pythoninterp   Include Python interpreter.
853  --enable-tclinterp      Include Tcl interpreter.
854  --enable-rubyinterp     Include Ruby interpreter.
855  --enable-cscope         Include cscope interface.
856  --enable-workshop       Include Sun Visual Workshop support.
857  --disable-netbeans      Disable NetBeans integration support.
858  --enable-sniff          Include Sniff interface.
859  --enable-multibyte      Include multibyte editing support.
860  --enable-hangulinput    Include Hangul input support.
861  --enable-xim            Include XIM input support.
862  --enable-fontset        Include X fontset output support.
863  --enable-gui=OPTS     X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon
864  --enable-gtk-check      If auto-select GUI, check for GTK default=yes
865  --enable-gtk2-check     If GTK GUI, check for GTK+ 2 default=yes
866  --enable-gnome-check    If GTK GUI, check for GNOME default=no
867  --enable-motif-check    If auto-select GUI, check for Motif default=yes
868  --enable-athena-check   If auto-select GUI, check for Athena default=yes
869  --enable-nextaw-check   If auto-select GUI, check for neXtaw default=yes
870  --enable-carbon-check   If auto-select GUI, check for Carbon default=yes
871  --disable-gtktest       Do not try to compile and run a test GTK program
872  --disable-acl           Don't check for ACL support.
873  --disable-gpm           Don't use gpm (Linux mouse daemon).
874  --disable-nls           Don't support NLS (gettext()).
875
876Optional Packages:
877  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
878  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
879  --with-mac-arch=ARCH    intel, ppc or both
880  --with-vim-name=NAME    what to call the Vim executable
881  --with-ex-name=NAME     what to call the Ex executable
882  --with-view-name=NAME   what to call the View executable
883  --with-global-runtime=DIR    global runtime directory in 'runtimepath'
884  --with-modified-by=NAME       name of who modified a release version
885  --with-features=TYPE    tiny, small, normal, big or huge (default: normal)
886  --with-compiledby=NAME  name to show in :version message
887  --with-plthome=PLTHOME   Use PLTHOME.
888  --with-python-config-dir=PATH  Python's config directory
889  --with-tclsh=PATH       which tclsh to use (default: tclsh8.0)
890  --with-x                use the X Window System
891  --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
892  --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
893  --with-gnome-includes=DIR Specify location of GNOME headers
894  --with-gnome-libs=DIR   Specify location of GNOME libs
895  --with-gnome            Specify prefix for GNOME files
896  --with-motif-lib=STRING   Library for Motif
897  --with-tlib=library     terminal library to be used
898
899Some influential environment variables:
900  CC          C compiler command
901  CFLAGS      C compiler flags
902  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
903              nonstandard directory <lib dir>
904  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
905              headers in a nonstandard directory <include dir>
906  CPP         C preprocessor
907
908Use these variables to override the choices made by `configure' or to help
909it to find libraries and programs with nonstandard names/locations.
910
911_ACEOF
912fi
913
914if test "$ac_init_help" = "recursive"; then
915  # If there are subdirs, report their specific --help.
916  ac_popdir=`pwd`
917  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
918    test -d $ac_dir || continue
919    ac_builddir=.
920
921if test "$ac_dir" != .; then
922  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
923  # A "../" for each directory in $ac_dir_suffix.
924  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
925else
926  ac_dir_suffix= ac_top_builddir=
927fi
928
929case $srcdir in
930  .)  # No --srcdir option.  We are building in place.
931    ac_srcdir=.
932    if test -z "$ac_top_builddir"; then
933       ac_top_srcdir=.
934    else
935       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
936    fi ;;
937  [\\/]* | ?:[\\/]* )  # Absolute path.
938    ac_srcdir=$srcdir$ac_dir_suffix;
939    ac_top_srcdir=$srcdir ;;
940  *) # Relative path.
941    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
942    ac_top_srcdir=$ac_top_builddir$srcdir ;;
943esac
944
945# Do not use `cd foo && pwd` to compute absolute paths, because
946# the directories may not exist.
947case `pwd` in
948.) ac_abs_builddir="$ac_dir";;
949*)
950  case "$ac_dir" in
951  .) ac_abs_builddir=`pwd`;;
952  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
953  *) ac_abs_builddir=`pwd`/"$ac_dir";;
954  esac;;
955esac
956case $ac_abs_builddir in
957.) ac_abs_top_builddir=${ac_top_builddir}.;;
958*)
959  case ${ac_top_builddir}. in
960  .) ac_abs_top_builddir=$ac_abs_builddir;;
961  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
962  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
963  esac;;
964esac
965case $ac_abs_builddir in
966.) ac_abs_srcdir=$ac_srcdir;;
967*)
968  case $ac_srcdir in
969  .) ac_abs_srcdir=$ac_abs_builddir;;
970  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
971  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
972  esac;;
973esac
974case $ac_abs_builddir in
975.) ac_abs_top_srcdir=$ac_top_srcdir;;
976*)
977  case $ac_top_srcdir in
978  .) ac_abs_top_srcdir=$ac_abs_builddir;;
979  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
980  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
981  esac;;
982esac
983
984    cd $ac_dir
985    # Check for guested configure; otherwise get Cygnus style configure.
986    if test -f $ac_srcdir/configure.gnu; then
987      echo
988      $SHELL $ac_srcdir/configure.gnu  --help=recursive
989    elif test -f $ac_srcdir/configure; then
990      echo
991      $SHELL $ac_srcdir/configure  --help=recursive
992    elif test -f $ac_srcdir/configure.ac ||
993	   test -f $ac_srcdir/configure.in; then
994      echo
995      $ac_configure --help
996    else
997      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
998    fi
999    cd $ac_popdir
1000  done
1001fi
1002
1003test -n "$ac_init_help" && exit 0
1004if $ac_init_version; then
1005  cat <<\_ACEOF
1006
1007Copyright (C) 2003 Free Software Foundation, Inc.
1008This configure script is free software; the Free Software Foundation
1009gives unlimited permission to copy, distribute and modify it.
1010_ACEOF
1011  exit 0
1012fi
1013exec 5>auto/config.log
1014cat >&5 <<_ACEOF
1015This file contains any messages produced by compilers while
1016running configure, to aid debugging if configure makes a mistake.
1017
1018It was created by $as_me, which was
1019generated by GNU Autoconf 2.59.  Invocation command line was
1020
1021  $ $0 $@
1022
1023_ACEOF
1024{
1025cat <<_ASUNAME
1026## --------- ##
1027## Platform. ##
1028## --------- ##
1029
1030hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1031uname -m = `(uname -m) 2>/dev/null || echo unknown`
1032uname -r = `(uname -r) 2>/dev/null || echo unknown`
1033uname -s = `(uname -s) 2>/dev/null || echo unknown`
1034uname -v = `(uname -v) 2>/dev/null || echo unknown`
1035
1036/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1037/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1038
1039/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1040/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1041/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1042hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1043/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1044/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1045/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1046
1047_ASUNAME
1048
1049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1050for as_dir in $PATH
1051do
1052  IFS=$as_save_IFS
1053  test -z "$as_dir" && as_dir=.
1054  echo "PATH: $as_dir"
1055done
1056
1057} >&5
1058
1059cat >&5 <<_ACEOF
1060
1061
1062## ----------- ##
1063## Core tests. ##
1064## ----------- ##
1065
1066_ACEOF
1067
1068
1069# Keep a trace of the command line.
1070# Strip out --no-create and --no-recursion so they do not pile up.
1071# Strip out --silent because we don't want to record it for future runs.
1072# Also quote any args containing shell meta-characters.
1073# Make two passes to allow for proper duplicate-argument suppression.
1074ac_configure_args=
1075ac_configure_args0=
1076ac_configure_args1=
1077ac_sep=
1078ac_must_keep_next=false
1079for ac_pass in 1 2
1080do
1081  for ac_arg
1082  do
1083    case $ac_arg in
1084    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1085    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086    | -silent | --silent | --silen | --sile | --sil)
1087      continue ;;
1088    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1089      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1090    esac
1091    case $ac_pass in
1092    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1093    2)
1094      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1095      if test $ac_must_keep_next = true; then
1096	ac_must_keep_next=false # Got value, back to normal.
1097      else
1098	case $ac_arg in
1099	  *=* | --config-cache | -C | -disable-* | --disable-* \
1100	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1101	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1102	  | -with-* | --with-* | -without-* | --without-* | --x)
1103	    case "$ac_configure_args0 " in
1104	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1105	    esac
1106	    ;;
1107	  -* ) ac_must_keep_next=true ;;
1108	esac
1109      fi
1110      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1111      # Get rid of the leading space.
1112      ac_sep=" "
1113      ;;
1114    esac
1115  done
1116done
1117$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1118$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1119
1120# When interrupted or exit'd, cleanup temporary files, and complete
1121# config.log.  We remove comments because anyway the quotes in there
1122# would cause problems or look ugly.
1123# WARNING: Be sure not to use single quotes in there, as some shells,
1124# such as our DU 5.0 friend, will then `close' the trap.
1125trap 'exit_status=$?
1126  # Save into config.log some information that might help in debugging.
1127  {
1128    echo
1129
1130    cat <<\_ASBOX
1131## ---------------- ##
1132## Cache variables. ##
1133## ---------------- ##
1134_ASBOX
1135    echo
1136    # The following way of writing the cache mishandles newlines in values,
1137{
1138  (set) 2>&1 |
1139    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1140    *ac_space=\ *)
1141      sed -n \
1142	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1143	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1144      ;;
1145    *)
1146      sed -n \
1147	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1148      ;;
1149    esac;
1150}
1151    echo
1152
1153    cat <<\_ASBOX
1154## ----------------- ##
1155## Output variables. ##
1156## ----------------- ##
1157_ASBOX
1158    echo
1159    for ac_var in $ac_subst_vars
1160    do
1161      eval ac_val=$`echo $ac_var`
1162      echo "$ac_var='"'"'$ac_val'"'"'"
1163    done | sort
1164    echo
1165
1166    if test -n "$ac_subst_files"; then
1167      cat <<\_ASBOX
1168## ------------- ##
1169## Output files. ##
1170## ------------- ##
1171_ASBOX
1172      echo
1173      for ac_var in $ac_subst_files
1174      do
1175	eval ac_val=$`echo $ac_var`
1176	echo "$ac_var='"'"'$ac_val'"'"'"
1177      done | sort
1178      echo
1179    fi
1180
1181    if test -s confdefs.h; then
1182      cat <<\_ASBOX
1183## ----------- ##
1184## confdefs.h. ##
1185## ----------- ##
1186_ASBOX
1187      echo
1188      sed "/^$/d" confdefs.h | sort
1189      echo
1190    fi
1191    test "$ac_signal" != 0 &&
1192      echo "$as_me: caught signal $ac_signal"
1193    echo "$as_me: exit $exit_status"
1194  } >&5
1195  rm -f core *.core &&
1196  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1197    exit $exit_status
1198     ' 0
1199for ac_signal in 1 2 13 15; do
1200  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1201done
1202ac_signal=0
1203
1204# confdefs.h avoids OS command line length limits that DEFS can exceed.
1205rm -rf conftest* confdefs.h
1206# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1207echo >confdefs.h
1208
1209# Predefined preprocessor variables.
1210
1211cat >>confdefs.h <<_ACEOF
1212#define PACKAGE_NAME "$PACKAGE_NAME"
1213_ACEOF
1214
1215
1216cat >>confdefs.h <<_ACEOF
1217#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1218_ACEOF
1219
1220
1221cat >>confdefs.h <<_ACEOF
1222#define PACKAGE_VERSION "$PACKAGE_VERSION"
1223_ACEOF
1224
1225
1226cat >>confdefs.h <<_ACEOF
1227#define PACKAGE_STRING "$PACKAGE_STRING"
1228_ACEOF
1229
1230
1231cat >>confdefs.h <<_ACEOF
1232#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1233_ACEOF
1234
1235
1236# Let the site file select an alternate cache file if it wants to.
1237# Prefer explicitly selected file to automatically selected ones.
1238if test -z "$CONFIG_SITE"; then
1239  if test "x$prefix" != xNONE; then
1240    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1241  else
1242    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1243  fi
1244fi
1245for ac_site_file in $CONFIG_SITE; do
1246  if test -r "$ac_site_file"; then
1247    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1248echo "$as_me: loading site script $ac_site_file" >&6;}
1249    sed 's/^/| /' "$ac_site_file" >&5
1250    . "$ac_site_file"
1251  fi
1252done
1253
1254if test -r "$cache_file"; then
1255  # Some versions of bash will fail to source /dev/null (special
1256  # files actually), so we avoid doing that.
1257  if test -f "$cache_file"; then
1258    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1259echo "$as_me: loading cache $cache_file" >&6;}
1260    case $cache_file in
1261      [\\/]* | ?:[\\/]* ) . $cache_file;;
1262      *)                      . ./$cache_file;;
1263    esac
1264  fi
1265else
1266  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1267echo "$as_me: creating cache $cache_file" >&6;}
1268  >$cache_file
1269fi
1270
1271# Check that the precious variables saved in the cache have kept the same
1272# value.
1273ac_cache_corrupted=false
1274for ac_var in `(set) 2>&1 |
1275	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1276  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1277  eval ac_new_set=\$ac_env_${ac_var}_set
1278  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1279  eval ac_new_val="\$ac_env_${ac_var}_value"
1280  case $ac_old_set,$ac_new_set in
1281    set,)
1282      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1283echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1284      ac_cache_corrupted=: ;;
1285    ,set)
1286      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1287echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1288      ac_cache_corrupted=: ;;
1289    ,);;
1290    *)
1291      if test "x$ac_old_val" != "x$ac_new_val"; then
1292	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1293echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1294	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1295echo "$as_me:   former value:  $ac_old_val" >&2;}
1296	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1297echo "$as_me:   current value: $ac_new_val" >&2;}
1298	ac_cache_corrupted=:
1299      fi;;
1300  esac
1301  # Pass precious variables to config.status.
1302  if test "$ac_new_set" = set; then
1303    case $ac_new_val in
1304    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1305      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1306    *) ac_arg=$ac_var=$ac_new_val ;;
1307    esac
1308    case " $ac_configure_args " in
1309      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1310      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1311    esac
1312  fi
1313done
1314if $ac_cache_corrupted; then
1315  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1316echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1317  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1318echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1319   { (exit 1); exit 1; }; }
1320fi
1321
1322ac_ext=c
1323ac_cpp='$CPP $CPPFLAGS'
1324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1326ac_compiler_gnu=$ac_cv_c_compiler_gnu
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346          ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
1347
1348
1349cat >>confdefs.h <<\_ACEOF
1350#define UNIX 1
1351_ACEOF
1352
1353echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1354echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1355set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1356if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1357  echo $ECHO_N "(cached) $ECHO_C" >&6
1358else
1359  cat >conftest.make <<\_ACEOF
1360all:
1361	@echo 'ac_maketemp="$(MAKE)"'
1362_ACEOF
1363# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1364eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1365if test -n "$ac_maketemp"; then
1366  eval ac_cv_prog_make_${ac_make}_set=yes
1367else
1368  eval ac_cv_prog_make_${ac_make}_set=no
1369fi
1370rm -f conftest.make
1371fi
1372if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1373  echo "$as_me:$LINENO: result: yes" >&5
1374echo "${ECHO_T}yes" >&6
1375  SET_MAKE=
1376else
1377  echo "$as_me:$LINENO: result: no" >&5
1378echo "${ECHO_T}no" >&6
1379  SET_MAKE="MAKE=${MAKE-make}"
1380fi
1381
1382
1383ac_ext=c
1384ac_cpp='$CPP $CPPFLAGS'
1385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1387ac_compiler_gnu=$ac_cv_c_compiler_gnu
1388if test -n "$ac_tool_prefix"; then
1389  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1390set dummy ${ac_tool_prefix}gcc; ac_word=$2
1391echo "$as_me:$LINENO: checking for $ac_word" >&5
1392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1393if test "${ac_cv_prog_CC+set}" = set; then
1394  echo $ECHO_N "(cached) $ECHO_C" >&6
1395else
1396  if test -n "$CC"; then
1397  ac_cv_prog_CC="$CC" # Let the user override the test.
1398else
1399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1400for as_dir in $PATH
1401do
1402  IFS=$as_save_IFS
1403  test -z "$as_dir" && as_dir=.
1404  for ac_exec_ext in '' $ac_executable_extensions; do
1405  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1406    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1407    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1408    break 2
1409  fi
1410done
1411done
1412
1413fi
1414fi
1415CC=$ac_cv_prog_CC
1416if test -n "$CC"; then
1417  echo "$as_me:$LINENO: result: $CC" >&5
1418echo "${ECHO_T}$CC" >&6
1419else
1420  echo "$as_me:$LINENO: result: no" >&5
1421echo "${ECHO_T}no" >&6
1422fi
1423
1424fi
1425if test -z "$ac_cv_prog_CC"; then
1426  ac_ct_CC=$CC
1427  # Extract the first word of "gcc", so it can be a program name with args.
1428set dummy gcc; ac_word=$2
1429echo "$as_me:$LINENO: checking for $ac_word" >&5
1430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1431if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1432  echo $ECHO_N "(cached) $ECHO_C" >&6
1433else
1434  if test -n "$ac_ct_CC"; then
1435  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1436else
1437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1438for as_dir in $PATH
1439do
1440  IFS=$as_save_IFS
1441  test -z "$as_dir" && as_dir=.
1442  for ac_exec_ext in '' $ac_executable_extensions; do
1443  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1444    ac_cv_prog_ac_ct_CC="gcc"
1445    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1446    break 2
1447  fi
1448done
1449done
1450
1451fi
1452fi
1453ac_ct_CC=$ac_cv_prog_ac_ct_CC
1454if test -n "$ac_ct_CC"; then
1455  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1456echo "${ECHO_T}$ac_ct_CC" >&6
1457else
1458  echo "$as_me:$LINENO: result: no" >&5
1459echo "${ECHO_T}no" >&6
1460fi
1461
1462  CC=$ac_ct_CC
1463else
1464  CC="$ac_cv_prog_CC"
1465fi
1466
1467if test -z "$CC"; then
1468  if test -n "$ac_tool_prefix"; then
1469  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1470set dummy ${ac_tool_prefix}cc; ac_word=$2
1471echo "$as_me:$LINENO: checking for $ac_word" >&5
1472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1473if test "${ac_cv_prog_CC+set}" = set; then
1474  echo $ECHO_N "(cached) $ECHO_C" >&6
1475else
1476  if test -n "$CC"; then
1477  ac_cv_prog_CC="$CC" # Let the user override the test.
1478else
1479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1480for as_dir in $PATH
1481do
1482  IFS=$as_save_IFS
1483  test -z "$as_dir" && as_dir=.
1484  for ac_exec_ext in '' $ac_executable_extensions; do
1485  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1486    ac_cv_prog_CC="${ac_tool_prefix}cc"
1487    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1488    break 2
1489  fi
1490done
1491done
1492
1493fi
1494fi
1495CC=$ac_cv_prog_CC
1496if test -n "$CC"; then
1497  echo "$as_me:$LINENO: result: $CC" >&5
1498echo "${ECHO_T}$CC" >&6
1499else
1500  echo "$as_me:$LINENO: result: no" >&5
1501echo "${ECHO_T}no" >&6
1502fi
1503
1504fi
1505if test -z "$ac_cv_prog_CC"; then
1506  ac_ct_CC=$CC
1507  # Extract the first word of "cc", so it can be a program name with args.
1508set dummy cc; ac_word=$2
1509echo "$as_me:$LINENO: checking for $ac_word" >&5
1510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1511if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1512  echo $ECHO_N "(cached) $ECHO_C" >&6
1513else
1514  if test -n "$ac_ct_CC"; then
1515  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1516else
1517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1518for as_dir in $PATH
1519do
1520  IFS=$as_save_IFS
1521  test -z "$as_dir" && as_dir=.
1522  for ac_exec_ext in '' $ac_executable_extensions; do
1523  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1524    ac_cv_prog_ac_ct_CC="cc"
1525    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1526    break 2
1527  fi
1528done
1529done
1530
1531fi
1532fi
1533ac_ct_CC=$ac_cv_prog_ac_ct_CC
1534if test -n "$ac_ct_CC"; then
1535  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1536echo "${ECHO_T}$ac_ct_CC" >&6
1537else
1538  echo "$as_me:$LINENO: result: no" >&5
1539echo "${ECHO_T}no" >&6
1540fi
1541
1542  CC=$ac_ct_CC
1543else
1544  CC="$ac_cv_prog_CC"
1545fi
1546
1547fi
1548if test -z "$CC"; then
1549  # Extract the first word of "cc", so it can be a program name with args.
1550set dummy cc; ac_word=$2
1551echo "$as_me:$LINENO: checking for $ac_word" >&5
1552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1553if test "${ac_cv_prog_CC+set}" = set; then
1554  echo $ECHO_N "(cached) $ECHO_C" >&6
1555else
1556  if test -n "$CC"; then
1557  ac_cv_prog_CC="$CC" # Let the user override the test.
1558else
1559  ac_prog_rejected=no
1560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1561for as_dir in $PATH
1562do
1563  IFS=$as_save_IFS
1564  test -z "$as_dir" && as_dir=.
1565  for ac_exec_ext in '' $ac_executable_extensions; do
1566  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1567    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1568       ac_prog_rejected=yes
1569       continue
1570     fi
1571    ac_cv_prog_CC="cc"
1572    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573    break 2
1574  fi
1575done
1576done
1577
1578if test $ac_prog_rejected = yes; then
1579  # We found a bogon in the path, so make sure we never use it.
1580  set dummy $ac_cv_prog_CC
1581  shift
1582  if test $# != 0; then
1583    # We chose a different compiler from the bogus one.
1584    # However, it has the same basename, so the bogon will be chosen
1585    # first if we set CC to just the basename; use the full file name.
1586    shift
1587    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1588  fi
1589fi
1590fi
1591fi
1592CC=$ac_cv_prog_CC
1593if test -n "$CC"; then
1594  echo "$as_me:$LINENO: result: $CC" >&5
1595echo "${ECHO_T}$CC" >&6
1596else
1597  echo "$as_me:$LINENO: result: no" >&5
1598echo "${ECHO_T}no" >&6
1599fi
1600
1601fi
1602if test -z "$CC"; then
1603  if test -n "$ac_tool_prefix"; then
1604  for ac_prog in cl
1605  do
1606    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1607set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1608echo "$as_me:$LINENO: checking for $ac_word" >&5
1609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1610if test "${ac_cv_prog_CC+set}" = set; then
1611  echo $ECHO_N "(cached) $ECHO_C" >&6
1612else
1613  if test -n "$CC"; then
1614  ac_cv_prog_CC="$CC" # Let the user override the test.
1615else
1616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617for as_dir in $PATH
1618do
1619  IFS=$as_save_IFS
1620  test -z "$as_dir" && as_dir=.
1621  for ac_exec_ext in '' $ac_executable_extensions; do
1622  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1623    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1624    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625    break 2
1626  fi
1627done
1628done
1629
1630fi
1631fi
1632CC=$ac_cv_prog_CC
1633if test -n "$CC"; then
1634  echo "$as_me:$LINENO: result: $CC" >&5
1635echo "${ECHO_T}$CC" >&6
1636else
1637  echo "$as_me:$LINENO: result: no" >&5
1638echo "${ECHO_T}no" >&6
1639fi
1640
1641    test -n "$CC" && break
1642  done
1643fi
1644if test -z "$CC"; then
1645  ac_ct_CC=$CC
1646  for ac_prog in cl
1647do
1648  # Extract the first word of "$ac_prog", so it can be a program name with args.
1649set dummy $ac_prog; ac_word=$2
1650echo "$as_me:$LINENO: checking for $ac_word" >&5
1651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1653  echo $ECHO_N "(cached) $ECHO_C" >&6
1654else
1655  if test -n "$ac_ct_CC"; then
1656  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1657else
1658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659for as_dir in $PATH
1660do
1661  IFS=$as_save_IFS
1662  test -z "$as_dir" && as_dir=.
1663  for ac_exec_ext in '' $ac_executable_extensions; do
1664  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665    ac_cv_prog_ac_ct_CC="$ac_prog"
1666    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667    break 2
1668  fi
1669done
1670done
1671
1672fi
1673fi
1674ac_ct_CC=$ac_cv_prog_ac_ct_CC
1675if test -n "$ac_ct_CC"; then
1676  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1677echo "${ECHO_T}$ac_ct_CC" >&6
1678else
1679  echo "$as_me:$LINENO: result: no" >&5
1680echo "${ECHO_T}no" >&6
1681fi
1682
1683  test -n "$ac_ct_CC" && break
1684done
1685
1686  CC=$ac_ct_CC
1687fi
1688
1689fi
1690
1691
1692test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1693See \`config.log' for more details." >&5
1694echo "$as_me: error: no acceptable C compiler found in \$PATH
1695See \`config.log' for more details." >&2;}
1696   { (exit 1); exit 1; }; }
1697
1698# Provide some information about the compiler.
1699echo "$as_me:$LINENO:" \
1700     "checking for C compiler version" >&5
1701ac_compiler=`set X $ac_compile; echo $2`
1702{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1703  (eval $ac_compiler --version </dev/null >&5) 2>&5
1704  ac_status=$?
1705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1706  (exit $ac_status); }
1707{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1708  (eval $ac_compiler -v </dev/null >&5) 2>&5
1709  ac_status=$?
1710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1711  (exit $ac_status); }
1712{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1713  (eval $ac_compiler -V </dev/null >&5) 2>&5
1714  ac_status=$?
1715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1716  (exit $ac_status); }
1717
1718cat >conftest.$ac_ext <<_ACEOF
1719/* confdefs.h.  */
1720_ACEOF
1721cat confdefs.h >>conftest.$ac_ext
1722cat >>conftest.$ac_ext <<_ACEOF
1723/* end confdefs.h.  */
1724
1725int
1726main ()
1727{
1728
1729  ;
1730  return 0;
1731}
1732_ACEOF
1733ac_clean_files_save=$ac_clean_files
1734ac_clean_files="$ac_clean_files a.out a.exe b.out"
1735# Try to create an executable without -o first, disregard a.out.
1736# It will help us diagnose broken compilers, and finding out an intuition
1737# of exeext.
1738echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1739echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1740ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1741if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1742  (eval $ac_link_default) 2>&5
1743  ac_status=$?
1744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1745  (exit $ac_status); }; then
1746  # Find the output, starting from the most likely.  This scheme is
1747# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1748# resort.
1749
1750# Be careful to initialize this variable, since it used to be cached.
1751# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1752ac_cv_exeext=
1753# b.out is created by i960 compilers.
1754for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1755do
1756  test -f "$ac_file" || continue
1757  case $ac_file in
1758    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1759	;;
1760    conftest.$ac_ext )
1761	# This is the source file.
1762	;;
1763    [ab].out )
1764	# We found the default executable, but exeext='' is most
1765	# certainly right.
1766	break;;
1767    *.* )
1768	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1769	# FIXME: I believe we export ac_cv_exeext for Libtool,
1770	# but it would be cool to find out if it's true.  Does anybody
1771	# maintain Libtool? --akim.
1772	export ac_cv_exeext
1773	break;;
1774    * )
1775	break;;
1776  esac
1777done
1778else
1779  echo "$as_me: failed program was:" >&5
1780sed 's/^/| /' conftest.$ac_ext >&5
1781
1782{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1783See \`config.log' for more details." >&5
1784echo "$as_me: error: C compiler cannot create executables
1785See \`config.log' for more details." >&2;}
1786   { (exit 77); exit 77; }; }
1787fi
1788
1789ac_exeext=$ac_cv_exeext
1790echo "$as_me:$LINENO: result: $ac_file" >&5
1791echo "${ECHO_T}$ac_file" >&6
1792
1793# Check the compiler produces executables we can run.  If not, either
1794# the compiler is broken, or we cross compile.
1795echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1796echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1797# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1798# If not cross compiling, check that we can run a simple program.
1799if test "$cross_compiling" != yes; then
1800  if { ac_try='./$ac_file'
1801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1802  (eval $ac_try) 2>&5
1803  ac_status=$?
1804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1805  (exit $ac_status); }; }; then
1806    cross_compiling=no
1807  else
1808    if test "$cross_compiling" = maybe; then
1809	cross_compiling=yes
1810    else
1811	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1812If you meant to cross compile, use \`--host'.
1813See \`config.log' for more details." >&5
1814echo "$as_me: error: cannot run C compiled programs.
1815If you meant to cross compile, use \`--host'.
1816See \`config.log' for more details." >&2;}
1817   { (exit 1); exit 1; }; }
1818    fi
1819  fi
1820fi
1821echo "$as_me:$LINENO: result: yes" >&5
1822echo "${ECHO_T}yes" >&6
1823
1824rm -f a.out a.exe conftest$ac_cv_exeext b.out
1825ac_clean_files=$ac_clean_files_save
1826# Check the compiler produces executables we can run.  If not, either
1827# the compiler is broken, or we cross compile.
1828echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1829echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1830echo "$as_me:$LINENO: result: $cross_compiling" >&5
1831echo "${ECHO_T}$cross_compiling" >&6
1832
1833echo "$as_me:$LINENO: checking for suffix of executables" >&5
1834echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1836  (eval $ac_link) 2>&5
1837  ac_status=$?
1838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1839  (exit $ac_status); }; then
1840  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1841# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1842# work properly (i.e., refer to `conftest.exe'), while it won't with
1843# `rm'.
1844for ac_file in conftest.exe conftest conftest.*; do
1845  test -f "$ac_file" || continue
1846  case $ac_file in
1847    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1848    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1849	  export ac_cv_exeext
1850	  break;;
1851    * ) break;;
1852  esac
1853done
1854else
1855  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1856See \`config.log' for more details." >&5
1857echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1858See \`config.log' for more details." >&2;}
1859   { (exit 1); exit 1; }; }
1860fi
1861
1862rm -f conftest$ac_cv_exeext
1863echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1864echo "${ECHO_T}$ac_cv_exeext" >&6
1865
1866rm -f conftest.$ac_ext
1867EXEEXT=$ac_cv_exeext
1868ac_exeext=$EXEEXT
1869echo "$as_me:$LINENO: checking for suffix of object files" >&5
1870echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1871if test "${ac_cv_objext+set}" = set; then
1872  echo $ECHO_N "(cached) $ECHO_C" >&6
1873else
1874  cat >conftest.$ac_ext <<_ACEOF
1875/* confdefs.h.  */
1876_ACEOF
1877cat confdefs.h >>conftest.$ac_ext
1878cat >>conftest.$ac_ext <<_ACEOF
1879/* end confdefs.h.  */
1880
1881int
1882main ()
1883{
1884
1885  ;
1886  return 0;
1887}
1888_ACEOF
1889rm -f conftest.o conftest.obj
1890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1891  (eval $ac_compile) 2>&5
1892  ac_status=$?
1893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1894  (exit $ac_status); }; then
1895  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1896  case $ac_file in
1897    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1898    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1899       break;;
1900  esac
1901done
1902else
1903  echo "$as_me: failed program was:" >&5
1904sed 's/^/| /' conftest.$ac_ext >&5
1905
1906{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1907See \`config.log' for more details." >&5
1908echo "$as_me: error: cannot compute suffix of object files: cannot compile
1909See \`config.log' for more details." >&2;}
1910   { (exit 1); exit 1; }; }
1911fi
1912
1913rm -f conftest.$ac_cv_objext conftest.$ac_ext
1914fi
1915echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1916echo "${ECHO_T}$ac_cv_objext" >&6
1917OBJEXT=$ac_cv_objext
1918ac_objext=$OBJEXT
1919echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1920echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1921if test "${ac_cv_c_compiler_gnu+set}" = set; then
1922  echo $ECHO_N "(cached) $ECHO_C" >&6
1923else
1924  cat >conftest.$ac_ext <<_ACEOF
1925/* confdefs.h.  */
1926_ACEOF
1927cat confdefs.h >>conftest.$ac_ext
1928cat >>conftest.$ac_ext <<_ACEOF
1929/* end confdefs.h.  */
1930
1931int
1932main ()
1933{
1934#ifndef __GNUC__
1935       choke me
1936#endif
1937
1938  ;
1939  return 0;
1940}
1941_ACEOF
1942rm -f conftest.$ac_objext
1943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1944  (eval $ac_compile) 2>conftest.er1
1945  ac_status=$?
1946  grep -v '^ *+' conftest.er1 >conftest.err
1947  rm -f conftest.er1
1948  cat conftest.err >&5
1949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950  (exit $ac_status); } &&
1951	 { ac_try='test -z "$ac_c_werror_flag"
1952			 || test ! -s conftest.err'
1953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1954  (eval $ac_try) 2>&5
1955  ac_status=$?
1956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957  (exit $ac_status); }; } &&
1958	 { ac_try='test -s conftest.$ac_objext'
1959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1960  (eval $ac_try) 2>&5
1961  ac_status=$?
1962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963  (exit $ac_status); }; }; then
1964  ac_compiler_gnu=yes
1965else
1966  echo "$as_me: failed program was:" >&5
1967sed 's/^/| /' conftest.$ac_ext >&5
1968
1969ac_compiler_gnu=no
1970fi
1971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1972ac_cv_c_compiler_gnu=$ac_compiler_gnu
1973
1974fi
1975echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1976echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1977GCC=`test $ac_compiler_gnu = yes && echo yes`
1978ac_test_CFLAGS=${CFLAGS+set}
1979ac_save_CFLAGS=$CFLAGS
1980CFLAGS="-g"
1981echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1982echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1983if test "${ac_cv_prog_cc_g+set}" = set; then
1984  echo $ECHO_N "(cached) $ECHO_C" >&6
1985else
1986  cat >conftest.$ac_ext <<_ACEOF
1987/* confdefs.h.  */
1988_ACEOF
1989cat confdefs.h >>conftest.$ac_ext
1990cat >>conftest.$ac_ext <<_ACEOF
1991/* end confdefs.h.  */
1992
1993int
1994main ()
1995{
1996
1997  ;
1998  return 0;
1999}
2000_ACEOF
2001rm -f conftest.$ac_objext
2002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2003  (eval $ac_compile) 2>conftest.er1
2004  ac_status=$?
2005  grep -v '^ *+' conftest.er1 >conftest.err
2006  rm -f conftest.er1
2007  cat conftest.err >&5
2008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009  (exit $ac_status); } &&
2010	 { ac_try='test -z "$ac_c_werror_flag"
2011			 || test ! -s conftest.err'
2012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2013  (eval $ac_try) 2>&5
2014  ac_status=$?
2015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016  (exit $ac_status); }; } &&
2017	 { ac_try='test -s conftest.$ac_objext'
2018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2019  (eval $ac_try) 2>&5
2020  ac_status=$?
2021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022  (exit $ac_status); }; }; then
2023  ac_cv_prog_cc_g=yes
2024else
2025  echo "$as_me: failed program was:" >&5
2026sed 's/^/| /' conftest.$ac_ext >&5
2027
2028ac_cv_prog_cc_g=no
2029fi
2030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2031fi
2032echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2033echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2034if test "$ac_test_CFLAGS" = set; then
2035  CFLAGS=$ac_save_CFLAGS
2036elif test $ac_cv_prog_cc_g = yes; then
2037  if test "$GCC" = yes; then
2038    CFLAGS="-g -O2"
2039  else
2040    CFLAGS="-g"
2041  fi
2042else
2043  if test "$GCC" = yes; then
2044    CFLAGS="-O2"
2045  else
2046    CFLAGS=
2047  fi
2048fi
2049echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2050echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2051if test "${ac_cv_prog_cc_stdc+set}" = set; then
2052  echo $ECHO_N "(cached) $ECHO_C" >&6
2053else
2054  ac_cv_prog_cc_stdc=no
2055ac_save_CC=$CC
2056cat >conftest.$ac_ext <<_ACEOF
2057/* confdefs.h.  */
2058_ACEOF
2059cat confdefs.h >>conftest.$ac_ext
2060cat >>conftest.$ac_ext <<_ACEOF
2061/* end confdefs.h.  */
2062#include <stdarg.h>
2063#include <stdio.h>
2064#include <sys/types.h>
2065#include <sys/stat.h>
2066/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2067struct buf { int x; };
2068FILE * (*rcsopen) (struct buf *, struct stat *, int);
2069static char *e (p, i)
2070     char **p;
2071     int i;
2072{
2073  return p[i];
2074}
2075static char *f (char * (*g) (char **, int), char **p, ...)
2076{
2077  char *s;
2078  va_list v;
2079  va_start (v,p);
2080  s = g (p, va_arg (v,int));
2081  va_end (v);
2082  return s;
2083}
2084
2085/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2086   function prototypes and stuff, but not '\xHH' hex character constants.
2087   These don't provoke an error unfortunately, instead are silently treated
2088   as 'x'.  The following induces an error, until -std1 is added to get
2089   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2090   array size at least.  It's necessary to write '\x00'==0 to get something
2091   that's true only with -std1.  */
2092int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2093
2094int test (int i, double x);
2095struct s1 {int (*f) (int a);};
2096struct s2 {int (*f) (double a);};
2097int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2098int argc;
2099char **argv;
2100int
2101main ()
2102{
2103return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2104  ;
2105  return 0;
2106}
2107_ACEOF
2108# Don't try gcc -ansi; that turns off useful extensions and
2109# breaks some systems' header files.
2110# AIX			-qlanglvl=ansi
2111# Ultrix and OSF/1	-std1
2112# HP-UX 10.20 and later	-Ae
2113# HP-UX older versions	-Aa -D_HPUX_SOURCE
2114# SVR4			-Xc -D__EXTENSIONS__
2115for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2116do
2117  CC="$ac_save_CC $ac_arg"
2118  rm -f conftest.$ac_objext
2119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2120  (eval $ac_compile) 2>conftest.er1
2121  ac_status=$?
2122  grep -v '^ *+' conftest.er1 >conftest.err
2123  rm -f conftest.er1
2124  cat conftest.err >&5
2125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126  (exit $ac_status); } &&
2127	 { ac_try='test -z "$ac_c_werror_flag"
2128			 || test ! -s conftest.err'
2129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2130  (eval $ac_try) 2>&5
2131  ac_status=$?
2132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133  (exit $ac_status); }; } &&
2134	 { ac_try='test -s conftest.$ac_objext'
2135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2136  (eval $ac_try) 2>&5
2137  ac_status=$?
2138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139  (exit $ac_status); }; }; then
2140  ac_cv_prog_cc_stdc=$ac_arg
2141break
2142else
2143  echo "$as_me: failed program was:" >&5
2144sed 's/^/| /' conftest.$ac_ext >&5
2145
2146fi
2147rm -f conftest.err conftest.$ac_objext
2148done
2149rm -f conftest.$ac_ext conftest.$ac_objext
2150CC=$ac_save_CC
2151
2152fi
2153
2154case "x$ac_cv_prog_cc_stdc" in
2155  x|xno)
2156    echo "$as_me:$LINENO: result: none needed" >&5
2157echo "${ECHO_T}none needed" >&6 ;;
2158  *)
2159    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2160echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2161    CC="$CC $ac_cv_prog_cc_stdc" ;;
2162esac
2163
2164# Some people use a C++ compiler to compile C.  Since we use `exit',
2165# in C++ we need to declare it.  In case someone uses the same compiler
2166# for both compiling C and C++ we need to have the C++ compiler decide
2167# the declaration of exit, since it's the most demanding environment.
2168cat >conftest.$ac_ext <<_ACEOF
2169#ifndef __cplusplus
2170  choke me
2171#endif
2172_ACEOF
2173rm -f conftest.$ac_objext
2174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2175  (eval $ac_compile) 2>conftest.er1
2176  ac_status=$?
2177  grep -v '^ *+' conftest.er1 >conftest.err
2178  rm -f conftest.er1
2179  cat conftest.err >&5
2180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181  (exit $ac_status); } &&
2182	 { ac_try='test -z "$ac_c_werror_flag"
2183			 || test ! -s conftest.err'
2184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185  (eval $ac_try) 2>&5
2186  ac_status=$?
2187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188  (exit $ac_status); }; } &&
2189	 { ac_try='test -s conftest.$ac_objext'
2190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2191  (eval $ac_try) 2>&5
2192  ac_status=$?
2193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194  (exit $ac_status); }; }; then
2195  for ac_declaration in \
2196   '' \
2197   'extern "C" void std::exit (int) throw (); using std::exit;' \
2198   'extern "C" void std::exit (int); using std::exit;' \
2199   'extern "C" void exit (int) throw ();' \
2200   'extern "C" void exit (int);' \
2201   'void exit (int);'
2202do
2203  cat >conftest.$ac_ext <<_ACEOF
2204/* confdefs.h.  */
2205_ACEOF
2206cat confdefs.h >>conftest.$ac_ext
2207cat >>conftest.$ac_ext <<_ACEOF
2208/* end confdefs.h.  */
2209$ac_declaration
2210#include <stdlib.h>
2211int
2212main ()
2213{
2214exit (42);
2215  ;
2216  return 0;
2217}
2218_ACEOF
2219rm -f conftest.$ac_objext
2220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2221  (eval $ac_compile) 2>conftest.er1
2222  ac_status=$?
2223  grep -v '^ *+' conftest.er1 >conftest.err
2224  rm -f conftest.er1
2225  cat conftest.err >&5
2226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227  (exit $ac_status); } &&
2228	 { ac_try='test -z "$ac_c_werror_flag"
2229			 || test ! -s conftest.err'
2230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231  (eval $ac_try) 2>&5
2232  ac_status=$?
2233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234  (exit $ac_status); }; } &&
2235	 { ac_try='test -s conftest.$ac_objext'
2236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237  (eval $ac_try) 2>&5
2238  ac_status=$?
2239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240  (exit $ac_status); }; }; then
2241  :
2242else
2243  echo "$as_me: failed program was:" >&5
2244sed 's/^/| /' conftest.$ac_ext >&5
2245
2246continue
2247fi
2248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2249  cat >conftest.$ac_ext <<_ACEOF
2250/* confdefs.h.  */
2251_ACEOF
2252cat confdefs.h >>conftest.$ac_ext
2253cat >>conftest.$ac_ext <<_ACEOF
2254/* end confdefs.h.  */
2255$ac_declaration
2256int
2257main ()
2258{
2259exit (42);
2260  ;
2261  return 0;
2262}
2263_ACEOF
2264rm -f conftest.$ac_objext
2265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2266  (eval $ac_compile) 2>conftest.er1
2267  ac_status=$?
2268  grep -v '^ *+' conftest.er1 >conftest.err
2269  rm -f conftest.er1
2270  cat conftest.err >&5
2271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272  (exit $ac_status); } &&
2273	 { ac_try='test -z "$ac_c_werror_flag"
2274			 || test ! -s conftest.err'
2275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276  (eval $ac_try) 2>&5
2277  ac_status=$?
2278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279  (exit $ac_status); }; } &&
2280	 { ac_try='test -s conftest.$ac_objext'
2281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282  (eval $ac_try) 2>&5
2283  ac_status=$?
2284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285  (exit $ac_status); }; }; then
2286  break
2287else
2288  echo "$as_me: failed program was:" >&5
2289sed 's/^/| /' conftest.$ac_ext >&5
2290
2291fi
2292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2293done
2294rm -f conftest*
2295if test -n "$ac_declaration"; then
2296  echo '#ifdef __cplusplus' >>confdefs.h
2297  echo $ac_declaration      >>confdefs.h
2298  echo '#endif'             >>confdefs.h
2299fi
2300
2301else
2302  echo "$as_me: failed program was:" >&5
2303sed 's/^/| /' conftest.$ac_ext >&5
2304
2305fi
2306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2307ac_ext=c
2308ac_cpp='$CPP $CPPFLAGS'
2309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2311ac_compiler_gnu=$ac_cv_c_compiler_gnu
2312	ac_ext=c
2313ac_cpp='$CPP $CPPFLAGS'
2314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2316ac_compiler_gnu=$ac_cv_c_compiler_gnu
2317echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2318echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2319# On Suns, sometimes $CPP names a directory.
2320if test -n "$CPP" && test -d "$CPP"; then
2321  CPP=
2322fi
2323if test -z "$CPP"; then
2324  if test "${ac_cv_prog_CPP+set}" = set; then
2325  echo $ECHO_N "(cached) $ECHO_C" >&6
2326else
2327      # Double quotes because CPP needs to be expanded
2328    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2329    do
2330      ac_preproc_ok=false
2331for ac_c_preproc_warn_flag in '' yes
2332do
2333  # Use a header file that comes with gcc, so configuring glibc
2334  # with a fresh cross-compiler works.
2335  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2336  # <limits.h> exists even on freestanding compilers.
2337  # On the NeXT, cc -E runs the code through the compiler's parser,
2338  # not just through cpp. "Syntax error" is here to catch this case.
2339  cat >conftest.$ac_ext <<_ACEOF
2340/* confdefs.h.  */
2341_ACEOF
2342cat confdefs.h >>conftest.$ac_ext
2343cat >>conftest.$ac_ext <<_ACEOF
2344/* end confdefs.h.  */
2345#ifdef __STDC__
2346# include <limits.h>
2347#else
2348# include <assert.h>
2349#endif
2350		     Syntax error
2351_ACEOF
2352if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2353  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2354  ac_status=$?
2355  grep -v '^ *+' conftest.er1 >conftest.err
2356  rm -f conftest.er1
2357  cat conftest.err >&5
2358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359  (exit $ac_status); } >/dev/null; then
2360  if test -s conftest.err; then
2361    ac_cpp_err=$ac_c_preproc_warn_flag
2362    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2363  else
2364    ac_cpp_err=
2365  fi
2366else
2367  ac_cpp_err=yes
2368fi
2369if test -z "$ac_cpp_err"; then
2370  :
2371else
2372  echo "$as_me: failed program was:" >&5
2373sed 's/^/| /' conftest.$ac_ext >&5
2374
2375  # Broken: fails on valid input.
2376continue
2377fi
2378rm -f conftest.err conftest.$ac_ext
2379
2380  # OK, works on sane cases.  Now check whether non-existent headers
2381  # can be detected and how.
2382  cat >conftest.$ac_ext <<_ACEOF
2383/* confdefs.h.  */
2384_ACEOF
2385cat confdefs.h >>conftest.$ac_ext
2386cat >>conftest.$ac_ext <<_ACEOF
2387/* end confdefs.h.  */
2388#include <ac_nonexistent.h>
2389_ACEOF
2390if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2391  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2392  ac_status=$?
2393  grep -v '^ *+' conftest.er1 >conftest.err
2394  rm -f conftest.er1
2395  cat conftest.err >&5
2396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397  (exit $ac_status); } >/dev/null; then
2398  if test -s conftest.err; then
2399    ac_cpp_err=$ac_c_preproc_warn_flag
2400    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2401  else
2402    ac_cpp_err=
2403  fi
2404else
2405  ac_cpp_err=yes
2406fi
2407if test -z "$ac_cpp_err"; then
2408  # Broken: success on invalid input.
2409continue
2410else
2411  echo "$as_me: failed program was:" >&5
2412sed 's/^/| /' conftest.$ac_ext >&5
2413
2414  # Passes both tests.
2415ac_preproc_ok=:
2416break
2417fi
2418rm -f conftest.err conftest.$ac_ext
2419
2420done
2421# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2422rm -f conftest.err conftest.$ac_ext
2423if $ac_preproc_ok; then
2424  break
2425fi
2426
2427    done
2428    ac_cv_prog_CPP=$CPP
2429
2430fi
2431  CPP=$ac_cv_prog_CPP
2432else
2433  ac_cv_prog_CPP=$CPP
2434fi
2435echo "$as_me:$LINENO: result: $CPP" >&5
2436echo "${ECHO_T}$CPP" >&6
2437ac_preproc_ok=false
2438for ac_c_preproc_warn_flag in '' yes
2439do
2440  # Use a header file that comes with gcc, so configuring glibc
2441  # with a fresh cross-compiler works.
2442  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2443  # <limits.h> exists even on freestanding compilers.
2444  # On the NeXT, cc -E runs the code through the compiler's parser,
2445  # not just through cpp. "Syntax error" is here to catch this case.
2446  cat >conftest.$ac_ext <<_ACEOF
2447/* confdefs.h.  */
2448_ACEOF
2449cat confdefs.h >>conftest.$ac_ext
2450cat >>conftest.$ac_ext <<_ACEOF
2451/* end confdefs.h.  */
2452#ifdef __STDC__
2453# include <limits.h>
2454#else
2455# include <assert.h>
2456#endif
2457		     Syntax error
2458_ACEOF
2459if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2460  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2461  ac_status=$?
2462  grep -v '^ *+' conftest.er1 >conftest.err
2463  rm -f conftest.er1
2464  cat conftest.err >&5
2465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466  (exit $ac_status); } >/dev/null; then
2467  if test -s conftest.err; then
2468    ac_cpp_err=$ac_c_preproc_warn_flag
2469    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2470  else
2471    ac_cpp_err=
2472  fi
2473else
2474  ac_cpp_err=yes
2475fi
2476if test -z "$ac_cpp_err"; then
2477  :
2478else
2479  echo "$as_me: failed program was:" >&5
2480sed 's/^/| /' conftest.$ac_ext >&5
2481
2482  # Broken: fails on valid input.
2483continue
2484fi
2485rm -f conftest.err conftest.$ac_ext
2486
2487  # OK, works on sane cases.  Now check whether non-existent headers
2488  # can be detected and how.
2489  cat >conftest.$ac_ext <<_ACEOF
2490/* confdefs.h.  */
2491_ACEOF
2492cat confdefs.h >>conftest.$ac_ext
2493cat >>conftest.$ac_ext <<_ACEOF
2494/* end confdefs.h.  */
2495#include <ac_nonexistent.h>
2496_ACEOF
2497if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2498  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2499  ac_status=$?
2500  grep -v '^ *+' conftest.er1 >conftest.err
2501  rm -f conftest.er1
2502  cat conftest.err >&5
2503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504  (exit $ac_status); } >/dev/null; then
2505  if test -s conftest.err; then
2506    ac_cpp_err=$ac_c_preproc_warn_flag
2507    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2508  else
2509    ac_cpp_err=
2510  fi
2511else
2512  ac_cpp_err=yes
2513fi
2514if test -z "$ac_cpp_err"; then
2515  # Broken: success on invalid input.
2516continue
2517else
2518  echo "$as_me: failed program was:" >&5
2519sed 's/^/| /' conftest.$ac_ext >&5
2520
2521  # Passes both tests.
2522ac_preproc_ok=:
2523break
2524fi
2525rm -f conftest.err conftest.$ac_ext
2526
2527done
2528# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2529rm -f conftest.err conftest.$ac_ext
2530if $ac_preproc_ok; then
2531  :
2532else
2533  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2534See \`config.log' for more details." >&5
2535echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2536See \`config.log' for more details." >&2;}
2537   { (exit 1); exit 1; }; }
2538fi
2539
2540ac_ext=c
2541ac_cpp='$CPP $CPPFLAGS'
2542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2544ac_compiler_gnu=$ac_cv_c_compiler_gnu
2545
2546
2547echo "$as_me:$LINENO: checking for egrep" >&5
2548echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2549if test "${ac_cv_prog_egrep+set}" = set; then
2550  echo $ECHO_N "(cached) $ECHO_C" >&6
2551else
2552  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2553    then ac_cv_prog_egrep='grep -E'
2554    else ac_cv_prog_egrep='egrep'
2555    fi
2556fi
2557echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2558echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2559 EGREP=$ac_cv_prog_egrep
2560
2561
2562cat >conftest.$ac_ext <<_ACEOF
2563/* confdefs.h.  */
2564_ACEOF
2565cat confdefs.h >>conftest.$ac_ext
2566cat >>conftest.$ac_ext <<_ACEOF
2567/* end confdefs.h.  */
2568
2569_ACEOF
2570if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2571  $EGREP "" >/dev/null 2>&1; then
2572  :
2573fi
2574rm -f conftest*
2575 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2576echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2577if test "${ac_cv_search_strerror+set}" = set; then
2578  echo $ECHO_N "(cached) $ECHO_C" >&6
2579else
2580  ac_func_search_save_LIBS=$LIBS
2581ac_cv_search_strerror=no
2582cat >conftest.$ac_ext <<_ACEOF
2583/* confdefs.h.  */
2584_ACEOF
2585cat confdefs.h >>conftest.$ac_ext
2586cat >>conftest.$ac_ext <<_ACEOF
2587/* end confdefs.h.  */
2588
2589/* Override any gcc2 internal prototype to avoid an error.  */
2590#ifdef __cplusplus
2591extern "C"
2592#endif
2593/* We use char because int might match the return type of a gcc2
2594   builtin and then its argument prototype would still apply.  */
2595char strerror ();
2596int
2597main ()
2598{
2599strerror ();
2600  ;
2601  return 0;
2602}
2603_ACEOF
2604rm -f conftest.$ac_objext conftest$ac_exeext
2605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2606  (eval $ac_link) 2>conftest.er1
2607  ac_status=$?
2608  grep -v '^ *+' conftest.er1 >conftest.err
2609  rm -f conftest.er1
2610  cat conftest.err >&5
2611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612  (exit $ac_status); } &&
2613	 { ac_try='test -z "$ac_c_werror_flag"
2614			 || test ! -s conftest.err'
2615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616  (eval $ac_try) 2>&5
2617  ac_status=$?
2618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619  (exit $ac_status); }; } &&
2620	 { ac_try='test -s conftest$ac_exeext'
2621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622  (eval $ac_try) 2>&5
2623  ac_status=$?
2624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625  (exit $ac_status); }; }; then
2626  ac_cv_search_strerror="none required"
2627else
2628  echo "$as_me: failed program was:" >&5
2629sed 's/^/| /' conftest.$ac_ext >&5
2630
2631fi
2632rm -f conftest.err conftest.$ac_objext \
2633      conftest$ac_exeext conftest.$ac_ext
2634if test "$ac_cv_search_strerror" = no; then
2635  for ac_lib in cposix; do
2636    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2637    cat >conftest.$ac_ext <<_ACEOF
2638/* confdefs.h.  */
2639_ACEOF
2640cat confdefs.h >>conftest.$ac_ext
2641cat >>conftest.$ac_ext <<_ACEOF
2642/* end confdefs.h.  */
2643
2644/* Override any gcc2 internal prototype to avoid an error.  */
2645#ifdef __cplusplus
2646extern "C"
2647#endif
2648/* We use char because int might match the return type of a gcc2
2649   builtin and then its argument prototype would still apply.  */
2650char strerror ();
2651int
2652main ()
2653{
2654strerror ();
2655  ;
2656  return 0;
2657}
2658_ACEOF
2659rm -f conftest.$ac_objext conftest$ac_exeext
2660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2661  (eval $ac_link) 2>conftest.er1
2662  ac_status=$?
2663  grep -v '^ *+' conftest.er1 >conftest.err
2664  rm -f conftest.er1
2665  cat conftest.err >&5
2666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667  (exit $ac_status); } &&
2668	 { ac_try='test -z "$ac_c_werror_flag"
2669			 || test ! -s conftest.err'
2670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671  (eval $ac_try) 2>&5
2672  ac_status=$?
2673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674  (exit $ac_status); }; } &&
2675	 { ac_try='test -s conftest$ac_exeext'
2676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677  (eval $ac_try) 2>&5
2678  ac_status=$?
2679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680  (exit $ac_status); }; }; then
2681  ac_cv_search_strerror="-l$ac_lib"
2682break
2683else
2684  echo "$as_me: failed program was:" >&5
2685sed 's/^/| /' conftest.$ac_ext >&5
2686
2687fi
2688rm -f conftest.err conftest.$ac_objext \
2689      conftest$ac_exeext conftest.$ac_ext
2690  done
2691fi
2692LIBS=$ac_func_search_save_LIBS
2693fi
2694echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2695echo "${ECHO_T}$ac_cv_search_strerror" >&6
2696if test "$ac_cv_search_strerror" != no; then
2697  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2698
2699fi
2700	for ac_prog in gawk mawk nawk awk
2701do
2702  # Extract the first word of "$ac_prog", so it can be a program name with args.
2703set dummy $ac_prog; ac_word=$2
2704echo "$as_me:$LINENO: checking for $ac_word" >&5
2705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2706if test "${ac_cv_prog_AWK+set}" = set; then
2707  echo $ECHO_N "(cached) $ECHO_C" >&6
2708else
2709  if test -n "$AWK"; then
2710  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2711else
2712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713for as_dir in $PATH
2714do
2715  IFS=$as_save_IFS
2716  test -z "$as_dir" && as_dir=.
2717  for ac_exec_ext in '' $ac_executable_extensions; do
2718  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2719    ac_cv_prog_AWK="$ac_prog"
2720    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2721    break 2
2722  fi
2723done
2724done
2725
2726fi
2727fi
2728AWK=$ac_cv_prog_AWK
2729if test -n "$AWK"; then
2730  echo "$as_me:$LINENO: result: $AWK" >&5
2731echo "${ECHO_T}$AWK" >&6
2732else
2733  echo "$as_me:$LINENO: result: no" >&5
2734echo "${ECHO_T}no" >&6
2735fi
2736
2737  test -n "$AWK" && break
2738done
2739
2740# Extract the first word of "strip", so it can be a program name with args.
2741set dummy strip; ac_word=$2
2742echo "$as_me:$LINENO: checking for $ac_word" >&5
2743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2744if test "${ac_cv_prog_STRIP+set}" = set; then
2745  echo $ECHO_N "(cached) $ECHO_C" >&6
2746else
2747  if test -n "$STRIP"; then
2748  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2749else
2750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751for as_dir in $PATH
2752do
2753  IFS=$as_save_IFS
2754  test -z "$as_dir" && as_dir=.
2755  for ac_exec_ext in '' $ac_executable_extensions; do
2756  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2757    ac_cv_prog_STRIP="strip"
2758    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2759    break 2
2760  fi
2761done
2762done
2763
2764  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2765fi
2766fi
2767STRIP=$ac_cv_prog_STRIP
2768if test -n "$STRIP"; then
2769  echo "$as_me:$LINENO: result: $STRIP" >&5
2770echo "${ECHO_T}$STRIP" >&6
2771else
2772  echo "$as_me:$LINENO: result: no" >&5
2773echo "${ECHO_T}no" >&6
2774fi
2775
2776
2777
2778
2779if test -z "$CFLAGS"; then
2780  CFLAGS="-O"
2781  test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
2782fi
2783if test "$GCC" = yes; then
2784  gccversion=`"$CC" --version | sed -e '2,$d;s/^[^0-9]*\(darwin.[^0-9]*\)*\([0-9]\.[0-9.]*\).*$/\2/g'`
2785    if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
2786    echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
2787    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
2788  else
2789    if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
2790      echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
2791      CFLAGS="$CFLAGS -fno-strength-reduce"
2792    fi
2793  fi
2794fi
2795
2796if test "$cross_compiling" = yes; then
2797  { { echo "$as_me:$LINENO: error: cannot compile a simple program, check CC and CFLAGS
2798  (cross compiling doesn't work)" >&5
2799echo "$as_me: error: cannot compile a simple program, check CC and CFLAGS
2800  (cross compiling doesn't work)" >&2;}
2801   { (exit 1); exit 1; }; }
2802fi
2803
2804test "$GCC" = yes && CPP_MM=M;
2805
2806if test -f ./toolcheck; then
2807  { echo "$as_me:$LINENO: checking for buggy tools..." >&5
2808echo "$as_me: checking for buggy tools..." >&6;}
2809  sh ./toolcheck 1>&6
2810fi
2811
2812OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
2813
2814echo "$as_me:$LINENO: checking for BeOS" >&5
2815echo $ECHO_N "checking for BeOS... $ECHO_C" >&6
2816case `uname` in
2817    BeOS)	OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
2818		BEOS=yes; echo "$as_me:$LINENO: result: yes" >&5
2819echo "${ECHO_T}yes" >&6;;
2820    *)		BEOS=no; echo "$as_me:$LINENO: result: no" >&5
2821echo "${ECHO_T}no" >&6;;
2822esac
2823
2824echo "$as_me:$LINENO: checking for QNX" >&5
2825echo $ECHO_N "checking for QNX... $ECHO_C" >&6
2826case `uname` in
2827    QNX)	OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
2828		test -z "$with_x" && with_x=no
2829		QNX=yes; echo "$as_me:$LINENO: result: yes" >&5
2830echo "${ECHO_T}yes" >&6;;
2831    *)		QNX=no; echo "$as_me:$LINENO: result: no" >&5
2832echo "${ECHO_T}no" >&6;;
2833esac
2834
2835echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
2836echo $ECHO_N "checking for Darwin (Mac OS X)... $ECHO_C" >&6
2837if test "`(uname) 2>/dev/null`" = Darwin; then
2838  echo "$as_me:$LINENO: result: yes" >&5
2839echo "${ECHO_T}yes" >&6
2840
2841  echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
2842echo $ECHO_N "checking --disable-darwin argument... $ECHO_C" >&6
2843  # Check whether --enable-darwin or --disable-darwin was given.
2844if test "${enable_darwin+set}" = set; then
2845  enableval="$enable_darwin"
2846
2847else
2848  enable_darwin="yes"
2849fi;
2850  if test "$enable_darwin" = "yes"; then
2851    echo "$as_me:$LINENO: result: no" >&5
2852echo "${ECHO_T}no" >&6
2853    echo "$as_me:$LINENO: checking if Darwin files are there" >&5
2854echo $ECHO_N "checking if Darwin files are there... $ECHO_C" >&6
2855    if test -f os_macosx.c; then
2856      echo "$as_me:$LINENO: result: yes" >&5
2857echo "${ECHO_T}yes" >&6
2858    else
2859      echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
2860echo "${ECHO_T}no, Darwin support disabled" >&6
2861      enable_darwin=no
2862    fi
2863  else
2864    echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
2865echo "${ECHO_T}yes, Darwin support excluded" >&6
2866  fi
2867
2868  echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5
2869echo $ECHO_N "checking --with-mac-arch argument... $ECHO_C" >&6
2870
2871# Check whether --with-mac-arch or --without-mac-arch was given.
2872if test "${with_mac_arch+set}" = set; then
2873  withval="$with_mac_arch"
2874  MACARCH="$withval"; echo "$as_me:$LINENO: result: $MACARCH" >&5
2875echo "${ECHO_T}$MACARCH" >&6
2876else
2877  MACARCH="both"; echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5
2878echo "${ECHO_T}defaulting to $MACARCH" >&6
2879fi;
2880
2881  if test "x$MACARCH" = "xboth"; then
2882    echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5
2883echo $ECHO_N "checking for 10.4 universal SDK... $ECHO_C" >&6
2884                            save_cppflags="$CPPFLAGS"
2885    save_cflags="$CFLAGS"
2886    save_ldflags="$LDFLAGS"
2887    CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
2888    cat >conftest.$ac_ext <<_ACEOF
2889/* confdefs.h.  */
2890_ACEOF
2891cat confdefs.h >>conftest.$ac_ext
2892cat >>conftest.$ac_ext <<_ACEOF
2893/* end confdefs.h.  */
2894
2895int
2896main ()
2897{
2898
2899  ;
2900  return 0;
2901}
2902_ACEOF
2903rm -f conftest.$ac_objext conftest$ac_exeext
2904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2905  (eval $ac_link) 2>conftest.er1
2906  ac_status=$?
2907  grep -v '^ *+' conftest.er1 >conftest.err
2908  rm -f conftest.er1
2909  cat conftest.err >&5
2910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911  (exit $ac_status); } &&
2912	 { ac_try='test -z "$ac_c_werror_flag"
2913			 || test ! -s conftest.err'
2914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915  (eval $ac_try) 2>&5
2916  ac_status=$?
2917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918  (exit $ac_status); }; } &&
2919	 { ac_try='test -s conftest$ac_exeext'
2920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921  (eval $ac_try) 2>&5
2922  ac_status=$?
2923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924  (exit $ac_status); }; }; then
2925  echo "$as_me:$LINENO: result: found" >&5
2926echo "${ECHO_T}found" >&6
2927else
2928  echo "$as_me: failed program was:" >&5
2929sed 's/^/| /' conftest.$ac_ext >&5
2930
2931echo "$as_me:$LINENO: result: not found" >&5
2932echo "${ECHO_T}not found" >&6
2933	CFLAGS="$save_cflags"
2934	echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
2935echo $ECHO_N "checking if Intel architecture is supported... $ECHO_C" >&6
2936	CPPFLAGS="$CPPFLAGS -arch i386"
2937	LDFLAGS="$save_ldflags -arch i386"
2938	cat >conftest.$ac_ext <<_ACEOF
2939/* confdefs.h.  */
2940_ACEOF
2941cat confdefs.h >>conftest.$ac_ext
2942cat >>conftest.$ac_ext <<_ACEOF
2943/* end confdefs.h.  */
2944
2945int
2946main ()
2947{
2948
2949  ;
2950  return 0;
2951}
2952_ACEOF
2953rm -f conftest.$ac_objext conftest$ac_exeext
2954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2955  (eval $ac_link) 2>conftest.er1
2956  ac_status=$?
2957  grep -v '^ *+' conftest.er1 >conftest.err
2958  rm -f conftest.er1
2959  cat conftest.err >&5
2960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961  (exit $ac_status); } &&
2962	 { ac_try='test -z "$ac_c_werror_flag"
2963			 || test ! -s conftest.err'
2964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965  (eval $ac_try) 2>&5
2966  ac_status=$?
2967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968  (exit $ac_status); }; } &&
2969	 { ac_try='test -s conftest$ac_exeext'
2970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971  (eval $ac_try) 2>&5
2972  ac_status=$?
2973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974  (exit $ac_status); }; }; then
2975  echo "$as_me:$LINENO: result: yes" >&5
2976echo "${ECHO_T}yes" >&6; MACARCH="intel"
2977else
2978  echo "$as_me: failed program was:" >&5
2979sed 's/^/| /' conftest.$ac_ext >&5
2980
2981echo "$as_me:$LINENO: result: no" >&5
2982echo "${ECHO_T}no" >&6
2983	        MACARCH="ppc"
2984		CPPFLAGS="$save_cppflags -arch ppc"
2985		LDFLAGS="$save_ldflags -arch ppc"
2986fi
2987rm -f conftest.err conftest.$ac_objext \
2988      conftest$ac_exeext conftest.$ac_ext
2989fi
2990rm -f conftest.err conftest.$ac_objext \
2991      conftest$ac_exeext conftest.$ac_ext
2992  elif test "x$MACARCH" = "xintel"; then
2993    CPPFLAGS="$CPPFLAGS -arch intel"
2994    LDFLAGS="$LDFLAGS -arch intel"
2995  else
2996    CPPFLAGS="$CPPFLAGS -arch ppc"
2997    LDFLAGS="$LDFLAGS -arch ppc"
2998  fi
2999
3000  if test "$enable_darwin" = "yes"; then
3001    MACOSX=yes
3002    OS_EXTRA_SCR="os_macosx.c os_mac_conv.c";
3003    OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
3004        CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3005    if test "x$MACARCH" = "xboth"; then
3006      CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
3007    else
3008      CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon"
3009    fi
3010
3011                echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3012echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3013if test "${ac_cv_header_stdc+set}" = set; then
3014  echo $ECHO_N "(cached) $ECHO_C" >&6
3015else
3016  cat >conftest.$ac_ext <<_ACEOF
3017/* confdefs.h.  */
3018_ACEOF
3019cat confdefs.h >>conftest.$ac_ext
3020cat >>conftest.$ac_ext <<_ACEOF
3021/* end confdefs.h.  */
3022#include <stdlib.h>
3023#include <stdarg.h>
3024#include <string.h>
3025#include <float.h>
3026
3027int
3028main ()
3029{
3030
3031  ;
3032  return 0;
3033}
3034_ACEOF
3035rm -f conftest.$ac_objext
3036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3037  (eval $ac_compile) 2>conftest.er1
3038  ac_status=$?
3039  grep -v '^ *+' conftest.er1 >conftest.err
3040  rm -f conftest.er1
3041  cat conftest.err >&5
3042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043  (exit $ac_status); } &&
3044	 { ac_try='test -z "$ac_c_werror_flag"
3045			 || test ! -s conftest.err'
3046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047  (eval $ac_try) 2>&5
3048  ac_status=$?
3049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050  (exit $ac_status); }; } &&
3051	 { ac_try='test -s conftest.$ac_objext'
3052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053  (eval $ac_try) 2>&5
3054  ac_status=$?
3055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056  (exit $ac_status); }; }; then
3057  ac_cv_header_stdc=yes
3058else
3059  echo "$as_me: failed program was:" >&5
3060sed 's/^/| /' conftest.$ac_ext >&5
3061
3062ac_cv_header_stdc=no
3063fi
3064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3065
3066if test $ac_cv_header_stdc = yes; then
3067  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3068  cat >conftest.$ac_ext <<_ACEOF
3069/* confdefs.h.  */
3070_ACEOF
3071cat confdefs.h >>conftest.$ac_ext
3072cat >>conftest.$ac_ext <<_ACEOF
3073/* end confdefs.h.  */
3074#include <string.h>
3075
3076_ACEOF
3077if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3078  $EGREP "memchr" >/dev/null 2>&1; then
3079  :
3080else
3081  ac_cv_header_stdc=no
3082fi
3083rm -f conftest*
3084
3085fi
3086
3087if test $ac_cv_header_stdc = yes; then
3088  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3089  cat >conftest.$ac_ext <<_ACEOF
3090/* confdefs.h.  */
3091_ACEOF
3092cat confdefs.h >>conftest.$ac_ext
3093cat >>conftest.$ac_ext <<_ACEOF
3094/* end confdefs.h.  */
3095#include <stdlib.h>
3096
3097_ACEOF
3098if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3099  $EGREP "free" >/dev/null 2>&1; then
3100  :
3101else
3102  ac_cv_header_stdc=no
3103fi
3104rm -f conftest*
3105
3106fi
3107
3108if test $ac_cv_header_stdc = yes; then
3109  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3110  if test "$cross_compiling" = yes; then
3111  :
3112else
3113  cat >conftest.$ac_ext <<_ACEOF
3114/* confdefs.h.  */
3115_ACEOF
3116cat confdefs.h >>conftest.$ac_ext
3117cat >>conftest.$ac_ext <<_ACEOF
3118/* end confdefs.h.  */
3119#include <ctype.h>
3120#if ((' ' & 0x0FF) == 0x020)
3121# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3122# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3123#else
3124# define ISLOWER(c) \
3125		   (('a' <= (c) && (c) <= 'i') \
3126		     || ('j' <= (c) && (c) <= 'r') \
3127		     || ('s' <= (c) && (c) <= 'z'))
3128# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3129#endif
3130
3131#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3132int
3133main ()
3134{
3135  int i;
3136  for (i = 0; i < 256; i++)
3137    if (XOR (islower (i), ISLOWER (i))
3138	|| toupper (i) != TOUPPER (i))
3139      exit(2);
3140  exit (0);
3141}
3142_ACEOF
3143rm -f conftest$ac_exeext
3144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3145  (eval $ac_link) 2>&5
3146  ac_status=$?
3147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3149  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3150  (eval $ac_try) 2>&5
3151  ac_status=$?
3152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153  (exit $ac_status); }; }; then
3154  :
3155else
3156  echo "$as_me: program exited with status $ac_status" >&5
3157echo "$as_me: failed program was:" >&5
3158sed 's/^/| /' conftest.$ac_ext >&5
3159
3160( exit $ac_status )
3161ac_cv_header_stdc=no
3162fi
3163rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3164fi
3165fi
3166fi
3167echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3168echo "${ECHO_T}$ac_cv_header_stdc" >&6
3169if test $ac_cv_header_stdc = yes; then
3170
3171cat >>confdefs.h <<\_ACEOF
3172#define STDC_HEADERS 1
3173_ACEOF
3174
3175fi
3176
3177# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3188		  inttypes.h stdint.h unistd.h
3189do
3190as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3191echo "$as_me:$LINENO: checking for $ac_header" >&5
3192echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3193if eval "test \"\${$as_ac_Header+set}\" = set"; then
3194  echo $ECHO_N "(cached) $ECHO_C" >&6
3195else
3196  cat >conftest.$ac_ext <<_ACEOF
3197/* confdefs.h.  */
3198_ACEOF
3199cat confdefs.h >>conftest.$ac_ext
3200cat >>conftest.$ac_ext <<_ACEOF
3201/* end confdefs.h.  */
3202$ac_includes_default
3203
3204#include <$ac_header>
3205_ACEOF
3206rm -f conftest.$ac_objext
3207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3208  (eval $ac_compile) 2>conftest.er1
3209  ac_status=$?
3210  grep -v '^ *+' conftest.er1 >conftest.err
3211  rm -f conftest.er1
3212  cat conftest.err >&5
3213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214  (exit $ac_status); } &&
3215	 { ac_try='test -z "$ac_c_werror_flag"
3216			 || test ! -s conftest.err'
3217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3218  (eval $ac_try) 2>&5
3219  ac_status=$?
3220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221  (exit $ac_status); }; } &&
3222	 { ac_try='test -s conftest.$ac_objext'
3223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3224  (eval $ac_try) 2>&5
3225  ac_status=$?
3226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227  (exit $ac_status); }; }; then
3228  eval "$as_ac_Header=yes"
3229else
3230  echo "$as_me: failed program was:" >&5
3231sed 's/^/| /' conftest.$ac_ext >&5
3232
3233eval "$as_ac_Header=no"
3234fi
3235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3236fi
3237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3238echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3239if test `eval echo '${'$as_ac_Header'}'` = yes; then
3240  cat >>confdefs.h <<_ACEOF
3241#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3242_ACEOF
3243
3244fi
3245
3246done
3247
3248
3249if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3250  echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3251echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
3252if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3253  echo $ECHO_N "(cached) $ECHO_C" >&6
3254fi
3255echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3256echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
3257else
3258  # Is the header compilable?
3259echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
3260echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
3261cat >conftest.$ac_ext <<_ACEOF
3262/* confdefs.h.  */
3263_ACEOF
3264cat confdefs.h >>conftest.$ac_ext
3265cat >>conftest.$ac_ext <<_ACEOF
3266/* end confdefs.h.  */
3267$ac_includes_default
3268#include <Carbon/Carbon.h>
3269_ACEOF
3270rm -f conftest.$ac_objext
3271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3272  (eval $ac_compile) 2>conftest.er1
3273  ac_status=$?
3274  grep -v '^ *+' conftest.er1 >conftest.err
3275  rm -f conftest.er1
3276  cat conftest.err >&5
3277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278  (exit $ac_status); } &&
3279	 { ac_try='test -z "$ac_c_werror_flag"
3280			 || test ! -s conftest.err'
3281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3282  (eval $ac_try) 2>&5
3283  ac_status=$?
3284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285  (exit $ac_status); }; } &&
3286	 { ac_try='test -s conftest.$ac_objext'
3287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3288  (eval $ac_try) 2>&5
3289  ac_status=$?
3290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291  (exit $ac_status); }; }; then
3292  ac_header_compiler=yes
3293else
3294  echo "$as_me: failed program was:" >&5
3295sed 's/^/| /' conftest.$ac_ext >&5
3296
3297ac_header_compiler=no
3298fi
3299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3300echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3301echo "${ECHO_T}$ac_header_compiler" >&6
3302
3303# Is the header present?
3304echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
3305echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
3306cat >conftest.$ac_ext <<_ACEOF
3307/* confdefs.h.  */
3308_ACEOF
3309cat confdefs.h >>conftest.$ac_ext
3310cat >>conftest.$ac_ext <<_ACEOF
3311/* end confdefs.h.  */
3312#include <Carbon/Carbon.h>
3313_ACEOF
3314if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3315  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3316  ac_status=$?
3317  grep -v '^ *+' conftest.er1 >conftest.err
3318  rm -f conftest.er1
3319  cat conftest.err >&5
3320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321  (exit $ac_status); } >/dev/null; then
3322  if test -s conftest.err; then
3323    ac_cpp_err=$ac_c_preproc_warn_flag
3324    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3325  else
3326    ac_cpp_err=
3327  fi
3328else
3329  ac_cpp_err=yes
3330fi
3331if test -z "$ac_cpp_err"; then
3332  ac_header_preproc=yes
3333else
3334  echo "$as_me: failed program was:" >&5
3335sed 's/^/| /' conftest.$ac_ext >&5
3336
3337  ac_header_preproc=no
3338fi
3339rm -f conftest.err conftest.$ac_ext
3340echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3341echo "${ECHO_T}$ac_header_preproc" >&6
3342
3343# So?  What about this header?
3344case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3345  yes:no: )
3346    { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
3347echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3348    { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
3349echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
3350    ac_header_preproc=yes
3351    ;;
3352  no:yes:* )
3353    { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
3354echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
3355    { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h:     check for missing prerequisite headers?" >&5
3356echo "$as_me: WARNING: Carbon/Carbon.h:     check for missing prerequisite headers?" >&2;}
3357    { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
3358echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
3359    { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h:     section \"Present But Cannot Be Compiled\"" >&5
3360echo "$as_me: WARNING: Carbon/Carbon.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3361    { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
3362echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
3363    { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
3364echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
3365    (
3366      cat <<\_ASBOX
3367## ------------------------------------------ ##
3368## Report this to the AC_PACKAGE_NAME lists.  ##
3369## ------------------------------------------ ##
3370_ASBOX
3371    ) |
3372      sed "s/^/$as_me: WARNING:     /" >&2
3373    ;;
3374esac
3375echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3376echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
3377if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3378  echo $ECHO_N "(cached) $ECHO_C" >&6
3379else
3380  ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
3381fi
3382echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3383echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
3384
3385fi
3386if test $ac_cv_header_Carbon_Carbon_h = yes; then
3387  CARBON=yes
3388fi
3389
3390
3391    if test "x$CARBON" = "xyes"; then
3392      if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk -a "X$enable_gui" != Xgtk2; then
3393	with_x=no
3394      fi
3395    fi
3396  fi
3397
3398        if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
3399    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
3400  fi
3401
3402else
3403  echo "$as_me:$LINENO: result: no" >&5
3404echo "${ECHO_T}no" >&6
3405fi
3406
3407
3408
3409
3410have_local_include=''
3411have_local_lib=''
3412if test "$GCC" = yes; then
3413  echo 'void f(){}' > conftest.c
3414    have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep '/usr/local/include'`
3415  have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'`
3416  rm -f conftest.c conftest.o
3417fi
3418if test -z "$have_local_lib" -a -d /usr/local/lib; then
3419  tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'`
3420  if test "$tt" = "$LDFLAGS"; then
3421    LDFLAGS="$LDFLAGS -L/usr/local/lib"
3422  fi
3423fi
3424if test -z "$have_local_include" -a -d /usr/local/include; then
3425  tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'`
3426  if test "$tt" = "$CPPFLAGS"; then
3427    CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3428  fi
3429fi
3430
3431echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
3432echo $ECHO_N "checking --with-vim-name argument... $ECHO_C" >&6
3433
3434# Check whether --with-vim-name or --without-vim-name was given.
3435if test "${with_vim_name+set}" = set; then
3436  withval="$with_vim_name"
3437  VIMNAME="$withval"; echo "$as_me:$LINENO: result: $VIMNAME" >&5
3438echo "${ECHO_T}$VIMNAME" >&6
3439else
3440  VIMNAME="vim"; echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
3441echo "${ECHO_T}Defaulting to $VIMNAME" >&6
3442fi;
3443
3444echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
3445echo $ECHO_N "checking --with-ex-name argument... $ECHO_C" >&6
3446
3447# Check whether --with-ex-name or --without-ex-name was given.
3448if test "${with_ex_name+set}" = set; then
3449  withval="$with_ex_name"
3450  EXNAME="$withval"; echo "$as_me:$LINENO: result: $EXNAME" >&5
3451echo "${ECHO_T}$EXNAME" >&6
3452else
3453  EXNAME="ex"; echo "$as_me:$LINENO: result: Defaulting to ex" >&5
3454echo "${ECHO_T}Defaulting to ex" >&6
3455fi;
3456
3457echo "$as_me:$LINENO: checking --with-view-name argument" >&5
3458echo $ECHO_N "checking --with-view-name argument... $ECHO_C" >&6
3459
3460# Check whether --with-view-name or --without-view-name was given.
3461if test "${with_view_name+set}" = set; then
3462  withval="$with_view_name"
3463  VIEWNAME="$withval"; echo "$as_me:$LINENO: result: $VIEWNAME" >&5
3464echo "${ECHO_T}$VIEWNAME" >&6
3465else
3466  VIEWNAME="view"; echo "$as_me:$LINENO: result: Defaulting to view" >&5
3467echo "${ECHO_T}Defaulting to view" >&6
3468fi;
3469
3470
3471echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
3472echo $ECHO_N "checking --with-global-runtime argument... $ECHO_C" >&6
3473
3474# Check whether --with-global-runtime or --without-global-runtime was given.
3475if test "${with_global_runtime+set}" = set; then
3476  withval="$with_global_runtime"
3477  echo "$as_me:$LINENO: result: $withval" >&5
3478echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF
3479#define RUNTIME_GLOBAL "$withval"
3480_ACEOF
3481
3482else
3483  echo "$as_me:$LINENO: result: no" >&5
3484echo "${ECHO_T}no" >&6
3485fi;
3486
3487echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
3488echo $ECHO_N "checking --with-modified-by argument... $ECHO_C" >&6
3489
3490# Check whether --with-modified-by or --without-modified-by was given.
3491if test "${with_modified_by+set}" = set; then
3492  withval="$with_modified_by"
3493  echo "$as_me:$LINENO: result: $withval" >&5
3494echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF
3495#define MODIFIED_BY "$withval"
3496_ACEOF
3497
3498else
3499  echo "$as_me:$LINENO: result: no" >&5
3500echo "${ECHO_T}no" >&6
3501fi;
3502
3503echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
3504echo $ECHO_N "checking if character set is EBCDIC... $ECHO_C" >&6
3505cat >conftest.$ac_ext <<_ACEOF
3506/* confdefs.h.  */
3507_ACEOF
3508cat confdefs.h >>conftest.$ac_ext
3509cat >>conftest.$ac_ext <<_ACEOF
3510/* end confdefs.h.  */
3511
3512int
3513main ()
3514{
3515 /* TryCompile function for CharSet.
3516   Treat any failure as ASCII for compatibility with existing art.
3517   Use compile-time rather than run-time tests for cross-compiler
3518   tolerance.  */
3519#if '0'!=240
3520make an error "Character set is not EBCDIC"
3521#endif
3522  ;
3523  return 0;
3524}
3525_ACEOF
3526rm -f conftest.$ac_objext
3527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3528  (eval $ac_compile) 2>conftest.er1
3529  ac_status=$?
3530  grep -v '^ *+' conftest.er1 >conftest.err
3531  rm -f conftest.er1
3532  cat conftest.err >&5
3533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534  (exit $ac_status); } &&
3535	 { ac_try='test -z "$ac_c_werror_flag"
3536			 || test ! -s conftest.err'
3537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538  (eval $ac_try) 2>&5
3539  ac_status=$?
3540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541  (exit $ac_status); }; } &&
3542	 { ac_try='test -s conftest.$ac_objext'
3543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3544  (eval $ac_try) 2>&5
3545  ac_status=$?
3546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547  (exit $ac_status); }; }; then
3548   # TryCompile action if true
3549cf_cv_ebcdic=yes
3550else
3551  echo "$as_me: failed program was:" >&5
3552sed 's/^/| /' conftest.$ac_ext >&5
3553
3554 # TryCompile action if false
3555cf_cv_ebcdic=no
3556fi
3557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3558# end of TryCompile ])
3559# end of CacheVal CvEbcdic
3560echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
3561echo "${ECHO_T}$cf_cv_ebcdic" >&6
3562case "$cf_cv_ebcdic" in  #(vi
3563    yes)	cat >>confdefs.h <<\_ACEOF
3564#define EBCDIC 1
3565_ACEOF
3566
3567		line_break='"\\n"'
3568		;;
3569    *)		line_break='"\\012"';;
3570esac
3571
3572
3573if test "$cf_cv_ebcdic" = "yes"; then
3574echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
3575echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
3576case `uname` in
3577    OS/390)	OS390Unix="yes";
3578										if test "$CC" = "cc"; then
3579		  ccm="$_CC_CCMODE"
3580		  ccn="CC"
3581		else
3582		  if test "$CC" = "c89"; then
3583		    ccm="$_CC_C89MODE"
3584		    ccn="C89"
3585		  else
3586		    ccm=1
3587		  fi
3588		fi
3589		if test "$ccm" != "1"; then
3590		  echo ""
3591		  echo "------------------------------------------"
3592		  echo " On OS/390 Unix, the environment variable"
3593		  echo " __CC_${ccn}MODE must be set to \"1\"!"
3594		  echo " Do:"
3595		  echo "    export _CC_${ccn}MODE=1"
3596		  echo " and then call configure again."
3597		  echo "------------------------------------------"
3598		  exit 1
3599		fi
3600		CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
3601		echo "$as_me:$LINENO: result: yes" >&5
3602echo "${ECHO_T}yes" >&6
3603		;;
3604    *)		OS390Unix="no";
3605		echo "$as_me:$LINENO: result: no" >&5
3606echo "${ECHO_T}no" >&6
3607		;;
3608esac
3609fi
3610
3611
3612
3613echo "$as_me:$LINENO: checking --with-features argument" >&5
3614echo $ECHO_N "checking --with-features argument... $ECHO_C" >&6
3615
3616# Check whether --with-features or --without-features was given.
3617if test "${with_features+set}" = set; then
3618  withval="$with_features"
3619  features="$withval"; echo "$as_me:$LINENO: result: $features" >&5
3620echo "${ECHO_T}$features" >&6
3621else
3622  features="normal"; echo "$as_me:$LINENO: result: Defaulting to normal" >&5
3623echo "${ECHO_T}Defaulting to normal" >&6
3624fi;
3625
3626dovimdiff=""
3627dogvimdiff=""
3628case "$features" in
3629  tiny)		cat >>confdefs.h <<\_ACEOF
3630#define FEAT_TINY 1
3631_ACEOF
3632 ;;
3633  small)	cat >>confdefs.h <<\_ACEOF
3634#define FEAT_SMALL 1
3635_ACEOF
3636 ;;
3637  normal)	cat >>confdefs.h <<\_ACEOF
3638#define FEAT_NORMAL 1
3639_ACEOF
3640 dovimdiff="installvimdiff";
3641			dogvimdiff="installgvimdiff" ;;
3642  big)		cat >>confdefs.h <<\_ACEOF
3643#define FEAT_BIG 1
3644_ACEOF
3645 dovimdiff="installvimdiff";
3646			dogvimdiff="installgvimdiff" ;;
3647  huge)		cat >>confdefs.h <<\_ACEOF
3648#define FEAT_HUGE 1
3649_ACEOF
3650 dovimdiff="installvimdiff";
3651			dogvimdiff="installgvimdiff" ;;
3652  *)		echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
3653echo "${ECHO_T}Sorry, $features is not supported" >&6 ;;
3654esac
3655
3656
3657
3658
3659echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
3660echo $ECHO_N "checking --with-compiledby argument... $ECHO_C" >&6
3661
3662# Check whether --with-compiledby or --without-compiledby was given.
3663if test "${with_compiledby+set}" = set; then
3664  withval="$with_compiledby"
3665  compiledby="$withval"; echo "$as_me:$LINENO: result: $withval" >&5
3666echo "${ECHO_T}$withval" >&6
3667else
3668  compiledby=""; echo "$as_me:$LINENO: result: no" >&5
3669echo "${ECHO_T}no" >&6
3670fi;
3671
3672
3673echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
3674echo $ECHO_N "checking --disable-xsmp argument... $ECHO_C" >&6
3675# Check whether --enable-xsmp or --disable-xsmp was given.
3676if test "${enable_xsmp+set}" = set; then
3677  enableval="$enable_xsmp"
3678
3679else
3680  enable_xsmp="yes"
3681fi;
3682
3683if test "$enable_xsmp" = "yes"; then
3684  echo "$as_me:$LINENO: result: no" >&5
3685echo "${ECHO_T}no" >&6
3686  echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
3687echo $ECHO_N "checking --disable-xsmp-interact argument... $ECHO_C" >&6
3688  # Check whether --enable-xsmp-interact or --disable-xsmp-interact was given.
3689if test "${enable_xsmp_interact+set}" = set; then
3690  enableval="$enable_xsmp_interact"
3691
3692else
3693  enable_xsmp_interact="yes"
3694fi;
3695  if test "$enable_xsmp_interact" = "yes"; then
3696    echo "$as_me:$LINENO: result: no" >&5
3697echo "${ECHO_T}no" >&6
3698    cat >>confdefs.h <<\_ACEOF
3699#define USE_XSMP_INTERACT 1
3700_ACEOF
3701
3702  else
3703    echo "$as_me:$LINENO: result: yes" >&5
3704echo "${ECHO_T}yes" >&6
3705  fi
3706else
3707  echo "$as_me:$LINENO: result: yes" >&5
3708echo "${ECHO_T}yes" >&6
3709fi
3710
3711echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
3712echo $ECHO_N "checking --enable-mzschemeinterp argument... $ECHO_C" >&6
3713# Check whether --enable-mzschemeinterp or --disable-mzschemeinterp was given.
3714if test "${enable_mzschemeinterp+set}" = set; then
3715  enableval="$enable_mzschemeinterp"
3716
3717else
3718  enable_mzschemeinterp="no"
3719fi;
3720echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
3721echo "${ECHO_T}$enable_mzschemeinterp" >&6
3722
3723if test "$enable_mzschemeinterp" = "yes"; then
3724
3725
3726  echo "$as_me:$LINENO: checking --with-plthome argument" >&5
3727echo $ECHO_N "checking --with-plthome argument... $ECHO_C" >&6
3728
3729# Check whether --with-plthome or --without-plthome was given.
3730if test "${with_plthome+set}" = set; then
3731  withval="$with_plthome"
3732  with_plthome="$withval"; echo "$as_me:$LINENO: result: $with_plthome" >&5
3733echo "${ECHO_T}$with_plthome" >&6
3734else
3735  with_plthome="";echo "$as_me:$LINENO: result: \"no\"" >&5
3736echo "${ECHO_T}\"no\"" >&6
3737fi;
3738
3739  if test "X$with_plthome" != "X"; then
3740       vi_cv_path_mzscheme_pfx="$with_plthome"
3741  else
3742    echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
3743echo $ECHO_N "checking PLTHOME environment var... $ECHO_C" >&6
3744    if test "X$PLTHOME" != "X"; then
3745	echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
3746echo "${ECHO_T}\"$PLTHOME\"" >&6
3747        vi_cv_path_mzscheme_pfx="$PLTHOME"
3748    else
3749	echo "$as_me:$LINENO: result: \"not set\"" >&5
3750echo "${ECHO_T}\"not set\"" >&6
3751	        # Extract the first word of "mzscheme", so it can be a program name with args.
3752set dummy mzscheme; ac_word=$2
3753echo "$as_me:$LINENO: checking for $ac_word" >&5
3754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3755if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
3756  echo $ECHO_N "(cached) $ECHO_C" >&6
3757else
3758  case $vi_cv_path_mzscheme in
3759  [\\/]* | ?:[\\/]*)
3760  ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
3761  ;;
3762  *)
3763  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764for as_dir in $PATH
3765do
3766  IFS=$as_save_IFS
3767  test -z "$as_dir" && as_dir=.
3768  for ac_exec_ext in '' $ac_executable_extensions; do
3769  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3770    ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
3771    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3772    break 2
3773  fi
3774done
3775done
3776
3777  ;;
3778esac
3779fi
3780vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
3781
3782if test -n "$vi_cv_path_mzscheme"; then
3783  echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
3784echo "${ECHO_T}$vi_cv_path_mzscheme" >&6
3785else
3786  echo "$as_me:$LINENO: result: no" >&5
3787echo "${ECHO_T}no" >&6
3788fi
3789
3790
3791		        if test "X$vi_cv_path_mzscheme" != "X"; then
3792	  lsout=`ls -l $vi_cv_path_mzscheme`
3793	  if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
3794	    vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
3795	  fi
3796	fi
3797
3798        if test "X$vi_cv_path_mzscheme" != "X"; then
3799                        echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
3800echo $ECHO_N "checking MzScheme install prefix... $ECHO_C" >&6
3801if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
3802  echo $ECHO_N "(cached) $ECHO_C" >&6
3803else
3804   vi_cv_path_mzscheme_pfx=`
3805      	    ${vi_cv_path_mzscheme} -evm \
3806            "(display (simplify-path		\
3807              (build-path (call-with-values	\
3808      	        (lambda () (split-path (find-system-path (quote exec-file)))) \
3809      	        (lambda (base name must-be-dir?) base)) (quote up))))"`
3810fi
3811echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
3812echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6
3813	    	    vi_cv_path_mzscheme_pfx=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'`
3814        fi
3815    fi
3816  fi
3817
3818  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
3819    echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
3820echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... $ECHO_C" >&6
3821    if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
3822      echo "$as_me:$LINENO: result: \"yes\"" >&5
3823echo "${ECHO_T}\"yes\"" >&6
3824    else
3825      echo "$as_me:$LINENO: result: \"no\"" >&5
3826echo "${ECHO_T}\"no\"" >&6
3827      vi_cv_path_mzscheme_pfx=
3828    fi
3829  fi
3830
3831  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
3832    if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
3833      MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a ${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a"
3834    else
3835      MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzgc -lmzscheme"
3836      if test "$GCC" = yes; then
3837		        MZSCHEME_LIBS="$MZSCHEME_LIBS -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
3838      elif test "`(uname) 2>/dev/null`" = SunOS &&
3839			       uname -r | grep '^5' >/dev/null; then
3840	MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib"
3841      fi
3842    fi
3843    MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include   \
3844      -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/collects\"'"
3845    MZSCHEME_SRC="if_mzsch.c"
3846    MZSCHEME_OBJ="objects/if_mzsch.o"
3847    MZSCHEME_PRO="if_mzsch.pro"
3848    cat >>confdefs.h <<\_ACEOF
3849#define FEAT_MZSCHEME 1
3850_ACEOF
3851
3852  fi
3853
3854
3855
3856
3857
3858fi
3859
3860
3861echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
3862echo $ECHO_N "checking --enable-perlinterp argument... $ECHO_C" >&6
3863# Check whether --enable-perlinterp or --disable-perlinterp was given.
3864if test "${enable_perlinterp+set}" = set; then
3865  enableval="$enable_perlinterp"
3866
3867else
3868  enable_perlinterp="no"
3869fi;
3870echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
3871echo "${ECHO_T}$enable_perlinterp" >&6
3872if test "$enable_perlinterp" = "yes"; then
3873
3874  # Extract the first word of "perl", so it can be a program name with args.
3875set dummy perl; ac_word=$2
3876echo "$as_me:$LINENO: checking for $ac_word" >&5
3877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3878if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
3879  echo $ECHO_N "(cached) $ECHO_C" >&6
3880else
3881  case $vi_cv_path_perl in
3882  [\\/]* | ?:[\\/]*)
3883  ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
3884  ;;
3885  *)
3886  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887for as_dir in $PATH
3888do
3889  IFS=$as_save_IFS
3890  test -z "$as_dir" && as_dir=.
3891  for ac_exec_ext in '' $ac_executable_extensions; do
3892  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3893    ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
3894    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3895    break 2
3896  fi
3897done
3898done
3899
3900  ;;
3901esac
3902fi
3903vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
3904
3905if test -n "$vi_cv_path_perl"; then
3906  echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
3907echo "${ECHO_T}$vi_cv_path_perl" >&6
3908else
3909  echo "$as_me:$LINENO: result: no" >&5
3910echo "${ECHO_T}no" >&6
3911fi
3912
3913  if test "X$vi_cv_path_perl" != "X"; then
3914    echo "$as_me:$LINENO: checking Perl version" >&5
3915echo $ECHO_N "checking Perl version... $ECHO_C" >&6
3916    if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
3917     eval `$vi_cv_path_perl -V:usethreads`
3918     if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
3919       badthreads=no
3920     else
3921       if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
3922	 eval `$vi_cv_path_perl -V:use5005threads`
3923	 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
3924	   badthreads=no
3925	 else
3926	   badthreads=yes
3927	   echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
3928echo "${ECHO_T}>>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6
3929	 fi
3930       else
3931	 badthreads=yes
3932	 echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
3933echo "${ECHO_T}>>> Perl 5.5 with threads cannot be used <<<" >&6
3934       fi
3935     fi
3936     if test $badthreads = no; then
3937      echo "$as_me:$LINENO: result: OK" >&5
3938echo "${ECHO_T}OK" >&6
3939      eval `$vi_cv_path_perl -V:shrpenv`
3940      if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
3941	shrpenv=""
3942      fi
3943      vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
3944
3945            perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
3946	      -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
3947            perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
3948		sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
3949			-e 's/-bE:perl.exp//' -e 's/-lc //'`
3950                  perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
3951		-e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
3952
3953                  echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
3954echo $ECHO_N "checking if compile and link flags for Perl are sane... $ECHO_C" >&6
3955      cflags_save=$CFLAGS
3956      libs_save=$LIBS
3957      ldflags_save=$LDFLAGS
3958      CFLAGS="$CFLAGS $perlcppflags"
3959      LIBS="$LIBS $perllibs"
3960      LDFLAGS="$perlldflags $LDFLAGS"
3961      cat >conftest.$ac_ext <<_ACEOF
3962/* confdefs.h.  */
3963_ACEOF
3964cat confdefs.h >>conftest.$ac_ext
3965cat >>conftest.$ac_ext <<_ACEOF
3966/* end confdefs.h.  */
3967
3968int
3969main ()
3970{
3971
3972  ;
3973  return 0;
3974}
3975_ACEOF
3976rm -f conftest.$ac_objext conftest$ac_exeext
3977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3978  (eval $ac_link) 2>conftest.er1
3979  ac_status=$?
3980  grep -v '^ *+' conftest.er1 >conftest.err
3981  rm -f conftest.er1
3982  cat conftest.err >&5
3983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984  (exit $ac_status); } &&
3985	 { ac_try='test -z "$ac_c_werror_flag"
3986			 || test ! -s conftest.err'
3987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988  (eval $ac_try) 2>&5
3989  ac_status=$?
3990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991  (exit $ac_status); }; } &&
3992	 { ac_try='test -s conftest$ac_exeext'
3993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994  (eval $ac_try) 2>&5
3995  ac_status=$?
3996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997  (exit $ac_status); }; }; then
3998  echo "$as_me:$LINENO: result: yes" >&5
3999echo "${ECHO_T}yes" >&6; perl_ok=yes
4000else
4001  echo "$as_me: failed program was:" >&5
4002sed 's/^/| /' conftest.$ac_ext >&5
4003
4004echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4005echo "${ECHO_T}no: PERL DISABLED" >&6; perl_ok=no
4006fi
4007rm -f conftest.err conftest.$ac_objext \
4008      conftest$ac_exeext conftest.$ac_ext
4009      CFLAGS=$cflags_save
4010      LIBS=$libs_save
4011      LDFLAGS=$ldflags_save
4012      if test $perl_ok = yes; then
4013	if test "X$perlcppflags" != "X"; then
4014	  PERL_CFLAGS="$perlcppflags"
4015	fi
4016	if test "X$perlldflags" != "X"; then
4017	  LDFLAGS="$perlldflags $LDFLAGS"
4018	fi
4019	PERL_LIBS=$perllibs
4020	PERL_SRC="auto/if_perl.c if_perlsfio.c"
4021	PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4022	PERL_PRO="if_perl.pro if_perlsfio.pro"
4023	cat >>confdefs.h <<\_ACEOF
4024#define FEAT_PERL 1
4025_ACEOF
4026
4027      fi
4028     fi
4029    else
4030      echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4031echo "${ECHO_T}>>> too old; need Perl version 5.003_01 or later <<<" >&6
4032    fi
4033  fi
4034
4035  if test "x$MACOSX" = "xyes"; then
4036        dir=/System/Library/Perl
4037    darwindir=$dir/darwin
4038    if test -d $darwindir; then
4039      PERL=/usr/bin/perl
4040    else
4041            dir=/System/Library/Perl/5.8.1
4042      darwindir=$dir/darwin-thread-multi-2level
4043      if test -d $darwindir; then
4044	PERL=/usr/bin/perl
4045      fi
4046    fi
4047    if test -n "$PERL"; then
4048      PERL_DIR="$dir"
4049      PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4050      PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4051      PERL_LIBS="-L$darwindir/CORE -lperl"
4052    fi
4053  fi
4054fi
4055
4056
4057
4058
4059
4060
4061
4062echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
4063echo $ECHO_N "checking --enable-pythoninterp argument... $ECHO_C" >&6
4064# Check whether --enable-pythoninterp or --disable-pythoninterp was given.
4065if test "${enable_pythoninterp+set}" = set; then
4066  enableval="$enable_pythoninterp"
4067
4068else
4069  enable_pythoninterp="no"
4070fi;
4071echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
4072echo "${ECHO_T}$enable_pythoninterp" >&6
4073if test "$enable_pythoninterp" = "yes"; then
4074    # Extract the first word of "python", so it can be a program name with args.
4075set dummy python; ac_word=$2
4076echo "$as_me:$LINENO: checking for $ac_word" >&5
4077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4078if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
4079  echo $ECHO_N "(cached) $ECHO_C" >&6
4080else
4081  case $vi_cv_path_python in
4082  [\\/]* | ?:[\\/]*)
4083  ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
4084  ;;
4085  *)
4086  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087for as_dir in $PATH
4088do
4089  IFS=$as_save_IFS
4090  test -z "$as_dir" && as_dir=.
4091  for ac_exec_ext in '' $ac_executable_extensions; do
4092  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4093    ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
4094    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4095    break 2
4096  fi
4097done
4098done
4099
4100  ;;
4101esac
4102fi
4103vi_cv_path_python=$ac_cv_path_vi_cv_path_python
4104
4105if test -n "$vi_cv_path_python"; then
4106  echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
4107echo "${ECHO_T}$vi_cv_path_python" >&6
4108else
4109  echo "$as_me:$LINENO: result: no" >&5
4110echo "${ECHO_T}no" >&6
4111fi
4112
4113  if test "X$vi_cv_path_python" != "X"; then
4114
4115        echo "$as_me:$LINENO: checking Python version" >&5
4116echo $ECHO_N "checking Python version... $ECHO_C" >&6
4117if test "${vi_cv_var_python_version+set}" = set; then
4118  echo $ECHO_N "(cached) $ECHO_C" >&6
4119else
4120  vi_cv_var_python_version=`
4121	    ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
4122
4123fi
4124echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
4125echo "${ECHO_T}$vi_cv_var_python_version" >&6
4126
4127        echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
4128echo $ECHO_N "checking Python is 1.4 or better... $ECHO_C" >&6
4129    if ${vi_cv_path_python} -c \
4130	"import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
4131    then
4132      echo "$as_me:$LINENO: result: yep" >&5
4133echo "${ECHO_T}yep" >&6
4134
4135            echo "$as_me:$LINENO: checking Python's install prefix" >&5
4136echo $ECHO_N "checking Python's install prefix... $ECHO_C" >&6
4137if test "${vi_cv_path_python_pfx+set}" = set; then
4138  echo $ECHO_N "(cached) $ECHO_C" >&6
4139else
4140   vi_cv_path_python_pfx=`
4141	    ${vi_cv_path_python} -c \
4142		"import sys; print sys.prefix"`
4143fi
4144echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
4145echo "${ECHO_T}$vi_cv_path_python_pfx" >&6
4146
4147            echo "$as_me:$LINENO: checking Python's execution prefix" >&5
4148echo $ECHO_N "checking Python's execution prefix... $ECHO_C" >&6
4149if test "${vi_cv_path_python_epfx+set}" = set; then
4150  echo $ECHO_N "(cached) $ECHO_C" >&6
4151else
4152   vi_cv_path_python_epfx=`
4153	    ${vi_cv_path_python} -c \
4154		"import sys; print sys.exec_prefix"`
4155fi
4156echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
4157echo "${ECHO_T}$vi_cv_path_python_epfx" >&6
4158
4159
4160      if test "${vi_cv_path_pythonpath+set}" = set; then
4161  echo $ECHO_N "(cached) $ECHO_C" >&6
4162else
4163   vi_cv_path_pythonpath=`
4164	    unset PYTHONPATH;
4165	    ${vi_cv_path_python} -c \
4166		"import sys, string; print string.join(sys.path,':')"`
4167fi
4168
4169
4170
4171
4172# Check whether --with-python-config-dir or --without-python-config-dir was given.
4173if test "${with_python_config_dir+set}" = set; then
4174  withval="$with_python_config_dir"
4175   vi_cv_path_python_conf="${withval}"
4176fi;
4177
4178      echo "$as_me:$LINENO: checking Python's configuration directory" >&5
4179echo $ECHO_N "checking Python's configuration directory... $ECHO_C" >&6
4180if test "${vi_cv_path_python_conf+set}" = set; then
4181  echo $ECHO_N "(cached) $ECHO_C" >&6
4182else
4183
4184	vi_cv_path_python_conf=
4185	for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
4186	  for subdir in lib share; do
4187	    d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
4188	    if test -d "$d" && test -f "$d/config.c"; then
4189	      vi_cv_path_python_conf="$d"
4190	    fi
4191	  done
4192	done
4193
4194fi
4195echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
4196echo "${ECHO_T}$vi_cv_path_python_conf" >&6
4197
4198      PYTHON_CONFDIR="${vi_cv_path_python_conf}"
4199
4200      if test "X$PYTHON_CONFDIR" = "X"; then
4201	echo "$as_me:$LINENO: result: can't find it!" >&5
4202echo "${ECHO_T}can't find it!" >&6
4203      else
4204
4205			if test "${vi_cv_path_python_plibs+set}" = set; then
4206  echo $ECHO_N "(cached) $ECHO_C" >&6
4207else
4208
4209	    tmp_mkf="/tmp/Makefile-conf$$"
4210	    cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf}
4211__:
4212	@echo "python_MODLIBS='$(MODLIBS)'"
4213	@echo "python_LIBS='$(LIBS)'"
4214	@echo "python_SYSLIBS='$(SYSLIBS)'"
4215	@echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
4216eof
4217	    	    eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`"
4218	    rm -f ${tmp_mkf}
4219	    if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
4220		"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
4221	      vi_cv_path_python_plibs="-framework Python"
4222	    else
4223	      if test "${vi_cv_var_python_version}" = "1.4"; then
4224		  vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
4225	      else
4226		  vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
4227	      fi
4228	      vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
4229	      	      vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
4230	    fi
4231
4232fi
4233
4234
4235	PYTHON_LIBS="${vi_cv_path_python_plibs}"
4236	if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
4237	  PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
4238	else
4239	  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}"
4240	fi
4241	PYTHON_SRC="if_python.c"
4242		if test "x$MACOSX" = "xyes"; then
4243	  PYTHON_OBJ="objects/if_python.o"
4244	else
4245	  PYTHON_OBJ="objects/if_python.o objects/py_config.o"
4246	fi
4247	if test "${vi_cv_var_python_version}" = "1.4"; then
4248	   PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
4249	fi
4250	PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
4251
4252								echo "$as_me:$LINENO: checking if -pthread should be used" >&5
4253echo $ECHO_N "checking if -pthread should be used... $ECHO_C" >&6
4254	threadsafe_flag=
4255	thread_lib=
4256	if test "x$MACOSX" != "xyes"; then
4257	  test "$GCC" = yes && threadsafe_flag="-pthread"
4258	  if test "`(uname) 2>/dev/null`" = FreeBSD; then
4259	    threadsafe_flag="-D_THREAD_SAFE"
4260	    thread_lib="-pthread"
4261	  fi
4262	fi
4263	libs_save_old=$LIBS
4264	if test -n "$threadsafe_flag"; then
4265	  cflags_save=$CFLAGS
4266	  CFLAGS="$CFLAGS $threadsafe_flag"
4267	  LIBS="$LIBS $thread_lib"
4268	  cat >conftest.$ac_ext <<_ACEOF
4269/* confdefs.h.  */
4270_ACEOF
4271cat confdefs.h >>conftest.$ac_ext
4272cat >>conftest.$ac_ext <<_ACEOF
4273/* end confdefs.h.  */
4274
4275int
4276main ()
4277{
4278
4279  ;
4280  return 0;
4281}
4282_ACEOF
4283rm -f conftest.$ac_objext conftest$ac_exeext
4284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4285  (eval $ac_link) 2>conftest.er1
4286  ac_status=$?
4287  grep -v '^ *+' conftest.er1 >conftest.err
4288  rm -f conftest.er1
4289  cat conftest.err >&5
4290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291  (exit $ac_status); } &&
4292	 { ac_try='test -z "$ac_c_werror_flag"
4293			 || test ! -s conftest.err'
4294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295  (eval $ac_try) 2>&5
4296  ac_status=$?
4297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298  (exit $ac_status); }; } &&
4299	 { ac_try='test -s conftest$ac_exeext'
4300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301  (eval $ac_try) 2>&5
4302  ac_status=$?
4303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304  (exit $ac_status); }; }; then
4305  echo "$as_me:$LINENO: result: yes" >&5
4306echo "${ECHO_T}yes" >&6; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
4307else
4308  echo "$as_me: failed program was:" >&5
4309sed 's/^/| /' conftest.$ac_ext >&5
4310
4311echo "$as_me:$LINENO: result: no" >&5
4312echo "${ECHO_T}no" >&6; LIBS=$libs_save_old
4313
4314fi
4315rm -f conftest.err conftest.$ac_objext \
4316      conftest$ac_exeext conftest.$ac_ext
4317	  CFLAGS=$cflags_save
4318	else
4319	  echo "$as_me:$LINENO: result: no" >&5
4320echo "${ECHO_T}no" >&6
4321	fi
4322
4323			echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
4324echo $ECHO_N "checking if compile and link flags for Python are sane... $ECHO_C" >&6
4325	cflags_save=$CFLAGS
4326	libs_save=$LIBS
4327	CFLAGS="$CFLAGS $PYTHON_CFLAGS"
4328	LIBS="$LIBS $PYTHON_LIBS"
4329	cat >conftest.$ac_ext <<_ACEOF
4330/* confdefs.h.  */
4331_ACEOF
4332cat confdefs.h >>conftest.$ac_ext
4333cat >>conftest.$ac_ext <<_ACEOF
4334/* end confdefs.h.  */
4335
4336int
4337main ()
4338{
4339
4340  ;
4341  return 0;
4342}
4343_ACEOF
4344rm -f conftest.$ac_objext conftest$ac_exeext
4345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4346  (eval $ac_link) 2>conftest.er1
4347  ac_status=$?
4348  grep -v '^ *+' conftest.er1 >conftest.err
4349  rm -f conftest.er1
4350  cat conftest.err >&5
4351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352  (exit $ac_status); } &&
4353	 { ac_try='test -z "$ac_c_werror_flag"
4354			 || test ! -s conftest.err'
4355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356  (eval $ac_try) 2>&5
4357  ac_status=$?
4358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359  (exit $ac_status); }; } &&
4360	 { ac_try='test -s conftest$ac_exeext'
4361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362  (eval $ac_try) 2>&5
4363  ac_status=$?
4364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365  (exit $ac_status); }; }; then
4366  echo "$as_me:$LINENO: result: yes" >&5
4367echo "${ECHO_T}yes" >&6; python_ok=yes
4368else
4369  echo "$as_me: failed program was:" >&5
4370sed 's/^/| /' conftest.$ac_ext >&5
4371
4372echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
4373echo "${ECHO_T}no: PYTHON DISABLED" >&6; python_ok=no
4374fi
4375rm -f conftest.err conftest.$ac_objext \
4376      conftest$ac_exeext conftest.$ac_ext
4377	CFLAGS=$cflags_save
4378	LIBS=$libs_save
4379	if test $python_ok = yes; then
4380	  cat >>confdefs.h <<\_ACEOF
4381#define FEAT_PYTHON 1
4382_ACEOF
4383
4384	else
4385	  LIBS=$libs_save_old
4386	  PYTHON_SRC=
4387	  PYTHON_OBJ=
4388	  PYTHON_LIBS=
4389	  PYTHON_CFLAGS=
4390	fi
4391
4392      fi
4393    else
4394      echo "$as_me:$LINENO: result: too old" >&5
4395echo "${ECHO_T}too old" >&6
4396    fi
4397  fi
4398fi
4399
4400
4401
4402
4403
4404
4405
4406echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
4407echo $ECHO_N "checking --enable-tclinterp argument... $ECHO_C" >&6
4408# Check whether --enable-tclinterp or --disable-tclinterp was given.
4409if test "${enable_tclinterp+set}" = set; then
4410  enableval="$enable_tclinterp"
4411
4412else
4413  enable_tclinterp="no"
4414fi;
4415echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
4416echo "${ECHO_T}$enable_tclinterp" >&6
4417
4418if test "$enable_tclinterp" = "yes"; then
4419
4420    echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
4421echo $ECHO_N "checking --with-tclsh argument... $ECHO_C" >&6
4422
4423# Check whether --with-tclsh or --without-tclsh was given.
4424if test "${with_tclsh+set}" = set; then
4425  withval="$with_tclsh"
4426  tclsh_name="$withval"; echo "$as_me:$LINENO: result: $tclsh_name" >&5
4427echo "${ECHO_T}$tclsh_name" >&6
4428else
4429  tclsh_name="tclsh8.4"; echo "$as_me:$LINENO: result: no" >&5
4430echo "${ECHO_T}no" >&6
4431fi;
4432  # Extract the first word of "$tclsh_name", so it can be a program name with args.
4433set dummy $tclsh_name; ac_word=$2
4434echo "$as_me:$LINENO: checking for $ac_word" >&5
4435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4436if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4437  echo $ECHO_N "(cached) $ECHO_C" >&6
4438else
4439  case $vi_cv_path_tcl in
4440  [\\/]* | ?:[\\/]*)
4441  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4442  ;;
4443  *)
4444  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445for as_dir in $PATH
4446do
4447  IFS=$as_save_IFS
4448  test -z "$as_dir" && as_dir=.
4449  for ac_exec_ext in '' $ac_executable_extensions; do
4450  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4451    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4452    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4453    break 2
4454  fi
4455done
4456done
4457
4458  ;;
4459esac
4460fi
4461vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4462
4463if test -n "$vi_cv_path_tcl"; then
4464  echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4465echo "${ECHO_T}$vi_cv_path_tcl" >&6
4466else
4467  echo "$as_me:$LINENO: result: no" >&5
4468echo "${ECHO_T}no" >&6
4469fi
4470
4471
4472
4473    if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
4474    tclsh_name="tclsh8.2"
4475    # Extract the first word of "$tclsh_name", so it can be a program name with args.
4476set dummy $tclsh_name; ac_word=$2
4477echo "$as_me:$LINENO: checking for $ac_word" >&5
4478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4479if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4480  echo $ECHO_N "(cached) $ECHO_C" >&6
4481else
4482  case $vi_cv_path_tcl in
4483  [\\/]* | ?:[\\/]*)
4484  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4485  ;;
4486  *)
4487  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488for as_dir in $PATH
4489do
4490  IFS=$as_save_IFS
4491  test -z "$as_dir" && as_dir=.
4492  for ac_exec_ext in '' $ac_executable_extensions; do
4493  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4494    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4495    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496    break 2
4497  fi
4498done
4499done
4500
4501  ;;
4502esac
4503fi
4504vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4505
4506if test -n "$vi_cv_path_tcl"; then
4507  echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4508echo "${ECHO_T}$vi_cv_path_tcl" >&6
4509else
4510  echo "$as_me:$LINENO: result: no" >&5
4511echo "${ECHO_T}no" >&6
4512fi
4513
4514  fi
4515  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
4516    tclsh_name="tclsh8.0"
4517    # Extract the first word of "$tclsh_name", so it can be a program name with args.
4518set dummy $tclsh_name; ac_word=$2
4519echo "$as_me:$LINENO: checking for $ac_word" >&5
4520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4521if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4522  echo $ECHO_N "(cached) $ECHO_C" >&6
4523else
4524  case $vi_cv_path_tcl in
4525  [\\/]* | ?:[\\/]*)
4526  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4527  ;;
4528  *)
4529  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530for as_dir in $PATH
4531do
4532  IFS=$as_save_IFS
4533  test -z "$as_dir" && as_dir=.
4534  for ac_exec_ext in '' $ac_executable_extensions; do
4535  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4536    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4537    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538    break 2
4539  fi
4540done
4541done
4542
4543  ;;
4544esac
4545fi
4546vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4547
4548if test -n "$vi_cv_path_tcl"; then
4549  echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4550echo "${ECHO_T}$vi_cv_path_tcl" >&6
4551else
4552  echo "$as_me:$LINENO: result: no" >&5
4553echo "${ECHO_T}no" >&6
4554fi
4555
4556  fi
4557    if test "X$vi_cv_path_tcl" = "X"; then
4558    tclsh_name="tclsh"
4559    # Extract the first word of "$tclsh_name", so it can be a program name with args.
4560set dummy $tclsh_name; ac_word=$2
4561echo "$as_me:$LINENO: checking for $ac_word" >&5
4562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4563if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4564  echo $ECHO_N "(cached) $ECHO_C" >&6
4565else
4566  case $vi_cv_path_tcl in
4567  [\\/]* | ?:[\\/]*)
4568  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4569  ;;
4570  *)
4571  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572for as_dir in $PATH
4573do
4574  IFS=$as_save_IFS
4575  test -z "$as_dir" && as_dir=.
4576  for ac_exec_ext in '' $ac_executable_extensions; do
4577  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4578    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4579    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4580    break 2
4581  fi
4582done
4583done
4584
4585  ;;
4586esac
4587fi
4588vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4589
4590if test -n "$vi_cv_path_tcl"; then
4591  echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4592echo "${ECHO_T}$vi_cv_path_tcl" >&6
4593else
4594  echo "$as_me:$LINENO: result: no" >&5
4595echo "${ECHO_T}no" >&6
4596fi
4597
4598  fi
4599  if test "X$vi_cv_path_tcl" != "X"; then
4600    echo "$as_me:$LINENO: checking Tcl version" >&5
4601echo $ECHO_N "checking Tcl version... $ECHO_C" >&6
4602    if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
4603      tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
4604      echo "$as_me:$LINENO: result: $tclver - OK" >&5
4605echo "${ECHO_T}$tclver - OK" >&6;
4606      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 -`
4607
4608      echo "$as_me:$LINENO: checking for location of Tcl include" >&5
4609echo $ECHO_N "checking for location of Tcl include... $ECHO_C" >&6
4610      if test "x$MACOSX" != "xyes"; then
4611	tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/include"
4612      else
4613		tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
4614      fi
4615      for try in $tclinc; do
4616	if test -f "$try/tcl.h"; then
4617	  echo "$as_me:$LINENO: result: $try/tcl.h" >&5
4618echo "${ECHO_T}$try/tcl.h" >&6
4619	  TCL_INC=$try
4620	  break
4621	fi
4622      done
4623      if test -z "$TCL_INC"; then
4624	echo "$as_me:$LINENO: result: <not found>" >&5
4625echo "${ECHO_T}<not found>" >&6
4626	SKIP_TCL=YES
4627      fi
4628      if test -z "$SKIP_TCL"; then
4629	echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
4630echo $ECHO_N "checking for location of tclConfig.sh script... $ECHO_C" >&6
4631	if test "x$MACOSX" != "xyes"; then
4632	  tclcnf=`echo $tclinc | sed s/include/lib/g`
4633	else
4634	  	  tclcnf="/System/Library/Frameworks/Tcl.framework"
4635	fi
4636	for try in $tclcnf; do
4637	  if test -f $try/tclConfig.sh; then
4638	    echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
4639echo "${ECHO_T}$try/tclConfig.sh" >&6
4640	    . $try/tclConfig.sh
4641	    	    TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
4642	    	    	    TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\\\\ /\\\\X/g' | tr ' ' '\012' | sed -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr '\012' ' ' | sed -e 's/\\\\X/\\\\ /g'`
4643	    break
4644	  fi
4645	done
4646	if test -z "$TCL_LIBS"; then
4647	  echo "$as_me:$LINENO: result: <not found>" >&5
4648echo "${ECHO_T}<not found>" >&6
4649	  echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
4650echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6
4651	  tcllib=`echo $tclinc | sed s/include/lib/g`
4652	  for ext in .so .a ; do
4653	    for ver in "" $tclver ; do
4654	      for try in $tcllib ; do
4655		trylib=tcl$ver$ext
4656		if test -f $try/lib$trylib ; then
4657		  echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
4658echo "${ECHO_T}$try/lib$trylib" >&6
4659		  TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
4660		  if test "`(uname) 2>/dev/null`" = SunOS &&
4661					 uname -r | grep '^5' >/dev/null; then
4662		    TCL_LIBS="$TCL_LIBS -R $try"
4663		  fi
4664		  break 3
4665		fi
4666	      done
4667	    done
4668	  done
4669	  if test -z "$TCL_LIBS"; then
4670	    echo "$as_me:$LINENO: result: <not found>" >&5
4671echo "${ECHO_T}<not found>" >&6
4672	    SKIP_TCL=YES
4673	  fi
4674	fi
4675	if test -z "$SKIP_TCL"; then
4676	  cat >>confdefs.h <<\_ACEOF
4677#define FEAT_TCL 1
4678_ACEOF
4679
4680	  TCL_SRC=if_tcl.c
4681	  TCL_OBJ=objects/if_tcl.o
4682	  TCL_PRO=if_tcl.pro
4683	  TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
4684	fi
4685      fi
4686    else
4687      echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
4688echo "${ECHO_T}too old; need Tcl version 8.0 or later" >&6
4689    fi
4690  fi
4691fi
4692
4693
4694
4695
4696
4697
4698echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
4699echo $ECHO_N "checking --enable-rubyinterp argument... $ECHO_C" >&6
4700# Check whether --enable-rubyinterp or --disable-rubyinterp was given.
4701if test "${enable_rubyinterp+set}" = set; then
4702  enableval="$enable_rubyinterp"
4703
4704else
4705  enable_rubyinterp="no"
4706fi;
4707echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
4708echo "${ECHO_T}$enable_rubyinterp" >&6
4709if test "$enable_rubyinterp" = "yes"; then
4710
4711  # Extract the first word of "ruby", so it can be a program name with args.
4712set dummy ruby; ac_word=$2
4713echo "$as_me:$LINENO: checking for $ac_word" >&5
4714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4715if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
4716  echo $ECHO_N "(cached) $ECHO_C" >&6
4717else
4718  case $vi_cv_path_ruby in
4719  [\\/]* | ?:[\\/]*)
4720  ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
4721  ;;
4722  *)
4723  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724for as_dir in $PATH
4725do
4726  IFS=$as_save_IFS
4727  test -z "$as_dir" && as_dir=.
4728  for ac_exec_ext in '' $ac_executable_extensions; do
4729  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4730    ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
4731    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4732    break 2
4733  fi
4734done
4735done
4736
4737  ;;
4738esac
4739fi
4740vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
4741
4742if test -n "$vi_cv_path_ruby"; then
4743  echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
4744echo "${ECHO_T}$vi_cv_path_ruby" >&6
4745else
4746  echo "$as_me:$LINENO: result: no" >&5
4747echo "${ECHO_T}no" >&6
4748fi
4749
4750  if test "X$vi_cv_path_ruby" != "X"; then
4751    echo "$as_me:$LINENO: checking Ruby version" >&5
4752echo $ECHO_N "checking Ruby version... $ECHO_C" >&6
4753    if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
4754      echo "$as_me:$LINENO: result: OK" >&5
4755echo "${ECHO_T}OK" >&6
4756      echo "$as_me:$LINENO: checking Ruby header files" >&5
4757echo $ECHO_N "checking Ruby header files... $ECHO_C" >&6
4758      rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
4759      if test "X$rubyhdrdir" != "X"; then
4760	echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
4761echo "${ECHO_T}$rubyhdrdir" >&6
4762	RUBY_CFLAGS="-I$rubyhdrdir"
4763	rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
4764	if test "X$rubylibs" != "X"; then
4765	  RUBY_LIBS="$rubylibs"
4766	fi
4767	librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
4768	if test -f "$rubyhdrdir/$librubyarg"; then
4769	  librubyarg="$rubyhdrdir/$librubyarg"
4770	else
4771	  rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
4772	  if test -f "$rubylibdir/$librubyarg"; then
4773	    librubyarg="$rubylibdir/$librubyarg"
4774	  elif test "$librubyarg" = "libruby.a"; then
4775	    	    librubyarg="-lruby"
4776	  else
4777	    librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
4778	  fi
4779	fi
4780
4781	if test "X$librubyarg" != "X"; then
4782	  RUBY_LIBS="$librubyarg $RUBY_LIBS"
4783	fi
4784	rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
4785	if test "X$rubyldflags" != "X"; then
4786	  LDFLAGS="$rubyldflags $LDFLAGS"
4787	fi
4788	RUBY_SRC="if_ruby.c"
4789	RUBY_OBJ="objects/if_ruby.o"
4790	RUBY_PRO="if_ruby.pro"
4791	cat >>confdefs.h <<\_ACEOF
4792#define FEAT_RUBY 1
4793_ACEOF
4794
4795      else
4796	echo "$as_me:$LINENO: result: not found" >&5
4797echo "${ECHO_T}not found" >&6
4798      fi
4799    else
4800      echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
4801echo "${ECHO_T}too old; need Ruby version 1.6.0 or later" >&6
4802    fi
4803  fi
4804fi
4805
4806
4807
4808
4809
4810
4811echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
4812echo $ECHO_N "checking --enable-cscope argument... $ECHO_C" >&6
4813# Check whether --enable-cscope or --disable-cscope was given.
4814if test "${enable_cscope+set}" = set; then
4815  enableval="$enable_cscope"
4816
4817else
4818  enable_cscope="no"
4819fi;
4820echo "$as_me:$LINENO: result: $enable_cscope" >&5
4821echo "${ECHO_T}$enable_cscope" >&6
4822if test "$enable_cscope" = "yes"; then
4823  cat >>confdefs.h <<\_ACEOF
4824#define FEAT_CSCOPE 1
4825_ACEOF
4826
4827fi
4828
4829echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
4830echo $ECHO_N "checking --enable-workshop argument... $ECHO_C" >&6
4831# Check whether --enable-workshop or --disable-workshop was given.
4832if test "${enable_workshop+set}" = set; then
4833  enableval="$enable_workshop"
4834
4835else
4836  enable_workshop="no"
4837fi;
4838echo "$as_me:$LINENO: result: $enable_workshop" >&5
4839echo "${ECHO_T}$enable_workshop" >&6
4840if test "$enable_workshop" = "yes"; then
4841  cat >>confdefs.h <<\_ACEOF
4842#define FEAT_SUN_WORKSHOP 1
4843_ACEOF
4844
4845  WORKSHOP_SRC="workshop.c integration.c"
4846
4847  WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
4848
4849  if test "${enable_gui-xxx}" = xxx; then
4850    enable_gui=motif
4851  fi
4852fi
4853
4854echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
4855echo $ECHO_N "checking --disable-netbeans argument... $ECHO_C" >&6
4856# Check whether --enable-netbeans or --disable-netbeans was given.
4857if test "${enable_netbeans+set}" = set; then
4858  enableval="$enable_netbeans"
4859
4860else
4861  enable_netbeans="yes"
4862fi;
4863if test "$enable_netbeans" = "yes"; then
4864  echo "$as_me:$LINENO: result: no" >&5
4865echo "${ECHO_T}no" >&6
4866
4867echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4868echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4869if test "${ac_cv_lib_socket_socket+set}" = set; then
4870  echo $ECHO_N "(cached) $ECHO_C" >&6
4871else
4872  ac_check_lib_save_LIBS=$LIBS
4873LIBS="-lsocket  $LIBS"
4874cat >conftest.$ac_ext <<_ACEOF
4875/* confdefs.h.  */
4876_ACEOF
4877cat confdefs.h >>conftest.$ac_ext
4878cat >>conftest.$ac_ext <<_ACEOF
4879/* end confdefs.h.  */
4880
4881/* Override any gcc2 internal prototype to avoid an error.  */
4882#ifdef __cplusplus
4883extern "C"
4884#endif
4885/* We use char because int might match the return type of a gcc2
4886   builtin and then its argument prototype would still apply.  */
4887char socket ();
4888int
4889main ()
4890{
4891socket ();
4892  ;
4893  return 0;
4894}
4895_ACEOF
4896rm -f conftest.$ac_objext conftest$ac_exeext
4897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4898  (eval $ac_link) 2>conftest.er1
4899  ac_status=$?
4900  grep -v '^ *+' conftest.er1 >conftest.err
4901  rm -f conftest.er1
4902  cat conftest.err >&5
4903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904  (exit $ac_status); } &&
4905	 { ac_try='test -z "$ac_c_werror_flag"
4906			 || test ! -s conftest.err'
4907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908  (eval $ac_try) 2>&5
4909  ac_status=$?
4910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911  (exit $ac_status); }; } &&
4912	 { ac_try='test -s conftest$ac_exeext'
4913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914  (eval $ac_try) 2>&5
4915  ac_status=$?
4916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917  (exit $ac_status); }; }; then
4918  ac_cv_lib_socket_socket=yes
4919else
4920  echo "$as_me: failed program was:" >&5
4921sed 's/^/| /' conftest.$ac_ext >&5
4922
4923ac_cv_lib_socket_socket=no
4924fi
4925rm -f conftest.err conftest.$ac_objext \
4926      conftest$ac_exeext conftest.$ac_ext
4927LIBS=$ac_check_lib_save_LIBS
4928fi
4929echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4930echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4931if test $ac_cv_lib_socket_socket = yes; then
4932  cat >>confdefs.h <<_ACEOF
4933#define HAVE_LIBSOCKET 1
4934_ACEOF
4935
4936  LIBS="-lsocket $LIBS"
4937
4938fi
4939
4940
4941echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4942echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4943if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4944  echo $ECHO_N "(cached) $ECHO_C" >&6
4945else
4946  ac_check_lib_save_LIBS=$LIBS
4947LIBS="-lnsl  $LIBS"
4948cat >conftest.$ac_ext <<_ACEOF
4949/* confdefs.h.  */
4950_ACEOF
4951cat confdefs.h >>conftest.$ac_ext
4952cat >>conftest.$ac_ext <<_ACEOF
4953/* end confdefs.h.  */
4954
4955/* Override any gcc2 internal prototype to avoid an error.  */
4956#ifdef __cplusplus
4957extern "C"
4958#endif
4959/* We use char because int might match the return type of a gcc2
4960   builtin and then its argument prototype would still apply.  */
4961char gethostbyname ();
4962int
4963main ()
4964{
4965gethostbyname ();
4966  ;
4967  return 0;
4968}
4969_ACEOF
4970rm -f conftest.$ac_objext conftest$ac_exeext
4971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4972  (eval $ac_link) 2>conftest.er1
4973  ac_status=$?
4974  grep -v '^ *+' conftest.er1 >conftest.err
4975  rm -f conftest.er1
4976  cat conftest.err >&5
4977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978  (exit $ac_status); } &&
4979	 { ac_try='test -z "$ac_c_werror_flag"
4980			 || test ! -s conftest.err'
4981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982  (eval $ac_try) 2>&5
4983  ac_status=$?
4984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985  (exit $ac_status); }; } &&
4986	 { ac_try='test -s conftest$ac_exeext'
4987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988  (eval $ac_try) 2>&5
4989  ac_status=$?
4990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991  (exit $ac_status); }; }; then
4992  ac_cv_lib_nsl_gethostbyname=yes
4993else
4994  echo "$as_me: failed program was:" >&5
4995sed 's/^/| /' conftest.$ac_ext >&5
4996
4997ac_cv_lib_nsl_gethostbyname=no
4998fi
4999rm -f conftest.err conftest.$ac_objext \
5000      conftest$ac_exeext conftest.$ac_ext
5001LIBS=$ac_check_lib_save_LIBS
5002fi
5003echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5004echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5005if test $ac_cv_lib_nsl_gethostbyname = yes; then
5006  cat >>confdefs.h <<_ACEOF
5007#define HAVE_LIBNSL 1
5008_ACEOF
5009
5010  LIBS="-lnsl $LIBS"
5011
5012fi
5013
5014  echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
5015echo $ECHO_N "checking whether compiling netbeans integration is possible... $ECHO_C" >&6
5016  cat >conftest.$ac_ext <<_ACEOF
5017/* confdefs.h.  */
5018_ACEOF
5019cat confdefs.h >>conftest.$ac_ext
5020cat >>conftest.$ac_ext <<_ACEOF
5021/* end confdefs.h.  */
5022
5023#include <stdio.h>
5024#include <stdlib.h>
5025#include <stdarg.h>
5026#include <fcntl.h>
5027#include <netdb.h>
5028#include <netinet/in.h>
5029#include <errno.h>
5030#include <sys/types.h>
5031#include <sys/socket.h>
5032	/* Check bitfields */
5033	struct nbbuf {
5034	unsigned int  initDone:1;
5035	ushort signmaplen;
5036	};
5037
5038int
5039main ()
5040{
5041
5042		/* Check creating a socket. */
5043		struct sockaddr_in server;
5044		(void)socket(AF_INET, SOCK_STREAM, 0);
5045		(void)htons(100);
5046		(void)gethostbyname("microsoft.com");
5047		if (errno == ECONNREFUSED)
5048		  (void)connect(1, (struct sockaddr *)&server, sizeof(server));
5049
5050  ;
5051  return 0;
5052}
5053_ACEOF
5054rm -f conftest.$ac_objext conftest$ac_exeext
5055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5056  (eval $ac_link) 2>conftest.er1
5057  ac_status=$?
5058  grep -v '^ *+' conftest.er1 >conftest.err
5059  rm -f conftest.er1
5060  cat conftest.err >&5
5061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062  (exit $ac_status); } &&
5063	 { ac_try='test -z "$ac_c_werror_flag"
5064			 || test ! -s conftest.err'
5065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5066  (eval $ac_try) 2>&5
5067  ac_status=$?
5068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069  (exit $ac_status); }; } &&
5070	 { ac_try='test -s conftest$ac_exeext'
5071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072  (eval $ac_try) 2>&5
5073  ac_status=$?
5074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075  (exit $ac_status); }; }; then
5076  echo "$as_me:$LINENO: result: yes" >&5
5077echo "${ECHO_T}yes" >&6
5078else
5079  echo "$as_me: failed program was:" >&5
5080sed 's/^/| /' conftest.$ac_ext >&5
5081
5082echo "$as_me:$LINENO: result: no" >&5
5083echo "${ECHO_T}no" >&6; enable_netbeans="no"
5084fi
5085rm -f conftest.err conftest.$ac_objext \
5086      conftest$ac_exeext conftest.$ac_ext
5087else
5088  echo "$as_me:$LINENO: result: yes" >&5
5089echo "${ECHO_T}yes" >&6
5090fi
5091if test "$enable_netbeans" = "yes"; then
5092  cat >>confdefs.h <<\_ACEOF
5093#define FEAT_NETBEANS_INTG 1
5094_ACEOF
5095
5096  NETBEANS_SRC="netbeans.c"
5097
5098  NETBEANS_OBJ="objects/netbeans.o"
5099
5100fi
5101
5102echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
5103echo $ECHO_N "checking --enable-sniff argument... $ECHO_C" >&6
5104# Check whether --enable-sniff or --disable-sniff was given.
5105if test "${enable_sniff+set}" = set; then
5106  enableval="$enable_sniff"
5107
5108else
5109  enable_sniff="no"
5110fi;
5111echo "$as_me:$LINENO: result: $enable_sniff" >&5
5112echo "${ECHO_T}$enable_sniff" >&6
5113if test "$enable_sniff" = "yes"; then
5114  cat >>confdefs.h <<\_ACEOF
5115#define FEAT_SNIFF 1
5116_ACEOF
5117
5118  SNIFF_SRC="if_sniff.c"
5119
5120  SNIFF_OBJ="objects/if_sniff.o"
5121
5122fi
5123
5124echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
5125echo $ECHO_N "checking --enable-multibyte argument... $ECHO_C" >&6
5126# Check whether --enable-multibyte or --disable-multibyte was given.
5127if test "${enable_multibyte+set}" = set; then
5128  enableval="$enable_multibyte"
5129
5130else
5131  enable_multibyte="no"
5132fi;
5133echo "$as_me:$LINENO: result: $enable_multibyte" >&5
5134echo "${ECHO_T}$enable_multibyte" >&6
5135if test "$enable_multibyte" = "yes"; then
5136  cat >>confdefs.h <<\_ACEOF
5137#define FEAT_MBYTE 1
5138_ACEOF
5139
5140fi
5141
5142echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
5143echo $ECHO_N "checking --enable-hangulinput argument... $ECHO_C" >&6
5144# Check whether --enable-hangulinput or --disable-hangulinput was given.
5145if test "${enable_hangulinput+set}" = set; then
5146  enableval="$enable_hangulinput"
5147
5148else
5149  enable_hangulinput="no"
5150fi;
5151echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
5152echo "${ECHO_T}$enable_hangulinput" >&6
5153
5154echo "$as_me:$LINENO: checking --enable-xim argument" >&5
5155echo $ECHO_N "checking --enable-xim argument... $ECHO_C" >&6
5156# Check whether --enable-xim or --disable-xim was given.
5157if test "${enable_xim+set}" = set; then
5158  enableval="$enable_xim"
5159  echo "$as_me:$LINENO: result: $enable_xim" >&5
5160echo "${ECHO_T}$enable_xim" >&6
5161else
5162  enable_xim="auto"; echo "$as_me:$LINENO: result: defaulting to auto" >&5
5163echo "${ECHO_T}defaulting to auto" >&6
5164fi;
5165
5166echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
5167echo $ECHO_N "checking --enable-fontset argument... $ECHO_C" >&6
5168# Check whether --enable-fontset or --disable-fontset was given.
5169if test "${enable_fontset+set}" = set; then
5170  enableval="$enable_fontset"
5171
5172else
5173  enable_fontset="no"
5174fi;
5175echo "$as_me:$LINENO: result: $enable_fontset" >&5
5176echo "${ECHO_T}$enable_fontset" >&6
5177
5178test -z "$with_x" && with_x=yes
5179test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
5180if test "$with_x" = no; then
5181  echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
5182echo "${ECHO_T}defaulting to: don't HAVE_X11" >&6
5183else
5184
5185  # Extract the first word of "xmkmf", so it can be a program name with args.
5186set dummy xmkmf; ac_word=$2
5187echo "$as_me:$LINENO: checking for $ac_word" >&5
5188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5189if test "${ac_cv_path_xmkmfpath+set}" = set; then
5190  echo $ECHO_N "(cached) $ECHO_C" >&6
5191else
5192  case $xmkmfpath in
5193  [\\/]* | ?:[\\/]*)
5194  ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
5195  ;;
5196  *)
5197  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198for as_dir in $PATH
5199do
5200  IFS=$as_save_IFS
5201  test -z "$as_dir" && as_dir=.
5202  for ac_exec_ext in '' $ac_executable_extensions; do
5203  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5204    ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
5205    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5206    break 2
5207  fi
5208done
5209done
5210
5211  ;;
5212esac
5213fi
5214xmkmfpath=$ac_cv_path_xmkmfpath
5215
5216if test -n "$xmkmfpath"; then
5217  echo "$as_me:$LINENO: result: $xmkmfpath" >&5
5218echo "${ECHO_T}$xmkmfpath" >&6
5219else
5220  echo "$as_me:$LINENO: result: no" >&5
5221echo "${ECHO_T}no" >&6
5222fi
5223
5224
5225  echo "$as_me:$LINENO: checking for X" >&5
5226echo $ECHO_N "checking for X... $ECHO_C" >&6
5227
5228
5229# Check whether --with-x or --without-x was given.
5230if test "${with_x+set}" = set; then
5231  withval="$with_x"
5232
5233fi;
5234# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5235if test "x$with_x" = xno; then
5236  # The user explicitly disabled X.
5237  have_x=disabled
5238else
5239  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5240    # Both variables are already set.
5241    have_x=yes
5242  else
5243    if test "${ac_cv_have_x+set}" = set; then
5244  echo $ECHO_N "(cached) $ECHO_C" >&6
5245else
5246  # One or both of the vars are not set, and there is no cached value.
5247ac_x_includes=no ac_x_libraries=no
5248rm -fr conftest.dir
5249if mkdir conftest.dir; then
5250  cd conftest.dir
5251  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5252  cat >Imakefile <<'_ACEOF'
5253acfindx:
5254	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5255_ACEOF
5256  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5257    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5258    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5259    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5260    for ac_extension in a so sl; do
5261      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5262	 test -f $ac_im_libdir/libX11.$ac_extension; then
5263	ac_im_usrlibdir=$ac_im_libdir; break
5264      fi
5265    done
5266    # Screen out bogus values from the imake configuration.  They are
5267    # bogus both because they are the default anyway, and because
5268    # using them would break gcc on systems where it needs fixed includes.
5269    case $ac_im_incroot in
5270	/usr/include) ;;
5271	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5272    esac
5273    case $ac_im_usrlibdir in
5274	/usr/lib | /lib) ;;
5275	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5276    esac
5277  fi
5278  cd ..
5279  rm -fr conftest.dir
5280fi
5281
5282# Standard set of common directories for X headers.
5283# Check X11 before X11Rn because it is often a symlink to the current release.
5284ac_x_header_dirs='
5285/usr/X11/include
5286/usr/X11R6/include
5287/usr/X11R5/include
5288/usr/X11R4/include
5289
5290/usr/include/X11
5291/usr/include/X11R6
5292/usr/include/X11R5
5293/usr/include/X11R4
5294
5295/usr/local/X11/include
5296/usr/local/X11R6/include
5297/usr/local/X11R5/include
5298/usr/local/X11R4/include
5299
5300/usr/local/include/X11
5301/usr/local/include/X11R6
5302/usr/local/include/X11R5
5303/usr/local/include/X11R4
5304
5305/usr/X386/include
5306/usr/x386/include
5307/usr/XFree86/include/X11
5308
5309/usr/include
5310/usr/local/include
5311/usr/unsupported/include
5312/usr/athena/include
5313/usr/local/x11r5/include
5314/usr/lpp/Xamples/include
5315
5316/usr/openwin/include
5317/usr/openwin/share/include'
5318
5319if test "$ac_x_includes" = no; then
5320  # Guess where to find include files, by looking for Intrinsic.h.
5321  # First, try using that file with no special directory specified.
5322  cat >conftest.$ac_ext <<_ACEOF
5323/* confdefs.h.  */
5324_ACEOF
5325cat confdefs.h >>conftest.$ac_ext
5326cat >>conftest.$ac_ext <<_ACEOF
5327/* end confdefs.h.  */
5328#include <X11/Intrinsic.h>
5329_ACEOF
5330if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5331  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5332  ac_status=$?
5333  grep -v '^ *+' conftest.er1 >conftest.err
5334  rm -f conftest.er1
5335  cat conftest.err >&5
5336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337  (exit $ac_status); } >/dev/null; then
5338  if test -s conftest.err; then
5339    ac_cpp_err=$ac_c_preproc_warn_flag
5340    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5341  else
5342    ac_cpp_err=
5343  fi
5344else
5345  ac_cpp_err=yes
5346fi
5347if test -z "$ac_cpp_err"; then
5348  # We can compile using X headers with no special include directory.
5349ac_x_includes=
5350else
5351  echo "$as_me: failed program was:" >&5
5352sed 's/^/| /' conftest.$ac_ext >&5
5353
5354  for ac_dir in $ac_x_header_dirs; do
5355  if test -r "$ac_dir/X11/Intrinsic.h"; then
5356    ac_x_includes=$ac_dir
5357    break
5358  fi
5359done
5360fi
5361rm -f conftest.err conftest.$ac_ext
5362fi # $ac_x_includes = no
5363
5364if test "$ac_x_libraries" = no; then
5365  # Check for the libraries.
5366  # See if we find them without any special options.
5367  # Don't add to $LIBS permanently.
5368  ac_save_LIBS=$LIBS
5369  LIBS="-lXt $LIBS"
5370  cat >conftest.$ac_ext <<_ACEOF
5371/* confdefs.h.  */
5372_ACEOF
5373cat confdefs.h >>conftest.$ac_ext
5374cat >>conftest.$ac_ext <<_ACEOF
5375/* end confdefs.h.  */
5376#include <X11/Intrinsic.h>
5377int
5378main ()
5379{
5380XtMalloc (0)
5381  ;
5382  return 0;
5383}
5384_ACEOF
5385rm -f conftest.$ac_objext conftest$ac_exeext
5386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5387  (eval $ac_link) 2>conftest.er1
5388  ac_status=$?
5389  grep -v '^ *+' conftest.er1 >conftest.err
5390  rm -f conftest.er1
5391  cat conftest.err >&5
5392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393  (exit $ac_status); } &&
5394	 { ac_try='test -z "$ac_c_werror_flag"
5395			 || test ! -s conftest.err'
5396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397  (eval $ac_try) 2>&5
5398  ac_status=$?
5399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400  (exit $ac_status); }; } &&
5401	 { ac_try='test -s conftest$ac_exeext'
5402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5403  (eval $ac_try) 2>&5
5404  ac_status=$?
5405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406  (exit $ac_status); }; }; then
5407  LIBS=$ac_save_LIBS
5408# We can link X programs with no special library path.
5409ac_x_libraries=
5410else
5411  echo "$as_me: failed program was:" >&5
5412sed 's/^/| /' conftest.$ac_ext >&5
5413
5414LIBS=$ac_save_LIBS
5415for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5416do
5417  # Don't even attempt the hair of trying to link an X program!
5418  for ac_extension in a so sl; do
5419    if test -r $ac_dir/libXt.$ac_extension; then
5420      ac_x_libraries=$ac_dir
5421      break 2
5422    fi
5423  done
5424done
5425fi
5426rm -f conftest.err conftest.$ac_objext \
5427      conftest$ac_exeext conftest.$ac_ext
5428fi # $ac_x_libraries = no
5429
5430if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5431  # Didn't find X anywhere.  Cache the known absence of X.
5432  ac_cv_have_x="have_x=no"
5433else
5434  # Record where we found X for the cache.
5435  ac_cv_have_x="have_x=yes \
5436		ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5437fi
5438fi
5439
5440  fi
5441  eval "$ac_cv_have_x"
5442fi # $with_x != no
5443
5444if test "$have_x" != yes; then
5445  echo "$as_me:$LINENO: result: $have_x" >&5
5446echo "${ECHO_T}$have_x" >&6
5447  no_x=yes
5448else
5449  # If each of the values was on the command line, it overrides each guess.
5450  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5451  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5452  # Update the cache value to reflect the command line values.
5453  ac_cv_have_x="have_x=yes \
5454		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5455  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5456echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5457fi
5458
5459if test "$no_x" = yes; then
5460  # Not all programs may use this symbol, but it does not hurt to define it.
5461
5462cat >>confdefs.h <<\_ACEOF
5463#define X_DISPLAY_MISSING 1
5464_ACEOF
5465
5466  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5467else
5468  if test -n "$x_includes"; then
5469    X_CFLAGS="$X_CFLAGS -I$x_includes"
5470  fi
5471
5472  # It would also be nice to do this for all -L options, not just this one.
5473  if test -n "$x_libraries"; then
5474    X_LIBS="$X_LIBS -L$x_libraries"
5475    # For Solaris; some versions of Sun CC require a space after -R and
5476    # others require no space.  Words are not sufficient . . . .
5477    case `(uname -sr) 2>/dev/null` in
5478    "SunOS 5"*)
5479      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5480echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5481      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5482      cat >conftest.$ac_ext <<_ACEOF
5483/* confdefs.h.  */
5484_ACEOF
5485cat confdefs.h >>conftest.$ac_ext
5486cat >>conftest.$ac_ext <<_ACEOF
5487/* end confdefs.h.  */
5488
5489int
5490main ()
5491{
5492
5493  ;
5494  return 0;
5495}
5496_ACEOF
5497rm -f conftest.$ac_objext conftest$ac_exeext
5498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5499  (eval $ac_link) 2>conftest.er1
5500  ac_status=$?
5501  grep -v '^ *+' conftest.er1 >conftest.err
5502  rm -f conftest.er1
5503  cat conftest.err >&5
5504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505  (exit $ac_status); } &&
5506	 { ac_try='test -z "$ac_c_werror_flag"
5507			 || test ! -s conftest.err'
5508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5509  (eval $ac_try) 2>&5
5510  ac_status=$?
5511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512  (exit $ac_status); }; } &&
5513	 { ac_try='test -s conftest$ac_exeext'
5514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5515  (eval $ac_try) 2>&5
5516  ac_status=$?
5517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518  (exit $ac_status); }; }; then
5519  ac_R_nospace=yes
5520else
5521  echo "$as_me: failed program was:" >&5
5522sed 's/^/| /' conftest.$ac_ext >&5
5523
5524ac_R_nospace=no
5525fi
5526rm -f conftest.err conftest.$ac_objext \
5527      conftest$ac_exeext conftest.$ac_ext
5528      if test $ac_R_nospace = yes; then
5529	echo "$as_me:$LINENO: result: no" >&5
5530echo "${ECHO_T}no" >&6
5531	X_LIBS="$X_LIBS -R$x_libraries"
5532      else
5533	LIBS="$ac_xsave_LIBS -R $x_libraries"
5534	cat >conftest.$ac_ext <<_ACEOF
5535/* confdefs.h.  */
5536_ACEOF
5537cat confdefs.h >>conftest.$ac_ext
5538cat >>conftest.$ac_ext <<_ACEOF
5539/* end confdefs.h.  */
5540
5541int
5542main ()
5543{
5544
5545  ;
5546  return 0;
5547}
5548_ACEOF
5549rm -f conftest.$ac_objext conftest$ac_exeext
5550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5551  (eval $ac_link) 2>conftest.er1
5552  ac_status=$?
5553  grep -v '^ *+' conftest.er1 >conftest.err
5554  rm -f conftest.er1
5555  cat conftest.err >&5
5556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557  (exit $ac_status); } &&
5558	 { ac_try='test -z "$ac_c_werror_flag"
5559			 || test ! -s conftest.err'
5560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5561  (eval $ac_try) 2>&5
5562  ac_status=$?
5563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564  (exit $ac_status); }; } &&
5565	 { ac_try='test -s conftest$ac_exeext'
5566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5567  (eval $ac_try) 2>&5
5568  ac_status=$?
5569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570  (exit $ac_status); }; }; then
5571  ac_R_space=yes
5572else
5573  echo "$as_me: failed program was:" >&5
5574sed 's/^/| /' conftest.$ac_ext >&5
5575
5576ac_R_space=no
5577fi
5578rm -f conftest.err conftest.$ac_objext \
5579      conftest$ac_exeext conftest.$ac_ext
5580	if test $ac_R_space = yes; then
5581	  echo "$as_me:$LINENO: result: yes" >&5
5582echo "${ECHO_T}yes" >&6
5583	  X_LIBS="$X_LIBS -R $x_libraries"
5584	else
5585	  echo "$as_me:$LINENO: result: neither works" >&5
5586echo "${ECHO_T}neither works" >&6
5587	fi
5588      fi
5589      LIBS=$ac_xsave_LIBS
5590    esac
5591  fi
5592
5593  # Check for system-dependent libraries X programs must link with.
5594  # Do this before checking for the system-independent R6 libraries
5595  # (-lICE), since we may need -lsocket or whatever for X linking.
5596
5597  if test "$ISC" = yes; then
5598    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5599  else
5600    # Martyn Johnson says this is needed for Ultrix, if the X
5601    # libraries were built with DECnet support.  And Karl Berry says
5602    # the Alpha needs dnet_stub (dnet does not exist).
5603    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5604    cat >conftest.$ac_ext <<_ACEOF
5605/* confdefs.h.  */
5606_ACEOF
5607cat confdefs.h >>conftest.$ac_ext
5608cat >>conftest.$ac_ext <<_ACEOF
5609/* end confdefs.h.  */
5610
5611/* Override any gcc2 internal prototype to avoid an error.  */
5612#ifdef __cplusplus
5613extern "C"
5614#endif
5615/* We use char because int might match the return type of a gcc2
5616   builtin and then its argument prototype would still apply.  */
5617char XOpenDisplay ();
5618int
5619main ()
5620{
5621XOpenDisplay ();
5622  ;
5623  return 0;
5624}
5625_ACEOF
5626rm -f conftest.$ac_objext conftest$ac_exeext
5627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5628  (eval $ac_link) 2>conftest.er1
5629  ac_status=$?
5630  grep -v '^ *+' conftest.er1 >conftest.err
5631  rm -f conftest.er1
5632  cat conftest.err >&5
5633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634  (exit $ac_status); } &&
5635	 { ac_try='test -z "$ac_c_werror_flag"
5636			 || test ! -s conftest.err'
5637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5638  (eval $ac_try) 2>&5
5639  ac_status=$?
5640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641  (exit $ac_status); }; } &&
5642	 { ac_try='test -s conftest$ac_exeext'
5643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5644  (eval $ac_try) 2>&5
5645  ac_status=$?
5646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647  (exit $ac_status); }; }; then
5648  :
5649else
5650  echo "$as_me: failed program was:" >&5
5651sed 's/^/| /' conftest.$ac_ext >&5
5652
5653echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5654echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5655if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5656  echo $ECHO_N "(cached) $ECHO_C" >&6
5657else
5658  ac_check_lib_save_LIBS=$LIBS
5659LIBS="-ldnet  $LIBS"
5660cat >conftest.$ac_ext <<_ACEOF
5661/* confdefs.h.  */
5662_ACEOF
5663cat confdefs.h >>conftest.$ac_ext
5664cat >>conftest.$ac_ext <<_ACEOF
5665/* end confdefs.h.  */
5666
5667/* Override any gcc2 internal prototype to avoid an error.  */
5668#ifdef __cplusplus
5669extern "C"
5670#endif
5671/* We use char because int might match the return type of a gcc2
5672   builtin and then its argument prototype would still apply.  */
5673char dnet_ntoa ();
5674int
5675main ()
5676{
5677dnet_ntoa ();
5678  ;
5679  return 0;
5680}
5681_ACEOF
5682rm -f conftest.$ac_objext conftest$ac_exeext
5683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5684  (eval $ac_link) 2>conftest.er1
5685  ac_status=$?
5686  grep -v '^ *+' conftest.er1 >conftest.err
5687  rm -f conftest.er1
5688  cat conftest.err >&5
5689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690  (exit $ac_status); } &&
5691	 { ac_try='test -z "$ac_c_werror_flag"
5692			 || test ! -s conftest.err'
5693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5694  (eval $ac_try) 2>&5
5695  ac_status=$?
5696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697  (exit $ac_status); }; } &&
5698	 { ac_try='test -s conftest$ac_exeext'
5699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5700  (eval $ac_try) 2>&5
5701  ac_status=$?
5702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703  (exit $ac_status); }; }; then
5704  ac_cv_lib_dnet_dnet_ntoa=yes
5705else
5706  echo "$as_me: failed program was:" >&5
5707sed 's/^/| /' conftest.$ac_ext >&5
5708
5709ac_cv_lib_dnet_dnet_ntoa=no
5710fi
5711rm -f conftest.err conftest.$ac_objext \
5712      conftest$ac_exeext conftest.$ac_ext
5713LIBS=$ac_check_lib_save_LIBS
5714fi
5715echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5716echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5717if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5718  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5719fi
5720
5721    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5722      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5723echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5724if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5725  echo $ECHO_N "(cached) $ECHO_C" >&6
5726else
5727  ac_check_lib_save_LIBS=$LIBS
5728LIBS="-ldnet_stub  $LIBS"
5729cat >conftest.$ac_ext <<_ACEOF
5730/* confdefs.h.  */
5731_ACEOF
5732cat confdefs.h >>conftest.$ac_ext
5733cat >>conftest.$ac_ext <<_ACEOF
5734/* end confdefs.h.  */
5735
5736/* Override any gcc2 internal prototype to avoid an error.  */
5737#ifdef __cplusplus
5738extern "C"
5739#endif
5740/* We use char because int might match the return type of a gcc2
5741   builtin and then its argument prototype would still apply.  */
5742char dnet_ntoa ();
5743int
5744main ()
5745{
5746dnet_ntoa ();
5747  ;
5748  return 0;
5749}
5750_ACEOF
5751rm -f conftest.$ac_objext conftest$ac_exeext
5752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5753  (eval $ac_link) 2>conftest.er1
5754  ac_status=$?
5755  grep -v '^ *+' conftest.er1 >conftest.err
5756  rm -f conftest.er1
5757  cat conftest.err >&5
5758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759  (exit $ac_status); } &&
5760	 { ac_try='test -z "$ac_c_werror_flag"
5761			 || test ! -s conftest.err'
5762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763  (eval $ac_try) 2>&5
5764  ac_status=$?
5765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766  (exit $ac_status); }; } &&
5767	 { ac_try='test -s conftest$ac_exeext'
5768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769  (eval $ac_try) 2>&5
5770  ac_status=$?
5771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772  (exit $ac_status); }; }; then
5773  ac_cv_lib_dnet_stub_dnet_ntoa=yes
5774else
5775  echo "$as_me: failed program was:" >&5
5776sed 's/^/| /' conftest.$ac_ext >&5
5777
5778ac_cv_lib_dnet_stub_dnet_ntoa=no
5779fi
5780rm -f conftest.err conftest.$ac_objext \
5781      conftest$ac_exeext conftest.$ac_ext
5782LIBS=$ac_check_lib_save_LIBS
5783fi
5784echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5785echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5786if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5787  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5788fi
5789
5790    fi
5791fi
5792rm -f conftest.err conftest.$ac_objext \
5793      conftest$ac_exeext conftest.$ac_ext
5794    LIBS="$ac_xsave_LIBS"
5795
5796    # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
5797    # to get the SysV transport functions.
5798    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5799    # needs -lnsl.
5800    # The nsl library prevents programs from opening the X display
5801    # on Irix 5.2, according to T.E. Dickey.
5802    # The functions gethostbyname, getservbyname, and inet_addr are
5803    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5804    echo "$as_me:$LINENO: checking for gethostbyname" >&5
5805echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5806if test "${ac_cv_func_gethostbyname+set}" = set; then
5807  echo $ECHO_N "(cached) $ECHO_C" >&6
5808else
5809  cat >conftest.$ac_ext <<_ACEOF
5810/* confdefs.h.  */
5811_ACEOF
5812cat confdefs.h >>conftest.$ac_ext
5813cat >>conftest.$ac_ext <<_ACEOF
5814/* end confdefs.h.  */
5815/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5816   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5817#define gethostbyname innocuous_gethostbyname
5818
5819/* System header to define __stub macros and hopefully few prototypes,
5820    which can conflict with char gethostbyname (); below.
5821    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5822    <limits.h> exists even on freestanding compilers.  */
5823
5824#ifdef __STDC__
5825# include <limits.h>
5826#else
5827# include <assert.h>
5828#endif
5829
5830#undef gethostbyname
5831
5832/* Override any gcc2 internal prototype to avoid an error.  */
5833#ifdef __cplusplus
5834extern "C"
5835{
5836#endif
5837/* We use char because int might match the return type of a gcc2
5838   builtin and then its argument prototype would still apply.  */
5839char gethostbyname ();
5840/* The GNU C library defines this for functions which it implements
5841    to always fail with ENOSYS.  Some functions are actually named
5842    something starting with __ and the normal name is an alias.  */
5843#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5844choke me
5845#else
5846char (*f) () = gethostbyname;
5847#endif
5848#ifdef __cplusplus
5849}
5850#endif
5851
5852int
5853main ()
5854{
5855return f != gethostbyname;
5856  ;
5857  return 0;
5858}
5859_ACEOF
5860rm -f conftest.$ac_objext conftest$ac_exeext
5861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5862  (eval $ac_link) 2>conftest.er1
5863  ac_status=$?
5864  grep -v '^ *+' conftest.er1 >conftest.err
5865  rm -f conftest.er1
5866  cat conftest.err >&5
5867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868  (exit $ac_status); } &&
5869	 { ac_try='test -z "$ac_c_werror_flag"
5870			 || test ! -s conftest.err'
5871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872  (eval $ac_try) 2>&5
5873  ac_status=$?
5874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875  (exit $ac_status); }; } &&
5876	 { ac_try='test -s conftest$ac_exeext'
5877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878  (eval $ac_try) 2>&5
5879  ac_status=$?
5880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881  (exit $ac_status); }; }; then
5882  ac_cv_func_gethostbyname=yes
5883else
5884  echo "$as_me: failed program was:" >&5
5885sed 's/^/| /' conftest.$ac_ext >&5
5886
5887ac_cv_func_gethostbyname=no
5888fi
5889rm -f conftest.err conftest.$ac_objext \
5890      conftest$ac_exeext conftest.$ac_ext
5891fi
5892echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5893echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5894
5895    if test $ac_cv_func_gethostbyname = no; then
5896      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5897echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5898if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5899  echo $ECHO_N "(cached) $ECHO_C" >&6
5900else
5901  ac_check_lib_save_LIBS=$LIBS
5902LIBS="-lnsl  $LIBS"
5903cat >conftest.$ac_ext <<_ACEOF
5904/* confdefs.h.  */
5905_ACEOF
5906cat confdefs.h >>conftest.$ac_ext
5907cat >>conftest.$ac_ext <<_ACEOF
5908/* end confdefs.h.  */
5909
5910/* Override any gcc2 internal prototype to avoid an error.  */
5911#ifdef __cplusplus
5912extern "C"
5913#endif
5914/* We use char because int might match the return type of a gcc2
5915   builtin and then its argument prototype would still apply.  */
5916char gethostbyname ();
5917int
5918main ()
5919{
5920gethostbyname ();
5921  ;
5922  return 0;
5923}
5924_ACEOF
5925rm -f conftest.$ac_objext conftest$ac_exeext
5926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5927  (eval $ac_link) 2>conftest.er1
5928  ac_status=$?
5929  grep -v '^ *+' conftest.er1 >conftest.err
5930  rm -f conftest.er1
5931  cat conftest.err >&5
5932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933  (exit $ac_status); } &&
5934	 { ac_try='test -z "$ac_c_werror_flag"
5935			 || test ! -s conftest.err'
5936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937  (eval $ac_try) 2>&5
5938  ac_status=$?
5939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940  (exit $ac_status); }; } &&
5941	 { ac_try='test -s conftest$ac_exeext'
5942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943  (eval $ac_try) 2>&5
5944  ac_status=$?
5945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946  (exit $ac_status); }; }; then
5947  ac_cv_lib_nsl_gethostbyname=yes
5948else
5949  echo "$as_me: failed program was:" >&5
5950sed 's/^/| /' conftest.$ac_ext >&5
5951
5952ac_cv_lib_nsl_gethostbyname=no
5953fi
5954rm -f conftest.err conftest.$ac_objext \
5955      conftest$ac_exeext conftest.$ac_ext
5956LIBS=$ac_check_lib_save_LIBS
5957fi
5958echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5959echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5960if test $ac_cv_lib_nsl_gethostbyname = yes; then
5961  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5962fi
5963
5964      if test $ac_cv_lib_nsl_gethostbyname = no; then
5965	echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5966echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5967if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5968  echo $ECHO_N "(cached) $ECHO_C" >&6
5969else
5970  ac_check_lib_save_LIBS=$LIBS
5971LIBS="-lbsd  $LIBS"
5972cat >conftest.$ac_ext <<_ACEOF
5973/* confdefs.h.  */
5974_ACEOF
5975cat confdefs.h >>conftest.$ac_ext
5976cat >>conftest.$ac_ext <<_ACEOF
5977/* end confdefs.h.  */
5978
5979/* Override any gcc2 internal prototype to avoid an error.  */
5980#ifdef __cplusplus
5981extern "C"
5982#endif
5983/* We use char because int might match the return type of a gcc2
5984   builtin and then its argument prototype would still apply.  */
5985char gethostbyname ();
5986int
5987main ()
5988{
5989gethostbyname ();
5990  ;
5991  return 0;
5992}
5993_ACEOF
5994rm -f conftest.$ac_objext conftest$ac_exeext
5995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5996  (eval $ac_link) 2>conftest.er1
5997  ac_status=$?
5998  grep -v '^ *+' conftest.er1 >conftest.err
5999  rm -f conftest.er1
6000  cat conftest.err >&5
6001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002  (exit $ac_status); } &&
6003	 { ac_try='test -z "$ac_c_werror_flag"
6004			 || test ! -s conftest.err'
6005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006  (eval $ac_try) 2>&5
6007  ac_status=$?
6008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009  (exit $ac_status); }; } &&
6010	 { ac_try='test -s conftest$ac_exeext'
6011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012  (eval $ac_try) 2>&5
6013  ac_status=$?
6014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015  (exit $ac_status); }; }; then
6016  ac_cv_lib_bsd_gethostbyname=yes
6017else
6018  echo "$as_me: failed program was:" >&5
6019sed 's/^/| /' conftest.$ac_ext >&5
6020
6021ac_cv_lib_bsd_gethostbyname=no
6022fi
6023rm -f conftest.err conftest.$ac_objext \
6024      conftest$ac_exeext conftest.$ac_ext
6025LIBS=$ac_check_lib_save_LIBS
6026fi
6027echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6028echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6029if test $ac_cv_lib_bsd_gethostbyname = yes; then
6030  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6031fi
6032
6033      fi
6034    fi
6035
6036    # [email protected] says without -lsocket,
6037    # socket/setsockopt and other routines are undefined under SCO ODT
6038    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
6039    # on later versions), says Simon Leinen: it contains gethostby*
6040    # variants that don't use the name server (or something).  -lsocket
6041    # must be given before -lnsl if both are needed.  We assume that
6042    # if connect needs -lnsl, so does gethostbyname.
6043    echo "$as_me:$LINENO: checking for connect" >&5
6044echo $ECHO_N "checking for connect... $ECHO_C" >&6
6045if test "${ac_cv_func_connect+set}" = set; then
6046  echo $ECHO_N "(cached) $ECHO_C" >&6
6047else
6048  cat >conftest.$ac_ext <<_ACEOF
6049/* confdefs.h.  */
6050_ACEOF
6051cat confdefs.h >>conftest.$ac_ext
6052cat >>conftest.$ac_ext <<_ACEOF
6053/* end confdefs.h.  */
6054/* Define connect to an innocuous variant, in case <limits.h> declares connect.
6055   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6056#define connect innocuous_connect
6057
6058/* System header to define __stub macros and hopefully few prototypes,
6059    which can conflict with char connect (); below.
6060    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6061    <limits.h> exists even on freestanding compilers.  */
6062
6063#ifdef __STDC__
6064# include <limits.h>
6065#else
6066# include <assert.h>
6067#endif
6068
6069#undef connect
6070
6071/* Override any gcc2 internal prototype to avoid an error.  */
6072#ifdef __cplusplus
6073extern "C"
6074{
6075#endif
6076/* We use char because int might match the return type of a gcc2
6077   builtin and then its argument prototype would still apply.  */
6078char connect ();
6079/* The GNU C library defines this for functions which it implements
6080    to always fail with ENOSYS.  Some functions are actually named
6081    something starting with __ and the normal name is an alias.  */
6082#if defined (__stub_connect) || defined (__stub___connect)
6083choke me
6084#else
6085char (*f) () = connect;
6086#endif
6087#ifdef __cplusplus
6088}
6089#endif
6090
6091int
6092main ()
6093{
6094return f != connect;
6095  ;
6096  return 0;
6097}
6098_ACEOF
6099rm -f conftest.$ac_objext conftest$ac_exeext
6100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6101  (eval $ac_link) 2>conftest.er1
6102  ac_status=$?
6103  grep -v '^ *+' conftest.er1 >conftest.err
6104  rm -f conftest.er1
6105  cat conftest.err >&5
6106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107  (exit $ac_status); } &&
6108	 { ac_try='test -z "$ac_c_werror_flag"
6109			 || test ! -s conftest.err'
6110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6111  (eval $ac_try) 2>&5
6112  ac_status=$?
6113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114  (exit $ac_status); }; } &&
6115	 { ac_try='test -s conftest$ac_exeext'
6116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117  (eval $ac_try) 2>&5
6118  ac_status=$?
6119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120  (exit $ac_status); }; }; then
6121  ac_cv_func_connect=yes
6122else
6123  echo "$as_me: failed program was:" >&5
6124sed 's/^/| /' conftest.$ac_ext >&5
6125
6126ac_cv_func_connect=no
6127fi
6128rm -f conftest.err conftest.$ac_objext \
6129      conftest$ac_exeext conftest.$ac_ext
6130fi
6131echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6132echo "${ECHO_T}$ac_cv_func_connect" >&6
6133
6134    if test $ac_cv_func_connect = no; then
6135      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6136echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6137if test "${ac_cv_lib_socket_connect+set}" = set; then
6138  echo $ECHO_N "(cached) $ECHO_C" >&6
6139else
6140  ac_check_lib_save_LIBS=$LIBS
6141LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6142cat >conftest.$ac_ext <<_ACEOF
6143/* confdefs.h.  */
6144_ACEOF
6145cat confdefs.h >>conftest.$ac_ext
6146cat >>conftest.$ac_ext <<_ACEOF
6147/* end confdefs.h.  */
6148
6149/* Override any gcc2 internal prototype to avoid an error.  */
6150#ifdef __cplusplus
6151extern "C"
6152#endif
6153/* We use char because int might match the return type of a gcc2
6154   builtin and then its argument prototype would still apply.  */
6155char connect ();
6156int
6157main ()
6158{
6159connect ();
6160  ;
6161  return 0;
6162}
6163_ACEOF
6164rm -f conftest.$ac_objext conftest$ac_exeext
6165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6166  (eval $ac_link) 2>conftest.er1
6167  ac_status=$?
6168  grep -v '^ *+' conftest.er1 >conftest.err
6169  rm -f conftest.er1
6170  cat conftest.err >&5
6171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172  (exit $ac_status); } &&
6173	 { ac_try='test -z "$ac_c_werror_flag"
6174			 || test ! -s conftest.err'
6175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6176  (eval $ac_try) 2>&5
6177  ac_status=$?
6178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179  (exit $ac_status); }; } &&
6180	 { ac_try='test -s conftest$ac_exeext'
6181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182  (eval $ac_try) 2>&5
6183  ac_status=$?
6184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185  (exit $ac_status); }; }; then
6186  ac_cv_lib_socket_connect=yes
6187else
6188  echo "$as_me: failed program was:" >&5
6189sed 's/^/| /' conftest.$ac_ext >&5
6190
6191ac_cv_lib_socket_connect=no
6192fi
6193rm -f conftest.err conftest.$ac_objext \
6194      conftest$ac_exeext conftest.$ac_ext
6195LIBS=$ac_check_lib_save_LIBS
6196fi
6197echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6198echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6199if test $ac_cv_lib_socket_connect = yes; then
6200  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6201fi
6202
6203    fi
6204
6205    # Guillermo Gomez says -lposix is necessary on A/UX.
6206    echo "$as_me:$LINENO: checking for remove" >&5
6207echo $ECHO_N "checking for remove... $ECHO_C" >&6
6208if test "${ac_cv_func_remove+set}" = set; then
6209  echo $ECHO_N "(cached) $ECHO_C" >&6
6210else
6211  cat >conftest.$ac_ext <<_ACEOF
6212/* confdefs.h.  */
6213_ACEOF
6214cat confdefs.h >>conftest.$ac_ext
6215cat >>conftest.$ac_ext <<_ACEOF
6216/* end confdefs.h.  */
6217/* Define remove to an innocuous variant, in case <limits.h> declares remove.
6218   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6219#define remove innocuous_remove
6220
6221/* System header to define __stub macros and hopefully few prototypes,
6222    which can conflict with char remove (); below.
6223    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6224    <limits.h> exists even on freestanding compilers.  */
6225
6226#ifdef __STDC__
6227# include <limits.h>
6228#else
6229# include <assert.h>
6230#endif
6231
6232#undef remove
6233
6234/* Override any gcc2 internal prototype to avoid an error.  */
6235#ifdef __cplusplus
6236extern "C"
6237{
6238#endif
6239/* We use char because int might match the return type of a gcc2
6240   builtin and then its argument prototype would still apply.  */
6241char remove ();
6242/* The GNU C library defines this for functions which it implements
6243    to always fail with ENOSYS.  Some functions are actually named
6244    something starting with __ and the normal name is an alias.  */
6245#if defined (__stub_remove) || defined (__stub___remove)
6246choke me
6247#else
6248char (*f) () = remove;
6249#endif
6250#ifdef __cplusplus
6251}
6252#endif
6253
6254int
6255main ()
6256{
6257return f != remove;
6258  ;
6259  return 0;
6260}
6261_ACEOF
6262rm -f conftest.$ac_objext conftest$ac_exeext
6263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6264  (eval $ac_link) 2>conftest.er1
6265  ac_status=$?
6266  grep -v '^ *+' conftest.er1 >conftest.err
6267  rm -f conftest.er1
6268  cat conftest.err >&5
6269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270  (exit $ac_status); } &&
6271	 { ac_try='test -z "$ac_c_werror_flag"
6272			 || test ! -s conftest.err'
6273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6274  (eval $ac_try) 2>&5
6275  ac_status=$?
6276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277  (exit $ac_status); }; } &&
6278	 { ac_try='test -s conftest$ac_exeext'
6279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6280  (eval $ac_try) 2>&5
6281  ac_status=$?
6282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283  (exit $ac_status); }; }; then
6284  ac_cv_func_remove=yes
6285else
6286  echo "$as_me: failed program was:" >&5
6287sed 's/^/| /' conftest.$ac_ext >&5
6288
6289ac_cv_func_remove=no
6290fi
6291rm -f conftest.err conftest.$ac_objext \
6292      conftest$ac_exeext conftest.$ac_ext
6293fi
6294echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6295echo "${ECHO_T}$ac_cv_func_remove" >&6
6296
6297    if test $ac_cv_func_remove = no; then
6298      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6299echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6300if test "${ac_cv_lib_posix_remove+set}" = set; then
6301  echo $ECHO_N "(cached) $ECHO_C" >&6
6302else
6303  ac_check_lib_save_LIBS=$LIBS
6304LIBS="-lposix  $LIBS"
6305cat >conftest.$ac_ext <<_ACEOF
6306/* confdefs.h.  */
6307_ACEOF
6308cat confdefs.h >>conftest.$ac_ext
6309cat >>conftest.$ac_ext <<_ACEOF
6310/* end confdefs.h.  */
6311
6312/* Override any gcc2 internal prototype to avoid an error.  */
6313#ifdef __cplusplus
6314extern "C"
6315#endif
6316/* We use char because int might match the return type of a gcc2
6317   builtin and then its argument prototype would still apply.  */
6318char remove ();
6319int
6320main ()
6321{
6322remove ();
6323  ;
6324  return 0;
6325}
6326_ACEOF
6327rm -f conftest.$ac_objext conftest$ac_exeext
6328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6329  (eval $ac_link) 2>conftest.er1
6330  ac_status=$?
6331  grep -v '^ *+' conftest.er1 >conftest.err
6332  rm -f conftest.er1
6333  cat conftest.err >&5
6334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335  (exit $ac_status); } &&
6336	 { ac_try='test -z "$ac_c_werror_flag"
6337			 || test ! -s conftest.err'
6338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6339  (eval $ac_try) 2>&5
6340  ac_status=$?
6341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342  (exit $ac_status); }; } &&
6343	 { ac_try='test -s conftest$ac_exeext'
6344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6345  (eval $ac_try) 2>&5
6346  ac_status=$?
6347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348  (exit $ac_status); }; }; then
6349  ac_cv_lib_posix_remove=yes
6350else
6351  echo "$as_me: failed program was:" >&5
6352sed 's/^/| /' conftest.$ac_ext >&5
6353
6354ac_cv_lib_posix_remove=no
6355fi
6356rm -f conftest.err conftest.$ac_objext \
6357      conftest$ac_exeext conftest.$ac_ext
6358LIBS=$ac_check_lib_save_LIBS
6359fi
6360echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6361echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6362if test $ac_cv_lib_posix_remove = yes; then
6363  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6364fi
6365
6366    fi
6367
6368    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6369    echo "$as_me:$LINENO: checking for shmat" >&5
6370echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6371if test "${ac_cv_func_shmat+set}" = set; then
6372  echo $ECHO_N "(cached) $ECHO_C" >&6
6373else
6374  cat >conftest.$ac_ext <<_ACEOF
6375/* confdefs.h.  */
6376_ACEOF
6377cat confdefs.h >>conftest.$ac_ext
6378cat >>conftest.$ac_ext <<_ACEOF
6379/* end confdefs.h.  */
6380/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6381   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6382#define shmat innocuous_shmat
6383
6384/* System header to define __stub macros and hopefully few prototypes,
6385    which can conflict with char shmat (); below.
6386    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6387    <limits.h> exists even on freestanding compilers.  */
6388
6389#ifdef __STDC__
6390# include <limits.h>
6391#else
6392# include <assert.h>
6393#endif
6394
6395#undef shmat
6396
6397/* Override any gcc2 internal prototype to avoid an error.  */
6398#ifdef __cplusplus
6399extern "C"
6400{
6401#endif
6402/* We use char because int might match the return type of a gcc2
6403   builtin and then its argument prototype would still apply.  */
6404char shmat ();
6405/* The GNU C library defines this for functions which it implements
6406    to always fail with ENOSYS.  Some functions are actually named
6407    something starting with __ and the normal name is an alias.  */
6408#if defined (__stub_shmat) || defined (__stub___shmat)
6409choke me
6410#else
6411char (*f) () = shmat;
6412#endif
6413#ifdef __cplusplus
6414}
6415#endif
6416
6417int
6418main ()
6419{
6420return f != shmat;
6421  ;
6422  return 0;
6423}
6424_ACEOF
6425rm -f conftest.$ac_objext conftest$ac_exeext
6426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6427  (eval $ac_link) 2>conftest.er1
6428  ac_status=$?
6429  grep -v '^ *+' conftest.er1 >conftest.err
6430  rm -f conftest.er1
6431  cat conftest.err >&5
6432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433  (exit $ac_status); } &&
6434	 { ac_try='test -z "$ac_c_werror_flag"
6435			 || test ! -s conftest.err'
6436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437  (eval $ac_try) 2>&5
6438  ac_status=$?
6439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440  (exit $ac_status); }; } &&
6441	 { ac_try='test -s conftest$ac_exeext'
6442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443  (eval $ac_try) 2>&5
6444  ac_status=$?
6445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446  (exit $ac_status); }; }; then
6447  ac_cv_func_shmat=yes
6448else
6449  echo "$as_me: failed program was:" >&5
6450sed 's/^/| /' conftest.$ac_ext >&5
6451
6452ac_cv_func_shmat=no
6453fi
6454rm -f conftest.err conftest.$ac_objext \
6455      conftest$ac_exeext conftest.$ac_ext
6456fi
6457echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6458echo "${ECHO_T}$ac_cv_func_shmat" >&6
6459
6460    if test $ac_cv_func_shmat = no; then
6461      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6462echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6463if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6464  echo $ECHO_N "(cached) $ECHO_C" >&6
6465else
6466  ac_check_lib_save_LIBS=$LIBS
6467LIBS="-lipc  $LIBS"
6468cat >conftest.$ac_ext <<_ACEOF
6469/* confdefs.h.  */
6470_ACEOF
6471cat confdefs.h >>conftest.$ac_ext
6472cat >>conftest.$ac_ext <<_ACEOF
6473/* end confdefs.h.  */
6474
6475/* Override any gcc2 internal prototype to avoid an error.  */
6476#ifdef __cplusplus
6477extern "C"
6478#endif
6479/* We use char because int might match the return type of a gcc2
6480   builtin and then its argument prototype would still apply.  */
6481char shmat ();
6482int
6483main ()
6484{
6485shmat ();
6486  ;
6487  return 0;
6488}
6489_ACEOF
6490rm -f conftest.$ac_objext conftest$ac_exeext
6491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6492  (eval $ac_link) 2>conftest.er1
6493  ac_status=$?
6494  grep -v '^ *+' conftest.er1 >conftest.err
6495  rm -f conftest.er1
6496  cat conftest.err >&5
6497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498  (exit $ac_status); } &&
6499	 { ac_try='test -z "$ac_c_werror_flag"
6500			 || test ! -s conftest.err'
6501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502  (eval $ac_try) 2>&5
6503  ac_status=$?
6504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505  (exit $ac_status); }; } &&
6506	 { ac_try='test -s conftest$ac_exeext'
6507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508  (eval $ac_try) 2>&5
6509  ac_status=$?
6510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511  (exit $ac_status); }; }; then
6512  ac_cv_lib_ipc_shmat=yes
6513else
6514  echo "$as_me: failed program was:" >&5
6515sed 's/^/| /' conftest.$ac_ext >&5
6516
6517ac_cv_lib_ipc_shmat=no
6518fi
6519rm -f conftest.err conftest.$ac_objext \
6520      conftest$ac_exeext conftest.$ac_ext
6521LIBS=$ac_check_lib_save_LIBS
6522fi
6523echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6524echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6525if test $ac_cv_lib_ipc_shmat = yes; then
6526  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6527fi
6528
6529    fi
6530  fi
6531
6532  # Check for libraries that X11R6 Xt/Xaw programs need.
6533  ac_save_LDFLAGS=$LDFLAGS
6534  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6535  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6536  # check for ICE first), but we must link in the order -lSM -lICE or
6537  # we get undefined symbols.  So assume we have SM if we have ICE.
6538  # These have to be linked with before -lX11, unlike the other
6539  # libraries we check for below, so use a different variable.
6540  # John Interrante, Karl Berry
6541  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6542echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6543if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6544  echo $ECHO_N "(cached) $ECHO_C" >&6
6545else
6546  ac_check_lib_save_LIBS=$LIBS
6547LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6548cat >conftest.$ac_ext <<_ACEOF
6549/* confdefs.h.  */
6550_ACEOF
6551cat confdefs.h >>conftest.$ac_ext
6552cat >>conftest.$ac_ext <<_ACEOF
6553/* end confdefs.h.  */
6554
6555/* Override any gcc2 internal prototype to avoid an error.  */
6556#ifdef __cplusplus
6557extern "C"
6558#endif
6559/* We use char because int might match the return type of a gcc2
6560   builtin and then its argument prototype would still apply.  */
6561char IceConnectionNumber ();
6562int
6563main ()
6564{
6565IceConnectionNumber ();
6566  ;
6567  return 0;
6568}
6569_ACEOF
6570rm -f conftest.$ac_objext conftest$ac_exeext
6571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6572  (eval $ac_link) 2>conftest.er1
6573  ac_status=$?
6574  grep -v '^ *+' conftest.er1 >conftest.err
6575  rm -f conftest.er1
6576  cat conftest.err >&5
6577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578  (exit $ac_status); } &&
6579	 { ac_try='test -z "$ac_c_werror_flag"
6580			 || test ! -s conftest.err'
6581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6582  (eval $ac_try) 2>&5
6583  ac_status=$?
6584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585  (exit $ac_status); }; } &&
6586	 { ac_try='test -s conftest$ac_exeext'
6587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588  (eval $ac_try) 2>&5
6589  ac_status=$?
6590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591  (exit $ac_status); }; }; then
6592  ac_cv_lib_ICE_IceConnectionNumber=yes
6593else
6594  echo "$as_me: failed program was:" >&5
6595sed 's/^/| /' conftest.$ac_ext >&5
6596
6597ac_cv_lib_ICE_IceConnectionNumber=no
6598fi
6599rm -f conftest.err conftest.$ac_objext \
6600      conftest$ac_exeext conftest.$ac_ext
6601LIBS=$ac_check_lib_save_LIBS
6602fi
6603echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6604echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6605if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6606  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6607fi
6608
6609  LDFLAGS=$ac_save_LDFLAGS
6610
6611fi
6612
6613
6614        if test "$OS390Unix" = "yes"; then
6615    CFLAGS="$CFLAGS -W c,dll"
6616    LDFLAGS="$LDFLAGS -W l,dll"
6617    X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
6618  fi
6619
6620
6621  if test -d "$x_includes" && test ! -d "$x_libraries"; then
6622    x_libraries=`echo "$x_includes" | sed s/include/lib/`
6623    echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
6624echo "${ECHO_T}Corrected X libraries to $x_libraries" >&6
6625    X_LIBS="$X_LIBS -L$x_libraries"
6626    if test "`(uname) 2>/dev/null`" = SunOS &&
6627					 uname -r | grep '^5' >/dev/null; then
6628      X_LIBS="$X_LIBS -R $x_libraries"
6629    fi
6630  fi
6631
6632  if test -d "$x_libraries" && test ! -d "$x_includes"; then
6633    x_includes=`echo "$x_libraries" | sed s/lib/include/`
6634    echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
6635echo "${ECHO_T}Corrected X includes to $x_includes" >&6
6636    X_CFLAGS="$X_CFLAGS -I$x_includes"
6637  fi
6638
6639    X_CFLAGS="`echo $X_CFLAGS\  | sed 's%-I/usr/include %%'`"
6640    X_LIBS="`echo $X_LIBS\  | sed 's%-L/usr/lib %%'`"
6641    X_LIBS="`echo $X_LIBS\  | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
6642
6643
6644      echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
6645echo $ECHO_N "checking if X11 header files can be found... $ECHO_C" >&6
6646  cflags_save=$CFLAGS
6647  CFLAGS="$CFLAGS $X_CFLAGS"
6648  cat >conftest.$ac_ext <<_ACEOF
6649/* confdefs.h.  */
6650_ACEOF
6651cat confdefs.h >>conftest.$ac_ext
6652cat >>conftest.$ac_ext <<_ACEOF
6653/* end confdefs.h.  */
6654#include <X11/Xlib.h>
6655int
6656main ()
6657{
6658
6659  ;
6660  return 0;
6661}
6662_ACEOF
6663rm -f conftest.$ac_objext
6664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6665  (eval $ac_compile) 2>conftest.er1
6666  ac_status=$?
6667  grep -v '^ *+' conftest.er1 >conftest.err
6668  rm -f conftest.er1
6669  cat conftest.err >&5
6670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671  (exit $ac_status); } &&
6672	 { ac_try='test -z "$ac_c_werror_flag"
6673			 || test ! -s conftest.err'
6674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6675  (eval $ac_try) 2>&5
6676  ac_status=$?
6677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678  (exit $ac_status); }; } &&
6679	 { ac_try='test -s conftest.$ac_objext'
6680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681  (eval $ac_try) 2>&5
6682  ac_status=$?
6683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684  (exit $ac_status); }; }; then
6685  echo "$as_me:$LINENO: result: yes" >&5
6686echo "${ECHO_T}yes" >&6
6687else
6688  echo "$as_me: failed program was:" >&5
6689sed 's/^/| /' conftest.$ac_ext >&5
6690
6691echo "$as_me:$LINENO: result: no" >&5
6692echo "${ECHO_T}no" >&6; no_x=yes
6693fi
6694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6695  CFLAGS=$cflags_save
6696
6697  if test "${no_x-no}" = yes; then
6698    with_x=no
6699  else
6700    cat >>confdefs.h <<\_ACEOF
6701#define HAVE_X11 1
6702_ACEOF
6703
6704    X_LIB="-lXt -lX11";
6705
6706
6707    ac_save_LDFLAGS="$LDFLAGS"
6708    LDFLAGS="-L$x_libraries $LDFLAGS"
6709
6710            echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
6711echo $ECHO_N "checking for _XdmcpAuthDoIt in -lXdmcp... $ECHO_C" >&6
6712if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
6713  echo $ECHO_N "(cached) $ECHO_C" >&6
6714else
6715  ac_check_lib_save_LIBS=$LIBS
6716LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
6717cat >conftest.$ac_ext <<_ACEOF
6718/* confdefs.h.  */
6719_ACEOF
6720cat confdefs.h >>conftest.$ac_ext
6721cat >>conftest.$ac_ext <<_ACEOF
6722/* end confdefs.h.  */
6723
6724/* Override any gcc2 internal prototype to avoid an error.  */
6725#ifdef __cplusplus
6726extern "C"
6727#endif
6728/* We use char because int might match the return type of a gcc2
6729   builtin and then its argument prototype would still apply.  */
6730char _XdmcpAuthDoIt ();
6731int
6732main ()
6733{
6734_XdmcpAuthDoIt ();
6735  ;
6736  return 0;
6737}
6738_ACEOF
6739rm -f conftest.$ac_objext conftest$ac_exeext
6740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6741  (eval $ac_link) 2>conftest.er1
6742  ac_status=$?
6743  grep -v '^ *+' conftest.er1 >conftest.err
6744  rm -f conftest.er1
6745  cat conftest.err >&5
6746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747  (exit $ac_status); } &&
6748	 { ac_try='test -z "$ac_c_werror_flag"
6749			 || test ! -s conftest.err'
6750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751  (eval $ac_try) 2>&5
6752  ac_status=$?
6753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754  (exit $ac_status); }; } &&
6755	 { ac_try='test -s conftest$ac_exeext'
6756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757  (eval $ac_try) 2>&5
6758  ac_status=$?
6759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760  (exit $ac_status); }; }; then
6761  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
6762else
6763  echo "$as_me: failed program was:" >&5
6764sed 's/^/| /' conftest.$ac_ext >&5
6765
6766ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
6767fi
6768rm -f conftest.err conftest.$ac_objext \
6769      conftest$ac_exeext conftest.$ac_ext
6770LIBS=$ac_check_lib_save_LIBS
6771fi
6772echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
6773echo "${ECHO_T}$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6
6774if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
6775  X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
6776fi
6777
6778
6779                    echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
6780echo $ECHO_N "checking for IceOpenConnection in -lICE... $ECHO_C" >&6
6781if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
6782  echo $ECHO_N "(cached) $ECHO_C" >&6
6783else
6784  ac_check_lib_save_LIBS=$LIBS
6785LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6786cat >conftest.$ac_ext <<_ACEOF
6787/* confdefs.h.  */
6788_ACEOF
6789cat confdefs.h >>conftest.$ac_ext
6790cat >>conftest.$ac_ext <<_ACEOF
6791/* end confdefs.h.  */
6792
6793/* Override any gcc2 internal prototype to avoid an error.  */
6794#ifdef __cplusplus
6795extern "C"
6796#endif
6797/* We use char because int might match the return type of a gcc2
6798   builtin and then its argument prototype would still apply.  */
6799char IceOpenConnection ();
6800int
6801main ()
6802{
6803IceOpenConnection ();
6804  ;
6805  return 0;
6806}
6807_ACEOF
6808rm -f conftest.$ac_objext conftest$ac_exeext
6809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6810  (eval $ac_link) 2>conftest.er1
6811  ac_status=$?
6812  grep -v '^ *+' conftest.er1 >conftest.err
6813  rm -f conftest.er1
6814  cat conftest.err >&5
6815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816  (exit $ac_status); } &&
6817	 { ac_try='test -z "$ac_c_werror_flag"
6818			 || test ! -s conftest.err'
6819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820  (eval $ac_try) 2>&5
6821  ac_status=$?
6822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823  (exit $ac_status); }; } &&
6824	 { ac_try='test -s conftest$ac_exeext'
6825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826  (eval $ac_try) 2>&5
6827  ac_status=$?
6828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829  (exit $ac_status); }; }; then
6830  ac_cv_lib_ICE_IceOpenConnection=yes
6831else
6832  echo "$as_me: failed program was:" >&5
6833sed 's/^/| /' conftest.$ac_ext >&5
6834
6835ac_cv_lib_ICE_IceOpenConnection=no
6836fi
6837rm -f conftest.err conftest.$ac_objext \
6838      conftest$ac_exeext conftest.$ac_ext
6839LIBS=$ac_check_lib_save_LIBS
6840fi
6841echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
6842echo "${ECHO_T}$ac_cv_lib_ICE_IceOpenConnection" >&6
6843if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
6844  X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
6845fi
6846
6847
6848        LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
6849    echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
6850echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
6851if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
6852  echo $ECHO_N "(cached) $ECHO_C" >&6
6853else
6854  ac_check_lib_save_LIBS=$LIBS
6855LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
6856cat >conftest.$ac_ext <<_ACEOF
6857/* confdefs.h.  */
6858_ACEOF
6859cat confdefs.h >>conftest.$ac_ext
6860cat >>conftest.$ac_ext <<_ACEOF
6861/* end confdefs.h.  */
6862
6863/* Override any gcc2 internal prototype to avoid an error.  */
6864#ifdef __cplusplus
6865extern "C"
6866#endif
6867/* We use char because int might match the return type of a gcc2
6868   builtin and then its argument prototype would still apply.  */
6869char XpmCreatePixmapFromData ();
6870int
6871main ()
6872{
6873XpmCreatePixmapFromData ();
6874  ;
6875  return 0;
6876}
6877_ACEOF
6878rm -f conftest.$ac_objext conftest$ac_exeext
6879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6880  (eval $ac_link) 2>conftest.er1
6881  ac_status=$?
6882  grep -v '^ *+' conftest.er1 >conftest.err
6883  rm -f conftest.er1
6884  cat conftest.err >&5
6885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886  (exit $ac_status); } &&
6887	 { ac_try='test -z "$ac_c_werror_flag"
6888			 || test ! -s conftest.err'
6889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890  (eval $ac_try) 2>&5
6891  ac_status=$?
6892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893  (exit $ac_status); }; } &&
6894	 { ac_try='test -s conftest$ac_exeext'
6895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896  (eval $ac_try) 2>&5
6897  ac_status=$?
6898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899  (exit $ac_status); }; }; then
6900  ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
6901else
6902  echo "$as_me: failed program was:" >&5
6903sed 's/^/| /' conftest.$ac_ext >&5
6904
6905ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
6906fi
6907rm -f conftest.err conftest.$ac_objext \
6908      conftest$ac_exeext conftest.$ac_ext
6909LIBS=$ac_check_lib_save_LIBS
6910fi
6911echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
6912echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
6913if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
6914  X_PRE_LIBS="$X_PRE_LIBS -lXpm"
6915fi
6916
6917
6918        echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
6919echo $ECHO_N "checking if X11 header files implicitly declare return values... $ECHO_C" >&6
6920    cflags_save=$CFLAGS
6921    CFLAGS="$CFLAGS $X_CFLAGS -Werror"
6922    cat >conftest.$ac_ext <<_ACEOF
6923/* confdefs.h.  */
6924_ACEOF
6925cat confdefs.h >>conftest.$ac_ext
6926cat >>conftest.$ac_ext <<_ACEOF
6927/* end confdefs.h.  */
6928#include <X11/Xlib.h>
6929int
6930main ()
6931{
6932
6933  ;
6934  return 0;
6935}
6936_ACEOF
6937rm -f conftest.$ac_objext
6938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6939  (eval $ac_compile) 2>conftest.er1
6940  ac_status=$?
6941  grep -v '^ *+' conftest.er1 >conftest.err
6942  rm -f conftest.er1
6943  cat conftest.err >&5
6944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945  (exit $ac_status); } &&
6946	 { ac_try='test -z "$ac_c_werror_flag"
6947			 || test ! -s conftest.err'
6948  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949  (eval $ac_try) 2>&5
6950  ac_status=$?
6951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952  (exit $ac_status); }; } &&
6953	 { ac_try='test -s conftest.$ac_objext'
6954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6955  (eval $ac_try) 2>&5
6956  ac_status=$?
6957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958  (exit $ac_status); }; }; then
6959  echo "$as_me:$LINENO: result: no" >&5
6960echo "${ECHO_T}no" >&6
6961else
6962  echo "$as_me: failed program was:" >&5
6963sed 's/^/| /' conftest.$ac_ext >&5
6964
6965CFLAGS="$CFLAGS -Wno-implicit-int"
6966	cat >conftest.$ac_ext <<_ACEOF
6967/* confdefs.h.  */
6968_ACEOF
6969cat confdefs.h >>conftest.$ac_ext
6970cat >>conftest.$ac_ext <<_ACEOF
6971/* end confdefs.h.  */
6972#include <X11/Xlib.h>
6973int
6974main ()
6975{
6976
6977  ;
6978  return 0;
6979}
6980_ACEOF
6981rm -f conftest.$ac_objext
6982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6983  (eval $ac_compile) 2>conftest.er1
6984  ac_status=$?
6985  grep -v '^ *+' conftest.er1 >conftest.err
6986  rm -f conftest.er1
6987  cat conftest.err >&5
6988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989  (exit $ac_status); } &&
6990	 { ac_try='test -z "$ac_c_werror_flag"
6991			 || test ! -s conftest.err'
6992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6993  (eval $ac_try) 2>&5
6994  ac_status=$?
6995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996  (exit $ac_status); }; } &&
6997	 { ac_try='test -s conftest.$ac_objext'
6998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6999  (eval $ac_try) 2>&5
7000  ac_status=$?
7001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002  (exit $ac_status); }; }; then
7003  echo "$as_me:$LINENO: result: yes" >&5
7004echo "${ECHO_T}yes" >&6; cflags_save="$cflags_save -Wno-implicit-int"
7005else
7006  echo "$as_me: failed program was:" >&5
7007sed 's/^/| /' conftest.$ac_ext >&5
7008
7009echo "$as_me:$LINENO: result: test failed" >&5
7010echo "${ECHO_T}test failed" >&6
7011
7012fi
7013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7014
7015fi
7016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7017    CFLAGS=$cflags_save
7018
7019    LDFLAGS="$ac_save_LDFLAGS"
7020
7021  fi
7022fi
7023
7024test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
7025
7026echo "$as_me:$LINENO: checking --enable-gui argument" >&5
7027echo $ECHO_N "checking --enable-gui argument... $ECHO_C" >&6
7028# Check whether --enable-gui or --disable-gui was given.
7029if test "${enable_gui+set}" = set; then
7030  enableval="$enable_gui"
7031
7032else
7033  enable_gui="auto"
7034fi;
7035
7036enable_gui_canon=`echo "_$enable_gui" | \
7037	sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
7038
7039SKIP_GTK=YES
7040SKIP_GTK2=YES
7041SKIP_GNOME=YES
7042SKIP_MOTIF=YES
7043SKIP_ATHENA=YES
7044SKIP_NEXTAW=YES
7045SKIP_PHOTON=YES
7046SKIP_CARBON=YES
7047GUITYPE=NONE
7048
7049if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
7050  SKIP_PHOTON=
7051  case "$enable_gui_canon" in
7052    no)		echo "$as_me:$LINENO: result: no GUI support" >&5
7053echo "${ECHO_T}no GUI support" >&6
7054		SKIP_PHOTON=YES ;;
7055    yes|"")	echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
7056echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
7057    auto)	echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
7058echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
7059    photon)	echo "$as_me:$LINENO: result: Photon GUI support" >&5
7060echo "${ECHO_T}Photon GUI support" >&6 ;;
7061    *)		echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7062echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
7063		SKIP_PHOTON=YES ;;
7064  esac
7065
7066elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
7067  SKIP_CARBON=
7068  case "$enable_gui_canon" in
7069    no)		echo "$as_me:$LINENO: result: no GUI support" >&5
7070echo "${ECHO_T}no GUI support" >&6
7071		SKIP_CARBON=YES ;;
7072    yes|"")	echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
7073echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
7074    auto)	echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
7075echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
7076    carbon)	echo "$as_me:$LINENO: result: Carbon GUI support" >&5
7077echo "${ECHO_T}Carbon GUI support" >&6 ;;
7078    *)		echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7079echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
7080		SKIP_CARBON=YES ;;
7081  esac
7082
7083else
7084
7085  case "$enable_gui_canon" in
7086    no|none)	echo "$as_me:$LINENO: result: no GUI support" >&5
7087echo "${ECHO_T}no GUI support" >&6 ;;
7088    yes|""|auto)	echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
7089echo "${ECHO_T}yes/auto - automatic GUI support" >&6
7090		SKIP_GTK=
7091		SKIP_GTK2=
7092		SKIP_GNOME=
7093		SKIP_MOTIF=
7094		SKIP_ATHENA=
7095		SKIP_NEXTAW=
7096		SKIP_CARBON=;;
7097    gtk)	echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
7098echo "${ECHO_T}GTK+ 1.x GUI support" >&6
7099		SKIP_GTK=;;
7100    gtk2)	echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
7101echo "${ECHO_T}GTK+ 2.x GUI support" >&6
7102		SKIP_GTK=
7103		SKIP_GTK2=;;
7104    gnome)	echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
7105echo "${ECHO_T}GNOME 1.x GUI support" >&6
7106		SKIP_GNOME=
7107		SKIP_GTK=;;
7108    gnome2)	echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
7109echo "${ECHO_T}GNOME 2.x GUI support" >&6
7110		SKIP_GNOME=
7111		SKIP_GTK=
7112		SKIP_GTK2=;;
7113    motif)	echo "$as_me:$LINENO: result: Motif GUI support" >&5
7114echo "${ECHO_T}Motif GUI support" >&6
7115		SKIP_MOTIF=;;
7116    athena)	echo "$as_me:$LINENO: result: Athena GUI support" >&5
7117echo "${ECHO_T}Athena GUI support" >&6
7118		SKIP_ATHENA=;;
7119    nextaw)	echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
7120echo "${ECHO_T}neXtaw GUI support" >&6
7121		SKIP_NEXTAW=;;
7122    *)		echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7123echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 ;;
7124  esac
7125
7126fi
7127
7128if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
7129  echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
7130echo $ECHO_N "checking whether or not to look for GTK... $ECHO_C" >&6
7131  # Check whether --enable-gtk-check or --disable-gtk-check was given.
7132if test "${enable_gtk_check+set}" = set; then
7133  enableval="$enable_gtk_check"
7134
7135else
7136  enable_gtk_check="yes"
7137fi;
7138  echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
7139echo "${ECHO_T}$enable_gtk_check" >&6
7140  if test "x$enable_gtk_check" = "xno"; then
7141    SKIP_GTK=YES
7142    SKIP_GNOME=YES
7143  fi
7144fi
7145
7146if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
7147				-a "$enable_gui_canon" != "gnome2"; then
7148  echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
7149echo $ECHO_N "checking whether or not to look for GTK+ 2... $ECHO_C" >&6
7150  # Check whether --enable-gtk2-check or --disable-gtk2-check was given.
7151if test "${enable_gtk2_check+set}" = set; then
7152  enableval="$enable_gtk2_check"
7153
7154else
7155  enable_gtk2_check="yes"
7156fi;
7157  echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
7158echo "${ECHO_T}$enable_gtk2_check" >&6
7159  if test "x$enable_gtk2_check" = "xno"; then
7160    SKIP_GTK2=YES
7161  fi
7162fi
7163
7164if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
7165				 -a "$enable_gui_canon" != "gnome2"; then
7166  echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
7167echo $ECHO_N "checking whether or not to look for GNOME... $ECHO_C" >&6
7168  # Check whether --enable-gnome-check or --disable-gnome-check was given.
7169if test "${enable_gnome_check+set}" = set; then
7170  enableval="$enable_gnome_check"
7171
7172else
7173  enable_gnome_check="no"
7174fi;
7175  echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
7176echo "${ECHO_T}$enable_gnome_check" >&6
7177  if test "x$enable_gnome_check" = "xno"; then
7178    SKIP_GNOME=YES
7179  fi
7180fi
7181
7182if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
7183  echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
7184echo $ECHO_N "checking whether or not to look for Motif... $ECHO_C" >&6
7185  # Check whether --enable-motif-check or --disable-motif-check was given.
7186if test "${enable_motif_check+set}" = set; then
7187  enableval="$enable_motif_check"
7188
7189else
7190  enable_motif_check="yes"
7191fi;
7192  echo "$as_me:$LINENO: result: $enable_motif_check" >&5
7193echo "${ECHO_T}$enable_motif_check" >&6
7194  if test "x$enable_motif_check" = "xno"; then
7195    SKIP_MOTIF=YES
7196  fi
7197fi
7198
7199if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
7200  echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
7201echo $ECHO_N "checking whether or not to look for Athena... $ECHO_C" >&6
7202  # Check whether --enable-athena-check or --disable-athena-check was given.
7203if test "${enable_athena_check+set}" = set; then
7204  enableval="$enable_athena_check"
7205
7206else
7207  enable_athena_check="yes"
7208fi;
7209  echo "$as_me:$LINENO: result: $enable_athena_check" >&5
7210echo "${ECHO_T}$enable_athena_check" >&6
7211  if test "x$enable_athena_check" = "xno"; then
7212    SKIP_ATHENA=YES
7213  fi
7214fi
7215
7216if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
7217  echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
7218echo $ECHO_N "checking whether or not to look for neXtaw... $ECHO_C" >&6
7219  # Check whether --enable-nextaw-check or --disable-nextaw-check was given.
7220if test "${enable_nextaw_check+set}" = set; then
7221  enableval="$enable_nextaw_check"
7222
7223else
7224  enable_nextaw_check="yes"
7225fi;
7226  echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
7227echo "${ECHO_T}$enable_nextaw_check" >&6;
7228  if test "x$enable_nextaw_check" = "xno"; then
7229    SKIP_NEXTAW=YES
7230  fi
7231fi
7232
7233if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
7234  echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
7235echo $ECHO_N "checking whether or not to look for Carbon... $ECHO_C" >&6
7236  # Check whether --enable-carbon-check or --disable-carbon-check was given.
7237if test "${enable_carbon_check+set}" = set; then
7238  enableval="$enable_carbon_check"
7239
7240else
7241  enable_carbon_check="yes"
7242fi;
7243  echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
7244echo "${ECHO_T}$enable_carbon_check" >&6;
7245  if test "x$enable_carbon_check" = "xno"; then
7246    SKIP_CARBON=YES
7247  fi
7248fi
7249
7250
7251if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
7252  echo "$as_me:$LINENO: checking for Carbon GUI" >&5
7253echo $ECHO_N "checking for Carbon GUI... $ECHO_C" >&6
7254    echo "$as_me:$LINENO: result: yes" >&5
7255echo "${ECHO_T}yes" >&6;
7256  GUITYPE=CARBONGUI
7257  if test "$VIMNAME" = "vim"; then
7258    VIMNAME=Vim
7259  fi
7260    SKIP_GTK=YES;
7261  SKIP_GTK2=YES;
7262  SKIP_GNOME=YES;
7263  SKIP_MOTIF=YES;
7264  SKIP_ATHENA=YES;
7265  SKIP_NEXTAW=YES;
7266  SKIP_PHOTON=YES;
7267  SKIP_CARBON=YES
7268fi
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278if test -z "$SKIP_GTK"; then
7279
7280  echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
7281echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6
7282
7283# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
7284if test "${with_gtk_prefix+set}" = set; then
7285  withval="$with_gtk_prefix"
7286  gtk_config_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
7287echo "${ECHO_T}$gtk_config_prefix" >&6
7288else
7289  gtk_config_prefix=""; echo "$as_me:$LINENO: result: no" >&5
7290echo "${ECHO_T}no" >&6
7291fi;
7292
7293  echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
7294echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6
7295
7296# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
7297if test "${with_gtk_exec_prefix+set}" = set; then
7298  withval="$with_gtk_exec_prefix"
7299  gtk_config_exec_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
7300echo "${ECHO_T}$gtk_config_prefix" >&6
7301else
7302  gtk_config_exec_prefix=""; echo "$as_me:$LINENO: result: no" >&5
7303echo "${ECHO_T}no" >&6
7304fi;
7305
7306  echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
7307echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6
7308  # Check whether --enable-gtktest or --disable-gtktest was given.
7309if test "${enable_gtktest+set}" = set; then
7310  enableval="$enable_gtktest"
7311
7312else
7313  enable_gtktest=yes
7314fi;
7315  if test "x$enable_gtktest" = "xyes" ; then
7316    echo "$as_me:$LINENO: result: gtk test enabled" >&5
7317echo "${ECHO_T}gtk test enabled" >&6
7318  else
7319    echo "$as_me:$LINENO: result: gtk test disabled" >&5
7320echo "${ECHO_T}gtk test disabled" >&6
7321  fi
7322
7323  if test "x$gtk_config_prefix" != "x" ; then
7324    gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7325    GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7326  fi
7327  if test "x$gtk_config_exec_prefix" != "x" ; then
7328    gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7329    GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7330  fi
7331  if test "X$GTK_CONFIG" = "X"; then
7332    # Extract the first word of "gtk-config", so it can be a program name with args.
7333set dummy gtk-config; ac_word=$2
7334echo "$as_me:$LINENO: checking for $ac_word" >&5
7335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7336if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
7337  echo $ECHO_N "(cached) $ECHO_C" >&6
7338else
7339  case $GTK_CONFIG in
7340  [\\/]* | ?:[\\/]*)
7341  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7342  ;;
7343  *)
7344  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345for as_dir in $PATH
7346do
7347  IFS=$as_save_IFS
7348  test -z "$as_dir" && as_dir=.
7349  for ac_exec_ext in '' $ac_executable_extensions; do
7350  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7351    ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7352    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7353    break 2
7354  fi
7355done
7356done
7357
7358  test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7359  ;;
7360esac
7361fi
7362GTK_CONFIG=$ac_cv_path_GTK_CONFIG
7363
7364if test -n "$GTK_CONFIG"; then
7365  echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
7366echo "${ECHO_T}$GTK_CONFIG" >&6
7367else
7368  echo "$as_me:$LINENO: result: no" >&5
7369echo "${ECHO_T}no" >&6
7370fi
7371
7372    if test "X$GTK_CONFIG" = "Xno"; then
7373            # Extract the first word of "gtk12-config", so it can be a program name with args.
7374set dummy gtk12-config; ac_word=$2
7375echo "$as_me:$LINENO: checking for $ac_word" >&5
7376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7377if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
7378  echo $ECHO_N "(cached) $ECHO_C" >&6
7379else
7380  case $GTK12_CONFIG in
7381  [\\/]* | ?:[\\/]*)
7382  ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7383  ;;
7384  *)
7385  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386for as_dir in $PATH
7387do
7388  IFS=$as_save_IFS
7389  test -z "$as_dir" && as_dir=.
7390  for ac_exec_ext in '' $ac_executable_extensions; do
7391  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7392    ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7393    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7394    break 2
7395  fi
7396done
7397done
7398
7399  test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7400  ;;
7401esac
7402fi
7403GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
7404
7405if test -n "$GTK12_CONFIG"; then
7406  echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
7407echo "${ECHO_T}$GTK12_CONFIG" >&6
7408else
7409  echo "$as_me:$LINENO: result: no" >&5
7410echo "${ECHO_T}no" >&6
7411fi
7412
7413      GTK_CONFIG="$GTK12_CONFIG"
7414    fi
7415  else
7416    echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
7417echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6
7418  fi
7419  if test "X$PKG_CONFIG" = "X"; then
7420    # Extract the first word of "pkg-config", so it can be a program name with args.
7421set dummy pkg-config; ac_word=$2
7422echo "$as_me:$LINENO: checking for $ac_word" >&5
7423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7424if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7425  echo $ECHO_N "(cached) $ECHO_C" >&6
7426else
7427  case $PKG_CONFIG in
7428  [\\/]* | ?:[\\/]*)
7429  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7430  ;;
7431  *)
7432  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433for as_dir in $PATH
7434do
7435  IFS=$as_save_IFS
7436  test -z "$as_dir" && as_dir=.
7437  for ac_exec_ext in '' $ac_executable_extensions; do
7438  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7439    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7440    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7441    break 2
7442  fi
7443done
7444done
7445
7446  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7447  ;;
7448esac
7449fi
7450PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7451
7452if test -n "$PKG_CONFIG"; then
7453  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7454echo "${ECHO_T}$PKG_CONFIG" >&6
7455else
7456  echo "$as_me:$LINENO: result: no" >&5
7457echo "${ECHO_T}no" >&6
7458fi
7459
7460  fi
7461
7462  if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
7463            if test "X$SKIP_GTK2" != "XYES"; then
7464
7465  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7466  {
7467    min_gtk_version=2.2.0
7468    echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7469echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
7470    no_gtk=""
7471    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7472	  && $PKG_CONFIG --exists gtk+-2.0; then
7473    {
7474                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
7475      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
7476      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7477      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7478	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7479      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7480	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7481      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7482	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7483    }
7484    elif test "X$GTK_CONFIG" != "Xno"; then
7485    {
7486      GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
7487      GTK_LIBDIR=
7488      GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
7489      gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
7490	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7491      gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
7492	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7493      gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
7494	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7495    }
7496    else
7497      no_gtk=yes
7498    fi
7499
7500    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
7501    {
7502      ac_save_CFLAGS="$CFLAGS"
7503      ac_save_LIBS="$LIBS"
7504      CFLAGS="$CFLAGS $GTK_CFLAGS"
7505      LIBS="$LIBS $GTK_LIBS"
7506
7507                              rm -f conf.gtktest
7508      if test "$cross_compiling" = yes; then
7509  echo $ac_n "cross compiling; assumed OK... $ac_c"
7510else
7511  cat >conftest.$ac_ext <<_ACEOF
7512/* confdefs.h.  */
7513_ACEOF
7514cat confdefs.h >>conftest.$ac_ext
7515cat >>conftest.$ac_ext <<_ACEOF
7516/* end confdefs.h.  */
7517
7518#include <gtk/gtk.h>
7519#include <stdio.h>
7520
7521int
7522main ()
7523{
7524int major, minor, micro;
7525char *tmp_version;
7526
7527system ("touch conf.gtktest");
7528
7529/* HP/UX 9 (%@#!) writes to sscanf strings */
7530tmp_version = g_strdup("$min_gtk_version");
7531if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7532   printf("%s, bad version string\n", "$min_gtk_version");
7533   exit(1);
7534 }
7535
7536if ((gtk_major_version > major) ||
7537    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7538    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
7539				     (gtk_micro_version >= micro)))
7540{
7541    return 0;
7542}
7543return 1;
7544}
7545
7546_ACEOF
7547rm -f conftest$ac_exeext
7548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7549  (eval $ac_link) 2>&5
7550  ac_status=$?
7551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7554  (eval $ac_try) 2>&5
7555  ac_status=$?
7556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557  (exit $ac_status); }; }; then
7558  :
7559else
7560  echo "$as_me: program exited with status $ac_status" >&5
7561echo "$as_me: failed program was:" >&5
7562sed 's/^/| /' conftest.$ac_ext >&5
7563
7564( exit $ac_status )
7565no_gtk=yes
7566fi
7567rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7568fi
7569      CFLAGS="$ac_save_CFLAGS"
7570      LIBS="$ac_save_LIBS"
7571    }
7572    fi
7573    if test "x$no_gtk" = x ; then
7574      if test "x$enable_gtktest" = "xyes"; then
7575	echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7576echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
7577      else
7578	echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7579echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
7580      fi
7581      GUI_LIB_LOC="$GTK_LIBDIR"
7582		   GTK_LIBNAME="$GTK_LIBS"
7583		  GUI_INC_LOC="$GTK_CFLAGS"
7584    else
7585    {
7586      echo "$as_me:$LINENO: result: no" >&5
7587echo "${ECHO_T}no" >&6
7588      GTK_CFLAGS=""
7589      GTK_LIBS=""
7590      :
7591    }
7592    fi
7593  }
7594  else
7595    GTK_CFLAGS=""
7596    GTK_LIBS=""
7597    :
7598  fi
7599
7600
7601  rm -f conf.gtktest
7602
7603      if test "x$GTK_CFLAGS" != "x"; then
7604	SKIP_ATHENA=YES
7605	SKIP_NEXTAW=YES
7606	SKIP_MOTIF=YES
7607	GUITYPE=GTK
7608
7609      fi
7610    fi
7611
7612                if test "x$GUITYPE" != "xGTK"; then
7613      SKIP_GTK2=YES
7614
7615  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7616  {
7617    min_gtk_version=1.1.16
7618    echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7619echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
7620    no_gtk=""
7621    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7622	  && $PKG_CONFIG --exists gtk+-2.0; then
7623    {
7624                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
7625      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
7626      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7627      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7628	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7629      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7630	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7631      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7632	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7633    }
7634    elif test "X$GTK_CONFIG" != "Xno"; then
7635    {
7636      GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
7637      GTK_LIBDIR=
7638      GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
7639      gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
7640	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7641      gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
7642	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7643      gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
7644	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7645    }
7646    else
7647      no_gtk=yes
7648    fi
7649
7650    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
7651    {
7652      ac_save_CFLAGS="$CFLAGS"
7653      ac_save_LIBS="$LIBS"
7654      CFLAGS="$CFLAGS $GTK_CFLAGS"
7655      LIBS="$LIBS $GTK_LIBS"
7656
7657                              rm -f conf.gtktest
7658      if test "$cross_compiling" = yes; then
7659  echo $ac_n "cross compiling; assumed OK... $ac_c"
7660else
7661  cat >conftest.$ac_ext <<_ACEOF
7662/* confdefs.h.  */
7663_ACEOF
7664cat confdefs.h >>conftest.$ac_ext
7665cat >>conftest.$ac_ext <<_ACEOF
7666/* end confdefs.h.  */
7667
7668#include <gtk/gtk.h>
7669#include <stdio.h>
7670
7671int
7672main ()
7673{
7674int major, minor, micro;
7675char *tmp_version;
7676
7677system ("touch conf.gtktest");
7678
7679/* HP/UX 9 (%@#!) writes to sscanf strings */
7680tmp_version = g_strdup("$min_gtk_version");
7681if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7682   printf("%s, bad version string\n", "$min_gtk_version");
7683   exit(1);
7684 }
7685
7686if ((gtk_major_version > major) ||
7687    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7688    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
7689				     (gtk_micro_version >= micro)))
7690{
7691    return 0;
7692}
7693return 1;
7694}
7695
7696_ACEOF
7697rm -f conftest$ac_exeext
7698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7699  (eval $ac_link) 2>&5
7700  ac_status=$?
7701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7704  (eval $ac_try) 2>&5
7705  ac_status=$?
7706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707  (exit $ac_status); }; }; then
7708  :
7709else
7710  echo "$as_me: program exited with status $ac_status" >&5
7711echo "$as_me: failed program was:" >&5
7712sed 's/^/| /' conftest.$ac_ext >&5
7713
7714( exit $ac_status )
7715no_gtk=yes
7716fi
7717rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7718fi
7719      CFLAGS="$ac_save_CFLAGS"
7720      LIBS="$ac_save_LIBS"
7721    }
7722    fi
7723    if test "x$no_gtk" = x ; then
7724      if test "x$enable_gtktest" = "xyes"; then
7725	echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7726echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
7727      else
7728	echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7729echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
7730      fi
7731      GTK_LIBNAME="$GTK_LIBS"
7732		  GUI_INC_LOC="$GTK_CFLAGS"
7733    else
7734    {
7735      echo "$as_me:$LINENO: result: no" >&5
7736echo "${ECHO_T}no" >&6
7737      GTK_CFLAGS=""
7738      GTK_LIBS=""
7739      :
7740    }
7741    fi
7742  }
7743  else
7744    GTK_CFLAGS=""
7745    GTK_LIBS=""
7746    :
7747  fi
7748
7749
7750  rm -f conf.gtktest
7751
7752      if test "x$GTK_CFLAGS" != "x"; then
7753	SKIP_ATHENA=YES
7754	SKIP_NEXTAW=YES
7755	SKIP_MOTIF=YES
7756	GUITYPE=GTK
7757
7758      fi
7759    fi
7760  fi
7761    if test "x$GUITYPE" = "xGTK"; then
7762    if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
7763	 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
7764      echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
7765echo "${ECHO_T}this GTK version is old; version 1.2.3 or later is recommended" >&6
7766    else
7767    {
7768      if test "0$gtk_major_version" -ge 2; then
7769	cat >>confdefs.h <<\_ACEOF
7770#define HAVE_GTK2 1
7771_ACEOF
7772
7773	if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
7774		|| test "0$gtk_minor_version" -ge 2 \
7775		|| test "0$gtk_major_version" -gt 2; then
7776	  cat >>confdefs.h <<\_ACEOF
7777#define HAVE_GTK_MULTIHEAD 1
7778_ACEOF
7779
7780	fi
7781      fi
7782                        if test -z "$SKIP_GNOME"; then
7783      {
7784
7785
7786
7787
7788
7789
7790# Check whether --with-gnome-includes or --without-gnome-includes was given.
7791if test "${with_gnome_includes+set}" = set; then
7792  withval="$with_gnome_includes"
7793  CFLAGS="$CFLAGS -I$withval"
7794
7795fi;
7796
7797
7798# Check whether --with-gnome-libs or --without-gnome-libs was given.
7799if test "${with_gnome_libs+set}" = set; then
7800  withval="$with_gnome_libs"
7801  LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
7802
7803fi;
7804
7805
7806# Check whether --with-gnome or --without-gnome was given.
7807if test "${with_gnome+set}" = set; then
7808  withval="$with_gnome"
7809  if test x$withval = xyes; then
7810      want_gnome=yes
7811      have_gnome=yes
7812    else
7813      if test "x$withval" = xno; then
7814	want_gnome=no
7815      else
7816	want_gnome=yes
7817	LDFLAGS="$LDFLAGS -L$withval/lib"
7818	CFLAGS="$CFLAGS -I$withval/include"
7819	gnome_prefix=$withval/lib
7820      fi
7821    fi
7822else
7823  want_gnome=yes
7824fi;
7825
7826  if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
7827  {
7828    echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
7829echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6
7830    if $PKG_CONFIG --exists libgnomeui-2.0; then
7831      echo "$as_me:$LINENO: result: yes" >&5
7832echo "${ECHO_T}yes" >&6
7833      GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
7834      GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
7835      GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
7836      have_gnome=yes
7837    else
7838      echo "$as_me:$LINENO: result: not found" >&5
7839echo "${ECHO_T}not found" >&6
7840      if test "x" = xfail; then
7841	{ { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
7842echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
7843   { (exit 1); exit 1; }; }
7844      fi
7845    fi
7846  }
7847  elif test "x$want_gnome" = xyes; then
7848  {
7849    # Extract the first word of "gnome-config", so it can be a program name with args.
7850set dummy gnome-config; ac_word=$2
7851echo "$as_me:$LINENO: checking for $ac_word" >&5
7852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7853if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
7854  echo $ECHO_N "(cached) $ECHO_C" >&6
7855else
7856  case $GNOME_CONFIG in
7857  [\\/]* | ?:[\\/]*)
7858  ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7859  ;;
7860  *)
7861  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862for as_dir in $PATH
7863do
7864  IFS=$as_save_IFS
7865  test -z "$as_dir" && as_dir=.
7866  for ac_exec_ext in '' $ac_executable_extensions; do
7867  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7868    ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7869    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7870    break 2
7871  fi
7872done
7873done
7874
7875  test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7876  ;;
7877esac
7878fi
7879GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
7880
7881if test -n "$GNOME_CONFIG"; then
7882  echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
7883echo "${ECHO_T}$GNOME_CONFIG" >&6
7884else
7885  echo "$as_me:$LINENO: result: no" >&5
7886echo "${ECHO_T}no" >&6
7887fi
7888
7889    if test "$GNOME_CONFIG" = "no"; then
7890      no_gnome_config="yes"
7891    else
7892      echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
7893echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
7894      if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
7895	echo "$as_me:$LINENO: result: yes" >&5
7896echo "${ECHO_T}yes" >&6
7897	GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
7898	GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
7899	GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
7900	have_gnome=yes
7901      else
7902	echo "$as_me:$LINENO: result: no" >&5
7903echo "${ECHO_T}no" >&6
7904	no_gnome_config="yes"
7905      fi
7906    fi
7907
7908    if test x$exec_prefix = xNONE; then
7909      if test x$prefix = xNONE; then
7910	gnome_prefix=$ac_default_prefix/lib
7911      else
7912	gnome_prefix=$prefix/lib
7913      fi
7914    else
7915      gnome_prefix=`eval echo \`echo $libdir\``
7916    fi
7917
7918    if test "$no_gnome_config" = "yes"; then
7919      echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
7920echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
7921      if test -f $gnome_prefix/gnomeConf.sh; then
7922	echo "$as_me:$LINENO: result: found" >&5
7923echo "${ECHO_T}found" >&6
7924	echo "loading gnome configuration from" \
7925	  "$gnome_prefix/gnomeConf.sh"
7926	. $gnome_prefix/gnomeConf.sh
7927	have_gnome=yes
7928      else
7929	echo "$as_me:$LINENO: result: not found" >&5
7930echo "${ECHO_T}not found" >&6
7931	if test x = xfail; then
7932	  { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
7933echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
7934   { (exit 1); exit 1; }; }
7935	fi
7936      fi
7937    fi
7938  }
7939  fi
7940
7941	if test x$have_gnome = xyes ; then
7942	  cat >>confdefs.h <<\_ACEOF
7943#define FEAT_GUI_GNOME 1
7944_ACEOF
7945
7946	  GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
7947	  GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
7948	fi
7949      }
7950      fi
7951    }
7952    fi
7953  fi
7954fi
7955
7956
7957if test -z "$SKIP_MOTIF"; then
7958  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"
7959    GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
7960
7961  echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
7962echo $ECHO_N "checking for location of Motif GUI includes... $ECHO_C" >&6
7963  gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
7964  GUI_INC_LOC=
7965  for try in $gui_includes; do
7966    if test -f "$try/Xm/Xm.h"; then
7967      GUI_INC_LOC=$try
7968    fi
7969  done
7970  if test -n "$GUI_INC_LOC"; then
7971    if test "$GUI_INC_LOC" = /usr/include; then
7972      GUI_INC_LOC=
7973      echo "$as_me:$LINENO: result: in default path" >&5
7974echo "${ECHO_T}in default path" >&6
7975    else
7976      echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
7977echo "${ECHO_T}$GUI_INC_LOC" >&6
7978    fi
7979  else
7980    echo "$as_me:$LINENO: result: <not found>" >&5
7981echo "${ECHO_T}<not found>" >&6
7982    SKIP_MOTIF=YES
7983  fi
7984fi
7985
7986
7987if test -z "$SKIP_MOTIF"; then
7988  echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
7989echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6
7990
7991# Check whether --with-motif-lib or --without-motif-lib was given.
7992if test "${with_motif_lib+set}" = set; then
7993  withval="$with_motif_lib"
7994   MOTIF_LIBNAME="${withval}"
7995fi;
7996
7997  if test -n "$MOTIF_LIBNAME"; then
7998    echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
7999echo "${ECHO_T}$MOTIF_LIBNAME" >&6
8000    GUI_LIB_LOC=
8001  else
8002    echo "$as_me:$LINENO: result: no" >&5
8003echo "${ECHO_T}no" >&6
8004
8005        GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
8006
8007    echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
8008echo $ECHO_N "checking for location of Motif GUI libs... $ECHO_C" >&6
8009    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"
8010    GUI_LIB_LOC=
8011    for try in $gui_libs; do
8012      for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
8013	if test -f "$libtry"; then
8014	  GUI_LIB_LOC=$try
8015	fi
8016      done
8017    done
8018    if test -n "$GUI_LIB_LOC"; then
8019            if test "$GUI_LIB_LOC" = /usr/lib; then
8020	GUI_LIB_LOC=
8021	echo "$as_me:$LINENO: result: in default path" >&5
8022echo "${ECHO_T}in default path" >&6
8023      else
8024	if test -n "$GUI_LIB_LOC"; then
8025	  echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
8026echo "${ECHO_T}$GUI_LIB_LOC" >&6
8027	  if test "`(uname) 2>/dev/null`" = SunOS &&
8028					 uname -r | grep '^5' >/dev/null; then
8029	    GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
8030	  fi
8031	fi
8032      fi
8033      MOTIF_LIBNAME=-lXm
8034    else
8035      echo "$as_me:$LINENO: result: <not found>" >&5
8036echo "${ECHO_T}<not found>" >&6
8037      SKIP_MOTIF=YES
8038    fi
8039  fi
8040fi
8041
8042if test -z "$SKIP_MOTIF"; then
8043  SKIP_ATHENA=YES
8044  SKIP_NEXTAW=YES
8045  GUITYPE=MOTIF
8046
8047fi
8048
8049
8050GUI_X_LIBS=
8051
8052if test -z "$SKIP_ATHENA"; then
8053  echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
8054echo $ECHO_N "checking if Athena header files can be found... $ECHO_C" >&6
8055  cflags_save=$CFLAGS
8056  CFLAGS="$CFLAGS $X_CFLAGS"
8057  cat >conftest.$ac_ext <<_ACEOF
8058/* confdefs.h.  */
8059_ACEOF
8060cat confdefs.h >>conftest.$ac_ext
8061cat >>conftest.$ac_ext <<_ACEOF
8062/* end confdefs.h.  */
8063
8064#include <X11/Intrinsic.h>
8065#include <X11/Xaw/Paned.h>
8066int
8067main ()
8068{
8069
8070  ;
8071  return 0;
8072}
8073_ACEOF
8074rm -f conftest.$ac_objext
8075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8076  (eval $ac_compile) 2>conftest.er1
8077  ac_status=$?
8078  grep -v '^ *+' conftest.er1 >conftest.err
8079  rm -f conftest.er1
8080  cat conftest.err >&5
8081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082  (exit $ac_status); } &&
8083	 { ac_try='test -z "$ac_c_werror_flag"
8084			 || test ! -s conftest.err'
8085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8086  (eval $ac_try) 2>&5
8087  ac_status=$?
8088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089  (exit $ac_status); }; } &&
8090	 { ac_try='test -s conftest.$ac_objext'
8091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8092  (eval $ac_try) 2>&5
8093  ac_status=$?
8094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095  (exit $ac_status); }; }; then
8096  echo "$as_me:$LINENO: result: yes" >&5
8097echo "${ECHO_T}yes" >&6
8098else
8099  echo "$as_me: failed program was:" >&5
8100sed 's/^/| /' conftest.$ac_ext >&5
8101
8102echo "$as_me:$LINENO: result: no" >&5
8103echo "${ECHO_T}no" >&6; SKIP_ATHENA=YES
8104fi
8105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8106  CFLAGS=$cflags_save
8107fi
8108
8109if test -z "$SKIP_ATHENA"; then
8110  GUITYPE=ATHENA
8111fi
8112
8113if test -z "$SKIP_NEXTAW"; then
8114  echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
8115echo $ECHO_N "checking if neXtaw header files can be found... $ECHO_C" >&6
8116  cflags_save=$CFLAGS
8117  CFLAGS="$CFLAGS $X_CFLAGS"
8118  cat >conftest.$ac_ext <<_ACEOF
8119/* confdefs.h.  */
8120_ACEOF
8121cat confdefs.h >>conftest.$ac_ext
8122cat >>conftest.$ac_ext <<_ACEOF
8123/* end confdefs.h.  */
8124
8125#include <X11/Intrinsic.h>
8126#include <X11/neXtaw/Paned.h>
8127int
8128main ()
8129{
8130
8131  ;
8132  return 0;
8133}
8134_ACEOF
8135rm -f conftest.$ac_objext
8136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8137  (eval $ac_compile) 2>conftest.er1
8138  ac_status=$?
8139  grep -v '^ *+' conftest.er1 >conftest.err
8140  rm -f conftest.er1
8141  cat conftest.err >&5
8142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143  (exit $ac_status); } &&
8144	 { ac_try='test -z "$ac_c_werror_flag"
8145			 || test ! -s conftest.err'
8146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8147  (eval $ac_try) 2>&5
8148  ac_status=$?
8149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150  (exit $ac_status); }; } &&
8151	 { ac_try='test -s conftest.$ac_objext'
8152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8153  (eval $ac_try) 2>&5
8154  ac_status=$?
8155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156  (exit $ac_status); }; }; then
8157  echo "$as_me:$LINENO: result: yes" >&5
8158echo "${ECHO_T}yes" >&6
8159else
8160  echo "$as_me: failed program was:" >&5
8161sed 's/^/| /' conftest.$ac_ext >&5
8162
8163echo "$as_me:$LINENO: result: no" >&5
8164echo "${ECHO_T}no" >&6; SKIP_NEXTAW=YES
8165fi
8166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8167  CFLAGS=$cflags_save
8168fi
8169
8170if test -z "$SKIP_NEXTAW"; then
8171  GUITYPE=NEXTAW
8172fi
8173
8174if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8175      if test -n "$GUI_INC_LOC"; then
8176    GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
8177  fi
8178  if test -n "$GUI_LIB_LOC"; then
8179    GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
8180  fi
8181
8182    ldflags_save=$LDFLAGS
8183  LDFLAGS="$X_LIBS $LDFLAGS"
8184  echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8185echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8186if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8187  echo $ECHO_N "(cached) $ECHO_C" >&6
8188else
8189  ac_check_lib_save_LIBS=$LIBS
8190LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8191cat >conftest.$ac_ext <<_ACEOF
8192/* confdefs.h.  */
8193_ACEOF
8194cat confdefs.h >>conftest.$ac_ext
8195cat >>conftest.$ac_ext <<_ACEOF
8196/* end confdefs.h.  */
8197
8198/* Override any gcc2 internal prototype to avoid an error.  */
8199#ifdef __cplusplus
8200extern "C"
8201#endif
8202/* We use char because int might match the return type of a gcc2
8203   builtin and then its argument prototype would still apply.  */
8204char XShapeQueryExtension ();
8205int
8206main ()
8207{
8208XShapeQueryExtension ();
8209  ;
8210  return 0;
8211}
8212_ACEOF
8213rm -f conftest.$ac_objext conftest$ac_exeext
8214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8215  (eval $ac_link) 2>conftest.er1
8216  ac_status=$?
8217  grep -v '^ *+' conftest.er1 >conftest.err
8218  rm -f conftest.er1
8219  cat conftest.err >&5
8220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221  (exit $ac_status); } &&
8222	 { ac_try='test -z "$ac_c_werror_flag"
8223			 || test ! -s conftest.err'
8224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8225  (eval $ac_try) 2>&5
8226  ac_status=$?
8227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228  (exit $ac_status); }; } &&
8229	 { ac_try='test -s conftest$ac_exeext'
8230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8231  (eval $ac_try) 2>&5
8232  ac_status=$?
8233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234  (exit $ac_status); }; }; then
8235  ac_cv_lib_Xext_XShapeQueryExtension=yes
8236else
8237  echo "$as_me: failed program was:" >&5
8238sed 's/^/| /' conftest.$ac_ext >&5
8239
8240ac_cv_lib_Xext_XShapeQueryExtension=no
8241fi
8242rm -f conftest.err conftest.$ac_objext \
8243      conftest$ac_exeext conftest.$ac_ext
8244LIBS=$ac_check_lib_save_LIBS
8245fi
8246echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8247echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8248if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8249  GUI_X_LIBS="-lXext"
8250fi
8251
8252    echo "$as_me:$LINENO: checking for wslen in -lw" >&5
8253echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6
8254if test "${ac_cv_lib_w_wslen+set}" = set; then
8255  echo $ECHO_N "(cached) $ECHO_C" >&6
8256else
8257  ac_check_lib_save_LIBS=$LIBS
8258LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8259cat >conftest.$ac_ext <<_ACEOF
8260/* confdefs.h.  */
8261_ACEOF
8262cat confdefs.h >>conftest.$ac_ext
8263cat >>conftest.$ac_ext <<_ACEOF
8264/* end confdefs.h.  */
8265
8266/* Override any gcc2 internal prototype to avoid an error.  */
8267#ifdef __cplusplus
8268extern "C"
8269#endif
8270/* We use char because int might match the return type of a gcc2
8271   builtin and then its argument prototype would still apply.  */
8272char wslen ();
8273int
8274main ()
8275{
8276wslen ();
8277  ;
8278  return 0;
8279}
8280_ACEOF
8281rm -f conftest.$ac_objext conftest$ac_exeext
8282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8283  (eval $ac_link) 2>conftest.er1
8284  ac_status=$?
8285  grep -v '^ *+' conftest.er1 >conftest.err
8286  rm -f conftest.er1
8287  cat conftest.err >&5
8288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289  (exit $ac_status); } &&
8290	 { ac_try='test -z "$ac_c_werror_flag"
8291			 || test ! -s conftest.err'
8292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8293  (eval $ac_try) 2>&5
8294  ac_status=$?
8295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296  (exit $ac_status); }; } &&
8297	 { ac_try='test -s conftest$ac_exeext'
8298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8299  (eval $ac_try) 2>&5
8300  ac_status=$?
8301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302  (exit $ac_status); }; }; then
8303  ac_cv_lib_w_wslen=yes
8304else
8305  echo "$as_me: failed program was:" >&5
8306sed 's/^/| /' conftest.$ac_ext >&5
8307
8308ac_cv_lib_w_wslen=no
8309fi
8310rm -f conftest.err conftest.$ac_objext \
8311      conftest$ac_exeext conftest.$ac_ext
8312LIBS=$ac_check_lib_save_LIBS
8313fi
8314echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
8315echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6
8316if test $ac_cv_lib_w_wslen = yes; then
8317  X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
8318fi
8319
8320  echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
8321echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
8322if test "${ac_cv_lib_dl_dlsym+set}" = set; then
8323  echo $ECHO_N "(cached) $ECHO_C" >&6
8324else
8325  ac_check_lib_save_LIBS=$LIBS
8326LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8327cat >conftest.$ac_ext <<_ACEOF
8328/* confdefs.h.  */
8329_ACEOF
8330cat confdefs.h >>conftest.$ac_ext
8331cat >>conftest.$ac_ext <<_ACEOF
8332/* end confdefs.h.  */
8333
8334/* Override any gcc2 internal prototype to avoid an error.  */
8335#ifdef __cplusplus
8336extern "C"
8337#endif
8338/* We use char because int might match the return type of a gcc2
8339   builtin and then its argument prototype would still apply.  */
8340char dlsym ();
8341int
8342main ()
8343{
8344dlsym ();
8345  ;
8346  return 0;
8347}
8348_ACEOF
8349rm -f conftest.$ac_objext conftest$ac_exeext
8350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8351  (eval $ac_link) 2>conftest.er1
8352  ac_status=$?
8353  grep -v '^ *+' conftest.er1 >conftest.err
8354  rm -f conftest.er1
8355  cat conftest.err >&5
8356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357  (exit $ac_status); } &&
8358	 { ac_try='test -z "$ac_c_werror_flag"
8359			 || test ! -s conftest.err'
8360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361  (eval $ac_try) 2>&5
8362  ac_status=$?
8363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364  (exit $ac_status); }; } &&
8365	 { ac_try='test -s conftest$ac_exeext'
8366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367  (eval $ac_try) 2>&5
8368  ac_status=$?
8369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370  (exit $ac_status); }; }; then
8371  ac_cv_lib_dl_dlsym=yes
8372else
8373  echo "$as_me: failed program was:" >&5
8374sed 's/^/| /' conftest.$ac_ext >&5
8375
8376ac_cv_lib_dl_dlsym=no
8377fi
8378rm -f conftest.err conftest.$ac_objext \
8379      conftest$ac_exeext conftest.$ac_ext
8380LIBS=$ac_check_lib_save_LIBS
8381fi
8382echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
8383echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
8384if test $ac_cv_lib_dl_dlsym = yes; then
8385  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
8386fi
8387
8388  echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
8389echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6
8390if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
8391  echo $ECHO_N "(cached) $ECHO_C" >&6
8392else
8393  ac_check_lib_save_LIBS=$LIBS
8394LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8395cat >conftest.$ac_ext <<_ACEOF
8396/* confdefs.h.  */
8397_ACEOF
8398cat confdefs.h >>conftest.$ac_ext
8399cat >>conftest.$ac_ext <<_ACEOF
8400/* end confdefs.h.  */
8401
8402/* Override any gcc2 internal prototype to avoid an error.  */
8403#ifdef __cplusplus
8404extern "C"
8405#endif
8406/* We use char because int might match the return type of a gcc2
8407   builtin and then its argument prototype would still apply.  */
8408char XmuCreateStippledPixmap ();
8409int
8410main ()
8411{
8412XmuCreateStippledPixmap ();
8413  ;
8414  return 0;
8415}
8416_ACEOF
8417rm -f conftest.$ac_objext conftest$ac_exeext
8418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8419  (eval $ac_link) 2>conftest.er1
8420  ac_status=$?
8421  grep -v '^ *+' conftest.er1 >conftest.err
8422  rm -f conftest.er1
8423  cat conftest.err >&5
8424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425  (exit $ac_status); } &&
8426	 { ac_try='test -z "$ac_c_werror_flag"
8427			 || test ! -s conftest.err'
8428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8429  (eval $ac_try) 2>&5
8430  ac_status=$?
8431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432  (exit $ac_status); }; } &&
8433	 { ac_try='test -s conftest$ac_exeext'
8434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435  (eval $ac_try) 2>&5
8436  ac_status=$?
8437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438  (exit $ac_status); }; }; then
8439  ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
8440else
8441  echo "$as_me: failed program was:" >&5
8442sed 's/^/| /' conftest.$ac_ext >&5
8443
8444ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
8445fi
8446rm -f conftest.err conftest.$ac_objext \
8447      conftest$ac_exeext conftest.$ac_ext
8448LIBS=$ac_check_lib_save_LIBS
8449fi
8450echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
8451echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6
8452if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
8453  GUI_X_LIBS="-lXmu $GUI_X_LIBS"
8454fi
8455
8456  if test -z "$SKIP_MOTIF"; then
8457    echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
8458echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6
8459if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
8460  echo $ECHO_N "(cached) $ECHO_C" >&6
8461else
8462  ac_check_lib_save_LIBS=$LIBS
8463LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8464cat >conftest.$ac_ext <<_ACEOF
8465/* confdefs.h.  */
8466_ACEOF
8467cat confdefs.h >>conftest.$ac_ext
8468cat >>conftest.$ac_ext <<_ACEOF
8469/* end confdefs.h.  */
8470
8471/* Override any gcc2 internal prototype to avoid an error.  */
8472#ifdef __cplusplus
8473extern "C"
8474#endif
8475/* We use char because int might match the return type of a gcc2
8476   builtin and then its argument prototype would still apply.  */
8477char XpEndJob ();
8478int
8479main ()
8480{
8481XpEndJob ();
8482  ;
8483  return 0;
8484}
8485_ACEOF
8486rm -f conftest.$ac_objext conftest$ac_exeext
8487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8488  (eval $ac_link) 2>conftest.er1
8489  ac_status=$?
8490  grep -v '^ *+' conftest.er1 >conftest.err
8491  rm -f conftest.er1
8492  cat conftest.err >&5
8493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494  (exit $ac_status); } &&
8495	 { ac_try='test -z "$ac_c_werror_flag"
8496			 || test ! -s conftest.err'
8497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498  (eval $ac_try) 2>&5
8499  ac_status=$?
8500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501  (exit $ac_status); }; } &&
8502	 { ac_try='test -s conftest$ac_exeext'
8503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504  (eval $ac_try) 2>&5
8505  ac_status=$?
8506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507  (exit $ac_status); }; }; then
8508  ac_cv_lib_Xp_XpEndJob=yes
8509else
8510  echo "$as_me: failed program was:" >&5
8511sed 's/^/| /' conftest.$ac_ext >&5
8512
8513ac_cv_lib_Xp_XpEndJob=no
8514fi
8515rm -f conftest.err conftest.$ac_objext \
8516      conftest$ac_exeext conftest.$ac_ext
8517LIBS=$ac_check_lib_save_LIBS
8518fi
8519echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
8520echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6
8521if test $ac_cv_lib_Xp_XpEndJob = yes; then
8522  GUI_X_LIBS="-lXp $GUI_X_LIBS"
8523fi
8524
8525  fi
8526  LDFLAGS=$ldflags_save
8527
8528    echo "$as_me:$LINENO: checking for extra X11 defines" >&5
8529echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6
8530  NARROW_PROTO=
8531  rm -fr conftestdir
8532  if mkdir conftestdir; then
8533    cd conftestdir
8534    cat > Imakefile <<'EOF'
8535acfindx:
8536	@echo 'NARROW_PROTO="${PROTO_DEFINES}"'
8537EOF
8538    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8539      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8540    fi
8541    cd ..
8542    rm -fr conftestdir
8543  fi
8544  if test -z "$NARROW_PROTO"; then
8545    echo "$as_me:$LINENO: result: no" >&5
8546echo "${ECHO_T}no" >&6
8547  else
8548    echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
8549echo "${ECHO_T}$NARROW_PROTO" >&6
8550  fi
8551
8552fi
8553
8554if test "$enable_xsmp" = "yes"; then
8555  cppflags_save=$CPPFLAGS
8556  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8557
8558for ac_header in X11/SM/SMlib.h
8559do
8560as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8561if eval "test \"\${$as_ac_Header+set}\" = set"; then
8562  echo "$as_me:$LINENO: checking for $ac_header" >&5
8563echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8564if eval "test \"\${$as_ac_Header+set}\" = set"; then
8565  echo $ECHO_N "(cached) $ECHO_C" >&6
8566fi
8567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8568echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8569else
8570  # Is the header compilable?
8571echo "$as_me:$LINENO: checking $ac_header usability" >&5
8572echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8573cat >conftest.$ac_ext <<_ACEOF
8574/* confdefs.h.  */
8575_ACEOF
8576cat confdefs.h >>conftest.$ac_ext
8577cat >>conftest.$ac_ext <<_ACEOF
8578/* end confdefs.h.  */
8579$ac_includes_default
8580#include <$ac_header>
8581_ACEOF
8582rm -f conftest.$ac_objext
8583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8584  (eval $ac_compile) 2>conftest.er1
8585  ac_status=$?
8586  grep -v '^ *+' conftest.er1 >conftest.err
8587  rm -f conftest.er1
8588  cat conftest.err >&5
8589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590  (exit $ac_status); } &&
8591	 { ac_try='test -z "$ac_c_werror_flag"
8592			 || test ! -s conftest.err'
8593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594  (eval $ac_try) 2>&5
8595  ac_status=$?
8596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597  (exit $ac_status); }; } &&
8598	 { ac_try='test -s conftest.$ac_objext'
8599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600  (eval $ac_try) 2>&5
8601  ac_status=$?
8602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603  (exit $ac_status); }; }; then
8604  ac_header_compiler=yes
8605else
8606  echo "$as_me: failed program was:" >&5
8607sed 's/^/| /' conftest.$ac_ext >&5
8608
8609ac_header_compiler=no
8610fi
8611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8612echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8613echo "${ECHO_T}$ac_header_compiler" >&6
8614
8615# Is the header present?
8616echo "$as_me:$LINENO: checking $ac_header presence" >&5
8617echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8618cat >conftest.$ac_ext <<_ACEOF
8619/* confdefs.h.  */
8620_ACEOF
8621cat confdefs.h >>conftest.$ac_ext
8622cat >>conftest.$ac_ext <<_ACEOF
8623/* end confdefs.h.  */
8624#include <$ac_header>
8625_ACEOF
8626if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8627  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8628  ac_status=$?
8629  grep -v '^ *+' conftest.er1 >conftest.err
8630  rm -f conftest.er1
8631  cat conftest.err >&5
8632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633  (exit $ac_status); } >/dev/null; then
8634  if test -s conftest.err; then
8635    ac_cpp_err=$ac_c_preproc_warn_flag
8636    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8637  else
8638    ac_cpp_err=
8639  fi
8640else
8641  ac_cpp_err=yes
8642fi
8643if test -z "$ac_cpp_err"; then
8644  ac_header_preproc=yes
8645else
8646  echo "$as_me: failed program was:" >&5
8647sed 's/^/| /' conftest.$ac_ext >&5
8648
8649  ac_header_preproc=no
8650fi
8651rm -f conftest.err conftest.$ac_ext
8652echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8653echo "${ECHO_T}$ac_header_preproc" >&6
8654
8655# So?  What about this header?
8656case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8657  yes:no: )
8658    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8659echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8660    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8661echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8662    ac_header_preproc=yes
8663    ;;
8664  no:yes:* )
8665    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8666echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8667    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8668echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8669    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8670echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8671    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8672echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8673    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8674echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8675    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8676echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8677    (
8678      cat <<\_ASBOX
8679## ------------------------------------------ ##
8680## Report this to the AC_PACKAGE_NAME lists.  ##
8681## ------------------------------------------ ##
8682_ASBOX
8683    ) |
8684      sed "s/^/$as_me: WARNING:     /" >&2
8685    ;;
8686esac
8687echo "$as_me:$LINENO: checking for $ac_header" >&5
8688echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8689if eval "test \"\${$as_ac_Header+set}\" = set"; then
8690  echo $ECHO_N "(cached) $ECHO_C" >&6
8691else
8692  eval "$as_ac_Header=\$ac_header_preproc"
8693fi
8694echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8695echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8696
8697fi
8698if test `eval echo '${'$as_ac_Header'}'` = yes; then
8699  cat >>confdefs.h <<_ACEOF
8700#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8701_ACEOF
8702
8703fi
8704
8705done
8706
8707  CPPFLAGS=$cppflags_save
8708fi
8709
8710
8711if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
8712    cppflags_save=$CPPFLAGS
8713  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8714
8715
8716for ac_header in X11/xpm.h X11/Sunkeysym.h
8717do
8718as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8719if eval "test \"\${$as_ac_Header+set}\" = set"; then
8720  echo "$as_me:$LINENO: checking for $ac_header" >&5
8721echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8722if eval "test \"\${$as_ac_Header+set}\" = set"; then
8723  echo $ECHO_N "(cached) $ECHO_C" >&6
8724fi
8725echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8726echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8727else
8728  # Is the header compilable?
8729echo "$as_me:$LINENO: checking $ac_header usability" >&5
8730echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8731cat >conftest.$ac_ext <<_ACEOF
8732/* confdefs.h.  */
8733_ACEOF
8734cat confdefs.h >>conftest.$ac_ext
8735cat >>conftest.$ac_ext <<_ACEOF
8736/* end confdefs.h.  */
8737$ac_includes_default
8738#include <$ac_header>
8739_ACEOF
8740rm -f conftest.$ac_objext
8741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8742  (eval $ac_compile) 2>conftest.er1
8743  ac_status=$?
8744  grep -v '^ *+' conftest.er1 >conftest.err
8745  rm -f conftest.er1
8746  cat conftest.err >&5
8747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748  (exit $ac_status); } &&
8749	 { ac_try='test -z "$ac_c_werror_flag"
8750			 || test ! -s conftest.err'
8751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8752  (eval $ac_try) 2>&5
8753  ac_status=$?
8754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755  (exit $ac_status); }; } &&
8756	 { ac_try='test -s conftest.$ac_objext'
8757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8758  (eval $ac_try) 2>&5
8759  ac_status=$?
8760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761  (exit $ac_status); }; }; then
8762  ac_header_compiler=yes
8763else
8764  echo "$as_me: failed program was:" >&5
8765sed 's/^/| /' conftest.$ac_ext >&5
8766
8767ac_header_compiler=no
8768fi
8769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8770echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8771echo "${ECHO_T}$ac_header_compiler" >&6
8772
8773# Is the header present?
8774echo "$as_me:$LINENO: checking $ac_header presence" >&5
8775echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8776cat >conftest.$ac_ext <<_ACEOF
8777/* confdefs.h.  */
8778_ACEOF
8779cat confdefs.h >>conftest.$ac_ext
8780cat >>conftest.$ac_ext <<_ACEOF
8781/* end confdefs.h.  */
8782#include <$ac_header>
8783_ACEOF
8784if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8785  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8786  ac_status=$?
8787  grep -v '^ *+' conftest.er1 >conftest.err
8788  rm -f conftest.er1
8789  cat conftest.err >&5
8790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791  (exit $ac_status); } >/dev/null; then
8792  if test -s conftest.err; then
8793    ac_cpp_err=$ac_c_preproc_warn_flag
8794    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8795  else
8796    ac_cpp_err=
8797  fi
8798else
8799  ac_cpp_err=yes
8800fi
8801if test -z "$ac_cpp_err"; then
8802  ac_header_preproc=yes
8803else
8804  echo "$as_me: failed program was:" >&5
8805sed 's/^/| /' conftest.$ac_ext >&5
8806
8807  ac_header_preproc=no
8808fi
8809rm -f conftest.err conftest.$ac_ext
8810echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8811echo "${ECHO_T}$ac_header_preproc" >&6
8812
8813# So?  What about this header?
8814case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8815  yes:no: )
8816    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8817echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8818    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8819echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8820    ac_header_preproc=yes
8821    ;;
8822  no:yes:* )
8823    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8824echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8825    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8826echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8827    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8828echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8829    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8830echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8831    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8832echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8833    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8834echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8835    (
8836      cat <<\_ASBOX
8837## ------------------------------------------ ##
8838## Report this to the AC_PACKAGE_NAME lists.  ##
8839## ------------------------------------------ ##
8840_ASBOX
8841    ) |
8842      sed "s/^/$as_me: WARNING:     /" >&2
8843    ;;
8844esac
8845echo "$as_me:$LINENO: checking for $ac_header" >&5
8846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8847if eval "test \"\${$as_ac_Header+set}\" = set"; then
8848  echo $ECHO_N "(cached) $ECHO_C" >&6
8849else
8850  eval "$as_ac_Header=\$ac_header_preproc"
8851fi
8852echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8853echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8854
8855fi
8856if test `eval echo '${'$as_ac_Header'}'` = yes; then
8857  cat >>confdefs.h <<_ACEOF
8858#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8859_ACEOF
8860
8861fi
8862
8863done
8864
8865
8866    if test ! "$enable_xim" = "no"; then
8867    echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
8868echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6
8869    cat >conftest.$ac_ext <<_ACEOF
8870/* confdefs.h.  */
8871_ACEOF
8872cat confdefs.h >>conftest.$ac_ext
8873cat >>conftest.$ac_ext <<_ACEOF
8874/* end confdefs.h.  */
8875#include <X11/Xlib.h>
8876_ACEOF
8877if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8878  $EGREP "XIMText" >/dev/null 2>&1; then
8879  echo "$as_me:$LINENO: result: yes" >&5
8880echo "${ECHO_T}yes" >&6
8881else
8882  echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
8883echo "${ECHO_T}no; xim has been disabled" >&6; enable_xim = "no"
8884fi
8885rm -f conftest*
8886
8887  fi
8888  CPPFLAGS=$cppflags_save
8889
8890    if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
8891		-a "x$GUITYPE" != "xNONE" ; then
8892    echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
8893echo "${ECHO_T}X GUI selected; xim has been enabled" >&6
8894    enable_xim="yes"
8895  fi
8896fi
8897
8898if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8899  cppflags_save=$CPPFLAGS
8900  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8901  echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
8902echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6
8903  cat >conftest.$ac_ext <<_ACEOF
8904/* confdefs.h.  */
8905_ACEOF
8906cat confdefs.h >>conftest.$ac_ext
8907cat >>conftest.$ac_ext <<_ACEOF
8908/* end confdefs.h.  */
8909
8910#include <X11/Intrinsic.h>
8911#include <X11/Xmu/Editres.h>
8912int
8913main ()
8914{
8915int i; i = 0;
8916  ;
8917  return 0;
8918}
8919_ACEOF
8920rm -f conftest.$ac_objext
8921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8922  (eval $ac_compile) 2>conftest.er1
8923  ac_status=$?
8924  grep -v '^ *+' conftest.er1 >conftest.err
8925  rm -f conftest.er1
8926  cat conftest.err >&5
8927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928  (exit $ac_status); } &&
8929	 { ac_try='test -z "$ac_c_werror_flag"
8930			 || test ! -s conftest.err'
8931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932  (eval $ac_try) 2>&5
8933  ac_status=$?
8934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935  (exit $ac_status); }; } &&
8936	 { ac_try='test -s conftest.$ac_objext'
8937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938  (eval $ac_try) 2>&5
8939  ac_status=$?
8940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941  (exit $ac_status); }; }; then
8942  echo "$as_me:$LINENO: result: yes" >&5
8943echo "${ECHO_T}yes" >&6
8944		      cat >>confdefs.h <<\_ACEOF
8945#define HAVE_X11_XMU_EDITRES_H 1
8946_ACEOF
8947
8948else
8949  echo "$as_me: failed program was:" >&5
8950sed 's/^/| /' conftest.$ac_ext >&5
8951
8952echo "$as_me:$LINENO: result: no" >&5
8953echo "${ECHO_T}no" >&6
8954fi
8955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8956  CPPFLAGS=$cppflags_save
8957fi
8958
8959if test -z "$SKIP_MOTIF"; then
8960  cppflags_save=$CPPFLAGS
8961  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8962
8963
8964
8965
8966
8967
8968for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
8969		   Xm/UnhighlightT.h
8970do
8971as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8972if eval "test \"\${$as_ac_Header+set}\" = set"; then
8973  echo "$as_me:$LINENO: checking for $ac_header" >&5
8974echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8975if eval "test \"\${$as_ac_Header+set}\" = set"; then
8976  echo $ECHO_N "(cached) $ECHO_C" >&6
8977fi
8978echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8979echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8980else
8981  # Is the header compilable?
8982echo "$as_me:$LINENO: checking $ac_header usability" >&5
8983echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8984cat >conftest.$ac_ext <<_ACEOF
8985/* confdefs.h.  */
8986_ACEOF
8987cat confdefs.h >>conftest.$ac_ext
8988cat >>conftest.$ac_ext <<_ACEOF
8989/* end confdefs.h.  */
8990$ac_includes_default
8991#include <$ac_header>
8992_ACEOF
8993rm -f conftest.$ac_objext
8994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8995  (eval $ac_compile) 2>conftest.er1
8996  ac_status=$?
8997  grep -v '^ *+' conftest.er1 >conftest.err
8998  rm -f conftest.er1
8999  cat conftest.err >&5
9000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001  (exit $ac_status); } &&
9002	 { ac_try='test -z "$ac_c_werror_flag"
9003			 || test ! -s conftest.err'
9004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005  (eval $ac_try) 2>&5
9006  ac_status=$?
9007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008  (exit $ac_status); }; } &&
9009	 { ac_try='test -s conftest.$ac_objext'
9010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011  (eval $ac_try) 2>&5
9012  ac_status=$?
9013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014  (exit $ac_status); }; }; then
9015  ac_header_compiler=yes
9016else
9017  echo "$as_me: failed program was:" >&5
9018sed 's/^/| /' conftest.$ac_ext >&5
9019
9020ac_header_compiler=no
9021fi
9022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9023echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9024echo "${ECHO_T}$ac_header_compiler" >&6
9025
9026# Is the header present?
9027echo "$as_me:$LINENO: checking $ac_header presence" >&5
9028echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9029cat >conftest.$ac_ext <<_ACEOF
9030/* confdefs.h.  */
9031_ACEOF
9032cat confdefs.h >>conftest.$ac_ext
9033cat >>conftest.$ac_ext <<_ACEOF
9034/* end confdefs.h.  */
9035#include <$ac_header>
9036_ACEOF
9037if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9038  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9039  ac_status=$?
9040  grep -v '^ *+' conftest.er1 >conftest.err
9041  rm -f conftest.er1
9042  cat conftest.err >&5
9043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044  (exit $ac_status); } >/dev/null; then
9045  if test -s conftest.err; then
9046    ac_cpp_err=$ac_c_preproc_warn_flag
9047    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9048  else
9049    ac_cpp_err=
9050  fi
9051else
9052  ac_cpp_err=yes
9053fi
9054if test -z "$ac_cpp_err"; then
9055  ac_header_preproc=yes
9056else
9057  echo "$as_me: failed program was:" >&5
9058sed 's/^/| /' conftest.$ac_ext >&5
9059
9060  ac_header_preproc=no
9061fi
9062rm -f conftest.err conftest.$ac_ext
9063echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9064echo "${ECHO_T}$ac_header_preproc" >&6
9065
9066# So?  What about this header?
9067case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9068  yes:no: )
9069    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9070echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9071    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9072echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9073    ac_header_preproc=yes
9074    ;;
9075  no:yes:* )
9076    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9077echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9078    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9079echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9080    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9081echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9082    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9083echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9084    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9085echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9086    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9087echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9088    (
9089      cat <<\_ASBOX
9090## ------------------------------------------ ##
9091## Report this to the AC_PACKAGE_NAME lists.  ##
9092## ------------------------------------------ ##
9093_ASBOX
9094    ) |
9095      sed "s/^/$as_me: WARNING:     /" >&2
9096    ;;
9097esac
9098echo "$as_me:$LINENO: checking for $ac_header" >&5
9099echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9100if eval "test \"\${$as_ac_Header+set}\" = set"; then
9101  echo $ECHO_N "(cached) $ECHO_C" >&6
9102else
9103  eval "$as_ac_Header=\$ac_header_preproc"
9104fi
9105echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9106echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9107
9108fi
9109if test `eval echo '${'$as_ac_Header'}'` = yes; then
9110  cat >>confdefs.h <<_ACEOF
9111#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9112_ACEOF
9113
9114fi
9115
9116done
9117
9118  CPPFLAGS=$cppflags_save
9119fi
9120
9121if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
9122  echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
9123echo "${ECHO_T}no GUI selected; xim has been disabled" >&6
9124  enable_xim="no"
9125fi
9126if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
9127  echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
9128echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6
9129  enable_fontset="no"
9130fi
9131if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
9132  echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
9133echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6
9134  enable_fontset="no"
9135fi
9136
9137if test -z "$SKIP_PHOTON"; then
9138  GUITYPE=PHOTONGUI
9139fi
9140
9141
9142
9143
9144
9145
9146if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
9147  { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
9148echo "$as_me: error: cannot use workshop without Motif" >&2;}
9149   { (exit 1); exit 1; }; }
9150fi
9151
9152if test "$enable_xim" = "yes"; then
9153  cat >>confdefs.h <<\_ACEOF
9154#define FEAT_XIM 1
9155_ACEOF
9156
9157fi
9158if test "$enable_fontset" = "yes"; then
9159  cat >>confdefs.h <<\_ACEOF
9160#define FEAT_XFONTSET 1
9161_ACEOF
9162
9163fi
9164
9165
9166
9167
9168if test "$enable_hangulinput" = "yes"; then
9169  if test "x$GUITYPE" = "xNONE"; then
9170    echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
9171echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6
9172    enable_hangulinput=no
9173  else
9174    cat >>confdefs.h <<\_ACEOF
9175#define FEAT_HANGULIN 1
9176_ACEOF
9177
9178    HANGULIN_SRC=hangulin.c
9179
9180    HANGULIN_OBJ=objects/hangulin.o
9181
9182  fi
9183fi
9184
9185
9186echo "$as_me:$LINENO: checking quality of toupper" >&5
9187echo $ECHO_N "checking quality of toupper... $ECHO_C" >&6
9188if test "$cross_compiling" = yes; then
9189  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
9190echo "$as_me: error: failed to compile test program" >&2;}
9191   { (exit 1); exit 1; }; }
9192else
9193  cat >conftest.$ac_ext <<_ACEOF
9194/* confdefs.h.  */
9195_ACEOF
9196cat confdefs.h >>conftest.$ac_ext
9197cat >>conftest.$ac_ext <<_ACEOF
9198/* end confdefs.h.  */
9199#include <ctype.h>
9200main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
9201_ACEOF
9202rm -f conftest$ac_exeext
9203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9204  (eval $ac_link) 2>&5
9205  ac_status=$?
9206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9209  (eval $ac_try) 2>&5
9210  ac_status=$?
9211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212  (exit $ac_status); }; }; then
9213  cat >>confdefs.h <<\_ACEOF
9214#define BROKEN_TOUPPER 1
9215_ACEOF
9216 echo "$as_me:$LINENO: result: bad" >&5
9217echo "${ECHO_T}bad" >&6
9218else
9219  echo "$as_me: program exited with status $ac_status" >&5
9220echo "$as_me: failed program was:" >&5
9221sed 's/^/| /' conftest.$ac_ext >&5
9222
9223( exit $ac_status )
9224echo "$as_me:$LINENO: result: good" >&5
9225echo "${ECHO_T}good" >&6
9226fi
9227rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9228fi
9229
9230echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
9231echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6
9232cat >conftest.$ac_ext <<_ACEOF
9233/* confdefs.h.  */
9234_ACEOF
9235cat confdefs.h >>conftest.$ac_ext
9236cat >>conftest.$ac_ext <<_ACEOF
9237/* end confdefs.h.  */
9238
9239int
9240main ()
9241{
9242printf("(" __DATE__ " " __TIME__ ")");
9243  ;
9244  return 0;
9245}
9246_ACEOF
9247rm -f conftest.$ac_objext
9248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9249  (eval $ac_compile) 2>conftest.er1
9250  ac_status=$?
9251  grep -v '^ *+' conftest.er1 >conftest.err
9252  rm -f conftest.er1
9253  cat conftest.err >&5
9254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255  (exit $ac_status); } &&
9256	 { ac_try='test -z "$ac_c_werror_flag"
9257			 || test ! -s conftest.err'
9258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9259  (eval $ac_try) 2>&5
9260  ac_status=$?
9261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262  (exit $ac_status); }; } &&
9263	 { ac_try='test -s conftest.$ac_objext'
9264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9265  (eval $ac_try) 2>&5
9266  ac_status=$?
9267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268  (exit $ac_status); }; }; then
9269  echo "$as_me:$LINENO: result: yes" >&5
9270echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
9271#define HAVE_DATE_TIME 1
9272_ACEOF
9273
9274else
9275  echo "$as_me: failed program was:" >&5
9276sed 's/^/| /' conftest.$ac_ext >&5
9277
9278echo "$as_me:$LINENO: result: no" >&5
9279echo "${ECHO_T}no" >&6
9280fi
9281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9282
9283if test "${ac_cv_header_elf_h+set}" = set; then
9284  echo "$as_me:$LINENO: checking for elf.h" >&5
9285echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9286if test "${ac_cv_header_elf_h+set}" = set; then
9287  echo $ECHO_N "(cached) $ECHO_C" >&6
9288fi
9289echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9290echo "${ECHO_T}$ac_cv_header_elf_h" >&6
9291else
9292  # Is the header compilable?
9293echo "$as_me:$LINENO: checking elf.h usability" >&5
9294echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6
9295cat >conftest.$ac_ext <<_ACEOF
9296/* confdefs.h.  */
9297_ACEOF
9298cat confdefs.h >>conftest.$ac_ext
9299cat >>conftest.$ac_ext <<_ACEOF
9300/* end confdefs.h.  */
9301$ac_includes_default
9302#include <elf.h>
9303_ACEOF
9304rm -f conftest.$ac_objext
9305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9306  (eval $ac_compile) 2>conftest.er1
9307  ac_status=$?
9308  grep -v '^ *+' conftest.er1 >conftest.err
9309  rm -f conftest.er1
9310  cat conftest.err >&5
9311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312  (exit $ac_status); } &&
9313	 { ac_try='test -z "$ac_c_werror_flag"
9314			 || test ! -s conftest.err'
9315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9316  (eval $ac_try) 2>&5
9317  ac_status=$?
9318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319  (exit $ac_status); }; } &&
9320	 { ac_try='test -s conftest.$ac_objext'
9321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322  (eval $ac_try) 2>&5
9323  ac_status=$?
9324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325  (exit $ac_status); }; }; then
9326  ac_header_compiler=yes
9327else
9328  echo "$as_me: failed program was:" >&5
9329sed 's/^/| /' conftest.$ac_ext >&5
9330
9331ac_header_compiler=no
9332fi
9333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9334echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9335echo "${ECHO_T}$ac_header_compiler" >&6
9336
9337# Is the header present?
9338echo "$as_me:$LINENO: checking elf.h presence" >&5
9339echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6
9340cat >conftest.$ac_ext <<_ACEOF
9341/* confdefs.h.  */
9342_ACEOF
9343cat confdefs.h >>conftest.$ac_ext
9344cat >>conftest.$ac_ext <<_ACEOF
9345/* end confdefs.h.  */
9346#include <elf.h>
9347_ACEOF
9348if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9349  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9350  ac_status=$?
9351  grep -v '^ *+' conftest.er1 >conftest.err
9352  rm -f conftest.er1
9353  cat conftest.err >&5
9354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355  (exit $ac_status); } >/dev/null; then
9356  if test -s conftest.err; then
9357    ac_cpp_err=$ac_c_preproc_warn_flag
9358    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9359  else
9360    ac_cpp_err=
9361  fi
9362else
9363  ac_cpp_err=yes
9364fi
9365if test -z "$ac_cpp_err"; then
9366  ac_header_preproc=yes
9367else
9368  echo "$as_me: failed program was:" >&5
9369sed 's/^/| /' conftest.$ac_ext >&5
9370
9371  ac_header_preproc=no
9372fi
9373rm -f conftest.err conftest.$ac_ext
9374echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9375echo "${ECHO_T}$ac_header_preproc" >&6
9376
9377# So?  What about this header?
9378case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9379  yes:no: )
9380    { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
9381echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9382    { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
9383echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
9384    ac_header_preproc=yes
9385    ;;
9386  no:yes:* )
9387    { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
9388echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
9389    { echo "$as_me:$LINENO: WARNING: elf.h:     check for missing prerequisite headers?" >&5
9390echo "$as_me: WARNING: elf.h:     check for missing prerequisite headers?" >&2;}
9391    { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
9392echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
9393    { echo "$as_me:$LINENO: WARNING: elf.h:     section \"Present But Cannot Be Compiled\"" >&5
9394echo "$as_me: WARNING: elf.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9395    { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
9396echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
9397    { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
9398echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
9399    (
9400      cat <<\_ASBOX
9401## ------------------------------------------ ##
9402## Report this to the AC_PACKAGE_NAME lists.  ##
9403## ------------------------------------------ ##
9404_ASBOX
9405    ) |
9406      sed "s/^/$as_me: WARNING:     /" >&2
9407    ;;
9408esac
9409echo "$as_me:$LINENO: checking for elf.h" >&5
9410echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9411if test "${ac_cv_header_elf_h+set}" = set; then
9412  echo $ECHO_N "(cached) $ECHO_C" >&6
9413else
9414  ac_cv_header_elf_h=$ac_header_preproc
9415fi
9416echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9417echo "${ECHO_T}$ac_cv_header_elf_h" >&6
9418
9419fi
9420if test $ac_cv_header_elf_h = yes; then
9421  HAS_ELF=1
9422fi
9423
9424
9425if test "$HAS_ELF" = 1; then
9426
9427echo "$as_me:$LINENO: checking for main in -lelf" >&5
9428echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6
9429if test "${ac_cv_lib_elf_main+set}" = set; then
9430  echo $ECHO_N "(cached) $ECHO_C" >&6
9431else
9432  ac_check_lib_save_LIBS=$LIBS
9433LIBS="-lelf  $LIBS"
9434cat >conftest.$ac_ext <<_ACEOF
9435/* confdefs.h.  */
9436_ACEOF
9437cat confdefs.h >>conftest.$ac_ext
9438cat >>conftest.$ac_ext <<_ACEOF
9439/* end confdefs.h.  */
9440
9441
9442int
9443main ()
9444{
9445main ();
9446  ;
9447  return 0;
9448}
9449_ACEOF
9450rm -f conftest.$ac_objext conftest$ac_exeext
9451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9452  (eval $ac_link) 2>conftest.er1
9453  ac_status=$?
9454  grep -v '^ *+' conftest.er1 >conftest.err
9455  rm -f conftest.er1
9456  cat conftest.err >&5
9457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458  (exit $ac_status); } &&
9459	 { ac_try='test -z "$ac_c_werror_flag"
9460			 || test ! -s conftest.err'
9461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9462  (eval $ac_try) 2>&5
9463  ac_status=$?
9464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465  (exit $ac_status); }; } &&
9466	 { ac_try='test -s conftest$ac_exeext'
9467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9468  (eval $ac_try) 2>&5
9469  ac_status=$?
9470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471  (exit $ac_status); }; }; then
9472  ac_cv_lib_elf_main=yes
9473else
9474  echo "$as_me: failed program was:" >&5
9475sed 's/^/| /' conftest.$ac_ext >&5
9476
9477ac_cv_lib_elf_main=no
9478fi
9479rm -f conftest.err conftest.$ac_objext \
9480      conftest$ac_exeext conftest.$ac_ext
9481LIBS=$ac_check_lib_save_LIBS
9482fi
9483echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
9484echo "${ECHO_T}$ac_cv_lib_elf_main" >&6
9485if test $ac_cv_lib_elf_main = yes; then
9486  cat >>confdefs.h <<_ACEOF
9487#define HAVE_LIBELF 1
9488_ACEOF
9489
9490  LIBS="-lelf $LIBS"
9491
9492fi
9493
9494fi
9495
9496
9497
9498
9499
9500
9501ac_header_dirent=no
9502for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9503  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9504echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9505echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9506if eval "test \"\${$as_ac_Header+set}\" = set"; then
9507  echo $ECHO_N "(cached) $ECHO_C" >&6
9508else
9509  cat >conftest.$ac_ext <<_ACEOF
9510/* confdefs.h.  */
9511_ACEOF
9512cat confdefs.h >>conftest.$ac_ext
9513cat >>conftest.$ac_ext <<_ACEOF
9514/* end confdefs.h.  */
9515#include <sys/types.h>
9516#include <$ac_hdr>
9517
9518int
9519main ()
9520{
9521if ((DIR *) 0)
9522return 0;
9523  ;
9524  return 0;
9525}
9526_ACEOF
9527rm -f conftest.$ac_objext
9528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9529  (eval $ac_compile) 2>conftest.er1
9530  ac_status=$?
9531  grep -v '^ *+' conftest.er1 >conftest.err
9532  rm -f conftest.er1
9533  cat conftest.err >&5
9534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535  (exit $ac_status); } &&
9536	 { ac_try='test -z "$ac_c_werror_flag"
9537			 || test ! -s conftest.err'
9538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539  (eval $ac_try) 2>&5
9540  ac_status=$?
9541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542  (exit $ac_status); }; } &&
9543	 { ac_try='test -s conftest.$ac_objext'
9544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545  (eval $ac_try) 2>&5
9546  ac_status=$?
9547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548  (exit $ac_status); }; }; then
9549  eval "$as_ac_Header=yes"
9550else
9551  echo "$as_me: failed program was:" >&5
9552sed 's/^/| /' conftest.$ac_ext >&5
9553
9554eval "$as_ac_Header=no"
9555fi
9556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9557fi
9558echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9559echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9560if test `eval echo '${'$as_ac_Header'}'` = yes; then
9561  cat >>confdefs.h <<_ACEOF
9562#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9563_ACEOF
9564
9565ac_header_dirent=$ac_hdr; break
9566fi
9567
9568done
9569# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9570if test $ac_header_dirent = dirent.h; then
9571  echo "$as_me:$LINENO: checking for library containing opendir" >&5
9572echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9573if test "${ac_cv_search_opendir+set}" = set; then
9574  echo $ECHO_N "(cached) $ECHO_C" >&6
9575else
9576  ac_func_search_save_LIBS=$LIBS
9577ac_cv_search_opendir=no
9578cat >conftest.$ac_ext <<_ACEOF
9579/* confdefs.h.  */
9580_ACEOF
9581cat confdefs.h >>conftest.$ac_ext
9582cat >>conftest.$ac_ext <<_ACEOF
9583/* end confdefs.h.  */
9584
9585/* Override any gcc2 internal prototype to avoid an error.  */
9586#ifdef __cplusplus
9587extern "C"
9588#endif
9589/* We use char because int might match the return type of a gcc2
9590   builtin and then its argument prototype would still apply.  */
9591char opendir ();
9592int
9593main ()
9594{
9595opendir ();
9596  ;
9597  return 0;
9598}
9599_ACEOF
9600rm -f conftest.$ac_objext conftest$ac_exeext
9601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9602  (eval $ac_link) 2>conftest.er1
9603  ac_status=$?
9604  grep -v '^ *+' conftest.er1 >conftest.err
9605  rm -f conftest.er1
9606  cat conftest.err >&5
9607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608  (exit $ac_status); } &&
9609	 { ac_try='test -z "$ac_c_werror_flag"
9610			 || test ! -s conftest.err'
9611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9612  (eval $ac_try) 2>&5
9613  ac_status=$?
9614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615  (exit $ac_status); }; } &&
9616	 { ac_try='test -s conftest$ac_exeext'
9617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9618  (eval $ac_try) 2>&5
9619  ac_status=$?
9620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621  (exit $ac_status); }; }; then
9622  ac_cv_search_opendir="none required"
9623else
9624  echo "$as_me: failed program was:" >&5
9625sed 's/^/| /' conftest.$ac_ext >&5
9626
9627fi
9628rm -f conftest.err conftest.$ac_objext \
9629      conftest$ac_exeext conftest.$ac_ext
9630if test "$ac_cv_search_opendir" = no; then
9631  for ac_lib in dir; do
9632    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9633    cat >conftest.$ac_ext <<_ACEOF
9634/* confdefs.h.  */
9635_ACEOF
9636cat confdefs.h >>conftest.$ac_ext
9637cat >>conftest.$ac_ext <<_ACEOF
9638/* end confdefs.h.  */
9639
9640/* Override any gcc2 internal prototype to avoid an error.  */
9641#ifdef __cplusplus
9642extern "C"
9643#endif
9644/* We use char because int might match the return type of a gcc2
9645   builtin and then its argument prototype would still apply.  */
9646char opendir ();
9647int
9648main ()
9649{
9650opendir ();
9651  ;
9652  return 0;
9653}
9654_ACEOF
9655rm -f conftest.$ac_objext conftest$ac_exeext
9656if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9657  (eval $ac_link) 2>conftest.er1
9658  ac_status=$?
9659  grep -v '^ *+' conftest.er1 >conftest.err
9660  rm -f conftest.er1
9661  cat conftest.err >&5
9662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663  (exit $ac_status); } &&
9664	 { ac_try='test -z "$ac_c_werror_flag"
9665			 || test ! -s conftest.err'
9666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9667  (eval $ac_try) 2>&5
9668  ac_status=$?
9669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670  (exit $ac_status); }; } &&
9671	 { ac_try='test -s conftest$ac_exeext'
9672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673  (eval $ac_try) 2>&5
9674  ac_status=$?
9675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676  (exit $ac_status); }; }; then
9677  ac_cv_search_opendir="-l$ac_lib"
9678break
9679else
9680  echo "$as_me: failed program was:" >&5
9681sed 's/^/| /' conftest.$ac_ext >&5
9682
9683fi
9684rm -f conftest.err conftest.$ac_objext \
9685      conftest$ac_exeext conftest.$ac_ext
9686  done
9687fi
9688LIBS=$ac_func_search_save_LIBS
9689fi
9690echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9691echo "${ECHO_T}$ac_cv_search_opendir" >&6
9692if test "$ac_cv_search_opendir" != no; then
9693  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9694
9695fi
9696
9697else
9698  echo "$as_me:$LINENO: checking for library containing opendir" >&5
9699echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9700if test "${ac_cv_search_opendir+set}" = set; then
9701  echo $ECHO_N "(cached) $ECHO_C" >&6
9702else
9703  ac_func_search_save_LIBS=$LIBS
9704ac_cv_search_opendir=no
9705cat >conftest.$ac_ext <<_ACEOF
9706/* confdefs.h.  */
9707_ACEOF
9708cat confdefs.h >>conftest.$ac_ext
9709cat >>conftest.$ac_ext <<_ACEOF
9710/* end confdefs.h.  */
9711
9712/* Override any gcc2 internal prototype to avoid an error.  */
9713#ifdef __cplusplus
9714extern "C"
9715#endif
9716/* We use char because int might match the return type of a gcc2
9717   builtin and then its argument prototype would still apply.  */
9718char opendir ();
9719int
9720main ()
9721{
9722opendir ();
9723  ;
9724  return 0;
9725}
9726_ACEOF
9727rm -f conftest.$ac_objext conftest$ac_exeext
9728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9729  (eval $ac_link) 2>conftest.er1
9730  ac_status=$?
9731  grep -v '^ *+' conftest.er1 >conftest.err
9732  rm -f conftest.er1
9733  cat conftest.err >&5
9734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735  (exit $ac_status); } &&
9736	 { ac_try='test -z "$ac_c_werror_flag"
9737			 || test ! -s conftest.err'
9738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9739  (eval $ac_try) 2>&5
9740  ac_status=$?
9741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742  (exit $ac_status); }; } &&
9743	 { ac_try='test -s conftest$ac_exeext'
9744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745  (eval $ac_try) 2>&5
9746  ac_status=$?
9747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748  (exit $ac_status); }; }; then
9749  ac_cv_search_opendir="none required"
9750else
9751  echo "$as_me: failed program was:" >&5
9752sed 's/^/| /' conftest.$ac_ext >&5
9753
9754fi
9755rm -f conftest.err conftest.$ac_objext \
9756      conftest$ac_exeext conftest.$ac_ext
9757if test "$ac_cv_search_opendir" = no; then
9758  for ac_lib in x; do
9759    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9760    cat >conftest.$ac_ext <<_ACEOF
9761/* confdefs.h.  */
9762_ACEOF
9763cat confdefs.h >>conftest.$ac_ext
9764cat >>conftest.$ac_ext <<_ACEOF
9765/* end confdefs.h.  */
9766
9767/* Override any gcc2 internal prototype to avoid an error.  */
9768#ifdef __cplusplus
9769extern "C"
9770#endif
9771/* We use char because int might match the return type of a gcc2
9772   builtin and then its argument prototype would still apply.  */
9773char opendir ();
9774int
9775main ()
9776{
9777opendir ();
9778  ;
9779  return 0;
9780}
9781_ACEOF
9782rm -f conftest.$ac_objext conftest$ac_exeext
9783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9784  (eval $ac_link) 2>conftest.er1
9785  ac_status=$?
9786  grep -v '^ *+' conftest.er1 >conftest.err
9787  rm -f conftest.er1
9788  cat conftest.err >&5
9789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790  (exit $ac_status); } &&
9791	 { ac_try='test -z "$ac_c_werror_flag"
9792			 || test ! -s conftest.err'
9793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9794  (eval $ac_try) 2>&5
9795  ac_status=$?
9796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797  (exit $ac_status); }; } &&
9798	 { ac_try='test -s conftest$ac_exeext'
9799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9800  (eval $ac_try) 2>&5
9801  ac_status=$?
9802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803  (exit $ac_status); }; }; then
9804  ac_cv_search_opendir="-l$ac_lib"
9805break
9806else
9807  echo "$as_me: failed program was:" >&5
9808sed 's/^/| /' conftest.$ac_ext >&5
9809
9810fi
9811rm -f conftest.err conftest.$ac_objext \
9812      conftest$ac_exeext conftest.$ac_ext
9813  done
9814fi
9815LIBS=$ac_func_search_save_LIBS
9816fi
9817echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9818echo "${ECHO_T}$ac_cv_search_opendir" >&6
9819if test "$ac_cv_search_opendir" != no; then
9820  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9821
9822fi
9823
9824fi
9825
9826
9827echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9828echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9829if test "${ac_cv_header_stdc+set}" = set; then
9830  echo $ECHO_N "(cached) $ECHO_C" >&6
9831else
9832  cat >conftest.$ac_ext <<_ACEOF
9833/* confdefs.h.  */
9834_ACEOF
9835cat confdefs.h >>conftest.$ac_ext
9836cat >>conftest.$ac_ext <<_ACEOF
9837/* end confdefs.h.  */
9838#include <stdlib.h>
9839#include <stdarg.h>
9840#include <string.h>
9841#include <float.h>
9842
9843int
9844main ()
9845{
9846
9847  ;
9848  return 0;
9849}
9850_ACEOF
9851rm -f conftest.$ac_objext
9852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9853  (eval $ac_compile) 2>conftest.er1
9854  ac_status=$?
9855  grep -v '^ *+' conftest.er1 >conftest.err
9856  rm -f conftest.er1
9857  cat conftest.err >&5
9858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859  (exit $ac_status); } &&
9860	 { ac_try='test -z "$ac_c_werror_flag"
9861			 || test ! -s conftest.err'
9862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863  (eval $ac_try) 2>&5
9864  ac_status=$?
9865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866  (exit $ac_status); }; } &&
9867	 { ac_try='test -s conftest.$ac_objext'
9868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869  (eval $ac_try) 2>&5
9870  ac_status=$?
9871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872  (exit $ac_status); }; }; then
9873  ac_cv_header_stdc=yes
9874else
9875  echo "$as_me: failed program was:" >&5
9876sed 's/^/| /' conftest.$ac_ext >&5
9877
9878ac_cv_header_stdc=no
9879fi
9880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9881
9882if test $ac_cv_header_stdc = yes; then
9883  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9884  cat >conftest.$ac_ext <<_ACEOF
9885/* confdefs.h.  */
9886_ACEOF
9887cat confdefs.h >>conftest.$ac_ext
9888cat >>conftest.$ac_ext <<_ACEOF
9889/* end confdefs.h.  */
9890#include <string.h>
9891
9892_ACEOF
9893if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9894  $EGREP "memchr" >/dev/null 2>&1; then
9895  :
9896else
9897  ac_cv_header_stdc=no
9898fi
9899rm -f conftest*
9900
9901fi
9902
9903if test $ac_cv_header_stdc = yes; then
9904  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9905  cat >conftest.$ac_ext <<_ACEOF
9906/* confdefs.h.  */
9907_ACEOF
9908cat confdefs.h >>conftest.$ac_ext
9909cat >>conftest.$ac_ext <<_ACEOF
9910/* end confdefs.h.  */
9911#include <stdlib.h>
9912
9913_ACEOF
9914if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9915  $EGREP "free" >/dev/null 2>&1; then
9916  :
9917else
9918  ac_cv_header_stdc=no
9919fi
9920rm -f conftest*
9921
9922fi
9923
9924if test $ac_cv_header_stdc = yes; then
9925  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9926  if test "$cross_compiling" = yes; then
9927  :
9928else
9929  cat >conftest.$ac_ext <<_ACEOF
9930/* confdefs.h.  */
9931_ACEOF
9932cat confdefs.h >>conftest.$ac_ext
9933cat >>conftest.$ac_ext <<_ACEOF
9934/* end confdefs.h.  */
9935#include <ctype.h>
9936#if ((' ' & 0x0FF) == 0x020)
9937# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9938# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9939#else
9940# define ISLOWER(c) \
9941		   (('a' <= (c) && (c) <= 'i') \
9942		     || ('j' <= (c) && (c) <= 'r') \
9943		     || ('s' <= (c) && (c) <= 'z'))
9944# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9945#endif
9946
9947#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9948int
9949main ()
9950{
9951  int i;
9952  for (i = 0; i < 256; i++)
9953    if (XOR (islower (i), ISLOWER (i))
9954	|| toupper (i) != TOUPPER (i))
9955      exit(2);
9956  exit (0);
9957}
9958_ACEOF
9959rm -f conftest$ac_exeext
9960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9961  (eval $ac_link) 2>&5
9962  ac_status=$?
9963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9966  (eval $ac_try) 2>&5
9967  ac_status=$?
9968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969  (exit $ac_status); }; }; then
9970  :
9971else
9972  echo "$as_me: program exited with status $ac_status" >&5
9973echo "$as_me: failed program was:" >&5
9974sed 's/^/| /' conftest.$ac_ext >&5
9975
9976( exit $ac_status )
9977ac_cv_header_stdc=no
9978fi
9979rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9980fi
9981fi
9982fi
9983echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9984echo "${ECHO_T}$ac_cv_header_stdc" >&6
9985if test $ac_cv_header_stdc = yes; then
9986
9987cat >>confdefs.h <<\_ACEOF
9988#define STDC_HEADERS 1
9989_ACEOF
9990
9991fi
9992
9993echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9994echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9995if test "${ac_cv_header_sys_wait_h+set}" = set; then
9996  echo $ECHO_N "(cached) $ECHO_C" >&6
9997else
9998  cat >conftest.$ac_ext <<_ACEOF
9999/* confdefs.h.  */
10000_ACEOF
10001cat confdefs.h >>conftest.$ac_ext
10002cat >>conftest.$ac_ext <<_ACEOF
10003/* end confdefs.h.  */
10004#include <sys/types.h>
10005#include <sys/wait.h>
10006#ifndef WEXITSTATUS
10007# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10008#endif
10009#ifndef WIFEXITED
10010# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10011#endif
10012
10013int
10014main ()
10015{
10016  int s;
10017  wait (&s);
10018  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10019  ;
10020  return 0;
10021}
10022_ACEOF
10023rm -f conftest.$ac_objext
10024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10025  (eval $ac_compile) 2>conftest.er1
10026  ac_status=$?
10027  grep -v '^ *+' conftest.er1 >conftest.err
10028  rm -f conftest.er1
10029  cat conftest.err >&5
10030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031  (exit $ac_status); } &&
10032	 { ac_try='test -z "$ac_c_werror_flag"
10033			 || test ! -s conftest.err'
10034  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035  (eval $ac_try) 2>&5
10036  ac_status=$?
10037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038  (exit $ac_status); }; } &&
10039	 { ac_try='test -s conftest.$ac_objext'
10040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041  (eval $ac_try) 2>&5
10042  ac_status=$?
10043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044  (exit $ac_status); }; }; then
10045  ac_cv_header_sys_wait_h=yes
10046else
10047  echo "$as_me: failed program was:" >&5
10048sed 's/^/| /' conftest.$ac_ext >&5
10049
10050ac_cv_header_sys_wait_h=no
10051fi
10052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10053fi
10054echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10055echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10056if test $ac_cv_header_sys_wait_h = yes; then
10057
10058cat >>confdefs.h <<\_ACEOF
10059#define HAVE_SYS_WAIT_H 1
10060_ACEOF
10061
10062fi
10063
10064
10065if test $ac_cv_header_sys_wait_h = no; then
10066  echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10067echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6
10068  cat >conftest.$ac_ext <<_ACEOF
10069/* confdefs.h.  */
10070_ACEOF
10071cat confdefs.h >>conftest.$ac_ext
10072cat >>conftest.$ac_ext <<_ACEOF
10073/* end confdefs.h.  */
10074#include <sys/wait.h>
10075int
10076main ()
10077{
10078union wait xx, yy; xx = yy
10079  ;
10080  return 0;
10081}
10082_ACEOF
10083rm -f conftest.$ac_objext
10084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10085  (eval $ac_compile) 2>conftest.er1
10086  ac_status=$?
10087  grep -v '^ *+' conftest.er1 >conftest.err
10088  rm -f conftest.er1
10089  cat conftest.err >&5
10090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091  (exit $ac_status); } &&
10092	 { ac_try='test -z "$ac_c_werror_flag"
10093			 || test ! -s conftest.err'
10094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10095  (eval $ac_try) 2>&5
10096  ac_status=$?
10097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098  (exit $ac_status); }; } &&
10099	 { ac_try='test -s conftest.$ac_objext'
10100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10101  (eval $ac_try) 2>&5
10102  ac_status=$?
10103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104  (exit $ac_status); }; }; then
10105  echo "$as_me:$LINENO: result: yes" >&5
10106echo "${ECHO_T}yes" >&6
10107			cat >>confdefs.h <<\_ACEOF
10108#define HAVE_SYS_WAIT_H 1
10109_ACEOF
10110
10111			cat >>confdefs.h <<\_ACEOF
10112#define HAVE_UNION_WAIT 1
10113_ACEOF
10114
10115else
10116  echo "$as_me: failed program was:" >&5
10117sed 's/^/| /' conftest.$ac_ext >&5
10118
10119echo "$as_me:$LINENO: result: no" >&5
10120echo "${ECHO_T}no" >&6
10121fi
10122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10123fi
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
10166	termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h \
10167	iconv.h langinfo.h unistd.h stropts.h errno.h \
10168	sys/resource.h sys/systeminfo.h locale.h \
10169	sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \
10170	poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
10171	libgen.h util/debug.h util/msg18n.h frame.h \
10172	sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h wctype.h
10173do
10174as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10175if eval "test \"\${$as_ac_Header+set}\" = set"; then
10176  echo "$as_me:$LINENO: checking for $ac_header" >&5
10177echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10178if eval "test \"\${$as_ac_Header+set}\" = set"; then
10179  echo $ECHO_N "(cached) $ECHO_C" >&6
10180fi
10181echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10182echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10183else
10184  # Is the header compilable?
10185echo "$as_me:$LINENO: checking $ac_header usability" >&5
10186echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10187cat >conftest.$ac_ext <<_ACEOF
10188/* confdefs.h.  */
10189_ACEOF
10190cat confdefs.h >>conftest.$ac_ext
10191cat >>conftest.$ac_ext <<_ACEOF
10192/* end confdefs.h.  */
10193$ac_includes_default
10194#include <$ac_header>
10195_ACEOF
10196rm -f conftest.$ac_objext
10197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10198  (eval $ac_compile) 2>conftest.er1
10199  ac_status=$?
10200  grep -v '^ *+' conftest.er1 >conftest.err
10201  rm -f conftest.er1
10202  cat conftest.err >&5
10203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204  (exit $ac_status); } &&
10205	 { ac_try='test -z "$ac_c_werror_flag"
10206			 || test ! -s conftest.err'
10207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208  (eval $ac_try) 2>&5
10209  ac_status=$?
10210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211  (exit $ac_status); }; } &&
10212	 { ac_try='test -s conftest.$ac_objext'
10213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10214  (eval $ac_try) 2>&5
10215  ac_status=$?
10216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217  (exit $ac_status); }; }; then
10218  ac_header_compiler=yes
10219else
10220  echo "$as_me: failed program was:" >&5
10221sed 's/^/| /' conftest.$ac_ext >&5
10222
10223ac_header_compiler=no
10224fi
10225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10226echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10227echo "${ECHO_T}$ac_header_compiler" >&6
10228
10229# Is the header present?
10230echo "$as_me:$LINENO: checking $ac_header presence" >&5
10231echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10232cat >conftest.$ac_ext <<_ACEOF
10233/* confdefs.h.  */
10234_ACEOF
10235cat confdefs.h >>conftest.$ac_ext
10236cat >>conftest.$ac_ext <<_ACEOF
10237/* end confdefs.h.  */
10238#include <$ac_header>
10239_ACEOF
10240if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10241  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10242  ac_status=$?
10243  grep -v '^ *+' conftest.er1 >conftest.err
10244  rm -f conftest.er1
10245  cat conftest.err >&5
10246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247  (exit $ac_status); } >/dev/null; then
10248  if test -s conftest.err; then
10249    ac_cpp_err=$ac_c_preproc_warn_flag
10250    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10251  else
10252    ac_cpp_err=
10253  fi
10254else
10255  ac_cpp_err=yes
10256fi
10257if test -z "$ac_cpp_err"; then
10258  ac_header_preproc=yes
10259else
10260  echo "$as_me: failed program was:" >&5
10261sed 's/^/| /' conftest.$ac_ext >&5
10262
10263  ac_header_preproc=no
10264fi
10265rm -f conftest.err conftest.$ac_ext
10266echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10267echo "${ECHO_T}$ac_header_preproc" >&6
10268
10269# So?  What about this header?
10270case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10271  yes:no: )
10272    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10273echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10274    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10275echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10276    ac_header_preproc=yes
10277    ;;
10278  no:yes:* )
10279    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10280echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10281    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10282echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10283    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10284echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10285    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10286echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10287    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10288echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10289    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10290echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10291    (
10292      cat <<\_ASBOX
10293## ------------------------------------------ ##
10294## Report this to the AC_PACKAGE_NAME lists.  ##
10295## ------------------------------------------ ##
10296_ASBOX
10297    ) |
10298      sed "s/^/$as_me: WARNING:     /" >&2
10299    ;;
10300esac
10301echo "$as_me:$LINENO: checking for $ac_header" >&5
10302echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10303if eval "test \"\${$as_ac_Header+set}\" = set"; then
10304  echo $ECHO_N "(cached) $ECHO_C" >&6
10305else
10306  eval "$as_ac_Header=\$ac_header_preproc"
10307fi
10308echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10309echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10310
10311fi
10312if test `eval echo '${'$as_ac_Header'}'` = yes; then
10313  cat >>confdefs.h <<_ACEOF
10314#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10315_ACEOF
10316
10317fi
10318
10319done
10320
10321
10322echo "$as_me:$LINENO: checking for pthread_np.h" >&5
10323echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6
10324cat >conftest.$ac_ext <<_ACEOF
10325/* confdefs.h.  */
10326_ACEOF
10327cat confdefs.h >>conftest.$ac_ext
10328cat >>conftest.$ac_ext <<_ACEOF
10329/* end confdefs.h.  */
10330
10331#include <pthread.h>
10332#include <pthread_np.h>
10333int
10334main ()
10335{
10336int i; i = 0;
10337  ;
10338  return 0;
10339}
10340_ACEOF
10341rm -f conftest.$ac_objext
10342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10343  (eval $ac_compile) 2>conftest.er1
10344  ac_status=$?
10345  grep -v '^ *+' conftest.er1 >conftest.err
10346  rm -f conftest.er1
10347  cat conftest.err >&5
10348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349  (exit $ac_status); } &&
10350	 { ac_try='test -z "$ac_c_werror_flag"
10351			 || test ! -s conftest.err'
10352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10353  (eval $ac_try) 2>&5
10354  ac_status=$?
10355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356  (exit $ac_status); }; } &&
10357	 { ac_try='test -s conftest.$ac_objext'
10358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359  (eval $ac_try) 2>&5
10360  ac_status=$?
10361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362  (exit $ac_status); }; }; then
10363  echo "$as_me:$LINENO: result: yes" >&5
10364echo "${ECHO_T}yes" >&6
10365		      cat >>confdefs.h <<\_ACEOF
10366#define HAVE_PTHREAD_NP_H 1
10367_ACEOF
10368
10369else
10370  echo "$as_me: failed program was:" >&5
10371sed 's/^/| /' conftest.$ac_ext >&5
10372
10373echo "$as_me:$LINENO: result: no" >&5
10374echo "${ECHO_T}no" >&6
10375fi
10376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10377
10378
10379for ac_header in strings.h
10380do
10381as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10382if eval "test \"\${$as_ac_Header+set}\" = set"; then
10383  echo "$as_me:$LINENO: checking for $ac_header" >&5
10384echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10385if eval "test \"\${$as_ac_Header+set}\" = set"; then
10386  echo $ECHO_N "(cached) $ECHO_C" >&6
10387fi
10388echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10389echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10390else
10391  # Is the header compilable?
10392echo "$as_me:$LINENO: checking $ac_header usability" >&5
10393echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10394cat >conftest.$ac_ext <<_ACEOF
10395/* confdefs.h.  */
10396_ACEOF
10397cat confdefs.h >>conftest.$ac_ext
10398cat >>conftest.$ac_ext <<_ACEOF
10399/* end confdefs.h.  */
10400$ac_includes_default
10401#include <$ac_header>
10402_ACEOF
10403rm -f conftest.$ac_objext
10404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10405  (eval $ac_compile) 2>conftest.er1
10406  ac_status=$?
10407  grep -v '^ *+' conftest.er1 >conftest.err
10408  rm -f conftest.er1
10409  cat conftest.err >&5
10410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411  (exit $ac_status); } &&
10412	 { ac_try='test -z "$ac_c_werror_flag"
10413			 || test ! -s conftest.err'
10414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10415  (eval $ac_try) 2>&5
10416  ac_status=$?
10417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418  (exit $ac_status); }; } &&
10419	 { ac_try='test -s conftest.$ac_objext'
10420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10421  (eval $ac_try) 2>&5
10422  ac_status=$?
10423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424  (exit $ac_status); }; }; then
10425  ac_header_compiler=yes
10426else
10427  echo "$as_me: failed program was:" >&5
10428sed 's/^/| /' conftest.$ac_ext >&5
10429
10430ac_header_compiler=no
10431fi
10432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10433echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10434echo "${ECHO_T}$ac_header_compiler" >&6
10435
10436# Is the header present?
10437echo "$as_me:$LINENO: checking $ac_header presence" >&5
10438echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10439cat >conftest.$ac_ext <<_ACEOF
10440/* confdefs.h.  */
10441_ACEOF
10442cat confdefs.h >>conftest.$ac_ext
10443cat >>conftest.$ac_ext <<_ACEOF
10444/* end confdefs.h.  */
10445#include <$ac_header>
10446_ACEOF
10447if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10448  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10449  ac_status=$?
10450  grep -v '^ *+' conftest.er1 >conftest.err
10451  rm -f conftest.er1
10452  cat conftest.err >&5
10453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454  (exit $ac_status); } >/dev/null; then
10455  if test -s conftest.err; then
10456    ac_cpp_err=$ac_c_preproc_warn_flag
10457    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10458  else
10459    ac_cpp_err=
10460  fi
10461else
10462  ac_cpp_err=yes
10463fi
10464if test -z "$ac_cpp_err"; then
10465  ac_header_preproc=yes
10466else
10467  echo "$as_me: failed program was:" >&5
10468sed 's/^/| /' conftest.$ac_ext >&5
10469
10470  ac_header_preproc=no
10471fi
10472rm -f conftest.err conftest.$ac_ext
10473echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10474echo "${ECHO_T}$ac_header_preproc" >&6
10475
10476# So?  What about this header?
10477case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10478  yes:no: )
10479    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10480echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10481    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10482echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10483    ac_header_preproc=yes
10484    ;;
10485  no:yes:* )
10486    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10487echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10488    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10489echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10490    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10491echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10492    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10493echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10494    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10495echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10496    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10497echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10498    (
10499      cat <<\_ASBOX
10500## ------------------------------------------ ##
10501## Report this to the AC_PACKAGE_NAME lists.  ##
10502## ------------------------------------------ ##
10503_ASBOX
10504    ) |
10505      sed "s/^/$as_me: WARNING:     /" >&2
10506    ;;
10507esac
10508echo "$as_me:$LINENO: checking for $ac_header" >&5
10509echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10510if eval "test \"\${$as_ac_Header+set}\" = set"; then
10511  echo $ECHO_N "(cached) $ECHO_C" >&6
10512else
10513  eval "$as_ac_Header=\$ac_header_preproc"
10514fi
10515echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10516echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10517
10518fi
10519if test `eval echo '${'$as_ac_Header'}'` = yes; then
10520  cat >>confdefs.h <<_ACEOF
10521#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10522_ACEOF
10523
10524fi
10525
10526done
10527
10528if test "x$MACOSX" = "xyes"; then
10529    cat >>confdefs.h <<\_ACEOF
10530#define NO_STRINGS_WITH_STRING_H 1
10531_ACEOF
10532
10533else
10534
10535echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
10536echo $ECHO_N "checking if strings.h can be included after string.h... $ECHO_C" >&6
10537cppflags_save=$CPPFLAGS
10538CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10539cat >conftest.$ac_ext <<_ACEOF
10540/* confdefs.h.  */
10541_ACEOF
10542cat confdefs.h >>conftest.$ac_ext
10543cat >>conftest.$ac_ext <<_ACEOF
10544/* end confdefs.h.  */
10545
10546#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
10547# define _NO_PROTO	/* like in os_unix.h, causes conflict for AIX (Winn) */
10548			/* but don't do it on AIX 5.1 (Uribarri) */
10549#endif
10550#ifdef HAVE_XM_XM_H
10551# include <Xm/Xm.h>	/* This breaks it for HP-UX 11 (Squassabia) */
10552#endif
10553#ifdef HAVE_STRING_H
10554# include <string.h>
10555#endif
10556#if defined(HAVE_STRINGS_H)
10557# include <strings.h>
10558#endif
10559
10560int
10561main ()
10562{
10563int i; i = 0;
10564  ;
10565  return 0;
10566}
10567_ACEOF
10568rm -f conftest.$ac_objext
10569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10570  (eval $ac_compile) 2>conftest.er1
10571  ac_status=$?
10572  grep -v '^ *+' conftest.er1 >conftest.err
10573  rm -f conftest.er1
10574  cat conftest.err >&5
10575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576  (exit $ac_status); } &&
10577	 { ac_try='test -z "$ac_c_werror_flag"
10578			 || test ! -s conftest.err'
10579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580  (eval $ac_try) 2>&5
10581  ac_status=$?
10582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583  (exit $ac_status); }; } &&
10584	 { ac_try='test -s conftest.$ac_objext'
10585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586  (eval $ac_try) 2>&5
10587  ac_status=$?
10588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589  (exit $ac_status); }; }; then
10590  echo "$as_me:$LINENO: result: yes" >&5
10591echo "${ECHO_T}yes" >&6
10592else
10593  echo "$as_me: failed program was:" >&5
10594sed 's/^/| /' conftest.$ac_ext >&5
10595
10596cat >>confdefs.h <<\_ACEOF
10597#define NO_STRINGS_WITH_STRING_H 1
10598_ACEOF
10599
10600		echo "$as_me:$LINENO: result: no" >&5
10601echo "${ECHO_T}no" >&6
10602fi
10603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10604CPPFLAGS=$cppflags_save
10605fi
10606
10607if test $ac_cv_c_compiler_gnu = yes; then
10608    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10609echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10610if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10611  echo $ECHO_N "(cached) $ECHO_C" >&6
10612else
10613    ac_pattern="Autoconf.*'x'"
10614  cat >conftest.$ac_ext <<_ACEOF
10615/* confdefs.h.  */
10616_ACEOF
10617cat confdefs.h >>conftest.$ac_ext
10618cat >>conftest.$ac_ext <<_ACEOF
10619/* end confdefs.h.  */
10620#include <sgtty.h>
10621Autoconf TIOCGETP
10622_ACEOF
10623if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10624  $EGREP "$ac_pattern" >/dev/null 2>&1; then
10625  ac_cv_prog_gcc_traditional=yes
10626else
10627  ac_cv_prog_gcc_traditional=no
10628fi
10629rm -f conftest*
10630
10631
10632  if test $ac_cv_prog_gcc_traditional = no; then
10633    cat >conftest.$ac_ext <<_ACEOF
10634/* confdefs.h.  */
10635_ACEOF
10636cat confdefs.h >>conftest.$ac_ext
10637cat >>conftest.$ac_ext <<_ACEOF
10638/* end confdefs.h.  */
10639#include <termio.h>
10640Autoconf TCGETA
10641_ACEOF
10642if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10643  $EGREP "$ac_pattern" >/dev/null 2>&1; then
10644  ac_cv_prog_gcc_traditional=yes
10645fi
10646rm -f conftest*
10647
10648  fi
10649fi
10650echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10651echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10652  if test $ac_cv_prog_gcc_traditional = yes; then
10653    CC="$CC -traditional"
10654  fi
10655fi
10656
10657echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10658echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10659if test "${ac_cv_c_const+set}" = set; then
10660  echo $ECHO_N "(cached) $ECHO_C" >&6
10661else
10662  cat >conftest.$ac_ext <<_ACEOF
10663/* confdefs.h.  */
10664_ACEOF
10665cat confdefs.h >>conftest.$ac_ext
10666cat >>conftest.$ac_ext <<_ACEOF
10667/* end confdefs.h.  */
10668
10669int
10670main ()
10671{
10672/* FIXME: Include the comments suggested by Paul. */
10673#ifndef __cplusplus
10674  /* Ultrix mips cc rejects this.  */
10675  typedef int charset[2];
10676  const charset x;
10677  /* SunOS 4.1.1 cc rejects this.  */
10678  char const *const *ccp;
10679  char **p;
10680  /* NEC SVR4.0.2 mips cc rejects this.  */
10681  struct point {int x, y;};
10682  static struct point const zero = {0,0};
10683  /* AIX XL C 1.02.0.0 rejects this.
10684     It does not let you subtract one const X* pointer from another in
10685     an arm of an if-expression whose if-part is not a constant
10686     expression */
10687  const char *g = "string";
10688  ccp = &g + (g ? g-g : 0);
10689  /* HPUX 7.0 cc rejects these. */
10690  ++ccp;
10691  p = (char**) ccp;
10692  ccp = (char const *const *) p;
10693  { /* SCO 3.2v4 cc rejects this.  */
10694    char *t;
10695    char const *s = 0 ? (char *) 0 : (char const *) 0;
10696
10697    *t++ = 0;
10698  }
10699  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10700    int x[] = {25, 17};
10701    const int *foo = &x[0];
10702    ++foo;
10703  }
10704  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10705    typedef const int *iptr;
10706    iptr p = 0;
10707    ++p;
10708  }
10709  { /* AIX XL C 1.02.0.0 rejects this saying
10710       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10711    struct s { int j; const int *ap[3]; };
10712    struct s *b; b->j = 5;
10713  }
10714  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10715    const int foo = 10;
10716  }
10717#endif
10718
10719  ;
10720  return 0;
10721}
10722_ACEOF
10723rm -f conftest.$ac_objext
10724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10725  (eval $ac_compile) 2>conftest.er1
10726  ac_status=$?
10727  grep -v '^ *+' conftest.er1 >conftest.err
10728  rm -f conftest.er1
10729  cat conftest.err >&5
10730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731  (exit $ac_status); } &&
10732	 { ac_try='test -z "$ac_c_werror_flag"
10733			 || test ! -s conftest.err'
10734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10735  (eval $ac_try) 2>&5
10736  ac_status=$?
10737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738  (exit $ac_status); }; } &&
10739	 { ac_try='test -s conftest.$ac_objext'
10740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10741  (eval $ac_try) 2>&5
10742  ac_status=$?
10743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744  (exit $ac_status); }; }; then
10745  ac_cv_c_const=yes
10746else
10747  echo "$as_me: failed program was:" >&5
10748sed 's/^/| /' conftest.$ac_ext >&5
10749
10750ac_cv_c_const=no
10751fi
10752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10753fi
10754echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10755echo "${ECHO_T}$ac_cv_c_const" >&6
10756if test $ac_cv_c_const = no; then
10757
10758cat >>confdefs.h <<\_ACEOF
10759#define const
10760_ACEOF
10761
10762fi
10763
10764echo "$as_me:$LINENO: checking for mode_t" >&5
10765echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10766if test "${ac_cv_type_mode_t+set}" = set; then
10767  echo $ECHO_N "(cached) $ECHO_C" >&6
10768else
10769  cat >conftest.$ac_ext <<_ACEOF
10770/* confdefs.h.  */
10771_ACEOF
10772cat confdefs.h >>conftest.$ac_ext
10773cat >>conftest.$ac_ext <<_ACEOF
10774/* end confdefs.h.  */
10775$ac_includes_default
10776int
10777main ()
10778{
10779if ((mode_t *) 0)
10780  return 0;
10781if (sizeof (mode_t))
10782  return 0;
10783  ;
10784  return 0;
10785}
10786_ACEOF
10787rm -f conftest.$ac_objext
10788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10789  (eval $ac_compile) 2>conftest.er1
10790  ac_status=$?
10791  grep -v '^ *+' conftest.er1 >conftest.err
10792  rm -f conftest.er1
10793  cat conftest.err >&5
10794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795  (exit $ac_status); } &&
10796	 { ac_try='test -z "$ac_c_werror_flag"
10797			 || test ! -s conftest.err'
10798  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10799  (eval $ac_try) 2>&5
10800  ac_status=$?
10801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802  (exit $ac_status); }; } &&
10803	 { ac_try='test -s conftest.$ac_objext'
10804  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10805  (eval $ac_try) 2>&5
10806  ac_status=$?
10807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808  (exit $ac_status); }; }; then
10809  ac_cv_type_mode_t=yes
10810else
10811  echo "$as_me: failed program was:" >&5
10812sed 's/^/| /' conftest.$ac_ext >&5
10813
10814ac_cv_type_mode_t=no
10815fi
10816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10817fi
10818echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10819echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10820if test $ac_cv_type_mode_t = yes; then
10821  :
10822else
10823
10824cat >>confdefs.h <<_ACEOF
10825#define mode_t int
10826_ACEOF
10827
10828fi
10829
10830echo "$as_me:$LINENO: checking for off_t" >&5
10831echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10832if test "${ac_cv_type_off_t+set}" = set; then
10833  echo $ECHO_N "(cached) $ECHO_C" >&6
10834else
10835  cat >conftest.$ac_ext <<_ACEOF
10836/* confdefs.h.  */
10837_ACEOF
10838cat confdefs.h >>conftest.$ac_ext
10839cat >>conftest.$ac_ext <<_ACEOF
10840/* end confdefs.h.  */
10841$ac_includes_default
10842int
10843main ()
10844{
10845if ((off_t *) 0)
10846  return 0;
10847if (sizeof (off_t))
10848  return 0;
10849  ;
10850  return 0;
10851}
10852_ACEOF
10853rm -f conftest.$ac_objext
10854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10855  (eval $ac_compile) 2>conftest.er1
10856  ac_status=$?
10857  grep -v '^ *+' conftest.er1 >conftest.err
10858  rm -f conftest.er1
10859  cat conftest.err >&5
10860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861  (exit $ac_status); } &&
10862	 { ac_try='test -z "$ac_c_werror_flag"
10863			 || test ! -s conftest.err'
10864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10865  (eval $ac_try) 2>&5
10866  ac_status=$?
10867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868  (exit $ac_status); }; } &&
10869	 { ac_try='test -s conftest.$ac_objext'
10870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10871  (eval $ac_try) 2>&5
10872  ac_status=$?
10873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874  (exit $ac_status); }; }; then
10875  ac_cv_type_off_t=yes
10876else
10877  echo "$as_me: failed program was:" >&5
10878sed 's/^/| /' conftest.$ac_ext >&5
10879
10880ac_cv_type_off_t=no
10881fi
10882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10883fi
10884echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10885echo "${ECHO_T}$ac_cv_type_off_t" >&6
10886if test $ac_cv_type_off_t = yes; then
10887  :
10888else
10889
10890cat >>confdefs.h <<_ACEOF
10891#define off_t long
10892_ACEOF
10893
10894fi
10895
10896echo "$as_me:$LINENO: checking for pid_t" >&5
10897echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10898if test "${ac_cv_type_pid_t+set}" = set; then
10899  echo $ECHO_N "(cached) $ECHO_C" >&6
10900else
10901  cat >conftest.$ac_ext <<_ACEOF
10902/* confdefs.h.  */
10903_ACEOF
10904cat confdefs.h >>conftest.$ac_ext
10905cat >>conftest.$ac_ext <<_ACEOF
10906/* end confdefs.h.  */
10907$ac_includes_default
10908int
10909main ()
10910{
10911if ((pid_t *) 0)
10912  return 0;
10913if (sizeof (pid_t))
10914  return 0;
10915  ;
10916  return 0;
10917}
10918_ACEOF
10919rm -f conftest.$ac_objext
10920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10921  (eval $ac_compile) 2>conftest.er1
10922  ac_status=$?
10923  grep -v '^ *+' conftest.er1 >conftest.err
10924  rm -f conftest.er1
10925  cat conftest.err >&5
10926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927  (exit $ac_status); } &&
10928	 { ac_try='test -z "$ac_c_werror_flag"
10929			 || test ! -s conftest.err'
10930  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10931  (eval $ac_try) 2>&5
10932  ac_status=$?
10933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934  (exit $ac_status); }; } &&
10935	 { ac_try='test -s conftest.$ac_objext'
10936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10937  (eval $ac_try) 2>&5
10938  ac_status=$?
10939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940  (exit $ac_status); }; }; then
10941  ac_cv_type_pid_t=yes
10942else
10943  echo "$as_me: failed program was:" >&5
10944sed 's/^/| /' conftest.$ac_ext >&5
10945
10946ac_cv_type_pid_t=no
10947fi
10948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10949fi
10950echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10951echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10952if test $ac_cv_type_pid_t = yes; then
10953  :
10954else
10955
10956cat >>confdefs.h <<_ACEOF
10957#define pid_t int
10958_ACEOF
10959
10960fi
10961
10962echo "$as_me:$LINENO: checking for size_t" >&5
10963echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10964if test "${ac_cv_type_size_t+set}" = set; then
10965  echo $ECHO_N "(cached) $ECHO_C" >&6
10966else
10967  cat >conftest.$ac_ext <<_ACEOF
10968/* confdefs.h.  */
10969_ACEOF
10970cat confdefs.h >>conftest.$ac_ext
10971cat >>conftest.$ac_ext <<_ACEOF
10972/* end confdefs.h.  */
10973$ac_includes_default
10974int
10975main ()
10976{
10977if ((size_t *) 0)
10978  return 0;
10979if (sizeof (size_t))
10980  return 0;
10981  ;
10982  return 0;
10983}
10984_ACEOF
10985rm -f conftest.$ac_objext
10986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10987  (eval $ac_compile) 2>conftest.er1
10988  ac_status=$?
10989  grep -v '^ *+' conftest.er1 >conftest.err
10990  rm -f conftest.er1
10991  cat conftest.err >&5
10992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993  (exit $ac_status); } &&
10994	 { ac_try='test -z "$ac_c_werror_flag"
10995			 || test ! -s conftest.err'
10996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10997  (eval $ac_try) 2>&5
10998  ac_status=$?
10999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000  (exit $ac_status); }; } &&
11001	 { ac_try='test -s conftest.$ac_objext'
11002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11003  (eval $ac_try) 2>&5
11004  ac_status=$?
11005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006  (exit $ac_status); }; }; then
11007  ac_cv_type_size_t=yes
11008else
11009  echo "$as_me: failed program was:" >&5
11010sed 's/^/| /' conftest.$ac_ext >&5
11011
11012ac_cv_type_size_t=no
11013fi
11014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11015fi
11016echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11017echo "${ECHO_T}$ac_cv_type_size_t" >&6
11018if test $ac_cv_type_size_t = yes; then
11019  :
11020else
11021
11022cat >>confdefs.h <<_ACEOF
11023#define size_t unsigned
11024_ACEOF
11025
11026fi
11027
11028echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11029echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11030if test "${ac_cv_type_uid_t+set}" = set; then
11031  echo $ECHO_N "(cached) $ECHO_C" >&6
11032else
11033  cat >conftest.$ac_ext <<_ACEOF
11034/* confdefs.h.  */
11035_ACEOF
11036cat confdefs.h >>conftest.$ac_ext
11037cat >>conftest.$ac_ext <<_ACEOF
11038/* end confdefs.h.  */
11039#include <sys/types.h>
11040
11041_ACEOF
11042if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11043  $EGREP "uid_t" >/dev/null 2>&1; then
11044  ac_cv_type_uid_t=yes
11045else
11046  ac_cv_type_uid_t=no
11047fi
11048rm -f conftest*
11049
11050fi
11051echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11052echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11053if test $ac_cv_type_uid_t = no; then
11054
11055cat >>confdefs.h <<\_ACEOF
11056#define uid_t int
11057_ACEOF
11058
11059
11060cat >>confdefs.h <<\_ACEOF
11061#define gid_t int
11062_ACEOF
11063
11064fi
11065
11066echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11067echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11068if test "${ac_cv_header_time+set}" = set; then
11069  echo $ECHO_N "(cached) $ECHO_C" >&6
11070else
11071  cat >conftest.$ac_ext <<_ACEOF
11072/* confdefs.h.  */
11073_ACEOF
11074cat confdefs.h >>conftest.$ac_ext
11075cat >>conftest.$ac_ext <<_ACEOF
11076/* end confdefs.h.  */
11077#include <sys/types.h>
11078#include <sys/time.h>
11079#include <time.h>
11080
11081int
11082main ()
11083{
11084if ((struct tm *) 0)
11085return 0;
11086  ;
11087  return 0;
11088}
11089_ACEOF
11090rm -f conftest.$ac_objext
11091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11092  (eval $ac_compile) 2>conftest.er1
11093  ac_status=$?
11094  grep -v '^ *+' conftest.er1 >conftest.err
11095  rm -f conftest.er1
11096  cat conftest.err >&5
11097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098  (exit $ac_status); } &&
11099	 { ac_try='test -z "$ac_c_werror_flag"
11100			 || test ! -s conftest.err'
11101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11102  (eval $ac_try) 2>&5
11103  ac_status=$?
11104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105  (exit $ac_status); }; } &&
11106	 { ac_try='test -s conftest.$ac_objext'
11107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11108  (eval $ac_try) 2>&5
11109  ac_status=$?
11110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111  (exit $ac_status); }; }; then
11112  ac_cv_header_time=yes
11113else
11114  echo "$as_me: failed program was:" >&5
11115sed 's/^/| /' conftest.$ac_ext >&5
11116
11117ac_cv_header_time=no
11118fi
11119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11120fi
11121echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11122echo "${ECHO_T}$ac_cv_header_time" >&6
11123if test $ac_cv_header_time = yes; then
11124
11125cat >>confdefs.h <<\_ACEOF
11126#define TIME_WITH_SYS_TIME 1
11127_ACEOF
11128
11129fi
11130
11131echo "$as_me:$LINENO: checking for ino_t" >&5
11132echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11133if test "${ac_cv_type_ino_t+set}" = set; then
11134  echo $ECHO_N "(cached) $ECHO_C" >&6
11135else
11136  cat >conftest.$ac_ext <<_ACEOF
11137/* confdefs.h.  */
11138_ACEOF
11139cat confdefs.h >>conftest.$ac_ext
11140cat >>conftest.$ac_ext <<_ACEOF
11141/* end confdefs.h.  */
11142$ac_includes_default
11143int
11144main ()
11145{
11146if ((ino_t *) 0)
11147  return 0;
11148if (sizeof (ino_t))
11149  return 0;
11150  ;
11151  return 0;
11152}
11153_ACEOF
11154rm -f conftest.$ac_objext
11155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11156  (eval $ac_compile) 2>conftest.er1
11157  ac_status=$?
11158  grep -v '^ *+' conftest.er1 >conftest.err
11159  rm -f conftest.er1
11160  cat conftest.err >&5
11161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162  (exit $ac_status); } &&
11163	 { ac_try='test -z "$ac_c_werror_flag"
11164			 || test ! -s conftest.err'
11165  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166  (eval $ac_try) 2>&5
11167  ac_status=$?
11168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169  (exit $ac_status); }; } &&
11170	 { ac_try='test -s conftest.$ac_objext'
11171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172  (eval $ac_try) 2>&5
11173  ac_status=$?
11174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175  (exit $ac_status); }; }; then
11176  ac_cv_type_ino_t=yes
11177else
11178  echo "$as_me: failed program was:" >&5
11179sed 's/^/| /' conftest.$ac_ext >&5
11180
11181ac_cv_type_ino_t=no
11182fi
11183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11184fi
11185echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11186echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11187if test $ac_cv_type_ino_t = yes; then
11188  :
11189else
11190
11191cat >>confdefs.h <<_ACEOF
11192#define ino_t long
11193_ACEOF
11194
11195fi
11196
11197echo "$as_me:$LINENO: checking for dev_t" >&5
11198echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11199if test "${ac_cv_type_dev_t+set}" = set; then
11200  echo $ECHO_N "(cached) $ECHO_C" >&6
11201else
11202  cat >conftest.$ac_ext <<_ACEOF
11203/* confdefs.h.  */
11204_ACEOF
11205cat confdefs.h >>conftest.$ac_ext
11206cat >>conftest.$ac_ext <<_ACEOF
11207/* end confdefs.h.  */
11208$ac_includes_default
11209int
11210main ()
11211{
11212if ((dev_t *) 0)
11213  return 0;
11214if (sizeof (dev_t))
11215  return 0;
11216  ;
11217  return 0;
11218}
11219_ACEOF
11220rm -f conftest.$ac_objext
11221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11222  (eval $ac_compile) 2>conftest.er1
11223  ac_status=$?
11224  grep -v '^ *+' conftest.er1 >conftest.err
11225  rm -f conftest.er1
11226  cat conftest.err >&5
11227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228  (exit $ac_status); } &&
11229	 { ac_try='test -z "$ac_c_werror_flag"
11230			 || test ! -s conftest.err'
11231  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232  (eval $ac_try) 2>&5
11233  ac_status=$?
11234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235  (exit $ac_status); }; } &&
11236	 { ac_try='test -s conftest.$ac_objext'
11237  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11238  (eval $ac_try) 2>&5
11239  ac_status=$?
11240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241  (exit $ac_status); }; }; then
11242  ac_cv_type_dev_t=yes
11243else
11244  echo "$as_me: failed program was:" >&5
11245sed 's/^/| /' conftest.$ac_ext >&5
11246
11247ac_cv_type_dev_t=no
11248fi
11249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11250fi
11251echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11252echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11253if test $ac_cv_type_dev_t = yes; then
11254  :
11255else
11256
11257cat >>confdefs.h <<_ACEOF
11258#define dev_t unsigned
11259_ACEOF
11260
11261fi
11262
11263
11264echo "$as_me:$LINENO: checking for rlim_t" >&5
11265echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6
11266if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
11267  echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
11268echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6
11269else
11270  cat >conftest.$ac_ext <<_ACEOF
11271/* confdefs.h.  */
11272_ACEOF
11273cat confdefs.h >>conftest.$ac_ext
11274cat >>conftest.$ac_ext <<_ACEOF
11275/* end confdefs.h.  */
11276
11277#include <sys/types.h>
11278#if STDC_HEADERS
11279#include <stdlib.h>
11280#include <stddef.h>
11281#endif
11282#ifdef HAVE_SYS_RESOURCE_H
11283#include <sys/resource.h>
11284#endif
11285
11286_ACEOF
11287if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11288  $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11289  ac_cv_type_rlim_t=yes
11290else
11291  ac_cv_type_rlim_t=no
11292fi
11293rm -f conftest*
11294
11295	  echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
11296echo "${ECHO_T}$ac_cv_type_rlim_t" >&6
11297fi
11298if test $ac_cv_type_rlim_t = no; then
11299  cat >> confdefs.h <<\EOF
11300#define rlim_t unsigned long
11301EOF
11302fi
11303
11304echo "$as_me:$LINENO: checking for stack_t" >&5
11305echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
11306if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
11307  echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
11308echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6
11309else
11310  cat >conftest.$ac_ext <<_ACEOF
11311/* confdefs.h.  */
11312_ACEOF
11313cat confdefs.h >>conftest.$ac_ext
11314cat >>conftest.$ac_ext <<_ACEOF
11315/* end confdefs.h.  */
11316
11317#include <sys/types.h>
11318#if STDC_HEADERS
11319#include <stdlib.h>
11320#include <stddef.h>
11321#endif
11322#include <signal.h>
11323
11324_ACEOF
11325if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11326  $EGREP "stack_t" >/dev/null 2>&1; then
11327  ac_cv_type_stack_t=yes
11328else
11329  ac_cv_type_stack_t=no
11330fi
11331rm -f conftest*
11332
11333	  echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
11334echo "${ECHO_T}$ac_cv_type_stack_t" >&6
11335fi
11336if test $ac_cv_type_stack_t = no; then
11337  cat >> confdefs.h <<\EOF
11338#define stack_t struct sigaltstack
11339EOF
11340fi
11341
11342echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
11343echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6
11344cat >conftest.$ac_ext <<_ACEOF
11345/* confdefs.h.  */
11346_ACEOF
11347cat confdefs.h >>conftest.$ac_ext
11348cat >>conftest.$ac_ext <<_ACEOF
11349/* end confdefs.h.  */
11350
11351#include <sys/types.h>
11352#if STDC_HEADERS
11353#include <stdlib.h>
11354#include <stddef.h>
11355#endif
11356#include <signal.h>
11357#include "confdefs.h"
11358
11359int
11360main ()
11361{
11362stack_t sigstk; sigstk.ss_base = 0;
11363  ;
11364  return 0;
11365}
11366_ACEOF
11367rm -f conftest.$ac_objext
11368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11369  (eval $ac_compile) 2>conftest.er1
11370  ac_status=$?
11371  grep -v '^ *+' conftest.er1 >conftest.err
11372  rm -f conftest.er1
11373  cat conftest.err >&5
11374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375  (exit $ac_status); } &&
11376	 { ac_try='test -z "$ac_c_werror_flag"
11377			 || test ! -s conftest.err'
11378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11379  (eval $ac_try) 2>&5
11380  ac_status=$?
11381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382  (exit $ac_status); }; } &&
11383	 { ac_try='test -s conftest.$ac_objext'
11384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11385  (eval $ac_try) 2>&5
11386  ac_status=$?
11387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388  (exit $ac_status); }; }; then
11389  echo "$as_me:$LINENO: result: yes" >&5
11390echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
11391#define HAVE_SS_BASE 1
11392_ACEOF
11393
11394else
11395  echo "$as_me: failed program was:" >&5
11396sed 's/^/| /' conftest.$ac_ext >&5
11397
11398echo "$as_me:$LINENO: result: no" >&5
11399echo "${ECHO_T}no" >&6
11400fi
11401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11402
11403olibs="$LIBS"
11404echo "$as_me:$LINENO: checking --with-tlib argument" >&5
11405echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6
11406
11407# Check whether --with-tlib or --without-tlib was given.
11408if test "${with_tlib+set}" = set; then
11409  withval="$with_tlib"
11410
11411fi;
11412if test -n "$with_tlib"; then
11413  echo "$as_me:$LINENO: result: $with_tlib" >&5
11414echo "${ECHO_T}$with_tlib" >&6
11415  LIBS="$LIBS -l$with_tlib"
11416  echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
11417echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6
11418  cat >conftest.$ac_ext <<_ACEOF
11419/* confdefs.h.  */
11420_ACEOF
11421cat confdefs.h >>conftest.$ac_ext
11422cat >>conftest.$ac_ext <<_ACEOF
11423/* end confdefs.h.  */
11424
11425int
11426main ()
11427{
11428
11429  ;
11430  return 0;
11431}
11432_ACEOF
11433rm -f conftest.$ac_objext conftest$ac_exeext
11434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11435  (eval $ac_link) 2>conftest.er1
11436  ac_status=$?
11437  grep -v '^ *+' conftest.er1 >conftest.err
11438  rm -f conftest.er1
11439  cat conftest.err >&5
11440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441  (exit $ac_status); } &&
11442	 { ac_try='test -z "$ac_c_werror_flag"
11443			 || test ! -s conftest.err'
11444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11445  (eval $ac_try) 2>&5
11446  ac_status=$?
11447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448  (exit $ac_status); }; } &&
11449	 { ac_try='test -s conftest$ac_exeext'
11450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11451  (eval $ac_try) 2>&5
11452  ac_status=$?
11453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454  (exit $ac_status); }; }; then
11455  echo "$as_me:$LINENO: result: OK" >&5
11456echo "${ECHO_T}OK" >&6
11457else
11458  echo "$as_me: failed program was:" >&5
11459sed 's/^/| /' conftest.$ac_ext >&5
11460
11461{ { echo "$as_me:$LINENO: error: FAILED" >&5
11462echo "$as_me: error: FAILED" >&2;}
11463   { (exit 1); exit 1; }; }
11464fi
11465rm -f conftest.err conftest.$ac_objext \
11466      conftest$ac_exeext conftest.$ac_ext
11467    olibs="$LIBS"
11468else
11469  echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
11470echo "${ECHO_T}empty: automatic terminal library selection" >&6
11471            case "`uname -s 2>/dev/null`" in
11472	OSF1)	tlibs="ncurses curses termlib termcap";;
11473	*)	tlibs="ncurses termlib termcap curses";;
11474  esac
11475  for libname in $tlibs; do
11476
11477as_ac_Lib=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
11478echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
11479echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6
11480if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11481  echo $ECHO_N "(cached) $ECHO_C" >&6
11482else
11483  ac_check_lib_save_LIBS=$LIBS
11484LIBS="-l${libname}  $LIBS"
11485cat >conftest.$ac_ext <<_ACEOF
11486/* confdefs.h.  */
11487_ACEOF
11488cat confdefs.h >>conftest.$ac_ext
11489cat >>conftest.$ac_ext <<_ACEOF
11490/* end confdefs.h.  */
11491
11492/* Override any gcc2 internal prototype to avoid an error.  */
11493#ifdef __cplusplus
11494extern "C"
11495#endif
11496/* We use char because int might match the return type of a gcc2
11497   builtin and then its argument prototype would still apply.  */
11498char tgetent ();
11499int
11500main ()
11501{
11502tgetent ();
11503  ;
11504  return 0;
11505}
11506_ACEOF
11507rm -f conftest.$ac_objext conftest$ac_exeext
11508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11509  (eval $ac_link) 2>conftest.er1
11510  ac_status=$?
11511  grep -v '^ *+' conftest.er1 >conftest.err
11512  rm -f conftest.er1
11513  cat conftest.err >&5
11514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515  (exit $ac_status); } &&
11516	 { ac_try='test -z "$ac_c_werror_flag"
11517			 || test ! -s conftest.err'
11518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11519  (eval $ac_try) 2>&5
11520  ac_status=$?
11521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522  (exit $ac_status); }; } &&
11523	 { ac_try='test -s conftest$ac_exeext'
11524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11525  (eval $ac_try) 2>&5
11526  ac_status=$?
11527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528  (exit $ac_status); }; }; then
11529  eval "$as_ac_Lib=yes"
11530else
11531  echo "$as_me: failed program was:" >&5
11532sed 's/^/| /' conftest.$ac_ext >&5
11533
11534eval "$as_ac_Lib=no"
11535fi
11536rm -f conftest.err conftest.$ac_objext \
11537      conftest$ac_exeext conftest.$ac_ext
11538LIBS=$ac_check_lib_save_LIBS
11539fi
11540echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11541echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11542if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11543  cat >>confdefs.h <<_ACEOF
11544#define `echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
11545_ACEOF
11546
11547  LIBS="-l${libname} $LIBS"
11548
11549fi
11550
11551    if test "x$olibs" != "x$LIBS"; then
11552                        if test "$cross_compiling" = yes; then
11553  res="FAIL"
11554else
11555  cat >conftest.$ac_ext <<_ACEOF
11556/* confdefs.h.  */
11557_ACEOF
11558cat confdefs.h >>conftest.$ac_ext
11559cat >>conftest.$ac_ext <<_ACEOF
11560/* end confdefs.h.  */
11561
11562#ifdef HAVE_TERMCAP_H
11563# include <termcap.h>
11564#endif
11565main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
11566_ACEOF
11567rm -f conftest$ac_exeext
11568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11569  (eval $ac_link) 2>&5
11570  ac_status=$?
11571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11574  (eval $ac_try) 2>&5
11575  ac_status=$?
11576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577  (exit $ac_status); }; }; then
11578  res="OK"
11579else
11580  echo "$as_me: program exited with status $ac_status" >&5
11581echo "$as_me: failed program was:" >&5
11582sed 's/^/| /' conftest.$ac_ext >&5
11583
11584( exit $ac_status )
11585res="FAIL"
11586fi
11587rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11588fi
11589      if test "$res" = "OK"; then
11590	break
11591      fi
11592      echo "$as_me:$LINENO: result: $libname library is not usable" >&5
11593echo "${ECHO_T}$libname library is not usable" >&6
11594      LIBS="$olibs"
11595    fi
11596  done
11597  if test "x$olibs" = "x$LIBS"; then
11598    echo "$as_me:$LINENO: result: no terminal library found" >&5
11599echo "${ECHO_T}no terminal library found" >&6
11600  fi
11601fi
11602
11603if test "x$olibs" = "x$LIBS"; then
11604  echo "$as_me:$LINENO: checking for tgetent()" >&5
11605echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6
11606  cat >conftest.$ac_ext <<_ACEOF
11607/* confdefs.h.  */
11608_ACEOF
11609cat confdefs.h >>conftest.$ac_ext
11610cat >>conftest.$ac_ext <<_ACEOF
11611/* end confdefs.h.  */
11612
11613int
11614main ()
11615{
11616char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
11617  ;
11618  return 0;
11619}
11620_ACEOF
11621rm -f conftest.$ac_objext conftest$ac_exeext
11622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11623  (eval $ac_link) 2>conftest.er1
11624  ac_status=$?
11625  grep -v '^ *+' conftest.er1 >conftest.err
11626  rm -f conftest.er1
11627  cat conftest.err >&5
11628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629  (exit $ac_status); } &&
11630	 { ac_try='test -z "$ac_c_werror_flag"
11631			 || test ! -s conftest.err'
11632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633  (eval $ac_try) 2>&5
11634  ac_status=$?
11635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636  (exit $ac_status); }; } &&
11637	 { ac_try='test -s conftest$ac_exeext'
11638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639  (eval $ac_try) 2>&5
11640  ac_status=$?
11641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642  (exit $ac_status); }; }; then
11643  echo "$as_me:$LINENO: result: yes" >&5
11644echo "${ECHO_T}yes" >&6
11645else
11646  echo "$as_me: failed program was:" >&5
11647sed 's/^/| /' conftest.$ac_ext >&5
11648
11649{ { echo "$as_me:$LINENO: error: NOT FOUND!
11650      You need to install a terminal library; for example ncurses.
11651      Or specify the name of the library with --with-tlib." >&5
11652echo "$as_me: error: NOT FOUND!
11653      You need to install a terminal library; for example ncurses.
11654      Or specify the name of the library with --with-tlib." >&2;}
11655   { (exit 1); exit 1; }; }
11656fi
11657rm -f conftest.err conftest.$ac_objext \
11658      conftest$ac_exeext conftest.$ac_ext
11659fi
11660
11661echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
11662echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6
11663if test "$cross_compiling" = yes; then
11664  { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11665echo "$as_me: error: failed to compile test program." >&2;}
11666   { (exit 1); exit 1; }; }
11667else
11668  cat >conftest.$ac_ext <<_ACEOF
11669/* confdefs.h.  */
11670_ACEOF
11671cat confdefs.h >>conftest.$ac_ext
11672cat >>conftest.$ac_ext <<_ACEOF
11673/* end confdefs.h.  */
11674
11675#ifdef HAVE_TERMCAP_H
11676# include <termcap.h>
11677#endif
11678main()
11679{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
11680_ACEOF
11681rm -f conftest$ac_exeext
11682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11683  (eval $ac_link) 2>&5
11684  ac_status=$?
11685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11688  (eval $ac_try) 2>&5
11689  ac_status=$?
11690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691  (exit $ac_status); }; }; then
11692  echo "$as_me:$LINENO: result: no -- we are in termcap land" >&5
11693echo "${ECHO_T}no -- we are in termcap land" >&6
11694else
11695  echo "$as_me: program exited with status $ac_status" >&5
11696echo "$as_me: failed program was:" >&5
11697sed 's/^/| /' conftest.$ac_ext >&5
11698
11699( exit $ac_status )
11700echo "$as_me:$LINENO: result: yes -- terminfo spoken here" >&5
11701echo "${ECHO_T}yes -- terminfo spoken here" >&6; cat >>confdefs.h <<\_ACEOF
11702#define TERMINFO 1
11703_ACEOF
11704
11705fi
11706rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11707fi
11708
11709if test "x$olibs" != "x$LIBS"; then
11710  echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
11711echo $ECHO_N "checking what tgetent() returns for an unknown terminal... $ECHO_C" >&6
11712  if test "$cross_compiling" = yes; then
11713  { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11714echo "$as_me: error: failed to compile test program." >&2;}
11715   { (exit 1); exit 1; }; }
11716else
11717  cat >conftest.$ac_ext <<_ACEOF
11718/* confdefs.h.  */
11719_ACEOF
11720cat confdefs.h >>conftest.$ac_ext
11721cat >>conftest.$ac_ext <<_ACEOF
11722/* end confdefs.h.  */
11723
11724#ifdef HAVE_TERMCAP_H
11725# include <termcap.h>
11726#endif
11727main()
11728{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
11729_ACEOF
11730rm -f conftest$ac_exeext
11731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11732  (eval $ac_link) 2>&5
11733  ac_status=$?
11734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737  (eval $ac_try) 2>&5
11738  ac_status=$?
11739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740  (exit $ac_status); }; }; then
11741  echo "$as_me:$LINENO: result: zero" >&5
11742echo "${ECHO_T}zero" >&6; cat >>confdefs.h <<\_ACEOF
11743#define TGETENT_ZERO_ERR 0
11744_ACEOF
11745
11746else
11747  echo "$as_me: program exited with status $ac_status" >&5
11748echo "$as_me: failed program was:" >&5
11749sed 's/^/| /' conftest.$ac_ext >&5
11750
11751( exit $ac_status )
11752echo "$as_me:$LINENO: result: non-zero" >&5
11753echo "${ECHO_T}non-zero" >&6
11754fi
11755rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11756fi
11757fi
11758
11759echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
11760echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6
11761cat >conftest.$ac_ext <<_ACEOF
11762/* confdefs.h.  */
11763_ACEOF
11764cat confdefs.h >>conftest.$ac_ext
11765cat >>conftest.$ac_ext <<_ACEOF
11766/* end confdefs.h.  */
11767
11768#ifdef HAVE_TERMCAP_H
11769# include <termcap.h>
11770#endif
11771
11772int
11773main ()
11774{
11775ospeed = 20000
11776  ;
11777  return 0;
11778}
11779_ACEOF
11780rm -f conftest.$ac_objext conftest$ac_exeext
11781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11782  (eval $ac_link) 2>conftest.er1
11783  ac_status=$?
11784  grep -v '^ *+' conftest.er1 >conftest.err
11785  rm -f conftest.er1
11786  cat conftest.err >&5
11787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788  (exit $ac_status); } &&
11789	 { ac_try='test -z "$ac_c_werror_flag"
11790			 || test ! -s conftest.err'
11791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11792  (eval $ac_try) 2>&5
11793  ac_status=$?
11794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795  (exit $ac_status); }; } &&
11796	 { ac_try='test -s conftest$ac_exeext'
11797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798  (eval $ac_try) 2>&5
11799  ac_status=$?
11800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801  (exit $ac_status); }; }; then
11802  echo "$as_me:$LINENO: result: yes" >&5
11803echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
11804#define HAVE_OSPEED 1
11805_ACEOF
11806
11807else
11808  echo "$as_me: failed program was:" >&5
11809sed 's/^/| /' conftest.$ac_ext >&5
11810
11811echo "$as_me:$LINENO: result: no" >&5
11812echo "${ECHO_T}no" >&6
11813	echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
11814echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6
11815	cat >conftest.$ac_ext <<_ACEOF
11816/* confdefs.h.  */
11817_ACEOF
11818cat confdefs.h >>conftest.$ac_ext
11819cat >>conftest.$ac_ext <<_ACEOF
11820/* end confdefs.h.  */
11821
11822#ifdef HAVE_TERMCAP_H
11823# include <termcap.h>
11824#endif
11825extern short ospeed;
11826
11827int
11828main ()
11829{
11830ospeed = 20000
11831  ;
11832  return 0;
11833}
11834_ACEOF
11835rm -f conftest.$ac_objext conftest$ac_exeext
11836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11837  (eval $ac_link) 2>conftest.er1
11838  ac_status=$?
11839  grep -v '^ *+' conftest.er1 >conftest.err
11840  rm -f conftest.er1
11841  cat conftest.err >&5
11842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843  (exit $ac_status); } &&
11844	 { ac_try='test -z "$ac_c_werror_flag"
11845			 || test ! -s conftest.err'
11846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11847  (eval $ac_try) 2>&5
11848  ac_status=$?
11849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850  (exit $ac_status); }; } &&
11851	 { ac_try='test -s conftest$ac_exeext'
11852  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11853  (eval $ac_try) 2>&5
11854  ac_status=$?
11855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856  (exit $ac_status); }; }; then
11857  echo "$as_me:$LINENO: result: yes" >&5
11858echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
11859#define OSPEED_EXTERN 1
11860_ACEOF
11861
11862else
11863  echo "$as_me: failed program was:" >&5
11864sed 's/^/| /' conftest.$ac_ext >&5
11865
11866echo "$as_me:$LINENO: result: no" >&5
11867echo "${ECHO_T}no" >&6
11868fi
11869rm -f conftest.err conftest.$ac_objext \
11870      conftest$ac_exeext conftest.$ac_ext
11871
11872fi
11873rm -f conftest.err conftest.$ac_objext \
11874      conftest$ac_exeext conftest.$ac_ext
11875
11876echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
11877echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6
11878cat >conftest.$ac_ext <<_ACEOF
11879/* confdefs.h.  */
11880_ACEOF
11881cat confdefs.h >>conftest.$ac_ext
11882cat >>conftest.$ac_ext <<_ACEOF
11883/* end confdefs.h.  */
11884
11885#ifdef HAVE_TERMCAP_H
11886# include <termcap.h>
11887#endif
11888
11889int
11890main ()
11891{
11892if (UP == 0 && BC == 0) PC = 1
11893  ;
11894  return 0;
11895}
11896_ACEOF
11897rm -f conftest.$ac_objext conftest$ac_exeext
11898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11899  (eval $ac_link) 2>conftest.er1
11900  ac_status=$?
11901  grep -v '^ *+' conftest.er1 >conftest.err
11902  rm -f conftest.er1
11903  cat conftest.err >&5
11904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905  (exit $ac_status); } &&
11906	 { ac_try='test -z "$ac_c_werror_flag"
11907			 || test ! -s conftest.err'
11908  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11909  (eval $ac_try) 2>&5
11910  ac_status=$?
11911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912  (exit $ac_status); }; } &&
11913	 { ac_try='test -s conftest$ac_exeext'
11914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11915  (eval $ac_try) 2>&5
11916  ac_status=$?
11917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918  (exit $ac_status); }; }; then
11919  echo "$as_me:$LINENO: result: yes" >&5
11920echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
11921#define HAVE_UP_BC_PC 1
11922_ACEOF
11923
11924else
11925  echo "$as_me: failed program was:" >&5
11926sed 's/^/| /' conftest.$ac_ext >&5
11927
11928echo "$as_me:$LINENO: result: no" >&5
11929echo "${ECHO_T}no" >&6
11930	echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
11931echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6
11932	cat >conftest.$ac_ext <<_ACEOF
11933/* confdefs.h.  */
11934_ACEOF
11935cat confdefs.h >>conftest.$ac_ext
11936cat >>conftest.$ac_ext <<_ACEOF
11937/* end confdefs.h.  */
11938
11939#ifdef HAVE_TERMCAP_H
11940# include <termcap.h>
11941#endif
11942extern char *UP, *BC, PC;
11943
11944int
11945main ()
11946{
11947if (UP == 0 && BC == 0) PC = 1
11948  ;
11949  return 0;
11950}
11951_ACEOF
11952rm -f conftest.$ac_objext conftest$ac_exeext
11953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11954  (eval $ac_link) 2>conftest.er1
11955  ac_status=$?
11956  grep -v '^ *+' conftest.er1 >conftest.err
11957  rm -f conftest.er1
11958  cat conftest.err >&5
11959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960  (exit $ac_status); } &&
11961	 { ac_try='test -z "$ac_c_werror_flag"
11962			 || test ! -s conftest.err'
11963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11964  (eval $ac_try) 2>&5
11965  ac_status=$?
11966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967  (exit $ac_status); }; } &&
11968	 { ac_try='test -s conftest$ac_exeext'
11969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11970  (eval $ac_try) 2>&5
11971  ac_status=$?
11972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973  (exit $ac_status); }; }; then
11974  echo "$as_me:$LINENO: result: yes" >&5
11975echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
11976#define UP_BC_PC_EXTERN 1
11977_ACEOF
11978
11979else
11980  echo "$as_me: failed program was:" >&5
11981sed 's/^/| /' conftest.$ac_ext >&5
11982
11983echo "$as_me:$LINENO: result: no" >&5
11984echo "${ECHO_T}no" >&6
11985fi
11986rm -f conftest.err conftest.$ac_objext \
11987      conftest$ac_exeext conftest.$ac_ext
11988
11989fi
11990rm -f conftest.err conftest.$ac_objext \
11991      conftest$ac_exeext conftest.$ac_ext
11992
11993echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
11994echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6
11995cat >conftest.$ac_ext <<_ACEOF
11996/* confdefs.h.  */
11997_ACEOF
11998cat confdefs.h >>conftest.$ac_ext
11999cat >>conftest.$ac_ext <<_ACEOF
12000/* end confdefs.h.  */
12001
12002#ifdef HAVE_TERMCAP_H
12003# include <termcap.h>
12004#endif
12005
12006int
12007main ()
12008{
12009extern int xx(); tputs("test", 1, (outfuntype)xx)
12010  ;
12011  return 0;
12012}
12013_ACEOF
12014rm -f conftest.$ac_objext
12015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12016  (eval $ac_compile) 2>conftest.er1
12017  ac_status=$?
12018  grep -v '^ *+' conftest.er1 >conftest.err
12019  rm -f conftest.er1
12020  cat conftest.err >&5
12021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022  (exit $ac_status); } &&
12023	 { ac_try='test -z "$ac_c_werror_flag"
12024			 || test ! -s conftest.err'
12025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12026  (eval $ac_try) 2>&5
12027  ac_status=$?
12028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029  (exit $ac_status); }; } &&
12030	 { ac_try='test -s conftest.$ac_objext'
12031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032  (eval $ac_try) 2>&5
12033  ac_status=$?
12034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035  (exit $ac_status); }; }; then
12036  echo "$as_me:$LINENO: result: yes" >&5
12037echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12038#define HAVE_OUTFUNTYPE 1
12039_ACEOF
12040
12041else
12042  echo "$as_me: failed program was:" >&5
12043sed 's/^/| /' conftest.$ac_ext >&5
12044
12045echo "$as_me:$LINENO: result: no" >&5
12046echo "${ECHO_T}no" >&6
12047fi
12048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12049
12050echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
12051echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
12052cat >conftest.$ac_ext <<_ACEOF
12053/* confdefs.h.  */
12054_ACEOF
12055cat confdefs.h >>conftest.$ac_ext
12056cat >>conftest.$ac_ext <<_ACEOF
12057/* end confdefs.h.  */
12058
12059#include <sys/types.h>
12060#include <sys/time.h>
12061#include <sys/select.h>
12062int
12063main ()
12064{
12065
12066  ;
12067  return 0;
12068}
12069_ACEOF
12070rm -f conftest.$ac_objext
12071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12072  (eval $ac_compile) 2>conftest.er1
12073  ac_status=$?
12074  grep -v '^ *+' conftest.er1 >conftest.err
12075  rm -f conftest.er1
12076  cat conftest.err >&5
12077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078  (exit $ac_status); } &&
12079	 { ac_try='test -z "$ac_c_werror_flag"
12080			 || test ! -s conftest.err'
12081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12082  (eval $ac_try) 2>&5
12083  ac_status=$?
12084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085  (exit $ac_status); }; } &&
12086	 { ac_try='test -s conftest.$ac_objext'
12087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12088  (eval $ac_try) 2>&5
12089  ac_status=$?
12090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091  (exit $ac_status); }; }; then
12092  echo "$as_me:$LINENO: result: yes" >&5
12093echo "${ECHO_T}yes" >&6
12094			cat >>confdefs.h <<\_ACEOF
12095#define SYS_SELECT_WITH_SYS_TIME 1
12096_ACEOF
12097
12098else
12099  echo "$as_me: failed program was:" >&5
12100sed 's/^/| /' conftest.$ac_ext >&5
12101
12102echo "$as_me:$LINENO: result: no" >&5
12103echo "${ECHO_T}no" >&6
12104fi
12105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12106
12107
12108echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12109echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
12110if test -r /dev/ptc; then
12111  cat >>confdefs.h <<\_ACEOF
12112#define HAVE_DEV_PTC 1
12113_ACEOF
12114
12115  echo "$as_me:$LINENO: result: yes" >&5
12116echo "${ECHO_T}yes" >&6
12117else
12118  echo "$as_me:$LINENO: result: no" >&5
12119echo "${ECHO_T}no" >&6
12120fi
12121
12122echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
12123echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6
12124if test -c /dev/ptmx ; then
12125  cat >conftest.$ac_ext <<_ACEOF
12126/* confdefs.h.  */
12127_ACEOF
12128cat confdefs.h >>conftest.$ac_ext
12129cat >>conftest.$ac_ext <<_ACEOF
12130/* end confdefs.h.  */
12131
12132int
12133main ()
12134{
12135ptsname(0);grantpt(0);unlockpt(0);
12136  ;
12137  return 0;
12138}
12139_ACEOF
12140rm -f conftest.$ac_objext conftest$ac_exeext
12141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12142  (eval $ac_link) 2>conftest.er1
12143  ac_status=$?
12144  grep -v '^ *+' conftest.er1 >conftest.err
12145  rm -f conftest.er1
12146  cat conftest.err >&5
12147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148  (exit $ac_status); } &&
12149	 { ac_try='test -z "$ac_c_werror_flag"
12150			 || test ! -s conftest.err'
12151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12152  (eval $ac_try) 2>&5
12153  ac_status=$?
12154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155  (exit $ac_status); }; } &&
12156	 { ac_try='test -s conftest$ac_exeext'
12157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12158  (eval $ac_try) 2>&5
12159  ac_status=$?
12160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161  (exit $ac_status); }; }; then
12162  echo "$as_me:$LINENO: result: yes" >&5
12163echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12164#define HAVE_SVR4_PTYS 1
12165_ACEOF
12166
12167else
12168  echo "$as_me: failed program was:" >&5
12169sed 's/^/| /' conftest.$ac_ext >&5
12170
12171echo "$as_me:$LINENO: result: no" >&5
12172echo "${ECHO_T}no" >&6
12173fi
12174rm -f conftest.err conftest.$ac_objext \
12175      conftest$ac_exeext conftest.$ac_ext
12176else
12177  echo "$as_me:$LINENO: result: no" >&5
12178echo "${ECHO_T}no" >&6
12179fi
12180
12181echo "$as_me:$LINENO: checking for ptyranges" >&5
12182echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6
12183if test -d /dev/ptym ; then
12184  pdir='/dev/ptym'
12185else
12186  pdir='/dev'
12187fi
12188cat >conftest.$ac_ext <<_ACEOF
12189/* confdefs.h.  */
12190_ACEOF
12191cat confdefs.h >>conftest.$ac_ext
12192cat >>conftest.$ac_ext <<_ACEOF
12193/* end confdefs.h.  */
12194#ifdef M_UNIX
12195   yes;
12196#endif
12197
12198_ACEOF
12199if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12200  $EGREP "yes" >/dev/null 2>&1; then
12201  ptys=`echo /dev/ptyp??`
12202else
12203  ptys=`echo $pdir/pty??`
12204fi
12205rm -f conftest*
12206
12207if test "$ptys" != "$pdir/pty??" ; then
12208  p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12209  p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g'  | sort -u | tr -d '\012'`
12210  cat >>confdefs.h <<_ACEOF
12211#define PTYRANGE0 "$p0"
12212_ACEOF
12213
12214  cat >>confdefs.h <<_ACEOF
12215#define PTYRANGE1 "$p1"
12216_ACEOF
12217
12218  echo "$as_me:$LINENO: result: $p0 / $p1" >&5
12219echo "${ECHO_T}$p0 / $p1" >&6
12220else
12221  echo "$as_me:$LINENO: result: don't know" >&5
12222echo "${ECHO_T}don't know" >&6
12223fi
12224
12225echo "$as_me:$LINENO: checking default tty permissions/group" >&5
12226echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6
12227rm -f conftest_grp
12228if test "$cross_compiling" = yes; then
12229  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12230echo "$as_me: error: failed to compile test program" >&2;}
12231   { (exit 1); exit 1; }; }
12232else
12233  cat >conftest.$ac_ext <<_ACEOF
12234/* confdefs.h.  */
12235_ACEOF
12236cat confdefs.h >>conftest.$ac_ext
12237cat >>conftest.$ac_ext <<_ACEOF
12238/* end confdefs.h.  */
12239
12240#include <sys/types.h>
12241#include <sys/stat.h>
12242#include <stdio.h>
12243main()
12244{
12245  struct stat sb;
12246  char *x,*ttyname();
12247  int om, m;
12248  FILE *fp;
12249
12250  if (!(x = ttyname(0))) exit(1);
12251  if (stat(x, &sb)) exit(1);
12252  om = sb.st_mode;
12253  if (om & 002) exit(0);
12254  m = system("mesg y");
12255  if (m == -1 || m == 127) exit(1);
12256  if (stat(x, &sb)) exit(1);
12257  m = sb.st_mode;
12258  if (chmod(x, om)) exit(1);
12259  if (m & 002) exit(0);
12260  if (sb.st_gid == getgid()) exit(1);
12261  if (!(fp=fopen("conftest_grp", "w")))
12262    exit(1);
12263  fprintf(fp, "%d\n", sb.st_gid);
12264  fclose(fp);
12265  exit(0);
12266}
12267
12268_ACEOF
12269rm -f conftest$ac_exeext
12270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12271  (eval $ac_link) 2>&5
12272  ac_status=$?
12273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276  (eval $ac_try) 2>&5
12277  ac_status=$?
12278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279  (exit $ac_status); }; }; then
12280
12281    if test -f conftest_grp; then
12282	ptygrp=`cat conftest_grp`
12283	echo "$as_me:$LINENO: result: pty mode: 0620, group: $ptygrp" >&5
12284echo "${ECHO_T}pty mode: 0620, group: $ptygrp" >&6
12285	cat >>confdefs.h <<\_ACEOF
12286#define PTYMODE 0620
12287_ACEOF
12288
12289	cat >>confdefs.h <<_ACEOF
12290#define PTYGROUP $ptygrp
12291_ACEOF
12292
12293    else
12294	echo "$as_me:$LINENO: result: ptys are world accessable" >&5
12295echo "${ECHO_T}ptys are world accessable" >&6
12296    fi
12297
12298else
12299  echo "$as_me: program exited with status $ac_status" >&5
12300echo "$as_me: failed program was:" >&5
12301sed 's/^/| /' conftest.$ac_ext >&5
12302
12303( exit $ac_status )
12304echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
12305echo "${ECHO_T}can't determine - assume ptys are world accessable" >&6
12306fi
12307rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12308fi
12309rm -f conftest_grp
12310
12311
12312echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12313echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12314if test "${ac_cv_type_signal+set}" = set; then
12315  echo $ECHO_N "(cached) $ECHO_C" >&6
12316else
12317  cat >conftest.$ac_ext <<_ACEOF
12318/* confdefs.h.  */
12319_ACEOF
12320cat confdefs.h >>conftest.$ac_ext
12321cat >>conftest.$ac_ext <<_ACEOF
12322/* end confdefs.h.  */
12323#include <sys/types.h>
12324#include <signal.h>
12325#ifdef signal
12326# undef signal
12327#endif
12328#ifdef __cplusplus
12329extern "C" void (*signal (int, void (*)(int)))(int);
12330#else
12331void (*signal ()) ();
12332#endif
12333
12334int
12335main ()
12336{
12337int i;
12338  ;
12339  return 0;
12340}
12341_ACEOF
12342rm -f conftest.$ac_objext
12343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12344  (eval $ac_compile) 2>conftest.er1
12345  ac_status=$?
12346  grep -v '^ *+' conftest.er1 >conftest.err
12347  rm -f conftest.er1
12348  cat conftest.err >&5
12349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350  (exit $ac_status); } &&
12351	 { ac_try='test -z "$ac_c_werror_flag"
12352			 || test ! -s conftest.err'
12353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354  (eval $ac_try) 2>&5
12355  ac_status=$?
12356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357  (exit $ac_status); }; } &&
12358	 { ac_try='test -s conftest.$ac_objext'
12359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360  (eval $ac_try) 2>&5
12361  ac_status=$?
12362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363  (exit $ac_status); }; }; then
12364  ac_cv_type_signal=void
12365else
12366  echo "$as_me: failed program was:" >&5
12367sed 's/^/| /' conftest.$ac_ext >&5
12368
12369ac_cv_type_signal=int
12370fi
12371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12372fi
12373echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12374echo "${ECHO_T}$ac_cv_type_signal" >&6
12375
12376cat >>confdefs.h <<_ACEOF
12377#define RETSIGTYPE $ac_cv_type_signal
12378_ACEOF
12379
12380
12381
12382if test $ac_cv_type_signal = void; then
12383  cat >>confdefs.h <<\_ACEOF
12384#define SIGRETURN return
12385_ACEOF
12386
12387else
12388  cat >>confdefs.h <<\_ACEOF
12389#define SIGRETURN return 0
12390_ACEOF
12391
12392fi
12393
12394echo "$as_me:$LINENO: checking for struct sigcontext" >&5
12395echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6
12396cat >conftest.$ac_ext <<_ACEOF
12397/* confdefs.h.  */
12398_ACEOF
12399cat confdefs.h >>conftest.$ac_ext
12400cat >>conftest.$ac_ext <<_ACEOF
12401/* end confdefs.h.  */
12402
12403#include <signal.h>
12404test_sig()
12405{
12406    struct sigcontext *scont;
12407    scont = (struct sigcontext *)0;
12408    return 1;
12409}
12410int
12411main ()
12412{
12413
12414  ;
12415  return 0;
12416}
12417_ACEOF
12418rm -f conftest.$ac_objext
12419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12420  (eval $ac_compile) 2>conftest.er1
12421  ac_status=$?
12422  grep -v '^ *+' conftest.er1 >conftest.err
12423  rm -f conftest.er1
12424  cat conftest.err >&5
12425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426  (exit $ac_status); } &&
12427	 { ac_try='test -z "$ac_c_werror_flag"
12428			 || test ! -s conftest.err'
12429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430  (eval $ac_try) 2>&5
12431  ac_status=$?
12432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433  (exit $ac_status); }; } &&
12434	 { ac_try='test -s conftest.$ac_objext'
12435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436  (eval $ac_try) 2>&5
12437  ac_status=$?
12438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439  (exit $ac_status); }; }; then
12440  echo "$as_me:$LINENO: result: yes" >&5
12441echo "${ECHO_T}yes" >&6
12442		cat >>confdefs.h <<\_ACEOF
12443#define HAVE_SIGCONTEXT 1
12444_ACEOF
12445
12446else
12447  echo "$as_me: failed program was:" >&5
12448sed 's/^/| /' conftest.$ac_ext >&5
12449
12450echo "$as_me:$LINENO: result: no" >&5
12451echo "${ECHO_T}no" >&6
12452fi
12453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12454
12455echo "$as_me:$LINENO: checking getcwd implementation" >&5
12456echo $ECHO_N "checking getcwd implementation... $ECHO_C" >&6
12457if test "$cross_compiling" = yes; then
12458  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12459echo "$as_me: error: failed to compile test program" >&2;}
12460   { (exit 1); exit 1; }; }
12461else
12462  cat >conftest.$ac_ext <<_ACEOF
12463/* confdefs.h.  */
12464_ACEOF
12465cat confdefs.h >>conftest.$ac_ext
12466cat >>conftest.$ac_ext <<_ACEOF
12467/* end confdefs.h.  */
12468
12469char *dagger[] = { "IFS=pwd", 0 };
12470main()
12471{
12472  char buffer[500];
12473  extern char **environ;
12474  environ = dagger;
12475  return getcwd(buffer, 500) ? 0 : 1;
12476}
12477_ACEOF
12478rm -f conftest$ac_exeext
12479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12480  (eval $ac_link) 2>&5
12481  ac_status=$?
12482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12485  (eval $ac_try) 2>&5
12486  ac_status=$?
12487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488  (exit $ac_status); }; }; then
12489  echo "$as_me:$LINENO: result: it is usable" >&5
12490echo "${ECHO_T}it is usable" >&6
12491else
12492  echo "$as_me: program exited with status $ac_status" >&5
12493echo "$as_me: failed program was:" >&5
12494sed 's/^/| /' conftest.$ac_ext >&5
12495
12496( exit $ac_status )
12497echo "$as_me:$LINENO: result: it stinks" >&5
12498echo "${ECHO_T}it stinks" >&6
12499		cat >>confdefs.h <<\_ACEOF
12500#define BAD_GETCWD 1
12501_ACEOF
12502
12503fi
12504rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12505fi
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
12554	getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
12555	memset nanosleep opendir putenv qsort readlink select setenv \
12556	setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
12557	sigvec strcasecmp strerror strftime stricmp strncasecmp \
12558	strnicmp strpbrk strtol tgetent towlower towupper iswupper \
12559	usleep utime utimes
12560do
12561as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12562echo "$as_me:$LINENO: checking for $ac_func" >&5
12563echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12564if eval "test \"\${$as_ac_var+set}\" = set"; then
12565  echo $ECHO_N "(cached) $ECHO_C" >&6
12566else
12567  cat >conftest.$ac_ext <<_ACEOF
12568/* confdefs.h.  */
12569_ACEOF
12570cat confdefs.h >>conftest.$ac_ext
12571cat >>conftest.$ac_ext <<_ACEOF
12572/* end confdefs.h.  */
12573/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12574   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12575#define $ac_func innocuous_$ac_func
12576
12577/* System header to define __stub macros and hopefully few prototypes,
12578    which can conflict with char $ac_func (); below.
12579    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12580    <limits.h> exists even on freestanding compilers.  */
12581
12582#ifdef __STDC__
12583# include <limits.h>
12584#else
12585# include <assert.h>
12586#endif
12587
12588#undef $ac_func
12589
12590/* Override any gcc2 internal prototype to avoid an error.  */
12591#ifdef __cplusplus
12592extern "C"
12593{
12594#endif
12595/* We use char because int might match the return type of a gcc2
12596   builtin and then its argument prototype would still apply.  */
12597char $ac_func ();
12598/* The GNU C library defines this for functions which it implements
12599    to always fail with ENOSYS.  Some functions are actually named
12600    something starting with __ and the normal name is an alias.  */
12601#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12602choke me
12603#else
12604char (*f) () = $ac_func;
12605#endif
12606#ifdef __cplusplus
12607}
12608#endif
12609
12610int
12611main ()
12612{
12613return f != $ac_func;
12614  ;
12615  return 0;
12616}
12617_ACEOF
12618rm -f conftest.$ac_objext conftest$ac_exeext
12619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12620  (eval $ac_link) 2>conftest.er1
12621  ac_status=$?
12622  grep -v '^ *+' conftest.er1 >conftest.err
12623  rm -f conftest.er1
12624  cat conftest.err >&5
12625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626  (exit $ac_status); } &&
12627	 { ac_try='test -z "$ac_c_werror_flag"
12628			 || test ! -s conftest.err'
12629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12630  (eval $ac_try) 2>&5
12631  ac_status=$?
12632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633  (exit $ac_status); }; } &&
12634	 { ac_try='test -s conftest$ac_exeext'
12635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636  (eval $ac_try) 2>&5
12637  ac_status=$?
12638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639  (exit $ac_status); }; }; then
12640  eval "$as_ac_var=yes"
12641else
12642  echo "$as_me: failed program was:" >&5
12643sed 's/^/| /' conftest.$ac_ext >&5
12644
12645eval "$as_ac_var=no"
12646fi
12647rm -f conftest.err conftest.$ac_objext \
12648      conftest$ac_exeext conftest.$ac_ext
12649fi
12650echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12651echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12652if test `eval echo '${'$as_ac_var'}'` = yes; then
12653  cat >>confdefs.h <<_ACEOF
12654#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12655_ACEOF
12656
12657fi
12658done
12659
12660
12661echo "$as_me:$LINENO: checking for st_blksize" >&5
12662echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6
12663cat >conftest.$ac_ext <<_ACEOF
12664/* confdefs.h.  */
12665_ACEOF
12666cat confdefs.h >>conftest.$ac_ext
12667cat >>conftest.$ac_ext <<_ACEOF
12668/* end confdefs.h.  */
12669#include <sys/types.h>
12670#include <sys/stat.h>
12671int
12672main ()
12673{
12674	struct stat st;
12675	int n;
12676
12677	stat("/", &st);
12678	n = (int)st.st_blksize;
12679  ;
12680  return 0;
12681}
12682_ACEOF
12683rm -f conftest.$ac_objext
12684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12685  (eval $ac_compile) 2>conftest.er1
12686  ac_status=$?
12687  grep -v '^ *+' conftest.er1 >conftest.err
12688  rm -f conftest.er1
12689  cat conftest.err >&5
12690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691  (exit $ac_status); } &&
12692	 { ac_try='test -z "$ac_c_werror_flag"
12693			 || test ! -s conftest.err'
12694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12695  (eval $ac_try) 2>&5
12696  ac_status=$?
12697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698  (exit $ac_status); }; } &&
12699	 { ac_try='test -s conftest.$ac_objext'
12700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12701  (eval $ac_try) 2>&5
12702  ac_status=$?
12703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704  (exit $ac_status); }; }; then
12705  echo "$as_me:$LINENO: result: yes" >&5
12706echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12707#define HAVE_ST_BLKSIZE 1
12708_ACEOF
12709
12710else
12711  echo "$as_me: failed program was:" >&5
12712sed 's/^/| /' conftest.$ac_ext >&5
12713
12714echo "$as_me:$LINENO: result: no" >&5
12715echo "${ECHO_T}no" >&6
12716fi
12717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12718
12719echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
12720echo $ECHO_N "checking whether stat() ignores a trailing slash... $ECHO_C" >&6
12721if test "$cross_compiling" = yes; then
12722  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12723echo "$as_me: error: failed to compile test program" >&2;}
12724   { (exit 1); exit 1; }; }
12725else
12726  cat >conftest.$ac_ext <<_ACEOF
12727/* confdefs.h.  */
12728_ACEOF
12729cat confdefs.h >>conftest.$ac_ext
12730cat >>conftest.$ac_ext <<_ACEOF
12731/* end confdefs.h.  */
12732#include <sys/types.h>
12733#include <sys/stat.h>
12734main() {struct stat st;  exit(stat("configure/", &st) != 0); }
12735_ACEOF
12736rm -f conftest$ac_exeext
12737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12738  (eval $ac_link) 2>&5
12739  ac_status=$?
12740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12743  (eval $ac_try) 2>&5
12744  ac_status=$?
12745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746  (exit $ac_status); }; }; then
12747  echo "$as_me:$LINENO: result: yes" >&5
12748echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12749#define STAT_IGNORES_SLASH 1
12750_ACEOF
12751
12752else
12753  echo "$as_me: program exited with status $ac_status" >&5
12754echo "$as_me: failed program was:" >&5
12755sed 's/^/| /' conftest.$ac_ext >&5
12756
12757( exit $ac_status )
12758echo "$as_me:$LINENO: result: no" >&5
12759echo "${ECHO_T}no" >&6
12760fi
12761rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12762fi
12763
12764echo "$as_me:$LINENO: checking for iconv_open()" >&5
12765echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6
12766save_LIBS="$LIBS"
12767LIBS="$LIBS -liconv"
12768cat >conftest.$ac_ext <<_ACEOF
12769/* confdefs.h.  */
12770_ACEOF
12771cat confdefs.h >>conftest.$ac_ext
12772cat >>conftest.$ac_ext <<_ACEOF
12773/* end confdefs.h.  */
12774
12775#ifdef HAVE_ICONV_H
12776# include <iconv.h>
12777#endif
12778
12779int
12780main ()
12781{
12782iconv_open("fr", "to");
12783  ;
12784  return 0;
12785}
12786_ACEOF
12787rm -f conftest.$ac_objext conftest$ac_exeext
12788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12789  (eval $ac_link) 2>conftest.er1
12790  ac_status=$?
12791  grep -v '^ *+' conftest.er1 >conftest.err
12792  rm -f conftest.er1
12793  cat conftest.err >&5
12794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795  (exit $ac_status); } &&
12796	 { ac_try='test -z "$ac_c_werror_flag"
12797			 || test ! -s conftest.err'
12798  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12799  (eval $ac_try) 2>&5
12800  ac_status=$?
12801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802  (exit $ac_status); }; } &&
12803	 { ac_try='test -s conftest$ac_exeext'
12804  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805  (eval $ac_try) 2>&5
12806  ac_status=$?
12807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808  (exit $ac_status); }; }; then
12809  echo "$as_me:$LINENO: result: yes; with -liconv" >&5
12810echo "${ECHO_T}yes; with -liconv" >&6; cat >>confdefs.h <<\_ACEOF
12811#define HAVE_ICONV 1
12812_ACEOF
12813
12814else
12815  echo "$as_me: failed program was:" >&5
12816sed 's/^/| /' conftest.$ac_ext >&5
12817
12818LIBS="$save_LIBS"
12819    cat >conftest.$ac_ext <<_ACEOF
12820/* confdefs.h.  */
12821_ACEOF
12822cat confdefs.h >>conftest.$ac_ext
12823cat >>conftest.$ac_ext <<_ACEOF
12824/* end confdefs.h.  */
12825
12826#ifdef HAVE_ICONV_H
12827# include <iconv.h>
12828#endif
12829
12830int
12831main ()
12832{
12833iconv_open("fr", "to");
12834  ;
12835  return 0;
12836}
12837_ACEOF
12838rm -f conftest.$ac_objext conftest$ac_exeext
12839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12840  (eval $ac_link) 2>conftest.er1
12841  ac_status=$?
12842  grep -v '^ *+' conftest.er1 >conftest.err
12843  rm -f conftest.er1
12844  cat conftest.err >&5
12845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846  (exit $ac_status); } &&
12847	 { ac_try='test -z "$ac_c_werror_flag"
12848			 || test ! -s conftest.err'
12849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12850  (eval $ac_try) 2>&5
12851  ac_status=$?
12852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853  (exit $ac_status); }; } &&
12854	 { ac_try='test -s conftest$ac_exeext'
12855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856  (eval $ac_try) 2>&5
12857  ac_status=$?
12858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859  (exit $ac_status); }; }; then
12860  echo "$as_me:$LINENO: result: yes" >&5
12861echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12862#define HAVE_ICONV 1
12863_ACEOF
12864
12865else
12866  echo "$as_me: failed program was:" >&5
12867sed 's/^/| /' conftest.$ac_ext >&5
12868
12869echo "$as_me:$LINENO: result: no" >&5
12870echo "${ECHO_T}no" >&6
12871fi
12872rm -f conftest.err conftest.$ac_objext \
12873      conftest$ac_exeext conftest.$ac_ext
12874fi
12875rm -f conftest.err conftest.$ac_objext \
12876      conftest$ac_exeext conftest.$ac_ext
12877
12878
12879echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
12880echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6
12881cat >conftest.$ac_ext <<_ACEOF
12882/* confdefs.h.  */
12883_ACEOF
12884cat confdefs.h >>conftest.$ac_ext
12885cat >>conftest.$ac_ext <<_ACEOF
12886/* end confdefs.h.  */
12887
12888#ifdef HAVE_LANGINFO_H
12889# include <langinfo.h>
12890#endif
12891
12892int
12893main ()
12894{
12895char *cs = nl_langinfo(CODESET);
12896  ;
12897  return 0;
12898}
12899_ACEOF
12900rm -f conftest.$ac_objext conftest$ac_exeext
12901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12902  (eval $ac_link) 2>conftest.er1
12903  ac_status=$?
12904  grep -v '^ *+' conftest.er1 >conftest.err
12905  rm -f conftest.er1
12906  cat conftest.err >&5
12907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908  (exit $ac_status); } &&
12909	 { ac_try='test -z "$ac_c_werror_flag"
12910			 || test ! -s conftest.err'
12911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912  (eval $ac_try) 2>&5
12913  ac_status=$?
12914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915  (exit $ac_status); }; } &&
12916	 { ac_try='test -s conftest$ac_exeext'
12917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12918  (eval $ac_try) 2>&5
12919  ac_status=$?
12920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921  (exit $ac_status); }; }; then
12922  echo "$as_me:$LINENO: result: yes" >&5
12923echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
12924#define HAVE_NL_LANGINFO_CODESET 1
12925_ACEOF
12926
12927else
12928  echo "$as_me: failed program was:" >&5
12929sed 's/^/| /' conftest.$ac_ext >&5
12930
12931echo "$as_me:$LINENO: result: no" >&5
12932echo "${ECHO_T}no" >&6
12933fi
12934rm -f conftest.err conftest.$ac_objext \
12935      conftest$ac_exeext conftest.$ac_ext
12936
12937echo "$as_me:$LINENO: checking --disable-acl argument" >&5
12938echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6
12939# Check whether --enable-acl or --disable-acl was given.
12940if test "${enable_acl+set}" = set; then
12941  enableval="$enable_acl"
12942
12943else
12944  enable_acl="yes"
12945fi;
12946if test "$enable_acl" = "yes"; then
12947echo "$as_me:$LINENO: result: no" >&5
12948echo "${ECHO_T}no" >&6
12949echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
12950echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6
12951if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
12952  echo $ECHO_N "(cached) $ECHO_C" >&6
12953else
12954  ac_check_lib_save_LIBS=$LIBS
12955LIBS="-lposix1e  $LIBS"
12956cat >conftest.$ac_ext <<_ACEOF
12957/* confdefs.h.  */
12958_ACEOF
12959cat confdefs.h >>conftest.$ac_ext
12960cat >>conftest.$ac_ext <<_ACEOF
12961/* end confdefs.h.  */
12962
12963/* Override any gcc2 internal prototype to avoid an error.  */
12964#ifdef __cplusplus
12965extern "C"
12966#endif
12967/* We use char because int might match the return type of a gcc2
12968   builtin and then its argument prototype would still apply.  */
12969char acl_get_file ();
12970int
12971main ()
12972{
12973acl_get_file ();
12974  ;
12975  return 0;
12976}
12977_ACEOF
12978rm -f conftest.$ac_objext conftest$ac_exeext
12979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12980  (eval $ac_link) 2>conftest.er1
12981  ac_status=$?
12982  grep -v '^ *+' conftest.er1 >conftest.err
12983  rm -f conftest.er1
12984  cat conftest.err >&5
12985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986  (exit $ac_status); } &&
12987	 { ac_try='test -z "$ac_c_werror_flag"
12988			 || test ! -s conftest.err'
12989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12990  (eval $ac_try) 2>&5
12991  ac_status=$?
12992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993  (exit $ac_status); }; } &&
12994	 { ac_try='test -s conftest$ac_exeext'
12995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12996  (eval $ac_try) 2>&5
12997  ac_status=$?
12998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999  (exit $ac_status); }; }; then
13000  ac_cv_lib_posix1e_acl_get_file=yes
13001else
13002  echo "$as_me: failed program was:" >&5
13003sed 's/^/| /' conftest.$ac_ext >&5
13004
13005ac_cv_lib_posix1e_acl_get_file=no
13006fi
13007rm -f conftest.err conftest.$ac_objext \
13008      conftest$ac_exeext conftest.$ac_ext
13009LIBS=$ac_check_lib_save_LIBS
13010fi
13011echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
13012echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6
13013if test $ac_cv_lib_posix1e_acl_get_file = yes; then
13014  LIBS="$LIBS -lposix1e"
13015else
13016  echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
13017echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
13018if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
13019  echo $ECHO_N "(cached) $ECHO_C" >&6
13020else
13021  ac_check_lib_save_LIBS=$LIBS
13022LIBS="-lacl  $LIBS"
13023cat >conftest.$ac_ext <<_ACEOF
13024/* confdefs.h.  */
13025_ACEOF
13026cat confdefs.h >>conftest.$ac_ext
13027cat >>conftest.$ac_ext <<_ACEOF
13028/* end confdefs.h.  */
13029
13030/* Override any gcc2 internal prototype to avoid an error.  */
13031#ifdef __cplusplus
13032extern "C"
13033#endif
13034/* We use char because int might match the return type of a gcc2
13035   builtin and then its argument prototype would still apply.  */
13036char acl_get_file ();
13037int
13038main ()
13039{
13040acl_get_file ();
13041  ;
13042  return 0;
13043}
13044_ACEOF
13045rm -f conftest.$ac_objext conftest$ac_exeext
13046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13047  (eval $ac_link) 2>conftest.er1
13048  ac_status=$?
13049  grep -v '^ *+' conftest.er1 >conftest.err
13050  rm -f conftest.er1
13051  cat conftest.err >&5
13052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053  (exit $ac_status); } &&
13054	 { ac_try='test -z "$ac_c_werror_flag"
13055			 || test ! -s conftest.err'
13056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13057  (eval $ac_try) 2>&5
13058  ac_status=$?
13059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060  (exit $ac_status); }; } &&
13061	 { ac_try='test -s conftest$ac_exeext'
13062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13063  (eval $ac_try) 2>&5
13064  ac_status=$?
13065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066  (exit $ac_status); }; }; then
13067  ac_cv_lib_acl_acl_get_file=yes
13068else
13069  echo "$as_me: failed program was:" >&5
13070sed 's/^/| /' conftest.$ac_ext >&5
13071
13072ac_cv_lib_acl_acl_get_file=no
13073fi
13074rm -f conftest.err conftest.$ac_objext \
13075      conftest$ac_exeext conftest.$ac_ext
13076LIBS=$ac_check_lib_save_LIBS
13077fi
13078echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
13079echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
13080if test $ac_cv_lib_acl_acl_get_file = yes; then
13081  LIBS="$LIBS -lacl"
13082		  echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
13083echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6
13084if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
13085  echo $ECHO_N "(cached) $ECHO_C" >&6
13086else
13087  ac_check_lib_save_LIBS=$LIBS
13088LIBS="-lattr  $LIBS"
13089cat >conftest.$ac_ext <<_ACEOF
13090/* confdefs.h.  */
13091_ACEOF
13092cat confdefs.h >>conftest.$ac_ext
13093cat >>conftest.$ac_ext <<_ACEOF
13094/* end confdefs.h.  */
13095
13096/* Override any gcc2 internal prototype to avoid an error.  */
13097#ifdef __cplusplus
13098extern "C"
13099#endif
13100/* We use char because int might match the return type of a gcc2
13101   builtin and then its argument prototype would still apply.  */
13102char fgetxattr ();
13103int
13104main ()
13105{
13106fgetxattr ();
13107  ;
13108  return 0;
13109}
13110_ACEOF
13111rm -f conftest.$ac_objext conftest$ac_exeext
13112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13113  (eval $ac_link) 2>conftest.er1
13114  ac_status=$?
13115  grep -v '^ *+' conftest.er1 >conftest.err
13116  rm -f conftest.er1
13117  cat conftest.err >&5
13118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119  (exit $ac_status); } &&
13120	 { ac_try='test -z "$ac_c_werror_flag"
13121			 || test ! -s conftest.err'
13122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13123  (eval $ac_try) 2>&5
13124  ac_status=$?
13125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126  (exit $ac_status); }; } &&
13127	 { ac_try='test -s conftest$ac_exeext'
13128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13129  (eval $ac_try) 2>&5
13130  ac_status=$?
13131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132  (exit $ac_status); }; }; then
13133  ac_cv_lib_attr_fgetxattr=yes
13134else
13135  echo "$as_me: failed program was:" >&5
13136sed 's/^/| /' conftest.$ac_ext >&5
13137
13138ac_cv_lib_attr_fgetxattr=no
13139fi
13140rm -f conftest.err conftest.$ac_objext \
13141      conftest$ac_exeext conftest.$ac_ext
13142LIBS=$ac_check_lib_save_LIBS
13143fi
13144echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
13145echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6
13146if test $ac_cv_lib_attr_fgetxattr = yes; then
13147  LIBS="$LIBS -lattr"
13148fi
13149
13150fi
13151
13152fi
13153
13154
13155echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
13156echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6
13157cat >conftest.$ac_ext <<_ACEOF
13158/* confdefs.h.  */
13159_ACEOF
13160cat confdefs.h >>conftest.$ac_ext
13161cat >>conftest.$ac_ext <<_ACEOF
13162/* end confdefs.h.  */
13163
13164#include <sys/types.h>
13165#ifdef HAVE_SYS_ACL_H
13166# include <sys/acl.h>
13167#endif
13168acl_t acl;
13169int
13170main ()
13171{
13172acl = acl_get_file("foo", ACL_TYPE_ACCESS);
13173	acl_set_file("foo", ACL_TYPE_ACCESS, acl);
13174	acl_free(acl);
13175  ;
13176  return 0;
13177}
13178_ACEOF
13179rm -f conftest.$ac_objext conftest$ac_exeext
13180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13181  (eval $ac_link) 2>conftest.er1
13182  ac_status=$?
13183  grep -v '^ *+' conftest.er1 >conftest.err
13184  rm -f conftest.er1
13185  cat conftest.err >&5
13186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187  (exit $ac_status); } &&
13188	 { ac_try='test -z "$ac_c_werror_flag"
13189			 || test ! -s conftest.err'
13190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13191  (eval $ac_try) 2>&5
13192  ac_status=$?
13193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194  (exit $ac_status); }; } &&
13195	 { ac_try='test -s conftest$ac_exeext'
13196  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13197  (eval $ac_try) 2>&5
13198  ac_status=$?
13199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200  (exit $ac_status); }; }; then
13201  echo "$as_me:$LINENO: result: yes" >&5
13202echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13203#define HAVE_POSIX_ACL 1
13204_ACEOF
13205
13206else
13207  echo "$as_me: failed program was:" >&5
13208sed 's/^/| /' conftest.$ac_ext >&5
13209
13210echo "$as_me:$LINENO: result: no" >&5
13211echo "${ECHO_T}no" >&6
13212fi
13213rm -f conftest.err conftest.$ac_objext \
13214      conftest$ac_exeext conftest.$ac_ext
13215
13216echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
13217echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6
13218cat >conftest.$ac_ext <<_ACEOF
13219/* confdefs.h.  */
13220_ACEOF
13221cat confdefs.h >>conftest.$ac_ext
13222cat >>conftest.$ac_ext <<_ACEOF
13223/* end confdefs.h.  */
13224
13225#ifdef HAVE_SYS_ACL_H
13226# include <sys/acl.h>
13227#endif
13228int
13229main ()
13230{
13231acl("foo", GETACLCNT, 0, NULL);
13232
13233  ;
13234  return 0;
13235}
13236_ACEOF
13237rm -f conftest.$ac_objext conftest$ac_exeext
13238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13239  (eval $ac_link) 2>conftest.er1
13240  ac_status=$?
13241  grep -v '^ *+' conftest.er1 >conftest.err
13242  rm -f conftest.er1
13243  cat conftest.err >&5
13244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245  (exit $ac_status); } &&
13246	 { ac_try='test -z "$ac_c_werror_flag"
13247			 || test ! -s conftest.err'
13248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249  (eval $ac_try) 2>&5
13250  ac_status=$?
13251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252  (exit $ac_status); }; } &&
13253	 { ac_try='test -s conftest$ac_exeext'
13254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13255  (eval $ac_try) 2>&5
13256  ac_status=$?
13257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258  (exit $ac_status); }; }; then
13259  echo "$as_me:$LINENO: result: yes" >&5
13260echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13261#define HAVE_SOLARIS_ACL 1
13262_ACEOF
13263
13264else
13265  echo "$as_me: failed program was:" >&5
13266sed 's/^/| /' conftest.$ac_ext >&5
13267
13268echo "$as_me:$LINENO: result: no" >&5
13269echo "${ECHO_T}no" >&6
13270fi
13271rm -f conftest.err conftest.$ac_objext \
13272      conftest$ac_exeext conftest.$ac_ext
13273
13274echo "$as_me:$LINENO: checking for AIX ACL support" >&5
13275echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6
13276cat >conftest.$ac_ext <<_ACEOF
13277/* confdefs.h.  */
13278_ACEOF
13279cat confdefs.h >>conftest.$ac_ext
13280cat >>conftest.$ac_ext <<_ACEOF
13281/* end confdefs.h.  */
13282
13283#ifdef HAVE_SYS_ACL_H
13284# include <sys/acl.h>
13285#endif
13286#ifdef HAVE_SYS_ACCESS_H
13287# include <sys/access.h>
13288#endif
13289#define _ALL_SOURCE
13290
13291#include <sys/stat.h>
13292
13293int aclsize;
13294struct acl *aclent;
13295int
13296main ()
13297{
13298aclsize = sizeof(struct acl);
13299	aclent = (void *)malloc(aclsize);
13300	statacl("foo", STX_NORMAL, aclent, aclsize);
13301
13302  ;
13303  return 0;
13304}
13305_ACEOF
13306rm -f conftest.$ac_objext conftest$ac_exeext
13307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13308  (eval $ac_link) 2>conftest.er1
13309  ac_status=$?
13310  grep -v '^ *+' conftest.er1 >conftest.err
13311  rm -f conftest.er1
13312  cat conftest.err >&5
13313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314  (exit $ac_status); } &&
13315	 { ac_try='test -z "$ac_c_werror_flag"
13316			 || test ! -s conftest.err'
13317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13318  (eval $ac_try) 2>&5
13319  ac_status=$?
13320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321  (exit $ac_status); }; } &&
13322	 { ac_try='test -s conftest$ac_exeext'
13323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13324  (eval $ac_try) 2>&5
13325  ac_status=$?
13326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327  (exit $ac_status); }; }; then
13328  echo "$as_me:$LINENO: result: yes" >&5
13329echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13330#define HAVE_AIX_ACL 1
13331_ACEOF
13332
13333else
13334  echo "$as_me: failed program was:" >&5
13335sed 's/^/| /' conftest.$ac_ext >&5
13336
13337echo "$as_me:$LINENO: result: no" >&5
13338echo "${ECHO_T}no" >&6
13339fi
13340rm -f conftest.err conftest.$ac_objext \
13341      conftest$ac_exeext conftest.$ac_ext
13342else
13343  echo "$as_me:$LINENO: result: yes" >&5
13344echo "${ECHO_T}yes" >&6
13345fi
13346
13347echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
13348echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6
13349# Check whether --enable-gpm or --disable-gpm was given.
13350if test "${enable_gpm+set}" = set; then
13351  enableval="$enable_gpm"
13352
13353else
13354  enable_gpm="yes"
13355fi;
13356
13357if test "$enable_gpm" = "yes"; then
13358  echo "$as_me:$LINENO: result: no" >&5
13359echo "${ECHO_T}no" >&6
13360    echo "$as_me:$LINENO: checking for gpm" >&5
13361echo $ECHO_N "checking for gpm... $ECHO_C" >&6
13362if test "${vi_cv_have_gpm+set}" = set; then
13363  echo $ECHO_N "(cached) $ECHO_C" >&6
13364else
13365  olibs="$LIBS" ; LIBS="-lgpm"
13366	cat >conftest.$ac_ext <<_ACEOF
13367/* confdefs.h.  */
13368_ACEOF
13369cat confdefs.h >>conftest.$ac_ext
13370cat >>conftest.$ac_ext <<_ACEOF
13371/* end confdefs.h.  */
13372#include <gpm.h>
13373	    #include <linux/keyboard.h>
13374int
13375main ()
13376{
13377Gpm_GetLibVersion(NULL);
13378  ;
13379  return 0;
13380}
13381_ACEOF
13382rm -f conftest.$ac_objext conftest$ac_exeext
13383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13384  (eval $ac_link) 2>conftest.er1
13385  ac_status=$?
13386  grep -v '^ *+' conftest.er1 >conftest.err
13387  rm -f conftest.er1
13388  cat conftest.err >&5
13389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390  (exit $ac_status); } &&
13391	 { ac_try='test -z "$ac_c_werror_flag"
13392			 || test ! -s conftest.err'
13393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13394  (eval $ac_try) 2>&5
13395  ac_status=$?
13396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397  (exit $ac_status); }; } &&
13398	 { ac_try='test -s conftest$ac_exeext'
13399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13400  (eval $ac_try) 2>&5
13401  ac_status=$?
13402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403  (exit $ac_status); }; }; then
13404  	    	    vi_cv_have_gpm=yes
13405else
13406  echo "$as_me: failed program was:" >&5
13407sed 's/^/| /' conftest.$ac_ext >&5
13408
13409vi_cv_have_gpm=no
13410fi
13411rm -f conftest.err conftest.$ac_objext \
13412      conftest$ac_exeext conftest.$ac_ext
13413	LIBS="$olibs"
13414
13415fi
13416echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
13417echo "${ECHO_T}$vi_cv_have_gpm" >&6
13418  if test $vi_cv_have_gpm = yes; then
13419    LIBS="$LIBS -lgpm"
13420    cat >>confdefs.h <<\_ACEOF
13421#define HAVE_GPM 1
13422_ACEOF
13423
13424  fi
13425else
13426  echo "$as_me:$LINENO: result: yes" >&5
13427echo "${ECHO_T}yes" >&6
13428fi
13429
13430echo "$as_me:$LINENO: checking for rename" >&5
13431echo $ECHO_N "checking for rename... $ECHO_C" >&6
13432cat >conftest.$ac_ext <<_ACEOF
13433/* confdefs.h.  */
13434_ACEOF
13435cat confdefs.h >>conftest.$ac_ext
13436cat >>conftest.$ac_ext <<_ACEOF
13437/* end confdefs.h.  */
13438#include <stdio.h>
13439int
13440main ()
13441{
13442rename("this", "that")
13443  ;
13444  return 0;
13445}
13446_ACEOF
13447rm -f conftest.$ac_objext conftest$ac_exeext
13448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13449  (eval $ac_link) 2>conftest.er1
13450  ac_status=$?
13451  grep -v '^ *+' conftest.er1 >conftest.err
13452  rm -f conftest.er1
13453  cat conftest.err >&5
13454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455  (exit $ac_status); } &&
13456	 { ac_try='test -z "$ac_c_werror_flag"
13457			 || test ! -s conftest.err'
13458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13459  (eval $ac_try) 2>&5
13460  ac_status=$?
13461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462  (exit $ac_status); }; } &&
13463	 { ac_try='test -s conftest$ac_exeext'
13464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13465  (eval $ac_try) 2>&5
13466  ac_status=$?
13467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468  (exit $ac_status); }; }; then
13469  echo "$as_me:$LINENO: result: yes" >&5
13470echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13471#define HAVE_RENAME 1
13472_ACEOF
13473
13474else
13475  echo "$as_me: failed program was:" >&5
13476sed 's/^/| /' conftest.$ac_ext >&5
13477
13478echo "$as_me:$LINENO: result: no" >&5
13479echo "${ECHO_T}no" >&6
13480fi
13481rm -f conftest.err conftest.$ac_objext \
13482      conftest$ac_exeext conftest.$ac_ext
13483
13484echo "$as_me:$LINENO: checking for sysctl" >&5
13485echo $ECHO_N "checking for sysctl... $ECHO_C" >&6
13486cat >conftest.$ac_ext <<_ACEOF
13487/* confdefs.h.  */
13488_ACEOF
13489cat confdefs.h >>conftest.$ac_ext
13490cat >>conftest.$ac_ext <<_ACEOF
13491/* end confdefs.h.  */
13492#include <sys/types.h>
13493#include <sys/sysctl.h>
13494int
13495main ()
13496{
13497	int mib[2], r;
13498	size_t len;
13499
13500	mib[0] = CTL_HW;
13501	mib[1] = HW_USERMEM;
13502	len = sizeof(r);
13503	(void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
13504
13505  ;
13506  return 0;
13507}
13508_ACEOF
13509rm -f conftest.$ac_objext
13510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13511  (eval $ac_compile) 2>conftest.er1
13512  ac_status=$?
13513  grep -v '^ *+' conftest.er1 >conftest.err
13514  rm -f conftest.er1
13515  cat conftest.err >&5
13516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517  (exit $ac_status); } &&
13518	 { ac_try='test -z "$ac_c_werror_flag"
13519			 || test ! -s conftest.err'
13520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521  (eval $ac_try) 2>&5
13522  ac_status=$?
13523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524  (exit $ac_status); }; } &&
13525	 { ac_try='test -s conftest.$ac_objext'
13526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527  (eval $ac_try) 2>&5
13528  ac_status=$?
13529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530  (exit $ac_status); }; }; then
13531  echo "$as_me:$LINENO: result: yes" >&5
13532echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13533#define HAVE_SYSCTL 1
13534_ACEOF
13535
13536else
13537  echo "$as_me: failed program was:" >&5
13538sed 's/^/| /' conftest.$ac_ext >&5
13539
13540echo "$as_me:$LINENO: result: not usable" >&5
13541echo "${ECHO_T}not usable" >&6
13542fi
13543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13544
13545echo "$as_me:$LINENO: checking for sysinfo" >&5
13546echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6
13547cat >conftest.$ac_ext <<_ACEOF
13548/* confdefs.h.  */
13549_ACEOF
13550cat confdefs.h >>conftest.$ac_ext
13551cat >>conftest.$ac_ext <<_ACEOF
13552/* end confdefs.h.  */
13553#include <sys/types.h>
13554#include <sys/sysinfo.h>
13555int
13556main ()
13557{
13558	struct sysinfo sinfo;
13559	int t;
13560
13561	(void)sysinfo(&sinfo);
13562	t = sinfo.totalram;
13563
13564  ;
13565  return 0;
13566}
13567_ACEOF
13568rm -f conftest.$ac_objext
13569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13570  (eval $ac_compile) 2>conftest.er1
13571  ac_status=$?
13572  grep -v '^ *+' conftest.er1 >conftest.err
13573  rm -f conftest.er1
13574  cat conftest.err >&5
13575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576  (exit $ac_status); } &&
13577	 { ac_try='test -z "$ac_c_werror_flag"
13578			 || test ! -s conftest.err'
13579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580  (eval $ac_try) 2>&5
13581  ac_status=$?
13582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583  (exit $ac_status); }; } &&
13584	 { ac_try='test -s conftest.$ac_objext'
13585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13586  (eval $ac_try) 2>&5
13587  ac_status=$?
13588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589  (exit $ac_status); }; }; then
13590  echo "$as_me:$LINENO: result: yes" >&5
13591echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13592#define HAVE_SYSINFO 1
13593_ACEOF
13594
13595else
13596  echo "$as_me: failed program was:" >&5
13597sed 's/^/| /' conftest.$ac_ext >&5
13598
13599echo "$as_me:$LINENO: result: not usable" >&5
13600echo "${ECHO_T}not usable" >&6
13601fi
13602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13603
13604echo "$as_me:$LINENO: checking for sysconf" >&5
13605echo $ECHO_N "checking for sysconf... $ECHO_C" >&6
13606cat >conftest.$ac_ext <<_ACEOF
13607/* confdefs.h.  */
13608_ACEOF
13609cat confdefs.h >>conftest.$ac_ext
13610cat >>conftest.$ac_ext <<_ACEOF
13611/* end confdefs.h.  */
13612#include <unistd.h>
13613int
13614main ()
13615{
13616	(void)sysconf(_SC_PAGESIZE);
13617	(void)sysconf(_SC_PHYS_PAGES);
13618
13619  ;
13620  return 0;
13621}
13622_ACEOF
13623rm -f conftest.$ac_objext
13624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13625  (eval $ac_compile) 2>conftest.er1
13626  ac_status=$?
13627  grep -v '^ *+' conftest.er1 >conftest.err
13628  rm -f conftest.er1
13629  cat conftest.err >&5
13630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631  (exit $ac_status); } &&
13632	 { ac_try='test -z "$ac_c_werror_flag"
13633			 || test ! -s conftest.err'
13634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13635  (eval $ac_try) 2>&5
13636  ac_status=$?
13637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638  (exit $ac_status); }; } &&
13639	 { ac_try='test -s conftest.$ac_objext'
13640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13641  (eval $ac_try) 2>&5
13642  ac_status=$?
13643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644  (exit $ac_status); }; }; then
13645  echo "$as_me:$LINENO: result: yes" >&5
13646echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13647#define HAVE_SYSCONF 1
13648_ACEOF
13649
13650else
13651  echo "$as_me: failed program was:" >&5
13652sed 's/^/| /' conftest.$ac_ext >&5
13653
13654echo "$as_me:$LINENO: result: not usable" >&5
13655echo "${ECHO_T}not usable" >&6
13656fi
13657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13658
13659
13660echo "$as_me:$LINENO: checking size of int" >&5
13661echo $ECHO_N "checking size of int... $ECHO_C" >&6
13662if test "${ac_cv_sizeof_int+set}" = set; then
13663  echo $ECHO_N "(cached) $ECHO_C" >&6
13664else
13665  if test "$cross_compiling" = yes; then
13666  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13667echo "$as_me: error: failed to compile test program" >&2;}
13668   { (exit 1); exit 1; }; }
13669else
13670  cat >conftest.$ac_ext <<_ACEOF
13671/* confdefs.h.  */
13672_ACEOF
13673cat confdefs.h >>conftest.$ac_ext
13674cat >>conftest.$ac_ext <<_ACEOF
13675/* end confdefs.h.  */
13676#include <stdio.h>
13677		main()
13678		{
13679		  FILE *f=fopen("conftestval", "w");
13680		  if (!f) exit(1);
13681		  fprintf(f, "%d\n", (int)sizeof(int));
13682		  exit(0);
13683		}
13684_ACEOF
13685rm -f conftest$ac_exeext
13686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13687  (eval $ac_link) 2>&5
13688  ac_status=$?
13689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13692  (eval $ac_try) 2>&5
13693  ac_status=$?
13694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695  (exit $ac_status); }; }; then
13696  ac_cv_sizeof_int=`cat conftestval`
13697else
13698  echo "$as_me: program exited with status $ac_status" >&5
13699echo "$as_me: failed program was:" >&5
13700sed 's/^/| /' conftest.$ac_ext >&5
13701
13702( exit $ac_status )
13703ac_cv_sizeof_int=0
13704fi
13705rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13706fi
13707fi
13708
13709echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13710echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13711cat >>confdefs.h <<_ACEOF
13712#define SIZEOF_INT $ac_cv_sizeof_int
13713_ACEOF
13714
13715
13716echo "$as_me:$LINENO: checking whether memmove/bcopy/memcpy handle overlaps" >&5
13717echo $ECHO_N "checking whether memmove/bcopy/memcpy handle overlaps... $ECHO_C" >&6
13718bcopy_test_prog='
13719main() {
13720  char buf[10];
13721  strcpy(buf, "abcdefghi");
13722  mch_memmove(buf, buf + 2, 3);
13723  if (strncmp(buf, "ababcf", 6))
13724    exit(1);
13725  strcpy(buf, "abcdefghi");
13726  mch_memmove(buf + 2, buf, 3);
13727  if (strncmp(buf, "cdedef", 6))
13728    exit(1);
13729  exit(0); /* libc version works properly.  */
13730}'
13731
13732
13733if test "$cross_compiling" = yes; then
13734  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13735echo "$as_me: error: failed to compile test program" >&2;}
13736   { (exit 1); exit 1; }; }
13737else
13738  cat >conftest.$ac_ext <<_ACEOF
13739/* confdefs.h.  */
13740_ACEOF
13741cat confdefs.h >>conftest.$ac_ext
13742cat >>conftest.$ac_ext <<_ACEOF
13743/* end confdefs.h.  */
13744#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
13745_ACEOF
13746rm -f conftest$ac_exeext
13747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13748  (eval $ac_link) 2>&5
13749  ac_status=$?
13750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753  (eval $ac_try) 2>&5
13754  ac_status=$?
13755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756  (exit $ac_status); }; }; then
13757  cat >>confdefs.h <<\_ACEOF
13758#define USEMEMMOVE 1
13759_ACEOF
13760 echo "$as_me:$LINENO: result: memmove does" >&5
13761echo "${ECHO_T}memmove does" >&6
13762else
13763  echo "$as_me: program exited with status $ac_status" >&5
13764echo "$as_me: failed program was:" >&5
13765sed 's/^/| /' conftest.$ac_ext >&5
13766
13767( exit $ac_status )
13768if test "$cross_compiling" = yes; then
13769  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13770echo "$as_me: error: failed to compile test program" >&2;}
13771   { (exit 1); exit 1; }; }
13772else
13773  cat >conftest.$ac_ext <<_ACEOF
13774/* confdefs.h.  */
13775_ACEOF
13776cat confdefs.h >>conftest.$ac_ext
13777cat >>conftest.$ac_ext <<_ACEOF
13778/* end confdefs.h.  */
13779#define mch_memmove(s,d,l) bcopy(d,s,l) $bcopy_test_prog
13780_ACEOF
13781rm -f conftest$ac_exeext
13782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13783  (eval $ac_link) 2>&5
13784  ac_status=$?
13785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788  (eval $ac_try) 2>&5
13789  ac_status=$?
13790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791  (exit $ac_status); }; }; then
13792  cat >>confdefs.h <<\_ACEOF
13793#define USEBCOPY 1
13794_ACEOF
13795 echo "$as_me:$LINENO: result: bcopy does" >&5
13796echo "${ECHO_T}bcopy does" >&6
13797else
13798  echo "$as_me: program exited with status $ac_status" >&5
13799echo "$as_me: failed program was:" >&5
13800sed 's/^/| /' conftest.$ac_ext >&5
13801
13802( exit $ac_status )
13803if test "$cross_compiling" = yes; then
13804  { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13805echo "$as_me: error: failed to compile test program" >&2;}
13806   { (exit 1); exit 1; }; }
13807else
13808  cat >conftest.$ac_ext <<_ACEOF
13809/* confdefs.h.  */
13810_ACEOF
13811cat confdefs.h >>conftest.$ac_ext
13812cat >>conftest.$ac_ext <<_ACEOF
13813/* end confdefs.h.  */
13814#define mch_memmove(s,d,l) memcpy(d,s,l) $bcopy_test_prog
13815_ACEOF
13816rm -f conftest$ac_exeext
13817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13818  (eval $ac_link) 2>&5
13819  ac_status=$?
13820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13822  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823  (eval $ac_try) 2>&5
13824  ac_status=$?
13825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826  (exit $ac_status); }; }; then
13827  cat >>confdefs.h <<\_ACEOF
13828#define USEMEMCPY 1
13829_ACEOF
13830 echo "$as_me:$LINENO: result: memcpy does" >&5
13831echo "${ECHO_T}memcpy does" >&6
13832else
13833  echo "$as_me: program exited with status $ac_status" >&5
13834echo "$as_me: failed program was:" >&5
13835sed 's/^/| /' conftest.$ac_ext >&5
13836
13837( exit $ac_status )
13838echo "$as_me:$LINENO: result: no" >&5
13839echo "${ECHO_T}no" >&6
13840fi
13841rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13842fi
13843fi
13844rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13845fi
13846fi
13847rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13848fi
13849
13850
13851if test "$enable_multibyte" = "yes"; then
13852  cflags_save=$CFLAGS
13853  ldflags_save=$LDFLAGS
13854  if test -n "$x_includes" ; then
13855    CFLAGS="$CFLAGS -I$x_includes"
13856    LDFLAGS="$X_LIBS $LDFLAGS -lX11"
13857    echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
13858echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6
13859    cat >conftest.$ac_ext <<_ACEOF
13860/* confdefs.h.  */
13861_ACEOF
13862cat confdefs.h >>conftest.$ac_ext
13863cat >>conftest.$ac_ext <<_ACEOF
13864/* end confdefs.h.  */
13865#include <X11/Xlocale.h>
13866int
13867main ()
13868{
13869
13870  ;
13871  return 0;
13872}
13873_ACEOF
13874rm -f conftest.$ac_objext
13875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13876  (eval $ac_compile) 2>conftest.er1
13877  ac_status=$?
13878  grep -v '^ *+' conftest.er1 >conftest.err
13879  rm -f conftest.er1
13880  cat conftest.err >&5
13881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882  (exit $ac_status); } &&
13883	 { ac_try='test -z "$ac_c_werror_flag"
13884			 || test ! -s conftest.err'
13885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13886  (eval $ac_try) 2>&5
13887  ac_status=$?
13888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889  (exit $ac_status); }; } &&
13890	 { ac_try='test -s conftest.$ac_objext'
13891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13892  (eval $ac_try) 2>&5
13893  ac_status=$?
13894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895  (exit $ac_status); }; }; then
13896  cat >conftest.$ac_ext <<_ACEOF
13897/* confdefs.h.  */
13898_ACEOF
13899cat confdefs.h >>conftest.$ac_ext
13900cat >>conftest.$ac_ext <<_ACEOF
13901/* end confdefs.h.  */
13902
13903/* Override any gcc2 internal prototype to avoid an error.  */
13904#ifdef __cplusplus
13905extern "C"
13906#endif
13907/* We use char because int might match the return type of a gcc2
13908   builtin and then its argument prototype would still apply.  */
13909char _Xsetlocale ();
13910int
13911main ()
13912{
13913_Xsetlocale ();
13914  ;
13915  return 0;
13916}
13917_ACEOF
13918rm -f conftest.$ac_objext conftest$ac_exeext
13919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13920  (eval $ac_link) 2>conftest.er1
13921  ac_status=$?
13922  grep -v '^ *+' conftest.er1 >conftest.err
13923  rm -f conftest.er1
13924  cat conftest.err >&5
13925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926  (exit $ac_status); } &&
13927	 { ac_try='test -z "$ac_c_werror_flag"
13928			 || test ! -s conftest.err'
13929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13930  (eval $ac_try) 2>&5
13931  ac_status=$?
13932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933  (exit $ac_status); }; } &&
13934	 { ac_try='test -s conftest$ac_exeext'
13935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13936  (eval $ac_try) 2>&5
13937  ac_status=$?
13938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939  (exit $ac_status); }; }; then
13940  echo "$as_me:$LINENO: result: yes" >&5
13941echo "${ECHO_T}yes" >&6
13942		cat >>confdefs.h <<\_ACEOF
13943#define X_LOCALE 1
13944_ACEOF
13945
13946else
13947  echo "$as_me: failed program was:" >&5
13948sed 's/^/| /' conftest.$ac_ext >&5
13949
13950echo "$as_me:$LINENO: result: no" >&5
13951echo "${ECHO_T}no" >&6
13952fi
13953rm -f conftest.err conftest.$ac_objext \
13954      conftest$ac_exeext conftest.$ac_ext
13955else
13956  echo "$as_me: failed program was:" >&5
13957sed 's/^/| /' conftest.$ac_ext >&5
13958
13959echo "$as_me:$LINENO: result: no" >&5
13960echo "${ECHO_T}no" >&6
13961fi
13962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13963  fi
13964  CFLAGS=$cflags_save
13965  LDFLAGS=$ldflags_save
13966fi
13967
13968echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
13969echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
13970if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
13971  echo $ECHO_N "(cached) $ECHO_C" >&6
13972else
13973  ac_check_lib_save_LIBS=$LIBS
13974LIBS="-lxpg4  $LIBS"
13975cat >conftest.$ac_ext <<_ACEOF
13976/* confdefs.h.  */
13977_ACEOF
13978cat confdefs.h >>conftest.$ac_ext
13979cat >>conftest.$ac_ext <<_ACEOF
13980/* end confdefs.h.  */
13981
13982/* Override any gcc2 internal prototype to avoid an error.  */
13983#ifdef __cplusplus
13984extern "C"
13985#endif
13986/* We use char because int might match the return type of a gcc2
13987   builtin and then its argument prototype would still apply.  */
13988char _xpg4_setrunelocale ();
13989int
13990main ()
13991{
13992_xpg4_setrunelocale ();
13993  ;
13994  return 0;
13995}
13996_ACEOF
13997rm -f conftest.$ac_objext conftest$ac_exeext
13998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13999  (eval $ac_link) 2>conftest.er1
14000  ac_status=$?
14001  grep -v '^ *+' conftest.er1 >conftest.err
14002  rm -f conftest.er1
14003  cat conftest.err >&5
14004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005  (exit $ac_status); } &&
14006	 { ac_try='test -z "$ac_c_werror_flag"
14007			 || test ! -s conftest.err'
14008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14009  (eval $ac_try) 2>&5
14010  ac_status=$?
14011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012  (exit $ac_status); }; } &&
14013	 { ac_try='test -s conftest$ac_exeext'
14014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015  (eval $ac_try) 2>&5
14016  ac_status=$?
14017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018  (exit $ac_status); }; }; then
14019  ac_cv_lib_xpg4__xpg4_setrunelocale=yes
14020else
14021  echo "$as_me: failed program was:" >&5
14022sed 's/^/| /' conftest.$ac_ext >&5
14023
14024ac_cv_lib_xpg4__xpg4_setrunelocale=no
14025fi
14026rm -f conftest.err conftest.$ac_objext \
14027      conftest$ac_exeext conftest.$ac_ext
14028LIBS=$ac_check_lib_save_LIBS
14029fi
14030echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
14031echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
14032if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
14033  LIBS="$LIBS -lxpg4"
14034fi
14035
14036
14037echo "$as_me:$LINENO: checking how to create tags" >&5
14038echo $ECHO_N "checking how to create tags... $ECHO_C" >&6
14039test -f tags && mv tags tags.save
14040if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14041  TAGPRG="ctags -I INIT+"
14042else
14043  (eval etags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
14044  (eval etags -c   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
14045  (eval ctags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
14046  (eval ctags -t   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
14047  (eval ctags -ts  /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
14048  (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
14049  (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
14050fi
14051test -f tags.save && mv tags.save tags
14052echo "$as_me:$LINENO: result: $TAGPRG" >&5
14053echo "${ECHO_T}$TAGPRG" >&6
14054
14055echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
14056echo $ECHO_N "checking how to run man with a section nr... $ECHO_C" >&6
14057MANDEF="man"
14058(eval man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
14059echo "$as_me:$LINENO: result: $MANDEF" >&5
14060echo "${ECHO_T}$MANDEF" >&6
14061if test "$MANDEF" = "man -s"; then
14062  cat >>confdefs.h <<\_ACEOF
14063#define USEMAN_S 1
14064_ACEOF
14065
14066fi
14067
14068echo "$as_me:$LINENO: checking --disable-nls argument" >&5
14069echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6
14070# Check whether --enable-nls or --disable-nls was given.
14071if test "${enable_nls+set}" = set; then
14072  enableval="$enable_nls"
14073
14074else
14075  enable_nls="yes"
14076fi;
14077
14078if test "$enable_nls" = "yes"; then
14079  echo "$as_me:$LINENO: result: no" >&5
14080echo "${ECHO_T}no" >&6
14081
14082  INSTALL_LANGS=install-languages
14083
14084  INSTALL_TOOL_LANGS=install-tool-languages
14085
14086
14087  # Extract the first word of "msgfmt", so it can be a program name with args.
14088set dummy msgfmt; ac_word=$2
14089echo "$as_me:$LINENO: checking for $ac_word" >&5
14090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14091if test "${ac_cv_prog_MSGFMT+set}" = set; then
14092  echo $ECHO_N "(cached) $ECHO_C" >&6
14093else
14094  if test -n "$MSGFMT"; then
14095  ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
14096else
14097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14098for as_dir in $PATH
14099do
14100  IFS=$as_save_IFS
14101  test -z "$as_dir" && as_dir=.
14102  for ac_exec_ext in '' $ac_executable_extensions; do
14103  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14104    ac_cv_prog_MSGFMT="msgfmt"
14105    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14106    break 2
14107  fi
14108done
14109done
14110
14111fi
14112fi
14113MSGFMT=$ac_cv_prog_MSGFMT
14114if test -n "$MSGFMT"; then
14115  echo "$as_me:$LINENO: result: $MSGFMT" >&5
14116echo "${ECHO_T}$MSGFMT" >&6
14117else
14118  echo "$as_me:$LINENO: result: no" >&5
14119echo "${ECHO_T}no" >&6
14120fi
14121
14122  echo "$as_me:$LINENO: checking for NLS" >&5
14123echo $ECHO_N "checking for NLS... $ECHO_C" >&6
14124  if test -f po/Makefile; then
14125    have_gettext="no"
14126    if test -n "$MSGFMT"; then
14127      cat >conftest.$ac_ext <<_ACEOF
14128/* confdefs.h.  */
14129_ACEOF
14130cat confdefs.h >>conftest.$ac_ext
14131cat >>conftest.$ac_ext <<_ACEOF
14132/* end confdefs.h.  */
14133#include <libintl.h>
14134int
14135main ()
14136{
14137gettext("Test");
14138  ;
14139  return 0;
14140}
14141_ACEOF
14142rm -f conftest.$ac_objext conftest$ac_exeext
14143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14144  (eval $ac_link) 2>conftest.er1
14145  ac_status=$?
14146  grep -v '^ *+' conftest.er1 >conftest.err
14147  rm -f conftest.er1
14148  cat conftest.err >&5
14149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150  (exit $ac_status); } &&
14151	 { ac_try='test -z "$ac_c_werror_flag"
14152			 || test ! -s conftest.err'
14153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14154  (eval $ac_try) 2>&5
14155  ac_status=$?
14156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157  (exit $ac_status); }; } &&
14158	 { ac_try='test -s conftest$ac_exeext'
14159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14160  (eval $ac_try) 2>&5
14161  ac_status=$?
14162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163  (exit $ac_status); }; }; then
14164  echo "$as_me:$LINENO: result: gettext() works" >&5
14165echo "${ECHO_T}gettext() works" >&6; have_gettext="yes"
14166else
14167  echo "$as_me: failed program was:" >&5
14168sed 's/^/| /' conftest.$ac_ext >&5
14169
14170olibs=$LIBS
14171	  LIBS="$LIBS -lintl"
14172	  cat >conftest.$ac_ext <<_ACEOF
14173/* confdefs.h.  */
14174_ACEOF
14175cat confdefs.h >>conftest.$ac_ext
14176cat >>conftest.$ac_ext <<_ACEOF
14177/* end confdefs.h.  */
14178#include <libintl.h>
14179int
14180main ()
14181{
14182gettext("Test");
14183  ;
14184  return 0;
14185}
14186_ACEOF
14187rm -f conftest.$ac_objext conftest$ac_exeext
14188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14189  (eval $ac_link) 2>conftest.er1
14190  ac_status=$?
14191  grep -v '^ *+' conftest.er1 >conftest.err
14192  rm -f conftest.er1
14193  cat conftest.err >&5
14194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195  (exit $ac_status); } &&
14196	 { ac_try='test -z "$ac_c_werror_flag"
14197			 || test ! -s conftest.err'
14198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199  (eval $ac_try) 2>&5
14200  ac_status=$?
14201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202  (exit $ac_status); }; } &&
14203	 { ac_try='test -s conftest$ac_exeext'
14204  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14205  (eval $ac_try) 2>&5
14206  ac_status=$?
14207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208  (exit $ac_status); }; }; then
14209  echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
14210echo "${ECHO_T}gettext() works with -lintl" >&6; have_gettext="yes"
14211else
14212  echo "$as_me: failed program was:" >&5
14213sed 's/^/| /' conftest.$ac_ext >&5
14214
14215echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
14216echo "${ECHO_T}gettext() doesn't work" >&6;
14217	      LIBS=$olibs
14218fi
14219rm -f conftest.err conftest.$ac_objext \
14220      conftest$ac_exeext conftest.$ac_ext
14221fi
14222rm -f conftest.err conftest.$ac_objext \
14223      conftest$ac_exeext conftest.$ac_ext
14224    else
14225      echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
14226echo "${ECHO_T}msgfmt not found - disabled" >&6;
14227    fi
14228    if test $have_gettext = "yes"; then
14229      cat >>confdefs.h <<\_ACEOF
14230#define HAVE_GETTEXT 1
14231_ACEOF
14232
14233      MAKEMO=yes
14234
14235
14236for ac_func in bind_textdomain_codeset
14237do
14238as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14239echo "$as_me:$LINENO: checking for $ac_func" >&5
14240echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14241if eval "test \"\${$as_ac_var+set}\" = set"; then
14242  echo $ECHO_N "(cached) $ECHO_C" >&6
14243else
14244  cat >conftest.$ac_ext <<_ACEOF
14245/* confdefs.h.  */
14246_ACEOF
14247cat confdefs.h >>conftest.$ac_ext
14248cat >>conftest.$ac_ext <<_ACEOF
14249/* end confdefs.h.  */
14250/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14251   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14252#define $ac_func innocuous_$ac_func
14253
14254/* System header to define __stub macros and hopefully few prototypes,
14255    which can conflict with char $ac_func (); below.
14256    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14257    <limits.h> exists even on freestanding compilers.  */
14258
14259#ifdef __STDC__
14260# include <limits.h>
14261#else
14262# include <assert.h>
14263#endif
14264
14265#undef $ac_func
14266
14267/* Override any gcc2 internal prototype to avoid an error.  */
14268#ifdef __cplusplus
14269extern "C"
14270{
14271#endif
14272/* We use char because int might match the return type of a gcc2
14273   builtin and then its argument prototype would still apply.  */
14274char $ac_func ();
14275/* The GNU C library defines this for functions which it implements
14276    to always fail with ENOSYS.  Some functions are actually named
14277    something starting with __ and the normal name is an alias.  */
14278#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14279choke me
14280#else
14281char (*f) () = $ac_func;
14282#endif
14283#ifdef __cplusplus
14284}
14285#endif
14286
14287int
14288main ()
14289{
14290return f != $ac_func;
14291  ;
14292  return 0;
14293}
14294_ACEOF
14295rm -f conftest.$ac_objext conftest$ac_exeext
14296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14297  (eval $ac_link) 2>conftest.er1
14298  ac_status=$?
14299  grep -v '^ *+' conftest.er1 >conftest.err
14300  rm -f conftest.er1
14301  cat conftest.err >&5
14302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303  (exit $ac_status); } &&
14304	 { ac_try='test -z "$ac_c_werror_flag"
14305			 || test ! -s conftest.err'
14306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14307  (eval $ac_try) 2>&5
14308  ac_status=$?
14309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310  (exit $ac_status); }; } &&
14311	 { ac_try='test -s conftest$ac_exeext'
14312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14313  (eval $ac_try) 2>&5
14314  ac_status=$?
14315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316  (exit $ac_status); }; }; then
14317  eval "$as_ac_var=yes"
14318else
14319  echo "$as_me: failed program was:" >&5
14320sed 's/^/| /' conftest.$ac_ext >&5
14321
14322eval "$as_ac_var=no"
14323fi
14324rm -f conftest.err conftest.$ac_objext \
14325      conftest$ac_exeext conftest.$ac_ext
14326fi
14327echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14328echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14329if test `eval echo '${'$as_ac_var'}'` = yes; then
14330  cat >>confdefs.h <<_ACEOF
14331#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14332_ACEOF
14333
14334fi
14335done
14336
14337            echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
14338echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6
14339      cat >conftest.$ac_ext <<_ACEOF
14340/* confdefs.h.  */
14341_ACEOF
14342cat confdefs.h >>conftest.$ac_ext
14343cat >>conftest.$ac_ext <<_ACEOF
14344/* end confdefs.h.  */
14345#include <libintl.h>
14346		extern int _nl_msg_cat_cntr;
14347int
14348main ()
14349{
14350++_nl_msg_cat_cntr;
14351  ;
14352  return 0;
14353}
14354_ACEOF
14355rm -f conftest.$ac_objext conftest$ac_exeext
14356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14357  (eval $ac_link) 2>conftest.er1
14358  ac_status=$?
14359  grep -v '^ *+' conftest.er1 >conftest.err
14360  rm -f conftest.er1
14361  cat conftest.err >&5
14362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363  (exit $ac_status); } &&
14364	 { ac_try='test -z "$ac_c_werror_flag"
14365			 || test ! -s conftest.err'
14366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367  (eval $ac_try) 2>&5
14368  ac_status=$?
14369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370  (exit $ac_status); }; } &&
14371	 { ac_try='test -s conftest$ac_exeext'
14372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373  (eval $ac_try) 2>&5
14374  ac_status=$?
14375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376  (exit $ac_status); }; }; then
14377  echo "$as_me:$LINENO: result: yes" >&5
14378echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
14379#define HAVE_NL_MSG_CAT_CNTR 1
14380_ACEOF
14381
14382else
14383  echo "$as_me: failed program was:" >&5
14384sed 's/^/| /' conftest.$ac_ext >&5
14385
14386echo "$as_me:$LINENO: result: no" >&5
14387echo "${ECHO_T}no" >&6
14388fi
14389rm -f conftest.err conftest.$ac_objext \
14390      conftest$ac_exeext conftest.$ac_ext
14391    fi
14392  else
14393    echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
14394echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6;
14395  fi
14396else
14397  echo "$as_me:$LINENO: result: yes" >&5
14398echo "${ECHO_T}yes" >&6
14399fi
14400
14401if test "${ac_cv_header_dlfcn_h+set}" = set; then
14402  echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14403echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14404if test "${ac_cv_header_dlfcn_h+set}" = set; then
14405  echo $ECHO_N "(cached) $ECHO_C" >&6
14406fi
14407echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14408echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
14409else
14410  # Is the header compilable?
14411echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
14412echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
14413cat >conftest.$ac_ext <<_ACEOF
14414/* confdefs.h.  */
14415_ACEOF
14416cat confdefs.h >>conftest.$ac_ext
14417cat >>conftest.$ac_ext <<_ACEOF
14418/* end confdefs.h.  */
14419$ac_includes_default
14420#include <dlfcn.h>
14421_ACEOF
14422rm -f conftest.$ac_objext
14423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14424  (eval $ac_compile) 2>conftest.er1
14425  ac_status=$?
14426  grep -v '^ *+' conftest.er1 >conftest.err
14427  rm -f conftest.er1
14428  cat conftest.err >&5
14429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430  (exit $ac_status); } &&
14431	 { ac_try='test -z "$ac_c_werror_flag"
14432			 || test ! -s conftest.err'
14433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14434  (eval $ac_try) 2>&5
14435  ac_status=$?
14436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437  (exit $ac_status); }; } &&
14438	 { ac_try='test -s conftest.$ac_objext'
14439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14440  (eval $ac_try) 2>&5
14441  ac_status=$?
14442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443  (exit $ac_status); }; }; then
14444  ac_header_compiler=yes
14445else
14446  echo "$as_me: failed program was:" >&5
14447sed 's/^/| /' conftest.$ac_ext >&5
14448
14449ac_header_compiler=no
14450fi
14451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14452echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14453echo "${ECHO_T}$ac_header_compiler" >&6
14454
14455# Is the header present?
14456echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
14457echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
14458cat >conftest.$ac_ext <<_ACEOF
14459/* confdefs.h.  */
14460_ACEOF
14461cat confdefs.h >>conftest.$ac_ext
14462cat >>conftest.$ac_ext <<_ACEOF
14463/* end confdefs.h.  */
14464#include <dlfcn.h>
14465_ACEOF
14466if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14467  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14468  ac_status=$?
14469  grep -v '^ *+' conftest.er1 >conftest.err
14470  rm -f conftest.er1
14471  cat conftest.err >&5
14472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473  (exit $ac_status); } >/dev/null; then
14474  if test -s conftest.err; then
14475    ac_cpp_err=$ac_c_preproc_warn_flag
14476    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14477  else
14478    ac_cpp_err=
14479  fi
14480else
14481  ac_cpp_err=yes
14482fi
14483if test -z "$ac_cpp_err"; then
14484  ac_header_preproc=yes
14485else
14486  echo "$as_me: failed program was:" >&5
14487sed 's/^/| /' conftest.$ac_ext >&5
14488
14489  ac_header_preproc=no
14490fi
14491rm -f conftest.err conftest.$ac_ext
14492echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14493echo "${ECHO_T}$ac_header_preproc" >&6
14494
14495# So?  What about this header?
14496case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14497  yes:no: )
14498    { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
14499echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14500    { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
14501echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
14502    ac_header_preproc=yes
14503    ;;
14504  no:yes:* )
14505    { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
14506echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
14507    { echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
14508echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
14509    { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
14510echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
14511    { echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
14512echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14513    { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
14514echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
14515    { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
14516echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
14517    (
14518      cat <<\_ASBOX
14519## ------------------------------------------ ##
14520## Report this to the AC_PACKAGE_NAME lists.  ##
14521## ------------------------------------------ ##
14522_ASBOX
14523    ) |
14524      sed "s/^/$as_me: WARNING:     /" >&2
14525    ;;
14526esac
14527echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14528echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14529if test "${ac_cv_header_dlfcn_h+set}" = set; then
14530  echo $ECHO_N "(cached) $ECHO_C" >&6
14531else
14532  ac_cv_header_dlfcn_h=$ac_header_preproc
14533fi
14534echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14535echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
14536
14537fi
14538if test $ac_cv_header_dlfcn_h = yes; then
14539  DLL=dlfcn.h
14540else
14541  if test "${ac_cv_header_dl_h+set}" = set; then
14542  echo "$as_me:$LINENO: checking for dl.h" >&5
14543echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14544if test "${ac_cv_header_dl_h+set}" = set; then
14545  echo $ECHO_N "(cached) $ECHO_C" >&6
14546fi
14547echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14548echo "${ECHO_T}$ac_cv_header_dl_h" >&6
14549else
14550  # Is the header compilable?
14551echo "$as_me:$LINENO: checking dl.h usability" >&5
14552echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6
14553cat >conftest.$ac_ext <<_ACEOF
14554/* confdefs.h.  */
14555_ACEOF
14556cat confdefs.h >>conftest.$ac_ext
14557cat >>conftest.$ac_ext <<_ACEOF
14558/* end confdefs.h.  */
14559$ac_includes_default
14560#include <dl.h>
14561_ACEOF
14562rm -f conftest.$ac_objext
14563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14564  (eval $ac_compile) 2>conftest.er1
14565  ac_status=$?
14566  grep -v '^ *+' conftest.er1 >conftest.err
14567  rm -f conftest.er1
14568  cat conftest.err >&5
14569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570  (exit $ac_status); } &&
14571	 { ac_try='test -z "$ac_c_werror_flag"
14572			 || test ! -s conftest.err'
14573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14574  (eval $ac_try) 2>&5
14575  ac_status=$?
14576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577  (exit $ac_status); }; } &&
14578	 { ac_try='test -s conftest.$ac_objext'
14579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14580  (eval $ac_try) 2>&5
14581  ac_status=$?
14582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583  (exit $ac_status); }; }; then
14584  ac_header_compiler=yes
14585else
14586  echo "$as_me: failed program was:" >&5
14587sed 's/^/| /' conftest.$ac_ext >&5
14588
14589ac_header_compiler=no
14590fi
14591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14592echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14593echo "${ECHO_T}$ac_header_compiler" >&6
14594
14595# Is the header present?
14596echo "$as_me:$LINENO: checking dl.h presence" >&5
14597echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6
14598cat >conftest.$ac_ext <<_ACEOF
14599/* confdefs.h.  */
14600_ACEOF
14601cat confdefs.h >>conftest.$ac_ext
14602cat >>conftest.$ac_ext <<_ACEOF
14603/* end confdefs.h.  */
14604#include <dl.h>
14605_ACEOF
14606if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14607  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14608  ac_status=$?
14609  grep -v '^ *+' conftest.er1 >conftest.err
14610  rm -f conftest.er1
14611  cat conftest.err >&5
14612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613  (exit $ac_status); } >/dev/null; then
14614  if test -s conftest.err; then
14615    ac_cpp_err=$ac_c_preproc_warn_flag
14616    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14617  else
14618    ac_cpp_err=
14619  fi
14620else
14621  ac_cpp_err=yes
14622fi
14623if test -z "$ac_cpp_err"; then
14624  ac_header_preproc=yes
14625else
14626  echo "$as_me: failed program was:" >&5
14627sed 's/^/| /' conftest.$ac_ext >&5
14628
14629  ac_header_preproc=no
14630fi
14631rm -f conftest.err conftest.$ac_ext
14632echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14633echo "${ECHO_T}$ac_header_preproc" >&6
14634
14635# So?  What about this header?
14636case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14637  yes:no: )
14638    { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14639echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14640    { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
14641echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
14642    ac_header_preproc=yes
14643    ;;
14644  no:yes:* )
14645    { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
14646echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
14647    { echo "$as_me:$LINENO: WARNING: dl.h:     check for missing prerequisite headers?" >&5
14648echo "$as_me: WARNING: dl.h:     check for missing prerequisite headers?" >&2;}
14649    { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
14650echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
14651    { echo "$as_me:$LINENO: WARNING: dl.h:     section \"Present But Cannot Be Compiled\"" >&5
14652echo "$as_me: WARNING: dl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14653    { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
14654echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
14655    { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
14656echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
14657    (
14658      cat <<\_ASBOX
14659## ------------------------------------------ ##
14660## Report this to the AC_PACKAGE_NAME lists.  ##
14661## ------------------------------------------ ##
14662_ASBOX
14663    ) |
14664      sed "s/^/$as_me: WARNING:     /" >&2
14665    ;;
14666esac
14667echo "$as_me:$LINENO: checking for dl.h" >&5
14668echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14669if test "${ac_cv_header_dl_h+set}" = set; then
14670  echo $ECHO_N "(cached) $ECHO_C" >&6
14671else
14672  ac_cv_header_dl_h=$ac_header_preproc
14673fi
14674echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14675echo "${ECHO_T}$ac_cv_header_dl_h" >&6
14676
14677fi
14678if test $ac_cv_header_dl_h = yes; then
14679  DLL=dl.h
14680fi
14681
14682
14683fi
14684
14685
14686if test x${DLL} = xdlfcn.h; then
14687
14688cat >>confdefs.h <<\_ACEOF
14689#define HAVE_DLFCN_H 1
14690_ACEOF
14691
14692  echo "$as_me:$LINENO: checking for dlopen()" >&5
14693echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6
14694  cat >conftest.$ac_ext <<_ACEOF
14695/* confdefs.h.  */
14696_ACEOF
14697cat confdefs.h >>conftest.$ac_ext
14698cat >>conftest.$ac_ext <<_ACEOF
14699/* end confdefs.h.  */
14700
14701int
14702main ()
14703{
14704
14705		extern void* dlopen();
14706		dlopen();
14707
14708  ;
14709  return 0;
14710}
14711_ACEOF
14712rm -f conftest.$ac_objext conftest$ac_exeext
14713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14714  (eval $ac_link) 2>conftest.er1
14715  ac_status=$?
14716  grep -v '^ *+' conftest.er1 >conftest.err
14717  rm -f conftest.er1
14718  cat conftest.err >&5
14719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720  (exit $ac_status); } &&
14721	 { ac_try='test -z "$ac_c_werror_flag"
14722			 || test ! -s conftest.err'
14723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14724  (eval $ac_try) 2>&5
14725  ac_status=$?
14726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727  (exit $ac_status); }; } &&
14728	 { ac_try='test -s conftest$ac_exeext'
14729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14730  (eval $ac_try) 2>&5
14731  ac_status=$?
14732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733  (exit $ac_status); }; }; then
14734  echo "$as_me:$LINENO: result: yes" >&5
14735echo "${ECHO_T}yes" >&6;
14736
14737cat >>confdefs.h <<\_ACEOF
14738#define HAVE_DLOPEN 1
14739_ACEOF
14740
14741else
14742  echo "$as_me: failed program was:" >&5
14743sed 's/^/| /' conftest.$ac_ext >&5
14744
14745echo "$as_me:$LINENO: result: no" >&5
14746echo "${ECHO_T}no" >&6;
14747	      echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
14748echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6
14749	      olibs=$LIBS
14750	      LIBS="$LIBS -ldl"
14751	      cat >conftest.$ac_ext <<_ACEOF
14752/* confdefs.h.  */
14753_ACEOF
14754cat confdefs.h >>conftest.$ac_ext
14755cat >>conftest.$ac_ext <<_ACEOF
14756/* end confdefs.h.  */
14757
14758int
14759main ()
14760{
14761
14762				extern void* dlopen();
14763				dlopen();
14764
14765  ;
14766  return 0;
14767}
14768_ACEOF
14769rm -f conftest.$ac_objext conftest$ac_exeext
14770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14771  (eval $ac_link) 2>conftest.er1
14772  ac_status=$?
14773  grep -v '^ *+' conftest.er1 >conftest.err
14774  rm -f conftest.er1
14775  cat conftest.err >&5
14776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777  (exit $ac_status); } &&
14778	 { ac_try='test -z "$ac_c_werror_flag"
14779			 || test ! -s conftest.err'
14780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14781  (eval $ac_try) 2>&5
14782  ac_status=$?
14783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784  (exit $ac_status); }; } &&
14785	 { ac_try='test -s conftest$ac_exeext'
14786  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787  (eval $ac_try) 2>&5
14788  ac_status=$?
14789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790  (exit $ac_status); }; }; then
14791  echo "$as_me:$LINENO: result: yes" >&5
14792echo "${ECHO_T}yes" >&6;
14793
14794cat >>confdefs.h <<\_ACEOF
14795#define HAVE_DLOPEN 1
14796_ACEOF
14797
14798else
14799  echo "$as_me: failed program was:" >&5
14800sed 's/^/| /' conftest.$ac_ext >&5
14801
14802echo "$as_me:$LINENO: result: no" >&5
14803echo "${ECHO_T}no" >&6;
14804			  LIBS=$olibs
14805fi
14806rm -f conftest.err conftest.$ac_objext \
14807      conftest$ac_exeext conftest.$ac_ext
14808fi
14809rm -f conftest.err conftest.$ac_objext \
14810      conftest$ac_exeext conftest.$ac_ext
14811      echo "$as_me:$LINENO: checking for dlsym()" >&5
14812echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6
14813  cat >conftest.$ac_ext <<_ACEOF
14814/* confdefs.h.  */
14815_ACEOF
14816cat confdefs.h >>conftest.$ac_ext
14817cat >>conftest.$ac_ext <<_ACEOF
14818/* end confdefs.h.  */
14819
14820int
14821main ()
14822{
14823
14824		extern void* dlsym();
14825		dlsym();
14826
14827  ;
14828  return 0;
14829}
14830_ACEOF
14831rm -f conftest.$ac_objext conftest$ac_exeext
14832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14833  (eval $ac_link) 2>conftest.er1
14834  ac_status=$?
14835  grep -v '^ *+' conftest.er1 >conftest.err
14836  rm -f conftest.er1
14837  cat conftest.err >&5
14838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839  (exit $ac_status); } &&
14840	 { ac_try='test -z "$ac_c_werror_flag"
14841			 || test ! -s conftest.err'
14842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14843  (eval $ac_try) 2>&5
14844  ac_status=$?
14845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846  (exit $ac_status); }; } &&
14847	 { ac_try='test -s conftest$ac_exeext'
14848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14849  (eval $ac_try) 2>&5
14850  ac_status=$?
14851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852  (exit $ac_status); }; }; then
14853  echo "$as_me:$LINENO: result: yes" >&5
14854echo "${ECHO_T}yes" >&6;
14855
14856cat >>confdefs.h <<\_ACEOF
14857#define HAVE_DLSYM 1
14858_ACEOF
14859
14860else
14861  echo "$as_me: failed program was:" >&5
14862sed 's/^/| /' conftest.$ac_ext >&5
14863
14864echo "$as_me:$LINENO: result: no" >&5
14865echo "${ECHO_T}no" >&6;
14866	      echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
14867echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6
14868	      olibs=$LIBS
14869	      LIBS="$LIBS -ldl"
14870	      cat >conftest.$ac_ext <<_ACEOF
14871/* confdefs.h.  */
14872_ACEOF
14873cat confdefs.h >>conftest.$ac_ext
14874cat >>conftest.$ac_ext <<_ACEOF
14875/* end confdefs.h.  */
14876
14877int
14878main ()
14879{
14880
14881				extern void* dlsym();
14882				dlsym();
14883
14884  ;
14885  return 0;
14886}
14887_ACEOF
14888rm -f conftest.$ac_objext conftest$ac_exeext
14889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14890  (eval $ac_link) 2>conftest.er1
14891  ac_status=$?
14892  grep -v '^ *+' conftest.er1 >conftest.err
14893  rm -f conftest.er1
14894  cat conftest.err >&5
14895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896  (exit $ac_status); } &&
14897	 { ac_try='test -z "$ac_c_werror_flag"
14898			 || test ! -s conftest.err'
14899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14900  (eval $ac_try) 2>&5
14901  ac_status=$?
14902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903  (exit $ac_status); }; } &&
14904	 { ac_try='test -s conftest$ac_exeext'
14905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14906  (eval $ac_try) 2>&5
14907  ac_status=$?
14908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909  (exit $ac_status); }; }; then
14910  echo "$as_me:$LINENO: result: yes" >&5
14911echo "${ECHO_T}yes" >&6;
14912
14913cat >>confdefs.h <<\_ACEOF
14914#define HAVE_DLSYM 1
14915_ACEOF
14916
14917else
14918  echo "$as_me: failed program was:" >&5
14919sed 's/^/| /' conftest.$ac_ext >&5
14920
14921echo "$as_me:$LINENO: result: no" >&5
14922echo "${ECHO_T}no" >&6;
14923			  LIBS=$olibs
14924fi
14925rm -f conftest.err conftest.$ac_objext \
14926      conftest$ac_exeext conftest.$ac_ext
14927fi
14928rm -f conftest.err conftest.$ac_objext \
14929      conftest$ac_exeext conftest.$ac_ext
14930elif test x${DLL} = xdl.h; then
14931
14932cat >>confdefs.h <<\_ACEOF
14933#define HAVE_DL_H 1
14934_ACEOF
14935
14936  echo "$as_me:$LINENO: checking for shl_load()" >&5
14937echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6
14938  cat >conftest.$ac_ext <<_ACEOF
14939/* confdefs.h.  */
14940_ACEOF
14941cat confdefs.h >>conftest.$ac_ext
14942cat >>conftest.$ac_ext <<_ACEOF
14943/* end confdefs.h.  */
14944
14945int
14946main ()
14947{
14948
14949		extern void* shl_load();
14950		shl_load();
14951
14952  ;
14953  return 0;
14954}
14955_ACEOF
14956rm -f conftest.$ac_objext conftest$ac_exeext
14957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14958  (eval $ac_link) 2>conftest.er1
14959  ac_status=$?
14960  grep -v '^ *+' conftest.er1 >conftest.err
14961  rm -f conftest.er1
14962  cat conftest.err >&5
14963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964  (exit $ac_status); } &&
14965	 { ac_try='test -z "$ac_c_werror_flag"
14966			 || test ! -s conftest.err'
14967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14968  (eval $ac_try) 2>&5
14969  ac_status=$?
14970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971  (exit $ac_status); }; } &&
14972	 { ac_try='test -s conftest$ac_exeext'
14973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14974  (eval $ac_try) 2>&5
14975  ac_status=$?
14976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977  (exit $ac_status); }; }; then
14978  echo "$as_me:$LINENO: result: yes" >&5
14979echo "${ECHO_T}yes" >&6;
14980
14981cat >>confdefs.h <<\_ACEOF
14982#define HAVE_SHL_LOAD 1
14983_ACEOF
14984
14985else
14986  echo "$as_me: failed program was:" >&5
14987sed 's/^/| /' conftest.$ac_ext >&5
14988
14989echo "$as_me:$LINENO: result: no" >&5
14990echo "${ECHO_T}no" >&6;
14991	  echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
14992echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6
14993	  olibs=$LIBS
14994	  LIBS="$LIBS -ldld"
14995	  cat >conftest.$ac_ext <<_ACEOF
14996/* confdefs.h.  */
14997_ACEOF
14998cat confdefs.h >>conftest.$ac_ext
14999cat >>conftest.$ac_ext <<_ACEOF
15000/* end confdefs.h.  */
15001
15002int
15003main ()
15004{
15005
15006			extern void* shl_load();
15007			shl_load();
15008
15009  ;
15010  return 0;
15011}
15012_ACEOF
15013rm -f conftest.$ac_objext conftest$ac_exeext
15014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15015  (eval $ac_link) 2>conftest.er1
15016  ac_status=$?
15017  grep -v '^ *+' conftest.er1 >conftest.err
15018  rm -f conftest.er1
15019  cat conftest.err >&5
15020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021  (exit $ac_status); } &&
15022	 { ac_try='test -z "$ac_c_werror_flag"
15023			 || test ! -s conftest.err'
15024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15025  (eval $ac_try) 2>&5
15026  ac_status=$?
15027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028  (exit $ac_status); }; } &&
15029	 { ac_try='test -s conftest$ac_exeext'
15030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15031  (eval $ac_try) 2>&5
15032  ac_status=$?
15033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034  (exit $ac_status); }; }; then
15035  echo "$as_me:$LINENO: result: yes" >&5
15036echo "${ECHO_T}yes" >&6;
15037
15038cat >>confdefs.h <<\_ACEOF
15039#define HAVE_SHL_LOAD 1
15040_ACEOF
15041
15042else
15043  echo "$as_me: failed program was:" >&5
15044sed 's/^/| /' conftest.$ac_ext >&5
15045
15046echo "$as_me:$LINENO: result: no" >&5
15047echo "${ECHO_T}no" >&6;
15048		  LIBS=$olibs
15049fi
15050rm -f conftest.err conftest.$ac_objext \
15051      conftest$ac_exeext conftest.$ac_ext
15052fi
15053rm -f conftest.err conftest.$ac_objext \
15054      conftest$ac_exeext conftest.$ac_ext
15055fi
15056
15057for ac_header in setjmp.h
15058do
15059as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15060if eval "test \"\${$as_ac_Header+set}\" = set"; then
15061  echo "$as_me:$LINENO: checking for $ac_header" >&5
15062echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15063if eval "test \"\${$as_ac_Header+set}\" = set"; then
15064  echo $ECHO_N "(cached) $ECHO_C" >&6
15065fi
15066echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15067echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15068else
15069  # Is the header compilable?
15070echo "$as_me:$LINENO: checking $ac_header usability" >&5
15071echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15072cat >conftest.$ac_ext <<_ACEOF
15073/* confdefs.h.  */
15074_ACEOF
15075cat confdefs.h >>conftest.$ac_ext
15076cat >>conftest.$ac_ext <<_ACEOF
15077/* end confdefs.h.  */
15078$ac_includes_default
15079#include <$ac_header>
15080_ACEOF
15081rm -f conftest.$ac_objext
15082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15083  (eval $ac_compile) 2>conftest.er1
15084  ac_status=$?
15085  grep -v '^ *+' conftest.er1 >conftest.err
15086  rm -f conftest.er1
15087  cat conftest.err >&5
15088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089  (exit $ac_status); } &&
15090	 { ac_try='test -z "$ac_c_werror_flag"
15091			 || test ! -s conftest.err'
15092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15093  (eval $ac_try) 2>&5
15094  ac_status=$?
15095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096  (exit $ac_status); }; } &&
15097	 { ac_try='test -s conftest.$ac_objext'
15098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15099  (eval $ac_try) 2>&5
15100  ac_status=$?
15101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102  (exit $ac_status); }; }; then
15103  ac_header_compiler=yes
15104else
15105  echo "$as_me: failed program was:" >&5
15106sed 's/^/| /' conftest.$ac_ext >&5
15107
15108ac_header_compiler=no
15109fi
15110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15111echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15112echo "${ECHO_T}$ac_header_compiler" >&6
15113
15114# Is the header present?
15115echo "$as_me:$LINENO: checking $ac_header presence" >&5
15116echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15117cat >conftest.$ac_ext <<_ACEOF
15118/* confdefs.h.  */
15119_ACEOF
15120cat confdefs.h >>conftest.$ac_ext
15121cat >>conftest.$ac_ext <<_ACEOF
15122/* end confdefs.h.  */
15123#include <$ac_header>
15124_ACEOF
15125if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15126  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15127  ac_status=$?
15128  grep -v '^ *+' conftest.er1 >conftest.err
15129  rm -f conftest.er1
15130  cat conftest.err >&5
15131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132  (exit $ac_status); } >/dev/null; then
15133  if test -s conftest.err; then
15134    ac_cpp_err=$ac_c_preproc_warn_flag
15135    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15136  else
15137    ac_cpp_err=
15138  fi
15139else
15140  ac_cpp_err=yes
15141fi
15142if test -z "$ac_cpp_err"; then
15143  ac_header_preproc=yes
15144else
15145  echo "$as_me: failed program was:" >&5
15146sed 's/^/| /' conftest.$ac_ext >&5
15147
15148  ac_header_preproc=no
15149fi
15150rm -f conftest.err conftest.$ac_ext
15151echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15152echo "${ECHO_T}$ac_header_preproc" >&6
15153
15154# So?  What about this header?
15155case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15156  yes:no: )
15157    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15158echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15159    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15160echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15161    ac_header_preproc=yes
15162    ;;
15163  no:yes:* )
15164    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15165echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15166    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15167echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15168    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15169echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15170    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15171echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15172    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15173echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15174    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15175echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15176    (
15177      cat <<\_ASBOX
15178## ------------------------------------------ ##
15179## Report this to the AC_PACKAGE_NAME lists.  ##
15180## ------------------------------------------ ##
15181_ASBOX
15182    ) |
15183      sed "s/^/$as_me: WARNING:     /" >&2
15184    ;;
15185esac
15186echo "$as_me:$LINENO: checking for $ac_header" >&5
15187echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15188if eval "test \"\${$as_ac_Header+set}\" = set"; then
15189  echo $ECHO_N "(cached) $ECHO_C" >&6
15190else
15191  eval "$as_ac_Header=\$ac_header_preproc"
15192fi
15193echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15194echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15195
15196fi
15197if test `eval echo '${'$as_ac_Header'}'` = yes; then
15198  cat >>confdefs.h <<_ACEOF
15199#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15200_ACEOF
15201
15202fi
15203
15204done
15205
15206
15207if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
15208    if echo $LIBS | grep -e '-ldl' >/dev/null; then
15209    LIBS=`echo $LIBS | sed s/-ldl//`
15210    PERL_LIBS="$PERL_LIBS -ldl"
15211  fi
15212fi
15213
15214if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
15215	&& test "x$GUITYPE" != "xCARBONGUI"; then
15216  echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
15217echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6
15218    if test "x$enable_multibyte" = "xyes" || test "x$features" == "xbig" \
15219	|| test "x$features" = "xhuge"; then
15220    LIBS="$LIBS -framework Carbon"
15221    echo "$as_me:$LINENO: result: yes" >&5
15222echo "${ECHO_T}yes" >&6
15223  else
15224    echo "$as_me:$LINENO: result: no" >&5
15225echo "${ECHO_T}no" >&6
15226  fi
15227fi
15228if test "x$MACARCH" = "xboth"; then
15229  LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
15230fi
15231
15232echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
15233echo $ECHO_N "checking for GCC 3 or later... $ECHO_C" >&6
15234DEPEND_CFLAGS_FILTER=
15235if test "$GCC" = yes; then
15236  gccmajor=`"$CC" --version | sed -e '2,$d;s/^[^0-9]*\(darwin.[^0-9]*\)*\([1-9]\)\.[0-9].*$/\2/g'`
15237  if test "$gccmajor" -gt "2"; then
15238    DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
15239  fi
15240fi
15241if test "$DEPEND_CFLAGS_FILTER" = ""; then
15242  echo "$as_me:$LINENO: result: no" >&5
15243echo "${ECHO_T}no" >&6
15244else
15245  echo "$as_me:$LINENO: result: yes" >&5
15246echo "${ECHO_T}yes" >&6
15247fi
15248
15249
15250          ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
15251cat >confcache <<\_ACEOF
15252# This file is a shell script that caches the results of configure
15253# tests run on this system so they can be shared between configure
15254# scripts and configure runs, see configure's option --config-cache.
15255# It is not useful on other systems.  If it contains results you don't
15256# want to keep, you may remove or edit it.
15257#
15258# config.status only pays attention to the cache file if you give it
15259# the --recheck option to rerun configure.
15260#
15261# `ac_cv_env_foo' variables (set or unset) will be overridden when
15262# loading this file, other *unset* `ac_cv_foo' will be assigned the
15263# following values.
15264
15265_ACEOF
15266
15267# The following way of writing the cache mishandles newlines in values,
15268# but we know of no workaround that is simple, portable, and efficient.
15269# So, don't put newlines in cache variables' values.
15270# Ultrix sh set writes to stderr and can't be redirected directly,
15271# and sets the high bit in the cache file unless we assign to the vars.
15272{
15273  (set) 2>&1 |
15274    case `(ac_space=' '; set | grep ac_space) 2>&1` in
15275    *ac_space=\ *)
15276      # `set' does not quote correctly, so add quotes (double-quote
15277      # substitution turns \\\\ into \\, and sed turns \\ into \).
15278      sed -n \
15279	"s/'/'\\\\''/g;
15280	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15281      ;;
15282    *)
15283      # `set' quotes correctly as required by POSIX, so do not add quotes.
15284      sed -n \
15285	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15286      ;;
15287    esac;
15288} |
15289  sed '
15290     t clear
15291     : clear
15292     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15293     t end
15294     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15295     : end' >>confcache
15296if diff $cache_file confcache >/dev/null 2>&1; then :; else
15297  if test -w $cache_file; then
15298    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15299    cat confcache >$cache_file
15300  else
15301    echo "not updating unwritable cache $cache_file"
15302  fi
15303fi
15304rm -f confcache
15305
15306test "x$prefix" = xNONE && prefix=$ac_default_prefix
15307# Let make expand exec_prefix.
15308test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15309
15310# VPATH may cause trouble with some makes, so we remove $(srcdir),
15311# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15312# trailing colons and then remove the whole line if VPATH becomes empty
15313# (actually we leave an empty line to preserve line numbers).
15314if test "x$srcdir" = x.; then
15315  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
15316s/:*\$(srcdir):*/:/;
15317s/:*\${srcdir}:*/:/;
15318s/:*@srcdir@:*/:/;
15319s/^\([^=]*=[	 ]*\):*/\1/;
15320s/:*$//;
15321s/^[^=]*=[	 ]*$//;
15322}'
15323fi
15324
15325DEFS=-DHAVE_CONFIG_H
15326
15327ac_libobjs=
15328ac_ltlibobjs=
15329for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15330  # 1. Remove the extension, and $U if already installed.
15331  ac_i=`echo "$ac_i" |
15332	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15333  # 2. Add them.
15334  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15335  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15336done
15337LIBOBJS=$ac_libobjs
15338
15339LTLIBOBJS=$ac_ltlibobjs
15340
15341
15342
15343: ${CONFIG_STATUS=./config.status}
15344ac_clean_files_save=$ac_clean_files
15345ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15346{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15347echo "$as_me: creating $CONFIG_STATUS" >&6;}
15348cat >$CONFIG_STATUS <<_ACEOF
15349#! $SHELL
15350# Generated by $as_me.
15351# Run this file to recreate the current configuration.
15352# Compiler output produced by configure, useful for debugging
15353# configure, is in config.log if it exists.
15354
15355debug=false
15356ac_cs_recheck=false
15357ac_cs_silent=false
15358SHELL=\${CONFIG_SHELL-$SHELL}
15359_ACEOF
15360
15361cat >>$CONFIG_STATUS <<\_ACEOF
15362## --------------------- ##
15363## M4sh Initialization.  ##
15364## --------------------- ##
15365
15366# Be Bourne compatible
15367if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15368  emulate sh
15369  NULLCMD=:
15370  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15371  # is contrary to our usage.  Disable this feature.
15372  alias -g '${1+"$@"}'='"$@"'
15373elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15374  set -o posix
15375fi
15376DUALCASE=1; export DUALCASE # for MKS sh
15377
15378# Support unset when possible.
15379if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15380  as_unset=unset
15381else
15382  as_unset=false
15383fi
15384
15385
15386# Work around bugs in pre-3.0 UWIN ksh.
15387$as_unset ENV MAIL MAILPATH
15388PS1='$ '
15389PS2='> '
15390PS4='+ '
15391
15392# NLS nuisances.
15393for as_var in \
15394  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15395  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15396  LC_TELEPHONE LC_TIME
15397do
15398  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15399    eval $as_var=C; export $as_var
15400  else
15401    $as_unset $as_var
15402  fi
15403done
15404
15405# Required to use basename.
15406if expr a : '\(a\)' >/dev/null 2>&1; then
15407  as_expr=expr
15408else
15409  as_expr=false
15410fi
15411
15412if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15413  as_basename=basename
15414else
15415  as_basename=false
15416fi
15417
15418
15419# Name of the executable.
15420as_me=`$as_basename "$0" ||
15421$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15422	 X"$0" : 'X\(//\)$' \| \
15423	 X"$0" : 'X\(/\)$' \| \
15424	 .     : '\(.\)' 2>/dev/null ||
15425echo X/"$0" |
15426    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15427  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
15428  	  /^X\/\(\/\).*/{ s//\1/; q; }
15429  	  s/.*/./; q'`
15430
15431
15432# PATH needs CR, and LINENO needs CR and PATH.
15433# Avoid depending upon Character Ranges.
15434as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15436as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15437as_cr_digits='0123456789'
15438as_cr_alnum=$as_cr_Letters$as_cr_digits
15439
15440# The user is always right.
15441if test "${PATH_SEPARATOR+set}" != set; then
15442  echo "#! /bin/sh" >conf$$.sh
15443  echo  "exit 0"   >>conf$$.sh
15444  chmod +x conf$$.sh
15445  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15446    PATH_SEPARATOR=';'
15447  else
15448    PATH_SEPARATOR=:
15449  fi
15450  rm -f conf$$.sh
15451fi
15452
15453
15454  as_lineno_1=$LINENO
15455  as_lineno_2=$LINENO
15456  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15457  test "x$as_lineno_1" != "x$as_lineno_2" &&
15458  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
15459  # Find who we are.  Look in the path if we contain no path at all
15460  # relative or not.
15461  case $0 in
15462    *[\\/]* ) as_myself=$0 ;;
15463    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15464for as_dir in $PATH
15465do
15466  IFS=$as_save_IFS
15467  test -z "$as_dir" && as_dir=.
15468  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15469done
15470
15471       ;;
15472  esac
15473  # We did not find ourselves, most probably we were run as `sh COMMAND'
15474  # in which case we are not to be found in the path.
15475  if test "x$as_myself" = x; then
15476    as_myself=$0
15477  fi
15478  if test ! -f "$as_myself"; then
15479    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15480echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15481   { (exit 1); exit 1; }; }
15482  fi
15483  case $CONFIG_SHELL in
15484  '')
15485    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15486for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15487do
15488  IFS=$as_save_IFS
15489  test -z "$as_dir" && as_dir=.
15490  for as_base in sh bash ksh sh5; do
15491	 case $as_dir in
15492	 /*)
15493	   if ("$as_dir/$as_base" -c '
15494  as_lineno_1=$LINENO
15495  as_lineno_2=$LINENO
15496  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15497  test "x$as_lineno_1" != "x$as_lineno_2" &&
15498  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
15499	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15500	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15501	     CONFIG_SHELL=$as_dir/$as_base
15502	     export CONFIG_SHELL
15503	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15504	   fi;;
15505	 esac
15506       done
15507done
15508;;
15509  esac
15510
15511  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15512  # uniformly replaced by the line number.  The first 'sed' inserts a
15513  # line-number line before each line; the second 'sed' does the real
15514  # work.  The second script uses 'N' to pair each line-number line
15515  # with the numbered line, and appends trailing '-' during
15516  # substitution so that $LINENO is not a special case at line end.
15517  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15518  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
15519  sed '=' <$as_myself |
15520    sed '
15521      N
15522      s,$,-,
15523      : loop
15524      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15525      t loop
15526      s,-$,,
15527      s,^['$as_cr_digits']*\n,,
15528    ' >$as_me.lineno &&
15529  chmod +x $as_me.lineno ||
15530    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15531echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15532   { (exit 1); exit 1; }; }
15533
15534  # Don't try to exec as it changes $[0], causing all sort of problems
15535  # (the dirname of $[0] is not the place where we might find the
15536  # original and so on.  Autoconf is especially sensible to this).
15537  . ./$as_me.lineno
15538  # Exit status is that of the last command.
15539  exit
15540}
15541
15542
15543case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15544  *c*,-n*) ECHO_N= ECHO_C='
15545' ECHO_T='	' ;;
15546  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15547  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
15548esac
15549
15550if expr a : '\(a\)' >/dev/null 2>&1; then
15551  as_expr=expr
15552else
15553  as_expr=false
15554fi
15555
15556rm -f conf$$ conf$$.exe conf$$.file
15557echo >conf$$.file
15558if ln -s conf$$.file conf$$ 2>/dev/null; then
15559  # We could just check for DJGPP; but this test a) works b) is more generic
15560  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15561  if test -f conf$$.exe; then
15562    # Don't use ln at all; we don't have any links
15563    as_ln_s='cp -p'
15564  else
15565    as_ln_s='ln -s'
15566  fi
15567elif ln conf$$.file conf$$ 2>/dev/null; then
15568  as_ln_s=ln
15569else
15570  as_ln_s='cp -p'
15571fi
15572rm -f conf$$ conf$$.exe conf$$.file
15573
15574if mkdir -p . 2>/dev/null; then
15575  as_mkdir_p=:
15576else
15577  test -d ./-p && rmdir ./-p
15578  as_mkdir_p=false
15579fi
15580
15581as_executable_p="test -f"
15582
15583# Sed expression to map a string onto a valid CPP name.
15584as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15585
15586# Sed expression to map a string onto a valid variable name.
15587as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15588
15589
15590# IFS
15591# We need space, tab and new line, in precisely that order.
15592as_nl='
15593'
15594IFS=" 	$as_nl"
15595
15596# CDPATH.
15597$as_unset CDPATH
15598
15599exec 6>&1
15600
15601# Open the log real soon, to keep \$[0] and so on meaningful, and to
15602# report actual input values of CONFIG_FILES etc. instead of their
15603# values after options handling.  Logging --version etc. is OK.
15604exec 5>>auto/config.log
15605{
15606  echo
15607  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15608## Running $as_me. ##
15609_ASBOX
15610} >&5
15611cat >&5 <<_CSEOF
15612
15613This file was extended by $as_me, which was
15614generated by GNU Autoconf 2.59.  Invocation command line was
15615
15616  CONFIG_FILES    = $CONFIG_FILES
15617  CONFIG_HEADERS  = $CONFIG_HEADERS
15618  CONFIG_LINKS    = $CONFIG_LINKS
15619  CONFIG_COMMANDS = $CONFIG_COMMANDS
15620  $ $0 $@
15621
15622_CSEOF
15623echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15624echo >&5
15625_ACEOF
15626
15627# Files that config.status was made for.
15628if test -n "$ac_config_files"; then
15629  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15630fi
15631
15632if test -n "$ac_config_headers"; then
15633  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15634fi
15635
15636if test -n "$ac_config_links"; then
15637  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15638fi
15639
15640if test -n "$ac_config_commands"; then
15641  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15642fi
15643
15644cat >>$CONFIG_STATUS <<\_ACEOF
15645
15646ac_cs_usage="\
15647\`$as_me' instantiates files from templates according to the
15648current configuration.
15649
15650Usage: $0 [OPTIONS] [FILE]...
15651
15652  -h, --help       print this help, then exit
15653  -V, --version    print version number, then exit
15654  -q, --quiet      do not print progress messages
15655  -d, --debug      don't remove temporary files
15656      --recheck    update $as_me by reconfiguring in the same conditions
15657  --file=FILE[:TEMPLATE]
15658		   instantiate the configuration file FILE
15659  --header=FILE[:TEMPLATE]
15660		   instantiate the configuration header FILE
15661
15662Configuration files:
15663$config_files
15664
15665Configuration headers:
15666$config_headers
15667
15668Report bugs to <[email protected]>."
15669_ACEOF
15670
15671cat >>$CONFIG_STATUS <<_ACEOF
15672ac_cs_version="\\
15673config.status
15674configured by $0, generated by GNU Autoconf 2.59,
15675  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15676
15677Copyright (C) 2003 Free Software Foundation, Inc.
15678This config.status script is free software; the Free Software Foundation
15679gives unlimited permission to copy, distribute and modify it."
15680srcdir=$srcdir
15681_ACEOF
15682
15683cat >>$CONFIG_STATUS <<\_ACEOF
15684# If no file are specified by the user, then we need to provide default
15685# value.  By we need to know if files were specified by the user.
15686ac_need_defaults=:
15687while test $# != 0
15688do
15689  case $1 in
15690  --*=*)
15691    ac_option=`expr "x$1" : 'x\([^=]*\)='`
15692    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15693    ac_shift=:
15694    ;;
15695  -*)
15696    ac_option=$1
15697    ac_optarg=$2
15698    ac_shift=shift
15699    ;;
15700  *) # This is not an option, so the user has probably given explicit
15701     # arguments.
15702     ac_option=$1
15703     ac_need_defaults=false;;
15704  esac
15705
15706  case $ac_option in
15707  # Handling of the options.
15708_ACEOF
15709cat >>$CONFIG_STATUS <<\_ACEOF
15710  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15711    ac_cs_recheck=: ;;
15712  --version | --vers* | -V )
15713    echo "$ac_cs_version"; exit 0 ;;
15714  --he | --h)
15715    # Conflict between --help and --header
15716    { { echo "$as_me:$LINENO: error: ambiguous option: $1
15717Try \`$0 --help' for more information." >&5
15718echo "$as_me: error: ambiguous option: $1
15719Try \`$0 --help' for more information." >&2;}
15720   { (exit 1); exit 1; }; };;
15721  --help | --hel | -h )
15722    echo "$ac_cs_usage"; exit 0 ;;
15723  --debug | --d* | -d )
15724    debug=: ;;
15725  --file | --fil | --fi | --f )
15726    $ac_shift
15727    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15728    ac_need_defaults=false;;
15729  --header | --heade | --head | --hea )
15730    $ac_shift
15731    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15732    ac_need_defaults=false;;
15733  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15734  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15735    ac_cs_silent=: ;;
15736
15737  # This is an error.
15738  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15739Try \`$0 --help' for more information." >&5
15740echo "$as_me: error: unrecognized option: $1
15741Try \`$0 --help' for more information." >&2;}
15742   { (exit 1); exit 1; }; } ;;
15743
15744  *) ac_config_targets="$ac_config_targets $1" ;;
15745
15746  esac
15747  shift
15748done
15749
15750ac_configure_extra_args=
15751
15752if $ac_cs_silent; then
15753  exec 6>/dev/null
15754  ac_configure_extra_args="$ac_configure_extra_args --silent"
15755fi
15756
15757_ACEOF
15758cat >>$CONFIG_STATUS <<_ACEOF
15759if \$ac_cs_recheck; then
15760  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15761  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15762fi
15763
15764_ACEOF
15765
15766
15767
15768
15769
15770cat >>$CONFIG_STATUS <<\_ACEOF
15771for ac_config_target in $ac_config_targets
15772do
15773  case "$ac_config_target" in
15774  # Handling of arguments.
15775  "auto/config.mk" ) CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
15776  "auto/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
15777  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15778echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15779   { (exit 1); exit 1; }; };;
15780  esac
15781done
15782
15783# If the user did not use the arguments to specify the items to instantiate,
15784# then the envvar interface is used.  Set only those that are not.
15785# We use the long form for the default assignment because of an extremely
15786# bizarre bug on SunOS 4.1.3.
15787if $ac_need_defaults; then
15788  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15789  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15790fi
15791
15792# Have a temporary directory for convenience.  Make it in the build tree
15793# simply because there is no reason to put it here, and in addition,
15794# creating and moving files from /tmp can sometimes cause problems.
15795# Create a temporary directory, and hook for its removal unless debugging.
15796$debug ||
15797{
15798  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15799  trap '{ (exit 1); exit 1; }' 1 2 13 15
15800}
15801
15802# Create a (secure) tmp directory for tmp files.
15803
15804{
15805  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15806  test -n "$tmp" && test -d "$tmp"
15807}  ||
15808{
15809  tmp=./confstat$$-$RANDOM
15810  (umask 077 && mkdir $tmp)
15811} ||
15812{
15813   echo "$me: cannot create a temporary directory in ." >&2
15814   { (exit 1); exit 1; }
15815}
15816
15817_ACEOF
15818
15819cat >>$CONFIG_STATUS <<_ACEOF
15820
15821#
15822# CONFIG_FILES section.
15823#
15824
15825# No need to generate the scripts if there are no CONFIG_FILES.
15826# This happens for instance when ./config.status config.h
15827if test -n "\$CONFIG_FILES"; then
15828  # Protect against being on the right side of a sed subst in config.status.
15829  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15830   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15831s,@SHELL@,$SHELL,;t t
15832s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15833s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15834s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15835s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15836s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15837s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15838s,@exec_prefix@,$exec_prefix,;t t
15839s,@prefix@,$prefix,;t t
15840s,@program_transform_name@,$program_transform_name,;t t
15841s,@bindir@,$bindir,;t t
15842s,@sbindir@,$sbindir,;t t
15843s,@libexecdir@,$libexecdir,;t t
15844s,@datadir@,$datadir,;t t
15845s,@sysconfdir@,$sysconfdir,;t t
15846s,@sharedstatedir@,$sharedstatedir,;t t
15847s,@localstatedir@,$localstatedir,;t t
15848s,@libdir@,$libdir,;t t
15849s,@includedir@,$includedir,;t t
15850s,@oldincludedir@,$oldincludedir,;t t
15851s,@infodir@,$infodir,;t t
15852s,@mandir@,$mandir,;t t
15853s,@build_alias@,$build_alias,;t t
15854s,@host_alias@,$host_alias,;t t
15855s,@target_alias@,$target_alias,;t t
15856s,@DEFS@,$DEFS,;t t
15857s,@ECHO_C@,$ECHO_C,;t t
15858s,@ECHO_N@,$ECHO_N,;t t
15859s,@ECHO_T@,$ECHO_T,;t t
15860s,@LIBS@,$LIBS,;t t
15861s,@SET_MAKE@,$SET_MAKE,;t t
15862s,@CC@,$CC,;t t
15863s,@CFLAGS@,$CFLAGS,;t t
15864s,@LDFLAGS@,$LDFLAGS,;t t
15865s,@CPPFLAGS@,$CPPFLAGS,;t t
15866s,@ac_ct_CC@,$ac_ct_CC,;t t
15867s,@EXEEXT@,$EXEEXT,;t t
15868s,@OBJEXT@,$OBJEXT,;t t
15869s,@CPP@,$CPP,;t t
15870s,@EGREP@,$EGREP,;t t
15871s,@AWK@,$AWK,;t t
15872s,@STRIP@,$STRIP,;t t
15873s,@CPP_MM@,$CPP_MM,;t t
15874s,@OS_EXTRA_SRC@,$OS_EXTRA_SRC,;t t
15875s,@OS_EXTRA_OBJ@,$OS_EXTRA_OBJ,;t t
15876s,@VIMNAME@,$VIMNAME,;t t
15877s,@EXNAME@,$EXNAME,;t t
15878s,@VIEWNAME@,$VIEWNAME,;t t
15879s,@line_break@,$line_break,;t t
15880s,@dovimdiff@,$dovimdiff,;t t
15881s,@dogvimdiff@,$dogvimdiff,;t t
15882s,@compiledby@,$compiledby,;t t
15883s,@vi_cv_path_mzscheme@,$vi_cv_path_mzscheme,;t t
15884s,@MZSCHEME_SRC@,$MZSCHEME_SRC,;t t
15885s,@MZSCHEME_OBJ@,$MZSCHEME_OBJ,;t t
15886s,@MZSCHEME_PRO@,$MZSCHEME_PRO,;t t
15887s,@MZSCHEME_LIBS@,$MZSCHEME_LIBS,;t t
15888s,@MZSCHEME_CFLAGS@,$MZSCHEME_CFLAGS,;t t
15889s,@vi_cv_path_perl@,$vi_cv_path_perl,;t t
15890s,@vi_cv_perllib@,$vi_cv_perllib,;t t
15891s,@shrpenv@,$shrpenv,;t t
15892s,@PERL_SRC@,$PERL_SRC,;t t
15893s,@PERL_OBJ@,$PERL_OBJ,;t t
15894s,@PERL_PRO@,$PERL_PRO,;t t
15895s,@PERL_CFLAGS@,$PERL_CFLAGS,;t t
15896s,@PERL_LIBS@,$PERL_LIBS,;t t
15897s,@vi_cv_path_python@,$vi_cv_path_python,;t t
15898s,@PYTHON_CONFDIR@,$PYTHON_CONFDIR,;t t
15899s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
15900s,@PYTHON_GETPATH_CFLAGS@,$PYTHON_GETPATH_CFLAGS,;t t
15901s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
15902s,@PYTHON_SRC@,$PYTHON_SRC,;t t
15903s,@PYTHON_OBJ@,$PYTHON_OBJ,;t t
15904s,@vi_cv_path_tcl@,$vi_cv_path_tcl,;t t
15905s,@TCL_SRC@,$TCL_SRC,;t t
15906s,@TCL_OBJ@,$TCL_OBJ,;t t
15907s,@TCL_PRO@,$TCL_PRO,;t t
15908s,@TCL_CFLAGS@,$TCL_CFLAGS,;t t
15909s,@TCL_LIBS@,$TCL_LIBS,;t t
15910s,@vi_cv_path_ruby@,$vi_cv_path_ruby,;t t
15911s,@RUBY_SRC@,$RUBY_SRC,;t t
15912s,@RUBY_OBJ@,$RUBY_OBJ,;t t
15913s,@RUBY_PRO@,$RUBY_PRO,;t t
15914s,@RUBY_CFLAGS@,$RUBY_CFLAGS,;t t
15915s,@RUBY_LIBS@,$RUBY_LIBS,;t t
15916s,@WORKSHOP_SRC@,$WORKSHOP_SRC,;t t
15917s,@WORKSHOP_OBJ@,$WORKSHOP_OBJ,;t t
15918s,@NETBEANS_SRC@,$NETBEANS_SRC,;t t
15919s,@NETBEANS_OBJ@,$NETBEANS_OBJ,;t t
15920s,@SNIFF_SRC@,$SNIFF_SRC,;t t
15921s,@SNIFF_OBJ@,$SNIFF_OBJ,;t t
15922s,@xmkmfpath@,$xmkmfpath,;t t
15923s,@X_CFLAGS@,$X_CFLAGS,;t t
15924s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
15925s,@X_LIBS@,$X_LIBS,;t t
15926s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
15927s,@X_LIB@,$X_LIB,;t t
15928s,@GTK_CONFIG@,$GTK_CONFIG,;t t
15929s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t
15930s,@PKG_CONFIG@,$PKG_CONFIG,;t t
15931s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
15932s,@GTK_LIBS@,$GTK_LIBS,;t t
15933s,@GTK_LIBNAME@,$GTK_LIBNAME,;t t
15934s,@GNOME_LIBS@,$GNOME_LIBS,;t t
15935s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
15936s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
15937s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
15938s,@MOTIF_LIBNAME@,$MOTIF_LIBNAME,;t t
15939s,@NARROW_PROTO@,$NARROW_PROTO,;t t
15940s,@GUI_INC_LOC@,$GUI_INC_LOC,;t t
15941s,@GUI_LIB_LOC@,$GUI_LIB_LOC,;t t
15942s,@GUITYPE@,$GUITYPE,;t t
15943s,@GUI_X_LIBS@,$GUI_X_LIBS,;t t
15944s,@HANGULIN_SRC@,$HANGULIN_SRC,;t t
15945s,@HANGULIN_OBJ@,$HANGULIN_OBJ,;t t
15946s,@TAGPRG@,$TAGPRG,;t t
15947s,@INSTALL_LANGS@,$INSTALL_LANGS,;t t
15948s,@INSTALL_TOOL_LANGS@,$INSTALL_TOOL_LANGS,;t t
15949s,@MSGFMT@,$MSGFMT,;t t
15950s,@MAKEMO@,$MAKEMO,;t t
15951s,@DEPEND_CFLAGS_FILTER@,$DEPEND_CFLAGS_FILTER,;t t
15952s,@LIBOBJS@,$LIBOBJS,;t t
15953s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15954CEOF
15955
15956_ACEOF
15957
15958  cat >>$CONFIG_STATUS <<\_ACEOF
15959  # Split the substitutions into bite-sized pieces for seds with
15960  # small command number limits, like on Digital OSF/1 and HP-UX.
15961  ac_max_sed_lines=48
15962  ac_sed_frag=1 # Number of current file.
15963  ac_beg=1 # First line for current file.
15964  ac_end=$ac_max_sed_lines # Line after last line for current file.
15965  ac_more_lines=:
15966  ac_sed_cmds=
15967  while $ac_more_lines; do
15968    if test $ac_beg -gt 1; then
15969      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15970    else
15971      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15972    fi
15973    if test ! -s $tmp/subs.frag; then
15974      ac_more_lines=false
15975    else
15976      # The purpose of the label and of the branching condition is to
15977      # speed up the sed processing (if there are no `@' at all, there
15978      # is no need to browse any of the substitutions).
15979      # These are the two extra sed commands mentioned above.
15980      (echo ':t
15981  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15982      if test -z "$ac_sed_cmds"; then
15983	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15984      else
15985	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15986      fi
15987      ac_sed_frag=`expr $ac_sed_frag + 1`
15988      ac_beg=$ac_end
15989      ac_end=`expr $ac_end + $ac_max_sed_lines`
15990    fi
15991  done
15992  if test -z "$ac_sed_cmds"; then
15993    ac_sed_cmds=cat
15994  fi
15995fi # test -n "$CONFIG_FILES"
15996
15997_ACEOF
15998cat >>$CONFIG_STATUS <<\_ACEOF
15999for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16000  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16001  case $ac_file in
16002  - | *:- | *:-:* ) # input from stdin
16003	cat >$tmp/stdin
16004	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16005	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16006  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16007	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16008  * )   ac_file_in=$ac_file.in ;;
16009  esac
16010
16011  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16012  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16013$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16014	 X"$ac_file" : 'X\(//\)[^/]' \| \
16015	 X"$ac_file" : 'X\(//\)$' \| \
16016	 X"$ac_file" : 'X\(/\)' \| \
16017	 .     : '\(.\)' 2>/dev/null ||
16018echo X"$ac_file" |
16019    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16020  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16021  	  /^X\(\/\/\)$/{ s//\1/; q; }
16022  	  /^X\(\/\).*/{ s//\1/; q; }
16023  	  s/.*/./; q'`
16024  { if $as_mkdir_p; then
16025    mkdir -p "$ac_dir"
16026  else
16027    as_dir="$ac_dir"
16028    as_dirs=
16029    while test ! -d "$as_dir"; do
16030      as_dirs="$as_dir $as_dirs"
16031      as_dir=`(dirname "$as_dir") 2>/dev/null ||
16032$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16033	 X"$as_dir" : 'X\(//\)[^/]' \| \
16034	 X"$as_dir" : 'X\(//\)$' \| \
16035	 X"$as_dir" : 'X\(/\)' \| \
16036	 .     : '\(.\)' 2>/dev/null ||
16037echo X"$as_dir" |
16038    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16039  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16040  	  /^X\(\/\/\)$/{ s//\1/; q; }
16041  	  /^X\(\/\).*/{ s//\1/; q; }
16042  	  s/.*/./; q'`
16043    done
16044    test ! -n "$as_dirs" || mkdir $as_dirs
16045  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16046echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16047   { (exit 1); exit 1; }; }; }
16048
16049  ac_builddir=.
16050
16051if test "$ac_dir" != .; then
16052  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16053  # A "../" for each directory in $ac_dir_suffix.
16054  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16055else
16056  ac_dir_suffix= ac_top_builddir=
16057fi
16058
16059case $srcdir in
16060  .)  # No --srcdir option.  We are building in place.
16061    ac_srcdir=.
16062    if test -z "$ac_top_builddir"; then
16063       ac_top_srcdir=.
16064    else
16065       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16066    fi ;;
16067  [\\/]* | ?:[\\/]* )  # Absolute path.
16068    ac_srcdir=$srcdir$ac_dir_suffix;
16069    ac_top_srcdir=$srcdir ;;
16070  *) # Relative path.
16071    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16072    ac_top_srcdir=$ac_top_builddir$srcdir ;;
16073esac
16074
16075# Do not use `cd foo && pwd` to compute absolute paths, because
16076# the directories may not exist.
16077case `pwd` in
16078.) ac_abs_builddir="$ac_dir";;
16079*)
16080  case "$ac_dir" in
16081  .) ac_abs_builddir=`pwd`;;
16082  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16083  *) ac_abs_builddir=`pwd`/"$ac_dir";;
16084  esac;;
16085esac
16086case $ac_abs_builddir in
16087.) ac_abs_top_builddir=${ac_top_builddir}.;;
16088*)
16089  case ${ac_top_builddir}. in
16090  .) ac_abs_top_builddir=$ac_abs_builddir;;
16091  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16092  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16093  esac;;
16094esac
16095case $ac_abs_builddir in
16096.) ac_abs_srcdir=$ac_srcdir;;
16097*)
16098  case $ac_srcdir in
16099  .) ac_abs_srcdir=$ac_abs_builddir;;
16100  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16101  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16102  esac;;
16103esac
16104case $ac_abs_builddir in
16105.) ac_abs_top_srcdir=$ac_top_srcdir;;
16106*)
16107  case $ac_top_srcdir in
16108  .) ac_abs_top_srcdir=$ac_abs_builddir;;
16109  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16110  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16111  esac;;
16112esac
16113
16114
16115
16116  if test x"$ac_file" != x-; then
16117    { echo "$as_me:$LINENO: creating $ac_file" >&5
16118echo "$as_me: creating $ac_file" >&6;}
16119    rm -f "$ac_file"
16120  fi
16121  # Let's still pretend it is `configure' which instantiates (i.e., don't
16122  # use $as_me), people would be surprised to read:
16123  #    /* config.h.  Generated by config.status.  */
16124  if test x"$ac_file" = x-; then
16125    configure_input=
16126  else
16127    configure_input="$ac_file.  "
16128  fi
16129  configure_input=$configure_input"Generated from `echo $ac_file_in |
16130				     sed 's,.*/,,'` by configure."
16131
16132  # First look for the input files in the build tree, otherwise in the
16133  # src tree.
16134  ac_file_inputs=`IFS=:
16135    for f in $ac_file_in; do
16136      case $f in
16137      -) echo $tmp/stdin ;;
16138      [\\/$]*)
16139	 # Absolute (can't be DOS-style, as IFS=:)
16140	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16141echo "$as_me: error: cannot find input file: $f" >&2;}
16142   { (exit 1); exit 1; }; }
16143	 echo "$f";;
16144      *) # Relative
16145	 if test -f "$f"; then
16146	   # Build tree
16147	   echo "$f"
16148	 elif test -f "$srcdir/$f"; then
16149	   # Source tree
16150	   echo "$srcdir/$f"
16151	 else
16152	   # /dev/null tree
16153	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16154echo "$as_me: error: cannot find input file: $f" >&2;}
16155   { (exit 1); exit 1; }; }
16156	 fi;;
16157      esac
16158    done` || { (exit 1); exit 1; }
16159_ACEOF
16160cat >>$CONFIG_STATUS <<_ACEOF
16161  sed "$ac_vpsub
16162$extrasub
16163_ACEOF
16164cat >>$CONFIG_STATUS <<\_ACEOF
16165:t
16166/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16167s,@configure_input@,$configure_input,;t t
16168s,@srcdir@,$ac_srcdir,;t t
16169s,@abs_srcdir@,$ac_abs_srcdir,;t t
16170s,@top_srcdir@,$ac_top_srcdir,;t t
16171s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16172s,@builddir@,$ac_builddir,;t t
16173s,@abs_builddir@,$ac_abs_builddir,;t t
16174s,@top_builddir@,$ac_top_builddir,;t t
16175s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16176" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16177  rm -f $tmp/stdin
16178  if test x"$ac_file" != x-; then
16179    mv $tmp/out $ac_file
16180  else
16181    cat $tmp/out
16182    rm -f $tmp/out
16183  fi
16184
16185done
16186_ACEOF
16187cat >>$CONFIG_STATUS <<\_ACEOF
16188
16189#
16190# CONFIG_HEADER section.
16191#
16192
16193# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16194# NAME is the cpp macro being defined and VALUE is the value it is being given.
16195#
16196# ac_d sets the value in "#define NAME VALUE" lines.
16197ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
16198ac_dB='[	 ].*$,\1#\2'
16199ac_dC=' '
16200ac_dD=',;t'
16201# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16202ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
16203ac_uB='$,\1#\2define\3'
16204ac_uC=' '
16205ac_uD=',;t'
16206
16207for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16208  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16209  case $ac_file in
16210  - | *:- | *:-:* ) # input from stdin
16211	cat >$tmp/stdin
16212	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16213	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16214  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16215	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16216  * )   ac_file_in=$ac_file.in ;;
16217  esac
16218
16219  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16220echo "$as_me: creating $ac_file" >&6;}
16221
16222  # First look for the input files in the build tree, otherwise in the
16223  # src tree.
16224  ac_file_inputs=`IFS=:
16225    for f in $ac_file_in; do
16226      case $f in
16227      -) echo $tmp/stdin ;;
16228      [\\/$]*)
16229	 # Absolute (can't be DOS-style, as IFS=:)
16230	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16231echo "$as_me: error: cannot find input file: $f" >&2;}
16232   { (exit 1); exit 1; }; }
16233	 # Do quote $f, to prevent DOS paths from being IFS'd.
16234	 echo "$f";;
16235      *) # Relative
16236	 if test -f "$f"; then
16237	   # Build tree
16238	   echo "$f"
16239	 elif test -f "$srcdir/$f"; then
16240	   # Source tree
16241	   echo "$srcdir/$f"
16242	 else
16243	   # /dev/null tree
16244	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16245echo "$as_me: error: cannot find input file: $f" >&2;}
16246   { (exit 1); exit 1; }; }
16247	 fi;;
16248      esac
16249    done` || { (exit 1); exit 1; }
16250  # Remove the trailing spaces.
16251  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
16252
16253_ACEOF
16254
16255# Transform confdefs.h into two sed scripts, `conftest.defines' and
16256# `conftest.undefs', that substitutes the proper values into
16257# config.h.in to produce config.h.  The first handles `#define'
16258# templates, and the second `#undef' templates.
16259# And first: Protect against being on the right side of a sed subst in
16260# config.status.  Protect against being in an unquoted here document
16261# in config.status.
16262rm -f conftest.defines conftest.undefs
16263# Using a here document instead of a string reduces the quoting nightmare.
16264# Putting comments in sed scripts is not portable.
16265#
16266# `end' is used to avoid that the second main sed command (meant for
16267# 0-ary CPP macros) applies to n-ary macro definitions.
16268# See the Autoconf documentation for `clear'.
16269cat >confdef2sed.sed <<\_ACEOF
16270s/[\\&,]/\\&/g
16271s,[\\$`],\\&,g
16272t clear
16273: clear
16274s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16275t end
16276s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16277: end
16278_ACEOF
16279# If some macros were called several times there might be several times
16280# the same #defines, which is useless.  Nevertheless, we may not want to
16281# sort them, since we want the *last* AC-DEFINE to be honored.
16282uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16283sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16284rm -f confdef2sed.sed
16285
16286# This sed command replaces #undef with comments.  This is necessary, for
16287# example, in the case of _POSIX_SOURCE, which is predefined and required
16288# on some systems where configure will not decide to define it.
16289cat >>conftest.undefs <<\_ACEOF
16290s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16291_ACEOF
16292
16293# Break up conftest.defines because some shells have a limit on the size
16294# of here documents, and old seds have small limits too (100 cmds).
16295echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16296echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16297echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16298echo '  :' >>$CONFIG_STATUS
16299rm -f conftest.tail
16300while grep . conftest.defines >/dev/null
16301do
16302  # Write a limited-size here document to $tmp/defines.sed.
16303  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16304  # Speed up: don't consider the non `#define' lines.
16305  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
16306  # Work around the forget-to-reset-the-flag bug.
16307  echo 't clr' >>$CONFIG_STATUS
16308  echo ': clr' >>$CONFIG_STATUS
16309  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16310  echo 'CEOF
16311  sed -f $tmp/defines.sed $tmp/in >$tmp/out
16312  rm -f $tmp/in
16313  mv $tmp/out $tmp/in
16314' >>$CONFIG_STATUS
16315  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16316  rm -f conftest.defines
16317  mv conftest.tail conftest.defines
16318done
16319rm -f conftest.defines
16320echo '  fi # grep' >>$CONFIG_STATUS
16321echo >>$CONFIG_STATUS
16322
16323# Break up conftest.undefs because some shells have a limit on the size
16324# of here documents, and old seds have small limits too (100 cmds).
16325echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16326rm -f conftest.tail
16327while grep . conftest.undefs >/dev/null
16328do
16329  # Write a limited-size here document to $tmp/undefs.sed.
16330  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16331  # Speed up: don't consider the non `#undef'
16332  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
16333  # Work around the forget-to-reset-the-flag bug.
16334  echo 't clr' >>$CONFIG_STATUS
16335  echo ': clr' >>$CONFIG_STATUS
16336  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16337  echo 'CEOF
16338  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16339  rm -f $tmp/in
16340  mv $tmp/out $tmp/in
16341' >>$CONFIG_STATUS
16342  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16343  rm -f conftest.undefs
16344  mv conftest.tail conftest.undefs
16345done
16346rm -f conftest.undefs
16347
16348cat >>$CONFIG_STATUS <<\_ACEOF
16349  # Let's still pretend it is `configure' which instantiates (i.e., don't
16350  # use $as_me), people would be surprised to read:
16351  #    /* config.h.  Generated by config.status.  */
16352  if test x"$ac_file" = x-; then
16353    echo "/* Generated by configure.  */" >$tmp/config.h
16354  else
16355    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16356  fi
16357  cat $tmp/in >>$tmp/config.h
16358  rm -f $tmp/in
16359  if test x"$ac_file" != x-; then
16360    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16361      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16362echo "$as_me: $ac_file is unchanged" >&6;}
16363    else
16364      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16365$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16366	 X"$ac_file" : 'X\(//\)[^/]' \| \
16367	 X"$ac_file" : 'X\(//\)$' \| \
16368	 X"$ac_file" : 'X\(/\)' \| \
16369	 .     : '\(.\)' 2>/dev/null ||
16370echo X"$ac_file" |
16371    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16372  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16373  	  /^X\(\/\/\)$/{ s//\1/; q; }
16374  	  /^X\(\/\).*/{ s//\1/; q; }
16375  	  s/.*/./; q'`
16376      { if $as_mkdir_p; then
16377    mkdir -p "$ac_dir"
16378  else
16379    as_dir="$ac_dir"
16380    as_dirs=
16381    while test ! -d "$as_dir"; do
16382      as_dirs="$as_dir $as_dirs"
16383      as_dir=`(dirname "$as_dir") 2>/dev/null ||
16384$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16385	 X"$as_dir" : 'X\(//\)[^/]' \| \
16386	 X"$as_dir" : 'X\(//\)$' \| \
16387	 X"$as_dir" : 'X\(/\)' \| \
16388	 .     : '\(.\)' 2>/dev/null ||
16389echo X"$as_dir" |
16390    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16391  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16392  	  /^X\(\/\/\)$/{ s//\1/; q; }
16393  	  /^X\(\/\).*/{ s//\1/; q; }
16394  	  s/.*/./; q'`
16395    done
16396    test ! -n "$as_dirs" || mkdir $as_dirs
16397  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16398echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16399   { (exit 1); exit 1; }; }; }
16400
16401      rm -f $ac_file
16402      mv $tmp/config.h $ac_file
16403    fi
16404  else
16405    cat $tmp/config.h
16406    rm -f $tmp/config.h
16407  fi
16408done
16409_ACEOF
16410
16411cat >>$CONFIG_STATUS <<\_ACEOF
16412
16413{ (exit 0); exit 0; }
16414_ACEOF
16415chmod +x $CONFIG_STATUS
16416ac_clean_files=$ac_clean_files_save
16417
16418
16419# configure is writing to config.log, and then calls config.status.
16420# config.status does its own redirection, appending to config.log.
16421# Unfortunately, on DOS this fails, as config.log is still kept open
16422# by configure, so config.status won't be able to write to it; its
16423# output is simply discarded.  So we exec the FD to /dev/null,
16424# effectively closing config.log, so it can be properly (re)opened and
16425# appended to by config.status.  When coming back to configure, we
16426# need to make the FD available again.
16427if test "$no_create" != yes; then
16428  ac_cs_success=:
16429  ac_config_status_args=
16430  test "$silent" = yes &&
16431    ac_config_status_args="$ac_config_status_args --quiet"
16432  exec 5>/dev/null
16433  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16434  exec 5>>auto/config.log
16435  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16436  # would make configure fail if this is the last instruction.
16437  $ac_cs_success || { (exit 1); exit 1; }
16438fi
16439
16440
16441