xref: /vim-8.2.3635/src/auto/configure (revision c1a11ed5)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.62.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21  setopt NO_GLOB_SUBST
22else
23  case `(set -o) 2>/dev/null` in
24  *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83  as_unset=unset
84else
85  as_unset=false
86fi
87
88
89# IFS
90# We need space, tab and new line, in precisely that order.  Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
94IFS=" ""	$as_nl"
95
96# Find who we are.  Look in the path if we contain no directory separator.
97case $0 in
98  *[\\/]* ) as_myself=$0 ;;
99  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102  IFS=$as_save_IFS
103  test -z "$as_dir" && as_dir=.
104  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108     ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113  as_myself=$0
114fi
115if test ! -f "$as_myself"; then
116  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117  { (exit 1); exit 1; }
118fi
119
120# Work around bugs in pre-3.0 UWIN ksh.
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# Required to use basename.
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136   test "X`expr 00001 : '.*\(...\)'`" = X001; then
137  as_expr=expr
138else
139  as_expr=false
140fi
141
142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143  as_basename=basename
144else
145  as_basename=false
146fi
147
148
149# Name of the executable.
150as_me=`$as_basename -- "$0" ||
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152	 X"$0" : 'X\(//\)$' \| \
153	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154$as_echo X/"$0" |
155    sed '/^.*\/\([^/][^/]*\)\/*$/{
156	    s//\1/
157	    q
158	  }
159	  /^X\/\(\/\/\)$/{
160	    s//\1/
161	    q
162	  }
163	  /^X\/\(\/\).*/{
164	    s//\1/
165	    q
166	  }
167	  s/.*/./; q'`
168
169# CDPATH.
170$as_unset CDPATH
171
172
173if test "x$CONFIG_SHELL" = x; then
174  if (eval ":") 2>/dev/null; then
175  as_have_required=yes
176else
177  as_have_required=no
178fi
179
180  if test $as_have_required = yes &&	 (eval ":
181(as_func_return () {
182  (exit \$1)
183}
184as_func_success () {
185  as_func_return 0
186}
187as_func_failure () {
188  as_func_return 1
189}
190as_func_ret_success () {
191  return 0
192}
193as_func_ret_failure () {
194  return 1
195}
196
197exitcode=0
198if as_func_success; then
199  :
200else
201  exitcode=1
202  echo as_func_success failed.
203fi
204
205if as_func_failure; then
206  exitcode=1
207  echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211  :
212else
213  exitcode=1
214  echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218  exitcode=1
219  echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223  :
224else
225  exitcode=1
226  echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232  as_lineno_1=\$LINENO
233  as_lineno_2=\$LINENO
234  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237  :
238else
239  as_candidate_shells=
240    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242do
243  IFS=$as_save_IFS
244  test -z "$as_dir" && as_dir=.
245  case $as_dir in
246	 /*)
247	   for as_base in sh bash ksh sh5; do
248	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249	   done;;
250       esac
251done
252IFS=$as_save_IFS
253
254
255      for as_shell in $as_candidate_shells $SHELL; do
256	 # Try only shells that exist, to save several forks.
257	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258		{ ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260  emulate sh
261  NULLCMD=:
262  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263  # is contrary to our usage.  Disable this feature.
264  alias -g '${1+"$@"}'='"$@"'
265  setopt NO_GLOB_SUBST
266else
267  case `(set -o) 2>/dev/null` in
268  *posix*) set -o posix ;;
269esac
270
271fi
272
273
274:
275_ASEOF
276}; then
277  CONFIG_SHELL=$as_shell
278	       as_have_required=yes
279	       if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281  emulate sh
282  NULLCMD=:
283  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284  # is contrary to our usage.  Disable this feature.
285  alias -g '${1+"$@"}'='"$@"'
286  setopt NO_GLOB_SUBST
287else
288  case `(set -o) 2>/dev/null` in
289  *posix*) set -o posix ;;
290esac
291
292fi
293
294
295:
296(as_func_return () {
297  (exit $1)
298}
299as_func_success () {
300  as_func_return 0
301}
302as_func_failure () {
303  as_func_return 1
304}
305as_func_ret_success () {
306  return 0
307}
308as_func_ret_failure () {
309  return 1
310}
311
312exitcode=0
313if as_func_success; then
314  :
315else
316  exitcode=1
317  echo as_func_success failed.
318fi
319
320if as_func_failure; then
321  exitcode=1
322  echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326  :
327else
328  exitcode=1
329  echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333  exitcode=1
334  echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338  :
339else
340  exitcode=1
341  echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
347  as_lineno_1=$LINENO
348  as_lineno_2=$LINENO
349  test "x$as_lineno_1" != "x$as_lineno_2" &&
350  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354  break
355fi
356
357fi
358
359      done
360
361      if test "x$CONFIG_SHELL" != x; then
362  for as_var in BASH_ENV ENV
363	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364	done
365	export CONFIG_SHELL
366	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367fi
368
369
370    if test $as_have_required = no; then
371  echo This script requires a shell more modern than all the
372      echo shells that I found on your system.  Please install a
373      echo modern shell, or manually run the script under such a
374      echo shell if you do have one.
375      { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386  (exit \$1)
387}
388as_func_success () {
389  as_func_return 0
390}
391as_func_failure () {
392  as_func_return 1
393}
394as_func_ret_success () {
395  return 0
396}
397as_func_ret_failure () {
398  return 1
399}
400
401exitcode=0
402if as_func_success; then
403  :
404else
405  exitcode=1
406  echo as_func_success failed.
407fi
408
409if as_func_failure; then
410  exitcode=1
411  echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415  :
416else
417  exitcode=1
418  echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422  exitcode=1
423  echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427  :
428else
429  exitcode=1
430  echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434  echo No shell found that supports shell functions.
435  echo Please tell bug-autoconf@gnu.org about your system,
436  echo including any error possibly output before this message.
437  echo This can help us improve future autoconf versions.
438  echo Configuration will now proceed without shell functions.
439}
440
441
442
443  as_lineno_1=$LINENO
444  as_lineno_2=$LINENO
445  test "x$as_lineno_1" != "x$as_lineno_2" &&
446  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449  # uniformly replaced by the line number.  The first 'sed' inserts a
450  # line-number line after each line using $LINENO; the second 'sed'
451  # does the real work.  The second script uses 'N' to pair each
452  # line-number line with the line containing $LINENO, and appends
453  # trailing '-' during substitution so that $LINENO is not a special
454  # case at line end.
455  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456  # scripts with optimization help from Paolo Bonzini.  Blame Lee
457  # E. McMahon (1931-1989) for sed's syntax.  :-)
458  sed -n '
459    p
460    /[$]LINENO/=
461  ' <$as_myself |
462    sed '
463      s/[$]LINENO.*/&-/
464      t lineno
465      b
466      :lineno
467      N
468      :loop
469      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470      t loop
471      s/-\n.*//
472    ' >$as_me.lineno &&
473  chmod +x "$as_me.lineno" ||
474    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475   { (exit 1); exit 1; }; }
476
477  # Don't try to exec as it changes $[0], causing all sort of problems
478  # (the dirname of $[0] is not the place where we might find the
479  # original and so on.  Autoconf is especially sensitive to this).
480  . "./$as_me.lineno"
481  # Exit status is that of the last command.
482  exit
483}
484
485
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487  as_dirname=dirname
488else
489  as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495  case `echo 'x\c'` in
496  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
497  *)   ECHO_C='\c';;
498  esac;;
499*)
500  ECHO_N='-n';;
501esac
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503   test "X`expr 00001 : '.*\(...\)'`" = X001; then
504  as_expr=expr
505else
506  as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
510if test -d conf$$.dir; then
511  rm -f conf$$.dir/conf$$.file
512else
513  rm -f conf$$.dir
514  mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517  if ln -s conf$$.file conf$$ 2>/dev/null; then
518    as_ln_s='ln -s'
519    # ... but there are two gotchas:
520    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522    # In both cases, we have to default to `cp -p'.
523    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524      as_ln_s='cp -p'
525  elif ln conf$$.file conf$$ 2>/dev/null; then
526    as_ln_s=ln
527  else
528    as_ln_s='cp -p'
529  fi
530else
531  as_ln_s='cp -p'
532fi
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
535
536if mkdir -p . 2>/dev/null; then
537  as_mkdir_p=:
538else
539  test -d ./-p && rmdir ./-p
540  as_mkdir_p=false
541fi
542
543if test -x / >/dev/null 2>&1; then
544  as_test_x='test -x'
545else
546  if ls -dL / >/dev/null 2>&1; then
547    as_ls_L_option=L
548  else
549    as_ls_L_option=
550  fi
551  as_test_x='
552    eval sh -c '\''
553      if test -d "$1"; then
554	test -d "$1/.";
555      else
556	case $1 in
557	-*)set "./$1";;
558	esac;
559	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560	???[sx]*):;;*)false;;esac;fi
561    '\'' sh
562  '
563fi
564as_executable_p=$as_test_x
565
566# Sed expression to map a string onto a valid CPP name.
567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569# Sed expression to map a string onto a valid variable name.
570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574exec 7<&0 </dev/null 6>&1
575
576# Name of the host.
577# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578# so uname gets run too.
579ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581#
582# Initializations.
583#
584ac_default_prefix=/usr/local
585ac_clean_files=
586ac_config_libobj_dir=.
587LIBOBJS=
588cross_compiling=no
589subdirs=
590MFLAGS=
591MAKEFLAGS=
592SHELL=${CONFIG_SHELL-/bin/sh}
593
594# Identity of this package.
595PACKAGE_NAME=
596PACKAGE_TARNAME=
597PACKAGE_VERSION=
598PACKAGE_STRING=
599PACKAGE_BUGREPORT=
600
601ac_unique_file="vim.h"
602# Factoring default headers for most tests.
603ac_includes_default="\
604#include <stdio.h>
605#ifdef HAVE_SYS_TYPES_H
606# include <sys/types.h>
607#endif
608#ifdef HAVE_SYS_STAT_H
609# include <sys/stat.h>
610#endif
611#ifdef STDC_HEADERS
612# include <stdlib.h>
613# include <stddef.h>
614#else
615# ifdef HAVE_STDLIB_H
616#  include <stdlib.h>
617# endif
618#endif
619#ifdef HAVE_STRING_H
620# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621#  include <memory.h>
622# endif
623# include <string.h>
624#endif
625#ifdef HAVE_STRINGS_H
626# include <strings.h>
627#endif
628#ifdef HAVE_INTTYPES_H
629# include <inttypes.h>
630#endif
631#ifdef HAVE_STDINT_H
632# include <stdint.h>
633#endif
634#ifdef HAVE_UNISTD_H
635# include <unistd.h>
636#endif"
637
638ac_subst_vars='SHELL
639PATH_SEPARATOR
640PACKAGE_NAME
641PACKAGE_TARNAME
642PACKAGE_VERSION
643PACKAGE_STRING
644PACKAGE_BUGREPORT
645exec_prefix
646prefix
647program_transform_name
648bindir
649sbindir
650libexecdir
651datarootdir
652datadir
653sysconfdir
654sharedstatedir
655localstatedir
656includedir
657oldincludedir
658docdir
659infodir
660htmldir
661dvidir
662pdfdir
663psdir
664libdir
665localedir
666mandir
667DEFS
668ECHO_C
669ECHO_N
670ECHO_T
671LIBS
672build_alias
673host_alias
674target_alias
675SET_MAKE
676CC
677CFLAGS
678LDFLAGS
679CPPFLAGS
680ac_ct_CC
681EXEEXT
682OBJEXT
683CPP
684GREP
685EGREP
686AWK
687STRIP
688CPP_MM
689OS_EXTRA_SRC
690OS_EXTRA_OBJ
691VIMNAME
692EXNAME
693VIEWNAME
694line_break
695dovimdiff
696dogvimdiff
697compiledby
698vi_cv_path_mzscheme
699MZSCHEME_SRC
700MZSCHEME_OBJ
701MZSCHEME_PRO
702MZSCHEME_LIBS
703MZSCHEME_CFLAGS
704vi_cv_path_perl
705vi_cv_perllib
706shrpenv
707PERL_SRC
708PERL_OBJ
709PERL_PRO
710PERL_CFLAGS
711PERL_LIBS
712vi_cv_path_python
713PYTHON_CONFDIR
714PYTHON_LIBS
715PYTHON_GETPATH_CFLAGS
716PYTHON_CFLAGS
717PYTHON_SRC
718PYTHON_OBJ
719vi_cv_path_tcl
720TCL_SRC
721TCL_OBJ
722TCL_PRO
723TCL_CFLAGS
724TCL_LIBS
725vi_cv_path_ruby
726RUBY_SRC
727RUBY_OBJ
728RUBY_PRO
729RUBY_CFLAGS
730RUBY_LIBS
731WORKSHOP_SRC
732WORKSHOP_OBJ
733NETBEANS_SRC
734NETBEANS_OBJ
735SNIFF_SRC
736SNIFF_OBJ
737xmkmfpath
738XMKMF
739X_CFLAGS
740X_PRE_LIBS
741X_LIBS
742X_EXTRA_LIBS
743X_LIB
744GTK_CONFIG
745GTK12_CONFIG
746PKG_CONFIG
747GTK_CFLAGS
748GTK_LIBS
749GTK_LIBNAME
750GNOME_LIBS
751GNOME_LIBDIR
752GNOME_INCLUDEDIR
753GNOME_CONFIG
754MOTIF_LIBNAME
755NARROW_PROTO
756GUI_INC_LOC
757GUI_LIB_LOC
758GUITYPE
759GUI_X_LIBS
760HANGULIN_SRC
761HANGULIN_OBJ
762TAGPRG
763INSTALL_LANGS
764INSTALL_TOOL_LANGS
765MSGFMT
766MAKEMO
767DEPEND_CFLAGS_FILTER
768LIBOBJS
769LTLIBOBJS'
770ac_subst_files=''
771ac_user_opts='
772enable_option_checking
773enable_darwin
774with_mac_arch
775with_vim_name
776with_ex_name
777with_view_name
778with_global_runtime
779with_modified_by
780enable_selinux
781with_features
782with_compiledby
783enable_xsmp
784enable_xsmp_interact
785enable_mzschemeinterp
786with_plthome
787enable_perlinterp
788enable_pythoninterp
789with_python_config_dir
790enable_tclinterp
791with_tclsh
792enable_rubyinterp
793enable_cscope
794enable_workshop
795enable_netbeans
796enable_sniff
797enable_multibyte
798enable_hangulinput
799enable_xim
800enable_fontset
801with_x
802enable_gui
803enable_gtk_check
804enable_gtk2_check
805enable_gnome_check
806enable_motif_check
807enable_athena_check
808enable_nextaw_check
809enable_carbon_check
810with_gtk_prefix
811with_gtk_exec_prefix
812enable_gtktest
813with_gnome_includes
814with_gnome_libs
815with_gnome
816with_motif_lib
817with_tlib
818enable_acl
819enable_gpm
820enable_sysmouse
821enable_nls
822'
823      ac_precious_vars='build_alias
824host_alias
825target_alias
826CC
827CFLAGS
828LDFLAGS
829LIBS
830CPPFLAGS
831CPP
832XMKMF'
833
834
835# Initialize some variables set by options.
836ac_init_help=
837ac_init_version=false
838ac_unrecognized_opts=
839ac_unrecognized_sep=
840# The variables have the same names as the options, with
841# dashes changed to underlines.
842cache_file=/dev/null
843exec_prefix=NONE
844no_create=
845no_recursion=
846prefix=NONE
847program_prefix=NONE
848program_suffix=NONE
849program_transform_name=s,x,x,
850silent=
851site=
852srcdir=
853verbose=
854x_includes=NONE
855x_libraries=NONE
856
857# Installation directory options.
858# These are left unexpanded so users can "make install exec_prefix=/foo"
859# and all the variables that are supposed to be based on exec_prefix
860# by default will actually change.
861# Use braces instead of parens because sh, perl, etc. also accept them.
862# (The list follows the same order as the GNU Coding Standards.)
863bindir='${exec_prefix}/bin'
864sbindir='${exec_prefix}/sbin'
865libexecdir='${exec_prefix}/libexec'
866datarootdir='${prefix}/share'
867datadir='${datarootdir}'
868sysconfdir='${prefix}/etc'
869sharedstatedir='${prefix}/com'
870localstatedir='${prefix}/var'
871includedir='${prefix}/include'
872oldincludedir='/usr/include'
873docdir='${datarootdir}/doc/${PACKAGE}'
874infodir='${datarootdir}/info'
875htmldir='${docdir}'
876dvidir='${docdir}'
877pdfdir='${docdir}'
878psdir='${docdir}'
879libdir='${exec_prefix}/lib'
880localedir='${datarootdir}/locale'
881mandir='${datarootdir}/man'
882
883ac_prev=
884ac_dashdash=
885for ac_option
886do
887  # If the previous option needs an argument, assign it.
888  if test -n "$ac_prev"; then
889    eval $ac_prev=\$ac_option
890    ac_prev=
891    continue
892  fi
893
894  case $ac_option in
895  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
896  *)	ac_optarg=yes ;;
897  esac
898
899  # Accept the important Cygnus configure options, so we can diagnose typos.
900
901  case $ac_dashdash$ac_option in
902  --)
903    ac_dashdash=yes ;;
904
905  -bindir | --bindir | --bindi | --bind | --bin | --bi)
906    ac_prev=bindir ;;
907  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
908    bindir=$ac_optarg ;;
909
910  -build | --build | --buil | --bui | --bu)
911    ac_prev=build_alias ;;
912  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
913    build_alias=$ac_optarg ;;
914
915  -cache-file | --cache-file | --cache-fil | --cache-fi \
916  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
917    ac_prev=cache_file ;;
918  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
919  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
920    cache_file=$ac_optarg ;;
921
922  --config-cache | -C)
923    cache_file=config.cache ;;
924
925  -datadir | --datadir | --datadi | --datad)
926    ac_prev=datadir ;;
927  -datadir=* | --datadir=* | --datadi=* | --datad=*)
928    datadir=$ac_optarg ;;
929
930  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
931  | --dataroo | --dataro | --datar)
932    ac_prev=datarootdir ;;
933  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
934  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
935    datarootdir=$ac_optarg ;;
936
937  -disable-* | --disable-*)
938    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
939    # Reject names that are not valid shell variable names.
940    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
942   { (exit 1); exit 1; }; }
943    ac_useropt_orig=$ac_useropt
944    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945    case $ac_user_opts in
946      *"
947"enable_$ac_useropt"
948"*) ;;
949      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
950	 ac_unrecognized_sep=', ';;
951    esac
952    eval enable_$ac_useropt=no ;;
953
954  -docdir | --docdir | --docdi | --doc | --do)
955    ac_prev=docdir ;;
956  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
957    docdir=$ac_optarg ;;
958
959  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
960    ac_prev=dvidir ;;
961  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
962    dvidir=$ac_optarg ;;
963
964  -enable-* | --enable-*)
965    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
966    # Reject names that are not valid shell variable names.
967    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
969   { (exit 1); exit 1; }; }
970    ac_useropt_orig=$ac_useropt
971    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972    case $ac_user_opts in
973      *"
974"enable_$ac_useropt"
975"*) ;;
976      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977	 ac_unrecognized_sep=', ';;
978    esac
979    eval enable_$ac_useropt=\$ac_optarg ;;
980
981  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983  | --exec | --exe | --ex)
984    ac_prev=exec_prefix ;;
985  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987  | --exec=* | --exe=* | --ex=*)
988    exec_prefix=$ac_optarg ;;
989
990  -gas | --gas | --ga | --g)
991    # Obsolete; use --with-gas.
992    with_gas=yes ;;
993
994  -help | --help | --hel | --he | -h)
995    ac_init_help=long ;;
996  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997    ac_init_help=recursive ;;
998  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999    ac_init_help=short ;;
1000
1001  -host | --host | --hos | --ho)
1002    ac_prev=host_alias ;;
1003  -host=* | --host=* | --hos=* | --ho=*)
1004    host_alias=$ac_optarg ;;
1005
1006  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007    ac_prev=htmldir ;;
1008  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009  | --ht=*)
1010    htmldir=$ac_optarg ;;
1011
1012  -includedir | --includedir | --includedi | --included | --include \
1013  | --includ | --inclu | --incl | --inc)
1014    ac_prev=includedir ;;
1015  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016  | --includ=* | --inclu=* | --incl=* | --inc=*)
1017    includedir=$ac_optarg ;;
1018
1019  -infodir | --infodir | --infodi | --infod | --info | --inf)
1020    ac_prev=infodir ;;
1021  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1022    infodir=$ac_optarg ;;
1023
1024  -libdir | --libdir | --libdi | --libd)
1025    ac_prev=libdir ;;
1026  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1027    libdir=$ac_optarg ;;
1028
1029  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030  | --libexe | --libex | --libe)
1031    ac_prev=libexecdir ;;
1032  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033  | --libexe=* | --libex=* | --libe=*)
1034    libexecdir=$ac_optarg ;;
1035
1036  -localedir | --localedir | --localedi | --localed | --locale)
1037    ac_prev=localedir ;;
1038  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039    localedir=$ac_optarg ;;
1040
1041  -localstatedir | --localstatedir | --localstatedi | --localstated \
1042  | --localstate | --localstat | --localsta | --localst | --locals)
1043    ac_prev=localstatedir ;;
1044  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1045  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1046    localstatedir=$ac_optarg ;;
1047
1048  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049    ac_prev=mandir ;;
1050  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1051    mandir=$ac_optarg ;;
1052
1053  -nfp | --nfp | --nf)
1054    # Obsolete; use --without-fp.
1055    with_fp=no ;;
1056
1057  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1058  | --no-cr | --no-c | -n)
1059    no_create=yes ;;
1060
1061  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063    no_recursion=yes ;;
1064
1065  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067  | --oldin | --oldi | --old | --ol | --o)
1068    ac_prev=oldincludedir ;;
1069  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1072    oldincludedir=$ac_optarg ;;
1073
1074  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075    ac_prev=prefix ;;
1076  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1077    prefix=$ac_optarg ;;
1078
1079  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080  | --program-pre | --program-pr | --program-p)
1081    ac_prev=program_prefix ;;
1082  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1084    program_prefix=$ac_optarg ;;
1085
1086  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087  | --program-suf | --program-su | --program-s)
1088    ac_prev=program_suffix ;;
1089  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1091    program_suffix=$ac_optarg ;;
1092
1093  -program-transform-name | --program-transform-name \
1094  | --program-transform-nam | --program-transform-na \
1095  | --program-transform-n | --program-transform- \
1096  | --program-transform | --program-transfor \
1097  | --program-transfo | --program-transf \
1098  | --program-trans | --program-tran \
1099  | --progr-tra | --program-tr | --program-t)
1100    ac_prev=program_transform_name ;;
1101  -program-transform-name=* | --program-transform-name=* \
1102  | --program-transform-nam=* | --program-transform-na=* \
1103  | --program-transform-n=* | --program-transform-=* \
1104  | --program-transform=* | --program-transfor=* \
1105  | --program-transfo=* | --program-transf=* \
1106  | --program-trans=* | --program-tran=* \
1107  | --progr-tra=* | --program-tr=* | --program-t=*)
1108    program_transform_name=$ac_optarg ;;
1109
1110  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111    ac_prev=pdfdir ;;
1112  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113    pdfdir=$ac_optarg ;;
1114
1115  -psdir | --psdir | --psdi | --psd | --ps)
1116    ac_prev=psdir ;;
1117  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118    psdir=$ac_optarg ;;
1119
1120  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121  | -silent | --silent | --silen | --sile | --sil)
1122    silent=yes ;;
1123
1124  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125    ac_prev=sbindir ;;
1126  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127  | --sbi=* | --sb=*)
1128    sbindir=$ac_optarg ;;
1129
1130  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132  | --sharedst | --shareds | --shared | --share | --shar \
1133  | --sha | --sh)
1134    ac_prev=sharedstatedir ;;
1135  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138  | --sha=* | --sh=*)
1139    sharedstatedir=$ac_optarg ;;
1140
1141  -site | --site | --sit)
1142    ac_prev=site ;;
1143  -site=* | --site=* | --sit=*)
1144    site=$ac_optarg ;;
1145
1146  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147    ac_prev=srcdir ;;
1148  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149    srcdir=$ac_optarg ;;
1150
1151  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152  | --syscon | --sysco | --sysc | --sys | --sy)
1153    ac_prev=sysconfdir ;;
1154  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156    sysconfdir=$ac_optarg ;;
1157
1158  -target | --target | --targe | --targ | --tar | --ta | --t)
1159    ac_prev=target_alias ;;
1160  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161    target_alias=$ac_optarg ;;
1162
1163  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164    verbose=yes ;;
1165
1166  -version | --version | --versio | --versi | --vers | -V)
1167    ac_init_version=: ;;
1168
1169  -with-* | --with-*)
1170    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171    # Reject names that are not valid shell variable names.
1172    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1174   { (exit 1); exit 1; }; }
1175    ac_useropt_orig=$ac_useropt
1176    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177    case $ac_user_opts in
1178      *"
1179"with_$ac_useropt"
1180"*) ;;
1181      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182	 ac_unrecognized_sep=', ';;
1183    esac
1184    eval with_$ac_useropt=\$ac_optarg ;;
1185
1186  -without-* | --without-*)
1187    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1188    # Reject names that are not valid shell variable names.
1189    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1191   { (exit 1); exit 1; }; }
1192    ac_useropt_orig=$ac_useropt
1193    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194    case $ac_user_opts in
1195      *"
1196"with_$ac_useropt"
1197"*) ;;
1198      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1199	 ac_unrecognized_sep=', ';;
1200    esac
1201    eval with_$ac_useropt=no ;;
1202
1203  --x)
1204    # Obsolete; use --with-x.
1205    with_x=yes ;;
1206
1207  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1208  | --x-incl | --x-inc | --x-in | --x-i)
1209    ac_prev=x_includes ;;
1210  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1211  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1212    x_includes=$ac_optarg ;;
1213
1214  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1215  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1216    ac_prev=x_libraries ;;
1217  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1218  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1219    x_libraries=$ac_optarg ;;
1220
1221  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1222Try \`$0 --help' for more information." >&2
1223   { (exit 1); exit 1; }; }
1224    ;;
1225
1226  *=*)
1227    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1228    # Reject names that are not valid shell variable names.
1229    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1230      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1231   { (exit 1); exit 1; }; }
1232    eval $ac_envvar=\$ac_optarg
1233    export $ac_envvar ;;
1234
1235  *)
1236    # FIXME: should be removed in autoconf 3.0.
1237    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1238    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1240    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1241    ;;
1242
1243  esac
1244done
1245
1246if test -n "$ac_prev"; then
1247  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1248  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1249   { (exit 1); exit 1; }; }
1250fi
1251
1252if test -n "$ac_unrecognized_opts"; then
1253  case $enable_option_checking in
1254    no) ;;
1255    fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1256   { (exit 1); exit 1; }; } ;;
1257    *)     $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1258  esac
1259fi
1260
1261# Check all directory arguments for consistency.
1262for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263		datadir sysconfdir sharedstatedir localstatedir includedir \
1264		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265		libdir localedir mandir
1266do
1267  eval ac_val=\$$ac_var
1268  # Remove trailing slashes.
1269  case $ac_val in
1270    */ )
1271      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1272      eval $ac_var=\$ac_val;;
1273  esac
1274  # Be sure to have absolute directory names.
1275  case $ac_val in
1276    [\\/$]* | ?:[\\/]* )  continue;;
1277    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1278  esac
1279  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1280   { (exit 1); exit 1; }; }
1281done
1282
1283# There might be people who depend on the old broken behavior: `$host'
1284# used to hold the argument of --host etc.
1285# FIXME: To remove some day.
1286build=$build_alias
1287host=$host_alias
1288target=$target_alias
1289
1290# FIXME: To remove some day.
1291if test "x$host_alias" != x; then
1292  if test "x$build_alias" = x; then
1293    cross_compiling=maybe
1294    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1295    If a cross compiler is detected then cross compile mode will be used." >&2
1296  elif test "x$build_alias" != "x$host_alias"; then
1297    cross_compiling=yes
1298  fi
1299fi
1300
1301ac_tool_prefix=
1302test -n "$host_alias" && ac_tool_prefix=$host_alias-
1303
1304test "$silent" = yes && exec 6>/dev/null
1305
1306
1307ac_pwd=`pwd` && test -n "$ac_pwd" &&
1308ac_ls_di=`ls -di .` &&
1309ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1310  { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1311   { (exit 1); exit 1; }; }
1312test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1314   { (exit 1); exit 1; }; }
1315
1316
1317# Find the source files, if location was not specified.
1318if test -z "$srcdir"; then
1319  ac_srcdir_defaulted=yes
1320  # Try the directory containing this script, then the parent directory.
1321  ac_confdir=`$as_dirname -- "$as_myself" ||
1322$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323	 X"$as_myself" : 'X\(//\)[^/]' \| \
1324	 X"$as_myself" : 'X\(//\)$' \| \
1325	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1326$as_echo X"$as_myself" |
1327    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328	    s//\1/
1329	    q
1330	  }
1331	  /^X\(\/\/\)[^/].*/{
1332	    s//\1/
1333	    q
1334	  }
1335	  /^X\(\/\/\)$/{
1336	    s//\1/
1337	    q
1338	  }
1339	  /^X\(\/\).*/{
1340	    s//\1/
1341	    q
1342	  }
1343	  s/.*/./; q'`
1344  srcdir=$ac_confdir
1345  if test ! -r "$srcdir/$ac_unique_file"; then
1346    srcdir=..
1347  fi
1348else
1349  ac_srcdir_defaulted=no
1350fi
1351if test ! -r "$srcdir/$ac_unique_file"; then
1352  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1353  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1354   { (exit 1); exit 1; }; }
1355fi
1356ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1357ac_abs_confdir=`(
1358	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1359   { (exit 1); exit 1; }; }
1360	pwd)`
1361# When building in place, set srcdir=.
1362if test "$ac_abs_confdir" = "$ac_pwd"; then
1363  srcdir=.
1364fi
1365# Remove unnecessary trailing slashes from srcdir.
1366# Double slashes in file names in object file debugging info
1367# mess up M-x gdb in Emacs.
1368case $srcdir in
1369*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370esac
1371for ac_var in $ac_precious_vars; do
1372  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1373  eval ac_env_${ac_var}_value=\$${ac_var}
1374  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1375  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1376done
1377
1378#
1379# Report the --help message.
1380#
1381if test "$ac_init_help" = "long"; then
1382  # Omit some internal or obsolete options to make the list less imposing.
1383  # This message is too long to be a string in the A/UX 3.1 sh.
1384  cat <<_ACEOF
1385\`configure' configures this package to adapt to many kinds of systems.
1386
1387Usage: $0 [OPTION]... [VAR=VALUE]...
1388
1389To assign environment variables (e.g., CC, CFLAGS...), specify them as
1390VAR=VALUE.  See below for descriptions of some of the useful variables.
1391
1392Defaults for the options are specified in brackets.
1393
1394Configuration:
1395  -h, --help              display this help and exit
1396      --help=short        display options specific to this package
1397      --help=recursive    display the short help of all the included packages
1398  -V, --version           display version information and exit
1399  -q, --quiet, --silent   do not print \`checking...' messages
1400      --cache-file=FILE   cache test results in FILE [disabled]
1401  -C, --config-cache      alias for \`--cache-file=config.cache'
1402  -n, --no-create         do not create output files
1403      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1404
1405Installation directories:
1406  --prefix=PREFIX         install architecture-independent files in PREFIX
1407                          [$ac_default_prefix]
1408  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1409                          [PREFIX]
1410
1411By default, \`make install' will install all the files in
1412\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1413an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1414for instance \`--prefix=\$HOME'.
1415
1416For better control, use the options below.
1417
1418Fine tuning of the installation directories:
1419  --bindir=DIR            user executables [EPREFIX/bin]
1420  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1421  --libexecdir=DIR        program executables [EPREFIX/libexec]
1422  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1423  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1424  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1425  --libdir=DIR            object code libraries [EPREFIX/lib]
1426  --includedir=DIR        C header files [PREFIX/include]
1427  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1428  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1429  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1430  --infodir=DIR           info documentation [DATAROOTDIR/info]
1431  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1432  --mandir=DIR            man documentation [DATAROOTDIR/man]
1433  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1434  --htmldir=DIR           html documentation [DOCDIR]
1435  --dvidir=DIR            dvi documentation [DOCDIR]
1436  --pdfdir=DIR            pdf documentation [DOCDIR]
1437  --psdir=DIR             ps documentation [DOCDIR]
1438_ACEOF
1439
1440  cat <<\_ACEOF
1441
1442X features:
1443  --x-includes=DIR    X include files are in DIR
1444  --x-libraries=DIR   X library files are in DIR
1445_ACEOF
1446fi
1447
1448if test -n "$ac_init_help"; then
1449
1450  cat <<\_ACEOF
1451
1452Optional Features:
1453  --disable-option-checking  ignore unrecognized --enable/--with options
1454  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1455  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1456  --disable-darwin        Disable Darwin (Mac OS X) support.
1457  --disable-selinux	  Don't check for SELinux support.
1458  --disable-xsmp          Disable XSMP session management
1459  --disable-xsmp-interact Disable XSMP interaction
1460  --enable-mzschemeinterp   Include MzScheme interpreter.
1461  --enable-perlinterp     Include Perl interpreter.
1462  --enable-pythoninterp   Include Python interpreter.
1463  --enable-tclinterp      Include Tcl interpreter.
1464  --enable-rubyinterp     Include Ruby interpreter.
1465  --enable-cscope         Include cscope interface.
1466  --enable-workshop       Include Sun Visual Workshop support.
1467  --disable-netbeans      Disable NetBeans integration support.
1468  --enable-sniff          Include Sniff interface.
1469  --enable-multibyte      Include multibyte editing support.
1470  --enable-hangulinput    Include Hangul input support.
1471  --enable-xim            Include XIM input support.
1472  --enable-fontset        Include X fontset output support.
1473  --enable-gui=OPTS     X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon
1474  --enable-gtk-check      If auto-select GUI, check for GTK default=yes
1475  --enable-gtk2-check     If GTK GUI, check for GTK+ 2 default=yes
1476  --enable-gnome-check    If GTK GUI, check for GNOME default=no
1477  --enable-motif-check    If auto-select GUI, check for Motif default=yes
1478  --enable-athena-check   If auto-select GUI, check for Athena default=yes
1479  --enable-nextaw-check   If auto-select GUI, check for neXtaw default=yes
1480  --enable-carbon-check   If auto-select GUI, check for Carbon default=yes
1481  --disable-gtktest       Do not try to compile and run a test GTK program
1482  --disable-acl           Don't check for ACL support.
1483  --disable-gpm           Don't use gpm (Linux mouse daemon).
1484  --disable-sysmouse    Don't use sysmouse (mouse in *BSD console).
1485  --disable-nls           Don't support NLS (gettext()).
1486
1487Optional Packages:
1488  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1489  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1490  --with-mac-arch=ARCH    current, intel, ppc or both
1491  --with-vim-name=NAME    what to call the Vim executable
1492  --with-ex-name=NAME     what to call the Ex executable
1493  --with-view-name=NAME   what to call the View executable
1494  --with-global-runtime=DIR    global runtime directory in 'runtimepath'
1495  --with-modified-by=NAME       name of who modified a release version
1496  --with-features=TYPE    tiny, small, normal, big or huge (default: normal)
1497  --with-compiledby=NAME  name to show in :version message
1498  --with-plthome=PLTHOME   Use PLTHOME.
1499  --with-python-config-dir=PATH  Python's config directory
1500  --with-tclsh=PATH       which tclsh to use (default: tclsh8.0)
1501  --with-x                use the X Window System
1502  --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1503  --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1504  --with-gnome-includes=DIR Specify location of GNOME headers
1505  --with-gnome-libs=DIR   Specify location of GNOME libs
1506  --with-gnome            Specify prefix for GNOME files
1507  --with-motif-lib=STRING   Library for Motif
1508  --with-tlib=library     terminal library to be used
1509
1510Some influential environment variables:
1511  CC          C compiler command
1512  CFLAGS      C compiler flags
1513  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1514              nonstandard directory <lib dir>
1515  LIBS        libraries to pass to the linker, e.g. -l<library>
1516  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1517              you have headers in a nonstandard directory <include dir>
1518  CPP         C preprocessor
1519  XMKMF       Path to xmkmf, Makefile generator for X Window System
1520
1521Use these variables to override the choices made by `configure' or to help
1522it to find libraries and programs with nonstandard names/locations.
1523
1524_ACEOF
1525ac_status=$?
1526fi
1527
1528if test "$ac_init_help" = "recursive"; then
1529  # If there are subdirs, report their specific --help.
1530  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1531    test -d "$ac_dir" ||
1532      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1533      continue
1534    ac_builddir=.
1535
1536case "$ac_dir" in
1537.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538*)
1539  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1540  # A ".." for each directory in $ac_dir_suffix.
1541  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1542  case $ac_top_builddir_sub in
1543  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1545  esac ;;
1546esac
1547ac_abs_top_builddir=$ac_pwd
1548ac_abs_builddir=$ac_pwd$ac_dir_suffix
1549# for backward compatibility:
1550ac_top_builddir=$ac_top_build_prefix
1551
1552case $srcdir in
1553  .)  # We are building in place.
1554    ac_srcdir=.
1555    ac_top_srcdir=$ac_top_builddir_sub
1556    ac_abs_top_srcdir=$ac_pwd ;;
1557  [\\/]* | ?:[\\/]* )  # Absolute name.
1558    ac_srcdir=$srcdir$ac_dir_suffix;
1559    ac_top_srcdir=$srcdir
1560    ac_abs_top_srcdir=$srcdir ;;
1561  *) # Relative name.
1562    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1563    ac_top_srcdir=$ac_top_build_prefix$srcdir
1564    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1565esac
1566ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1567
1568    cd "$ac_dir" || { ac_status=$?; continue; }
1569    # Check for guested configure.
1570    if test -f "$ac_srcdir/configure.gnu"; then
1571      echo &&
1572      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1573    elif test -f "$ac_srcdir/configure"; then
1574      echo &&
1575      $SHELL "$ac_srcdir/configure" --help=recursive
1576    else
1577      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1578    fi || ac_status=$?
1579    cd "$ac_pwd" || { ac_status=$?; break; }
1580  done
1581fi
1582
1583test -n "$ac_init_help" && exit $ac_status
1584if $ac_init_version; then
1585  cat <<\_ACEOF
1586configure
1587generated by GNU Autoconf 2.62
1588
1589Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15902002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1591This configure script is free software; the Free Software Foundation
1592gives unlimited permission to copy, distribute and modify it.
1593_ACEOF
1594  exit
1595fi
1596cat >auto/config.log <<_ACEOF
1597This file contains any messages produced by compilers while
1598running configure, to aid debugging if configure makes a mistake.
1599
1600It was created by $as_me, which was
1601generated by GNU Autoconf 2.62.  Invocation command line was
1602
1603  $ $0 $@
1604
1605_ACEOF
1606exec 5>>auto/config.log
1607{
1608cat <<_ASUNAME
1609## --------- ##
1610## Platform. ##
1611## --------- ##
1612
1613hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1614uname -m = `(uname -m) 2>/dev/null || echo unknown`
1615uname -r = `(uname -r) 2>/dev/null || echo unknown`
1616uname -s = `(uname -s) 2>/dev/null || echo unknown`
1617uname -v = `(uname -v) 2>/dev/null || echo unknown`
1618
1619/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1620/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1621
1622/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1623/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1624/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1625/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1626/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1627/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1628/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1629
1630_ASUNAME
1631
1632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633for as_dir in $PATH
1634do
1635  IFS=$as_save_IFS
1636  test -z "$as_dir" && as_dir=.
1637  $as_echo "PATH: $as_dir"
1638done
1639IFS=$as_save_IFS
1640
1641} >&5
1642
1643cat >&5 <<_ACEOF
1644
1645
1646## ----------- ##
1647## Core tests. ##
1648## ----------- ##
1649
1650_ACEOF
1651
1652
1653# Keep a trace of the command line.
1654# Strip out --no-create and --no-recursion so they do not pile up.
1655# Strip out --silent because we don't want to record it for future runs.
1656# Also quote any args containing shell meta-characters.
1657# Make two passes to allow for proper duplicate-argument suppression.
1658ac_configure_args=
1659ac_configure_args0=
1660ac_configure_args1=
1661ac_must_keep_next=false
1662for ac_pass in 1 2
1663do
1664  for ac_arg
1665  do
1666    case $ac_arg in
1667    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1668    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1669    | -silent | --silent | --silen | --sile | --sil)
1670      continue ;;
1671    *\'*)
1672      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1673    esac
1674    case $ac_pass in
1675    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1676    2)
1677      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1678      if test $ac_must_keep_next = true; then
1679	ac_must_keep_next=false # Got value, back to normal.
1680      else
1681	case $ac_arg in
1682	  *=* | --config-cache | -C | -disable-* | --disable-* \
1683	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1684	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1685	  | -with-* | --with-* | -without-* | --without-* | --x)
1686	    case "$ac_configure_args0 " in
1687	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1688	    esac
1689	    ;;
1690	  -* ) ac_must_keep_next=true ;;
1691	esac
1692      fi
1693      ac_configure_args="$ac_configure_args '$ac_arg'"
1694      ;;
1695    esac
1696  done
1697done
1698$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1699$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1700
1701# When interrupted or exit'd, cleanup temporary files, and complete
1702# config.log.  We remove comments because anyway the quotes in there
1703# would cause problems or look ugly.
1704# WARNING: Use '\'' to represent an apostrophe within the trap.
1705# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1706trap 'exit_status=$?
1707  # Save into config.log some information that might help in debugging.
1708  {
1709    echo
1710
1711    cat <<\_ASBOX
1712## ---------------- ##
1713## Cache variables. ##
1714## ---------------- ##
1715_ASBOX
1716    echo
1717    # The following way of writing the cache mishandles newlines in values,
1718(
1719  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1720    eval ac_val=\$$ac_var
1721    case $ac_val in #(
1722    *${as_nl}*)
1723      case $ac_var in #(
1724      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1725$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1726      esac
1727      case $ac_var in #(
1728      _ | IFS | as_nl) ;; #(
1729      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1730      *) $as_unset $ac_var ;;
1731      esac ;;
1732    esac
1733  done
1734  (set) 2>&1 |
1735    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1736    *${as_nl}ac_space=\ *)
1737      sed -n \
1738	"s/'\''/'\''\\\\'\'''\''/g;
1739	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1740      ;; #(
1741    *)
1742      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1743      ;;
1744    esac |
1745    sort
1746)
1747    echo
1748
1749    cat <<\_ASBOX
1750## ----------------- ##
1751## Output variables. ##
1752## ----------------- ##
1753_ASBOX
1754    echo
1755    for ac_var in $ac_subst_vars
1756    do
1757      eval ac_val=\$$ac_var
1758      case $ac_val in
1759      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1760      esac
1761      $as_echo "$ac_var='\''$ac_val'\''"
1762    done | sort
1763    echo
1764
1765    if test -n "$ac_subst_files"; then
1766      cat <<\_ASBOX
1767## ------------------- ##
1768## File substitutions. ##
1769## ------------------- ##
1770_ASBOX
1771      echo
1772      for ac_var in $ac_subst_files
1773      do
1774	eval ac_val=\$$ac_var
1775	case $ac_val in
1776	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1777	esac
1778	$as_echo "$ac_var='\''$ac_val'\''"
1779      done | sort
1780      echo
1781    fi
1782
1783    if test -s confdefs.h; then
1784      cat <<\_ASBOX
1785## ----------- ##
1786## confdefs.h. ##
1787## ----------- ##
1788_ASBOX
1789      echo
1790      cat confdefs.h
1791      echo
1792    fi
1793    test "$ac_signal" != 0 &&
1794      $as_echo "$as_me: caught signal $ac_signal"
1795    $as_echo "$as_me: exit $exit_status"
1796  } >&5
1797  rm -f core *.core core.conftest.* &&
1798    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1799    exit $exit_status
1800' 0
1801for ac_signal in 1 2 13 15; do
1802  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1803done
1804ac_signal=0
1805
1806# confdefs.h avoids OS command line length limits that DEFS can exceed.
1807rm -f -r conftest* confdefs.h
1808
1809# Predefined preprocessor variables.
1810
1811cat >>confdefs.h <<_ACEOF
1812#define PACKAGE_NAME "$PACKAGE_NAME"
1813_ACEOF
1814
1815
1816cat >>confdefs.h <<_ACEOF
1817#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1818_ACEOF
1819
1820
1821cat >>confdefs.h <<_ACEOF
1822#define PACKAGE_VERSION "$PACKAGE_VERSION"
1823_ACEOF
1824
1825
1826cat >>confdefs.h <<_ACEOF
1827#define PACKAGE_STRING "$PACKAGE_STRING"
1828_ACEOF
1829
1830
1831cat >>confdefs.h <<_ACEOF
1832#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1833_ACEOF
1834
1835
1836# Let the site file select an alternate cache file if it wants to.
1837# Prefer an explicitly selected file to automatically selected ones.
1838ac_site_file1=NONE
1839ac_site_file2=NONE
1840if test -n "$CONFIG_SITE"; then
1841  ac_site_file1=$CONFIG_SITE
1842elif test "x$prefix" != xNONE; then
1843  ac_site_file1=$prefix/share/config.site
1844  ac_site_file2=$prefix/etc/config.site
1845else
1846  ac_site_file1=$ac_default_prefix/share/config.site
1847  ac_site_file2=$ac_default_prefix/etc/config.site
1848fi
1849for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1850do
1851  test "x$ac_site_file" = xNONE && continue
1852  if test -r "$ac_site_file"; then
1853    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1854$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1855    sed 's/^/| /' "$ac_site_file" >&5
1856    . "$ac_site_file"
1857  fi
1858done
1859
1860if test -r "$cache_file"; then
1861  # Some versions of bash will fail to source /dev/null (special
1862  # files actually), so we avoid doing that.
1863  if test -f "$cache_file"; then
1864    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1865$as_echo "$as_me: loading cache $cache_file" >&6;}
1866    case $cache_file in
1867      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1868      *)                      . "./$cache_file";;
1869    esac
1870  fi
1871else
1872  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1873$as_echo "$as_me: creating cache $cache_file" >&6;}
1874  >$cache_file
1875fi
1876
1877# Check that the precious variables saved in the cache have kept the same
1878# value.
1879ac_cache_corrupted=false
1880for ac_var in $ac_precious_vars; do
1881  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1882  eval ac_new_set=\$ac_env_${ac_var}_set
1883  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1884  eval ac_new_val=\$ac_env_${ac_var}_value
1885  case $ac_old_set,$ac_new_set in
1886    set,)
1887      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1888$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1889      ac_cache_corrupted=: ;;
1890    ,set)
1891      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1892$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1893      ac_cache_corrupted=: ;;
1894    ,);;
1895    *)
1896      if test "x$ac_old_val" != "x$ac_new_val"; then
1897	# differences in whitespace do not lead to failure.
1898	ac_old_val_w=`echo x $ac_old_val`
1899	ac_new_val_w=`echo x $ac_new_val`
1900	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1901	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1902$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1903	  ac_cache_corrupted=:
1904	else
1905	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1906$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1907	  eval $ac_var=\$ac_old_val
1908	fi
1909	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1910$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1911	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1912$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1913      fi;;
1914  esac
1915  # Pass precious variables to config.status.
1916  if test "$ac_new_set" = set; then
1917    case $ac_new_val in
1918    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1919    *) ac_arg=$ac_var=$ac_new_val ;;
1920    esac
1921    case " $ac_configure_args " in
1922      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1923      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1924    esac
1925  fi
1926done
1927if $ac_cache_corrupted; then
1928  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1929$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1930  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1931$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1932   { (exit 1); exit 1; }; }
1933fi
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951ac_ext=c
1952ac_cpp='$CPP $CPPFLAGS'
1953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1955ac_compiler_gnu=$ac_cv_c_compiler_gnu
1956
1957
1958ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
1959
1960
1961cat >>confdefs.h <<\_ACEOF
1962#define UNIX 1
1963_ACEOF
1964
1965{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1966$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
1967set x ${MAKE-make}
1968ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1969if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1970  $as_echo_n "(cached) " >&6
1971else
1972  cat >conftest.make <<\_ACEOF
1973SHELL = /bin/sh
1974all:
1975	@echo '@@@%%%=$(MAKE)=@@@%%%'
1976_ACEOF
1977# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1978case `${MAKE-make} -f conftest.make 2>/dev/null` in
1979  *@@@%%%=?*=@@@%%%*)
1980    eval ac_cv_prog_make_${ac_make}_set=yes;;
1981  *)
1982    eval ac_cv_prog_make_${ac_make}_set=no;;
1983esac
1984rm -f conftest.make
1985fi
1986if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1987  { $as_echo "$as_me:$LINENO: result: yes" >&5
1988$as_echo "yes" >&6; }
1989  SET_MAKE=
1990else
1991  { $as_echo "$as_me:$LINENO: result: no" >&5
1992$as_echo "no" >&6; }
1993  SET_MAKE="MAKE=${MAKE-make}"
1994fi
1995
1996
1997ac_ext=c
1998ac_cpp='$CPP $CPPFLAGS'
1999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2001ac_compiler_gnu=$ac_cv_c_compiler_gnu
2002if test -n "$ac_tool_prefix"; then
2003  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2004set dummy ${ac_tool_prefix}gcc; ac_word=$2
2005{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2006$as_echo_n "checking for $ac_word... " >&6; }
2007if test "${ac_cv_prog_CC+set}" = set; then
2008  $as_echo_n "(cached) " >&6
2009else
2010  if test -n "$CC"; then
2011  ac_cv_prog_CC="$CC" # Let the user override the test.
2012else
2013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014for as_dir in $PATH
2015do
2016  IFS=$as_save_IFS
2017  test -z "$as_dir" && as_dir=.
2018  for ac_exec_ext in '' $ac_executable_extensions; do
2019  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2020    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2021    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022    break 2
2023  fi
2024done
2025done
2026IFS=$as_save_IFS
2027
2028fi
2029fi
2030CC=$ac_cv_prog_CC
2031if test -n "$CC"; then
2032  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2033$as_echo "$CC" >&6; }
2034else
2035  { $as_echo "$as_me:$LINENO: result: no" >&5
2036$as_echo "no" >&6; }
2037fi
2038
2039
2040fi
2041if test -z "$ac_cv_prog_CC"; then
2042  ac_ct_CC=$CC
2043  # Extract the first word of "gcc", so it can be a program name with args.
2044set dummy gcc; ac_word=$2
2045{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2046$as_echo_n "checking for $ac_word... " >&6; }
2047if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2048  $as_echo_n "(cached) " >&6
2049else
2050  if test -n "$ac_ct_CC"; then
2051  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2052else
2053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054for as_dir in $PATH
2055do
2056  IFS=$as_save_IFS
2057  test -z "$as_dir" && as_dir=.
2058  for ac_exec_ext in '' $ac_executable_extensions; do
2059  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2060    ac_cv_prog_ac_ct_CC="gcc"
2061    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062    break 2
2063  fi
2064done
2065done
2066IFS=$as_save_IFS
2067
2068fi
2069fi
2070ac_ct_CC=$ac_cv_prog_ac_ct_CC
2071if test -n "$ac_ct_CC"; then
2072  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2073$as_echo "$ac_ct_CC" >&6; }
2074else
2075  { $as_echo "$as_me:$LINENO: result: no" >&5
2076$as_echo "no" >&6; }
2077fi
2078
2079  if test "x$ac_ct_CC" = x; then
2080    CC=""
2081  else
2082    case $cross_compiling:$ac_tool_warned in
2083yes:)
2084{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2085whose name does not start with the host triplet.  If you think this
2086configuration is useful to you, please write to autoconf@gnu.org." >&5
2087$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2088whose name does not start with the host triplet.  If you think this
2089configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2090ac_tool_warned=yes ;;
2091esac
2092    CC=$ac_ct_CC
2093  fi
2094else
2095  CC="$ac_cv_prog_CC"
2096fi
2097
2098if test -z "$CC"; then
2099          if test -n "$ac_tool_prefix"; then
2100    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2101set dummy ${ac_tool_prefix}cc; ac_word=$2
2102{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2103$as_echo_n "checking for $ac_word... " >&6; }
2104if test "${ac_cv_prog_CC+set}" = set; then
2105  $as_echo_n "(cached) " >&6
2106else
2107  if test -n "$CC"; then
2108  ac_cv_prog_CC="$CC" # Let the user override the test.
2109else
2110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2111for as_dir in $PATH
2112do
2113  IFS=$as_save_IFS
2114  test -z "$as_dir" && as_dir=.
2115  for ac_exec_ext in '' $ac_executable_extensions; do
2116  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2117    ac_cv_prog_CC="${ac_tool_prefix}cc"
2118    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2119    break 2
2120  fi
2121done
2122done
2123IFS=$as_save_IFS
2124
2125fi
2126fi
2127CC=$ac_cv_prog_CC
2128if test -n "$CC"; then
2129  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2130$as_echo "$CC" >&6; }
2131else
2132  { $as_echo "$as_me:$LINENO: result: no" >&5
2133$as_echo "no" >&6; }
2134fi
2135
2136
2137  fi
2138fi
2139if test -z "$CC"; then
2140  # Extract the first word of "cc", so it can be a program name with args.
2141set dummy cc; ac_word=$2
2142{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2143$as_echo_n "checking for $ac_word... " >&6; }
2144if test "${ac_cv_prog_CC+set}" = set; then
2145  $as_echo_n "(cached) " >&6
2146else
2147  if test -n "$CC"; then
2148  ac_cv_prog_CC="$CC" # Let the user override the test.
2149else
2150  ac_prog_rejected=no
2151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152for as_dir in $PATH
2153do
2154  IFS=$as_save_IFS
2155  test -z "$as_dir" && as_dir=.
2156  for ac_exec_ext in '' $ac_executable_extensions; do
2157  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2158    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2159       ac_prog_rejected=yes
2160       continue
2161     fi
2162    ac_cv_prog_CC="cc"
2163    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2164    break 2
2165  fi
2166done
2167done
2168IFS=$as_save_IFS
2169
2170if test $ac_prog_rejected = yes; then
2171  # We found a bogon in the path, so make sure we never use it.
2172  set dummy $ac_cv_prog_CC
2173  shift
2174  if test $# != 0; then
2175    # We chose a different compiler from the bogus one.
2176    # However, it has the same basename, so the bogon will be chosen
2177    # first if we set CC to just the basename; use the full file name.
2178    shift
2179    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2180  fi
2181fi
2182fi
2183fi
2184CC=$ac_cv_prog_CC
2185if test -n "$CC"; then
2186  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2187$as_echo "$CC" >&6; }
2188else
2189  { $as_echo "$as_me:$LINENO: result: no" >&5
2190$as_echo "no" >&6; }
2191fi
2192
2193
2194fi
2195if test -z "$CC"; then
2196  if test -n "$ac_tool_prefix"; then
2197  for ac_prog in cl.exe
2198  do
2199    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2200set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2201{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2202$as_echo_n "checking for $ac_word... " >&6; }
2203if test "${ac_cv_prog_CC+set}" = set; then
2204  $as_echo_n "(cached) " >&6
2205else
2206  if test -n "$CC"; then
2207  ac_cv_prog_CC="$CC" # Let the user override the test.
2208else
2209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210for as_dir in $PATH
2211do
2212  IFS=$as_save_IFS
2213  test -z "$as_dir" && as_dir=.
2214  for ac_exec_ext in '' $ac_executable_extensions; do
2215  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2216    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2217    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2218    break 2
2219  fi
2220done
2221done
2222IFS=$as_save_IFS
2223
2224fi
2225fi
2226CC=$ac_cv_prog_CC
2227if test -n "$CC"; then
2228  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2229$as_echo "$CC" >&6; }
2230else
2231  { $as_echo "$as_me:$LINENO: result: no" >&5
2232$as_echo "no" >&6; }
2233fi
2234
2235
2236    test -n "$CC" && break
2237  done
2238fi
2239if test -z "$CC"; then
2240  ac_ct_CC=$CC
2241  for ac_prog in cl.exe
2242do
2243  # Extract the first word of "$ac_prog", so it can be a program name with args.
2244set dummy $ac_prog; ac_word=$2
2245{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2246$as_echo_n "checking for $ac_word... " >&6; }
2247if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2248  $as_echo_n "(cached) " >&6
2249else
2250  if test -n "$ac_ct_CC"; then
2251  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2252else
2253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254for as_dir in $PATH
2255do
2256  IFS=$as_save_IFS
2257  test -z "$as_dir" && as_dir=.
2258  for ac_exec_ext in '' $ac_executable_extensions; do
2259  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2260    ac_cv_prog_ac_ct_CC="$ac_prog"
2261    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2262    break 2
2263  fi
2264done
2265done
2266IFS=$as_save_IFS
2267
2268fi
2269fi
2270ac_ct_CC=$ac_cv_prog_ac_ct_CC
2271if test -n "$ac_ct_CC"; then
2272  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2273$as_echo "$ac_ct_CC" >&6; }
2274else
2275  { $as_echo "$as_me:$LINENO: result: no" >&5
2276$as_echo "no" >&6; }
2277fi
2278
2279
2280  test -n "$ac_ct_CC" && break
2281done
2282
2283  if test "x$ac_ct_CC" = x; then
2284    CC=""
2285  else
2286    case $cross_compiling:$ac_tool_warned in
2287yes:)
2288{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2289whose name does not start with the host triplet.  If you think this
2290configuration is useful to you, please write to autoconf@gnu.org." >&5
2291$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2292whose name does not start with the host triplet.  If you think this
2293configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2294ac_tool_warned=yes ;;
2295esac
2296    CC=$ac_ct_CC
2297  fi
2298fi
2299
2300fi
2301
2302
2303test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2304See \`config.log' for more details." >&5
2305$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2306See \`config.log' for more details." >&2;}
2307   { (exit 1); exit 1; }; }
2308
2309# Provide some information about the compiler.
2310$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2311set X $ac_compile
2312ac_compiler=$2
2313{ (ac_try="$ac_compiler --version >&5"
2314case "(($ac_try" in
2315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2316  *) ac_try_echo=$ac_try;;
2317esac
2318eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2319$as_echo "$ac_try_echo") >&5
2320  (eval "$ac_compiler --version >&5") 2>&5
2321  ac_status=$?
2322  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323  (exit $ac_status); }
2324{ (ac_try="$ac_compiler -v >&5"
2325case "(($ac_try" in
2326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327  *) ac_try_echo=$ac_try;;
2328esac
2329eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2330$as_echo "$ac_try_echo") >&5
2331  (eval "$ac_compiler -v >&5") 2>&5
2332  ac_status=$?
2333  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334  (exit $ac_status); }
2335{ (ac_try="$ac_compiler -V >&5"
2336case "(($ac_try" in
2337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2338  *) ac_try_echo=$ac_try;;
2339esac
2340eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2341$as_echo "$ac_try_echo") >&5
2342  (eval "$ac_compiler -V >&5") 2>&5
2343  ac_status=$?
2344  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345  (exit $ac_status); }
2346
2347cat >conftest.$ac_ext <<_ACEOF
2348/* confdefs.h.  */
2349_ACEOF
2350cat confdefs.h >>conftest.$ac_ext
2351cat >>conftest.$ac_ext <<_ACEOF
2352/* end confdefs.h.  */
2353
2354int
2355main ()
2356{
2357
2358  ;
2359  return 0;
2360}
2361_ACEOF
2362ac_clean_files_save=$ac_clean_files
2363ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2364# Try to create an executable without -o first, disregard a.out.
2365# It will help us diagnose broken compilers, and finding out an intuition
2366# of exeext.
2367{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2368$as_echo_n "checking for C compiler default output file name... " >&6; }
2369ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2370
2371# The possible output files:
2372ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2373
2374ac_rmfiles=
2375for ac_file in $ac_files
2376do
2377  case $ac_file in
2378    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2379    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2380  esac
2381done
2382rm -f $ac_rmfiles
2383
2384if { (ac_try="$ac_link_default"
2385case "(($ac_try" in
2386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2387  *) ac_try_echo=$ac_try;;
2388esac
2389eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2390$as_echo "$ac_try_echo") >&5
2391  (eval "$ac_link_default") 2>&5
2392  ac_status=$?
2393  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394  (exit $ac_status); }; then
2395  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2396# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2397# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2398# so that the user can short-circuit this test for compilers unknown to
2399# Autoconf.
2400for ac_file in $ac_files ''
2401do
2402  test -f "$ac_file" || continue
2403  case $ac_file in
2404    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2405	;;
2406    [ab].out )
2407	# We found the default executable, but exeext='' is most
2408	# certainly right.
2409	break;;
2410    *.* )
2411        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2412	then :; else
2413	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2414	fi
2415	# We set ac_cv_exeext here because the later test for it is not
2416	# safe: cross compilers may not add the suffix if given an `-o'
2417	# argument, so we may need to know it at that point already.
2418	# Even if this section looks crufty: it has the advantage of
2419	# actually working.
2420	break;;
2421    * )
2422	break;;
2423  esac
2424done
2425test "$ac_cv_exeext" = no && ac_cv_exeext=
2426
2427else
2428  ac_file=''
2429fi
2430
2431{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2432$as_echo "$ac_file" >&6; }
2433if test -z "$ac_file"; then
2434  $as_echo "$as_me: failed program was:" >&5
2435sed 's/^/| /' conftest.$ac_ext >&5
2436
2437{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2438See \`config.log' for more details." >&5
2439$as_echo "$as_me: error: C compiler cannot create executables
2440See \`config.log' for more details." >&2;}
2441   { (exit 77); exit 77; }; }
2442fi
2443
2444ac_exeext=$ac_cv_exeext
2445
2446# Check that the compiler produces executables we can run.  If not, either
2447# the compiler is broken, or we cross compile.
2448{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2449$as_echo_n "checking whether the C compiler works... " >&6; }
2450# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2451# If not cross compiling, check that we can run a simple program.
2452if test "$cross_compiling" != yes; then
2453  if { ac_try='./$ac_file'
2454  { (case "(($ac_try" in
2455  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2456  *) ac_try_echo=$ac_try;;
2457esac
2458eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2459$as_echo "$ac_try_echo") >&5
2460  (eval "$ac_try") 2>&5
2461  ac_status=$?
2462  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463  (exit $ac_status); }; }; then
2464    cross_compiling=no
2465  else
2466    if test "$cross_compiling" = maybe; then
2467	cross_compiling=yes
2468    else
2469	{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2470If you meant to cross compile, use \`--host'.
2471See \`config.log' for more details." >&5
2472$as_echo "$as_me: error: cannot run C compiled programs.
2473If you meant to cross compile, use \`--host'.
2474See \`config.log' for more details." >&2;}
2475   { (exit 1); exit 1; }; }
2476    fi
2477  fi
2478fi
2479{ $as_echo "$as_me:$LINENO: result: yes" >&5
2480$as_echo "yes" >&6; }
2481
2482rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2483ac_clean_files=$ac_clean_files_save
2484# Check that the compiler produces executables we can run.  If not, either
2485# the compiler is broken, or we cross compile.
2486{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2487$as_echo_n "checking whether we are cross compiling... " >&6; }
2488{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2489$as_echo "$cross_compiling" >&6; }
2490
2491{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2492$as_echo_n "checking for suffix of executables... " >&6; }
2493if { (ac_try="$ac_link"
2494case "(($ac_try" in
2495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496  *) ac_try_echo=$ac_try;;
2497esac
2498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2499$as_echo "$ac_try_echo") >&5
2500  (eval "$ac_link") 2>&5
2501  ac_status=$?
2502  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503  (exit $ac_status); }; then
2504  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2505# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2506# work properly (i.e., refer to `conftest.exe'), while it won't with
2507# `rm'.
2508for ac_file in conftest.exe conftest conftest.*; do
2509  test -f "$ac_file" || continue
2510  case $ac_file in
2511    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2512    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2513	  break;;
2514    * ) break;;
2515  esac
2516done
2517else
2518  { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2519See \`config.log' for more details." >&5
2520$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2521See \`config.log' for more details." >&2;}
2522   { (exit 1); exit 1; }; }
2523fi
2524
2525rm -f conftest$ac_cv_exeext
2526{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2527$as_echo "$ac_cv_exeext" >&6; }
2528
2529rm -f conftest.$ac_ext
2530EXEEXT=$ac_cv_exeext
2531ac_exeext=$EXEEXT
2532{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2533$as_echo_n "checking for suffix of object files... " >&6; }
2534if test "${ac_cv_objext+set}" = set; then
2535  $as_echo_n "(cached) " >&6
2536else
2537  cat >conftest.$ac_ext <<_ACEOF
2538/* confdefs.h.  */
2539_ACEOF
2540cat confdefs.h >>conftest.$ac_ext
2541cat >>conftest.$ac_ext <<_ACEOF
2542/* end confdefs.h.  */
2543
2544int
2545main ()
2546{
2547
2548  ;
2549  return 0;
2550}
2551_ACEOF
2552rm -f conftest.o conftest.obj
2553if { (ac_try="$ac_compile"
2554case "(($ac_try" in
2555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556  *) ac_try_echo=$ac_try;;
2557esac
2558eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2559$as_echo "$ac_try_echo") >&5
2560  (eval "$ac_compile") 2>&5
2561  ac_status=$?
2562  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563  (exit $ac_status); }; then
2564  for ac_file in conftest.o conftest.obj conftest.*; do
2565  test -f "$ac_file" || continue;
2566  case $ac_file in
2567    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2568    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2569       break;;
2570  esac
2571done
2572else
2573  $as_echo "$as_me: failed program was:" >&5
2574sed 's/^/| /' conftest.$ac_ext >&5
2575
2576{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2577See \`config.log' for more details." >&5
2578$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2579See \`config.log' for more details." >&2;}
2580   { (exit 1); exit 1; }; }
2581fi
2582
2583rm -f conftest.$ac_cv_objext conftest.$ac_ext
2584fi
2585{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2586$as_echo "$ac_cv_objext" >&6; }
2587OBJEXT=$ac_cv_objext
2588ac_objext=$OBJEXT
2589{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2590$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2591if test "${ac_cv_c_compiler_gnu+set}" = set; then
2592  $as_echo_n "(cached) " >&6
2593else
2594  cat >conftest.$ac_ext <<_ACEOF
2595/* confdefs.h.  */
2596_ACEOF
2597cat confdefs.h >>conftest.$ac_ext
2598cat >>conftest.$ac_ext <<_ACEOF
2599/* end confdefs.h.  */
2600
2601int
2602main ()
2603{
2604#ifndef __GNUC__
2605       choke me
2606#endif
2607
2608  ;
2609  return 0;
2610}
2611_ACEOF
2612rm -f conftest.$ac_objext
2613if { (ac_try="$ac_compile"
2614case "(($ac_try" in
2615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2616  *) ac_try_echo=$ac_try;;
2617esac
2618eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2619$as_echo "$ac_try_echo") >&5
2620  (eval "$ac_compile") 2>conftest.er1
2621  ac_status=$?
2622  grep -v '^ *+' conftest.er1 >conftest.err
2623  rm -f conftest.er1
2624  cat conftest.err >&5
2625  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626  (exit $ac_status); } && {
2627	 test -z "$ac_c_werror_flag" ||
2628	 test ! -s conftest.err
2629       } && test -s conftest.$ac_objext; then
2630  ac_compiler_gnu=yes
2631else
2632  $as_echo "$as_me: failed program was:" >&5
2633sed 's/^/| /' conftest.$ac_ext >&5
2634
2635	ac_compiler_gnu=no
2636fi
2637
2638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639ac_cv_c_compiler_gnu=$ac_compiler_gnu
2640
2641fi
2642{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2643$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2644if test $ac_compiler_gnu = yes; then
2645  GCC=yes
2646else
2647  GCC=
2648fi
2649ac_test_CFLAGS=${CFLAGS+set}
2650ac_save_CFLAGS=$CFLAGS
2651{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2652$as_echo_n "checking whether $CC accepts -g... " >&6; }
2653if test "${ac_cv_prog_cc_g+set}" = set; then
2654  $as_echo_n "(cached) " >&6
2655else
2656  ac_save_c_werror_flag=$ac_c_werror_flag
2657   ac_c_werror_flag=yes
2658   ac_cv_prog_cc_g=no
2659   CFLAGS="-g"
2660   cat >conftest.$ac_ext <<_ACEOF
2661/* confdefs.h.  */
2662_ACEOF
2663cat confdefs.h >>conftest.$ac_ext
2664cat >>conftest.$ac_ext <<_ACEOF
2665/* end confdefs.h.  */
2666
2667int
2668main ()
2669{
2670
2671  ;
2672  return 0;
2673}
2674_ACEOF
2675rm -f conftest.$ac_objext
2676if { (ac_try="$ac_compile"
2677case "(($ac_try" in
2678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679  *) ac_try_echo=$ac_try;;
2680esac
2681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2682$as_echo "$ac_try_echo") >&5
2683  (eval "$ac_compile") 2>conftest.er1
2684  ac_status=$?
2685  grep -v '^ *+' conftest.er1 >conftest.err
2686  rm -f conftest.er1
2687  cat conftest.err >&5
2688  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689  (exit $ac_status); } && {
2690	 test -z "$ac_c_werror_flag" ||
2691	 test ! -s conftest.err
2692       } && test -s conftest.$ac_objext; then
2693  ac_cv_prog_cc_g=yes
2694else
2695  $as_echo "$as_me: failed program was:" >&5
2696sed 's/^/| /' conftest.$ac_ext >&5
2697
2698	CFLAGS=""
2699      cat >conftest.$ac_ext <<_ACEOF
2700/* confdefs.h.  */
2701_ACEOF
2702cat confdefs.h >>conftest.$ac_ext
2703cat >>conftest.$ac_ext <<_ACEOF
2704/* end confdefs.h.  */
2705
2706int
2707main ()
2708{
2709
2710  ;
2711  return 0;
2712}
2713_ACEOF
2714rm -f conftest.$ac_objext
2715if { (ac_try="$ac_compile"
2716case "(($ac_try" in
2717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718  *) ac_try_echo=$ac_try;;
2719esac
2720eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2721$as_echo "$ac_try_echo") >&5
2722  (eval "$ac_compile") 2>conftest.er1
2723  ac_status=$?
2724  grep -v '^ *+' conftest.er1 >conftest.err
2725  rm -f conftest.er1
2726  cat conftest.err >&5
2727  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728  (exit $ac_status); } && {
2729	 test -z "$ac_c_werror_flag" ||
2730	 test ! -s conftest.err
2731       } && test -s conftest.$ac_objext; then
2732  :
2733else
2734  $as_echo "$as_me: failed program was:" >&5
2735sed 's/^/| /' conftest.$ac_ext >&5
2736
2737	ac_c_werror_flag=$ac_save_c_werror_flag
2738	 CFLAGS="-g"
2739	 cat >conftest.$ac_ext <<_ACEOF
2740/* confdefs.h.  */
2741_ACEOF
2742cat confdefs.h >>conftest.$ac_ext
2743cat >>conftest.$ac_ext <<_ACEOF
2744/* end confdefs.h.  */
2745
2746int
2747main ()
2748{
2749
2750  ;
2751  return 0;
2752}
2753_ACEOF
2754rm -f conftest.$ac_objext
2755if { (ac_try="$ac_compile"
2756case "(($ac_try" in
2757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758  *) ac_try_echo=$ac_try;;
2759esac
2760eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2761$as_echo "$ac_try_echo") >&5
2762  (eval "$ac_compile") 2>conftest.er1
2763  ac_status=$?
2764  grep -v '^ *+' conftest.er1 >conftest.err
2765  rm -f conftest.er1
2766  cat conftest.err >&5
2767  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768  (exit $ac_status); } && {
2769	 test -z "$ac_c_werror_flag" ||
2770	 test ! -s conftest.err
2771       } && test -s conftest.$ac_objext; then
2772  ac_cv_prog_cc_g=yes
2773else
2774  $as_echo "$as_me: failed program was:" >&5
2775sed 's/^/| /' conftest.$ac_ext >&5
2776
2777
2778fi
2779
2780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2781fi
2782
2783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2784fi
2785
2786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2787   ac_c_werror_flag=$ac_save_c_werror_flag
2788fi
2789{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2790$as_echo "$ac_cv_prog_cc_g" >&6; }
2791if test "$ac_test_CFLAGS" = set; then
2792  CFLAGS=$ac_save_CFLAGS
2793elif test $ac_cv_prog_cc_g = yes; then
2794  if test "$GCC" = yes; then
2795    CFLAGS="-g -O2"
2796  else
2797    CFLAGS="-g"
2798  fi
2799else
2800  if test "$GCC" = yes; then
2801    CFLAGS="-O2"
2802  else
2803    CFLAGS=
2804  fi
2805fi
2806{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2807$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2808if test "${ac_cv_prog_cc_c89+set}" = set; then
2809  $as_echo_n "(cached) " >&6
2810else
2811  ac_cv_prog_cc_c89=no
2812ac_save_CC=$CC
2813cat >conftest.$ac_ext <<_ACEOF
2814/* confdefs.h.  */
2815_ACEOF
2816cat confdefs.h >>conftest.$ac_ext
2817cat >>conftest.$ac_ext <<_ACEOF
2818/* end confdefs.h.  */
2819#include <stdarg.h>
2820#include <stdio.h>
2821#include <sys/types.h>
2822#include <sys/stat.h>
2823/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2824struct buf { int x; };
2825FILE * (*rcsopen) (struct buf *, struct stat *, int);
2826static char *e (p, i)
2827     char **p;
2828     int i;
2829{
2830  return p[i];
2831}
2832static char *f (char * (*g) (char **, int), char **p, ...)
2833{
2834  char *s;
2835  va_list v;
2836  va_start (v,p);
2837  s = g (p, va_arg (v,int));
2838  va_end (v);
2839  return s;
2840}
2841
2842/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2843   function prototypes and stuff, but not '\xHH' hex character constants.
2844   These don't provoke an error unfortunately, instead are silently treated
2845   as 'x'.  The following induces an error, until -std is added to get
2846   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2847   array size at least.  It's necessary to write '\x00'==0 to get something
2848   that's true only with -std.  */
2849int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2850
2851/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2852   inside strings and character constants.  */
2853#define FOO(x) 'x'
2854int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2855
2856int test (int i, double x);
2857struct s1 {int (*f) (int a);};
2858struct s2 {int (*f) (double a);};
2859int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2860int argc;
2861char **argv;
2862int
2863main ()
2864{
2865return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2866  ;
2867  return 0;
2868}
2869_ACEOF
2870for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2871	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2872do
2873  CC="$ac_save_CC $ac_arg"
2874  rm -f conftest.$ac_objext
2875if { (ac_try="$ac_compile"
2876case "(($ac_try" in
2877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878  *) ac_try_echo=$ac_try;;
2879esac
2880eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2881$as_echo "$ac_try_echo") >&5
2882  (eval "$ac_compile") 2>conftest.er1
2883  ac_status=$?
2884  grep -v '^ *+' conftest.er1 >conftest.err
2885  rm -f conftest.er1
2886  cat conftest.err >&5
2887  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888  (exit $ac_status); } && {
2889	 test -z "$ac_c_werror_flag" ||
2890	 test ! -s conftest.err
2891       } && test -s conftest.$ac_objext; then
2892  ac_cv_prog_cc_c89=$ac_arg
2893else
2894  $as_echo "$as_me: failed program was:" >&5
2895sed 's/^/| /' conftest.$ac_ext >&5
2896
2897
2898fi
2899
2900rm -f core conftest.err conftest.$ac_objext
2901  test "x$ac_cv_prog_cc_c89" != "xno" && break
2902done
2903rm -f conftest.$ac_ext
2904CC=$ac_save_CC
2905
2906fi
2907# AC_CACHE_VAL
2908case "x$ac_cv_prog_cc_c89" in
2909  x)
2910    { $as_echo "$as_me:$LINENO: result: none needed" >&5
2911$as_echo "none needed" >&6; } ;;
2912  xno)
2913    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2914$as_echo "unsupported" >&6; } ;;
2915  *)
2916    CC="$CC $ac_cv_prog_cc_c89"
2917    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2918$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2919esac
2920
2921
2922ac_ext=c
2923ac_cpp='$CPP $CPPFLAGS'
2924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2926ac_compiler_gnu=$ac_cv_c_compiler_gnu
2927	ac_ext=c
2928ac_cpp='$CPP $CPPFLAGS'
2929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2931ac_compiler_gnu=$ac_cv_c_compiler_gnu
2932{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2933$as_echo_n "checking how to run the C preprocessor... " >&6; }
2934# On Suns, sometimes $CPP names a directory.
2935if test -n "$CPP" && test -d "$CPP"; then
2936  CPP=
2937fi
2938if test -z "$CPP"; then
2939  if test "${ac_cv_prog_CPP+set}" = set; then
2940  $as_echo_n "(cached) " >&6
2941else
2942      # Double quotes because CPP needs to be expanded
2943    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2944    do
2945      ac_preproc_ok=false
2946for ac_c_preproc_warn_flag in '' yes
2947do
2948  # Use a header file that comes with gcc, so configuring glibc
2949  # with a fresh cross-compiler works.
2950  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2951  # <limits.h> exists even on freestanding compilers.
2952  # On the NeXT, cc -E runs the code through the compiler's parser,
2953  # not just through cpp. "Syntax error" is here to catch this case.
2954  cat >conftest.$ac_ext <<_ACEOF
2955/* confdefs.h.  */
2956_ACEOF
2957cat confdefs.h >>conftest.$ac_ext
2958cat >>conftest.$ac_ext <<_ACEOF
2959/* end confdefs.h.  */
2960#ifdef __STDC__
2961# include <limits.h>
2962#else
2963# include <assert.h>
2964#endif
2965		     Syntax error
2966_ACEOF
2967if { (ac_try="$ac_cpp conftest.$ac_ext"
2968case "(($ac_try" in
2969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970  *) ac_try_echo=$ac_try;;
2971esac
2972eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2973$as_echo "$ac_try_echo") >&5
2974  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2975  ac_status=$?
2976  grep -v '^ *+' conftest.er1 >conftest.err
2977  rm -f conftest.er1
2978  cat conftest.err >&5
2979  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980  (exit $ac_status); } >/dev/null && {
2981	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2982	 test ! -s conftest.err
2983       }; then
2984  :
2985else
2986  $as_echo "$as_me: failed program was:" >&5
2987sed 's/^/| /' conftest.$ac_ext >&5
2988
2989  # Broken: fails on valid input.
2990continue
2991fi
2992
2993rm -f conftest.err conftest.$ac_ext
2994
2995  # OK, works on sane cases.  Now check whether nonexistent headers
2996  # can be detected and how.
2997  cat >conftest.$ac_ext <<_ACEOF
2998/* confdefs.h.  */
2999_ACEOF
3000cat confdefs.h >>conftest.$ac_ext
3001cat >>conftest.$ac_ext <<_ACEOF
3002/* end confdefs.h.  */
3003#include <ac_nonexistent.h>
3004_ACEOF
3005if { (ac_try="$ac_cpp conftest.$ac_ext"
3006case "(($ac_try" in
3007  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008  *) ac_try_echo=$ac_try;;
3009esac
3010eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3011$as_echo "$ac_try_echo") >&5
3012  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3013  ac_status=$?
3014  grep -v '^ *+' conftest.er1 >conftest.err
3015  rm -f conftest.er1
3016  cat conftest.err >&5
3017  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018  (exit $ac_status); } >/dev/null && {
3019	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3020	 test ! -s conftest.err
3021       }; then
3022  # Broken: success on invalid input.
3023continue
3024else
3025  $as_echo "$as_me: failed program was:" >&5
3026sed 's/^/| /' conftest.$ac_ext >&5
3027
3028  # Passes both tests.
3029ac_preproc_ok=:
3030break
3031fi
3032
3033rm -f conftest.err conftest.$ac_ext
3034
3035done
3036# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3037rm -f conftest.err conftest.$ac_ext
3038if $ac_preproc_ok; then
3039  break
3040fi
3041
3042    done
3043    ac_cv_prog_CPP=$CPP
3044
3045fi
3046  CPP=$ac_cv_prog_CPP
3047else
3048  ac_cv_prog_CPP=$CPP
3049fi
3050{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3051$as_echo "$CPP" >&6; }
3052ac_preproc_ok=false
3053for ac_c_preproc_warn_flag in '' yes
3054do
3055  # Use a header file that comes with gcc, so configuring glibc
3056  # with a fresh cross-compiler works.
3057  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3058  # <limits.h> exists even on freestanding compilers.
3059  # On the NeXT, cc -E runs the code through the compiler's parser,
3060  # not just through cpp. "Syntax error" is here to catch this case.
3061  cat >conftest.$ac_ext <<_ACEOF
3062/* confdefs.h.  */
3063_ACEOF
3064cat confdefs.h >>conftest.$ac_ext
3065cat >>conftest.$ac_ext <<_ACEOF
3066/* end confdefs.h.  */
3067#ifdef __STDC__
3068# include <limits.h>
3069#else
3070# include <assert.h>
3071#endif
3072		     Syntax error
3073_ACEOF
3074if { (ac_try="$ac_cpp conftest.$ac_ext"
3075case "(($ac_try" in
3076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077  *) ac_try_echo=$ac_try;;
3078esac
3079eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3080$as_echo "$ac_try_echo") >&5
3081  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3082  ac_status=$?
3083  grep -v '^ *+' conftest.er1 >conftest.err
3084  rm -f conftest.er1
3085  cat conftest.err >&5
3086  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087  (exit $ac_status); } >/dev/null && {
3088	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3089	 test ! -s conftest.err
3090       }; then
3091  :
3092else
3093  $as_echo "$as_me: failed program was:" >&5
3094sed 's/^/| /' conftest.$ac_ext >&5
3095
3096  # Broken: fails on valid input.
3097continue
3098fi
3099
3100rm -f conftest.err conftest.$ac_ext
3101
3102  # OK, works on sane cases.  Now check whether nonexistent headers
3103  # can be detected and how.
3104  cat >conftest.$ac_ext <<_ACEOF
3105/* confdefs.h.  */
3106_ACEOF
3107cat confdefs.h >>conftest.$ac_ext
3108cat >>conftest.$ac_ext <<_ACEOF
3109/* end confdefs.h.  */
3110#include <ac_nonexistent.h>
3111_ACEOF
3112if { (ac_try="$ac_cpp conftest.$ac_ext"
3113case "(($ac_try" in
3114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115  *) ac_try_echo=$ac_try;;
3116esac
3117eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3118$as_echo "$ac_try_echo") >&5
3119  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3120  ac_status=$?
3121  grep -v '^ *+' conftest.er1 >conftest.err
3122  rm -f conftest.er1
3123  cat conftest.err >&5
3124  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125  (exit $ac_status); } >/dev/null && {
3126	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3127	 test ! -s conftest.err
3128       }; then
3129  # Broken: success on invalid input.
3130continue
3131else
3132  $as_echo "$as_me: failed program was:" >&5
3133sed 's/^/| /' conftest.$ac_ext >&5
3134
3135  # Passes both tests.
3136ac_preproc_ok=:
3137break
3138fi
3139
3140rm -f conftest.err conftest.$ac_ext
3141
3142done
3143# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3144rm -f conftest.err conftest.$ac_ext
3145if $ac_preproc_ok; then
3146  :
3147else
3148  { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3149See \`config.log' for more details." >&5
3150$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3151See \`config.log' for more details." >&2;}
3152   { (exit 1); exit 1; }; }
3153fi
3154
3155ac_ext=c
3156ac_cpp='$CPP $CPPFLAGS'
3157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3159ac_compiler_gnu=$ac_cv_c_compiler_gnu
3160
3161
3162{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3163$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3164if test "${ac_cv_path_GREP+set}" = set; then
3165  $as_echo_n "(cached) " >&6
3166else
3167  if test -z "$GREP"; then
3168  ac_path_GREP_found=false
3169  # Loop through the user's path and test for each of PROGNAME-LIST
3170  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3172do
3173  IFS=$as_save_IFS
3174  test -z "$as_dir" && as_dir=.
3175  for ac_prog in grep ggrep; do
3176    for ac_exec_ext in '' $ac_executable_extensions; do
3177      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3178      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3179# Check for GNU ac_path_GREP and select it if it is found.
3180  # Check for GNU $ac_path_GREP
3181case `"$ac_path_GREP" --version 2>&1` in
3182*GNU*)
3183  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3184*)
3185  ac_count=0
3186  $as_echo_n 0123456789 >"conftest.in"
3187  while :
3188  do
3189    cat "conftest.in" "conftest.in" >"conftest.tmp"
3190    mv "conftest.tmp" "conftest.in"
3191    cp "conftest.in" "conftest.nl"
3192    $as_echo 'GREP' >> "conftest.nl"
3193    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3194    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3195    ac_count=`expr $ac_count + 1`
3196    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3197      # Best one so far, save it but keep looking for a better one
3198      ac_cv_path_GREP="$ac_path_GREP"
3199      ac_path_GREP_max=$ac_count
3200    fi
3201    # 10*(2^10) chars as input seems more than enough
3202    test $ac_count -gt 10 && break
3203  done
3204  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3205esac
3206
3207      $ac_path_GREP_found && break 3
3208    done
3209  done
3210done
3211IFS=$as_save_IFS
3212  if test -z "$ac_cv_path_GREP"; then
3213    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3214$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3215   { (exit 1); exit 1; }; }
3216  fi
3217else
3218  ac_cv_path_GREP=$GREP
3219fi
3220
3221fi
3222{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3223$as_echo "$ac_cv_path_GREP" >&6; }
3224 GREP="$ac_cv_path_GREP"
3225
3226
3227{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3228$as_echo_n "checking for egrep... " >&6; }
3229if test "${ac_cv_path_EGREP+set}" = set; then
3230  $as_echo_n "(cached) " >&6
3231else
3232  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3233   then ac_cv_path_EGREP="$GREP -E"
3234   else
3235     if test -z "$EGREP"; then
3236  ac_path_EGREP_found=false
3237  # Loop through the user's path and test for each of PROGNAME-LIST
3238  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3240do
3241  IFS=$as_save_IFS
3242  test -z "$as_dir" && as_dir=.
3243  for ac_prog in egrep; do
3244    for ac_exec_ext in '' $ac_executable_extensions; do
3245      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3246      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3247# Check for GNU ac_path_EGREP and select it if it is found.
3248  # Check for GNU $ac_path_EGREP
3249case `"$ac_path_EGREP" --version 2>&1` in
3250*GNU*)
3251  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3252*)
3253  ac_count=0
3254  $as_echo_n 0123456789 >"conftest.in"
3255  while :
3256  do
3257    cat "conftest.in" "conftest.in" >"conftest.tmp"
3258    mv "conftest.tmp" "conftest.in"
3259    cp "conftest.in" "conftest.nl"
3260    $as_echo 'EGREP' >> "conftest.nl"
3261    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3262    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3263    ac_count=`expr $ac_count + 1`
3264    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3265      # Best one so far, save it but keep looking for a better one
3266      ac_cv_path_EGREP="$ac_path_EGREP"
3267      ac_path_EGREP_max=$ac_count
3268    fi
3269    # 10*(2^10) chars as input seems more than enough
3270    test $ac_count -gt 10 && break
3271  done
3272  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3273esac
3274
3275      $ac_path_EGREP_found && break 3
3276    done
3277  done
3278done
3279IFS=$as_save_IFS
3280  if test -z "$ac_cv_path_EGREP"; then
3281    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3282$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3283   { (exit 1); exit 1; }; }
3284  fi
3285else
3286  ac_cv_path_EGREP=$EGREP
3287fi
3288
3289   fi
3290fi
3291{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3292$as_echo "$ac_cv_path_EGREP" >&6; }
3293 EGREP="$ac_cv_path_EGREP"
3294
3295
3296cat >conftest.$ac_ext <<_ACEOF
3297/* confdefs.h.  */
3298_ACEOF
3299cat confdefs.h >>conftest.$ac_ext
3300cat >>conftest.$ac_ext <<_ACEOF
3301/* end confdefs.h.  */
3302
3303_ACEOF
3304rm -f conftest*
3305 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
3306$as_echo_n "checking for library containing strerror... " >&6; }
3307if test "${ac_cv_search_strerror+set}" = set; then
3308  $as_echo_n "(cached) " >&6
3309else
3310  ac_func_search_save_LIBS=$LIBS
3311cat >conftest.$ac_ext <<_ACEOF
3312/* confdefs.h.  */
3313_ACEOF
3314cat confdefs.h >>conftest.$ac_ext
3315cat >>conftest.$ac_ext <<_ACEOF
3316/* end confdefs.h.  */
3317
3318/* Override any GCC internal prototype to avoid an error.
3319   Use char because int might match the return type of a GCC
3320   builtin and then its argument prototype would still apply.  */
3321#ifdef __cplusplus
3322extern "C"
3323#endif
3324char strerror ();
3325int
3326main ()
3327{
3328return strerror ();
3329  ;
3330  return 0;
3331}
3332_ACEOF
3333for ac_lib in '' cposix; do
3334  if test -z "$ac_lib"; then
3335    ac_res="none required"
3336  else
3337    ac_res=-l$ac_lib
3338    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3339  fi
3340  rm -f conftest.$ac_objext conftest$ac_exeext
3341if { (ac_try="$ac_link"
3342case "(($ac_try" in
3343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344  *) ac_try_echo=$ac_try;;
3345esac
3346eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3347$as_echo "$ac_try_echo") >&5
3348  (eval "$ac_link") 2>conftest.er1
3349  ac_status=$?
3350  grep -v '^ *+' conftest.er1 >conftest.err
3351  rm -f conftest.er1
3352  cat conftest.err >&5
3353  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354  (exit $ac_status); } && {
3355	 test -z "$ac_c_werror_flag" ||
3356	 test ! -s conftest.err
3357       } && test -s conftest$ac_exeext && {
3358	 test "$cross_compiling" = yes ||
3359	 $as_test_x conftest$ac_exeext
3360       }; then
3361  ac_cv_search_strerror=$ac_res
3362else
3363  $as_echo "$as_me: failed program was:" >&5
3364sed 's/^/| /' conftest.$ac_ext >&5
3365
3366
3367fi
3368
3369rm -rf conftest.dSYM
3370rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3371      conftest$ac_exeext
3372  if test "${ac_cv_search_strerror+set}" = set; then
3373  break
3374fi
3375done
3376if test "${ac_cv_search_strerror+set}" = set; then
3377  :
3378else
3379  ac_cv_search_strerror=no
3380fi
3381rm conftest.$ac_ext
3382LIBS=$ac_func_search_save_LIBS
3383fi
3384{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3385$as_echo "$ac_cv_search_strerror" >&6; }
3386ac_res=$ac_cv_search_strerror
3387if test "$ac_res" != no; then
3388  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3389
3390fi
3391	for ac_prog in gawk mawk nawk awk
3392do
3393  # Extract the first word of "$ac_prog", so it can be a program name with args.
3394set dummy $ac_prog; ac_word=$2
3395{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3396$as_echo_n "checking for $ac_word... " >&6; }
3397if test "${ac_cv_prog_AWK+set}" = set; then
3398  $as_echo_n "(cached) " >&6
3399else
3400  if test -n "$AWK"; then
3401  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3402else
3403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404for as_dir in $PATH
3405do
3406  IFS=$as_save_IFS
3407  test -z "$as_dir" && as_dir=.
3408  for ac_exec_ext in '' $ac_executable_extensions; do
3409  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3410    ac_cv_prog_AWK="$ac_prog"
3411    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3412    break 2
3413  fi
3414done
3415done
3416IFS=$as_save_IFS
3417
3418fi
3419fi
3420AWK=$ac_cv_prog_AWK
3421if test -n "$AWK"; then
3422  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3423$as_echo "$AWK" >&6; }
3424else
3425  { $as_echo "$as_me:$LINENO: result: no" >&5
3426$as_echo "no" >&6; }
3427fi
3428
3429
3430  test -n "$AWK" && break
3431done
3432
3433# Extract the first word of "strip", so it can be a program name with args.
3434set dummy strip; ac_word=$2
3435{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3436$as_echo_n "checking for $ac_word... " >&6; }
3437if test "${ac_cv_prog_STRIP+set}" = set; then
3438  $as_echo_n "(cached) " >&6
3439else
3440  if test -n "$STRIP"; then
3441  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3442else
3443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444for as_dir in $PATH
3445do
3446  IFS=$as_save_IFS
3447  test -z "$as_dir" && as_dir=.
3448  for ac_exec_ext in '' $ac_executable_extensions; do
3449  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3450    ac_cv_prog_STRIP="strip"
3451    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3452    break 2
3453  fi
3454done
3455done
3456IFS=$as_save_IFS
3457
3458  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3459fi
3460fi
3461STRIP=$ac_cv_prog_STRIP
3462if test -n "$STRIP"; then
3463  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3464$as_echo "$STRIP" >&6; }
3465else
3466  { $as_echo "$as_me:$LINENO: result: no" >&5
3467$as_echo "no" >&6; }
3468fi
3469
3470
3471
3472
3473
3474{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3475$as_echo_n "checking for ANSI C header files... " >&6; }
3476if test "${ac_cv_header_stdc+set}" = set; then
3477  $as_echo_n "(cached) " >&6
3478else
3479  cat >conftest.$ac_ext <<_ACEOF
3480/* confdefs.h.  */
3481_ACEOF
3482cat confdefs.h >>conftest.$ac_ext
3483cat >>conftest.$ac_ext <<_ACEOF
3484/* end confdefs.h.  */
3485#include <stdlib.h>
3486#include <stdarg.h>
3487#include <string.h>
3488#include <float.h>
3489
3490int
3491main ()
3492{
3493
3494  ;
3495  return 0;
3496}
3497_ACEOF
3498rm -f conftest.$ac_objext
3499if { (ac_try="$ac_compile"
3500case "(($ac_try" in
3501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502  *) ac_try_echo=$ac_try;;
3503esac
3504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3505$as_echo "$ac_try_echo") >&5
3506  (eval "$ac_compile") 2>conftest.er1
3507  ac_status=$?
3508  grep -v '^ *+' conftest.er1 >conftest.err
3509  rm -f conftest.er1
3510  cat conftest.err >&5
3511  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512  (exit $ac_status); } && {
3513	 test -z "$ac_c_werror_flag" ||
3514	 test ! -s conftest.err
3515       } && test -s conftest.$ac_objext; then
3516  ac_cv_header_stdc=yes
3517else
3518  $as_echo "$as_me: failed program was:" >&5
3519sed 's/^/| /' conftest.$ac_ext >&5
3520
3521	ac_cv_header_stdc=no
3522fi
3523
3524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3525
3526if test $ac_cv_header_stdc = yes; then
3527  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3528  cat >conftest.$ac_ext <<_ACEOF
3529/* confdefs.h.  */
3530_ACEOF
3531cat confdefs.h >>conftest.$ac_ext
3532cat >>conftest.$ac_ext <<_ACEOF
3533/* end confdefs.h.  */
3534#include <string.h>
3535
3536_ACEOF
3537if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3538  $EGREP "memchr" >/dev/null 2>&1; then
3539  :
3540else
3541  ac_cv_header_stdc=no
3542fi
3543rm -f conftest*
3544
3545fi
3546
3547if test $ac_cv_header_stdc = yes; then
3548  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3549  cat >conftest.$ac_ext <<_ACEOF
3550/* confdefs.h.  */
3551_ACEOF
3552cat confdefs.h >>conftest.$ac_ext
3553cat >>conftest.$ac_ext <<_ACEOF
3554/* end confdefs.h.  */
3555#include <stdlib.h>
3556
3557_ACEOF
3558if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3559  $EGREP "free" >/dev/null 2>&1; then
3560  :
3561else
3562  ac_cv_header_stdc=no
3563fi
3564rm -f conftest*
3565
3566fi
3567
3568if test $ac_cv_header_stdc = yes; then
3569  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3570  if test "$cross_compiling" = yes; then
3571  :
3572else
3573  cat >conftest.$ac_ext <<_ACEOF
3574/* confdefs.h.  */
3575_ACEOF
3576cat confdefs.h >>conftest.$ac_ext
3577cat >>conftest.$ac_ext <<_ACEOF
3578/* end confdefs.h.  */
3579#include <ctype.h>
3580#include <stdlib.h>
3581#if ((' ' & 0x0FF) == 0x020)
3582# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3583# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3584#else
3585# define ISLOWER(c) \
3586		   (('a' <= (c) && (c) <= 'i') \
3587		     || ('j' <= (c) && (c) <= 'r') \
3588		     || ('s' <= (c) && (c) <= 'z'))
3589# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3590#endif
3591
3592#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3593int
3594main ()
3595{
3596  int i;
3597  for (i = 0; i < 256; i++)
3598    if (XOR (islower (i), ISLOWER (i))
3599	|| toupper (i) != TOUPPER (i))
3600      return 2;
3601  return 0;
3602}
3603_ACEOF
3604rm -f conftest$ac_exeext
3605if { (ac_try="$ac_link"
3606case "(($ac_try" in
3607  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608  *) ac_try_echo=$ac_try;;
3609esac
3610eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3611$as_echo "$ac_try_echo") >&5
3612  (eval "$ac_link") 2>&5
3613  ac_status=$?
3614  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3616  { (case "(($ac_try" in
3617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618  *) ac_try_echo=$ac_try;;
3619esac
3620eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3621$as_echo "$ac_try_echo") >&5
3622  (eval "$ac_try") 2>&5
3623  ac_status=$?
3624  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625  (exit $ac_status); }; }; then
3626  :
3627else
3628  $as_echo "$as_me: program exited with status $ac_status" >&5
3629$as_echo "$as_me: failed program was:" >&5
3630sed 's/^/| /' conftest.$ac_ext >&5
3631
3632( exit $ac_status )
3633ac_cv_header_stdc=no
3634fi
3635rm -rf conftest.dSYM
3636rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3637fi
3638
3639
3640fi
3641fi
3642{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3643$as_echo "$ac_cv_header_stdc" >&6; }
3644if test $ac_cv_header_stdc = yes; then
3645
3646cat >>confdefs.h <<\_ACEOF
3647#define STDC_HEADERS 1
3648_ACEOF
3649
3650fi
3651
3652{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3653$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
3654if test "${ac_cv_header_sys_wait_h+set}" = set; then
3655  $as_echo_n "(cached) " >&6
3656else
3657  cat >conftest.$ac_ext <<_ACEOF
3658/* confdefs.h.  */
3659_ACEOF
3660cat confdefs.h >>conftest.$ac_ext
3661cat >>conftest.$ac_ext <<_ACEOF
3662/* end confdefs.h.  */
3663#include <sys/types.h>
3664#include <sys/wait.h>
3665#ifndef WEXITSTATUS
3666# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3667#endif
3668#ifndef WIFEXITED
3669# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3670#endif
3671
3672int
3673main ()
3674{
3675  int s;
3676  wait (&s);
3677  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3678  ;
3679  return 0;
3680}
3681_ACEOF
3682rm -f conftest.$ac_objext
3683if { (ac_try="$ac_compile"
3684case "(($ac_try" in
3685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686  *) ac_try_echo=$ac_try;;
3687esac
3688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3689$as_echo "$ac_try_echo") >&5
3690  (eval "$ac_compile") 2>conftest.er1
3691  ac_status=$?
3692  grep -v '^ *+' conftest.er1 >conftest.err
3693  rm -f conftest.er1
3694  cat conftest.err >&5
3695  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696  (exit $ac_status); } && {
3697	 test -z "$ac_c_werror_flag" ||
3698	 test ! -s conftest.err
3699       } && test -s conftest.$ac_objext; then
3700  ac_cv_header_sys_wait_h=yes
3701else
3702  $as_echo "$as_me: failed program was:" >&5
3703sed 's/^/| /' conftest.$ac_ext >&5
3704
3705	ac_cv_header_sys_wait_h=no
3706fi
3707
3708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709fi
3710{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3711$as_echo "$ac_cv_header_sys_wait_h" >&6; }
3712if test $ac_cv_header_sys_wait_h = yes; then
3713
3714cat >>confdefs.h <<\_ACEOF
3715#define HAVE_SYS_WAIT_H 1
3716_ACEOF
3717
3718fi
3719
3720
3721if test -z "$CFLAGS"; then
3722  CFLAGS="-O"
3723  test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
3724fi
3725if test "$GCC" = yes; then
3726    gccversion=`"$CC" -dumpversion`
3727  if test "x$gccversion" = "x"; then
3728        gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
3729  fi
3730    if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3731    echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
3732    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
3733  else
3734    if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
3735      echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
3736      CFLAGS="$CFLAGS -fno-strength-reduce"
3737    fi
3738  fi
3739fi
3740
3741if test "$cross_compiling" = yes; then
3742  { $as_echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
3743$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
3744fi
3745
3746test "$GCC" = yes && CPP_MM=M;
3747
3748if test -f ./toolcheck; then
3749  { $as_echo "$as_me:$LINENO: checking for buggy tools..." >&5
3750$as_echo "$as_me: checking for buggy tools..." >&6;}
3751  sh ./toolcheck 1>&6
3752fi
3753
3754OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
3755
3756{ $as_echo "$as_me:$LINENO: checking for BeOS" >&5
3757$as_echo_n "checking for BeOS... " >&6; }
3758case `uname` in
3759    BeOS)	OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
3760		BEOS=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3761$as_echo "yes" >&6; };;
3762    *)		BEOS=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3763$as_echo "no" >&6; };;
3764esac
3765
3766{ $as_echo "$as_me:$LINENO: checking for QNX" >&5
3767$as_echo_n "checking for QNX... " >&6; }
3768case `uname` in
3769    QNX)	OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
3770		test -z "$with_x" && with_x=no
3771		QNX=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3772$as_echo "yes" >&6; };;
3773    *)		QNX=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3774$as_echo "no" >&6; };;
3775esac
3776
3777{ $as_echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
3778$as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
3779if test "`(uname) 2>/dev/null`" = Darwin; then
3780  { $as_echo "$as_me:$LINENO: result: yes" >&5
3781$as_echo "yes" >&6; }
3782
3783  { $as_echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
3784$as_echo_n "checking --disable-darwin argument... " >&6; }
3785  # Check whether --enable-darwin was given.
3786if test "${enable_darwin+set}" = set; then
3787  enableval=$enable_darwin;
3788else
3789  enable_darwin="yes"
3790fi
3791
3792  if test "$enable_darwin" = "yes"; then
3793    { $as_echo "$as_me:$LINENO: result: no" >&5
3794$as_echo "no" >&6; }
3795    { $as_echo "$as_me:$LINENO: checking if Darwin files are there" >&5
3796$as_echo_n "checking if Darwin files are there... " >&6; }
3797    if test -f os_macosx.c; then
3798      { $as_echo "$as_me:$LINENO: result: yes" >&5
3799$as_echo "yes" >&6; }
3800    else
3801      { $as_echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
3802$as_echo "no, Darwin support disabled" >&6; }
3803      enable_darwin=no
3804    fi
3805  else
3806    { $as_echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
3807$as_echo "yes, Darwin support excluded" >&6; }
3808  fi
3809
3810  { $as_echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5
3811$as_echo_n "checking --with-mac-arch argument... " >&6; }
3812
3813# Check whether --with-mac-arch was given.
3814if test "${with_mac_arch+set}" = set; then
3815  withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:$LINENO: result: $MACARCH" >&5
3816$as_echo "$MACARCH" >&6; }
3817else
3818  MACARCH="current"; { $as_echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5
3819$as_echo "defaulting to $MACARCH" >&6; }
3820fi
3821
3822
3823  if test "x$MACARCH" = "xboth"; then
3824    { $as_echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5
3825$as_echo_n "checking for 10.4 universal SDK... " >&6; }
3826                            save_cppflags="$CPPFLAGS"
3827    save_cflags="$CFLAGS"
3828    save_ldflags="$LDFLAGS"
3829    CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
3830    cat >conftest.$ac_ext <<_ACEOF
3831/* confdefs.h.  */
3832_ACEOF
3833cat confdefs.h >>conftest.$ac_ext
3834cat >>conftest.$ac_ext <<_ACEOF
3835/* end confdefs.h.  */
3836
3837int
3838main ()
3839{
3840
3841  ;
3842  return 0;
3843}
3844_ACEOF
3845rm -f conftest.$ac_objext conftest$ac_exeext
3846if { (ac_try="$ac_link"
3847case "(($ac_try" in
3848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849  *) ac_try_echo=$ac_try;;
3850esac
3851eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3852$as_echo "$ac_try_echo") >&5
3853  (eval "$ac_link") 2>conftest.er1
3854  ac_status=$?
3855  grep -v '^ *+' conftest.er1 >conftest.err
3856  rm -f conftest.er1
3857  cat conftest.err >&5
3858  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859  (exit $ac_status); } && {
3860	 test -z "$ac_c_werror_flag" ||
3861	 test ! -s conftest.err
3862       } && test -s conftest$ac_exeext && {
3863	 test "$cross_compiling" = yes ||
3864	 $as_test_x conftest$ac_exeext
3865       }; then
3866  { $as_echo "$as_me:$LINENO: result: found" >&5
3867$as_echo "found" >&6; }
3868else
3869  $as_echo "$as_me: failed program was:" >&5
3870sed 's/^/| /' conftest.$ac_ext >&5
3871
3872	{ $as_echo "$as_me:$LINENO: result: not found" >&5
3873$as_echo "not found" >&6; }
3874	CFLAGS="$save_cflags"
3875	{ $as_echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
3876$as_echo_n "checking if Intel architecture is supported... " >&6; }
3877	CPPFLAGS="$CPPFLAGS -arch i386"
3878	LDFLAGS="$save_ldflags -arch i386"
3879	cat >conftest.$ac_ext <<_ACEOF
3880/* confdefs.h.  */
3881_ACEOF
3882cat confdefs.h >>conftest.$ac_ext
3883cat >>conftest.$ac_ext <<_ACEOF
3884/* end confdefs.h.  */
3885
3886int
3887main ()
3888{
3889
3890  ;
3891  return 0;
3892}
3893_ACEOF
3894rm -f conftest.$ac_objext conftest$ac_exeext
3895if { (ac_try="$ac_link"
3896case "(($ac_try" in
3897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898  *) ac_try_echo=$ac_try;;
3899esac
3900eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3901$as_echo "$ac_try_echo") >&5
3902  (eval "$ac_link") 2>conftest.er1
3903  ac_status=$?
3904  grep -v '^ *+' conftest.er1 >conftest.err
3905  rm -f conftest.er1
3906  cat conftest.err >&5
3907  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908  (exit $ac_status); } && {
3909	 test -z "$ac_c_werror_flag" ||
3910	 test ! -s conftest.err
3911       } && test -s conftest$ac_exeext && {
3912	 test "$cross_compiling" = yes ||
3913	 $as_test_x conftest$ac_exeext
3914       }; then
3915  { $as_echo "$as_me:$LINENO: result: yes" >&5
3916$as_echo "yes" >&6; }; MACARCH="intel"
3917else
3918  $as_echo "$as_me: failed program was:" >&5
3919sed 's/^/| /' conftest.$ac_ext >&5
3920
3921	{ $as_echo "$as_me:$LINENO: result: no" >&5
3922$as_echo "no" >&6; }
3923		MACARCH="ppc"
3924		CPPFLAGS="$save_cppflags -arch ppc"
3925		LDFLAGS="$save_ldflags -arch ppc"
3926fi
3927
3928rm -rf conftest.dSYM
3929rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3930      conftest$ac_exeext conftest.$ac_ext
3931fi
3932
3933rm -rf conftest.dSYM
3934rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3935      conftest$ac_exeext conftest.$ac_ext
3936  elif test "x$MACARCH" = "xintel"; then
3937    CPPFLAGS="$CPPFLAGS -arch intel"
3938    LDFLAGS="$LDFLAGS -arch intel"
3939  elif test "x$MACARCH" = "xppc"; then
3940    CPPFLAGS="$CPPFLAGS -arch ppc"
3941    LDFLAGS="$LDFLAGS -arch ppc"
3942  fi
3943
3944  if test "$enable_darwin" = "yes"; then
3945    MACOSX=yes
3946    OS_EXTRA_SCR="os_macosx.c os_mac_conv.c";
3947    OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
3948        CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3949    if test "x$MACARCH" = "xboth"; then
3950      CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
3951    else
3952      CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon"
3953    fi
3954
3955                # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3966		  inttypes.h stdint.h unistd.h
3967do
3968as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3969{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3970$as_echo_n "checking for $ac_header... " >&6; }
3971if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3972  $as_echo_n "(cached) " >&6
3973else
3974  cat >conftest.$ac_ext <<_ACEOF
3975/* confdefs.h.  */
3976_ACEOF
3977cat confdefs.h >>conftest.$ac_ext
3978cat >>conftest.$ac_ext <<_ACEOF
3979/* end confdefs.h.  */
3980$ac_includes_default
3981
3982#include <$ac_header>
3983_ACEOF
3984rm -f conftest.$ac_objext
3985if { (ac_try="$ac_compile"
3986case "(($ac_try" in
3987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988  *) ac_try_echo=$ac_try;;
3989esac
3990eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3991$as_echo "$ac_try_echo") >&5
3992  (eval "$ac_compile") 2>conftest.er1
3993  ac_status=$?
3994  grep -v '^ *+' conftest.er1 >conftest.err
3995  rm -f conftest.er1
3996  cat conftest.err >&5
3997  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998  (exit $ac_status); } && {
3999	 test -z "$ac_c_werror_flag" ||
4000	 test ! -s conftest.err
4001       } && test -s conftest.$ac_objext; then
4002  eval "$as_ac_Header=yes"
4003else
4004  $as_echo "$as_me: failed program was:" >&5
4005sed 's/^/| /' conftest.$ac_ext >&5
4006
4007	eval "$as_ac_Header=no"
4008fi
4009
4010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4011fi
4012ac_res=`eval 'as_val=${'$as_ac_Header'}
4013		 $as_echo "$as_val"'`
4014	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4015$as_echo "$ac_res" >&6; }
4016if test `eval 'as_val=${'$as_ac_Header'}
4017		 $as_echo "$as_val"'` = yes; then
4018  cat >>confdefs.h <<_ACEOF
4019#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4020_ACEOF
4021
4022fi
4023
4024done
4025
4026
4027if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4028  { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4029$as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4030if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4031  $as_echo_n "(cached) " >&6
4032fi
4033{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4034$as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4035else
4036  # Is the header compilable?
4037{ $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
4038$as_echo_n "checking Carbon/Carbon.h usability... " >&6; }
4039cat >conftest.$ac_ext <<_ACEOF
4040/* confdefs.h.  */
4041_ACEOF
4042cat confdefs.h >>conftest.$ac_ext
4043cat >>conftest.$ac_ext <<_ACEOF
4044/* end confdefs.h.  */
4045$ac_includes_default
4046#include <Carbon/Carbon.h>
4047_ACEOF
4048rm -f conftest.$ac_objext
4049if { (ac_try="$ac_compile"
4050case "(($ac_try" in
4051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052  *) ac_try_echo=$ac_try;;
4053esac
4054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4055$as_echo "$ac_try_echo") >&5
4056  (eval "$ac_compile") 2>conftest.er1
4057  ac_status=$?
4058  grep -v '^ *+' conftest.er1 >conftest.err
4059  rm -f conftest.er1
4060  cat conftest.err >&5
4061  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062  (exit $ac_status); } && {
4063	 test -z "$ac_c_werror_flag" ||
4064	 test ! -s conftest.err
4065       } && test -s conftest.$ac_objext; then
4066  ac_header_compiler=yes
4067else
4068  $as_echo "$as_me: failed program was:" >&5
4069sed 's/^/| /' conftest.$ac_ext >&5
4070
4071	ac_header_compiler=no
4072fi
4073
4074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4076$as_echo "$ac_header_compiler" >&6; }
4077
4078# Is the header present?
4079{ $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
4080$as_echo_n "checking Carbon/Carbon.h presence... " >&6; }
4081cat >conftest.$ac_ext <<_ACEOF
4082/* confdefs.h.  */
4083_ACEOF
4084cat confdefs.h >>conftest.$ac_ext
4085cat >>conftest.$ac_ext <<_ACEOF
4086/* end confdefs.h.  */
4087#include <Carbon/Carbon.h>
4088_ACEOF
4089if { (ac_try="$ac_cpp conftest.$ac_ext"
4090case "(($ac_try" in
4091  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4092  *) ac_try_echo=$ac_try;;
4093esac
4094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4095$as_echo "$ac_try_echo") >&5
4096  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4097  ac_status=$?
4098  grep -v '^ *+' conftest.er1 >conftest.err
4099  rm -f conftest.er1
4100  cat conftest.err >&5
4101  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102  (exit $ac_status); } >/dev/null && {
4103	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4104	 test ! -s conftest.err
4105       }; then
4106  ac_header_preproc=yes
4107else
4108  $as_echo "$as_me: failed program was:" >&5
4109sed 's/^/| /' conftest.$ac_ext >&5
4110
4111  ac_header_preproc=no
4112fi
4113
4114rm -f conftest.err conftest.$ac_ext
4115{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4116$as_echo "$ac_header_preproc" >&6; }
4117
4118# So?  What about this header?
4119case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4120  yes:no: )
4121    { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
4122$as_echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4123    { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
4124$as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
4125    ac_header_preproc=yes
4126    ;;
4127  no:yes:* )
4128    { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
4129$as_echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
4130    { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h:     check for missing prerequisite headers?" >&5
4131$as_echo "$as_me: WARNING: Carbon/Carbon.h:     check for missing prerequisite headers?" >&2;}
4132    { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
4133$as_echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
4134    { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h:     section \"Present But Cannot Be Compiled\"" >&5
4135$as_echo "$as_me: WARNING: Carbon/Carbon.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4136    { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
4137$as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
4138    { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
4139$as_echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
4140
4141    ;;
4142esac
4143{ $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4144$as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4145if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4146  $as_echo_n "(cached) " >&6
4147else
4148  ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
4149fi
4150{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4151$as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4152
4153fi
4154if test $ac_cv_header_Carbon_Carbon_h = yes; then
4155  CARBON=yes
4156fi
4157
4158
4159    if test "x$CARBON" = "xyes"; then
4160      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
4161	with_x=no
4162      fi
4163    fi
4164  fi
4165
4166        if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4167    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4168  fi
4169
4170else
4171  { $as_echo "$as_me:$LINENO: result: no" >&5
4172$as_echo "no" >&6; }
4173fi
4174
4175
4176
4177
4178if test "$cross_compiling" = no; then
4179  have_local_include=''
4180  have_local_lib=''
4181  if test "$GCC" = yes; then
4182    echo 'void f(){}' > conftest.c
4183        have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep '/usr/local/include'`
4184    have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'`
4185    rm -f conftest.c conftest.o
4186  fi
4187  if test -z "$have_local_lib" -a -d /usr/local/lib; then
4188    tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'`
4189    if test "$tt" = "$LDFLAGS"; then
4190      LDFLAGS="$LDFLAGS -L/usr/local/lib"
4191    fi
4192  fi
4193  if test -z "$have_local_include" -a -d /usr/local/include; then
4194    tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'`
4195    if test "$tt" = "$CPPFLAGS"; then
4196      CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4197    fi
4198  fi
4199fi
4200
4201{ $as_echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
4202$as_echo_n "checking --with-vim-name argument... " >&6; }
4203
4204# Check whether --with-vim-name was given.
4205if test "${with_vim_name+set}" = set; then
4206  withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIMNAME" >&5
4207$as_echo "$VIMNAME" >&6; }
4208else
4209  VIMNAME="vim"; { $as_echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
4210$as_echo "Defaulting to $VIMNAME" >&6; }
4211fi
4212
4213
4214{ $as_echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
4215$as_echo_n "checking --with-ex-name argument... " >&6; }
4216
4217# Check whether --with-ex-name was given.
4218if test "${with_ex_name+set}" = set; then
4219  withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $EXNAME" >&5
4220$as_echo "$EXNAME" >&6; }
4221else
4222  EXNAME="ex"; { $as_echo "$as_me:$LINENO: result: Defaulting to ex" >&5
4223$as_echo "Defaulting to ex" >&6; }
4224fi
4225
4226
4227{ $as_echo "$as_me:$LINENO: checking --with-view-name argument" >&5
4228$as_echo_n "checking --with-view-name argument... " >&6; }
4229
4230# Check whether --with-view-name was given.
4231if test "${with_view_name+set}" = set; then
4232  withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIEWNAME" >&5
4233$as_echo "$VIEWNAME" >&6; }
4234else
4235  VIEWNAME="view"; { $as_echo "$as_me:$LINENO: result: Defaulting to view" >&5
4236$as_echo "Defaulting to view" >&6; }
4237fi
4238
4239
4240
4241{ $as_echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
4242$as_echo_n "checking --with-global-runtime argument... " >&6; }
4243
4244# Check whether --with-global-runtime was given.
4245if test "${with_global_runtime+set}" = set; then
4246  withval=$with_global_runtime; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4247$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4248#define RUNTIME_GLOBAL "$withval"
4249_ACEOF
4250
4251else
4252  { $as_echo "$as_me:$LINENO: result: no" >&5
4253$as_echo "no" >&6; }
4254fi
4255
4256
4257{ $as_echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
4258$as_echo_n "checking --with-modified-by argument... " >&6; }
4259
4260# Check whether --with-modified-by was given.
4261if test "${with_modified_by+set}" = set; then
4262  withval=$with_modified_by; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4263$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4264#define MODIFIED_BY "$withval"
4265_ACEOF
4266
4267else
4268  { $as_echo "$as_me:$LINENO: result: no" >&5
4269$as_echo "no" >&6; }
4270fi
4271
4272
4273{ $as_echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
4274$as_echo_n "checking if character set is EBCDIC... " >&6; }
4275cat >conftest.$ac_ext <<_ACEOF
4276/* confdefs.h.  */
4277_ACEOF
4278cat confdefs.h >>conftest.$ac_ext
4279cat >>conftest.$ac_ext <<_ACEOF
4280/* end confdefs.h.  */
4281
4282int
4283main ()
4284{
4285 /* TryCompile function for CharSet.
4286   Treat any failure as ASCII for compatibility with existing art.
4287   Use compile-time rather than run-time tests for cross-compiler
4288   tolerance.  */
4289#if '0'!=240
4290make an error "Character set is not EBCDIC"
4291#endif
4292  ;
4293  return 0;
4294}
4295_ACEOF
4296rm -f conftest.$ac_objext
4297if { (ac_try="$ac_compile"
4298case "(($ac_try" in
4299  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300  *) ac_try_echo=$ac_try;;
4301esac
4302eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4303$as_echo "$ac_try_echo") >&5
4304  (eval "$ac_compile") 2>conftest.er1
4305  ac_status=$?
4306  grep -v '^ *+' conftest.er1 >conftest.err
4307  rm -f conftest.er1
4308  cat conftest.err >&5
4309  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310  (exit $ac_status); } && {
4311	 test -z "$ac_c_werror_flag" ||
4312	 test ! -s conftest.err
4313       } && test -s conftest.$ac_objext; then
4314   # TryCompile action if true
4315cf_cv_ebcdic=yes
4316else
4317  $as_echo "$as_me: failed program was:" >&5
4318sed 's/^/| /' conftest.$ac_ext >&5
4319
4320	 # TryCompile action if false
4321cf_cv_ebcdic=no
4322fi
4323
4324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4325# end of TryCompile ])
4326# end of CacheVal CvEbcdic
4327{ $as_echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
4328$as_echo "$cf_cv_ebcdic" >&6; }
4329case "$cf_cv_ebcdic" in  #(vi
4330    yes)	cat >>confdefs.h <<\_ACEOF
4331#define EBCDIC 1
4332_ACEOF
4333
4334		line_break='"\\n"'
4335		;;
4336    *)		line_break='"\\012"';;
4337esac
4338
4339
4340if test "$cf_cv_ebcdic" = "yes"; then
4341{ $as_echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
4342$as_echo_n "checking for OS/390 Unix... " >&6; }
4343case `uname` in
4344    OS/390)	OS390Unix="yes";
4345										if test "$CC" = "cc"; then
4346		  ccm="$_CC_CCMODE"
4347		  ccn="CC"
4348		else
4349		  if test "$CC" = "c89"; then
4350		    ccm="$_CC_C89MODE"
4351		    ccn="C89"
4352		  else
4353		    ccm=1
4354		  fi
4355		fi
4356		if test "$ccm" != "1"; then
4357		  echo ""
4358		  echo "------------------------------------------"
4359		  echo " On OS/390 Unix, the environment variable"
4360		  echo " __CC_${ccn}MODE must be set to \"1\"!"
4361		  echo " Do:"
4362		  echo "    export _CC_${ccn}MODE=1"
4363		  echo " and then call configure again."
4364		  echo "------------------------------------------"
4365		  exit 1
4366		fi
4367		CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4368		{ $as_echo "$as_me:$LINENO: result: yes" >&5
4369$as_echo "yes" >&6; }
4370		;;
4371    *)		OS390Unix="no";
4372		{ $as_echo "$as_me:$LINENO: result: no" >&5
4373$as_echo "no" >&6; }
4374		;;
4375esac
4376fi
4377
4378{ $as_echo "$as_me:$LINENO: checking --disable-selinux argument" >&5
4379$as_echo_n "checking --disable-selinux argument... " >&6; }
4380# Check whether --enable-selinux was given.
4381if test "${enable_selinux+set}" = set; then
4382  enableval=$enable_selinux;
4383else
4384  enable_selinux="yes"
4385fi
4386
4387if test "$enable_selinux" = "yes"; then
4388  { $as_echo "$as_me:$LINENO: result: no" >&5
4389$as_echo "no" >&6; }
4390  { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
4391$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
4392if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
4393  $as_echo_n "(cached) " >&6
4394else
4395  ac_check_lib_save_LIBS=$LIBS
4396LIBS="-lselinux  $LIBS"
4397cat >conftest.$ac_ext <<_ACEOF
4398/* confdefs.h.  */
4399_ACEOF
4400cat confdefs.h >>conftest.$ac_ext
4401cat >>conftest.$ac_ext <<_ACEOF
4402/* end confdefs.h.  */
4403
4404/* Override any GCC internal prototype to avoid an error.
4405   Use char because int might match the return type of a GCC
4406   builtin and then its argument prototype would still apply.  */
4407#ifdef __cplusplus
4408extern "C"
4409#endif
4410char is_selinux_enabled ();
4411int
4412main ()
4413{
4414return is_selinux_enabled ();
4415  ;
4416  return 0;
4417}
4418_ACEOF
4419rm -f conftest.$ac_objext conftest$ac_exeext
4420if { (ac_try="$ac_link"
4421case "(($ac_try" in
4422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4423  *) ac_try_echo=$ac_try;;
4424esac
4425eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4426$as_echo "$ac_try_echo") >&5
4427  (eval "$ac_link") 2>conftest.er1
4428  ac_status=$?
4429  grep -v '^ *+' conftest.er1 >conftest.err
4430  rm -f conftest.er1
4431  cat conftest.err >&5
4432  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433  (exit $ac_status); } && {
4434	 test -z "$ac_c_werror_flag" ||
4435	 test ! -s conftest.err
4436       } && test -s conftest$ac_exeext && {
4437	 test "$cross_compiling" = yes ||
4438	 $as_test_x conftest$ac_exeext
4439       }; then
4440  ac_cv_lib_selinux_is_selinux_enabled=yes
4441else
4442  $as_echo "$as_me: failed program was:" >&5
4443sed 's/^/| /' conftest.$ac_ext >&5
4444
4445	ac_cv_lib_selinux_is_selinux_enabled=no
4446fi
4447
4448rm -rf conftest.dSYM
4449rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4450      conftest$ac_exeext conftest.$ac_ext
4451LIBS=$ac_check_lib_save_LIBS
4452fi
4453{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4454$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4455if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
4456  LIBS="$LIBS -lselinux"
4457	   cat >>confdefs.h <<\_ACEOF
4458#define HAVE_SELINUX 1
4459_ACEOF
4460
4461fi
4462
4463else
4464   { $as_echo "$as_me:$LINENO: result: yes" >&5
4465$as_echo "yes" >&6; }
4466fi
4467
4468
4469{ $as_echo "$as_me:$LINENO: checking --with-features argument" >&5
4470$as_echo_n "checking --with-features argument... " >&6; }
4471
4472# Check whether --with-features was given.
4473if test "${with_features+set}" = set; then
4474  withval=$with_features; features="$withval"; { $as_echo "$as_me:$LINENO: result: $features" >&5
4475$as_echo "$features" >&6; }
4476else
4477  features="normal"; { $as_echo "$as_me:$LINENO: result: Defaulting to normal" >&5
4478$as_echo "Defaulting to normal" >&6; }
4479fi
4480
4481
4482dovimdiff=""
4483dogvimdiff=""
4484case "$features" in
4485  tiny)		cat >>confdefs.h <<\_ACEOF
4486#define FEAT_TINY 1
4487_ACEOF
4488 ;;
4489  small)	cat >>confdefs.h <<\_ACEOF
4490#define FEAT_SMALL 1
4491_ACEOF
4492 ;;
4493  normal)	cat >>confdefs.h <<\_ACEOF
4494#define FEAT_NORMAL 1
4495_ACEOF
4496 dovimdiff="installvimdiff";
4497			dogvimdiff="installgvimdiff" ;;
4498  big)		cat >>confdefs.h <<\_ACEOF
4499#define FEAT_BIG 1
4500_ACEOF
4501 dovimdiff="installvimdiff";
4502			dogvimdiff="installgvimdiff" ;;
4503  huge)		cat >>confdefs.h <<\_ACEOF
4504#define FEAT_HUGE 1
4505_ACEOF
4506 dovimdiff="installvimdiff";
4507			dogvimdiff="installgvimdiff" ;;
4508  *)		{ $as_echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
4509$as_echo "Sorry, $features is not supported" >&6; } ;;
4510esac
4511
4512
4513
4514
4515{ $as_echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
4516$as_echo_n "checking --with-compiledby argument... " >&6; }
4517
4518# Check whether --with-compiledby was given.
4519if test "${with_compiledby+set}" = set; then
4520  withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4521$as_echo "$withval" >&6; }
4522else
4523  compiledby=""; { $as_echo "$as_me:$LINENO: result: no" >&5
4524$as_echo "no" >&6; }
4525fi
4526
4527
4528
4529{ $as_echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
4530$as_echo_n "checking --disable-xsmp argument... " >&6; }
4531# Check whether --enable-xsmp was given.
4532if test "${enable_xsmp+set}" = set; then
4533  enableval=$enable_xsmp;
4534else
4535  enable_xsmp="yes"
4536fi
4537
4538
4539if test "$enable_xsmp" = "yes"; then
4540  { $as_echo "$as_me:$LINENO: result: no" >&5
4541$as_echo "no" >&6; }
4542  { $as_echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
4543$as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
4544  # Check whether --enable-xsmp-interact was given.
4545if test "${enable_xsmp_interact+set}" = set; then
4546  enableval=$enable_xsmp_interact;
4547else
4548  enable_xsmp_interact="yes"
4549fi
4550
4551  if test "$enable_xsmp_interact" = "yes"; then
4552    { $as_echo "$as_me:$LINENO: result: no" >&5
4553$as_echo "no" >&6; }
4554    cat >>confdefs.h <<\_ACEOF
4555#define USE_XSMP_INTERACT 1
4556_ACEOF
4557
4558  else
4559    { $as_echo "$as_me:$LINENO: result: yes" >&5
4560$as_echo "yes" >&6; }
4561  fi
4562else
4563  { $as_echo "$as_me:$LINENO: result: yes" >&5
4564$as_echo "yes" >&6; }
4565fi
4566
4567{ $as_echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
4568$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
4569# Check whether --enable-mzschemeinterp was given.
4570if test "${enable_mzschemeinterp+set}" = set; then
4571  enableval=$enable_mzschemeinterp;
4572else
4573  enable_mzschemeinterp="no"
4574fi
4575
4576{ $as_echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
4577$as_echo "$enable_mzschemeinterp" >&6; }
4578
4579if test "$enable_mzschemeinterp" = "yes"; then
4580
4581
4582  { $as_echo "$as_me:$LINENO: checking --with-plthome argument" >&5
4583$as_echo_n "checking --with-plthome argument... " >&6; }
4584
4585# Check whether --with-plthome was given.
4586if test "${with_plthome+set}" = set; then
4587  withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:$LINENO: result: $with_plthome" >&5
4588$as_echo "$with_plthome" >&6; }
4589else
4590  with_plthome="";{ $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4591$as_echo "\"no\"" >&6; }
4592fi
4593
4594
4595  if test "X$with_plthome" != "X"; then
4596       vi_cv_path_mzscheme_pfx="$with_plthome"
4597  else
4598    { $as_echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
4599$as_echo_n "checking PLTHOME environment var... " >&6; }
4600    if test "X$PLTHOME" != "X"; then
4601	{ $as_echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
4602$as_echo "\"$PLTHOME\"" >&6; }
4603	vi_cv_path_mzscheme_pfx="$PLTHOME"
4604    else
4605	{ $as_echo "$as_me:$LINENO: result: \"not set\"" >&5
4606$as_echo "\"not set\"" >&6; }
4607		# Extract the first word of "mzscheme", so it can be a program name with args.
4608set dummy mzscheme; ac_word=$2
4609{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4610$as_echo_n "checking for $ac_word... " >&6; }
4611if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
4612  $as_echo_n "(cached) " >&6
4613else
4614  case $vi_cv_path_mzscheme in
4615  [\\/]* | ?:[\\/]*)
4616  ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
4617  ;;
4618  *)
4619  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620for as_dir in $PATH
4621do
4622  IFS=$as_save_IFS
4623  test -z "$as_dir" && as_dir=.
4624  for ac_exec_ext in '' $ac_executable_extensions; do
4625  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4626    ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
4627    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4628    break 2
4629  fi
4630done
4631done
4632IFS=$as_save_IFS
4633
4634  ;;
4635esac
4636fi
4637vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
4638if test -n "$vi_cv_path_mzscheme"; then
4639  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
4640$as_echo "$vi_cv_path_mzscheme" >&6; }
4641else
4642  { $as_echo "$as_me:$LINENO: result: no" >&5
4643$as_echo "no" >&6; }
4644fi
4645
4646
4647
4648			if test "X$vi_cv_path_mzscheme" != "X"; then
4649	  lsout=`ls -l $vi_cv_path_mzscheme`
4650	  if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
4651	    vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
4652	  fi
4653	fi
4654
4655	if test "X$vi_cv_path_mzscheme" != "X"; then
4656	    	    { $as_echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
4657$as_echo_n "checking MzScheme install prefix... " >&6; }
4658if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
4659  $as_echo_n "(cached) " >&6
4660else
4661   vi_cv_path_mzscheme_pfx=`
4662	    ${vi_cv_path_mzscheme} -evm \
4663	    "(display (simplify-path		\
4664	       (build-path (call-with-values	\
4665		(lambda () (split-path (find-system-path (quote exec-file)))) \
4666		(lambda (base name must-be-dir?) base)) (quote up))))"`
4667fi
4668{ $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
4669$as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
4670	    	    vi_cv_path_mzscheme_pfx=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'`
4671	fi
4672    fi
4673  fi
4674
4675  SCHEME_INC=
4676  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4677    { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
4678$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
4679    if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
4680      { $as_echo "$as_me:$LINENO: result: \"yes\"" >&5
4681$as_echo "\"yes\"" >&6; }
4682    else
4683      { $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4684$as_echo "\"no\"" >&6; }
4685      { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include" >&5
4686$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include... " >&6; }
4687      if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then
4688	{ $as_echo "$as_me:$LINENO: result: \"yes\"" >&5
4689$as_echo "\"yes\"" >&6; }
4690	SCHEME_INC=/plt
4691      else
4692	{ $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4693$as_echo "\"no\"" >&6; }
4694	vi_cv_path_mzscheme_pfx=
4695      fi
4696    fi
4697  fi
4698
4699  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4700    if test "x$MACOSX" = "xyes"; then
4701      MZSCHEME_LIBS="-framework PLT_MzScheme"
4702    elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
4703      MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
4704    else
4705      MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
4706      if test "$GCC" = yes; then
4707			MZSCHEME_LIBS="$MZSCHEME_LIBS -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
4708      elif test "`(uname) 2>/dev/null`" = SunOS &&
4709			       uname -r | grep '^5' >/dev/null; then
4710	MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib"
4711      fi
4712    fi
4713    if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then
4714      SCHEME_COLLECTS=lib/plt/
4715    fi
4716    MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include${SCHEME_INC}   \
4717      -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
4718    MZSCHEME_SRC="if_mzsch.c"
4719    MZSCHEME_OBJ="objects/if_mzsch.o"
4720    MZSCHEME_PRO="if_mzsch.pro"
4721    cat >>confdefs.h <<\_ACEOF
4722#define FEAT_MZSCHEME 1
4723_ACEOF
4724
4725  fi
4726
4727
4728
4729
4730
4731fi
4732
4733
4734{ $as_echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
4735$as_echo_n "checking --enable-perlinterp argument... " >&6; }
4736# Check whether --enable-perlinterp was given.
4737if test "${enable_perlinterp+set}" = set; then
4738  enableval=$enable_perlinterp;
4739else
4740  enable_perlinterp="no"
4741fi
4742
4743{ $as_echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
4744$as_echo "$enable_perlinterp" >&6; }
4745if test "$enable_perlinterp" = "yes"; then
4746
4747  # Extract the first word of "perl", so it can be a program name with args.
4748set dummy perl; ac_word=$2
4749{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4750$as_echo_n "checking for $ac_word... " >&6; }
4751if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
4752  $as_echo_n "(cached) " >&6
4753else
4754  case $vi_cv_path_perl in
4755  [\\/]* | ?:[\\/]*)
4756  ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
4757  ;;
4758  *)
4759  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760for as_dir in $PATH
4761do
4762  IFS=$as_save_IFS
4763  test -z "$as_dir" && as_dir=.
4764  for ac_exec_ext in '' $ac_executable_extensions; do
4765  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4766    ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
4767    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4768    break 2
4769  fi
4770done
4771done
4772IFS=$as_save_IFS
4773
4774  ;;
4775esac
4776fi
4777vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
4778if test -n "$vi_cv_path_perl"; then
4779  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
4780$as_echo "$vi_cv_path_perl" >&6; }
4781else
4782  { $as_echo "$as_me:$LINENO: result: no" >&5
4783$as_echo "no" >&6; }
4784fi
4785
4786
4787  if test "X$vi_cv_path_perl" != "X"; then
4788    { $as_echo "$as_me:$LINENO: checking Perl version" >&5
4789$as_echo_n "checking Perl version... " >&6; }
4790    if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
4791     eval `$vi_cv_path_perl -V:usethreads`
4792     if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
4793       badthreads=no
4794     else
4795       if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
4796	 eval `$vi_cv_path_perl -V:use5005threads`
4797	 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
4798	   badthreads=no
4799	 else
4800	   badthreads=yes
4801	   { $as_echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
4802$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
4803	 fi
4804       else
4805	 badthreads=yes
4806	 { $as_echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
4807$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
4808       fi
4809     fi
4810     if test $badthreads = no; then
4811      { $as_echo "$as_me:$LINENO: result: OK" >&5
4812$as_echo "OK" >&6; }
4813      eval `$vi_cv_path_perl -V:shrpenv`
4814      if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
4815	shrpenv=""
4816      fi
4817      vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
4818
4819            perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
4820	      -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
4821            perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
4822		sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
4823			-e 's/-bE:perl.exp//' -e 's/-lc //'`
4824                  perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
4825		-e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
4826
4827                  { $as_echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
4828$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
4829      cflags_save=$CFLAGS
4830      libs_save=$LIBS
4831      ldflags_save=$LDFLAGS
4832      CFLAGS="$CFLAGS $perlcppflags"
4833      LIBS="$LIBS $perllibs"
4834      LDFLAGS="$perlldflags $LDFLAGS"
4835      cat >conftest.$ac_ext <<_ACEOF
4836/* confdefs.h.  */
4837_ACEOF
4838cat confdefs.h >>conftest.$ac_ext
4839cat >>conftest.$ac_ext <<_ACEOF
4840/* end confdefs.h.  */
4841
4842int
4843main ()
4844{
4845
4846  ;
4847  return 0;
4848}
4849_ACEOF
4850rm -f conftest.$ac_objext conftest$ac_exeext
4851if { (ac_try="$ac_link"
4852case "(($ac_try" in
4853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4854  *) ac_try_echo=$ac_try;;
4855esac
4856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4857$as_echo "$ac_try_echo") >&5
4858  (eval "$ac_link") 2>conftest.er1
4859  ac_status=$?
4860  grep -v '^ *+' conftest.er1 >conftest.err
4861  rm -f conftest.er1
4862  cat conftest.err >&5
4863  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864  (exit $ac_status); } && {
4865	 test -z "$ac_c_werror_flag" ||
4866	 test ! -s conftest.err
4867       } && test -s conftest$ac_exeext && {
4868	 test "$cross_compiling" = yes ||
4869	 $as_test_x conftest$ac_exeext
4870       }; then
4871  { $as_echo "$as_me:$LINENO: result: yes" >&5
4872$as_echo "yes" >&6; }; perl_ok=yes
4873else
4874  $as_echo "$as_me: failed program was:" >&5
4875sed 's/^/| /' conftest.$ac_ext >&5
4876
4877	{ $as_echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4878$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
4879fi
4880
4881rm -rf conftest.dSYM
4882rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4883      conftest$ac_exeext conftest.$ac_ext
4884      CFLAGS=$cflags_save
4885      LIBS=$libs_save
4886      LDFLAGS=$ldflags_save
4887      if test $perl_ok = yes; then
4888	if test "X$perlcppflags" != "X"; then
4889	  	  PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
4890	fi
4891	if test "X$perlldflags" != "X"; then
4892	  LDFLAGS="$perlldflags $LDFLAGS"
4893	fi
4894	PERL_LIBS=$perllibs
4895	PERL_SRC="auto/if_perl.c if_perlsfio.c"
4896	PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4897	PERL_PRO="if_perl.pro if_perlsfio.pro"
4898	cat >>confdefs.h <<\_ACEOF
4899#define FEAT_PERL 1
4900_ACEOF
4901
4902      fi
4903     fi
4904    else
4905      { $as_echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4906$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
4907    fi
4908  fi
4909
4910  if test "x$MACOSX" = "xyes"; then
4911        dir=/System/Library/Perl
4912    darwindir=$dir/darwin
4913    if test -d $darwindir; then
4914      PERL=/usr/bin/perl
4915    else
4916            dir=/System/Library/Perl/5.8.1
4917      darwindir=$dir/darwin-thread-multi-2level
4918      if test -d $darwindir; then
4919	PERL=/usr/bin/perl
4920      fi
4921    fi
4922    if test -n "$PERL"; then
4923      PERL_DIR="$dir"
4924      PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4925      PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4926      PERL_LIBS="-L$darwindir/CORE -lperl"
4927    fi
4928  fi
4929fi
4930
4931
4932
4933
4934
4935
4936
4937{ $as_echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
4938$as_echo_n "checking --enable-pythoninterp argument... " >&6; }
4939# Check whether --enable-pythoninterp was given.
4940if test "${enable_pythoninterp+set}" = set; then
4941  enableval=$enable_pythoninterp;
4942else
4943  enable_pythoninterp="no"
4944fi
4945
4946{ $as_echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
4947$as_echo "$enable_pythoninterp" >&6; }
4948if test "$enable_pythoninterp" = "yes"; then
4949    # Extract the first word of "python", so it can be a program name with args.
4950set dummy python; ac_word=$2
4951{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4952$as_echo_n "checking for $ac_word... " >&6; }
4953if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
4954  $as_echo_n "(cached) " >&6
4955else
4956  case $vi_cv_path_python in
4957  [\\/]* | ?:[\\/]*)
4958  ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
4959  ;;
4960  *)
4961  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962for as_dir in $PATH
4963do
4964  IFS=$as_save_IFS
4965  test -z "$as_dir" && as_dir=.
4966  for ac_exec_ext in '' $ac_executable_extensions; do
4967  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4968    ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
4969    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4970    break 2
4971  fi
4972done
4973done
4974IFS=$as_save_IFS
4975
4976  ;;
4977esac
4978fi
4979vi_cv_path_python=$ac_cv_path_vi_cv_path_python
4980if test -n "$vi_cv_path_python"; then
4981  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
4982$as_echo "$vi_cv_path_python" >&6; }
4983else
4984  { $as_echo "$as_me:$LINENO: result: no" >&5
4985$as_echo "no" >&6; }
4986fi
4987
4988
4989  if test "X$vi_cv_path_python" != "X"; then
4990
4991        { $as_echo "$as_me:$LINENO: checking Python version" >&5
4992$as_echo_n "checking Python version... " >&6; }
4993if test "${vi_cv_var_python_version+set}" = set; then
4994  $as_echo_n "(cached) " >&6
4995else
4996  vi_cv_var_python_version=`
4997	    ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
4998
4999fi
5000{ $as_echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
5001$as_echo "$vi_cv_var_python_version" >&6; }
5002
5003        { $as_echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
5004$as_echo_n "checking Python is 1.4 or better... " >&6; }
5005    if ${vi_cv_path_python} -c \
5006	"import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
5007    then
5008      { $as_echo "$as_me:$LINENO: result: yep" >&5
5009$as_echo "yep" >&6; }
5010
5011            { $as_echo "$as_me:$LINENO: checking Python's install prefix" >&5
5012$as_echo_n "checking Python's install prefix... " >&6; }
5013if test "${vi_cv_path_python_pfx+set}" = set; then
5014  $as_echo_n "(cached) " >&6
5015else
5016   vi_cv_path_python_pfx=`
5017	    ${vi_cv_path_python} -c \
5018		"import sys; print sys.prefix"`
5019fi
5020{ $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
5021$as_echo "$vi_cv_path_python_pfx" >&6; }
5022
5023            { $as_echo "$as_me:$LINENO: checking Python's execution prefix" >&5
5024$as_echo_n "checking Python's execution prefix... " >&6; }
5025if test "${vi_cv_path_python_epfx+set}" = set; then
5026  $as_echo_n "(cached) " >&6
5027else
5028   vi_cv_path_python_epfx=`
5029	    ${vi_cv_path_python} -c \
5030		"import sys; print sys.exec_prefix"`
5031fi
5032{ $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
5033$as_echo "$vi_cv_path_python_epfx" >&6; }
5034
5035
5036      if test "${vi_cv_path_pythonpath+set}" = set; then
5037  $as_echo_n "(cached) " >&6
5038else
5039   vi_cv_path_pythonpath=`
5040	    unset PYTHONPATH;
5041	    ${vi_cv_path_python} -c \
5042		"import sys, string; print string.join(sys.path,':')"`
5043fi
5044
5045
5046
5047
5048# Check whether --with-python-config-dir was given.
5049if test "${with_python_config_dir+set}" = set; then
5050  withval=$with_python_config_dir;  vi_cv_path_python_conf="${withval}"
5051fi
5052
5053
5054      { $as_echo "$as_me:$LINENO: checking Python's configuration directory" >&5
5055$as_echo_n "checking Python's configuration directory... " >&6; }
5056if test "${vi_cv_path_python_conf+set}" = set; then
5057  $as_echo_n "(cached) " >&6
5058else
5059
5060	vi_cv_path_python_conf=
5061	for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5062	  for subdir in lib share; do
5063	    d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5064	    if test -d "$d" && test -f "$d/config.c"; then
5065	      vi_cv_path_python_conf="$d"
5066	    fi
5067	  done
5068	done
5069
5070fi
5071{ $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
5072$as_echo "$vi_cv_path_python_conf" >&6; }
5073
5074      PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5075
5076      if test "X$PYTHON_CONFDIR" = "X"; then
5077	{ $as_echo "$as_me:$LINENO: result: can't find it!" >&5
5078$as_echo "can't find it!" >&6; }
5079      else
5080
5081			if test "${vi_cv_path_python_plibs+set}" = set; then
5082  $as_echo_n "(cached) " >&6
5083else
5084
5085	    tmp_mkf="/tmp/Makefile-conf$$"
5086	    cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf}
5087__:
5088	@echo "python_MODLIBS='$(MODLIBS)'"
5089	@echo "python_LIBS='$(LIBS)'"
5090	@echo "python_SYSLIBS='$(SYSLIBS)'"
5091	@echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5092eof
5093	    	    eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`"
5094	    rm -f ${tmp_mkf}
5095	    if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5096		"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5097	      vi_cv_path_python_plibs="-framework Python"
5098	    else
5099	      if test "${vi_cv_var_python_version}" = "1.4"; then
5100		  vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5101	      else
5102		  vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5103	      fi
5104	      vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5105	      	      vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
5106	    fi
5107
5108fi
5109
5110
5111	PYTHON_LIBS="${vi_cv_path_python_plibs}"
5112	if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5113	  PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
5114	else
5115	  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}"
5116	fi
5117	PYTHON_SRC="if_python.c"
5118		if test "x$MACOSX" = "xyes"; then
5119	  PYTHON_OBJ="objects/if_python.o"
5120	else
5121	  PYTHON_OBJ="objects/if_python.o objects/py_config.o"
5122	fi
5123	if test "${vi_cv_var_python_version}" = "1.4"; then
5124	   PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5125	fi
5126	PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5127
5128								{ $as_echo "$as_me:$LINENO: checking if -pthread should be used" >&5
5129$as_echo_n "checking if -pthread should be used... " >&6; }
5130	threadsafe_flag=
5131	thread_lib=
5132	        if test "`(uname) 2>/dev/null`" != Darwin; then
5133	  test "$GCC" = yes && threadsafe_flag="-pthread"
5134	  if test "`(uname) 2>/dev/null`" = FreeBSD; then
5135	    threadsafe_flag="-D_THREAD_SAFE"
5136	    thread_lib="-pthread"
5137	  fi
5138	fi
5139	libs_save_old=$LIBS
5140	if test -n "$threadsafe_flag"; then
5141	  cflags_save=$CFLAGS
5142	  CFLAGS="$CFLAGS $threadsafe_flag"
5143	  LIBS="$LIBS $thread_lib"
5144	  cat >conftest.$ac_ext <<_ACEOF
5145/* confdefs.h.  */
5146_ACEOF
5147cat confdefs.h >>conftest.$ac_ext
5148cat >>conftest.$ac_ext <<_ACEOF
5149/* end confdefs.h.  */
5150
5151int
5152main ()
5153{
5154
5155  ;
5156  return 0;
5157}
5158_ACEOF
5159rm -f conftest.$ac_objext conftest$ac_exeext
5160if { (ac_try="$ac_link"
5161case "(($ac_try" in
5162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5163  *) ac_try_echo=$ac_try;;
5164esac
5165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5166$as_echo "$ac_try_echo") >&5
5167  (eval "$ac_link") 2>conftest.er1
5168  ac_status=$?
5169  grep -v '^ *+' conftest.er1 >conftest.err
5170  rm -f conftest.er1
5171  cat conftest.err >&5
5172  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173  (exit $ac_status); } && {
5174	 test -z "$ac_c_werror_flag" ||
5175	 test ! -s conftest.err
5176       } && test -s conftest$ac_exeext && {
5177	 test "$cross_compiling" = yes ||
5178	 $as_test_x conftest$ac_exeext
5179       }; then
5180  { $as_echo "$as_me:$LINENO: result: yes" >&5
5181$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
5182else
5183  $as_echo "$as_me: failed program was:" >&5
5184sed 's/^/| /' conftest.$ac_ext >&5
5185
5186	{ $as_echo "$as_me:$LINENO: result: no" >&5
5187$as_echo "no" >&6; }; LIBS=$libs_save_old
5188
5189fi
5190
5191rm -rf conftest.dSYM
5192rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5193      conftest$ac_exeext conftest.$ac_ext
5194	  CFLAGS=$cflags_save
5195	else
5196	  { $as_echo "$as_me:$LINENO: result: no" >&5
5197$as_echo "no" >&6; }
5198	fi
5199
5200			{ $as_echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
5201$as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
5202	cflags_save=$CFLAGS
5203	libs_save=$LIBS
5204	CFLAGS="$CFLAGS $PYTHON_CFLAGS"
5205	LIBS="$LIBS $PYTHON_LIBS"
5206	cat >conftest.$ac_ext <<_ACEOF
5207/* confdefs.h.  */
5208_ACEOF
5209cat confdefs.h >>conftest.$ac_ext
5210cat >>conftest.$ac_ext <<_ACEOF
5211/* end confdefs.h.  */
5212
5213int
5214main ()
5215{
5216
5217  ;
5218  return 0;
5219}
5220_ACEOF
5221rm -f conftest.$ac_objext conftest$ac_exeext
5222if { (ac_try="$ac_link"
5223case "(($ac_try" in
5224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5225  *) ac_try_echo=$ac_try;;
5226esac
5227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5228$as_echo "$ac_try_echo") >&5
5229  (eval "$ac_link") 2>conftest.er1
5230  ac_status=$?
5231  grep -v '^ *+' conftest.er1 >conftest.err
5232  rm -f conftest.er1
5233  cat conftest.err >&5
5234  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235  (exit $ac_status); } && {
5236	 test -z "$ac_c_werror_flag" ||
5237	 test ! -s conftest.err
5238       } && test -s conftest$ac_exeext && {
5239	 test "$cross_compiling" = yes ||
5240	 $as_test_x conftest$ac_exeext
5241       }; then
5242  { $as_echo "$as_me:$LINENO: result: yes" >&5
5243$as_echo "yes" >&6; }; python_ok=yes
5244else
5245  $as_echo "$as_me: failed program was:" >&5
5246sed 's/^/| /' conftest.$ac_ext >&5
5247
5248	{ $as_echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
5249$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
5250fi
5251
5252rm -rf conftest.dSYM
5253rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5254      conftest$ac_exeext conftest.$ac_ext
5255	CFLAGS=$cflags_save
5256	LIBS=$libs_save
5257	if test $python_ok = yes; then
5258	  cat >>confdefs.h <<\_ACEOF
5259#define FEAT_PYTHON 1
5260_ACEOF
5261
5262	else
5263	  LIBS=$libs_save_old
5264	  PYTHON_SRC=
5265	  PYTHON_OBJ=
5266	  PYTHON_LIBS=
5267	  PYTHON_CFLAGS=
5268	fi
5269
5270      fi
5271    else
5272      { $as_echo "$as_me:$LINENO: result: too old" >&5
5273$as_echo "too old" >&6; }
5274    fi
5275  fi
5276fi
5277
5278
5279
5280
5281
5282
5283
5284{ $as_echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
5285$as_echo_n "checking --enable-tclinterp argument... " >&6; }
5286# Check whether --enable-tclinterp was given.
5287if test "${enable_tclinterp+set}" = set; then
5288  enableval=$enable_tclinterp;
5289else
5290  enable_tclinterp="no"
5291fi
5292
5293{ $as_echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
5294$as_echo "$enable_tclinterp" >&6; }
5295
5296if test "$enable_tclinterp" = "yes"; then
5297
5298    { $as_echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
5299$as_echo_n "checking --with-tclsh argument... " >&6; }
5300
5301# Check whether --with-tclsh was given.
5302if test "${with_tclsh+set}" = set; then
5303  withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:$LINENO: result: $tclsh_name" >&5
5304$as_echo "$tclsh_name" >&6; }
5305else
5306  tclsh_name="tclsh8.5"; { $as_echo "$as_me:$LINENO: result: no" >&5
5307$as_echo "no" >&6; }
5308fi
5309
5310  # Extract the first word of "$tclsh_name", so it can be a program name with args.
5311set dummy $tclsh_name; ac_word=$2
5312{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5313$as_echo_n "checking for $ac_word... " >&6; }
5314if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5315  $as_echo_n "(cached) " >&6
5316else
5317  case $vi_cv_path_tcl in
5318  [\\/]* | ?:[\\/]*)
5319  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5320  ;;
5321  *)
5322  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323for as_dir in $PATH
5324do
5325  IFS=$as_save_IFS
5326  test -z "$as_dir" && as_dir=.
5327  for ac_exec_ext in '' $ac_executable_extensions; do
5328  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5329    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5330    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5331    break 2
5332  fi
5333done
5334done
5335IFS=$as_save_IFS
5336
5337  ;;
5338esac
5339fi
5340vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5341if test -n "$vi_cv_path_tcl"; then
5342  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5343$as_echo "$vi_cv_path_tcl" >&6; }
5344else
5345  { $as_echo "$as_me:$LINENO: result: no" >&5
5346$as_echo "no" >&6; }
5347fi
5348
5349
5350
5351
5352    if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
5353    tclsh_name="tclsh8.4"
5354    # Extract the first word of "$tclsh_name", so it can be a program name with args.
5355set dummy $tclsh_name; ac_word=$2
5356{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5357$as_echo_n "checking for $ac_word... " >&6; }
5358if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5359  $as_echo_n "(cached) " >&6
5360else
5361  case $vi_cv_path_tcl in
5362  [\\/]* | ?:[\\/]*)
5363  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5364  ;;
5365  *)
5366  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367for as_dir in $PATH
5368do
5369  IFS=$as_save_IFS
5370  test -z "$as_dir" && as_dir=.
5371  for ac_exec_ext in '' $ac_executable_extensions; do
5372  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5373    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5374    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5375    break 2
5376  fi
5377done
5378done
5379IFS=$as_save_IFS
5380
5381  ;;
5382esac
5383fi
5384vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5385if test -n "$vi_cv_path_tcl"; then
5386  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5387$as_echo "$vi_cv_path_tcl" >&6; }
5388else
5389  { $as_echo "$as_me:$LINENO: result: no" >&5
5390$as_echo "no" >&6; }
5391fi
5392
5393
5394  fi
5395  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
5396    tclsh_name="tclsh8.2"
5397    # Extract the first word of "$tclsh_name", so it can be a program name with args.
5398set dummy $tclsh_name; ac_word=$2
5399{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5400$as_echo_n "checking for $ac_word... " >&6; }
5401if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5402  $as_echo_n "(cached) " >&6
5403else
5404  case $vi_cv_path_tcl in
5405  [\\/]* | ?:[\\/]*)
5406  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5407  ;;
5408  *)
5409  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410for as_dir in $PATH
5411do
5412  IFS=$as_save_IFS
5413  test -z "$as_dir" && as_dir=.
5414  for ac_exec_ext in '' $ac_executable_extensions; do
5415  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5416    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5417    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5418    break 2
5419  fi
5420done
5421done
5422IFS=$as_save_IFS
5423
5424  ;;
5425esac
5426fi
5427vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5428if test -n "$vi_cv_path_tcl"; then
5429  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5430$as_echo "$vi_cv_path_tcl" >&6; }
5431else
5432  { $as_echo "$as_me:$LINENO: result: no" >&5
5433$as_echo "no" >&6; }
5434fi
5435
5436
5437  fi
5438  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
5439    tclsh_name="tclsh8.0"
5440    # Extract the first word of "$tclsh_name", so it can be a program name with args.
5441set dummy $tclsh_name; ac_word=$2
5442{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5443$as_echo_n "checking for $ac_word... " >&6; }
5444if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5445  $as_echo_n "(cached) " >&6
5446else
5447  case $vi_cv_path_tcl in
5448  [\\/]* | ?:[\\/]*)
5449  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5450  ;;
5451  *)
5452  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453for as_dir in $PATH
5454do
5455  IFS=$as_save_IFS
5456  test -z "$as_dir" && as_dir=.
5457  for ac_exec_ext in '' $ac_executable_extensions; do
5458  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5459    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5460    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5461    break 2
5462  fi
5463done
5464done
5465IFS=$as_save_IFS
5466
5467  ;;
5468esac
5469fi
5470vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5471if test -n "$vi_cv_path_tcl"; then
5472  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5473$as_echo "$vi_cv_path_tcl" >&6; }
5474else
5475  { $as_echo "$as_me:$LINENO: result: no" >&5
5476$as_echo "no" >&6; }
5477fi
5478
5479
5480  fi
5481    if test "X$vi_cv_path_tcl" = "X"; then
5482    tclsh_name="tclsh"
5483    # Extract the first word of "$tclsh_name", so it can be a program name with args.
5484set dummy $tclsh_name; ac_word=$2
5485{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5486$as_echo_n "checking for $ac_word... " >&6; }
5487if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5488  $as_echo_n "(cached) " >&6
5489else
5490  case $vi_cv_path_tcl in
5491  [\\/]* | ?:[\\/]*)
5492  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5493  ;;
5494  *)
5495  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496for as_dir in $PATH
5497do
5498  IFS=$as_save_IFS
5499  test -z "$as_dir" && as_dir=.
5500  for ac_exec_ext in '' $ac_executable_extensions; do
5501  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5502    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5503    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5504    break 2
5505  fi
5506done
5507done
5508IFS=$as_save_IFS
5509
5510  ;;
5511esac
5512fi
5513vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5514if test -n "$vi_cv_path_tcl"; then
5515  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5516$as_echo "$vi_cv_path_tcl" >&6; }
5517else
5518  { $as_echo "$as_me:$LINENO: result: no" >&5
5519$as_echo "no" >&6; }
5520fi
5521
5522
5523  fi
5524  if test "X$vi_cv_path_tcl" != "X"; then
5525    { $as_echo "$as_me:$LINENO: checking Tcl version" >&5
5526$as_echo_n "checking Tcl version... " >&6; }
5527    if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
5528      tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
5529      { $as_echo "$as_me:$LINENO: result: $tclver - OK" >&5
5530$as_echo "$tclver - OK" >&6; };
5531      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 -`
5532
5533      { $as_echo "$as_me:$LINENO: checking for location of Tcl include" >&5
5534$as_echo_n "checking for location of Tcl include... " >&6; }
5535      if test "x$MACOSX" != "xyes"; then
5536	tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
5537      else
5538		tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
5539      fi
5540      TCL_INC=
5541      for try in $tclinc; do
5542	if test -f "$try/tcl.h"; then
5543	  { $as_echo "$as_me:$LINENO: result: $try/tcl.h" >&5
5544$as_echo "$try/tcl.h" >&6; }
5545	  TCL_INC=$try
5546	  break
5547	fi
5548      done
5549      if test -z "$TCL_INC"; then
5550	{ $as_echo "$as_me:$LINENO: result: <not found>" >&5
5551$as_echo "<not found>" >&6; }
5552	SKIP_TCL=YES
5553      fi
5554      if test -z "$SKIP_TCL"; then
5555	{ $as_echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
5556$as_echo_n "checking for location of tclConfig.sh script... " >&6; }
5557	if test "x$MACOSX" != "xyes"; then
5558	  tclcnf=`echo $tclinc | sed s/include/lib/g`
5559	  tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
5560	else
5561	  	  tclcnf="/System/Library/Frameworks/Tcl.framework"
5562	fi
5563	for try in $tclcnf; do
5564	  if test -f $try/tclConfig.sh; then
5565	    { $as_echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
5566$as_echo "$try/tclConfig.sh" >&6; }
5567	    . $try/tclConfig.sh
5568	    	    TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
5569	    	    	    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'`
5570	    break
5571	  fi
5572	done
5573	if test -z "$TCL_LIBS"; then
5574	  { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5575$as_echo "<not found>" >&6; }
5576	  { $as_echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
5577$as_echo_n "checking for Tcl library by myself... " >&6; }
5578	  tcllib=`echo $tclinc | sed s/include/lib/g`
5579	  tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
5580	  for ext in .so .a ; do
5581	    for ver in "" $tclver ; do
5582	      for try in $tcllib ; do
5583		trylib=tcl$ver$ext
5584		if test -f $try/lib$trylib ; then
5585		  { $as_echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
5586$as_echo "$try/lib$trylib" >&6; }
5587		  TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
5588		  if test "`(uname) 2>/dev/null`" = SunOS &&
5589					 uname -r | grep '^5' >/dev/null; then
5590		    TCL_LIBS="$TCL_LIBS -R $try"
5591		  fi
5592		  break 3
5593		fi
5594	      done
5595	    done
5596	  done
5597	  if test -z "$TCL_LIBS"; then
5598	    { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5599$as_echo "<not found>" >&6; }
5600	    SKIP_TCL=YES
5601	  fi
5602	fi
5603	if test -z "$SKIP_TCL"; then
5604	  cat >>confdefs.h <<\_ACEOF
5605#define FEAT_TCL 1
5606_ACEOF
5607
5608	  TCL_SRC=if_tcl.c
5609	  TCL_OBJ=objects/if_tcl.o
5610	  TCL_PRO=if_tcl.pro
5611	  TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
5612	fi
5613      fi
5614    else
5615      { $as_echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
5616$as_echo "too old; need Tcl version 8.0 or later" >&6; }
5617    fi
5618  fi
5619fi
5620
5621
5622
5623
5624
5625
5626{ $as_echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
5627$as_echo_n "checking --enable-rubyinterp argument... " >&6; }
5628# Check whether --enable-rubyinterp was given.
5629if test "${enable_rubyinterp+set}" = set; then
5630  enableval=$enable_rubyinterp;
5631else
5632  enable_rubyinterp="no"
5633fi
5634
5635{ $as_echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
5636$as_echo "$enable_rubyinterp" >&6; }
5637if test "$enable_rubyinterp" = "yes"; then
5638
5639  # Extract the first word of "ruby", so it can be a program name with args.
5640set dummy ruby; ac_word=$2
5641{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5642$as_echo_n "checking for $ac_word... " >&6; }
5643if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
5644  $as_echo_n "(cached) " >&6
5645else
5646  case $vi_cv_path_ruby in
5647  [\\/]* | ?:[\\/]*)
5648  ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
5649  ;;
5650  *)
5651  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652for as_dir in $PATH
5653do
5654  IFS=$as_save_IFS
5655  test -z "$as_dir" && as_dir=.
5656  for ac_exec_ext in '' $ac_executable_extensions; do
5657  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5658    ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
5659    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5660    break 2
5661  fi
5662done
5663done
5664IFS=$as_save_IFS
5665
5666  ;;
5667esac
5668fi
5669vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
5670if test -n "$vi_cv_path_ruby"; then
5671  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
5672$as_echo "$vi_cv_path_ruby" >&6; }
5673else
5674  { $as_echo "$as_me:$LINENO: result: no" >&5
5675$as_echo "no" >&6; }
5676fi
5677
5678
5679  if test "X$vi_cv_path_ruby" != "X"; then
5680    { $as_echo "$as_me:$LINENO: checking Ruby version" >&5
5681$as_echo_n "checking Ruby version... " >&6; }
5682    if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
5683      { $as_echo "$as_me:$LINENO: result: OK" >&5
5684$as_echo "OK" >&6; }
5685      { $as_echo "$as_me:$LINENO: checking Ruby header files" >&5
5686$as_echo_n "checking Ruby header files... " >&6; }
5687      rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
5688      if test "X$rubyhdrdir" != "X"; then
5689	{ $as_echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
5690$as_echo "$rubyhdrdir" >&6; }
5691	RUBY_CFLAGS="-I$rubyhdrdir"
5692	rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
5693	if test "X$rubylibs" != "X"; then
5694	  RUBY_LIBS="$rubylibs"
5695	fi
5696	librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
5697	if test -f "$rubyhdrdir/$librubyarg"; then
5698	  librubyarg="$rubyhdrdir/$librubyarg"
5699	else
5700	  rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
5701	  if test -f "$rubylibdir/$librubyarg"; then
5702	    librubyarg="$rubylibdir/$librubyarg"
5703	  elif test "$librubyarg" = "libruby.a"; then
5704	    	    librubyarg="-lruby"
5705	  else
5706	    librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
5707	  fi
5708	fi
5709
5710	if test "X$librubyarg" != "X"; then
5711	  RUBY_LIBS="$librubyarg $RUBY_LIBS"
5712	fi
5713	rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
5714	if test "X$rubyldflags" != "X"; then
5715	  LDFLAGS="$rubyldflags $LDFLAGS"
5716	fi
5717	RUBY_SRC="if_ruby.c"
5718	RUBY_OBJ="objects/if_ruby.o"
5719	RUBY_PRO="if_ruby.pro"
5720	cat >>confdefs.h <<\_ACEOF
5721#define FEAT_RUBY 1
5722_ACEOF
5723
5724      else
5725	{ $as_echo "$as_me:$LINENO: result: not found" >&5
5726$as_echo "not found" >&6; }
5727      fi
5728    else
5729      { $as_echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
5730$as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
5731    fi
5732  fi
5733fi
5734
5735
5736
5737
5738
5739
5740{ $as_echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
5741$as_echo_n "checking --enable-cscope argument... " >&6; }
5742# Check whether --enable-cscope was given.
5743if test "${enable_cscope+set}" = set; then
5744  enableval=$enable_cscope;
5745else
5746  enable_cscope="no"
5747fi
5748
5749{ $as_echo "$as_me:$LINENO: result: $enable_cscope" >&5
5750$as_echo "$enable_cscope" >&6; }
5751if test "$enable_cscope" = "yes"; then
5752  cat >>confdefs.h <<\_ACEOF
5753#define FEAT_CSCOPE 1
5754_ACEOF
5755
5756fi
5757
5758{ $as_echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
5759$as_echo_n "checking --enable-workshop argument... " >&6; }
5760# Check whether --enable-workshop was given.
5761if test "${enable_workshop+set}" = set; then
5762  enableval=$enable_workshop;
5763else
5764  enable_workshop="no"
5765fi
5766
5767{ $as_echo "$as_me:$LINENO: result: $enable_workshop" >&5
5768$as_echo "$enable_workshop" >&6; }
5769if test "$enable_workshop" = "yes"; then
5770  cat >>confdefs.h <<\_ACEOF
5771#define FEAT_SUN_WORKSHOP 1
5772_ACEOF
5773
5774  WORKSHOP_SRC="workshop.c integration.c"
5775
5776  WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5777
5778  if test "${enable_gui-xxx}" = xxx; then
5779    enable_gui=motif
5780  fi
5781fi
5782
5783{ $as_echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
5784$as_echo_n "checking --disable-netbeans argument... " >&6; }
5785# Check whether --enable-netbeans was given.
5786if test "${enable_netbeans+set}" = set; then
5787  enableval=$enable_netbeans;
5788else
5789  enable_netbeans="yes"
5790fi
5791
5792if test "$enable_netbeans" = "yes"; then
5793  { $as_echo "$as_me:$LINENO: result: no" >&5
5794$as_echo "no" >&6; }
5795
5796{ $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5797$as_echo_n "checking for socket in -lsocket... " >&6; }
5798if test "${ac_cv_lib_socket_socket+set}" = set; then
5799  $as_echo_n "(cached) " >&6
5800else
5801  ac_check_lib_save_LIBS=$LIBS
5802LIBS="-lsocket  $LIBS"
5803cat >conftest.$ac_ext <<_ACEOF
5804/* confdefs.h.  */
5805_ACEOF
5806cat confdefs.h >>conftest.$ac_ext
5807cat >>conftest.$ac_ext <<_ACEOF
5808/* end confdefs.h.  */
5809
5810/* Override any GCC internal prototype to avoid an error.
5811   Use char because int might match the return type of a GCC
5812   builtin and then its argument prototype would still apply.  */
5813#ifdef __cplusplus
5814extern "C"
5815#endif
5816char socket ();
5817int
5818main ()
5819{
5820return socket ();
5821  ;
5822  return 0;
5823}
5824_ACEOF
5825rm -f conftest.$ac_objext conftest$ac_exeext
5826if { (ac_try="$ac_link"
5827case "(($ac_try" in
5828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5829  *) ac_try_echo=$ac_try;;
5830esac
5831eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5832$as_echo "$ac_try_echo") >&5
5833  (eval "$ac_link") 2>conftest.er1
5834  ac_status=$?
5835  grep -v '^ *+' conftest.er1 >conftest.err
5836  rm -f conftest.er1
5837  cat conftest.err >&5
5838  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839  (exit $ac_status); } && {
5840	 test -z "$ac_c_werror_flag" ||
5841	 test ! -s conftest.err
5842       } && test -s conftest$ac_exeext && {
5843	 test "$cross_compiling" = yes ||
5844	 $as_test_x conftest$ac_exeext
5845       }; then
5846  ac_cv_lib_socket_socket=yes
5847else
5848  $as_echo "$as_me: failed program was:" >&5
5849sed 's/^/| /' conftest.$ac_ext >&5
5850
5851	ac_cv_lib_socket_socket=no
5852fi
5853
5854rm -rf conftest.dSYM
5855rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5856      conftest$ac_exeext conftest.$ac_ext
5857LIBS=$ac_check_lib_save_LIBS
5858fi
5859{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5860$as_echo "$ac_cv_lib_socket_socket" >&6; }
5861if test $ac_cv_lib_socket_socket = yes; then
5862  cat >>confdefs.h <<_ACEOF
5863#define HAVE_LIBSOCKET 1
5864_ACEOF
5865
5866  LIBS="-lsocket $LIBS"
5867
5868fi
5869
5870
5871{ $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5872$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5873if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5874  $as_echo_n "(cached) " >&6
5875else
5876  ac_check_lib_save_LIBS=$LIBS
5877LIBS="-lnsl  $LIBS"
5878cat >conftest.$ac_ext <<_ACEOF
5879/* confdefs.h.  */
5880_ACEOF
5881cat confdefs.h >>conftest.$ac_ext
5882cat >>conftest.$ac_ext <<_ACEOF
5883/* end confdefs.h.  */
5884
5885/* Override any GCC internal prototype to avoid an error.
5886   Use char because int might match the return type of a GCC
5887   builtin and then its argument prototype would still apply.  */
5888#ifdef __cplusplus
5889extern "C"
5890#endif
5891char gethostbyname ();
5892int
5893main ()
5894{
5895return gethostbyname ();
5896  ;
5897  return 0;
5898}
5899_ACEOF
5900rm -f conftest.$ac_objext conftest$ac_exeext
5901if { (ac_try="$ac_link"
5902case "(($ac_try" in
5903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904  *) ac_try_echo=$ac_try;;
5905esac
5906eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5907$as_echo "$ac_try_echo") >&5
5908  (eval "$ac_link") 2>conftest.er1
5909  ac_status=$?
5910  grep -v '^ *+' conftest.er1 >conftest.err
5911  rm -f conftest.er1
5912  cat conftest.err >&5
5913  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914  (exit $ac_status); } && {
5915	 test -z "$ac_c_werror_flag" ||
5916	 test ! -s conftest.err
5917       } && test -s conftest$ac_exeext && {
5918	 test "$cross_compiling" = yes ||
5919	 $as_test_x conftest$ac_exeext
5920       }; then
5921  ac_cv_lib_nsl_gethostbyname=yes
5922else
5923  $as_echo "$as_me: failed program was:" >&5
5924sed 's/^/| /' conftest.$ac_ext >&5
5925
5926	ac_cv_lib_nsl_gethostbyname=no
5927fi
5928
5929rm -rf conftest.dSYM
5930rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5931      conftest$ac_exeext conftest.$ac_ext
5932LIBS=$ac_check_lib_save_LIBS
5933fi
5934{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5935$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5936if test $ac_cv_lib_nsl_gethostbyname = yes; then
5937  cat >>confdefs.h <<_ACEOF
5938#define HAVE_LIBNSL 1
5939_ACEOF
5940
5941  LIBS="-lnsl $LIBS"
5942
5943fi
5944
5945  { $as_echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
5946$as_echo_n "checking whether compiling netbeans integration is possible... " >&6; }
5947  cat >conftest.$ac_ext <<_ACEOF
5948/* confdefs.h.  */
5949_ACEOF
5950cat confdefs.h >>conftest.$ac_ext
5951cat >>conftest.$ac_ext <<_ACEOF
5952/* end confdefs.h.  */
5953
5954#include <stdio.h>
5955#include <stdlib.h>
5956#include <stdarg.h>
5957#include <fcntl.h>
5958#include <netdb.h>
5959#include <netinet/in.h>
5960#include <errno.h>
5961#include <sys/types.h>
5962#include <sys/socket.h>
5963	/* Check bitfields */
5964	struct nbbuf {
5965	unsigned int  initDone:1;
5966	ushort signmaplen;
5967	};
5968
5969int
5970main ()
5971{
5972
5973		/* Check creating a socket. */
5974		struct sockaddr_in server;
5975		(void)socket(AF_INET, SOCK_STREAM, 0);
5976		(void)htons(100);
5977		(void)gethostbyname("microsoft.com");
5978		if (errno == ECONNREFUSED)
5979		  (void)connect(1, (struct sockaddr *)&server, sizeof(server));
5980
5981  ;
5982  return 0;
5983}
5984_ACEOF
5985rm -f conftest.$ac_objext conftest$ac_exeext
5986if { (ac_try="$ac_link"
5987case "(($ac_try" in
5988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989  *) ac_try_echo=$ac_try;;
5990esac
5991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5992$as_echo "$ac_try_echo") >&5
5993  (eval "$ac_link") 2>conftest.er1
5994  ac_status=$?
5995  grep -v '^ *+' conftest.er1 >conftest.err
5996  rm -f conftest.er1
5997  cat conftest.err >&5
5998  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999  (exit $ac_status); } && {
6000	 test -z "$ac_c_werror_flag" ||
6001	 test ! -s conftest.err
6002       } && test -s conftest$ac_exeext && {
6003	 test "$cross_compiling" = yes ||
6004	 $as_test_x conftest$ac_exeext
6005       }; then
6006  { $as_echo "$as_me:$LINENO: result: yes" >&5
6007$as_echo "yes" >&6; }
6008else
6009  $as_echo "$as_me: failed program was:" >&5
6010sed 's/^/| /' conftest.$ac_ext >&5
6011
6012	{ $as_echo "$as_me:$LINENO: result: no" >&5
6013$as_echo "no" >&6; }; enable_netbeans="no"
6014fi
6015
6016rm -rf conftest.dSYM
6017rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6018      conftest$ac_exeext conftest.$ac_ext
6019else
6020  { $as_echo "$as_me:$LINENO: result: yes" >&5
6021$as_echo "yes" >&6; }
6022fi
6023if test "$enable_netbeans" = "yes"; then
6024  cat >>confdefs.h <<\_ACEOF
6025#define FEAT_NETBEANS_INTG 1
6026_ACEOF
6027
6028  NETBEANS_SRC="netbeans.c"
6029
6030  NETBEANS_OBJ="objects/netbeans.o"
6031
6032fi
6033
6034{ $as_echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
6035$as_echo_n "checking --enable-sniff argument... " >&6; }
6036# Check whether --enable-sniff was given.
6037if test "${enable_sniff+set}" = set; then
6038  enableval=$enable_sniff;
6039else
6040  enable_sniff="no"
6041fi
6042
6043{ $as_echo "$as_me:$LINENO: result: $enable_sniff" >&5
6044$as_echo "$enable_sniff" >&6; }
6045if test "$enable_sniff" = "yes"; then
6046  cat >>confdefs.h <<\_ACEOF
6047#define FEAT_SNIFF 1
6048_ACEOF
6049
6050  SNIFF_SRC="if_sniff.c"
6051
6052  SNIFF_OBJ="objects/if_sniff.o"
6053
6054fi
6055
6056{ $as_echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
6057$as_echo_n "checking --enable-multibyte argument... " >&6; }
6058# Check whether --enable-multibyte was given.
6059if test "${enable_multibyte+set}" = set; then
6060  enableval=$enable_multibyte;
6061else
6062  enable_multibyte="no"
6063fi
6064
6065{ $as_echo "$as_me:$LINENO: result: $enable_multibyte" >&5
6066$as_echo "$enable_multibyte" >&6; }
6067if test "$enable_multibyte" = "yes"; then
6068  cat >>confdefs.h <<\_ACEOF
6069#define FEAT_MBYTE 1
6070_ACEOF
6071
6072fi
6073
6074{ $as_echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
6075$as_echo_n "checking --enable-hangulinput argument... " >&6; }
6076# Check whether --enable-hangulinput was given.
6077if test "${enable_hangulinput+set}" = set; then
6078  enableval=$enable_hangulinput;
6079else
6080  enable_hangulinput="no"
6081fi
6082
6083{ $as_echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
6084$as_echo "$enable_hangulinput" >&6; }
6085
6086{ $as_echo "$as_me:$LINENO: checking --enable-xim argument" >&5
6087$as_echo_n "checking --enable-xim argument... " >&6; }
6088# Check whether --enable-xim was given.
6089if test "${enable_xim+set}" = set; then
6090  enableval=$enable_xim; { $as_echo "$as_me:$LINENO: result: $enable_xim" >&5
6091$as_echo "$enable_xim" >&6; }
6092else
6093  enable_xim="auto"; { $as_echo "$as_me:$LINENO: result: defaulting to auto" >&5
6094$as_echo "defaulting to auto" >&6; }
6095fi
6096
6097
6098{ $as_echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
6099$as_echo_n "checking --enable-fontset argument... " >&6; }
6100# Check whether --enable-fontset was given.
6101if test "${enable_fontset+set}" = set; then
6102  enableval=$enable_fontset;
6103else
6104  enable_fontset="no"
6105fi
6106
6107{ $as_echo "$as_me:$LINENO: result: $enable_fontset" >&5
6108$as_echo "$enable_fontset" >&6; }
6109
6110test -z "$with_x" && with_x=yes
6111test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
6112if test "$with_x" = no; then
6113  { $as_echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
6114$as_echo "defaulting to: don't HAVE_X11" >&6; }
6115else
6116
6117  # Extract the first word of "xmkmf", so it can be a program name with args.
6118set dummy xmkmf; ac_word=$2
6119{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6120$as_echo_n "checking for $ac_word... " >&6; }
6121if test "${ac_cv_path_xmkmfpath+set}" = set; then
6122  $as_echo_n "(cached) " >&6
6123else
6124  case $xmkmfpath in
6125  [\\/]* | ?:[\\/]*)
6126  ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
6127  ;;
6128  *)
6129  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130for as_dir in $PATH
6131do
6132  IFS=$as_save_IFS
6133  test -z "$as_dir" && as_dir=.
6134  for ac_exec_ext in '' $ac_executable_extensions; do
6135  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6136    ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
6137    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6138    break 2
6139  fi
6140done
6141done
6142IFS=$as_save_IFS
6143
6144  ;;
6145esac
6146fi
6147xmkmfpath=$ac_cv_path_xmkmfpath
6148if test -n "$xmkmfpath"; then
6149  { $as_echo "$as_me:$LINENO: result: $xmkmfpath" >&5
6150$as_echo "$xmkmfpath" >&6; }
6151else
6152  { $as_echo "$as_me:$LINENO: result: no" >&5
6153$as_echo "no" >&6; }
6154fi
6155
6156
6157
6158  { $as_echo "$as_me:$LINENO: checking for X" >&5
6159$as_echo_n "checking for X... " >&6; }
6160
6161
6162# Check whether --with-x was given.
6163if test "${with_x+set}" = set; then
6164  withval=$with_x;
6165fi
6166
6167# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6168if test "x$with_x" = xno; then
6169  # The user explicitly disabled X.
6170  have_x=disabled
6171else
6172  case $x_includes,$x_libraries in #(
6173    *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
6174$as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
6175   { (exit 1); exit 1; }; };; #(
6176    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
6177  $as_echo_n "(cached) " >&6
6178else
6179  # One or both of the vars are not set, and there is no cached value.
6180ac_x_includes=no ac_x_libraries=no
6181rm -f -r conftest.dir
6182if mkdir conftest.dir; then
6183  cd conftest.dir
6184  cat >Imakefile <<'_ACEOF'
6185incroot:
6186	@echo incroot='${INCROOT}'
6187usrlibdir:
6188	@echo usrlibdir='${USRLIBDIR}'
6189libdir:
6190	@echo libdir='${LIBDIR}'
6191_ACEOF
6192  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6193    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6194    for ac_var in incroot usrlibdir libdir; do
6195      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6196    done
6197    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6198    for ac_extension in a so sl dylib la dll; do
6199      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6200	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6201	ac_im_usrlibdir=$ac_im_libdir; break
6202      fi
6203    done
6204    # Screen out bogus values from the imake configuration.  They are
6205    # bogus both because they are the default anyway, and because
6206    # using them would break gcc on systems where it needs fixed includes.
6207    case $ac_im_incroot in
6208	/usr/include) ac_x_includes= ;;
6209	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6210    esac
6211    case $ac_im_usrlibdir in
6212	/usr/lib | /lib) ;;
6213	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6214    esac
6215  fi
6216  cd ..
6217  rm -f -r conftest.dir
6218fi
6219
6220# Standard set of common directories for X headers.
6221# Check X11 before X11Rn because it is often a symlink to the current release.
6222ac_x_header_dirs='
6223/usr/X11/include
6224/usr/X11R6/include
6225/usr/X11R5/include
6226/usr/X11R4/include
6227
6228/usr/include/X11
6229/usr/include/X11R6
6230/usr/include/X11R5
6231/usr/include/X11R4
6232
6233/usr/local/X11/include
6234/usr/local/X11R6/include
6235/usr/local/X11R5/include
6236/usr/local/X11R4/include
6237
6238/usr/local/include/X11
6239/usr/local/include/X11R6
6240/usr/local/include/X11R5
6241/usr/local/include/X11R4
6242
6243/usr/X386/include
6244/usr/x386/include
6245/usr/XFree86/include/X11
6246
6247/usr/include
6248/usr/local/include
6249/usr/unsupported/include
6250/usr/athena/include
6251/usr/local/x11r5/include
6252/usr/lpp/Xamples/include
6253
6254/usr/openwin/include
6255/usr/openwin/share/include'
6256
6257if test "$ac_x_includes" = no; then
6258  # Guess where to find include files, by looking for Xlib.h.
6259  # First, try using that file with no special directory specified.
6260  cat >conftest.$ac_ext <<_ACEOF
6261/* confdefs.h.  */
6262_ACEOF
6263cat confdefs.h >>conftest.$ac_ext
6264cat >>conftest.$ac_ext <<_ACEOF
6265/* end confdefs.h.  */
6266#include <X11/Xlib.h>
6267_ACEOF
6268if { (ac_try="$ac_cpp conftest.$ac_ext"
6269case "(($ac_try" in
6270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6271  *) ac_try_echo=$ac_try;;
6272esac
6273eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6274$as_echo "$ac_try_echo") >&5
6275  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6276  ac_status=$?
6277  grep -v '^ *+' conftest.er1 >conftest.err
6278  rm -f conftest.er1
6279  cat conftest.err >&5
6280  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281  (exit $ac_status); } >/dev/null && {
6282	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6283	 test ! -s conftest.err
6284       }; then
6285  # We can compile using X headers with no special include directory.
6286ac_x_includes=
6287else
6288  $as_echo "$as_me: failed program was:" >&5
6289sed 's/^/| /' conftest.$ac_ext >&5
6290
6291  for ac_dir in $ac_x_header_dirs; do
6292  if test -r "$ac_dir/X11/Xlib.h"; then
6293    ac_x_includes=$ac_dir
6294    break
6295  fi
6296done
6297fi
6298
6299rm -f conftest.err conftest.$ac_ext
6300fi # $ac_x_includes = no
6301
6302if test "$ac_x_libraries" = no; then
6303  # Check for the libraries.
6304  # See if we find them without any special options.
6305  # Don't add to $LIBS permanently.
6306  ac_save_LIBS=$LIBS
6307  LIBS="-lX11 $LIBS"
6308  cat >conftest.$ac_ext <<_ACEOF
6309/* confdefs.h.  */
6310_ACEOF
6311cat confdefs.h >>conftest.$ac_ext
6312cat >>conftest.$ac_ext <<_ACEOF
6313/* end confdefs.h.  */
6314#include <X11/Xlib.h>
6315int
6316main ()
6317{
6318XrmInitialize ()
6319  ;
6320  return 0;
6321}
6322_ACEOF
6323rm -f conftest.$ac_objext conftest$ac_exeext
6324if { (ac_try="$ac_link"
6325case "(($ac_try" in
6326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6327  *) ac_try_echo=$ac_try;;
6328esac
6329eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6330$as_echo "$ac_try_echo") >&5
6331  (eval "$ac_link") 2>conftest.er1
6332  ac_status=$?
6333  grep -v '^ *+' conftest.er1 >conftest.err
6334  rm -f conftest.er1
6335  cat conftest.err >&5
6336  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337  (exit $ac_status); } && {
6338	 test -z "$ac_c_werror_flag" ||
6339	 test ! -s conftest.err
6340       } && test -s conftest$ac_exeext && {
6341	 test "$cross_compiling" = yes ||
6342	 $as_test_x conftest$ac_exeext
6343       }; then
6344  LIBS=$ac_save_LIBS
6345# We can link X programs with no special library path.
6346ac_x_libraries=
6347else
6348  $as_echo "$as_me: failed program was:" >&5
6349sed 's/^/| /' conftest.$ac_ext >&5
6350
6351	LIBS=$ac_save_LIBS
6352for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6353do
6354  # Don't even attempt the hair of trying to link an X program!
6355  for ac_extension in a so sl dylib la dll; do
6356    if test -r "$ac_dir/libX11.$ac_extension"; then
6357      ac_x_libraries=$ac_dir
6358      break 2
6359    fi
6360  done
6361done
6362fi
6363
6364rm -rf conftest.dSYM
6365rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6366      conftest$ac_exeext conftest.$ac_ext
6367fi # $ac_x_libraries = no
6368
6369case $ac_x_includes,$ac_x_libraries in #(
6370  no,* | *,no | *\'*)
6371    # Didn't find X, or a directory has "'" in its name.
6372    ac_cv_have_x="have_x=no";; #(
6373  *)
6374    # Record where we found X for the cache.
6375    ac_cv_have_x="have_x=yes\
6376	ac_x_includes='$ac_x_includes'\
6377	ac_x_libraries='$ac_x_libraries'"
6378esac
6379fi
6380;; #(
6381    *) have_x=yes;;
6382  esac
6383  eval "$ac_cv_have_x"
6384fi # $with_x != no
6385
6386if test "$have_x" != yes; then
6387  { $as_echo "$as_me:$LINENO: result: $have_x" >&5
6388$as_echo "$have_x" >&6; }
6389  no_x=yes
6390else
6391  # If each of the values was on the command line, it overrides each guess.
6392  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6393  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6394  # Update the cache value to reflect the command line values.
6395  ac_cv_have_x="have_x=yes\
6396	ac_x_includes='$x_includes'\
6397	ac_x_libraries='$x_libraries'"
6398  { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6399$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6400fi
6401
6402if test "$no_x" = yes; then
6403  # Not all programs may use this symbol, but it does not hurt to define it.
6404
6405cat >>confdefs.h <<\_ACEOF
6406#define X_DISPLAY_MISSING 1
6407_ACEOF
6408
6409  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6410else
6411  if test -n "$x_includes"; then
6412    X_CFLAGS="$X_CFLAGS -I$x_includes"
6413  fi
6414
6415  # It would also be nice to do this for all -L options, not just this one.
6416  if test -n "$x_libraries"; then
6417    X_LIBS="$X_LIBS -L$x_libraries"
6418    # For Solaris; some versions of Sun CC require a space after -R and
6419    # others require no space.  Words are not sufficient . . . .
6420    { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6421$as_echo_n "checking whether -R must be followed by a space... " >&6; }
6422    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6423    ac_xsave_c_werror_flag=$ac_c_werror_flag
6424    ac_c_werror_flag=yes
6425    cat >conftest.$ac_ext <<_ACEOF
6426/* confdefs.h.  */
6427_ACEOF
6428cat confdefs.h >>conftest.$ac_ext
6429cat >>conftest.$ac_ext <<_ACEOF
6430/* end confdefs.h.  */
6431
6432int
6433main ()
6434{
6435
6436  ;
6437  return 0;
6438}
6439_ACEOF
6440rm -f conftest.$ac_objext conftest$ac_exeext
6441if { (ac_try="$ac_link"
6442case "(($ac_try" in
6443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6444  *) ac_try_echo=$ac_try;;
6445esac
6446eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6447$as_echo "$ac_try_echo") >&5
6448  (eval "$ac_link") 2>conftest.er1
6449  ac_status=$?
6450  grep -v '^ *+' conftest.er1 >conftest.err
6451  rm -f conftest.er1
6452  cat conftest.err >&5
6453  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454  (exit $ac_status); } && {
6455	 test -z "$ac_c_werror_flag" ||
6456	 test ! -s conftest.err
6457       } && test -s conftest$ac_exeext && {
6458	 test "$cross_compiling" = yes ||
6459	 $as_test_x conftest$ac_exeext
6460       }; then
6461  { $as_echo "$as_me:$LINENO: result: no" >&5
6462$as_echo "no" >&6; }
6463       X_LIBS="$X_LIBS -R$x_libraries"
6464else
6465  $as_echo "$as_me: failed program was:" >&5
6466sed 's/^/| /' conftest.$ac_ext >&5
6467
6468	LIBS="$ac_xsave_LIBS -R $x_libraries"
6469       cat >conftest.$ac_ext <<_ACEOF
6470/* confdefs.h.  */
6471_ACEOF
6472cat confdefs.h >>conftest.$ac_ext
6473cat >>conftest.$ac_ext <<_ACEOF
6474/* end confdefs.h.  */
6475
6476int
6477main ()
6478{
6479
6480  ;
6481  return 0;
6482}
6483_ACEOF
6484rm -f conftest.$ac_objext conftest$ac_exeext
6485if { (ac_try="$ac_link"
6486case "(($ac_try" in
6487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6488  *) ac_try_echo=$ac_try;;
6489esac
6490eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6491$as_echo "$ac_try_echo") >&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  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498  (exit $ac_status); } && {
6499	 test -z "$ac_c_werror_flag" ||
6500	 test ! -s conftest.err
6501       } && test -s conftest$ac_exeext && {
6502	 test "$cross_compiling" = yes ||
6503	 $as_test_x conftest$ac_exeext
6504       }; then
6505  { $as_echo "$as_me:$LINENO: result: yes" >&5
6506$as_echo "yes" >&6; }
6507	  X_LIBS="$X_LIBS -R $x_libraries"
6508else
6509  $as_echo "$as_me: failed program was:" >&5
6510sed 's/^/| /' conftest.$ac_ext >&5
6511
6512	{ $as_echo "$as_me:$LINENO: result: neither works" >&5
6513$as_echo "neither works" >&6; }
6514fi
6515
6516rm -rf conftest.dSYM
6517rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6518      conftest$ac_exeext conftest.$ac_ext
6519fi
6520
6521rm -rf conftest.dSYM
6522rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6523      conftest$ac_exeext conftest.$ac_ext
6524    ac_c_werror_flag=$ac_xsave_c_werror_flag
6525    LIBS=$ac_xsave_LIBS
6526  fi
6527
6528  # Check for system-dependent libraries X programs must link with.
6529  # Do this before checking for the system-independent R6 libraries
6530  # (-lICE), since we may need -lsocket or whatever for X linking.
6531
6532  if test "$ISC" = yes; then
6533    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6534  else
6535    # Martyn Johnson says this is needed for Ultrix, if the X
6536    # libraries were built with DECnet support.  And Karl Berry says
6537    # the Alpha needs dnet_stub (dnet does not exist).
6538    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6539    cat >conftest.$ac_ext <<_ACEOF
6540/* confdefs.h.  */
6541_ACEOF
6542cat confdefs.h >>conftest.$ac_ext
6543cat >>conftest.$ac_ext <<_ACEOF
6544/* end confdefs.h.  */
6545
6546/* Override any GCC internal prototype to avoid an error.
6547   Use char because int might match the return type of a GCC
6548   builtin and then its argument prototype would still apply.  */
6549#ifdef __cplusplus
6550extern "C"
6551#endif
6552char XOpenDisplay ();
6553int
6554main ()
6555{
6556return XOpenDisplay ();
6557  ;
6558  return 0;
6559}
6560_ACEOF
6561rm -f conftest.$ac_objext conftest$ac_exeext
6562if { (ac_try="$ac_link"
6563case "(($ac_try" in
6564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6565  *) ac_try_echo=$ac_try;;
6566esac
6567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6568$as_echo "$ac_try_echo") >&5
6569  (eval "$ac_link") 2>conftest.er1
6570  ac_status=$?
6571  grep -v '^ *+' conftest.er1 >conftest.err
6572  rm -f conftest.er1
6573  cat conftest.err >&5
6574  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575  (exit $ac_status); } && {
6576	 test -z "$ac_c_werror_flag" ||
6577	 test ! -s conftest.err
6578       } && test -s conftest$ac_exeext && {
6579	 test "$cross_compiling" = yes ||
6580	 $as_test_x conftest$ac_exeext
6581       }; then
6582  :
6583else
6584  $as_echo "$as_me: failed program was:" >&5
6585sed 's/^/| /' conftest.$ac_ext >&5
6586
6587	{ $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6588$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6589if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6590  $as_echo_n "(cached) " >&6
6591else
6592  ac_check_lib_save_LIBS=$LIBS
6593LIBS="-ldnet  $LIBS"
6594cat >conftest.$ac_ext <<_ACEOF
6595/* confdefs.h.  */
6596_ACEOF
6597cat confdefs.h >>conftest.$ac_ext
6598cat >>conftest.$ac_ext <<_ACEOF
6599/* end confdefs.h.  */
6600
6601/* Override any GCC internal prototype to avoid an error.
6602   Use char because int might match the return type of a GCC
6603   builtin and then its argument prototype would still apply.  */
6604#ifdef __cplusplus
6605extern "C"
6606#endif
6607char dnet_ntoa ();
6608int
6609main ()
6610{
6611return dnet_ntoa ();
6612  ;
6613  return 0;
6614}
6615_ACEOF
6616rm -f conftest.$ac_objext conftest$ac_exeext
6617if { (ac_try="$ac_link"
6618case "(($ac_try" in
6619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6620  *) ac_try_echo=$ac_try;;
6621esac
6622eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6623$as_echo "$ac_try_echo") >&5
6624  (eval "$ac_link") 2>conftest.er1
6625  ac_status=$?
6626  grep -v '^ *+' conftest.er1 >conftest.err
6627  rm -f conftest.er1
6628  cat conftest.err >&5
6629  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630  (exit $ac_status); } && {
6631	 test -z "$ac_c_werror_flag" ||
6632	 test ! -s conftest.err
6633       } && test -s conftest$ac_exeext && {
6634	 test "$cross_compiling" = yes ||
6635	 $as_test_x conftest$ac_exeext
6636       }; then
6637  ac_cv_lib_dnet_dnet_ntoa=yes
6638else
6639  $as_echo "$as_me: failed program was:" >&5
6640sed 's/^/| /' conftest.$ac_ext >&5
6641
6642	ac_cv_lib_dnet_dnet_ntoa=no
6643fi
6644
6645rm -rf conftest.dSYM
6646rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6647      conftest$ac_exeext conftest.$ac_ext
6648LIBS=$ac_check_lib_save_LIBS
6649fi
6650{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6651$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6652if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6653  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6654fi
6655
6656    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6657      { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6658$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6659if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6660  $as_echo_n "(cached) " >&6
6661else
6662  ac_check_lib_save_LIBS=$LIBS
6663LIBS="-ldnet_stub  $LIBS"
6664cat >conftest.$ac_ext <<_ACEOF
6665/* confdefs.h.  */
6666_ACEOF
6667cat confdefs.h >>conftest.$ac_ext
6668cat >>conftest.$ac_ext <<_ACEOF
6669/* end confdefs.h.  */
6670
6671/* Override any GCC internal prototype to avoid an error.
6672   Use char because int might match the return type of a GCC
6673   builtin and then its argument prototype would still apply.  */
6674#ifdef __cplusplus
6675extern "C"
6676#endif
6677char dnet_ntoa ();
6678int
6679main ()
6680{
6681return dnet_ntoa ();
6682  ;
6683  return 0;
6684}
6685_ACEOF
6686rm -f conftest.$ac_objext conftest$ac_exeext
6687if { (ac_try="$ac_link"
6688case "(($ac_try" in
6689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6690  *) ac_try_echo=$ac_try;;
6691esac
6692eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6693$as_echo "$ac_try_echo") >&5
6694  (eval "$ac_link") 2>conftest.er1
6695  ac_status=$?
6696  grep -v '^ *+' conftest.er1 >conftest.err
6697  rm -f conftest.er1
6698  cat conftest.err >&5
6699  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700  (exit $ac_status); } && {
6701	 test -z "$ac_c_werror_flag" ||
6702	 test ! -s conftest.err
6703       } && test -s conftest$ac_exeext && {
6704	 test "$cross_compiling" = yes ||
6705	 $as_test_x conftest$ac_exeext
6706       }; then
6707  ac_cv_lib_dnet_stub_dnet_ntoa=yes
6708else
6709  $as_echo "$as_me: failed program was:" >&5
6710sed 's/^/| /' conftest.$ac_ext >&5
6711
6712	ac_cv_lib_dnet_stub_dnet_ntoa=no
6713fi
6714
6715rm -rf conftest.dSYM
6716rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6717      conftest$ac_exeext conftest.$ac_ext
6718LIBS=$ac_check_lib_save_LIBS
6719fi
6720{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6721$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6722if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6723  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6724fi
6725
6726    fi
6727fi
6728
6729rm -rf conftest.dSYM
6730rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6731      conftest$ac_exeext conftest.$ac_ext
6732    LIBS="$ac_xsave_LIBS"
6733
6734    # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
6735    # to get the SysV transport functions.
6736    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6737    # needs -lnsl.
6738    # The nsl library prevents programs from opening the X display
6739    # on Irix 5.2, according to T.E. Dickey.
6740    # The functions gethostbyname, getservbyname, and inet_addr are
6741    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6742    { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
6743$as_echo_n "checking for gethostbyname... " >&6; }
6744if test "${ac_cv_func_gethostbyname+set}" = set; then
6745  $as_echo_n "(cached) " >&6
6746else
6747  cat >conftest.$ac_ext <<_ACEOF
6748/* confdefs.h.  */
6749_ACEOF
6750cat confdefs.h >>conftest.$ac_ext
6751cat >>conftest.$ac_ext <<_ACEOF
6752/* end confdefs.h.  */
6753/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6754   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6755#define gethostbyname innocuous_gethostbyname
6756
6757/* System header to define __stub macros and hopefully few prototypes,
6758    which can conflict with char gethostbyname (); below.
6759    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6760    <limits.h> exists even on freestanding compilers.  */
6761
6762#ifdef __STDC__
6763# include <limits.h>
6764#else
6765# include <assert.h>
6766#endif
6767
6768#undef gethostbyname
6769
6770/* Override any GCC internal prototype to avoid an error.
6771   Use char because int might match the return type of a GCC
6772   builtin and then its argument prototype would still apply.  */
6773#ifdef __cplusplus
6774extern "C"
6775#endif
6776char gethostbyname ();
6777/* The GNU C library defines this for functions which it implements
6778    to always fail with ENOSYS.  Some functions are actually named
6779    something starting with __ and the normal name is an alias.  */
6780#if defined __stub_gethostbyname || defined __stub___gethostbyname
6781choke me
6782#endif
6783
6784int
6785main ()
6786{
6787return gethostbyname ();
6788  ;
6789  return 0;
6790}
6791_ACEOF
6792rm -f conftest.$ac_objext conftest$ac_exeext
6793if { (ac_try="$ac_link"
6794case "(($ac_try" in
6795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6796  *) ac_try_echo=$ac_try;;
6797esac
6798eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6799$as_echo "$ac_try_echo") >&5
6800  (eval "$ac_link") 2>conftest.er1
6801  ac_status=$?
6802  grep -v '^ *+' conftest.er1 >conftest.err
6803  rm -f conftest.er1
6804  cat conftest.err >&5
6805  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806  (exit $ac_status); } && {
6807	 test -z "$ac_c_werror_flag" ||
6808	 test ! -s conftest.err
6809       } && test -s conftest$ac_exeext && {
6810	 test "$cross_compiling" = yes ||
6811	 $as_test_x conftest$ac_exeext
6812       }; then
6813  ac_cv_func_gethostbyname=yes
6814else
6815  $as_echo "$as_me: failed program was:" >&5
6816sed 's/^/| /' conftest.$ac_ext >&5
6817
6818	ac_cv_func_gethostbyname=no
6819fi
6820
6821rm -rf conftest.dSYM
6822rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6823      conftest$ac_exeext conftest.$ac_ext
6824fi
6825{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6826$as_echo "$ac_cv_func_gethostbyname" >&6; }
6827
6828    if test $ac_cv_func_gethostbyname = no; then
6829      { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6830$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6831if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6832  $as_echo_n "(cached) " >&6
6833else
6834  ac_check_lib_save_LIBS=$LIBS
6835LIBS="-lnsl  $LIBS"
6836cat >conftest.$ac_ext <<_ACEOF
6837/* confdefs.h.  */
6838_ACEOF
6839cat confdefs.h >>conftest.$ac_ext
6840cat >>conftest.$ac_ext <<_ACEOF
6841/* end confdefs.h.  */
6842
6843/* Override any GCC internal prototype to avoid an error.
6844   Use char because int might match the return type of a GCC
6845   builtin and then its argument prototype would still apply.  */
6846#ifdef __cplusplus
6847extern "C"
6848#endif
6849char gethostbyname ();
6850int
6851main ()
6852{
6853return gethostbyname ();
6854  ;
6855  return 0;
6856}
6857_ACEOF
6858rm -f conftest.$ac_objext conftest$ac_exeext
6859if { (ac_try="$ac_link"
6860case "(($ac_try" in
6861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6862  *) ac_try_echo=$ac_try;;
6863esac
6864eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6865$as_echo "$ac_try_echo") >&5
6866  (eval "$ac_link") 2>conftest.er1
6867  ac_status=$?
6868  grep -v '^ *+' conftest.er1 >conftest.err
6869  rm -f conftest.er1
6870  cat conftest.err >&5
6871  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872  (exit $ac_status); } && {
6873	 test -z "$ac_c_werror_flag" ||
6874	 test ! -s conftest.err
6875       } && test -s conftest$ac_exeext && {
6876	 test "$cross_compiling" = yes ||
6877	 $as_test_x conftest$ac_exeext
6878       }; then
6879  ac_cv_lib_nsl_gethostbyname=yes
6880else
6881  $as_echo "$as_me: failed program was:" >&5
6882sed 's/^/| /' conftest.$ac_ext >&5
6883
6884	ac_cv_lib_nsl_gethostbyname=no
6885fi
6886
6887rm -rf conftest.dSYM
6888rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6889      conftest$ac_exeext conftest.$ac_ext
6890LIBS=$ac_check_lib_save_LIBS
6891fi
6892{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6893$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6894if test $ac_cv_lib_nsl_gethostbyname = yes; then
6895  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6896fi
6897
6898      if test $ac_cv_lib_nsl_gethostbyname = no; then
6899	{ $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6900$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6901if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6902  $as_echo_n "(cached) " >&6
6903else
6904  ac_check_lib_save_LIBS=$LIBS
6905LIBS="-lbsd  $LIBS"
6906cat >conftest.$ac_ext <<_ACEOF
6907/* confdefs.h.  */
6908_ACEOF
6909cat confdefs.h >>conftest.$ac_ext
6910cat >>conftest.$ac_ext <<_ACEOF
6911/* end confdefs.h.  */
6912
6913/* Override any GCC internal prototype to avoid an error.
6914   Use char because int might match the return type of a GCC
6915   builtin and then its argument prototype would still apply.  */
6916#ifdef __cplusplus
6917extern "C"
6918#endif
6919char gethostbyname ();
6920int
6921main ()
6922{
6923return gethostbyname ();
6924  ;
6925  return 0;
6926}
6927_ACEOF
6928rm -f conftest.$ac_objext conftest$ac_exeext
6929if { (ac_try="$ac_link"
6930case "(($ac_try" in
6931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6932  *) ac_try_echo=$ac_try;;
6933esac
6934eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6935$as_echo "$ac_try_echo") >&5
6936  (eval "$ac_link") 2>conftest.er1
6937  ac_status=$?
6938  grep -v '^ *+' conftest.er1 >conftest.err
6939  rm -f conftest.er1
6940  cat conftest.err >&5
6941  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942  (exit $ac_status); } && {
6943	 test -z "$ac_c_werror_flag" ||
6944	 test ! -s conftest.err
6945       } && test -s conftest$ac_exeext && {
6946	 test "$cross_compiling" = yes ||
6947	 $as_test_x conftest$ac_exeext
6948       }; then
6949  ac_cv_lib_bsd_gethostbyname=yes
6950else
6951  $as_echo "$as_me: failed program was:" >&5
6952sed 's/^/| /' conftest.$ac_ext >&5
6953
6954	ac_cv_lib_bsd_gethostbyname=no
6955fi
6956
6957rm -rf conftest.dSYM
6958rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6959      conftest$ac_exeext conftest.$ac_ext
6960LIBS=$ac_check_lib_save_LIBS
6961fi
6962{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6963$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
6964if test $ac_cv_lib_bsd_gethostbyname = yes; then
6965  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6966fi
6967
6968      fi
6969    fi
6970
6971    # [email protected] says without -lsocket,
6972    # socket/setsockopt and other routines are undefined under SCO ODT
6973    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
6974    # on later versions), says Simon Leinen: it contains gethostby*
6975    # variants that don't use the name server (or something).  -lsocket
6976    # must be given before -lnsl if both are needed.  We assume that
6977    # if connect needs -lnsl, so does gethostbyname.
6978    { $as_echo "$as_me:$LINENO: checking for connect" >&5
6979$as_echo_n "checking for connect... " >&6; }
6980if test "${ac_cv_func_connect+set}" = set; then
6981  $as_echo_n "(cached) " >&6
6982else
6983  cat >conftest.$ac_ext <<_ACEOF
6984/* confdefs.h.  */
6985_ACEOF
6986cat confdefs.h >>conftest.$ac_ext
6987cat >>conftest.$ac_ext <<_ACEOF
6988/* end confdefs.h.  */
6989/* Define connect to an innocuous variant, in case <limits.h> declares connect.
6990   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6991#define connect innocuous_connect
6992
6993/* System header to define __stub macros and hopefully few prototypes,
6994    which can conflict with char connect (); below.
6995    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6996    <limits.h> exists even on freestanding compilers.  */
6997
6998#ifdef __STDC__
6999# include <limits.h>
7000#else
7001# include <assert.h>
7002#endif
7003
7004#undef connect
7005
7006/* Override any GCC internal prototype to avoid an error.
7007   Use char because int might match the return type of a GCC
7008   builtin and then its argument prototype would still apply.  */
7009#ifdef __cplusplus
7010extern "C"
7011#endif
7012char connect ();
7013/* The GNU C library defines this for functions which it implements
7014    to always fail with ENOSYS.  Some functions are actually named
7015    something starting with __ and the normal name is an alias.  */
7016#if defined __stub_connect || defined __stub___connect
7017choke me
7018#endif
7019
7020int
7021main ()
7022{
7023return connect ();
7024  ;
7025  return 0;
7026}
7027_ACEOF
7028rm -f conftest.$ac_objext conftest$ac_exeext
7029if { (ac_try="$ac_link"
7030case "(($ac_try" in
7031  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7032  *) ac_try_echo=$ac_try;;
7033esac
7034eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7035$as_echo "$ac_try_echo") >&5
7036  (eval "$ac_link") 2>conftest.er1
7037  ac_status=$?
7038  grep -v '^ *+' conftest.er1 >conftest.err
7039  rm -f conftest.er1
7040  cat conftest.err >&5
7041  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042  (exit $ac_status); } && {
7043	 test -z "$ac_c_werror_flag" ||
7044	 test ! -s conftest.err
7045       } && test -s conftest$ac_exeext && {
7046	 test "$cross_compiling" = yes ||
7047	 $as_test_x conftest$ac_exeext
7048       }; then
7049  ac_cv_func_connect=yes
7050else
7051  $as_echo "$as_me: failed program was:" >&5
7052sed 's/^/| /' conftest.$ac_ext >&5
7053
7054	ac_cv_func_connect=no
7055fi
7056
7057rm -rf conftest.dSYM
7058rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7059      conftest$ac_exeext conftest.$ac_ext
7060fi
7061{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7062$as_echo "$ac_cv_func_connect" >&6; }
7063
7064    if test $ac_cv_func_connect = no; then
7065      { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7066$as_echo_n "checking for connect in -lsocket... " >&6; }
7067if test "${ac_cv_lib_socket_connect+set}" = set; then
7068  $as_echo_n "(cached) " >&6
7069else
7070  ac_check_lib_save_LIBS=$LIBS
7071LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7072cat >conftest.$ac_ext <<_ACEOF
7073/* confdefs.h.  */
7074_ACEOF
7075cat confdefs.h >>conftest.$ac_ext
7076cat >>conftest.$ac_ext <<_ACEOF
7077/* end confdefs.h.  */
7078
7079/* Override any GCC internal prototype to avoid an error.
7080   Use char because int might match the return type of a GCC
7081   builtin and then its argument prototype would still apply.  */
7082#ifdef __cplusplus
7083extern "C"
7084#endif
7085char connect ();
7086int
7087main ()
7088{
7089return connect ();
7090  ;
7091  return 0;
7092}
7093_ACEOF
7094rm -f conftest.$ac_objext conftest$ac_exeext
7095if { (ac_try="$ac_link"
7096case "(($ac_try" in
7097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7098  *) ac_try_echo=$ac_try;;
7099esac
7100eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7101$as_echo "$ac_try_echo") >&5
7102  (eval "$ac_link") 2>conftest.er1
7103  ac_status=$?
7104  grep -v '^ *+' conftest.er1 >conftest.err
7105  rm -f conftest.er1
7106  cat conftest.err >&5
7107  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108  (exit $ac_status); } && {
7109	 test -z "$ac_c_werror_flag" ||
7110	 test ! -s conftest.err
7111       } && test -s conftest$ac_exeext && {
7112	 test "$cross_compiling" = yes ||
7113	 $as_test_x conftest$ac_exeext
7114       }; then
7115  ac_cv_lib_socket_connect=yes
7116else
7117  $as_echo "$as_me: failed program was:" >&5
7118sed 's/^/| /' conftest.$ac_ext >&5
7119
7120	ac_cv_lib_socket_connect=no
7121fi
7122
7123rm -rf conftest.dSYM
7124rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7125      conftest$ac_exeext conftest.$ac_ext
7126LIBS=$ac_check_lib_save_LIBS
7127fi
7128{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7129$as_echo "$ac_cv_lib_socket_connect" >&6; }
7130if test $ac_cv_lib_socket_connect = yes; then
7131  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7132fi
7133
7134    fi
7135
7136    # Guillermo Gomez says -lposix is necessary on A/UX.
7137    { $as_echo "$as_me:$LINENO: checking for remove" >&5
7138$as_echo_n "checking for remove... " >&6; }
7139if test "${ac_cv_func_remove+set}" = set; then
7140  $as_echo_n "(cached) " >&6
7141else
7142  cat >conftest.$ac_ext <<_ACEOF
7143/* confdefs.h.  */
7144_ACEOF
7145cat confdefs.h >>conftest.$ac_ext
7146cat >>conftest.$ac_ext <<_ACEOF
7147/* end confdefs.h.  */
7148/* Define remove to an innocuous variant, in case <limits.h> declares remove.
7149   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7150#define remove innocuous_remove
7151
7152/* System header to define __stub macros and hopefully few prototypes,
7153    which can conflict with char remove (); below.
7154    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7155    <limits.h> exists even on freestanding compilers.  */
7156
7157#ifdef __STDC__
7158# include <limits.h>
7159#else
7160# include <assert.h>
7161#endif
7162
7163#undef remove
7164
7165/* Override any GCC internal prototype to avoid an error.
7166   Use char because int might match the return type of a GCC
7167   builtin and then its argument prototype would still apply.  */
7168#ifdef __cplusplus
7169extern "C"
7170#endif
7171char remove ();
7172/* The GNU C library defines this for functions which it implements
7173    to always fail with ENOSYS.  Some functions are actually named
7174    something starting with __ and the normal name is an alias.  */
7175#if defined __stub_remove || defined __stub___remove
7176choke me
7177#endif
7178
7179int
7180main ()
7181{
7182return remove ();
7183  ;
7184  return 0;
7185}
7186_ACEOF
7187rm -f conftest.$ac_objext conftest$ac_exeext
7188if { (ac_try="$ac_link"
7189case "(($ac_try" in
7190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7191  *) ac_try_echo=$ac_try;;
7192esac
7193eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7194$as_echo "$ac_try_echo") >&5
7195  (eval "$ac_link") 2>conftest.er1
7196  ac_status=$?
7197  grep -v '^ *+' conftest.er1 >conftest.err
7198  rm -f conftest.er1
7199  cat conftest.err >&5
7200  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201  (exit $ac_status); } && {
7202	 test -z "$ac_c_werror_flag" ||
7203	 test ! -s conftest.err
7204       } && test -s conftest$ac_exeext && {
7205	 test "$cross_compiling" = yes ||
7206	 $as_test_x conftest$ac_exeext
7207       }; then
7208  ac_cv_func_remove=yes
7209else
7210  $as_echo "$as_me: failed program was:" >&5
7211sed 's/^/| /' conftest.$ac_ext >&5
7212
7213	ac_cv_func_remove=no
7214fi
7215
7216rm -rf conftest.dSYM
7217rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7218      conftest$ac_exeext conftest.$ac_ext
7219fi
7220{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7221$as_echo "$ac_cv_func_remove" >&6; }
7222
7223    if test $ac_cv_func_remove = no; then
7224      { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7225$as_echo_n "checking for remove in -lposix... " >&6; }
7226if test "${ac_cv_lib_posix_remove+set}" = set; then
7227  $as_echo_n "(cached) " >&6
7228else
7229  ac_check_lib_save_LIBS=$LIBS
7230LIBS="-lposix  $LIBS"
7231cat >conftest.$ac_ext <<_ACEOF
7232/* confdefs.h.  */
7233_ACEOF
7234cat confdefs.h >>conftest.$ac_ext
7235cat >>conftest.$ac_ext <<_ACEOF
7236/* end confdefs.h.  */
7237
7238/* Override any GCC internal prototype to avoid an error.
7239   Use char because int might match the return type of a GCC
7240   builtin and then its argument prototype would still apply.  */
7241#ifdef __cplusplus
7242extern "C"
7243#endif
7244char remove ();
7245int
7246main ()
7247{
7248return remove ();
7249  ;
7250  return 0;
7251}
7252_ACEOF
7253rm -f conftest.$ac_objext conftest$ac_exeext
7254if { (ac_try="$ac_link"
7255case "(($ac_try" in
7256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7257  *) ac_try_echo=$ac_try;;
7258esac
7259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7260$as_echo "$ac_try_echo") >&5
7261  (eval "$ac_link") 2>conftest.er1
7262  ac_status=$?
7263  grep -v '^ *+' conftest.er1 >conftest.err
7264  rm -f conftest.er1
7265  cat conftest.err >&5
7266  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267  (exit $ac_status); } && {
7268	 test -z "$ac_c_werror_flag" ||
7269	 test ! -s conftest.err
7270       } && test -s conftest$ac_exeext && {
7271	 test "$cross_compiling" = yes ||
7272	 $as_test_x conftest$ac_exeext
7273       }; then
7274  ac_cv_lib_posix_remove=yes
7275else
7276  $as_echo "$as_me: failed program was:" >&5
7277sed 's/^/| /' conftest.$ac_ext >&5
7278
7279	ac_cv_lib_posix_remove=no
7280fi
7281
7282rm -rf conftest.dSYM
7283rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7284      conftest$ac_exeext conftest.$ac_ext
7285LIBS=$ac_check_lib_save_LIBS
7286fi
7287{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7288$as_echo "$ac_cv_lib_posix_remove" >&6; }
7289if test $ac_cv_lib_posix_remove = yes; then
7290  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7291fi
7292
7293    fi
7294
7295    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7296    { $as_echo "$as_me:$LINENO: checking for shmat" >&5
7297$as_echo_n "checking for shmat... " >&6; }
7298if test "${ac_cv_func_shmat+set}" = set; then
7299  $as_echo_n "(cached) " >&6
7300else
7301  cat >conftest.$ac_ext <<_ACEOF
7302/* confdefs.h.  */
7303_ACEOF
7304cat confdefs.h >>conftest.$ac_ext
7305cat >>conftest.$ac_ext <<_ACEOF
7306/* end confdefs.h.  */
7307/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7308   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7309#define shmat innocuous_shmat
7310
7311/* System header to define __stub macros and hopefully few prototypes,
7312    which can conflict with char shmat (); below.
7313    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7314    <limits.h> exists even on freestanding compilers.  */
7315
7316#ifdef __STDC__
7317# include <limits.h>
7318#else
7319# include <assert.h>
7320#endif
7321
7322#undef shmat
7323
7324/* Override any GCC internal prototype to avoid an error.
7325   Use char because int might match the return type of a GCC
7326   builtin and then its argument prototype would still apply.  */
7327#ifdef __cplusplus
7328extern "C"
7329#endif
7330char shmat ();
7331/* The GNU C library defines this for functions which it implements
7332    to always fail with ENOSYS.  Some functions are actually named
7333    something starting with __ and the normal name is an alias.  */
7334#if defined __stub_shmat || defined __stub___shmat
7335choke me
7336#endif
7337
7338int
7339main ()
7340{
7341return shmat ();
7342  ;
7343  return 0;
7344}
7345_ACEOF
7346rm -f conftest.$ac_objext conftest$ac_exeext
7347if { (ac_try="$ac_link"
7348case "(($ac_try" in
7349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7350  *) ac_try_echo=$ac_try;;
7351esac
7352eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7353$as_echo "$ac_try_echo") >&5
7354  (eval "$ac_link") 2>conftest.er1
7355  ac_status=$?
7356  grep -v '^ *+' conftest.er1 >conftest.err
7357  rm -f conftest.er1
7358  cat conftest.err >&5
7359  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360  (exit $ac_status); } && {
7361	 test -z "$ac_c_werror_flag" ||
7362	 test ! -s conftest.err
7363       } && test -s conftest$ac_exeext && {
7364	 test "$cross_compiling" = yes ||
7365	 $as_test_x conftest$ac_exeext
7366       }; then
7367  ac_cv_func_shmat=yes
7368else
7369  $as_echo "$as_me: failed program was:" >&5
7370sed 's/^/| /' conftest.$ac_ext >&5
7371
7372	ac_cv_func_shmat=no
7373fi
7374
7375rm -rf conftest.dSYM
7376rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7377      conftest$ac_exeext conftest.$ac_ext
7378fi
7379{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7380$as_echo "$ac_cv_func_shmat" >&6; }
7381
7382    if test $ac_cv_func_shmat = no; then
7383      { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7384$as_echo_n "checking for shmat in -lipc... " >&6; }
7385if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7386  $as_echo_n "(cached) " >&6
7387else
7388  ac_check_lib_save_LIBS=$LIBS
7389LIBS="-lipc  $LIBS"
7390cat >conftest.$ac_ext <<_ACEOF
7391/* confdefs.h.  */
7392_ACEOF
7393cat confdefs.h >>conftest.$ac_ext
7394cat >>conftest.$ac_ext <<_ACEOF
7395/* end confdefs.h.  */
7396
7397/* Override any GCC internal prototype to avoid an error.
7398   Use char because int might match the return type of a GCC
7399   builtin and then its argument prototype would still apply.  */
7400#ifdef __cplusplus
7401extern "C"
7402#endif
7403char shmat ();
7404int
7405main ()
7406{
7407return shmat ();
7408  ;
7409  return 0;
7410}
7411_ACEOF
7412rm -f conftest.$ac_objext conftest$ac_exeext
7413if { (ac_try="$ac_link"
7414case "(($ac_try" in
7415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7416  *) ac_try_echo=$ac_try;;
7417esac
7418eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7419$as_echo "$ac_try_echo") >&5
7420  (eval "$ac_link") 2>conftest.er1
7421  ac_status=$?
7422  grep -v '^ *+' conftest.er1 >conftest.err
7423  rm -f conftest.er1
7424  cat conftest.err >&5
7425  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426  (exit $ac_status); } && {
7427	 test -z "$ac_c_werror_flag" ||
7428	 test ! -s conftest.err
7429       } && test -s conftest$ac_exeext && {
7430	 test "$cross_compiling" = yes ||
7431	 $as_test_x conftest$ac_exeext
7432       }; then
7433  ac_cv_lib_ipc_shmat=yes
7434else
7435  $as_echo "$as_me: failed program was:" >&5
7436sed 's/^/| /' conftest.$ac_ext >&5
7437
7438	ac_cv_lib_ipc_shmat=no
7439fi
7440
7441rm -rf conftest.dSYM
7442rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7443      conftest$ac_exeext conftest.$ac_ext
7444LIBS=$ac_check_lib_save_LIBS
7445fi
7446{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7447$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7448if test $ac_cv_lib_ipc_shmat = yes; then
7449  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7450fi
7451
7452    fi
7453  fi
7454
7455  # Check for libraries that X11R6 Xt/Xaw programs need.
7456  ac_save_LDFLAGS=$LDFLAGS
7457  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7458  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7459  # check for ICE first), but we must link in the order -lSM -lICE or
7460  # we get undefined symbols.  So assume we have SM if we have ICE.
7461  # These have to be linked with before -lX11, unlike the other
7462  # libraries we check for below, so use a different variable.
7463  # John Interrante, Karl Berry
7464  { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7465$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7466if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7467  $as_echo_n "(cached) " >&6
7468else
7469  ac_check_lib_save_LIBS=$LIBS
7470LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7471cat >conftest.$ac_ext <<_ACEOF
7472/* confdefs.h.  */
7473_ACEOF
7474cat confdefs.h >>conftest.$ac_ext
7475cat >>conftest.$ac_ext <<_ACEOF
7476/* end confdefs.h.  */
7477
7478/* Override any GCC internal prototype to avoid an error.
7479   Use char because int might match the return type of a GCC
7480   builtin and then its argument prototype would still apply.  */
7481#ifdef __cplusplus
7482extern "C"
7483#endif
7484char IceConnectionNumber ();
7485int
7486main ()
7487{
7488return IceConnectionNumber ();
7489  ;
7490  return 0;
7491}
7492_ACEOF
7493rm -f conftest.$ac_objext conftest$ac_exeext
7494if { (ac_try="$ac_link"
7495case "(($ac_try" in
7496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7497  *) ac_try_echo=$ac_try;;
7498esac
7499eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7500$as_echo "$ac_try_echo") >&5
7501  (eval "$ac_link") 2>conftest.er1
7502  ac_status=$?
7503  grep -v '^ *+' conftest.er1 >conftest.err
7504  rm -f conftest.er1
7505  cat conftest.err >&5
7506  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507  (exit $ac_status); } && {
7508	 test -z "$ac_c_werror_flag" ||
7509	 test ! -s conftest.err
7510       } && test -s conftest$ac_exeext && {
7511	 test "$cross_compiling" = yes ||
7512	 $as_test_x conftest$ac_exeext
7513       }; then
7514  ac_cv_lib_ICE_IceConnectionNumber=yes
7515else
7516  $as_echo "$as_me: failed program was:" >&5
7517sed 's/^/| /' conftest.$ac_ext >&5
7518
7519	ac_cv_lib_ICE_IceConnectionNumber=no
7520fi
7521
7522rm -rf conftest.dSYM
7523rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7524      conftest$ac_exeext conftest.$ac_ext
7525LIBS=$ac_check_lib_save_LIBS
7526fi
7527{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7528$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7529if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7530  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7531fi
7532
7533  LDFLAGS=$ac_save_LDFLAGS
7534
7535fi
7536
7537
7538        if test "$OS390Unix" = "yes"; then
7539    CFLAGS="$CFLAGS -W c,dll"
7540    LDFLAGS="$LDFLAGS -W l,dll"
7541    X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
7542  fi
7543
7544
7545  if test -d "$x_includes" && test ! -d "$x_libraries"; then
7546    x_libraries=`echo "$x_includes" | sed s/include/lib/`
7547    { $as_echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
7548$as_echo "Corrected X libraries to $x_libraries" >&6; }
7549    X_LIBS="$X_LIBS -L$x_libraries"
7550    if test "`(uname) 2>/dev/null`" = SunOS &&
7551					 uname -r | grep '^5' >/dev/null; then
7552      X_LIBS="$X_LIBS -R $x_libraries"
7553    fi
7554  fi
7555
7556  if test -d "$x_libraries" && test ! -d "$x_includes"; then
7557    x_includes=`echo "$x_libraries" | sed s/lib/include/`
7558    { $as_echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
7559$as_echo "Corrected X includes to $x_includes" >&6; }
7560    X_CFLAGS="$X_CFLAGS -I$x_includes"
7561  fi
7562
7563    X_CFLAGS="`echo $X_CFLAGS\  | sed 's%-I/usr/include %%'`"
7564    X_LIBS="`echo $X_LIBS\  | sed 's%-L/usr/lib %%'`"
7565    X_LIBS="`echo $X_LIBS\  | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
7566
7567
7568      { $as_echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
7569$as_echo_n "checking if X11 header files can be found... " >&6; }
7570  cflags_save=$CFLAGS
7571  CFLAGS="$CFLAGS $X_CFLAGS"
7572  cat >conftest.$ac_ext <<_ACEOF
7573/* confdefs.h.  */
7574_ACEOF
7575cat confdefs.h >>conftest.$ac_ext
7576cat >>conftest.$ac_ext <<_ACEOF
7577/* end confdefs.h.  */
7578#include <X11/Xlib.h>
7579int
7580main ()
7581{
7582
7583  ;
7584  return 0;
7585}
7586_ACEOF
7587rm -f conftest.$ac_objext
7588if { (ac_try="$ac_compile"
7589case "(($ac_try" in
7590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7591  *) ac_try_echo=$ac_try;;
7592esac
7593eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7594$as_echo "$ac_try_echo") >&5
7595  (eval "$ac_compile") 2>conftest.er1
7596  ac_status=$?
7597  grep -v '^ *+' conftest.er1 >conftest.err
7598  rm -f conftest.er1
7599  cat conftest.err >&5
7600  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601  (exit $ac_status); } && {
7602	 test -z "$ac_c_werror_flag" ||
7603	 test ! -s conftest.err
7604       } && test -s conftest.$ac_objext; then
7605  { $as_echo "$as_me:$LINENO: result: yes" >&5
7606$as_echo "yes" >&6; }
7607else
7608  $as_echo "$as_me: failed program was:" >&5
7609sed 's/^/| /' conftest.$ac_ext >&5
7610
7611	{ $as_echo "$as_me:$LINENO: result: no" >&5
7612$as_echo "no" >&6; }; no_x=yes
7613fi
7614
7615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7616  CFLAGS=$cflags_save
7617
7618  if test "${no_x-no}" = yes; then
7619    with_x=no
7620  else
7621    cat >>confdefs.h <<\_ACEOF
7622#define HAVE_X11 1
7623_ACEOF
7624
7625    X_LIB="-lXt -lX11";
7626
7627
7628    ac_save_LDFLAGS="$LDFLAGS"
7629    LDFLAGS="-L$x_libraries $LDFLAGS"
7630
7631            { $as_echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
7632$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
7633if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
7634  $as_echo_n "(cached) " >&6
7635else
7636  ac_check_lib_save_LIBS=$LIBS
7637LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
7638cat >conftest.$ac_ext <<_ACEOF
7639/* confdefs.h.  */
7640_ACEOF
7641cat confdefs.h >>conftest.$ac_ext
7642cat >>conftest.$ac_ext <<_ACEOF
7643/* end confdefs.h.  */
7644
7645/* Override any GCC internal prototype to avoid an error.
7646   Use char because int might match the return type of a GCC
7647   builtin and then its argument prototype would still apply.  */
7648#ifdef __cplusplus
7649extern "C"
7650#endif
7651char _XdmcpAuthDoIt ();
7652int
7653main ()
7654{
7655return _XdmcpAuthDoIt ();
7656  ;
7657  return 0;
7658}
7659_ACEOF
7660rm -f conftest.$ac_objext conftest$ac_exeext
7661if { (ac_try="$ac_link"
7662case "(($ac_try" in
7663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7664  *) ac_try_echo=$ac_try;;
7665esac
7666eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7667$as_echo "$ac_try_echo") >&5
7668  (eval "$ac_link") 2>conftest.er1
7669  ac_status=$?
7670  grep -v '^ *+' conftest.er1 >conftest.err
7671  rm -f conftest.er1
7672  cat conftest.err >&5
7673  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674  (exit $ac_status); } && {
7675	 test -z "$ac_c_werror_flag" ||
7676	 test ! -s conftest.err
7677       } && test -s conftest$ac_exeext && {
7678	 test "$cross_compiling" = yes ||
7679	 $as_test_x conftest$ac_exeext
7680       }; then
7681  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
7682else
7683  $as_echo "$as_me: failed program was:" >&5
7684sed 's/^/| /' conftest.$ac_ext >&5
7685
7686	ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
7687fi
7688
7689rm -rf conftest.dSYM
7690rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7691      conftest$ac_exeext conftest.$ac_ext
7692LIBS=$ac_check_lib_save_LIBS
7693fi
7694{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
7695$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
7696if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
7697  X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
7698fi
7699
7700
7701                    { $as_echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
7702$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
7703if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
7704  $as_echo_n "(cached) " >&6
7705else
7706  ac_check_lib_save_LIBS=$LIBS
7707LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7708cat >conftest.$ac_ext <<_ACEOF
7709/* confdefs.h.  */
7710_ACEOF
7711cat confdefs.h >>conftest.$ac_ext
7712cat >>conftest.$ac_ext <<_ACEOF
7713/* end confdefs.h.  */
7714
7715/* Override any GCC internal prototype to avoid an error.
7716   Use char because int might match the return type of a GCC
7717   builtin and then its argument prototype would still apply.  */
7718#ifdef __cplusplus
7719extern "C"
7720#endif
7721char IceOpenConnection ();
7722int
7723main ()
7724{
7725return IceOpenConnection ();
7726  ;
7727  return 0;
7728}
7729_ACEOF
7730rm -f conftest.$ac_objext conftest$ac_exeext
7731if { (ac_try="$ac_link"
7732case "(($ac_try" in
7733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7734  *) ac_try_echo=$ac_try;;
7735esac
7736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7737$as_echo "$ac_try_echo") >&5
7738  (eval "$ac_link") 2>conftest.er1
7739  ac_status=$?
7740  grep -v '^ *+' conftest.er1 >conftest.err
7741  rm -f conftest.er1
7742  cat conftest.err >&5
7743  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744  (exit $ac_status); } && {
7745	 test -z "$ac_c_werror_flag" ||
7746	 test ! -s conftest.err
7747       } && test -s conftest$ac_exeext && {
7748	 test "$cross_compiling" = yes ||
7749	 $as_test_x conftest$ac_exeext
7750       }; then
7751  ac_cv_lib_ICE_IceOpenConnection=yes
7752else
7753  $as_echo "$as_me: failed program was:" >&5
7754sed 's/^/| /' conftest.$ac_ext >&5
7755
7756	ac_cv_lib_ICE_IceOpenConnection=no
7757fi
7758
7759rm -rf conftest.dSYM
7760rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7761      conftest$ac_exeext conftest.$ac_ext
7762LIBS=$ac_check_lib_save_LIBS
7763fi
7764{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
7765$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
7766if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
7767  X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
7768fi
7769
7770
7771        LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
7772    { $as_echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7773$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
7774if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7775  $as_echo_n "(cached) " >&6
7776else
7777  ac_check_lib_save_LIBS=$LIBS
7778LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7779cat >conftest.$ac_ext <<_ACEOF
7780/* confdefs.h.  */
7781_ACEOF
7782cat confdefs.h >>conftest.$ac_ext
7783cat >>conftest.$ac_ext <<_ACEOF
7784/* end confdefs.h.  */
7785
7786/* Override any GCC internal prototype to avoid an error.
7787   Use char because int might match the return type of a GCC
7788   builtin and then its argument prototype would still apply.  */
7789#ifdef __cplusplus
7790extern "C"
7791#endif
7792char XpmCreatePixmapFromData ();
7793int
7794main ()
7795{
7796return XpmCreatePixmapFromData ();
7797  ;
7798  return 0;
7799}
7800_ACEOF
7801rm -f conftest.$ac_objext conftest$ac_exeext
7802if { (ac_try="$ac_link"
7803case "(($ac_try" in
7804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7805  *) ac_try_echo=$ac_try;;
7806esac
7807eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7808$as_echo "$ac_try_echo") >&5
7809  (eval "$ac_link") 2>conftest.er1
7810  ac_status=$?
7811  grep -v '^ *+' conftest.er1 >conftest.err
7812  rm -f conftest.er1
7813  cat conftest.err >&5
7814  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815  (exit $ac_status); } && {
7816	 test -z "$ac_c_werror_flag" ||
7817	 test ! -s conftest.err
7818       } && test -s conftest$ac_exeext && {
7819	 test "$cross_compiling" = yes ||
7820	 $as_test_x conftest$ac_exeext
7821       }; then
7822  ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
7823else
7824  $as_echo "$as_me: failed program was:" >&5
7825sed 's/^/| /' conftest.$ac_ext >&5
7826
7827	ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
7828fi
7829
7830rm -rf conftest.dSYM
7831rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7832      conftest$ac_exeext conftest.$ac_ext
7833LIBS=$ac_check_lib_save_LIBS
7834fi
7835{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7836$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
7837if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
7838  X_PRE_LIBS="$X_PRE_LIBS -lXpm"
7839fi
7840
7841
7842        { $as_echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
7843$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
7844    cflags_save=$CFLAGS
7845    CFLAGS="$CFLAGS $X_CFLAGS -Werror"
7846    cat >conftest.$ac_ext <<_ACEOF
7847/* confdefs.h.  */
7848_ACEOF
7849cat confdefs.h >>conftest.$ac_ext
7850cat >>conftest.$ac_ext <<_ACEOF
7851/* end confdefs.h.  */
7852#include <X11/Xlib.h>
7853int
7854main ()
7855{
7856
7857  ;
7858  return 0;
7859}
7860_ACEOF
7861rm -f conftest.$ac_objext
7862if { (ac_try="$ac_compile"
7863case "(($ac_try" in
7864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7865  *) ac_try_echo=$ac_try;;
7866esac
7867eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7868$as_echo "$ac_try_echo") >&5
7869  (eval "$ac_compile") 2>conftest.er1
7870  ac_status=$?
7871  grep -v '^ *+' conftest.er1 >conftest.err
7872  rm -f conftest.er1
7873  cat conftest.err >&5
7874  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875  (exit $ac_status); } && {
7876	 test -z "$ac_c_werror_flag" ||
7877	 test ! -s conftest.err
7878       } && test -s conftest.$ac_objext; then
7879  { $as_echo "$as_me:$LINENO: result: no" >&5
7880$as_echo "no" >&6; }
7881else
7882  $as_echo "$as_me: failed program was:" >&5
7883sed 's/^/| /' conftest.$ac_ext >&5
7884
7885	CFLAGS="$CFLAGS -Wno-implicit-int"
7886	cat >conftest.$ac_ext <<_ACEOF
7887/* confdefs.h.  */
7888_ACEOF
7889cat confdefs.h >>conftest.$ac_ext
7890cat >>conftest.$ac_ext <<_ACEOF
7891/* end confdefs.h.  */
7892#include <X11/Xlib.h>
7893int
7894main ()
7895{
7896
7897  ;
7898  return 0;
7899}
7900_ACEOF
7901rm -f conftest.$ac_objext
7902if { (ac_try="$ac_compile"
7903case "(($ac_try" in
7904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7905  *) ac_try_echo=$ac_try;;
7906esac
7907eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7908$as_echo "$ac_try_echo") >&5
7909  (eval "$ac_compile") 2>conftest.er1
7910  ac_status=$?
7911  grep -v '^ *+' conftest.er1 >conftest.err
7912  rm -f conftest.er1
7913  cat conftest.err >&5
7914  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915  (exit $ac_status); } && {
7916	 test -z "$ac_c_werror_flag" ||
7917	 test ! -s conftest.err
7918       } && test -s conftest.$ac_objext; then
7919  { $as_echo "$as_me:$LINENO: result: yes" >&5
7920$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
7921else
7922  $as_echo "$as_me: failed program was:" >&5
7923sed 's/^/| /' conftest.$ac_ext >&5
7924
7925	{ $as_echo "$as_me:$LINENO: result: test failed" >&5
7926$as_echo "test failed" >&6; }
7927
7928fi
7929
7930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7931
7932fi
7933
7934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7935    CFLAGS=$cflags_save
7936
7937    LDFLAGS="$ac_save_LDFLAGS"
7938
7939  fi
7940fi
7941
7942test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
7943
7944{ $as_echo "$as_me:$LINENO: checking --enable-gui argument" >&5
7945$as_echo_n "checking --enable-gui argument... " >&6; }
7946# Check whether --enable-gui was given.
7947if test "${enable_gui+set}" = set; then
7948  enableval=$enable_gui;
7949else
7950  enable_gui="auto"
7951fi
7952
7953
7954enable_gui_canon=`echo "_$enable_gui" | \
7955	sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
7956
7957SKIP_GTK=YES
7958SKIP_GTK2=YES
7959SKIP_GNOME=YES
7960SKIP_MOTIF=YES
7961SKIP_ATHENA=YES
7962SKIP_NEXTAW=YES
7963SKIP_PHOTON=YES
7964SKIP_CARBON=YES
7965GUITYPE=NONE
7966
7967if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
7968  SKIP_PHOTON=
7969  case "$enable_gui_canon" in
7970    no)		{ $as_echo "$as_me:$LINENO: result: no GUI support" >&5
7971$as_echo "no GUI support" >&6; }
7972		SKIP_PHOTON=YES ;;
7973    yes|"")	{ $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
7974$as_echo "yes - automatic GUI support" >&6; } ;;
7975    auto)	{ $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
7976$as_echo "auto - automatic GUI support" >&6; } ;;
7977    photon)	{ $as_echo "$as_me:$LINENO: result: Photon GUI support" >&5
7978$as_echo "Photon GUI support" >&6; } ;;
7979    *)		{ $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7980$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
7981		SKIP_PHOTON=YES ;;
7982  esac
7983
7984elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
7985  SKIP_CARBON=
7986  case "$enable_gui_canon" in
7987    no)		{ $as_echo "$as_me:$LINENO: result: no GUI support" >&5
7988$as_echo "no GUI support" >&6; }
7989		SKIP_CARBON=YES ;;
7990    yes|"")	{ $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
7991$as_echo "yes - automatic GUI support" >&6; } ;;
7992    auto)	{ $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
7993$as_echo "auto - automatic GUI support" >&6; } ;;
7994    carbon)	{ $as_echo "$as_me:$LINENO: result: Carbon GUI support" >&5
7995$as_echo "Carbon GUI support" >&6; } ;;
7996    *)		{ $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7997$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
7998		SKIP_CARBON=YES ;;
7999  esac
8000
8001else
8002
8003  case "$enable_gui_canon" in
8004    no|none)	{ $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8005$as_echo "no GUI support" >&6; } ;;
8006    yes|""|auto)	{ $as_echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
8007$as_echo "yes/auto - automatic GUI support" >&6; }
8008		SKIP_GTK=
8009		SKIP_GTK2=
8010		SKIP_GNOME=
8011		SKIP_MOTIF=
8012		SKIP_ATHENA=
8013		SKIP_NEXTAW=
8014		SKIP_CARBON=;;
8015    gtk)	{ $as_echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
8016$as_echo "GTK+ 1.x GUI support" >&6; }
8017		SKIP_GTK=;;
8018    gtk2)	{ $as_echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
8019$as_echo "GTK+ 2.x GUI support" >&6; }
8020		SKIP_GTK=
8021		SKIP_GTK2=;;
8022    gnome)	{ $as_echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
8023$as_echo "GNOME 1.x GUI support" >&6; }
8024		SKIP_GNOME=
8025		SKIP_GTK=;;
8026    gnome2)	{ $as_echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
8027$as_echo "GNOME 2.x GUI support" >&6; }
8028		SKIP_GNOME=
8029		SKIP_GTK=
8030		SKIP_GTK2=;;
8031    motif)	{ $as_echo "$as_me:$LINENO: result: Motif GUI support" >&5
8032$as_echo "Motif GUI support" >&6; }
8033		SKIP_MOTIF=;;
8034    athena)	{ $as_echo "$as_me:$LINENO: result: Athena GUI support" >&5
8035$as_echo "Athena GUI support" >&6; }
8036		SKIP_ATHENA=;;
8037    nextaw)	{ $as_echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
8038$as_echo "neXtaw GUI support" >&6; }
8039		SKIP_NEXTAW=;;
8040    *)		{ $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8041$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
8042  esac
8043
8044fi
8045
8046if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
8047  { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
8048$as_echo_n "checking whether or not to look for GTK... " >&6; }
8049  # Check whether --enable-gtk-check was given.
8050if test "${enable_gtk_check+set}" = set; then
8051  enableval=$enable_gtk_check;
8052else
8053  enable_gtk_check="yes"
8054fi
8055
8056  { $as_echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
8057$as_echo "$enable_gtk_check" >&6; }
8058  if test "x$enable_gtk_check" = "xno"; then
8059    SKIP_GTK=YES
8060    SKIP_GNOME=YES
8061  fi
8062fi
8063
8064if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8065				-a "$enable_gui_canon" != "gnome2"; then
8066  { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
8067$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
8068  # Check whether --enable-gtk2-check was given.
8069if test "${enable_gtk2_check+set}" = set; then
8070  enableval=$enable_gtk2_check;
8071else
8072  enable_gtk2_check="yes"
8073fi
8074
8075  { $as_echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
8076$as_echo "$enable_gtk2_check" >&6; }
8077  if test "x$enable_gtk2_check" = "xno"; then
8078    SKIP_GTK2=YES
8079  fi
8080fi
8081
8082if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
8083				 -a "$enable_gui_canon" != "gnome2"; then
8084  { $as_echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
8085$as_echo_n "checking whether or not to look for GNOME... " >&6; }
8086  # Check whether --enable-gnome-check was given.
8087if test "${enable_gnome_check+set}" = set; then
8088  enableval=$enable_gnome_check;
8089else
8090  enable_gnome_check="no"
8091fi
8092
8093  { $as_echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
8094$as_echo "$enable_gnome_check" >&6; }
8095  if test "x$enable_gnome_check" = "xno"; then
8096    SKIP_GNOME=YES
8097  fi
8098fi
8099
8100if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8101  { $as_echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
8102$as_echo_n "checking whether or not to look for Motif... " >&6; }
8103  # Check whether --enable-motif-check was given.
8104if test "${enable_motif_check+set}" = set; then
8105  enableval=$enable_motif_check;
8106else
8107  enable_motif_check="yes"
8108fi
8109
8110  { $as_echo "$as_me:$LINENO: result: $enable_motif_check" >&5
8111$as_echo "$enable_motif_check" >&6; }
8112  if test "x$enable_motif_check" = "xno"; then
8113    SKIP_MOTIF=YES
8114  fi
8115fi
8116
8117if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8118  { $as_echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
8119$as_echo_n "checking whether or not to look for Athena... " >&6; }
8120  # Check whether --enable-athena-check was given.
8121if test "${enable_athena_check+set}" = set; then
8122  enableval=$enable_athena_check;
8123else
8124  enable_athena_check="yes"
8125fi
8126
8127  { $as_echo "$as_me:$LINENO: result: $enable_athena_check" >&5
8128$as_echo "$enable_athena_check" >&6; }
8129  if test "x$enable_athena_check" = "xno"; then
8130    SKIP_ATHENA=YES
8131  fi
8132fi
8133
8134if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8135  { $as_echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
8136$as_echo_n "checking whether or not to look for neXtaw... " >&6; }
8137  # Check whether --enable-nextaw-check was given.
8138if test "${enable_nextaw_check+set}" = set; then
8139  enableval=$enable_nextaw_check;
8140else
8141  enable_nextaw_check="yes"
8142fi
8143
8144  { $as_echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
8145$as_echo "$enable_nextaw_check" >&6; };
8146  if test "x$enable_nextaw_check" = "xno"; then
8147    SKIP_NEXTAW=YES
8148  fi
8149fi
8150
8151if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8152  { $as_echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
8153$as_echo_n "checking whether or not to look for Carbon... " >&6; }
8154  # Check whether --enable-carbon-check was given.
8155if test "${enable_carbon_check+set}" = set; then
8156  enableval=$enable_carbon_check;
8157else
8158  enable_carbon_check="yes"
8159fi
8160
8161  { $as_echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
8162$as_echo "$enable_carbon_check" >&6; };
8163  if test "x$enable_carbon_check" = "xno"; then
8164    SKIP_CARBON=YES
8165  fi
8166fi
8167
8168
8169if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8170  { $as_echo "$as_me:$LINENO: checking for Carbon GUI" >&5
8171$as_echo_n "checking for Carbon GUI... " >&6; }
8172    { $as_echo "$as_me:$LINENO: result: yes" >&5
8173$as_echo "yes" >&6; };
8174  GUITYPE=CARBONGUI
8175  if test "$VIMNAME" = "vim"; then
8176    VIMNAME=Vim
8177  fi
8178
8179    if test x$prefix = xNONE; then
8180    prefix=/Applications
8181  fi
8182
8183    datadir='${prefix}/Vim.app/Contents/Resources'
8184
8185    SKIP_GTK=YES;
8186  SKIP_GTK2=YES;
8187  SKIP_GNOME=YES;
8188  SKIP_MOTIF=YES;
8189  SKIP_ATHENA=YES;
8190  SKIP_NEXTAW=YES;
8191  SKIP_PHOTON=YES;
8192  SKIP_CARBON=YES
8193fi
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203if test -z "$SKIP_GTK"; then
8204
8205  { $as_echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
8206$as_echo_n "checking --with-gtk-prefix argument... " >&6; }
8207
8208# Check whether --with-gtk-prefix was given.
8209if test "${with_gtk_prefix+set}" = set; then
8210  withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8211$as_echo "$gtk_config_prefix" >&6; }
8212else
8213  gtk_config_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8214$as_echo "no" >&6; }
8215fi
8216
8217
8218  { $as_echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
8219$as_echo_n "checking --with-gtk-exec-prefix argument... " >&6; }
8220
8221# Check whether --with-gtk-exec-prefix was given.
8222if test "${with_gtk_exec_prefix+set}" = set; then
8223  withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8224$as_echo "$gtk_config_prefix" >&6; }
8225else
8226  gtk_config_exec_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8227$as_echo "no" >&6; }
8228fi
8229
8230
8231  { $as_echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
8232$as_echo_n "checking --disable-gtktest argument... " >&6; }
8233  # Check whether --enable-gtktest was given.
8234if test "${enable_gtktest+set}" = set; then
8235  enableval=$enable_gtktest;
8236else
8237  enable_gtktest=yes
8238fi
8239
8240  if test "x$enable_gtktest" = "xyes" ; then
8241    { $as_echo "$as_me:$LINENO: result: gtk test enabled" >&5
8242$as_echo "gtk test enabled" >&6; }
8243  else
8244    { $as_echo "$as_me:$LINENO: result: gtk test disabled" >&5
8245$as_echo "gtk test disabled" >&6; }
8246  fi
8247
8248  if test "x$gtk_config_prefix" != "x" ; then
8249    gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8250    GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8251  fi
8252  if test "x$gtk_config_exec_prefix" != "x" ; then
8253    gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8254    GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8255  fi
8256  if test "X$GTK_CONFIG" = "X"; then
8257    # Extract the first word of "gtk-config", so it can be a program name with args.
8258set dummy gtk-config; ac_word=$2
8259{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8260$as_echo_n "checking for $ac_word... " >&6; }
8261if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
8262  $as_echo_n "(cached) " >&6
8263else
8264  case $GTK_CONFIG in
8265  [\\/]* | ?:[\\/]*)
8266  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8267  ;;
8268  *)
8269  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270for as_dir in $PATH
8271do
8272  IFS=$as_save_IFS
8273  test -z "$as_dir" && as_dir=.
8274  for ac_exec_ext in '' $ac_executable_extensions; do
8275  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8276    ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8277    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8278    break 2
8279  fi
8280done
8281done
8282IFS=$as_save_IFS
8283
8284  test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8285  ;;
8286esac
8287fi
8288GTK_CONFIG=$ac_cv_path_GTK_CONFIG
8289if test -n "$GTK_CONFIG"; then
8290  { $as_echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
8291$as_echo "$GTK_CONFIG" >&6; }
8292else
8293  { $as_echo "$as_me:$LINENO: result: no" >&5
8294$as_echo "no" >&6; }
8295fi
8296
8297
8298    if test "X$GTK_CONFIG" = "Xno"; then
8299            # Extract the first word of "gtk12-config", so it can be a program name with args.
8300set dummy gtk12-config; ac_word=$2
8301{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8302$as_echo_n "checking for $ac_word... " >&6; }
8303if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
8304  $as_echo_n "(cached) " >&6
8305else
8306  case $GTK12_CONFIG in
8307  [\\/]* | ?:[\\/]*)
8308  ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8309  ;;
8310  *)
8311  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8312for as_dir in $PATH
8313do
8314  IFS=$as_save_IFS
8315  test -z "$as_dir" && as_dir=.
8316  for ac_exec_ext in '' $ac_executable_extensions; do
8317  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8318    ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8319    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8320    break 2
8321  fi
8322done
8323done
8324IFS=$as_save_IFS
8325
8326  test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8327  ;;
8328esac
8329fi
8330GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
8331if test -n "$GTK12_CONFIG"; then
8332  { $as_echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
8333$as_echo "$GTK12_CONFIG" >&6; }
8334else
8335  { $as_echo "$as_me:$LINENO: result: no" >&5
8336$as_echo "no" >&6; }
8337fi
8338
8339
8340      GTK_CONFIG="$GTK12_CONFIG"
8341    fi
8342  else
8343    { $as_echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
8344$as_echo "Using GTK configuration program $GTK_CONFIG" >&6; }
8345  fi
8346  if test "X$PKG_CONFIG" = "X"; then
8347    # Extract the first word of "pkg-config", so it can be a program name with args.
8348set dummy pkg-config; ac_word=$2
8349{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8350$as_echo_n "checking for $ac_word... " >&6; }
8351if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8352  $as_echo_n "(cached) " >&6
8353else
8354  case $PKG_CONFIG in
8355  [\\/]* | ?:[\\/]*)
8356  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8357  ;;
8358  *)
8359  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360for as_dir in $PATH
8361do
8362  IFS=$as_save_IFS
8363  test -z "$as_dir" && as_dir=.
8364  for ac_exec_ext in '' $ac_executable_extensions; do
8365  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8366    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8367    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8368    break 2
8369  fi
8370done
8371done
8372IFS=$as_save_IFS
8373
8374  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8375  ;;
8376esac
8377fi
8378PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8379if test -n "$PKG_CONFIG"; then
8380  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8381$as_echo "$PKG_CONFIG" >&6; }
8382else
8383  { $as_echo "$as_me:$LINENO: result: no" >&5
8384$as_echo "no" >&6; }
8385fi
8386
8387
8388  fi
8389
8390  if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
8391            if test "X$SKIP_GTK2" != "XYES"; then
8392
8393  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8394  {
8395    min_gtk_version=2.2.0
8396    { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8397$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8398    no_gtk=""
8399    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8400	  && $PKG_CONFIG --exists gtk+-2.0; then
8401    {
8402                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8403      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8404      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8405      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8406	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8407      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8408	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8409      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8410	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8411    }
8412    elif test "X$GTK_CONFIG" != "Xno"; then
8413    {
8414      GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8415      GTK_LIBDIR=
8416      GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8417      gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8418	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8419      gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8420	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8421      gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8422	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8423    }
8424    else
8425      no_gtk=yes
8426    fi
8427
8428    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8429    {
8430      ac_save_CFLAGS="$CFLAGS"
8431      ac_save_LIBS="$LIBS"
8432      CFLAGS="$CFLAGS $GTK_CFLAGS"
8433      LIBS="$LIBS $GTK_LIBS"
8434
8435                              rm -f conf.gtktest
8436      if test "$cross_compiling" = yes; then
8437  echo $ac_n "cross compiling; assumed OK... $ac_c"
8438else
8439  cat >conftest.$ac_ext <<_ACEOF
8440/* confdefs.h.  */
8441_ACEOF
8442cat confdefs.h >>conftest.$ac_ext
8443cat >>conftest.$ac_ext <<_ACEOF
8444/* end confdefs.h.  */
8445
8446#include <gtk/gtk.h>
8447#include <stdio.h>
8448#if STDC_HEADERS
8449# include <stdlib.h>
8450# include <stddef.h>
8451#endif
8452
8453int
8454main ()
8455{
8456int major, minor, micro;
8457char *tmp_version;
8458
8459system ("touch conf.gtktest");
8460
8461/* HP/UX 9 (%@#!) writes to sscanf strings */
8462tmp_version = g_strdup("$min_gtk_version");
8463if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8464   printf("%s, bad version string\n", "$min_gtk_version");
8465   exit(1);
8466 }
8467
8468if ((gtk_major_version > major) ||
8469    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8470    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8471				     (gtk_micro_version >= micro)))
8472{
8473    return 0;
8474}
8475return 1;
8476}
8477
8478_ACEOF
8479rm -f conftest$ac_exeext
8480if { (ac_try="$ac_link"
8481case "(($ac_try" in
8482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8483  *) ac_try_echo=$ac_try;;
8484esac
8485eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8486$as_echo "$ac_try_echo") >&5
8487  (eval "$ac_link") 2>&5
8488  ac_status=$?
8489  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8491  { (case "(($ac_try" in
8492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8493  *) ac_try_echo=$ac_try;;
8494esac
8495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8496$as_echo "$ac_try_echo") >&5
8497  (eval "$ac_try") 2>&5
8498  ac_status=$?
8499  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500  (exit $ac_status); }; }; then
8501  :
8502else
8503  $as_echo "$as_me: program exited with status $ac_status" >&5
8504$as_echo "$as_me: failed program was:" >&5
8505sed 's/^/| /' conftest.$ac_ext >&5
8506
8507( exit $ac_status )
8508no_gtk=yes
8509fi
8510rm -rf conftest.dSYM
8511rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8512fi
8513
8514
8515      CFLAGS="$ac_save_CFLAGS"
8516      LIBS="$ac_save_LIBS"
8517    }
8518    fi
8519    if test "x$no_gtk" = x ; then
8520      if test "x$enable_gtktest" = "xyes"; then
8521	{ $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8522$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8523      else
8524	{ $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8525$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8526      fi
8527      GUI_LIB_LOC="$GTK_LIBDIR"
8528		   GTK_LIBNAME="$GTK_LIBS"
8529		  GUI_INC_LOC="$GTK_CFLAGS"
8530    else
8531    {
8532      { $as_echo "$as_me:$LINENO: result: no" >&5
8533$as_echo "no" >&6; }
8534      GTK_CFLAGS=""
8535      GTK_LIBS=""
8536      :
8537    }
8538    fi
8539  }
8540  else
8541    GTK_CFLAGS=""
8542    GTK_LIBS=""
8543    :
8544  fi
8545
8546
8547  rm -f conf.gtktest
8548
8549      if test "x$GTK_CFLAGS" != "x"; then
8550	SKIP_ATHENA=YES
8551	SKIP_NEXTAW=YES
8552	SKIP_MOTIF=YES
8553	GUITYPE=GTK
8554
8555      fi
8556    fi
8557
8558                if test "x$GUITYPE" != "xGTK"; then
8559      SKIP_GTK2=YES
8560
8561  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8562  {
8563    min_gtk_version=1.1.16
8564    { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8565$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8566    no_gtk=""
8567    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8568	  && $PKG_CONFIG --exists gtk+-2.0; then
8569    {
8570                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8571      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8572      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8573      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8574	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8575      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8576	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8577      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8578	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8579    }
8580    elif test "X$GTK_CONFIG" != "Xno"; then
8581    {
8582      GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8583      GTK_LIBDIR=
8584      GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8585      gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8586	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8587      gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8588	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8589      gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8590	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8591    }
8592    else
8593      no_gtk=yes
8594    fi
8595
8596    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8597    {
8598      ac_save_CFLAGS="$CFLAGS"
8599      ac_save_LIBS="$LIBS"
8600      CFLAGS="$CFLAGS $GTK_CFLAGS"
8601      LIBS="$LIBS $GTK_LIBS"
8602
8603                              rm -f conf.gtktest
8604      if test "$cross_compiling" = yes; then
8605  echo $ac_n "cross compiling; assumed OK... $ac_c"
8606else
8607  cat >conftest.$ac_ext <<_ACEOF
8608/* confdefs.h.  */
8609_ACEOF
8610cat confdefs.h >>conftest.$ac_ext
8611cat >>conftest.$ac_ext <<_ACEOF
8612/* end confdefs.h.  */
8613
8614#include <gtk/gtk.h>
8615#include <stdio.h>
8616#if STDC_HEADERS
8617# include <stdlib.h>
8618# include <stddef.h>
8619#endif
8620
8621int
8622main ()
8623{
8624int major, minor, micro;
8625char *tmp_version;
8626
8627system ("touch conf.gtktest");
8628
8629/* HP/UX 9 (%@#!) writes to sscanf strings */
8630tmp_version = g_strdup("$min_gtk_version");
8631if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8632   printf("%s, bad version string\n", "$min_gtk_version");
8633   exit(1);
8634 }
8635
8636if ((gtk_major_version > major) ||
8637    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8638    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8639				     (gtk_micro_version >= micro)))
8640{
8641    return 0;
8642}
8643return 1;
8644}
8645
8646_ACEOF
8647rm -f conftest$ac_exeext
8648if { (ac_try="$ac_link"
8649case "(($ac_try" in
8650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8651  *) ac_try_echo=$ac_try;;
8652esac
8653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8654$as_echo "$ac_try_echo") >&5
8655  (eval "$ac_link") 2>&5
8656  ac_status=$?
8657  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8659  { (case "(($ac_try" in
8660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8661  *) ac_try_echo=$ac_try;;
8662esac
8663eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8664$as_echo "$ac_try_echo") >&5
8665  (eval "$ac_try") 2>&5
8666  ac_status=$?
8667  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668  (exit $ac_status); }; }; then
8669  :
8670else
8671  $as_echo "$as_me: program exited with status $ac_status" >&5
8672$as_echo "$as_me: failed program was:" >&5
8673sed 's/^/| /' conftest.$ac_ext >&5
8674
8675( exit $ac_status )
8676no_gtk=yes
8677fi
8678rm -rf conftest.dSYM
8679rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8680fi
8681
8682
8683      CFLAGS="$ac_save_CFLAGS"
8684      LIBS="$ac_save_LIBS"
8685    }
8686    fi
8687    if test "x$no_gtk" = x ; then
8688      if test "x$enable_gtktest" = "xyes"; then
8689	{ $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8690$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8691      else
8692	{ $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8693$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8694      fi
8695      GTK_LIBNAME="$GTK_LIBS"
8696		  GUI_INC_LOC="$GTK_CFLAGS"
8697    else
8698    {
8699      { $as_echo "$as_me:$LINENO: result: no" >&5
8700$as_echo "no" >&6; }
8701      GTK_CFLAGS=""
8702      GTK_LIBS=""
8703      :
8704    }
8705    fi
8706  }
8707  else
8708    GTK_CFLAGS=""
8709    GTK_LIBS=""
8710    :
8711  fi
8712
8713
8714  rm -f conf.gtktest
8715
8716      if test "x$GTK_CFLAGS" != "x"; then
8717	SKIP_ATHENA=YES
8718	SKIP_NEXTAW=YES
8719	SKIP_MOTIF=YES
8720	GUITYPE=GTK
8721
8722      fi
8723    fi
8724  fi
8725    if test "x$GUITYPE" = "xGTK"; then
8726    if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
8727	 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
8728      { $as_echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
8729$as_echo "this GTK version is old; version 1.2.3 or later is recommended" >&6; }
8730    else
8731    {
8732      if test "0$gtk_major_version" -ge 2; then
8733	cat >>confdefs.h <<\_ACEOF
8734#define HAVE_GTK2 1
8735_ACEOF
8736
8737	if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
8738		|| test "0$gtk_minor_version" -ge 2 \
8739		|| test "0$gtk_major_version" -gt 2; then
8740	  cat >>confdefs.h <<\_ACEOF
8741#define HAVE_GTK_MULTIHEAD 1
8742_ACEOF
8743
8744	fi
8745      fi
8746                        if test -z "$SKIP_GNOME"; then
8747      {
8748
8749
8750
8751
8752
8753
8754# Check whether --with-gnome-includes was given.
8755if test "${with_gnome_includes+set}" = set; then
8756  withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
8757
8758fi
8759
8760
8761
8762# Check whether --with-gnome-libs was given.
8763if test "${with_gnome_libs+set}" = set; then
8764  withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
8765
8766fi
8767
8768
8769
8770# Check whether --with-gnome was given.
8771if test "${with_gnome+set}" = set; then
8772  withval=$with_gnome; if test x$withval = xyes; then
8773      want_gnome=yes
8774      have_gnome=yes
8775    else
8776      if test "x$withval" = xno; then
8777	want_gnome=no
8778      else
8779	want_gnome=yes
8780	LDFLAGS="$LDFLAGS -L$withval/lib"
8781	CFLAGS="$CFLAGS -I$withval/include"
8782	gnome_prefix=$withval/lib
8783      fi
8784    fi
8785else
8786  want_gnome=yes
8787fi
8788
8789
8790  if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
8791  {
8792    { $as_echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
8793$as_echo_n "checking for libgnomeui-2.0... " >&6; }
8794    if $PKG_CONFIG --exists libgnomeui-2.0; then
8795      { $as_echo "$as_me:$LINENO: result: yes" >&5
8796$as_echo "yes" >&6; }
8797      GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
8798      GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
8799      GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
8800
8801                  { $as_echo "$as_me:$LINENO: checking for FreeBSD" >&5
8802$as_echo_n "checking for FreeBSD... " >&6; }
8803      if test "`(uname) 2>/dev/null`" = FreeBSD; then
8804	{ $as_echo "$as_me:$LINENO: result: yes" >&5
8805$as_echo "yes" >&6; }
8806	GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
8807	GNOME_LIBS="$GNOME_LIBS -pthread"
8808      else
8809	{ $as_echo "$as_me:$LINENO: result: no" >&5
8810$as_echo "no" >&6; }
8811      fi
8812      have_gnome=yes
8813    else
8814      { $as_echo "$as_me:$LINENO: result: not found" >&5
8815$as_echo "not found" >&6; }
8816      if test "x" = xfail; then
8817	{ { $as_echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
8818$as_echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
8819   { (exit 1); exit 1; }; }
8820      fi
8821    fi
8822  }
8823  elif test "x$want_gnome" = xyes; then
8824  {
8825    # Extract the first word of "gnome-config", so it can be a program name with args.
8826set dummy gnome-config; ac_word=$2
8827{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8828$as_echo_n "checking for $ac_word... " >&6; }
8829if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
8830  $as_echo_n "(cached) " >&6
8831else
8832  case $GNOME_CONFIG in
8833  [\\/]* | ?:[\\/]*)
8834  ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8835  ;;
8836  *)
8837  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8838for as_dir in $PATH
8839do
8840  IFS=$as_save_IFS
8841  test -z "$as_dir" && as_dir=.
8842  for ac_exec_ext in '' $ac_executable_extensions; do
8843  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8844    ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8845    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8846    break 2
8847  fi
8848done
8849done
8850IFS=$as_save_IFS
8851
8852  test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8853  ;;
8854esac
8855fi
8856GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
8857if test -n "$GNOME_CONFIG"; then
8858  { $as_echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
8859$as_echo "$GNOME_CONFIG" >&6; }
8860else
8861  { $as_echo "$as_me:$LINENO: result: no" >&5
8862$as_echo "no" >&6; }
8863fi
8864
8865
8866    if test "$GNOME_CONFIG" = "no"; then
8867      no_gnome_config="yes"
8868    else
8869      { $as_echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
8870$as_echo_n "checking if $GNOME_CONFIG works... " >&6; }
8871      if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
8872	{ $as_echo "$as_me:$LINENO: result: yes" >&5
8873$as_echo "yes" >&6; }
8874	GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
8875	GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
8876	GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
8877	have_gnome=yes
8878      else
8879	{ $as_echo "$as_me:$LINENO: result: no" >&5
8880$as_echo "no" >&6; }
8881	no_gnome_config="yes"
8882      fi
8883    fi
8884
8885    if test x$exec_prefix = xNONE; then
8886      if test x$prefix = xNONE; then
8887	gnome_prefix=$ac_default_prefix/lib
8888      else
8889	gnome_prefix=$prefix/lib
8890      fi
8891    else
8892      gnome_prefix=`eval echo \`echo $libdir\``
8893    fi
8894
8895    if test "$no_gnome_config" = "yes"; then
8896      { $as_echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
8897$as_echo_n "checking for gnomeConf.sh file in $gnome_prefix... " >&6; }
8898      if test -f $gnome_prefix/gnomeConf.sh; then
8899	{ $as_echo "$as_me:$LINENO: result: found" >&5
8900$as_echo "found" >&6; }
8901	echo "loading gnome configuration from" \
8902	  "$gnome_prefix/gnomeConf.sh"
8903	. $gnome_prefix/gnomeConf.sh
8904	have_gnome=yes
8905      else
8906	{ $as_echo "$as_me:$LINENO: result: not found" >&5
8907$as_echo "not found" >&6; }
8908	if test x = xfail; then
8909	  { { $as_echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
8910$as_echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
8911   { (exit 1); exit 1; }; }
8912	fi
8913      fi
8914    fi
8915  }
8916  fi
8917
8918	if test x$have_gnome = xyes ; then
8919	  cat >>confdefs.h <<\_ACEOF
8920#define FEAT_GUI_GNOME 1
8921_ACEOF
8922
8923	  GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
8924	  GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
8925	fi
8926      }
8927      fi
8928    }
8929    fi
8930  fi
8931fi
8932
8933
8934if test -z "$SKIP_MOTIF"; then
8935  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"
8936    GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
8937
8938  { $as_echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
8939$as_echo_n "checking for location of Motif GUI includes... " >&6; }
8940  gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
8941  GUI_INC_LOC=
8942  for try in $gui_includes; do
8943    if test -f "$try/Xm/Xm.h"; then
8944      GUI_INC_LOC=$try
8945    fi
8946  done
8947  if test -n "$GUI_INC_LOC"; then
8948    if test "$GUI_INC_LOC" = /usr/include; then
8949      GUI_INC_LOC=
8950      { $as_echo "$as_me:$LINENO: result: in default path" >&5
8951$as_echo "in default path" >&6; }
8952    else
8953      { $as_echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
8954$as_echo "$GUI_INC_LOC" >&6; }
8955    fi
8956  else
8957    { $as_echo "$as_me:$LINENO: result: <not found>" >&5
8958$as_echo "<not found>" >&6; }
8959    SKIP_MOTIF=YES
8960  fi
8961fi
8962
8963
8964if test -z "$SKIP_MOTIF"; then
8965  { $as_echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
8966$as_echo_n "checking --with-motif-lib argument... " >&6; }
8967
8968# Check whether --with-motif-lib was given.
8969if test "${with_motif_lib+set}" = set; then
8970  withval=$with_motif_lib;  MOTIF_LIBNAME="${withval}"
8971fi
8972
8973
8974  if test -n "$MOTIF_LIBNAME"; then
8975    { $as_echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
8976$as_echo "$MOTIF_LIBNAME" >&6; }
8977    GUI_LIB_LOC=
8978  else
8979    { $as_echo "$as_me:$LINENO: result: no" >&5
8980$as_echo "no" >&6; }
8981
8982        GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
8983
8984    { $as_echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
8985$as_echo_n "checking for location of Motif GUI libs... " >&6; }
8986    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"
8987    GUI_LIB_LOC=
8988    for try in $gui_libs; do
8989      for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
8990	if test -f "$libtry"; then
8991	  GUI_LIB_LOC=$try
8992	fi
8993      done
8994    done
8995    if test -n "$GUI_LIB_LOC"; then
8996            if test "$GUI_LIB_LOC" = /usr/lib; then
8997	GUI_LIB_LOC=
8998	{ $as_echo "$as_me:$LINENO: result: in default path" >&5
8999$as_echo "in default path" >&6; }
9000      else
9001	if test -n "$GUI_LIB_LOC"; then
9002	  { $as_echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
9003$as_echo "$GUI_LIB_LOC" >&6; }
9004	  if test "`(uname) 2>/dev/null`" = SunOS &&
9005					 uname -r | grep '^5' >/dev/null; then
9006	    GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
9007	  fi
9008	fi
9009      fi
9010      MOTIF_LIBNAME=-lXm
9011    else
9012      { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9013$as_echo "<not found>" >&6; }
9014      SKIP_MOTIF=YES
9015    fi
9016  fi
9017fi
9018
9019if test -z "$SKIP_MOTIF"; then
9020  SKIP_ATHENA=YES
9021  SKIP_NEXTAW=YES
9022  GUITYPE=MOTIF
9023
9024fi
9025
9026
9027GUI_X_LIBS=
9028
9029if test -z "$SKIP_ATHENA"; then
9030  { $as_echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
9031$as_echo_n "checking if Athena header files can be found... " >&6; }
9032  cflags_save=$CFLAGS
9033  CFLAGS="$CFLAGS $X_CFLAGS"
9034  cat >conftest.$ac_ext <<_ACEOF
9035/* confdefs.h.  */
9036_ACEOF
9037cat confdefs.h >>conftest.$ac_ext
9038cat >>conftest.$ac_ext <<_ACEOF
9039/* end confdefs.h.  */
9040
9041#include <X11/Intrinsic.h>
9042#include <X11/Xaw/Paned.h>
9043int
9044main ()
9045{
9046
9047  ;
9048  return 0;
9049}
9050_ACEOF
9051rm -f conftest.$ac_objext
9052if { (ac_try="$ac_compile"
9053case "(($ac_try" in
9054  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9055  *) ac_try_echo=$ac_try;;
9056esac
9057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9058$as_echo "$ac_try_echo") >&5
9059  (eval "$ac_compile") 2>conftest.er1
9060  ac_status=$?
9061  grep -v '^ *+' conftest.er1 >conftest.err
9062  rm -f conftest.er1
9063  cat conftest.err >&5
9064  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065  (exit $ac_status); } && {
9066	 test -z "$ac_c_werror_flag" ||
9067	 test ! -s conftest.err
9068       } && test -s conftest.$ac_objext; then
9069  { $as_echo "$as_me:$LINENO: result: yes" >&5
9070$as_echo "yes" >&6; }
9071else
9072  $as_echo "$as_me: failed program was:" >&5
9073sed 's/^/| /' conftest.$ac_ext >&5
9074
9075	{ $as_echo "$as_me:$LINENO: result: no" >&5
9076$as_echo "no" >&6; }; SKIP_ATHENA=YES
9077fi
9078
9079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9080  CFLAGS=$cflags_save
9081fi
9082
9083if test -z "$SKIP_ATHENA"; then
9084  GUITYPE=ATHENA
9085fi
9086
9087if test -z "$SKIP_NEXTAW"; then
9088  { $as_echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
9089$as_echo_n "checking if neXtaw header files can be found... " >&6; }
9090  cflags_save=$CFLAGS
9091  CFLAGS="$CFLAGS $X_CFLAGS"
9092  cat >conftest.$ac_ext <<_ACEOF
9093/* confdefs.h.  */
9094_ACEOF
9095cat confdefs.h >>conftest.$ac_ext
9096cat >>conftest.$ac_ext <<_ACEOF
9097/* end confdefs.h.  */
9098
9099#include <X11/Intrinsic.h>
9100#include <X11/neXtaw/Paned.h>
9101int
9102main ()
9103{
9104
9105  ;
9106  return 0;
9107}
9108_ACEOF
9109rm -f conftest.$ac_objext
9110if { (ac_try="$ac_compile"
9111case "(($ac_try" in
9112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9113  *) ac_try_echo=$ac_try;;
9114esac
9115eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9116$as_echo "$ac_try_echo") >&5
9117  (eval "$ac_compile") 2>conftest.er1
9118  ac_status=$?
9119  grep -v '^ *+' conftest.er1 >conftest.err
9120  rm -f conftest.er1
9121  cat conftest.err >&5
9122  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123  (exit $ac_status); } && {
9124	 test -z "$ac_c_werror_flag" ||
9125	 test ! -s conftest.err
9126       } && test -s conftest.$ac_objext; then
9127  { $as_echo "$as_me:$LINENO: result: yes" >&5
9128$as_echo "yes" >&6; }
9129else
9130  $as_echo "$as_me: failed program was:" >&5
9131sed 's/^/| /' conftest.$ac_ext >&5
9132
9133	{ $as_echo "$as_me:$LINENO: result: no" >&5
9134$as_echo "no" >&6; }; SKIP_NEXTAW=YES
9135fi
9136
9137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9138  CFLAGS=$cflags_save
9139fi
9140
9141if test -z "$SKIP_NEXTAW"; then
9142  GUITYPE=NEXTAW
9143fi
9144
9145if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9146      if test -n "$GUI_INC_LOC"; then
9147    GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
9148  fi
9149  if test -n "$GUI_LIB_LOC"; then
9150    GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
9151  fi
9152
9153    ldflags_save=$LDFLAGS
9154  LDFLAGS="$X_LIBS $LDFLAGS"
9155  { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9156$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9157if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9158  $as_echo_n "(cached) " >&6
9159else
9160  ac_check_lib_save_LIBS=$LIBS
9161LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9162cat >conftest.$ac_ext <<_ACEOF
9163/* confdefs.h.  */
9164_ACEOF
9165cat confdefs.h >>conftest.$ac_ext
9166cat >>conftest.$ac_ext <<_ACEOF
9167/* end confdefs.h.  */
9168
9169/* Override any GCC internal prototype to avoid an error.
9170   Use char because int might match the return type of a GCC
9171   builtin and then its argument prototype would still apply.  */
9172#ifdef __cplusplus
9173extern "C"
9174#endif
9175char XShapeQueryExtension ();
9176int
9177main ()
9178{
9179return XShapeQueryExtension ();
9180  ;
9181  return 0;
9182}
9183_ACEOF
9184rm -f conftest.$ac_objext conftest$ac_exeext
9185if { (ac_try="$ac_link"
9186case "(($ac_try" in
9187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9188  *) ac_try_echo=$ac_try;;
9189esac
9190eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9191$as_echo "$ac_try_echo") >&5
9192  (eval "$ac_link") 2>conftest.er1
9193  ac_status=$?
9194  grep -v '^ *+' conftest.er1 >conftest.err
9195  rm -f conftest.er1
9196  cat conftest.err >&5
9197  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198  (exit $ac_status); } && {
9199	 test -z "$ac_c_werror_flag" ||
9200	 test ! -s conftest.err
9201       } && test -s conftest$ac_exeext && {
9202	 test "$cross_compiling" = yes ||
9203	 $as_test_x conftest$ac_exeext
9204       }; then
9205  ac_cv_lib_Xext_XShapeQueryExtension=yes
9206else
9207  $as_echo "$as_me: failed program was:" >&5
9208sed 's/^/| /' conftest.$ac_ext >&5
9209
9210	ac_cv_lib_Xext_XShapeQueryExtension=no
9211fi
9212
9213rm -rf conftest.dSYM
9214rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9215      conftest$ac_exeext conftest.$ac_ext
9216LIBS=$ac_check_lib_save_LIBS
9217fi
9218{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9219$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9220if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9221  GUI_X_LIBS="-lXext"
9222fi
9223
9224    { $as_echo "$as_me:$LINENO: checking for wslen in -lw" >&5
9225$as_echo_n "checking for wslen in -lw... " >&6; }
9226if test "${ac_cv_lib_w_wslen+set}" = set; then
9227  $as_echo_n "(cached) " >&6
9228else
9229  ac_check_lib_save_LIBS=$LIBS
9230LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9231cat >conftest.$ac_ext <<_ACEOF
9232/* confdefs.h.  */
9233_ACEOF
9234cat confdefs.h >>conftest.$ac_ext
9235cat >>conftest.$ac_ext <<_ACEOF
9236/* end confdefs.h.  */
9237
9238/* Override any GCC internal prototype to avoid an error.
9239   Use char because int might match the return type of a GCC
9240   builtin and then its argument prototype would still apply.  */
9241#ifdef __cplusplus
9242extern "C"
9243#endif
9244char wslen ();
9245int
9246main ()
9247{
9248return wslen ();
9249  ;
9250  return 0;
9251}
9252_ACEOF
9253rm -f conftest.$ac_objext conftest$ac_exeext
9254if { (ac_try="$ac_link"
9255case "(($ac_try" in
9256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9257  *) ac_try_echo=$ac_try;;
9258esac
9259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9260$as_echo "$ac_try_echo") >&5
9261  (eval "$ac_link") 2>conftest.er1
9262  ac_status=$?
9263  grep -v '^ *+' conftest.er1 >conftest.err
9264  rm -f conftest.er1
9265  cat conftest.err >&5
9266  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267  (exit $ac_status); } && {
9268	 test -z "$ac_c_werror_flag" ||
9269	 test ! -s conftest.err
9270       } && test -s conftest$ac_exeext && {
9271	 test "$cross_compiling" = yes ||
9272	 $as_test_x conftest$ac_exeext
9273       }; then
9274  ac_cv_lib_w_wslen=yes
9275else
9276  $as_echo "$as_me: failed program was:" >&5
9277sed 's/^/| /' conftest.$ac_ext >&5
9278
9279	ac_cv_lib_w_wslen=no
9280fi
9281
9282rm -rf conftest.dSYM
9283rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9284      conftest$ac_exeext conftest.$ac_ext
9285LIBS=$ac_check_lib_save_LIBS
9286fi
9287{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
9288$as_echo "$ac_cv_lib_w_wslen" >&6; }
9289if test $ac_cv_lib_w_wslen = yes; then
9290  X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9291fi
9292
9293  { $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9294$as_echo_n "checking for dlsym in -ldl... " >&6; }
9295if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9296  $as_echo_n "(cached) " >&6
9297else
9298  ac_check_lib_save_LIBS=$LIBS
9299LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9300cat >conftest.$ac_ext <<_ACEOF
9301/* confdefs.h.  */
9302_ACEOF
9303cat confdefs.h >>conftest.$ac_ext
9304cat >>conftest.$ac_ext <<_ACEOF
9305/* end confdefs.h.  */
9306
9307/* Override any GCC internal prototype to avoid an error.
9308   Use char because int might match the return type of a GCC
9309   builtin and then its argument prototype would still apply.  */
9310#ifdef __cplusplus
9311extern "C"
9312#endif
9313char dlsym ();
9314int
9315main ()
9316{
9317return dlsym ();
9318  ;
9319  return 0;
9320}
9321_ACEOF
9322rm -f conftest.$ac_objext conftest$ac_exeext
9323if { (ac_try="$ac_link"
9324case "(($ac_try" in
9325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9326  *) ac_try_echo=$ac_try;;
9327esac
9328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9329$as_echo "$ac_try_echo") >&5
9330  (eval "$ac_link") 2>conftest.er1
9331  ac_status=$?
9332  grep -v '^ *+' conftest.er1 >conftest.err
9333  rm -f conftest.er1
9334  cat conftest.err >&5
9335  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336  (exit $ac_status); } && {
9337	 test -z "$ac_c_werror_flag" ||
9338	 test ! -s conftest.err
9339       } && test -s conftest$ac_exeext && {
9340	 test "$cross_compiling" = yes ||
9341	 $as_test_x conftest$ac_exeext
9342       }; then
9343  ac_cv_lib_dl_dlsym=yes
9344else
9345  $as_echo "$as_me: failed program was:" >&5
9346sed 's/^/| /' conftest.$ac_ext >&5
9347
9348	ac_cv_lib_dl_dlsym=no
9349fi
9350
9351rm -rf conftest.dSYM
9352rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9353      conftest$ac_exeext conftest.$ac_ext
9354LIBS=$ac_check_lib_save_LIBS
9355fi
9356{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9357$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
9358if test $ac_cv_lib_dl_dlsym = yes; then
9359  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
9360fi
9361
9362  { $as_echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
9363$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
9364if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
9365  $as_echo_n "(cached) " >&6
9366else
9367  ac_check_lib_save_LIBS=$LIBS
9368LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9369cat >conftest.$ac_ext <<_ACEOF
9370/* confdefs.h.  */
9371_ACEOF
9372cat confdefs.h >>conftest.$ac_ext
9373cat >>conftest.$ac_ext <<_ACEOF
9374/* end confdefs.h.  */
9375
9376/* Override any GCC internal prototype to avoid an error.
9377   Use char because int might match the return type of a GCC
9378   builtin and then its argument prototype would still apply.  */
9379#ifdef __cplusplus
9380extern "C"
9381#endif
9382char XmuCreateStippledPixmap ();
9383int
9384main ()
9385{
9386return XmuCreateStippledPixmap ();
9387  ;
9388  return 0;
9389}
9390_ACEOF
9391rm -f conftest.$ac_objext conftest$ac_exeext
9392if { (ac_try="$ac_link"
9393case "(($ac_try" in
9394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9395  *) ac_try_echo=$ac_try;;
9396esac
9397eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9398$as_echo "$ac_try_echo") >&5
9399  (eval "$ac_link") 2>conftest.er1
9400  ac_status=$?
9401  grep -v '^ *+' conftest.er1 >conftest.err
9402  rm -f conftest.er1
9403  cat conftest.err >&5
9404  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405  (exit $ac_status); } && {
9406	 test -z "$ac_c_werror_flag" ||
9407	 test ! -s conftest.err
9408       } && test -s conftest$ac_exeext && {
9409	 test "$cross_compiling" = yes ||
9410	 $as_test_x conftest$ac_exeext
9411       }; then
9412  ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
9413else
9414  $as_echo "$as_me: failed program was:" >&5
9415sed 's/^/| /' conftest.$ac_ext >&5
9416
9417	ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
9418fi
9419
9420rm -rf conftest.dSYM
9421rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9422      conftest$ac_exeext conftest.$ac_ext
9423LIBS=$ac_check_lib_save_LIBS
9424fi
9425{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9426$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9427if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
9428  GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9429fi
9430
9431  if test -z "$SKIP_MOTIF"; then
9432    { $as_echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
9433$as_echo_n "checking for XpEndJob in -lXp... " >&6; }
9434if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
9435  $as_echo_n "(cached) " >&6
9436else
9437  ac_check_lib_save_LIBS=$LIBS
9438LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9439cat >conftest.$ac_ext <<_ACEOF
9440/* confdefs.h.  */
9441_ACEOF
9442cat confdefs.h >>conftest.$ac_ext
9443cat >>conftest.$ac_ext <<_ACEOF
9444/* end confdefs.h.  */
9445
9446/* Override any GCC internal prototype to avoid an error.
9447   Use char because int might match the return type of a GCC
9448   builtin and then its argument prototype would still apply.  */
9449#ifdef __cplusplus
9450extern "C"
9451#endif
9452char XpEndJob ();
9453int
9454main ()
9455{
9456return XpEndJob ();
9457  ;
9458  return 0;
9459}
9460_ACEOF
9461rm -f conftest.$ac_objext conftest$ac_exeext
9462if { (ac_try="$ac_link"
9463case "(($ac_try" in
9464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9465  *) ac_try_echo=$ac_try;;
9466esac
9467eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9468$as_echo "$ac_try_echo") >&5
9469  (eval "$ac_link") 2>conftest.er1
9470  ac_status=$?
9471  grep -v '^ *+' conftest.er1 >conftest.err
9472  rm -f conftest.er1
9473  cat conftest.err >&5
9474  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475  (exit $ac_status); } && {
9476	 test -z "$ac_c_werror_flag" ||
9477	 test ! -s conftest.err
9478       } && test -s conftest$ac_exeext && {
9479	 test "$cross_compiling" = yes ||
9480	 $as_test_x conftest$ac_exeext
9481       }; then
9482  ac_cv_lib_Xp_XpEndJob=yes
9483else
9484  $as_echo "$as_me: failed program was:" >&5
9485sed 's/^/| /' conftest.$ac_ext >&5
9486
9487	ac_cv_lib_Xp_XpEndJob=no
9488fi
9489
9490rm -rf conftest.dSYM
9491rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9492      conftest$ac_exeext conftest.$ac_ext
9493LIBS=$ac_check_lib_save_LIBS
9494fi
9495{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
9496$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
9497if test $ac_cv_lib_Xp_XpEndJob = yes; then
9498  GUI_X_LIBS="-lXp $GUI_X_LIBS"
9499fi
9500
9501  fi
9502  LDFLAGS=$ldflags_save
9503
9504    { $as_echo "$as_me:$LINENO: checking for extra X11 defines" >&5
9505$as_echo_n "checking for extra X11 defines... " >&6; }
9506  NARROW_PROTO=
9507  rm -fr conftestdir
9508  if mkdir conftestdir; then
9509    cd conftestdir
9510    cat > Imakefile <<'EOF'
9511acfindx:
9512	@echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9513EOF
9514    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9515      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9516    fi
9517    cd ..
9518    rm -fr conftestdir
9519  fi
9520  if test -z "$NARROW_PROTO"; then
9521    { $as_echo "$as_me:$LINENO: result: no" >&5
9522$as_echo "no" >&6; }
9523  else
9524    { $as_echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
9525$as_echo "$NARROW_PROTO" >&6; }
9526  fi
9527
9528fi
9529
9530if test "$enable_xsmp" = "yes"; then
9531  cppflags_save=$CPPFLAGS
9532  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9533
9534for ac_header in X11/SM/SMlib.h
9535do
9536as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9537if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9538  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9539$as_echo_n "checking for $ac_header... " >&6; }
9540if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9541  $as_echo_n "(cached) " >&6
9542fi
9543ac_res=`eval 'as_val=${'$as_ac_Header'}
9544		 $as_echo "$as_val"'`
9545	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9546$as_echo "$ac_res" >&6; }
9547else
9548  # Is the header compilable?
9549{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9550$as_echo_n "checking $ac_header usability... " >&6; }
9551cat >conftest.$ac_ext <<_ACEOF
9552/* confdefs.h.  */
9553_ACEOF
9554cat confdefs.h >>conftest.$ac_ext
9555cat >>conftest.$ac_ext <<_ACEOF
9556/* end confdefs.h.  */
9557$ac_includes_default
9558#include <$ac_header>
9559_ACEOF
9560rm -f conftest.$ac_objext
9561if { (ac_try="$ac_compile"
9562case "(($ac_try" in
9563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9564  *) ac_try_echo=$ac_try;;
9565esac
9566eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9567$as_echo "$ac_try_echo") >&5
9568  (eval "$ac_compile") 2>conftest.er1
9569  ac_status=$?
9570  grep -v '^ *+' conftest.er1 >conftest.err
9571  rm -f conftest.er1
9572  cat conftest.err >&5
9573  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574  (exit $ac_status); } && {
9575	 test -z "$ac_c_werror_flag" ||
9576	 test ! -s conftest.err
9577       } && test -s conftest.$ac_objext; then
9578  ac_header_compiler=yes
9579else
9580  $as_echo "$as_me: failed program was:" >&5
9581sed 's/^/| /' conftest.$ac_ext >&5
9582
9583	ac_header_compiler=no
9584fi
9585
9586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9587{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9588$as_echo "$ac_header_compiler" >&6; }
9589
9590# Is the header present?
9591{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9592$as_echo_n "checking $ac_header presence... " >&6; }
9593cat >conftest.$ac_ext <<_ACEOF
9594/* confdefs.h.  */
9595_ACEOF
9596cat confdefs.h >>conftest.$ac_ext
9597cat >>conftest.$ac_ext <<_ACEOF
9598/* end confdefs.h.  */
9599#include <$ac_header>
9600_ACEOF
9601if { (ac_try="$ac_cpp conftest.$ac_ext"
9602case "(($ac_try" in
9603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9604  *) ac_try_echo=$ac_try;;
9605esac
9606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9607$as_echo "$ac_try_echo") >&5
9608  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9609  ac_status=$?
9610  grep -v '^ *+' conftest.er1 >conftest.err
9611  rm -f conftest.er1
9612  cat conftest.err >&5
9613  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614  (exit $ac_status); } >/dev/null && {
9615	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9616	 test ! -s conftest.err
9617       }; then
9618  ac_header_preproc=yes
9619else
9620  $as_echo "$as_me: failed program was:" >&5
9621sed 's/^/| /' conftest.$ac_ext >&5
9622
9623  ac_header_preproc=no
9624fi
9625
9626rm -f conftest.err conftest.$ac_ext
9627{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9628$as_echo "$ac_header_preproc" >&6; }
9629
9630# So?  What about this header?
9631case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9632  yes:no: )
9633    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9634$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9635    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9636$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9637    ac_header_preproc=yes
9638    ;;
9639  no:yes:* )
9640    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9641$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9642    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9643$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9644    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9645$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9646    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9647$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9648    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9649$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9650    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9651$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9652
9653    ;;
9654esac
9655{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9656$as_echo_n "checking for $ac_header... " >&6; }
9657if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9658  $as_echo_n "(cached) " >&6
9659else
9660  eval "$as_ac_Header=\$ac_header_preproc"
9661fi
9662ac_res=`eval 'as_val=${'$as_ac_Header'}
9663		 $as_echo "$as_val"'`
9664	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9665$as_echo "$ac_res" >&6; }
9666
9667fi
9668if test `eval 'as_val=${'$as_ac_Header'}
9669		 $as_echo "$as_val"'` = yes; then
9670  cat >>confdefs.h <<_ACEOF
9671#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9672_ACEOF
9673
9674fi
9675
9676done
9677
9678  CPPFLAGS=$cppflags_save
9679fi
9680
9681
9682if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
9683    cppflags_save=$CPPFLAGS
9684  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9685
9686
9687for ac_header in X11/xpm.h X11/Sunkeysym.h
9688do
9689as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9690if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9691  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9692$as_echo_n "checking for $ac_header... " >&6; }
9693if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9694  $as_echo_n "(cached) " >&6
9695fi
9696ac_res=`eval 'as_val=${'$as_ac_Header'}
9697		 $as_echo "$as_val"'`
9698	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9699$as_echo "$ac_res" >&6; }
9700else
9701  # Is the header compilable?
9702{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9703$as_echo_n "checking $ac_header usability... " >&6; }
9704cat >conftest.$ac_ext <<_ACEOF
9705/* confdefs.h.  */
9706_ACEOF
9707cat confdefs.h >>conftest.$ac_ext
9708cat >>conftest.$ac_ext <<_ACEOF
9709/* end confdefs.h.  */
9710$ac_includes_default
9711#include <$ac_header>
9712_ACEOF
9713rm -f conftest.$ac_objext
9714if { (ac_try="$ac_compile"
9715case "(($ac_try" in
9716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9717  *) ac_try_echo=$ac_try;;
9718esac
9719eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9720$as_echo "$ac_try_echo") >&5
9721  (eval "$ac_compile") 2>conftest.er1
9722  ac_status=$?
9723  grep -v '^ *+' conftest.er1 >conftest.err
9724  rm -f conftest.er1
9725  cat conftest.err >&5
9726  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727  (exit $ac_status); } && {
9728	 test -z "$ac_c_werror_flag" ||
9729	 test ! -s conftest.err
9730       } && test -s conftest.$ac_objext; then
9731  ac_header_compiler=yes
9732else
9733  $as_echo "$as_me: failed program was:" >&5
9734sed 's/^/| /' conftest.$ac_ext >&5
9735
9736	ac_header_compiler=no
9737fi
9738
9739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9740{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9741$as_echo "$ac_header_compiler" >&6; }
9742
9743# Is the header present?
9744{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9745$as_echo_n "checking $ac_header presence... " >&6; }
9746cat >conftest.$ac_ext <<_ACEOF
9747/* confdefs.h.  */
9748_ACEOF
9749cat confdefs.h >>conftest.$ac_ext
9750cat >>conftest.$ac_ext <<_ACEOF
9751/* end confdefs.h.  */
9752#include <$ac_header>
9753_ACEOF
9754if { (ac_try="$ac_cpp conftest.$ac_ext"
9755case "(($ac_try" in
9756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757  *) ac_try_echo=$ac_try;;
9758esac
9759eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9760$as_echo "$ac_try_echo") >&5
9761  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9762  ac_status=$?
9763  grep -v '^ *+' conftest.er1 >conftest.err
9764  rm -f conftest.er1
9765  cat conftest.err >&5
9766  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767  (exit $ac_status); } >/dev/null && {
9768	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9769	 test ! -s conftest.err
9770       }; then
9771  ac_header_preproc=yes
9772else
9773  $as_echo "$as_me: failed program was:" >&5
9774sed 's/^/| /' conftest.$ac_ext >&5
9775
9776  ac_header_preproc=no
9777fi
9778
9779rm -f conftest.err conftest.$ac_ext
9780{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9781$as_echo "$ac_header_preproc" >&6; }
9782
9783# So?  What about this header?
9784case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9785  yes:no: )
9786    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9787$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9788    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9789$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9790    ac_header_preproc=yes
9791    ;;
9792  no:yes:* )
9793    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9794$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9795    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9796$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9797    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9798$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9799    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9800$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9801    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9802$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9803    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9804$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9805
9806    ;;
9807esac
9808{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9809$as_echo_n "checking for $ac_header... " >&6; }
9810if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9811  $as_echo_n "(cached) " >&6
9812else
9813  eval "$as_ac_Header=\$ac_header_preproc"
9814fi
9815ac_res=`eval 'as_val=${'$as_ac_Header'}
9816		 $as_echo "$as_val"'`
9817	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9818$as_echo "$ac_res" >&6; }
9819
9820fi
9821if test `eval 'as_val=${'$as_ac_Header'}
9822		 $as_echo "$as_val"'` = yes; then
9823  cat >>confdefs.h <<_ACEOF
9824#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9825_ACEOF
9826
9827fi
9828
9829done
9830
9831
9832    if test ! "$enable_xim" = "no"; then
9833    { $as_echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
9834$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
9835    cat >conftest.$ac_ext <<_ACEOF
9836/* confdefs.h.  */
9837_ACEOF
9838cat confdefs.h >>conftest.$ac_ext
9839cat >>conftest.$ac_ext <<_ACEOF
9840/* end confdefs.h.  */
9841#include <X11/Xlib.h>
9842_ACEOF
9843if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9844  $EGREP "XIMText" >/dev/null 2>&1; then
9845  { $as_echo "$as_me:$LINENO: result: yes" >&5
9846$as_echo "yes" >&6; }
9847else
9848  { $as_echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
9849$as_echo "no; xim has been disabled" >&6; }; enable_xim = "no"
9850fi
9851rm -f conftest*
9852
9853  fi
9854  CPPFLAGS=$cppflags_save
9855
9856    if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
9857		-a "x$GUITYPE" != "xNONE" ; then
9858    { $as_echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
9859$as_echo "X GUI selected; xim has been enabled" >&6; }
9860    enable_xim="yes"
9861  fi
9862fi
9863
9864if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9865  cppflags_save=$CPPFLAGS
9866  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9867  { $as_echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
9868$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
9869  cat >conftest.$ac_ext <<_ACEOF
9870/* confdefs.h.  */
9871_ACEOF
9872cat confdefs.h >>conftest.$ac_ext
9873cat >>conftest.$ac_ext <<_ACEOF
9874/* end confdefs.h.  */
9875
9876#include <X11/Intrinsic.h>
9877#include <X11/Xmu/Editres.h>
9878int
9879main ()
9880{
9881int i; i = 0;
9882  ;
9883  return 0;
9884}
9885_ACEOF
9886rm -f conftest.$ac_objext
9887if { (ac_try="$ac_compile"
9888case "(($ac_try" in
9889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890  *) ac_try_echo=$ac_try;;
9891esac
9892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9893$as_echo "$ac_try_echo") >&5
9894  (eval "$ac_compile") 2>conftest.er1
9895  ac_status=$?
9896  grep -v '^ *+' conftest.er1 >conftest.err
9897  rm -f conftest.er1
9898  cat conftest.err >&5
9899  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900  (exit $ac_status); } && {
9901	 test -z "$ac_c_werror_flag" ||
9902	 test ! -s conftest.err
9903       } && test -s conftest.$ac_objext; then
9904  { $as_echo "$as_me:$LINENO: result: yes" >&5
9905$as_echo "yes" >&6; }
9906		      cat >>confdefs.h <<\_ACEOF
9907#define HAVE_X11_XMU_EDITRES_H 1
9908_ACEOF
9909
9910else
9911  $as_echo "$as_me: failed program was:" >&5
9912sed 's/^/| /' conftest.$ac_ext >&5
9913
9914	{ $as_echo "$as_me:$LINENO: result: no" >&5
9915$as_echo "no" >&6; }
9916fi
9917
9918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9919  CPPFLAGS=$cppflags_save
9920fi
9921
9922if test -z "$SKIP_MOTIF"; then
9923  cppflags_save=$CPPFLAGS
9924  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9925
9926
9927
9928
9929
9930
9931
9932for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
9933		   Xm/UnhighlightT.h Xm/Notebook.h
9934do
9935as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9936if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9937  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9938$as_echo_n "checking for $ac_header... " >&6; }
9939if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9940  $as_echo_n "(cached) " >&6
9941fi
9942ac_res=`eval 'as_val=${'$as_ac_Header'}
9943		 $as_echo "$as_val"'`
9944	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9945$as_echo "$ac_res" >&6; }
9946else
9947  # Is the header compilable?
9948{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9949$as_echo_n "checking $ac_header usability... " >&6; }
9950cat >conftest.$ac_ext <<_ACEOF
9951/* confdefs.h.  */
9952_ACEOF
9953cat confdefs.h >>conftest.$ac_ext
9954cat >>conftest.$ac_ext <<_ACEOF
9955/* end confdefs.h.  */
9956$ac_includes_default
9957#include <$ac_header>
9958_ACEOF
9959rm -f conftest.$ac_objext
9960if { (ac_try="$ac_compile"
9961case "(($ac_try" in
9962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9963  *) ac_try_echo=$ac_try;;
9964esac
9965eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9966$as_echo "$ac_try_echo") >&5
9967  (eval "$ac_compile") 2>conftest.er1
9968  ac_status=$?
9969  grep -v '^ *+' conftest.er1 >conftest.err
9970  rm -f conftest.er1
9971  cat conftest.err >&5
9972  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973  (exit $ac_status); } && {
9974	 test -z "$ac_c_werror_flag" ||
9975	 test ! -s conftest.err
9976       } && test -s conftest.$ac_objext; then
9977  ac_header_compiler=yes
9978else
9979  $as_echo "$as_me: failed program was:" >&5
9980sed 's/^/| /' conftest.$ac_ext >&5
9981
9982	ac_header_compiler=no
9983fi
9984
9985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9986{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9987$as_echo "$ac_header_compiler" >&6; }
9988
9989# Is the header present?
9990{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9991$as_echo_n "checking $ac_header presence... " >&6; }
9992cat >conftest.$ac_ext <<_ACEOF
9993/* confdefs.h.  */
9994_ACEOF
9995cat confdefs.h >>conftest.$ac_ext
9996cat >>conftest.$ac_ext <<_ACEOF
9997/* end confdefs.h.  */
9998#include <$ac_header>
9999_ACEOF
10000if { (ac_try="$ac_cpp conftest.$ac_ext"
10001case "(($ac_try" in
10002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003  *) ac_try_echo=$ac_try;;
10004esac
10005eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10006$as_echo "$ac_try_echo") >&5
10007  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10008  ac_status=$?
10009  grep -v '^ *+' conftest.er1 >conftest.err
10010  rm -f conftest.er1
10011  cat conftest.err >&5
10012  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013  (exit $ac_status); } >/dev/null && {
10014	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10015	 test ! -s conftest.err
10016       }; then
10017  ac_header_preproc=yes
10018else
10019  $as_echo "$as_me: failed program was:" >&5
10020sed 's/^/| /' conftest.$ac_ext >&5
10021
10022  ac_header_preproc=no
10023fi
10024
10025rm -f conftest.err conftest.$ac_ext
10026{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10027$as_echo "$ac_header_preproc" >&6; }
10028
10029# So?  What about this header?
10030case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10031  yes:no: )
10032    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10033$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10034    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10035$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10036    ac_header_preproc=yes
10037    ;;
10038  no:yes:* )
10039    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10040$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10041    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10042$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10043    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10044$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10045    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10046$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10047    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10048$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10049    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10050$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10051
10052    ;;
10053esac
10054{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10055$as_echo_n "checking for $ac_header... " >&6; }
10056if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10057  $as_echo_n "(cached) " >&6
10058else
10059  eval "$as_ac_Header=\$ac_header_preproc"
10060fi
10061ac_res=`eval 'as_val=${'$as_ac_Header'}
10062		 $as_echo "$as_val"'`
10063	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10064$as_echo "$ac_res" >&6; }
10065
10066fi
10067if test `eval 'as_val=${'$as_ac_Header'}
10068		 $as_echo "$as_val"'` = yes; then
10069  cat >>confdefs.h <<_ACEOF
10070#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10071_ACEOF
10072
10073fi
10074
10075done
10076
10077
10078  if test $ac_cv_header_Xm_XpmP_h = yes; then
10079        { $as_echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10080$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
10081    cat >conftest.$ac_ext <<_ACEOF
10082/* confdefs.h.  */
10083_ACEOF
10084cat confdefs.h >>conftest.$ac_ext
10085cat >>conftest.$ac_ext <<_ACEOF
10086/* end confdefs.h.  */
10087#include <Xm/XpmP.h>
10088int
10089main ()
10090{
10091XpmAttributes_21 attr;
10092  ;
10093  return 0;
10094}
10095_ACEOF
10096rm -f conftest.$ac_objext
10097if { (ac_try="$ac_compile"
10098case "(($ac_try" in
10099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10100  *) ac_try_echo=$ac_try;;
10101esac
10102eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10103$as_echo "$ac_try_echo") >&5
10104  (eval "$ac_compile") 2>conftest.er1
10105  ac_status=$?
10106  grep -v '^ *+' conftest.er1 >conftest.err
10107  rm -f conftest.er1
10108  cat conftest.err >&5
10109  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110  (exit $ac_status); } && {
10111	 test -z "$ac_c_werror_flag" ||
10112	 test ! -s conftest.err
10113       } && test -s conftest.$ac_objext; then
10114  { $as_echo "$as_me:$LINENO: result: yes" >&5
10115$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10116#define XPMATTRIBUTES_TYPE XpmAttributes_21
10117_ACEOF
10118
10119else
10120  $as_echo "$as_me: failed program was:" >&5
10121sed 's/^/| /' conftest.$ac_ext >&5
10122
10123	{ $as_echo "$as_me:$LINENO: result: no" >&5
10124$as_echo "no" >&6; }; cat >>confdefs.h <<\_ACEOF
10125#define XPMATTRIBUTES_TYPE XpmAttributes
10126_ACEOF
10127
10128
10129fi
10130
10131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10132  else
10133    cat >>confdefs.h <<\_ACEOF
10134#define XPMATTRIBUTES_TYPE XpmAttributes
10135_ACEOF
10136
10137  fi
10138  CPPFLAGS=$cppflags_save
10139fi
10140
10141if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10142  { $as_echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
10143$as_echo "no GUI selected; xim has been disabled" >&6; }
10144  enable_xim="no"
10145fi
10146if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10147  { $as_echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
10148$as_echo "no GUI selected; fontset has been disabled" >&6; }
10149  enable_fontset="no"
10150fi
10151if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
10152  { $as_echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10153$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10154  enable_fontset="no"
10155fi
10156
10157if test -z "$SKIP_PHOTON"; then
10158  GUITYPE=PHOTONGUI
10159fi
10160
10161
10162
10163
10164
10165
10166if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10167  { { $as_echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
10168$as_echo "$as_me: error: cannot use workshop without Motif" >&2;}
10169   { (exit 1); exit 1; }; }
10170fi
10171
10172if test "$enable_xim" = "yes"; then
10173  cat >>confdefs.h <<\_ACEOF
10174#define FEAT_XIM 1
10175_ACEOF
10176
10177fi
10178if test "$enable_fontset" = "yes"; then
10179  cat >>confdefs.h <<\_ACEOF
10180#define FEAT_XFONTSET 1
10181_ACEOF
10182
10183fi
10184
10185
10186
10187
10188if test "$enable_hangulinput" = "yes"; then
10189  if test "x$GUITYPE" = "xNONE"; then
10190    { $as_echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
10191$as_echo "no GUI selected; hangul input has been disabled" >&6; }
10192    enable_hangulinput=no
10193  else
10194    cat >>confdefs.h <<\_ACEOF
10195#define FEAT_HANGULIN 1
10196_ACEOF
10197
10198    HANGULIN_SRC=hangulin.c
10199
10200    HANGULIN_OBJ=objects/hangulin.o
10201
10202  fi
10203fi
10204
10205
10206{ $as_echo "$as_me:$LINENO: checking whether toupper is broken" >&5
10207$as_echo_n "checking whether toupper is broken... " >&6; }
10208if test "${vim_cv_toupper_broken+set}" = set; then
10209  $as_echo_n "(cached) " >&6
10210else
10211
10212    if test "$cross_compiling" = yes; then
10213
10214    { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5
10215$as_echo "$as_me: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&2;}
10216   { (exit 1); exit 1; }; }
10217
10218else
10219  cat >conftest.$ac_ext <<_ACEOF
10220
10221#include "confdefs.h"
10222#include <ctype.h>
10223#if STDC_HEADERS
10224# include <stdlib.h>
10225# include <stddef.h>
10226#endif
10227main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10228
10229_ACEOF
10230rm -f conftest$ac_exeext
10231if { (ac_try="$ac_link"
10232case "(($ac_try" in
10233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234  *) ac_try_echo=$ac_try;;
10235esac
10236eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10237$as_echo "$ac_try_echo") >&5
10238  (eval "$ac_link") 2>&5
10239  ac_status=$?
10240  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10242  { (case "(($ac_try" in
10243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244  *) ac_try_echo=$ac_try;;
10245esac
10246eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10247$as_echo "$ac_try_echo") >&5
10248  (eval "$ac_try") 2>&5
10249  ac_status=$?
10250  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251  (exit $ac_status); }; }; then
10252
10253    vim_cv_toupper_broken=yes
10254
10255else
10256  $as_echo "$as_me: program exited with status $ac_status" >&5
10257$as_echo "$as_me: failed program was:" >&5
10258sed 's/^/| /' conftest.$ac_ext >&5
10259
10260( exit $ac_status )
10261
10262    vim_cv_toupper_broken=no
10263
10264fi
10265rm -rf conftest.dSYM
10266rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10267fi
10268
10269
10270fi
10271{ $as_echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5
10272$as_echo "$vim_cv_toupper_broken" >&6; }
10273
10274if test "x$vim_cv_toupper_broken" = "xyes" ; then
10275  cat >>confdefs.h <<\_ACEOF
10276#define BROKEN_TOUPPER 1
10277_ACEOF
10278
10279fi
10280
10281{ $as_echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
10282$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10283cat >conftest.$ac_ext <<_ACEOF
10284/* confdefs.h.  */
10285_ACEOF
10286cat confdefs.h >>conftest.$ac_ext
10287cat >>conftest.$ac_ext <<_ACEOF
10288/* end confdefs.h.  */
10289#include <stdio.h>
10290int
10291main ()
10292{
10293printf("(" __DATE__ " " __TIME__ ")");
10294  ;
10295  return 0;
10296}
10297_ACEOF
10298rm -f conftest.$ac_objext
10299if { (ac_try="$ac_compile"
10300case "(($ac_try" in
10301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10302  *) ac_try_echo=$ac_try;;
10303esac
10304eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10305$as_echo "$ac_try_echo") >&5
10306  (eval "$ac_compile") 2>conftest.er1
10307  ac_status=$?
10308  grep -v '^ *+' conftest.er1 >conftest.err
10309  rm -f conftest.er1
10310  cat conftest.err >&5
10311  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312  (exit $ac_status); } && {
10313	 test -z "$ac_c_werror_flag" ||
10314	 test ! -s conftest.err
10315       } && test -s conftest.$ac_objext; then
10316  { $as_echo "$as_me:$LINENO: result: yes" >&5
10317$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10318#define HAVE_DATE_TIME 1
10319_ACEOF
10320
10321else
10322  $as_echo "$as_me: failed program was:" >&5
10323sed 's/^/| /' conftest.$ac_ext >&5
10324
10325	{ $as_echo "$as_me:$LINENO: result: no" >&5
10326$as_echo "no" >&6; }
10327fi
10328
10329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10330
10331if test "${ac_cv_header_elf_h+set}" = set; then
10332  { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10333$as_echo_n "checking for elf.h... " >&6; }
10334if test "${ac_cv_header_elf_h+set}" = set; then
10335  $as_echo_n "(cached) " >&6
10336fi
10337{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10338$as_echo "$ac_cv_header_elf_h" >&6; }
10339else
10340  # Is the header compilable?
10341{ $as_echo "$as_me:$LINENO: checking elf.h usability" >&5
10342$as_echo_n "checking elf.h usability... " >&6; }
10343cat >conftest.$ac_ext <<_ACEOF
10344/* confdefs.h.  */
10345_ACEOF
10346cat confdefs.h >>conftest.$ac_ext
10347cat >>conftest.$ac_ext <<_ACEOF
10348/* end confdefs.h.  */
10349$ac_includes_default
10350#include <elf.h>
10351_ACEOF
10352rm -f conftest.$ac_objext
10353if { (ac_try="$ac_compile"
10354case "(($ac_try" in
10355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10356  *) ac_try_echo=$ac_try;;
10357esac
10358eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10359$as_echo "$ac_try_echo") >&5
10360  (eval "$ac_compile") 2>conftest.er1
10361  ac_status=$?
10362  grep -v '^ *+' conftest.er1 >conftest.err
10363  rm -f conftest.er1
10364  cat conftest.err >&5
10365  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366  (exit $ac_status); } && {
10367	 test -z "$ac_c_werror_flag" ||
10368	 test ! -s conftest.err
10369       } && test -s conftest.$ac_objext; then
10370  ac_header_compiler=yes
10371else
10372  $as_echo "$as_me: failed program was:" >&5
10373sed 's/^/| /' conftest.$ac_ext >&5
10374
10375	ac_header_compiler=no
10376fi
10377
10378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10379{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10380$as_echo "$ac_header_compiler" >&6; }
10381
10382# Is the header present?
10383{ $as_echo "$as_me:$LINENO: checking elf.h presence" >&5
10384$as_echo_n "checking elf.h presence... " >&6; }
10385cat >conftest.$ac_ext <<_ACEOF
10386/* confdefs.h.  */
10387_ACEOF
10388cat confdefs.h >>conftest.$ac_ext
10389cat >>conftest.$ac_ext <<_ACEOF
10390/* end confdefs.h.  */
10391#include <elf.h>
10392_ACEOF
10393if { (ac_try="$ac_cpp conftest.$ac_ext"
10394case "(($ac_try" in
10395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10396  *) ac_try_echo=$ac_try;;
10397esac
10398eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10399$as_echo "$ac_try_echo") >&5
10400  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10401  ac_status=$?
10402  grep -v '^ *+' conftest.er1 >conftest.err
10403  rm -f conftest.er1
10404  cat conftest.err >&5
10405  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406  (exit $ac_status); } >/dev/null && {
10407	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10408	 test ! -s conftest.err
10409       }; then
10410  ac_header_preproc=yes
10411else
10412  $as_echo "$as_me: failed program was:" >&5
10413sed 's/^/| /' conftest.$ac_ext >&5
10414
10415  ac_header_preproc=no
10416fi
10417
10418rm -f conftest.err conftest.$ac_ext
10419{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10420$as_echo "$ac_header_preproc" >&6; }
10421
10422# So?  What about this header?
10423case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10424  yes:no: )
10425    { $as_echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
10426$as_echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10427    { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
10428$as_echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
10429    ac_header_preproc=yes
10430    ;;
10431  no:yes:* )
10432    { $as_echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
10433$as_echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
10434    { $as_echo "$as_me:$LINENO: WARNING: elf.h:     check for missing prerequisite headers?" >&5
10435$as_echo "$as_me: WARNING: elf.h:     check for missing prerequisite headers?" >&2;}
10436    { $as_echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
10437$as_echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
10438    { $as_echo "$as_me:$LINENO: WARNING: elf.h:     section \"Present But Cannot Be Compiled\"" >&5
10439$as_echo "$as_me: WARNING: elf.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10440    { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
10441$as_echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
10442    { $as_echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
10443$as_echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
10444
10445    ;;
10446esac
10447{ $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10448$as_echo_n "checking for elf.h... " >&6; }
10449if test "${ac_cv_header_elf_h+set}" = set; then
10450  $as_echo_n "(cached) " >&6
10451else
10452  ac_cv_header_elf_h=$ac_header_preproc
10453fi
10454{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10455$as_echo "$ac_cv_header_elf_h" >&6; }
10456
10457fi
10458if test $ac_cv_header_elf_h = yes; then
10459  HAS_ELF=1
10460fi
10461
10462
10463if test "$HAS_ELF" = 1; then
10464
10465{ $as_echo "$as_me:$LINENO: checking for main in -lelf" >&5
10466$as_echo_n "checking for main in -lelf... " >&6; }
10467if test "${ac_cv_lib_elf_main+set}" = set; then
10468  $as_echo_n "(cached) " >&6
10469else
10470  ac_check_lib_save_LIBS=$LIBS
10471LIBS="-lelf  $LIBS"
10472cat >conftest.$ac_ext <<_ACEOF
10473/* confdefs.h.  */
10474_ACEOF
10475cat confdefs.h >>conftest.$ac_ext
10476cat >>conftest.$ac_ext <<_ACEOF
10477/* end confdefs.h.  */
10478
10479
10480int
10481main ()
10482{
10483return main ();
10484  ;
10485  return 0;
10486}
10487_ACEOF
10488rm -f conftest.$ac_objext conftest$ac_exeext
10489if { (ac_try="$ac_link"
10490case "(($ac_try" in
10491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10492  *) ac_try_echo=$ac_try;;
10493esac
10494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10495$as_echo "$ac_try_echo") >&5
10496  (eval "$ac_link") 2>conftest.er1
10497  ac_status=$?
10498  grep -v '^ *+' conftest.er1 >conftest.err
10499  rm -f conftest.er1
10500  cat conftest.err >&5
10501  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502  (exit $ac_status); } && {
10503	 test -z "$ac_c_werror_flag" ||
10504	 test ! -s conftest.err
10505       } && test -s conftest$ac_exeext && {
10506	 test "$cross_compiling" = yes ||
10507	 $as_test_x conftest$ac_exeext
10508       }; then
10509  ac_cv_lib_elf_main=yes
10510else
10511  $as_echo "$as_me: failed program was:" >&5
10512sed 's/^/| /' conftest.$ac_ext >&5
10513
10514	ac_cv_lib_elf_main=no
10515fi
10516
10517rm -rf conftest.dSYM
10518rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10519      conftest$ac_exeext conftest.$ac_ext
10520LIBS=$ac_check_lib_save_LIBS
10521fi
10522{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
10523$as_echo "$ac_cv_lib_elf_main" >&6; }
10524if test $ac_cv_lib_elf_main = yes; then
10525  cat >>confdefs.h <<_ACEOF
10526#define HAVE_LIBELF 1
10527_ACEOF
10528
10529  LIBS="-lelf $LIBS"
10530
10531fi
10532
10533fi
10534
10535
10536
10537
10538
10539
10540ac_header_dirent=no
10541for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10542  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10543{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10544$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10545if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10546  $as_echo_n "(cached) " >&6
10547else
10548  cat >conftest.$ac_ext <<_ACEOF
10549/* confdefs.h.  */
10550_ACEOF
10551cat confdefs.h >>conftest.$ac_ext
10552cat >>conftest.$ac_ext <<_ACEOF
10553/* end confdefs.h.  */
10554#include <sys/types.h>
10555#include <$ac_hdr>
10556
10557int
10558main ()
10559{
10560if ((DIR *) 0)
10561return 0;
10562  ;
10563  return 0;
10564}
10565_ACEOF
10566rm -f conftest.$ac_objext
10567if { (ac_try="$ac_compile"
10568case "(($ac_try" in
10569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10570  *) ac_try_echo=$ac_try;;
10571esac
10572eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10573$as_echo "$ac_try_echo") >&5
10574  (eval "$ac_compile") 2>conftest.er1
10575  ac_status=$?
10576  grep -v '^ *+' conftest.er1 >conftest.err
10577  rm -f conftest.er1
10578  cat conftest.err >&5
10579  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580  (exit $ac_status); } && {
10581	 test -z "$ac_c_werror_flag" ||
10582	 test ! -s conftest.err
10583       } && test -s conftest.$ac_objext; then
10584  eval "$as_ac_Header=yes"
10585else
10586  $as_echo "$as_me: failed program was:" >&5
10587sed 's/^/| /' conftest.$ac_ext >&5
10588
10589	eval "$as_ac_Header=no"
10590fi
10591
10592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10593fi
10594ac_res=`eval 'as_val=${'$as_ac_Header'}
10595		 $as_echo "$as_val"'`
10596	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10597$as_echo "$ac_res" >&6; }
10598if test `eval 'as_val=${'$as_ac_Header'}
10599		 $as_echo "$as_val"'` = yes; then
10600  cat >>confdefs.h <<_ACEOF
10601#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10602_ACEOF
10603
10604ac_header_dirent=$ac_hdr; break
10605fi
10606
10607done
10608# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10609if test $ac_header_dirent = dirent.h; then
10610  { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10611$as_echo_n "checking for library containing opendir... " >&6; }
10612if test "${ac_cv_search_opendir+set}" = set; then
10613  $as_echo_n "(cached) " >&6
10614else
10615  ac_func_search_save_LIBS=$LIBS
10616cat >conftest.$ac_ext <<_ACEOF
10617/* confdefs.h.  */
10618_ACEOF
10619cat confdefs.h >>conftest.$ac_ext
10620cat >>conftest.$ac_ext <<_ACEOF
10621/* end confdefs.h.  */
10622
10623/* Override any GCC internal prototype to avoid an error.
10624   Use char because int might match the return type of a GCC
10625   builtin and then its argument prototype would still apply.  */
10626#ifdef __cplusplus
10627extern "C"
10628#endif
10629char opendir ();
10630int
10631main ()
10632{
10633return opendir ();
10634  ;
10635  return 0;
10636}
10637_ACEOF
10638for ac_lib in '' dir; do
10639  if test -z "$ac_lib"; then
10640    ac_res="none required"
10641  else
10642    ac_res=-l$ac_lib
10643    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10644  fi
10645  rm -f conftest.$ac_objext conftest$ac_exeext
10646if { (ac_try="$ac_link"
10647case "(($ac_try" in
10648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10649  *) ac_try_echo=$ac_try;;
10650esac
10651eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10652$as_echo "$ac_try_echo") >&5
10653  (eval "$ac_link") 2>conftest.er1
10654  ac_status=$?
10655  grep -v '^ *+' conftest.er1 >conftest.err
10656  rm -f conftest.er1
10657  cat conftest.err >&5
10658  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659  (exit $ac_status); } && {
10660	 test -z "$ac_c_werror_flag" ||
10661	 test ! -s conftest.err
10662       } && test -s conftest$ac_exeext && {
10663	 test "$cross_compiling" = yes ||
10664	 $as_test_x conftest$ac_exeext
10665       }; then
10666  ac_cv_search_opendir=$ac_res
10667else
10668  $as_echo "$as_me: failed program was:" >&5
10669sed 's/^/| /' conftest.$ac_ext >&5
10670
10671
10672fi
10673
10674rm -rf conftest.dSYM
10675rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10676      conftest$ac_exeext
10677  if test "${ac_cv_search_opendir+set}" = set; then
10678  break
10679fi
10680done
10681if test "${ac_cv_search_opendir+set}" = set; then
10682  :
10683else
10684  ac_cv_search_opendir=no
10685fi
10686rm conftest.$ac_ext
10687LIBS=$ac_func_search_save_LIBS
10688fi
10689{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10690$as_echo "$ac_cv_search_opendir" >&6; }
10691ac_res=$ac_cv_search_opendir
10692if test "$ac_res" != no; then
10693  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10694
10695fi
10696
10697else
10698  { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10699$as_echo_n "checking for library containing opendir... " >&6; }
10700if test "${ac_cv_search_opendir+set}" = set; then
10701  $as_echo_n "(cached) " >&6
10702else
10703  ac_func_search_save_LIBS=$LIBS
10704cat >conftest.$ac_ext <<_ACEOF
10705/* confdefs.h.  */
10706_ACEOF
10707cat confdefs.h >>conftest.$ac_ext
10708cat >>conftest.$ac_ext <<_ACEOF
10709/* end confdefs.h.  */
10710
10711/* Override any GCC internal prototype to avoid an error.
10712   Use char because int might match the return type of a GCC
10713   builtin and then its argument prototype would still apply.  */
10714#ifdef __cplusplus
10715extern "C"
10716#endif
10717char opendir ();
10718int
10719main ()
10720{
10721return opendir ();
10722  ;
10723  return 0;
10724}
10725_ACEOF
10726for ac_lib in '' x; do
10727  if test -z "$ac_lib"; then
10728    ac_res="none required"
10729  else
10730    ac_res=-l$ac_lib
10731    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10732  fi
10733  rm -f conftest.$ac_objext conftest$ac_exeext
10734if { (ac_try="$ac_link"
10735case "(($ac_try" in
10736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10737  *) ac_try_echo=$ac_try;;
10738esac
10739eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10740$as_echo "$ac_try_echo") >&5
10741  (eval "$ac_link") 2>conftest.er1
10742  ac_status=$?
10743  grep -v '^ *+' conftest.er1 >conftest.err
10744  rm -f conftest.er1
10745  cat conftest.err >&5
10746  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747  (exit $ac_status); } && {
10748	 test -z "$ac_c_werror_flag" ||
10749	 test ! -s conftest.err
10750       } && test -s conftest$ac_exeext && {
10751	 test "$cross_compiling" = yes ||
10752	 $as_test_x conftest$ac_exeext
10753       }; then
10754  ac_cv_search_opendir=$ac_res
10755else
10756  $as_echo "$as_me: failed program was:" >&5
10757sed 's/^/| /' conftest.$ac_ext >&5
10758
10759
10760fi
10761
10762rm -rf conftest.dSYM
10763rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10764      conftest$ac_exeext
10765  if test "${ac_cv_search_opendir+set}" = set; then
10766  break
10767fi
10768done
10769if test "${ac_cv_search_opendir+set}" = set; then
10770  :
10771else
10772  ac_cv_search_opendir=no
10773fi
10774rm conftest.$ac_ext
10775LIBS=$ac_func_search_save_LIBS
10776fi
10777{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10778$as_echo "$ac_cv_search_opendir" >&6; }
10779ac_res=$ac_cv_search_opendir
10780if test "$ac_res" != no; then
10781  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10782
10783fi
10784
10785fi
10786
10787
10788if test $ac_cv_header_sys_wait_h = no; then
10789  { $as_echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10790$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
10791  cat >conftest.$ac_ext <<_ACEOF
10792/* confdefs.h.  */
10793_ACEOF
10794cat confdefs.h >>conftest.$ac_ext
10795cat >>conftest.$ac_ext <<_ACEOF
10796/* end confdefs.h.  */
10797#include <sys/wait.h>
10798int
10799main ()
10800{
10801union wait xx, yy; xx = yy
10802  ;
10803  return 0;
10804}
10805_ACEOF
10806rm -f conftest.$ac_objext
10807if { (ac_try="$ac_compile"
10808case "(($ac_try" in
10809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10810  *) ac_try_echo=$ac_try;;
10811esac
10812eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10813$as_echo "$ac_try_echo") >&5
10814  (eval "$ac_compile") 2>conftest.er1
10815  ac_status=$?
10816  grep -v '^ *+' conftest.er1 >conftest.err
10817  rm -f conftest.er1
10818  cat conftest.err >&5
10819  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820  (exit $ac_status); } && {
10821	 test -z "$ac_c_werror_flag" ||
10822	 test ! -s conftest.err
10823       } && test -s conftest.$ac_objext; then
10824  { $as_echo "$as_me:$LINENO: result: yes" >&5
10825$as_echo "yes" >&6; }
10826			cat >>confdefs.h <<\_ACEOF
10827#define HAVE_SYS_WAIT_H 1
10828_ACEOF
10829
10830			cat >>confdefs.h <<\_ACEOF
10831#define HAVE_UNION_WAIT 1
10832_ACEOF
10833
10834else
10835  $as_echo "$as_me: failed program was:" >&5
10836sed 's/^/| /' conftest.$ac_ext >&5
10837
10838	{ $as_echo "$as_me:$LINENO: result: no" >&5
10839$as_echo "no" >&6; }
10840fi
10841
10842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10843fi
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
10888	termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \
10889	iconv.h langinfo.h math.h unistd.h stropts.h errno.h \
10890	sys/resource.h sys/systeminfo.h locale.h \
10891	sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \
10892	poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
10893	libgen.h util/debug.h util/msg18n.h frame.h \
10894	sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h wctype.h
10895do
10896as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10897if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10898  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10899$as_echo_n "checking for $ac_header... " >&6; }
10900if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10901  $as_echo_n "(cached) " >&6
10902fi
10903ac_res=`eval 'as_val=${'$as_ac_Header'}
10904		 $as_echo "$as_val"'`
10905	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10906$as_echo "$ac_res" >&6; }
10907else
10908  # Is the header compilable?
10909{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10910$as_echo_n "checking $ac_header usability... " >&6; }
10911cat >conftest.$ac_ext <<_ACEOF
10912/* confdefs.h.  */
10913_ACEOF
10914cat confdefs.h >>conftest.$ac_ext
10915cat >>conftest.$ac_ext <<_ACEOF
10916/* end confdefs.h.  */
10917$ac_includes_default
10918#include <$ac_header>
10919_ACEOF
10920rm -f conftest.$ac_objext
10921if { (ac_try="$ac_compile"
10922case "(($ac_try" in
10923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924  *) ac_try_echo=$ac_try;;
10925esac
10926eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10927$as_echo "$ac_try_echo") >&5
10928  (eval "$ac_compile") 2>conftest.er1
10929  ac_status=$?
10930  grep -v '^ *+' conftest.er1 >conftest.err
10931  rm -f conftest.er1
10932  cat conftest.err >&5
10933  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934  (exit $ac_status); } && {
10935	 test -z "$ac_c_werror_flag" ||
10936	 test ! -s conftest.err
10937       } && test -s conftest.$ac_objext; then
10938  ac_header_compiler=yes
10939else
10940  $as_echo "$as_me: failed program was:" >&5
10941sed 's/^/| /' conftest.$ac_ext >&5
10942
10943	ac_header_compiler=no
10944fi
10945
10946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10947{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10948$as_echo "$ac_header_compiler" >&6; }
10949
10950# Is the header present?
10951{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10952$as_echo_n "checking $ac_header presence... " >&6; }
10953cat >conftest.$ac_ext <<_ACEOF
10954/* confdefs.h.  */
10955_ACEOF
10956cat confdefs.h >>conftest.$ac_ext
10957cat >>conftest.$ac_ext <<_ACEOF
10958/* end confdefs.h.  */
10959#include <$ac_header>
10960_ACEOF
10961if { (ac_try="$ac_cpp conftest.$ac_ext"
10962case "(($ac_try" in
10963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10964  *) ac_try_echo=$ac_try;;
10965esac
10966eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10967$as_echo "$ac_try_echo") >&5
10968  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10969  ac_status=$?
10970  grep -v '^ *+' conftest.er1 >conftest.err
10971  rm -f conftest.er1
10972  cat conftest.err >&5
10973  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974  (exit $ac_status); } >/dev/null && {
10975	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10976	 test ! -s conftest.err
10977       }; then
10978  ac_header_preproc=yes
10979else
10980  $as_echo "$as_me: failed program was:" >&5
10981sed 's/^/| /' conftest.$ac_ext >&5
10982
10983  ac_header_preproc=no
10984fi
10985
10986rm -f conftest.err conftest.$ac_ext
10987{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10988$as_echo "$ac_header_preproc" >&6; }
10989
10990# So?  What about this header?
10991case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10992  yes:no: )
10993    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10994$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10995    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10996$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10997    ac_header_preproc=yes
10998    ;;
10999  no:yes:* )
11000    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11001$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11002    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11003$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11004    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11005$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11006    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11007$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11008    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11009$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11010    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11011$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11012
11013    ;;
11014esac
11015{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11016$as_echo_n "checking for $ac_header... " >&6; }
11017if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11018  $as_echo_n "(cached) " >&6
11019else
11020  eval "$as_ac_Header=\$ac_header_preproc"
11021fi
11022ac_res=`eval 'as_val=${'$as_ac_Header'}
11023		 $as_echo "$as_val"'`
11024	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11025$as_echo "$ac_res" >&6; }
11026
11027fi
11028if test `eval 'as_val=${'$as_ac_Header'}
11029		 $as_echo "$as_val"'` = yes; then
11030  cat >>confdefs.h <<_ACEOF
11031#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11032_ACEOF
11033
11034fi
11035
11036done
11037
11038
11039{ $as_echo "$as_me:$LINENO: checking for pthread_np.h" >&5
11040$as_echo_n "checking for pthread_np.h... " >&6; }
11041cat >conftest.$ac_ext <<_ACEOF
11042/* confdefs.h.  */
11043_ACEOF
11044cat confdefs.h >>conftest.$ac_ext
11045cat >>conftest.$ac_ext <<_ACEOF
11046/* end confdefs.h.  */
11047
11048#include <pthread.h>
11049#include <pthread_np.h>
11050int
11051main ()
11052{
11053int i; i = 0;
11054  ;
11055  return 0;
11056}
11057_ACEOF
11058rm -f conftest.$ac_objext
11059if { (ac_try="$ac_compile"
11060case "(($ac_try" in
11061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062  *) ac_try_echo=$ac_try;;
11063esac
11064eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11065$as_echo "$ac_try_echo") >&5
11066  (eval "$ac_compile") 2>conftest.er1
11067  ac_status=$?
11068  grep -v '^ *+' conftest.er1 >conftest.err
11069  rm -f conftest.er1
11070  cat conftest.err >&5
11071  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072  (exit $ac_status); } && {
11073	 test -z "$ac_c_werror_flag" ||
11074	 test ! -s conftest.err
11075       } && test -s conftest.$ac_objext; then
11076  { $as_echo "$as_me:$LINENO: result: yes" >&5
11077$as_echo "yes" >&6; }
11078		      cat >>confdefs.h <<\_ACEOF
11079#define HAVE_PTHREAD_NP_H 1
11080_ACEOF
11081
11082else
11083  $as_echo "$as_me: failed program was:" >&5
11084sed 's/^/| /' conftest.$ac_ext >&5
11085
11086	{ $as_echo "$as_me:$LINENO: result: no" >&5
11087$as_echo "no" >&6; }
11088fi
11089
11090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11091
11092
11093for ac_header in strings.h
11094do
11095as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11096if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11097  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11098$as_echo_n "checking for $ac_header... " >&6; }
11099if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11100  $as_echo_n "(cached) " >&6
11101fi
11102ac_res=`eval 'as_val=${'$as_ac_Header'}
11103		 $as_echo "$as_val"'`
11104	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11105$as_echo "$ac_res" >&6; }
11106else
11107  # Is the header compilable?
11108{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11109$as_echo_n "checking $ac_header usability... " >&6; }
11110cat >conftest.$ac_ext <<_ACEOF
11111/* confdefs.h.  */
11112_ACEOF
11113cat confdefs.h >>conftest.$ac_ext
11114cat >>conftest.$ac_ext <<_ACEOF
11115/* end confdefs.h.  */
11116$ac_includes_default
11117#include <$ac_header>
11118_ACEOF
11119rm -f conftest.$ac_objext
11120if { (ac_try="$ac_compile"
11121case "(($ac_try" in
11122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123  *) ac_try_echo=$ac_try;;
11124esac
11125eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11126$as_echo "$ac_try_echo") >&5
11127  (eval "$ac_compile") 2>conftest.er1
11128  ac_status=$?
11129  grep -v '^ *+' conftest.er1 >conftest.err
11130  rm -f conftest.er1
11131  cat conftest.err >&5
11132  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133  (exit $ac_status); } && {
11134	 test -z "$ac_c_werror_flag" ||
11135	 test ! -s conftest.err
11136       } && test -s conftest.$ac_objext; then
11137  ac_header_compiler=yes
11138else
11139  $as_echo "$as_me: failed program was:" >&5
11140sed 's/^/| /' conftest.$ac_ext >&5
11141
11142	ac_header_compiler=no
11143fi
11144
11145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11146{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11147$as_echo "$ac_header_compiler" >&6; }
11148
11149# Is the header present?
11150{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11151$as_echo_n "checking $ac_header presence... " >&6; }
11152cat >conftest.$ac_ext <<_ACEOF
11153/* confdefs.h.  */
11154_ACEOF
11155cat confdefs.h >>conftest.$ac_ext
11156cat >>conftest.$ac_ext <<_ACEOF
11157/* end confdefs.h.  */
11158#include <$ac_header>
11159_ACEOF
11160if { (ac_try="$ac_cpp conftest.$ac_ext"
11161case "(($ac_try" in
11162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11163  *) ac_try_echo=$ac_try;;
11164esac
11165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11166$as_echo "$ac_try_echo") >&5
11167  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11168  ac_status=$?
11169  grep -v '^ *+' conftest.er1 >conftest.err
11170  rm -f conftest.er1
11171  cat conftest.err >&5
11172  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173  (exit $ac_status); } >/dev/null && {
11174	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11175	 test ! -s conftest.err
11176       }; then
11177  ac_header_preproc=yes
11178else
11179  $as_echo "$as_me: failed program was:" >&5
11180sed 's/^/| /' conftest.$ac_ext >&5
11181
11182  ac_header_preproc=no
11183fi
11184
11185rm -f conftest.err conftest.$ac_ext
11186{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11187$as_echo "$ac_header_preproc" >&6; }
11188
11189# So?  What about this header?
11190case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11191  yes:no: )
11192    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11193$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11194    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11195$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11196    ac_header_preproc=yes
11197    ;;
11198  no:yes:* )
11199    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11200$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11201    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11202$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11203    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11204$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11205    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11206$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11207    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11208$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11209    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11210$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11211
11212    ;;
11213esac
11214{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11215$as_echo_n "checking for $ac_header... " >&6; }
11216if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11217  $as_echo_n "(cached) " >&6
11218else
11219  eval "$as_ac_Header=\$ac_header_preproc"
11220fi
11221ac_res=`eval 'as_val=${'$as_ac_Header'}
11222		 $as_echo "$as_val"'`
11223	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11224$as_echo "$ac_res" >&6; }
11225
11226fi
11227if test `eval 'as_val=${'$as_ac_Header'}
11228		 $as_echo "$as_val"'` = yes; then
11229  cat >>confdefs.h <<_ACEOF
11230#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11231_ACEOF
11232
11233fi
11234
11235done
11236
11237if test "x$MACOSX" = "xyes"; then
11238    cat >>confdefs.h <<\_ACEOF
11239#define NO_STRINGS_WITH_STRING_H 1
11240_ACEOF
11241
11242else
11243
11244{ $as_echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
11245$as_echo_n "checking if strings.h can be included after string.h... " >&6; }
11246cppflags_save=$CPPFLAGS
11247CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11248cat >conftest.$ac_ext <<_ACEOF
11249/* confdefs.h.  */
11250_ACEOF
11251cat confdefs.h >>conftest.$ac_ext
11252cat >>conftest.$ac_ext <<_ACEOF
11253/* end confdefs.h.  */
11254
11255#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11256# define _NO_PROTO	/* like in os_unix.h, causes conflict for AIX (Winn) */
11257			/* but don't do it on AIX 5.1 (Uribarri) */
11258#endif
11259#ifdef HAVE_XM_XM_H
11260# include <Xm/Xm.h>	/* This breaks it for HP-UX 11 (Squassabia) */
11261#endif
11262#ifdef HAVE_STRING_H
11263# include <string.h>
11264#endif
11265#if defined(HAVE_STRINGS_H)
11266# include <strings.h>
11267#endif
11268
11269int
11270main ()
11271{
11272int i; i = 0;
11273  ;
11274  return 0;
11275}
11276_ACEOF
11277rm -f conftest.$ac_objext
11278if { (ac_try="$ac_compile"
11279case "(($ac_try" in
11280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11281  *) ac_try_echo=$ac_try;;
11282esac
11283eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11284$as_echo "$ac_try_echo") >&5
11285  (eval "$ac_compile") 2>conftest.er1
11286  ac_status=$?
11287  grep -v '^ *+' conftest.er1 >conftest.err
11288  rm -f conftest.er1
11289  cat conftest.err >&5
11290  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291  (exit $ac_status); } && {
11292	 test -z "$ac_c_werror_flag" ||
11293	 test ! -s conftest.err
11294       } && test -s conftest.$ac_objext; then
11295  { $as_echo "$as_me:$LINENO: result: yes" >&5
11296$as_echo "yes" >&6; }
11297else
11298  $as_echo "$as_me: failed program was:" >&5
11299sed 's/^/| /' conftest.$ac_ext >&5
11300
11301	cat >>confdefs.h <<\_ACEOF
11302#define NO_STRINGS_WITH_STRING_H 1
11303_ACEOF
11304
11305		{ $as_echo "$as_me:$LINENO: result: no" >&5
11306$as_echo "no" >&6; }
11307fi
11308
11309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11310CPPFLAGS=$cppflags_save
11311fi
11312
11313if test $ac_cv_c_compiler_gnu = yes; then
11314    { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11315$as_echo_n "checking whether $CC needs -traditional... " >&6; }
11316if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11317  $as_echo_n "(cached) " >&6
11318else
11319    ac_pattern="Autoconf.*'x'"
11320  cat >conftest.$ac_ext <<_ACEOF
11321/* confdefs.h.  */
11322_ACEOF
11323cat confdefs.h >>conftest.$ac_ext
11324cat >>conftest.$ac_ext <<_ACEOF
11325/* end confdefs.h.  */
11326#include <sgtty.h>
11327Autoconf TIOCGETP
11328_ACEOF
11329if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11330  $EGREP "$ac_pattern" >/dev/null 2>&1; then
11331  ac_cv_prog_gcc_traditional=yes
11332else
11333  ac_cv_prog_gcc_traditional=no
11334fi
11335rm -f conftest*
11336
11337
11338  if test $ac_cv_prog_gcc_traditional = no; then
11339    cat >conftest.$ac_ext <<_ACEOF
11340/* confdefs.h.  */
11341_ACEOF
11342cat confdefs.h >>conftest.$ac_ext
11343cat >>conftest.$ac_ext <<_ACEOF
11344/* end confdefs.h.  */
11345#include <termio.h>
11346Autoconf TCGETA
11347_ACEOF
11348if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11349  $EGREP "$ac_pattern" >/dev/null 2>&1; then
11350  ac_cv_prog_gcc_traditional=yes
11351fi
11352rm -f conftest*
11353
11354  fi
11355fi
11356{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11357$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11358  if test $ac_cv_prog_gcc_traditional = yes; then
11359    CC="$CC -traditional"
11360  fi
11361fi
11362
11363{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11364$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11365if test "${ac_cv_c_const+set}" = set; then
11366  $as_echo_n "(cached) " >&6
11367else
11368  cat >conftest.$ac_ext <<_ACEOF
11369/* confdefs.h.  */
11370_ACEOF
11371cat confdefs.h >>conftest.$ac_ext
11372cat >>conftest.$ac_ext <<_ACEOF
11373/* end confdefs.h.  */
11374
11375int
11376main ()
11377{
11378/* FIXME: Include the comments suggested by Paul. */
11379#ifndef __cplusplus
11380  /* Ultrix mips cc rejects this.  */
11381  typedef int charset[2];
11382  const charset cs;
11383  /* SunOS 4.1.1 cc rejects this.  */
11384  char const *const *pcpcc;
11385  char **ppc;
11386  /* NEC SVR4.0.2 mips cc rejects this.  */
11387  struct point {int x, y;};
11388  static struct point const zero = {0,0};
11389  /* AIX XL C 1.02.0.0 rejects this.
11390     It does not let you subtract one const X* pointer from another in
11391     an arm of an if-expression whose if-part is not a constant
11392     expression */
11393  const char *g = "string";
11394  pcpcc = &g + (g ? g-g : 0);
11395  /* HPUX 7.0 cc rejects these. */
11396  ++pcpcc;
11397  ppc = (char**) pcpcc;
11398  pcpcc = (char const *const *) ppc;
11399  { /* SCO 3.2v4 cc rejects this.  */
11400    char *t;
11401    char const *s = 0 ? (char *) 0 : (char const *) 0;
11402
11403    *t++ = 0;
11404    if (s) return 0;
11405  }
11406  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11407    int x[] = {25, 17};
11408    const int *foo = &x[0];
11409    ++foo;
11410  }
11411  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11412    typedef const int *iptr;
11413    iptr p = 0;
11414    ++p;
11415  }
11416  { /* AIX XL C 1.02.0.0 rejects this saying
11417       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11418    struct s { int j; const int *ap[3]; };
11419    struct s *b; b->j = 5;
11420  }
11421  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11422    const int foo = 10;
11423    if (!foo) return 0;
11424  }
11425  return !cs[0] && !zero.x;
11426#endif
11427
11428  ;
11429  return 0;
11430}
11431_ACEOF
11432rm -f conftest.$ac_objext
11433if { (ac_try="$ac_compile"
11434case "(($ac_try" in
11435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436  *) ac_try_echo=$ac_try;;
11437esac
11438eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11439$as_echo "$ac_try_echo") >&5
11440  (eval "$ac_compile") 2>conftest.er1
11441  ac_status=$?
11442  grep -v '^ *+' conftest.er1 >conftest.err
11443  rm -f conftest.er1
11444  cat conftest.err >&5
11445  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446  (exit $ac_status); } && {
11447	 test -z "$ac_c_werror_flag" ||
11448	 test ! -s conftest.err
11449       } && test -s conftest.$ac_objext; then
11450  ac_cv_c_const=yes
11451else
11452  $as_echo "$as_me: failed program was:" >&5
11453sed 's/^/| /' conftest.$ac_ext >&5
11454
11455	ac_cv_c_const=no
11456fi
11457
11458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11459fi
11460{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11461$as_echo "$ac_cv_c_const" >&6; }
11462if test $ac_cv_c_const = no; then
11463
11464cat >>confdefs.h <<\_ACEOF
11465#define const /**/
11466_ACEOF
11467
11468fi
11469
11470{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
11471$as_echo_n "checking for mode_t... " >&6; }
11472if test "${ac_cv_type_mode_t+set}" = set; then
11473  $as_echo_n "(cached) " >&6
11474else
11475  ac_cv_type_mode_t=no
11476cat >conftest.$ac_ext <<_ACEOF
11477/* confdefs.h.  */
11478_ACEOF
11479cat confdefs.h >>conftest.$ac_ext
11480cat >>conftest.$ac_ext <<_ACEOF
11481/* end confdefs.h.  */
11482$ac_includes_default
11483int
11484main ()
11485{
11486if (sizeof (mode_t))
11487       return 0;
11488  ;
11489  return 0;
11490}
11491_ACEOF
11492rm -f conftest.$ac_objext
11493if { (ac_try="$ac_compile"
11494case "(($ac_try" in
11495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11496  *) ac_try_echo=$ac_try;;
11497esac
11498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11499$as_echo "$ac_try_echo") >&5
11500  (eval "$ac_compile") 2>conftest.er1
11501  ac_status=$?
11502  grep -v '^ *+' conftest.er1 >conftest.err
11503  rm -f conftest.er1
11504  cat conftest.err >&5
11505  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506  (exit $ac_status); } && {
11507	 test -z "$ac_c_werror_flag" ||
11508	 test ! -s conftest.err
11509       } && test -s conftest.$ac_objext; then
11510  cat >conftest.$ac_ext <<_ACEOF
11511/* confdefs.h.  */
11512_ACEOF
11513cat confdefs.h >>conftest.$ac_ext
11514cat >>conftest.$ac_ext <<_ACEOF
11515/* end confdefs.h.  */
11516$ac_includes_default
11517int
11518main ()
11519{
11520if (sizeof ((mode_t)))
11521	  return 0;
11522  ;
11523  return 0;
11524}
11525_ACEOF
11526rm -f conftest.$ac_objext
11527if { (ac_try="$ac_compile"
11528case "(($ac_try" in
11529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530  *) ac_try_echo=$ac_try;;
11531esac
11532eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11533$as_echo "$ac_try_echo") >&5
11534  (eval "$ac_compile") 2>conftest.er1
11535  ac_status=$?
11536  grep -v '^ *+' conftest.er1 >conftest.err
11537  rm -f conftest.er1
11538  cat conftest.err >&5
11539  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540  (exit $ac_status); } && {
11541	 test -z "$ac_c_werror_flag" ||
11542	 test ! -s conftest.err
11543       } && test -s conftest.$ac_objext; then
11544  :
11545else
11546  $as_echo "$as_me: failed program was:" >&5
11547sed 's/^/| /' conftest.$ac_ext >&5
11548
11549	ac_cv_type_mode_t=yes
11550fi
11551
11552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11553else
11554  $as_echo "$as_me: failed program was:" >&5
11555sed 's/^/| /' conftest.$ac_ext >&5
11556
11557
11558fi
11559
11560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11561fi
11562{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11563$as_echo "$ac_cv_type_mode_t" >&6; }
11564if test $ac_cv_type_mode_t = yes; then
11565  :
11566else
11567
11568cat >>confdefs.h <<_ACEOF
11569#define mode_t int
11570_ACEOF
11571
11572fi
11573
11574{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
11575$as_echo_n "checking for off_t... " >&6; }
11576if test "${ac_cv_type_off_t+set}" = set; then
11577  $as_echo_n "(cached) " >&6
11578else
11579  ac_cv_type_off_t=no
11580cat >conftest.$ac_ext <<_ACEOF
11581/* confdefs.h.  */
11582_ACEOF
11583cat confdefs.h >>conftest.$ac_ext
11584cat >>conftest.$ac_ext <<_ACEOF
11585/* end confdefs.h.  */
11586$ac_includes_default
11587int
11588main ()
11589{
11590if (sizeof (off_t))
11591       return 0;
11592  ;
11593  return 0;
11594}
11595_ACEOF
11596rm -f conftest.$ac_objext
11597if { (ac_try="$ac_compile"
11598case "(($ac_try" in
11599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11600  *) ac_try_echo=$ac_try;;
11601esac
11602eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11603$as_echo "$ac_try_echo") >&5
11604  (eval "$ac_compile") 2>conftest.er1
11605  ac_status=$?
11606  grep -v '^ *+' conftest.er1 >conftest.err
11607  rm -f conftest.er1
11608  cat conftest.err >&5
11609  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610  (exit $ac_status); } && {
11611	 test -z "$ac_c_werror_flag" ||
11612	 test ! -s conftest.err
11613       } && test -s conftest.$ac_objext; then
11614  cat >conftest.$ac_ext <<_ACEOF
11615/* confdefs.h.  */
11616_ACEOF
11617cat confdefs.h >>conftest.$ac_ext
11618cat >>conftest.$ac_ext <<_ACEOF
11619/* end confdefs.h.  */
11620$ac_includes_default
11621int
11622main ()
11623{
11624if (sizeof ((off_t)))
11625	  return 0;
11626  ;
11627  return 0;
11628}
11629_ACEOF
11630rm -f conftest.$ac_objext
11631if { (ac_try="$ac_compile"
11632case "(($ac_try" in
11633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11634  *) ac_try_echo=$ac_try;;
11635esac
11636eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11637$as_echo "$ac_try_echo") >&5
11638  (eval "$ac_compile") 2>conftest.er1
11639  ac_status=$?
11640  grep -v '^ *+' conftest.er1 >conftest.err
11641  rm -f conftest.er1
11642  cat conftest.err >&5
11643  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644  (exit $ac_status); } && {
11645	 test -z "$ac_c_werror_flag" ||
11646	 test ! -s conftest.err
11647       } && test -s conftest.$ac_objext; then
11648  :
11649else
11650  $as_echo "$as_me: failed program was:" >&5
11651sed 's/^/| /' conftest.$ac_ext >&5
11652
11653	ac_cv_type_off_t=yes
11654fi
11655
11656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11657else
11658  $as_echo "$as_me: failed program was:" >&5
11659sed 's/^/| /' conftest.$ac_ext >&5
11660
11661
11662fi
11663
11664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11665fi
11666{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11667$as_echo "$ac_cv_type_off_t" >&6; }
11668if test $ac_cv_type_off_t = yes; then
11669  :
11670else
11671
11672cat >>confdefs.h <<_ACEOF
11673#define off_t long int
11674_ACEOF
11675
11676fi
11677
11678{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
11679$as_echo_n "checking for pid_t... " >&6; }
11680if test "${ac_cv_type_pid_t+set}" = set; then
11681  $as_echo_n "(cached) " >&6
11682else
11683  ac_cv_type_pid_t=no
11684cat >conftest.$ac_ext <<_ACEOF
11685/* confdefs.h.  */
11686_ACEOF
11687cat confdefs.h >>conftest.$ac_ext
11688cat >>conftest.$ac_ext <<_ACEOF
11689/* end confdefs.h.  */
11690$ac_includes_default
11691int
11692main ()
11693{
11694if (sizeof (pid_t))
11695       return 0;
11696  ;
11697  return 0;
11698}
11699_ACEOF
11700rm -f conftest.$ac_objext
11701if { (ac_try="$ac_compile"
11702case "(($ac_try" in
11703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11704  *) ac_try_echo=$ac_try;;
11705esac
11706eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11707$as_echo "$ac_try_echo") >&5
11708  (eval "$ac_compile") 2>conftest.er1
11709  ac_status=$?
11710  grep -v '^ *+' conftest.er1 >conftest.err
11711  rm -f conftest.er1
11712  cat conftest.err >&5
11713  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714  (exit $ac_status); } && {
11715	 test -z "$ac_c_werror_flag" ||
11716	 test ! -s conftest.err
11717       } && test -s conftest.$ac_objext; then
11718  cat >conftest.$ac_ext <<_ACEOF
11719/* confdefs.h.  */
11720_ACEOF
11721cat confdefs.h >>conftest.$ac_ext
11722cat >>conftest.$ac_ext <<_ACEOF
11723/* end confdefs.h.  */
11724$ac_includes_default
11725int
11726main ()
11727{
11728if (sizeof ((pid_t)))
11729	  return 0;
11730  ;
11731  return 0;
11732}
11733_ACEOF
11734rm -f conftest.$ac_objext
11735if { (ac_try="$ac_compile"
11736case "(($ac_try" in
11737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738  *) ac_try_echo=$ac_try;;
11739esac
11740eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11741$as_echo "$ac_try_echo") >&5
11742  (eval "$ac_compile") 2>conftest.er1
11743  ac_status=$?
11744  grep -v '^ *+' conftest.er1 >conftest.err
11745  rm -f conftest.er1
11746  cat conftest.err >&5
11747  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748  (exit $ac_status); } && {
11749	 test -z "$ac_c_werror_flag" ||
11750	 test ! -s conftest.err
11751       } && test -s conftest.$ac_objext; then
11752  :
11753else
11754  $as_echo "$as_me: failed program was:" >&5
11755sed 's/^/| /' conftest.$ac_ext >&5
11756
11757	ac_cv_type_pid_t=yes
11758fi
11759
11760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11761else
11762  $as_echo "$as_me: failed program was:" >&5
11763sed 's/^/| /' conftest.$ac_ext >&5
11764
11765
11766fi
11767
11768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11769fi
11770{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11771$as_echo "$ac_cv_type_pid_t" >&6; }
11772if test $ac_cv_type_pid_t = yes; then
11773  :
11774else
11775
11776cat >>confdefs.h <<_ACEOF
11777#define pid_t int
11778_ACEOF
11779
11780fi
11781
11782{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
11783$as_echo_n "checking for size_t... " >&6; }
11784if test "${ac_cv_type_size_t+set}" = set; then
11785  $as_echo_n "(cached) " >&6
11786else
11787  ac_cv_type_size_t=no
11788cat >conftest.$ac_ext <<_ACEOF
11789/* confdefs.h.  */
11790_ACEOF
11791cat confdefs.h >>conftest.$ac_ext
11792cat >>conftest.$ac_ext <<_ACEOF
11793/* end confdefs.h.  */
11794$ac_includes_default
11795int
11796main ()
11797{
11798if (sizeof (size_t))
11799       return 0;
11800  ;
11801  return 0;
11802}
11803_ACEOF
11804rm -f conftest.$ac_objext
11805if { (ac_try="$ac_compile"
11806case "(($ac_try" in
11807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11808  *) ac_try_echo=$ac_try;;
11809esac
11810eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11811$as_echo "$ac_try_echo") >&5
11812  (eval "$ac_compile") 2>conftest.er1
11813  ac_status=$?
11814  grep -v '^ *+' conftest.er1 >conftest.err
11815  rm -f conftest.er1
11816  cat conftest.err >&5
11817  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818  (exit $ac_status); } && {
11819	 test -z "$ac_c_werror_flag" ||
11820	 test ! -s conftest.err
11821       } && test -s conftest.$ac_objext; then
11822  cat >conftest.$ac_ext <<_ACEOF
11823/* confdefs.h.  */
11824_ACEOF
11825cat confdefs.h >>conftest.$ac_ext
11826cat >>conftest.$ac_ext <<_ACEOF
11827/* end confdefs.h.  */
11828$ac_includes_default
11829int
11830main ()
11831{
11832if (sizeof ((size_t)))
11833	  return 0;
11834  ;
11835  return 0;
11836}
11837_ACEOF
11838rm -f conftest.$ac_objext
11839if { (ac_try="$ac_compile"
11840case "(($ac_try" in
11841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11842  *) ac_try_echo=$ac_try;;
11843esac
11844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11845$as_echo "$ac_try_echo") >&5
11846  (eval "$ac_compile") 2>conftest.er1
11847  ac_status=$?
11848  grep -v '^ *+' conftest.er1 >conftest.err
11849  rm -f conftest.er1
11850  cat conftest.err >&5
11851  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852  (exit $ac_status); } && {
11853	 test -z "$ac_c_werror_flag" ||
11854	 test ! -s conftest.err
11855       } && test -s conftest.$ac_objext; then
11856  :
11857else
11858  $as_echo "$as_me: failed program was:" >&5
11859sed 's/^/| /' conftest.$ac_ext >&5
11860
11861	ac_cv_type_size_t=yes
11862fi
11863
11864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11865else
11866  $as_echo "$as_me: failed program was:" >&5
11867sed 's/^/| /' conftest.$ac_ext >&5
11868
11869
11870fi
11871
11872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11873fi
11874{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11875$as_echo "$ac_cv_type_size_t" >&6; }
11876if test $ac_cv_type_size_t = yes; then
11877  :
11878else
11879
11880cat >>confdefs.h <<_ACEOF
11881#define size_t unsigned int
11882_ACEOF
11883
11884fi
11885
11886{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11887$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11888if test "${ac_cv_type_uid_t+set}" = set; then
11889  $as_echo_n "(cached) " >&6
11890else
11891  cat >conftest.$ac_ext <<_ACEOF
11892/* confdefs.h.  */
11893_ACEOF
11894cat confdefs.h >>conftest.$ac_ext
11895cat >>conftest.$ac_ext <<_ACEOF
11896/* end confdefs.h.  */
11897#include <sys/types.h>
11898
11899_ACEOF
11900if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11901  $EGREP "uid_t" >/dev/null 2>&1; then
11902  ac_cv_type_uid_t=yes
11903else
11904  ac_cv_type_uid_t=no
11905fi
11906rm -f conftest*
11907
11908fi
11909{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11910$as_echo "$ac_cv_type_uid_t" >&6; }
11911if test $ac_cv_type_uid_t = no; then
11912
11913cat >>confdefs.h <<\_ACEOF
11914#define uid_t int
11915_ACEOF
11916
11917
11918cat >>confdefs.h <<\_ACEOF
11919#define gid_t int
11920_ACEOF
11921
11922fi
11923
11924{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11925$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11926if test "${ac_cv_header_time+set}" = set; then
11927  $as_echo_n "(cached) " >&6
11928else
11929  cat >conftest.$ac_ext <<_ACEOF
11930/* confdefs.h.  */
11931_ACEOF
11932cat confdefs.h >>conftest.$ac_ext
11933cat >>conftest.$ac_ext <<_ACEOF
11934/* end confdefs.h.  */
11935#include <sys/types.h>
11936#include <sys/time.h>
11937#include <time.h>
11938
11939int
11940main ()
11941{
11942if ((struct tm *) 0)
11943return 0;
11944  ;
11945  return 0;
11946}
11947_ACEOF
11948rm -f conftest.$ac_objext
11949if { (ac_try="$ac_compile"
11950case "(($ac_try" in
11951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11952  *) ac_try_echo=$ac_try;;
11953esac
11954eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11955$as_echo "$ac_try_echo") >&5
11956  (eval "$ac_compile") 2>conftest.er1
11957  ac_status=$?
11958  grep -v '^ *+' conftest.er1 >conftest.err
11959  rm -f conftest.er1
11960  cat conftest.err >&5
11961  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962  (exit $ac_status); } && {
11963	 test -z "$ac_c_werror_flag" ||
11964	 test ! -s conftest.err
11965       } && test -s conftest.$ac_objext; then
11966  ac_cv_header_time=yes
11967else
11968  $as_echo "$as_me: failed program was:" >&5
11969sed 's/^/| /' conftest.$ac_ext >&5
11970
11971	ac_cv_header_time=no
11972fi
11973
11974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11975fi
11976{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11977$as_echo "$ac_cv_header_time" >&6; }
11978if test $ac_cv_header_time = yes; then
11979
11980cat >>confdefs.h <<\_ACEOF
11981#define TIME_WITH_SYS_TIME 1
11982_ACEOF
11983
11984fi
11985
11986{ $as_echo "$as_me:$LINENO: checking for ino_t" >&5
11987$as_echo_n "checking for ino_t... " >&6; }
11988if test "${ac_cv_type_ino_t+set}" = set; then
11989  $as_echo_n "(cached) " >&6
11990else
11991  ac_cv_type_ino_t=no
11992cat >conftest.$ac_ext <<_ACEOF
11993/* confdefs.h.  */
11994_ACEOF
11995cat confdefs.h >>conftest.$ac_ext
11996cat >>conftest.$ac_ext <<_ACEOF
11997/* end confdefs.h.  */
11998$ac_includes_default
11999int
12000main ()
12001{
12002if (sizeof (ino_t))
12003       return 0;
12004  ;
12005  return 0;
12006}
12007_ACEOF
12008rm -f conftest.$ac_objext
12009if { (ac_try="$ac_compile"
12010case "(($ac_try" in
12011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012  *) ac_try_echo=$ac_try;;
12013esac
12014eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12015$as_echo "$ac_try_echo") >&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  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022  (exit $ac_status); } && {
12023	 test -z "$ac_c_werror_flag" ||
12024	 test ! -s conftest.err
12025       } && test -s conftest.$ac_objext; then
12026  cat >conftest.$ac_ext <<_ACEOF
12027/* confdefs.h.  */
12028_ACEOF
12029cat confdefs.h >>conftest.$ac_ext
12030cat >>conftest.$ac_ext <<_ACEOF
12031/* end confdefs.h.  */
12032$ac_includes_default
12033int
12034main ()
12035{
12036if (sizeof ((ino_t)))
12037	  return 0;
12038  ;
12039  return 0;
12040}
12041_ACEOF
12042rm -f conftest.$ac_objext
12043if { (ac_try="$ac_compile"
12044case "(($ac_try" in
12045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046  *) ac_try_echo=$ac_try;;
12047esac
12048eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12049$as_echo "$ac_try_echo") >&5
12050  (eval "$ac_compile") 2>conftest.er1
12051  ac_status=$?
12052  grep -v '^ *+' conftest.er1 >conftest.err
12053  rm -f conftest.er1
12054  cat conftest.err >&5
12055  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056  (exit $ac_status); } && {
12057	 test -z "$ac_c_werror_flag" ||
12058	 test ! -s conftest.err
12059       } && test -s conftest.$ac_objext; then
12060  :
12061else
12062  $as_echo "$as_me: failed program was:" >&5
12063sed 's/^/| /' conftest.$ac_ext >&5
12064
12065	ac_cv_type_ino_t=yes
12066fi
12067
12068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12069else
12070  $as_echo "$as_me: failed program was:" >&5
12071sed 's/^/| /' conftest.$ac_ext >&5
12072
12073
12074fi
12075
12076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12077fi
12078{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12079$as_echo "$ac_cv_type_ino_t" >&6; }
12080if test $ac_cv_type_ino_t = yes; then
12081  :
12082else
12083
12084cat >>confdefs.h <<_ACEOF
12085#define ino_t long
12086_ACEOF
12087
12088fi
12089
12090{ $as_echo "$as_me:$LINENO: checking for dev_t" >&5
12091$as_echo_n "checking for dev_t... " >&6; }
12092if test "${ac_cv_type_dev_t+set}" = set; then
12093  $as_echo_n "(cached) " >&6
12094else
12095  ac_cv_type_dev_t=no
12096cat >conftest.$ac_ext <<_ACEOF
12097/* confdefs.h.  */
12098_ACEOF
12099cat confdefs.h >>conftest.$ac_ext
12100cat >>conftest.$ac_ext <<_ACEOF
12101/* end confdefs.h.  */
12102$ac_includes_default
12103int
12104main ()
12105{
12106if (sizeof (dev_t))
12107       return 0;
12108  ;
12109  return 0;
12110}
12111_ACEOF
12112rm -f conftest.$ac_objext
12113if { (ac_try="$ac_compile"
12114case "(($ac_try" in
12115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12116  *) ac_try_echo=$ac_try;;
12117esac
12118eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12119$as_echo "$ac_try_echo") >&5
12120  (eval "$ac_compile") 2>conftest.er1
12121  ac_status=$?
12122  grep -v '^ *+' conftest.er1 >conftest.err
12123  rm -f conftest.er1
12124  cat conftest.err >&5
12125  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126  (exit $ac_status); } && {
12127	 test -z "$ac_c_werror_flag" ||
12128	 test ! -s conftest.err
12129       } && test -s conftest.$ac_objext; then
12130  cat >conftest.$ac_ext <<_ACEOF
12131/* confdefs.h.  */
12132_ACEOF
12133cat confdefs.h >>conftest.$ac_ext
12134cat >>conftest.$ac_ext <<_ACEOF
12135/* end confdefs.h.  */
12136$ac_includes_default
12137int
12138main ()
12139{
12140if (sizeof ((dev_t)))
12141	  return 0;
12142  ;
12143  return 0;
12144}
12145_ACEOF
12146rm -f conftest.$ac_objext
12147if { (ac_try="$ac_compile"
12148case "(($ac_try" in
12149  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150  *) ac_try_echo=$ac_try;;
12151esac
12152eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12153$as_echo "$ac_try_echo") >&5
12154  (eval "$ac_compile") 2>conftest.er1
12155  ac_status=$?
12156  grep -v '^ *+' conftest.er1 >conftest.err
12157  rm -f conftest.er1
12158  cat conftest.err >&5
12159  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160  (exit $ac_status); } && {
12161	 test -z "$ac_c_werror_flag" ||
12162	 test ! -s conftest.err
12163       } && test -s conftest.$ac_objext; then
12164  :
12165else
12166  $as_echo "$as_me: failed program was:" >&5
12167sed 's/^/| /' conftest.$ac_ext >&5
12168
12169	ac_cv_type_dev_t=yes
12170fi
12171
12172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12173else
12174  $as_echo "$as_me: failed program was:" >&5
12175sed 's/^/| /' conftest.$ac_ext >&5
12176
12177
12178fi
12179
12180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12181fi
12182{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12183$as_echo "$ac_cv_type_dev_t" >&6; }
12184if test $ac_cv_type_dev_t = yes; then
12185  :
12186else
12187
12188cat >>confdefs.h <<_ACEOF
12189#define dev_t unsigned
12190_ACEOF
12191
12192fi
12193
12194
12195{ $as_echo "$as_me:$LINENO: checking for rlim_t" >&5
12196$as_echo_n "checking for rlim_t... " >&6; }
12197if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
12198  { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
12199$as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
12200else
12201  cat >conftest.$ac_ext <<_ACEOF
12202/* confdefs.h.  */
12203_ACEOF
12204cat confdefs.h >>conftest.$ac_ext
12205cat >>conftest.$ac_ext <<_ACEOF
12206/* end confdefs.h.  */
12207
12208#include <sys/types.h>
12209#if STDC_HEADERS
12210# include <stdlib.h>
12211# include <stddef.h>
12212#endif
12213#ifdef HAVE_SYS_RESOURCE_H
12214# include <sys/resource.h>
12215#endif
12216
12217_ACEOF
12218if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12219  $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12220  ac_cv_type_rlim_t=yes
12221else
12222  ac_cv_type_rlim_t=no
12223fi
12224rm -f conftest*
12225
12226	  { $as_echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
12227$as_echo "$ac_cv_type_rlim_t" >&6; }
12228fi
12229if test $ac_cv_type_rlim_t = no; then
12230  cat >> confdefs.h <<\EOF
12231#define rlim_t unsigned long
12232EOF
12233fi
12234
12235{ $as_echo "$as_me:$LINENO: checking for stack_t" >&5
12236$as_echo_n "checking for stack_t... " >&6; }
12237if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
12238  { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
12239$as_echo "(cached) $ac_cv_type_stack_t" >&6; }
12240else
12241  cat >conftest.$ac_ext <<_ACEOF
12242/* confdefs.h.  */
12243_ACEOF
12244cat confdefs.h >>conftest.$ac_ext
12245cat >>conftest.$ac_ext <<_ACEOF
12246/* end confdefs.h.  */
12247
12248#include <sys/types.h>
12249#if STDC_HEADERS
12250# include <stdlib.h>
12251# include <stddef.h>
12252#endif
12253#include <signal.h>
12254
12255_ACEOF
12256if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12257  $EGREP "stack_t" >/dev/null 2>&1; then
12258  ac_cv_type_stack_t=yes
12259else
12260  ac_cv_type_stack_t=no
12261fi
12262rm -f conftest*
12263
12264	  { $as_echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
12265$as_echo "$ac_cv_type_stack_t" >&6; }
12266fi
12267if test $ac_cv_type_stack_t = no; then
12268  cat >> confdefs.h <<\EOF
12269#define stack_t struct sigaltstack
12270EOF
12271fi
12272
12273{ $as_echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
12274$as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
12275cat >conftest.$ac_ext <<_ACEOF
12276/* confdefs.h.  */
12277_ACEOF
12278cat confdefs.h >>conftest.$ac_ext
12279cat >>conftest.$ac_ext <<_ACEOF
12280/* end confdefs.h.  */
12281
12282#include <sys/types.h>
12283#if STDC_HEADERS
12284# include <stdlib.h>
12285# include <stddef.h>
12286#endif
12287#include <signal.h>
12288#include "confdefs.h"
12289
12290int
12291main ()
12292{
12293stack_t sigstk; sigstk.ss_base = 0;
12294  ;
12295  return 0;
12296}
12297_ACEOF
12298rm -f conftest.$ac_objext
12299if { (ac_try="$ac_compile"
12300case "(($ac_try" in
12301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12302  *) ac_try_echo=$ac_try;;
12303esac
12304eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12305$as_echo "$ac_try_echo") >&5
12306  (eval "$ac_compile") 2>conftest.er1
12307  ac_status=$?
12308  grep -v '^ *+' conftest.er1 >conftest.err
12309  rm -f conftest.er1
12310  cat conftest.err >&5
12311  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312  (exit $ac_status); } && {
12313	 test -z "$ac_c_werror_flag" ||
12314	 test ! -s conftest.err
12315       } && test -s conftest.$ac_objext; then
12316  { $as_echo "$as_me:$LINENO: result: yes" >&5
12317$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12318#define HAVE_SS_BASE 1
12319_ACEOF
12320
12321else
12322  $as_echo "$as_me: failed program was:" >&5
12323sed 's/^/| /' conftest.$ac_ext >&5
12324
12325	{ $as_echo "$as_me:$LINENO: result: no" >&5
12326$as_echo "no" >&6; }
12327fi
12328
12329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12330
12331olibs="$LIBS"
12332{ $as_echo "$as_me:$LINENO: checking --with-tlib argument" >&5
12333$as_echo_n "checking --with-tlib argument... " >&6; }
12334
12335# Check whether --with-tlib was given.
12336if test "${with_tlib+set}" = set; then
12337  withval=$with_tlib;
12338fi
12339
12340if test -n "$with_tlib"; then
12341  { $as_echo "$as_me:$LINENO: result: $with_tlib" >&5
12342$as_echo "$with_tlib" >&6; }
12343  LIBS="$LIBS -l$with_tlib"
12344  { $as_echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
12345$as_echo_n "checking for linking with $with_tlib library... " >&6; }
12346  cat >conftest.$ac_ext <<_ACEOF
12347/* confdefs.h.  */
12348_ACEOF
12349cat confdefs.h >>conftest.$ac_ext
12350cat >>conftest.$ac_ext <<_ACEOF
12351/* end confdefs.h.  */
12352
12353int
12354main ()
12355{
12356
12357  ;
12358  return 0;
12359}
12360_ACEOF
12361rm -f conftest.$ac_objext conftest$ac_exeext
12362if { (ac_try="$ac_link"
12363case "(($ac_try" in
12364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12365  *) ac_try_echo=$ac_try;;
12366esac
12367eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12368$as_echo "$ac_try_echo") >&5
12369  (eval "$ac_link") 2>conftest.er1
12370  ac_status=$?
12371  grep -v '^ *+' conftest.er1 >conftest.err
12372  rm -f conftest.er1
12373  cat conftest.err >&5
12374  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375  (exit $ac_status); } && {
12376	 test -z "$ac_c_werror_flag" ||
12377	 test ! -s conftest.err
12378       } && test -s conftest$ac_exeext && {
12379	 test "$cross_compiling" = yes ||
12380	 $as_test_x conftest$ac_exeext
12381       }; then
12382  { $as_echo "$as_me:$LINENO: result: OK" >&5
12383$as_echo "OK" >&6; }
12384else
12385  $as_echo "$as_me: failed program was:" >&5
12386sed 's/^/| /' conftest.$ac_ext >&5
12387
12388	{ { $as_echo "$as_me:$LINENO: error: FAILED" >&5
12389$as_echo "$as_me: error: FAILED" >&2;}
12390   { (exit 1); exit 1; }; }
12391fi
12392
12393rm -rf conftest.dSYM
12394rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12395      conftest$ac_exeext conftest.$ac_ext
12396    olibs="$LIBS"
12397else
12398  { $as_echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
12399$as_echo "empty: automatic terminal library selection" >&6; }
12400              case "`uname -s 2>/dev/null`" in
12401	OSF1|SCO_SV)	tlibs="ncurses curses termlib termcap";;
12402	*)	tlibs="ncurses termlib termcap curses";;
12403  esac
12404  for libname in $tlibs; do
12405
12406as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
12407{ $as_echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
12408$as_echo_n "checking for tgetent in -l${libname}... " >&6; }
12409if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12410  $as_echo_n "(cached) " >&6
12411else
12412  ac_check_lib_save_LIBS=$LIBS
12413LIBS="-l${libname}  $LIBS"
12414cat >conftest.$ac_ext <<_ACEOF
12415/* confdefs.h.  */
12416_ACEOF
12417cat confdefs.h >>conftest.$ac_ext
12418cat >>conftest.$ac_ext <<_ACEOF
12419/* end confdefs.h.  */
12420
12421/* Override any GCC internal prototype to avoid an error.
12422   Use char because int might match the return type of a GCC
12423   builtin and then its argument prototype would still apply.  */
12424#ifdef __cplusplus
12425extern "C"
12426#endif
12427char tgetent ();
12428int
12429main ()
12430{
12431return tgetent ();
12432  ;
12433  return 0;
12434}
12435_ACEOF
12436rm -f conftest.$ac_objext conftest$ac_exeext
12437if { (ac_try="$ac_link"
12438case "(($ac_try" in
12439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12440  *) ac_try_echo=$ac_try;;
12441esac
12442eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12443$as_echo "$ac_try_echo") >&5
12444  (eval "$ac_link") 2>conftest.er1
12445  ac_status=$?
12446  grep -v '^ *+' conftest.er1 >conftest.err
12447  rm -f conftest.er1
12448  cat conftest.err >&5
12449  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450  (exit $ac_status); } && {
12451	 test -z "$ac_c_werror_flag" ||
12452	 test ! -s conftest.err
12453       } && test -s conftest$ac_exeext && {
12454	 test "$cross_compiling" = yes ||
12455	 $as_test_x conftest$ac_exeext
12456       }; then
12457  eval "$as_ac_Lib=yes"
12458else
12459  $as_echo "$as_me: failed program was:" >&5
12460sed 's/^/| /' conftest.$ac_ext >&5
12461
12462	eval "$as_ac_Lib=no"
12463fi
12464
12465rm -rf conftest.dSYM
12466rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12467      conftest$ac_exeext conftest.$ac_ext
12468LIBS=$ac_check_lib_save_LIBS
12469fi
12470ac_res=`eval 'as_val=${'$as_ac_Lib'}
12471		 $as_echo "$as_val"'`
12472	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12473$as_echo "$ac_res" >&6; }
12474if test `eval 'as_val=${'$as_ac_Lib'}
12475		 $as_echo "$as_val"'` = yes; then
12476  cat >>confdefs.h <<_ACEOF
12477#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
12478_ACEOF
12479
12480  LIBS="-l${libname} $LIBS"
12481
12482fi
12483
12484    if test "x$olibs" != "x$LIBS"; then
12485                        if test "$cross_compiling" = yes; then
12486  res="FAIL"
12487else
12488  cat >conftest.$ac_ext <<_ACEOF
12489/* confdefs.h.  */
12490_ACEOF
12491cat confdefs.h >>conftest.$ac_ext
12492cat >>conftest.$ac_ext <<_ACEOF
12493/* end confdefs.h.  */
12494
12495#ifdef HAVE_TERMCAP_H
12496# include <termcap.h>
12497#endif
12498#if STDC_HEADERS
12499# include <stdlib.h>
12500# include <stddef.h>
12501#endif
12502main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
12503_ACEOF
12504rm -f conftest$ac_exeext
12505if { (ac_try="$ac_link"
12506case "(($ac_try" in
12507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12508  *) ac_try_echo=$ac_try;;
12509esac
12510eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12511$as_echo "$ac_try_echo") >&5
12512  (eval "$ac_link") 2>&5
12513  ac_status=$?
12514  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12516  { (case "(($ac_try" in
12517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12518  *) ac_try_echo=$ac_try;;
12519esac
12520eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12521$as_echo "$ac_try_echo") >&5
12522  (eval "$ac_try") 2>&5
12523  ac_status=$?
12524  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525  (exit $ac_status); }; }; then
12526  res="OK"
12527else
12528  $as_echo "$as_me: program exited with status $ac_status" >&5
12529$as_echo "$as_me: failed program was:" >&5
12530sed 's/^/| /' conftest.$ac_ext >&5
12531
12532( exit $ac_status )
12533res="FAIL"
12534fi
12535rm -rf conftest.dSYM
12536rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12537fi
12538
12539
12540      if test "$res" = "OK"; then
12541	break
12542      fi
12543      { $as_echo "$as_me:$LINENO: result: $libname library is not usable" >&5
12544$as_echo "$libname library is not usable" >&6; }
12545      LIBS="$olibs"
12546    fi
12547  done
12548  if test "x$olibs" = "x$LIBS"; then
12549    { $as_echo "$as_me:$LINENO: result: no terminal library found" >&5
12550$as_echo "no terminal library found" >&6; }
12551  fi
12552fi
12553
12554if test "x$olibs" = "x$LIBS"; then
12555  { $as_echo "$as_me:$LINENO: checking for tgetent()" >&5
12556$as_echo_n "checking for tgetent()... " >&6; }
12557  cat >conftest.$ac_ext <<_ACEOF
12558/* confdefs.h.  */
12559_ACEOF
12560cat confdefs.h >>conftest.$ac_ext
12561cat >>conftest.$ac_ext <<_ACEOF
12562/* end confdefs.h.  */
12563
12564int
12565main ()
12566{
12567char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
12568  ;
12569  return 0;
12570}
12571_ACEOF
12572rm -f conftest.$ac_objext conftest$ac_exeext
12573if { (ac_try="$ac_link"
12574case "(($ac_try" in
12575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12576  *) ac_try_echo=$ac_try;;
12577esac
12578eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12579$as_echo "$ac_try_echo") >&5
12580  (eval "$ac_link") 2>conftest.er1
12581  ac_status=$?
12582  grep -v '^ *+' conftest.er1 >conftest.err
12583  rm -f conftest.er1
12584  cat conftest.err >&5
12585  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586  (exit $ac_status); } && {
12587	 test -z "$ac_c_werror_flag" ||
12588	 test ! -s conftest.err
12589       } && test -s conftest$ac_exeext && {
12590	 test "$cross_compiling" = yes ||
12591	 $as_test_x conftest$ac_exeext
12592       }; then
12593  { $as_echo "$as_me:$LINENO: result: yes" >&5
12594$as_echo "yes" >&6; }
12595else
12596  $as_echo "$as_me: failed program was:" >&5
12597sed 's/^/| /' conftest.$ac_ext >&5
12598
12599	{ { $as_echo "$as_me:$LINENO: error: NOT FOUND!
12600      You need to install a terminal library; for example ncurses.
12601      Or specify the name of the library with --with-tlib." >&5
12602$as_echo "$as_me: error: NOT FOUND!
12603      You need to install a terminal library; for example ncurses.
12604      Or specify the name of the library with --with-tlib." >&2;}
12605   { (exit 1); exit 1; }; }
12606fi
12607
12608rm -rf conftest.dSYM
12609rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12610      conftest$ac_exeext conftest.$ac_ext
12611fi
12612
12613{ $as_echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
12614$as_echo_n "checking whether we talk terminfo... " >&6; }
12615if test "${vim_cv_terminfo+set}" = set; then
12616  $as_echo_n "(cached) " >&6
12617else
12618
12619    if test "$cross_compiling" = yes; then
12620
12621      { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5
12622$as_echo "$as_me: error: cross-compiling: please set 'vim_cv_terminfo'" >&2;}
12623   { (exit 1); exit 1; }; }
12624
12625else
12626  cat >conftest.$ac_ext <<_ACEOF
12627
12628#include "confdefs.h"
12629#ifdef HAVE_TERMCAP_H
12630# include <termcap.h>
12631#endif
12632#ifdef HAVE_STRING_H
12633# include <string.h>
12634#endif
12635#if STDC_HEADERS
12636# include <stdlib.h>
12637# include <stddef.h>
12638#endif
12639main()
12640{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
12641
12642_ACEOF
12643rm -f conftest$ac_exeext
12644if { (ac_try="$ac_link"
12645case "(($ac_try" in
12646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12647  *) ac_try_echo=$ac_try;;
12648esac
12649eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12650$as_echo "$ac_try_echo") >&5
12651  (eval "$ac_link") 2>&5
12652  ac_status=$?
12653  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12655  { (case "(($ac_try" in
12656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12657  *) ac_try_echo=$ac_try;;
12658esac
12659eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12660$as_echo "$ac_try_echo") >&5
12661  (eval "$ac_try") 2>&5
12662  ac_status=$?
12663  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664  (exit $ac_status); }; }; then
12665
12666      vim_cv_terminfo=no
12667
12668else
12669  $as_echo "$as_me: program exited with status $ac_status" >&5
12670$as_echo "$as_me: failed program was:" >&5
12671sed 's/^/| /' conftest.$ac_ext >&5
12672
12673( exit $ac_status )
12674
12675      vim_cv_terminfo=yes
12676
12677fi
12678rm -rf conftest.dSYM
12679rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12680fi
12681
12682
12683
12684fi
12685{ $as_echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5
12686$as_echo "$vim_cv_terminfo" >&6; }
12687
12688if test "x$vim_cv_terminfo" = "xyes" ; then
12689  cat >>confdefs.h <<\_ACEOF
12690#define TERMINFO 1
12691_ACEOF
12692
12693fi
12694
12695if test "x$olibs" != "x$LIBS"; then
12696  { $as_echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
12697$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
12698if test "${vim_cv_tgent+set}" = set; then
12699  $as_echo_n "(cached) " >&6
12700else
12701
12702      if test "$cross_compiling" = yes; then
12703
12704	{ { $as_echo "$as_me:$LINENO: error: failed to compile test program." >&5
12705$as_echo "$as_me: error: failed to compile test program." >&2;}
12706   { (exit 1); exit 1; }; }
12707
12708else
12709  cat >conftest.$ac_ext <<_ACEOF
12710
12711#include "confdefs.h"
12712#ifdef HAVE_TERMCAP_H
12713# include <termcap.h>
12714#endif
12715#if STDC_HEADERS
12716# include <stdlib.h>
12717# include <stddef.h>
12718#endif
12719main()
12720{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
12721
12722_ACEOF
12723rm -f conftest$ac_exeext
12724if { (ac_try="$ac_link"
12725case "(($ac_try" in
12726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12727  *) ac_try_echo=$ac_try;;
12728esac
12729eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12730$as_echo "$ac_try_echo") >&5
12731  (eval "$ac_link") 2>&5
12732  ac_status=$?
12733  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12735  { (case "(($ac_try" in
12736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12737  *) ac_try_echo=$ac_try;;
12738esac
12739eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12740$as_echo "$ac_try_echo") >&5
12741  (eval "$ac_try") 2>&5
12742  ac_status=$?
12743  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744  (exit $ac_status); }; }; then
12745
12746	vim_cv_tgent=zero
12747
12748else
12749  $as_echo "$as_me: program exited with status $ac_status" >&5
12750$as_echo "$as_me: failed program was:" >&5
12751sed 's/^/| /' conftest.$ac_ext >&5
12752
12753( exit $ac_status )
12754
12755	vim_cv_tgent=non-zero
12756
12757fi
12758rm -rf conftest.dSYM
12759rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12760fi
12761
12762
12763
12764fi
12765{ $as_echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5
12766$as_echo "$vim_cv_tgent" >&6; }
12767
12768  if test "x$vim_cv_tgent" = "xzero" ; then
12769    cat >>confdefs.h <<\_ACEOF
12770#define TGETENT_ZERO_ERR 0
12771_ACEOF
12772
12773  fi
12774fi
12775
12776{ $as_echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
12777$as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
12778cat >conftest.$ac_ext <<_ACEOF
12779/* confdefs.h.  */
12780_ACEOF
12781cat confdefs.h >>conftest.$ac_ext
12782cat >>conftest.$ac_ext <<_ACEOF
12783/* end confdefs.h.  */
12784
12785#ifdef HAVE_TERMCAP_H
12786# include <termcap.h>
12787#endif
12788
12789int
12790main ()
12791{
12792ospeed = 20000
12793  ;
12794  return 0;
12795}
12796_ACEOF
12797rm -f conftest.$ac_objext conftest$ac_exeext
12798if { (ac_try="$ac_link"
12799case "(($ac_try" in
12800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801  *) ac_try_echo=$ac_try;;
12802esac
12803eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12804$as_echo "$ac_try_echo") >&5
12805  (eval "$ac_link") 2>conftest.er1
12806  ac_status=$?
12807  grep -v '^ *+' conftest.er1 >conftest.err
12808  rm -f conftest.er1
12809  cat conftest.err >&5
12810  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811  (exit $ac_status); } && {
12812	 test -z "$ac_c_werror_flag" ||
12813	 test ! -s conftest.err
12814       } && test -s conftest$ac_exeext && {
12815	 test "$cross_compiling" = yes ||
12816	 $as_test_x conftest$ac_exeext
12817       }; then
12818  { $as_echo "$as_me:$LINENO: result: yes" >&5
12819$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12820#define HAVE_OSPEED 1
12821_ACEOF
12822
12823else
12824  $as_echo "$as_me: failed program was:" >&5
12825sed 's/^/| /' conftest.$ac_ext >&5
12826
12827	{ $as_echo "$as_me:$LINENO: result: no" >&5
12828$as_echo "no" >&6; }
12829	{ $as_echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
12830$as_echo_n "checking whether ospeed can be extern... " >&6; }
12831	cat >conftest.$ac_ext <<_ACEOF
12832/* confdefs.h.  */
12833_ACEOF
12834cat confdefs.h >>conftest.$ac_ext
12835cat >>conftest.$ac_ext <<_ACEOF
12836/* end confdefs.h.  */
12837
12838#ifdef HAVE_TERMCAP_H
12839# include <termcap.h>
12840#endif
12841extern short ospeed;
12842
12843int
12844main ()
12845{
12846ospeed = 20000
12847  ;
12848  return 0;
12849}
12850_ACEOF
12851rm -f conftest.$ac_objext conftest$ac_exeext
12852if { (ac_try="$ac_link"
12853case "(($ac_try" in
12854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12855  *) ac_try_echo=$ac_try;;
12856esac
12857eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12858$as_echo "$ac_try_echo") >&5
12859  (eval "$ac_link") 2>conftest.er1
12860  ac_status=$?
12861  grep -v '^ *+' conftest.er1 >conftest.err
12862  rm -f conftest.er1
12863  cat conftest.err >&5
12864  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865  (exit $ac_status); } && {
12866	 test -z "$ac_c_werror_flag" ||
12867	 test ! -s conftest.err
12868       } && test -s conftest$ac_exeext && {
12869	 test "$cross_compiling" = yes ||
12870	 $as_test_x conftest$ac_exeext
12871       }; then
12872  { $as_echo "$as_me:$LINENO: result: yes" >&5
12873$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12874#define OSPEED_EXTERN 1
12875_ACEOF
12876
12877else
12878  $as_echo "$as_me: failed program was:" >&5
12879sed 's/^/| /' conftest.$ac_ext >&5
12880
12881	{ $as_echo "$as_me:$LINENO: result: no" >&5
12882$as_echo "no" >&6; }
12883fi
12884
12885rm -rf conftest.dSYM
12886rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12887      conftest$ac_exeext conftest.$ac_ext
12888
12889fi
12890
12891rm -rf conftest.dSYM
12892rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12893      conftest$ac_exeext conftest.$ac_ext
12894
12895{ $as_echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
12896$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
12897cat >conftest.$ac_ext <<_ACEOF
12898/* confdefs.h.  */
12899_ACEOF
12900cat confdefs.h >>conftest.$ac_ext
12901cat >>conftest.$ac_ext <<_ACEOF
12902/* end confdefs.h.  */
12903
12904#ifdef HAVE_TERMCAP_H
12905# include <termcap.h>
12906#endif
12907
12908int
12909main ()
12910{
12911if (UP == 0 && BC == 0) PC = 1
12912  ;
12913  return 0;
12914}
12915_ACEOF
12916rm -f conftest.$ac_objext conftest$ac_exeext
12917if { (ac_try="$ac_link"
12918case "(($ac_try" in
12919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12920  *) ac_try_echo=$ac_try;;
12921esac
12922eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12923$as_echo "$ac_try_echo") >&5
12924  (eval "$ac_link") 2>conftest.er1
12925  ac_status=$?
12926  grep -v '^ *+' conftest.er1 >conftest.err
12927  rm -f conftest.er1
12928  cat conftest.err >&5
12929  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930  (exit $ac_status); } && {
12931	 test -z "$ac_c_werror_flag" ||
12932	 test ! -s conftest.err
12933       } && test -s conftest$ac_exeext && {
12934	 test "$cross_compiling" = yes ||
12935	 $as_test_x conftest$ac_exeext
12936       }; then
12937  { $as_echo "$as_me:$LINENO: result: yes" >&5
12938$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12939#define HAVE_UP_BC_PC 1
12940_ACEOF
12941
12942else
12943  $as_echo "$as_me: failed program was:" >&5
12944sed 's/^/| /' conftest.$ac_ext >&5
12945
12946	{ $as_echo "$as_me:$LINENO: result: no" >&5
12947$as_echo "no" >&6; }
12948	{ $as_echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
12949$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
12950	cat >conftest.$ac_ext <<_ACEOF
12951/* confdefs.h.  */
12952_ACEOF
12953cat confdefs.h >>conftest.$ac_ext
12954cat >>conftest.$ac_ext <<_ACEOF
12955/* end confdefs.h.  */
12956
12957#ifdef HAVE_TERMCAP_H
12958# include <termcap.h>
12959#endif
12960extern char *UP, *BC, PC;
12961
12962int
12963main ()
12964{
12965if (UP == 0 && BC == 0) PC = 1
12966  ;
12967  return 0;
12968}
12969_ACEOF
12970rm -f conftest.$ac_objext conftest$ac_exeext
12971if { (ac_try="$ac_link"
12972case "(($ac_try" in
12973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12974  *) ac_try_echo=$ac_try;;
12975esac
12976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12977$as_echo "$ac_try_echo") >&5
12978  (eval "$ac_link") 2>conftest.er1
12979  ac_status=$?
12980  grep -v '^ *+' conftest.er1 >conftest.err
12981  rm -f conftest.er1
12982  cat conftest.err >&5
12983  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984  (exit $ac_status); } && {
12985	 test -z "$ac_c_werror_flag" ||
12986	 test ! -s conftest.err
12987       } && test -s conftest$ac_exeext && {
12988	 test "$cross_compiling" = yes ||
12989	 $as_test_x conftest$ac_exeext
12990       }; then
12991  { $as_echo "$as_me:$LINENO: result: yes" >&5
12992$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12993#define UP_BC_PC_EXTERN 1
12994_ACEOF
12995
12996else
12997  $as_echo "$as_me: failed program was:" >&5
12998sed 's/^/| /' conftest.$ac_ext >&5
12999
13000	{ $as_echo "$as_me:$LINENO: result: no" >&5
13001$as_echo "no" >&6; }
13002fi
13003
13004rm -rf conftest.dSYM
13005rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13006      conftest$ac_exeext conftest.$ac_ext
13007
13008fi
13009
13010rm -rf conftest.dSYM
13011rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13012      conftest$ac_exeext conftest.$ac_ext
13013
13014{ $as_echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
13015$as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
13016cat >conftest.$ac_ext <<_ACEOF
13017/* confdefs.h.  */
13018_ACEOF
13019cat confdefs.h >>conftest.$ac_ext
13020cat >>conftest.$ac_ext <<_ACEOF
13021/* end confdefs.h.  */
13022
13023#ifdef HAVE_TERMCAP_H
13024# include <termcap.h>
13025#endif
13026
13027int
13028main ()
13029{
13030extern int xx(); tputs("test", 1, (outfuntype)xx)
13031  ;
13032  return 0;
13033}
13034_ACEOF
13035rm -f conftest.$ac_objext
13036if { (ac_try="$ac_compile"
13037case "(($ac_try" in
13038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13039  *) ac_try_echo=$ac_try;;
13040esac
13041eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13042$as_echo "$ac_try_echo") >&5
13043  (eval "$ac_compile") 2>conftest.er1
13044  ac_status=$?
13045  grep -v '^ *+' conftest.er1 >conftest.err
13046  rm -f conftest.er1
13047  cat conftest.err >&5
13048  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049  (exit $ac_status); } && {
13050	 test -z "$ac_c_werror_flag" ||
13051	 test ! -s conftest.err
13052       } && test -s conftest.$ac_objext; then
13053  { $as_echo "$as_me:$LINENO: result: yes" >&5
13054$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13055#define HAVE_OUTFUNTYPE 1
13056_ACEOF
13057
13058else
13059  $as_echo "$as_me: failed program was:" >&5
13060sed 's/^/| /' conftest.$ac_ext >&5
13061
13062	{ $as_echo "$as_me:$LINENO: result: no" >&5
13063$as_echo "no" >&6; }
13064fi
13065
13066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13067
13068{ $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
13069$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
13070cat >conftest.$ac_ext <<_ACEOF
13071/* confdefs.h.  */
13072_ACEOF
13073cat confdefs.h >>conftest.$ac_ext
13074cat >>conftest.$ac_ext <<_ACEOF
13075/* end confdefs.h.  */
13076
13077#include <sys/types.h>
13078#include <sys/time.h>
13079#include <sys/select.h>
13080int
13081main ()
13082{
13083
13084  ;
13085  return 0;
13086}
13087_ACEOF
13088rm -f conftest.$ac_objext
13089if { (ac_try="$ac_compile"
13090case "(($ac_try" in
13091  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092  *) ac_try_echo=$ac_try;;
13093esac
13094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13095$as_echo "$ac_try_echo") >&5
13096  (eval "$ac_compile") 2>conftest.er1
13097  ac_status=$?
13098  grep -v '^ *+' conftest.er1 >conftest.err
13099  rm -f conftest.er1
13100  cat conftest.err >&5
13101  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102  (exit $ac_status); } && {
13103	 test -z "$ac_c_werror_flag" ||
13104	 test ! -s conftest.err
13105       } && test -s conftest.$ac_objext; then
13106  { $as_echo "$as_me:$LINENO: result: yes" >&5
13107$as_echo "yes" >&6; }
13108			cat >>confdefs.h <<\_ACEOF
13109#define SYS_SELECT_WITH_SYS_TIME 1
13110_ACEOF
13111
13112else
13113  $as_echo "$as_me: failed program was:" >&5
13114sed 's/^/| /' conftest.$ac_ext >&5
13115
13116	{ $as_echo "$as_me:$LINENO: result: no" >&5
13117$as_echo "no" >&6; }
13118fi
13119
13120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13121
13122
13123{ $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5
13124$as_echo_n "checking for /dev/ptc... " >&6; }
13125if test -r /dev/ptc; then
13126  cat >>confdefs.h <<\_ACEOF
13127#define HAVE_DEV_PTC 1
13128_ACEOF
13129
13130  { $as_echo "$as_me:$LINENO: result: yes" >&5
13131$as_echo "yes" >&6; }
13132else
13133  { $as_echo "$as_me:$LINENO: result: no" >&5
13134$as_echo "no" >&6; }
13135fi
13136
13137{ $as_echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
13138$as_echo_n "checking for SVR4 ptys... " >&6; }
13139if test -c /dev/ptmx ; then
13140  cat >conftest.$ac_ext <<_ACEOF
13141/* confdefs.h.  */
13142_ACEOF
13143cat confdefs.h >>conftest.$ac_ext
13144cat >>conftest.$ac_ext <<_ACEOF
13145/* end confdefs.h.  */
13146
13147int
13148main ()
13149{
13150ptsname(0);grantpt(0);unlockpt(0);
13151  ;
13152  return 0;
13153}
13154_ACEOF
13155rm -f conftest.$ac_objext conftest$ac_exeext
13156if { (ac_try="$ac_link"
13157case "(($ac_try" in
13158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13159  *) ac_try_echo=$ac_try;;
13160esac
13161eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13162$as_echo "$ac_try_echo") >&5
13163  (eval "$ac_link") 2>conftest.er1
13164  ac_status=$?
13165  grep -v '^ *+' conftest.er1 >conftest.err
13166  rm -f conftest.er1
13167  cat conftest.err >&5
13168  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169  (exit $ac_status); } && {
13170	 test -z "$ac_c_werror_flag" ||
13171	 test ! -s conftest.err
13172       } && test -s conftest$ac_exeext && {
13173	 test "$cross_compiling" = yes ||
13174	 $as_test_x conftest$ac_exeext
13175       }; then
13176  { $as_echo "$as_me:$LINENO: result: yes" >&5
13177$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13178#define HAVE_SVR4_PTYS 1
13179_ACEOF
13180
13181else
13182  $as_echo "$as_me: failed program was:" >&5
13183sed 's/^/| /' conftest.$ac_ext >&5
13184
13185	{ $as_echo "$as_me:$LINENO: result: no" >&5
13186$as_echo "no" >&6; }
13187fi
13188
13189rm -rf conftest.dSYM
13190rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13191      conftest$ac_exeext conftest.$ac_ext
13192else
13193  { $as_echo "$as_me:$LINENO: result: no" >&5
13194$as_echo "no" >&6; }
13195fi
13196
13197{ $as_echo "$as_me:$LINENO: checking for ptyranges" >&5
13198$as_echo_n "checking for ptyranges... " >&6; }
13199if test -d /dev/ptym ; then
13200  pdir='/dev/ptym'
13201else
13202  pdir='/dev'
13203fi
13204cat >conftest.$ac_ext <<_ACEOF
13205/* confdefs.h.  */
13206_ACEOF
13207cat confdefs.h >>conftest.$ac_ext
13208cat >>conftest.$ac_ext <<_ACEOF
13209/* end confdefs.h.  */
13210#ifdef M_UNIX
13211   yes;
13212#endif
13213
13214_ACEOF
13215if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13216  $EGREP "yes" >/dev/null 2>&1; then
13217  ptys=`echo /dev/ptyp??`
13218else
13219  ptys=`echo $pdir/pty??`
13220fi
13221rm -f conftest*
13222
13223if test "$ptys" != "$pdir/pty??" ; then
13224  p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
13225  p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g'  | sort -u | tr -d '\012'`
13226  cat >>confdefs.h <<_ACEOF
13227#define PTYRANGE0 "$p0"
13228_ACEOF
13229
13230  cat >>confdefs.h <<_ACEOF
13231#define PTYRANGE1 "$p1"
13232_ACEOF
13233
13234  { $as_echo "$as_me:$LINENO: result: $p0 / $p1" >&5
13235$as_echo "$p0 / $p1" >&6; }
13236else
13237  { $as_echo "$as_me:$LINENO: result: don't know" >&5
13238$as_echo "don't know" >&6; }
13239fi
13240
13241rm -f conftest_grp
13242{ $as_echo "$as_me:$LINENO: checking default tty permissions/group" >&5
13243$as_echo_n "checking default tty permissions/group... " >&6; }
13244if test "${vim_cv_tty_group+set}" = set; then
13245  $as_echo_n "(cached) " >&6
13246else
13247
13248    if test "$cross_compiling" = yes; then
13249
13250      { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5
13251$as_echo "$as_me: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&2;}
13252   { (exit 1); exit 1; }; }
13253
13254else
13255  cat >conftest.$ac_ext <<_ACEOF
13256
13257#include "confdefs.h"
13258#include <sys/types.h>
13259#if STDC_HEADERS
13260# include <stdlib.h>
13261# include <stddef.h>
13262#endif
13263#ifdef HAVE_UNISTD_H
13264#include <unistd.h>
13265#endif
13266#include <sys/stat.h>
13267#include <stdio.h>
13268main()
13269{
13270  struct stat sb;
13271  char *x,*ttyname();
13272  int om, m;
13273  FILE *fp;
13274
13275  if (!(x = ttyname(0))) exit(1);
13276  if (stat(x, &sb)) exit(1);
13277  om = sb.st_mode;
13278  if (om & 002) exit(0);
13279  m = system("mesg y");
13280  if (m == -1 || m == 127) exit(1);
13281  if (stat(x, &sb)) exit(1);
13282  m = sb.st_mode;
13283  if (chmod(x, om)) exit(1);
13284  if (m & 002) exit(0);
13285  if (sb.st_gid == getgid()) exit(1);
13286  if (!(fp=fopen("conftest_grp", "w")))
13287    exit(1);
13288  fprintf(fp, "%d\n", sb.st_gid);
13289  fclose(fp);
13290  exit(0);
13291}
13292
13293_ACEOF
13294rm -f conftest$ac_exeext
13295if { (ac_try="$ac_link"
13296case "(($ac_try" in
13297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13298  *) ac_try_echo=$ac_try;;
13299esac
13300eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13301$as_echo "$ac_try_echo") >&5
13302  (eval "$ac_link") 2>&5
13303  ac_status=$?
13304  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13306  { (case "(($ac_try" in
13307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13308  *) ac_try_echo=$ac_try;;
13309esac
13310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13311$as_echo "$ac_try_echo") >&5
13312  (eval "$ac_try") 2>&5
13313  ac_status=$?
13314  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315  (exit $ac_status); }; }; then
13316
13317      if test -f conftest_grp; then
13318	vim_cv_tty_group=`cat conftest_grp`
13319	if test "x$vim_cv_tty_mode" = "x" ; then
13320	  vim_cv_tty_mode=0620
13321	fi
13322	{ $as_echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
13323$as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
13324      else
13325	vim_cv_tty_group=world
13326	{ $as_echo "$as_me:$LINENO: result: ptys are world accessable" >&5
13327$as_echo "ptys are world accessable" >&6; }
13328      fi
13329
13330else
13331  $as_echo "$as_me: program exited with status $ac_status" >&5
13332$as_echo "$as_me: failed program was:" >&5
13333sed 's/^/| /' conftest.$ac_ext >&5
13334
13335( exit $ac_status )
13336
13337      vim_cv_tty_group=world
13338      { $as_echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
13339$as_echo "can't determine - assume ptys are world accessable" >&6; }
13340
13341fi
13342rm -rf conftest.dSYM
13343rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13344fi
13345
13346
13347
13348fi
13349{ $as_echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5
13350$as_echo "$vim_cv_tty_group" >&6; }
13351rm -f conftest_grp
13352
13353if test "x$vim_cv_tty_group" != "xworld" ; then
13354  cat >>confdefs.h <<_ACEOF
13355#define PTYGROUP $vim_cv_tty_group
13356_ACEOF
13357
13358  if test "x$vim_cv_tty_mode" = "x" ; then
13359    { { $as_echo "$as_me:$LINENO: error: It seems you're cross compiling and have 'vim_cv_tty_group' set, please also set the environment variable 'vim_cv_tty_mode' to the correct mode (propably 0620)" >&5
13360$as_echo "$as_me: error: It seems you're cross compiling and have 'vim_cv_tty_group' set, please also set the environment variable 'vim_cv_tty_mode' to the correct mode (propably 0620)" >&2;}
13361   { (exit 1); exit 1; }; }
13362  else
13363    cat >>confdefs.h <<\_ACEOF
13364#define PTYMODE 0620
13365_ACEOF
13366
13367  fi
13368fi
13369
13370
13371{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13372$as_echo_n "checking return type of signal handlers... " >&6; }
13373if test "${ac_cv_type_signal+set}" = set; then
13374  $as_echo_n "(cached) " >&6
13375else
13376  cat >conftest.$ac_ext <<_ACEOF
13377/* confdefs.h.  */
13378_ACEOF
13379cat confdefs.h >>conftest.$ac_ext
13380cat >>conftest.$ac_ext <<_ACEOF
13381/* end confdefs.h.  */
13382#include <sys/types.h>
13383#include <signal.h>
13384
13385int
13386main ()
13387{
13388return *(signal (0, 0)) (0) == 1;
13389  ;
13390  return 0;
13391}
13392_ACEOF
13393rm -f conftest.$ac_objext
13394if { (ac_try="$ac_compile"
13395case "(($ac_try" in
13396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13397  *) ac_try_echo=$ac_try;;
13398esac
13399eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13400$as_echo "$ac_try_echo") >&5
13401  (eval "$ac_compile") 2>conftest.er1
13402  ac_status=$?
13403  grep -v '^ *+' conftest.er1 >conftest.err
13404  rm -f conftest.er1
13405  cat conftest.err >&5
13406  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407  (exit $ac_status); } && {
13408	 test -z "$ac_c_werror_flag" ||
13409	 test ! -s conftest.err
13410       } && test -s conftest.$ac_objext; then
13411  ac_cv_type_signal=int
13412else
13413  $as_echo "$as_me: failed program was:" >&5
13414sed 's/^/| /' conftest.$ac_ext >&5
13415
13416	ac_cv_type_signal=void
13417fi
13418
13419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13420fi
13421{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13422$as_echo "$ac_cv_type_signal" >&6; }
13423
13424cat >>confdefs.h <<_ACEOF
13425#define RETSIGTYPE $ac_cv_type_signal
13426_ACEOF
13427
13428
13429
13430if test $ac_cv_type_signal = void; then
13431  cat >>confdefs.h <<\_ACEOF
13432#define SIGRETURN return
13433_ACEOF
13434
13435else
13436  cat >>confdefs.h <<\_ACEOF
13437#define SIGRETURN return 0
13438_ACEOF
13439
13440fi
13441
13442{ $as_echo "$as_me:$LINENO: checking for struct sigcontext" >&5
13443$as_echo_n "checking for struct sigcontext... " >&6; }
13444cat >conftest.$ac_ext <<_ACEOF
13445/* confdefs.h.  */
13446_ACEOF
13447cat confdefs.h >>conftest.$ac_ext
13448cat >>conftest.$ac_ext <<_ACEOF
13449/* end confdefs.h.  */
13450
13451#include <signal.h>
13452test_sig()
13453{
13454    struct sigcontext *scont;
13455    scont = (struct sigcontext *)0;
13456    return 1;
13457}
13458int
13459main ()
13460{
13461
13462  ;
13463  return 0;
13464}
13465_ACEOF
13466rm -f conftest.$ac_objext
13467if { (ac_try="$ac_compile"
13468case "(($ac_try" in
13469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13470  *) ac_try_echo=$ac_try;;
13471esac
13472eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13473$as_echo "$ac_try_echo") >&5
13474  (eval "$ac_compile") 2>conftest.er1
13475  ac_status=$?
13476  grep -v '^ *+' conftest.er1 >conftest.err
13477  rm -f conftest.er1
13478  cat conftest.err >&5
13479  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480  (exit $ac_status); } && {
13481	 test -z "$ac_c_werror_flag" ||
13482	 test ! -s conftest.err
13483       } && test -s conftest.$ac_objext; then
13484  { $as_echo "$as_me:$LINENO: result: yes" >&5
13485$as_echo "yes" >&6; }
13486		cat >>confdefs.h <<\_ACEOF
13487#define HAVE_SIGCONTEXT 1
13488_ACEOF
13489
13490else
13491  $as_echo "$as_me: failed program was:" >&5
13492sed 's/^/| /' conftest.$ac_ext >&5
13493
13494	{ $as_echo "$as_me:$LINENO: result: no" >&5
13495$as_echo "no" >&6; }
13496fi
13497
13498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13499
13500{ $as_echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5
13501$as_echo_n "checking getcwd implementation is broken... " >&6; }
13502if test "${vim_cv_getcwd_broken+set}" = set; then
13503  $as_echo_n "(cached) " >&6
13504else
13505
13506    if test "$cross_compiling" = yes; then
13507
13508      { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5
13509$as_echo "$as_me: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&2;}
13510   { (exit 1); exit 1; }; }
13511
13512else
13513  cat >conftest.$ac_ext <<_ACEOF
13514
13515#include "confdefs.h"
13516#ifdef HAVE_UNISTD_H
13517#include <unistd.h>
13518#endif
13519char *dagger[] = { "IFS=pwd", 0 };
13520main()
13521{
13522  char buffer[500];
13523  extern char **environ;
13524  environ = dagger;
13525  return getcwd(buffer, 500) ? 0 : 1;
13526}
13527
13528_ACEOF
13529rm -f conftest$ac_exeext
13530if { (ac_try="$ac_link"
13531case "(($ac_try" in
13532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13533  *) ac_try_echo=$ac_try;;
13534esac
13535eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13536$as_echo "$ac_try_echo") >&5
13537  (eval "$ac_link") 2>&5
13538  ac_status=$?
13539  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13541  { (case "(($ac_try" in
13542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13543  *) ac_try_echo=$ac_try;;
13544esac
13545eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13546$as_echo "$ac_try_echo") >&5
13547  (eval "$ac_try") 2>&5
13548  ac_status=$?
13549  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550  (exit $ac_status); }; }; then
13551
13552      vim_cv_getcwd_broken=no
13553
13554else
13555  $as_echo "$as_me: program exited with status $ac_status" >&5
13556$as_echo "$as_me: failed program was:" >&5
13557sed 's/^/| /' conftest.$ac_ext >&5
13558
13559( exit $ac_status )
13560
13561      vim_cv_getcwd_broken=yes
13562
13563fi
13564rm -rf conftest.dSYM
13565rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13566fi
13567
13568
13569
13570fi
13571{ $as_echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5
13572$as_echo "$vim_cv_getcwd_broken" >&6; }
13573
13574if test "x$vim_cv_getcwd_broken" = "xyes" ; then
13575  cat >>confdefs.h <<\_ACEOF
13576#define BAD_GETCWD 1
13577_ACEOF
13578
13579fi
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
13628	getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
13629	memset nanosleep opendir putenv qsort readlink select setenv \
13630	setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
13631	sigvec strcasecmp strerror strftime stricmp strncasecmp \
13632	strnicmp strpbrk strtol tgetent towlower towupper iswupper \
13633	usleep utime utimes
13634do
13635as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13636{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13637$as_echo_n "checking for $ac_func... " >&6; }
13638if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13639  $as_echo_n "(cached) " >&6
13640else
13641  cat >conftest.$ac_ext <<_ACEOF
13642/* confdefs.h.  */
13643_ACEOF
13644cat confdefs.h >>conftest.$ac_ext
13645cat >>conftest.$ac_ext <<_ACEOF
13646/* end confdefs.h.  */
13647/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13648   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13649#define $ac_func innocuous_$ac_func
13650
13651/* System header to define __stub macros and hopefully few prototypes,
13652    which can conflict with char $ac_func (); below.
13653    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13654    <limits.h> exists even on freestanding compilers.  */
13655
13656#ifdef __STDC__
13657# include <limits.h>
13658#else
13659# include <assert.h>
13660#endif
13661
13662#undef $ac_func
13663
13664/* Override any GCC internal prototype to avoid an error.
13665   Use char because int might match the return type of a GCC
13666   builtin and then its argument prototype would still apply.  */
13667#ifdef __cplusplus
13668extern "C"
13669#endif
13670char $ac_func ();
13671/* The GNU C library defines this for functions which it implements
13672    to always fail with ENOSYS.  Some functions are actually named
13673    something starting with __ and the normal name is an alias.  */
13674#if defined __stub_$ac_func || defined __stub___$ac_func
13675choke me
13676#endif
13677
13678int
13679main ()
13680{
13681return $ac_func ();
13682  ;
13683  return 0;
13684}
13685_ACEOF
13686rm -f conftest.$ac_objext conftest$ac_exeext
13687if { (ac_try="$ac_link"
13688case "(($ac_try" in
13689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13690  *) ac_try_echo=$ac_try;;
13691esac
13692eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13693$as_echo "$ac_try_echo") >&5
13694  (eval "$ac_link") 2>conftest.er1
13695  ac_status=$?
13696  grep -v '^ *+' conftest.er1 >conftest.err
13697  rm -f conftest.er1
13698  cat conftest.err >&5
13699  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700  (exit $ac_status); } && {
13701	 test -z "$ac_c_werror_flag" ||
13702	 test ! -s conftest.err
13703       } && test -s conftest$ac_exeext && {
13704	 test "$cross_compiling" = yes ||
13705	 $as_test_x conftest$ac_exeext
13706       }; then
13707  eval "$as_ac_var=yes"
13708else
13709  $as_echo "$as_me: failed program was:" >&5
13710sed 's/^/| /' conftest.$ac_ext >&5
13711
13712	eval "$as_ac_var=no"
13713fi
13714
13715rm -rf conftest.dSYM
13716rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13717      conftest$ac_exeext conftest.$ac_ext
13718fi
13719ac_res=`eval 'as_val=${'$as_ac_var'}
13720		 $as_echo "$as_val"'`
13721	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13722$as_echo "$ac_res" >&6; }
13723if test `eval 'as_val=${'$as_ac_var'}
13724		 $as_echo "$as_val"'` = yes; then
13725  cat >>confdefs.h <<_ACEOF
13726#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13727_ACEOF
13728
13729fi
13730done
13731
13732
13733{ $as_echo "$as_me:$LINENO: checking for st_blksize" >&5
13734$as_echo_n "checking for st_blksize... " >&6; }
13735cat >conftest.$ac_ext <<_ACEOF
13736/* confdefs.h.  */
13737_ACEOF
13738cat confdefs.h >>conftest.$ac_ext
13739cat >>conftest.$ac_ext <<_ACEOF
13740/* end confdefs.h.  */
13741#include <sys/types.h>
13742#include <sys/stat.h>
13743int
13744main ()
13745{
13746	struct stat st;
13747	int n;
13748
13749	stat("/", &st);
13750	n = (int)st.st_blksize;
13751  ;
13752  return 0;
13753}
13754_ACEOF
13755rm -f conftest.$ac_objext
13756if { (ac_try="$ac_compile"
13757case "(($ac_try" in
13758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13759  *) ac_try_echo=$ac_try;;
13760esac
13761eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13762$as_echo "$ac_try_echo") >&5
13763  (eval "$ac_compile") 2>conftest.er1
13764  ac_status=$?
13765  grep -v '^ *+' conftest.er1 >conftest.err
13766  rm -f conftest.er1
13767  cat conftest.err >&5
13768  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769  (exit $ac_status); } && {
13770	 test -z "$ac_c_werror_flag" ||
13771	 test ! -s conftest.err
13772       } && test -s conftest.$ac_objext; then
13773  { $as_echo "$as_me:$LINENO: result: yes" >&5
13774$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13775#define HAVE_ST_BLKSIZE 1
13776_ACEOF
13777
13778else
13779  $as_echo "$as_me: failed program was:" >&5
13780sed 's/^/| /' conftest.$ac_ext >&5
13781
13782	{ $as_echo "$as_me:$LINENO: result: no" >&5
13783$as_echo "no" >&6; }
13784fi
13785
13786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13787
13788{ $as_echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
13789$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
13790if test "${vim_cv_stat_ignores_slash+set}" = set; then
13791  $as_echo_n "(cached) " >&6
13792else
13793
13794    if test "$cross_compiling" = yes; then
13795
13796      { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5
13797$as_echo "$as_me: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&2;}
13798   { (exit 1); exit 1; }; }
13799
13800else
13801  cat >conftest.$ac_ext <<_ACEOF
13802
13803#include "confdefs.h"
13804#if STDC_HEADERS
13805# include <stdlib.h>
13806# include <stddef.h>
13807#endif
13808#include <sys/types.h>
13809#include <sys/stat.h>
13810main() {struct stat st;  exit(stat("configure/", &st) != 0); }
13811
13812_ACEOF
13813rm -f conftest$ac_exeext
13814if { (ac_try="$ac_link"
13815case "(($ac_try" in
13816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13817  *) ac_try_echo=$ac_try;;
13818esac
13819eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13820$as_echo "$ac_try_echo") >&5
13821  (eval "$ac_link") 2>&5
13822  ac_status=$?
13823  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13825  { (case "(($ac_try" in
13826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13827  *) ac_try_echo=$ac_try;;
13828esac
13829eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13830$as_echo "$ac_try_echo") >&5
13831  (eval "$ac_try") 2>&5
13832  ac_status=$?
13833  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834  (exit $ac_status); }; }; then
13835
13836      vim_cv_stat_ignores_slash=yes
13837
13838else
13839  $as_echo "$as_me: program exited with status $ac_status" >&5
13840$as_echo "$as_me: failed program was:" >&5
13841sed 's/^/| /' conftest.$ac_ext >&5
13842
13843( exit $ac_status )
13844
13845      vim_cv_stat_ignores_slash=no
13846
13847fi
13848rm -rf conftest.dSYM
13849rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13850fi
13851
13852
13853
13854fi
13855{ $as_echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5
13856$as_echo "$vim_cv_stat_ignores_slash" >&6; }
13857
13858if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
13859  cat >>confdefs.h <<\_ACEOF
13860#define STAT_IGNORES_SLASH 1
13861_ACEOF
13862
13863fi
13864
13865{ $as_echo "$as_me:$LINENO: checking for iconv_open()" >&5
13866$as_echo_n "checking for iconv_open()... " >&6; }
13867save_LIBS="$LIBS"
13868LIBS="$LIBS -liconv"
13869cat >conftest.$ac_ext <<_ACEOF
13870/* confdefs.h.  */
13871_ACEOF
13872cat confdefs.h >>conftest.$ac_ext
13873cat >>conftest.$ac_ext <<_ACEOF
13874/* end confdefs.h.  */
13875
13876#ifdef HAVE_ICONV_H
13877# include <iconv.h>
13878#endif
13879
13880int
13881main ()
13882{
13883iconv_open("fr", "to");
13884  ;
13885  return 0;
13886}
13887_ACEOF
13888rm -f conftest.$ac_objext conftest$ac_exeext
13889if { (ac_try="$ac_link"
13890case "(($ac_try" in
13891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13892  *) ac_try_echo=$ac_try;;
13893esac
13894eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13895$as_echo "$ac_try_echo") >&5
13896  (eval "$ac_link") 2>conftest.er1
13897  ac_status=$?
13898  grep -v '^ *+' conftest.er1 >conftest.err
13899  rm -f conftest.er1
13900  cat conftest.err >&5
13901  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902  (exit $ac_status); } && {
13903	 test -z "$ac_c_werror_flag" ||
13904	 test ! -s conftest.err
13905       } && test -s conftest$ac_exeext && {
13906	 test "$cross_compiling" = yes ||
13907	 $as_test_x conftest$ac_exeext
13908       }; then
13909  { $as_echo "$as_me:$LINENO: result: yes; with -liconv" >&5
13910$as_echo "yes; with -liconv" >&6; }; cat >>confdefs.h <<\_ACEOF
13911#define HAVE_ICONV 1
13912_ACEOF
13913
13914else
13915  $as_echo "$as_me: failed program was:" >&5
13916sed 's/^/| /' conftest.$ac_ext >&5
13917
13918	LIBS="$save_LIBS"
13919    cat >conftest.$ac_ext <<_ACEOF
13920/* confdefs.h.  */
13921_ACEOF
13922cat confdefs.h >>conftest.$ac_ext
13923cat >>conftest.$ac_ext <<_ACEOF
13924/* end confdefs.h.  */
13925
13926#ifdef HAVE_ICONV_H
13927# include <iconv.h>
13928#endif
13929
13930int
13931main ()
13932{
13933iconv_open("fr", "to");
13934  ;
13935  return 0;
13936}
13937_ACEOF
13938rm -f conftest.$ac_objext conftest$ac_exeext
13939if { (ac_try="$ac_link"
13940case "(($ac_try" in
13941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13942  *) ac_try_echo=$ac_try;;
13943esac
13944eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13945$as_echo "$ac_try_echo") >&5
13946  (eval "$ac_link") 2>conftest.er1
13947  ac_status=$?
13948  grep -v '^ *+' conftest.er1 >conftest.err
13949  rm -f conftest.er1
13950  cat conftest.err >&5
13951  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952  (exit $ac_status); } && {
13953	 test -z "$ac_c_werror_flag" ||
13954	 test ! -s conftest.err
13955       } && test -s conftest$ac_exeext && {
13956	 test "$cross_compiling" = yes ||
13957	 $as_test_x conftest$ac_exeext
13958       }; then
13959  { $as_echo "$as_me:$LINENO: result: yes" >&5
13960$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13961#define HAVE_ICONV 1
13962_ACEOF
13963
13964else
13965  $as_echo "$as_me: failed program was:" >&5
13966sed 's/^/| /' conftest.$ac_ext >&5
13967
13968	{ $as_echo "$as_me:$LINENO: result: no" >&5
13969$as_echo "no" >&6; }
13970fi
13971
13972rm -rf conftest.dSYM
13973rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13974      conftest$ac_exeext conftest.$ac_ext
13975fi
13976
13977rm -rf conftest.dSYM
13978rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13979      conftest$ac_exeext conftest.$ac_ext
13980
13981
13982{ $as_echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
13983$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
13984cat >conftest.$ac_ext <<_ACEOF
13985/* confdefs.h.  */
13986_ACEOF
13987cat confdefs.h >>conftest.$ac_ext
13988cat >>conftest.$ac_ext <<_ACEOF
13989/* end confdefs.h.  */
13990
13991#ifdef HAVE_LANGINFO_H
13992# include <langinfo.h>
13993#endif
13994
13995int
13996main ()
13997{
13998char *cs = nl_langinfo(CODESET);
13999  ;
14000  return 0;
14001}
14002_ACEOF
14003rm -f conftest.$ac_objext conftest$ac_exeext
14004if { (ac_try="$ac_link"
14005case "(($ac_try" in
14006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14007  *) ac_try_echo=$ac_try;;
14008esac
14009eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14010$as_echo "$ac_try_echo") >&5
14011  (eval "$ac_link") 2>conftest.er1
14012  ac_status=$?
14013  grep -v '^ *+' conftest.er1 >conftest.err
14014  rm -f conftest.er1
14015  cat conftest.err >&5
14016  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017  (exit $ac_status); } && {
14018	 test -z "$ac_c_werror_flag" ||
14019	 test ! -s conftest.err
14020       } && test -s conftest$ac_exeext && {
14021	 test "$cross_compiling" = yes ||
14022	 $as_test_x conftest$ac_exeext
14023       }; then
14024  { $as_echo "$as_me:$LINENO: result: yes" >&5
14025$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14026#define HAVE_NL_LANGINFO_CODESET 1
14027_ACEOF
14028
14029else
14030  $as_echo "$as_me: failed program was:" >&5
14031sed 's/^/| /' conftest.$ac_ext >&5
14032
14033	{ $as_echo "$as_me:$LINENO: result: no" >&5
14034$as_echo "no" >&6; }
14035fi
14036
14037rm -rf conftest.dSYM
14038rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14039      conftest$ac_exeext conftest.$ac_ext
14040
14041
14042{ $as_echo "$as_me:$LINENO: checking for strtod in -lm" >&5
14043$as_echo_n "checking for strtod in -lm... " >&6; }
14044if test "${ac_cv_lib_m_strtod+set}" = set; then
14045  $as_echo_n "(cached) " >&6
14046else
14047  ac_check_lib_save_LIBS=$LIBS
14048LIBS="-lm  $LIBS"
14049cat >conftest.$ac_ext <<_ACEOF
14050/* confdefs.h.  */
14051_ACEOF
14052cat confdefs.h >>conftest.$ac_ext
14053cat >>conftest.$ac_ext <<_ACEOF
14054/* end confdefs.h.  */
14055
14056/* Override any GCC internal prototype to avoid an error.
14057   Use char because int might match the return type of a GCC
14058   builtin and then its argument prototype would still apply.  */
14059#ifdef __cplusplus
14060extern "C"
14061#endif
14062char strtod ();
14063int
14064main ()
14065{
14066return strtod ();
14067  ;
14068  return 0;
14069}
14070_ACEOF
14071rm -f conftest.$ac_objext conftest$ac_exeext
14072if { (ac_try="$ac_link"
14073case "(($ac_try" in
14074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14075  *) ac_try_echo=$ac_try;;
14076esac
14077eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14078$as_echo "$ac_try_echo") >&5
14079  (eval "$ac_link") 2>conftest.er1
14080  ac_status=$?
14081  grep -v '^ *+' conftest.er1 >conftest.err
14082  rm -f conftest.er1
14083  cat conftest.err >&5
14084  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085  (exit $ac_status); } && {
14086	 test -z "$ac_c_werror_flag" ||
14087	 test ! -s conftest.err
14088       } && test -s conftest$ac_exeext && {
14089	 test "$cross_compiling" = yes ||
14090	 $as_test_x conftest$ac_exeext
14091       }; then
14092  ac_cv_lib_m_strtod=yes
14093else
14094  $as_echo "$as_me: failed program was:" >&5
14095sed 's/^/| /' conftest.$ac_ext >&5
14096
14097	ac_cv_lib_m_strtod=no
14098fi
14099
14100rm -rf conftest.dSYM
14101rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14102      conftest$ac_exeext conftest.$ac_ext
14103LIBS=$ac_check_lib_save_LIBS
14104fi
14105{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5
14106$as_echo "$ac_cv_lib_m_strtod" >&6; }
14107if test $ac_cv_lib_m_strtod = yes; then
14108  cat >>confdefs.h <<_ACEOF
14109#define HAVE_LIBM 1
14110_ACEOF
14111
14112  LIBS="-lm $LIBS"
14113
14114fi
14115
14116{ $as_echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5
14117$as_echo_n "checking for strtod() and other floating point functions... " >&6; }
14118cat >conftest.$ac_ext <<_ACEOF
14119/* confdefs.h.  */
14120_ACEOF
14121cat confdefs.h >>conftest.$ac_ext
14122cat >>conftest.$ac_ext <<_ACEOF
14123/* end confdefs.h.  */
14124
14125#ifdef HAVE_MATH_H
14126# include <math.h>
14127#endif
14128#if STDC_HEADERS
14129# include <stdlib.h>
14130# include <stddef.h>
14131#endif
14132
14133int
14134main ()
14135{
14136char *s; double d;
14137    d = strtod("1.1", &s);
14138    d = fabs(1.11);
14139    d = ceil(1.11);
14140    d = floor(1.11);
14141    d = log10(1.11);
14142    d = pow(1.11, 2.22);
14143    d = sqrt(1.11);
14144    d = sin(1.11);
14145    d = cos(1.11);
14146    d = atan(1.11);
14147
14148  ;
14149  return 0;
14150}
14151_ACEOF
14152rm -f conftest.$ac_objext conftest$ac_exeext
14153if { (ac_try="$ac_link"
14154case "(($ac_try" in
14155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14156  *) ac_try_echo=$ac_try;;
14157esac
14158eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14159$as_echo "$ac_try_echo") >&5
14160  (eval "$ac_link") 2>conftest.er1
14161  ac_status=$?
14162  grep -v '^ *+' conftest.er1 >conftest.err
14163  rm -f conftest.er1
14164  cat conftest.err >&5
14165  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166  (exit $ac_status); } && {
14167	 test -z "$ac_c_werror_flag" ||
14168	 test ! -s conftest.err
14169       } && test -s conftest$ac_exeext && {
14170	 test "$cross_compiling" = yes ||
14171	 $as_test_x conftest$ac_exeext
14172       }; then
14173  { $as_echo "$as_me:$LINENO: result: yes" >&5
14174$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14175#define HAVE_FLOAT_FUNCS 1
14176_ACEOF
14177
14178else
14179  $as_echo "$as_me: failed program was:" >&5
14180sed 's/^/| /' conftest.$ac_ext >&5
14181
14182	{ $as_echo "$as_me:$LINENO: result: no" >&5
14183$as_echo "no" >&6; }
14184fi
14185
14186rm -rf conftest.dSYM
14187rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14188      conftest$ac_exeext conftest.$ac_ext
14189
14190{ $as_echo "$as_me:$LINENO: checking --disable-acl argument" >&5
14191$as_echo_n "checking --disable-acl argument... " >&6; }
14192# Check whether --enable-acl was given.
14193if test "${enable_acl+set}" = set; then
14194  enableval=$enable_acl;
14195else
14196  enable_acl="yes"
14197fi
14198
14199if test "$enable_acl" = "yes"; then
14200{ $as_echo "$as_me:$LINENO: result: no" >&5
14201$as_echo "no" >&6; }
14202{ $as_echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
14203$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
14204if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
14205  $as_echo_n "(cached) " >&6
14206else
14207  ac_check_lib_save_LIBS=$LIBS
14208LIBS="-lposix1e  $LIBS"
14209cat >conftest.$ac_ext <<_ACEOF
14210/* confdefs.h.  */
14211_ACEOF
14212cat confdefs.h >>conftest.$ac_ext
14213cat >>conftest.$ac_ext <<_ACEOF
14214/* end confdefs.h.  */
14215
14216/* Override any GCC internal prototype to avoid an error.
14217   Use char because int might match the return type of a GCC
14218   builtin and then its argument prototype would still apply.  */
14219#ifdef __cplusplus
14220extern "C"
14221#endif
14222char acl_get_file ();
14223int
14224main ()
14225{
14226return acl_get_file ();
14227  ;
14228  return 0;
14229}
14230_ACEOF
14231rm -f conftest.$ac_objext conftest$ac_exeext
14232if { (ac_try="$ac_link"
14233case "(($ac_try" in
14234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14235  *) ac_try_echo=$ac_try;;
14236esac
14237eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14238$as_echo "$ac_try_echo") >&5
14239  (eval "$ac_link") 2>conftest.er1
14240  ac_status=$?
14241  grep -v '^ *+' conftest.er1 >conftest.err
14242  rm -f conftest.er1
14243  cat conftest.err >&5
14244  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245  (exit $ac_status); } && {
14246	 test -z "$ac_c_werror_flag" ||
14247	 test ! -s conftest.err
14248       } && test -s conftest$ac_exeext && {
14249	 test "$cross_compiling" = yes ||
14250	 $as_test_x conftest$ac_exeext
14251       }; then
14252  ac_cv_lib_posix1e_acl_get_file=yes
14253else
14254  $as_echo "$as_me: failed program was:" >&5
14255sed 's/^/| /' conftest.$ac_ext >&5
14256
14257	ac_cv_lib_posix1e_acl_get_file=no
14258fi
14259
14260rm -rf conftest.dSYM
14261rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14262      conftest$ac_exeext conftest.$ac_ext
14263LIBS=$ac_check_lib_save_LIBS
14264fi
14265{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
14266$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
14267if test $ac_cv_lib_posix1e_acl_get_file = yes; then
14268  LIBS="$LIBS -lposix1e"
14269else
14270  { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
14271$as_echo_n "checking for acl_get_file in -lacl... " >&6; }
14272if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
14273  $as_echo_n "(cached) " >&6
14274else
14275  ac_check_lib_save_LIBS=$LIBS
14276LIBS="-lacl  $LIBS"
14277cat >conftest.$ac_ext <<_ACEOF
14278/* confdefs.h.  */
14279_ACEOF
14280cat confdefs.h >>conftest.$ac_ext
14281cat >>conftest.$ac_ext <<_ACEOF
14282/* end confdefs.h.  */
14283
14284/* Override any GCC internal prototype to avoid an error.
14285   Use char because int might match the return type of a GCC
14286   builtin and then its argument prototype would still apply.  */
14287#ifdef __cplusplus
14288extern "C"
14289#endif
14290char acl_get_file ();
14291int
14292main ()
14293{
14294return acl_get_file ();
14295  ;
14296  return 0;
14297}
14298_ACEOF
14299rm -f conftest.$ac_objext conftest$ac_exeext
14300if { (ac_try="$ac_link"
14301case "(($ac_try" in
14302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14303  *) ac_try_echo=$ac_try;;
14304esac
14305eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14306$as_echo "$ac_try_echo") >&5
14307  (eval "$ac_link") 2>conftest.er1
14308  ac_status=$?
14309  grep -v '^ *+' conftest.er1 >conftest.err
14310  rm -f conftest.er1
14311  cat conftest.err >&5
14312  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313  (exit $ac_status); } && {
14314	 test -z "$ac_c_werror_flag" ||
14315	 test ! -s conftest.err
14316       } && test -s conftest$ac_exeext && {
14317	 test "$cross_compiling" = yes ||
14318	 $as_test_x conftest$ac_exeext
14319       }; then
14320  ac_cv_lib_acl_acl_get_file=yes
14321else
14322  $as_echo "$as_me: failed program was:" >&5
14323sed 's/^/| /' conftest.$ac_ext >&5
14324
14325	ac_cv_lib_acl_acl_get_file=no
14326fi
14327
14328rm -rf conftest.dSYM
14329rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14330      conftest$ac_exeext conftest.$ac_ext
14331LIBS=$ac_check_lib_save_LIBS
14332fi
14333{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
14334$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
14335if test $ac_cv_lib_acl_acl_get_file = yes; then
14336  LIBS="$LIBS -lacl"
14337		  { $as_echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
14338$as_echo_n "checking for fgetxattr in -lattr... " >&6; }
14339if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
14340  $as_echo_n "(cached) " >&6
14341else
14342  ac_check_lib_save_LIBS=$LIBS
14343LIBS="-lattr  $LIBS"
14344cat >conftest.$ac_ext <<_ACEOF
14345/* confdefs.h.  */
14346_ACEOF
14347cat confdefs.h >>conftest.$ac_ext
14348cat >>conftest.$ac_ext <<_ACEOF
14349/* end confdefs.h.  */
14350
14351/* Override any GCC internal prototype to avoid an error.
14352   Use char because int might match the return type of a GCC
14353   builtin and then its argument prototype would still apply.  */
14354#ifdef __cplusplus
14355extern "C"
14356#endif
14357char fgetxattr ();
14358int
14359main ()
14360{
14361return fgetxattr ();
14362  ;
14363  return 0;
14364}
14365_ACEOF
14366rm -f conftest.$ac_objext conftest$ac_exeext
14367if { (ac_try="$ac_link"
14368case "(($ac_try" in
14369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14370  *) ac_try_echo=$ac_try;;
14371esac
14372eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14373$as_echo "$ac_try_echo") >&5
14374  (eval "$ac_link") 2>conftest.er1
14375  ac_status=$?
14376  grep -v '^ *+' conftest.er1 >conftest.err
14377  rm -f conftest.er1
14378  cat conftest.err >&5
14379  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380  (exit $ac_status); } && {
14381	 test -z "$ac_c_werror_flag" ||
14382	 test ! -s conftest.err
14383       } && test -s conftest$ac_exeext && {
14384	 test "$cross_compiling" = yes ||
14385	 $as_test_x conftest$ac_exeext
14386       }; then
14387  ac_cv_lib_attr_fgetxattr=yes
14388else
14389  $as_echo "$as_me: failed program was:" >&5
14390sed 's/^/| /' conftest.$ac_ext >&5
14391
14392	ac_cv_lib_attr_fgetxattr=no
14393fi
14394
14395rm -rf conftest.dSYM
14396rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14397      conftest$ac_exeext conftest.$ac_ext
14398LIBS=$ac_check_lib_save_LIBS
14399fi
14400{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
14401$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
14402if test $ac_cv_lib_attr_fgetxattr = yes; then
14403  LIBS="$LIBS -lattr"
14404fi
14405
14406fi
14407
14408fi
14409
14410
14411{ $as_echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
14412$as_echo_n "checking for POSIX ACL support... " >&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
14420#include <sys/types.h>
14421#ifdef HAVE_SYS_ACL_H
14422# include <sys/acl.h>
14423#endif
14424acl_t acl;
14425int
14426main ()
14427{
14428acl = acl_get_file("foo", ACL_TYPE_ACCESS);
14429	acl_set_file("foo", ACL_TYPE_ACCESS, acl);
14430	acl_free(acl);
14431  ;
14432  return 0;
14433}
14434_ACEOF
14435rm -f conftest.$ac_objext conftest$ac_exeext
14436if { (ac_try="$ac_link"
14437case "(($ac_try" in
14438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14439  *) ac_try_echo=$ac_try;;
14440esac
14441eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14442$as_echo "$ac_try_echo") >&5
14443  (eval "$ac_link") 2>conftest.er1
14444  ac_status=$?
14445  grep -v '^ *+' conftest.er1 >conftest.err
14446  rm -f conftest.er1
14447  cat conftest.err >&5
14448  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449  (exit $ac_status); } && {
14450	 test -z "$ac_c_werror_flag" ||
14451	 test ! -s conftest.err
14452       } && test -s conftest$ac_exeext && {
14453	 test "$cross_compiling" = yes ||
14454	 $as_test_x conftest$ac_exeext
14455       }; then
14456  { $as_echo "$as_me:$LINENO: result: yes" >&5
14457$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14458#define HAVE_POSIX_ACL 1
14459_ACEOF
14460
14461else
14462  $as_echo "$as_me: failed program was:" >&5
14463sed 's/^/| /' conftest.$ac_ext >&5
14464
14465	{ $as_echo "$as_me:$LINENO: result: no" >&5
14466$as_echo "no" >&6; }
14467fi
14468
14469rm -rf conftest.dSYM
14470rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14471      conftest$ac_exeext conftest.$ac_ext
14472
14473{ $as_echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
14474$as_echo_n "checking for Solaris ACL support... " >&6; }
14475cat >conftest.$ac_ext <<_ACEOF
14476/* confdefs.h.  */
14477_ACEOF
14478cat confdefs.h >>conftest.$ac_ext
14479cat >>conftest.$ac_ext <<_ACEOF
14480/* end confdefs.h.  */
14481
14482#ifdef HAVE_SYS_ACL_H
14483# include <sys/acl.h>
14484#endif
14485int
14486main ()
14487{
14488acl("foo", GETACLCNT, 0, NULL);
14489
14490  ;
14491  return 0;
14492}
14493_ACEOF
14494rm -f conftest.$ac_objext conftest$ac_exeext
14495if { (ac_try="$ac_link"
14496case "(($ac_try" in
14497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14498  *) ac_try_echo=$ac_try;;
14499esac
14500eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14501$as_echo "$ac_try_echo") >&5
14502  (eval "$ac_link") 2>conftest.er1
14503  ac_status=$?
14504  grep -v '^ *+' conftest.er1 >conftest.err
14505  rm -f conftest.er1
14506  cat conftest.err >&5
14507  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508  (exit $ac_status); } && {
14509	 test -z "$ac_c_werror_flag" ||
14510	 test ! -s conftest.err
14511       } && test -s conftest$ac_exeext && {
14512	 test "$cross_compiling" = yes ||
14513	 $as_test_x conftest$ac_exeext
14514       }; then
14515  { $as_echo "$as_me:$LINENO: result: yes" >&5
14516$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14517#define HAVE_SOLARIS_ACL 1
14518_ACEOF
14519
14520else
14521  $as_echo "$as_me: failed program was:" >&5
14522sed 's/^/| /' conftest.$ac_ext >&5
14523
14524	{ $as_echo "$as_me:$LINENO: result: no" >&5
14525$as_echo "no" >&6; }
14526fi
14527
14528rm -rf conftest.dSYM
14529rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14530      conftest$ac_exeext conftest.$ac_ext
14531
14532{ $as_echo "$as_me:$LINENO: checking for AIX ACL support" >&5
14533$as_echo_n "checking for AIX ACL support... " >&6; }
14534cat >conftest.$ac_ext <<_ACEOF
14535/* confdefs.h.  */
14536_ACEOF
14537cat confdefs.h >>conftest.$ac_ext
14538cat >>conftest.$ac_ext <<_ACEOF
14539/* end confdefs.h.  */
14540
14541#if STDC_HEADERS
14542# include <stdlib.h>
14543# include <stddef.h>
14544#endif
14545#ifdef HAVE_SYS_ACL_H
14546# include <sys/acl.h>
14547#endif
14548#ifdef HAVE_SYS_ACCESS_H
14549# include <sys/access.h>
14550#endif
14551#define _ALL_SOURCE
14552
14553#include <sys/stat.h>
14554
14555int aclsize;
14556struct acl *aclent;
14557int
14558main ()
14559{
14560aclsize = sizeof(struct acl);
14561	aclent = (void *)malloc(aclsize);
14562	statacl("foo", STX_NORMAL, aclent, aclsize);
14563
14564  ;
14565  return 0;
14566}
14567_ACEOF
14568rm -f conftest.$ac_objext conftest$ac_exeext
14569if { (ac_try="$ac_link"
14570case "(($ac_try" in
14571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14572  *) ac_try_echo=$ac_try;;
14573esac
14574eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14575$as_echo "$ac_try_echo") >&5
14576  (eval "$ac_link") 2>conftest.er1
14577  ac_status=$?
14578  grep -v '^ *+' conftest.er1 >conftest.err
14579  rm -f conftest.er1
14580  cat conftest.err >&5
14581  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582  (exit $ac_status); } && {
14583	 test -z "$ac_c_werror_flag" ||
14584	 test ! -s conftest.err
14585       } && test -s conftest$ac_exeext && {
14586	 test "$cross_compiling" = yes ||
14587	 $as_test_x conftest$ac_exeext
14588       }; then
14589  { $as_echo "$as_me:$LINENO: result: yes" >&5
14590$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14591#define HAVE_AIX_ACL 1
14592_ACEOF
14593
14594else
14595  $as_echo "$as_me: failed program was:" >&5
14596sed 's/^/| /' conftest.$ac_ext >&5
14597
14598	{ $as_echo "$as_me:$LINENO: result: no" >&5
14599$as_echo "no" >&6; }
14600fi
14601
14602rm -rf conftest.dSYM
14603rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14604      conftest$ac_exeext conftest.$ac_ext
14605else
14606  { $as_echo "$as_me:$LINENO: result: yes" >&5
14607$as_echo "yes" >&6; }
14608fi
14609
14610{ $as_echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
14611$as_echo_n "checking --disable-gpm argument... " >&6; }
14612# Check whether --enable-gpm was given.
14613if test "${enable_gpm+set}" = set; then
14614  enableval=$enable_gpm;
14615else
14616  enable_gpm="yes"
14617fi
14618
14619
14620if test "$enable_gpm" = "yes"; then
14621  { $as_echo "$as_me:$LINENO: result: no" >&5
14622$as_echo "no" >&6; }
14623    { $as_echo "$as_me:$LINENO: checking for gpm" >&5
14624$as_echo_n "checking for gpm... " >&6; }
14625if test "${vi_cv_have_gpm+set}" = set; then
14626  $as_echo_n "(cached) " >&6
14627else
14628  olibs="$LIBS" ; LIBS="-lgpm"
14629	cat >conftest.$ac_ext <<_ACEOF
14630/* confdefs.h.  */
14631_ACEOF
14632cat confdefs.h >>conftest.$ac_ext
14633cat >>conftest.$ac_ext <<_ACEOF
14634/* end confdefs.h.  */
14635#include <gpm.h>
14636	    #include <linux/keyboard.h>
14637int
14638main ()
14639{
14640Gpm_GetLibVersion(NULL);
14641  ;
14642  return 0;
14643}
14644_ACEOF
14645rm -f conftest.$ac_objext conftest$ac_exeext
14646if { (ac_try="$ac_link"
14647case "(($ac_try" in
14648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14649  *) ac_try_echo=$ac_try;;
14650esac
14651eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14652$as_echo "$ac_try_echo") >&5
14653  (eval "$ac_link") 2>conftest.er1
14654  ac_status=$?
14655  grep -v '^ *+' conftest.er1 >conftest.err
14656  rm -f conftest.er1
14657  cat conftest.err >&5
14658  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659  (exit $ac_status); } && {
14660	 test -z "$ac_c_werror_flag" ||
14661	 test ! -s conftest.err
14662       } && test -s conftest$ac_exeext && {
14663	 test "$cross_compiling" = yes ||
14664	 $as_test_x conftest$ac_exeext
14665       }; then
14666  	    	    vi_cv_have_gpm=yes
14667else
14668  $as_echo "$as_me: failed program was:" >&5
14669sed 's/^/| /' conftest.$ac_ext >&5
14670
14671	vi_cv_have_gpm=no
14672fi
14673
14674rm -rf conftest.dSYM
14675rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14676      conftest$ac_exeext conftest.$ac_ext
14677	LIBS="$olibs"
14678
14679fi
14680{ $as_echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
14681$as_echo "$vi_cv_have_gpm" >&6; }
14682  if test $vi_cv_have_gpm = yes; then
14683    LIBS="$LIBS -lgpm"
14684    cat >>confdefs.h <<\_ACEOF
14685#define HAVE_GPM 1
14686_ACEOF
14687
14688  fi
14689else
14690  { $as_echo "$as_me:$LINENO: result: yes" >&5
14691$as_echo "yes" >&6; }
14692fi
14693
14694{ $as_echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5
14695$as_echo_n "checking --disable-sysmouse argument... " >&6; }
14696# Check whether --enable-sysmouse was given.
14697if test "${enable_sysmouse+set}" = set; then
14698  enableval=$enable_sysmouse;
14699else
14700  enable_sysmouse="yes"
14701fi
14702
14703
14704if test "$enable_sysmouse" = "yes"; then
14705  { $as_echo "$as_me:$LINENO: result: no" >&5
14706$as_echo "no" >&6; }
14707        { $as_echo "$as_me:$LINENO: checking for sysmouse" >&5
14708$as_echo_n "checking for sysmouse... " >&6; }
14709if test "${vi_cv_have_sysmouse+set}" = set; then
14710  $as_echo_n "(cached) " >&6
14711else
14712  cat >conftest.$ac_ext <<_ACEOF
14713/* confdefs.h.  */
14714_ACEOF
14715cat confdefs.h >>conftest.$ac_ext
14716cat >>conftest.$ac_ext <<_ACEOF
14717/* end confdefs.h.  */
14718#include <sys/consio.h>
14719	     #include <signal.h>
14720	     #include <sys/fbio.h>
14721int
14722main ()
14723{
14724struct mouse_info   mouse;
14725	     mouse.operation = MOUSE_MODE;
14726	     mouse.operation = MOUSE_SHOW;
14727	     mouse.u.mode.mode = 0;
14728	     mouse.u.mode.signal = SIGUSR2;
14729  ;
14730  return 0;
14731}
14732_ACEOF
14733rm -f conftest.$ac_objext conftest$ac_exeext
14734if { (ac_try="$ac_link"
14735case "(($ac_try" in
14736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14737  *) ac_try_echo=$ac_try;;
14738esac
14739eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14740$as_echo "$ac_try_echo") >&5
14741  (eval "$ac_link") 2>conftest.er1
14742  ac_status=$?
14743  grep -v '^ *+' conftest.er1 >conftest.err
14744  rm -f conftest.er1
14745  cat conftest.err >&5
14746  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747  (exit $ac_status); } && {
14748	 test -z "$ac_c_werror_flag" ||
14749	 test ! -s conftest.err
14750       } && test -s conftest$ac_exeext && {
14751	 test "$cross_compiling" = yes ||
14752	 $as_test_x conftest$ac_exeext
14753       }; then
14754  vi_cv_have_sysmouse=yes
14755else
14756  $as_echo "$as_me: failed program was:" >&5
14757sed 's/^/| /' conftest.$ac_ext >&5
14758
14759	vi_cv_have_sysmouse=no
14760fi
14761
14762rm -rf conftest.dSYM
14763rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14764      conftest$ac_exeext conftest.$ac_ext
14765
14766fi
14767{ $as_echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5
14768$as_echo "$vi_cv_have_sysmouse" >&6; }
14769  if test $vi_cv_have_sysmouse = yes; then
14770    cat >>confdefs.h <<\_ACEOF
14771#define HAVE_SYSMOUSE 1
14772_ACEOF
14773
14774  fi
14775else
14776  { $as_echo "$as_me:$LINENO: result: yes" >&5
14777$as_echo "yes" >&6; }
14778fi
14779
14780{ $as_echo "$as_me:$LINENO: checking for rename" >&5
14781$as_echo_n "checking for rename... " >&6; }
14782cat >conftest.$ac_ext <<_ACEOF
14783/* confdefs.h.  */
14784_ACEOF
14785cat confdefs.h >>conftest.$ac_ext
14786cat >>conftest.$ac_ext <<_ACEOF
14787/* end confdefs.h.  */
14788#include <stdio.h>
14789int
14790main ()
14791{
14792rename("this", "that")
14793  ;
14794  return 0;
14795}
14796_ACEOF
14797rm -f conftest.$ac_objext conftest$ac_exeext
14798if { (ac_try="$ac_link"
14799case "(($ac_try" in
14800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14801  *) ac_try_echo=$ac_try;;
14802esac
14803eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14804$as_echo "$ac_try_echo") >&5
14805  (eval "$ac_link") 2>conftest.er1
14806  ac_status=$?
14807  grep -v '^ *+' conftest.er1 >conftest.err
14808  rm -f conftest.er1
14809  cat conftest.err >&5
14810  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811  (exit $ac_status); } && {
14812	 test -z "$ac_c_werror_flag" ||
14813	 test ! -s conftest.err
14814       } && test -s conftest$ac_exeext && {
14815	 test "$cross_compiling" = yes ||
14816	 $as_test_x conftest$ac_exeext
14817       }; then
14818  { $as_echo "$as_me:$LINENO: result: yes" >&5
14819$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14820#define HAVE_RENAME 1
14821_ACEOF
14822
14823else
14824  $as_echo "$as_me: failed program was:" >&5
14825sed 's/^/| /' conftest.$ac_ext >&5
14826
14827	{ $as_echo "$as_me:$LINENO: result: no" >&5
14828$as_echo "no" >&6; }
14829fi
14830
14831rm -rf conftest.dSYM
14832rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14833      conftest$ac_exeext conftest.$ac_ext
14834
14835{ $as_echo "$as_me:$LINENO: checking for sysctl" >&5
14836$as_echo_n "checking for sysctl... " >&6; }
14837cat >conftest.$ac_ext <<_ACEOF
14838/* confdefs.h.  */
14839_ACEOF
14840cat confdefs.h >>conftest.$ac_ext
14841cat >>conftest.$ac_ext <<_ACEOF
14842/* end confdefs.h.  */
14843#include <sys/types.h>
14844#include <sys/sysctl.h>
14845int
14846main ()
14847{
14848	int mib[2], r;
14849	size_t len;
14850
14851	mib[0] = CTL_HW;
14852	mib[1] = HW_USERMEM;
14853	len = sizeof(r);
14854	(void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
14855
14856  ;
14857  return 0;
14858}
14859_ACEOF
14860rm -f conftest.$ac_objext
14861if { (ac_try="$ac_compile"
14862case "(($ac_try" in
14863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14864  *) ac_try_echo=$ac_try;;
14865esac
14866eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14867$as_echo "$ac_try_echo") >&5
14868  (eval "$ac_compile") 2>conftest.er1
14869  ac_status=$?
14870  grep -v '^ *+' conftest.er1 >conftest.err
14871  rm -f conftest.er1
14872  cat conftest.err >&5
14873  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874  (exit $ac_status); } && {
14875	 test -z "$ac_c_werror_flag" ||
14876	 test ! -s conftest.err
14877       } && test -s conftest.$ac_objext; then
14878  { $as_echo "$as_me:$LINENO: result: yes" >&5
14879$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14880#define HAVE_SYSCTL 1
14881_ACEOF
14882
14883else
14884  $as_echo "$as_me: failed program was:" >&5
14885sed 's/^/| /' conftest.$ac_ext >&5
14886
14887	{ $as_echo "$as_me:$LINENO: result: not usable" >&5
14888$as_echo "not usable" >&6; }
14889fi
14890
14891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14892
14893{ $as_echo "$as_me:$LINENO: checking for sysinfo" >&5
14894$as_echo_n "checking for sysinfo... " >&6; }
14895cat >conftest.$ac_ext <<_ACEOF
14896/* confdefs.h.  */
14897_ACEOF
14898cat confdefs.h >>conftest.$ac_ext
14899cat >>conftest.$ac_ext <<_ACEOF
14900/* end confdefs.h.  */
14901#include <sys/types.h>
14902#include <sys/sysinfo.h>
14903int
14904main ()
14905{
14906	struct sysinfo sinfo;
14907	int t;
14908
14909	(void)sysinfo(&sinfo);
14910	t = sinfo.totalram;
14911
14912  ;
14913  return 0;
14914}
14915_ACEOF
14916rm -f conftest.$ac_objext
14917if { (ac_try="$ac_compile"
14918case "(($ac_try" in
14919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14920  *) ac_try_echo=$ac_try;;
14921esac
14922eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14923$as_echo "$ac_try_echo") >&5
14924  (eval "$ac_compile") 2>conftest.er1
14925  ac_status=$?
14926  grep -v '^ *+' conftest.er1 >conftest.err
14927  rm -f conftest.er1
14928  cat conftest.err >&5
14929  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930  (exit $ac_status); } && {
14931	 test -z "$ac_c_werror_flag" ||
14932	 test ! -s conftest.err
14933       } && test -s conftest.$ac_objext; then
14934  { $as_echo "$as_me:$LINENO: result: yes" >&5
14935$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14936#define HAVE_SYSINFO 1
14937_ACEOF
14938
14939else
14940  $as_echo "$as_me: failed program was:" >&5
14941sed 's/^/| /' conftest.$ac_ext >&5
14942
14943	{ $as_echo "$as_me:$LINENO: result: not usable" >&5
14944$as_echo "not usable" >&6; }
14945fi
14946
14947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14948
14949{ $as_echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
14950$as_echo_n "checking for sysinfo.mem_unit... " >&6; }
14951cat >conftest.$ac_ext <<_ACEOF
14952/* confdefs.h.  */
14953_ACEOF
14954cat confdefs.h >>conftest.$ac_ext
14955cat >>conftest.$ac_ext <<_ACEOF
14956/* end confdefs.h.  */
14957#include <sys/types.h>
14958#include <sys/sysinfo.h>
14959int
14960main ()
14961{
14962	struct sysinfo sinfo;
14963 	sinfo.mem_unit = 1;
14964
14965  ;
14966  return 0;
14967}
14968_ACEOF
14969rm -f conftest.$ac_objext
14970if { (ac_try="$ac_compile"
14971case "(($ac_try" in
14972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14973  *) ac_try_echo=$ac_try;;
14974esac
14975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14976$as_echo "$ac_try_echo") >&5
14977  (eval "$ac_compile") 2>conftest.er1
14978  ac_status=$?
14979  grep -v '^ *+' conftest.er1 >conftest.err
14980  rm -f conftest.er1
14981  cat conftest.err >&5
14982  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983  (exit $ac_status); } && {
14984	 test -z "$ac_c_werror_flag" ||
14985	 test ! -s conftest.err
14986       } && test -s conftest.$ac_objext; then
14987  { $as_echo "$as_me:$LINENO: result: yes" >&5
14988$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14989#define HAVE_SYSINFO_MEM_UNIT 1
14990_ACEOF
14991
14992else
14993  $as_echo "$as_me: failed program was:" >&5
14994sed 's/^/| /' conftest.$ac_ext >&5
14995
14996	{ $as_echo "$as_me:$LINENO: result: no" >&5
14997$as_echo "no" >&6; }
14998fi
14999
15000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15001
15002{ $as_echo "$as_me:$LINENO: checking for sysconf" >&5
15003$as_echo_n "checking for sysconf... " >&6; }
15004cat >conftest.$ac_ext <<_ACEOF
15005/* confdefs.h.  */
15006_ACEOF
15007cat confdefs.h >>conftest.$ac_ext
15008cat >>conftest.$ac_ext <<_ACEOF
15009/* end confdefs.h.  */
15010#include <unistd.h>
15011int
15012main ()
15013{
15014	(void)sysconf(_SC_PAGESIZE);
15015	(void)sysconf(_SC_PHYS_PAGES);
15016
15017  ;
15018  return 0;
15019}
15020_ACEOF
15021rm -f conftest.$ac_objext
15022if { (ac_try="$ac_compile"
15023case "(($ac_try" in
15024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15025  *) ac_try_echo=$ac_try;;
15026esac
15027eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15028$as_echo "$ac_try_echo") >&5
15029  (eval "$ac_compile") 2>conftest.er1
15030  ac_status=$?
15031  grep -v '^ *+' conftest.er1 >conftest.err
15032  rm -f conftest.er1
15033  cat conftest.err >&5
15034  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035  (exit $ac_status); } && {
15036	 test -z "$ac_c_werror_flag" ||
15037	 test ! -s conftest.err
15038       } && test -s conftest.$ac_objext; then
15039  { $as_echo "$as_me:$LINENO: result: yes" >&5
15040$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15041#define HAVE_SYSCONF 1
15042_ACEOF
15043
15044else
15045  $as_echo "$as_me: failed program was:" >&5
15046sed 's/^/| /' conftest.$ac_ext >&5
15047
15048	{ $as_echo "$as_me:$LINENO: result: not usable" >&5
15049$as_echo "not usable" >&6; }
15050fi
15051
15052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15053
15054
15055{ $as_echo "$as_me:$LINENO: checking size of int" >&5
15056$as_echo_n "checking size of int... " >&6; }
15057if test "${ac_cv_sizeof_int+set}" = set; then
15058  $as_echo_n "(cached) " >&6
15059else
15060  if test "$cross_compiling" = yes; then
15061  { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
15062$as_echo "$as_me: error: failed to compile test program" >&2;}
15063   { (exit 1); exit 1; }; }
15064else
15065  cat >conftest.$ac_ext <<_ACEOF
15066/* confdefs.h.  */
15067_ACEOF
15068cat confdefs.h >>conftest.$ac_ext
15069cat >>conftest.$ac_ext <<_ACEOF
15070/* end confdefs.h.  */
15071
15072#include <stdio.h>
15073#if STDC_HEADERS
15074# include <stdlib.h>
15075# include <stddef.h>
15076#endif
15077main()
15078{
15079  FILE *f=fopen("conftestval", "w");
15080  if (!f) exit(1);
15081  fprintf(f, "%d\n", (int)sizeof(int));
15082  exit(0);
15083}
15084_ACEOF
15085rm -f conftest$ac_exeext
15086if { (ac_try="$ac_link"
15087case "(($ac_try" in
15088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15089  *) ac_try_echo=$ac_try;;
15090esac
15091eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15092$as_echo "$ac_try_echo") >&5
15093  (eval "$ac_link") 2>&5
15094  ac_status=$?
15095  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15097  { (case "(($ac_try" in
15098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15099  *) ac_try_echo=$ac_try;;
15100esac
15101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15102$as_echo "$ac_try_echo") >&5
15103  (eval "$ac_try") 2>&5
15104  ac_status=$?
15105  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106  (exit $ac_status); }; }; then
15107  ac_cv_sizeof_int=`cat conftestval`
15108else
15109  $as_echo "$as_me: program exited with status $ac_status" >&5
15110$as_echo "$as_me: failed program was:" >&5
15111sed 's/^/| /' conftest.$ac_ext >&5
15112
15113( exit $ac_status )
15114ac_cv_sizeof_int=0
15115fi
15116rm -rf conftest.dSYM
15117rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15118fi
15119
15120
15121fi
15122
15123{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15124$as_echo "$ac_cv_sizeof_int" >&6; }
15125cat >>confdefs.h <<_ACEOF
15126#define SIZEOF_INT $ac_cv_sizeof_int
15127_ACEOF
15128
15129
15130
15131
15132bcopy_test_prog='
15133#include "confdefs.h"
15134#ifdef HAVE_STRING_H
15135# include <string.h>
15136#endif
15137#if STDC_HEADERS
15138# include <stdlib.h>
15139# include <stddef.h>
15140#endif
15141main() {
15142  char buf[10];
15143  strcpy(buf, "abcdefghi");
15144  mch_memmove(buf, buf + 2, 3);
15145  if (strncmp(buf, "ababcf", 6))
15146    exit(1);
15147  strcpy(buf, "abcdefghi");
15148  mch_memmove(buf + 2, buf, 3);
15149  if (strncmp(buf, "cdedef", 6))
15150    exit(1);
15151  exit(0); /* libc version works properly.  */
15152}'
15153
15154{ $as_echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5
15155$as_echo_n "checking whether memmove handles overlaps... " >&6; }
15156if test "${vim_cv_memmove_handles_overlap+set}" = set; then
15157  $as_echo_n "(cached) " >&6
15158else
15159
15160    if test "$cross_compiling" = yes; then
15161
15162	{ { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5
15163$as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&2;}
15164   { (exit 1); exit 1; }; }
15165
15166else
15167  cat >conftest.$ac_ext <<_ACEOF
15168#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
15169_ACEOF
15170rm -f conftest$ac_exeext
15171if { (ac_try="$ac_link"
15172case "(($ac_try" in
15173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15174  *) ac_try_echo=$ac_try;;
15175esac
15176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15177$as_echo "$ac_try_echo") >&5
15178  (eval "$ac_link") 2>&5
15179  ac_status=$?
15180  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15182  { (case "(($ac_try" in
15183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15184  *) ac_try_echo=$ac_try;;
15185esac
15186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15187$as_echo "$ac_try_echo") >&5
15188  (eval "$ac_try") 2>&5
15189  ac_status=$?
15190  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191  (exit $ac_status); }; }; then
15192
15193	vim_cv_memmove_handles_overlap=yes
15194
15195else
15196  $as_echo "$as_me: program exited with status $ac_status" >&5
15197$as_echo "$as_me: failed program was:" >&5
15198sed 's/^/| /' conftest.$ac_ext >&5
15199
15200( exit $ac_status )
15201
15202	vim_cv_memmove_handles_overlap=no
15203
15204fi
15205rm -rf conftest.dSYM
15206rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15207fi
15208
15209
15210
15211fi
15212{ $as_echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5
15213$as_echo "$vim_cv_memmove_handles_overlap" >&6; }
15214
15215if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
15216  cat >>confdefs.h <<\_ACEOF
15217#define USEMEMMOVE 1
15218_ACEOF
15219
15220else
15221  { $as_echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5
15222$as_echo_n "checking whether bcopy handles overlaps... " >&6; }
15223if test "${vim_cv_bcopy_handles_overlap+set}" = set; then
15224  $as_echo_n "(cached) " >&6
15225else
15226
15227      if test "$cross_compiling" = yes; then
15228
15229	{ { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5
15230$as_echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;}
15231   { (exit 1); exit 1; }; }
15232
15233else
15234  cat >conftest.$ac_ext <<_ACEOF
15235#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
15236_ACEOF
15237rm -f conftest$ac_exeext
15238if { (ac_try="$ac_link"
15239case "(($ac_try" in
15240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15241  *) ac_try_echo=$ac_try;;
15242esac
15243eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15244$as_echo "$ac_try_echo") >&5
15245  (eval "$ac_link") 2>&5
15246  ac_status=$?
15247  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15249  { (case "(($ac_try" in
15250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15251  *) ac_try_echo=$ac_try;;
15252esac
15253eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15254$as_echo "$ac_try_echo") >&5
15255  (eval "$ac_try") 2>&5
15256  ac_status=$?
15257  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258  (exit $ac_status); }; }; then
15259
15260	vim_cv_bcopy_handles_overlap=yes
15261
15262else
15263  $as_echo "$as_me: program exited with status $ac_status" >&5
15264$as_echo "$as_me: failed program was:" >&5
15265sed 's/^/| /' conftest.$ac_ext >&5
15266
15267( exit $ac_status )
15268
15269	vim_cv_bcopy_handles_overlap=no
15270
15271fi
15272rm -rf conftest.dSYM
15273rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15274fi
15275
15276
15277
15278fi
15279{ $as_echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5
15280$as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
15281
15282  if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
15283    cat >>confdefs.h <<\_ACEOF
15284#define USEBCOPY 1
15285_ACEOF
15286
15287  else
15288    { $as_echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5
15289$as_echo_n "checking whether memcpy handles overlaps... " >&6; }
15290if test "${vim_cv_memcpy_handles_overlap+set}" = set; then
15291  $as_echo_n "(cached) " >&6
15292else
15293
15294	if test "$cross_compiling" = yes; then
15295
15296	    { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5
15297$as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&2;}
15298   { (exit 1); exit 1; }; }
15299
15300else
15301  cat >conftest.$ac_ext <<_ACEOF
15302#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
15303_ACEOF
15304rm -f conftest$ac_exeext
15305if { (ac_try="$ac_link"
15306case "(($ac_try" in
15307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308  *) ac_try_echo=$ac_try;;
15309esac
15310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15311$as_echo "$ac_try_echo") >&5
15312  (eval "$ac_link") 2>&5
15313  ac_status=$?
15314  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15316  { (case "(($ac_try" in
15317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15318  *) ac_try_echo=$ac_try;;
15319esac
15320eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15321$as_echo "$ac_try_echo") >&5
15322  (eval "$ac_try") 2>&5
15323  ac_status=$?
15324  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325  (exit $ac_status); }; }; then
15326
15327	    vim_cv_memcpy_handles_overlap=yes
15328
15329else
15330  $as_echo "$as_me: program exited with status $ac_status" >&5
15331$as_echo "$as_me: failed program was:" >&5
15332sed 's/^/| /' conftest.$ac_ext >&5
15333
15334( exit $ac_status )
15335
15336	    vim_cv_memcpy_handles_overlap=no
15337
15338fi
15339rm -rf conftest.dSYM
15340rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15341fi
15342
15343
15344
15345fi
15346{ $as_echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5
15347$as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
15348
15349    if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
15350      cat >>confdefs.h <<\_ACEOF
15351#define USEMEMCPY 1
15352_ACEOF
15353
15354    fi
15355  fi
15356fi
15357
15358
15359
15360if test "$enable_multibyte" = "yes"; then
15361  cflags_save=$CFLAGS
15362  ldflags_save=$LDFLAGS
15363  if test -n "$x_includes" ; then
15364    CFLAGS="$CFLAGS -I$x_includes"
15365    LDFLAGS="$X_LIBS $LDFLAGS -lX11"
15366    { $as_echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
15367$as_echo_n "checking whether X_LOCALE needed... " >&6; }
15368    cat >conftest.$ac_ext <<_ACEOF
15369/* confdefs.h.  */
15370_ACEOF
15371cat confdefs.h >>conftest.$ac_ext
15372cat >>conftest.$ac_ext <<_ACEOF
15373/* end confdefs.h.  */
15374#include <X11/Xlocale.h>
15375int
15376main ()
15377{
15378
15379  ;
15380  return 0;
15381}
15382_ACEOF
15383rm -f conftest.$ac_objext
15384if { (ac_try="$ac_compile"
15385case "(($ac_try" in
15386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15387  *) ac_try_echo=$ac_try;;
15388esac
15389eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15390$as_echo "$ac_try_echo") >&5
15391  (eval "$ac_compile") 2>conftest.er1
15392  ac_status=$?
15393  grep -v '^ *+' conftest.er1 >conftest.err
15394  rm -f conftest.er1
15395  cat conftest.err >&5
15396  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397  (exit $ac_status); } && {
15398	 test -z "$ac_c_werror_flag" ||
15399	 test ! -s conftest.err
15400       } && test -s conftest.$ac_objext; then
15401  cat >conftest.$ac_ext <<_ACEOF
15402/* confdefs.h.  */
15403_ACEOF
15404cat confdefs.h >>conftest.$ac_ext
15405cat >>conftest.$ac_ext <<_ACEOF
15406/* end confdefs.h.  */
15407
15408/* Override any GCC internal prototype to avoid an error.
15409   Use char because int might match the return type of a GCC
15410   builtin and then its argument prototype would still apply.  */
15411#ifdef __cplusplus
15412extern "C"
15413#endif
15414char _Xsetlocale ();
15415int
15416main ()
15417{
15418return _Xsetlocale ();
15419  ;
15420  return 0;
15421}
15422_ACEOF
15423rm -f conftest.$ac_objext conftest$ac_exeext
15424if { (ac_try="$ac_link"
15425case "(($ac_try" in
15426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15427  *) ac_try_echo=$ac_try;;
15428esac
15429eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15430$as_echo "$ac_try_echo") >&5
15431  (eval "$ac_link") 2>conftest.er1
15432  ac_status=$?
15433  grep -v '^ *+' conftest.er1 >conftest.err
15434  rm -f conftest.er1
15435  cat conftest.err >&5
15436  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437  (exit $ac_status); } && {
15438	 test -z "$ac_c_werror_flag" ||
15439	 test ! -s conftest.err
15440       } && test -s conftest$ac_exeext && {
15441	 test "$cross_compiling" = yes ||
15442	 $as_test_x conftest$ac_exeext
15443       }; then
15444  { $as_echo "$as_me:$LINENO: result: yes" >&5
15445$as_echo "yes" >&6; }
15446		cat >>confdefs.h <<\_ACEOF
15447#define X_LOCALE 1
15448_ACEOF
15449
15450else
15451  $as_echo "$as_me: failed program was:" >&5
15452sed 's/^/| /' conftest.$ac_ext >&5
15453
15454	{ $as_echo "$as_me:$LINENO: result: no" >&5
15455$as_echo "no" >&6; }
15456fi
15457
15458rm -rf conftest.dSYM
15459rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15460      conftest$ac_exeext conftest.$ac_ext
15461else
15462  $as_echo "$as_me: failed program was:" >&5
15463sed 's/^/| /' conftest.$ac_ext >&5
15464
15465	{ $as_echo "$as_me:$LINENO: result: no" >&5
15466$as_echo "no" >&6; }
15467fi
15468
15469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15470  fi
15471  CFLAGS=$cflags_save
15472  LDFLAGS=$ldflags_save
15473fi
15474
15475{ $as_echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
15476$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
15477if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
15478  $as_echo_n "(cached) " >&6
15479else
15480  ac_check_lib_save_LIBS=$LIBS
15481LIBS="-lxpg4  $LIBS"
15482cat >conftest.$ac_ext <<_ACEOF
15483/* confdefs.h.  */
15484_ACEOF
15485cat confdefs.h >>conftest.$ac_ext
15486cat >>conftest.$ac_ext <<_ACEOF
15487/* end confdefs.h.  */
15488
15489/* Override any GCC internal prototype to avoid an error.
15490   Use char because int might match the return type of a GCC
15491   builtin and then its argument prototype would still apply.  */
15492#ifdef __cplusplus
15493extern "C"
15494#endif
15495char _xpg4_setrunelocale ();
15496int
15497main ()
15498{
15499return _xpg4_setrunelocale ();
15500  ;
15501  return 0;
15502}
15503_ACEOF
15504rm -f conftest.$ac_objext conftest$ac_exeext
15505if { (ac_try="$ac_link"
15506case "(($ac_try" in
15507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15508  *) ac_try_echo=$ac_try;;
15509esac
15510eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15511$as_echo "$ac_try_echo") >&5
15512  (eval "$ac_link") 2>conftest.er1
15513  ac_status=$?
15514  grep -v '^ *+' conftest.er1 >conftest.err
15515  rm -f conftest.er1
15516  cat conftest.err >&5
15517  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518  (exit $ac_status); } && {
15519	 test -z "$ac_c_werror_flag" ||
15520	 test ! -s conftest.err
15521       } && test -s conftest$ac_exeext && {
15522	 test "$cross_compiling" = yes ||
15523	 $as_test_x conftest$ac_exeext
15524       }; then
15525  ac_cv_lib_xpg4__xpg4_setrunelocale=yes
15526else
15527  $as_echo "$as_me: failed program was:" >&5
15528sed 's/^/| /' conftest.$ac_ext >&5
15529
15530	ac_cv_lib_xpg4__xpg4_setrunelocale=no
15531fi
15532
15533rm -rf conftest.dSYM
15534rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15535      conftest$ac_exeext conftest.$ac_ext
15536LIBS=$ac_check_lib_save_LIBS
15537fi
15538{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
15539$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
15540if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
15541  LIBS="$LIBS -lxpg4"
15542fi
15543
15544
15545{ $as_echo "$as_me:$LINENO: checking how to create tags" >&5
15546$as_echo_n "checking how to create tags... " >&6; }
15547test -f tags && mv tags tags.save
15548if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
15549  TAGPRG="ctags -I INIT+ --fields=+S"
15550else
15551  (eval etags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
15552  (eval etags -c   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
15553  (eval ctags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
15554  (eval ctags -t   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
15555  (eval ctags -ts  /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
15556  (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
15557  (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
15558fi
15559test -f tags.save && mv tags.save tags
15560{ $as_echo "$as_me:$LINENO: result: $TAGPRG" >&5
15561$as_echo "$TAGPRG" >&6; }
15562
15563{ $as_echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
15564$as_echo_n "checking how to run man with a section nr... " >&6; }
15565MANDEF="man"
15566(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
15567{ $as_echo "$as_me:$LINENO: result: $MANDEF" >&5
15568$as_echo "$MANDEF" >&6; }
15569if test "$MANDEF" = "man -s"; then
15570  cat >>confdefs.h <<\_ACEOF
15571#define USEMAN_S 1
15572_ACEOF
15573
15574fi
15575
15576{ $as_echo "$as_me:$LINENO: checking --disable-nls argument" >&5
15577$as_echo_n "checking --disable-nls argument... " >&6; }
15578# Check whether --enable-nls was given.
15579if test "${enable_nls+set}" = set; then
15580  enableval=$enable_nls;
15581else
15582  enable_nls="yes"
15583fi
15584
15585
15586if test "$enable_nls" = "yes"; then
15587  { $as_echo "$as_me:$LINENO: result: no" >&5
15588$as_echo "no" >&6; }
15589
15590  INSTALL_LANGS=install-languages
15591
15592  INSTALL_TOOL_LANGS=install-tool-languages
15593
15594
15595  # Extract the first word of "msgfmt", so it can be a program name with args.
15596set dummy msgfmt; ac_word=$2
15597{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15598$as_echo_n "checking for $ac_word... " >&6; }
15599if test "${ac_cv_prog_MSGFMT+set}" = set; then
15600  $as_echo_n "(cached) " >&6
15601else
15602  if test -n "$MSGFMT"; then
15603  ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15604else
15605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15606for as_dir in $PATH
15607do
15608  IFS=$as_save_IFS
15609  test -z "$as_dir" && as_dir=.
15610  for ac_exec_ext in '' $ac_executable_extensions; do
15611  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15612    ac_cv_prog_MSGFMT="msgfmt"
15613    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15614    break 2
15615  fi
15616done
15617done
15618IFS=$as_save_IFS
15619
15620fi
15621fi
15622MSGFMT=$ac_cv_prog_MSGFMT
15623if test -n "$MSGFMT"; then
15624  { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
15625$as_echo "$MSGFMT" >&6; }
15626else
15627  { $as_echo "$as_me:$LINENO: result: no" >&5
15628$as_echo "no" >&6; }
15629fi
15630
15631
15632  { $as_echo "$as_me:$LINENO: checking for NLS" >&5
15633$as_echo_n "checking for NLS... " >&6; }
15634  if test -f po/Makefile; then
15635    have_gettext="no"
15636    if test -n "$MSGFMT"; then
15637      cat >conftest.$ac_ext <<_ACEOF
15638/* confdefs.h.  */
15639_ACEOF
15640cat confdefs.h >>conftest.$ac_ext
15641cat >>conftest.$ac_ext <<_ACEOF
15642/* end confdefs.h.  */
15643#include <libintl.h>
15644int
15645main ()
15646{
15647gettext("Test");
15648  ;
15649  return 0;
15650}
15651_ACEOF
15652rm -f conftest.$ac_objext conftest$ac_exeext
15653if { (ac_try="$ac_link"
15654case "(($ac_try" in
15655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15656  *) ac_try_echo=$ac_try;;
15657esac
15658eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15659$as_echo "$ac_try_echo") >&5
15660  (eval "$ac_link") 2>conftest.er1
15661  ac_status=$?
15662  grep -v '^ *+' conftest.er1 >conftest.err
15663  rm -f conftest.er1
15664  cat conftest.err >&5
15665  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666  (exit $ac_status); } && {
15667	 test -z "$ac_c_werror_flag" ||
15668	 test ! -s conftest.err
15669       } && test -s conftest$ac_exeext && {
15670	 test "$cross_compiling" = yes ||
15671	 $as_test_x conftest$ac_exeext
15672       }; then
15673  { $as_echo "$as_me:$LINENO: result: gettext() works" >&5
15674$as_echo "gettext() works" >&6; }; have_gettext="yes"
15675else
15676  $as_echo "$as_me: failed program was:" >&5
15677sed 's/^/| /' conftest.$ac_ext >&5
15678
15679	olibs=$LIBS
15680	  LIBS="$LIBS -lintl"
15681	  cat >conftest.$ac_ext <<_ACEOF
15682/* confdefs.h.  */
15683_ACEOF
15684cat confdefs.h >>conftest.$ac_ext
15685cat >>conftest.$ac_ext <<_ACEOF
15686/* end confdefs.h.  */
15687#include <libintl.h>
15688int
15689main ()
15690{
15691gettext("Test");
15692  ;
15693  return 0;
15694}
15695_ACEOF
15696rm -f conftest.$ac_objext conftest$ac_exeext
15697if { (ac_try="$ac_link"
15698case "(($ac_try" in
15699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15700  *) ac_try_echo=$ac_try;;
15701esac
15702eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15703$as_echo "$ac_try_echo") >&5
15704  (eval "$ac_link") 2>conftest.er1
15705  ac_status=$?
15706  grep -v '^ *+' conftest.er1 >conftest.err
15707  rm -f conftest.er1
15708  cat conftest.err >&5
15709  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710  (exit $ac_status); } && {
15711	 test -z "$ac_c_werror_flag" ||
15712	 test ! -s conftest.err
15713       } && test -s conftest$ac_exeext && {
15714	 test "$cross_compiling" = yes ||
15715	 $as_test_x conftest$ac_exeext
15716       }; then
15717  { $as_echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
15718$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"
15719else
15720  $as_echo "$as_me: failed program was:" >&5
15721sed 's/^/| /' conftest.$ac_ext >&5
15722
15723	{ $as_echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
15724$as_echo "gettext() doesn't work" >&6; };
15725	      LIBS=$olibs
15726fi
15727
15728rm -rf conftest.dSYM
15729rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15730      conftest$ac_exeext conftest.$ac_ext
15731fi
15732
15733rm -rf conftest.dSYM
15734rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15735      conftest$ac_exeext conftest.$ac_ext
15736    else
15737      { $as_echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
15738$as_echo "msgfmt not found - disabled" >&6; };
15739    fi
15740    if test $have_gettext = "yes"; then
15741      cat >>confdefs.h <<\_ACEOF
15742#define HAVE_GETTEXT 1
15743_ACEOF
15744
15745      MAKEMO=yes
15746
15747
15748for ac_func in bind_textdomain_codeset
15749do
15750as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15751{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15752$as_echo_n "checking for $ac_func... " >&6; }
15753if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15754  $as_echo_n "(cached) " >&6
15755else
15756  cat >conftest.$ac_ext <<_ACEOF
15757/* confdefs.h.  */
15758_ACEOF
15759cat confdefs.h >>conftest.$ac_ext
15760cat >>conftest.$ac_ext <<_ACEOF
15761/* end confdefs.h.  */
15762/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15763   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15764#define $ac_func innocuous_$ac_func
15765
15766/* System header to define __stub macros and hopefully few prototypes,
15767    which can conflict with char $ac_func (); below.
15768    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15769    <limits.h> exists even on freestanding compilers.  */
15770
15771#ifdef __STDC__
15772# include <limits.h>
15773#else
15774# include <assert.h>
15775#endif
15776
15777#undef $ac_func
15778
15779/* Override any GCC internal prototype to avoid an error.
15780   Use char because int might match the return type of a GCC
15781   builtin and then its argument prototype would still apply.  */
15782#ifdef __cplusplus
15783extern "C"
15784#endif
15785char $ac_func ();
15786/* The GNU C library defines this for functions which it implements
15787    to always fail with ENOSYS.  Some functions are actually named
15788    something starting with __ and the normal name is an alias.  */
15789#if defined __stub_$ac_func || defined __stub___$ac_func
15790choke me
15791#endif
15792
15793int
15794main ()
15795{
15796return $ac_func ();
15797  ;
15798  return 0;
15799}
15800_ACEOF
15801rm -f conftest.$ac_objext conftest$ac_exeext
15802if { (ac_try="$ac_link"
15803case "(($ac_try" in
15804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15805  *) ac_try_echo=$ac_try;;
15806esac
15807eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15808$as_echo "$ac_try_echo") >&5
15809  (eval "$ac_link") 2>conftest.er1
15810  ac_status=$?
15811  grep -v '^ *+' conftest.er1 >conftest.err
15812  rm -f conftest.er1
15813  cat conftest.err >&5
15814  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815  (exit $ac_status); } && {
15816	 test -z "$ac_c_werror_flag" ||
15817	 test ! -s conftest.err
15818       } && test -s conftest$ac_exeext && {
15819	 test "$cross_compiling" = yes ||
15820	 $as_test_x conftest$ac_exeext
15821       }; then
15822  eval "$as_ac_var=yes"
15823else
15824  $as_echo "$as_me: failed program was:" >&5
15825sed 's/^/| /' conftest.$ac_ext >&5
15826
15827	eval "$as_ac_var=no"
15828fi
15829
15830rm -rf conftest.dSYM
15831rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15832      conftest$ac_exeext conftest.$ac_ext
15833fi
15834ac_res=`eval 'as_val=${'$as_ac_var'}
15835		 $as_echo "$as_val"'`
15836	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15837$as_echo "$ac_res" >&6; }
15838if test `eval 'as_val=${'$as_ac_var'}
15839		 $as_echo "$as_val"'` = yes; then
15840  cat >>confdefs.h <<_ACEOF
15841#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15842_ACEOF
15843
15844fi
15845done
15846
15847            { $as_echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
15848$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
15849      cat >conftest.$ac_ext <<_ACEOF
15850/* confdefs.h.  */
15851_ACEOF
15852cat confdefs.h >>conftest.$ac_ext
15853cat >>conftest.$ac_ext <<_ACEOF
15854/* end confdefs.h.  */
15855#include <libintl.h>
15856		extern int _nl_msg_cat_cntr;
15857int
15858main ()
15859{
15860++_nl_msg_cat_cntr;
15861  ;
15862  return 0;
15863}
15864_ACEOF
15865rm -f conftest.$ac_objext conftest$ac_exeext
15866if { (ac_try="$ac_link"
15867case "(($ac_try" in
15868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15869  *) ac_try_echo=$ac_try;;
15870esac
15871eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15872$as_echo "$ac_try_echo") >&5
15873  (eval "$ac_link") 2>conftest.er1
15874  ac_status=$?
15875  grep -v '^ *+' conftest.er1 >conftest.err
15876  rm -f conftest.er1
15877  cat conftest.err >&5
15878  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879  (exit $ac_status); } && {
15880	 test -z "$ac_c_werror_flag" ||
15881	 test ! -s conftest.err
15882       } && test -s conftest$ac_exeext && {
15883	 test "$cross_compiling" = yes ||
15884	 $as_test_x conftest$ac_exeext
15885       }; then
15886  { $as_echo "$as_me:$LINENO: result: yes" >&5
15887$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15888#define HAVE_NL_MSG_CAT_CNTR 1
15889_ACEOF
15890
15891else
15892  $as_echo "$as_me: failed program was:" >&5
15893sed 's/^/| /' conftest.$ac_ext >&5
15894
15895	{ $as_echo "$as_me:$LINENO: result: no" >&5
15896$as_echo "no" >&6; }
15897fi
15898
15899rm -rf conftest.dSYM
15900rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15901      conftest$ac_exeext conftest.$ac_ext
15902    fi
15903  else
15904    { $as_echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
15905$as_echo "no \"po/Makefile\" - disabled" >&6; };
15906  fi
15907else
15908  { $as_echo "$as_me:$LINENO: result: yes" >&5
15909$as_echo "yes" >&6; }
15910fi
15911
15912if test "${ac_cv_header_dlfcn_h+set}" = set; then
15913  { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
15914$as_echo_n "checking for dlfcn.h... " >&6; }
15915if test "${ac_cv_header_dlfcn_h+set}" = set; then
15916  $as_echo_n "(cached) " >&6
15917fi
15918{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
15919$as_echo "$ac_cv_header_dlfcn_h" >&6; }
15920else
15921  # Is the header compilable?
15922{ $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
15923$as_echo_n "checking dlfcn.h usability... " >&6; }
15924cat >conftest.$ac_ext <<_ACEOF
15925/* confdefs.h.  */
15926_ACEOF
15927cat confdefs.h >>conftest.$ac_ext
15928cat >>conftest.$ac_ext <<_ACEOF
15929/* end confdefs.h.  */
15930$ac_includes_default
15931#include <dlfcn.h>
15932_ACEOF
15933rm -f conftest.$ac_objext
15934if { (ac_try="$ac_compile"
15935case "(($ac_try" in
15936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15937  *) ac_try_echo=$ac_try;;
15938esac
15939eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15940$as_echo "$ac_try_echo") >&5
15941  (eval "$ac_compile") 2>conftest.er1
15942  ac_status=$?
15943  grep -v '^ *+' conftest.er1 >conftest.err
15944  rm -f conftest.er1
15945  cat conftest.err >&5
15946  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947  (exit $ac_status); } && {
15948	 test -z "$ac_c_werror_flag" ||
15949	 test ! -s conftest.err
15950       } && test -s conftest.$ac_objext; then
15951  ac_header_compiler=yes
15952else
15953  $as_echo "$as_me: failed program was:" >&5
15954sed 's/^/| /' conftest.$ac_ext >&5
15955
15956	ac_header_compiler=no
15957fi
15958
15959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15960{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15961$as_echo "$ac_header_compiler" >&6; }
15962
15963# Is the header present?
15964{ $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
15965$as_echo_n "checking dlfcn.h presence... " >&6; }
15966cat >conftest.$ac_ext <<_ACEOF
15967/* confdefs.h.  */
15968_ACEOF
15969cat confdefs.h >>conftest.$ac_ext
15970cat >>conftest.$ac_ext <<_ACEOF
15971/* end confdefs.h.  */
15972#include <dlfcn.h>
15973_ACEOF
15974if { (ac_try="$ac_cpp conftest.$ac_ext"
15975case "(($ac_try" in
15976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15977  *) ac_try_echo=$ac_try;;
15978esac
15979eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15980$as_echo "$ac_try_echo") >&5
15981  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15982  ac_status=$?
15983  grep -v '^ *+' conftest.er1 >conftest.err
15984  rm -f conftest.er1
15985  cat conftest.err >&5
15986  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987  (exit $ac_status); } >/dev/null && {
15988	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15989	 test ! -s conftest.err
15990       }; then
15991  ac_header_preproc=yes
15992else
15993  $as_echo "$as_me: failed program was:" >&5
15994sed 's/^/| /' conftest.$ac_ext >&5
15995
15996  ac_header_preproc=no
15997fi
15998
15999rm -f conftest.err conftest.$ac_ext
16000{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16001$as_echo "$ac_header_preproc" >&6; }
16002
16003# So?  What about this header?
16004case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16005  yes:no: )
16006    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
16007$as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16008    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
16009$as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
16010    ac_header_preproc=yes
16011    ;;
16012  no:yes:* )
16013    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
16014$as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
16015    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
16016$as_echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
16017    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
16018$as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
16019    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
16020$as_echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16021    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
16022$as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
16023    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
16024$as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
16025
16026    ;;
16027esac
16028{ $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16029$as_echo_n "checking for dlfcn.h... " >&6; }
16030if test "${ac_cv_header_dlfcn_h+set}" = set; then
16031  $as_echo_n "(cached) " >&6
16032else
16033  ac_cv_header_dlfcn_h=$ac_header_preproc
16034fi
16035{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16036$as_echo "$ac_cv_header_dlfcn_h" >&6; }
16037
16038fi
16039if test $ac_cv_header_dlfcn_h = yes; then
16040  DLL=dlfcn.h
16041else
16042  if test "${ac_cv_header_dl_h+set}" = set; then
16043  { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16044$as_echo_n "checking for dl.h... " >&6; }
16045if test "${ac_cv_header_dl_h+set}" = set; then
16046  $as_echo_n "(cached) " >&6
16047fi
16048{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16049$as_echo "$ac_cv_header_dl_h" >&6; }
16050else
16051  # Is the header compilable?
16052{ $as_echo "$as_me:$LINENO: checking dl.h usability" >&5
16053$as_echo_n "checking dl.h usability... " >&6; }
16054cat >conftest.$ac_ext <<_ACEOF
16055/* confdefs.h.  */
16056_ACEOF
16057cat confdefs.h >>conftest.$ac_ext
16058cat >>conftest.$ac_ext <<_ACEOF
16059/* end confdefs.h.  */
16060$ac_includes_default
16061#include <dl.h>
16062_ACEOF
16063rm -f conftest.$ac_objext
16064if { (ac_try="$ac_compile"
16065case "(($ac_try" in
16066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16067  *) ac_try_echo=$ac_try;;
16068esac
16069eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16070$as_echo "$ac_try_echo") >&5
16071  (eval "$ac_compile") 2>conftest.er1
16072  ac_status=$?
16073  grep -v '^ *+' conftest.er1 >conftest.err
16074  rm -f conftest.er1
16075  cat conftest.err >&5
16076  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077  (exit $ac_status); } && {
16078	 test -z "$ac_c_werror_flag" ||
16079	 test ! -s conftest.err
16080       } && test -s conftest.$ac_objext; then
16081  ac_header_compiler=yes
16082else
16083  $as_echo "$as_me: failed program was:" >&5
16084sed 's/^/| /' conftest.$ac_ext >&5
16085
16086	ac_header_compiler=no
16087fi
16088
16089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16090{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16091$as_echo "$ac_header_compiler" >&6; }
16092
16093# Is the header present?
16094{ $as_echo "$as_me:$LINENO: checking dl.h presence" >&5
16095$as_echo_n "checking dl.h presence... " >&6; }
16096cat >conftest.$ac_ext <<_ACEOF
16097/* confdefs.h.  */
16098_ACEOF
16099cat confdefs.h >>conftest.$ac_ext
16100cat >>conftest.$ac_ext <<_ACEOF
16101/* end confdefs.h.  */
16102#include <dl.h>
16103_ACEOF
16104if { (ac_try="$ac_cpp conftest.$ac_ext"
16105case "(($ac_try" in
16106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16107  *) ac_try_echo=$ac_try;;
16108esac
16109eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16110$as_echo "$ac_try_echo") >&5
16111  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16112  ac_status=$?
16113  grep -v '^ *+' conftest.er1 >conftest.err
16114  rm -f conftest.er1
16115  cat conftest.err >&5
16116  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117  (exit $ac_status); } >/dev/null && {
16118	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16119	 test ! -s conftest.err
16120       }; then
16121  ac_header_preproc=yes
16122else
16123  $as_echo "$as_me: failed program was:" >&5
16124sed 's/^/| /' conftest.$ac_ext >&5
16125
16126  ac_header_preproc=no
16127fi
16128
16129rm -f conftest.err conftest.$ac_ext
16130{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16131$as_echo "$ac_header_preproc" >&6; }
16132
16133# So?  What about this header?
16134case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16135  yes:no: )
16136    { $as_echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16137$as_echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16138    { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
16139$as_echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
16140    ac_header_preproc=yes
16141    ;;
16142  no:yes:* )
16143    { $as_echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
16144$as_echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
16145    { $as_echo "$as_me:$LINENO: WARNING: dl.h:     check for missing prerequisite headers?" >&5
16146$as_echo "$as_me: WARNING: dl.h:     check for missing prerequisite headers?" >&2;}
16147    { $as_echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
16148$as_echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
16149    { $as_echo "$as_me:$LINENO: WARNING: dl.h:     section \"Present But Cannot Be Compiled\"" >&5
16150$as_echo "$as_me: WARNING: dl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16151    { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
16152$as_echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
16153    { $as_echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
16154$as_echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
16155
16156    ;;
16157esac
16158{ $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16159$as_echo_n "checking for dl.h... " >&6; }
16160if test "${ac_cv_header_dl_h+set}" = set; then
16161  $as_echo_n "(cached) " >&6
16162else
16163  ac_cv_header_dl_h=$ac_header_preproc
16164fi
16165{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16166$as_echo "$ac_cv_header_dl_h" >&6; }
16167
16168fi
16169if test $ac_cv_header_dl_h = yes; then
16170  DLL=dl.h
16171fi
16172
16173
16174fi
16175
16176
16177if test x${DLL} = xdlfcn.h; then
16178
16179cat >>confdefs.h <<\_ACEOF
16180#define HAVE_DLFCN_H 1
16181_ACEOF
16182
16183  { $as_echo "$as_me:$LINENO: checking for dlopen()" >&5
16184$as_echo_n "checking for dlopen()... " >&6; }
16185  cat >conftest.$ac_ext <<_ACEOF
16186/* confdefs.h.  */
16187_ACEOF
16188cat confdefs.h >>conftest.$ac_ext
16189cat >>conftest.$ac_ext <<_ACEOF
16190/* end confdefs.h.  */
16191
16192int
16193main ()
16194{
16195
16196		extern void* dlopen();
16197		dlopen();
16198
16199  ;
16200  return 0;
16201}
16202_ACEOF
16203rm -f conftest.$ac_objext conftest$ac_exeext
16204if { (ac_try="$ac_link"
16205case "(($ac_try" in
16206  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16207  *) ac_try_echo=$ac_try;;
16208esac
16209eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16210$as_echo "$ac_try_echo") >&5
16211  (eval "$ac_link") 2>conftest.er1
16212  ac_status=$?
16213  grep -v '^ *+' conftest.er1 >conftest.err
16214  rm -f conftest.er1
16215  cat conftest.err >&5
16216  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217  (exit $ac_status); } && {
16218	 test -z "$ac_c_werror_flag" ||
16219	 test ! -s conftest.err
16220       } && test -s conftest$ac_exeext && {
16221	 test "$cross_compiling" = yes ||
16222	 $as_test_x conftest$ac_exeext
16223       }; then
16224  { $as_echo "$as_me:$LINENO: result: yes" >&5
16225$as_echo "yes" >&6; };
16226
16227cat >>confdefs.h <<\_ACEOF
16228#define HAVE_DLOPEN 1
16229_ACEOF
16230
16231else
16232  $as_echo "$as_me: failed program was:" >&5
16233sed 's/^/| /' conftest.$ac_ext >&5
16234
16235	{ $as_echo "$as_me:$LINENO: result: no" >&5
16236$as_echo "no" >&6; };
16237	      { $as_echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
16238$as_echo_n "checking for dlopen() in -ldl... " >&6; }
16239	      olibs=$LIBS
16240	      LIBS="$LIBS -ldl"
16241	      cat >conftest.$ac_ext <<_ACEOF
16242/* confdefs.h.  */
16243_ACEOF
16244cat confdefs.h >>conftest.$ac_ext
16245cat >>conftest.$ac_ext <<_ACEOF
16246/* end confdefs.h.  */
16247
16248int
16249main ()
16250{
16251
16252				extern void* dlopen();
16253				dlopen();
16254
16255  ;
16256  return 0;
16257}
16258_ACEOF
16259rm -f conftest.$ac_objext conftest$ac_exeext
16260if { (ac_try="$ac_link"
16261case "(($ac_try" in
16262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16263  *) ac_try_echo=$ac_try;;
16264esac
16265eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16266$as_echo "$ac_try_echo") >&5
16267  (eval "$ac_link") 2>conftest.er1
16268  ac_status=$?
16269  grep -v '^ *+' conftest.er1 >conftest.err
16270  rm -f conftest.er1
16271  cat conftest.err >&5
16272  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273  (exit $ac_status); } && {
16274	 test -z "$ac_c_werror_flag" ||
16275	 test ! -s conftest.err
16276       } && test -s conftest$ac_exeext && {
16277	 test "$cross_compiling" = yes ||
16278	 $as_test_x conftest$ac_exeext
16279       }; then
16280  { $as_echo "$as_me:$LINENO: result: yes" >&5
16281$as_echo "yes" >&6; };
16282
16283cat >>confdefs.h <<\_ACEOF
16284#define HAVE_DLOPEN 1
16285_ACEOF
16286
16287else
16288  $as_echo "$as_me: failed program was:" >&5
16289sed 's/^/| /' conftest.$ac_ext >&5
16290
16291	{ $as_echo "$as_me:$LINENO: result: no" >&5
16292$as_echo "no" >&6; };
16293			  LIBS=$olibs
16294fi
16295
16296rm -rf conftest.dSYM
16297rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16298      conftest$ac_exeext conftest.$ac_ext
16299fi
16300
16301rm -rf conftest.dSYM
16302rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16303      conftest$ac_exeext conftest.$ac_ext
16304      { $as_echo "$as_me:$LINENO: checking for dlsym()" >&5
16305$as_echo_n "checking for dlsym()... " >&6; }
16306  cat >conftest.$ac_ext <<_ACEOF
16307/* confdefs.h.  */
16308_ACEOF
16309cat confdefs.h >>conftest.$ac_ext
16310cat >>conftest.$ac_ext <<_ACEOF
16311/* end confdefs.h.  */
16312
16313int
16314main ()
16315{
16316
16317		extern void* dlsym();
16318		dlsym();
16319
16320  ;
16321  return 0;
16322}
16323_ACEOF
16324rm -f conftest.$ac_objext conftest$ac_exeext
16325if { (ac_try="$ac_link"
16326case "(($ac_try" in
16327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16328  *) ac_try_echo=$ac_try;;
16329esac
16330eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16331$as_echo "$ac_try_echo") >&5
16332  (eval "$ac_link") 2>conftest.er1
16333  ac_status=$?
16334  grep -v '^ *+' conftest.er1 >conftest.err
16335  rm -f conftest.er1
16336  cat conftest.err >&5
16337  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338  (exit $ac_status); } && {
16339	 test -z "$ac_c_werror_flag" ||
16340	 test ! -s conftest.err
16341       } && test -s conftest$ac_exeext && {
16342	 test "$cross_compiling" = yes ||
16343	 $as_test_x conftest$ac_exeext
16344       }; then
16345  { $as_echo "$as_me:$LINENO: result: yes" >&5
16346$as_echo "yes" >&6; };
16347
16348cat >>confdefs.h <<\_ACEOF
16349#define HAVE_DLSYM 1
16350_ACEOF
16351
16352else
16353  $as_echo "$as_me: failed program was:" >&5
16354sed 's/^/| /' conftest.$ac_ext >&5
16355
16356	{ $as_echo "$as_me:$LINENO: result: no" >&5
16357$as_echo "no" >&6; };
16358	      { $as_echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
16359$as_echo_n "checking for dlsym() in -ldl... " >&6; }
16360	      olibs=$LIBS
16361	      LIBS="$LIBS -ldl"
16362	      cat >conftest.$ac_ext <<_ACEOF
16363/* confdefs.h.  */
16364_ACEOF
16365cat confdefs.h >>conftest.$ac_ext
16366cat >>conftest.$ac_ext <<_ACEOF
16367/* end confdefs.h.  */
16368
16369int
16370main ()
16371{
16372
16373				extern void* dlsym();
16374				dlsym();
16375
16376  ;
16377  return 0;
16378}
16379_ACEOF
16380rm -f conftest.$ac_objext conftest$ac_exeext
16381if { (ac_try="$ac_link"
16382case "(($ac_try" in
16383  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16384  *) ac_try_echo=$ac_try;;
16385esac
16386eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16387$as_echo "$ac_try_echo") >&5
16388  (eval "$ac_link") 2>conftest.er1
16389  ac_status=$?
16390  grep -v '^ *+' conftest.er1 >conftest.err
16391  rm -f conftest.er1
16392  cat conftest.err >&5
16393  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394  (exit $ac_status); } && {
16395	 test -z "$ac_c_werror_flag" ||
16396	 test ! -s conftest.err
16397       } && test -s conftest$ac_exeext && {
16398	 test "$cross_compiling" = yes ||
16399	 $as_test_x conftest$ac_exeext
16400       }; then
16401  { $as_echo "$as_me:$LINENO: result: yes" >&5
16402$as_echo "yes" >&6; };
16403
16404cat >>confdefs.h <<\_ACEOF
16405#define HAVE_DLSYM 1
16406_ACEOF
16407
16408else
16409  $as_echo "$as_me: failed program was:" >&5
16410sed 's/^/| /' conftest.$ac_ext >&5
16411
16412	{ $as_echo "$as_me:$LINENO: result: no" >&5
16413$as_echo "no" >&6; };
16414			  LIBS=$olibs
16415fi
16416
16417rm -rf conftest.dSYM
16418rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16419      conftest$ac_exeext conftest.$ac_ext
16420fi
16421
16422rm -rf conftest.dSYM
16423rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16424      conftest$ac_exeext conftest.$ac_ext
16425elif test x${DLL} = xdl.h; then
16426
16427cat >>confdefs.h <<\_ACEOF
16428#define HAVE_DL_H 1
16429_ACEOF
16430
16431  { $as_echo "$as_me:$LINENO: checking for shl_load()" >&5
16432$as_echo_n "checking for shl_load()... " >&6; }
16433  cat >conftest.$ac_ext <<_ACEOF
16434/* confdefs.h.  */
16435_ACEOF
16436cat confdefs.h >>conftest.$ac_ext
16437cat >>conftest.$ac_ext <<_ACEOF
16438/* end confdefs.h.  */
16439
16440int
16441main ()
16442{
16443
16444		extern void* shl_load();
16445		shl_load();
16446
16447  ;
16448  return 0;
16449}
16450_ACEOF
16451rm -f conftest.$ac_objext conftest$ac_exeext
16452if { (ac_try="$ac_link"
16453case "(($ac_try" in
16454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16455  *) ac_try_echo=$ac_try;;
16456esac
16457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16458$as_echo "$ac_try_echo") >&5
16459  (eval "$ac_link") 2>conftest.er1
16460  ac_status=$?
16461  grep -v '^ *+' conftest.er1 >conftest.err
16462  rm -f conftest.er1
16463  cat conftest.err >&5
16464  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465  (exit $ac_status); } && {
16466	 test -z "$ac_c_werror_flag" ||
16467	 test ! -s conftest.err
16468       } && test -s conftest$ac_exeext && {
16469	 test "$cross_compiling" = yes ||
16470	 $as_test_x conftest$ac_exeext
16471       }; then
16472  { $as_echo "$as_me:$LINENO: result: yes" >&5
16473$as_echo "yes" >&6; };
16474
16475cat >>confdefs.h <<\_ACEOF
16476#define HAVE_SHL_LOAD 1
16477_ACEOF
16478
16479else
16480  $as_echo "$as_me: failed program was:" >&5
16481sed 's/^/| /' conftest.$ac_ext >&5
16482
16483	{ $as_echo "$as_me:$LINENO: result: no" >&5
16484$as_echo "no" >&6; };
16485	  { $as_echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
16486$as_echo_n "checking for shl_load() in -ldld... " >&6; }
16487	  olibs=$LIBS
16488	  LIBS="$LIBS -ldld"
16489	  cat >conftest.$ac_ext <<_ACEOF
16490/* confdefs.h.  */
16491_ACEOF
16492cat confdefs.h >>conftest.$ac_ext
16493cat >>conftest.$ac_ext <<_ACEOF
16494/* end confdefs.h.  */
16495
16496int
16497main ()
16498{
16499
16500			extern void* shl_load();
16501			shl_load();
16502
16503  ;
16504  return 0;
16505}
16506_ACEOF
16507rm -f conftest.$ac_objext conftest$ac_exeext
16508if { (ac_try="$ac_link"
16509case "(($ac_try" in
16510  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16511  *) ac_try_echo=$ac_try;;
16512esac
16513eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16514$as_echo "$ac_try_echo") >&5
16515  (eval "$ac_link") 2>conftest.er1
16516  ac_status=$?
16517  grep -v '^ *+' conftest.er1 >conftest.err
16518  rm -f conftest.er1
16519  cat conftest.err >&5
16520  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521  (exit $ac_status); } && {
16522	 test -z "$ac_c_werror_flag" ||
16523	 test ! -s conftest.err
16524       } && test -s conftest$ac_exeext && {
16525	 test "$cross_compiling" = yes ||
16526	 $as_test_x conftest$ac_exeext
16527       }; then
16528  { $as_echo "$as_me:$LINENO: result: yes" >&5
16529$as_echo "yes" >&6; };
16530
16531cat >>confdefs.h <<\_ACEOF
16532#define HAVE_SHL_LOAD 1
16533_ACEOF
16534
16535else
16536  $as_echo "$as_me: failed program was:" >&5
16537sed 's/^/| /' conftest.$ac_ext >&5
16538
16539	{ $as_echo "$as_me:$LINENO: result: no" >&5
16540$as_echo "no" >&6; };
16541		  LIBS=$olibs
16542fi
16543
16544rm -rf conftest.dSYM
16545rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16546      conftest$ac_exeext conftest.$ac_ext
16547fi
16548
16549rm -rf conftest.dSYM
16550rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16551      conftest$ac_exeext conftest.$ac_ext
16552fi
16553
16554for ac_header in setjmp.h
16555do
16556as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16557if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16558  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16559$as_echo_n "checking for $ac_header... " >&6; }
16560if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16561  $as_echo_n "(cached) " >&6
16562fi
16563ac_res=`eval 'as_val=${'$as_ac_Header'}
16564		 $as_echo "$as_val"'`
16565	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16566$as_echo "$ac_res" >&6; }
16567else
16568  # Is the header compilable?
16569{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16570$as_echo_n "checking $ac_header usability... " >&6; }
16571cat >conftest.$ac_ext <<_ACEOF
16572/* confdefs.h.  */
16573_ACEOF
16574cat confdefs.h >>conftest.$ac_ext
16575cat >>conftest.$ac_ext <<_ACEOF
16576/* end confdefs.h.  */
16577$ac_includes_default
16578#include <$ac_header>
16579_ACEOF
16580rm -f conftest.$ac_objext
16581if { (ac_try="$ac_compile"
16582case "(($ac_try" in
16583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16584  *) ac_try_echo=$ac_try;;
16585esac
16586eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16587$as_echo "$ac_try_echo") >&5
16588  (eval "$ac_compile") 2>conftest.er1
16589  ac_status=$?
16590  grep -v '^ *+' conftest.er1 >conftest.err
16591  rm -f conftest.er1
16592  cat conftest.err >&5
16593  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594  (exit $ac_status); } && {
16595	 test -z "$ac_c_werror_flag" ||
16596	 test ! -s conftest.err
16597       } && test -s conftest.$ac_objext; then
16598  ac_header_compiler=yes
16599else
16600  $as_echo "$as_me: failed program was:" >&5
16601sed 's/^/| /' conftest.$ac_ext >&5
16602
16603	ac_header_compiler=no
16604fi
16605
16606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16607{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16608$as_echo "$ac_header_compiler" >&6; }
16609
16610# Is the header present?
16611{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16612$as_echo_n "checking $ac_header presence... " >&6; }
16613cat >conftest.$ac_ext <<_ACEOF
16614/* confdefs.h.  */
16615_ACEOF
16616cat confdefs.h >>conftest.$ac_ext
16617cat >>conftest.$ac_ext <<_ACEOF
16618/* end confdefs.h.  */
16619#include <$ac_header>
16620_ACEOF
16621if { (ac_try="$ac_cpp conftest.$ac_ext"
16622case "(($ac_try" in
16623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16624  *) ac_try_echo=$ac_try;;
16625esac
16626eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16627$as_echo "$ac_try_echo") >&5
16628  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16629  ac_status=$?
16630  grep -v '^ *+' conftest.er1 >conftest.err
16631  rm -f conftest.er1
16632  cat conftest.err >&5
16633  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634  (exit $ac_status); } >/dev/null && {
16635	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16636	 test ! -s conftest.err
16637       }; then
16638  ac_header_preproc=yes
16639else
16640  $as_echo "$as_me: failed program was:" >&5
16641sed 's/^/| /' conftest.$ac_ext >&5
16642
16643  ac_header_preproc=no
16644fi
16645
16646rm -f conftest.err conftest.$ac_ext
16647{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16648$as_echo "$ac_header_preproc" >&6; }
16649
16650# So?  What about this header?
16651case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16652  yes:no: )
16653    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16654$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16655    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16656$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16657    ac_header_preproc=yes
16658    ;;
16659  no:yes:* )
16660    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16661$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16662    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16663$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16664    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16665$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16666    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16667$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16668    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16669$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16670    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16671$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16672
16673    ;;
16674esac
16675{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16676$as_echo_n "checking for $ac_header... " >&6; }
16677if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16678  $as_echo_n "(cached) " >&6
16679else
16680  eval "$as_ac_Header=\$ac_header_preproc"
16681fi
16682ac_res=`eval 'as_val=${'$as_ac_Header'}
16683		 $as_echo "$as_val"'`
16684	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16685$as_echo "$ac_res" >&6; }
16686
16687fi
16688if test `eval 'as_val=${'$as_ac_Header'}
16689		 $as_echo "$as_val"'` = yes; then
16690  cat >>confdefs.h <<_ACEOF
16691#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16692_ACEOF
16693
16694fi
16695
16696done
16697
16698
16699if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
16700    if echo $LIBS | grep -e '-ldl' >/dev/null; then
16701    LIBS=`echo $LIBS | sed s/-ldl//`
16702    PERL_LIBS="$PERL_LIBS -ldl"
16703  fi
16704fi
16705
16706if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
16707	&& test "x$GUITYPE" != "xCARBONGUI"; then
16708  { $as_echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
16709$as_echo_n "checking whether we need -framework Carbon... " >&6; }
16710    if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
16711	|| test "x$features" = "xhuge"; then
16712    LIBS="$LIBS -framework Carbon"
16713    { $as_echo "$as_me:$LINENO: result: yes" >&5
16714$as_echo "yes" >&6; }
16715  else
16716    { $as_echo "$as_me:$LINENO: result: no" >&5
16717$as_echo "no" >&6; }
16718  fi
16719fi
16720if test "x$MACARCH" = "xboth"; then
16721  LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
16722fi
16723
16724{ $as_echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
16725$as_echo_n "checking for GCC 3 or later... " >&6; }
16726DEPEND_CFLAGS_FILTER=
16727if test "$GCC" = yes; then
16728  gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
16729  if test "$gccmajor" -gt "2"; then
16730    DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
16731  fi
16732fi
16733if test "$DEPEND_CFLAGS_FILTER" = ""; then
16734  { $as_echo "$as_me:$LINENO: result: no" >&5
16735$as_echo "no" >&6; }
16736else
16737  { $as_echo "$as_me:$LINENO: result: yes" >&5
16738$as_echo "yes" >&6; }
16739fi
16740
16741
16742ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
16743
16744cat >confcache <<\_ACEOF
16745# This file is a shell script that caches the results of configure
16746# tests run on this system so they can be shared between configure
16747# scripts and configure runs, see configure's option --config-cache.
16748# It is not useful on other systems.  If it contains results you don't
16749# want to keep, you may remove or edit it.
16750#
16751# config.status only pays attention to the cache file if you give it
16752# the --recheck option to rerun configure.
16753#
16754# `ac_cv_env_foo' variables (set or unset) will be overridden when
16755# loading this file, other *unset* `ac_cv_foo' will be assigned the
16756# following values.
16757
16758_ACEOF
16759
16760# The following way of writing the cache mishandles newlines in values,
16761# but we know of no workaround that is simple, portable, and efficient.
16762# So, we kill variables containing newlines.
16763# Ultrix sh set writes to stderr and can't be redirected directly,
16764# and sets the high bit in the cache file unless we assign to the vars.
16765(
16766  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16767    eval ac_val=\$$ac_var
16768    case $ac_val in #(
16769    *${as_nl}*)
16770      case $ac_var in #(
16771      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16772$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16773      esac
16774      case $ac_var in #(
16775      _ | IFS | as_nl) ;; #(
16776      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16777      *) $as_unset $ac_var ;;
16778      esac ;;
16779    esac
16780  done
16781
16782  (set) 2>&1 |
16783    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16784    *${as_nl}ac_space=\ *)
16785      # `set' does not quote correctly, so add quotes (double-quote
16786      # substitution turns \\\\ into \\, and sed turns \\ into \).
16787      sed -n \
16788	"s/'/'\\\\''/g;
16789	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16790      ;; #(
16791    *)
16792      # `set' quotes correctly as required by POSIX, so do not add quotes.
16793      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16794      ;;
16795    esac |
16796    sort
16797) |
16798  sed '
16799     /^ac_cv_env_/b end
16800     t clear
16801     :clear
16802     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16803     t end
16804     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16805     :end' >>confcache
16806if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16807  if test -w "$cache_file"; then
16808    test "x$cache_file" != "x/dev/null" &&
16809      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
16810$as_echo "$as_me: updating cache $cache_file" >&6;}
16811    cat confcache >$cache_file
16812  else
16813    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16814$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16815  fi
16816fi
16817rm -f confcache
16818
16819test "x$prefix" = xNONE && prefix=$ac_default_prefix
16820# Let make expand exec_prefix.
16821test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16822
16823DEFS=-DHAVE_CONFIG_H
16824
16825ac_libobjs=
16826ac_ltlibobjs=
16827for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16828  # 1. Remove the extension, and $U if already installed.
16829  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16830  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16831  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16832  #    will be set to the directory where LIBOBJS objects are built.
16833  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16834  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16835done
16836LIBOBJS=$ac_libobjs
16837
16838LTLIBOBJS=$ac_ltlibobjs
16839
16840
16841
16842: ${CONFIG_STATUS=./config.status}
16843ac_write_fail=0
16844ac_clean_files_save=$ac_clean_files
16845ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16846{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16847$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16848cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16849#! $SHELL
16850# Generated by $as_me.
16851# Run this file to recreate the current configuration.
16852# Compiler output produced by configure, useful for debugging
16853# configure, is in config.log if it exists.
16854
16855debug=false
16856ac_cs_recheck=false
16857ac_cs_silent=false
16858SHELL=\${CONFIG_SHELL-$SHELL}
16859_ACEOF
16860
16861cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16862## --------------------- ##
16863## M4sh Initialization.  ##
16864## --------------------- ##
16865
16866# Be more Bourne compatible
16867DUALCASE=1; export DUALCASE # for MKS sh
16868if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16869  emulate sh
16870  NULLCMD=:
16871  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16872  # is contrary to our usage.  Disable this feature.
16873  alias -g '${1+"$@"}'='"$@"'
16874  setopt NO_GLOB_SUBST
16875else
16876  case `(set -o) 2>/dev/null` in
16877  *posix*) set -o posix ;;
16878esac
16879
16880fi
16881
16882
16883
16884
16885# PATH needs CR
16886# Avoid depending upon Character Ranges.
16887as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16888as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16889as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16890as_cr_digits='0123456789'
16891as_cr_alnum=$as_cr_Letters$as_cr_digits
16892
16893as_nl='
16894'
16895export as_nl
16896# Printing a long string crashes Solaris 7 /usr/bin/printf.
16897as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16898as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16899as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16900if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16901  as_echo='printf %s\n'
16902  as_echo_n='printf %s'
16903else
16904  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16905    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16906    as_echo_n='/usr/ucb/echo -n'
16907  else
16908    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16909    as_echo_n_body='eval
16910      arg=$1;
16911      case $arg in
16912      *"$as_nl"*)
16913	expr "X$arg" : "X\\(.*\\)$as_nl";
16914	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16915      esac;
16916      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16917    '
16918    export as_echo_n_body
16919    as_echo_n='sh -c $as_echo_n_body as_echo'
16920  fi
16921  export as_echo_body
16922  as_echo='sh -c $as_echo_body as_echo'
16923fi
16924
16925# The user is always right.
16926if test "${PATH_SEPARATOR+set}" != set; then
16927  PATH_SEPARATOR=:
16928  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16929    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16930      PATH_SEPARATOR=';'
16931  }
16932fi
16933
16934# Support unset when possible.
16935if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16936  as_unset=unset
16937else
16938  as_unset=false
16939fi
16940
16941
16942# IFS
16943# We need space, tab and new line, in precisely that order.  Quoting is
16944# there to prevent editors from complaining about space-tab.
16945# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16946# splitting by setting IFS to empty value.)
16947IFS=" ""	$as_nl"
16948
16949# Find who we are.  Look in the path if we contain no directory separator.
16950case $0 in
16951  *[\\/]* ) as_myself=$0 ;;
16952  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16953for as_dir in $PATH
16954do
16955  IFS=$as_save_IFS
16956  test -z "$as_dir" && as_dir=.
16957  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16958done
16959IFS=$as_save_IFS
16960
16961     ;;
16962esac
16963# We did not find ourselves, most probably we were run as `sh COMMAND'
16964# in which case we are not to be found in the path.
16965if test "x$as_myself" = x; then
16966  as_myself=$0
16967fi
16968if test ! -f "$as_myself"; then
16969  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16970  { (exit 1); exit 1; }
16971fi
16972
16973# Work around bugs in pre-3.0 UWIN ksh.
16974for as_var in ENV MAIL MAILPATH
16975do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16976done
16977PS1='$ '
16978PS2='> '
16979PS4='+ '
16980
16981# NLS nuisances.
16982LC_ALL=C
16983export LC_ALL
16984LANGUAGE=C
16985export LANGUAGE
16986
16987# Required to use basename.
16988if expr a : '\(a\)' >/dev/null 2>&1 &&
16989   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16990  as_expr=expr
16991else
16992  as_expr=false
16993fi
16994
16995if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16996  as_basename=basename
16997else
16998  as_basename=false
16999fi
17000
17001
17002# Name of the executable.
17003as_me=`$as_basename -- "$0" ||
17004$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17005	 X"$0" : 'X\(//\)$' \| \
17006	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17007$as_echo X/"$0" |
17008    sed '/^.*\/\([^/][^/]*\)\/*$/{
17009	    s//\1/
17010	    q
17011	  }
17012	  /^X\/\(\/\/\)$/{
17013	    s//\1/
17014	    q
17015	  }
17016	  /^X\/\(\/\).*/{
17017	    s//\1/
17018	    q
17019	  }
17020	  s/.*/./; q'`
17021
17022# CDPATH.
17023$as_unset CDPATH
17024
17025
17026
17027  as_lineno_1=$LINENO
17028  as_lineno_2=$LINENO
17029  test "x$as_lineno_1" != "x$as_lineno_2" &&
17030  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17031
17032  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17033  # uniformly replaced by the line number.  The first 'sed' inserts a
17034  # line-number line after each line using $LINENO; the second 'sed'
17035  # does the real work.  The second script uses 'N' to pair each
17036  # line-number line with the line containing $LINENO, and appends
17037  # trailing '-' during substitution so that $LINENO is not a special
17038  # case at line end.
17039  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17040  # scripts with optimization help from Paolo Bonzini.  Blame Lee
17041  # E. McMahon (1931-1989) for sed's syntax.  :-)
17042  sed -n '
17043    p
17044    /[$]LINENO/=
17045  ' <$as_myself |
17046    sed '
17047      s/[$]LINENO.*/&-/
17048      t lineno
17049      b
17050      :lineno
17051      N
17052      :loop
17053      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17054      t loop
17055      s/-\n.*//
17056    ' >$as_me.lineno &&
17057  chmod +x "$as_me.lineno" ||
17058    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17059   { (exit 1); exit 1; }; }
17060
17061  # Don't try to exec as it changes $[0], causing all sort of problems
17062  # (the dirname of $[0] is not the place where we might find the
17063  # original and so on.  Autoconf is especially sensitive to this).
17064  . "./$as_me.lineno"
17065  # Exit status is that of the last command.
17066  exit
17067}
17068
17069
17070if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17071  as_dirname=dirname
17072else
17073  as_dirname=false
17074fi
17075
17076ECHO_C= ECHO_N= ECHO_T=
17077case `echo -n x` in
17078-n*)
17079  case `echo 'x\c'` in
17080  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17081  *)   ECHO_C='\c';;
17082  esac;;
17083*)
17084  ECHO_N='-n';;
17085esac
17086if expr a : '\(a\)' >/dev/null 2>&1 &&
17087   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17088  as_expr=expr
17089else
17090  as_expr=false
17091fi
17092
17093rm -f conf$$ conf$$.exe conf$$.file
17094if test -d conf$$.dir; then
17095  rm -f conf$$.dir/conf$$.file
17096else
17097  rm -f conf$$.dir
17098  mkdir conf$$.dir 2>/dev/null
17099fi
17100if (echo >conf$$.file) 2>/dev/null; then
17101  if ln -s conf$$.file conf$$ 2>/dev/null; then
17102    as_ln_s='ln -s'
17103    # ... but there are two gotchas:
17104    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17105    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17106    # In both cases, we have to default to `cp -p'.
17107    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17108      as_ln_s='cp -p'
17109  elif ln conf$$.file conf$$ 2>/dev/null; then
17110    as_ln_s=ln
17111  else
17112    as_ln_s='cp -p'
17113  fi
17114else
17115  as_ln_s='cp -p'
17116fi
17117rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17118rmdir conf$$.dir 2>/dev/null
17119
17120if mkdir -p . 2>/dev/null; then
17121  as_mkdir_p=:
17122else
17123  test -d ./-p && rmdir ./-p
17124  as_mkdir_p=false
17125fi
17126
17127if test -x / >/dev/null 2>&1; then
17128  as_test_x='test -x'
17129else
17130  if ls -dL / >/dev/null 2>&1; then
17131    as_ls_L_option=L
17132  else
17133    as_ls_L_option=
17134  fi
17135  as_test_x='
17136    eval sh -c '\''
17137      if test -d "$1"; then
17138	test -d "$1/.";
17139      else
17140	case $1 in
17141	-*)set "./$1";;
17142	esac;
17143	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17144	???[sx]*):;;*)false;;esac;fi
17145    '\'' sh
17146  '
17147fi
17148as_executable_p=$as_test_x
17149
17150# Sed expression to map a string onto a valid CPP name.
17151as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17152
17153# Sed expression to map a string onto a valid variable name.
17154as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17155
17156
17157exec 6>&1
17158
17159# Save the log message, to keep $[0] and so on meaningful, and to
17160# report actual input values of CONFIG_FILES etc. instead of their
17161# values after options handling.
17162ac_log="
17163This file was extended by $as_me, which was
17164generated by GNU Autoconf 2.62.  Invocation command line was
17165
17166  CONFIG_FILES    = $CONFIG_FILES
17167  CONFIG_HEADERS  = $CONFIG_HEADERS
17168  CONFIG_LINKS    = $CONFIG_LINKS
17169  CONFIG_COMMANDS = $CONFIG_COMMANDS
17170  $ $0 $@
17171
17172on `(hostname || uname -n) 2>/dev/null | sed 1q`
17173"
17174
17175_ACEOF
17176
17177cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17178# Files that config.status was made for.
17179config_files="$ac_config_files"
17180config_headers="$ac_config_headers"
17181
17182_ACEOF
17183
17184cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17185ac_cs_usage="\
17186\`$as_me' instantiates files from templates according to the
17187current configuration.
17188
17189Usage: $0 [OPTIONS] [FILE]...
17190
17191  -h, --help       print this help, then exit
17192  -V, --version    print version number and configuration settings, then exit
17193  -q, --quiet      do not print progress messages
17194  -d, --debug      don't remove temporary files
17195      --recheck    update $as_me by reconfiguring in the same conditions
17196  --file=FILE[:TEMPLATE]
17197                   instantiate the configuration file FILE
17198  --header=FILE[:TEMPLATE]
17199                   instantiate the configuration header FILE
17200
17201Configuration files:
17202$config_files
17203
17204Configuration headers:
17205$config_headers
17206
17207Report bugs to <[email protected]>."
17208
17209_ACEOF
17210cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17211ac_cs_version="\\
17212config.status
17213configured by $0, generated by GNU Autoconf 2.62,
17214  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17215
17216Copyright (C) 2008 Free Software Foundation, Inc.
17217This config.status script is free software; the Free Software Foundation
17218gives unlimited permission to copy, distribute and modify it."
17219
17220ac_pwd='$ac_pwd'
17221srcdir='$srcdir'
17222AWK='$AWK'
17223test -n "\$AWK" || AWK=awk
17224_ACEOF
17225
17226cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17227# The default lists apply if the user does not specify any file.
17228ac_need_defaults=:
17229while test $# != 0
17230do
17231  case $1 in
17232  --*=*)
17233    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17234    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17235    ac_shift=:
17236    ;;
17237  *)
17238    ac_option=$1
17239    ac_optarg=$2
17240    ac_shift=shift
17241    ;;
17242  esac
17243
17244  case $ac_option in
17245  # Handling of the options.
17246  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17247    ac_cs_recheck=: ;;
17248  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17249    $as_echo "$ac_cs_version"; exit ;;
17250  --debug | --debu | --deb | --de | --d | -d )
17251    debug=: ;;
17252  --file | --fil | --fi | --f )
17253    $ac_shift
17254    case $ac_optarg in
17255    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17256    esac
17257    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
17258    ac_need_defaults=false;;
17259  --header | --heade | --head | --hea )
17260    $ac_shift
17261    case $ac_optarg in
17262    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17263    esac
17264    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
17265    ac_need_defaults=false;;
17266  --he | --h)
17267    # Conflict between --help and --header
17268    { $as_echo "$as_me: error: ambiguous option: $1
17269Try \`$0 --help' for more information." >&2
17270   { (exit 1); exit 1; }; };;
17271  --help | --hel | -h )
17272    $as_echo "$ac_cs_usage"; exit ;;
17273  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17274  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17275    ac_cs_silent=: ;;
17276
17277  # This is an error.
17278  -*) { $as_echo "$as_me: error: unrecognized option: $1
17279Try \`$0 --help' for more information." >&2
17280   { (exit 1); exit 1; }; } ;;
17281
17282  *) ac_config_targets="$ac_config_targets $1"
17283     ac_need_defaults=false ;;
17284
17285  esac
17286  shift
17287done
17288
17289ac_configure_extra_args=
17290
17291if $ac_cs_silent; then
17292  exec 6>/dev/null
17293  ac_configure_extra_args="$ac_configure_extra_args --silent"
17294fi
17295
17296_ACEOF
17297cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17298if \$ac_cs_recheck; then
17299  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17300  shift
17301  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17302  CONFIG_SHELL='$SHELL'
17303  export CONFIG_SHELL
17304  exec "\$@"
17305fi
17306
17307_ACEOF
17308cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17309exec 5>>auto/config.log
17310{
17311  echo
17312  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17313## Running $as_me. ##
17314_ASBOX
17315  $as_echo "$ac_log"
17316} >&5
17317
17318_ACEOF
17319cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17320_ACEOF
17321
17322cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17323
17324# Handling of arguments.
17325for ac_config_target in $ac_config_targets
17326do
17327  case $ac_config_target in
17328    "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
17329    "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
17330
17331  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17332$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17333   { (exit 1); exit 1; }; };;
17334  esac
17335done
17336
17337
17338# If the user did not use the arguments to specify the items to instantiate,
17339# then the envvar interface is used.  Set only those that are not.
17340# We use the long form for the default assignment because of an extremely
17341# bizarre bug on SunOS 4.1.3.
17342if $ac_need_defaults; then
17343  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17344  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17345fi
17346
17347# Have a temporary directory for convenience.  Make it in the build tree
17348# simply because there is no reason against having it here, and in addition,
17349# creating and moving files from /tmp can sometimes cause problems.
17350# Hook for its removal unless debugging.
17351# Note that there is a small window in which the directory will not be cleaned:
17352# after its creation but before its name has been assigned to `$tmp'.
17353$debug ||
17354{
17355  tmp=
17356  trap 'exit_status=$?
17357  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17358' 0
17359  trap '{ (exit 1); exit 1; }' 1 2 13 15
17360}
17361# Create a (secure) tmp directory for tmp files.
17362
17363{
17364  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17365  test -n "$tmp" && test -d "$tmp"
17366}  ||
17367{
17368  tmp=./conf$$-$RANDOM
17369  (umask 077 && mkdir "$tmp")
17370} ||
17371{
17372   $as_echo "$as_me: cannot create a temporary directory in ." >&2
17373   { (exit 1); exit 1; }
17374}
17375
17376# Set up the scripts for CONFIG_FILES section.
17377# No need to generate them if there are no CONFIG_FILES.
17378# This happens for instance with `./config.status config.h'.
17379if test -n "$CONFIG_FILES"; then
17380
17381
17382ac_cr='
17383'
17384ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17385if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17386  ac_cs_awk_cr='\\r'
17387else
17388  ac_cs_awk_cr=$ac_cr
17389fi
17390
17391echo 'BEGIN {' >"$tmp/subs1.awk" &&
17392_ACEOF
17393
17394
17395{
17396  echo "cat >conf$$subs.awk <<_ACEOF" &&
17397  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17398  echo "_ACEOF"
17399} >conf$$subs.sh ||
17400  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17401$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17402   { (exit 1); exit 1; }; }
17403ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17404ac_delim='%!_!# '
17405for ac_last_try in false false false false false :; do
17406  . ./conf$$subs.sh ||
17407    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17408$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17409   { (exit 1); exit 1; }; }
17410
17411  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
17412    break
17413  elif $ac_last_try; then
17414    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17415$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17416   { (exit 1); exit 1; }; }
17417  else
17418    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17419  fi
17420done
17421rm -f conf$$subs.sh
17422
17423cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17424cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17425_ACEOF
17426sed -n '
17427h
17428s/^/S["/; s/!.*/"]=/
17429p
17430g
17431s/^[^!]*!//
17432:repl
17433t repl
17434s/'"$ac_delim"'$//
17435t delim
17436:nl
17437h
17438s/\(.\{148\}\).*/\1/
17439t more1
17440s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17441p
17442n
17443b repl
17444:more1
17445s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17446p
17447g
17448s/.\{148\}//
17449t nl
17450:delim
17451h
17452s/\(.\{148\}\).*/\1/
17453t more2
17454s/["\\]/\\&/g; s/^/"/; s/$/"/
17455p
17456b
17457:more2
17458s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17459p
17460g
17461s/.\{148\}//
17462t delim
17463' <conf$$subs.awk | sed '
17464/^[^""]/{
17465  N
17466  s/\n//
17467}
17468' >>$CONFIG_STATUS || ac_write_fail=1
17469rm -f conf$$subs.awk
17470cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17471_ACAWK
17472cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17473  for (key in S) S_is_set[key] = 1
17474  FS = ""
17475
17476}
17477{
17478  line = $ 0
17479  nfields = split(line, field, "@")
17480  substed = 0
17481  len = length(field[1])
17482  for (i = 2; i < nfields; i++) {
17483    key = field[i]
17484    keylen = length(key)
17485    if (S_is_set[key]) {
17486      value = S[key]
17487      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17488      len += length(value) + length(field[++i])
17489      substed = 1
17490    } else
17491      len += 1 + keylen
17492  }
17493
17494  print line
17495}
17496
17497_ACAWK
17498_ACEOF
17499cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17500if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17501  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17502else
17503  cat
17504fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17505  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
17506$as_echo "$as_me: error: could not setup config files machinery" >&2;}
17507   { (exit 1); exit 1; }; }
17508_ACEOF
17509
17510# VPATH may cause trouble with some makes, so we remove $(srcdir),
17511# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17512# trailing colons and then remove the whole line if VPATH becomes empty
17513# (actually we leave an empty line to preserve line numbers).
17514if test "x$srcdir" = x.; then
17515  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
17516s/:*\$(srcdir):*/:/
17517s/:*\${srcdir}:*/:/
17518s/:*@srcdir@:*/:/
17519s/^\([^=]*=[	 ]*\):*/\1/
17520s/:*$//
17521s/^[^=]*=[	 ]*$//
17522}'
17523fi
17524
17525cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17526fi # test -n "$CONFIG_FILES"
17527
17528# Set up the scripts for CONFIG_HEADERS section.
17529# No need to generate them if there are no CONFIG_HEADERS.
17530# This happens for instance with `./config.status Makefile'.
17531if test -n "$CONFIG_HEADERS"; then
17532cat >"$tmp/defines.awk" <<\_ACAWK ||
17533BEGIN {
17534_ACEOF
17535
17536# Transform confdefs.h into an awk script `defines.awk', embedded as
17537# here-document in config.status, that substitutes the proper values into
17538# config.h.in to produce config.h.
17539
17540# Create a delimiter string that does not exist in confdefs.h, to ease
17541# handling of long lines.
17542ac_delim='%!_!# '
17543for ac_last_try in false false :; do
17544  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17545  if test -z "$ac_t"; then
17546    break
17547  elif $ac_last_try; then
17548    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
17549$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
17550   { (exit 1); exit 1; }; }
17551  else
17552    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17553  fi
17554done
17555
17556# For the awk script, D is an array of macro values keyed by name,
17557# likewise P contains macro parameters if any.  Preserve backslash
17558# newline sequences.
17559
17560ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17561sed -n '
17562s/.\{148\}/&'"$ac_delim"'/g
17563t rset
17564:rset
17565s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
17566t def
17567d
17568:def
17569s/\\$//
17570t bsnl
17571s/["\\]/\\&/g
17572s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17573D["\1"]=" \3"/p
17574s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
17575d
17576:bsnl
17577s/["\\]/\\&/g
17578s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17579D["\1"]=" \3\\\\\\n"\\/p
17580t cont
17581s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17582t cont
17583d
17584:cont
17585n
17586s/.\{148\}/&'"$ac_delim"'/g
17587t clear
17588:clear
17589s/\\$//
17590t bsnlc
17591s/["\\]/\\&/g; s/^/"/; s/$/"/p
17592d
17593:bsnlc
17594s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17595b cont
17596' <confdefs.h | sed '
17597s/'"$ac_delim"'/"\\\
17598"/g' >>$CONFIG_STATUS || ac_write_fail=1
17599
17600cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17601  for (key in D) D_is_set[key] = 1
17602  FS = ""
17603}
17604/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17605  line = \$ 0
17606  split(line, arg, " ")
17607  if (arg[1] == "#") {
17608    defundef = arg[2]
17609    mac1 = arg[3]
17610  } else {
17611    defundef = substr(arg[1], 2)
17612    mac1 = arg[2]
17613  }
17614  split(mac1, mac2, "(") #)
17615  macro = mac2[1]
17616  if (D_is_set[macro]) {
17617    # Preserve the white space surrounding the "#".
17618    prefix = substr(line, 1, index(line, defundef) - 1)
17619    print prefix "define", macro P[macro] D[macro]
17620    next
17621  } else {
17622    # Replace #undef with comments.  This is necessary, for example,
17623    # in the case of _POSIX_SOURCE, which is predefined and required
17624    # on some systems where configure will not decide to define it.
17625    if (defundef == "undef") {
17626      print "/*", line, "*/"
17627      next
17628    }
17629  }
17630}
17631{ print }
17632_ACAWK
17633_ACEOF
17634cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17635  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
17636$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
17637   { (exit 1); exit 1; }; }
17638fi # test -n "$CONFIG_HEADERS"
17639
17640
17641eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
17642shift
17643for ac_tag
17644do
17645  case $ac_tag in
17646  :[FHLC]) ac_mode=$ac_tag; continue;;
17647  esac
17648  case $ac_mode$ac_tag in
17649  :[FHL]*:*);;
17650  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17651$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17652   { (exit 1); exit 1; }; };;
17653  :[FH]-) ac_tag=-:-;;
17654  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17655  esac
17656  ac_save_IFS=$IFS
17657  IFS=:
17658  set x $ac_tag
17659  IFS=$ac_save_IFS
17660  shift
17661  ac_file=$1
17662  shift
17663
17664  case $ac_mode in
17665  :L) ac_source=$1;;
17666  :[FH])
17667    ac_file_inputs=
17668    for ac_f
17669    do
17670      case $ac_f in
17671      -) ac_f="$tmp/stdin";;
17672      *) # Look for the file first in the build tree, then in the source tree
17673	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
17674	 # because $ac_f cannot contain `:'.
17675	 test -f "$ac_f" ||
17676	   case $ac_f in
17677	   [\\/$]*) false;;
17678	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17679	   esac ||
17680	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17681$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17682   { (exit 1); exit 1; }; };;
17683      esac
17684      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17685      ac_file_inputs="$ac_file_inputs '$ac_f'"
17686    done
17687
17688    # Let's still pretend it is `configure' which instantiates (i.e., don't
17689    # use $as_me), people would be surprised to read:
17690    #    /* config.h.  Generated by config.status.  */
17691    configure_input='Generated from '`
17692	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17693	`' by configure.'
17694    if test x"$ac_file" != x-; then
17695      configure_input="$ac_file.  $configure_input"
17696      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
17697$as_echo "$as_me: creating $ac_file" >&6;}
17698    fi
17699    # Neutralize special characters interpreted by sed in replacement strings.
17700    case $configure_input in #(
17701    *\&* | *\|* | *\\* )
17702       ac_sed_conf_input=`$as_echo "$configure_input" |
17703       sed 's/[\\\\&|]/\\\\&/g'`;; #(
17704    *) ac_sed_conf_input=$configure_input;;
17705    esac
17706
17707    case $ac_tag in
17708    *:-:* | *:-) cat >"$tmp/stdin" \
17709      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17710$as_echo "$as_me: error: could not create $ac_file" >&2;}
17711   { (exit 1); exit 1; }; } ;;
17712    esac
17713    ;;
17714  esac
17715
17716  ac_dir=`$as_dirname -- "$ac_file" ||
17717$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17718	 X"$ac_file" : 'X\(//\)[^/]' \| \
17719	 X"$ac_file" : 'X\(//\)$' \| \
17720	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17721$as_echo X"$ac_file" |
17722    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17723	    s//\1/
17724	    q
17725	  }
17726	  /^X\(\/\/\)[^/].*/{
17727	    s//\1/
17728	    q
17729	  }
17730	  /^X\(\/\/\)$/{
17731	    s//\1/
17732	    q
17733	  }
17734	  /^X\(\/\).*/{
17735	    s//\1/
17736	    q
17737	  }
17738	  s/.*/./; q'`
17739  { as_dir="$ac_dir"
17740  case $as_dir in #(
17741  -*) as_dir=./$as_dir;;
17742  esac
17743  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17744    as_dirs=
17745    while :; do
17746      case $as_dir in #(
17747      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17748      *) as_qdir=$as_dir;;
17749      esac
17750      as_dirs="'$as_qdir' $as_dirs"
17751      as_dir=`$as_dirname -- "$as_dir" ||
17752$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17753	 X"$as_dir" : 'X\(//\)[^/]' \| \
17754	 X"$as_dir" : 'X\(//\)$' \| \
17755	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17756$as_echo X"$as_dir" |
17757    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17758	    s//\1/
17759	    q
17760	  }
17761	  /^X\(\/\/\)[^/].*/{
17762	    s//\1/
17763	    q
17764	  }
17765	  /^X\(\/\/\)$/{
17766	    s//\1/
17767	    q
17768	  }
17769	  /^X\(\/\).*/{
17770	    s//\1/
17771	    q
17772	  }
17773	  s/.*/./; q'`
17774      test -d "$as_dir" && break
17775    done
17776    test -z "$as_dirs" || eval "mkdir $as_dirs"
17777  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17778$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
17779   { (exit 1); exit 1; }; }; }
17780  ac_builddir=.
17781
17782case "$ac_dir" in
17783.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17784*)
17785  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17786  # A ".." for each directory in $ac_dir_suffix.
17787  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17788  case $ac_top_builddir_sub in
17789  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17790  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17791  esac ;;
17792esac
17793ac_abs_top_builddir=$ac_pwd
17794ac_abs_builddir=$ac_pwd$ac_dir_suffix
17795# for backward compatibility:
17796ac_top_builddir=$ac_top_build_prefix
17797
17798case $srcdir in
17799  .)  # We are building in place.
17800    ac_srcdir=.
17801    ac_top_srcdir=$ac_top_builddir_sub
17802    ac_abs_top_srcdir=$ac_pwd ;;
17803  [\\/]* | ?:[\\/]* )  # Absolute name.
17804    ac_srcdir=$srcdir$ac_dir_suffix;
17805    ac_top_srcdir=$srcdir
17806    ac_abs_top_srcdir=$srcdir ;;
17807  *) # Relative name.
17808    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17809    ac_top_srcdir=$ac_top_build_prefix$srcdir
17810    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17811esac
17812ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17813
17814
17815  case $ac_mode in
17816  :F)
17817  #
17818  # CONFIG_FILE
17819  #
17820
17821_ACEOF
17822
17823cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17824# If the template does not know about datarootdir, expand it.
17825# FIXME: This hack should be removed a few years after 2.60.
17826ac_datarootdir_hack=; ac_datarootdir_seen=
17827
17828ac_sed_dataroot='
17829/datarootdir/ {
17830  p
17831  q
17832}
17833/@datadir@/p
17834/@docdir@/p
17835/@infodir@/p
17836/@localedir@/p
17837/@mandir@/p
17838'
17839case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17840*datarootdir*) ac_datarootdir_seen=yes;;
17841*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17842  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17843$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17844_ACEOF
17845cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17846  ac_datarootdir_hack='
17847  s&@datadir@&$datadir&g
17848  s&@docdir@&$docdir&g
17849  s&@infodir@&$infodir&g
17850  s&@localedir@&$localedir&g
17851  s&@mandir@&$mandir&g
17852    s&\\\${datarootdir}&$datarootdir&g' ;;
17853esac
17854_ACEOF
17855
17856# Neutralize VPATH when `$srcdir' = `.'.
17857# Shell code in configure.ac might set extrasub.
17858# FIXME: do we really want to maintain this feature?
17859cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17860ac_sed_extra="$ac_vpsub
17861$extrasub
17862_ACEOF
17863cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17864:t
17865/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17866s|@configure_input@|$ac_sed_conf_input|;t t
17867s&@top_builddir@&$ac_top_builddir_sub&;t t
17868s&@top_build_prefix@&$ac_top_build_prefix&;t t
17869s&@srcdir@&$ac_srcdir&;t t
17870s&@abs_srcdir@&$ac_abs_srcdir&;t t
17871s&@top_srcdir@&$ac_top_srcdir&;t t
17872s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17873s&@builddir@&$ac_builddir&;t t
17874s&@abs_builddir@&$ac_abs_builddir&;t t
17875s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17876$ac_datarootdir_hack
17877"
17878eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17879  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17880$as_echo "$as_me: error: could not create $ac_file" >&2;}
17881   { (exit 1); exit 1; }; }
17882
17883test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17884  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17885  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17886  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17887which seems to be undefined.  Please make sure it is defined." >&5
17888$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17889which seems to be undefined.  Please make sure it is defined." >&2;}
17890
17891  rm -f "$tmp/stdin"
17892  case $ac_file in
17893  -) cat "$tmp/out" && rm -f "$tmp/out";;
17894  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17895  esac \
17896  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17897$as_echo "$as_me: error: could not create $ac_file" >&2;}
17898   { (exit 1); exit 1; }; }
17899 ;;
17900  :H)
17901  #
17902  # CONFIG_HEADER
17903  #
17904  if test x"$ac_file" != x-; then
17905    {
17906      $as_echo "/* $configure_input  */" \
17907      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17908    } >"$tmp/config.h" \
17909      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17910$as_echo "$as_me: error: could not create $ac_file" >&2;}
17911   { (exit 1); exit 1; }; }
17912    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17913      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17914$as_echo "$as_me: $ac_file is unchanged" >&6;}
17915    else
17916      rm -f "$ac_file"
17917      mv "$tmp/config.h" "$ac_file" \
17918	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17919$as_echo "$as_me: error: could not create $ac_file" >&2;}
17920   { (exit 1); exit 1; }; }
17921    fi
17922  else
17923    $as_echo "/* $configure_input  */" \
17924      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17925      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
17926$as_echo "$as_me: error: could not create -" >&2;}
17927   { (exit 1); exit 1; }; }
17928  fi
17929 ;;
17930
17931
17932  esac
17933
17934done # for ac_tag
17935
17936
17937{ (exit 0); exit 0; }
17938_ACEOF
17939chmod +x $CONFIG_STATUS
17940ac_clean_files=$ac_clean_files_save
17941
17942test $ac_write_fail = 0 ||
17943  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
17944$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
17945   { (exit 1); exit 1; }; }
17946
17947
17948# configure is writing to config.log, and then calls config.status.
17949# config.status does its own redirection, appending to config.log.
17950# Unfortunately, on DOS this fails, as config.log is still kept open
17951# by configure, so config.status won't be able to write to it; its
17952# output is simply discarded.  So we exec the FD to /dev/null,
17953# effectively closing config.log, so it can be properly (re)opened and
17954# appended to by config.status.  When coming back to configure, we
17955# need to make the FD available again.
17956if test "$no_create" != yes; then
17957  ac_cs_success=:
17958  ac_config_status_args=
17959  test "$silent" = yes &&
17960    ac_config_status_args="$ac_config_status_args --quiet"
17961  exec 5>/dev/null
17962  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17963  exec 5>>auto/config.log
17964  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17965  # would make configure fail if this is the last instruction.
17966  $ac_cs_success || { (exit 1); exit 1; }
17967fi
17968if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17969  { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
17970$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
17971fi
17972
17973
17974