xref: /vim-8.2.3635/src/auto/configure (revision e37d50a5)
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_local_dir
776with_vim_name
777with_ex_name
778with_view_name
779with_global_runtime
780with_modified_by
781enable_selinux
782with_features
783with_compiledby
784enable_xsmp
785enable_xsmp_interact
786enable_mzschemeinterp
787with_plthome
788enable_perlinterp
789enable_pythoninterp
790with_python_config_dir
791enable_tclinterp
792with_tclsh
793enable_rubyinterp
794enable_cscope
795enable_workshop
796enable_netbeans
797enable_sniff
798enable_multibyte
799enable_hangulinput
800enable_xim
801enable_fontset
802with_x
803enable_gui
804enable_gtk_check
805enable_gtk2_check
806enable_gnome_check
807enable_motif_check
808enable_athena_check
809enable_nextaw_check
810enable_carbon_check
811with_gtk_prefix
812with_gtk_exec_prefix
813enable_gtktest
814with_gnome_includes
815with_gnome_libs
816with_gnome
817with_motif_lib
818with_tlib
819enable_acl
820enable_gpm
821enable_sysmouse
822enable_nls
823'
824      ac_precious_vars='build_alias
825host_alias
826target_alias
827CC
828CFLAGS
829LDFLAGS
830LIBS
831CPPFLAGS
832CPP
833XMKMF'
834
835
836# Initialize some variables set by options.
837ac_init_help=
838ac_init_version=false
839ac_unrecognized_opts=
840ac_unrecognized_sep=
841# The variables have the same names as the options, with
842# dashes changed to underlines.
843cache_file=/dev/null
844exec_prefix=NONE
845no_create=
846no_recursion=
847prefix=NONE
848program_prefix=NONE
849program_suffix=NONE
850program_transform_name=s,x,x,
851silent=
852site=
853srcdir=
854verbose=
855x_includes=NONE
856x_libraries=NONE
857
858# Installation directory options.
859# These are left unexpanded so users can "make install exec_prefix=/foo"
860# and all the variables that are supposed to be based on exec_prefix
861# by default will actually change.
862# Use braces instead of parens because sh, perl, etc. also accept them.
863# (The list follows the same order as the GNU Coding Standards.)
864bindir='${exec_prefix}/bin'
865sbindir='${exec_prefix}/sbin'
866libexecdir='${exec_prefix}/libexec'
867datarootdir='${prefix}/share'
868datadir='${datarootdir}'
869sysconfdir='${prefix}/etc'
870sharedstatedir='${prefix}/com'
871localstatedir='${prefix}/var'
872includedir='${prefix}/include'
873oldincludedir='/usr/include'
874docdir='${datarootdir}/doc/${PACKAGE}'
875infodir='${datarootdir}/info'
876htmldir='${docdir}'
877dvidir='${docdir}'
878pdfdir='${docdir}'
879psdir='${docdir}'
880libdir='${exec_prefix}/lib'
881localedir='${datarootdir}/locale'
882mandir='${datarootdir}/man'
883
884ac_prev=
885ac_dashdash=
886for ac_option
887do
888  # If the previous option needs an argument, assign it.
889  if test -n "$ac_prev"; then
890    eval $ac_prev=\$ac_option
891    ac_prev=
892    continue
893  fi
894
895  case $ac_option in
896  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
897  *)	ac_optarg=yes ;;
898  esac
899
900  # Accept the important Cygnus configure options, so we can diagnose typos.
901
902  case $ac_dashdash$ac_option in
903  --)
904    ac_dashdash=yes ;;
905
906  -bindir | --bindir | --bindi | --bind | --bin | --bi)
907    ac_prev=bindir ;;
908  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
909    bindir=$ac_optarg ;;
910
911  -build | --build | --buil | --bui | --bu)
912    ac_prev=build_alias ;;
913  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
914    build_alias=$ac_optarg ;;
915
916  -cache-file | --cache-file | --cache-fil | --cache-fi \
917  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
918    ac_prev=cache_file ;;
919  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
920  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
921    cache_file=$ac_optarg ;;
922
923  --config-cache | -C)
924    cache_file=config.cache ;;
925
926  -datadir | --datadir | --datadi | --datad)
927    ac_prev=datadir ;;
928  -datadir=* | --datadir=* | --datadi=* | --datad=*)
929    datadir=$ac_optarg ;;
930
931  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
932  | --dataroo | --dataro | --datar)
933    ac_prev=datarootdir ;;
934  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
935  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
936    datarootdir=$ac_optarg ;;
937
938  -disable-* | --disable-*)
939    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940    # Reject names that are not valid shell variable names.
941    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
943   { (exit 1); exit 1; }; }
944    ac_useropt_orig=$ac_useropt
945    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946    case $ac_user_opts in
947      *"
948"enable_$ac_useropt"
949"*) ;;
950      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951	 ac_unrecognized_sep=', ';;
952    esac
953    eval enable_$ac_useropt=no ;;
954
955  -docdir | --docdir | --docdi | --doc | --do)
956    ac_prev=docdir ;;
957  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958    docdir=$ac_optarg ;;
959
960  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961    ac_prev=dvidir ;;
962  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963    dvidir=$ac_optarg ;;
964
965  -enable-* | --enable-*)
966    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967    # Reject names that are not valid shell variable names.
968    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
970   { (exit 1); exit 1; }; }
971    ac_useropt_orig=$ac_useropt
972    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973    case $ac_user_opts in
974      *"
975"enable_$ac_useropt"
976"*) ;;
977      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978	 ac_unrecognized_sep=', ';;
979    esac
980    eval enable_$ac_useropt=\$ac_optarg ;;
981
982  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984  | --exec | --exe | --ex)
985    ac_prev=exec_prefix ;;
986  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988  | --exec=* | --exe=* | --ex=*)
989    exec_prefix=$ac_optarg ;;
990
991  -gas | --gas | --ga | --g)
992    # Obsolete; use --with-gas.
993    with_gas=yes ;;
994
995  -help | --help | --hel | --he | -h)
996    ac_init_help=long ;;
997  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998    ac_init_help=recursive ;;
999  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000    ac_init_help=short ;;
1001
1002  -host | --host | --hos | --ho)
1003    ac_prev=host_alias ;;
1004  -host=* | --host=* | --hos=* | --ho=*)
1005    host_alias=$ac_optarg ;;
1006
1007  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008    ac_prev=htmldir ;;
1009  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010  | --ht=*)
1011    htmldir=$ac_optarg ;;
1012
1013  -includedir | --includedir | --includedi | --included | --include \
1014  | --includ | --inclu | --incl | --inc)
1015    ac_prev=includedir ;;
1016  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017  | --includ=* | --inclu=* | --incl=* | --inc=*)
1018    includedir=$ac_optarg ;;
1019
1020  -infodir | --infodir | --infodi | --infod | --info | --inf)
1021    ac_prev=infodir ;;
1022  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023    infodir=$ac_optarg ;;
1024
1025  -libdir | --libdir | --libdi | --libd)
1026    ac_prev=libdir ;;
1027  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028    libdir=$ac_optarg ;;
1029
1030  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031  | --libexe | --libex | --libe)
1032    ac_prev=libexecdir ;;
1033  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034  | --libexe=* | --libex=* | --libe=*)
1035    libexecdir=$ac_optarg ;;
1036
1037  -localedir | --localedir | --localedi | --localed | --locale)
1038    ac_prev=localedir ;;
1039  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040    localedir=$ac_optarg ;;
1041
1042  -localstatedir | --localstatedir | --localstatedi | --localstated \
1043  | --localstate | --localstat | --localsta | --localst | --locals)
1044    ac_prev=localstatedir ;;
1045  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047    localstatedir=$ac_optarg ;;
1048
1049  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050    ac_prev=mandir ;;
1051  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052    mandir=$ac_optarg ;;
1053
1054  -nfp | --nfp | --nf)
1055    # Obsolete; use --without-fp.
1056    with_fp=no ;;
1057
1058  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059  | --no-cr | --no-c | -n)
1060    no_create=yes ;;
1061
1062  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064    no_recursion=yes ;;
1065
1066  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068  | --oldin | --oldi | --old | --ol | --o)
1069    ac_prev=oldincludedir ;;
1070  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073    oldincludedir=$ac_optarg ;;
1074
1075  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076    ac_prev=prefix ;;
1077  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078    prefix=$ac_optarg ;;
1079
1080  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081  | --program-pre | --program-pr | --program-p)
1082    ac_prev=program_prefix ;;
1083  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085    program_prefix=$ac_optarg ;;
1086
1087  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088  | --program-suf | --program-su | --program-s)
1089    ac_prev=program_suffix ;;
1090  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092    program_suffix=$ac_optarg ;;
1093
1094  -program-transform-name | --program-transform-name \
1095  | --program-transform-nam | --program-transform-na \
1096  | --program-transform-n | --program-transform- \
1097  | --program-transform | --program-transfor \
1098  | --program-transfo | --program-transf \
1099  | --program-trans | --program-tran \
1100  | --progr-tra | --program-tr | --program-t)
1101    ac_prev=program_transform_name ;;
1102  -program-transform-name=* | --program-transform-name=* \
1103  | --program-transform-nam=* | --program-transform-na=* \
1104  | --program-transform-n=* | --program-transform-=* \
1105  | --program-transform=* | --program-transfor=* \
1106  | --program-transfo=* | --program-transf=* \
1107  | --program-trans=* | --program-tran=* \
1108  | --progr-tra=* | --program-tr=* | --program-t=*)
1109    program_transform_name=$ac_optarg ;;
1110
1111  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112    ac_prev=pdfdir ;;
1113  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114    pdfdir=$ac_optarg ;;
1115
1116  -psdir | --psdir | --psdi | --psd | --ps)
1117    ac_prev=psdir ;;
1118  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119    psdir=$ac_optarg ;;
1120
1121  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122  | -silent | --silent | --silen | --sile | --sil)
1123    silent=yes ;;
1124
1125  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126    ac_prev=sbindir ;;
1127  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128  | --sbi=* | --sb=*)
1129    sbindir=$ac_optarg ;;
1130
1131  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133  | --sharedst | --shareds | --shared | --share | --shar \
1134  | --sha | --sh)
1135    ac_prev=sharedstatedir ;;
1136  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139  | --sha=* | --sh=*)
1140    sharedstatedir=$ac_optarg ;;
1141
1142  -site | --site | --sit)
1143    ac_prev=site ;;
1144  -site=* | --site=* | --sit=*)
1145    site=$ac_optarg ;;
1146
1147  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148    ac_prev=srcdir ;;
1149  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150    srcdir=$ac_optarg ;;
1151
1152  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153  | --syscon | --sysco | --sysc | --sys | --sy)
1154    ac_prev=sysconfdir ;;
1155  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157    sysconfdir=$ac_optarg ;;
1158
1159  -target | --target | --targe | --targ | --tar | --ta | --t)
1160    ac_prev=target_alias ;;
1161  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162    target_alias=$ac_optarg ;;
1163
1164  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165    verbose=yes ;;
1166
1167  -version | --version | --versio | --versi | --vers | -V)
1168    ac_init_version=: ;;
1169
1170  -with-* | --with-*)
1171    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172    # Reject names that are not valid shell variable names.
1173    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1175   { (exit 1); exit 1; }; }
1176    ac_useropt_orig=$ac_useropt
1177    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178    case $ac_user_opts in
1179      *"
1180"with_$ac_useropt"
1181"*) ;;
1182      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183	 ac_unrecognized_sep=', ';;
1184    esac
1185    eval with_$ac_useropt=\$ac_optarg ;;
1186
1187  -without-* | --without-*)
1188    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1189    # Reject names that are not valid shell variable names.
1190    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1192   { (exit 1); exit 1; }; }
1193    ac_useropt_orig=$ac_useropt
1194    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195    case $ac_user_opts in
1196      *"
1197"with_$ac_useropt"
1198"*) ;;
1199      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200	 ac_unrecognized_sep=', ';;
1201    esac
1202    eval with_$ac_useropt=no ;;
1203
1204  --x)
1205    # Obsolete; use --with-x.
1206    with_x=yes ;;
1207
1208  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1209  | --x-incl | --x-inc | --x-in | --x-i)
1210    ac_prev=x_includes ;;
1211  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1212  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1213    x_includes=$ac_optarg ;;
1214
1215  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1216  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217    ac_prev=x_libraries ;;
1218  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1220    x_libraries=$ac_optarg ;;
1221
1222  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1223Try \`$0 --help' for more information." >&2
1224   { (exit 1); exit 1; }; }
1225    ;;
1226
1227  *=*)
1228    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229    # Reject names that are not valid shell variable names.
1230    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1231      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1232   { (exit 1); exit 1; }; }
1233    eval $ac_envvar=\$ac_optarg
1234    export $ac_envvar ;;
1235
1236  *)
1237    # FIXME: should be removed in autoconf 3.0.
1238    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1239    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1241    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1242    ;;
1243
1244  esac
1245done
1246
1247if test -n "$ac_prev"; then
1248  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1249  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1250   { (exit 1); exit 1; }; }
1251fi
1252
1253if test -n "$ac_unrecognized_opts"; then
1254  case $enable_option_checking in
1255    no) ;;
1256    fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1257   { (exit 1); exit 1; }; } ;;
1258    *)     $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1259  esac
1260fi
1261
1262# Check all directory arguments for consistency.
1263for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264		datadir sysconfdir sharedstatedir localstatedir includedir \
1265		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266		libdir localedir mandir
1267do
1268  eval ac_val=\$$ac_var
1269  # Remove trailing slashes.
1270  case $ac_val in
1271    */ )
1272      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1273      eval $ac_var=\$ac_val;;
1274  esac
1275  # Be sure to have absolute directory names.
1276  case $ac_val in
1277    [\\/$]* | ?:[\\/]* )  continue;;
1278    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1279  esac
1280  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1281   { (exit 1); exit 1; }; }
1282done
1283
1284# There might be people who depend on the old broken behavior: `$host'
1285# used to hold the argument of --host etc.
1286# FIXME: To remove some day.
1287build=$build_alias
1288host=$host_alias
1289target=$target_alias
1290
1291# FIXME: To remove some day.
1292if test "x$host_alias" != x; then
1293  if test "x$build_alias" = x; then
1294    cross_compiling=maybe
1295    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1296    If a cross compiler is detected then cross compile mode will be used." >&2
1297  elif test "x$build_alias" != "x$host_alias"; then
1298    cross_compiling=yes
1299  fi
1300fi
1301
1302ac_tool_prefix=
1303test -n "$host_alias" && ac_tool_prefix=$host_alias-
1304
1305test "$silent" = yes && exec 6>/dev/null
1306
1307
1308ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309ac_ls_di=`ls -di .` &&
1310ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311  { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1312   { (exit 1); exit 1; }; }
1313test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1315   { (exit 1); exit 1; }; }
1316
1317
1318# Find the source files, if location was not specified.
1319if test -z "$srcdir"; then
1320  ac_srcdir_defaulted=yes
1321  # Try the directory containing this script, then the parent directory.
1322  ac_confdir=`$as_dirname -- "$as_myself" ||
1323$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1324	 X"$as_myself" : 'X\(//\)[^/]' \| \
1325	 X"$as_myself" : 'X\(//\)$' \| \
1326	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1327$as_echo X"$as_myself" |
1328    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1329	    s//\1/
1330	    q
1331	  }
1332	  /^X\(\/\/\)[^/].*/{
1333	    s//\1/
1334	    q
1335	  }
1336	  /^X\(\/\/\)$/{
1337	    s//\1/
1338	    q
1339	  }
1340	  /^X\(\/\).*/{
1341	    s//\1/
1342	    q
1343	  }
1344	  s/.*/./; q'`
1345  srcdir=$ac_confdir
1346  if test ! -r "$srcdir/$ac_unique_file"; then
1347    srcdir=..
1348  fi
1349else
1350  ac_srcdir_defaulted=no
1351fi
1352if test ! -r "$srcdir/$ac_unique_file"; then
1353  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1354  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1355   { (exit 1); exit 1; }; }
1356fi
1357ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358ac_abs_confdir=`(
1359	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1360   { (exit 1); exit 1; }; }
1361	pwd)`
1362# When building in place, set srcdir=.
1363if test "$ac_abs_confdir" = "$ac_pwd"; then
1364  srcdir=.
1365fi
1366# Remove unnecessary trailing slashes from srcdir.
1367# Double slashes in file names in object file debugging info
1368# mess up M-x gdb in Emacs.
1369case $srcdir in
1370*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371esac
1372for ac_var in $ac_precious_vars; do
1373  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374  eval ac_env_${ac_var}_value=\$${ac_var}
1375  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377done
1378
1379#
1380# Report the --help message.
1381#
1382if test "$ac_init_help" = "long"; then
1383  # Omit some internal or obsolete options to make the list less imposing.
1384  # This message is too long to be a string in the A/UX 3.1 sh.
1385  cat <<_ACEOF
1386\`configure' configures this package to adapt to many kinds of systems.
1387
1388Usage: $0 [OPTION]... [VAR=VALUE]...
1389
1390To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391VAR=VALUE.  See below for descriptions of some of the useful variables.
1392
1393Defaults for the options are specified in brackets.
1394
1395Configuration:
1396  -h, --help              display this help and exit
1397      --help=short        display options specific to this package
1398      --help=recursive    display the short help of all the included packages
1399  -V, --version           display version information and exit
1400  -q, --quiet, --silent   do not print \`checking...' messages
1401      --cache-file=FILE   cache test results in FILE [disabled]
1402  -C, --config-cache      alias for \`--cache-file=config.cache'
1403  -n, --no-create         do not create output files
1404      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1405
1406Installation directories:
1407  --prefix=PREFIX         install architecture-independent files in PREFIX
1408                          [$ac_default_prefix]
1409  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1410                          [PREFIX]
1411
1412By default, \`make install' will install all the files in
1413\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1414an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415for instance \`--prefix=\$HOME'.
1416
1417For better control, use the options below.
1418
1419Fine tuning of the installation directories:
1420  --bindir=DIR            user executables [EPREFIX/bin]
1421  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1422  --libexecdir=DIR        program executables [EPREFIX/libexec]
1423  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1424  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1425  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1426  --libdir=DIR            object code libraries [EPREFIX/lib]
1427  --includedir=DIR        C header files [PREFIX/include]
1428  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1429  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1430  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1431  --infodir=DIR           info documentation [DATAROOTDIR/info]
1432  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1433  --mandir=DIR            man documentation [DATAROOTDIR/man]
1434  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1435  --htmldir=DIR           html documentation [DOCDIR]
1436  --dvidir=DIR            dvi documentation [DOCDIR]
1437  --pdfdir=DIR            pdf documentation [DOCDIR]
1438  --psdir=DIR             ps documentation [DOCDIR]
1439_ACEOF
1440
1441  cat <<\_ACEOF
1442
1443X features:
1444  --x-includes=DIR    X include files are in DIR
1445  --x-libraries=DIR   X library files are in DIR
1446_ACEOF
1447fi
1448
1449if test -n "$ac_init_help"; then
1450
1451  cat <<\_ACEOF
1452
1453Optional Features:
1454  --disable-option-checking  ignore unrecognized --enable/--with options
1455  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1456  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1457  --disable-darwin        Disable Darwin (Mac OS X) support.
1458  --disable-selinux	  Don't check for SELinux support.
1459  --disable-xsmp          Disable XSMP session management
1460  --disable-xsmp-interact Disable XSMP interaction
1461  --enable-mzschemeinterp   Include MzScheme interpreter.
1462  --enable-perlinterp     Include Perl interpreter.
1463  --enable-pythoninterp   Include Python interpreter.
1464  --enable-tclinterp      Include Tcl interpreter.
1465  --enable-rubyinterp     Include Ruby interpreter.
1466  --enable-cscope         Include cscope interface.
1467  --enable-workshop       Include Sun Visual Workshop support.
1468  --disable-netbeans      Disable NetBeans integration support.
1469  --enable-sniff          Include Sniff interface.
1470  --enable-multibyte      Include multibyte editing support.
1471  --enable-hangulinput    Include Hangul input support.
1472  --enable-xim            Include XIM input support.
1473  --enable-fontset        Include X fontset output support.
1474  --enable-gui=OPTS     X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon
1475  --enable-gtk-check      If auto-select GUI, check for GTK default=yes
1476  --enable-gtk2-check     If GTK GUI, check for GTK+ 2 default=yes
1477  --enable-gnome-check    If GTK GUI, check for GNOME default=no
1478  --enable-motif-check    If auto-select GUI, check for Motif default=yes
1479  --enable-athena-check   If auto-select GUI, check for Athena default=yes
1480  --enable-nextaw-check   If auto-select GUI, check for neXtaw default=yes
1481  --enable-carbon-check   If auto-select GUI, check for Carbon default=yes
1482  --disable-gtktest       Do not try to compile and run a test GTK program
1483  --disable-acl           Don't check for ACL support.
1484  --disable-gpm           Don't use gpm (Linux mouse daemon).
1485  --disable-sysmouse    Don't use sysmouse (mouse in *BSD console).
1486  --disable-nls           Don't support NLS (gettext()).
1487
1488Optional Packages:
1489  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1490  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1491  --with-mac-arch=ARCH    current, intel, ppc or both
1492  --with-local-dir=PATH   search PATH instead of /usr/local for local libraries.
1493  --without-local-dir     do not search /usr/local for local libraries.
1494  --with-vim-name=NAME    what to call the Vim executable
1495  --with-ex-name=NAME     what to call the Ex executable
1496  --with-view-name=NAME   what to call the View executable
1497  --with-global-runtime=DIR    global runtime directory in 'runtimepath'
1498  --with-modified-by=NAME       name of who modified a release version
1499  --with-features=TYPE    tiny, small, normal, big or huge (default: normal)
1500  --with-compiledby=NAME  name to show in :version message
1501  --with-plthome=PLTHOME   Use PLTHOME.
1502  --with-python-config-dir=PATH  Python's config directory
1503  --with-tclsh=PATH       which tclsh to use (default: tclsh8.0)
1504  --with-x                use the X Window System
1505  --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1506  --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1507  --with-gnome-includes=DIR Specify location of GNOME headers
1508  --with-gnome-libs=DIR   Specify location of GNOME libs
1509  --with-gnome            Specify prefix for GNOME files
1510  --with-motif-lib=STRING   Library for Motif
1511  --with-tlib=library     terminal library to be used
1512
1513Some influential environment variables:
1514  CC          C compiler command
1515  CFLAGS      C compiler flags
1516  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1517              nonstandard directory <lib dir>
1518  LIBS        libraries to pass to the linker, e.g. -l<library>
1519  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1520              you have headers in a nonstandard directory <include dir>
1521  CPP         C preprocessor
1522  XMKMF       Path to xmkmf, Makefile generator for X Window System
1523
1524Use these variables to override the choices made by `configure' or to help
1525it to find libraries and programs with nonstandard names/locations.
1526
1527_ACEOF
1528ac_status=$?
1529fi
1530
1531if test "$ac_init_help" = "recursive"; then
1532  # If there are subdirs, report their specific --help.
1533  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1534    test -d "$ac_dir" ||
1535      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1536      continue
1537    ac_builddir=.
1538
1539case "$ac_dir" in
1540.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541*)
1542  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1543  # A ".." for each directory in $ac_dir_suffix.
1544  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1545  case $ac_top_builddir_sub in
1546  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1548  esac ;;
1549esac
1550ac_abs_top_builddir=$ac_pwd
1551ac_abs_builddir=$ac_pwd$ac_dir_suffix
1552# for backward compatibility:
1553ac_top_builddir=$ac_top_build_prefix
1554
1555case $srcdir in
1556  .)  # We are building in place.
1557    ac_srcdir=.
1558    ac_top_srcdir=$ac_top_builddir_sub
1559    ac_abs_top_srcdir=$ac_pwd ;;
1560  [\\/]* | ?:[\\/]* )  # Absolute name.
1561    ac_srcdir=$srcdir$ac_dir_suffix;
1562    ac_top_srcdir=$srcdir
1563    ac_abs_top_srcdir=$srcdir ;;
1564  *) # Relative name.
1565    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1566    ac_top_srcdir=$ac_top_build_prefix$srcdir
1567    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1568esac
1569ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1570
1571    cd "$ac_dir" || { ac_status=$?; continue; }
1572    # Check for guested configure.
1573    if test -f "$ac_srcdir/configure.gnu"; then
1574      echo &&
1575      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1576    elif test -f "$ac_srcdir/configure"; then
1577      echo &&
1578      $SHELL "$ac_srcdir/configure" --help=recursive
1579    else
1580      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1581    fi || ac_status=$?
1582    cd "$ac_pwd" || { ac_status=$?; break; }
1583  done
1584fi
1585
1586test -n "$ac_init_help" && exit $ac_status
1587if $ac_init_version; then
1588  cat <<\_ACEOF
1589configure
1590generated by GNU Autoconf 2.62
1591
1592Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15932002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1594This configure script is free software; the Free Software Foundation
1595gives unlimited permission to copy, distribute and modify it.
1596_ACEOF
1597  exit
1598fi
1599cat >auto/config.log <<_ACEOF
1600This file contains any messages produced by compilers while
1601running configure, to aid debugging if configure makes a mistake.
1602
1603It was created by $as_me, which was
1604generated by GNU Autoconf 2.62.  Invocation command line was
1605
1606  $ $0 $@
1607
1608_ACEOF
1609exec 5>>auto/config.log
1610{
1611cat <<_ASUNAME
1612## --------- ##
1613## Platform. ##
1614## --------- ##
1615
1616hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1617uname -m = `(uname -m) 2>/dev/null || echo unknown`
1618uname -r = `(uname -r) 2>/dev/null || echo unknown`
1619uname -s = `(uname -s) 2>/dev/null || echo unknown`
1620uname -v = `(uname -v) 2>/dev/null || echo unknown`
1621
1622/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1623/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1624
1625/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1626/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1627/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1628/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1629/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1630/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1631/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1632
1633_ASUNAME
1634
1635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636for as_dir in $PATH
1637do
1638  IFS=$as_save_IFS
1639  test -z "$as_dir" && as_dir=.
1640  $as_echo "PATH: $as_dir"
1641done
1642IFS=$as_save_IFS
1643
1644} >&5
1645
1646cat >&5 <<_ACEOF
1647
1648
1649## ----------- ##
1650## Core tests. ##
1651## ----------- ##
1652
1653_ACEOF
1654
1655
1656# Keep a trace of the command line.
1657# Strip out --no-create and --no-recursion so they do not pile up.
1658# Strip out --silent because we don't want to record it for future runs.
1659# Also quote any args containing shell meta-characters.
1660# Make two passes to allow for proper duplicate-argument suppression.
1661ac_configure_args=
1662ac_configure_args0=
1663ac_configure_args1=
1664ac_must_keep_next=false
1665for ac_pass in 1 2
1666do
1667  for ac_arg
1668  do
1669    case $ac_arg in
1670    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1671    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1672    | -silent | --silent | --silen | --sile | --sil)
1673      continue ;;
1674    *\'*)
1675      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1676    esac
1677    case $ac_pass in
1678    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1679    2)
1680      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1681      if test $ac_must_keep_next = true; then
1682	ac_must_keep_next=false # Got value, back to normal.
1683      else
1684	case $ac_arg in
1685	  *=* | --config-cache | -C | -disable-* | --disable-* \
1686	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1687	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1688	  | -with-* | --with-* | -without-* | --without-* | --x)
1689	    case "$ac_configure_args0 " in
1690	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1691	    esac
1692	    ;;
1693	  -* ) ac_must_keep_next=true ;;
1694	esac
1695      fi
1696      ac_configure_args="$ac_configure_args '$ac_arg'"
1697      ;;
1698    esac
1699  done
1700done
1701$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1702$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1703
1704# When interrupted or exit'd, cleanup temporary files, and complete
1705# config.log.  We remove comments because anyway the quotes in there
1706# would cause problems or look ugly.
1707# WARNING: Use '\'' to represent an apostrophe within the trap.
1708# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1709trap 'exit_status=$?
1710  # Save into config.log some information that might help in debugging.
1711  {
1712    echo
1713
1714    cat <<\_ASBOX
1715## ---------------- ##
1716## Cache variables. ##
1717## ---------------- ##
1718_ASBOX
1719    echo
1720    # The following way of writing the cache mishandles newlines in values,
1721(
1722  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1723    eval ac_val=\$$ac_var
1724    case $ac_val in #(
1725    *${as_nl}*)
1726      case $ac_var in #(
1727      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1728$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1729      esac
1730      case $ac_var in #(
1731      _ | IFS | as_nl) ;; #(
1732      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1733      *) $as_unset $ac_var ;;
1734      esac ;;
1735    esac
1736  done
1737  (set) 2>&1 |
1738    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1739    *${as_nl}ac_space=\ *)
1740      sed -n \
1741	"s/'\''/'\''\\\\'\'''\''/g;
1742	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1743      ;; #(
1744    *)
1745      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1746      ;;
1747    esac |
1748    sort
1749)
1750    echo
1751
1752    cat <<\_ASBOX
1753## ----------------- ##
1754## Output variables. ##
1755## ----------------- ##
1756_ASBOX
1757    echo
1758    for ac_var in $ac_subst_vars
1759    do
1760      eval ac_val=\$$ac_var
1761      case $ac_val in
1762      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1763      esac
1764      $as_echo "$ac_var='\''$ac_val'\''"
1765    done | sort
1766    echo
1767
1768    if test -n "$ac_subst_files"; then
1769      cat <<\_ASBOX
1770## ------------------- ##
1771## File substitutions. ##
1772## ------------------- ##
1773_ASBOX
1774      echo
1775      for ac_var in $ac_subst_files
1776      do
1777	eval ac_val=\$$ac_var
1778	case $ac_val in
1779	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1780	esac
1781	$as_echo "$ac_var='\''$ac_val'\''"
1782      done | sort
1783      echo
1784    fi
1785
1786    if test -s confdefs.h; then
1787      cat <<\_ASBOX
1788## ----------- ##
1789## confdefs.h. ##
1790## ----------- ##
1791_ASBOX
1792      echo
1793      cat confdefs.h
1794      echo
1795    fi
1796    test "$ac_signal" != 0 &&
1797      $as_echo "$as_me: caught signal $ac_signal"
1798    $as_echo "$as_me: exit $exit_status"
1799  } >&5
1800  rm -f core *.core core.conftest.* &&
1801    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1802    exit $exit_status
1803' 0
1804for ac_signal in 1 2 13 15; do
1805  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1806done
1807ac_signal=0
1808
1809# confdefs.h avoids OS command line length limits that DEFS can exceed.
1810rm -f -r conftest* confdefs.h
1811
1812# Predefined preprocessor variables.
1813
1814cat >>confdefs.h <<_ACEOF
1815#define PACKAGE_NAME "$PACKAGE_NAME"
1816_ACEOF
1817
1818
1819cat >>confdefs.h <<_ACEOF
1820#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1821_ACEOF
1822
1823
1824cat >>confdefs.h <<_ACEOF
1825#define PACKAGE_VERSION "$PACKAGE_VERSION"
1826_ACEOF
1827
1828
1829cat >>confdefs.h <<_ACEOF
1830#define PACKAGE_STRING "$PACKAGE_STRING"
1831_ACEOF
1832
1833
1834cat >>confdefs.h <<_ACEOF
1835#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1836_ACEOF
1837
1838
1839# Let the site file select an alternate cache file if it wants to.
1840# Prefer an explicitly selected file to automatically selected ones.
1841ac_site_file1=NONE
1842ac_site_file2=NONE
1843if test -n "$CONFIG_SITE"; then
1844  ac_site_file1=$CONFIG_SITE
1845elif test "x$prefix" != xNONE; then
1846  ac_site_file1=$prefix/share/config.site
1847  ac_site_file2=$prefix/etc/config.site
1848else
1849  ac_site_file1=$ac_default_prefix/share/config.site
1850  ac_site_file2=$ac_default_prefix/etc/config.site
1851fi
1852for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1853do
1854  test "x$ac_site_file" = xNONE && continue
1855  if test -r "$ac_site_file"; then
1856    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1857$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1858    sed 's/^/| /' "$ac_site_file" >&5
1859    . "$ac_site_file"
1860  fi
1861done
1862
1863if test -r "$cache_file"; then
1864  # Some versions of bash will fail to source /dev/null (special
1865  # files actually), so we avoid doing that.
1866  if test -f "$cache_file"; then
1867    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1868$as_echo "$as_me: loading cache $cache_file" >&6;}
1869    case $cache_file in
1870      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1871      *)                      . "./$cache_file";;
1872    esac
1873  fi
1874else
1875  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1876$as_echo "$as_me: creating cache $cache_file" >&6;}
1877  >$cache_file
1878fi
1879
1880# Check that the precious variables saved in the cache have kept the same
1881# value.
1882ac_cache_corrupted=false
1883for ac_var in $ac_precious_vars; do
1884  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1885  eval ac_new_set=\$ac_env_${ac_var}_set
1886  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1887  eval ac_new_val=\$ac_env_${ac_var}_value
1888  case $ac_old_set,$ac_new_set in
1889    set,)
1890      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1891$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1892      ac_cache_corrupted=: ;;
1893    ,set)
1894      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1895$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1896      ac_cache_corrupted=: ;;
1897    ,);;
1898    *)
1899      if test "x$ac_old_val" != "x$ac_new_val"; then
1900	# differences in whitespace do not lead to failure.
1901	ac_old_val_w=`echo x $ac_old_val`
1902	ac_new_val_w=`echo x $ac_new_val`
1903	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1904	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1905$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1906	  ac_cache_corrupted=:
1907	else
1908	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1909$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1910	  eval $ac_var=\$ac_old_val
1911	fi
1912	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1913$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1914	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1915$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1916      fi;;
1917  esac
1918  # Pass precious variables to config.status.
1919  if test "$ac_new_set" = set; then
1920    case $ac_new_val in
1921    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1922    *) ac_arg=$ac_var=$ac_new_val ;;
1923    esac
1924    case " $ac_configure_args " in
1925      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1926      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1927    esac
1928  fi
1929done
1930if $ac_cache_corrupted; then
1931  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1932$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1933  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1934$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1935   { (exit 1); exit 1; }; }
1936fi
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954ac_ext=c
1955ac_cpp='$CPP $CPPFLAGS'
1956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1958ac_compiler_gnu=$ac_cv_c_compiler_gnu
1959
1960
1961ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
1962
1963
1964cat >>confdefs.h <<\_ACEOF
1965#define UNIX 1
1966_ACEOF
1967
1968{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1969$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
1970set x ${MAKE-make}
1971ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1972if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1973  $as_echo_n "(cached) " >&6
1974else
1975  cat >conftest.make <<\_ACEOF
1976SHELL = /bin/sh
1977all:
1978	@echo '@@@%%%=$(MAKE)=@@@%%%'
1979_ACEOF
1980# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1981case `${MAKE-make} -f conftest.make 2>/dev/null` in
1982  *@@@%%%=?*=@@@%%%*)
1983    eval ac_cv_prog_make_${ac_make}_set=yes;;
1984  *)
1985    eval ac_cv_prog_make_${ac_make}_set=no;;
1986esac
1987rm -f conftest.make
1988fi
1989if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1990  { $as_echo "$as_me:$LINENO: result: yes" >&5
1991$as_echo "yes" >&6; }
1992  SET_MAKE=
1993else
1994  { $as_echo "$as_me:$LINENO: result: no" >&5
1995$as_echo "no" >&6; }
1996  SET_MAKE="MAKE=${MAKE-make}"
1997fi
1998
1999
2000ac_ext=c
2001ac_cpp='$CPP $CPPFLAGS'
2002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004ac_compiler_gnu=$ac_cv_c_compiler_gnu
2005if test -n "$ac_tool_prefix"; then
2006  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2007set dummy ${ac_tool_prefix}gcc; ac_word=$2
2008{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2009$as_echo_n "checking for $ac_word... " >&6; }
2010if test "${ac_cv_prog_CC+set}" = set; then
2011  $as_echo_n "(cached) " >&6
2012else
2013  if test -n "$CC"; then
2014  ac_cv_prog_CC="$CC" # Let the user override the test.
2015else
2016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017for as_dir in $PATH
2018do
2019  IFS=$as_save_IFS
2020  test -z "$as_dir" && as_dir=.
2021  for ac_exec_ext in '' $ac_executable_extensions; do
2022  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2023    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2024    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025    break 2
2026  fi
2027done
2028done
2029IFS=$as_save_IFS
2030
2031fi
2032fi
2033CC=$ac_cv_prog_CC
2034if test -n "$CC"; then
2035  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2036$as_echo "$CC" >&6; }
2037else
2038  { $as_echo "$as_me:$LINENO: result: no" >&5
2039$as_echo "no" >&6; }
2040fi
2041
2042
2043fi
2044if test -z "$ac_cv_prog_CC"; then
2045  ac_ct_CC=$CC
2046  # Extract the first word of "gcc", so it can be a program name with args.
2047set dummy gcc; ac_word=$2
2048{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2049$as_echo_n "checking for $ac_word... " >&6; }
2050if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2051  $as_echo_n "(cached) " >&6
2052else
2053  if test -n "$ac_ct_CC"; then
2054  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2055else
2056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057for as_dir in $PATH
2058do
2059  IFS=$as_save_IFS
2060  test -z "$as_dir" && as_dir=.
2061  for ac_exec_ext in '' $ac_executable_extensions; do
2062  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2063    ac_cv_prog_ac_ct_CC="gcc"
2064    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065    break 2
2066  fi
2067done
2068done
2069IFS=$as_save_IFS
2070
2071fi
2072fi
2073ac_ct_CC=$ac_cv_prog_ac_ct_CC
2074if test -n "$ac_ct_CC"; then
2075  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2076$as_echo "$ac_ct_CC" >&6; }
2077else
2078  { $as_echo "$as_me:$LINENO: result: no" >&5
2079$as_echo "no" >&6; }
2080fi
2081
2082  if test "x$ac_ct_CC" = x; then
2083    CC=""
2084  else
2085    case $cross_compiling:$ac_tool_warned in
2086yes:)
2087{ $as_echo "$as_me:$LINENO: 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." >&5
2090$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2091whose name does not start with the host triplet.  If you think this
2092configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2093ac_tool_warned=yes ;;
2094esac
2095    CC=$ac_ct_CC
2096  fi
2097else
2098  CC="$ac_cv_prog_CC"
2099fi
2100
2101if test -z "$CC"; then
2102          if test -n "$ac_tool_prefix"; then
2103    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2104set dummy ${ac_tool_prefix}cc; ac_word=$2
2105{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2106$as_echo_n "checking for $ac_word... " >&6; }
2107if test "${ac_cv_prog_CC+set}" = set; then
2108  $as_echo_n "(cached) " >&6
2109else
2110  if test -n "$CC"; then
2111  ac_cv_prog_CC="$CC" # Let the user override the test.
2112else
2113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114for as_dir in $PATH
2115do
2116  IFS=$as_save_IFS
2117  test -z "$as_dir" && as_dir=.
2118  for ac_exec_ext in '' $ac_executable_extensions; do
2119  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2120    ac_cv_prog_CC="${ac_tool_prefix}cc"
2121    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2122    break 2
2123  fi
2124done
2125done
2126IFS=$as_save_IFS
2127
2128fi
2129fi
2130CC=$ac_cv_prog_CC
2131if test -n "$CC"; then
2132  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2133$as_echo "$CC" >&6; }
2134else
2135  { $as_echo "$as_me:$LINENO: result: no" >&5
2136$as_echo "no" >&6; }
2137fi
2138
2139
2140  fi
2141fi
2142if test -z "$CC"; then
2143  # Extract the first word of "cc", so it can be a program name with args.
2144set dummy cc; ac_word=$2
2145{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2146$as_echo_n "checking for $ac_word... " >&6; }
2147if test "${ac_cv_prog_CC+set}" = set; then
2148  $as_echo_n "(cached) " >&6
2149else
2150  if test -n "$CC"; then
2151  ac_cv_prog_CC="$CC" # Let the user override the test.
2152else
2153  ac_prog_rejected=no
2154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155for as_dir in $PATH
2156do
2157  IFS=$as_save_IFS
2158  test -z "$as_dir" && as_dir=.
2159  for ac_exec_ext in '' $ac_executable_extensions; do
2160  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2161    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2162       ac_prog_rejected=yes
2163       continue
2164     fi
2165    ac_cv_prog_CC="cc"
2166    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2167    break 2
2168  fi
2169done
2170done
2171IFS=$as_save_IFS
2172
2173if test $ac_prog_rejected = yes; then
2174  # We found a bogon in the path, so make sure we never use it.
2175  set dummy $ac_cv_prog_CC
2176  shift
2177  if test $# != 0; then
2178    # We chose a different compiler from the bogus one.
2179    # However, it has the same basename, so the bogon will be chosen
2180    # first if we set CC to just the basename; use the full file name.
2181    shift
2182    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2183  fi
2184fi
2185fi
2186fi
2187CC=$ac_cv_prog_CC
2188if test -n "$CC"; then
2189  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2190$as_echo "$CC" >&6; }
2191else
2192  { $as_echo "$as_me:$LINENO: result: no" >&5
2193$as_echo "no" >&6; }
2194fi
2195
2196
2197fi
2198if test -z "$CC"; then
2199  if test -n "$ac_tool_prefix"; then
2200  for ac_prog in cl.exe
2201  do
2202    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2203set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2204{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2205$as_echo_n "checking for $ac_word... " >&6; }
2206if test "${ac_cv_prog_CC+set}" = set; then
2207  $as_echo_n "(cached) " >&6
2208else
2209  if test -n "$CC"; then
2210  ac_cv_prog_CC="$CC" # Let the user override the test.
2211else
2212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213for as_dir in $PATH
2214do
2215  IFS=$as_save_IFS
2216  test -z "$as_dir" && as_dir=.
2217  for ac_exec_ext in '' $ac_executable_extensions; do
2218  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2219    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2220    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2221    break 2
2222  fi
2223done
2224done
2225IFS=$as_save_IFS
2226
2227fi
2228fi
2229CC=$ac_cv_prog_CC
2230if test -n "$CC"; then
2231  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2232$as_echo "$CC" >&6; }
2233else
2234  { $as_echo "$as_me:$LINENO: result: no" >&5
2235$as_echo "no" >&6; }
2236fi
2237
2238
2239    test -n "$CC" && break
2240  done
2241fi
2242if test -z "$CC"; then
2243  ac_ct_CC=$CC
2244  for ac_prog in cl.exe
2245do
2246  # Extract the first word of "$ac_prog", so it can be a program name with args.
2247set dummy $ac_prog; ac_word=$2
2248{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2249$as_echo_n "checking for $ac_word... " >&6; }
2250if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2251  $as_echo_n "(cached) " >&6
2252else
2253  if test -n "$ac_ct_CC"; then
2254  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2255else
2256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257for as_dir in $PATH
2258do
2259  IFS=$as_save_IFS
2260  test -z "$as_dir" && as_dir=.
2261  for ac_exec_ext in '' $ac_executable_extensions; do
2262  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2263    ac_cv_prog_ac_ct_CC="$ac_prog"
2264    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2265    break 2
2266  fi
2267done
2268done
2269IFS=$as_save_IFS
2270
2271fi
2272fi
2273ac_ct_CC=$ac_cv_prog_ac_ct_CC
2274if test -n "$ac_ct_CC"; then
2275  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2276$as_echo "$ac_ct_CC" >&6; }
2277else
2278  { $as_echo "$as_me:$LINENO: result: no" >&5
2279$as_echo "no" >&6; }
2280fi
2281
2282
2283  test -n "$ac_ct_CC" && break
2284done
2285
2286  if test "x$ac_ct_CC" = x; then
2287    CC=""
2288  else
2289    case $cross_compiling:$ac_tool_warned in
2290yes:)
2291{ $as_echo "$as_me:$LINENO: 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." >&5
2294$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2295whose name does not start with the host triplet.  If you think this
2296configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2297ac_tool_warned=yes ;;
2298esac
2299    CC=$ac_ct_CC
2300  fi
2301fi
2302
2303fi
2304
2305
2306test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2307See \`config.log' for more details." >&5
2308$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2309See \`config.log' for more details." >&2;}
2310   { (exit 1); exit 1; }; }
2311
2312# Provide some information about the compiler.
2313$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2314set X $ac_compile
2315ac_compiler=$2
2316{ (ac_try="$ac_compiler --version >&5"
2317case "(($ac_try" in
2318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2319  *) ac_try_echo=$ac_try;;
2320esac
2321eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2322$as_echo "$ac_try_echo") >&5
2323  (eval "$ac_compiler --version >&5") 2>&5
2324  ac_status=$?
2325  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326  (exit $ac_status); }
2327{ (ac_try="$ac_compiler -v >&5"
2328case "(($ac_try" in
2329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2330  *) ac_try_echo=$ac_try;;
2331esac
2332eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2333$as_echo "$ac_try_echo") >&5
2334  (eval "$ac_compiler -v >&5") 2>&5
2335  ac_status=$?
2336  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337  (exit $ac_status); }
2338{ (ac_try="$ac_compiler -V >&5"
2339case "(($ac_try" in
2340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341  *) ac_try_echo=$ac_try;;
2342esac
2343eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2344$as_echo "$ac_try_echo") >&5
2345  (eval "$ac_compiler -V >&5") 2>&5
2346  ac_status=$?
2347  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348  (exit $ac_status); }
2349
2350cat >conftest.$ac_ext <<_ACEOF
2351/* confdefs.h.  */
2352_ACEOF
2353cat confdefs.h >>conftest.$ac_ext
2354cat >>conftest.$ac_ext <<_ACEOF
2355/* end confdefs.h.  */
2356
2357int
2358main ()
2359{
2360
2361  ;
2362  return 0;
2363}
2364_ACEOF
2365ac_clean_files_save=$ac_clean_files
2366ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2367# Try to create an executable without -o first, disregard a.out.
2368# It will help us diagnose broken compilers, and finding out an intuition
2369# of exeext.
2370{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2371$as_echo_n "checking for C compiler default output file name... " >&6; }
2372ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2373
2374# The possible output files:
2375ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2376
2377ac_rmfiles=
2378for ac_file in $ac_files
2379do
2380  case $ac_file in
2381    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2382    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2383  esac
2384done
2385rm -f $ac_rmfiles
2386
2387if { (ac_try="$ac_link_default"
2388case "(($ac_try" in
2389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390  *) ac_try_echo=$ac_try;;
2391esac
2392eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2393$as_echo "$ac_try_echo") >&5
2394  (eval "$ac_link_default") 2>&5
2395  ac_status=$?
2396  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397  (exit $ac_status); }; then
2398  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2399# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2400# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2401# so that the user can short-circuit this test for compilers unknown to
2402# Autoconf.
2403for ac_file in $ac_files ''
2404do
2405  test -f "$ac_file" || continue
2406  case $ac_file in
2407    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2408	;;
2409    [ab].out )
2410	# We found the default executable, but exeext='' is most
2411	# certainly right.
2412	break;;
2413    *.* )
2414        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2415	then :; else
2416	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2417	fi
2418	# We set ac_cv_exeext here because the later test for it is not
2419	# safe: cross compilers may not add the suffix if given an `-o'
2420	# argument, so we may need to know it at that point already.
2421	# Even if this section looks crufty: it has the advantage of
2422	# actually working.
2423	break;;
2424    * )
2425	break;;
2426  esac
2427done
2428test "$ac_cv_exeext" = no && ac_cv_exeext=
2429
2430else
2431  ac_file=''
2432fi
2433
2434{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2435$as_echo "$ac_file" >&6; }
2436if test -z "$ac_file"; then
2437  $as_echo "$as_me: failed program was:" >&5
2438sed 's/^/| /' conftest.$ac_ext >&5
2439
2440{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2441See \`config.log' for more details." >&5
2442$as_echo "$as_me: error: C compiler cannot create executables
2443See \`config.log' for more details." >&2;}
2444   { (exit 77); exit 77; }; }
2445fi
2446
2447ac_exeext=$ac_cv_exeext
2448
2449# Check that the compiler produces executables we can run.  If not, either
2450# the compiler is broken, or we cross compile.
2451{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2452$as_echo_n "checking whether the C compiler works... " >&6; }
2453# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2454# If not cross compiling, check that we can run a simple program.
2455if test "$cross_compiling" != yes; then
2456  if { ac_try='./$ac_file'
2457  { (case "(($ac_try" in
2458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459  *) ac_try_echo=$ac_try;;
2460esac
2461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2462$as_echo "$ac_try_echo") >&5
2463  (eval "$ac_try") 2>&5
2464  ac_status=$?
2465  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466  (exit $ac_status); }; }; then
2467    cross_compiling=no
2468  else
2469    if test "$cross_compiling" = maybe; then
2470	cross_compiling=yes
2471    else
2472	{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2473If you meant to cross compile, use \`--host'.
2474See \`config.log' for more details." >&5
2475$as_echo "$as_me: error: cannot run C compiled programs.
2476If you meant to cross compile, use \`--host'.
2477See \`config.log' for more details." >&2;}
2478   { (exit 1); exit 1; }; }
2479    fi
2480  fi
2481fi
2482{ $as_echo "$as_me:$LINENO: result: yes" >&5
2483$as_echo "yes" >&6; }
2484
2485rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2486ac_clean_files=$ac_clean_files_save
2487# Check that the compiler produces executables we can run.  If not, either
2488# the compiler is broken, or we cross compile.
2489{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2490$as_echo_n "checking whether we are cross compiling... " >&6; }
2491{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2492$as_echo "$cross_compiling" >&6; }
2493
2494{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2495$as_echo_n "checking for suffix of executables... " >&6; }
2496if { (ac_try="$ac_link"
2497case "(($ac_try" in
2498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499  *) ac_try_echo=$ac_try;;
2500esac
2501eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2502$as_echo "$ac_try_echo") >&5
2503  (eval "$ac_link") 2>&5
2504  ac_status=$?
2505  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506  (exit $ac_status); }; then
2507  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2508# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2509# work properly (i.e., refer to `conftest.exe'), while it won't with
2510# `rm'.
2511for ac_file in conftest.exe conftest conftest.*; do
2512  test -f "$ac_file" || continue
2513  case $ac_file in
2514    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2515    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2516	  break;;
2517    * ) break;;
2518  esac
2519done
2520else
2521  { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2522See \`config.log' for more details." >&5
2523$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2524See \`config.log' for more details." >&2;}
2525   { (exit 1); exit 1; }; }
2526fi
2527
2528rm -f conftest$ac_cv_exeext
2529{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2530$as_echo "$ac_cv_exeext" >&6; }
2531
2532rm -f conftest.$ac_ext
2533EXEEXT=$ac_cv_exeext
2534ac_exeext=$EXEEXT
2535{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2536$as_echo_n "checking for suffix of object files... " >&6; }
2537if test "${ac_cv_objext+set}" = set; then
2538  $as_echo_n "(cached) " >&6
2539else
2540  cat >conftest.$ac_ext <<_ACEOF
2541/* confdefs.h.  */
2542_ACEOF
2543cat confdefs.h >>conftest.$ac_ext
2544cat >>conftest.$ac_ext <<_ACEOF
2545/* end confdefs.h.  */
2546
2547int
2548main ()
2549{
2550
2551  ;
2552  return 0;
2553}
2554_ACEOF
2555rm -f conftest.o conftest.obj
2556if { (ac_try="$ac_compile"
2557case "(($ac_try" in
2558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559  *) ac_try_echo=$ac_try;;
2560esac
2561eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2562$as_echo "$ac_try_echo") >&5
2563  (eval "$ac_compile") 2>&5
2564  ac_status=$?
2565  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566  (exit $ac_status); }; then
2567  for ac_file in conftest.o conftest.obj conftest.*; do
2568  test -f "$ac_file" || continue;
2569  case $ac_file in
2570    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2571    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2572       break;;
2573  esac
2574done
2575else
2576  $as_echo "$as_me: failed program was:" >&5
2577sed 's/^/| /' conftest.$ac_ext >&5
2578
2579{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2580See \`config.log' for more details." >&5
2581$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2582See \`config.log' for more details." >&2;}
2583   { (exit 1); exit 1; }; }
2584fi
2585
2586rm -f conftest.$ac_cv_objext conftest.$ac_ext
2587fi
2588{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2589$as_echo "$ac_cv_objext" >&6; }
2590OBJEXT=$ac_cv_objext
2591ac_objext=$OBJEXT
2592{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2593$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2594if test "${ac_cv_c_compiler_gnu+set}" = set; then
2595  $as_echo_n "(cached) " >&6
2596else
2597  cat >conftest.$ac_ext <<_ACEOF
2598/* confdefs.h.  */
2599_ACEOF
2600cat confdefs.h >>conftest.$ac_ext
2601cat >>conftest.$ac_ext <<_ACEOF
2602/* end confdefs.h.  */
2603
2604int
2605main ()
2606{
2607#ifndef __GNUC__
2608       choke me
2609#endif
2610
2611  ;
2612  return 0;
2613}
2614_ACEOF
2615rm -f conftest.$ac_objext
2616if { (ac_try="$ac_compile"
2617case "(($ac_try" in
2618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619  *) ac_try_echo=$ac_try;;
2620esac
2621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2622$as_echo "$ac_try_echo") >&5
2623  (eval "$ac_compile") 2>conftest.er1
2624  ac_status=$?
2625  grep -v '^ *+' conftest.er1 >conftest.err
2626  rm -f conftest.er1
2627  cat conftest.err >&5
2628  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629  (exit $ac_status); } && {
2630	 test -z "$ac_c_werror_flag" ||
2631	 test ! -s conftest.err
2632       } && test -s conftest.$ac_objext; then
2633  ac_compiler_gnu=yes
2634else
2635  $as_echo "$as_me: failed program was:" >&5
2636sed 's/^/| /' conftest.$ac_ext >&5
2637
2638	ac_compiler_gnu=no
2639fi
2640
2641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2642ac_cv_c_compiler_gnu=$ac_compiler_gnu
2643
2644fi
2645{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2646$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2647if test $ac_compiler_gnu = yes; then
2648  GCC=yes
2649else
2650  GCC=
2651fi
2652ac_test_CFLAGS=${CFLAGS+set}
2653ac_save_CFLAGS=$CFLAGS
2654{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2655$as_echo_n "checking whether $CC accepts -g... " >&6; }
2656if test "${ac_cv_prog_cc_g+set}" = set; then
2657  $as_echo_n "(cached) " >&6
2658else
2659  ac_save_c_werror_flag=$ac_c_werror_flag
2660   ac_c_werror_flag=yes
2661   ac_cv_prog_cc_g=no
2662   CFLAGS="-g"
2663   cat >conftest.$ac_ext <<_ACEOF
2664/* confdefs.h.  */
2665_ACEOF
2666cat confdefs.h >>conftest.$ac_ext
2667cat >>conftest.$ac_ext <<_ACEOF
2668/* end confdefs.h.  */
2669
2670int
2671main ()
2672{
2673
2674  ;
2675  return 0;
2676}
2677_ACEOF
2678rm -f conftest.$ac_objext
2679if { (ac_try="$ac_compile"
2680case "(($ac_try" in
2681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682  *) ac_try_echo=$ac_try;;
2683esac
2684eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2685$as_echo "$ac_try_echo") >&5
2686  (eval "$ac_compile") 2>conftest.er1
2687  ac_status=$?
2688  grep -v '^ *+' conftest.er1 >conftest.err
2689  rm -f conftest.er1
2690  cat conftest.err >&5
2691  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692  (exit $ac_status); } && {
2693	 test -z "$ac_c_werror_flag" ||
2694	 test ! -s conftest.err
2695       } && test -s conftest.$ac_objext; then
2696  ac_cv_prog_cc_g=yes
2697else
2698  $as_echo "$as_me: failed program was:" >&5
2699sed 's/^/| /' conftest.$ac_ext >&5
2700
2701	CFLAGS=""
2702      cat >conftest.$ac_ext <<_ACEOF
2703/* confdefs.h.  */
2704_ACEOF
2705cat confdefs.h >>conftest.$ac_ext
2706cat >>conftest.$ac_ext <<_ACEOF
2707/* end confdefs.h.  */
2708
2709int
2710main ()
2711{
2712
2713  ;
2714  return 0;
2715}
2716_ACEOF
2717rm -f conftest.$ac_objext
2718if { (ac_try="$ac_compile"
2719case "(($ac_try" in
2720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721  *) ac_try_echo=$ac_try;;
2722esac
2723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2724$as_echo "$ac_try_echo") >&5
2725  (eval "$ac_compile") 2>conftest.er1
2726  ac_status=$?
2727  grep -v '^ *+' conftest.er1 >conftest.err
2728  rm -f conftest.er1
2729  cat conftest.err >&5
2730  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731  (exit $ac_status); } && {
2732	 test -z "$ac_c_werror_flag" ||
2733	 test ! -s conftest.err
2734       } && test -s conftest.$ac_objext; then
2735  :
2736else
2737  $as_echo "$as_me: failed program was:" >&5
2738sed 's/^/| /' conftest.$ac_ext >&5
2739
2740	ac_c_werror_flag=$ac_save_c_werror_flag
2741	 CFLAGS="-g"
2742	 cat >conftest.$ac_ext <<_ACEOF
2743/* confdefs.h.  */
2744_ACEOF
2745cat confdefs.h >>conftest.$ac_ext
2746cat >>conftest.$ac_ext <<_ACEOF
2747/* end confdefs.h.  */
2748
2749int
2750main ()
2751{
2752
2753  ;
2754  return 0;
2755}
2756_ACEOF
2757rm -f conftest.$ac_objext
2758if { (ac_try="$ac_compile"
2759case "(($ac_try" in
2760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761  *) ac_try_echo=$ac_try;;
2762esac
2763eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2764$as_echo "$ac_try_echo") >&5
2765  (eval "$ac_compile") 2>conftest.er1
2766  ac_status=$?
2767  grep -v '^ *+' conftest.er1 >conftest.err
2768  rm -f conftest.er1
2769  cat conftest.err >&5
2770  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771  (exit $ac_status); } && {
2772	 test -z "$ac_c_werror_flag" ||
2773	 test ! -s conftest.err
2774       } && test -s conftest.$ac_objext; then
2775  ac_cv_prog_cc_g=yes
2776else
2777  $as_echo "$as_me: failed program was:" >&5
2778sed 's/^/| /' conftest.$ac_ext >&5
2779
2780
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
2787fi
2788
2789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2790   ac_c_werror_flag=$ac_save_c_werror_flag
2791fi
2792{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2793$as_echo "$ac_cv_prog_cc_g" >&6; }
2794if test "$ac_test_CFLAGS" = set; then
2795  CFLAGS=$ac_save_CFLAGS
2796elif test $ac_cv_prog_cc_g = yes; then
2797  if test "$GCC" = yes; then
2798    CFLAGS="-g -O2"
2799  else
2800    CFLAGS="-g"
2801  fi
2802else
2803  if test "$GCC" = yes; then
2804    CFLAGS="-O2"
2805  else
2806    CFLAGS=
2807  fi
2808fi
2809{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2810$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2811if test "${ac_cv_prog_cc_c89+set}" = set; then
2812  $as_echo_n "(cached) " >&6
2813else
2814  ac_cv_prog_cc_c89=no
2815ac_save_CC=$CC
2816cat >conftest.$ac_ext <<_ACEOF
2817/* confdefs.h.  */
2818_ACEOF
2819cat confdefs.h >>conftest.$ac_ext
2820cat >>conftest.$ac_ext <<_ACEOF
2821/* end confdefs.h.  */
2822#include <stdarg.h>
2823#include <stdio.h>
2824#include <sys/types.h>
2825#include <sys/stat.h>
2826/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2827struct buf { int x; };
2828FILE * (*rcsopen) (struct buf *, struct stat *, int);
2829static char *e (p, i)
2830     char **p;
2831     int i;
2832{
2833  return p[i];
2834}
2835static char *f (char * (*g) (char **, int), char **p, ...)
2836{
2837  char *s;
2838  va_list v;
2839  va_start (v,p);
2840  s = g (p, va_arg (v,int));
2841  va_end (v);
2842  return s;
2843}
2844
2845/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2846   function prototypes and stuff, but not '\xHH' hex character constants.
2847   These don't provoke an error unfortunately, instead are silently treated
2848   as 'x'.  The following induces an error, until -std is added to get
2849   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2850   array size at least.  It's necessary to write '\x00'==0 to get something
2851   that's true only with -std.  */
2852int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2853
2854/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2855   inside strings and character constants.  */
2856#define FOO(x) 'x'
2857int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2858
2859int test (int i, double x);
2860struct s1 {int (*f) (int a);};
2861struct s2 {int (*f) (double a);};
2862int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2863int argc;
2864char **argv;
2865int
2866main ()
2867{
2868return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2869  ;
2870  return 0;
2871}
2872_ACEOF
2873for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2874	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2875do
2876  CC="$ac_save_CC $ac_arg"
2877  rm -f conftest.$ac_objext
2878if { (ac_try="$ac_compile"
2879case "(($ac_try" in
2880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881  *) ac_try_echo=$ac_try;;
2882esac
2883eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2884$as_echo "$ac_try_echo") >&5
2885  (eval "$ac_compile") 2>conftest.er1
2886  ac_status=$?
2887  grep -v '^ *+' conftest.er1 >conftest.err
2888  rm -f conftest.er1
2889  cat conftest.err >&5
2890  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891  (exit $ac_status); } && {
2892	 test -z "$ac_c_werror_flag" ||
2893	 test ! -s conftest.err
2894       } && test -s conftest.$ac_objext; then
2895  ac_cv_prog_cc_c89=$ac_arg
2896else
2897  $as_echo "$as_me: failed program was:" >&5
2898sed 's/^/| /' conftest.$ac_ext >&5
2899
2900
2901fi
2902
2903rm -f core conftest.err conftest.$ac_objext
2904  test "x$ac_cv_prog_cc_c89" != "xno" && break
2905done
2906rm -f conftest.$ac_ext
2907CC=$ac_save_CC
2908
2909fi
2910# AC_CACHE_VAL
2911case "x$ac_cv_prog_cc_c89" in
2912  x)
2913    { $as_echo "$as_me:$LINENO: result: none needed" >&5
2914$as_echo "none needed" >&6; } ;;
2915  xno)
2916    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2917$as_echo "unsupported" >&6; } ;;
2918  *)
2919    CC="$CC $ac_cv_prog_cc_c89"
2920    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2921$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2922esac
2923
2924
2925ac_ext=c
2926ac_cpp='$CPP $CPPFLAGS'
2927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2929ac_compiler_gnu=$ac_cv_c_compiler_gnu
2930	ac_ext=c
2931ac_cpp='$CPP $CPPFLAGS'
2932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2934ac_compiler_gnu=$ac_cv_c_compiler_gnu
2935{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2936$as_echo_n "checking how to run the C preprocessor... " >&6; }
2937# On Suns, sometimes $CPP names a directory.
2938if test -n "$CPP" && test -d "$CPP"; then
2939  CPP=
2940fi
2941if test -z "$CPP"; then
2942  if test "${ac_cv_prog_CPP+set}" = set; then
2943  $as_echo_n "(cached) " >&6
2944else
2945      # Double quotes because CPP needs to be expanded
2946    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2947    do
2948      ac_preproc_ok=false
2949for ac_c_preproc_warn_flag in '' yes
2950do
2951  # Use a header file that comes with gcc, so configuring glibc
2952  # with a fresh cross-compiler works.
2953  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2954  # <limits.h> exists even on freestanding compilers.
2955  # On the NeXT, cc -E runs the code through the compiler's parser,
2956  # not just through cpp. "Syntax error" is here to catch this case.
2957  cat >conftest.$ac_ext <<_ACEOF
2958/* confdefs.h.  */
2959_ACEOF
2960cat confdefs.h >>conftest.$ac_ext
2961cat >>conftest.$ac_ext <<_ACEOF
2962/* end confdefs.h.  */
2963#ifdef __STDC__
2964# include <limits.h>
2965#else
2966# include <assert.h>
2967#endif
2968		     Syntax error
2969_ACEOF
2970if { (ac_try="$ac_cpp conftest.$ac_ext"
2971case "(($ac_try" in
2972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973  *) ac_try_echo=$ac_try;;
2974esac
2975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2976$as_echo "$ac_try_echo") >&5
2977  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2978  ac_status=$?
2979  grep -v '^ *+' conftest.er1 >conftest.err
2980  rm -f conftest.er1
2981  cat conftest.err >&5
2982  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983  (exit $ac_status); } >/dev/null && {
2984	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2985	 test ! -s conftest.err
2986       }; then
2987  :
2988else
2989  $as_echo "$as_me: failed program was:" >&5
2990sed 's/^/| /' conftest.$ac_ext >&5
2991
2992  # Broken: fails on valid input.
2993continue
2994fi
2995
2996rm -f conftest.err conftest.$ac_ext
2997
2998  # OK, works on sane cases.  Now check whether nonexistent headers
2999  # can be detected and how.
3000  cat >conftest.$ac_ext <<_ACEOF
3001/* confdefs.h.  */
3002_ACEOF
3003cat confdefs.h >>conftest.$ac_ext
3004cat >>conftest.$ac_ext <<_ACEOF
3005/* end confdefs.h.  */
3006#include <ac_nonexistent.h>
3007_ACEOF
3008if { (ac_try="$ac_cpp conftest.$ac_ext"
3009case "(($ac_try" in
3010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011  *) ac_try_echo=$ac_try;;
3012esac
3013eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3014$as_echo "$ac_try_echo") >&5
3015  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3016  ac_status=$?
3017  grep -v '^ *+' conftest.er1 >conftest.err
3018  rm -f conftest.er1
3019  cat conftest.err >&5
3020  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021  (exit $ac_status); } >/dev/null && {
3022	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3023	 test ! -s conftest.err
3024       }; then
3025  # Broken: success on invalid input.
3026continue
3027else
3028  $as_echo "$as_me: failed program was:" >&5
3029sed 's/^/| /' conftest.$ac_ext >&5
3030
3031  # Passes both tests.
3032ac_preproc_ok=:
3033break
3034fi
3035
3036rm -f conftest.err conftest.$ac_ext
3037
3038done
3039# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3040rm -f conftest.err conftest.$ac_ext
3041if $ac_preproc_ok; then
3042  break
3043fi
3044
3045    done
3046    ac_cv_prog_CPP=$CPP
3047
3048fi
3049  CPP=$ac_cv_prog_CPP
3050else
3051  ac_cv_prog_CPP=$CPP
3052fi
3053{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3054$as_echo "$CPP" >&6; }
3055ac_preproc_ok=false
3056for ac_c_preproc_warn_flag in '' yes
3057do
3058  # Use a header file that comes with gcc, so configuring glibc
3059  # with a fresh cross-compiler works.
3060  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3061  # <limits.h> exists even on freestanding compilers.
3062  # On the NeXT, cc -E runs the code through the compiler's parser,
3063  # not just through cpp. "Syntax error" is here to catch this case.
3064  cat >conftest.$ac_ext <<_ACEOF
3065/* confdefs.h.  */
3066_ACEOF
3067cat confdefs.h >>conftest.$ac_ext
3068cat >>conftest.$ac_ext <<_ACEOF
3069/* end confdefs.h.  */
3070#ifdef __STDC__
3071# include <limits.h>
3072#else
3073# include <assert.h>
3074#endif
3075		     Syntax error
3076_ACEOF
3077if { (ac_try="$ac_cpp conftest.$ac_ext"
3078case "(($ac_try" in
3079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080  *) ac_try_echo=$ac_try;;
3081esac
3082eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3083$as_echo "$ac_try_echo") >&5
3084  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3085  ac_status=$?
3086  grep -v '^ *+' conftest.er1 >conftest.err
3087  rm -f conftest.er1
3088  cat conftest.err >&5
3089  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090  (exit $ac_status); } >/dev/null && {
3091	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3092	 test ! -s conftest.err
3093       }; then
3094  :
3095else
3096  $as_echo "$as_me: failed program was:" >&5
3097sed 's/^/| /' conftest.$ac_ext >&5
3098
3099  # Broken: fails on valid input.
3100continue
3101fi
3102
3103rm -f conftest.err conftest.$ac_ext
3104
3105  # OK, works on sane cases.  Now check whether nonexistent headers
3106  # can be detected and how.
3107  cat >conftest.$ac_ext <<_ACEOF
3108/* confdefs.h.  */
3109_ACEOF
3110cat confdefs.h >>conftest.$ac_ext
3111cat >>conftest.$ac_ext <<_ACEOF
3112/* end confdefs.h.  */
3113#include <ac_nonexistent.h>
3114_ACEOF
3115if { (ac_try="$ac_cpp conftest.$ac_ext"
3116case "(($ac_try" in
3117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118  *) ac_try_echo=$ac_try;;
3119esac
3120eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3121$as_echo "$ac_try_echo") >&5
3122  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3123  ac_status=$?
3124  grep -v '^ *+' conftest.er1 >conftest.err
3125  rm -f conftest.er1
3126  cat conftest.err >&5
3127  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128  (exit $ac_status); } >/dev/null && {
3129	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3130	 test ! -s conftest.err
3131       }; then
3132  # Broken: success on invalid input.
3133continue
3134else
3135  $as_echo "$as_me: failed program was:" >&5
3136sed 's/^/| /' conftest.$ac_ext >&5
3137
3138  # Passes both tests.
3139ac_preproc_ok=:
3140break
3141fi
3142
3143rm -f conftest.err conftest.$ac_ext
3144
3145done
3146# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3147rm -f conftest.err conftest.$ac_ext
3148if $ac_preproc_ok; then
3149  :
3150else
3151  { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3152See \`config.log' for more details." >&5
3153$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3154See \`config.log' for more details." >&2;}
3155   { (exit 1); exit 1; }; }
3156fi
3157
3158ac_ext=c
3159ac_cpp='$CPP $CPPFLAGS'
3160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3162ac_compiler_gnu=$ac_cv_c_compiler_gnu
3163
3164
3165{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3166$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3167if test "${ac_cv_path_GREP+set}" = set; then
3168  $as_echo_n "(cached) " >&6
3169else
3170  if test -z "$GREP"; then
3171  ac_path_GREP_found=false
3172  # Loop through the user's path and test for each of PROGNAME-LIST
3173  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3175do
3176  IFS=$as_save_IFS
3177  test -z "$as_dir" && as_dir=.
3178  for ac_prog in grep ggrep; do
3179    for ac_exec_ext in '' $ac_executable_extensions; do
3180      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3181      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3182# Check for GNU ac_path_GREP and select it if it is found.
3183  # Check for GNU $ac_path_GREP
3184case `"$ac_path_GREP" --version 2>&1` in
3185*GNU*)
3186  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3187*)
3188  ac_count=0
3189  $as_echo_n 0123456789 >"conftest.in"
3190  while :
3191  do
3192    cat "conftest.in" "conftest.in" >"conftest.tmp"
3193    mv "conftest.tmp" "conftest.in"
3194    cp "conftest.in" "conftest.nl"
3195    $as_echo 'GREP' >> "conftest.nl"
3196    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3197    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3198    ac_count=`expr $ac_count + 1`
3199    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3200      # Best one so far, save it but keep looking for a better one
3201      ac_cv_path_GREP="$ac_path_GREP"
3202      ac_path_GREP_max=$ac_count
3203    fi
3204    # 10*(2^10) chars as input seems more than enough
3205    test $ac_count -gt 10 && break
3206  done
3207  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3208esac
3209
3210      $ac_path_GREP_found && break 3
3211    done
3212  done
3213done
3214IFS=$as_save_IFS
3215  if test -z "$ac_cv_path_GREP"; then
3216    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3217$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3218   { (exit 1); exit 1; }; }
3219  fi
3220else
3221  ac_cv_path_GREP=$GREP
3222fi
3223
3224fi
3225{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3226$as_echo "$ac_cv_path_GREP" >&6; }
3227 GREP="$ac_cv_path_GREP"
3228
3229
3230{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3231$as_echo_n "checking for egrep... " >&6; }
3232if test "${ac_cv_path_EGREP+set}" = set; then
3233  $as_echo_n "(cached) " >&6
3234else
3235  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3236   then ac_cv_path_EGREP="$GREP -E"
3237   else
3238     if test -z "$EGREP"; then
3239  ac_path_EGREP_found=false
3240  # Loop through the user's path and test for each of PROGNAME-LIST
3241  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3243do
3244  IFS=$as_save_IFS
3245  test -z "$as_dir" && as_dir=.
3246  for ac_prog in egrep; do
3247    for ac_exec_ext in '' $ac_executable_extensions; do
3248      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3249      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3250# Check for GNU ac_path_EGREP and select it if it is found.
3251  # Check for GNU $ac_path_EGREP
3252case `"$ac_path_EGREP" --version 2>&1` in
3253*GNU*)
3254  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3255*)
3256  ac_count=0
3257  $as_echo_n 0123456789 >"conftest.in"
3258  while :
3259  do
3260    cat "conftest.in" "conftest.in" >"conftest.tmp"
3261    mv "conftest.tmp" "conftest.in"
3262    cp "conftest.in" "conftest.nl"
3263    $as_echo 'EGREP' >> "conftest.nl"
3264    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3265    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3266    ac_count=`expr $ac_count + 1`
3267    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3268      # Best one so far, save it but keep looking for a better one
3269      ac_cv_path_EGREP="$ac_path_EGREP"
3270      ac_path_EGREP_max=$ac_count
3271    fi
3272    # 10*(2^10) chars as input seems more than enough
3273    test $ac_count -gt 10 && break
3274  done
3275  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3276esac
3277
3278      $ac_path_EGREP_found && break 3
3279    done
3280  done
3281done
3282IFS=$as_save_IFS
3283  if test -z "$ac_cv_path_EGREP"; then
3284    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3285$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3286   { (exit 1); exit 1; }; }
3287  fi
3288else
3289  ac_cv_path_EGREP=$EGREP
3290fi
3291
3292   fi
3293fi
3294{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3295$as_echo "$ac_cv_path_EGREP" >&6; }
3296 EGREP="$ac_cv_path_EGREP"
3297
3298
3299cat >conftest.$ac_ext <<_ACEOF
3300/* confdefs.h.  */
3301_ACEOF
3302cat confdefs.h >>conftest.$ac_ext
3303cat >>conftest.$ac_ext <<_ACEOF
3304/* end confdefs.h.  */
3305
3306_ACEOF
3307rm -f conftest*
3308 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
3309$as_echo_n "checking for library containing strerror... " >&6; }
3310if test "${ac_cv_search_strerror+set}" = set; then
3311  $as_echo_n "(cached) " >&6
3312else
3313  ac_func_search_save_LIBS=$LIBS
3314cat >conftest.$ac_ext <<_ACEOF
3315/* confdefs.h.  */
3316_ACEOF
3317cat confdefs.h >>conftest.$ac_ext
3318cat >>conftest.$ac_ext <<_ACEOF
3319/* end confdefs.h.  */
3320
3321/* Override any GCC internal prototype to avoid an error.
3322   Use char because int might match the return type of a GCC
3323   builtin and then its argument prototype would still apply.  */
3324#ifdef __cplusplus
3325extern "C"
3326#endif
3327char strerror ();
3328int
3329main ()
3330{
3331return strerror ();
3332  ;
3333  return 0;
3334}
3335_ACEOF
3336for ac_lib in '' cposix; do
3337  if test -z "$ac_lib"; then
3338    ac_res="none required"
3339  else
3340    ac_res=-l$ac_lib
3341    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3342  fi
3343  rm -f conftest.$ac_objext conftest$ac_exeext
3344if { (ac_try="$ac_link"
3345case "(($ac_try" in
3346  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347  *) ac_try_echo=$ac_try;;
3348esac
3349eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3350$as_echo "$ac_try_echo") >&5
3351  (eval "$ac_link") 2>conftest.er1
3352  ac_status=$?
3353  grep -v '^ *+' conftest.er1 >conftest.err
3354  rm -f conftest.er1
3355  cat conftest.err >&5
3356  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357  (exit $ac_status); } && {
3358	 test -z "$ac_c_werror_flag" ||
3359	 test ! -s conftest.err
3360       } && test -s conftest$ac_exeext && {
3361	 test "$cross_compiling" = yes ||
3362	 $as_test_x conftest$ac_exeext
3363       }; then
3364  ac_cv_search_strerror=$ac_res
3365else
3366  $as_echo "$as_me: failed program was:" >&5
3367sed 's/^/| /' conftest.$ac_ext >&5
3368
3369
3370fi
3371
3372rm -rf conftest.dSYM
3373rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3374      conftest$ac_exeext
3375  if test "${ac_cv_search_strerror+set}" = set; then
3376  break
3377fi
3378done
3379if test "${ac_cv_search_strerror+set}" = set; then
3380  :
3381else
3382  ac_cv_search_strerror=no
3383fi
3384rm conftest.$ac_ext
3385LIBS=$ac_func_search_save_LIBS
3386fi
3387{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3388$as_echo "$ac_cv_search_strerror" >&6; }
3389ac_res=$ac_cv_search_strerror
3390if test "$ac_res" != no; then
3391  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3392
3393fi
3394	for ac_prog in gawk mawk nawk awk
3395do
3396  # Extract the first word of "$ac_prog", so it can be a program name with args.
3397set dummy $ac_prog; ac_word=$2
3398{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3399$as_echo_n "checking for $ac_word... " >&6; }
3400if test "${ac_cv_prog_AWK+set}" = set; then
3401  $as_echo_n "(cached) " >&6
3402else
3403  if test -n "$AWK"; then
3404  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3405else
3406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407for as_dir in $PATH
3408do
3409  IFS=$as_save_IFS
3410  test -z "$as_dir" && as_dir=.
3411  for ac_exec_ext in '' $ac_executable_extensions; do
3412  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3413    ac_cv_prog_AWK="$ac_prog"
3414    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3415    break 2
3416  fi
3417done
3418done
3419IFS=$as_save_IFS
3420
3421fi
3422fi
3423AWK=$ac_cv_prog_AWK
3424if test -n "$AWK"; then
3425  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3426$as_echo "$AWK" >&6; }
3427else
3428  { $as_echo "$as_me:$LINENO: result: no" >&5
3429$as_echo "no" >&6; }
3430fi
3431
3432
3433  test -n "$AWK" && break
3434done
3435
3436# Extract the first word of "strip", so it can be a program name with args.
3437set dummy strip; ac_word=$2
3438{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3439$as_echo_n "checking for $ac_word... " >&6; }
3440if test "${ac_cv_prog_STRIP+set}" = set; then
3441  $as_echo_n "(cached) " >&6
3442else
3443  if test -n "$STRIP"; then
3444  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3445else
3446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447for as_dir in $PATH
3448do
3449  IFS=$as_save_IFS
3450  test -z "$as_dir" && as_dir=.
3451  for ac_exec_ext in '' $ac_executable_extensions; do
3452  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3453    ac_cv_prog_STRIP="strip"
3454    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3455    break 2
3456  fi
3457done
3458done
3459IFS=$as_save_IFS
3460
3461  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3462fi
3463fi
3464STRIP=$ac_cv_prog_STRIP
3465if test -n "$STRIP"; then
3466  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3467$as_echo "$STRIP" >&6; }
3468else
3469  { $as_echo "$as_me:$LINENO: result: no" >&5
3470$as_echo "no" >&6; }
3471fi
3472
3473
3474
3475
3476
3477{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3478$as_echo_n "checking for ANSI C header files... " >&6; }
3479if test "${ac_cv_header_stdc+set}" = set; then
3480  $as_echo_n "(cached) " >&6
3481else
3482  cat >conftest.$ac_ext <<_ACEOF
3483/* confdefs.h.  */
3484_ACEOF
3485cat confdefs.h >>conftest.$ac_ext
3486cat >>conftest.$ac_ext <<_ACEOF
3487/* end confdefs.h.  */
3488#include <stdlib.h>
3489#include <stdarg.h>
3490#include <string.h>
3491#include <float.h>
3492
3493int
3494main ()
3495{
3496
3497  ;
3498  return 0;
3499}
3500_ACEOF
3501rm -f conftest.$ac_objext
3502if { (ac_try="$ac_compile"
3503case "(($ac_try" in
3504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505  *) ac_try_echo=$ac_try;;
3506esac
3507eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3508$as_echo "$ac_try_echo") >&5
3509  (eval "$ac_compile") 2>conftest.er1
3510  ac_status=$?
3511  grep -v '^ *+' conftest.er1 >conftest.err
3512  rm -f conftest.er1
3513  cat conftest.err >&5
3514  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515  (exit $ac_status); } && {
3516	 test -z "$ac_c_werror_flag" ||
3517	 test ! -s conftest.err
3518       } && test -s conftest.$ac_objext; then
3519  ac_cv_header_stdc=yes
3520else
3521  $as_echo "$as_me: failed program was:" >&5
3522sed 's/^/| /' conftest.$ac_ext >&5
3523
3524	ac_cv_header_stdc=no
3525fi
3526
3527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3528
3529if test $ac_cv_header_stdc = yes; then
3530  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3531  cat >conftest.$ac_ext <<_ACEOF
3532/* confdefs.h.  */
3533_ACEOF
3534cat confdefs.h >>conftest.$ac_ext
3535cat >>conftest.$ac_ext <<_ACEOF
3536/* end confdefs.h.  */
3537#include <string.h>
3538
3539_ACEOF
3540if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3541  $EGREP "memchr" >/dev/null 2>&1; then
3542  :
3543else
3544  ac_cv_header_stdc=no
3545fi
3546rm -f conftest*
3547
3548fi
3549
3550if test $ac_cv_header_stdc = yes; then
3551  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3552  cat >conftest.$ac_ext <<_ACEOF
3553/* confdefs.h.  */
3554_ACEOF
3555cat confdefs.h >>conftest.$ac_ext
3556cat >>conftest.$ac_ext <<_ACEOF
3557/* end confdefs.h.  */
3558#include <stdlib.h>
3559
3560_ACEOF
3561if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3562  $EGREP "free" >/dev/null 2>&1; then
3563  :
3564else
3565  ac_cv_header_stdc=no
3566fi
3567rm -f conftest*
3568
3569fi
3570
3571if test $ac_cv_header_stdc = yes; then
3572  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3573  if test "$cross_compiling" = yes; then
3574  :
3575else
3576  cat >conftest.$ac_ext <<_ACEOF
3577/* confdefs.h.  */
3578_ACEOF
3579cat confdefs.h >>conftest.$ac_ext
3580cat >>conftest.$ac_ext <<_ACEOF
3581/* end confdefs.h.  */
3582#include <ctype.h>
3583#include <stdlib.h>
3584#if ((' ' & 0x0FF) == 0x020)
3585# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3586# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3587#else
3588# define ISLOWER(c) \
3589		   (('a' <= (c) && (c) <= 'i') \
3590		     || ('j' <= (c) && (c) <= 'r') \
3591		     || ('s' <= (c) && (c) <= 'z'))
3592# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3593#endif
3594
3595#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3596int
3597main ()
3598{
3599  int i;
3600  for (i = 0; i < 256; i++)
3601    if (XOR (islower (i), ISLOWER (i))
3602	|| toupper (i) != TOUPPER (i))
3603      return 2;
3604  return 0;
3605}
3606_ACEOF
3607rm -f conftest$ac_exeext
3608if { (ac_try="$ac_link"
3609case "(($ac_try" in
3610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611  *) ac_try_echo=$ac_try;;
3612esac
3613eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3614$as_echo "$ac_try_echo") >&5
3615  (eval "$ac_link") 2>&5
3616  ac_status=$?
3617  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3619  { (case "(($ac_try" in
3620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621  *) ac_try_echo=$ac_try;;
3622esac
3623eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3624$as_echo "$ac_try_echo") >&5
3625  (eval "$ac_try") 2>&5
3626  ac_status=$?
3627  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628  (exit $ac_status); }; }; then
3629  :
3630else
3631  $as_echo "$as_me: program exited with status $ac_status" >&5
3632$as_echo "$as_me: failed program was:" >&5
3633sed 's/^/| /' conftest.$ac_ext >&5
3634
3635( exit $ac_status )
3636ac_cv_header_stdc=no
3637fi
3638rm -rf conftest.dSYM
3639rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3640fi
3641
3642
3643fi
3644fi
3645{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3646$as_echo "$ac_cv_header_stdc" >&6; }
3647if test $ac_cv_header_stdc = yes; then
3648
3649cat >>confdefs.h <<\_ACEOF
3650#define STDC_HEADERS 1
3651_ACEOF
3652
3653fi
3654
3655{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3656$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
3657if test "${ac_cv_header_sys_wait_h+set}" = set; then
3658  $as_echo_n "(cached) " >&6
3659else
3660  cat >conftest.$ac_ext <<_ACEOF
3661/* confdefs.h.  */
3662_ACEOF
3663cat confdefs.h >>conftest.$ac_ext
3664cat >>conftest.$ac_ext <<_ACEOF
3665/* end confdefs.h.  */
3666#include <sys/types.h>
3667#include <sys/wait.h>
3668#ifndef WEXITSTATUS
3669# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3670#endif
3671#ifndef WIFEXITED
3672# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3673#endif
3674
3675int
3676main ()
3677{
3678  int s;
3679  wait (&s);
3680  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3681  ;
3682  return 0;
3683}
3684_ACEOF
3685rm -f conftest.$ac_objext
3686if { (ac_try="$ac_compile"
3687case "(($ac_try" in
3688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689  *) ac_try_echo=$ac_try;;
3690esac
3691eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3692$as_echo "$ac_try_echo") >&5
3693  (eval "$ac_compile") 2>conftest.er1
3694  ac_status=$?
3695  grep -v '^ *+' conftest.er1 >conftest.err
3696  rm -f conftest.er1
3697  cat conftest.err >&5
3698  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699  (exit $ac_status); } && {
3700	 test -z "$ac_c_werror_flag" ||
3701	 test ! -s conftest.err
3702       } && test -s conftest.$ac_objext; then
3703  ac_cv_header_sys_wait_h=yes
3704else
3705  $as_echo "$as_me: failed program was:" >&5
3706sed 's/^/| /' conftest.$ac_ext >&5
3707
3708	ac_cv_header_sys_wait_h=no
3709fi
3710
3711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3712fi
3713{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3714$as_echo "$ac_cv_header_sys_wait_h" >&6; }
3715if test $ac_cv_header_sys_wait_h = yes; then
3716
3717cat >>confdefs.h <<\_ACEOF
3718#define HAVE_SYS_WAIT_H 1
3719_ACEOF
3720
3721fi
3722
3723
3724if test -z "$CFLAGS"; then
3725  CFLAGS="-O"
3726  test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
3727fi
3728if test "$GCC" = yes; then
3729    gccversion=`"$CC" -dumpversion`
3730  if test "x$gccversion" = "x"; then
3731        gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
3732  fi
3733    if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3734    echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
3735    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
3736  else
3737    if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
3738      echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
3739      CFLAGS="$CFLAGS -fno-strength-reduce"
3740    fi
3741  fi
3742fi
3743
3744if test "$cross_compiling" = yes; then
3745  { $as_echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
3746$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
3747fi
3748
3749test "$GCC" = yes && CPP_MM=M;
3750
3751if test -f ./toolcheck; then
3752  { $as_echo "$as_me:$LINENO: checking for buggy tools..." >&5
3753$as_echo "$as_me: checking for buggy tools..." >&6;}
3754  sh ./toolcheck 1>&6
3755fi
3756
3757OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
3758
3759{ $as_echo "$as_me:$LINENO: checking for BeOS" >&5
3760$as_echo_n "checking for BeOS... " >&6; }
3761case `uname` in
3762    BeOS)	OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
3763		BEOS=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3764$as_echo "yes" >&6; };;
3765    *)		BEOS=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3766$as_echo "no" >&6; };;
3767esac
3768
3769{ $as_echo "$as_me:$LINENO: checking for QNX" >&5
3770$as_echo_n "checking for QNX... " >&6; }
3771case `uname` in
3772    QNX)	OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
3773		test -z "$with_x" && with_x=no
3774		QNX=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3775$as_echo "yes" >&6; };;
3776    *)		QNX=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3777$as_echo "no" >&6; };;
3778esac
3779
3780{ $as_echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
3781$as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
3782if test "`(uname) 2>/dev/null`" = Darwin; then
3783  { $as_echo "$as_me:$LINENO: result: yes" >&5
3784$as_echo "yes" >&6; }
3785
3786  { $as_echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
3787$as_echo_n "checking --disable-darwin argument... " >&6; }
3788  # Check whether --enable-darwin was given.
3789if test "${enable_darwin+set}" = set; then
3790  enableval=$enable_darwin;
3791else
3792  enable_darwin="yes"
3793fi
3794
3795  if test "$enable_darwin" = "yes"; then
3796    { $as_echo "$as_me:$LINENO: result: no" >&5
3797$as_echo "no" >&6; }
3798    { $as_echo "$as_me:$LINENO: checking if Darwin files are there" >&5
3799$as_echo_n "checking if Darwin files are there... " >&6; }
3800    if test -f os_macosx.c; then
3801      { $as_echo "$as_me:$LINENO: result: yes" >&5
3802$as_echo "yes" >&6; }
3803    else
3804      { $as_echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
3805$as_echo "no, Darwin support disabled" >&6; }
3806      enable_darwin=no
3807    fi
3808  else
3809    { $as_echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
3810$as_echo "yes, Darwin support excluded" >&6; }
3811  fi
3812
3813  { $as_echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5
3814$as_echo_n "checking --with-mac-arch argument... " >&6; }
3815
3816# Check whether --with-mac-arch was given.
3817if test "${with_mac_arch+set}" = set; then
3818  withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:$LINENO: result: $MACARCH" >&5
3819$as_echo "$MACARCH" >&6; }
3820else
3821  MACARCH="current"; { $as_echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5
3822$as_echo "defaulting to $MACARCH" >&6; }
3823fi
3824
3825
3826  if test "x$MACARCH" = "xboth"; then
3827    { $as_echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5
3828$as_echo_n "checking for 10.4 universal SDK... " >&6; }
3829                            save_cppflags="$CPPFLAGS"
3830    save_cflags="$CFLAGS"
3831    save_ldflags="$LDFLAGS"
3832    CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
3833    cat >conftest.$ac_ext <<_ACEOF
3834/* confdefs.h.  */
3835_ACEOF
3836cat confdefs.h >>conftest.$ac_ext
3837cat >>conftest.$ac_ext <<_ACEOF
3838/* end confdefs.h.  */
3839
3840int
3841main ()
3842{
3843
3844  ;
3845  return 0;
3846}
3847_ACEOF
3848rm -f conftest.$ac_objext conftest$ac_exeext
3849if { (ac_try="$ac_link"
3850case "(($ac_try" in
3851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852  *) ac_try_echo=$ac_try;;
3853esac
3854eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3855$as_echo "$ac_try_echo") >&5
3856  (eval "$ac_link") 2>conftest.er1
3857  ac_status=$?
3858  grep -v '^ *+' conftest.er1 >conftest.err
3859  rm -f conftest.er1
3860  cat conftest.err >&5
3861  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862  (exit $ac_status); } && {
3863	 test -z "$ac_c_werror_flag" ||
3864	 test ! -s conftest.err
3865       } && test -s conftest$ac_exeext && {
3866	 test "$cross_compiling" = yes ||
3867	 $as_test_x conftest$ac_exeext
3868       }; then
3869  { $as_echo "$as_me:$LINENO: result: found" >&5
3870$as_echo "found" >&6; }
3871else
3872  $as_echo "$as_me: failed program was:" >&5
3873sed 's/^/| /' conftest.$ac_ext >&5
3874
3875	{ $as_echo "$as_me:$LINENO: result: not found" >&5
3876$as_echo "not found" >&6; }
3877	CFLAGS="$save_cflags"
3878	{ $as_echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
3879$as_echo_n "checking if Intel architecture is supported... " >&6; }
3880	CPPFLAGS="$CPPFLAGS -arch i386"
3881	LDFLAGS="$save_ldflags -arch i386"
3882	cat >conftest.$ac_ext <<_ACEOF
3883/* confdefs.h.  */
3884_ACEOF
3885cat confdefs.h >>conftest.$ac_ext
3886cat >>conftest.$ac_ext <<_ACEOF
3887/* end confdefs.h.  */
3888
3889int
3890main ()
3891{
3892
3893  ;
3894  return 0;
3895}
3896_ACEOF
3897rm -f conftest.$ac_objext conftest$ac_exeext
3898if { (ac_try="$ac_link"
3899case "(($ac_try" in
3900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901  *) ac_try_echo=$ac_try;;
3902esac
3903eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3904$as_echo "$ac_try_echo") >&5
3905  (eval "$ac_link") 2>conftest.er1
3906  ac_status=$?
3907  grep -v '^ *+' conftest.er1 >conftest.err
3908  rm -f conftest.er1
3909  cat conftest.err >&5
3910  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911  (exit $ac_status); } && {
3912	 test -z "$ac_c_werror_flag" ||
3913	 test ! -s conftest.err
3914       } && test -s conftest$ac_exeext && {
3915	 test "$cross_compiling" = yes ||
3916	 $as_test_x conftest$ac_exeext
3917       }; then
3918  { $as_echo "$as_me:$LINENO: result: yes" >&5
3919$as_echo "yes" >&6; }; MACARCH="intel"
3920else
3921  $as_echo "$as_me: failed program was:" >&5
3922sed 's/^/| /' conftest.$ac_ext >&5
3923
3924	{ $as_echo "$as_me:$LINENO: result: no" >&5
3925$as_echo "no" >&6; }
3926		MACARCH="ppc"
3927		CPPFLAGS="$save_cppflags -arch ppc"
3928		LDFLAGS="$save_ldflags -arch ppc"
3929fi
3930
3931rm -rf conftest.dSYM
3932rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3933      conftest$ac_exeext conftest.$ac_ext
3934fi
3935
3936rm -rf conftest.dSYM
3937rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3938      conftest$ac_exeext conftest.$ac_ext
3939  elif test "x$MACARCH" = "xintel"; then
3940    CPPFLAGS="$CPPFLAGS -arch intel"
3941    LDFLAGS="$LDFLAGS -arch intel"
3942  elif test "x$MACARCH" = "xppc"; then
3943    CPPFLAGS="$CPPFLAGS -arch ppc"
3944    LDFLAGS="$LDFLAGS -arch ppc"
3945  fi
3946
3947  if test "$enable_darwin" = "yes"; then
3948    MACOSX=yes
3949    OS_EXTRA_SRC="os_macosx.c os_mac_conv.c";
3950    OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
3951        CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3952    if test "x$MACARCH" = "xboth"; then
3953      CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
3954    else
3955      CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon"
3956    fi
3957
3958                # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3969		  inttypes.h stdint.h unistd.h
3970do
3971as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3972{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3973$as_echo_n "checking for $ac_header... " >&6; }
3974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3975  $as_echo_n "(cached) " >&6
3976else
3977  cat >conftest.$ac_ext <<_ACEOF
3978/* confdefs.h.  */
3979_ACEOF
3980cat confdefs.h >>conftest.$ac_ext
3981cat >>conftest.$ac_ext <<_ACEOF
3982/* end confdefs.h.  */
3983$ac_includes_default
3984
3985#include <$ac_header>
3986_ACEOF
3987rm -f conftest.$ac_objext
3988if { (ac_try="$ac_compile"
3989case "(($ac_try" in
3990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991  *) ac_try_echo=$ac_try;;
3992esac
3993eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3994$as_echo "$ac_try_echo") >&5
3995  (eval "$ac_compile") 2>conftest.er1
3996  ac_status=$?
3997  grep -v '^ *+' conftest.er1 >conftest.err
3998  rm -f conftest.er1
3999  cat conftest.err >&5
4000  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001  (exit $ac_status); } && {
4002	 test -z "$ac_c_werror_flag" ||
4003	 test ! -s conftest.err
4004       } && test -s conftest.$ac_objext; then
4005  eval "$as_ac_Header=yes"
4006else
4007  $as_echo "$as_me: failed program was:" >&5
4008sed 's/^/| /' conftest.$ac_ext >&5
4009
4010	eval "$as_ac_Header=no"
4011fi
4012
4013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4014fi
4015ac_res=`eval 'as_val=${'$as_ac_Header'}
4016		 $as_echo "$as_val"'`
4017	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4018$as_echo "$ac_res" >&6; }
4019if test `eval 'as_val=${'$as_ac_Header'}
4020		 $as_echo "$as_val"'` = yes; then
4021  cat >>confdefs.h <<_ACEOF
4022#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4023_ACEOF
4024
4025fi
4026
4027done
4028
4029
4030if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4031  { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4032$as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4033if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4034  $as_echo_n "(cached) " >&6
4035fi
4036{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4037$as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4038else
4039  # Is the header compilable?
4040{ $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
4041$as_echo_n "checking Carbon/Carbon.h usability... " >&6; }
4042cat >conftest.$ac_ext <<_ACEOF
4043/* confdefs.h.  */
4044_ACEOF
4045cat confdefs.h >>conftest.$ac_ext
4046cat >>conftest.$ac_ext <<_ACEOF
4047/* end confdefs.h.  */
4048$ac_includes_default
4049#include <Carbon/Carbon.h>
4050_ACEOF
4051rm -f conftest.$ac_objext
4052if { (ac_try="$ac_compile"
4053case "(($ac_try" in
4054  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055  *) ac_try_echo=$ac_try;;
4056esac
4057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4058$as_echo "$ac_try_echo") >&5
4059  (eval "$ac_compile") 2>conftest.er1
4060  ac_status=$?
4061  grep -v '^ *+' conftest.er1 >conftest.err
4062  rm -f conftest.er1
4063  cat conftest.err >&5
4064  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065  (exit $ac_status); } && {
4066	 test -z "$ac_c_werror_flag" ||
4067	 test ! -s conftest.err
4068       } && test -s conftest.$ac_objext; then
4069  ac_header_compiler=yes
4070else
4071  $as_echo "$as_me: failed program was:" >&5
4072sed 's/^/| /' conftest.$ac_ext >&5
4073
4074	ac_header_compiler=no
4075fi
4076
4077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4078{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4079$as_echo "$ac_header_compiler" >&6; }
4080
4081# Is the header present?
4082{ $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
4083$as_echo_n "checking Carbon/Carbon.h presence... " >&6; }
4084cat >conftest.$ac_ext <<_ACEOF
4085/* confdefs.h.  */
4086_ACEOF
4087cat confdefs.h >>conftest.$ac_ext
4088cat >>conftest.$ac_ext <<_ACEOF
4089/* end confdefs.h.  */
4090#include <Carbon/Carbon.h>
4091_ACEOF
4092if { (ac_try="$ac_cpp conftest.$ac_ext"
4093case "(($ac_try" in
4094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095  *) ac_try_echo=$ac_try;;
4096esac
4097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4098$as_echo "$ac_try_echo") >&5
4099  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4100  ac_status=$?
4101  grep -v '^ *+' conftest.er1 >conftest.err
4102  rm -f conftest.er1
4103  cat conftest.err >&5
4104  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105  (exit $ac_status); } >/dev/null && {
4106	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4107	 test ! -s conftest.err
4108       }; then
4109  ac_header_preproc=yes
4110else
4111  $as_echo "$as_me: failed program was:" >&5
4112sed 's/^/| /' conftest.$ac_ext >&5
4113
4114  ac_header_preproc=no
4115fi
4116
4117rm -f conftest.err conftest.$ac_ext
4118{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4119$as_echo "$ac_header_preproc" >&6; }
4120
4121# So?  What about this header?
4122case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4123  yes:no: )
4124    { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
4125$as_echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4126    { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
4127$as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
4128    ac_header_preproc=yes
4129    ;;
4130  no:yes:* )
4131    { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
4132$as_echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
4133    { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h:     check for missing prerequisite headers?" >&5
4134$as_echo "$as_me: WARNING: Carbon/Carbon.h:     check for missing prerequisite headers?" >&2;}
4135    { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
4136$as_echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
4137    { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h:     section \"Present But Cannot Be Compiled\"" >&5
4138$as_echo "$as_me: WARNING: Carbon/Carbon.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4139    { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
4140$as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
4141    { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
4142$as_echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
4143
4144    ;;
4145esac
4146{ $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4147$as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4148if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4149  $as_echo_n "(cached) " >&6
4150else
4151  ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
4152fi
4153{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4154$as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4155
4156fi
4157if test $ac_cv_header_Carbon_Carbon_h = yes; then
4158  CARBON=yes
4159fi
4160
4161
4162    if test "x$CARBON" = "xyes"; then
4163      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
4164	with_x=no
4165      fi
4166    fi
4167  fi
4168
4169        if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4170    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4171  fi
4172
4173else
4174  { $as_echo "$as_me:$LINENO: result: no" >&5
4175$as_echo "no" >&6; }
4176fi
4177
4178
4179
4180
4181if test "$cross_compiling" = no; then
4182  { $as_echo "$as_me:$LINENO: checking --with-local-dir argument" >&5
4183$as_echo_n "checking --with-local-dir argument... " >&6; }
4184  have_local_include=''
4185  have_local_lib=''
4186
4187# Check whether --with-local-dir was given.
4188if test "${with_local_dir+set}" = set; then
4189  withval=$with_local_dir;
4190    local_dir="$withval"
4191    case "$withval" in
4192    */*) ;;
4193    no)
4194      # avoid adding local dir to LDFLAGS and CPPFLAGS
4195      have_local_dir=yes
4196      have_local_lib=yes
4197      ;;
4198    *) { { $as_echo "$as_me:$LINENO: error: must pass path argument to --with-local-dir" >&5
4199$as_echo "$as_me: error: must pass path argument to --with-local-dir" >&2;}
4200   { (exit 1); exit 1; }; } ;;
4201    esac
4202	{ $as_echo "$as_me:$LINENO: result: $local_dir" >&5
4203$as_echo "$local_dir" >&6; }
4204
4205else
4206
4207    local_dir=/usr/local
4208    { $as_echo "$as_me:$LINENO: result: Defaulting to $local_dir" >&5
4209$as_echo "Defaulting to $local_dir" >&6; }
4210
4211fi
4212
4213  if test "$GCC" = yes -a "$local_dir" != no; then
4214    echo 'void f(){}' > conftest.c
4215        have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4216    have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4217    rm -f conftest.c conftest.o
4218  fi
4219  if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4220    tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4221    if test "$tt" = "$LDFLAGS"; then
4222      LDFLAGS="$LDFLAGS -L${local_dir}/lib"
4223    fi
4224  fi
4225  if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4226    tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4227    if test "$tt" = "$CPPFLAGS"; then
4228      CPPFLAGS="$CPPFLAGS -I${local_dir}/include"
4229    fi
4230  fi
4231fi
4232
4233{ $as_echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
4234$as_echo_n "checking --with-vim-name argument... " >&6; }
4235
4236# Check whether --with-vim-name was given.
4237if test "${with_vim_name+set}" = set; then
4238  withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIMNAME" >&5
4239$as_echo "$VIMNAME" >&6; }
4240else
4241  VIMNAME="vim"; { $as_echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
4242$as_echo "Defaulting to $VIMNAME" >&6; }
4243fi
4244
4245
4246{ $as_echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
4247$as_echo_n "checking --with-ex-name argument... " >&6; }
4248
4249# Check whether --with-ex-name was given.
4250if test "${with_ex_name+set}" = set; then
4251  withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $EXNAME" >&5
4252$as_echo "$EXNAME" >&6; }
4253else
4254  EXNAME="ex"; { $as_echo "$as_me:$LINENO: result: Defaulting to ex" >&5
4255$as_echo "Defaulting to ex" >&6; }
4256fi
4257
4258
4259{ $as_echo "$as_me:$LINENO: checking --with-view-name argument" >&5
4260$as_echo_n "checking --with-view-name argument... " >&6; }
4261
4262# Check whether --with-view-name was given.
4263if test "${with_view_name+set}" = set; then
4264  withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIEWNAME" >&5
4265$as_echo "$VIEWNAME" >&6; }
4266else
4267  VIEWNAME="view"; { $as_echo "$as_me:$LINENO: result: Defaulting to view" >&5
4268$as_echo "Defaulting to view" >&6; }
4269fi
4270
4271
4272
4273{ $as_echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
4274$as_echo_n "checking --with-global-runtime argument... " >&6; }
4275
4276# Check whether --with-global-runtime was given.
4277if test "${with_global_runtime+set}" = set; then
4278  withval=$with_global_runtime; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4279$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4280#define RUNTIME_GLOBAL "$withval"
4281_ACEOF
4282
4283else
4284  { $as_echo "$as_me:$LINENO: result: no" >&5
4285$as_echo "no" >&6; }
4286fi
4287
4288
4289{ $as_echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
4290$as_echo_n "checking --with-modified-by argument... " >&6; }
4291
4292# Check whether --with-modified-by was given.
4293if test "${with_modified_by+set}" = set; then
4294  withval=$with_modified_by; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4295$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4296#define MODIFIED_BY "$withval"
4297_ACEOF
4298
4299else
4300  { $as_echo "$as_me:$LINENO: result: no" >&5
4301$as_echo "no" >&6; }
4302fi
4303
4304
4305{ $as_echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
4306$as_echo_n "checking if character set is EBCDIC... " >&6; }
4307cat >conftest.$ac_ext <<_ACEOF
4308/* confdefs.h.  */
4309_ACEOF
4310cat confdefs.h >>conftest.$ac_ext
4311cat >>conftest.$ac_ext <<_ACEOF
4312/* end confdefs.h.  */
4313
4314int
4315main ()
4316{
4317 /* TryCompile function for CharSet.
4318   Treat any failure as ASCII for compatibility with existing art.
4319   Use compile-time rather than run-time tests for cross-compiler
4320   tolerance.  */
4321#if '0'!=240
4322make an error "Character set is not EBCDIC"
4323#endif
4324  ;
4325  return 0;
4326}
4327_ACEOF
4328rm -f conftest.$ac_objext
4329if { (ac_try="$ac_compile"
4330case "(($ac_try" in
4331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332  *) ac_try_echo=$ac_try;;
4333esac
4334eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4335$as_echo "$ac_try_echo") >&5
4336  (eval "$ac_compile") 2>conftest.er1
4337  ac_status=$?
4338  grep -v '^ *+' conftest.er1 >conftest.err
4339  rm -f conftest.er1
4340  cat conftest.err >&5
4341  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342  (exit $ac_status); } && {
4343	 test -z "$ac_c_werror_flag" ||
4344	 test ! -s conftest.err
4345       } && test -s conftest.$ac_objext; then
4346   # TryCompile action if true
4347cf_cv_ebcdic=yes
4348else
4349  $as_echo "$as_me: failed program was:" >&5
4350sed 's/^/| /' conftest.$ac_ext >&5
4351
4352	 # TryCompile action if false
4353cf_cv_ebcdic=no
4354fi
4355
4356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4357# end of TryCompile ])
4358# end of CacheVal CvEbcdic
4359{ $as_echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
4360$as_echo "$cf_cv_ebcdic" >&6; }
4361case "$cf_cv_ebcdic" in  #(vi
4362    yes)	cat >>confdefs.h <<\_ACEOF
4363#define EBCDIC 1
4364_ACEOF
4365
4366		line_break='"\\n"'
4367		;;
4368    *)		line_break='"\\012"';;
4369esac
4370
4371
4372if test "$cf_cv_ebcdic" = "yes"; then
4373{ $as_echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
4374$as_echo_n "checking for OS/390 Unix... " >&6; }
4375case `uname` in
4376    OS/390)	OS390Unix="yes";
4377										if test "$CC" = "cc"; then
4378		  ccm="$_CC_CCMODE"
4379		  ccn="CC"
4380		else
4381		  if test "$CC" = "c89"; then
4382		    ccm="$_CC_C89MODE"
4383		    ccn="C89"
4384		  else
4385		    ccm=1
4386		  fi
4387		fi
4388		if test "$ccm" != "1"; then
4389		  echo ""
4390		  echo "------------------------------------------"
4391		  echo " On OS/390 Unix, the environment variable"
4392		  echo " __CC_${ccn}MODE must be set to \"1\"!"
4393		  echo " Do:"
4394		  echo "    export _CC_${ccn}MODE=1"
4395		  echo " and then call configure again."
4396		  echo "------------------------------------------"
4397		  exit 1
4398		fi
4399		CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4400		{ $as_echo "$as_me:$LINENO: result: yes" >&5
4401$as_echo "yes" >&6; }
4402		;;
4403    *)		OS390Unix="no";
4404		{ $as_echo "$as_me:$LINENO: result: no" >&5
4405$as_echo "no" >&6; }
4406		;;
4407esac
4408fi
4409
4410{ $as_echo "$as_me:$LINENO: checking --disable-selinux argument" >&5
4411$as_echo_n "checking --disable-selinux argument... " >&6; }
4412# Check whether --enable-selinux was given.
4413if test "${enable_selinux+set}" = set; then
4414  enableval=$enable_selinux;
4415else
4416  enable_selinux="yes"
4417fi
4418
4419if test "$enable_selinux" = "yes"; then
4420  { $as_echo "$as_me:$LINENO: result: no" >&5
4421$as_echo "no" >&6; }
4422  { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
4423$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
4424if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
4425  $as_echo_n "(cached) " >&6
4426else
4427  ac_check_lib_save_LIBS=$LIBS
4428LIBS="-lselinux  $LIBS"
4429cat >conftest.$ac_ext <<_ACEOF
4430/* confdefs.h.  */
4431_ACEOF
4432cat confdefs.h >>conftest.$ac_ext
4433cat >>conftest.$ac_ext <<_ACEOF
4434/* end confdefs.h.  */
4435
4436/* Override any GCC internal prototype to avoid an error.
4437   Use char because int might match the return type of a GCC
4438   builtin and then its argument prototype would still apply.  */
4439#ifdef __cplusplus
4440extern "C"
4441#endif
4442char is_selinux_enabled ();
4443int
4444main ()
4445{
4446return is_selinux_enabled ();
4447  ;
4448  return 0;
4449}
4450_ACEOF
4451rm -f conftest.$ac_objext conftest$ac_exeext
4452if { (ac_try="$ac_link"
4453case "(($ac_try" in
4454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455  *) ac_try_echo=$ac_try;;
4456esac
4457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4458$as_echo "$ac_try_echo") >&5
4459  (eval "$ac_link") 2>conftest.er1
4460  ac_status=$?
4461  grep -v '^ *+' conftest.er1 >conftest.err
4462  rm -f conftest.er1
4463  cat conftest.err >&5
4464  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465  (exit $ac_status); } && {
4466	 test -z "$ac_c_werror_flag" ||
4467	 test ! -s conftest.err
4468       } && test -s conftest$ac_exeext && {
4469	 test "$cross_compiling" = yes ||
4470	 $as_test_x conftest$ac_exeext
4471       }; then
4472  ac_cv_lib_selinux_is_selinux_enabled=yes
4473else
4474  $as_echo "$as_me: failed program was:" >&5
4475sed 's/^/| /' conftest.$ac_ext >&5
4476
4477	ac_cv_lib_selinux_is_selinux_enabled=no
4478fi
4479
4480rm -rf conftest.dSYM
4481rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4482      conftest$ac_exeext conftest.$ac_ext
4483LIBS=$ac_check_lib_save_LIBS
4484fi
4485{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4486$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4487if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
4488  LIBS="$LIBS -lselinux"
4489	   cat >>confdefs.h <<\_ACEOF
4490#define HAVE_SELINUX 1
4491_ACEOF
4492
4493fi
4494
4495else
4496   { $as_echo "$as_me:$LINENO: result: yes" >&5
4497$as_echo "yes" >&6; }
4498fi
4499
4500
4501{ $as_echo "$as_me:$LINENO: checking --with-features argument" >&5
4502$as_echo_n "checking --with-features argument... " >&6; }
4503
4504# Check whether --with-features was given.
4505if test "${with_features+set}" = set; then
4506  withval=$with_features; features="$withval"; { $as_echo "$as_me:$LINENO: result: $features" >&5
4507$as_echo "$features" >&6; }
4508else
4509  features="normal"; { $as_echo "$as_me:$LINENO: result: Defaulting to normal" >&5
4510$as_echo "Defaulting to normal" >&6; }
4511fi
4512
4513
4514dovimdiff=""
4515dogvimdiff=""
4516case "$features" in
4517  tiny)		cat >>confdefs.h <<\_ACEOF
4518#define FEAT_TINY 1
4519_ACEOF
4520 ;;
4521  small)	cat >>confdefs.h <<\_ACEOF
4522#define FEAT_SMALL 1
4523_ACEOF
4524 ;;
4525  normal)	cat >>confdefs.h <<\_ACEOF
4526#define FEAT_NORMAL 1
4527_ACEOF
4528 dovimdiff="installvimdiff";
4529			dogvimdiff="installgvimdiff" ;;
4530  big)		cat >>confdefs.h <<\_ACEOF
4531#define FEAT_BIG 1
4532_ACEOF
4533 dovimdiff="installvimdiff";
4534			dogvimdiff="installgvimdiff" ;;
4535  huge)		cat >>confdefs.h <<\_ACEOF
4536#define FEAT_HUGE 1
4537_ACEOF
4538 dovimdiff="installvimdiff";
4539			dogvimdiff="installgvimdiff" ;;
4540  *)		{ $as_echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
4541$as_echo "Sorry, $features is not supported" >&6; } ;;
4542esac
4543
4544
4545
4546
4547{ $as_echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
4548$as_echo_n "checking --with-compiledby argument... " >&6; }
4549
4550# Check whether --with-compiledby was given.
4551if test "${with_compiledby+set}" = set; then
4552  withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4553$as_echo "$withval" >&6; }
4554else
4555  compiledby=""; { $as_echo "$as_me:$LINENO: result: no" >&5
4556$as_echo "no" >&6; }
4557fi
4558
4559
4560
4561{ $as_echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
4562$as_echo_n "checking --disable-xsmp argument... " >&6; }
4563# Check whether --enable-xsmp was given.
4564if test "${enable_xsmp+set}" = set; then
4565  enableval=$enable_xsmp;
4566else
4567  enable_xsmp="yes"
4568fi
4569
4570
4571if test "$enable_xsmp" = "yes"; then
4572  { $as_echo "$as_me:$LINENO: result: no" >&5
4573$as_echo "no" >&6; }
4574  { $as_echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
4575$as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
4576  # Check whether --enable-xsmp-interact was given.
4577if test "${enable_xsmp_interact+set}" = set; then
4578  enableval=$enable_xsmp_interact;
4579else
4580  enable_xsmp_interact="yes"
4581fi
4582
4583  if test "$enable_xsmp_interact" = "yes"; then
4584    { $as_echo "$as_me:$LINENO: result: no" >&5
4585$as_echo "no" >&6; }
4586    cat >>confdefs.h <<\_ACEOF
4587#define USE_XSMP_INTERACT 1
4588_ACEOF
4589
4590  else
4591    { $as_echo "$as_me:$LINENO: result: yes" >&5
4592$as_echo "yes" >&6; }
4593  fi
4594else
4595  { $as_echo "$as_me:$LINENO: result: yes" >&5
4596$as_echo "yes" >&6; }
4597fi
4598
4599{ $as_echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
4600$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
4601# Check whether --enable-mzschemeinterp was given.
4602if test "${enable_mzschemeinterp+set}" = set; then
4603  enableval=$enable_mzschemeinterp;
4604else
4605  enable_mzschemeinterp="no"
4606fi
4607
4608{ $as_echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
4609$as_echo "$enable_mzschemeinterp" >&6; }
4610
4611if test "$enable_mzschemeinterp" = "yes"; then
4612
4613
4614  { $as_echo "$as_me:$LINENO: checking --with-plthome argument" >&5
4615$as_echo_n "checking --with-plthome argument... " >&6; }
4616
4617# Check whether --with-plthome was given.
4618if test "${with_plthome+set}" = set; then
4619  withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:$LINENO: result: $with_plthome" >&5
4620$as_echo "$with_plthome" >&6; }
4621else
4622  with_plthome="";{ $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4623$as_echo "\"no\"" >&6; }
4624fi
4625
4626
4627  if test "X$with_plthome" != "X"; then
4628       vi_cv_path_mzscheme_pfx="$with_plthome"
4629  else
4630    { $as_echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
4631$as_echo_n "checking PLTHOME environment var... " >&6; }
4632    if test "X$PLTHOME" != "X"; then
4633	{ $as_echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
4634$as_echo "\"$PLTHOME\"" >&6; }
4635	vi_cv_path_mzscheme_pfx="$PLTHOME"
4636    else
4637	{ $as_echo "$as_me:$LINENO: result: \"not set\"" >&5
4638$as_echo "\"not set\"" >&6; }
4639		# Extract the first word of "mzscheme", so it can be a program name with args.
4640set dummy mzscheme; ac_word=$2
4641{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4642$as_echo_n "checking for $ac_word... " >&6; }
4643if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
4644  $as_echo_n "(cached) " >&6
4645else
4646  case $vi_cv_path_mzscheme in
4647  [\\/]* | ?:[\\/]*)
4648  ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
4649  ;;
4650  *)
4651  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652for as_dir in $PATH
4653do
4654  IFS=$as_save_IFS
4655  test -z "$as_dir" && as_dir=.
4656  for ac_exec_ext in '' $ac_executable_extensions; do
4657  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4658    ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
4659    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4660    break 2
4661  fi
4662done
4663done
4664IFS=$as_save_IFS
4665
4666  ;;
4667esac
4668fi
4669vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
4670if test -n "$vi_cv_path_mzscheme"; then
4671  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
4672$as_echo "$vi_cv_path_mzscheme" >&6; }
4673else
4674  { $as_echo "$as_me:$LINENO: result: no" >&5
4675$as_echo "no" >&6; }
4676fi
4677
4678
4679
4680			if test "X$vi_cv_path_mzscheme" != "X"; then
4681	  lsout=`ls -l $vi_cv_path_mzscheme`
4682	  if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
4683	    vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
4684	  fi
4685	fi
4686
4687	if test "X$vi_cv_path_mzscheme" != "X"; then
4688	    	    { $as_echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
4689$as_echo_n "checking MzScheme install prefix... " >&6; }
4690if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
4691  $as_echo_n "(cached) " >&6
4692else
4693   vi_cv_path_mzscheme_pfx=`
4694	    ${vi_cv_path_mzscheme} -evm \
4695	    "(display (simplify-path		\
4696	       (build-path (call-with-values	\
4697		(lambda () (split-path (find-system-path (quote exec-file)))) \
4698		(lambda (base name must-be-dir?) base)) (quote up))))"`
4699fi
4700{ $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
4701$as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
4702	    	    vi_cv_path_mzscheme_pfx=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'`
4703	fi
4704    fi
4705  fi
4706
4707  SCHEME_INC=
4708  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4709    { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
4710$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
4711    if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
4712      { $as_echo "$as_me:$LINENO: result: \"yes\"" >&5
4713$as_echo "\"yes\"" >&6; }
4714    else
4715      { $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4716$as_echo "\"no\"" >&6; }
4717      { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include" >&5
4718$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include... " >&6; }
4719      if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then
4720	{ $as_echo "$as_me:$LINENO: result: \"yes\"" >&5
4721$as_echo "\"yes\"" >&6; }
4722	SCHEME_INC=/plt
4723      else
4724	{ $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4725$as_echo "\"no\"" >&6; }
4726	vi_cv_path_mzscheme_pfx=
4727      fi
4728    fi
4729  fi
4730
4731  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4732    if test "x$MACOSX" = "xyes"; then
4733      MZSCHEME_LIBS="-framework PLT_MzScheme"
4734    elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
4735      MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
4736    else
4737      MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
4738      if test "$GCC" = yes; then
4739			MZSCHEME_LIBS="$MZSCHEME_LIBS -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
4740      elif test "`(uname) 2>/dev/null`" = SunOS &&
4741			       uname -r | grep '^5' >/dev/null; then
4742	MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib"
4743      fi
4744    fi
4745    if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then
4746      SCHEME_COLLECTS=lib/plt/
4747    fi
4748    MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include${SCHEME_INC}   \
4749      -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
4750    MZSCHEME_SRC="if_mzsch.c"
4751    MZSCHEME_OBJ="objects/if_mzsch.o"
4752    MZSCHEME_PRO="if_mzsch.pro"
4753    cat >>confdefs.h <<\_ACEOF
4754#define FEAT_MZSCHEME 1
4755_ACEOF
4756
4757  fi
4758
4759
4760
4761
4762
4763fi
4764
4765
4766{ $as_echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
4767$as_echo_n "checking --enable-perlinterp argument... " >&6; }
4768# Check whether --enable-perlinterp was given.
4769if test "${enable_perlinterp+set}" = set; then
4770  enableval=$enable_perlinterp;
4771else
4772  enable_perlinterp="no"
4773fi
4774
4775{ $as_echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
4776$as_echo "$enable_perlinterp" >&6; }
4777if test "$enable_perlinterp" = "yes"; then
4778
4779  # Extract the first word of "perl", so it can be a program name with args.
4780set dummy perl; ac_word=$2
4781{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4782$as_echo_n "checking for $ac_word... " >&6; }
4783if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
4784  $as_echo_n "(cached) " >&6
4785else
4786  case $vi_cv_path_perl in
4787  [\\/]* | ?:[\\/]*)
4788  ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
4789  ;;
4790  *)
4791  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792for as_dir in $PATH
4793do
4794  IFS=$as_save_IFS
4795  test -z "$as_dir" && as_dir=.
4796  for ac_exec_ext in '' $ac_executable_extensions; do
4797  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4798    ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
4799    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4800    break 2
4801  fi
4802done
4803done
4804IFS=$as_save_IFS
4805
4806  ;;
4807esac
4808fi
4809vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
4810if test -n "$vi_cv_path_perl"; then
4811  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
4812$as_echo "$vi_cv_path_perl" >&6; }
4813else
4814  { $as_echo "$as_me:$LINENO: result: no" >&5
4815$as_echo "no" >&6; }
4816fi
4817
4818
4819  if test "X$vi_cv_path_perl" != "X"; then
4820    { $as_echo "$as_me:$LINENO: checking Perl version" >&5
4821$as_echo_n "checking Perl version... " >&6; }
4822    if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
4823     eval `$vi_cv_path_perl -V:usethreads`
4824     if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
4825       badthreads=no
4826     else
4827       if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
4828	 eval `$vi_cv_path_perl -V:use5005threads`
4829	 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
4830	   badthreads=no
4831	 else
4832	   badthreads=yes
4833	   { $as_echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
4834$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
4835	 fi
4836       else
4837	 badthreads=yes
4838	 { $as_echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
4839$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
4840       fi
4841     fi
4842     if test $badthreads = no; then
4843      { $as_echo "$as_me:$LINENO: result: OK" >&5
4844$as_echo "OK" >&6; }
4845      eval `$vi_cv_path_perl -V:shrpenv`
4846      if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
4847	shrpenv=""
4848      fi
4849      vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
4850
4851            perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
4852	      -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
4853            perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
4854		sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
4855			-e 's/-bE:perl.exp//' -e 's/-lc //'`
4856                  perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
4857		-e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
4858
4859                  { $as_echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
4860$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
4861      cflags_save=$CFLAGS
4862      libs_save=$LIBS
4863      ldflags_save=$LDFLAGS
4864      CFLAGS="$CFLAGS $perlcppflags"
4865      LIBS="$LIBS $perllibs"
4866      LDFLAGS="$perlldflags $LDFLAGS"
4867      cat >conftest.$ac_ext <<_ACEOF
4868/* confdefs.h.  */
4869_ACEOF
4870cat confdefs.h >>conftest.$ac_ext
4871cat >>conftest.$ac_ext <<_ACEOF
4872/* end confdefs.h.  */
4873
4874int
4875main ()
4876{
4877
4878  ;
4879  return 0;
4880}
4881_ACEOF
4882rm -f conftest.$ac_objext conftest$ac_exeext
4883if { (ac_try="$ac_link"
4884case "(($ac_try" in
4885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4886  *) ac_try_echo=$ac_try;;
4887esac
4888eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4889$as_echo "$ac_try_echo") >&5
4890  (eval "$ac_link") 2>conftest.er1
4891  ac_status=$?
4892  grep -v '^ *+' conftest.er1 >conftest.err
4893  rm -f conftest.er1
4894  cat conftest.err >&5
4895  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896  (exit $ac_status); } && {
4897	 test -z "$ac_c_werror_flag" ||
4898	 test ! -s conftest.err
4899       } && test -s conftest$ac_exeext && {
4900	 test "$cross_compiling" = yes ||
4901	 $as_test_x conftest$ac_exeext
4902       }; then
4903  { $as_echo "$as_me:$LINENO: result: yes" >&5
4904$as_echo "yes" >&6; }; perl_ok=yes
4905else
4906  $as_echo "$as_me: failed program was:" >&5
4907sed 's/^/| /' conftest.$ac_ext >&5
4908
4909	{ $as_echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4910$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
4911fi
4912
4913rm -rf conftest.dSYM
4914rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4915      conftest$ac_exeext conftest.$ac_ext
4916      CFLAGS=$cflags_save
4917      LIBS=$libs_save
4918      LDFLAGS=$ldflags_save
4919      if test $perl_ok = yes; then
4920	if test "X$perlcppflags" != "X"; then
4921	  	  PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
4922	fi
4923	if test "X$perlldflags" != "X"; then
4924	  LDFLAGS="$perlldflags $LDFLAGS"
4925	fi
4926	PERL_LIBS=$perllibs
4927	PERL_SRC="auto/if_perl.c if_perlsfio.c"
4928	PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4929	PERL_PRO="if_perl.pro if_perlsfio.pro"
4930	cat >>confdefs.h <<\_ACEOF
4931#define FEAT_PERL 1
4932_ACEOF
4933
4934      fi
4935     fi
4936    else
4937      { $as_echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4938$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
4939    fi
4940  fi
4941
4942  if test "x$MACOSX" = "xyes"; then
4943        dir=/System/Library/Perl
4944    darwindir=$dir/darwin
4945    if test -d $darwindir; then
4946      PERL=/usr/bin/perl
4947    else
4948            dir=/System/Library/Perl/5.8.1
4949      darwindir=$dir/darwin-thread-multi-2level
4950      if test -d $darwindir; then
4951	PERL=/usr/bin/perl
4952      fi
4953    fi
4954    if test -n "$PERL"; then
4955      PERL_DIR="$dir"
4956      PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4957      PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4958      PERL_LIBS="-L$darwindir/CORE -lperl"
4959    fi
4960  fi
4961fi
4962
4963
4964
4965
4966
4967
4968
4969{ $as_echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
4970$as_echo_n "checking --enable-pythoninterp argument... " >&6; }
4971# Check whether --enable-pythoninterp was given.
4972if test "${enable_pythoninterp+set}" = set; then
4973  enableval=$enable_pythoninterp;
4974else
4975  enable_pythoninterp="no"
4976fi
4977
4978{ $as_echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
4979$as_echo "$enable_pythoninterp" >&6; }
4980if test "$enable_pythoninterp" = "yes"; then
4981    # Extract the first word of "python", so it can be a program name with args.
4982set dummy python; ac_word=$2
4983{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4984$as_echo_n "checking for $ac_word... " >&6; }
4985if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
4986  $as_echo_n "(cached) " >&6
4987else
4988  case $vi_cv_path_python in
4989  [\\/]* | ?:[\\/]*)
4990  ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
4991  ;;
4992  *)
4993  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994for as_dir in $PATH
4995do
4996  IFS=$as_save_IFS
4997  test -z "$as_dir" && as_dir=.
4998  for ac_exec_ext in '' $ac_executable_extensions; do
4999  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5000    ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5001    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5002    break 2
5003  fi
5004done
5005done
5006IFS=$as_save_IFS
5007
5008  ;;
5009esac
5010fi
5011vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5012if test -n "$vi_cv_path_python"; then
5013  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
5014$as_echo "$vi_cv_path_python" >&6; }
5015else
5016  { $as_echo "$as_me:$LINENO: result: no" >&5
5017$as_echo "no" >&6; }
5018fi
5019
5020
5021  if test "X$vi_cv_path_python" != "X"; then
5022
5023        { $as_echo "$as_me:$LINENO: checking Python version" >&5
5024$as_echo_n "checking Python version... " >&6; }
5025if test "${vi_cv_var_python_version+set}" = set; then
5026  $as_echo_n "(cached) " >&6
5027else
5028  vi_cv_var_python_version=`
5029	    ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5030
5031fi
5032{ $as_echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
5033$as_echo "$vi_cv_var_python_version" >&6; }
5034
5035        { $as_echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
5036$as_echo_n "checking Python is 1.4 or better... " >&6; }
5037    if ${vi_cv_path_python} -c \
5038	"import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
5039    then
5040      { $as_echo "$as_me:$LINENO: result: yep" >&5
5041$as_echo "yep" >&6; }
5042
5043            { $as_echo "$as_me:$LINENO: checking Python's install prefix" >&5
5044$as_echo_n "checking Python's install prefix... " >&6; }
5045if test "${vi_cv_path_python_pfx+set}" = set; then
5046  $as_echo_n "(cached) " >&6
5047else
5048   vi_cv_path_python_pfx=`
5049	    ${vi_cv_path_python} -c \
5050		"import sys; print sys.prefix"`
5051fi
5052{ $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
5053$as_echo "$vi_cv_path_python_pfx" >&6; }
5054
5055            { $as_echo "$as_me:$LINENO: checking Python's execution prefix" >&5
5056$as_echo_n "checking Python's execution prefix... " >&6; }
5057if test "${vi_cv_path_python_epfx+set}" = set; then
5058  $as_echo_n "(cached) " >&6
5059else
5060   vi_cv_path_python_epfx=`
5061	    ${vi_cv_path_python} -c \
5062		"import sys; print sys.exec_prefix"`
5063fi
5064{ $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
5065$as_echo "$vi_cv_path_python_epfx" >&6; }
5066
5067
5068      if test "${vi_cv_path_pythonpath+set}" = set; then
5069  $as_echo_n "(cached) " >&6
5070else
5071   vi_cv_path_pythonpath=`
5072	    unset PYTHONPATH;
5073	    ${vi_cv_path_python} -c \
5074		"import sys, string; print string.join(sys.path,':')"`
5075fi
5076
5077
5078
5079
5080# Check whether --with-python-config-dir was given.
5081if test "${with_python_config_dir+set}" = set; then
5082  withval=$with_python_config_dir;  vi_cv_path_python_conf="${withval}"
5083fi
5084
5085
5086      { $as_echo "$as_me:$LINENO: checking Python's configuration directory" >&5
5087$as_echo_n "checking Python's configuration directory... " >&6; }
5088if test "${vi_cv_path_python_conf+set}" = set; then
5089  $as_echo_n "(cached) " >&6
5090else
5091
5092	vi_cv_path_python_conf=
5093	for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5094	  for subdir in lib share; do
5095	    d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5096	    if test -d "$d" && test -f "$d/config.c"; then
5097	      vi_cv_path_python_conf="$d"
5098	    fi
5099	  done
5100	done
5101
5102fi
5103{ $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
5104$as_echo "$vi_cv_path_python_conf" >&6; }
5105
5106      PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5107
5108      if test "X$PYTHON_CONFDIR" = "X"; then
5109	{ $as_echo "$as_me:$LINENO: result: can't find it!" >&5
5110$as_echo "can't find it!" >&6; }
5111      else
5112
5113			if test "${vi_cv_path_python_plibs+set}" = set; then
5114  $as_echo_n "(cached) " >&6
5115else
5116
5117	    pwd=`pwd`
5118	    tmp_mkf="$pwd/config-PyMake$$"
5119	    cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5120__:
5121	@echo "python_MODLIBS='$(MODLIBS)'"
5122	@echo "python_LIBS='$(LIBS)'"
5123	@echo "python_SYSLIBS='$(SYSLIBS)'"
5124	@echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5125eof
5126	    	    eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
5127	    rm -f -- "${tmp_mkf}"
5128	    if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5129		"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5130	      vi_cv_path_python_plibs="-framework Python"
5131	    else
5132	      if test "${vi_cv_var_python_version}" = "1.4"; then
5133		  vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5134	      else
5135		  vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5136	      fi
5137	      vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5138	      	      vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
5139	    fi
5140
5141fi
5142
5143
5144	PYTHON_LIBS="${vi_cv_path_python_plibs}"
5145	if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5146	  PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
5147	else
5148	  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}"
5149	fi
5150	PYTHON_SRC="if_python.c"
5151		if test "x$MACOSX" = "xyes"; then
5152	  PYTHON_OBJ="objects/if_python.o"
5153	else
5154	  PYTHON_OBJ="objects/if_python.o objects/py_config.o"
5155	fi
5156	if test "${vi_cv_var_python_version}" = "1.4"; then
5157	   PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5158	fi
5159	PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5160
5161								{ $as_echo "$as_me:$LINENO: checking if -pthread should be used" >&5
5162$as_echo_n "checking if -pthread should be used... " >&6; }
5163	threadsafe_flag=
5164	thread_lib=
5165	        if test "`(uname) 2>/dev/null`" != Darwin; then
5166	  test "$GCC" = yes && threadsafe_flag="-pthread"
5167	  if test "`(uname) 2>/dev/null`" = FreeBSD; then
5168	    threadsafe_flag="-D_THREAD_SAFE"
5169	    thread_lib="-pthread"
5170	  fi
5171	fi
5172	libs_save_old=$LIBS
5173	if test -n "$threadsafe_flag"; then
5174	  cflags_save=$CFLAGS
5175	  CFLAGS="$CFLAGS $threadsafe_flag"
5176	  LIBS="$LIBS $thread_lib"
5177	  cat >conftest.$ac_ext <<_ACEOF
5178/* confdefs.h.  */
5179_ACEOF
5180cat confdefs.h >>conftest.$ac_ext
5181cat >>conftest.$ac_ext <<_ACEOF
5182/* end confdefs.h.  */
5183
5184int
5185main ()
5186{
5187
5188  ;
5189  return 0;
5190}
5191_ACEOF
5192rm -f conftest.$ac_objext conftest$ac_exeext
5193if { (ac_try="$ac_link"
5194case "(($ac_try" in
5195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5196  *) ac_try_echo=$ac_try;;
5197esac
5198eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5199$as_echo "$ac_try_echo") >&5
5200  (eval "$ac_link") 2>conftest.er1
5201  ac_status=$?
5202  grep -v '^ *+' conftest.er1 >conftest.err
5203  rm -f conftest.er1
5204  cat conftest.err >&5
5205  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206  (exit $ac_status); } && {
5207	 test -z "$ac_c_werror_flag" ||
5208	 test ! -s conftest.err
5209       } && test -s conftest$ac_exeext && {
5210	 test "$cross_compiling" = yes ||
5211	 $as_test_x conftest$ac_exeext
5212       }; then
5213  { $as_echo "$as_me:$LINENO: result: yes" >&5
5214$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
5215else
5216  $as_echo "$as_me: failed program was:" >&5
5217sed 's/^/| /' conftest.$ac_ext >&5
5218
5219	{ $as_echo "$as_me:$LINENO: result: no" >&5
5220$as_echo "no" >&6; }; LIBS=$libs_save_old
5221
5222fi
5223
5224rm -rf conftest.dSYM
5225rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5226      conftest$ac_exeext conftest.$ac_ext
5227	  CFLAGS=$cflags_save
5228	else
5229	  { $as_echo "$as_me:$LINENO: result: no" >&5
5230$as_echo "no" >&6; }
5231	fi
5232
5233			{ $as_echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
5234$as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
5235	cflags_save=$CFLAGS
5236	libs_save=$LIBS
5237	CFLAGS="$CFLAGS $PYTHON_CFLAGS"
5238	LIBS="$LIBS $PYTHON_LIBS"
5239	cat >conftest.$ac_ext <<_ACEOF
5240/* confdefs.h.  */
5241_ACEOF
5242cat confdefs.h >>conftest.$ac_ext
5243cat >>conftest.$ac_ext <<_ACEOF
5244/* end confdefs.h.  */
5245
5246int
5247main ()
5248{
5249
5250  ;
5251  return 0;
5252}
5253_ACEOF
5254rm -f conftest.$ac_objext conftest$ac_exeext
5255if { (ac_try="$ac_link"
5256case "(($ac_try" in
5257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5258  *) ac_try_echo=$ac_try;;
5259esac
5260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5261$as_echo "$ac_try_echo") >&5
5262  (eval "$ac_link") 2>conftest.er1
5263  ac_status=$?
5264  grep -v '^ *+' conftest.er1 >conftest.err
5265  rm -f conftest.er1
5266  cat conftest.err >&5
5267  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268  (exit $ac_status); } && {
5269	 test -z "$ac_c_werror_flag" ||
5270	 test ! -s conftest.err
5271       } && test -s conftest$ac_exeext && {
5272	 test "$cross_compiling" = yes ||
5273	 $as_test_x conftest$ac_exeext
5274       }; then
5275  { $as_echo "$as_me:$LINENO: result: yes" >&5
5276$as_echo "yes" >&6; }; python_ok=yes
5277else
5278  $as_echo "$as_me: failed program was:" >&5
5279sed 's/^/| /' conftest.$ac_ext >&5
5280
5281	{ $as_echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
5282$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
5283fi
5284
5285rm -rf conftest.dSYM
5286rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5287      conftest$ac_exeext conftest.$ac_ext
5288	CFLAGS=$cflags_save
5289	LIBS=$libs_save
5290	if test $python_ok = yes; then
5291	  cat >>confdefs.h <<\_ACEOF
5292#define FEAT_PYTHON 1
5293_ACEOF
5294
5295	else
5296	  LIBS=$libs_save_old
5297	  PYTHON_SRC=
5298	  PYTHON_OBJ=
5299	  PYTHON_LIBS=
5300	  PYTHON_CFLAGS=
5301	fi
5302
5303      fi
5304    else
5305      { $as_echo "$as_me:$LINENO: result: too old" >&5
5306$as_echo "too old" >&6; }
5307    fi
5308  fi
5309fi
5310
5311
5312
5313
5314
5315
5316
5317{ $as_echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
5318$as_echo_n "checking --enable-tclinterp argument... " >&6; }
5319# Check whether --enable-tclinterp was given.
5320if test "${enable_tclinterp+set}" = set; then
5321  enableval=$enable_tclinterp;
5322else
5323  enable_tclinterp="no"
5324fi
5325
5326{ $as_echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
5327$as_echo "$enable_tclinterp" >&6; }
5328
5329if test "$enable_tclinterp" = "yes"; then
5330
5331    { $as_echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
5332$as_echo_n "checking --with-tclsh argument... " >&6; }
5333
5334# Check whether --with-tclsh was given.
5335if test "${with_tclsh+set}" = set; then
5336  withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:$LINENO: result: $tclsh_name" >&5
5337$as_echo "$tclsh_name" >&6; }
5338else
5339  tclsh_name="tclsh8.5"; { $as_echo "$as_me:$LINENO: result: no" >&5
5340$as_echo "no" >&6; }
5341fi
5342
5343  # Extract the first word of "$tclsh_name", so it can be a program name with args.
5344set dummy $tclsh_name; ac_word=$2
5345{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5346$as_echo_n "checking for $ac_word... " >&6; }
5347if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5348  $as_echo_n "(cached) " >&6
5349else
5350  case $vi_cv_path_tcl in
5351  [\\/]* | ?:[\\/]*)
5352  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5353  ;;
5354  *)
5355  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356for as_dir in $PATH
5357do
5358  IFS=$as_save_IFS
5359  test -z "$as_dir" && as_dir=.
5360  for ac_exec_ext in '' $ac_executable_extensions; do
5361  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5363    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5364    break 2
5365  fi
5366done
5367done
5368IFS=$as_save_IFS
5369
5370  ;;
5371esac
5372fi
5373vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5374if test -n "$vi_cv_path_tcl"; then
5375  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5376$as_echo "$vi_cv_path_tcl" >&6; }
5377else
5378  { $as_echo "$as_me:$LINENO: result: no" >&5
5379$as_echo "no" >&6; }
5380fi
5381
5382
5383
5384
5385    if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
5386    tclsh_name="tclsh8.4"
5387    # Extract the first word of "$tclsh_name", so it can be a program name with args.
5388set dummy $tclsh_name; ac_word=$2
5389{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5390$as_echo_n "checking for $ac_word... " >&6; }
5391if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5392  $as_echo_n "(cached) " >&6
5393else
5394  case $vi_cv_path_tcl in
5395  [\\/]* | ?:[\\/]*)
5396  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5397  ;;
5398  *)
5399  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400for as_dir in $PATH
5401do
5402  IFS=$as_save_IFS
5403  test -z "$as_dir" && as_dir=.
5404  for ac_exec_ext in '' $ac_executable_extensions; do
5405  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5406    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5407    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5408    break 2
5409  fi
5410done
5411done
5412IFS=$as_save_IFS
5413
5414  ;;
5415esac
5416fi
5417vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5418if test -n "$vi_cv_path_tcl"; then
5419  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5420$as_echo "$vi_cv_path_tcl" >&6; }
5421else
5422  { $as_echo "$as_me:$LINENO: result: no" >&5
5423$as_echo "no" >&6; }
5424fi
5425
5426
5427  fi
5428  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
5429    tclsh_name="tclsh8.2"
5430    # Extract the first word of "$tclsh_name", so it can be a program name with args.
5431set dummy $tclsh_name; ac_word=$2
5432{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5433$as_echo_n "checking for $ac_word... " >&6; }
5434if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5435  $as_echo_n "(cached) " >&6
5436else
5437  case $vi_cv_path_tcl in
5438  [\\/]* | ?:[\\/]*)
5439  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5440  ;;
5441  *)
5442  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443for as_dir in $PATH
5444do
5445  IFS=$as_save_IFS
5446  test -z "$as_dir" && as_dir=.
5447  for ac_exec_ext in '' $ac_executable_extensions; do
5448  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5449    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5450    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5451    break 2
5452  fi
5453done
5454done
5455IFS=$as_save_IFS
5456
5457  ;;
5458esac
5459fi
5460vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5461if test -n "$vi_cv_path_tcl"; then
5462  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5463$as_echo "$vi_cv_path_tcl" >&6; }
5464else
5465  { $as_echo "$as_me:$LINENO: result: no" >&5
5466$as_echo "no" >&6; }
5467fi
5468
5469
5470  fi
5471  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
5472    tclsh_name="tclsh8.0"
5473    # Extract the first word of "$tclsh_name", so it can be a program name with args.
5474set dummy $tclsh_name; ac_word=$2
5475{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5476$as_echo_n "checking for $ac_word... " >&6; }
5477if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5478  $as_echo_n "(cached) " >&6
5479else
5480  case $vi_cv_path_tcl in
5481  [\\/]* | ?:[\\/]*)
5482  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5483  ;;
5484  *)
5485  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486for as_dir in $PATH
5487do
5488  IFS=$as_save_IFS
5489  test -z "$as_dir" && as_dir=.
5490  for ac_exec_ext in '' $ac_executable_extensions; do
5491  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5492    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5493    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5494    break 2
5495  fi
5496done
5497done
5498IFS=$as_save_IFS
5499
5500  ;;
5501esac
5502fi
5503vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5504if test -n "$vi_cv_path_tcl"; then
5505  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5506$as_echo "$vi_cv_path_tcl" >&6; }
5507else
5508  { $as_echo "$as_me:$LINENO: result: no" >&5
5509$as_echo "no" >&6; }
5510fi
5511
5512
5513  fi
5514    if test "X$vi_cv_path_tcl" = "X"; then
5515    tclsh_name="tclsh"
5516    # Extract the first word of "$tclsh_name", so it can be a program name with args.
5517set dummy $tclsh_name; ac_word=$2
5518{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5519$as_echo_n "checking for $ac_word... " >&6; }
5520if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5521  $as_echo_n "(cached) " >&6
5522else
5523  case $vi_cv_path_tcl in
5524  [\\/]* | ?:[\\/]*)
5525  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5526  ;;
5527  *)
5528  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529for as_dir in $PATH
5530do
5531  IFS=$as_save_IFS
5532  test -z "$as_dir" && as_dir=.
5533  for ac_exec_ext in '' $ac_executable_extensions; do
5534  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5535    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5536    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5537    break 2
5538  fi
5539done
5540done
5541IFS=$as_save_IFS
5542
5543  ;;
5544esac
5545fi
5546vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5547if test -n "$vi_cv_path_tcl"; then
5548  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5549$as_echo "$vi_cv_path_tcl" >&6; }
5550else
5551  { $as_echo "$as_me:$LINENO: result: no" >&5
5552$as_echo "no" >&6; }
5553fi
5554
5555
5556  fi
5557  if test "X$vi_cv_path_tcl" != "X"; then
5558    { $as_echo "$as_me:$LINENO: checking Tcl version" >&5
5559$as_echo_n "checking Tcl version... " >&6; }
5560    if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
5561      tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
5562      { $as_echo "$as_me:$LINENO: result: $tclver - OK" >&5
5563$as_echo "$tclver - OK" >&6; };
5564      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 -`
5565
5566      { $as_echo "$as_me:$LINENO: checking for location of Tcl include" >&5
5567$as_echo_n "checking for location of Tcl include... " >&6; }
5568      if test "x$MACOSX" != "xyes"; then
5569	tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
5570      else
5571		tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
5572      fi
5573      TCL_INC=
5574      for try in $tclinc; do
5575	if test -f "$try/tcl.h"; then
5576	  { $as_echo "$as_me:$LINENO: result: $try/tcl.h" >&5
5577$as_echo "$try/tcl.h" >&6; }
5578	  TCL_INC=$try
5579	  break
5580	fi
5581      done
5582      if test -z "$TCL_INC"; then
5583	{ $as_echo "$as_me:$LINENO: result: <not found>" >&5
5584$as_echo "<not found>" >&6; }
5585	SKIP_TCL=YES
5586      fi
5587      if test -z "$SKIP_TCL"; then
5588	{ $as_echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
5589$as_echo_n "checking for location of tclConfig.sh script... " >&6; }
5590	if test "x$MACOSX" != "xyes"; then
5591	  tclcnf=`echo $tclinc | sed s/include/lib/g`
5592	  tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
5593	else
5594	  	  tclcnf="/System/Library/Frameworks/Tcl.framework"
5595	fi
5596	for try in $tclcnf; do
5597	  if test -f $try/tclConfig.sh; then
5598	    { $as_echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
5599$as_echo "$try/tclConfig.sh" >&6; }
5600	    . $try/tclConfig.sh
5601	    	    TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
5602	    	    	    TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\\\\ /\\\\X/g' | tr ' ' '\012' | sed -e '/^[^-]/d' -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr '\012' ' ' | sed -e 's/\\\\X/\\\\ /g'`
5603	    break
5604	  fi
5605	done
5606	if test -z "$TCL_LIBS"; then
5607	  { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5608$as_echo "<not found>" >&6; }
5609	  { $as_echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
5610$as_echo_n "checking for Tcl library by myself... " >&6; }
5611	  tcllib=`echo $tclinc | sed s/include/lib/g`
5612	  tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
5613	  for ext in .so .a ; do
5614	    for ver in "" $tclver ; do
5615	      for try in $tcllib ; do
5616		trylib=tcl$ver$ext
5617		if test -f $try/lib$trylib ; then
5618		  { $as_echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
5619$as_echo "$try/lib$trylib" >&6; }
5620		  TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
5621		  if test "`(uname) 2>/dev/null`" = SunOS &&
5622					 uname -r | grep '^5' >/dev/null; then
5623		    TCL_LIBS="$TCL_LIBS -R $try"
5624		  fi
5625		  break 3
5626		fi
5627	      done
5628	    done
5629	  done
5630	  if test -z "$TCL_LIBS"; then
5631	    { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5632$as_echo "<not found>" >&6; }
5633	    SKIP_TCL=YES
5634	  fi
5635	fi
5636	if test -z "$SKIP_TCL"; then
5637	  cat >>confdefs.h <<\_ACEOF
5638#define FEAT_TCL 1
5639_ACEOF
5640
5641	  TCL_SRC=if_tcl.c
5642	  TCL_OBJ=objects/if_tcl.o
5643	  TCL_PRO=if_tcl.pro
5644	  TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
5645	fi
5646      fi
5647    else
5648      { $as_echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
5649$as_echo "too old; need Tcl version 8.0 or later" >&6; }
5650    fi
5651  fi
5652fi
5653
5654
5655
5656
5657
5658
5659{ $as_echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
5660$as_echo_n "checking --enable-rubyinterp argument... " >&6; }
5661# Check whether --enable-rubyinterp was given.
5662if test "${enable_rubyinterp+set}" = set; then
5663  enableval=$enable_rubyinterp;
5664else
5665  enable_rubyinterp="no"
5666fi
5667
5668{ $as_echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
5669$as_echo "$enable_rubyinterp" >&6; }
5670if test "$enable_rubyinterp" = "yes"; then
5671
5672  # Extract the first word of "ruby", so it can be a program name with args.
5673set dummy ruby; ac_word=$2
5674{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5675$as_echo_n "checking for $ac_word... " >&6; }
5676if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
5677  $as_echo_n "(cached) " >&6
5678else
5679  case $vi_cv_path_ruby in
5680  [\\/]* | ?:[\\/]*)
5681  ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
5682  ;;
5683  *)
5684  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685for as_dir in $PATH
5686do
5687  IFS=$as_save_IFS
5688  test -z "$as_dir" && as_dir=.
5689  for ac_exec_ext in '' $ac_executable_extensions; do
5690  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5691    ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
5692    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5693    break 2
5694  fi
5695done
5696done
5697IFS=$as_save_IFS
5698
5699  ;;
5700esac
5701fi
5702vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
5703if test -n "$vi_cv_path_ruby"; then
5704  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
5705$as_echo "$vi_cv_path_ruby" >&6; }
5706else
5707  { $as_echo "$as_me:$LINENO: result: no" >&5
5708$as_echo "no" >&6; }
5709fi
5710
5711
5712  if test "X$vi_cv_path_ruby" != "X"; then
5713    { $as_echo "$as_me:$LINENO: checking Ruby version" >&5
5714$as_echo_n "checking Ruby version... " >&6; }
5715    if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
5716      { $as_echo "$as_me:$LINENO: result: OK" >&5
5717$as_echo "OK" >&6; }
5718      { $as_echo "$as_me:$LINENO: checking Ruby header files" >&5
5719$as_echo_n "checking Ruby header files... " >&6; }
5720      rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
5721      if test "X$rubyhdrdir" != "X"; then
5722	{ $as_echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
5723$as_echo "$rubyhdrdir" >&6; }
5724	RUBY_CFLAGS="-I$rubyhdrdir"
5725	rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
5726	if test "X$rubylibs" != "X"; then
5727	  RUBY_LIBS="$rubylibs"
5728	fi
5729	librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
5730	if test -f "$rubyhdrdir/$librubyarg"; then
5731	  librubyarg="$rubyhdrdir/$librubyarg"
5732	else
5733	  rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
5734	  if test -f "$rubylibdir/$librubyarg"; then
5735	    librubyarg="$rubylibdir/$librubyarg"
5736	  elif test "$librubyarg" = "libruby.a"; then
5737	    	    librubyarg="-lruby"
5738	  else
5739	    librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
5740	  fi
5741	fi
5742
5743	if test "X$librubyarg" != "X"; then
5744	  RUBY_LIBS="$librubyarg $RUBY_LIBS"
5745	fi
5746	rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
5747	if test "X$rubyldflags" != "X"; then
5748	  LDFLAGS="$rubyldflags $LDFLAGS"
5749	fi
5750	RUBY_SRC="if_ruby.c"
5751	RUBY_OBJ="objects/if_ruby.o"
5752	RUBY_PRO="if_ruby.pro"
5753	cat >>confdefs.h <<\_ACEOF
5754#define FEAT_RUBY 1
5755_ACEOF
5756
5757      else
5758	{ $as_echo "$as_me:$LINENO: result: not found" >&5
5759$as_echo "not found" >&6; }
5760      fi
5761    else
5762      { $as_echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
5763$as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
5764    fi
5765  fi
5766fi
5767
5768
5769
5770
5771
5772
5773{ $as_echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
5774$as_echo_n "checking --enable-cscope argument... " >&6; }
5775# Check whether --enable-cscope was given.
5776if test "${enable_cscope+set}" = set; then
5777  enableval=$enable_cscope;
5778else
5779  enable_cscope="no"
5780fi
5781
5782{ $as_echo "$as_me:$LINENO: result: $enable_cscope" >&5
5783$as_echo "$enable_cscope" >&6; }
5784if test "$enable_cscope" = "yes"; then
5785  cat >>confdefs.h <<\_ACEOF
5786#define FEAT_CSCOPE 1
5787_ACEOF
5788
5789fi
5790
5791{ $as_echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
5792$as_echo_n "checking --enable-workshop argument... " >&6; }
5793# Check whether --enable-workshop was given.
5794if test "${enable_workshop+set}" = set; then
5795  enableval=$enable_workshop;
5796else
5797  enable_workshop="no"
5798fi
5799
5800{ $as_echo "$as_me:$LINENO: result: $enable_workshop" >&5
5801$as_echo "$enable_workshop" >&6; }
5802if test "$enable_workshop" = "yes"; then
5803  cat >>confdefs.h <<\_ACEOF
5804#define FEAT_SUN_WORKSHOP 1
5805_ACEOF
5806
5807  WORKSHOP_SRC="workshop.c integration.c"
5808
5809  WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5810
5811  if test "${enable_gui-xxx}" = xxx; then
5812    enable_gui=motif
5813  fi
5814fi
5815
5816{ $as_echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
5817$as_echo_n "checking --disable-netbeans argument... " >&6; }
5818# Check whether --enable-netbeans was given.
5819if test "${enable_netbeans+set}" = set; then
5820  enableval=$enable_netbeans;
5821else
5822  enable_netbeans="yes"
5823fi
5824
5825if test "$enable_netbeans" = "yes"; then
5826  { $as_echo "$as_me:$LINENO: result: no" >&5
5827$as_echo "no" >&6; }
5828
5829{ $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5830$as_echo_n "checking for socket in -lsocket... " >&6; }
5831if test "${ac_cv_lib_socket_socket+set}" = set; then
5832  $as_echo_n "(cached) " >&6
5833else
5834  ac_check_lib_save_LIBS=$LIBS
5835LIBS="-lsocket  $LIBS"
5836cat >conftest.$ac_ext <<_ACEOF
5837/* confdefs.h.  */
5838_ACEOF
5839cat confdefs.h >>conftest.$ac_ext
5840cat >>conftest.$ac_ext <<_ACEOF
5841/* end confdefs.h.  */
5842
5843/* Override any GCC internal prototype to avoid an error.
5844   Use char because int might match the return type of a GCC
5845   builtin and then its argument prototype would still apply.  */
5846#ifdef __cplusplus
5847extern "C"
5848#endif
5849char socket ();
5850int
5851main ()
5852{
5853return socket ();
5854  ;
5855  return 0;
5856}
5857_ACEOF
5858rm -f conftest.$ac_objext conftest$ac_exeext
5859if { (ac_try="$ac_link"
5860case "(($ac_try" in
5861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862  *) ac_try_echo=$ac_try;;
5863esac
5864eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5865$as_echo "$ac_try_echo") >&5
5866  (eval "$ac_link") 2>conftest.er1
5867  ac_status=$?
5868  grep -v '^ *+' conftest.er1 >conftest.err
5869  rm -f conftest.er1
5870  cat conftest.err >&5
5871  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872  (exit $ac_status); } && {
5873	 test -z "$ac_c_werror_flag" ||
5874	 test ! -s conftest.err
5875       } && test -s conftest$ac_exeext && {
5876	 test "$cross_compiling" = yes ||
5877	 $as_test_x conftest$ac_exeext
5878       }; then
5879  ac_cv_lib_socket_socket=yes
5880else
5881  $as_echo "$as_me: failed program was:" >&5
5882sed 's/^/| /' conftest.$ac_ext >&5
5883
5884	ac_cv_lib_socket_socket=no
5885fi
5886
5887rm -rf conftest.dSYM
5888rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5889      conftest$ac_exeext conftest.$ac_ext
5890LIBS=$ac_check_lib_save_LIBS
5891fi
5892{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5893$as_echo "$ac_cv_lib_socket_socket" >&6; }
5894if test $ac_cv_lib_socket_socket = yes; then
5895  cat >>confdefs.h <<_ACEOF
5896#define HAVE_LIBSOCKET 1
5897_ACEOF
5898
5899  LIBS="-lsocket $LIBS"
5900
5901fi
5902
5903
5904{ $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5905$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5906if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5907  $as_echo_n "(cached) " >&6
5908else
5909  ac_check_lib_save_LIBS=$LIBS
5910LIBS="-lnsl  $LIBS"
5911cat >conftest.$ac_ext <<_ACEOF
5912/* confdefs.h.  */
5913_ACEOF
5914cat confdefs.h >>conftest.$ac_ext
5915cat >>conftest.$ac_ext <<_ACEOF
5916/* end confdefs.h.  */
5917
5918/* Override any GCC internal prototype to avoid an error.
5919   Use char because int might match the return type of a GCC
5920   builtin and then its argument prototype would still apply.  */
5921#ifdef __cplusplus
5922extern "C"
5923#endif
5924char gethostbyname ();
5925int
5926main ()
5927{
5928return gethostbyname ();
5929  ;
5930  return 0;
5931}
5932_ACEOF
5933rm -f conftest.$ac_objext conftest$ac_exeext
5934if { (ac_try="$ac_link"
5935case "(($ac_try" in
5936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937  *) ac_try_echo=$ac_try;;
5938esac
5939eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5940$as_echo "$ac_try_echo") >&5
5941  (eval "$ac_link") 2>conftest.er1
5942  ac_status=$?
5943  grep -v '^ *+' conftest.er1 >conftest.err
5944  rm -f conftest.er1
5945  cat conftest.err >&5
5946  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947  (exit $ac_status); } && {
5948	 test -z "$ac_c_werror_flag" ||
5949	 test ! -s conftest.err
5950       } && test -s conftest$ac_exeext && {
5951	 test "$cross_compiling" = yes ||
5952	 $as_test_x conftest$ac_exeext
5953       }; then
5954  ac_cv_lib_nsl_gethostbyname=yes
5955else
5956  $as_echo "$as_me: failed program was:" >&5
5957sed 's/^/| /' conftest.$ac_ext >&5
5958
5959	ac_cv_lib_nsl_gethostbyname=no
5960fi
5961
5962rm -rf conftest.dSYM
5963rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5964      conftest$ac_exeext conftest.$ac_ext
5965LIBS=$ac_check_lib_save_LIBS
5966fi
5967{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5968$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5969if test $ac_cv_lib_nsl_gethostbyname = yes; then
5970  cat >>confdefs.h <<_ACEOF
5971#define HAVE_LIBNSL 1
5972_ACEOF
5973
5974  LIBS="-lnsl $LIBS"
5975
5976fi
5977
5978  { $as_echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
5979$as_echo_n "checking whether compiling netbeans integration is possible... " >&6; }
5980  cat >conftest.$ac_ext <<_ACEOF
5981/* confdefs.h.  */
5982_ACEOF
5983cat confdefs.h >>conftest.$ac_ext
5984cat >>conftest.$ac_ext <<_ACEOF
5985/* end confdefs.h.  */
5986
5987#include <stdio.h>
5988#include <stdlib.h>
5989#include <stdarg.h>
5990#include <fcntl.h>
5991#include <netdb.h>
5992#include <netinet/in.h>
5993#include <errno.h>
5994#include <sys/types.h>
5995#include <sys/socket.h>
5996	/* Check bitfields */
5997	struct nbbuf {
5998	unsigned int  initDone:1;
5999	ushort signmaplen;
6000	};
6001
6002int
6003main ()
6004{
6005
6006		/* Check creating a socket. */
6007		struct sockaddr_in server;
6008		(void)socket(AF_INET, SOCK_STREAM, 0);
6009		(void)htons(100);
6010		(void)gethostbyname("microsoft.com");
6011		if (errno == ECONNREFUSED)
6012		  (void)connect(1, (struct sockaddr *)&server, sizeof(server));
6013
6014  ;
6015  return 0;
6016}
6017_ACEOF
6018rm -f conftest.$ac_objext conftest$ac_exeext
6019if { (ac_try="$ac_link"
6020case "(($ac_try" in
6021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6022  *) ac_try_echo=$ac_try;;
6023esac
6024eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6025$as_echo "$ac_try_echo") >&5
6026  (eval "$ac_link") 2>conftest.er1
6027  ac_status=$?
6028  grep -v '^ *+' conftest.er1 >conftest.err
6029  rm -f conftest.er1
6030  cat conftest.err >&5
6031  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032  (exit $ac_status); } && {
6033	 test -z "$ac_c_werror_flag" ||
6034	 test ! -s conftest.err
6035       } && test -s conftest$ac_exeext && {
6036	 test "$cross_compiling" = yes ||
6037	 $as_test_x conftest$ac_exeext
6038       }; then
6039  { $as_echo "$as_me:$LINENO: result: yes" >&5
6040$as_echo "yes" >&6; }
6041else
6042  $as_echo "$as_me: failed program was:" >&5
6043sed 's/^/| /' conftest.$ac_ext >&5
6044
6045	{ $as_echo "$as_me:$LINENO: result: no" >&5
6046$as_echo "no" >&6; }; enable_netbeans="no"
6047fi
6048
6049rm -rf conftest.dSYM
6050rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6051      conftest$ac_exeext conftest.$ac_ext
6052else
6053  { $as_echo "$as_me:$LINENO: result: yes" >&5
6054$as_echo "yes" >&6; }
6055fi
6056if test "$enable_netbeans" = "yes"; then
6057  cat >>confdefs.h <<\_ACEOF
6058#define FEAT_NETBEANS_INTG 1
6059_ACEOF
6060
6061  NETBEANS_SRC="netbeans.c"
6062
6063  NETBEANS_OBJ="objects/netbeans.o"
6064
6065fi
6066
6067{ $as_echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
6068$as_echo_n "checking --enable-sniff argument... " >&6; }
6069# Check whether --enable-sniff was given.
6070if test "${enable_sniff+set}" = set; then
6071  enableval=$enable_sniff;
6072else
6073  enable_sniff="no"
6074fi
6075
6076{ $as_echo "$as_me:$LINENO: result: $enable_sniff" >&5
6077$as_echo "$enable_sniff" >&6; }
6078if test "$enable_sniff" = "yes"; then
6079  cat >>confdefs.h <<\_ACEOF
6080#define FEAT_SNIFF 1
6081_ACEOF
6082
6083  SNIFF_SRC="if_sniff.c"
6084
6085  SNIFF_OBJ="objects/if_sniff.o"
6086
6087fi
6088
6089{ $as_echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
6090$as_echo_n "checking --enable-multibyte argument... " >&6; }
6091# Check whether --enable-multibyte was given.
6092if test "${enable_multibyte+set}" = set; then
6093  enableval=$enable_multibyte;
6094else
6095  enable_multibyte="no"
6096fi
6097
6098{ $as_echo "$as_me:$LINENO: result: $enable_multibyte" >&5
6099$as_echo "$enable_multibyte" >&6; }
6100if test "$enable_multibyte" = "yes"; then
6101  cat >>confdefs.h <<\_ACEOF
6102#define FEAT_MBYTE 1
6103_ACEOF
6104
6105fi
6106
6107{ $as_echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
6108$as_echo_n "checking --enable-hangulinput argument... " >&6; }
6109# Check whether --enable-hangulinput was given.
6110if test "${enable_hangulinput+set}" = set; then
6111  enableval=$enable_hangulinput;
6112else
6113  enable_hangulinput="no"
6114fi
6115
6116{ $as_echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
6117$as_echo "$enable_hangulinput" >&6; }
6118
6119{ $as_echo "$as_me:$LINENO: checking --enable-xim argument" >&5
6120$as_echo_n "checking --enable-xim argument... " >&6; }
6121# Check whether --enable-xim was given.
6122if test "${enable_xim+set}" = set; then
6123  enableval=$enable_xim; { $as_echo "$as_me:$LINENO: result: $enable_xim" >&5
6124$as_echo "$enable_xim" >&6; }
6125else
6126  enable_xim="auto"; { $as_echo "$as_me:$LINENO: result: defaulting to auto" >&5
6127$as_echo "defaulting to auto" >&6; }
6128fi
6129
6130
6131{ $as_echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
6132$as_echo_n "checking --enable-fontset argument... " >&6; }
6133# Check whether --enable-fontset was given.
6134if test "${enable_fontset+set}" = set; then
6135  enableval=$enable_fontset;
6136else
6137  enable_fontset="no"
6138fi
6139
6140{ $as_echo "$as_me:$LINENO: result: $enable_fontset" >&5
6141$as_echo "$enable_fontset" >&6; }
6142
6143test -z "$with_x" && with_x=yes
6144test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
6145if test "$with_x" = no; then
6146  { $as_echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
6147$as_echo "defaulting to: don't HAVE_X11" >&6; }
6148else
6149
6150  # Extract the first word of "xmkmf", so it can be a program name with args.
6151set dummy xmkmf; ac_word=$2
6152{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6153$as_echo_n "checking for $ac_word... " >&6; }
6154if test "${ac_cv_path_xmkmfpath+set}" = set; then
6155  $as_echo_n "(cached) " >&6
6156else
6157  case $xmkmfpath in
6158  [\\/]* | ?:[\\/]*)
6159  ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
6160  ;;
6161  *)
6162  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163for as_dir in $PATH
6164do
6165  IFS=$as_save_IFS
6166  test -z "$as_dir" && as_dir=.
6167  for ac_exec_ext in '' $ac_executable_extensions; do
6168  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6169    ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
6170    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6171    break 2
6172  fi
6173done
6174done
6175IFS=$as_save_IFS
6176
6177  ;;
6178esac
6179fi
6180xmkmfpath=$ac_cv_path_xmkmfpath
6181if test -n "$xmkmfpath"; then
6182  { $as_echo "$as_me:$LINENO: result: $xmkmfpath" >&5
6183$as_echo "$xmkmfpath" >&6; }
6184else
6185  { $as_echo "$as_me:$LINENO: result: no" >&5
6186$as_echo "no" >&6; }
6187fi
6188
6189
6190
6191  { $as_echo "$as_me:$LINENO: checking for X" >&5
6192$as_echo_n "checking for X... " >&6; }
6193
6194
6195# Check whether --with-x was given.
6196if test "${with_x+set}" = set; then
6197  withval=$with_x;
6198fi
6199
6200# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6201if test "x$with_x" = xno; then
6202  # The user explicitly disabled X.
6203  have_x=disabled
6204else
6205  case $x_includes,$x_libraries in #(
6206    *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
6207$as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
6208   { (exit 1); exit 1; }; };; #(
6209    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
6210  $as_echo_n "(cached) " >&6
6211else
6212  # One or both of the vars are not set, and there is no cached value.
6213ac_x_includes=no ac_x_libraries=no
6214rm -f -r conftest.dir
6215if mkdir conftest.dir; then
6216  cd conftest.dir
6217  cat >Imakefile <<'_ACEOF'
6218incroot:
6219	@echo incroot='${INCROOT}'
6220usrlibdir:
6221	@echo usrlibdir='${USRLIBDIR}'
6222libdir:
6223	@echo libdir='${LIBDIR}'
6224_ACEOF
6225  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6226    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6227    for ac_var in incroot usrlibdir libdir; do
6228      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6229    done
6230    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6231    for ac_extension in a so sl dylib la dll; do
6232      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6233	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6234	ac_im_usrlibdir=$ac_im_libdir; break
6235      fi
6236    done
6237    # Screen out bogus values from the imake configuration.  They are
6238    # bogus both because they are the default anyway, and because
6239    # using them would break gcc on systems where it needs fixed includes.
6240    case $ac_im_incroot in
6241	/usr/include) ac_x_includes= ;;
6242	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6243    esac
6244    case $ac_im_usrlibdir in
6245	/usr/lib | /lib) ;;
6246	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6247    esac
6248  fi
6249  cd ..
6250  rm -f -r conftest.dir
6251fi
6252
6253# Standard set of common directories for X headers.
6254# Check X11 before X11Rn because it is often a symlink to the current release.
6255ac_x_header_dirs='
6256/usr/X11/include
6257/usr/X11R6/include
6258/usr/X11R5/include
6259/usr/X11R4/include
6260
6261/usr/include/X11
6262/usr/include/X11R6
6263/usr/include/X11R5
6264/usr/include/X11R4
6265
6266/usr/local/X11/include
6267/usr/local/X11R6/include
6268/usr/local/X11R5/include
6269/usr/local/X11R4/include
6270
6271/usr/local/include/X11
6272/usr/local/include/X11R6
6273/usr/local/include/X11R5
6274/usr/local/include/X11R4
6275
6276/usr/X386/include
6277/usr/x386/include
6278/usr/XFree86/include/X11
6279
6280/usr/include
6281/usr/local/include
6282/usr/unsupported/include
6283/usr/athena/include
6284/usr/local/x11r5/include
6285/usr/lpp/Xamples/include
6286
6287/usr/openwin/include
6288/usr/openwin/share/include'
6289
6290if test "$ac_x_includes" = no; then
6291  # Guess where to find include files, by looking for Xlib.h.
6292  # First, try using that file with no special directory specified.
6293  cat >conftest.$ac_ext <<_ACEOF
6294/* confdefs.h.  */
6295_ACEOF
6296cat confdefs.h >>conftest.$ac_ext
6297cat >>conftest.$ac_ext <<_ACEOF
6298/* end confdefs.h.  */
6299#include <X11/Xlib.h>
6300_ACEOF
6301if { (ac_try="$ac_cpp conftest.$ac_ext"
6302case "(($ac_try" in
6303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6304  *) ac_try_echo=$ac_try;;
6305esac
6306eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6307$as_echo "$ac_try_echo") >&5
6308  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6309  ac_status=$?
6310  grep -v '^ *+' conftest.er1 >conftest.err
6311  rm -f conftest.er1
6312  cat conftest.err >&5
6313  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314  (exit $ac_status); } >/dev/null && {
6315	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6316	 test ! -s conftest.err
6317       }; then
6318  # We can compile using X headers with no special include directory.
6319ac_x_includes=
6320else
6321  $as_echo "$as_me: failed program was:" >&5
6322sed 's/^/| /' conftest.$ac_ext >&5
6323
6324  for ac_dir in $ac_x_header_dirs; do
6325  if test -r "$ac_dir/X11/Xlib.h"; then
6326    ac_x_includes=$ac_dir
6327    break
6328  fi
6329done
6330fi
6331
6332rm -f conftest.err conftest.$ac_ext
6333fi # $ac_x_includes = no
6334
6335if test "$ac_x_libraries" = no; then
6336  # Check for the libraries.
6337  # See if we find them without any special options.
6338  # Don't add to $LIBS permanently.
6339  ac_save_LIBS=$LIBS
6340  LIBS="-lX11 $LIBS"
6341  cat >conftest.$ac_ext <<_ACEOF
6342/* confdefs.h.  */
6343_ACEOF
6344cat confdefs.h >>conftest.$ac_ext
6345cat >>conftest.$ac_ext <<_ACEOF
6346/* end confdefs.h.  */
6347#include <X11/Xlib.h>
6348int
6349main ()
6350{
6351XrmInitialize ()
6352  ;
6353  return 0;
6354}
6355_ACEOF
6356rm -f conftest.$ac_objext conftest$ac_exeext
6357if { (ac_try="$ac_link"
6358case "(($ac_try" in
6359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6360  *) ac_try_echo=$ac_try;;
6361esac
6362eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6363$as_echo "$ac_try_echo") >&5
6364  (eval "$ac_link") 2>conftest.er1
6365  ac_status=$?
6366  grep -v '^ *+' conftest.er1 >conftest.err
6367  rm -f conftest.er1
6368  cat conftest.err >&5
6369  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370  (exit $ac_status); } && {
6371	 test -z "$ac_c_werror_flag" ||
6372	 test ! -s conftest.err
6373       } && test -s conftest$ac_exeext && {
6374	 test "$cross_compiling" = yes ||
6375	 $as_test_x conftest$ac_exeext
6376       }; then
6377  LIBS=$ac_save_LIBS
6378# We can link X programs with no special library path.
6379ac_x_libraries=
6380else
6381  $as_echo "$as_me: failed program was:" >&5
6382sed 's/^/| /' conftest.$ac_ext >&5
6383
6384	LIBS=$ac_save_LIBS
6385for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6386do
6387  # Don't even attempt the hair of trying to link an X program!
6388  for ac_extension in a so sl dylib la dll; do
6389    if test -r "$ac_dir/libX11.$ac_extension"; then
6390      ac_x_libraries=$ac_dir
6391      break 2
6392    fi
6393  done
6394done
6395fi
6396
6397rm -rf conftest.dSYM
6398rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6399      conftest$ac_exeext conftest.$ac_ext
6400fi # $ac_x_libraries = no
6401
6402case $ac_x_includes,$ac_x_libraries in #(
6403  no,* | *,no | *\'*)
6404    # Didn't find X, or a directory has "'" in its name.
6405    ac_cv_have_x="have_x=no";; #(
6406  *)
6407    # Record where we found X for the cache.
6408    ac_cv_have_x="have_x=yes\
6409	ac_x_includes='$ac_x_includes'\
6410	ac_x_libraries='$ac_x_libraries'"
6411esac
6412fi
6413;; #(
6414    *) have_x=yes;;
6415  esac
6416  eval "$ac_cv_have_x"
6417fi # $with_x != no
6418
6419if test "$have_x" != yes; then
6420  { $as_echo "$as_me:$LINENO: result: $have_x" >&5
6421$as_echo "$have_x" >&6; }
6422  no_x=yes
6423else
6424  # If each of the values was on the command line, it overrides each guess.
6425  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6426  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6427  # Update the cache value to reflect the command line values.
6428  ac_cv_have_x="have_x=yes\
6429	ac_x_includes='$x_includes'\
6430	ac_x_libraries='$x_libraries'"
6431  { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6432$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6433fi
6434
6435if test "$no_x" = yes; then
6436  # Not all programs may use this symbol, but it does not hurt to define it.
6437
6438cat >>confdefs.h <<\_ACEOF
6439#define X_DISPLAY_MISSING 1
6440_ACEOF
6441
6442  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6443else
6444  if test -n "$x_includes"; then
6445    X_CFLAGS="$X_CFLAGS -I$x_includes"
6446  fi
6447
6448  # It would also be nice to do this for all -L options, not just this one.
6449  if test -n "$x_libraries"; then
6450    X_LIBS="$X_LIBS -L$x_libraries"
6451    # For Solaris; some versions of Sun CC require a space after -R and
6452    # others require no space.  Words are not sufficient . . . .
6453    { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6454$as_echo_n "checking whether -R must be followed by a space... " >&6; }
6455    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6456    ac_xsave_c_werror_flag=$ac_c_werror_flag
6457    ac_c_werror_flag=yes
6458    cat >conftest.$ac_ext <<_ACEOF
6459/* confdefs.h.  */
6460_ACEOF
6461cat confdefs.h >>conftest.$ac_ext
6462cat >>conftest.$ac_ext <<_ACEOF
6463/* end confdefs.h.  */
6464
6465int
6466main ()
6467{
6468
6469  ;
6470  return 0;
6471}
6472_ACEOF
6473rm -f conftest.$ac_objext conftest$ac_exeext
6474if { (ac_try="$ac_link"
6475case "(($ac_try" in
6476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6477  *) ac_try_echo=$ac_try;;
6478esac
6479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6480$as_echo "$ac_try_echo") >&5
6481  (eval "$ac_link") 2>conftest.er1
6482  ac_status=$?
6483  grep -v '^ *+' conftest.er1 >conftest.err
6484  rm -f conftest.er1
6485  cat conftest.err >&5
6486  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487  (exit $ac_status); } && {
6488	 test -z "$ac_c_werror_flag" ||
6489	 test ! -s conftest.err
6490       } && test -s conftest$ac_exeext && {
6491	 test "$cross_compiling" = yes ||
6492	 $as_test_x conftest$ac_exeext
6493       }; then
6494  { $as_echo "$as_me:$LINENO: result: no" >&5
6495$as_echo "no" >&6; }
6496       X_LIBS="$X_LIBS -R$x_libraries"
6497else
6498  $as_echo "$as_me: failed program was:" >&5
6499sed 's/^/| /' conftest.$ac_ext >&5
6500
6501	LIBS="$ac_xsave_LIBS -R $x_libraries"
6502       cat >conftest.$ac_ext <<_ACEOF
6503/* confdefs.h.  */
6504_ACEOF
6505cat confdefs.h >>conftest.$ac_ext
6506cat >>conftest.$ac_ext <<_ACEOF
6507/* end confdefs.h.  */
6508
6509int
6510main ()
6511{
6512
6513  ;
6514  return 0;
6515}
6516_ACEOF
6517rm -f conftest.$ac_objext conftest$ac_exeext
6518if { (ac_try="$ac_link"
6519case "(($ac_try" in
6520  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6521  *) ac_try_echo=$ac_try;;
6522esac
6523eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6524$as_echo "$ac_try_echo") >&5
6525  (eval "$ac_link") 2>conftest.er1
6526  ac_status=$?
6527  grep -v '^ *+' conftest.er1 >conftest.err
6528  rm -f conftest.er1
6529  cat conftest.err >&5
6530  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531  (exit $ac_status); } && {
6532	 test -z "$ac_c_werror_flag" ||
6533	 test ! -s conftest.err
6534       } && test -s conftest$ac_exeext && {
6535	 test "$cross_compiling" = yes ||
6536	 $as_test_x conftest$ac_exeext
6537       }; then
6538  { $as_echo "$as_me:$LINENO: result: yes" >&5
6539$as_echo "yes" >&6; }
6540	  X_LIBS="$X_LIBS -R $x_libraries"
6541else
6542  $as_echo "$as_me: failed program was:" >&5
6543sed 's/^/| /' conftest.$ac_ext >&5
6544
6545	{ $as_echo "$as_me:$LINENO: result: neither works" >&5
6546$as_echo "neither works" >&6; }
6547fi
6548
6549rm -rf conftest.dSYM
6550rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6551      conftest$ac_exeext conftest.$ac_ext
6552fi
6553
6554rm -rf conftest.dSYM
6555rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6556      conftest$ac_exeext conftest.$ac_ext
6557    ac_c_werror_flag=$ac_xsave_c_werror_flag
6558    LIBS=$ac_xsave_LIBS
6559  fi
6560
6561  # Check for system-dependent libraries X programs must link with.
6562  # Do this before checking for the system-independent R6 libraries
6563  # (-lICE), since we may need -lsocket or whatever for X linking.
6564
6565  if test "$ISC" = yes; then
6566    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6567  else
6568    # Martyn Johnson says this is needed for Ultrix, if the X
6569    # libraries were built with DECnet support.  And Karl Berry says
6570    # the Alpha needs dnet_stub (dnet does not exist).
6571    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6572    cat >conftest.$ac_ext <<_ACEOF
6573/* confdefs.h.  */
6574_ACEOF
6575cat confdefs.h >>conftest.$ac_ext
6576cat >>conftest.$ac_ext <<_ACEOF
6577/* end confdefs.h.  */
6578
6579/* Override any GCC internal prototype to avoid an error.
6580   Use char because int might match the return type of a GCC
6581   builtin and then its argument prototype would still apply.  */
6582#ifdef __cplusplus
6583extern "C"
6584#endif
6585char XOpenDisplay ();
6586int
6587main ()
6588{
6589return XOpenDisplay ();
6590  ;
6591  return 0;
6592}
6593_ACEOF
6594rm -f conftest.$ac_objext conftest$ac_exeext
6595if { (ac_try="$ac_link"
6596case "(($ac_try" in
6597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6598  *) ac_try_echo=$ac_try;;
6599esac
6600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6601$as_echo "$ac_try_echo") >&5
6602  (eval "$ac_link") 2>conftest.er1
6603  ac_status=$?
6604  grep -v '^ *+' conftest.er1 >conftest.err
6605  rm -f conftest.er1
6606  cat conftest.err >&5
6607  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608  (exit $ac_status); } && {
6609	 test -z "$ac_c_werror_flag" ||
6610	 test ! -s conftest.err
6611       } && test -s conftest$ac_exeext && {
6612	 test "$cross_compiling" = yes ||
6613	 $as_test_x conftest$ac_exeext
6614       }; then
6615  :
6616else
6617  $as_echo "$as_me: failed program was:" >&5
6618sed 's/^/| /' conftest.$ac_ext >&5
6619
6620	{ $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6621$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6622if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6623  $as_echo_n "(cached) " >&6
6624else
6625  ac_check_lib_save_LIBS=$LIBS
6626LIBS="-ldnet  $LIBS"
6627cat >conftest.$ac_ext <<_ACEOF
6628/* confdefs.h.  */
6629_ACEOF
6630cat confdefs.h >>conftest.$ac_ext
6631cat >>conftest.$ac_ext <<_ACEOF
6632/* end confdefs.h.  */
6633
6634/* Override any GCC internal prototype to avoid an error.
6635   Use char because int might match the return type of a GCC
6636   builtin and then its argument prototype would still apply.  */
6637#ifdef __cplusplus
6638extern "C"
6639#endif
6640char dnet_ntoa ();
6641int
6642main ()
6643{
6644return dnet_ntoa ();
6645  ;
6646  return 0;
6647}
6648_ACEOF
6649rm -f conftest.$ac_objext conftest$ac_exeext
6650if { (ac_try="$ac_link"
6651case "(($ac_try" in
6652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6653  *) ac_try_echo=$ac_try;;
6654esac
6655eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6656$as_echo "$ac_try_echo") >&5
6657  (eval "$ac_link") 2>conftest.er1
6658  ac_status=$?
6659  grep -v '^ *+' conftest.er1 >conftest.err
6660  rm -f conftest.er1
6661  cat conftest.err >&5
6662  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663  (exit $ac_status); } && {
6664	 test -z "$ac_c_werror_flag" ||
6665	 test ! -s conftest.err
6666       } && test -s conftest$ac_exeext && {
6667	 test "$cross_compiling" = yes ||
6668	 $as_test_x conftest$ac_exeext
6669       }; then
6670  ac_cv_lib_dnet_dnet_ntoa=yes
6671else
6672  $as_echo "$as_me: failed program was:" >&5
6673sed 's/^/| /' conftest.$ac_ext >&5
6674
6675	ac_cv_lib_dnet_dnet_ntoa=no
6676fi
6677
6678rm -rf conftest.dSYM
6679rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6680      conftest$ac_exeext conftest.$ac_ext
6681LIBS=$ac_check_lib_save_LIBS
6682fi
6683{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6684$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6685if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6686  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6687fi
6688
6689    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6690      { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6691$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6692if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6693  $as_echo_n "(cached) " >&6
6694else
6695  ac_check_lib_save_LIBS=$LIBS
6696LIBS="-ldnet_stub  $LIBS"
6697cat >conftest.$ac_ext <<_ACEOF
6698/* confdefs.h.  */
6699_ACEOF
6700cat confdefs.h >>conftest.$ac_ext
6701cat >>conftest.$ac_ext <<_ACEOF
6702/* end confdefs.h.  */
6703
6704/* Override any GCC internal prototype to avoid an error.
6705   Use char because int might match the return type of a GCC
6706   builtin and then its argument prototype would still apply.  */
6707#ifdef __cplusplus
6708extern "C"
6709#endif
6710char dnet_ntoa ();
6711int
6712main ()
6713{
6714return dnet_ntoa ();
6715  ;
6716  return 0;
6717}
6718_ACEOF
6719rm -f conftest.$ac_objext conftest$ac_exeext
6720if { (ac_try="$ac_link"
6721case "(($ac_try" in
6722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6723  *) ac_try_echo=$ac_try;;
6724esac
6725eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6726$as_echo "$ac_try_echo") >&5
6727  (eval "$ac_link") 2>conftest.er1
6728  ac_status=$?
6729  grep -v '^ *+' conftest.er1 >conftest.err
6730  rm -f conftest.er1
6731  cat conftest.err >&5
6732  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733  (exit $ac_status); } && {
6734	 test -z "$ac_c_werror_flag" ||
6735	 test ! -s conftest.err
6736       } && test -s conftest$ac_exeext && {
6737	 test "$cross_compiling" = yes ||
6738	 $as_test_x conftest$ac_exeext
6739       }; then
6740  ac_cv_lib_dnet_stub_dnet_ntoa=yes
6741else
6742  $as_echo "$as_me: failed program was:" >&5
6743sed 's/^/| /' conftest.$ac_ext >&5
6744
6745	ac_cv_lib_dnet_stub_dnet_ntoa=no
6746fi
6747
6748rm -rf conftest.dSYM
6749rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6750      conftest$ac_exeext conftest.$ac_ext
6751LIBS=$ac_check_lib_save_LIBS
6752fi
6753{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6754$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6755if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6756  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6757fi
6758
6759    fi
6760fi
6761
6762rm -rf conftest.dSYM
6763rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6764      conftest$ac_exeext conftest.$ac_ext
6765    LIBS="$ac_xsave_LIBS"
6766
6767    # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
6768    # to get the SysV transport functions.
6769    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6770    # needs -lnsl.
6771    # The nsl library prevents programs from opening the X display
6772    # on Irix 5.2, according to T.E. Dickey.
6773    # The functions gethostbyname, getservbyname, and inet_addr are
6774    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6775    { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
6776$as_echo_n "checking for gethostbyname... " >&6; }
6777if test "${ac_cv_func_gethostbyname+set}" = set; then
6778  $as_echo_n "(cached) " >&6
6779else
6780  cat >conftest.$ac_ext <<_ACEOF
6781/* confdefs.h.  */
6782_ACEOF
6783cat confdefs.h >>conftest.$ac_ext
6784cat >>conftest.$ac_ext <<_ACEOF
6785/* end confdefs.h.  */
6786/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6787   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6788#define gethostbyname innocuous_gethostbyname
6789
6790/* System header to define __stub macros and hopefully few prototypes,
6791    which can conflict with char gethostbyname (); below.
6792    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6793    <limits.h> exists even on freestanding compilers.  */
6794
6795#ifdef __STDC__
6796# include <limits.h>
6797#else
6798# include <assert.h>
6799#endif
6800
6801#undef gethostbyname
6802
6803/* Override any GCC internal prototype to avoid an error.
6804   Use char because int might match the return type of a GCC
6805   builtin and then its argument prototype would still apply.  */
6806#ifdef __cplusplus
6807extern "C"
6808#endif
6809char gethostbyname ();
6810/* The GNU C library defines this for functions which it implements
6811    to always fail with ENOSYS.  Some functions are actually named
6812    something starting with __ and the normal name is an alias.  */
6813#if defined __stub_gethostbyname || defined __stub___gethostbyname
6814choke me
6815#endif
6816
6817int
6818main ()
6819{
6820return gethostbyname ();
6821  ;
6822  return 0;
6823}
6824_ACEOF
6825rm -f conftest.$ac_objext conftest$ac_exeext
6826if { (ac_try="$ac_link"
6827case "(($ac_try" in
6828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6829  *) ac_try_echo=$ac_try;;
6830esac
6831eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6832$as_echo "$ac_try_echo") >&5
6833  (eval "$ac_link") 2>conftest.er1
6834  ac_status=$?
6835  grep -v '^ *+' conftest.er1 >conftest.err
6836  rm -f conftest.er1
6837  cat conftest.err >&5
6838  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839  (exit $ac_status); } && {
6840	 test -z "$ac_c_werror_flag" ||
6841	 test ! -s conftest.err
6842       } && test -s conftest$ac_exeext && {
6843	 test "$cross_compiling" = yes ||
6844	 $as_test_x conftest$ac_exeext
6845       }; then
6846  ac_cv_func_gethostbyname=yes
6847else
6848  $as_echo "$as_me: failed program was:" >&5
6849sed 's/^/| /' conftest.$ac_ext >&5
6850
6851	ac_cv_func_gethostbyname=no
6852fi
6853
6854rm -rf conftest.dSYM
6855rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6856      conftest$ac_exeext conftest.$ac_ext
6857fi
6858{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6859$as_echo "$ac_cv_func_gethostbyname" >&6; }
6860
6861    if test $ac_cv_func_gethostbyname = no; then
6862      { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6863$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6864if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6865  $as_echo_n "(cached) " >&6
6866else
6867  ac_check_lib_save_LIBS=$LIBS
6868LIBS="-lnsl  $LIBS"
6869cat >conftest.$ac_ext <<_ACEOF
6870/* confdefs.h.  */
6871_ACEOF
6872cat confdefs.h >>conftest.$ac_ext
6873cat >>conftest.$ac_ext <<_ACEOF
6874/* end confdefs.h.  */
6875
6876/* Override any GCC internal prototype to avoid an error.
6877   Use char because int might match the return type of a GCC
6878   builtin and then its argument prototype would still apply.  */
6879#ifdef __cplusplus
6880extern "C"
6881#endif
6882char gethostbyname ();
6883int
6884main ()
6885{
6886return gethostbyname ();
6887  ;
6888  return 0;
6889}
6890_ACEOF
6891rm -f conftest.$ac_objext conftest$ac_exeext
6892if { (ac_try="$ac_link"
6893case "(($ac_try" in
6894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6895  *) ac_try_echo=$ac_try;;
6896esac
6897eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6898$as_echo "$ac_try_echo") >&5
6899  (eval "$ac_link") 2>conftest.er1
6900  ac_status=$?
6901  grep -v '^ *+' conftest.er1 >conftest.err
6902  rm -f conftest.er1
6903  cat conftest.err >&5
6904  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905  (exit $ac_status); } && {
6906	 test -z "$ac_c_werror_flag" ||
6907	 test ! -s conftest.err
6908       } && test -s conftest$ac_exeext && {
6909	 test "$cross_compiling" = yes ||
6910	 $as_test_x conftest$ac_exeext
6911       }; then
6912  ac_cv_lib_nsl_gethostbyname=yes
6913else
6914  $as_echo "$as_me: failed program was:" >&5
6915sed 's/^/| /' conftest.$ac_ext >&5
6916
6917	ac_cv_lib_nsl_gethostbyname=no
6918fi
6919
6920rm -rf conftest.dSYM
6921rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6922      conftest$ac_exeext conftest.$ac_ext
6923LIBS=$ac_check_lib_save_LIBS
6924fi
6925{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6926$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6927if test $ac_cv_lib_nsl_gethostbyname = yes; then
6928  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6929fi
6930
6931      if test $ac_cv_lib_nsl_gethostbyname = no; then
6932	{ $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6933$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6934if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6935  $as_echo_n "(cached) " >&6
6936else
6937  ac_check_lib_save_LIBS=$LIBS
6938LIBS="-lbsd  $LIBS"
6939cat >conftest.$ac_ext <<_ACEOF
6940/* confdefs.h.  */
6941_ACEOF
6942cat confdefs.h >>conftest.$ac_ext
6943cat >>conftest.$ac_ext <<_ACEOF
6944/* end confdefs.h.  */
6945
6946/* Override any GCC internal prototype to avoid an error.
6947   Use char because int might match the return type of a GCC
6948   builtin and then its argument prototype would still apply.  */
6949#ifdef __cplusplus
6950extern "C"
6951#endif
6952char gethostbyname ();
6953int
6954main ()
6955{
6956return gethostbyname ();
6957  ;
6958  return 0;
6959}
6960_ACEOF
6961rm -f conftest.$ac_objext conftest$ac_exeext
6962if { (ac_try="$ac_link"
6963case "(($ac_try" in
6964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6965  *) ac_try_echo=$ac_try;;
6966esac
6967eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6968$as_echo "$ac_try_echo") >&5
6969  (eval "$ac_link") 2>conftest.er1
6970  ac_status=$?
6971  grep -v '^ *+' conftest.er1 >conftest.err
6972  rm -f conftest.er1
6973  cat conftest.err >&5
6974  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975  (exit $ac_status); } && {
6976	 test -z "$ac_c_werror_flag" ||
6977	 test ! -s conftest.err
6978       } && test -s conftest$ac_exeext && {
6979	 test "$cross_compiling" = yes ||
6980	 $as_test_x conftest$ac_exeext
6981       }; then
6982  ac_cv_lib_bsd_gethostbyname=yes
6983else
6984  $as_echo "$as_me: failed program was:" >&5
6985sed 's/^/| /' conftest.$ac_ext >&5
6986
6987	ac_cv_lib_bsd_gethostbyname=no
6988fi
6989
6990rm -rf conftest.dSYM
6991rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6992      conftest$ac_exeext conftest.$ac_ext
6993LIBS=$ac_check_lib_save_LIBS
6994fi
6995{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6996$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
6997if test $ac_cv_lib_bsd_gethostbyname = yes; then
6998  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6999fi
7000
7001      fi
7002    fi
7003
7004    # [email protected] says without -lsocket,
7005    # socket/setsockopt and other routines are undefined under SCO ODT
7006    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7007    # on later versions), says Simon Leinen: it contains gethostby*
7008    # variants that don't use the name server (or something).  -lsocket
7009    # must be given before -lnsl if both are needed.  We assume that
7010    # if connect needs -lnsl, so does gethostbyname.
7011    { $as_echo "$as_me:$LINENO: checking for connect" >&5
7012$as_echo_n "checking for connect... " >&6; }
7013if test "${ac_cv_func_connect+set}" = set; then
7014  $as_echo_n "(cached) " >&6
7015else
7016  cat >conftest.$ac_ext <<_ACEOF
7017/* confdefs.h.  */
7018_ACEOF
7019cat confdefs.h >>conftest.$ac_ext
7020cat >>conftest.$ac_ext <<_ACEOF
7021/* end confdefs.h.  */
7022/* Define connect to an innocuous variant, in case <limits.h> declares connect.
7023   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7024#define connect innocuous_connect
7025
7026/* System header to define __stub macros and hopefully few prototypes,
7027    which can conflict with char connect (); below.
7028    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7029    <limits.h> exists even on freestanding compilers.  */
7030
7031#ifdef __STDC__
7032# include <limits.h>
7033#else
7034# include <assert.h>
7035#endif
7036
7037#undef connect
7038
7039/* Override any GCC internal prototype to avoid an error.
7040   Use char because int might match the return type of a GCC
7041   builtin and then its argument prototype would still apply.  */
7042#ifdef __cplusplus
7043extern "C"
7044#endif
7045char connect ();
7046/* The GNU C library defines this for functions which it implements
7047    to always fail with ENOSYS.  Some functions are actually named
7048    something starting with __ and the normal name is an alias.  */
7049#if defined __stub_connect || defined __stub___connect
7050choke me
7051#endif
7052
7053int
7054main ()
7055{
7056return connect ();
7057  ;
7058  return 0;
7059}
7060_ACEOF
7061rm -f conftest.$ac_objext conftest$ac_exeext
7062if { (ac_try="$ac_link"
7063case "(($ac_try" in
7064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7065  *) ac_try_echo=$ac_try;;
7066esac
7067eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7068$as_echo "$ac_try_echo") >&5
7069  (eval "$ac_link") 2>conftest.er1
7070  ac_status=$?
7071  grep -v '^ *+' conftest.er1 >conftest.err
7072  rm -f conftest.er1
7073  cat conftest.err >&5
7074  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075  (exit $ac_status); } && {
7076	 test -z "$ac_c_werror_flag" ||
7077	 test ! -s conftest.err
7078       } && test -s conftest$ac_exeext && {
7079	 test "$cross_compiling" = yes ||
7080	 $as_test_x conftest$ac_exeext
7081       }; then
7082  ac_cv_func_connect=yes
7083else
7084  $as_echo "$as_me: failed program was:" >&5
7085sed 's/^/| /' conftest.$ac_ext >&5
7086
7087	ac_cv_func_connect=no
7088fi
7089
7090rm -rf conftest.dSYM
7091rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7092      conftest$ac_exeext conftest.$ac_ext
7093fi
7094{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7095$as_echo "$ac_cv_func_connect" >&6; }
7096
7097    if test $ac_cv_func_connect = no; then
7098      { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7099$as_echo_n "checking for connect in -lsocket... " >&6; }
7100if test "${ac_cv_lib_socket_connect+set}" = set; then
7101  $as_echo_n "(cached) " >&6
7102else
7103  ac_check_lib_save_LIBS=$LIBS
7104LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7105cat >conftest.$ac_ext <<_ACEOF
7106/* confdefs.h.  */
7107_ACEOF
7108cat confdefs.h >>conftest.$ac_ext
7109cat >>conftest.$ac_ext <<_ACEOF
7110/* end confdefs.h.  */
7111
7112/* Override any GCC internal prototype to avoid an error.
7113   Use char because int might match the return type of a GCC
7114   builtin and then its argument prototype would still apply.  */
7115#ifdef __cplusplus
7116extern "C"
7117#endif
7118char connect ();
7119int
7120main ()
7121{
7122return connect ();
7123  ;
7124  return 0;
7125}
7126_ACEOF
7127rm -f conftest.$ac_objext conftest$ac_exeext
7128if { (ac_try="$ac_link"
7129case "(($ac_try" in
7130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7131  *) ac_try_echo=$ac_try;;
7132esac
7133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7134$as_echo "$ac_try_echo") >&5
7135  (eval "$ac_link") 2>conftest.er1
7136  ac_status=$?
7137  grep -v '^ *+' conftest.er1 >conftest.err
7138  rm -f conftest.er1
7139  cat conftest.err >&5
7140  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141  (exit $ac_status); } && {
7142	 test -z "$ac_c_werror_flag" ||
7143	 test ! -s conftest.err
7144       } && test -s conftest$ac_exeext && {
7145	 test "$cross_compiling" = yes ||
7146	 $as_test_x conftest$ac_exeext
7147       }; then
7148  ac_cv_lib_socket_connect=yes
7149else
7150  $as_echo "$as_me: failed program was:" >&5
7151sed 's/^/| /' conftest.$ac_ext >&5
7152
7153	ac_cv_lib_socket_connect=no
7154fi
7155
7156rm -rf conftest.dSYM
7157rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7158      conftest$ac_exeext conftest.$ac_ext
7159LIBS=$ac_check_lib_save_LIBS
7160fi
7161{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7162$as_echo "$ac_cv_lib_socket_connect" >&6; }
7163if test $ac_cv_lib_socket_connect = yes; then
7164  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7165fi
7166
7167    fi
7168
7169    # Guillermo Gomez says -lposix is necessary on A/UX.
7170    { $as_echo "$as_me:$LINENO: checking for remove" >&5
7171$as_echo_n "checking for remove... " >&6; }
7172if test "${ac_cv_func_remove+set}" = set; then
7173  $as_echo_n "(cached) " >&6
7174else
7175  cat >conftest.$ac_ext <<_ACEOF
7176/* confdefs.h.  */
7177_ACEOF
7178cat confdefs.h >>conftest.$ac_ext
7179cat >>conftest.$ac_ext <<_ACEOF
7180/* end confdefs.h.  */
7181/* Define remove to an innocuous variant, in case <limits.h> declares remove.
7182   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7183#define remove innocuous_remove
7184
7185/* System header to define __stub macros and hopefully few prototypes,
7186    which can conflict with char remove (); below.
7187    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7188    <limits.h> exists even on freestanding compilers.  */
7189
7190#ifdef __STDC__
7191# include <limits.h>
7192#else
7193# include <assert.h>
7194#endif
7195
7196#undef remove
7197
7198/* Override any GCC internal prototype to avoid an error.
7199   Use char because int might match the return type of a GCC
7200   builtin and then its argument prototype would still apply.  */
7201#ifdef __cplusplus
7202extern "C"
7203#endif
7204char remove ();
7205/* The GNU C library defines this for functions which it implements
7206    to always fail with ENOSYS.  Some functions are actually named
7207    something starting with __ and the normal name is an alias.  */
7208#if defined __stub_remove || defined __stub___remove
7209choke me
7210#endif
7211
7212int
7213main ()
7214{
7215return remove ();
7216  ;
7217  return 0;
7218}
7219_ACEOF
7220rm -f conftest.$ac_objext conftest$ac_exeext
7221if { (ac_try="$ac_link"
7222case "(($ac_try" in
7223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7224  *) ac_try_echo=$ac_try;;
7225esac
7226eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7227$as_echo "$ac_try_echo") >&5
7228  (eval "$ac_link") 2>conftest.er1
7229  ac_status=$?
7230  grep -v '^ *+' conftest.er1 >conftest.err
7231  rm -f conftest.er1
7232  cat conftest.err >&5
7233  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234  (exit $ac_status); } && {
7235	 test -z "$ac_c_werror_flag" ||
7236	 test ! -s conftest.err
7237       } && test -s conftest$ac_exeext && {
7238	 test "$cross_compiling" = yes ||
7239	 $as_test_x conftest$ac_exeext
7240       }; then
7241  ac_cv_func_remove=yes
7242else
7243  $as_echo "$as_me: failed program was:" >&5
7244sed 's/^/| /' conftest.$ac_ext >&5
7245
7246	ac_cv_func_remove=no
7247fi
7248
7249rm -rf conftest.dSYM
7250rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7251      conftest$ac_exeext conftest.$ac_ext
7252fi
7253{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7254$as_echo "$ac_cv_func_remove" >&6; }
7255
7256    if test $ac_cv_func_remove = no; then
7257      { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7258$as_echo_n "checking for remove in -lposix... " >&6; }
7259if test "${ac_cv_lib_posix_remove+set}" = set; then
7260  $as_echo_n "(cached) " >&6
7261else
7262  ac_check_lib_save_LIBS=$LIBS
7263LIBS="-lposix  $LIBS"
7264cat >conftest.$ac_ext <<_ACEOF
7265/* confdefs.h.  */
7266_ACEOF
7267cat confdefs.h >>conftest.$ac_ext
7268cat >>conftest.$ac_ext <<_ACEOF
7269/* end confdefs.h.  */
7270
7271/* Override any GCC internal prototype to avoid an error.
7272   Use char because int might match the return type of a GCC
7273   builtin and then its argument prototype would still apply.  */
7274#ifdef __cplusplus
7275extern "C"
7276#endif
7277char remove ();
7278int
7279main ()
7280{
7281return remove ();
7282  ;
7283  return 0;
7284}
7285_ACEOF
7286rm -f conftest.$ac_objext conftest$ac_exeext
7287if { (ac_try="$ac_link"
7288case "(($ac_try" in
7289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7290  *) ac_try_echo=$ac_try;;
7291esac
7292eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7293$as_echo "$ac_try_echo") >&5
7294  (eval "$ac_link") 2>conftest.er1
7295  ac_status=$?
7296  grep -v '^ *+' conftest.er1 >conftest.err
7297  rm -f conftest.er1
7298  cat conftest.err >&5
7299  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300  (exit $ac_status); } && {
7301	 test -z "$ac_c_werror_flag" ||
7302	 test ! -s conftest.err
7303       } && test -s conftest$ac_exeext && {
7304	 test "$cross_compiling" = yes ||
7305	 $as_test_x conftest$ac_exeext
7306       }; then
7307  ac_cv_lib_posix_remove=yes
7308else
7309  $as_echo "$as_me: failed program was:" >&5
7310sed 's/^/| /' conftest.$ac_ext >&5
7311
7312	ac_cv_lib_posix_remove=no
7313fi
7314
7315rm -rf conftest.dSYM
7316rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7317      conftest$ac_exeext conftest.$ac_ext
7318LIBS=$ac_check_lib_save_LIBS
7319fi
7320{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7321$as_echo "$ac_cv_lib_posix_remove" >&6; }
7322if test $ac_cv_lib_posix_remove = yes; then
7323  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7324fi
7325
7326    fi
7327
7328    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7329    { $as_echo "$as_me:$LINENO: checking for shmat" >&5
7330$as_echo_n "checking for shmat... " >&6; }
7331if test "${ac_cv_func_shmat+set}" = set; then
7332  $as_echo_n "(cached) " >&6
7333else
7334  cat >conftest.$ac_ext <<_ACEOF
7335/* confdefs.h.  */
7336_ACEOF
7337cat confdefs.h >>conftest.$ac_ext
7338cat >>conftest.$ac_ext <<_ACEOF
7339/* end confdefs.h.  */
7340/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7341   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7342#define shmat innocuous_shmat
7343
7344/* System header to define __stub macros and hopefully few prototypes,
7345    which can conflict with char shmat (); below.
7346    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7347    <limits.h> exists even on freestanding compilers.  */
7348
7349#ifdef __STDC__
7350# include <limits.h>
7351#else
7352# include <assert.h>
7353#endif
7354
7355#undef shmat
7356
7357/* Override any GCC internal prototype to avoid an error.
7358   Use char because int might match the return type of a GCC
7359   builtin and then its argument prototype would still apply.  */
7360#ifdef __cplusplus
7361extern "C"
7362#endif
7363char shmat ();
7364/* The GNU C library defines this for functions which it implements
7365    to always fail with ENOSYS.  Some functions are actually named
7366    something starting with __ and the normal name is an alias.  */
7367#if defined __stub_shmat || defined __stub___shmat
7368choke me
7369#endif
7370
7371int
7372main ()
7373{
7374return shmat ();
7375  ;
7376  return 0;
7377}
7378_ACEOF
7379rm -f conftest.$ac_objext conftest$ac_exeext
7380if { (ac_try="$ac_link"
7381case "(($ac_try" in
7382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7383  *) ac_try_echo=$ac_try;;
7384esac
7385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7386$as_echo "$ac_try_echo") >&5
7387  (eval "$ac_link") 2>conftest.er1
7388  ac_status=$?
7389  grep -v '^ *+' conftest.er1 >conftest.err
7390  rm -f conftest.er1
7391  cat conftest.err >&5
7392  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393  (exit $ac_status); } && {
7394	 test -z "$ac_c_werror_flag" ||
7395	 test ! -s conftest.err
7396       } && test -s conftest$ac_exeext && {
7397	 test "$cross_compiling" = yes ||
7398	 $as_test_x conftest$ac_exeext
7399       }; then
7400  ac_cv_func_shmat=yes
7401else
7402  $as_echo "$as_me: failed program was:" >&5
7403sed 's/^/| /' conftest.$ac_ext >&5
7404
7405	ac_cv_func_shmat=no
7406fi
7407
7408rm -rf conftest.dSYM
7409rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7410      conftest$ac_exeext conftest.$ac_ext
7411fi
7412{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7413$as_echo "$ac_cv_func_shmat" >&6; }
7414
7415    if test $ac_cv_func_shmat = no; then
7416      { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7417$as_echo_n "checking for shmat in -lipc... " >&6; }
7418if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7419  $as_echo_n "(cached) " >&6
7420else
7421  ac_check_lib_save_LIBS=$LIBS
7422LIBS="-lipc  $LIBS"
7423cat >conftest.$ac_ext <<_ACEOF
7424/* confdefs.h.  */
7425_ACEOF
7426cat confdefs.h >>conftest.$ac_ext
7427cat >>conftest.$ac_ext <<_ACEOF
7428/* end confdefs.h.  */
7429
7430/* Override any GCC internal prototype to avoid an error.
7431   Use char because int might match the return type of a GCC
7432   builtin and then its argument prototype would still apply.  */
7433#ifdef __cplusplus
7434extern "C"
7435#endif
7436char shmat ();
7437int
7438main ()
7439{
7440return shmat ();
7441  ;
7442  return 0;
7443}
7444_ACEOF
7445rm -f conftest.$ac_objext conftest$ac_exeext
7446if { (ac_try="$ac_link"
7447case "(($ac_try" in
7448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7449  *) ac_try_echo=$ac_try;;
7450esac
7451eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7452$as_echo "$ac_try_echo") >&5
7453  (eval "$ac_link") 2>conftest.er1
7454  ac_status=$?
7455  grep -v '^ *+' conftest.er1 >conftest.err
7456  rm -f conftest.er1
7457  cat conftest.err >&5
7458  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459  (exit $ac_status); } && {
7460	 test -z "$ac_c_werror_flag" ||
7461	 test ! -s conftest.err
7462       } && test -s conftest$ac_exeext && {
7463	 test "$cross_compiling" = yes ||
7464	 $as_test_x conftest$ac_exeext
7465       }; then
7466  ac_cv_lib_ipc_shmat=yes
7467else
7468  $as_echo "$as_me: failed program was:" >&5
7469sed 's/^/| /' conftest.$ac_ext >&5
7470
7471	ac_cv_lib_ipc_shmat=no
7472fi
7473
7474rm -rf conftest.dSYM
7475rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7476      conftest$ac_exeext conftest.$ac_ext
7477LIBS=$ac_check_lib_save_LIBS
7478fi
7479{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7480$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7481if test $ac_cv_lib_ipc_shmat = yes; then
7482  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7483fi
7484
7485    fi
7486  fi
7487
7488  # Check for libraries that X11R6 Xt/Xaw programs need.
7489  ac_save_LDFLAGS=$LDFLAGS
7490  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7491  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7492  # check for ICE first), but we must link in the order -lSM -lICE or
7493  # we get undefined symbols.  So assume we have SM if we have ICE.
7494  # These have to be linked with before -lX11, unlike the other
7495  # libraries we check for below, so use a different variable.
7496  # John Interrante, Karl Berry
7497  { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7498$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7499if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7500  $as_echo_n "(cached) " >&6
7501else
7502  ac_check_lib_save_LIBS=$LIBS
7503LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7504cat >conftest.$ac_ext <<_ACEOF
7505/* confdefs.h.  */
7506_ACEOF
7507cat confdefs.h >>conftest.$ac_ext
7508cat >>conftest.$ac_ext <<_ACEOF
7509/* end confdefs.h.  */
7510
7511/* Override any GCC internal prototype to avoid an error.
7512   Use char because int might match the return type of a GCC
7513   builtin and then its argument prototype would still apply.  */
7514#ifdef __cplusplus
7515extern "C"
7516#endif
7517char IceConnectionNumber ();
7518int
7519main ()
7520{
7521return IceConnectionNumber ();
7522  ;
7523  return 0;
7524}
7525_ACEOF
7526rm -f conftest.$ac_objext conftest$ac_exeext
7527if { (ac_try="$ac_link"
7528case "(($ac_try" in
7529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7530  *) ac_try_echo=$ac_try;;
7531esac
7532eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7533$as_echo "$ac_try_echo") >&5
7534  (eval "$ac_link") 2>conftest.er1
7535  ac_status=$?
7536  grep -v '^ *+' conftest.er1 >conftest.err
7537  rm -f conftest.er1
7538  cat conftest.err >&5
7539  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540  (exit $ac_status); } && {
7541	 test -z "$ac_c_werror_flag" ||
7542	 test ! -s conftest.err
7543       } && test -s conftest$ac_exeext && {
7544	 test "$cross_compiling" = yes ||
7545	 $as_test_x conftest$ac_exeext
7546       }; then
7547  ac_cv_lib_ICE_IceConnectionNumber=yes
7548else
7549  $as_echo "$as_me: failed program was:" >&5
7550sed 's/^/| /' conftest.$ac_ext >&5
7551
7552	ac_cv_lib_ICE_IceConnectionNumber=no
7553fi
7554
7555rm -rf conftest.dSYM
7556rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7557      conftest$ac_exeext conftest.$ac_ext
7558LIBS=$ac_check_lib_save_LIBS
7559fi
7560{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7561$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7562if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7563  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7564fi
7565
7566  LDFLAGS=$ac_save_LDFLAGS
7567
7568fi
7569
7570
7571        if test "$OS390Unix" = "yes"; then
7572    CFLAGS="$CFLAGS -W c,dll"
7573    LDFLAGS="$LDFLAGS -W l,dll"
7574    X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
7575  fi
7576
7577
7578  if test -d "$x_includes" && test ! -d "$x_libraries"; then
7579    x_libraries=`echo "$x_includes" | sed s/include/lib/`
7580    { $as_echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
7581$as_echo "Corrected X libraries to $x_libraries" >&6; }
7582    X_LIBS="$X_LIBS -L$x_libraries"
7583    if test "`(uname) 2>/dev/null`" = SunOS &&
7584					 uname -r | grep '^5' >/dev/null; then
7585      X_LIBS="$X_LIBS -R $x_libraries"
7586    fi
7587  fi
7588
7589  if test -d "$x_libraries" && test ! -d "$x_includes"; then
7590    x_includes=`echo "$x_libraries" | sed s/lib/include/`
7591    { $as_echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
7592$as_echo "Corrected X includes to $x_includes" >&6; }
7593    X_CFLAGS="$X_CFLAGS -I$x_includes"
7594  fi
7595
7596    X_CFLAGS="`echo $X_CFLAGS\  | sed 's%-I/usr/include %%'`"
7597    X_LIBS="`echo $X_LIBS\  | sed 's%-L/usr/lib %%'`"
7598    X_LIBS="`echo $X_LIBS\  | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
7599
7600
7601        { $as_echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
7602$as_echo_n "checking if X11 header files can be found... " >&6; }
7603  cflags_save=$CFLAGS
7604  CFLAGS="$CFLAGS $X_CFLAGS"
7605  cat >conftest.$ac_ext <<_ACEOF
7606/* confdefs.h.  */
7607_ACEOF
7608cat confdefs.h >>conftest.$ac_ext
7609cat >>conftest.$ac_ext <<_ACEOF
7610/* end confdefs.h.  */
7611#include <X11/Xlib.h>
7612#include <X11/Intrinsic.h>
7613int
7614main ()
7615{
7616
7617  ;
7618  return 0;
7619}
7620_ACEOF
7621rm -f conftest.$ac_objext
7622if { (ac_try="$ac_compile"
7623case "(($ac_try" in
7624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7625  *) ac_try_echo=$ac_try;;
7626esac
7627eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7628$as_echo "$ac_try_echo") >&5
7629  (eval "$ac_compile") 2>conftest.er1
7630  ac_status=$?
7631  grep -v '^ *+' conftest.er1 >conftest.err
7632  rm -f conftest.er1
7633  cat conftest.err >&5
7634  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635  (exit $ac_status); } && {
7636	 test -z "$ac_c_werror_flag" ||
7637	 test ! -s conftest.err
7638       } && test -s conftest.$ac_objext; then
7639  { $as_echo "$as_me:$LINENO: result: yes" >&5
7640$as_echo "yes" >&6; }
7641else
7642  $as_echo "$as_me: failed program was:" >&5
7643sed 's/^/| /' conftest.$ac_ext >&5
7644
7645	{ $as_echo "$as_me:$LINENO: result: no" >&5
7646$as_echo "no" >&6; }; no_x=yes
7647fi
7648
7649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7650  CFLAGS=$cflags_save
7651
7652  if test "${no_x-no}" = yes; then
7653    with_x=no
7654  else
7655    cat >>confdefs.h <<\_ACEOF
7656#define HAVE_X11 1
7657_ACEOF
7658
7659    X_LIB="-lXt -lX11";
7660
7661
7662    ac_save_LDFLAGS="$LDFLAGS"
7663    LDFLAGS="-L$x_libraries $LDFLAGS"
7664
7665            { $as_echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
7666$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
7667if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
7668  $as_echo_n "(cached) " >&6
7669else
7670  ac_check_lib_save_LIBS=$LIBS
7671LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
7672cat >conftest.$ac_ext <<_ACEOF
7673/* confdefs.h.  */
7674_ACEOF
7675cat confdefs.h >>conftest.$ac_ext
7676cat >>conftest.$ac_ext <<_ACEOF
7677/* end confdefs.h.  */
7678
7679/* Override any GCC internal prototype to avoid an error.
7680   Use char because int might match the return type of a GCC
7681   builtin and then its argument prototype would still apply.  */
7682#ifdef __cplusplus
7683extern "C"
7684#endif
7685char _XdmcpAuthDoIt ();
7686int
7687main ()
7688{
7689return _XdmcpAuthDoIt ();
7690  ;
7691  return 0;
7692}
7693_ACEOF
7694rm -f conftest.$ac_objext conftest$ac_exeext
7695if { (ac_try="$ac_link"
7696case "(($ac_try" in
7697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7698  *) ac_try_echo=$ac_try;;
7699esac
7700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7701$as_echo "$ac_try_echo") >&5
7702  (eval "$ac_link") 2>conftest.er1
7703  ac_status=$?
7704  grep -v '^ *+' conftest.er1 >conftest.err
7705  rm -f conftest.er1
7706  cat conftest.err >&5
7707  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708  (exit $ac_status); } && {
7709	 test -z "$ac_c_werror_flag" ||
7710	 test ! -s conftest.err
7711       } && test -s conftest$ac_exeext && {
7712	 test "$cross_compiling" = yes ||
7713	 $as_test_x conftest$ac_exeext
7714       }; then
7715  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
7716else
7717  $as_echo "$as_me: failed program was:" >&5
7718sed 's/^/| /' conftest.$ac_ext >&5
7719
7720	ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
7721fi
7722
7723rm -rf conftest.dSYM
7724rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7725      conftest$ac_exeext conftest.$ac_ext
7726LIBS=$ac_check_lib_save_LIBS
7727fi
7728{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
7729$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
7730if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
7731  X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
7732fi
7733
7734
7735                    { $as_echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
7736$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
7737if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
7738  $as_echo_n "(cached) " >&6
7739else
7740  ac_check_lib_save_LIBS=$LIBS
7741LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7742cat >conftest.$ac_ext <<_ACEOF
7743/* confdefs.h.  */
7744_ACEOF
7745cat confdefs.h >>conftest.$ac_ext
7746cat >>conftest.$ac_ext <<_ACEOF
7747/* end confdefs.h.  */
7748
7749/* Override any GCC internal prototype to avoid an error.
7750   Use char because int might match the return type of a GCC
7751   builtin and then its argument prototype would still apply.  */
7752#ifdef __cplusplus
7753extern "C"
7754#endif
7755char IceOpenConnection ();
7756int
7757main ()
7758{
7759return IceOpenConnection ();
7760  ;
7761  return 0;
7762}
7763_ACEOF
7764rm -f conftest.$ac_objext conftest$ac_exeext
7765if { (ac_try="$ac_link"
7766case "(($ac_try" in
7767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7768  *) ac_try_echo=$ac_try;;
7769esac
7770eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7771$as_echo "$ac_try_echo") >&5
7772  (eval "$ac_link") 2>conftest.er1
7773  ac_status=$?
7774  grep -v '^ *+' conftest.er1 >conftest.err
7775  rm -f conftest.er1
7776  cat conftest.err >&5
7777  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778  (exit $ac_status); } && {
7779	 test -z "$ac_c_werror_flag" ||
7780	 test ! -s conftest.err
7781       } && test -s conftest$ac_exeext && {
7782	 test "$cross_compiling" = yes ||
7783	 $as_test_x conftest$ac_exeext
7784       }; then
7785  ac_cv_lib_ICE_IceOpenConnection=yes
7786else
7787  $as_echo "$as_me: failed program was:" >&5
7788sed 's/^/| /' conftest.$ac_ext >&5
7789
7790	ac_cv_lib_ICE_IceOpenConnection=no
7791fi
7792
7793rm -rf conftest.dSYM
7794rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7795      conftest$ac_exeext conftest.$ac_ext
7796LIBS=$ac_check_lib_save_LIBS
7797fi
7798{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
7799$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
7800if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
7801  X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
7802fi
7803
7804
7805        LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
7806    { $as_echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7807$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
7808if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7809  $as_echo_n "(cached) " >&6
7810else
7811  ac_check_lib_save_LIBS=$LIBS
7812LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7813cat >conftest.$ac_ext <<_ACEOF
7814/* confdefs.h.  */
7815_ACEOF
7816cat confdefs.h >>conftest.$ac_ext
7817cat >>conftest.$ac_ext <<_ACEOF
7818/* end confdefs.h.  */
7819
7820/* Override any GCC internal prototype to avoid an error.
7821   Use char because int might match the return type of a GCC
7822   builtin and then its argument prototype would still apply.  */
7823#ifdef __cplusplus
7824extern "C"
7825#endif
7826char XpmCreatePixmapFromData ();
7827int
7828main ()
7829{
7830return XpmCreatePixmapFromData ();
7831  ;
7832  return 0;
7833}
7834_ACEOF
7835rm -f conftest.$ac_objext conftest$ac_exeext
7836if { (ac_try="$ac_link"
7837case "(($ac_try" in
7838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7839  *) ac_try_echo=$ac_try;;
7840esac
7841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7842$as_echo "$ac_try_echo") >&5
7843  (eval "$ac_link") 2>conftest.er1
7844  ac_status=$?
7845  grep -v '^ *+' conftest.er1 >conftest.err
7846  rm -f conftest.er1
7847  cat conftest.err >&5
7848  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849  (exit $ac_status); } && {
7850	 test -z "$ac_c_werror_flag" ||
7851	 test ! -s conftest.err
7852       } && test -s conftest$ac_exeext && {
7853	 test "$cross_compiling" = yes ||
7854	 $as_test_x conftest$ac_exeext
7855       }; then
7856  ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
7857else
7858  $as_echo "$as_me: failed program was:" >&5
7859sed 's/^/| /' conftest.$ac_ext >&5
7860
7861	ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
7862fi
7863
7864rm -rf conftest.dSYM
7865rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7866      conftest$ac_exeext conftest.$ac_ext
7867LIBS=$ac_check_lib_save_LIBS
7868fi
7869{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7870$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
7871if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
7872  X_PRE_LIBS="$X_PRE_LIBS -lXpm"
7873fi
7874
7875
7876        { $as_echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
7877$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
7878    cflags_save=$CFLAGS
7879    CFLAGS="$CFLAGS $X_CFLAGS -Werror"
7880    cat >conftest.$ac_ext <<_ACEOF
7881/* confdefs.h.  */
7882_ACEOF
7883cat confdefs.h >>conftest.$ac_ext
7884cat >>conftest.$ac_ext <<_ACEOF
7885/* end confdefs.h.  */
7886#include <X11/Xlib.h>
7887int
7888main ()
7889{
7890
7891  ;
7892  return 0;
7893}
7894_ACEOF
7895rm -f conftest.$ac_objext
7896if { (ac_try="$ac_compile"
7897case "(($ac_try" in
7898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7899  *) ac_try_echo=$ac_try;;
7900esac
7901eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7902$as_echo "$ac_try_echo") >&5
7903  (eval "$ac_compile") 2>conftest.er1
7904  ac_status=$?
7905  grep -v '^ *+' conftest.er1 >conftest.err
7906  rm -f conftest.er1
7907  cat conftest.err >&5
7908  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909  (exit $ac_status); } && {
7910	 test -z "$ac_c_werror_flag" ||
7911	 test ! -s conftest.err
7912       } && test -s conftest.$ac_objext; then
7913  { $as_echo "$as_me:$LINENO: result: no" >&5
7914$as_echo "no" >&6; }
7915else
7916  $as_echo "$as_me: failed program was:" >&5
7917sed 's/^/| /' conftest.$ac_ext >&5
7918
7919	CFLAGS="$CFLAGS -Wno-implicit-int"
7920	cat >conftest.$ac_ext <<_ACEOF
7921/* confdefs.h.  */
7922_ACEOF
7923cat confdefs.h >>conftest.$ac_ext
7924cat >>conftest.$ac_ext <<_ACEOF
7925/* end confdefs.h.  */
7926#include <X11/Xlib.h>
7927int
7928main ()
7929{
7930
7931  ;
7932  return 0;
7933}
7934_ACEOF
7935rm -f conftest.$ac_objext
7936if { (ac_try="$ac_compile"
7937case "(($ac_try" in
7938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7939  *) ac_try_echo=$ac_try;;
7940esac
7941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7942$as_echo "$ac_try_echo") >&5
7943  (eval "$ac_compile") 2>conftest.er1
7944  ac_status=$?
7945  grep -v '^ *+' conftest.er1 >conftest.err
7946  rm -f conftest.er1
7947  cat conftest.err >&5
7948  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949  (exit $ac_status); } && {
7950	 test -z "$ac_c_werror_flag" ||
7951	 test ! -s conftest.err
7952       } && test -s conftest.$ac_objext; then
7953  { $as_echo "$as_me:$LINENO: result: yes" >&5
7954$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
7955else
7956  $as_echo "$as_me: failed program was:" >&5
7957sed 's/^/| /' conftest.$ac_ext >&5
7958
7959	{ $as_echo "$as_me:$LINENO: result: test failed" >&5
7960$as_echo "test failed" >&6; }
7961
7962fi
7963
7964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7965
7966fi
7967
7968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7969    CFLAGS=$cflags_save
7970
7971    LDFLAGS="$ac_save_LDFLAGS"
7972
7973  fi
7974fi
7975
7976test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
7977
7978{ $as_echo "$as_me:$LINENO: checking --enable-gui argument" >&5
7979$as_echo_n "checking --enable-gui argument... " >&6; }
7980# Check whether --enable-gui was given.
7981if test "${enable_gui+set}" = set; then
7982  enableval=$enable_gui;
7983else
7984  enable_gui="auto"
7985fi
7986
7987
7988enable_gui_canon=`echo "_$enable_gui" | \
7989	sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
7990
7991SKIP_GTK=YES
7992SKIP_GTK2=YES
7993SKIP_GNOME=YES
7994SKIP_MOTIF=YES
7995SKIP_ATHENA=YES
7996SKIP_NEXTAW=YES
7997SKIP_PHOTON=YES
7998SKIP_CARBON=YES
7999GUITYPE=NONE
8000
8001if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
8002  SKIP_PHOTON=
8003  case "$enable_gui_canon" in
8004    no)		{ $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8005$as_echo "no GUI support" >&6; }
8006		SKIP_PHOTON=YES ;;
8007    yes|"")	{ $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8008$as_echo "yes - automatic GUI support" >&6; } ;;
8009    auto)	{ $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8010$as_echo "auto - automatic GUI support" >&6; } ;;
8011    photon)	{ $as_echo "$as_me:$LINENO: result: Photon GUI support" >&5
8012$as_echo "Photon GUI support" >&6; } ;;
8013    *)		{ $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8014$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8015		SKIP_PHOTON=YES ;;
8016  esac
8017
8018elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
8019  SKIP_CARBON=
8020  case "$enable_gui_canon" in
8021    no)		{ $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8022$as_echo "no GUI support" >&6; }
8023		SKIP_CARBON=YES ;;
8024    yes|"")	{ $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8025$as_echo "yes - automatic GUI support" >&6; } ;;
8026    auto)	{ $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8027$as_echo "auto - automatic GUI support" >&6; } ;;
8028    carbon)	{ $as_echo "$as_me:$LINENO: result: Carbon GUI support" >&5
8029$as_echo "Carbon GUI support" >&6; } ;;
8030    *)		{ $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8031$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8032		SKIP_CARBON=YES ;;
8033  esac
8034
8035else
8036
8037  case "$enable_gui_canon" in
8038    no|none)	{ $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8039$as_echo "no GUI support" >&6; } ;;
8040    yes|""|auto)	{ $as_echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
8041$as_echo "yes/auto - automatic GUI support" >&6; }
8042		SKIP_GTK=
8043		SKIP_GTK2=
8044		SKIP_GNOME=
8045		SKIP_MOTIF=
8046		SKIP_ATHENA=
8047		SKIP_NEXTAW=
8048		SKIP_CARBON=;;
8049    gtk)	{ $as_echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
8050$as_echo "GTK+ 1.x GUI support" >&6; }
8051		SKIP_GTK=;;
8052    gtk2)	{ $as_echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
8053$as_echo "GTK+ 2.x GUI support" >&6; }
8054		SKIP_GTK=
8055		SKIP_GTK2=;;
8056    gnome)	{ $as_echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
8057$as_echo "GNOME 1.x GUI support" >&6; }
8058		SKIP_GNOME=
8059		SKIP_GTK=;;
8060    gnome2)	{ $as_echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
8061$as_echo "GNOME 2.x GUI support" >&6; }
8062		SKIP_GNOME=
8063		SKIP_GTK=
8064		SKIP_GTK2=;;
8065    motif)	{ $as_echo "$as_me:$LINENO: result: Motif GUI support" >&5
8066$as_echo "Motif GUI support" >&6; }
8067		SKIP_MOTIF=;;
8068    athena)	{ $as_echo "$as_me:$LINENO: result: Athena GUI support" >&5
8069$as_echo "Athena GUI support" >&6; }
8070		SKIP_ATHENA=;;
8071    nextaw)	{ $as_echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
8072$as_echo "neXtaw GUI support" >&6; }
8073		SKIP_NEXTAW=;;
8074    *)		{ $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8075$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
8076  esac
8077
8078fi
8079
8080if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
8081  { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
8082$as_echo_n "checking whether or not to look for GTK... " >&6; }
8083  # Check whether --enable-gtk-check was given.
8084if test "${enable_gtk_check+set}" = set; then
8085  enableval=$enable_gtk_check;
8086else
8087  enable_gtk_check="yes"
8088fi
8089
8090  { $as_echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
8091$as_echo "$enable_gtk_check" >&6; }
8092  if test "x$enable_gtk_check" = "xno"; then
8093    SKIP_GTK=YES
8094    SKIP_GNOME=YES
8095  fi
8096fi
8097
8098if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8099				-a "$enable_gui_canon" != "gnome2"; then
8100  { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
8101$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
8102  # Check whether --enable-gtk2-check was given.
8103if test "${enable_gtk2_check+set}" = set; then
8104  enableval=$enable_gtk2_check;
8105else
8106  enable_gtk2_check="yes"
8107fi
8108
8109  { $as_echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
8110$as_echo "$enable_gtk2_check" >&6; }
8111  if test "x$enable_gtk2_check" = "xno"; then
8112    SKIP_GTK2=YES
8113  fi
8114fi
8115
8116if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
8117				 -a "$enable_gui_canon" != "gnome2"; then
8118  { $as_echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
8119$as_echo_n "checking whether or not to look for GNOME... " >&6; }
8120  # Check whether --enable-gnome-check was given.
8121if test "${enable_gnome_check+set}" = set; then
8122  enableval=$enable_gnome_check;
8123else
8124  enable_gnome_check="no"
8125fi
8126
8127  { $as_echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
8128$as_echo "$enable_gnome_check" >&6; }
8129  if test "x$enable_gnome_check" = "xno"; then
8130    SKIP_GNOME=YES
8131  fi
8132fi
8133
8134if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8135  { $as_echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
8136$as_echo_n "checking whether or not to look for Motif... " >&6; }
8137  # Check whether --enable-motif-check was given.
8138if test "${enable_motif_check+set}" = set; then
8139  enableval=$enable_motif_check;
8140else
8141  enable_motif_check="yes"
8142fi
8143
8144  { $as_echo "$as_me:$LINENO: result: $enable_motif_check" >&5
8145$as_echo "$enable_motif_check" >&6; }
8146  if test "x$enable_motif_check" = "xno"; then
8147    SKIP_MOTIF=YES
8148  fi
8149fi
8150
8151if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8152  { $as_echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
8153$as_echo_n "checking whether or not to look for Athena... " >&6; }
8154  # Check whether --enable-athena-check was given.
8155if test "${enable_athena_check+set}" = set; then
8156  enableval=$enable_athena_check;
8157else
8158  enable_athena_check="yes"
8159fi
8160
8161  { $as_echo "$as_me:$LINENO: result: $enable_athena_check" >&5
8162$as_echo "$enable_athena_check" >&6; }
8163  if test "x$enable_athena_check" = "xno"; then
8164    SKIP_ATHENA=YES
8165  fi
8166fi
8167
8168if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8169  { $as_echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
8170$as_echo_n "checking whether or not to look for neXtaw... " >&6; }
8171  # Check whether --enable-nextaw-check was given.
8172if test "${enable_nextaw_check+set}" = set; then
8173  enableval=$enable_nextaw_check;
8174else
8175  enable_nextaw_check="yes"
8176fi
8177
8178  { $as_echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
8179$as_echo "$enable_nextaw_check" >&6; };
8180  if test "x$enable_nextaw_check" = "xno"; then
8181    SKIP_NEXTAW=YES
8182  fi
8183fi
8184
8185if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8186  { $as_echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
8187$as_echo_n "checking whether or not to look for Carbon... " >&6; }
8188  # Check whether --enable-carbon-check was given.
8189if test "${enable_carbon_check+set}" = set; then
8190  enableval=$enable_carbon_check;
8191else
8192  enable_carbon_check="yes"
8193fi
8194
8195  { $as_echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
8196$as_echo "$enable_carbon_check" >&6; };
8197  if test "x$enable_carbon_check" = "xno"; then
8198    SKIP_CARBON=YES
8199  fi
8200fi
8201
8202
8203if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8204  { $as_echo "$as_me:$LINENO: checking for Carbon GUI" >&5
8205$as_echo_n "checking for Carbon GUI... " >&6; }
8206    { $as_echo "$as_me:$LINENO: result: yes" >&5
8207$as_echo "yes" >&6; };
8208  GUITYPE=CARBONGUI
8209  if test "$VIMNAME" = "vim"; then
8210    VIMNAME=Vim
8211  fi
8212
8213    if test x$prefix = xNONE; then
8214    prefix=/Applications
8215  fi
8216
8217    datadir='${prefix}/Vim.app/Contents/Resources'
8218
8219    SKIP_GTK=YES;
8220  SKIP_GTK2=YES;
8221  SKIP_GNOME=YES;
8222  SKIP_MOTIF=YES;
8223  SKIP_ATHENA=YES;
8224  SKIP_NEXTAW=YES;
8225  SKIP_PHOTON=YES;
8226  SKIP_CARBON=YES
8227fi
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237if test -z "$SKIP_GTK"; then
8238
8239  { $as_echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
8240$as_echo_n "checking --with-gtk-prefix argument... " >&6; }
8241
8242# Check whether --with-gtk-prefix was given.
8243if test "${with_gtk_prefix+set}" = set; then
8244  withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8245$as_echo "$gtk_config_prefix" >&6; }
8246else
8247  gtk_config_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8248$as_echo "no" >&6; }
8249fi
8250
8251
8252  { $as_echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
8253$as_echo_n "checking --with-gtk-exec-prefix argument... " >&6; }
8254
8255# Check whether --with-gtk-exec-prefix was given.
8256if test "${with_gtk_exec_prefix+set}" = set; then
8257  withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8258$as_echo "$gtk_config_prefix" >&6; }
8259else
8260  gtk_config_exec_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8261$as_echo "no" >&6; }
8262fi
8263
8264
8265  { $as_echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
8266$as_echo_n "checking --disable-gtktest argument... " >&6; }
8267  # Check whether --enable-gtktest was given.
8268if test "${enable_gtktest+set}" = set; then
8269  enableval=$enable_gtktest;
8270else
8271  enable_gtktest=yes
8272fi
8273
8274  if test "x$enable_gtktest" = "xyes" ; then
8275    { $as_echo "$as_me:$LINENO: result: gtk test enabled" >&5
8276$as_echo "gtk test enabled" >&6; }
8277  else
8278    { $as_echo "$as_me:$LINENO: result: gtk test disabled" >&5
8279$as_echo "gtk test disabled" >&6; }
8280  fi
8281
8282  if test "x$gtk_config_prefix" != "x" ; then
8283    gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8284    GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8285  fi
8286  if test "x$gtk_config_exec_prefix" != "x" ; then
8287    gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8288    GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8289  fi
8290  if test "X$GTK_CONFIG" = "X"; then
8291    # Extract the first word of "gtk-config", so it can be a program name with args.
8292set dummy gtk-config; ac_word=$2
8293{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8294$as_echo_n "checking for $ac_word... " >&6; }
8295if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
8296  $as_echo_n "(cached) " >&6
8297else
8298  case $GTK_CONFIG in
8299  [\\/]* | ?:[\\/]*)
8300  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8301  ;;
8302  *)
8303  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8304for as_dir in $PATH
8305do
8306  IFS=$as_save_IFS
8307  test -z "$as_dir" && as_dir=.
8308  for ac_exec_ext in '' $ac_executable_extensions; do
8309  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8310    ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8311    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8312    break 2
8313  fi
8314done
8315done
8316IFS=$as_save_IFS
8317
8318  test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8319  ;;
8320esac
8321fi
8322GTK_CONFIG=$ac_cv_path_GTK_CONFIG
8323if test -n "$GTK_CONFIG"; then
8324  { $as_echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
8325$as_echo "$GTK_CONFIG" >&6; }
8326else
8327  { $as_echo "$as_me:$LINENO: result: no" >&5
8328$as_echo "no" >&6; }
8329fi
8330
8331
8332    if test "X$GTK_CONFIG" = "Xno"; then
8333            # Extract the first word of "gtk12-config", so it can be a program name with args.
8334set dummy gtk12-config; ac_word=$2
8335{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8336$as_echo_n "checking for $ac_word... " >&6; }
8337if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
8338  $as_echo_n "(cached) " >&6
8339else
8340  case $GTK12_CONFIG in
8341  [\\/]* | ?:[\\/]*)
8342  ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8343  ;;
8344  *)
8345  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8346for as_dir in $PATH
8347do
8348  IFS=$as_save_IFS
8349  test -z "$as_dir" && as_dir=.
8350  for ac_exec_ext in '' $ac_executable_extensions; do
8351  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8352    ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8353    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8354    break 2
8355  fi
8356done
8357done
8358IFS=$as_save_IFS
8359
8360  test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8361  ;;
8362esac
8363fi
8364GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
8365if test -n "$GTK12_CONFIG"; then
8366  { $as_echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
8367$as_echo "$GTK12_CONFIG" >&6; }
8368else
8369  { $as_echo "$as_me:$LINENO: result: no" >&5
8370$as_echo "no" >&6; }
8371fi
8372
8373
8374      GTK_CONFIG="$GTK12_CONFIG"
8375    fi
8376  else
8377    { $as_echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
8378$as_echo "Using GTK configuration program $GTK_CONFIG" >&6; }
8379  fi
8380  if test "X$PKG_CONFIG" = "X"; then
8381    # Extract the first word of "pkg-config", so it can be a program name with args.
8382set dummy pkg-config; ac_word=$2
8383{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8384$as_echo_n "checking for $ac_word... " >&6; }
8385if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8386  $as_echo_n "(cached) " >&6
8387else
8388  case $PKG_CONFIG in
8389  [\\/]* | ?:[\\/]*)
8390  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8391  ;;
8392  *)
8393  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8394for as_dir in $PATH
8395do
8396  IFS=$as_save_IFS
8397  test -z "$as_dir" && as_dir=.
8398  for ac_exec_ext in '' $ac_executable_extensions; do
8399  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8400    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8401    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8402    break 2
8403  fi
8404done
8405done
8406IFS=$as_save_IFS
8407
8408  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8409  ;;
8410esac
8411fi
8412PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8413if test -n "$PKG_CONFIG"; then
8414  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8415$as_echo "$PKG_CONFIG" >&6; }
8416else
8417  { $as_echo "$as_me:$LINENO: result: no" >&5
8418$as_echo "no" >&6; }
8419fi
8420
8421
8422  fi
8423
8424  if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
8425            if test "X$SKIP_GTK2" != "XYES"; then
8426
8427  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8428  {
8429    min_gtk_version=2.2.0
8430    { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8431$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8432    no_gtk=""
8433    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8434	  && $PKG_CONFIG --exists gtk+-2.0; then
8435    {
8436                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8437      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8438      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8439      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8440	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8441      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8442	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8443      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8444	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8445    }
8446    elif test "X$GTK_CONFIG" != "Xno"; then
8447    {
8448      GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8449      GTK_LIBDIR=
8450      GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8451      gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8452	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8453      gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8454	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8455      gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8456	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8457    }
8458    else
8459      no_gtk=yes
8460    fi
8461
8462    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8463    {
8464      ac_save_CFLAGS="$CFLAGS"
8465      ac_save_LIBS="$LIBS"
8466      CFLAGS="$CFLAGS $GTK_CFLAGS"
8467      LIBS="$LIBS $GTK_LIBS"
8468
8469                              rm -f conf.gtktest
8470      if test "$cross_compiling" = yes; then
8471  echo $ac_n "cross compiling; assumed OK... $ac_c"
8472else
8473  cat >conftest.$ac_ext <<_ACEOF
8474/* confdefs.h.  */
8475_ACEOF
8476cat confdefs.h >>conftest.$ac_ext
8477cat >>conftest.$ac_ext <<_ACEOF
8478/* end confdefs.h.  */
8479
8480#include <gtk/gtk.h>
8481#include <stdio.h>
8482#if STDC_HEADERS
8483# include <stdlib.h>
8484# include <stddef.h>
8485#endif
8486
8487int
8488main ()
8489{
8490int major, minor, micro;
8491char *tmp_version;
8492
8493system ("touch conf.gtktest");
8494
8495/* HP/UX 9 (%@#!) writes to sscanf strings */
8496tmp_version = g_strdup("$min_gtk_version");
8497if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8498   printf("%s, bad version string\n", "$min_gtk_version");
8499   exit(1);
8500 }
8501
8502if ((gtk_major_version > major) ||
8503    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8504    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8505				     (gtk_micro_version >= micro)))
8506{
8507    return 0;
8508}
8509return 1;
8510}
8511
8512_ACEOF
8513rm -f conftest$ac_exeext
8514if { (ac_try="$ac_link"
8515case "(($ac_try" in
8516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517  *) ac_try_echo=$ac_try;;
8518esac
8519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8520$as_echo "$ac_try_echo") >&5
8521  (eval "$ac_link") 2>&5
8522  ac_status=$?
8523  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8525  { (case "(($ac_try" in
8526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8527  *) ac_try_echo=$ac_try;;
8528esac
8529eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8530$as_echo "$ac_try_echo") >&5
8531  (eval "$ac_try") 2>&5
8532  ac_status=$?
8533  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534  (exit $ac_status); }; }; then
8535  :
8536else
8537  $as_echo "$as_me: program exited with status $ac_status" >&5
8538$as_echo "$as_me: failed program was:" >&5
8539sed 's/^/| /' conftest.$ac_ext >&5
8540
8541( exit $ac_status )
8542no_gtk=yes
8543fi
8544rm -rf conftest.dSYM
8545rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8546fi
8547
8548
8549      CFLAGS="$ac_save_CFLAGS"
8550      LIBS="$ac_save_LIBS"
8551    }
8552    fi
8553    if test "x$no_gtk" = x ; then
8554      if test "x$enable_gtktest" = "xyes"; then
8555	{ $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8556$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8557      else
8558	{ $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8559$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8560      fi
8561      GUI_LIB_LOC="$GTK_LIBDIR"
8562		   GTK_LIBNAME="$GTK_LIBS"
8563		  GUI_INC_LOC="$GTK_CFLAGS"
8564    else
8565    {
8566      { $as_echo "$as_me:$LINENO: result: no" >&5
8567$as_echo "no" >&6; }
8568      GTK_CFLAGS=""
8569      GTK_LIBS=""
8570      :
8571    }
8572    fi
8573  }
8574  else
8575    GTK_CFLAGS=""
8576    GTK_LIBS=""
8577    :
8578  fi
8579
8580
8581  rm -f conf.gtktest
8582
8583      if test "x$GTK_CFLAGS" != "x"; then
8584	SKIP_ATHENA=YES
8585	SKIP_NEXTAW=YES
8586	SKIP_MOTIF=YES
8587	GUITYPE=GTK
8588
8589      fi
8590    fi
8591
8592                if test "x$GUITYPE" != "xGTK"; then
8593      SKIP_GTK2=YES
8594
8595  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8596  {
8597    min_gtk_version=1.1.16
8598    { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8599$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8600    no_gtk=""
8601    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8602	  && $PKG_CONFIG --exists gtk+-2.0; then
8603    {
8604                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8605      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8606      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8607      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8608	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8609      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8610	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8611      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8612	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8613    }
8614    elif test "X$GTK_CONFIG" != "Xno"; then
8615    {
8616      GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8617      GTK_LIBDIR=
8618      GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8619      gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8620	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8621      gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8622	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8623      gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8624	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8625    }
8626    else
8627      no_gtk=yes
8628    fi
8629
8630    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8631    {
8632      ac_save_CFLAGS="$CFLAGS"
8633      ac_save_LIBS="$LIBS"
8634      CFLAGS="$CFLAGS $GTK_CFLAGS"
8635      LIBS="$LIBS $GTK_LIBS"
8636
8637                              rm -f conf.gtktest
8638      if test "$cross_compiling" = yes; then
8639  echo $ac_n "cross compiling; assumed OK... $ac_c"
8640else
8641  cat >conftest.$ac_ext <<_ACEOF
8642/* confdefs.h.  */
8643_ACEOF
8644cat confdefs.h >>conftest.$ac_ext
8645cat >>conftest.$ac_ext <<_ACEOF
8646/* end confdefs.h.  */
8647
8648#include <gtk/gtk.h>
8649#include <stdio.h>
8650#if STDC_HEADERS
8651# include <stdlib.h>
8652# include <stddef.h>
8653#endif
8654
8655int
8656main ()
8657{
8658int major, minor, micro;
8659char *tmp_version;
8660
8661system ("touch conf.gtktest");
8662
8663/* HP/UX 9 (%@#!) writes to sscanf strings */
8664tmp_version = g_strdup("$min_gtk_version");
8665if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8666   printf("%s, bad version string\n", "$min_gtk_version");
8667   exit(1);
8668 }
8669
8670if ((gtk_major_version > major) ||
8671    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8672    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8673				     (gtk_micro_version >= micro)))
8674{
8675    return 0;
8676}
8677return 1;
8678}
8679
8680_ACEOF
8681rm -f conftest$ac_exeext
8682if { (ac_try="$ac_link"
8683case "(($ac_try" in
8684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8685  *) ac_try_echo=$ac_try;;
8686esac
8687eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8688$as_echo "$ac_try_echo") >&5
8689  (eval "$ac_link") 2>&5
8690  ac_status=$?
8691  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8693  { (case "(($ac_try" in
8694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8695  *) ac_try_echo=$ac_try;;
8696esac
8697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8698$as_echo "$ac_try_echo") >&5
8699  (eval "$ac_try") 2>&5
8700  ac_status=$?
8701  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702  (exit $ac_status); }; }; then
8703  :
8704else
8705  $as_echo "$as_me: program exited with status $ac_status" >&5
8706$as_echo "$as_me: failed program was:" >&5
8707sed 's/^/| /' conftest.$ac_ext >&5
8708
8709( exit $ac_status )
8710no_gtk=yes
8711fi
8712rm -rf conftest.dSYM
8713rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8714fi
8715
8716
8717      CFLAGS="$ac_save_CFLAGS"
8718      LIBS="$ac_save_LIBS"
8719    }
8720    fi
8721    if test "x$no_gtk" = x ; then
8722      if test "x$enable_gtktest" = "xyes"; then
8723	{ $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8724$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8725      else
8726	{ $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8727$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8728      fi
8729      GTK_LIBNAME="$GTK_LIBS"
8730		  GUI_INC_LOC="$GTK_CFLAGS"
8731    else
8732    {
8733      { $as_echo "$as_me:$LINENO: result: no" >&5
8734$as_echo "no" >&6; }
8735      GTK_CFLAGS=""
8736      GTK_LIBS=""
8737      :
8738    }
8739    fi
8740  }
8741  else
8742    GTK_CFLAGS=""
8743    GTK_LIBS=""
8744    :
8745  fi
8746
8747
8748  rm -f conf.gtktest
8749
8750      if test "x$GTK_CFLAGS" != "x"; then
8751	SKIP_ATHENA=YES
8752	SKIP_NEXTAW=YES
8753	SKIP_MOTIF=YES
8754	GUITYPE=GTK
8755
8756      fi
8757    fi
8758  fi
8759    if test "x$GUITYPE" = "xGTK"; then
8760    if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
8761	 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
8762      { $as_echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
8763$as_echo "this GTK version is old; version 1.2.3 or later is recommended" >&6; }
8764    else
8765    {
8766      if test "0$gtk_major_version" -ge 2; then
8767	cat >>confdefs.h <<\_ACEOF
8768#define HAVE_GTK2 1
8769_ACEOF
8770
8771	if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
8772		|| test "0$gtk_minor_version" -ge 2 \
8773		|| test "0$gtk_major_version" -gt 2; then
8774	  cat >>confdefs.h <<\_ACEOF
8775#define HAVE_GTK_MULTIHEAD 1
8776_ACEOF
8777
8778	fi
8779      fi
8780                        if test -z "$SKIP_GNOME"; then
8781      {
8782
8783
8784
8785
8786
8787
8788# Check whether --with-gnome-includes was given.
8789if test "${with_gnome_includes+set}" = set; then
8790  withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
8791
8792fi
8793
8794
8795
8796# Check whether --with-gnome-libs was given.
8797if test "${with_gnome_libs+set}" = set; then
8798  withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
8799
8800fi
8801
8802
8803
8804# Check whether --with-gnome was given.
8805if test "${with_gnome+set}" = set; then
8806  withval=$with_gnome; if test x$withval = xyes; then
8807      want_gnome=yes
8808      have_gnome=yes
8809    else
8810      if test "x$withval" = xno; then
8811	want_gnome=no
8812      else
8813	want_gnome=yes
8814	LDFLAGS="$LDFLAGS -L$withval/lib"
8815	CFLAGS="$CFLAGS -I$withval/include"
8816	gnome_prefix=$withval/lib
8817      fi
8818    fi
8819else
8820  want_gnome=yes
8821fi
8822
8823
8824  if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
8825  {
8826    { $as_echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
8827$as_echo_n "checking for libgnomeui-2.0... " >&6; }
8828    if $PKG_CONFIG --exists libgnomeui-2.0; then
8829      { $as_echo "$as_me:$LINENO: result: yes" >&5
8830$as_echo "yes" >&6; }
8831      GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
8832      GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
8833      GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
8834
8835                  { $as_echo "$as_me:$LINENO: checking for FreeBSD" >&5
8836$as_echo_n "checking for FreeBSD... " >&6; }
8837      if test "`(uname) 2>/dev/null`" = FreeBSD; then
8838	{ $as_echo "$as_me:$LINENO: result: yes" >&5
8839$as_echo "yes" >&6; }
8840	GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
8841	GNOME_LIBS="$GNOME_LIBS -pthread"
8842      else
8843	{ $as_echo "$as_me:$LINENO: result: no" >&5
8844$as_echo "no" >&6; }
8845      fi
8846      have_gnome=yes
8847    else
8848      { $as_echo "$as_me:$LINENO: result: not found" >&5
8849$as_echo "not found" >&6; }
8850      if test "x" = xfail; then
8851	{ { $as_echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
8852$as_echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
8853   { (exit 1); exit 1; }; }
8854      fi
8855    fi
8856  }
8857  elif test "x$want_gnome" = xyes; then
8858  {
8859    # Extract the first word of "gnome-config", so it can be a program name with args.
8860set dummy gnome-config; ac_word=$2
8861{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8862$as_echo_n "checking for $ac_word... " >&6; }
8863if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
8864  $as_echo_n "(cached) " >&6
8865else
8866  case $GNOME_CONFIG in
8867  [\\/]* | ?:[\\/]*)
8868  ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8869  ;;
8870  *)
8871  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8872for as_dir in $PATH
8873do
8874  IFS=$as_save_IFS
8875  test -z "$as_dir" && as_dir=.
8876  for ac_exec_ext in '' $ac_executable_extensions; do
8877  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8878    ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8879    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8880    break 2
8881  fi
8882done
8883done
8884IFS=$as_save_IFS
8885
8886  test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8887  ;;
8888esac
8889fi
8890GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
8891if test -n "$GNOME_CONFIG"; then
8892  { $as_echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
8893$as_echo "$GNOME_CONFIG" >&6; }
8894else
8895  { $as_echo "$as_me:$LINENO: result: no" >&5
8896$as_echo "no" >&6; }
8897fi
8898
8899
8900    if test "$GNOME_CONFIG" = "no"; then
8901      no_gnome_config="yes"
8902    else
8903      { $as_echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
8904$as_echo_n "checking if $GNOME_CONFIG works... " >&6; }
8905      if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
8906	{ $as_echo "$as_me:$LINENO: result: yes" >&5
8907$as_echo "yes" >&6; }
8908	GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
8909	GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
8910	GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
8911	have_gnome=yes
8912      else
8913	{ $as_echo "$as_me:$LINENO: result: no" >&5
8914$as_echo "no" >&6; }
8915	no_gnome_config="yes"
8916      fi
8917    fi
8918
8919    if test x$exec_prefix = xNONE; then
8920      if test x$prefix = xNONE; then
8921	gnome_prefix=$ac_default_prefix/lib
8922      else
8923	gnome_prefix=$prefix/lib
8924      fi
8925    else
8926      gnome_prefix=`eval echo \`echo $libdir\``
8927    fi
8928
8929    if test "$no_gnome_config" = "yes"; then
8930      { $as_echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
8931$as_echo_n "checking for gnomeConf.sh file in $gnome_prefix... " >&6; }
8932      if test -f $gnome_prefix/gnomeConf.sh; then
8933	{ $as_echo "$as_me:$LINENO: result: found" >&5
8934$as_echo "found" >&6; }
8935	echo "loading gnome configuration from" \
8936	  "$gnome_prefix/gnomeConf.sh"
8937	. $gnome_prefix/gnomeConf.sh
8938	have_gnome=yes
8939      else
8940	{ $as_echo "$as_me:$LINENO: result: not found" >&5
8941$as_echo "not found" >&6; }
8942	if test x = xfail; then
8943	  { { $as_echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
8944$as_echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
8945   { (exit 1); exit 1; }; }
8946	fi
8947      fi
8948    fi
8949  }
8950  fi
8951
8952	if test x$have_gnome = xyes ; then
8953	  cat >>confdefs.h <<\_ACEOF
8954#define FEAT_GUI_GNOME 1
8955_ACEOF
8956
8957	  GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
8958	  GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
8959	fi
8960      }
8961      fi
8962    }
8963    fi
8964  fi
8965fi
8966
8967
8968if test -z "$SKIP_MOTIF"; then
8969  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"
8970    GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
8971
8972  { $as_echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
8973$as_echo_n "checking for location of Motif GUI includes... " >&6; }
8974  gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
8975  GUI_INC_LOC=
8976  for try in $gui_includes; do
8977    if test -f "$try/Xm/Xm.h"; then
8978      GUI_INC_LOC=$try
8979    fi
8980  done
8981  if test -n "$GUI_INC_LOC"; then
8982    if test "$GUI_INC_LOC" = /usr/include; then
8983      GUI_INC_LOC=
8984      { $as_echo "$as_me:$LINENO: result: in default path" >&5
8985$as_echo "in default path" >&6; }
8986    else
8987      { $as_echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
8988$as_echo "$GUI_INC_LOC" >&6; }
8989    fi
8990  else
8991    { $as_echo "$as_me:$LINENO: result: <not found>" >&5
8992$as_echo "<not found>" >&6; }
8993    SKIP_MOTIF=YES
8994  fi
8995fi
8996
8997
8998if test -z "$SKIP_MOTIF"; then
8999  { $as_echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
9000$as_echo_n "checking --with-motif-lib argument... " >&6; }
9001
9002# Check whether --with-motif-lib was given.
9003if test "${with_motif_lib+set}" = set; then
9004  withval=$with_motif_lib;  MOTIF_LIBNAME="${withval}"
9005fi
9006
9007
9008  if test -n "$MOTIF_LIBNAME"; then
9009    { $as_echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
9010$as_echo "$MOTIF_LIBNAME" >&6; }
9011    GUI_LIB_LOC=
9012  else
9013    { $as_echo "$as_me:$LINENO: result: no" >&5
9014$as_echo "no" >&6; }
9015
9016        GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
9017
9018    { $as_echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
9019$as_echo_n "checking for location of Motif GUI libs... " >&6; }
9020    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"
9021    GUI_LIB_LOC=
9022    for try in $gui_libs; do
9023      for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
9024	if test -f "$libtry"; then
9025	  GUI_LIB_LOC=$try
9026	fi
9027      done
9028    done
9029    if test -n "$GUI_LIB_LOC"; then
9030            if test "$GUI_LIB_LOC" = /usr/lib; then
9031	GUI_LIB_LOC=
9032	{ $as_echo "$as_me:$LINENO: result: in default path" >&5
9033$as_echo "in default path" >&6; }
9034      else
9035	if test -n "$GUI_LIB_LOC"; then
9036	  { $as_echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
9037$as_echo "$GUI_LIB_LOC" >&6; }
9038	  if test "`(uname) 2>/dev/null`" = SunOS &&
9039					 uname -r | grep '^5' >/dev/null; then
9040	    GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
9041	  fi
9042	fi
9043      fi
9044      MOTIF_LIBNAME=-lXm
9045    else
9046      { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9047$as_echo "<not found>" >&6; }
9048      SKIP_MOTIF=YES
9049    fi
9050  fi
9051fi
9052
9053if test -z "$SKIP_MOTIF"; then
9054  SKIP_ATHENA=YES
9055  SKIP_NEXTAW=YES
9056  GUITYPE=MOTIF
9057
9058fi
9059
9060
9061GUI_X_LIBS=
9062
9063if test -z "$SKIP_ATHENA"; then
9064  { $as_echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
9065$as_echo_n "checking if Athena header files can be found... " >&6; }
9066  cflags_save=$CFLAGS
9067  CFLAGS="$CFLAGS $X_CFLAGS"
9068  cat >conftest.$ac_ext <<_ACEOF
9069/* confdefs.h.  */
9070_ACEOF
9071cat confdefs.h >>conftest.$ac_ext
9072cat >>conftest.$ac_ext <<_ACEOF
9073/* end confdefs.h.  */
9074
9075#include <X11/Intrinsic.h>
9076#include <X11/Xaw/Paned.h>
9077int
9078main ()
9079{
9080
9081  ;
9082  return 0;
9083}
9084_ACEOF
9085rm -f conftest.$ac_objext
9086if { (ac_try="$ac_compile"
9087case "(($ac_try" in
9088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9089  *) ac_try_echo=$ac_try;;
9090esac
9091eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9092$as_echo "$ac_try_echo") >&5
9093  (eval "$ac_compile") 2>conftest.er1
9094  ac_status=$?
9095  grep -v '^ *+' conftest.er1 >conftest.err
9096  rm -f conftest.er1
9097  cat conftest.err >&5
9098  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099  (exit $ac_status); } && {
9100	 test -z "$ac_c_werror_flag" ||
9101	 test ! -s conftest.err
9102       } && test -s conftest.$ac_objext; then
9103  { $as_echo "$as_me:$LINENO: result: yes" >&5
9104$as_echo "yes" >&6; }
9105else
9106  $as_echo "$as_me: failed program was:" >&5
9107sed 's/^/| /' conftest.$ac_ext >&5
9108
9109	{ $as_echo "$as_me:$LINENO: result: no" >&5
9110$as_echo "no" >&6; }; SKIP_ATHENA=YES
9111fi
9112
9113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9114  CFLAGS=$cflags_save
9115fi
9116
9117if test -z "$SKIP_ATHENA"; then
9118  GUITYPE=ATHENA
9119fi
9120
9121if test -z "$SKIP_NEXTAW"; then
9122  { $as_echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
9123$as_echo_n "checking if neXtaw header files can be found... " >&6; }
9124  cflags_save=$CFLAGS
9125  CFLAGS="$CFLAGS $X_CFLAGS"
9126  cat >conftest.$ac_ext <<_ACEOF
9127/* confdefs.h.  */
9128_ACEOF
9129cat confdefs.h >>conftest.$ac_ext
9130cat >>conftest.$ac_ext <<_ACEOF
9131/* end confdefs.h.  */
9132
9133#include <X11/Intrinsic.h>
9134#include <X11/neXtaw/Paned.h>
9135int
9136main ()
9137{
9138
9139  ;
9140  return 0;
9141}
9142_ACEOF
9143rm -f conftest.$ac_objext
9144if { (ac_try="$ac_compile"
9145case "(($ac_try" in
9146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9147  *) ac_try_echo=$ac_try;;
9148esac
9149eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9150$as_echo "$ac_try_echo") >&5
9151  (eval "$ac_compile") 2>conftest.er1
9152  ac_status=$?
9153  grep -v '^ *+' conftest.er1 >conftest.err
9154  rm -f conftest.er1
9155  cat conftest.err >&5
9156  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157  (exit $ac_status); } && {
9158	 test -z "$ac_c_werror_flag" ||
9159	 test ! -s conftest.err
9160       } && test -s conftest.$ac_objext; then
9161  { $as_echo "$as_me:$LINENO: result: yes" >&5
9162$as_echo "yes" >&6; }
9163else
9164  $as_echo "$as_me: failed program was:" >&5
9165sed 's/^/| /' conftest.$ac_ext >&5
9166
9167	{ $as_echo "$as_me:$LINENO: result: no" >&5
9168$as_echo "no" >&6; }; SKIP_NEXTAW=YES
9169fi
9170
9171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9172  CFLAGS=$cflags_save
9173fi
9174
9175if test -z "$SKIP_NEXTAW"; then
9176  GUITYPE=NEXTAW
9177fi
9178
9179if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9180      if test -n "$GUI_INC_LOC"; then
9181    GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
9182  fi
9183  if test -n "$GUI_LIB_LOC"; then
9184    GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
9185  fi
9186
9187    ldflags_save=$LDFLAGS
9188  LDFLAGS="$X_LIBS $LDFLAGS"
9189  { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9190$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9191if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9192  $as_echo_n "(cached) " >&6
9193else
9194  ac_check_lib_save_LIBS=$LIBS
9195LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9196cat >conftest.$ac_ext <<_ACEOF
9197/* confdefs.h.  */
9198_ACEOF
9199cat confdefs.h >>conftest.$ac_ext
9200cat >>conftest.$ac_ext <<_ACEOF
9201/* end confdefs.h.  */
9202
9203/* Override any GCC internal prototype to avoid an error.
9204   Use char because int might match the return type of a GCC
9205   builtin and then its argument prototype would still apply.  */
9206#ifdef __cplusplus
9207extern "C"
9208#endif
9209char XShapeQueryExtension ();
9210int
9211main ()
9212{
9213return XShapeQueryExtension ();
9214  ;
9215  return 0;
9216}
9217_ACEOF
9218rm -f conftest.$ac_objext conftest$ac_exeext
9219if { (ac_try="$ac_link"
9220case "(($ac_try" in
9221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9222  *) ac_try_echo=$ac_try;;
9223esac
9224eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9225$as_echo "$ac_try_echo") >&5
9226  (eval "$ac_link") 2>conftest.er1
9227  ac_status=$?
9228  grep -v '^ *+' conftest.er1 >conftest.err
9229  rm -f conftest.er1
9230  cat conftest.err >&5
9231  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232  (exit $ac_status); } && {
9233	 test -z "$ac_c_werror_flag" ||
9234	 test ! -s conftest.err
9235       } && test -s conftest$ac_exeext && {
9236	 test "$cross_compiling" = yes ||
9237	 $as_test_x conftest$ac_exeext
9238       }; then
9239  ac_cv_lib_Xext_XShapeQueryExtension=yes
9240else
9241  $as_echo "$as_me: failed program was:" >&5
9242sed 's/^/| /' conftest.$ac_ext >&5
9243
9244	ac_cv_lib_Xext_XShapeQueryExtension=no
9245fi
9246
9247rm -rf conftest.dSYM
9248rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9249      conftest$ac_exeext conftest.$ac_ext
9250LIBS=$ac_check_lib_save_LIBS
9251fi
9252{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9253$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9254if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9255  GUI_X_LIBS="-lXext"
9256fi
9257
9258    { $as_echo "$as_me:$LINENO: checking for wslen in -lw" >&5
9259$as_echo_n "checking for wslen in -lw... " >&6; }
9260if test "${ac_cv_lib_w_wslen+set}" = set; then
9261  $as_echo_n "(cached) " >&6
9262else
9263  ac_check_lib_save_LIBS=$LIBS
9264LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9265cat >conftest.$ac_ext <<_ACEOF
9266/* confdefs.h.  */
9267_ACEOF
9268cat confdefs.h >>conftest.$ac_ext
9269cat >>conftest.$ac_ext <<_ACEOF
9270/* end confdefs.h.  */
9271
9272/* Override any GCC internal prototype to avoid an error.
9273   Use char because int might match the return type of a GCC
9274   builtin and then its argument prototype would still apply.  */
9275#ifdef __cplusplus
9276extern "C"
9277#endif
9278char wslen ();
9279int
9280main ()
9281{
9282return wslen ();
9283  ;
9284  return 0;
9285}
9286_ACEOF
9287rm -f conftest.$ac_objext conftest$ac_exeext
9288if { (ac_try="$ac_link"
9289case "(($ac_try" in
9290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9291  *) ac_try_echo=$ac_try;;
9292esac
9293eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9294$as_echo "$ac_try_echo") >&5
9295  (eval "$ac_link") 2>conftest.er1
9296  ac_status=$?
9297  grep -v '^ *+' conftest.er1 >conftest.err
9298  rm -f conftest.er1
9299  cat conftest.err >&5
9300  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301  (exit $ac_status); } && {
9302	 test -z "$ac_c_werror_flag" ||
9303	 test ! -s conftest.err
9304       } && test -s conftest$ac_exeext && {
9305	 test "$cross_compiling" = yes ||
9306	 $as_test_x conftest$ac_exeext
9307       }; then
9308  ac_cv_lib_w_wslen=yes
9309else
9310  $as_echo "$as_me: failed program was:" >&5
9311sed 's/^/| /' conftest.$ac_ext >&5
9312
9313	ac_cv_lib_w_wslen=no
9314fi
9315
9316rm -rf conftest.dSYM
9317rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9318      conftest$ac_exeext conftest.$ac_ext
9319LIBS=$ac_check_lib_save_LIBS
9320fi
9321{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
9322$as_echo "$ac_cv_lib_w_wslen" >&6; }
9323if test $ac_cv_lib_w_wslen = yes; then
9324  X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9325fi
9326
9327  { $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9328$as_echo_n "checking for dlsym in -ldl... " >&6; }
9329if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9330  $as_echo_n "(cached) " >&6
9331else
9332  ac_check_lib_save_LIBS=$LIBS
9333LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9334cat >conftest.$ac_ext <<_ACEOF
9335/* confdefs.h.  */
9336_ACEOF
9337cat confdefs.h >>conftest.$ac_ext
9338cat >>conftest.$ac_ext <<_ACEOF
9339/* end confdefs.h.  */
9340
9341/* Override any GCC internal prototype to avoid an error.
9342   Use char because int might match the return type of a GCC
9343   builtin and then its argument prototype would still apply.  */
9344#ifdef __cplusplus
9345extern "C"
9346#endif
9347char dlsym ();
9348int
9349main ()
9350{
9351return dlsym ();
9352  ;
9353  return 0;
9354}
9355_ACEOF
9356rm -f conftest.$ac_objext conftest$ac_exeext
9357if { (ac_try="$ac_link"
9358case "(($ac_try" in
9359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9360  *) ac_try_echo=$ac_try;;
9361esac
9362eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9363$as_echo "$ac_try_echo") >&5
9364  (eval "$ac_link") 2>conftest.er1
9365  ac_status=$?
9366  grep -v '^ *+' conftest.er1 >conftest.err
9367  rm -f conftest.er1
9368  cat conftest.err >&5
9369  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370  (exit $ac_status); } && {
9371	 test -z "$ac_c_werror_flag" ||
9372	 test ! -s conftest.err
9373       } && test -s conftest$ac_exeext && {
9374	 test "$cross_compiling" = yes ||
9375	 $as_test_x conftest$ac_exeext
9376       }; then
9377  ac_cv_lib_dl_dlsym=yes
9378else
9379  $as_echo "$as_me: failed program was:" >&5
9380sed 's/^/| /' conftest.$ac_ext >&5
9381
9382	ac_cv_lib_dl_dlsym=no
9383fi
9384
9385rm -rf conftest.dSYM
9386rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9387      conftest$ac_exeext conftest.$ac_ext
9388LIBS=$ac_check_lib_save_LIBS
9389fi
9390{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9391$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
9392if test $ac_cv_lib_dl_dlsym = yes; then
9393  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
9394fi
9395
9396  { $as_echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
9397$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
9398if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
9399  $as_echo_n "(cached) " >&6
9400else
9401  ac_check_lib_save_LIBS=$LIBS
9402LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9403cat >conftest.$ac_ext <<_ACEOF
9404/* confdefs.h.  */
9405_ACEOF
9406cat confdefs.h >>conftest.$ac_ext
9407cat >>conftest.$ac_ext <<_ACEOF
9408/* end confdefs.h.  */
9409
9410/* Override any GCC internal prototype to avoid an error.
9411   Use char because int might match the return type of a GCC
9412   builtin and then its argument prototype would still apply.  */
9413#ifdef __cplusplus
9414extern "C"
9415#endif
9416char XmuCreateStippledPixmap ();
9417int
9418main ()
9419{
9420return XmuCreateStippledPixmap ();
9421  ;
9422  return 0;
9423}
9424_ACEOF
9425rm -f conftest.$ac_objext conftest$ac_exeext
9426if { (ac_try="$ac_link"
9427case "(($ac_try" in
9428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9429  *) ac_try_echo=$ac_try;;
9430esac
9431eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9432$as_echo "$ac_try_echo") >&5
9433  (eval "$ac_link") 2>conftest.er1
9434  ac_status=$?
9435  grep -v '^ *+' conftest.er1 >conftest.err
9436  rm -f conftest.er1
9437  cat conftest.err >&5
9438  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439  (exit $ac_status); } && {
9440	 test -z "$ac_c_werror_flag" ||
9441	 test ! -s conftest.err
9442       } && test -s conftest$ac_exeext && {
9443	 test "$cross_compiling" = yes ||
9444	 $as_test_x conftest$ac_exeext
9445       }; then
9446  ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
9447else
9448  $as_echo "$as_me: failed program was:" >&5
9449sed 's/^/| /' conftest.$ac_ext >&5
9450
9451	ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
9452fi
9453
9454rm -rf conftest.dSYM
9455rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9456      conftest$ac_exeext conftest.$ac_ext
9457LIBS=$ac_check_lib_save_LIBS
9458fi
9459{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9460$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9461if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
9462  GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9463fi
9464
9465  if test -z "$SKIP_MOTIF"; then
9466    { $as_echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
9467$as_echo_n "checking for XpEndJob in -lXp... " >&6; }
9468if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
9469  $as_echo_n "(cached) " >&6
9470else
9471  ac_check_lib_save_LIBS=$LIBS
9472LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9473cat >conftest.$ac_ext <<_ACEOF
9474/* confdefs.h.  */
9475_ACEOF
9476cat confdefs.h >>conftest.$ac_ext
9477cat >>conftest.$ac_ext <<_ACEOF
9478/* end confdefs.h.  */
9479
9480/* Override any GCC internal prototype to avoid an error.
9481   Use char because int might match the return type of a GCC
9482   builtin and then its argument prototype would still apply.  */
9483#ifdef __cplusplus
9484extern "C"
9485#endif
9486char XpEndJob ();
9487int
9488main ()
9489{
9490return XpEndJob ();
9491  ;
9492  return 0;
9493}
9494_ACEOF
9495rm -f conftest.$ac_objext conftest$ac_exeext
9496if { (ac_try="$ac_link"
9497case "(($ac_try" in
9498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9499  *) ac_try_echo=$ac_try;;
9500esac
9501eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9502$as_echo "$ac_try_echo") >&5
9503  (eval "$ac_link") 2>conftest.er1
9504  ac_status=$?
9505  grep -v '^ *+' conftest.er1 >conftest.err
9506  rm -f conftest.er1
9507  cat conftest.err >&5
9508  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509  (exit $ac_status); } && {
9510	 test -z "$ac_c_werror_flag" ||
9511	 test ! -s conftest.err
9512       } && test -s conftest$ac_exeext && {
9513	 test "$cross_compiling" = yes ||
9514	 $as_test_x conftest$ac_exeext
9515       }; then
9516  ac_cv_lib_Xp_XpEndJob=yes
9517else
9518  $as_echo "$as_me: failed program was:" >&5
9519sed 's/^/| /' conftest.$ac_ext >&5
9520
9521	ac_cv_lib_Xp_XpEndJob=no
9522fi
9523
9524rm -rf conftest.dSYM
9525rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9526      conftest$ac_exeext conftest.$ac_ext
9527LIBS=$ac_check_lib_save_LIBS
9528fi
9529{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
9530$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
9531if test $ac_cv_lib_Xp_XpEndJob = yes; then
9532  GUI_X_LIBS="-lXp $GUI_X_LIBS"
9533fi
9534
9535  fi
9536  LDFLAGS=$ldflags_save
9537
9538    { $as_echo "$as_me:$LINENO: checking for extra X11 defines" >&5
9539$as_echo_n "checking for extra X11 defines... " >&6; }
9540  NARROW_PROTO=
9541  rm -fr conftestdir
9542  if mkdir conftestdir; then
9543    cd conftestdir
9544    cat > Imakefile <<'EOF'
9545acfindx:
9546	@echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9547EOF
9548    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9549      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9550    fi
9551    cd ..
9552    rm -fr conftestdir
9553  fi
9554  if test -z "$NARROW_PROTO"; then
9555    { $as_echo "$as_me:$LINENO: result: no" >&5
9556$as_echo "no" >&6; }
9557  else
9558    { $as_echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
9559$as_echo "$NARROW_PROTO" >&6; }
9560  fi
9561
9562fi
9563
9564if test "$enable_xsmp" = "yes"; then
9565  cppflags_save=$CPPFLAGS
9566  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9567
9568for ac_header in X11/SM/SMlib.h
9569do
9570as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9571if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9572  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9573$as_echo_n "checking for $ac_header... " >&6; }
9574if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9575  $as_echo_n "(cached) " >&6
9576fi
9577ac_res=`eval 'as_val=${'$as_ac_Header'}
9578		 $as_echo "$as_val"'`
9579	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9580$as_echo "$ac_res" >&6; }
9581else
9582  # Is the header compilable?
9583{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9584$as_echo_n "checking $ac_header usability... " >&6; }
9585cat >conftest.$ac_ext <<_ACEOF
9586/* confdefs.h.  */
9587_ACEOF
9588cat confdefs.h >>conftest.$ac_ext
9589cat >>conftest.$ac_ext <<_ACEOF
9590/* end confdefs.h.  */
9591$ac_includes_default
9592#include <$ac_header>
9593_ACEOF
9594rm -f conftest.$ac_objext
9595if { (ac_try="$ac_compile"
9596case "(($ac_try" in
9597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9598  *) ac_try_echo=$ac_try;;
9599esac
9600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9601$as_echo "$ac_try_echo") >&5
9602  (eval "$ac_compile") 2>conftest.er1
9603  ac_status=$?
9604  grep -v '^ *+' conftest.er1 >conftest.err
9605  rm -f conftest.er1
9606  cat conftest.err >&5
9607  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608  (exit $ac_status); } && {
9609	 test -z "$ac_c_werror_flag" ||
9610	 test ! -s conftest.err
9611       } && test -s conftest.$ac_objext; then
9612  ac_header_compiler=yes
9613else
9614  $as_echo "$as_me: failed program was:" >&5
9615sed 's/^/| /' conftest.$ac_ext >&5
9616
9617	ac_header_compiler=no
9618fi
9619
9620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9621{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9622$as_echo "$ac_header_compiler" >&6; }
9623
9624# Is the header present?
9625{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9626$as_echo_n "checking $ac_header presence... " >&6; }
9627cat >conftest.$ac_ext <<_ACEOF
9628/* confdefs.h.  */
9629_ACEOF
9630cat confdefs.h >>conftest.$ac_ext
9631cat >>conftest.$ac_ext <<_ACEOF
9632/* end confdefs.h.  */
9633#include <$ac_header>
9634_ACEOF
9635if { (ac_try="$ac_cpp conftest.$ac_ext"
9636case "(($ac_try" in
9637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9638  *) ac_try_echo=$ac_try;;
9639esac
9640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9641$as_echo "$ac_try_echo") >&5
9642  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9643  ac_status=$?
9644  grep -v '^ *+' conftest.er1 >conftest.err
9645  rm -f conftest.er1
9646  cat conftest.err >&5
9647  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648  (exit $ac_status); } >/dev/null && {
9649	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9650	 test ! -s conftest.err
9651       }; then
9652  ac_header_preproc=yes
9653else
9654  $as_echo "$as_me: failed program was:" >&5
9655sed 's/^/| /' conftest.$ac_ext >&5
9656
9657  ac_header_preproc=no
9658fi
9659
9660rm -f conftest.err conftest.$ac_ext
9661{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9662$as_echo "$ac_header_preproc" >&6; }
9663
9664# So?  What about this header?
9665case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9666  yes:no: )
9667    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9668$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9669    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9670$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9671    ac_header_preproc=yes
9672    ;;
9673  no:yes:* )
9674    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9675$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9676    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9677$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9678    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9679$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9680    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9681$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9682    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9683$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9684    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9685$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9686
9687    ;;
9688esac
9689{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9690$as_echo_n "checking for $ac_header... " >&6; }
9691if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9692  $as_echo_n "(cached) " >&6
9693else
9694  eval "$as_ac_Header=\$ac_header_preproc"
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; }
9700
9701fi
9702if test `eval 'as_val=${'$as_ac_Header'}
9703		 $as_echo "$as_val"'` = yes; then
9704  cat >>confdefs.h <<_ACEOF
9705#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9706_ACEOF
9707
9708fi
9709
9710done
9711
9712  CPPFLAGS=$cppflags_save
9713fi
9714
9715
9716if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
9717    cppflags_save=$CPPFLAGS
9718  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9719
9720
9721for ac_header in X11/xpm.h X11/Sunkeysym.h
9722do
9723as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9724if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9725  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9726$as_echo_n "checking for $ac_header... " >&6; }
9727if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9728  $as_echo_n "(cached) " >&6
9729fi
9730ac_res=`eval 'as_val=${'$as_ac_Header'}
9731		 $as_echo "$as_val"'`
9732	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9733$as_echo "$ac_res" >&6; }
9734else
9735  # Is the header compilable?
9736{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9737$as_echo_n "checking $ac_header usability... " >&6; }
9738cat >conftest.$ac_ext <<_ACEOF
9739/* confdefs.h.  */
9740_ACEOF
9741cat confdefs.h >>conftest.$ac_ext
9742cat >>conftest.$ac_ext <<_ACEOF
9743/* end confdefs.h.  */
9744$ac_includes_default
9745#include <$ac_header>
9746_ACEOF
9747rm -f conftest.$ac_objext
9748if { (ac_try="$ac_compile"
9749case "(($ac_try" in
9750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751  *) ac_try_echo=$ac_try;;
9752esac
9753eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9754$as_echo "$ac_try_echo") >&5
9755  (eval "$ac_compile") 2>conftest.er1
9756  ac_status=$?
9757  grep -v '^ *+' conftest.er1 >conftest.err
9758  rm -f conftest.er1
9759  cat conftest.err >&5
9760  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761  (exit $ac_status); } && {
9762	 test -z "$ac_c_werror_flag" ||
9763	 test ! -s conftest.err
9764       } && test -s conftest.$ac_objext; then
9765  ac_header_compiler=yes
9766else
9767  $as_echo "$as_me: failed program was:" >&5
9768sed 's/^/| /' conftest.$ac_ext >&5
9769
9770	ac_header_compiler=no
9771fi
9772
9773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9774{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9775$as_echo "$ac_header_compiler" >&6; }
9776
9777# Is the header present?
9778{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9779$as_echo_n "checking $ac_header presence... " >&6; }
9780cat >conftest.$ac_ext <<_ACEOF
9781/* confdefs.h.  */
9782_ACEOF
9783cat confdefs.h >>conftest.$ac_ext
9784cat >>conftest.$ac_ext <<_ACEOF
9785/* end confdefs.h.  */
9786#include <$ac_header>
9787_ACEOF
9788if { (ac_try="$ac_cpp conftest.$ac_ext"
9789case "(($ac_try" in
9790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9791  *) ac_try_echo=$ac_try;;
9792esac
9793eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9794$as_echo "$ac_try_echo") >&5
9795  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9796  ac_status=$?
9797  grep -v '^ *+' conftest.er1 >conftest.err
9798  rm -f conftest.er1
9799  cat conftest.err >&5
9800  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801  (exit $ac_status); } >/dev/null && {
9802	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9803	 test ! -s conftest.err
9804       }; then
9805  ac_header_preproc=yes
9806else
9807  $as_echo "$as_me: failed program was:" >&5
9808sed 's/^/| /' conftest.$ac_ext >&5
9809
9810  ac_header_preproc=no
9811fi
9812
9813rm -f conftest.err conftest.$ac_ext
9814{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9815$as_echo "$ac_header_preproc" >&6; }
9816
9817# So?  What about this header?
9818case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9819  yes:no: )
9820    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9821$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9822    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9823$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9824    ac_header_preproc=yes
9825    ;;
9826  no:yes:* )
9827    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9828$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9829    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9830$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9831    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9832$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9833    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9834$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9835    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9836$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9837    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9838$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9839
9840    ;;
9841esac
9842{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9843$as_echo_n "checking for $ac_header... " >&6; }
9844if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9845  $as_echo_n "(cached) " >&6
9846else
9847  eval "$as_ac_Header=\$ac_header_preproc"
9848fi
9849ac_res=`eval 'as_val=${'$as_ac_Header'}
9850		 $as_echo "$as_val"'`
9851	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9852$as_echo "$ac_res" >&6; }
9853
9854fi
9855if test `eval 'as_val=${'$as_ac_Header'}
9856		 $as_echo "$as_val"'` = yes; then
9857  cat >>confdefs.h <<_ACEOF
9858#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9859_ACEOF
9860
9861fi
9862
9863done
9864
9865
9866    if test ! "$enable_xim" = "no"; then
9867    { $as_echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
9868$as_echo_n "checking for XIMText in X11/Xlib.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#include <X11/Xlib.h>
9876_ACEOF
9877if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9878  $EGREP "XIMText" >/dev/null 2>&1; then
9879  { $as_echo "$as_me:$LINENO: result: yes" >&5
9880$as_echo "yes" >&6; }
9881else
9882  { $as_echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
9883$as_echo "no; xim has been disabled" >&6; }; enable_xim = "no"
9884fi
9885rm -f conftest*
9886
9887  fi
9888  CPPFLAGS=$cppflags_save
9889
9890    if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
9891		-a "x$GUITYPE" != "xNONE" ; then
9892    { $as_echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
9893$as_echo "X GUI selected; xim has been enabled" >&6; }
9894    enable_xim="yes"
9895  fi
9896fi
9897
9898if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9899  cppflags_save=$CPPFLAGS
9900  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9901  { $as_echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
9902$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
9903  cat >conftest.$ac_ext <<_ACEOF
9904/* confdefs.h.  */
9905_ACEOF
9906cat confdefs.h >>conftest.$ac_ext
9907cat >>conftest.$ac_ext <<_ACEOF
9908/* end confdefs.h.  */
9909
9910#include <X11/Intrinsic.h>
9911#include <X11/Xmu/Editres.h>
9912int
9913main ()
9914{
9915int i; i = 0;
9916  ;
9917  return 0;
9918}
9919_ACEOF
9920rm -f conftest.$ac_objext
9921if { (ac_try="$ac_compile"
9922case "(($ac_try" in
9923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9924  *) ac_try_echo=$ac_try;;
9925esac
9926eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9927$as_echo "$ac_try_echo") >&5
9928  (eval "$ac_compile") 2>conftest.er1
9929  ac_status=$?
9930  grep -v '^ *+' conftest.er1 >conftest.err
9931  rm -f conftest.er1
9932  cat conftest.err >&5
9933  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934  (exit $ac_status); } && {
9935	 test -z "$ac_c_werror_flag" ||
9936	 test ! -s conftest.err
9937       } && test -s conftest.$ac_objext; then
9938  { $as_echo "$as_me:$LINENO: result: yes" >&5
9939$as_echo "yes" >&6; }
9940		      cat >>confdefs.h <<\_ACEOF
9941#define HAVE_X11_XMU_EDITRES_H 1
9942_ACEOF
9943
9944else
9945  $as_echo "$as_me: failed program was:" >&5
9946sed 's/^/| /' conftest.$ac_ext >&5
9947
9948	{ $as_echo "$as_me:$LINENO: result: no" >&5
9949$as_echo "no" >&6; }
9950fi
9951
9952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9953  CPPFLAGS=$cppflags_save
9954fi
9955
9956if test -z "$SKIP_MOTIF"; then
9957  cppflags_save=$CPPFLAGS
9958  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9959
9960
9961
9962
9963
9964
9965
9966for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
9967		   Xm/UnhighlightT.h Xm/Notebook.h
9968do
9969as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9970if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9971  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9972$as_echo_n "checking for $ac_header... " >&6; }
9973if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9974  $as_echo_n "(cached) " >&6
9975fi
9976ac_res=`eval 'as_val=${'$as_ac_Header'}
9977		 $as_echo "$as_val"'`
9978	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9979$as_echo "$ac_res" >&6; }
9980else
9981  # Is the header compilable?
9982{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9983$as_echo_n "checking $ac_header usability... " >&6; }
9984cat >conftest.$ac_ext <<_ACEOF
9985/* confdefs.h.  */
9986_ACEOF
9987cat confdefs.h >>conftest.$ac_ext
9988cat >>conftest.$ac_ext <<_ACEOF
9989/* end confdefs.h.  */
9990$ac_includes_default
9991#include <$ac_header>
9992_ACEOF
9993rm -f conftest.$ac_objext
9994if { (ac_try="$ac_compile"
9995case "(($ac_try" in
9996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997  *) ac_try_echo=$ac_try;;
9998esac
9999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10000$as_echo "$ac_try_echo") >&5
10001  (eval "$ac_compile") 2>conftest.er1
10002  ac_status=$?
10003  grep -v '^ *+' conftest.er1 >conftest.err
10004  rm -f conftest.er1
10005  cat conftest.err >&5
10006  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007  (exit $ac_status); } && {
10008	 test -z "$ac_c_werror_flag" ||
10009	 test ! -s conftest.err
10010       } && test -s conftest.$ac_objext; then
10011  ac_header_compiler=yes
10012else
10013  $as_echo "$as_me: failed program was:" >&5
10014sed 's/^/| /' conftest.$ac_ext >&5
10015
10016	ac_header_compiler=no
10017fi
10018
10019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10020{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10021$as_echo "$ac_header_compiler" >&6; }
10022
10023# Is the header present?
10024{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10025$as_echo_n "checking $ac_header presence... " >&6; }
10026cat >conftest.$ac_ext <<_ACEOF
10027/* confdefs.h.  */
10028_ACEOF
10029cat confdefs.h >>conftest.$ac_ext
10030cat >>conftest.$ac_ext <<_ACEOF
10031/* end confdefs.h.  */
10032#include <$ac_header>
10033_ACEOF
10034if { (ac_try="$ac_cpp conftest.$ac_ext"
10035case "(($ac_try" in
10036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10037  *) ac_try_echo=$ac_try;;
10038esac
10039eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10040$as_echo "$ac_try_echo") >&5
10041  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10042  ac_status=$?
10043  grep -v '^ *+' conftest.er1 >conftest.err
10044  rm -f conftest.er1
10045  cat conftest.err >&5
10046  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047  (exit $ac_status); } >/dev/null && {
10048	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10049	 test ! -s conftest.err
10050       }; then
10051  ac_header_preproc=yes
10052else
10053  $as_echo "$as_me: failed program was:" >&5
10054sed 's/^/| /' conftest.$ac_ext >&5
10055
10056  ac_header_preproc=no
10057fi
10058
10059rm -f conftest.err conftest.$ac_ext
10060{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10061$as_echo "$ac_header_preproc" >&6; }
10062
10063# So?  What about this header?
10064case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10065  yes:no: )
10066    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10067$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10068    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10069$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10070    ac_header_preproc=yes
10071    ;;
10072  no:yes:* )
10073    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10074$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10075    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10076$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10077    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10078$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10079    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10080$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10081    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10082$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10083    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10084$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10085
10086    ;;
10087esac
10088{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10089$as_echo_n "checking for $ac_header... " >&6; }
10090if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10091  $as_echo_n "(cached) " >&6
10092else
10093  eval "$as_ac_Header=\$ac_header_preproc"
10094fi
10095ac_res=`eval 'as_val=${'$as_ac_Header'}
10096		 $as_echo "$as_val"'`
10097	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10098$as_echo "$ac_res" >&6; }
10099
10100fi
10101if test `eval 'as_val=${'$as_ac_Header'}
10102		 $as_echo "$as_val"'` = yes; then
10103  cat >>confdefs.h <<_ACEOF
10104#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10105_ACEOF
10106
10107fi
10108
10109done
10110
10111
10112  if test $ac_cv_header_Xm_XpmP_h = yes; then
10113        { $as_echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10114$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
10115    cat >conftest.$ac_ext <<_ACEOF
10116/* confdefs.h.  */
10117_ACEOF
10118cat confdefs.h >>conftest.$ac_ext
10119cat >>conftest.$ac_ext <<_ACEOF
10120/* end confdefs.h.  */
10121#include <Xm/XpmP.h>
10122int
10123main ()
10124{
10125XpmAttributes_21 attr;
10126  ;
10127  return 0;
10128}
10129_ACEOF
10130rm -f conftest.$ac_objext
10131if { (ac_try="$ac_compile"
10132case "(($ac_try" in
10133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10134  *) ac_try_echo=$ac_try;;
10135esac
10136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10137$as_echo "$ac_try_echo") >&5
10138  (eval "$ac_compile") 2>conftest.er1
10139  ac_status=$?
10140  grep -v '^ *+' conftest.er1 >conftest.err
10141  rm -f conftest.er1
10142  cat conftest.err >&5
10143  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144  (exit $ac_status); } && {
10145	 test -z "$ac_c_werror_flag" ||
10146	 test ! -s conftest.err
10147       } && test -s conftest.$ac_objext; then
10148  { $as_echo "$as_me:$LINENO: result: yes" >&5
10149$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10150#define XPMATTRIBUTES_TYPE XpmAttributes_21
10151_ACEOF
10152
10153else
10154  $as_echo "$as_me: failed program was:" >&5
10155sed 's/^/| /' conftest.$ac_ext >&5
10156
10157	{ $as_echo "$as_me:$LINENO: result: no" >&5
10158$as_echo "no" >&6; }; cat >>confdefs.h <<\_ACEOF
10159#define XPMATTRIBUTES_TYPE XpmAttributes
10160_ACEOF
10161
10162
10163fi
10164
10165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10166  else
10167    cat >>confdefs.h <<\_ACEOF
10168#define XPMATTRIBUTES_TYPE XpmAttributes
10169_ACEOF
10170
10171  fi
10172  CPPFLAGS=$cppflags_save
10173fi
10174
10175if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10176  { $as_echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
10177$as_echo "no GUI selected; xim has been disabled" >&6; }
10178  enable_xim="no"
10179fi
10180if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10181  { $as_echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
10182$as_echo "no GUI selected; fontset has been disabled" >&6; }
10183  enable_fontset="no"
10184fi
10185if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
10186  { $as_echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10187$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10188  enable_fontset="no"
10189fi
10190
10191if test -z "$SKIP_PHOTON"; then
10192  GUITYPE=PHOTONGUI
10193fi
10194
10195
10196
10197
10198
10199
10200if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10201  { { $as_echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
10202$as_echo "$as_me: error: cannot use workshop without Motif" >&2;}
10203   { (exit 1); exit 1; }; }
10204fi
10205
10206if test "$enable_xim" = "yes"; then
10207  cat >>confdefs.h <<\_ACEOF
10208#define FEAT_XIM 1
10209_ACEOF
10210
10211fi
10212if test "$enable_fontset" = "yes"; then
10213  cat >>confdefs.h <<\_ACEOF
10214#define FEAT_XFONTSET 1
10215_ACEOF
10216
10217fi
10218
10219
10220
10221
10222if test "$enable_hangulinput" = "yes"; then
10223  if test "x$GUITYPE" = "xNONE"; then
10224    { $as_echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
10225$as_echo "no GUI selected; hangul input has been disabled" >&6; }
10226    enable_hangulinput=no
10227  else
10228    cat >>confdefs.h <<\_ACEOF
10229#define FEAT_HANGULIN 1
10230_ACEOF
10231
10232    HANGULIN_SRC=hangulin.c
10233
10234    HANGULIN_OBJ=objects/hangulin.o
10235
10236  fi
10237fi
10238
10239
10240{ $as_echo "$as_me:$LINENO: checking whether toupper is broken" >&5
10241$as_echo_n "checking whether toupper is broken... " >&6; }
10242if test "${vim_cv_toupper_broken+set}" = set; then
10243  $as_echo_n "(cached) " >&6
10244else
10245
10246    if test "$cross_compiling" = yes; then
10247
10248    { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5
10249$as_echo "$as_me: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&2;}
10250   { (exit 1); exit 1; }; }
10251
10252else
10253  cat >conftest.$ac_ext <<_ACEOF
10254
10255#include "confdefs.h"
10256#include <ctype.h>
10257#if STDC_HEADERS
10258# include <stdlib.h>
10259# include <stddef.h>
10260#endif
10261main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10262
10263_ACEOF
10264rm -f conftest$ac_exeext
10265if { (ac_try="$ac_link"
10266case "(($ac_try" in
10267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10268  *) ac_try_echo=$ac_try;;
10269esac
10270eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10271$as_echo "$ac_try_echo") >&5
10272  (eval "$ac_link") 2>&5
10273  ac_status=$?
10274  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10276  { (case "(($ac_try" in
10277  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10278  *) ac_try_echo=$ac_try;;
10279esac
10280eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10281$as_echo "$ac_try_echo") >&5
10282  (eval "$ac_try") 2>&5
10283  ac_status=$?
10284  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285  (exit $ac_status); }; }; then
10286
10287    vim_cv_toupper_broken=yes
10288
10289else
10290  $as_echo "$as_me: program exited with status $ac_status" >&5
10291$as_echo "$as_me: failed program was:" >&5
10292sed 's/^/| /' conftest.$ac_ext >&5
10293
10294( exit $ac_status )
10295
10296    vim_cv_toupper_broken=no
10297
10298fi
10299rm -rf conftest.dSYM
10300rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10301fi
10302
10303
10304fi
10305{ $as_echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5
10306$as_echo "$vim_cv_toupper_broken" >&6; }
10307
10308if test "x$vim_cv_toupper_broken" = "xyes" ; then
10309  cat >>confdefs.h <<\_ACEOF
10310#define BROKEN_TOUPPER 1
10311_ACEOF
10312
10313fi
10314
10315{ $as_echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
10316$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10317cat >conftest.$ac_ext <<_ACEOF
10318/* confdefs.h.  */
10319_ACEOF
10320cat confdefs.h >>conftest.$ac_ext
10321cat >>conftest.$ac_ext <<_ACEOF
10322/* end confdefs.h.  */
10323#include <stdio.h>
10324int
10325main ()
10326{
10327printf("(" __DATE__ " " __TIME__ ")");
10328  ;
10329  return 0;
10330}
10331_ACEOF
10332rm -f conftest.$ac_objext
10333if { (ac_try="$ac_compile"
10334case "(($ac_try" in
10335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10336  *) ac_try_echo=$ac_try;;
10337esac
10338eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10339$as_echo "$ac_try_echo") >&5
10340  (eval "$ac_compile") 2>conftest.er1
10341  ac_status=$?
10342  grep -v '^ *+' conftest.er1 >conftest.err
10343  rm -f conftest.er1
10344  cat conftest.err >&5
10345  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346  (exit $ac_status); } && {
10347	 test -z "$ac_c_werror_flag" ||
10348	 test ! -s conftest.err
10349       } && test -s conftest.$ac_objext; then
10350  { $as_echo "$as_me:$LINENO: result: yes" >&5
10351$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10352#define HAVE_DATE_TIME 1
10353_ACEOF
10354
10355else
10356  $as_echo "$as_me: failed program was:" >&5
10357sed 's/^/| /' conftest.$ac_ext >&5
10358
10359	{ $as_echo "$as_me:$LINENO: result: no" >&5
10360$as_echo "no" >&6; }
10361fi
10362
10363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10364
10365if test "${ac_cv_header_elf_h+set}" = set; then
10366  { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10367$as_echo_n "checking for elf.h... " >&6; }
10368if test "${ac_cv_header_elf_h+set}" = set; then
10369  $as_echo_n "(cached) " >&6
10370fi
10371{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10372$as_echo "$ac_cv_header_elf_h" >&6; }
10373else
10374  # Is the header compilable?
10375{ $as_echo "$as_me:$LINENO: checking elf.h usability" >&5
10376$as_echo_n "checking elf.h usability... " >&6; }
10377cat >conftest.$ac_ext <<_ACEOF
10378/* confdefs.h.  */
10379_ACEOF
10380cat confdefs.h >>conftest.$ac_ext
10381cat >>conftest.$ac_ext <<_ACEOF
10382/* end confdefs.h.  */
10383$ac_includes_default
10384#include <elf.h>
10385_ACEOF
10386rm -f conftest.$ac_objext
10387if { (ac_try="$ac_compile"
10388case "(($ac_try" in
10389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390  *) ac_try_echo=$ac_try;;
10391esac
10392eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10393$as_echo "$ac_try_echo") >&5
10394  (eval "$ac_compile") 2>conftest.er1
10395  ac_status=$?
10396  grep -v '^ *+' conftest.er1 >conftest.err
10397  rm -f conftest.er1
10398  cat conftest.err >&5
10399  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400  (exit $ac_status); } && {
10401	 test -z "$ac_c_werror_flag" ||
10402	 test ! -s conftest.err
10403       } && test -s conftest.$ac_objext; then
10404  ac_header_compiler=yes
10405else
10406  $as_echo "$as_me: failed program was:" >&5
10407sed 's/^/| /' conftest.$ac_ext >&5
10408
10409	ac_header_compiler=no
10410fi
10411
10412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10413{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10414$as_echo "$ac_header_compiler" >&6; }
10415
10416# Is the header present?
10417{ $as_echo "$as_me:$LINENO: checking elf.h presence" >&5
10418$as_echo_n "checking elf.h presence... " >&6; }
10419cat >conftest.$ac_ext <<_ACEOF
10420/* confdefs.h.  */
10421_ACEOF
10422cat confdefs.h >>conftest.$ac_ext
10423cat >>conftest.$ac_ext <<_ACEOF
10424/* end confdefs.h.  */
10425#include <elf.h>
10426_ACEOF
10427if { (ac_try="$ac_cpp conftest.$ac_ext"
10428case "(($ac_try" in
10429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10430  *) ac_try_echo=$ac_try;;
10431esac
10432eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10433$as_echo "$ac_try_echo") >&5
10434  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10435  ac_status=$?
10436  grep -v '^ *+' conftest.er1 >conftest.err
10437  rm -f conftest.er1
10438  cat conftest.err >&5
10439  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440  (exit $ac_status); } >/dev/null && {
10441	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10442	 test ! -s conftest.err
10443       }; then
10444  ac_header_preproc=yes
10445else
10446  $as_echo "$as_me: failed program was:" >&5
10447sed 's/^/| /' conftest.$ac_ext >&5
10448
10449  ac_header_preproc=no
10450fi
10451
10452rm -f conftest.err conftest.$ac_ext
10453{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10454$as_echo "$ac_header_preproc" >&6; }
10455
10456# So?  What about this header?
10457case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10458  yes:no: )
10459    { $as_echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
10460$as_echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10461    { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
10462$as_echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
10463    ac_header_preproc=yes
10464    ;;
10465  no:yes:* )
10466    { $as_echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
10467$as_echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
10468    { $as_echo "$as_me:$LINENO: WARNING: elf.h:     check for missing prerequisite headers?" >&5
10469$as_echo "$as_me: WARNING: elf.h:     check for missing prerequisite headers?" >&2;}
10470    { $as_echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
10471$as_echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
10472    { $as_echo "$as_me:$LINENO: WARNING: elf.h:     section \"Present But Cannot Be Compiled\"" >&5
10473$as_echo "$as_me: WARNING: elf.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10474    { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
10475$as_echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
10476    { $as_echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
10477$as_echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
10478
10479    ;;
10480esac
10481{ $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10482$as_echo_n "checking for elf.h... " >&6; }
10483if test "${ac_cv_header_elf_h+set}" = set; then
10484  $as_echo_n "(cached) " >&6
10485else
10486  ac_cv_header_elf_h=$ac_header_preproc
10487fi
10488{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10489$as_echo "$ac_cv_header_elf_h" >&6; }
10490
10491fi
10492if test $ac_cv_header_elf_h = yes; then
10493  HAS_ELF=1
10494fi
10495
10496
10497if test "$HAS_ELF" = 1; then
10498
10499{ $as_echo "$as_me:$LINENO: checking for main in -lelf" >&5
10500$as_echo_n "checking for main in -lelf... " >&6; }
10501if test "${ac_cv_lib_elf_main+set}" = set; then
10502  $as_echo_n "(cached) " >&6
10503else
10504  ac_check_lib_save_LIBS=$LIBS
10505LIBS="-lelf  $LIBS"
10506cat >conftest.$ac_ext <<_ACEOF
10507/* confdefs.h.  */
10508_ACEOF
10509cat confdefs.h >>conftest.$ac_ext
10510cat >>conftest.$ac_ext <<_ACEOF
10511/* end confdefs.h.  */
10512
10513
10514int
10515main ()
10516{
10517return main ();
10518  ;
10519  return 0;
10520}
10521_ACEOF
10522rm -f conftest.$ac_objext conftest$ac_exeext
10523if { (ac_try="$ac_link"
10524case "(($ac_try" in
10525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526  *) ac_try_echo=$ac_try;;
10527esac
10528eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10529$as_echo "$ac_try_echo") >&5
10530  (eval "$ac_link") 2>conftest.er1
10531  ac_status=$?
10532  grep -v '^ *+' conftest.er1 >conftest.err
10533  rm -f conftest.er1
10534  cat conftest.err >&5
10535  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536  (exit $ac_status); } && {
10537	 test -z "$ac_c_werror_flag" ||
10538	 test ! -s conftest.err
10539       } && test -s conftest$ac_exeext && {
10540	 test "$cross_compiling" = yes ||
10541	 $as_test_x conftest$ac_exeext
10542       }; then
10543  ac_cv_lib_elf_main=yes
10544else
10545  $as_echo "$as_me: failed program was:" >&5
10546sed 's/^/| /' conftest.$ac_ext >&5
10547
10548	ac_cv_lib_elf_main=no
10549fi
10550
10551rm -rf conftest.dSYM
10552rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10553      conftest$ac_exeext conftest.$ac_ext
10554LIBS=$ac_check_lib_save_LIBS
10555fi
10556{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
10557$as_echo "$ac_cv_lib_elf_main" >&6; }
10558if test $ac_cv_lib_elf_main = yes; then
10559  cat >>confdefs.h <<_ACEOF
10560#define HAVE_LIBELF 1
10561_ACEOF
10562
10563  LIBS="-lelf $LIBS"
10564
10565fi
10566
10567fi
10568
10569
10570
10571
10572
10573
10574ac_header_dirent=no
10575for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10576  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10577{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10578$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10579if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10580  $as_echo_n "(cached) " >&6
10581else
10582  cat >conftest.$ac_ext <<_ACEOF
10583/* confdefs.h.  */
10584_ACEOF
10585cat confdefs.h >>conftest.$ac_ext
10586cat >>conftest.$ac_ext <<_ACEOF
10587/* end confdefs.h.  */
10588#include <sys/types.h>
10589#include <$ac_hdr>
10590
10591int
10592main ()
10593{
10594if ((DIR *) 0)
10595return 0;
10596  ;
10597  return 0;
10598}
10599_ACEOF
10600rm -f conftest.$ac_objext
10601if { (ac_try="$ac_compile"
10602case "(($ac_try" in
10603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604  *) ac_try_echo=$ac_try;;
10605esac
10606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10607$as_echo "$ac_try_echo") >&5
10608  (eval "$ac_compile") 2>conftest.er1
10609  ac_status=$?
10610  grep -v '^ *+' conftest.er1 >conftest.err
10611  rm -f conftest.er1
10612  cat conftest.err >&5
10613  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614  (exit $ac_status); } && {
10615	 test -z "$ac_c_werror_flag" ||
10616	 test ! -s conftest.err
10617       } && test -s conftest.$ac_objext; then
10618  eval "$as_ac_Header=yes"
10619else
10620  $as_echo "$as_me: failed program was:" >&5
10621sed 's/^/| /' conftest.$ac_ext >&5
10622
10623	eval "$as_ac_Header=no"
10624fi
10625
10626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10627fi
10628ac_res=`eval 'as_val=${'$as_ac_Header'}
10629		 $as_echo "$as_val"'`
10630	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10631$as_echo "$ac_res" >&6; }
10632if test `eval 'as_val=${'$as_ac_Header'}
10633		 $as_echo "$as_val"'` = yes; then
10634  cat >>confdefs.h <<_ACEOF
10635#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10636_ACEOF
10637
10638ac_header_dirent=$ac_hdr; break
10639fi
10640
10641done
10642# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10643if test $ac_header_dirent = dirent.h; then
10644  { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10645$as_echo_n "checking for library containing opendir... " >&6; }
10646if test "${ac_cv_search_opendir+set}" = set; then
10647  $as_echo_n "(cached) " >&6
10648else
10649  ac_func_search_save_LIBS=$LIBS
10650cat >conftest.$ac_ext <<_ACEOF
10651/* confdefs.h.  */
10652_ACEOF
10653cat confdefs.h >>conftest.$ac_ext
10654cat >>conftest.$ac_ext <<_ACEOF
10655/* end confdefs.h.  */
10656
10657/* Override any GCC internal prototype to avoid an error.
10658   Use char because int might match the return type of a GCC
10659   builtin and then its argument prototype would still apply.  */
10660#ifdef __cplusplus
10661extern "C"
10662#endif
10663char opendir ();
10664int
10665main ()
10666{
10667return opendir ();
10668  ;
10669  return 0;
10670}
10671_ACEOF
10672for ac_lib in '' dir; do
10673  if test -z "$ac_lib"; then
10674    ac_res="none required"
10675  else
10676    ac_res=-l$ac_lib
10677    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10678  fi
10679  rm -f conftest.$ac_objext conftest$ac_exeext
10680if { (ac_try="$ac_link"
10681case "(($ac_try" in
10682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10683  *) ac_try_echo=$ac_try;;
10684esac
10685eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10686$as_echo "$ac_try_echo") >&5
10687  (eval "$ac_link") 2>conftest.er1
10688  ac_status=$?
10689  grep -v '^ *+' conftest.er1 >conftest.err
10690  rm -f conftest.er1
10691  cat conftest.err >&5
10692  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693  (exit $ac_status); } && {
10694	 test -z "$ac_c_werror_flag" ||
10695	 test ! -s conftest.err
10696       } && test -s conftest$ac_exeext && {
10697	 test "$cross_compiling" = yes ||
10698	 $as_test_x conftest$ac_exeext
10699       }; then
10700  ac_cv_search_opendir=$ac_res
10701else
10702  $as_echo "$as_me: failed program was:" >&5
10703sed 's/^/| /' conftest.$ac_ext >&5
10704
10705
10706fi
10707
10708rm -rf conftest.dSYM
10709rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10710      conftest$ac_exeext
10711  if test "${ac_cv_search_opendir+set}" = set; then
10712  break
10713fi
10714done
10715if test "${ac_cv_search_opendir+set}" = set; then
10716  :
10717else
10718  ac_cv_search_opendir=no
10719fi
10720rm conftest.$ac_ext
10721LIBS=$ac_func_search_save_LIBS
10722fi
10723{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10724$as_echo "$ac_cv_search_opendir" >&6; }
10725ac_res=$ac_cv_search_opendir
10726if test "$ac_res" != no; then
10727  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10728
10729fi
10730
10731else
10732  { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10733$as_echo_n "checking for library containing opendir... " >&6; }
10734if test "${ac_cv_search_opendir+set}" = set; then
10735  $as_echo_n "(cached) " >&6
10736else
10737  ac_func_search_save_LIBS=$LIBS
10738cat >conftest.$ac_ext <<_ACEOF
10739/* confdefs.h.  */
10740_ACEOF
10741cat confdefs.h >>conftest.$ac_ext
10742cat >>conftest.$ac_ext <<_ACEOF
10743/* end confdefs.h.  */
10744
10745/* Override any GCC internal prototype to avoid an error.
10746   Use char because int might match the return type of a GCC
10747   builtin and then its argument prototype would still apply.  */
10748#ifdef __cplusplus
10749extern "C"
10750#endif
10751char opendir ();
10752int
10753main ()
10754{
10755return opendir ();
10756  ;
10757  return 0;
10758}
10759_ACEOF
10760for ac_lib in '' x; do
10761  if test -z "$ac_lib"; then
10762    ac_res="none required"
10763  else
10764    ac_res=-l$ac_lib
10765    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10766  fi
10767  rm -f conftest.$ac_objext conftest$ac_exeext
10768if { (ac_try="$ac_link"
10769case "(($ac_try" in
10770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10771  *) ac_try_echo=$ac_try;;
10772esac
10773eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10774$as_echo "$ac_try_echo") >&5
10775  (eval "$ac_link") 2>conftest.er1
10776  ac_status=$?
10777  grep -v '^ *+' conftest.er1 >conftest.err
10778  rm -f conftest.er1
10779  cat conftest.err >&5
10780  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781  (exit $ac_status); } && {
10782	 test -z "$ac_c_werror_flag" ||
10783	 test ! -s conftest.err
10784       } && test -s conftest$ac_exeext && {
10785	 test "$cross_compiling" = yes ||
10786	 $as_test_x conftest$ac_exeext
10787       }; then
10788  ac_cv_search_opendir=$ac_res
10789else
10790  $as_echo "$as_me: failed program was:" >&5
10791sed 's/^/| /' conftest.$ac_ext >&5
10792
10793
10794fi
10795
10796rm -rf conftest.dSYM
10797rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10798      conftest$ac_exeext
10799  if test "${ac_cv_search_opendir+set}" = set; then
10800  break
10801fi
10802done
10803if test "${ac_cv_search_opendir+set}" = set; then
10804  :
10805else
10806  ac_cv_search_opendir=no
10807fi
10808rm conftest.$ac_ext
10809LIBS=$ac_func_search_save_LIBS
10810fi
10811{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10812$as_echo "$ac_cv_search_opendir" >&6; }
10813ac_res=$ac_cv_search_opendir
10814if test "$ac_res" != no; then
10815  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10816
10817fi
10818
10819fi
10820
10821
10822if test $ac_cv_header_sys_wait_h = no; then
10823  { $as_echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10824$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
10825  cat >conftest.$ac_ext <<_ACEOF
10826/* confdefs.h.  */
10827_ACEOF
10828cat confdefs.h >>conftest.$ac_ext
10829cat >>conftest.$ac_ext <<_ACEOF
10830/* end confdefs.h.  */
10831#include <sys/wait.h>
10832int
10833main ()
10834{
10835union wait xx, yy; xx = yy
10836  ;
10837  return 0;
10838}
10839_ACEOF
10840rm -f conftest.$ac_objext
10841if { (ac_try="$ac_compile"
10842case "(($ac_try" in
10843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844  *) ac_try_echo=$ac_try;;
10845esac
10846eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10847$as_echo "$ac_try_echo") >&5
10848  (eval "$ac_compile") 2>conftest.er1
10849  ac_status=$?
10850  grep -v '^ *+' conftest.er1 >conftest.err
10851  rm -f conftest.er1
10852  cat conftest.err >&5
10853  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854  (exit $ac_status); } && {
10855	 test -z "$ac_c_werror_flag" ||
10856	 test ! -s conftest.err
10857       } && test -s conftest.$ac_objext; then
10858  { $as_echo "$as_me:$LINENO: result: yes" >&5
10859$as_echo "yes" >&6; }
10860			cat >>confdefs.h <<\_ACEOF
10861#define HAVE_SYS_WAIT_H 1
10862_ACEOF
10863
10864			cat >>confdefs.h <<\_ACEOF
10865#define HAVE_UNION_WAIT 1
10866_ACEOF
10867
10868else
10869  $as_echo "$as_me: failed program was:" >&5
10870sed 's/^/| /' conftest.$ac_ext >&5
10871
10872	{ $as_echo "$as_me:$LINENO: result: no" >&5
10873$as_echo "no" >&6; }
10874fi
10875
10876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10877fi
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
10921	termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \
10922	iconv.h langinfo.h math.h unistd.h stropts.h errno.h \
10923	sys/resource.h sys/systeminfo.h locale.h \
10924	sys/stream.h termios.h libc.h sys/statfs.h \
10925	poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
10926	libgen.h util/debug.h util/msg18n.h frame.h \
10927	sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h wctype.h
10928do
10929as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10930if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10931  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10932$as_echo_n "checking for $ac_header... " >&6; }
10933if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10934  $as_echo_n "(cached) " >&6
10935fi
10936ac_res=`eval 'as_val=${'$as_ac_Header'}
10937		 $as_echo "$as_val"'`
10938	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10939$as_echo "$ac_res" >&6; }
10940else
10941  # Is the header compilable?
10942{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10943$as_echo_n "checking $ac_header usability... " >&6; }
10944cat >conftest.$ac_ext <<_ACEOF
10945/* confdefs.h.  */
10946_ACEOF
10947cat confdefs.h >>conftest.$ac_ext
10948cat >>conftest.$ac_ext <<_ACEOF
10949/* end confdefs.h.  */
10950$ac_includes_default
10951#include <$ac_header>
10952_ACEOF
10953rm -f conftest.$ac_objext
10954if { (ac_try="$ac_compile"
10955case "(($ac_try" in
10956  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10957  *) ac_try_echo=$ac_try;;
10958esac
10959eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10960$as_echo "$ac_try_echo") >&5
10961  (eval "$ac_compile") 2>conftest.er1
10962  ac_status=$?
10963  grep -v '^ *+' conftest.er1 >conftest.err
10964  rm -f conftest.er1
10965  cat conftest.err >&5
10966  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967  (exit $ac_status); } && {
10968	 test -z "$ac_c_werror_flag" ||
10969	 test ! -s conftest.err
10970       } && test -s conftest.$ac_objext; then
10971  ac_header_compiler=yes
10972else
10973  $as_echo "$as_me: failed program was:" >&5
10974sed 's/^/| /' conftest.$ac_ext >&5
10975
10976	ac_header_compiler=no
10977fi
10978
10979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10980{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10981$as_echo "$ac_header_compiler" >&6; }
10982
10983# Is the header present?
10984{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10985$as_echo_n "checking $ac_header presence... " >&6; }
10986cat >conftest.$ac_ext <<_ACEOF
10987/* confdefs.h.  */
10988_ACEOF
10989cat confdefs.h >>conftest.$ac_ext
10990cat >>conftest.$ac_ext <<_ACEOF
10991/* end confdefs.h.  */
10992#include <$ac_header>
10993_ACEOF
10994if { (ac_try="$ac_cpp conftest.$ac_ext"
10995case "(($ac_try" in
10996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997  *) ac_try_echo=$ac_try;;
10998esac
10999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11000$as_echo "$ac_try_echo") >&5
11001  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11002  ac_status=$?
11003  grep -v '^ *+' conftest.er1 >conftest.err
11004  rm -f conftest.er1
11005  cat conftest.err >&5
11006  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007  (exit $ac_status); } >/dev/null && {
11008	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11009	 test ! -s conftest.err
11010       }; then
11011  ac_header_preproc=yes
11012else
11013  $as_echo "$as_me: failed program was:" >&5
11014sed 's/^/| /' conftest.$ac_ext >&5
11015
11016  ac_header_preproc=no
11017fi
11018
11019rm -f conftest.err conftest.$ac_ext
11020{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11021$as_echo "$ac_header_preproc" >&6; }
11022
11023# So?  What about this header?
11024case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11025  yes:no: )
11026    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11027$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11028    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11029$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11030    ac_header_preproc=yes
11031    ;;
11032  no:yes:* )
11033    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11034$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11035    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11036$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11037    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11038$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11039    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11040$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11041    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11042$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11043    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11044$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11045
11046    ;;
11047esac
11048{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11049$as_echo_n "checking for $ac_header... " >&6; }
11050if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11051  $as_echo_n "(cached) " >&6
11052else
11053  eval "$as_ac_Header=\$ac_header_preproc"
11054fi
11055ac_res=`eval 'as_val=${'$as_ac_Header'}
11056		 $as_echo "$as_val"'`
11057	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11058$as_echo "$ac_res" >&6; }
11059
11060fi
11061if test `eval 'as_val=${'$as_ac_Header'}
11062		 $as_echo "$as_val"'` = yes; then
11063  cat >>confdefs.h <<_ACEOF
11064#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11065_ACEOF
11066
11067fi
11068
11069done
11070
11071
11072
11073for ac_header in sys/ptem.h
11074do
11075as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11076{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11077$as_echo_n "checking for $ac_header... " >&6; }
11078if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11079  $as_echo_n "(cached) " >&6
11080else
11081  cat >conftest.$ac_ext <<_ACEOF
11082/* confdefs.h.  */
11083_ACEOF
11084cat confdefs.h >>conftest.$ac_ext
11085cat >>conftest.$ac_ext <<_ACEOF
11086/* end confdefs.h.  */
11087#if defined HAVE_SYS_STREAM_H
11088#  include <sys/stream.h>
11089#endif
11090
11091#include <$ac_header>
11092_ACEOF
11093rm -f conftest.$ac_objext
11094if { (ac_try="$ac_compile"
11095case "(($ac_try" in
11096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097  *) ac_try_echo=$ac_try;;
11098esac
11099eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11100$as_echo "$ac_try_echo") >&5
11101  (eval "$ac_compile") 2>conftest.er1
11102  ac_status=$?
11103  grep -v '^ *+' conftest.er1 >conftest.err
11104  rm -f conftest.er1
11105  cat conftest.err >&5
11106  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107  (exit $ac_status); } && {
11108	 test -z "$ac_c_werror_flag" ||
11109	 test ! -s conftest.err
11110       } && test -s conftest.$ac_objext; then
11111  eval "$as_ac_Header=yes"
11112else
11113  $as_echo "$as_me: failed program was:" >&5
11114sed 's/^/| /' conftest.$ac_ext >&5
11115
11116	eval "$as_ac_Header=no"
11117fi
11118
11119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11120fi
11121ac_res=`eval 'as_val=${'$as_ac_Header'}
11122		 $as_echo "$as_val"'`
11123	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11124$as_echo "$ac_res" >&6; }
11125if test `eval 'as_val=${'$as_ac_Header'}
11126		 $as_echo "$as_val"'` = yes; then
11127  cat >>confdefs.h <<_ACEOF
11128#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11129_ACEOF
11130
11131fi
11132
11133done
11134
11135
11136
11137{ $as_echo "$as_me:$LINENO: checking for pthread_np.h" >&5
11138$as_echo_n "checking for pthread_np.h... " >&6; }
11139cat >conftest.$ac_ext <<_ACEOF
11140/* confdefs.h.  */
11141_ACEOF
11142cat confdefs.h >>conftest.$ac_ext
11143cat >>conftest.$ac_ext <<_ACEOF
11144/* end confdefs.h.  */
11145
11146#include <pthread.h>
11147#include <pthread_np.h>
11148int
11149main ()
11150{
11151int i; i = 0;
11152  ;
11153  return 0;
11154}
11155_ACEOF
11156rm -f conftest.$ac_objext
11157if { (ac_try="$ac_compile"
11158case "(($ac_try" in
11159  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160  *) ac_try_echo=$ac_try;;
11161esac
11162eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11163$as_echo "$ac_try_echo") >&5
11164  (eval "$ac_compile") 2>conftest.er1
11165  ac_status=$?
11166  grep -v '^ *+' conftest.er1 >conftest.err
11167  rm -f conftest.er1
11168  cat conftest.err >&5
11169  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170  (exit $ac_status); } && {
11171	 test -z "$ac_c_werror_flag" ||
11172	 test ! -s conftest.err
11173       } && test -s conftest.$ac_objext; then
11174  { $as_echo "$as_me:$LINENO: result: yes" >&5
11175$as_echo "yes" >&6; }
11176		      cat >>confdefs.h <<\_ACEOF
11177#define HAVE_PTHREAD_NP_H 1
11178_ACEOF
11179
11180else
11181  $as_echo "$as_me: failed program was:" >&5
11182sed 's/^/| /' conftest.$ac_ext >&5
11183
11184	{ $as_echo "$as_me:$LINENO: result: no" >&5
11185$as_echo "no" >&6; }
11186fi
11187
11188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11189
11190
11191for ac_header in strings.h
11192do
11193as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11194if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11195  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11196$as_echo_n "checking for $ac_header... " >&6; }
11197if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11198  $as_echo_n "(cached) " >&6
11199fi
11200ac_res=`eval 'as_val=${'$as_ac_Header'}
11201		 $as_echo "$as_val"'`
11202	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11203$as_echo "$ac_res" >&6; }
11204else
11205  # Is the header compilable?
11206{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11207$as_echo_n "checking $ac_header usability... " >&6; }
11208cat >conftest.$ac_ext <<_ACEOF
11209/* confdefs.h.  */
11210_ACEOF
11211cat confdefs.h >>conftest.$ac_ext
11212cat >>conftest.$ac_ext <<_ACEOF
11213/* end confdefs.h.  */
11214$ac_includes_default
11215#include <$ac_header>
11216_ACEOF
11217rm -f conftest.$ac_objext
11218if { (ac_try="$ac_compile"
11219case "(($ac_try" in
11220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11221  *) ac_try_echo=$ac_try;;
11222esac
11223eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11224$as_echo "$ac_try_echo") >&5
11225  (eval "$ac_compile") 2>conftest.er1
11226  ac_status=$?
11227  grep -v '^ *+' conftest.er1 >conftest.err
11228  rm -f conftest.er1
11229  cat conftest.err >&5
11230  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231  (exit $ac_status); } && {
11232	 test -z "$ac_c_werror_flag" ||
11233	 test ! -s conftest.err
11234       } && test -s conftest.$ac_objext; then
11235  ac_header_compiler=yes
11236else
11237  $as_echo "$as_me: failed program was:" >&5
11238sed 's/^/| /' conftest.$ac_ext >&5
11239
11240	ac_header_compiler=no
11241fi
11242
11243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11244{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11245$as_echo "$ac_header_compiler" >&6; }
11246
11247# Is the header present?
11248{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11249$as_echo_n "checking $ac_header presence... " >&6; }
11250cat >conftest.$ac_ext <<_ACEOF
11251/* confdefs.h.  */
11252_ACEOF
11253cat confdefs.h >>conftest.$ac_ext
11254cat >>conftest.$ac_ext <<_ACEOF
11255/* end confdefs.h.  */
11256#include <$ac_header>
11257_ACEOF
11258if { (ac_try="$ac_cpp conftest.$ac_ext"
11259case "(($ac_try" in
11260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11261  *) ac_try_echo=$ac_try;;
11262esac
11263eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11264$as_echo "$ac_try_echo") >&5
11265  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11266  ac_status=$?
11267  grep -v '^ *+' conftest.er1 >conftest.err
11268  rm -f conftest.er1
11269  cat conftest.err >&5
11270  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271  (exit $ac_status); } >/dev/null && {
11272	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11273	 test ! -s conftest.err
11274       }; then
11275  ac_header_preproc=yes
11276else
11277  $as_echo "$as_me: failed program was:" >&5
11278sed 's/^/| /' conftest.$ac_ext >&5
11279
11280  ac_header_preproc=no
11281fi
11282
11283rm -f conftest.err conftest.$ac_ext
11284{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11285$as_echo "$ac_header_preproc" >&6; }
11286
11287# So?  What about this header?
11288case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11289  yes:no: )
11290    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11291$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11292    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11293$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11294    ac_header_preproc=yes
11295    ;;
11296  no:yes:* )
11297    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11298$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11299    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11300$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11301    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11302$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11303    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11304$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11305    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11306$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11307    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11308$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11309
11310    ;;
11311esac
11312{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11313$as_echo_n "checking for $ac_header... " >&6; }
11314if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11315  $as_echo_n "(cached) " >&6
11316else
11317  eval "$as_ac_Header=\$ac_header_preproc"
11318fi
11319ac_res=`eval 'as_val=${'$as_ac_Header'}
11320		 $as_echo "$as_val"'`
11321	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11322$as_echo "$ac_res" >&6; }
11323
11324fi
11325if test `eval 'as_val=${'$as_ac_Header'}
11326		 $as_echo "$as_val"'` = yes; then
11327  cat >>confdefs.h <<_ACEOF
11328#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11329_ACEOF
11330
11331fi
11332
11333done
11334
11335if test "x$MACOSX" = "xyes"; then
11336    cat >>confdefs.h <<\_ACEOF
11337#define NO_STRINGS_WITH_STRING_H 1
11338_ACEOF
11339
11340else
11341
11342{ $as_echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
11343$as_echo_n "checking if strings.h can be included after string.h... " >&6; }
11344cppflags_save=$CPPFLAGS
11345CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11346cat >conftest.$ac_ext <<_ACEOF
11347/* confdefs.h.  */
11348_ACEOF
11349cat confdefs.h >>conftest.$ac_ext
11350cat >>conftest.$ac_ext <<_ACEOF
11351/* end confdefs.h.  */
11352
11353#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11354# define _NO_PROTO	/* like in os_unix.h, causes conflict for AIX (Winn) */
11355			/* but don't do it on AIX 5.1 (Uribarri) */
11356#endif
11357#ifdef HAVE_XM_XM_H
11358# include <Xm/Xm.h>	/* This breaks it for HP-UX 11 (Squassabia) */
11359#endif
11360#ifdef HAVE_STRING_H
11361# include <string.h>
11362#endif
11363#if defined(HAVE_STRINGS_H)
11364# include <strings.h>
11365#endif
11366
11367int
11368main ()
11369{
11370int i; i = 0;
11371  ;
11372  return 0;
11373}
11374_ACEOF
11375rm -f conftest.$ac_objext
11376if { (ac_try="$ac_compile"
11377case "(($ac_try" in
11378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379  *) ac_try_echo=$ac_try;;
11380esac
11381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11382$as_echo "$ac_try_echo") >&5
11383  (eval "$ac_compile") 2>conftest.er1
11384  ac_status=$?
11385  grep -v '^ *+' conftest.er1 >conftest.err
11386  rm -f conftest.er1
11387  cat conftest.err >&5
11388  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389  (exit $ac_status); } && {
11390	 test -z "$ac_c_werror_flag" ||
11391	 test ! -s conftest.err
11392       } && test -s conftest.$ac_objext; then
11393  { $as_echo "$as_me:$LINENO: result: yes" >&5
11394$as_echo "yes" >&6; }
11395else
11396  $as_echo "$as_me: failed program was:" >&5
11397sed 's/^/| /' conftest.$ac_ext >&5
11398
11399	cat >>confdefs.h <<\_ACEOF
11400#define NO_STRINGS_WITH_STRING_H 1
11401_ACEOF
11402
11403		{ $as_echo "$as_me:$LINENO: result: no" >&5
11404$as_echo "no" >&6; }
11405fi
11406
11407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11408CPPFLAGS=$cppflags_save
11409fi
11410
11411if test $ac_cv_c_compiler_gnu = yes; then
11412    { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11413$as_echo_n "checking whether $CC needs -traditional... " >&6; }
11414if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11415  $as_echo_n "(cached) " >&6
11416else
11417    ac_pattern="Autoconf.*'x'"
11418  cat >conftest.$ac_ext <<_ACEOF
11419/* confdefs.h.  */
11420_ACEOF
11421cat confdefs.h >>conftest.$ac_ext
11422cat >>conftest.$ac_ext <<_ACEOF
11423/* end confdefs.h.  */
11424#include <sgtty.h>
11425Autoconf TIOCGETP
11426_ACEOF
11427if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11428  $EGREP "$ac_pattern" >/dev/null 2>&1; then
11429  ac_cv_prog_gcc_traditional=yes
11430else
11431  ac_cv_prog_gcc_traditional=no
11432fi
11433rm -f conftest*
11434
11435
11436  if test $ac_cv_prog_gcc_traditional = no; then
11437    cat >conftest.$ac_ext <<_ACEOF
11438/* confdefs.h.  */
11439_ACEOF
11440cat confdefs.h >>conftest.$ac_ext
11441cat >>conftest.$ac_ext <<_ACEOF
11442/* end confdefs.h.  */
11443#include <termio.h>
11444Autoconf TCGETA
11445_ACEOF
11446if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11447  $EGREP "$ac_pattern" >/dev/null 2>&1; then
11448  ac_cv_prog_gcc_traditional=yes
11449fi
11450rm -f conftest*
11451
11452  fi
11453fi
11454{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11455$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11456  if test $ac_cv_prog_gcc_traditional = yes; then
11457    CC="$CC -traditional"
11458  fi
11459fi
11460
11461{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11462$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11463if test "${ac_cv_c_const+set}" = set; then
11464  $as_echo_n "(cached) " >&6
11465else
11466  cat >conftest.$ac_ext <<_ACEOF
11467/* confdefs.h.  */
11468_ACEOF
11469cat confdefs.h >>conftest.$ac_ext
11470cat >>conftest.$ac_ext <<_ACEOF
11471/* end confdefs.h.  */
11472
11473int
11474main ()
11475{
11476/* FIXME: Include the comments suggested by Paul. */
11477#ifndef __cplusplus
11478  /* Ultrix mips cc rejects this.  */
11479  typedef int charset[2];
11480  const charset cs;
11481  /* SunOS 4.1.1 cc rejects this.  */
11482  char const *const *pcpcc;
11483  char **ppc;
11484  /* NEC SVR4.0.2 mips cc rejects this.  */
11485  struct point {int x, y;};
11486  static struct point const zero = {0,0};
11487  /* AIX XL C 1.02.0.0 rejects this.
11488     It does not let you subtract one const X* pointer from another in
11489     an arm of an if-expression whose if-part is not a constant
11490     expression */
11491  const char *g = "string";
11492  pcpcc = &g + (g ? g-g : 0);
11493  /* HPUX 7.0 cc rejects these. */
11494  ++pcpcc;
11495  ppc = (char**) pcpcc;
11496  pcpcc = (char const *const *) ppc;
11497  { /* SCO 3.2v4 cc rejects this.  */
11498    char *t;
11499    char const *s = 0 ? (char *) 0 : (char const *) 0;
11500
11501    *t++ = 0;
11502    if (s) return 0;
11503  }
11504  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11505    int x[] = {25, 17};
11506    const int *foo = &x[0];
11507    ++foo;
11508  }
11509  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11510    typedef const int *iptr;
11511    iptr p = 0;
11512    ++p;
11513  }
11514  { /* AIX XL C 1.02.0.0 rejects this saying
11515       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11516    struct s { int j; const int *ap[3]; };
11517    struct s *b; b->j = 5;
11518  }
11519  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11520    const int foo = 10;
11521    if (!foo) return 0;
11522  }
11523  return !cs[0] && !zero.x;
11524#endif
11525
11526  ;
11527  return 0;
11528}
11529_ACEOF
11530rm -f conftest.$ac_objext
11531if { (ac_try="$ac_compile"
11532case "(($ac_try" in
11533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11534  *) ac_try_echo=$ac_try;;
11535esac
11536eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11537$as_echo "$ac_try_echo") >&5
11538  (eval "$ac_compile") 2>conftest.er1
11539  ac_status=$?
11540  grep -v '^ *+' conftest.er1 >conftest.err
11541  rm -f conftest.er1
11542  cat conftest.err >&5
11543  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544  (exit $ac_status); } && {
11545	 test -z "$ac_c_werror_flag" ||
11546	 test ! -s conftest.err
11547       } && test -s conftest.$ac_objext; then
11548  ac_cv_c_const=yes
11549else
11550  $as_echo "$as_me: failed program was:" >&5
11551sed 's/^/| /' conftest.$ac_ext >&5
11552
11553	ac_cv_c_const=no
11554fi
11555
11556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11557fi
11558{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11559$as_echo "$ac_cv_c_const" >&6; }
11560if test $ac_cv_c_const = no; then
11561
11562cat >>confdefs.h <<\_ACEOF
11563#define const /**/
11564_ACEOF
11565
11566fi
11567
11568{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
11569$as_echo_n "checking for mode_t... " >&6; }
11570if test "${ac_cv_type_mode_t+set}" = set; then
11571  $as_echo_n "(cached) " >&6
11572else
11573  ac_cv_type_mode_t=no
11574cat >conftest.$ac_ext <<_ACEOF
11575/* confdefs.h.  */
11576_ACEOF
11577cat confdefs.h >>conftest.$ac_ext
11578cat >>conftest.$ac_ext <<_ACEOF
11579/* end confdefs.h.  */
11580$ac_includes_default
11581int
11582main ()
11583{
11584if (sizeof (mode_t))
11585       return 0;
11586  ;
11587  return 0;
11588}
11589_ACEOF
11590rm -f conftest.$ac_objext
11591if { (ac_try="$ac_compile"
11592case "(($ac_try" in
11593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11594  *) ac_try_echo=$ac_try;;
11595esac
11596eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11597$as_echo "$ac_try_echo") >&5
11598  (eval "$ac_compile") 2>conftest.er1
11599  ac_status=$?
11600  grep -v '^ *+' conftest.er1 >conftest.err
11601  rm -f conftest.er1
11602  cat conftest.err >&5
11603  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604  (exit $ac_status); } && {
11605	 test -z "$ac_c_werror_flag" ||
11606	 test ! -s conftest.err
11607       } && test -s conftest.$ac_objext; then
11608  cat >conftest.$ac_ext <<_ACEOF
11609/* confdefs.h.  */
11610_ACEOF
11611cat confdefs.h >>conftest.$ac_ext
11612cat >>conftest.$ac_ext <<_ACEOF
11613/* end confdefs.h.  */
11614$ac_includes_default
11615int
11616main ()
11617{
11618if (sizeof ((mode_t)))
11619	  return 0;
11620  ;
11621  return 0;
11622}
11623_ACEOF
11624rm -f conftest.$ac_objext
11625if { (ac_try="$ac_compile"
11626case "(($ac_try" in
11627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628  *) ac_try_echo=$ac_try;;
11629esac
11630eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11631$as_echo "$ac_try_echo") >&5
11632  (eval "$ac_compile") 2>conftest.er1
11633  ac_status=$?
11634  grep -v '^ *+' conftest.er1 >conftest.err
11635  rm -f conftest.er1
11636  cat conftest.err >&5
11637  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638  (exit $ac_status); } && {
11639	 test -z "$ac_c_werror_flag" ||
11640	 test ! -s conftest.err
11641       } && test -s conftest.$ac_objext; then
11642  :
11643else
11644  $as_echo "$as_me: failed program was:" >&5
11645sed 's/^/| /' conftest.$ac_ext >&5
11646
11647	ac_cv_type_mode_t=yes
11648fi
11649
11650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11651else
11652  $as_echo "$as_me: failed program was:" >&5
11653sed 's/^/| /' conftest.$ac_ext >&5
11654
11655
11656fi
11657
11658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11659fi
11660{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11661$as_echo "$ac_cv_type_mode_t" >&6; }
11662if test $ac_cv_type_mode_t = yes; then
11663  :
11664else
11665
11666cat >>confdefs.h <<_ACEOF
11667#define mode_t int
11668_ACEOF
11669
11670fi
11671
11672{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
11673$as_echo_n "checking for off_t... " >&6; }
11674if test "${ac_cv_type_off_t+set}" = set; then
11675  $as_echo_n "(cached) " >&6
11676else
11677  ac_cv_type_off_t=no
11678cat >conftest.$ac_ext <<_ACEOF
11679/* confdefs.h.  */
11680_ACEOF
11681cat confdefs.h >>conftest.$ac_ext
11682cat >>conftest.$ac_ext <<_ACEOF
11683/* end confdefs.h.  */
11684$ac_includes_default
11685int
11686main ()
11687{
11688if (sizeof (off_t))
11689       return 0;
11690  ;
11691  return 0;
11692}
11693_ACEOF
11694rm -f conftest.$ac_objext
11695if { (ac_try="$ac_compile"
11696case "(($ac_try" in
11697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11698  *) ac_try_echo=$ac_try;;
11699esac
11700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11701$as_echo "$ac_try_echo") >&5
11702  (eval "$ac_compile") 2>conftest.er1
11703  ac_status=$?
11704  grep -v '^ *+' conftest.er1 >conftest.err
11705  rm -f conftest.er1
11706  cat conftest.err >&5
11707  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708  (exit $ac_status); } && {
11709	 test -z "$ac_c_werror_flag" ||
11710	 test ! -s conftest.err
11711       } && test -s conftest.$ac_objext; then
11712  cat >conftest.$ac_ext <<_ACEOF
11713/* confdefs.h.  */
11714_ACEOF
11715cat confdefs.h >>conftest.$ac_ext
11716cat >>conftest.$ac_ext <<_ACEOF
11717/* end confdefs.h.  */
11718$ac_includes_default
11719int
11720main ()
11721{
11722if (sizeof ((off_t)))
11723	  return 0;
11724  ;
11725  return 0;
11726}
11727_ACEOF
11728rm -f conftest.$ac_objext
11729if { (ac_try="$ac_compile"
11730case "(($ac_try" in
11731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11732  *) ac_try_echo=$ac_try;;
11733esac
11734eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11735$as_echo "$ac_try_echo") >&5
11736  (eval "$ac_compile") 2>conftest.er1
11737  ac_status=$?
11738  grep -v '^ *+' conftest.er1 >conftest.err
11739  rm -f conftest.er1
11740  cat conftest.err >&5
11741  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742  (exit $ac_status); } && {
11743	 test -z "$ac_c_werror_flag" ||
11744	 test ! -s conftest.err
11745       } && test -s conftest.$ac_objext; then
11746  :
11747else
11748  $as_echo "$as_me: failed program was:" >&5
11749sed 's/^/| /' conftest.$ac_ext >&5
11750
11751	ac_cv_type_off_t=yes
11752fi
11753
11754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11755else
11756  $as_echo "$as_me: failed program was:" >&5
11757sed 's/^/| /' conftest.$ac_ext >&5
11758
11759
11760fi
11761
11762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11763fi
11764{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11765$as_echo "$ac_cv_type_off_t" >&6; }
11766if test $ac_cv_type_off_t = yes; then
11767  :
11768else
11769
11770cat >>confdefs.h <<_ACEOF
11771#define off_t long int
11772_ACEOF
11773
11774fi
11775
11776{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
11777$as_echo_n "checking for pid_t... " >&6; }
11778if test "${ac_cv_type_pid_t+set}" = set; then
11779  $as_echo_n "(cached) " >&6
11780else
11781  ac_cv_type_pid_t=no
11782cat >conftest.$ac_ext <<_ACEOF
11783/* confdefs.h.  */
11784_ACEOF
11785cat confdefs.h >>conftest.$ac_ext
11786cat >>conftest.$ac_ext <<_ACEOF
11787/* end confdefs.h.  */
11788$ac_includes_default
11789int
11790main ()
11791{
11792if (sizeof (pid_t))
11793       return 0;
11794  ;
11795  return 0;
11796}
11797_ACEOF
11798rm -f conftest.$ac_objext
11799if { (ac_try="$ac_compile"
11800case "(($ac_try" in
11801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802  *) ac_try_echo=$ac_try;;
11803esac
11804eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11805$as_echo "$ac_try_echo") >&5
11806  (eval "$ac_compile") 2>conftest.er1
11807  ac_status=$?
11808  grep -v '^ *+' conftest.er1 >conftest.err
11809  rm -f conftest.er1
11810  cat conftest.err >&5
11811  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812  (exit $ac_status); } && {
11813	 test -z "$ac_c_werror_flag" ||
11814	 test ! -s conftest.err
11815       } && test -s conftest.$ac_objext; then
11816  cat >conftest.$ac_ext <<_ACEOF
11817/* confdefs.h.  */
11818_ACEOF
11819cat confdefs.h >>conftest.$ac_ext
11820cat >>conftest.$ac_ext <<_ACEOF
11821/* end confdefs.h.  */
11822$ac_includes_default
11823int
11824main ()
11825{
11826if (sizeof ((pid_t)))
11827	  return 0;
11828  ;
11829  return 0;
11830}
11831_ACEOF
11832rm -f conftest.$ac_objext
11833if { (ac_try="$ac_compile"
11834case "(($ac_try" in
11835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11836  *) ac_try_echo=$ac_try;;
11837esac
11838eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11839$as_echo "$ac_try_echo") >&5
11840  (eval "$ac_compile") 2>conftest.er1
11841  ac_status=$?
11842  grep -v '^ *+' conftest.er1 >conftest.err
11843  rm -f conftest.er1
11844  cat conftest.err >&5
11845  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846  (exit $ac_status); } && {
11847	 test -z "$ac_c_werror_flag" ||
11848	 test ! -s conftest.err
11849       } && test -s conftest.$ac_objext; then
11850  :
11851else
11852  $as_echo "$as_me: failed program was:" >&5
11853sed 's/^/| /' conftest.$ac_ext >&5
11854
11855	ac_cv_type_pid_t=yes
11856fi
11857
11858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11859else
11860  $as_echo "$as_me: failed program was:" >&5
11861sed 's/^/| /' conftest.$ac_ext >&5
11862
11863
11864fi
11865
11866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11867fi
11868{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11869$as_echo "$ac_cv_type_pid_t" >&6; }
11870if test $ac_cv_type_pid_t = yes; then
11871  :
11872else
11873
11874cat >>confdefs.h <<_ACEOF
11875#define pid_t int
11876_ACEOF
11877
11878fi
11879
11880{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
11881$as_echo_n "checking for size_t... " >&6; }
11882if test "${ac_cv_type_size_t+set}" = set; then
11883  $as_echo_n "(cached) " >&6
11884else
11885  ac_cv_type_size_t=no
11886cat >conftest.$ac_ext <<_ACEOF
11887/* confdefs.h.  */
11888_ACEOF
11889cat confdefs.h >>conftest.$ac_ext
11890cat >>conftest.$ac_ext <<_ACEOF
11891/* end confdefs.h.  */
11892$ac_includes_default
11893int
11894main ()
11895{
11896if (sizeof (size_t))
11897       return 0;
11898  ;
11899  return 0;
11900}
11901_ACEOF
11902rm -f conftest.$ac_objext
11903if { (ac_try="$ac_compile"
11904case "(($ac_try" in
11905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11906  *) ac_try_echo=$ac_try;;
11907esac
11908eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11909$as_echo "$ac_try_echo") >&5
11910  (eval "$ac_compile") 2>conftest.er1
11911  ac_status=$?
11912  grep -v '^ *+' conftest.er1 >conftest.err
11913  rm -f conftest.er1
11914  cat conftest.err >&5
11915  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916  (exit $ac_status); } && {
11917	 test -z "$ac_c_werror_flag" ||
11918	 test ! -s conftest.err
11919       } && test -s conftest.$ac_objext; then
11920  cat >conftest.$ac_ext <<_ACEOF
11921/* confdefs.h.  */
11922_ACEOF
11923cat confdefs.h >>conftest.$ac_ext
11924cat >>conftest.$ac_ext <<_ACEOF
11925/* end confdefs.h.  */
11926$ac_includes_default
11927int
11928main ()
11929{
11930if (sizeof ((size_t)))
11931	  return 0;
11932  ;
11933  return 0;
11934}
11935_ACEOF
11936rm -f conftest.$ac_objext
11937if { (ac_try="$ac_compile"
11938case "(($ac_try" in
11939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11940  *) ac_try_echo=$ac_try;;
11941esac
11942eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11943$as_echo "$ac_try_echo") >&5
11944  (eval "$ac_compile") 2>conftest.er1
11945  ac_status=$?
11946  grep -v '^ *+' conftest.er1 >conftest.err
11947  rm -f conftest.er1
11948  cat conftest.err >&5
11949  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950  (exit $ac_status); } && {
11951	 test -z "$ac_c_werror_flag" ||
11952	 test ! -s conftest.err
11953       } && test -s conftest.$ac_objext; then
11954  :
11955else
11956  $as_echo "$as_me: failed program was:" >&5
11957sed 's/^/| /' conftest.$ac_ext >&5
11958
11959	ac_cv_type_size_t=yes
11960fi
11961
11962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11963else
11964  $as_echo "$as_me: failed program was:" >&5
11965sed 's/^/| /' conftest.$ac_ext >&5
11966
11967
11968fi
11969
11970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11971fi
11972{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11973$as_echo "$ac_cv_type_size_t" >&6; }
11974if test $ac_cv_type_size_t = yes; then
11975  :
11976else
11977
11978cat >>confdefs.h <<_ACEOF
11979#define size_t unsigned int
11980_ACEOF
11981
11982fi
11983
11984{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11985$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11986if test "${ac_cv_type_uid_t+set}" = set; then
11987  $as_echo_n "(cached) " >&6
11988else
11989  cat >conftest.$ac_ext <<_ACEOF
11990/* confdefs.h.  */
11991_ACEOF
11992cat confdefs.h >>conftest.$ac_ext
11993cat >>conftest.$ac_ext <<_ACEOF
11994/* end confdefs.h.  */
11995#include <sys/types.h>
11996
11997_ACEOF
11998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11999  $EGREP "uid_t" >/dev/null 2>&1; then
12000  ac_cv_type_uid_t=yes
12001else
12002  ac_cv_type_uid_t=no
12003fi
12004rm -f conftest*
12005
12006fi
12007{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12008$as_echo "$ac_cv_type_uid_t" >&6; }
12009if test $ac_cv_type_uid_t = no; then
12010
12011cat >>confdefs.h <<\_ACEOF
12012#define uid_t int
12013_ACEOF
12014
12015
12016cat >>confdefs.h <<\_ACEOF
12017#define gid_t int
12018_ACEOF
12019
12020fi
12021
12022{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12023$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12024if test "${ac_cv_header_time+set}" = set; then
12025  $as_echo_n "(cached) " >&6
12026else
12027  cat >conftest.$ac_ext <<_ACEOF
12028/* confdefs.h.  */
12029_ACEOF
12030cat confdefs.h >>conftest.$ac_ext
12031cat >>conftest.$ac_ext <<_ACEOF
12032/* end confdefs.h.  */
12033#include <sys/types.h>
12034#include <sys/time.h>
12035#include <time.h>
12036
12037int
12038main ()
12039{
12040if ((struct tm *) 0)
12041return 0;
12042  ;
12043  return 0;
12044}
12045_ACEOF
12046rm -f conftest.$ac_objext
12047if { (ac_try="$ac_compile"
12048case "(($ac_try" in
12049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12050  *) ac_try_echo=$ac_try;;
12051esac
12052eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12053$as_echo "$ac_try_echo") >&5
12054  (eval "$ac_compile") 2>conftest.er1
12055  ac_status=$?
12056  grep -v '^ *+' conftest.er1 >conftest.err
12057  rm -f conftest.er1
12058  cat conftest.err >&5
12059  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060  (exit $ac_status); } && {
12061	 test -z "$ac_c_werror_flag" ||
12062	 test ! -s conftest.err
12063       } && test -s conftest.$ac_objext; then
12064  ac_cv_header_time=yes
12065else
12066  $as_echo "$as_me: failed program was:" >&5
12067sed 's/^/| /' conftest.$ac_ext >&5
12068
12069	ac_cv_header_time=no
12070fi
12071
12072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12073fi
12074{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12075$as_echo "$ac_cv_header_time" >&6; }
12076if test $ac_cv_header_time = yes; then
12077
12078cat >>confdefs.h <<\_ACEOF
12079#define TIME_WITH_SYS_TIME 1
12080_ACEOF
12081
12082fi
12083
12084{ $as_echo "$as_me:$LINENO: checking for ino_t" >&5
12085$as_echo_n "checking for ino_t... " >&6; }
12086if test "${ac_cv_type_ino_t+set}" = set; then
12087  $as_echo_n "(cached) " >&6
12088else
12089  ac_cv_type_ino_t=no
12090cat >conftest.$ac_ext <<_ACEOF
12091/* confdefs.h.  */
12092_ACEOF
12093cat confdefs.h >>conftest.$ac_ext
12094cat >>conftest.$ac_ext <<_ACEOF
12095/* end confdefs.h.  */
12096$ac_includes_default
12097int
12098main ()
12099{
12100if (sizeof (ino_t))
12101       return 0;
12102  ;
12103  return 0;
12104}
12105_ACEOF
12106rm -f conftest.$ac_objext
12107if { (ac_try="$ac_compile"
12108case "(($ac_try" in
12109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12110  *) ac_try_echo=$ac_try;;
12111esac
12112eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12113$as_echo "$ac_try_echo") >&5
12114  (eval "$ac_compile") 2>conftest.er1
12115  ac_status=$?
12116  grep -v '^ *+' conftest.er1 >conftest.err
12117  rm -f conftest.er1
12118  cat conftest.err >&5
12119  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120  (exit $ac_status); } && {
12121	 test -z "$ac_c_werror_flag" ||
12122	 test ! -s conftest.err
12123       } && test -s conftest.$ac_objext; then
12124  cat >conftest.$ac_ext <<_ACEOF
12125/* confdefs.h.  */
12126_ACEOF
12127cat confdefs.h >>conftest.$ac_ext
12128cat >>conftest.$ac_ext <<_ACEOF
12129/* end confdefs.h.  */
12130$ac_includes_default
12131int
12132main ()
12133{
12134if (sizeof ((ino_t)))
12135	  return 0;
12136  ;
12137  return 0;
12138}
12139_ACEOF
12140rm -f conftest.$ac_objext
12141if { (ac_try="$ac_compile"
12142case "(($ac_try" in
12143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12144  *) ac_try_echo=$ac_try;;
12145esac
12146eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12147$as_echo "$ac_try_echo") >&5
12148  (eval "$ac_compile") 2>conftest.er1
12149  ac_status=$?
12150  grep -v '^ *+' conftest.er1 >conftest.err
12151  rm -f conftest.er1
12152  cat conftest.err >&5
12153  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154  (exit $ac_status); } && {
12155	 test -z "$ac_c_werror_flag" ||
12156	 test ! -s conftest.err
12157       } && test -s conftest.$ac_objext; then
12158  :
12159else
12160  $as_echo "$as_me: failed program was:" >&5
12161sed 's/^/| /' conftest.$ac_ext >&5
12162
12163	ac_cv_type_ino_t=yes
12164fi
12165
12166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12167else
12168  $as_echo "$as_me: failed program was:" >&5
12169sed 's/^/| /' conftest.$ac_ext >&5
12170
12171
12172fi
12173
12174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12175fi
12176{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12177$as_echo "$ac_cv_type_ino_t" >&6; }
12178if test $ac_cv_type_ino_t = yes; then
12179  :
12180else
12181
12182cat >>confdefs.h <<_ACEOF
12183#define ino_t long
12184_ACEOF
12185
12186fi
12187
12188{ $as_echo "$as_me:$LINENO: checking for dev_t" >&5
12189$as_echo_n "checking for dev_t... " >&6; }
12190if test "${ac_cv_type_dev_t+set}" = set; then
12191  $as_echo_n "(cached) " >&6
12192else
12193  ac_cv_type_dev_t=no
12194cat >conftest.$ac_ext <<_ACEOF
12195/* confdefs.h.  */
12196_ACEOF
12197cat confdefs.h >>conftest.$ac_ext
12198cat >>conftest.$ac_ext <<_ACEOF
12199/* end confdefs.h.  */
12200$ac_includes_default
12201int
12202main ()
12203{
12204if (sizeof (dev_t))
12205       return 0;
12206  ;
12207  return 0;
12208}
12209_ACEOF
12210rm -f conftest.$ac_objext
12211if { (ac_try="$ac_compile"
12212case "(($ac_try" in
12213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12214  *) ac_try_echo=$ac_try;;
12215esac
12216eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12217$as_echo "$ac_try_echo") >&5
12218  (eval "$ac_compile") 2>conftest.er1
12219  ac_status=$?
12220  grep -v '^ *+' conftest.er1 >conftest.err
12221  rm -f conftest.er1
12222  cat conftest.err >&5
12223  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224  (exit $ac_status); } && {
12225	 test -z "$ac_c_werror_flag" ||
12226	 test ! -s conftest.err
12227       } && test -s conftest.$ac_objext; then
12228  cat >conftest.$ac_ext <<_ACEOF
12229/* confdefs.h.  */
12230_ACEOF
12231cat confdefs.h >>conftest.$ac_ext
12232cat >>conftest.$ac_ext <<_ACEOF
12233/* end confdefs.h.  */
12234$ac_includes_default
12235int
12236main ()
12237{
12238if (sizeof ((dev_t)))
12239	  return 0;
12240  ;
12241  return 0;
12242}
12243_ACEOF
12244rm -f conftest.$ac_objext
12245if { (ac_try="$ac_compile"
12246case "(($ac_try" in
12247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12248  *) ac_try_echo=$ac_try;;
12249esac
12250eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12251$as_echo "$ac_try_echo") >&5
12252  (eval "$ac_compile") 2>conftest.er1
12253  ac_status=$?
12254  grep -v '^ *+' conftest.er1 >conftest.err
12255  rm -f conftest.er1
12256  cat conftest.err >&5
12257  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258  (exit $ac_status); } && {
12259	 test -z "$ac_c_werror_flag" ||
12260	 test ! -s conftest.err
12261       } && test -s conftest.$ac_objext; then
12262  :
12263else
12264  $as_echo "$as_me: failed program was:" >&5
12265sed 's/^/| /' conftest.$ac_ext >&5
12266
12267	ac_cv_type_dev_t=yes
12268fi
12269
12270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12271else
12272  $as_echo "$as_me: failed program was:" >&5
12273sed 's/^/| /' conftest.$ac_ext >&5
12274
12275
12276fi
12277
12278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12279fi
12280{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12281$as_echo "$ac_cv_type_dev_t" >&6; }
12282if test $ac_cv_type_dev_t = yes; then
12283  :
12284else
12285
12286cat >>confdefs.h <<_ACEOF
12287#define dev_t unsigned
12288_ACEOF
12289
12290fi
12291
12292
12293{ $as_echo "$as_me:$LINENO: checking for rlim_t" >&5
12294$as_echo_n "checking for rlim_t... " >&6; }
12295if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
12296  { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
12297$as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
12298else
12299  cat >conftest.$ac_ext <<_ACEOF
12300/* confdefs.h.  */
12301_ACEOF
12302cat confdefs.h >>conftest.$ac_ext
12303cat >>conftest.$ac_ext <<_ACEOF
12304/* end confdefs.h.  */
12305
12306#include <sys/types.h>
12307#if STDC_HEADERS
12308# include <stdlib.h>
12309# include <stddef.h>
12310#endif
12311#ifdef HAVE_SYS_RESOURCE_H
12312# include <sys/resource.h>
12313#endif
12314
12315_ACEOF
12316if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12317  $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12318  ac_cv_type_rlim_t=yes
12319else
12320  ac_cv_type_rlim_t=no
12321fi
12322rm -f conftest*
12323
12324	  { $as_echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
12325$as_echo "$ac_cv_type_rlim_t" >&6; }
12326fi
12327if test $ac_cv_type_rlim_t = no; then
12328  cat >> confdefs.h <<\EOF
12329#define rlim_t unsigned long
12330EOF
12331fi
12332
12333{ $as_echo "$as_me:$LINENO: checking for stack_t" >&5
12334$as_echo_n "checking for stack_t... " >&6; }
12335if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
12336  { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
12337$as_echo "(cached) $ac_cv_type_stack_t" >&6; }
12338else
12339  cat >conftest.$ac_ext <<_ACEOF
12340/* confdefs.h.  */
12341_ACEOF
12342cat confdefs.h >>conftest.$ac_ext
12343cat >>conftest.$ac_ext <<_ACEOF
12344/* end confdefs.h.  */
12345
12346#include <sys/types.h>
12347#if STDC_HEADERS
12348# include <stdlib.h>
12349# include <stddef.h>
12350#endif
12351#include <signal.h>
12352
12353_ACEOF
12354if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12355  $EGREP "stack_t" >/dev/null 2>&1; then
12356  ac_cv_type_stack_t=yes
12357else
12358  ac_cv_type_stack_t=no
12359fi
12360rm -f conftest*
12361
12362	  { $as_echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
12363$as_echo "$ac_cv_type_stack_t" >&6; }
12364fi
12365if test $ac_cv_type_stack_t = no; then
12366  cat >> confdefs.h <<\EOF
12367#define stack_t struct sigaltstack
12368EOF
12369fi
12370
12371{ $as_echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
12372$as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
12373cat >conftest.$ac_ext <<_ACEOF
12374/* confdefs.h.  */
12375_ACEOF
12376cat confdefs.h >>conftest.$ac_ext
12377cat >>conftest.$ac_ext <<_ACEOF
12378/* end confdefs.h.  */
12379
12380#include <sys/types.h>
12381#if STDC_HEADERS
12382# include <stdlib.h>
12383# include <stddef.h>
12384#endif
12385#include <signal.h>
12386#include "confdefs.h"
12387
12388int
12389main ()
12390{
12391stack_t sigstk; sigstk.ss_base = 0;
12392  ;
12393  return 0;
12394}
12395_ACEOF
12396rm -f conftest.$ac_objext
12397if { (ac_try="$ac_compile"
12398case "(($ac_try" in
12399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12400  *) ac_try_echo=$ac_try;;
12401esac
12402eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12403$as_echo "$ac_try_echo") >&5
12404  (eval "$ac_compile") 2>conftest.er1
12405  ac_status=$?
12406  grep -v '^ *+' conftest.er1 >conftest.err
12407  rm -f conftest.er1
12408  cat conftest.err >&5
12409  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410  (exit $ac_status); } && {
12411	 test -z "$ac_c_werror_flag" ||
12412	 test ! -s conftest.err
12413       } && test -s conftest.$ac_objext; then
12414  { $as_echo "$as_me:$LINENO: result: yes" >&5
12415$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12416#define HAVE_SS_BASE 1
12417_ACEOF
12418
12419else
12420  $as_echo "$as_me: failed program was:" >&5
12421sed 's/^/| /' conftest.$ac_ext >&5
12422
12423	{ $as_echo "$as_me:$LINENO: result: no" >&5
12424$as_echo "no" >&6; }
12425fi
12426
12427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12428
12429olibs="$LIBS"
12430{ $as_echo "$as_me:$LINENO: checking --with-tlib argument" >&5
12431$as_echo_n "checking --with-tlib argument... " >&6; }
12432
12433# Check whether --with-tlib was given.
12434if test "${with_tlib+set}" = set; then
12435  withval=$with_tlib;
12436fi
12437
12438if test -n "$with_tlib"; then
12439  { $as_echo "$as_me:$LINENO: result: $with_tlib" >&5
12440$as_echo "$with_tlib" >&6; }
12441  LIBS="$LIBS -l$with_tlib"
12442  { $as_echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
12443$as_echo_n "checking for linking with $with_tlib library... " >&6; }
12444  cat >conftest.$ac_ext <<_ACEOF
12445/* confdefs.h.  */
12446_ACEOF
12447cat confdefs.h >>conftest.$ac_ext
12448cat >>conftest.$ac_ext <<_ACEOF
12449/* end confdefs.h.  */
12450
12451int
12452main ()
12453{
12454
12455  ;
12456  return 0;
12457}
12458_ACEOF
12459rm -f conftest.$ac_objext conftest$ac_exeext
12460if { (ac_try="$ac_link"
12461case "(($ac_try" in
12462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12463  *) ac_try_echo=$ac_try;;
12464esac
12465eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12466$as_echo "$ac_try_echo") >&5
12467  (eval "$ac_link") 2>conftest.er1
12468  ac_status=$?
12469  grep -v '^ *+' conftest.er1 >conftest.err
12470  rm -f conftest.er1
12471  cat conftest.err >&5
12472  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473  (exit $ac_status); } && {
12474	 test -z "$ac_c_werror_flag" ||
12475	 test ! -s conftest.err
12476       } && test -s conftest$ac_exeext && {
12477	 test "$cross_compiling" = yes ||
12478	 $as_test_x conftest$ac_exeext
12479       }; then
12480  { $as_echo "$as_me:$LINENO: result: OK" >&5
12481$as_echo "OK" >&6; }
12482else
12483  $as_echo "$as_me: failed program was:" >&5
12484sed 's/^/| /' conftest.$ac_ext >&5
12485
12486	{ { $as_echo "$as_me:$LINENO: error: FAILED" >&5
12487$as_echo "$as_me: error: FAILED" >&2;}
12488   { (exit 1); exit 1; }; }
12489fi
12490
12491rm -rf conftest.dSYM
12492rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12493      conftest$ac_exeext conftest.$ac_ext
12494    olibs="$LIBS"
12495else
12496  { $as_echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
12497$as_echo "empty: automatic terminal library selection" >&6; }
12498              case "`uname -s 2>/dev/null`" in
12499	OSF1|SCO_SV)	tlibs="ncurses curses termlib termcap";;
12500	*)	tlibs="ncurses termlib termcap curses";;
12501  esac
12502  for libname in $tlibs; do
12503
12504as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
12505{ $as_echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
12506$as_echo_n "checking for tgetent in -l${libname}... " >&6; }
12507if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12508  $as_echo_n "(cached) " >&6
12509else
12510  ac_check_lib_save_LIBS=$LIBS
12511LIBS="-l${libname}  $LIBS"
12512cat >conftest.$ac_ext <<_ACEOF
12513/* confdefs.h.  */
12514_ACEOF
12515cat confdefs.h >>conftest.$ac_ext
12516cat >>conftest.$ac_ext <<_ACEOF
12517/* end confdefs.h.  */
12518
12519/* Override any GCC internal prototype to avoid an error.
12520   Use char because int might match the return type of a GCC
12521   builtin and then its argument prototype would still apply.  */
12522#ifdef __cplusplus
12523extern "C"
12524#endif
12525char tgetent ();
12526int
12527main ()
12528{
12529return tgetent ();
12530  ;
12531  return 0;
12532}
12533_ACEOF
12534rm -f conftest.$ac_objext conftest$ac_exeext
12535if { (ac_try="$ac_link"
12536case "(($ac_try" in
12537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12538  *) ac_try_echo=$ac_try;;
12539esac
12540eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12541$as_echo "$ac_try_echo") >&5
12542  (eval "$ac_link") 2>conftest.er1
12543  ac_status=$?
12544  grep -v '^ *+' conftest.er1 >conftest.err
12545  rm -f conftest.er1
12546  cat conftest.err >&5
12547  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548  (exit $ac_status); } && {
12549	 test -z "$ac_c_werror_flag" ||
12550	 test ! -s conftest.err
12551       } && test -s conftest$ac_exeext && {
12552	 test "$cross_compiling" = yes ||
12553	 $as_test_x conftest$ac_exeext
12554       }; then
12555  eval "$as_ac_Lib=yes"
12556else
12557  $as_echo "$as_me: failed program was:" >&5
12558sed 's/^/| /' conftest.$ac_ext >&5
12559
12560	eval "$as_ac_Lib=no"
12561fi
12562
12563rm -rf conftest.dSYM
12564rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12565      conftest$ac_exeext conftest.$ac_ext
12566LIBS=$ac_check_lib_save_LIBS
12567fi
12568ac_res=`eval 'as_val=${'$as_ac_Lib'}
12569		 $as_echo "$as_val"'`
12570	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12571$as_echo "$ac_res" >&6; }
12572if test `eval 'as_val=${'$as_ac_Lib'}
12573		 $as_echo "$as_val"'` = yes; then
12574  cat >>confdefs.h <<_ACEOF
12575#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
12576_ACEOF
12577
12578  LIBS="-l${libname} $LIBS"
12579
12580fi
12581
12582    if test "x$olibs" != "x$LIBS"; then
12583                        if test "$cross_compiling" = yes; then
12584  res="FAIL"
12585else
12586  cat >conftest.$ac_ext <<_ACEOF
12587/* confdefs.h.  */
12588_ACEOF
12589cat confdefs.h >>conftest.$ac_ext
12590cat >>conftest.$ac_ext <<_ACEOF
12591/* end confdefs.h.  */
12592
12593#ifdef HAVE_TERMCAP_H
12594# include <termcap.h>
12595#endif
12596#if STDC_HEADERS
12597# include <stdlib.h>
12598# include <stddef.h>
12599#endif
12600main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
12601_ACEOF
12602rm -f conftest$ac_exeext
12603if { (ac_try="$ac_link"
12604case "(($ac_try" in
12605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12606  *) ac_try_echo=$ac_try;;
12607esac
12608eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12609$as_echo "$ac_try_echo") >&5
12610  (eval "$ac_link") 2>&5
12611  ac_status=$?
12612  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12614  { (case "(($ac_try" in
12615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616  *) ac_try_echo=$ac_try;;
12617esac
12618eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12619$as_echo "$ac_try_echo") >&5
12620  (eval "$ac_try") 2>&5
12621  ac_status=$?
12622  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623  (exit $ac_status); }; }; then
12624  res="OK"
12625else
12626  $as_echo "$as_me: program exited with status $ac_status" >&5
12627$as_echo "$as_me: failed program was:" >&5
12628sed 's/^/| /' conftest.$ac_ext >&5
12629
12630( exit $ac_status )
12631res="FAIL"
12632fi
12633rm -rf conftest.dSYM
12634rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12635fi
12636
12637
12638      if test "$res" = "OK"; then
12639	break
12640      fi
12641      { $as_echo "$as_me:$LINENO: result: $libname library is not usable" >&5
12642$as_echo "$libname library is not usable" >&6; }
12643      LIBS="$olibs"
12644    fi
12645  done
12646  if test "x$olibs" = "x$LIBS"; then
12647    { $as_echo "$as_me:$LINENO: result: no terminal library found" >&5
12648$as_echo "no terminal library found" >&6; }
12649  fi
12650fi
12651
12652if test "x$olibs" = "x$LIBS"; then
12653  { $as_echo "$as_me:$LINENO: checking for tgetent()" >&5
12654$as_echo_n "checking for tgetent()... " >&6; }
12655  cat >conftest.$ac_ext <<_ACEOF
12656/* confdefs.h.  */
12657_ACEOF
12658cat confdefs.h >>conftest.$ac_ext
12659cat >>conftest.$ac_ext <<_ACEOF
12660/* end confdefs.h.  */
12661
12662int
12663main ()
12664{
12665char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
12666  ;
12667  return 0;
12668}
12669_ACEOF
12670rm -f conftest.$ac_objext conftest$ac_exeext
12671if { (ac_try="$ac_link"
12672case "(($ac_try" in
12673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12674  *) ac_try_echo=$ac_try;;
12675esac
12676eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12677$as_echo "$ac_try_echo") >&5
12678  (eval "$ac_link") 2>conftest.er1
12679  ac_status=$?
12680  grep -v '^ *+' conftest.er1 >conftest.err
12681  rm -f conftest.er1
12682  cat conftest.err >&5
12683  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684  (exit $ac_status); } && {
12685	 test -z "$ac_c_werror_flag" ||
12686	 test ! -s conftest.err
12687       } && test -s conftest$ac_exeext && {
12688	 test "$cross_compiling" = yes ||
12689	 $as_test_x conftest$ac_exeext
12690       }; then
12691  { $as_echo "$as_me:$LINENO: result: yes" >&5
12692$as_echo "yes" >&6; }
12693else
12694  $as_echo "$as_me: failed program was:" >&5
12695sed 's/^/| /' conftest.$ac_ext >&5
12696
12697	{ { $as_echo "$as_me:$LINENO: error: NOT FOUND!
12698      You need to install a terminal library; for example ncurses.
12699      Or specify the name of the library with --with-tlib." >&5
12700$as_echo "$as_me: error: NOT FOUND!
12701      You need to install a terminal library; for example ncurses.
12702      Or specify the name of the library with --with-tlib." >&2;}
12703   { (exit 1); exit 1; }; }
12704fi
12705
12706rm -rf conftest.dSYM
12707rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12708      conftest$ac_exeext conftest.$ac_ext
12709fi
12710
12711{ $as_echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
12712$as_echo_n "checking whether we talk terminfo... " >&6; }
12713if test "${vim_cv_terminfo+set}" = set; then
12714  $as_echo_n "(cached) " >&6
12715else
12716
12717    if test "$cross_compiling" = yes; then
12718
12719      { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5
12720$as_echo "$as_me: error: cross-compiling: please set 'vim_cv_terminfo'" >&2;}
12721   { (exit 1); exit 1; }; }
12722
12723else
12724  cat >conftest.$ac_ext <<_ACEOF
12725
12726#include "confdefs.h"
12727#ifdef HAVE_TERMCAP_H
12728# include <termcap.h>
12729#endif
12730#ifdef HAVE_STRING_H
12731# include <string.h>
12732#endif
12733#if STDC_HEADERS
12734# include <stdlib.h>
12735# include <stddef.h>
12736#endif
12737main()
12738{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
12739
12740_ACEOF
12741rm -f conftest$ac_exeext
12742if { (ac_try="$ac_link"
12743case "(($ac_try" in
12744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12745  *) ac_try_echo=$ac_try;;
12746esac
12747eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12748$as_echo "$ac_try_echo") >&5
12749  (eval "$ac_link") 2>&5
12750  ac_status=$?
12751  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12753  { (case "(($ac_try" in
12754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12755  *) ac_try_echo=$ac_try;;
12756esac
12757eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12758$as_echo "$ac_try_echo") >&5
12759  (eval "$ac_try") 2>&5
12760  ac_status=$?
12761  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762  (exit $ac_status); }; }; then
12763
12764      vim_cv_terminfo=no
12765
12766else
12767  $as_echo "$as_me: program exited with status $ac_status" >&5
12768$as_echo "$as_me: failed program was:" >&5
12769sed 's/^/| /' conftest.$ac_ext >&5
12770
12771( exit $ac_status )
12772
12773      vim_cv_terminfo=yes
12774
12775fi
12776rm -rf conftest.dSYM
12777rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12778fi
12779
12780
12781
12782fi
12783{ $as_echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5
12784$as_echo "$vim_cv_terminfo" >&6; }
12785
12786if test "x$vim_cv_terminfo" = "xyes" ; then
12787  cat >>confdefs.h <<\_ACEOF
12788#define TERMINFO 1
12789_ACEOF
12790
12791fi
12792
12793if test "x$olibs" != "x$LIBS"; then
12794  { $as_echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
12795$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
12796if test "${vim_cv_tgent+set}" = set; then
12797  $as_echo_n "(cached) " >&6
12798else
12799
12800      if test "$cross_compiling" = yes; then
12801
12802	{ { $as_echo "$as_me:$LINENO: error: failed to compile test program." >&5
12803$as_echo "$as_me: error: failed to compile test program." >&2;}
12804   { (exit 1); exit 1; }; }
12805
12806else
12807  cat >conftest.$ac_ext <<_ACEOF
12808
12809#include "confdefs.h"
12810#ifdef HAVE_TERMCAP_H
12811# include <termcap.h>
12812#endif
12813#if STDC_HEADERS
12814# include <stdlib.h>
12815# include <stddef.h>
12816#endif
12817main()
12818{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
12819
12820_ACEOF
12821rm -f conftest$ac_exeext
12822if { (ac_try="$ac_link"
12823case "(($ac_try" in
12824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12825  *) ac_try_echo=$ac_try;;
12826esac
12827eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12828$as_echo "$ac_try_echo") >&5
12829  (eval "$ac_link") 2>&5
12830  ac_status=$?
12831  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12833  { (case "(($ac_try" in
12834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12835  *) ac_try_echo=$ac_try;;
12836esac
12837eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12838$as_echo "$ac_try_echo") >&5
12839  (eval "$ac_try") 2>&5
12840  ac_status=$?
12841  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842  (exit $ac_status); }; }; then
12843
12844	vim_cv_tgent=zero
12845
12846else
12847  $as_echo "$as_me: program exited with status $ac_status" >&5
12848$as_echo "$as_me: failed program was:" >&5
12849sed 's/^/| /' conftest.$ac_ext >&5
12850
12851( exit $ac_status )
12852
12853	vim_cv_tgent=non-zero
12854
12855fi
12856rm -rf conftest.dSYM
12857rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12858fi
12859
12860
12861
12862fi
12863{ $as_echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5
12864$as_echo "$vim_cv_tgent" >&6; }
12865
12866  if test "x$vim_cv_tgent" = "xzero" ; then
12867    cat >>confdefs.h <<\_ACEOF
12868#define TGETENT_ZERO_ERR 0
12869_ACEOF
12870
12871  fi
12872fi
12873
12874{ $as_echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
12875$as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
12876cat >conftest.$ac_ext <<_ACEOF
12877/* confdefs.h.  */
12878_ACEOF
12879cat confdefs.h >>conftest.$ac_ext
12880cat >>conftest.$ac_ext <<_ACEOF
12881/* end confdefs.h.  */
12882
12883#ifdef HAVE_TERMCAP_H
12884# include <termcap.h>
12885#endif
12886
12887int
12888main ()
12889{
12890ospeed = 20000
12891  ;
12892  return 0;
12893}
12894_ACEOF
12895rm -f conftest.$ac_objext conftest$ac_exeext
12896if { (ac_try="$ac_link"
12897case "(($ac_try" in
12898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899  *) ac_try_echo=$ac_try;;
12900esac
12901eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12902$as_echo "$ac_try_echo") >&5
12903  (eval "$ac_link") 2>conftest.er1
12904  ac_status=$?
12905  grep -v '^ *+' conftest.er1 >conftest.err
12906  rm -f conftest.er1
12907  cat conftest.err >&5
12908  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909  (exit $ac_status); } && {
12910	 test -z "$ac_c_werror_flag" ||
12911	 test ! -s conftest.err
12912       } && test -s conftest$ac_exeext && {
12913	 test "$cross_compiling" = yes ||
12914	 $as_test_x conftest$ac_exeext
12915       }; then
12916  { $as_echo "$as_me:$LINENO: result: yes" >&5
12917$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12918#define HAVE_OSPEED 1
12919_ACEOF
12920
12921else
12922  $as_echo "$as_me: failed program was:" >&5
12923sed 's/^/| /' conftest.$ac_ext >&5
12924
12925	{ $as_echo "$as_me:$LINENO: result: no" >&5
12926$as_echo "no" >&6; }
12927	{ $as_echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
12928$as_echo_n "checking whether ospeed can be extern... " >&6; }
12929	cat >conftest.$ac_ext <<_ACEOF
12930/* confdefs.h.  */
12931_ACEOF
12932cat confdefs.h >>conftest.$ac_ext
12933cat >>conftest.$ac_ext <<_ACEOF
12934/* end confdefs.h.  */
12935
12936#ifdef HAVE_TERMCAP_H
12937# include <termcap.h>
12938#endif
12939extern short ospeed;
12940
12941int
12942main ()
12943{
12944ospeed = 20000
12945  ;
12946  return 0;
12947}
12948_ACEOF
12949rm -f conftest.$ac_objext conftest$ac_exeext
12950if { (ac_try="$ac_link"
12951case "(($ac_try" in
12952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12953  *) ac_try_echo=$ac_try;;
12954esac
12955eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12956$as_echo "$ac_try_echo") >&5
12957  (eval "$ac_link") 2>conftest.er1
12958  ac_status=$?
12959  grep -v '^ *+' conftest.er1 >conftest.err
12960  rm -f conftest.er1
12961  cat conftest.err >&5
12962  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963  (exit $ac_status); } && {
12964	 test -z "$ac_c_werror_flag" ||
12965	 test ! -s conftest.err
12966       } && test -s conftest$ac_exeext && {
12967	 test "$cross_compiling" = yes ||
12968	 $as_test_x conftest$ac_exeext
12969       }; then
12970  { $as_echo "$as_me:$LINENO: result: yes" >&5
12971$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12972#define OSPEED_EXTERN 1
12973_ACEOF
12974
12975else
12976  $as_echo "$as_me: failed program was:" >&5
12977sed 's/^/| /' conftest.$ac_ext >&5
12978
12979	{ $as_echo "$as_me:$LINENO: result: no" >&5
12980$as_echo "no" >&6; }
12981fi
12982
12983rm -rf conftest.dSYM
12984rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12985      conftest$ac_exeext conftest.$ac_ext
12986
12987fi
12988
12989rm -rf conftest.dSYM
12990rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12991      conftest$ac_exeext conftest.$ac_ext
12992
12993{ $as_echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
12994$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
12995cat >conftest.$ac_ext <<_ACEOF
12996/* confdefs.h.  */
12997_ACEOF
12998cat confdefs.h >>conftest.$ac_ext
12999cat >>conftest.$ac_ext <<_ACEOF
13000/* end confdefs.h.  */
13001
13002#ifdef HAVE_TERMCAP_H
13003# include <termcap.h>
13004#endif
13005
13006int
13007main ()
13008{
13009if (UP == 0 && BC == 0) PC = 1
13010  ;
13011  return 0;
13012}
13013_ACEOF
13014rm -f conftest.$ac_objext conftest$ac_exeext
13015if { (ac_try="$ac_link"
13016case "(($ac_try" in
13017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13018  *) ac_try_echo=$ac_try;;
13019esac
13020eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13021$as_echo "$ac_try_echo") >&5
13022  (eval "$ac_link") 2>conftest.er1
13023  ac_status=$?
13024  grep -v '^ *+' conftest.er1 >conftest.err
13025  rm -f conftest.er1
13026  cat conftest.err >&5
13027  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028  (exit $ac_status); } && {
13029	 test -z "$ac_c_werror_flag" ||
13030	 test ! -s conftest.err
13031       } && test -s conftest$ac_exeext && {
13032	 test "$cross_compiling" = yes ||
13033	 $as_test_x conftest$ac_exeext
13034       }; then
13035  { $as_echo "$as_me:$LINENO: result: yes" >&5
13036$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13037#define HAVE_UP_BC_PC 1
13038_ACEOF
13039
13040else
13041  $as_echo "$as_me: failed program was:" >&5
13042sed 's/^/| /' conftest.$ac_ext >&5
13043
13044	{ $as_echo "$as_me:$LINENO: result: no" >&5
13045$as_echo "no" >&6; }
13046	{ $as_echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
13047$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
13048	cat >conftest.$ac_ext <<_ACEOF
13049/* confdefs.h.  */
13050_ACEOF
13051cat confdefs.h >>conftest.$ac_ext
13052cat >>conftest.$ac_ext <<_ACEOF
13053/* end confdefs.h.  */
13054
13055#ifdef HAVE_TERMCAP_H
13056# include <termcap.h>
13057#endif
13058extern char *UP, *BC, PC;
13059
13060int
13061main ()
13062{
13063if (UP == 0 && BC == 0) PC = 1
13064  ;
13065  return 0;
13066}
13067_ACEOF
13068rm -f conftest.$ac_objext conftest$ac_exeext
13069if { (ac_try="$ac_link"
13070case "(($ac_try" in
13071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13072  *) ac_try_echo=$ac_try;;
13073esac
13074eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13075$as_echo "$ac_try_echo") >&5
13076  (eval "$ac_link") 2>conftest.er1
13077  ac_status=$?
13078  grep -v '^ *+' conftest.er1 >conftest.err
13079  rm -f conftest.er1
13080  cat conftest.err >&5
13081  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082  (exit $ac_status); } && {
13083	 test -z "$ac_c_werror_flag" ||
13084	 test ! -s conftest.err
13085       } && test -s conftest$ac_exeext && {
13086	 test "$cross_compiling" = yes ||
13087	 $as_test_x conftest$ac_exeext
13088       }; then
13089  { $as_echo "$as_me:$LINENO: result: yes" >&5
13090$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13091#define UP_BC_PC_EXTERN 1
13092_ACEOF
13093
13094else
13095  $as_echo "$as_me: failed program was:" >&5
13096sed 's/^/| /' conftest.$ac_ext >&5
13097
13098	{ $as_echo "$as_me:$LINENO: result: no" >&5
13099$as_echo "no" >&6; }
13100fi
13101
13102rm -rf conftest.dSYM
13103rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13104      conftest$ac_exeext conftest.$ac_ext
13105
13106fi
13107
13108rm -rf conftest.dSYM
13109rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13110      conftest$ac_exeext conftest.$ac_ext
13111
13112{ $as_echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
13113$as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
13114cat >conftest.$ac_ext <<_ACEOF
13115/* confdefs.h.  */
13116_ACEOF
13117cat confdefs.h >>conftest.$ac_ext
13118cat >>conftest.$ac_ext <<_ACEOF
13119/* end confdefs.h.  */
13120
13121#ifdef HAVE_TERMCAP_H
13122# include <termcap.h>
13123#endif
13124
13125int
13126main ()
13127{
13128extern int xx(); tputs("test", 1, (outfuntype)xx)
13129  ;
13130  return 0;
13131}
13132_ACEOF
13133rm -f conftest.$ac_objext
13134if { (ac_try="$ac_compile"
13135case "(($ac_try" in
13136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13137  *) ac_try_echo=$ac_try;;
13138esac
13139eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13140$as_echo "$ac_try_echo") >&5
13141  (eval "$ac_compile") 2>conftest.er1
13142  ac_status=$?
13143  grep -v '^ *+' conftest.er1 >conftest.err
13144  rm -f conftest.er1
13145  cat conftest.err >&5
13146  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147  (exit $ac_status); } && {
13148	 test -z "$ac_c_werror_flag" ||
13149	 test ! -s conftest.err
13150       } && test -s conftest.$ac_objext; then
13151  { $as_echo "$as_me:$LINENO: result: yes" >&5
13152$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13153#define HAVE_OUTFUNTYPE 1
13154_ACEOF
13155
13156else
13157  $as_echo "$as_me: failed program was:" >&5
13158sed 's/^/| /' conftest.$ac_ext >&5
13159
13160	{ $as_echo "$as_me:$LINENO: result: no" >&5
13161$as_echo "no" >&6; }
13162fi
13163
13164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13165
13166{ $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
13167$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
13168cat >conftest.$ac_ext <<_ACEOF
13169/* confdefs.h.  */
13170_ACEOF
13171cat confdefs.h >>conftest.$ac_ext
13172cat >>conftest.$ac_ext <<_ACEOF
13173/* end confdefs.h.  */
13174
13175#include <sys/types.h>
13176#include <sys/time.h>
13177#include <sys/select.h>
13178int
13179main ()
13180{
13181
13182  ;
13183  return 0;
13184}
13185_ACEOF
13186rm -f conftest.$ac_objext
13187if { (ac_try="$ac_compile"
13188case "(($ac_try" in
13189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13190  *) ac_try_echo=$ac_try;;
13191esac
13192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13193$as_echo "$ac_try_echo") >&5
13194  (eval "$ac_compile") 2>conftest.er1
13195  ac_status=$?
13196  grep -v '^ *+' conftest.er1 >conftest.err
13197  rm -f conftest.er1
13198  cat conftest.err >&5
13199  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200  (exit $ac_status); } && {
13201	 test -z "$ac_c_werror_flag" ||
13202	 test ! -s conftest.err
13203       } && test -s conftest.$ac_objext; then
13204  { $as_echo "$as_me:$LINENO: result: yes" >&5
13205$as_echo "yes" >&6; }
13206			cat >>confdefs.h <<\_ACEOF
13207#define SYS_SELECT_WITH_SYS_TIME 1
13208_ACEOF
13209
13210else
13211  $as_echo "$as_me: failed program was:" >&5
13212sed 's/^/| /' conftest.$ac_ext >&5
13213
13214	{ $as_echo "$as_me:$LINENO: result: no" >&5
13215$as_echo "no" >&6; }
13216fi
13217
13218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13219
13220
13221{ $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5
13222$as_echo_n "checking for /dev/ptc... " >&6; }
13223if test -r /dev/ptc; then
13224  cat >>confdefs.h <<\_ACEOF
13225#define HAVE_DEV_PTC 1
13226_ACEOF
13227
13228  { $as_echo "$as_me:$LINENO: result: yes" >&5
13229$as_echo "yes" >&6; }
13230else
13231  { $as_echo "$as_me:$LINENO: result: no" >&5
13232$as_echo "no" >&6; }
13233fi
13234
13235{ $as_echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
13236$as_echo_n "checking for SVR4 ptys... " >&6; }
13237if test -c /dev/ptmx ; then
13238  cat >conftest.$ac_ext <<_ACEOF
13239/* confdefs.h.  */
13240_ACEOF
13241cat confdefs.h >>conftest.$ac_ext
13242cat >>conftest.$ac_ext <<_ACEOF
13243/* end confdefs.h.  */
13244
13245int
13246main ()
13247{
13248ptsname(0);grantpt(0);unlockpt(0);
13249  ;
13250  return 0;
13251}
13252_ACEOF
13253rm -f conftest.$ac_objext conftest$ac_exeext
13254if { (ac_try="$ac_link"
13255case "(($ac_try" in
13256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257  *) ac_try_echo=$ac_try;;
13258esac
13259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13260$as_echo "$ac_try_echo") >&5
13261  (eval "$ac_link") 2>conftest.er1
13262  ac_status=$?
13263  grep -v '^ *+' conftest.er1 >conftest.err
13264  rm -f conftest.er1
13265  cat conftest.err >&5
13266  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267  (exit $ac_status); } && {
13268	 test -z "$ac_c_werror_flag" ||
13269	 test ! -s conftest.err
13270       } && test -s conftest$ac_exeext && {
13271	 test "$cross_compiling" = yes ||
13272	 $as_test_x conftest$ac_exeext
13273       }; then
13274  { $as_echo "$as_me:$LINENO: result: yes" >&5
13275$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13276#define HAVE_SVR4_PTYS 1
13277_ACEOF
13278
13279else
13280  $as_echo "$as_me: failed program was:" >&5
13281sed 's/^/| /' conftest.$ac_ext >&5
13282
13283	{ $as_echo "$as_me:$LINENO: result: no" >&5
13284$as_echo "no" >&6; }
13285fi
13286
13287rm -rf conftest.dSYM
13288rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13289      conftest$ac_exeext conftest.$ac_ext
13290else
13291  { $as_echo "$as_me:$LINENO: result: no" >&5
13292$as_echo "no" >&6; }
13293fi
13294
13295{ $as_echo "$as_me:$LINENO: checking for ptyranges" >&5
13296$as_echo_n "checking for ptyranges... " >&6; }
13297if test -d /dev/ptym ; then
13298  pdir='/dev/ptym'
13299else
13300  pdir='/dev'
13301fi
13302cat >conftest.$ac_ext <<_ACEOF
13303/* confdefs.h.  */
13304_ACEOF
13305cat confdefs.h >>conftest.$ac_ext
13306cat >>conftest.$ac_ext <<_ACEOF
13307/* end confdefs.h.  */
13308#ifdef M_UNIX
13309   yes;
13310#endif
13311
13312_ACEOF
13313if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13314  $EGREP "yes" >/dev/null 2>&1; then
13315  ptys=`echo /dev/ptyp??`
13316else
13317  ptys=`echo $pdir/pty??`
13318fi
13319rm -f conftest*
13320
13321if test "$ptys" != "$pdir/pty??" ; then
13322  p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
13323  p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g'  | sort -u | tr -d '\012'`
13324  cat >>confdefs.h <<_ACEOF
13325#define PTYRANGE0 "$p0"
13326_ACEOF
13327
13328  cat >>confdefs.h <<_ACEOF
13329#define PTYRANGE1 "$p1"
13330_ACEOF
13331
13332  { $as_echo "$as_me:$LINENO: result: $p0 / $p1" >&5
13333$as_echo "$p0 / $p1" >&6; }
13334else
13335  { $as_echo "$as_me:$LINENO: result: don't know" >&5
13336$as_echo "don't know" >&6; }
13337fi
13338
13339rm -f conftest_grp
13340{ $as_echo "$as_me:$LINENO: checking default tty permissions/group" >&5
13341$as_echo_n "checking default tty permissions/group... " >&6; }
13342if test "${vim_cv_tty_group+set}" = set; then
13343  $as_echo_n "(cached) " >&6
13344else
13345
13346    if test "$cross_compiling" = yes; then
13347
13348      { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5
13349$as_echo "$as_me: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&2;}
13350   { (exit 1); exit 1; }; }
13351
13352else
13353  cat >conftest.$ac_ext <<_ACEOF
13354
13355#include "confdefs.h"
13356#include <sys/types.h>
13357#if STDC_HEADERS
13358# include <stdlib.h>
13359# include <stddef.h>
13360#endif
13361#ifdef HAVE_UNISTD_H
13362#include <unistd.h>
13363#endif
13364#include <sys/stat.h>
13365#include <stdio.h>
13366main()
13367{
13368  struct stat sb;
13369  char *x,*ttyname();
13370  int om, m;
13371  FILE *fp;
13372
13373  if (!(x = ttyname(0))) exit(1);
13374  if (stat(x, &sb)) exit(1);
13375  om = sb.st_mode;
13376  if (om & 002) exit(0);
13377  m = system("mesg y");
13378  if (m == -1 || m == 127) exit(1);
13379  if (stat(x, &sb)) exit(1);
13380  m = sb.st_mode;
13381  if (chmod(x, om)) exit(1);
13382  if (m & 002) exit(0);
13383  if (sb.st_gid == getgid()) exit(1);
13384  if (!(fp=fopen("conftest_grp", "w")))
13385    exit(1);
13386  fprintf(fp, "%d\n", sb.st_gid);
13387  fclose(fp);
13388  exit(0);
13389}
13390
13391_ACEOF
13392rm -f conftest$ac_exeext
13393if { (ac_try="$ac_link"
13394case "(($ac_try" in
13395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13396  *) ac_try_echo=$ac_try;;
13397esac
13398eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13399$as_echo "$ac_try_echo") >&5
13400  (eval "$ac_link") 2>&5
13401  ac_status=$?
13402  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13404  { (case "(($ac_try" in
13405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13406  *) ac_try_echo=$ac_try;;
13407esac
13408eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13409$as_echo "$ac_try_echo") >&5
13410  (eval "$ac_try") 2>&5
13411  ac_status=$?
13412  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413  (exit $ac_status); }; }; then
13414
13415      if test -f conftest_grp; then
13416	vim_cv_tty_group=`cat conftest_grp`
13417	if test "x$vim_cv_tty_mode" = "x" ; then
13418	  vim_cv_tty_mode=0620
13419	fi
13420	{ $as_echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
13421$as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
13422      else
13423	vim_cv_tty_group=world
13424	{ $as_echo "$as_me:$LINENO: result: ptys are world accessable" >&5
13425$as_echo "ptys are world accessable" >&6; }
13426      fi
13427
13428else
13429  $as_echo "$as_me: program exited with status $ac_status" >&5
13430$as_echo "$as_me: failed program was:" >&5
13431sed 's/^/| /' conftest.$ac_ext >&5
13432
13433( exit $ac_status )
13434
13435      vim_cv_tty_group=world
13436      { $as_echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
13437$as_echo "can't determine - assume ptys are world accessable" >&6; }
13438
13439fi
13440rm -rf conftest.dSYM
13441rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13442fi
13443
13444
13445
13446fi
13447{ $as_echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5
13448$as_echo "$vim_cv_tty_group" >&6; }
13449rm -f conftest_grp
13450
13451if test "x$vim_cv_tty_group" != "xworld" ; then
13452  cat >>confdefs.h <<_ACEOF
13453#define PTYGROUP $vim_cv_tty_group
13454_ACEOF
13455
13456  if test "x$vim_cv_tty_mode" = "x" ; then
13457    { { $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
13458$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;}
13459   { (exit 1); exit 1; }; }
13460  else
13461    cat >>confdefs.h <<\_ACEOF
13462#define PTYMODE 0620
13463_ACEOF
13464
13465  fi
13466fi
13467
13468
13469{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13470$as_echo_n "checking return type of signal handlers... " >&6; }
13471if test "${ac_cv_type_signal+set}" = set; then
13472  $as_echo_n "(cached) " >&6
13473else
13474  cat >conftest.$ac_ext <<_ACEOF
13475/* confdefs.h.  */
13476_ACEOF
13477cat confdefs.h >>conftest.$ac_ext
13478cat >>conftest.$ac_ext <<_ACEOF
13479/* end confdefs.h.  */
13480#include <sys/types.h>
13481#include <signal.h>
13482
13483int
13484main ()
13485{
13486return *(signal (0, 0)) (0) == 1;
13487  ;
13488  return 0;
13489}
13490_ACEOF
13491rm -f conftest.$ac_objext
13492if { (ac_try="$ac_compile"
13493case "(($ac_try" in
13494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13495  *) ac_try_echo=$ac_try;;
13496esac
13497eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13498$as_echo "$ac_try_echo") >&5
13499  (eval "$ac_compile") 2>conftest.er1
13500  ac_status=$?
13501  grep -v '^ *+' conftest.er1 >conftest.err
13502  rm -f conftest.er1
13503  cat conftest.err >&5
13504  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505  (exit $ac_status); } && {
13506	 test -z "$ac_c_werror_flag" ||
13507	 test ! -s conftest.err
13508       } && test -s conftest.$ac_objext; then
13509  ac_cv_type_signal=int
13510else
13511  $as_echo "$as_me: failed program was:" >&5
13512sed 's/^/| /' conftest.$ac_ext >&5
13513
13514	ac_cv_type_signal=void
13515fi
13516
13517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13518fi
13519{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13520$as_echo "$ac_cv_type_signal" >&6; }
13521
13522cat >>confdefs.h <<_ACEOF
13523#define RETSIGTYPE $ac_cv_type_signal
13524_ACEOF
13525
13526
13527
13528if test $ac_cv_type_signal = void; then
13529  cat >>confdefs.h <<\_ACEOF
13530#define SIGRETURN return
13531_ACEOF
13532
13533else
13534  cat >>confdefs.h <<\_ACEOF
13535#define SIGRETURN return 0
13536_ACEOF
13537
13538fi
13539
13540{ $as_echo "$as_me:$LINENO: checking for struct sigcontext" >&5
13541$as_echo_n "checking for struct sigcontext... " >&6; }
13542cat >conftest.$ac_ext <<_ACEOF
13543/* confdefs.h.  */
13544_ACEOF
13545cat confdefs.h >>conftest.$ac_ext
13546cat >>conftest.$ac_ext <<_ACEOF
13547/* end confdefs.h.  */
13548
13549#include <signal.h>
13550test_sig()
13551{
13552    struct sigcontext *scont;
13553    scont = (struct sigcontext *)0;
13554    return 1;
13555}
13556int
13557main ()
13558{
13559
13560  ;
13561  return 0;
13562}
13563_ACEOF
13564rm -f conftest.$ac_objext
13565if { (ac_try="$ac_compile"
13566case "(($ac_try" in
13567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13568  *) ac_try_echo=$ac_try;;
13569esac
13570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13571$as_echo "$ac_try_echo") >&5
13572  (eval "$ac_compile") 2>conftest.er1
13573  ac_status=$?
13574  grep -v '^ *+' conftest.er1 >conftest.err
13575  rm -f conftest.er1
13576  cat conftest.err >&5
13577  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578  (exit $ac_status); } && {
13579	 test -z "$ac_c_werror_flag" ||
13580	 test ! -s conftest.err
13581       } && test -s conftest.$ac_objext; then
13582  { $as_echo "$as_me:$LINENO: result: yes" >&5
13583$as_echo "yes" >&6; }
13584		cat >>confdefs.h <<\_ACEOF
13585#define HAVE_SIGCONTEXT 1
13586_ACEOF
13587
13588else
13589  $as_echo "$as_me: failed program was:" >&5
13590sed 's/^/| /' conftest.$ac_ext >&5
13591
13592	{ $as_echo "$as_me:$LINENO: result: no" >&5
13593$as_echo "no" >&6; }
13594fi
13595
13596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13597
13598{ $as_echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5
13599$as_echo_n "checking getcwd implementation is broken... " >&6; }
13600if test "${vim_cv_getcwd_broken+set}" = set; then
13601  $as_echo_n "(cached) " >&6
13602else
13603
13604    if test "$cross_compiling" = yes; then
13605
13606      { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5
13607$as_echo "$as_me: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&2;}
13608   { (exit 1); exit 1; }; }
13609
13610else
13611  cat >conftest.$ac_ext <<_ACEOF
13612
13613#include "confdefs.h"
13614#ifdef HAVE_UNISTD_H
13615#include <unistd.h>
13616#endif
13617char *dagger[] = { "IFS=pwd", 0 };
13618main()
13619{
13620  char buffer[500];
13621  extern char **environ;
13622  environ = dagger;
13623  return getcwd(buffer, 500) ? 0 : 1;
13624}
13625
13626_ACEOF
13627rm -f conftest$ac_exeext
13628if { (ac_try="$ac_link"
13629case "(($ac_try" in
13630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13631  *) ac_try_echo=$ac_try;;
13632esac
13633eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13634$as_echo "$ac_try_echo") >&5
13635  (eval "$ac_link") 2>&5
13636  ac_status=$?
13637  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13639  { (case "(($ac_try" in
13640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641  *) ac_try_echo=$ac_try;;
13642esac
13643eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13644$as_echo "$ac_try_echo") >&5
13645  (eval "$ac_try") 2>&5
13646  ac_status=$?
13647  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648  (exit $ac_status); }; }; then
13649
13650      vim_cv_getcwd_broken=no
13651
13652else
13653  $as_echo "$as_me: program exited with status $ac_status" >&5
13654$as_echo "$as_me: failed program was:" >&5
13655sed 's/^/| /' conftest.$ac_ext >&5
13656
13657( exit $ac_status )
13658
13659      vim_cv_getcwd_broken=yes
13660
13661fi
13662rm -rf conftest.dSYM
13663rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13664fi
13665
13666
13667
13668fi
13669{ $as_echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5
13670$as_echo "$vim_cv_getcwd_broken" >&6; }
13671
13672if test "x$vim_cv_getcwd_broken" = "xyes" ; then
13673  cat >>confdefs.h <<\_ACEOF
13674#define BAD_GETCWD 1
13675_ACEOF
13676
13677fi
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
13726	getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
13727	memset nanosleep opendir putenv qsort readlink select setenv \
13728	setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
13729	sigvec strcasecmp strerror strftime stricmp strncasecmp \
13730	strnicmp strpbrk strtol tgetent towlower towupper iswupper \
13731	usleep utime utimes
13732do
13733as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13734{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13735$as_echo_n "checking for $ac_func... " >&6; }
13736if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13737  $as_echo_n "(cached) " >&6
13738else
13739  cat >conftest.$ac_ext <<_ACEOF
13740/* confdefs.h.  */
13741_ACEOF
13742cat confdefs.h >>conftest.$ac_ext
13743cat >>conftest.$ac_ext <<_ACEOF
13744/* end confdefs.h.  */
13745/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13746   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13747#define $ac_func innocuous_$ac_func
13748
13749/* System header to define __stub macros and hopefully few prototypes,
13750    which can conflict with char $ac_func (); below.
13751    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13752    <limits.h> exists even on freestanding compilers.  */
13753
13754#ifdef __STDC__
13755# include <limits.h>
13756#else
13757# include <assert.h>
13758#endif
13759
13760#undef $ac_func
13761
13762/* Override any GCC internal prototype to avoid an error.
13763   Use char because int might match the return type of a GCC
13764   builtin and then its argument prototype would still apply.  */
13765#ifdef __cplusplus
13766extern "C"
13767#endif
13768char $ac_func ();
13769/* The GNU C library defines this for functions which it implements
13770    to always fail with ENOSYS.  Some functions are actually named
13771    something starting with __ and the normal name is an alias.  */
13772#if defined __stub_$ac_func || defined __stub___$ac_func
13773choke me
13774#endif
13775
13776int
13777main ()
13778{
13779return $ac_func ();
13780  ;
13781  return 0;
13782}
13783_ACEOF
13784rm -f conftest.$ac_objext conftest$ac_exeext
13785if { (ac_try="$ac_link"
13786case "(($ac_try" in
13787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13788  *) ac_try_echo=$ac_try;;
13789esac
13790eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13791$as_echo "$ac_try_echo") >&5
13792  (eval "$ac_link") 2>conftest.er1
13793  ac_status=$?
13794  grep -v '^ *+' conftest.er1 >conftest.err
13795  rm -f conftest.er1
13796  cat conftest.err >&5
13797  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798  (exit $ac_status); } && {
13799	 test -z "$ac_c_werror_flag" ||
13800	 test ! -s conftest.err
13801       } && test -s conftest$ac_exeext && {
13802	 test "$cross_compiling" = yes ||
13803	 $as_test_x conftest$ac_exeext
13804       }; then
13805  eval "$as_ac_var=yes"
13806else
13807  $as_echo "$as_me: failed program was:" >&5
13808sed 's/^/| /' conftest.$ac_ext >&5
13809
13810	eval "$as_ac_var=no"
13811fi
13812
13813rm -rf conftest.dSYM
13814rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13815      conftest$ac_exeext conftest.$ac_ext
13816fi
13817ac_res=`eval 'as_val=${'$as_ac_var'}
13818		 $as_echo "$as_val"'`
13819	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13820$as_echo "$ac_res" >&6; }
13821if test `eval 'as_val=${'$as_ac_var'}
13822		 $as_echo "$as_val"'` = yes; then
13823  cat >>confdefs.h <<_ACEOF
13824#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13825_ACEOF
13826
13827fi
13828done
13829
13830
13831{ $as_echo "$as_me:$LINENO: checking for st_blksize" >&5
13832$as_echo_n "checking for st_blksize... " >&6; }
13833cat >conftest.$ac_ext <<_ACEOF
13834/* confdefs.h.  */
13835_ACEOF
13836cat confdefs.h >>conftest.$ac_ext
13837cat >>conftest.$ac_ext <<_ACEOF
13838/* end confdefs.h.  */
13839#include <sys/types.h>
13840#include <sys/stat.h>
13841int
13842main ()
13843{
13844	struct stat st;
13845	int n;
13846
13847	stat("/", &st);
13848	n = (int)st.st_blksize;
13849  ;
13850  return 0;
13851}
13852_ACEOF
13853rm -f conftest.$ac_objext
13854if { (ac_try="$ac_compile"
13855case "(($ac_try" in
13856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13857  *) ac_try_echo=$ac_try;;
13858esac
13859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13860$as_echo "$ac_try_echo") >&5
13861  (eval "$ac_compile") 2>conftest.er1
13862  ac_status=$?
13863  grep -v '^ *+' conftest.er1 >conftest.err
13864  rm -f conftest.er1
13865  cat conftest.err >&5
13866  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867  (exit $ac_status); } && {
13868	 test -z "$ac_c_werror_flag" ||
13869	 test ! -s conftest.err
13870       } && test -s conftest.$ac_objext; then
13871  { $as_echo "$as_me:$LINENO: result: yes" >&5
13872$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13873#define HAVE_ST_BLKSIZE 1
13874_ACEOF
13875
13876else
13877  $as_echo "$as_me: failed program was:" >&5
13878sed 's/^/| /' conftest.$ac_ext >&5
13879
13880	{ $as_echo "$as_me:$LINENO: result: no" >&5
13881$as_echo "no" >&6; }
13882fi
13883
13884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13885
13886{ $as_echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
13887$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
13888if test "${vim_cv_stat_ignores_slash+set}" = set; then
13889  $as_echo_n "(cached) " >&6
13890else
13891
13892    if test "$cross_compiling" = yes; then
13893
13894      { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5
13895$as_echo "$as_me: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&2;}
13896   { (exit 1); exit 1; }; }
13897
13898else
13899  cat >conftest.$ac_ext <<_ACEOF
13900
13901#include "confdefs.h"
13902#if STDC_HEADERS
13903# include <stdlib.h>
13904# include <stddef.h>
13905#endif
13906#include <sys/types.h>
13907#include <sys/stat.h>
13908main() {struct stat st;  exit(stat("configure/", &st) != 0); }
13909
13910_ACEOF
13911rm -f conftest$ac_exeext
13912if { (ac_try="$ac_link"
13913case "(($ac_try" in
13914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13915  *) ac_try_echo=$ac_try;;
13916esac
13917eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13918$as_echo "$ac_try_echo") >&5
13919  (eval "$ac_link") 2>&5
13920  ac_status=$?
13921  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13923  { (case "(($ac_try" in
13924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13925  *) ac_try_echo=$ac_try;;
13926esac
13927eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13928$as_echo "$ac_try_echo") >&5
13929  (eval "$ac_try") 2>&5
13930  ac_status=$?
13931  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932  (exit $ac_status); }; }; then
13933
13934      vim_cv_stat_ignores_slash=yes
13935
13936else
13937  $as_echo "$as_me: program exited with status $ac_status" >&5
13938$as_echo "$as_me: failed program was:" >&5
13939sed 's/^/| /' conftest.$ac_ext >&5
13940
13941( exit $ac_status )
13942
13943      vim_cv_stat_ignores_slash=no
13944
13945fi
13946rm -rf conftest.dSYM
13947rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13948fi
13949
13950
13951
13952fi
13953{ $as_echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5
13954$as_echo "$vim_cv_stat_ignores_slash" >&6; }
13955
13956if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
13957  cat >>confdefs.h <<\_ACEOF
13958#define STAT_IGNORES_SLASH 1
13959_ACEOF
13960
13961fi
13962
13963{ $as_echo "$as_me:$LINENO: checking for iconv_open()" >&5
13964$as_echo_n "checking for iconv_open()... " >&6; }
13965save_LIBS="$LIBS"
13966LIBS="$LIBS -liconv"
13967cat >conftest.$ac_ext <<_ACEOF
13968/* confdefs.h.  */
13969_ACEOF
13970cat confdefs.h >>conftest.$ac_ext
13971cat >>conftest.$ac_ext <<_ACEOF
13972/* end confdefs.h.  */
13973
13974#ifdef HAVE_ICONV_H
13975# include <iconv.h>
13976#endif
13977
13978int
13979main ()
13980{
13981iconv_open("fr", "to");
13982  ;
13983  return 0;
13984}
13985_ACEOF
13986rm -f conftest.$ac_objext conftest$ac_exeext
13987if { (ac_try="$ac_link"
13988case "(($ac_try" in
13989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13990  *) ac_try_echo=$ac_try;;
13991esac
13992eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13993$as_echo "$ac_try_echo") >&5
13994  (eval "$ac_link") 2>conftest.er1
13995  ac_status=$?
13996  grep -v '^ *+' conftest.er1 >conftest.err
13997  rm -f conftest.er1
13998  cat conftest.err >&5
13999  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000  (exit $ac_status); } && {
14001	 test -z "$ac_c_werror_flag" ||
14002	 test ! -s conftest.err
14003       } && test -s conftest$ac_exeext && {
14004	 test "$cross_compiling" = yes ||
14005	 $as_test_x conftest$ac_exeext
14006       }; then
14007  { $as_echo "$as_me:$LINENO: result: yes; with -liconv" >&5
14008$as_echo "yes; with -liconv" >&6; }; cat >>confdefs.h <<\_ACEOF
14009#define HAVE_ICONV 1
14010_ACEOF
14011
14012else
14013  $as_echo "$as_me: failed program was:" >&5
14014sed 's/^/| /' conftest.$ac_ext >&5
14015
14016	LIBS="$save_LIBS"
14017    cat >conftest.$ac_ext <<_ACEOF
14018/* confdefs.h.  */
14019_ACEOF
14020cat confdefs.h >>conftest.$ac_ext
14021cat >>conftest.$ac_ext <<_ACEOF
14022/* end confdefs.h.  */
14023
14024#ifdef HAVE_ICONV_H
14025# include <iconv.h>
14026#endif
14027
14028int
14029main ()
14030{
14031iconv_open("fr", "to");
14032  ;
14033  return 0;
14034}
14035_ACEOF
14036rm -f conftest.$ac_objext conftest$ac_exeext
14037if { (ac_try="$ac_link"
14038case "(($ac_try" in
14039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14040  *) ac_try_echo=$ac_try;;
14041esac
14042eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14043$as_echo "$ac_try_echo") >&5
14044  (eval "$ac_link") 2>conftest.er1
14045  ac_status=$?
14046  grep -v '^ *+' conftest.er1 >conftest.err
14047  rm -f conftest.er1
14048  cat conftest.err >&5
14049  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050  (exit $ac_status); } && {
14051	 test -z "$ac_c_werror_flag" ||
14052	 test ! -s conftest.err
14053       } && test -s conftest$ac_exeext && {
14054	 test "$cross_compiling" = yes ||
14055	 $as_test_x conftest$ac_exeext
14056       }; then
14057  { $as_echo "$as_me:$LINENO: result: yes" >&5
14058$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14059#define HAVE_ICONV 1
14060_ACEOF
14061
14062else
14063  $as_echo "$as_me: failed program was:" >&5
14064sed 's/^/| /' conftest.$ac_ext >&5
14065
14066	{ $as_echo "$as_me:$LINENO: result: no" >&5
14067$as_echo "no" >&6; }
14068fi
14069
14070rm -rf conftest.dSYM
14071rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14072      conftest$ac_exeext conftest.$ac_ext
14073fi
14074
14075rm -rf conftest.dSYM
14076rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14077      conftest$ac_exeext conftest.$ac_ext
14078
14079
14080{ $as_echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
14081$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
14082cat >conftest.$ac_ext <<_ACEOF
14083/* confdefs.h.  */
14084_ACEOF
14085cat confdefs.h >>conftest.$ac_ext
14086cat >>conftest.$ac_ext <<_ACEOF
14087/* end confdefs.h.  */
14088
14089#ifdef HAVE_LANGINFO_H
14090# include <langinfo.h>
14091#endif
14092
14093int
14094main ()
14095{
14096char *cs = nl_langinfo(CODESET);
14097  ;
14098  return 0;
14099}
14100_ACEOF
14101rm -f conftest.$ac_objext conftest$ac_exeext
14102if { (ac_try="$ac_link"
14103case "(($ac_try" in
14104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14105  *) ac_try_echo=$ac_try;;
14106esac
14107eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14108$as_echo "$ac_try_echo") >&5
14109  (eval "$ac_link") 2>conftest.er1
14110  ac_status=$?
14111  grep -v '^ *+' conftest.er1 >conftest.err
14112  rm -f conftest.er1
14113  cat conftest.err >&5
14114  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115  (exit $ac_status); } && {
14116	 test -z "$ac_c_werror_flag" ||
14117	 test ! -s conftest.err
14118       } && test -s conftest$ac_exeext && {
14119	 test "$cross_compiling" = yes ||
14120	 $as_test_x conftest$ac_exeext
14121       }; then
14122  { $as_echo "$as_me:$LINENO: result: yes" >&5
14123$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14124#define HAVE_NL_LANGINFO_CODESET 1
14125_ACEOF
14126
14127else
14128  $as_echo "$as_me: failed program was:" >&5
14129sed 's/^/| /' conftest.$ac_ext >&5
14130
14131	{ $as_echo "$as_me:$LINENO: result: no" >&5
14132$as_echo "no" >&6; }
14133fi
14134
14135rm -rf conftest.dSYM
14136rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14137      conftest$ac_exeext conftest.$ac_ext
14138
14139
14140{ $as_echo "$as_me:$LINENO: checking for strtod in -lm" >&5
14141$as_echo_n "checking for strtod in -lm... " >&6; }
14142if test "${ac_cv_lib_m_strtod+set}" = set; then
14143  $as_echo_n "(cached) " >&6
14144else
14145  ac_check_lib_save_LIBS=$LIBS
14146LIBS="-lm  $LIBS"
14147cat >conftest.$ac_ext <<_ACEOF
14148/* confdefs.h.  */
14149_ACEOF
14150cat confdefs.h >>conftest.$ac_ext
14151cat >>conftest.$ac_ext <<_ACEOF
14152/* end confdefs.h.  */
14153
14154/* Override any GCC internal prototype to avoid an error.
14155   Use char because int might match the return type of a GCC
14156   builtin and then its argument prototype would still apply.  */
14157#ifdef __cplusplus
14158extern "C"
14159#endif
14160char strtod ();
14161int
14162main ()
14163{
14164return strtod ();
14165  ;
14166  return 0;
14167}
14168_ACEOF
14169rm -f conftest.$ac_objext conftest$ac_exeext
14170if { (ac_try="$ac_link"
14171case "(($ac_try" in
14172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14173  *) ac_try_echo=$ac_try;;
14174esac
14175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14176$as_echo "$ac_try_echo") >&5
14177  (eval "$ac_link") 2>conftest.er1
14178  ac_status=$?
14179  grep -v '^ *+' conftest.er1 >conftest.err
14180  rm -f conftest.er1
14181  cat conftest.err >&5
14182  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183  (exit $ac_status); } && {
14184	 test -z "$ac_c_werror_flag" ||
14185	 test ! -s conftest.err
14186       } && test -s conftest$ac_exeext && {
14187	 test "$cross_compiling" = yes ||
14188	 $as_test_x conftest$ac_exeext
14189       }; then
14190  ac_cv_lib_m_strtod=yes
14191else
14192  $as_echo "$as_me: failed program was:" >&5
14193sed 's/^/| /' conftest.$ac_ext >&5
14194
14195	ac_cv_lib_m_strtod=no
14196fi
14197
14198rm -rf conftest.dSYM
14199rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14200      conftest$ac_exeext conftest.$ac_ext
14201LIBS=$ac_check_lib_save_LIBS
14202fi
14203{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5
14204$as_echo "$ac_cv_lib_m_strtod" >&6; }
14205if test $ac_cv_lib_m_strtod = yes; then
14206  cat >>confdefs.h <<_ACEOF
14207#define HAVE_LIBM 1
14208_ACEOF
14209
14210  LIBS="-lm $LIBS"
14211
14212fi
14213
14214{ $as_echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5
14215$as_echo_n "checking for strtod() and other floating point functions... " >&6; }
14216cat >conftest.$ac_ext <<_ACEOF
14217/* confdefs.h.  */
14218_ACEOF
14219cat confdefs.h >>conftest.$ac_ext
14220cat >>conftest.$ac_ext <<_ACEOF
14221/* end confdefs.h.  */
14222
14223#ifdef HAVE_MATH_H
14224# include <math.h>
14225#endif
14226#if STDC_HEADERS
14227# include <stdlib.h>
14228# include <stddef.h>
14229#endif
14230
14231int
14232main ()
14233{
14234char *s; double d;
14235    d = strtod("1.1", &s);
14236    d = fabs(1.11);
14237    d = ceil(1.11);
14238    d = floor(1.11);
14239    d = log10(1.11);
14240    d = pow(1.11, 2.22);
14241    d = sqrt(1.11);
14242    d = sin(1.11);
14243    d = cos(1.11);
14244    d = atan(1.11);
14245
14246  ;
14247  return 0;
14248}
14249_ACEOF
14250rm -f conftest.$ac_objext conftest$ac_exeext
14251if { (ac_try="$ac_link"
14252case "(($ac_try" in
14253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14254  *) ac_try_echo=$ac_try;;
14255esac
14256eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14257$as_echo "$ac_try_echo") >&5
14258  (eval "$ac_link") 2>conftest.er1
14259  ac_status=$?
14260  grep -v '^ *+' conftest.er1 >conftest.err
14261  rm -f conftest.er1
14262  cat conftest.err >&5
14263  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264  (exit $ac_status); } && {
14265	 test -z "$ac_c_werror_flag" ||
14266	 test ! -s conftest.err
14267       } && test -s conftest$ac_exeext && {
14268	 test "$cross_compiling" = yes ||
14269	 $as_test_x conftest$ac_exeext
14270       }; then
14271  { $as_echo "$as_me:$LINENO: result: yes" >&5
14272$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14273#define HAVE_FLOAT_FUNCS 1
14274_ACEOF
14275
14276else
14277  $as_echo "$as_me: failed program was:" >&5
14278sed 's/^/| /' conftest.$ac_ext >&5
14279
14280	{ $as_echo "$as_me:$LINENO: result: no" >&5
14281$as_echo "no" >&6; }
14282fi
14283
14284rm -rf conftest.dSYM
14285rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14286      conftest$ac_exeext conftest.$ac_ext
14287
14288{ $as_echo "$as_me:$LINENO: checking --disable-acl argument" >&5
14289$as_echo_n "checking --disable-acl argument... " >&6; }
14290# Check whether --enable-acl was given.
14291if test "${enable_acl+set}" = set; then
14292  enableval=$enable_acl;
14293else
14294  enable_acl="yes"
14295fi
14296
14297if test "$enable_acl" = "yes"; then
14298{ $as_echo "$as_me:$LINENO: result: no" >&5
14299$as_echo "no" >&6; }
14300{ $as_echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
14301$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
14302if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
14303  $as_echo_n "(cached) " >&6
14304else
14305  ac_check_lib_save_LIBS=$LIBS
14306LIBS="-lposix1e  $LIBS"
14307cat >conftest.$ac_ext <<_ACEOF
14308/* confdefs.h.  */
14309_ACEOF
14310cat confdefs.h >>conftest.$ac_ext
14311cat >>conftest.$ac_ext <<_ACEOF
14312/* end confdefs.h.  */
14313
14314/* Override any GCC internal prototype to avoid an error.
14315   Use char because int might match the return type of a GCC
14316   builtin and then its argument prototype would still apply.  */
14317#ifdef __cplusplus
14318extern "C"
14319#endif
14320char acl_get_file ();
14321int
14322main ()
14323{
14324return acl_get_file ();
14325  ;
14326  return 0;
14327}
14328_ACEOF
14329rm -f conftest.$ac_objext conftest$ac_exeext
14330if { (ac_try="$ac_link"
14331case "(($ac_try" in
14332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14333  *) ac_try_echo=$ac_try;;
14334esac
14335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14336$as_echo "$ac_try_echo") >&5
14337  (eval "$ac_link") 2>conftest.er1
14338  ac_status=$?
14339  grep -v '^ *+' conftest.er1 >conftest.err
14340  rm -f conftest.er1
14341  cat conftest.err >&5
14342  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343  (exit $ac_status); } && {
14344	 test -z "$ac_c_werror_flag" ||
14345	 test ! -s conftest.err
14346       } && test -s conftest$ac_exeext && {
14347	 test "$cross_compiling" = yes ||
14348	 $as_test_x conftest$ac_exeext
14349       }; then
14350  ac_cv_lib_posix1e_acl_get_file=yes
14351else
14352  $as_echo "$as_me: failed program was:" >&5
14353sed 's/^/| /' conftest.$ac_ext >&5
14354
14355	ac_cv_lib_posix1e_acl_get_file=no
14356fi
14357
14358rm -rf conftest.dSYM
14359rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14360      conftest$ac_exeext conftest.$ac_ext
14361LIBS=$ac_check_lib_save_LIBS
14362fi
14363{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
14364$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
14365if test $ac_cv_lib_posix1e_acl_get_file = yes; then
14366  LIBS="$LIBS -lposix1e"
14367else
14368  { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
14369$as_echo_n "checking for acl_get_file in -lacl... " >&6; }
14370if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
14371  $as_echo_n "(cached) " >&6
14372else
14373  ac_check_lib_save_LIBS=$LIBS
14374LIBS="-lacl  $LIBS"
14375cat >conftest.$ac_ext <<_ACEOF
14376/* confdefs.h.  */
14377_ACEOF
14378cat confdefs.h >>conftest.$ac_ext
14379cat >>conftest.$ac_ext <<_ACEOF
14380/* end confdefs.h.  */
14381
14382/* Override any GCC internal prototype to avoid an error.
14383   Use char because int might match the return type of a GCC
14384   builtin and then its argument prototype would still apply.  */
14385#ifdef __cplusplus
14386extern "C"
14387#endif
14388char acl_get_file ();
14389int
14390main ()
14391{
14392return acl_get_file ();
14393  ;
14394  return 0;
14395}
14396_ACEOF
14397rm -f conftest.$ac_objext conftest$ac_exeext
14398if { (ac_try="$ac_link"
14399case "(($ac_try" in
14400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14401  *) ac_try_echo=$ac_try;;
14402esac
14403eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14404$as_echo "$ac_try_echo") >&5
14405  (eval "$ac_link") 2>conftest.er1
14406  ac_status=$?
14407  grep -v '^ *+' conftest.er1 >conftest.err
14408  rm -f conftest.er1
14409  cat conftest.err >&5
14410  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411  (exit $ac_status); } && {
14412	 test -z "$ac_c_werror_flag" ||
14413	 test ! -s conftest.err
14414       } && test -s conftest$ac_exeext && {
14415	 test "$cross_compiling" = yes ||
14416	 $as_test_x conftest$ac_exeext
14417       }; then
14418  ac_cv_lib_acl_acl_get_file=yes
14419else
14420  $as_echo "$as_me: failed program was:" >&5
14421sed 's/^/| /' conftest.$ac_ext >&5
14422
14423	ac_cv_lib_acl_acl_get_file=no
14424fi
14425
14426rm -rf conftest.dSYM
14427rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14428      conftest$ac_exeext conftest.$ac_ext
14429LIBS=$ac_check_lib_save_LIBS
14430fi
14431{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
14432$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
14433if test $ac_cv_lib_acl_acl_get_file = yes; then
14434  LIBS="$LIBS -lacl"
14435		  { $as_echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
14436$as_echo_n "checking for fgetxattr in -lattr... " >&6; }
14437if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
14438  $as_echo_n "(cached) " >&6
14439else
14440  ac_check_lib_save_LIBS=$LIBS
14441LIBS="-lattr  $LIBS"
14442cat >conftest.$ac_ext <<_ACEOF
14443/* confdefs.h.  */
14444_ACEOF
14445cat confdefs.h >>conftest.$ac_ext
14446cat >>conftest.$ac_ext <<_ACEOF
14447/* end confdefs.h.  */
14448
14449/* Override any GCC internal prototype to avoid an error.
14450   Use char because int might match the return type of a GCC
14451   builtin and then its argument prototype would still apply.  */
14452#ifdef __cplusplus
14453extern "C"
14454#endif
14455char fgetxattr ();
14456int
14457main ()
14458{
14459return fgetxattr ();
14460  ;
14461  return 0;
14462}
14463_ACEOF
14464rm -f conftest.$ac_objext conftest$ac_exeext
14465if { (ac_try="$ac_link"
14466case "(($ac_try" in
14467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14468  *) ac_try_echo=$ac_try;;
14469esac
14470eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14471$as_echo "$ac_try_echo") >&5
14472  (eval "$ac_link") 2>conftest.er1
14473  ac_status=$?
14474  grep -v '^ *+' conftest.er1 >conftest.err
14475  rm -f conftest.er1
14476  cat conftest.err >&5
14477  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478  (exit $ac_status); } && {
14479	 test -z "$ac_c_werror_flag" ||
14480	 test ! -s conftest.err
14481       } && test -s conftest$ac_exeext && {
14482	 test "$cross_compiling" = yes ||
14483	 $as_test_x conftest$ac_exeext
14484       }; then
14485  ac_cv_lib_attr_fgetxattr=yes
14486else
14487  $as_echo "$as_me: failed program was:" >&5
14488sed 's/^/| /' conftest.$ac_ext >&5
14489
14490	ac_cv_lib_attr_fgetxattr=no
14491fi
14492
14493rm -rf conftest.dSYM
14494rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14495      conftest$ac_exeext conftest.$ac_ext
14496LIBS=$ac_check_lib_save_LIBS
14497fi
14498{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
14499$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
14500if test $ac_cv_lib_attr_fgetxattr = yes; then
14501  LIBS="$LIBS -lattr"
14502fi
14503
14504fi
14505
14506fi
14507
14508
14509{ $as_echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
14510$as_echo_n "checking for POSIX ACL support... " >&6; }
14511cat >conftest.$ac_ext <<_ACEOF
14512/* confdefs.h.  */
14513_ACEOF
14514cat confdefs.h >>conftest.$ac_ext
14515cat >>conftest.$ac_ext <<_ACEOF
14516/* end confdefs.h.  */
14517
14518#include <sys/types.h>
14519#ifdef HAVE_SYS_ACL_H
14520# include <sys/acl.h>
14521#endif
14522acl_t acl;
14523int
14524main ()
14525{
14526acl = acl_get_file("foo", ACL_TYPE_ACCESS);
14527	acl_set_file("foo", ACL_TYPE_ACCESS, acl);
14528	acl_free(acl);
14529  ;
14530  return 0;
14531}
14532_ACEOF
14533rm -f conftest.$ac_objext conftest$ac_exeext
14534if { (ac_try="$ac_link"
14535case "(($ac_try" in
14536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14537  *) ac_try_echo=$ac_try;;
14538esac
14539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14540$as_echo "$ac_try_echo") >&5
14541  (eval "$ac_link") 2>conftest.er1
14542  ac_status=$?
14543  grep -v '^ *+' conftest.er1 >conftest.err
14544  rm -f conftest.er1
14545  cat conftest.err >&5
14546  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547  (exit $ac_status); } && {
14548	 test -z "$ac_c_werror_flag" ||
14549	 test ! -s conftest.err
14550       } && test -s conftest$ac_exeext && {
14551	 test "$cross_compiling" = yes ||
14552	 $as_test_x conftest$ac_exeext
14553       }; then
14554  { $as_echo "$as_me:$LINENO: result: yes" >&5
14555$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14556#define HAVE_POSIX_ACL 1
14557_ACEOF
14558
14559else
14560  $as_echo "$as_me: failed program was:" >&5
14561sed 's/^/| /' conftest.$ac_ext >&5
14562
14563	{ $as_echo "$as_me:$LINENO: result: no" >&5
14564$as_echo "no" >&6; }
14565fi
14566
14567rm -rf conftest.dSYM
14568rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14569      conftest$ac_exeext conftest.$ac_ext
14570
14571{ $as_echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
14572$as_echo_n "checking for Solaris ACL support... " >&6; }
14573cat >conftest.$ac_ext <<_ACEOF
14574/* confdefs.h.  */
14575_ACEOF
14576cat confdefs.h >>conftest.$ac_ext
14577cat >>conftest.$ac_ext <<_ACEOF
14578/* end confdefs.h.  */
14579
14580#ifdef HAVE_SYS_ACL_H
14581# include <sys/acl.h>
14582#endif
14583int
14584main ()
14585{
14586acl("foo", GETACLCNT, 0, NULL);
14587
14588  ;
14589  return 0;
14590}
14591_ACEOF
14592rm -f conftest.$ac_objext conftest$ac_exeext
14593if { (ac_try="$ac_link"
14594case "(($ac_try" in
14595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14596  *) ac_try_echo=$ac_try;;
14597esac
14598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14599$as_echo "$ac_try_echo") >&5
14600  (eval "$ac_link") 2>conftest.er1
14601  ac_status=$?
14602  grep -v '^ *+' conftest.er1 >conftest.err
14603  rm -f conftest.er1
14604  cat conftest.err >&5
14605  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606  (exit $ac_status); } && {
14607	 test -z "$ac_c_werror_flag" ||
14608	 test ! -s conftest.err
14609       } && test -s conftest$ac_exeext && {
14610	 test "$cross_compiling" = yes ||
14611	 $as_test_x conftest$ac_exeext
14612       }; then
14613  { $as_echo "$as_me:$LINENO: result: yes" >&5
14614$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14615#define HAVE_SOLARIS_ACL 1
14616_ACEOF
14617
14618else
14619  $as_echo "$as_me: failed program was:" >&5
14620sed 's/^/| /' conftest.$ac_ext >&5
14621
14622	{ $as_echo "$as_me:$LINENO: result: no" >&5
14623$as_echo "no" >&6; }
14624fi
14625
14626rm -rf conftest.dSYM
14627rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14628      conftest$ac_exeext conftest.$ac_ext
14629
14630{ $as_echo "$as_me:$LINENO: checking for AIX ACL support" >&5
14631$as_echo_n "checking for AIX ACL support... " >&6; }
14632cat >conftest.$ac_ext <<_ACEOF
14633/* confdefs.h.  */
14634_ACEOF
14635cat confdefs.h >>conftest.$ac_ext
14636cat >>conftest.$ac_ext <<_ACEOF
14637/* end confdefs.h.  */
14638
14639#if STDC_HEADERS
14640# include <stdlib.h>
14641# include <stddef.h>
14642#endif
14643#ifdef HAVE_SYS_ACL_H
14644# include <sys/acl.h>
14645#endif
14646#ifdef HAVE_SYS_ACCESS_H
14647# include <sys/access.h>
14648#endif
14649#define _ALL_SOURCE
14650
14651#include <sys/stat.h>
14652
14653int aclsize;
14654struct acl *aclent;
14655int
14656main ()
14657{
14658aclsize = sizeof(struct acl);
14659	aclent = (void *)malloc(aclsize);
14660	statacl("foo", STX_NORMAL, aclent, aclsize);
14661
14662  ;
14663  return 0;
14664}
14665_ACEOF
14666rm -f conftest.$ac_objext conftest$ac_exeext
14667if { (ac_try="$ac_link"
14668case "(($ac_try" in
14669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14670  *) ac_try_echo=$ac_try;;
14671esac
14672eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14673$as_echo "$ac_try_echo") >&5
14674  (eval "$ac_link") 2>conftest.er1
14675  ac_status=$?
14676  grep -v '^ *+' conftest.er1 >conftest.err
14677  rm -f conftest.er1
14678  cat conftest.err >&5
14679  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680  (exit $ac_status); } && {
14681	 test -z "$ac_c_werror_flag" ||
14682	 test ! -s conftest.err
14683       } && test -s conftest$ac_exeext && {
14684	 test "$cross_compiling" = yes ||
14685	 $as_test_x conftest$ac_exeext
14686       }; then
14687  { $as_echo "$as_me:$LINENO: result: yes" >&5
14688$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14689#define HAVE_AIX_ACL 1
14690_ACEOF
14691
14692else
14693  $as_echo "$as_me: failed program was:" >&5
14694sed 's/^/| /' conftest.$ac_ext >&5
14695
14696	{ $as_echo "$as_me:$LINENO: result: no" >&5
14697$as_echo "no" >&6; }
14698fi
14699
14700rm -rf conftest.dSYM
14701rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14702      conftest$ac_exeext conftest.$ac_ext
14703else
14704  { $as_echo "$as_me:$LINENO: result: yes" >&5
14705$as_echo "yes" >&6; }
14706fi
14707
14708{ $as_echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
14709$as_echo_n "checking --disable-gpm argument... " >&6; }
14710# Check whether --enable-gpm was given.
14711if test "${enable_gpm+set}" = set; then
14712  enableval=$enable_gpm;
14713else
14714  enable_gpm="yes"
14715fi
14716
14717
14718if test "$enable_gpm" = "yes"; then
14719  { $as_echo "$as_me:$LINENO: result: no" >&5
14720$as_echo "no" >&6; }
14721    { $as_echo "$as_me:$LINENO: checking for gpm" >&5
14722$as_echo_n "checking for gpm... " >&6; }
14723if test "${vi_cv_have_gpm+set}" = set; then
14724  $as_echo_n "(cached) " >&6
14725else
14726  olibs="$LIBS" ; LIBS="-lgpm"
14727	cat >conftest.$ac_ext <<_ACEOF
14728/* confdefs.h.  */
14729_ACEOF
14730cat confdefs.h >>conftest.$ac_ext
14731cat >>conftest.$ac_ext <<_ACEOF
14732/* end confdefs.h.  */
14733#include <gpm.h>
14734	    #include <linux/keyboard.h>
14735int
14736main ()
14737{
14738Gpm_GetLibVersion(NULL);
14739  ;
14740  return 0;
14741}
14742_ACEOF
14743rm -f conftest.$ac_objext conftest$ac_exeext
14744if { (ac_try="$ac_link"
14745case "(($ac_try" in
14746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14747  *) ac_try_echo=$ac_try;;
14748esac
14749eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14750$as_echo "$ac_try_echo") >&5
14751  (eval "$ac_link") 2>conftest.er1
14752  ac_status=$?
14753  grep -v '^ *+' conftest.er1 >conftest.err
14754  rm -f conftest.er1
14755  cat conftest.err >&5
14756  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757  (exit $ac_status); } && {
14758	 test -z "$ac_c_werror_flag" ||
14759	 test ! -s conftest.err
14760       } && test -s conftest$ac_exeext && {
14761	 test "$cross_compiling" = yes ||
14762	 $as_test_x conftest$ac_exeext
14763       }; then
14764  	    	    vi_cv_have_gpm=yes
14765else
14766  $as_echo "$as_me: failed program was:" >&5
14767sed 's/^/| /' conftest.$ac_ext >&5
14768
14769	vi_cv_have_gpm=no
14770fi
14771
14772rm -rf conftest.dSYM
14773rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14774      conftest$ac_exeext conftest.$ac_ext
14775	LIBS="$olibs"
14776
14777fi
14778{ $as_echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
14779$as_echo "$vi_cv_have_gpm" >&6; }
14780  if test $vi_cv_have_gpm = yes; then
14781    LIBS="$LIBS -lgpm"
14782    cat >>confdefs.h <<\_ACEOF
14783#define HAVE_GPM 1
14784_ACEOF
14785
14786  fi
14787else
14788  { $as_echo "$as_me:$LINENO: result: yes" >&5
14789$as_echo "yes" >&6; }
14790fi
14791
14792{ $as_echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5
14793$as_echo_n "checking --disable-sysmouse argument... " >&6; }
14794# Check whether --enable-sysmouse was given.
14795if test "${enable_sysmouse+set}" = set; then
14796  enableval=$enable_sysmouse;
14797else
14798  enable_sysmouse="yes"
14799fi
14800
14801
14802if test "$enable_sysmouse" = "yes"; then
14803  { $as_echo "$as_me:$LINENO: result: no" >&5
14804$as_echo "no" >&6; }
14805        { $as_echo "$as_me:$LINENO: checking for sysmouse" >&5
14806$as_echo_n "checking for sysmouse... " >&6; }
14807if test "${vi_cv_have_sysmouse+set}" = set; then
14808  $as_echo_n "(cached) " >&6
14809else
14810  cat >conftest.$ac_ext <<_ACEOF
14811/* confdefs.h.  */
14812_ACEOF
14813cat confdefs.h >>conftest.$ac_ext
14814cat >>conftest.$ac_ext <<_ACEOF
14815/* end confdefs.h.  */
14816#include <sys/consio.h>
14817	     #include <signal.h>
14818	     #include <sys/fbio.h>
14819int
14820main ()
14821{
14822struct mouse_info   mouse;
14823	     mouse.operation = MOUSE_MODE;
14824	     mouse.operation = MOUSE_SHOW;
14825	     mouse.u.mode.mode = 0;
14826	     mouse.u.mode.signal = SIGUSR2;
14827  ;
14828  return 0;
14829}
14830_ACEOF
14831rm -f conftest.$ac_objext conftest$ac_exeext
14832if { (ac_try="$ac_link"
14833case "(($ac_try" in
14834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14835  *) ac_try_echo=$ac_try;;
14836esac
14837eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14838$as_echo "$ac_try_echo") >&5
14839  (eval "$ac_link") 2>conftest.er1
14840  ac_status=$?
14841  grep -v '^ *+' conftest.er1 >conftest.err
14842  rm -f conftest.er1
14843  cat conftest.err >&5
14844  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845  (exit $ac_status); } && {
14846	 test -z "$ac_c_werror_flag" ||
14847	 test ! -s conftest.err
14848       } && test -s conftest$ac_exeext && {
14849	 test "$cross_compiling" = yes ||
14850	 $as_test_x conftest$ac_exeext
14851       }; then
14852  vi_cv_have_sysmouse=yes
14853else
14854  $as_echo "$as_me: failed program was:" >&5
14855sed 's/^/| /' conftest.$ac_ext >&5
14856
14857	vi_cv_have_sysmouse=no
14858fi
14859
14860rm -rf conftest.dSYM
14861rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14862      conftest$ac_exeext conftest.$ac_ext
14863
14864fi
14865{ $as_echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5
14866$as_echo "$vi_cv_have_sysmouse" >&6; }
14867  if test $vi_cv_have_sysmouse = yes; then
14868    cat >>confdefs.h <<\_ACEOF
14869#define HAVE_SYSMOUSE 1
14870_ACEOF
14871
14872  fi
14873else
14874  { $as_echo "$as_me:$LINENO: result: yes" >&5
14875$as_echo "yes" >&6; }
14876fi
14877
14878{ $as_echo "$as_me:$LINENO: checking for rename" >&5
14879$as_echo_n "checking for rename... " >&6; }
14880cat >conftest.$ac_ext <<_ACEOF
14881/* confdefs.h.  */
14882_ACEOF
14883cat confdefs.h >>conftest.$ac_ext
14884cat >>conftest.$ac_ext <<_ACEOF
14885/* end confdefs.h.  */
14886#include <stdio.h>
14887int
14888main ()
14889{
14890rename("this", "that")
14891  ;
14892  return 0;
14893}
14894_ACEOF
14895rm -f conftest.$ac_objext conftest$ac_exeext
14896if { (ac_try="$ac_link"
14897case "(($ac_try" in
14898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14899  *) ac_try_echo=$ac_try;;
14900esac
14901eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14902$as_echo "$ac_try_echo") >&5
14903  (eval "$ac_link") 2>conftest.er1
14904  ac_status=$?
14905  grep -v '^ *+' conftest.er1 >conftest.err
14906  rm -f conftest.er1
14907  cat conftest.err >&5
14908  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909  (exit $ac_status); } && {
14910	 test -z "$ac_c_werror_flag" ||
14911	 test ! -s conftest.err
14912       } && test -s conftest$ac_exeext && {
14913	 test "$cross_compiling" = yes ||
14914	 $as_test_x conftest$ac_exeext
14915       }; then
14916  { $as_echo "$as_me:$LINENO: result: yes" >&5
14917$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14918#define HAVE_RENAME 1
14919_ACEOF
14920
14921else
14922  $as_echo "$as_me: failed program was:" >&5
14923sed 's/^/| /' conftest.$ac_ext >&5
14924
14925	{ $as_echo "$as_me:$LINENO: result: no" >&5
14926$as_echo "no" >&6; }
14927fi
14928
14929rm -rf conftest.dSYM
14930rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14931      conftest$ac_exeext conftest.$ac_ext
14932
14933{ $as_echo "$as_me:$LINENO: checking for sysctl" >&5
14934$as_echo_n "checking for sysctl... " >&6; }
14935cat >conftest.$ac_ext <<_ACEOF
14936/* confdefs.h.  */
14937_ACEOF
14938cat confdefs.h >>conftest.$ac_ext
14939cat >>conftest.$ac_ext <<_ACEOF
14940/* end confdefs.h.  */
14941#include <sys/types.h>
14942#include <sys/sysctl.h>
14943int
14944main ()
14945{
14946	int mib[2], r;
14947	size_t len;
14948
14949	mib[0] = CTL_HW;
14950	mib[1] = HW_USERMEM;
14951	len = sizeof(r);
14952	(void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
14953
14954  ;
14955  return 0;
14956}
14957_ACEOF
14958rm -f conftest.$ac_objext
14959if { (ac_try="$ac_compile"
14960case "(($ac_try" in
14961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14962  *) ac_try_echo=$ac_try;;
14963esac
14964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14965$as_echo "$ac_try_echo") >&5
14966  (eval "$ac_compile") 2>conftest.er1
14967  ac_status=$?
14968  grep -v '^ *+' conftest.er1 >conftest.err
14969  rm -f conftest.er1
14970  cat conftest.err >&5
14971  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972  (exit $ac_status); } && {
14973	 test -z "$ac_c_werror_flag" ||
14974	 test ! -s conftest.err
14975       } && test -s conftest.$ac_objext; then
14976  { $as_echo "$as_me:$LINENO: result: yes" >&5
14977$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14978#define HAVE_SYSCTL 1
14979_ACEOF
14980
14981else
14982  $as_echo "$as_me: failed program was:" >&5
14983sed 's/^/| /' conftest.$ac_ext >&5
14984
14985	{ $as_echo "$as_me:$LINENO: result: not usable" >&5
14986$as_echo "not usable" >&6; }
14987fi
14988
14989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14990
14991{ $as_echo "$as_me:$LINENO: checking for sysinfo" >&5
14992$as_echo_n "checking for sysinfo... " >&6; }
14993cat >conftest.$ac_ext <<_ACEOF
14994/* confdefs.h.  */
14995_ACEOF
14996cat confdefs.h >>conftest.$ac_ext
14997cat >>conftest.$ac_ext <<_ACEOF
14998/* end confdefs.h.  */
14999#include <sys/types.h>
15000#include <sys/sysinfo.h>
15001int
15002main ()
15003{
15004	struct sysinfo sinfo;
15005	int t;
15006
15007	(void)sysinfo(&sinfo);
15008	t = sinfo.totalram;
15009
15010  ;
15011  return 0;
15012}
15013_ACEOF
15014rm -f conftest.$ac_objext
15015if { (ac_try="$ac_compile"
15016case "(($ac_try" in
15017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15018  *) ac_try_echo=$ac_try;;
15019esac
15020eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15021$as_echo "$ac_try_echo") >&5
15022  (eval "$ac_compile") 2>conftest.er1
15023  ac_status=$?
15024  grep -v '^ *+' conftest.er1 >conftest.err
15025  rm -f conftest.er1
15026  cat conftest.err >&5
15027  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028  (exit $ac_status); } && {
15029	 test -z "$ac_c_werror_flag" ||
15030	 test ! -s conftest.err
15031       } && test -s conftest.$ac_objext; then
15032  { $as_echo "$as_me:$LINENO: result: yes" >&5
15033$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15034#define HAVE_SYSINFO 1
15035_ACEOF
15036
15037else
15038  $as_echo "$as_me: failed program was:" >&5
15039sed 's/^/| /' conftest.$ac_ext >&5
15040
15041	{ $as_echo "$as_me:$LINENO: result: not usable" >&5
15042$as_echo "not usable" >&6; }
15043fi
15044
15045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15046
15047{ $as_echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
15048$as_echo_n "checking for sysinfo.mem_unit... " >&6; }
15049cat >conftest.$ac_ext <<_ACEOF
15050/* confdefs.h.  */
15051_ACEOF
15052cat confdefs.h >>conftest.$ac_ext
15053cat >>conftest.$ac_ext <<_ACEOF
15054/* end confdefs.h.  */
15055#include <sys/types.h>
15056#include <sys/sysinfo.h>
15057int
15058main ()
15059{
15060	struct sysinfo sinfo;
15061 	sinfo.mem_unit = 1;
15062
15063  ;
15064  return 0;
15065}
15066_ACEOF
15067rm -f conftest.$ac_objext
15068if { (ac_try="$ac_compile"
15069case "(($ac_try" in
15070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071  *) ac_try_echo=$ac_try;;
15072esac
15073eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15074$as_echo "$ac_try_echo") >&5
15075  (eval "$ac_compile") 2>conftest.er1
15076  ac_status=$?
15077  grep -v '^ *+' conftest.er1 >conftest.err
15078  rm -f conftest.er1
15079  cat conftest.err >&5
15080  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081  (exit $ac_status); } && {
15082	 test -z "$ac_c_werror_flag" ||
15083	 test ! -s conftest.err
15084       } && test -s conftest.$ac_objext; then
15085  { $as_echo "$as_me:$LINENO: result: yes" >&5
15086$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15087#define HAVE_SYSINFO_MEM_UNIT 1
15088_ACEOF
15089
15090else
15091  $as_echo "$as_me: failed program was:" >&5
15092sed 's/^/| /' conftest.$ac_ext >&5
15093
15094	{ $as_echo "$as_me:$LINENO: result: no" >&5
15095$as_echo "no" >&6; }
15096fi
15097
15098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15099
15100{ $as_echo "$as_me:$LINENO: checking for sysconf" >&5
15101$as_echo_n "checking for sysconf... " >&6; }
15102cat >conftest.$ac_ext <<_ACEOF
15103/* confdefs.h.  */
15104_ACEOF
15105cat confdefs.h >>conftest.$ac_ext
15106cat >>conftest.$ac_ext <<_ACEOF
15107/* end confdefs.h.  */
15108#include <unistd.h>
15109int
15110main ()
15111{
15112	(void)sysconf(_SC_PAGESIZE);
15113	(void)sysconf(_SC_PHYS_PAGES);
15114
15115  ;
15116  return 0;
15117}
15118_ACEOF
15119rm -f conftest.$ac_objext
15120if { (ac_try="$ac_compile"
15121case "(($ac_try" in
15122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15123  *) ac_try_echo=$ac_try;;
15124esac
15125eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15126$as_echo "$ac_try_echo") >&5
15127  (eval "$ac_compile") 2>conftest.er1
15128  ac_status=$?
15129  grep -v '^ *+' conftest.er1 >conftest.err
15130  rm -f conftest.er1
15131  cat conftest.err >&5
15132  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133  (exit $ac_status); } && {
15134	 test -z "$ac_c_werror_flag" ||
15135	 test ! -s conftest.err
15136       } && test -s conftest.$ac_objext; then
15137  { $as_echo "$as_me:$LINENO: result: yes" >&5
15138$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15139#define HAVE_SYSCONF 1
15140_ACEOF
15141
15142else
15143  $as_echo "$as_me: failed program was:" >&5
15144sed 's/^/| /' conftest.$ac_ext >&5
15145
15146	{ $as_echo "$as_me:$LINENO: result: not usable" >&5
15147$as_echo "not usable" >&6; }
15148fi
15149
15150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15151
15152
15153{ $as_echo "$as_me:$LINENO: checking size of int" >&5
15154$as_echo_n "checking size of int... " >&6; }
15155if test "${ac_cv_sizeof_int+set}" = set; then
15156  $as_echo_n "(cached) " >&6
15157else
15158  if test "$cross_compiling" = yes; then
15159  { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
15160$as_echo "$as_me: error: failed to compile test program" >&2;}
15161   { (exit 1); exit 1; }; }
15162else
15163  cat >conftest.$ac_ext <<_ACEOF
15164/* confdefs.h.  */
15165_ACEOF
15166cat confdefs.h >>conftest.$ac_ext
15167cat >>conftest.$ac_ext <<_ACEOF
15168/* end confdefs.h.  */
15169
15170#include <stdio.h>
15171#if STDC_HEADERS
15172# include <stdlib.h>
15173# include <stddef.h>
15174#endif
15175main()
15176{
15177  FILE *f=fopen("conftestval", "w");
15178  if (!f) exit(1);
15179  fprintf(f, "%d\n", (int)sizeof(int));
15180  exit(0);
15181}
15182_ACEOF
15183rm -f conftest$ac_exeext
15184if { (ac_try="$ac_link"
15185case "(($ac_try" in
15186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15187  *) ac_try_echo=$ac_try;;
15188esac
15189eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15190$as_echo "$ac_try_echo") >&5
15191  (eval "$ac_link") 2>&5
15192  ac_status=$?
15193  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15195  { (case "(($ac_try" in
15196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15197  *) ac_try_echo=$ac_try;;
15198esac
15199eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15200$as_echo "$ac_try_echo") >&5
15201  (eval "$ac_try") 2>&5
15202  ac_status=$?
15203  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204  (exit $ac_status); }; }; then
15205  ac_cv_sizeof_int=`cat conftestval`
15206else
15207  $as_echo "$as_me: program exited with status $ac_status" >&5
15208$as_echo "$as_me: failed program was:" >&5
15209sed 's/^/| /' conftest.$ac_ext >&5
15210
15211( exit $ac_status )
15212ac_cv_sizeof_int=0
15213fi
15214rm -rf conftest.dSYM
15215rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15216fi
15217
15218
15219fi
15220
15221{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15222$as_echo "$ac_cv_sizeof_int" >&6; }
15223cat >>confdefs.h <<_ACEOF
15224#define SIZEOF_INT $ac_cv_sizeof_int
15225_ACEOF
15226
15227
15228
15229
15230bcopy_test_prog='
15231#include "confdefs.h"
15232#ifdef HAVE_STRING_H
15233# include <string.h>
15234#endif
15235#if STDC_HEADERS
15236# include <stdlib.h>
15237# include <stddef.h>
15238#endif
15239main() {
15240  char buf[10];
15241  strcpy(buf, "abcdefghi");
15242  mch_memmove(buf, buf + 2, 3);
15243  if (strncmp(buf, "ababcf", 6))
15244    exit(1);
15245  strcpy(buf, "abcdefghi");
15246  mch_memmove(buf + 2, buf, 3);
15247  if (strncmp(buf, "cdedef", 6))
15248    exit(1);
15249  exit(0); /* libc version works properly.  */
15250}'
15251
15252{ $as_echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5
15253$as_echo_n "checking whether memmove handles overlaps... " >&6; }
15254if test "${vim_cv_memmove_handles_overlap+set}" = set; then
15255  $as_echo_n "(cached) " >&6
15256else
15257
15258    if test "$cross_compiling" = yes; then
15259
15260	{ { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5
15261$as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&2;}
15262   { (exit 1); exit 1; }; }
15263
15264else
15265  cat >conftest.$ac_ext <<_ACEOF
15266#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
15267_ACEOF
15268rm -f conftest$ac_exeext
15269if { (ac_try="$ac_link"
15270case "(($ac_try" in
15271  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15272  *) ac_try_echo=$ac_try;;
15273esac
15274eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15275$as_echo "$ac_try_echo") >&5
15276  (eval "$ac_link") 2>&5
15277  ac_status=$?
15278  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15280  { (case "(($ac_try" in
15281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15282  *) ac_try_echo=$ac_try;;
15283esac
15284eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15285$as_echo "$ac_try_echo") >&5
15286  (eval "$ac_try") 2>&5
15287  ac_status=$?
15288  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289  (exit $ac_status); }; }; then
15290
15291	vim_cv_memmove_handles_overlap=yes
15292
15293else
15294  $as_echo "$as_me: program exited with status $ac_status" >&5
15295$as_echo "$as_me: failed program was:" >&5
15296sed 's/^/| /' conftest.$ac_ext >&5
15297
15298( exit $ac_status )
15299
15300	vim_cv_memmove_handles_overlap=no
15301
15302fi
15303rm -rf conftest.dSYM
15304rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15305fi
15306
15307
15308
15309fi
15310{ $as_echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5
15311$as_echo "$vim_cv_memmove_handles_overlap" >&6; }
15312
15313if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
15314  cat >>confdefs.h <<\_ACEOF
15315#define USEMEMMOVE 1
15316_ACEOF
15317
15318else
15319  { $as_echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5
15320$as_echo_n "checking whether bcopy handles overlaps... " >&6; }
15321if test "${vim_cv_bcopy_handles_overlap+set}" = set; then
15322  $as_echo_n "(cached) " >&6
15323else
15324
15325      if test "$cross_compiling" = yes; then
15326
15327	{ { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5
15328$as_echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;}
15329   { (exit 1); exit 1; }; }
15330
15331else
15332  cat >conftest.$ac_ext <<_ACEOF
15333#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
15334_ACEOF
15335rm -f conftest$ac_exeext
15336if { (ac_try="$ac_link"
15337case "(($ac_try" in
15338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15339  *) ac_try_echo=$ac_try;;
15340esac
15341eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15342$as_echo "$ac_try_echo") >&5
15343  (eval "$ac_link") 2>&5
15344  ac_status=$?
15345  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15347  { (case "(($ac_try" in
15348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15349  *) ac_try_echo=$ac_try;;
15350esac
15351eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15352$as_echo "$ac_try_echo") >&5
15353  (eval "$ac_try") 2>&5
15354  ac_status=$?
15355  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356  (exit $ac_status); }; }; then
15357
15358	vim_cv_bcopy_handles_overlap=yes
15359
15360else
15361  $as_echo "$as_me: program exited with status $ac_status" >&5
15362$as_echo "$as_me: failed program was:" >&5
15363sed 's/^/| /' conftest.$ac_ext >&5
15364
15365( exit $ac_status )
15366
15367	vim_cv_bcopy_handles_overlap=no
15368
15369fi
15370rm -rf conftest.dSYM
15371rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15372fi
15373
15374
15375
15376fi
15377{ $as_echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5
15378$as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
15379
15380  if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
15381    cat >>confdefs.h <<\_ACEOF
15382#define USEBCOPY 1
15383_ACEOF
15384
15385  else
15386    { $as_echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5
15387$as_echo_n "checking whether memcpy handles overlaps... " >&6; }
15388if test "${vim_cv_memcpy_handles_overlap+set}" = set; then
15389  $as_echo_n "(cached) " >&6
15390else
15391
15392	if test "$cross_compiling" = yes; then
15393
15394	    { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5
15395$as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&2;}
15396   { (exit 1); exit 1; }; }
15397
15398else
15399  cat >conftest.$ac_ext <<_ACEOF
15400#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
15401_ACEOF
15402rm -f conftest$ac_exeext
15403if { (ac_try="$ac_link"
15404case "(($ac_try" in
15405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15406  *) ac_try_echo=$ac_try;;
15407esac
15408eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15409$as_echo "$ac_try_echo") >&5
15410  (eval "$ac_link") 2>&5
15411  ac_status=$?
15412  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15414  { (case "(($ac_try" in
15415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15416  *) ac_try_echo=$ac_try;;
15417esac
15418eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15419$as_echo "$ac_try_echo") >&5
15420  (eval "$ac_try") 2>&5
15421  ac_status=$?
15422  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423  (exit $ac_status); }; }; then
15424
15425	    vim_cv_memcpy_handles_overlap=yes
15426
15427else
15428  $as_echo "$as_me: program exited with status $ac_status" >&5
15429$as_echo "$as_me: failed program was:" >&5
15430sed 's/^/| /' conftest.$ac_ext >&5
15431
15432( exit $ac_status )
15433
15434	    vim_cv_memcpy_handles_overlap=no
15435
15436fi
15437rm -rf conftest.dSYM
15438rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15439fi
15440
15441
15442
15443fi
15444{ $as_echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5
15445$as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
15446
15447    if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
15448      cat >>confdefs.h <<\_ACEOF
15449#define USEMEMCPY 1
15450_ACEOF
15451
15452    fi
15453  fi
15454fi
15455
15456
15457
15458if test "$enable_multibyte" = "yes"; then
15459  cflags_save=$CFLAGS
15460  ldflags_save=$LDFLAGS
15461  if test -n "$x_includes" ; then
15462    CFLAGS="$CFLAGS -I$x_includes"
15463    LDFLAGS="$X_LIBS $LDFLAGS -lX11"
15464    { $as_echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
15465$as_echo_n "checking whether X_LOCALE needed... " >&6; }
15466    cat >conftest.$ac_ext <<_ACEOF
15467/* confdefs.h.  */
15468_ACEOF
15469cat confdefs.h >>conftest.$ac_ext
15470cat >>conftest.$ac_ext <<_ACEOF
15471/* end confdefs.h.  */
15472#include <X11/Xlocale.h>
15473int
15474main ()
15475{
15476
15477  ;
15478  return 0;
15479}
15480_ACEOF
15481rm -f conftest.$ac_objext
15482if { (ac_try="$ac_compile"
15483case "(($ac_try" in
15484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15485  *) ac_try_echo=$ac_try;;
15486esac
15487eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15488$as_echo "$ac_try_echo") >&5
15489  (eval "$ac_compile") 2>conftest.er1
15490  ac_status=$?
15491  grep -v '^ *+' conftest.er1 >conftest.err
15492  rm -f conftest.er1
15493  cat conftest.err >&5
15494  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495  (exit $ac_status); } && {
15496	 test -z "$ac_c_werror_flag" ||
15497	 test ! -s conftest.err
15498       } && test -s conftest.$ac_objext; then
15499  cat >conftest.$ac_ext <<_ACEOF
15500/* confdefs.h.  */
15501_ACEOF
15502cat confdefs.h >>conftest.$ac_ext
15503cat >>conftest.$ac_ext <<_ACEOF
15504/* end confdefs.h.  */
15505
15506/* Override any GCC internal prototype to avoid an error.
15507   Use char because int might match the return type of a GCC
15508   builtin and then its argument prototype would still apply.  */
15509#ifdef __cplusplus
15510extern "C"
15511#endif
15512char _Xsetlocale ();
15513int
15514main ()
15515{
15516return _Xsetlocale ();
15517  ;
15518  return 0;
15519}
15520_ACEOF
15521rm -f conftest.$ac_objext conftest$ac_exeext
15522if { (ac_try="$ac_link"
15523case "(($ac_try" in
15524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15525  *) ac_try_echo=$ac_try;;
15526esac
15527eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15528$as_echo "$ac_try_echo") >&5
15529  (eval "$ac_link") 2>conftest.er1
15530  ac_status=$?
15531  grep -v '^ *+' conftest.er1 >conftest.err
15532  rm -f conftest.er1
15533  cat conftest.err >&5
15534  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535  (exit $ac_status); } && {
15536	 test -z "$ac_c_werror_flag" ||
15537	 test ! -s conftest.err
15538       } && test -s conftest$ac_exeext && {
15539	 test "$cross_compiling" = yes ||
15540	 $as_test_x conftest$ac_exeext
15541       }; then
15542  { $as_echo "$as_me:$LINENO: result: yes" >&5
15543$as_echo "yes" >&6; }
15544		cat >>confdefs.h <<\_ACEOF
15545#define X_LOCALE 1
15546_ACEOF
15547
15548else
15549  $as_echo "$as_me: failed program was:" >&5
15550sed 's/^/| /' conftest.$ac_ext >&5
15551
15552	{ $as_echo "$as_me:$LINENO: result: no" >&5
15553$as_echo "no" >&6; }
15554fi
15555
15556rm -rf conftest.dSYM
15557rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15558      conftest$ac_exeext conftest.$ac_ext
15559else
15560  $as_echo "$as_me: failed program was:" >&5
15561sed 's/^/| /' conftest.$ac_ext >&5
15562
15563	{ $as_echo "$as_me:$LINENO: result: no" >&5
15564$as_echo "no" >&6; }
15565fi
15566
15567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15568  fi
15569  CFLAGS=$cflags_save
15570  LDFLAGS=$ldflags_save
15571fi
15572
15573{ $as_echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
15574$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
15575if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
15576  $as_echo_n "(cached) " >&6
15577else
15578  ac_check_lib_save_LIBS=$LIBS
15579LIBS="-lxpg4  $LIBS"
15580cat >conftest.$ac_ext <<_ACEOF
15581/* confdefs.h.  */
15582_ACEOF
15583cat confdefs.h >>conftest.$ac_ext
15584cat >>conftest.$ac_ext <<_ACEOF
15585/* end confdefs.h.  */
15586
15587/* Override any GCC internal prototype to avoid an error.
15588   Use char because int might match the return type of a GCC
15589   builtin and then its argument prototype would still apply.  */
15590#ifdef __cplusplus
15591extern "C"
15592#endif
15593char _xpg4_setrunelocale ();
15594int
15595main ()
15596{
15597return _xpg4_setrunelocale ();
15598  ;
15599  return 0;
15600}
15601_ACEOF
15602rm -f conftest.$ac_objext conftest$ac_exeext
15603if { (ac_try="$ac_link"
15604case "(($ac_try" in
15605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15606  *) ac_try_echo=$ac_try;;
15607esac
15608eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15609$as_echo "$ac_try_echo") >&5
15610  (eval "$ac_link") 2>conftest.er1
15611  ac_status=$?
15612  grep -v '^ *+' conftest.er1 >conftest.err
15613  rm -f conftest.er1
15614  cat conftest.err >&5
15615  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616  (exit $ac_status); } && {
15617	 test -z "$ac_c_werror_flag" ||
15618	 test ! -s conftest.err
15619       } && test -s conftest$ac_exeext && {
15620	 test "$cross_compiling" = yes ||
15621	 $as_test_x conftest$ac_exeext
15622       }; then
15623  ac_cv_lib_xpg4__xpg4_setrunelocale=yes
15624else
15625  $as_echo "$as_me: failed program was:" >&5
15626sed 's/^/| /' conftest.$ac_ext >&5
15627
15628	ac_cv_lib_xpg4__xpg4_setrunelocale=no
15629fi
15630
15631rm -rf conftest.dSYM
15632rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15633      conftest$ac_exeext conftest.$ac_ext
15634LIBS=$ac_check_lib_save_LIBS
15635fi
15636{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
15637$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
15638if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
15639  LIBS="$LIBS -lxpg4"
15640fi
15641
15642
15643{ $as_echo "$as_me:$LINENO: checking how to create tags" >&5
15644$as_echo_n "checking how to create tags... " >&6; }
15645test -f tags && mv tags tags.save
15646if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
15647  TAGPRG="ctags -I INIT+ --fields=+S"
15648else
15649  (eval etags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
15650  (eval etags -c   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
15651  (eval ctags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
15652  (eval ctags -t   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
15653  (eval ctags -ts  /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
15654  (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
15655  (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
15656fi
15657test -f tags.save && mv tags.save tags
15658{ $as_echo "$as_me:$LINENO: result: $TAGPRG" >&5
15659$as_echo "$TAGPRG" >&6; }
15660
15661{ $as_echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
15662$as_echo_n "checking how to run man with a section nr... " >&6; }
15663MANDEF="man"
15664(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
15665{ $as_echo "$as_me:$LINENO: result: $MANDEF" >&5
15666$as_echo "$MANDEF" >&6; }
15667if test "$MANDEF" = "man -s"; then
15668  cat >>confdefs.h <<\_ACEOF
15669#define USEMAN_S 1
15670_ACEOF
15671
15672fi
15673
15674{ $as_echo "$as_me:$LINENO: checking --disable-nls argument" >&5
15675$as_echo_n "checking --disable-nls argument... " >&6; }
15676# Check whether --enable-nls was given.
15677if test "${enable_nls+set}" = set; then
15678  enableval=$enable_nls;
15679else
15680  enable_nls="yes"
15681fi
15682
15683
15684if test "$enable_nls" = "yes"; then
15685  { $as_echo "$as_me:$LINENO: result: no" >&5
15686$as_echo "no" >&6; }
15687
15688  INSTALL_LANGS=install-languages
15689
15690  INSTALL_TOOL_LANGS=install-tool-languages
15691
15692
15693  # Extract the first word of "msgfmt", so it can be a program name with args.
15694set dummy msgfmt; ac_word=$2
15695{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15696$as_echo_n "checking for $ac_word... " >&6; }
15697if test "${ac_cv_prog_MSGFMT+set}" = set; then
15698  $as_echo_n "(cached) " >&6
15699else
15700  if test -n "$MSGFMT"; then
15701  ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15702else
15703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15704for as_dir in $PATH
15705do
15706  IFS=$as_save_IFS
15707  test -z "$as_dir" && as_dir=.
15708  for ac_exec_ext in '' $ac_executable_extensions; do
15709  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15710    ac_cv_prog_MSGFMT="msgfmt"
15711    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15712    break 2
15713  fi
15714done
15715done
15716IFS=$as_save_IFS
15717
15718fi
15719fi
15720MSGFMT=$ac_cv_prog_MSGFMT
15721if test -n "$MSGFMT"; then
15722  { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
15723$as_echo "$MSGFMT" >&6; }
15724else
15725  { $as_echo "$as_me:$LINENO: result: no" >&5
15726$as_echo "no" >&6; }
15727fi
15728
15729
15730  { $as_echo "$as_me:$LINENO: checking for NLS" >&5
15731$as_echo_n "checking for NLS... " >&6; }
15732  if test -f po/Makefile; then
15733    have_gettext="no"
15734    if test -n "$MSGFMT"; then
15735      cat >conftest.$ac_ext <<_ACEOF
15736/* confdefs.h.  */
15737_ACEOF
15738cat confdefs.h >>conftest.$ac_ext
15739cat >>conftest.$ac_ext <<_ACEOF
15740/* end confdefs.h.  */
15741#include <libintl.h>
15742int
15743main ()
15744{
15745gettext("Test");
15746  ;
15747  return 0;
15748}
15749_ACEOF
15750rm -f conftest.$ac_objext conftest$ac_exeext
15751if { (ac_try="$ac_link"
15752case "(($ac_try" in
15753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15754  *) ac_try_echo=$ac_try;;
15755esac
15756eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15757$as_echo "$ac_try_echo") >&5
15758  (eval "$ac_link") 2>conftest.er1
15759  ac_status=$?
15760  grep -v '^ *+' conftest.er1 >conftest.err
15761  rm -f conftest.er1
15762  cat conftest.err >&5
15763  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764  (exit $ac_status); } && {
15765	 test -z "$ac_c_werror_flag" ||
15766	 test ! -s conftest.err
15767       } && test -s conftest$ac_exeext && {
15768	 test "$cross_compiling" = yes ||
15769	 $as_test_x conftest$ac_exeext
15770       }; then
15771  { $as_echo "$as_me:$LINENO: result: gettext() works" >&5
15772$as_echo "gettext() works" >&6; }; have_gettext="yes"
15773else
15774  $as_echo "$as_me: failed program was:" >&5
15775sed 's/^/| /' conftest.$ac_ext >&5
15776
15777	olibs=$LIBS
15778	  LIBS="$LIBS -lintl"
15779	  cat >conftest.$ac_ext <<_ACEOF
15780/* confdefs.h.  */
15781_ACEOF
15782cat confdefs.h >>conftest.$ac_ext
15783cat >>conftest.$ac_ext <<_ACEOF
15784/* end confdefs.h.  */
15785#include <libintl.h>
15786int
15787main ()
15788{
15789gettext("Test");
15790  ;
15791  return 0;
15792}
15793_ACEOF
15794rm -f conftest.$ac_objext conftest$ac_exeext
15795if { (ac_try="$ac_link"
15796case "(($ac_try" in
15797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15798  *) ac_try_echo=$ac_try;;
15799esac
15800eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15801$as_echo "$ac_try_echo") >&5
15802  (eval "$ac_link") 2>conftest.er1
15803  ac_status=$?
15804  grep -v '^ *+' conftest.er1 >conftest.err
15805  rm -f conftest.er1
15806  cat conftest.err >&5
15807  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808  (exit $ac_status); } && {
15809	 test -z "$ac_c_werror_flag" ||
15810	 test ! -s conftest.err
15811       } && test -s conftest$ac_exeext && {
15812	 test "$cross_compiling" = yes ||
15813	 $as_test_x conftest$ac_exeext
15814       }; then
15815  { $as_echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
15816$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"
15817else
15818  $as_echo "$as_me: failed program was:" >&5
15819sed 's/^/| /' conftest.$ac_ext >&5
15820
15821	{ $as_echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
15822$as_echo "gettext() doesn't work" >&6; };
15823	      LIBS=$olibs
15824fi
15825
15826rm -rf conftest.dSYM
15827rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15828      conftest$ac_exeext conftest.$ac_ext
15829fi
15830
15831rm -rf conftest.dSYM
15832rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15833      conftest$ac_exeext conftest.$ac_ext
15834    else
15835      { $as_echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
15836$as_echo "msgfmt not found - disabled" >&6; };
15837    fi
15838    if test $have_gettext = "yes"; then
15839      cat >>confdefs.h <<\_ACEOF
15840#define HAVE_GETTEXT 1
15841_ACEOF
15842
15843      MAKEMO=yes
15844
15845
15846for ac_func in bind_textdomain_codeset
15847do
15848as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15849{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15850$as_echo_n "checking for $ac_func... " >&6; }
15851if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15852  $as_echo_n "(cached) " >&6
15853else
15854  cat >conftest.$ac_ext <<_ACEOF
15855/* confdefs.h.  */
15856_ACEOF
15857cat confdefs.h >>conftest.$ac_ext
15858cat >>conftest.$ac_ext <<_ACEOF
15859/* end confdefs.h.  */
15860/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15861   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15862#define $ac_func innocuous_$ac_func
15863
15864/* System header to define __stub macros and hopefully few prototypes,
15865    which can conflict with char $ac_func (); below.
15866    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15867    <limits.h> exists even on freestanding compilers.  */
15868
15869#ifdef __STDC__
15870# include <limits.h>
15871#else
15872# include <assert.h>
15873#endif
15874
15875#undef $ac_func
15876
15877/* Override any GCC internal prototype to avoid an error.
15878   Use char because int might match the return type of a GCC
15879   builtin and then its argument prototype would still apply.  */
15880#ifdef __cplusplus
15881extern "C"
15882#endif
15883char $ac_func ();
15884/* The GNU C library defines this for functions which it implements
15885    to always fail with ENOSYS.  Some functions are actually named
15886    something starting with __ and the normal name is an alias.  */
15887#if defined __stub_$ac_func || defined __stub___$ac_func
15888choke me
15889#endif
15890
15891int
15892main ()
15893{
15894return $ac_func ();
15895  ;
15896  return 0;
15897}
15898_ACEOF
15899rm -f conftest.$ac_objext conftest$ac_exeext
15900if { (ac_try="$ac_link"
15901case "(($ac_try" in
15902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15903  *) ac_try_echo=$ac_try;;
15904esac
15905eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15906$as_echo "$ac_try_echo") >&5
15907  (eval "$ac_link") 2>conftest.er1
15908  ac_status=$?
15909  grep -v '^ *+' conftest.er1 >conftest.err
15910  rm -f conftest.er1
15911  cat conftest.err >&5
15912  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913  (exit $ac_status); } && {
15914	 test -z "$ac_c_werror_flag" ||
15915	 test ! -s conftest.err
15916       } && test -s conftest$ac_exeext && {
15917	 test "$cross_compiling" = yes ||
15918	 $as_test_x conftest$ac_exeext
15919       }; then
15920  eval "$as_ac_var=yes"
15921else
15922  $as_echo "$as_me: failed program was:" >&5
15923sed 's/^/| /' conftest.$ac_ext >&5
15924
15925	eval "$as_ac_var=no"
15926fi
15927
15928rm -rf conftest.dSYM
15929rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15930      conftest$ac_exeext conftest.$ac_ext
15931fi
15932ac_res=`eval 'as_val=${'$as_ac_var'}
15933		 $as_echo "$as_val"'`
15934	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15935$as_echo "$ac_res" >&6; }
15936if test `eval 'as_val=${'$as_ac_var'}
15937		 $as_echo "$as_val"'` = yes; then
15938  cat >>confdefs.h <<_ACEOF
15939#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15940_ACEOF
15941
15942fi
15943done
15944
15945            { $as_echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
15946$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
15947      cat >conftest.$ac_ext <<_ACEOF
15948/* confdefs.h.  */
15949_ACEOF
15950cat confdefs.h >>conftest.$ac_ext
15951cat >>conftest.$ac_ext <<_ACEOF
15952/* end confdefs.h.  */
15953#include <libintl.h>
15954		extern int _nl_msg_cat_cntr;
15955int
15956main ()
15957{
15958++_nl_msg_cat_cntr;
15959  ;
15960  return 0;
15961}
15962_ACEOF
15963rm -f conftest.$ac_objext conftest$ac_exeext
15964if { (ac_try="$ac_link"
15965case "(($ac_try" in
15966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15967  *) ac_try_echo=$ac_try;;
15968esac
15969eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15970$as_echo "$ac_try_echo") >&5
15971  (eval "$ac_link") 2>conftest.er1
15972  ac_status=$?
15973  grep -v '^ *+' conftest.er1 >conftest.err
15974  rm -f conftest.er1
15975  cat conftest.err >&5
15976  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977  (exit $ac_status); } && {
15978	 test -z "$ac_c_werror_flag" ||
15979	 test ! -s conftest.err
15980       } && test -s conftest$ac_exeext && {
15981	 test "$cross_compiling" = yes ||
15982	 $as_test_x conftest$ac_exeext
15983       }; then
15984  { $as_echo "$as_me:$LINENO: result: yes" >&5
15985$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15986#define HAVE_NL_MSG_CAT_CNTR 1
15987_ACEOF
15988
15989else
15990  $as_echo "$as_me: failed program was:" >&5
15991sed 's/^/| /' conftest.$ac_ext >&5
15992
15993	{ $as_echo "$as_me:$LINENO: result: no" >&5
15994$as_echo "no" >&6; }
15995fi
15996
15997rm -rf conftest.dSYM
15998rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15999      conftest$ac_exeext conftest.$ac_ext
16000    fi
16001  else
16002    { $as_echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
16003$as_echo "no \"po/Makefile\" - disabled" >&6; };
16004  fi
16005else
16006  { $as_echo "$as_me:$LINENO: result: yes" >&5
16007$as_echo "yes" >&6; }
16008fi
16009
16010if test "${ac_cv_header_dlfcn_h+set}" = set; then
16011  { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16012$as_echo_n "checking for dlfcn.h... " >&6; }
16013if test "${ac_cv_header_dlfcn_h+set}" = set; then
16014  $as_echo_n "(cached) " >&6
16015fi
16016{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16017$as_echo "$ac_cv_header_dlfcn_h" >&6; }
16018else
16019  # Is the header compilable?
16020{ $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
16021$as_echo_n "checking dlfcn.h usability... " >&6; }
16022cat >conftest.$ac_ext <<_ACEOF
16023/* confdefs.h.  */
16024_ACEOF
16025cat confdefs.h >>conftest.$ac_ext
16026cat >>conftest.$ac_ext <<_ACEOF
16027/* end confdefs.h.  */
16028$ac_includes_default
16029#include <dlfcn.h>
16030_ACEOF
16031rm -f conftest.$ac_objext
16032if { (ac_try="$ac_compile"
16033case "(($ac_try" in
16034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035  *) ac_try_echo=$ac_try;;
16036esac
16037eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16038$as_echo "$ac_try_echo") >&5
16039  (eval "$ac_compile") 2>conftest.er1
16040  ac_status=$?
16041  grep -v '^ *+' conftest.er1 >conftest.err
16042  rm -f conftest.er1
16043  cat conftest.err >&5
16044  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045  (exit $ac_status); } && {
16046	 test -z "$ac_c_werror_flag" ||
16047	 test ! -s conftest.err
16048       } && test -s conftest.$ac_objext; then
16049  ac_header_compiler=yes
16050else
16051  $as_echo "$as_me: failed program was:" >&5
16052sed 's/^/| /' conftest.$ac_ext >&5
16053
16054	ac_header_compiler=no
16055fi
16056
16057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16058{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16059$as_echo "$ac_header_compiler" >&6; }
16060
16061# Is the header present?
16062{ $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
16063$as_echo_n "checking dlfcn.h presence... " >&6; }
16064cat >conftest.$ac_ext <<_ACEOF
16065/* confdefs.h.  */
16066_ACEOF
16067cat confdefs.h >>conftest.$ac_ext
16068cat >>conftest.$ac_ext <<_ACEOF
16069/* end confdefs.h.  */
16070#include <dlfcn.h>
16071_ACEOF
16072if { (ac_try="$ac_cpp conftest.$ac_ext"
16073case "(($ac_try" in
16074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16075  *) ac_try_echo=$ac_try;;
16076esac
16077eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16078$as_echo "$ac_try_echo") >&5
16079  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16080  ac_status=$?
16081  grep -v '^ *+' conftest.er1 >conftest.err
16082  rm -f conftest.er1
16083  cat conftest.err >&5
16084  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085  (exit $ac_status); } >/dev/null && {
16086	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16087	 test ! -s conftest.err
16088       }; then
16089  ac_header_preproc=yes
16090else
16091  $as_echo "$as_me: failed program was:" >&5
16092sed 's/^/| /' conftest.$ac_ext >&5
16093
16094  ac_header_preproc=no
16095fi
16096
16097rm -f conftest.err conftest.$ac_ext
16098{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16099$as_echo "$ac_header_preproc" >&6; }
16100
16101# So?  What about this header?
16102case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16103  yes:no: )
16104    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
16105$as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16106    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
16107$as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
16108    ac_header_preproc=yes
16109    ;;
16110  no:yes:* )
16111    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
16112$as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
16113    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
16114$as_echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
16115    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
16116$as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
16117    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
16118$as_echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16119    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
16120$as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
16121    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
16122$as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
16123
16124    ;;
16125esac
16126{ $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16127$as_echo_n "checking for dlfcn.h... " >&6; }
16128if test "${ac_cv_header_dlfcn_h+set}" = set; then
16129  $as_echo_n "(cached) " >&6
16130else
16131  ac_cv_header_dlfcn_h=$ac_header_preproc
16132fi
16133{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16134$as_echo "$ac_cv_header_dlfcn_h" >&6; }
16135
16136fi
16137if test $ac_cv_header_dlfcn_h = yes; then
16138  DLL=dlfcn.h
16139else
16140  if test "${ac_cv_header_dl_h+set}" = set; then
16141  { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16142$as_echo_n "checking for dl.h... " >&6; }
16143if test "${ac_cv_header_dl_h+set}" = set; then
16144  $as_echo_n "(cached) " >&6
16145fi
16146{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16147$as_echo "$ac_cv_header_dl_h" >&6; }
16148else
16149  # Is the header compilable?
16150{ $as_echo "$as_me:$LINENO: checking dl.h usability" >&5
16151$as_echo_n "checking dl.h usability... " >&6; }
16152cat >conftest.$ac_ext <<_ACEOF
16153/* confdefs.h.  */
16154_ACEOF
16155cat confdefs.h >>conftest.$ac_ext
16156cat >>conftest.$ac_ext <<_ACEOF
16157/* end confdefs.h.  */
16158$ac_includes_default
16159#include <dl.h>
16160_ACEOF
16161rm -f conftest.$ac_objext
16162if { (ac_try="$ac_compile"
16163case "(($ac_try" in
16164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16165  *) ac_try_echo=$ac_try;;
16166esac
16167eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16168$as_echo "$ac_try_echo") >&5
16169  (eval "$ac_compile") 2>conftest.er1
16170  ac_status=$?
16171  grep -v '^ *+' conftest.er1 >conftest.err
16172  rm -f conftest.er1
16173  cat conftest.err >&5
16174  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175  (exit $ac_status); } && {
16176	 test -z "$ac_c_werror_flag" ||
16177	 test ! -s conftest.err
16178       } && test -s conftest.$ac_objext; then
16179  ac_header_compiler=yes
16180else
16181  $as_echo "$as_me: failed program was:" >&5
16182sed 's/^/| /' conftest.$ac_ext >&5
16183
16184	ac_header_compiler=no
16185fi
16186
16187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16188{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16189$as_echo "$ac_header_compiler" >&6; }
16190
16191# Is the header present?
16192{ $as_echo "$as_me:$LINENO: checking dl.h presence" >&5
16193$as_echo_n "checking dl.h presence... " >&6; }
16194cat >conftest.$ac_ext <<_ACEOF
16195/* confdefs.h.  */
16196_ACEOF
16197cat confdefs.h >>conftest.$ac_ext
16198cat >>conftest.$ac_ext <<_ACEOF
16199/* end confdefs.h.  */
16200#include <dl.h>
16201_ACEOF
16202if { (ac_try="$ac_cpp conftest.$ac_ext"
16203case "(($ac_try" in
16204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16205  *) ac_try_echo=$ac_try;;
16206esac
16207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16208$as_echo "$ac_try_echo") >&5
16209  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16210  ac_status=$?
16211  grep -v '^ *+' conftest.er1 >conftest.err
16212  rm -f conftest.er1
16213  cat conftest.err >&5
16214  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215  (exit $ac_status); } >/dev/null && {
16216	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16217	 test ! -s conftest.err
16218       }; then
16219  ac_header_preproc=yes
16220else
16221  $as_echo "$as_me: failed program was:" >&5
16222sed 's/^/| /' conftest.$ac_ext >&5
16223
16224  ac_header_preproc=no
16225fi
16226
16227rm -f conftest.err conftest.$ac_ext
16228{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16229$as_echo "$ac_header_preproc" >&6; }
16230
16231# So?  What about this header?
16232case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16233  yes:no: )
16234    { $as_echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16235$as_echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16236    { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
16237$as_echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
16238    ac_header_preproc=yes
16239    ;;
16240  no:yes:* )
16241    { $as_echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
16242$as_echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
16243    { $as_echo "$as_me:$LINENO: WARNING: dl.h:     check for missing prerequisite headers?" >&5
16244$as_echo "$as_me: WARNING: dl.h:     check for missing prerequisite headers?" >&2;}
16245    { $as_echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
16246$as_echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
16247    { $as_echo "$as_me:$LINENO: WARNING: dl.h:     section \"Present But Cannot Be Compiled\"" >&5
16248$as_echo "$as_me: WARNING: dl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16249    { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
16250$as_echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
16251    { $as_echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
16252$as_echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
16253
16254    ;;
16255esac
16256{ $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16257$as_echo_n "checking for dl.h... " >&6; }
16258if test "${ac_cv_header_dl_h+set}" = set; then
16259  $as_echo_n "(cached) " >&6
16260else
16261  ac_cv_header_dl_h=$ac_header_preproc
16262fi
16263{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16264$as_echo "$ac_cv_header_dl_h" >&6; }
16265
16266fi
16267if test $ac_cv_header_dl_h = yes; then
16268  DLL=dl.h
16269fi
16270
16271
16272fi
16273
16274
16275if test x${DLL} = xdlfcn.h; then
16276
16277cat >>confdefs.h <<\_ACEOF
16278#define HAVE_DLFCN_H 1
16279_ACEOF
16280
16281  { $as_echo "$as_me:$LINENO: checking for dlopen()" >&5
16282$as_echo_n "checking for dlopen()... " >&6; }
16283  cat >conftest.$ac_ext <<_ACEOF
16284/* confdefs.h.  */
16285_ACEOF
16286cat confdefs.h >>conftest.$ac_ext
16287cat >>conftest.$ac_ext <<_ACEOF
16288/* end confdefs.h.  */
16289
16290int
16291main ()
16292{
16293
16294		extern void* dlopen();
16295		dlopen();
16296
16297  ;
16298  return 0;
16299}
16300_ACEOF
16301rm -f conftest.$ac_objext conftest$ac_exeext
16302if { (ac_try="$ac_link"
16303case "(($ac_try" in
16304  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16305  *) ac_try_echo=$ac_try;;
16306esac
16307eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16308$as_echo "$ac_try_echo") >&5
16309  (eval "$ac_link") 2>conftest.er1
16310  ac_status=$?
16311  grep -v '^ *+' conftest.er1 >conftest.err
16312  rm -f conftest.er1
16313  cat conftest.err >&5
16314  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315  (exit $ac_status); } && {
16316	 test -z "$ac_c_werror_flag" ||
16317	 test ! -s conftest.err
16318       } && test -s conftest$ac_exeext && {
16319	 test "$cross_compiling" = yes ||
16320	 $as_test_x conftest$ac_exeext
16321       }; then
16322  { $as_echo "$as_me:$LINENO: result: yes" >&5
16323$as_echo "yes" >&6; };
16324
16325cat >>confdefs.h <<\_ACEOF
16326#define HAVE_DLOPEN 1
16327_ACEOF
16328
16329else
16330  $as_echo "$as_me: failed program was:" >&5
16331sed 's/^/| /' conftest.$ac_ext >&5
16332
16333	{ $as_echo "$as_me:$LINENO: result: no" >&5
16334$as_echo "no" >&6; };
16335	      { $as_echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
16336$as_echo_n "checking for dlopen() in -ldl... " >&6; }
16337	      olibs=$LIBS
16338	      LIBS="$LIBS -ldl"
16339	      cat >conftest.$ac_ext <<_ACEOF
16340/* confdefs.h.  */
16341_ACEOF
16342cat confdefs.h >>conftest.$ac_ext
16343cat >>conftest.$ac_ext <<_ACEOF
16344/* end confdefs.h.  */
16345
16346int
16347main ()
16348{
16349
16350				extern void* dlopen();
16351				dlopen();
16352
16353  ;
16354  return 0;
16355}
16356_ACEOF
16357rm -f conftest.$ac_objext conftest$ac_exeext
16358if { (ac_try="$ac_link"
16359case "(($ac_try" in
16360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16361  *) ac_try_echo=$ac_try;;
16362esac
16363eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16364$as_echo "$ac_try_echo") >&5
16365  (eval "$ac_link") 2>conftest.er1
16366  ac_status=$?
16367  grep -v '^ *+' conftest.er1 >conftest.err
16368  rm -f conftest.er1
16369  cat conftest.err >&5
16370  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371  (exit $ac_status); } && {
16372	 test -z "$ac_c_werror_flag" ||
16373	 test ! -s conftest.err
16374       } && test -s conftest$ac_exeext && {
16375	 test "$cross_compiling" = yes ||
16376	 $as_test_x conftest$ac_exeext
16377       }; then
16378  { $as_echo "$as_me:$LINENO: result: yes" >&5
16379$as_echo "yes" >&6; };
16380
16381cat >>confdefs.h <<\_ACEOF
16382#define HAVE_DLOPEN 1
16383_ACEOF
16384
16385else
16386  $as_echo "$as_me: failed program was:" >&5
16387sed 's/^/| /' conftest.$ac_ext >&5
16388
16389	{ $as_echo "$as_me:$LINENO: result: no" >&5
16390$as_echo "no" >&6; };
16391			  LIBS=$olibs
16392fi
16393
16394rm -rf conftest.dSYM
16395rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16396      conftest$ac_exeext conftest.$ac_ext
16397fi
16398
16399rm -rf conftest.dSYM
16400rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16401      conftest$ac_exeext conftest.$ac_ext
16402      { $as_echo "$as_me:$LINENO: checking for dlsym()" >&5
16403$as_echo_n "checking for dlsym()... " >&6; }
16404  cat >conftest.$ac_ext <<_ACEOF
16405/* confdefs.h.  */
16406_ACEOF
16407cat confdefs.h >>conftest.$ac_ext
16408cat >>conftest.$ac_ext <<_ACEOF
16409/* end confdefs.h.  */
16410
16411int
16412main ()
16413{
16414
16415		extern void* dlsym();
16416		dlsym();
16417
16418  ;
16419  return 0;
16420}
16421_ACEOF
16422rm -f conftest.$ac_objext conftest$ac_exeext
16423if { (ac_try="$ac_link"
16424case "(($ac_try" in
16425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16426  *) ac_try_echo=$ac_try;;
16427esac
16428eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16429$as_echo "$ac_try_echo") >&5
16430  (eval "$ac_link") 2>conftest.er1
16431  ac_status=$?
16432  grep -v '^ *+' conftest.er1 >conftest.err
16433  rm -f conftest.er1
16434  cat conftest.err >&5
16435  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436  (exit $ac_status); } && {
16437	 test -z "$ac_c_werror_flag" ||
16438	 test ! -s conftest.err
16439       } && test -s conftest$ac_exeext && {
16440	 test "$cross_compiling" = yes ||
16441	 $as_test_x conftest$ac_exeext
16442       }; then
16443  { $as_echo "$as_me:$LINENO: result: yes" >&5
16444$as_echo "yes" >&6; };
16445
16446cat >>confdefs.h <<\_ACEOF
16447#define HAVE_DLSYM 1
16448_ACEOF
16449
16450else
16451  $as_echo "$as_me: failed program was:" >&5
16452sed 's/^/| /' conftest.$ac_ext >&5
16453
16454	{ $as_echo "$as_me:$LINENO: result: no" >&5
16455$as_echo "no" >&6; };
16456	      { $as_echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
16457$as_echo_n "checking for dlsym() in -ldl... " >&6; }
16458	      olibs=$LIBS
16459	      LIBS="$LIBS -ldl"
16460	      cat >conftest.$ac_ext <<_ACEOF
16461/* confdefs.h.  */
16462_ACEOF
16463cat confdefs.h >>conftest.$ac_ext
16464cat >>conftest.$ac_ext <<_ACEOF
16465/* end confdefs.h.  */
16466
16467int
16468main ()
16469{
16470
16471				extern void* dlsym();
16472				dlsym();
16473
16474  ;
16475  return 0;
16476}
16477_ACEOF
16478rm -f conftest.$ac_objext conftest$ac_exeext
16479if { (ac_try="$ac_link"
16480case "(($ac_try" in
16481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16482  *) ac_try_echo=$ac_try;;
16483esac
16484eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16485$as_echo "$ac_try_echo") >&5
16486  (eval "$ac_link") 2>conftest.er1
16487  ac_status=$?
16488  grep -v '^ *+' conftest.er1 >conftest.err
16489  rm -f conftest.er1
16490  cat conftest.err >&5
16491  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492  (exit $ac_status); } && {
16493	 test -z "$ac_c_werror_flag" ||
16494	 test ! -s conftest.err
16495       } && test -s conftest$ac_exeext && {
16496	 test "$cross_compiling" = yes ||
16497	 $as_test_x conftest$ac_exeext
16498       }; then
16499  { $as_echo "$as_me:$LINENO: result: yes" >&5
16500$as_echo "yes" >&6; };
16501
16502cat >>confdefs.h <<\_ACEOF
16503#define HAVE_DLSYM 1
16504_ACEOF
16505
16506else
16507  $as_echo "$as_me: failed program was:" >&5
16508sed 's/^/| /' conftest.$ac_ext >&5
16509
16510	{ $as_echo "$as_me:$LINENO: result: no" >&5
16511$as_echo "no" >&6; };
16512			  LIBS=$olibs
16513fi
16514
16515rm -rf conftest.dSYM
16516rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16517      conftest$ac_exeext conftest.$ac_ext
16518fi
16519
16520rm -rf conftest.dSYM
16521rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16522      conftest$ac_exeext conftest.$ac_ext
16523elif test x${DLL} = xdl.h; then
16524
16525cat >>confdefs.h <<\_ACEOF
16526#define HAVE_DL_H 1
16527_ACEOF
16528
16529  { $as_echo "$as_me:$LINENO: checking for shl_load()" >&5
16530$as_echo_n "checking for shl_load()... " >&6; }
16531  cat >conftest.$ac_ext <<_ACEOF
16532/* confdefs.h.  */
16533_ACEOF
16534cat confdefs.h >>conftest.$ac_ext
16535cat >>conftest.$ac_ext <<_ACEOF
16536/* end confdefs.h.  */
16537
16538int
16539main ()
16540{
16541
16542		extern void* shl_load();
16543		shl_load();
16544
16545  ;
16546  return 0;
16547}
16548_ACEOF
16549rm -f conftest.$ac_objext conftest$ac_exeext
16550if { (ac_try="$ac_link"
16551case "(($ac_try" in
16552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16553  *) ac_try_echo=$ac_try;;
16554esac
16555eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16556$as_echo "$ac_try_echo") >&5
16557  (eval "$ac_link") 2>conftest.er1
16558  ac_status=$?
16559  grep -v '^ *+' conftest.er1 >conftest.err
16560  rm -f conftest.er1
16561  cat conftest.err >&5
16562  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563  (exit $ac_status); } && {
16564	 test -z "$ac_c_werror_flag" ||
16565	 test ! -s conftest.err
16566       } && test -s conftest$ac_exeext && {
16567	 test "$cross_compiling" = yes ||
16568	 $as_test_x conftest$ac_exeext
16569       }; then
16570  { $as_echo "$as_me:$LINENO: result: yes" >&5
16571$as_echo "yes" >&6; };
16572
16573cat >>confdefs.h <<\_ACEOF
16574#define HAVE_SHL_LOAD 1
16575_ACEOF
16576
16577else
16578  $as_echo "$as_me: failed program was:" >&5
16579sed 's/^/| /' conftest.$ac_ext >&5
16580
16581	{ $as_echo "$as_me:$LINENO: result: no" >&5
16582$as_echo "no" >&6; };
16583	  { $as_echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
16584$as_echo_n "checking for shl_load() in -ldld... " >&6; }
16585	  olibs=$LIBS
16586	  LIBS="$LIBS -ldld"
16587	  cat >conftest.$ac_ext <<_ACEOF
16588/* confdefs.h.  */
16589_ACEOF
16590cat confdefs.h >>conftest.$ac_ext
16591cat >>conftest.$ac_ext <<_ACEOF
16592/* end confdefs.h.  */
16593
16594int
16595main ()
16596{
16597
16598			extern void* shl_load();
16599			shl_load();
16600
16601  ;
16602  return 0;
16603}
16604_ACEOF
16605rm -f conftest.$ac_objext conftest$ac_exeext
16606if { (ac_try="$ac_link"
16607case "(($ac_try" in
16608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16609  *) ac_try_echo=$ac_try;;
16610esac
16611eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16612$as_echo "$ac_try_echo") >&5
16613  (eval "$ac_link") 2>conftest.er1
16614  ac_status=$?
16615  grep -v '^ *+' conftest.er1 >conftest.err
16616  rm -f conftest.er1
16617  cat conftest.err >&5
16618  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619  (exit $ac_status); } && {
16620	 test -z "$ac_c_werror_flag" ||
16621	 test ! -s conftest.err
16622       } && test -s conftest$ac_exeext && {
16623	 test "$cross_compiling" = yes ||
16624	 $as_test_x conftest$ac_exeext
16625       }; then
16626  { $as_echo "$as_me:$LINENO: result: yes" >&5
16627$as_echo "yes" >&6; };
16628
16629cat >>confdefs.h <<\_ACEOF
16630#define HAVE_SHL_LOAD 1
16631_ACEOF
16632
16633else
16634  $as_echo "$as_me: failed program was:" >&5
16635sed 's/^/| /' conftest.$ac_ext >&5
16636
16637	{ $as_echo "$as_me:$LINENO: result: no" >&5
16638$as_echo "no" >&6; };
16639		  LIBS=$olibs
16640fi
16641
16642rm -rf conftest.dSYM
16643rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16644      conftest$ac_exeext conftest.$ac_ext
16645fi
16646
16647rm -rf conftest.dSYM
16648rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16649      conftest$ac_exeext conftest.$ac_ext
16650fi
16651
16652for ac_header in setjmp.h
16653do
16654as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16655if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16656  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16657$as_echo_n "checking for $ac_header... " >&6; }
16658if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16659  $as_echo_n "(cached) " >&6
16660fi
16661ac_res=`eval 'as_val=${'$as_ac_Header'}
16662		 $as_echo "$as_val"'`
16663	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16664$as_echo "$ac_res" >&6; }
16665else
16666  # Is the header compilable?
16667{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16668$as_echo_n "checking $ac_header usability... " >&6; }
16669cat >conftest.$ac_ext <<_ACEOF
16670/* confdefs.h.  */
16671_ACEOF
16672cat confdefs.h >>conftest.$ac_ext
16673cat >>conftest.$ac_ext <<_ACEOF
16674/* end confdefs.h.  */
16675$ac_includes_default
16676#include <$ac_header>
16677_ACEOF
16678rm -f conftest.$ac_objext
16679if { (ac_try="$ac_compile"
16680case "(($ac_try" in
16681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16682  *) ac_try_echo=$ac_try;;
16683esac
16684eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16685$as_echo "$ac_try_echo") >&5
16686  (eval "$ac_compile") 2>conftest.er1
16687  ac_status=$?
16688  grep -v '^ *+' conftest.er1 >conftest.err
16689  rm -f conftest.er1
16690  cat conftest.err >&5
16691  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692  (exit $ac_status); } && {
16693	 test -z "$ac_c_werror_flag" ||
16694	 test ! -s conftest.err
16695       } && test -s conftest.$ac_objext; then
16696  ac_header_compiler=yes
16697else
16698  $as_echo "$as_me: failed program was:" >&5
16699sed 's/^/| /' conftest.$ac_ext >&5
16700
16701	ac_header_compiler=no
16702fi
16703
16704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16705{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16706$as_echo "$ac_header_compiler" >&6; }
16707
16708# Is the header present?
16709{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16710$as_echo_n "checking $ac_header presence... " >&6; }
16711cat >conftest.$ac_ext <<_ACEOF
16712/* confdefs.h.  */
16713_ACEOF
16714cat confdefs.h >>conftest.$ac_ext
16715cat >>conftest.$ac_ext <<_ACEOF
16716/* end confdefs.h.  */
16717#include <$ac_header>
16718_ACEOF
16719if { (ac_try="$ac_cpp conftest.$ac_ext"
16720case "(($ac_try" in
16721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722  *) ac_try_echo=$ac_try;;
16723esac
16724eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16725$as_echo "$ac_try_echo") >&5
16726  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16727  ac_status=$?
16728  grep -v '^ *+' conftest.er1 >conftest.err
16729  rm -f conftest.er1
16730  cat conftest.err >&5
16731  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732  (exit $ac_status); } >/dev/null && {
16733	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16734	 test ! -s conftest.err
16735       }; then
16736  ac_header_preproc=yes
16737else
16738  $as_echo "$as_me: failed program was:" >&5
16739sed 's/^/| /' conftest.$ac_ext >&5
16740
16741  ac_header_preproc=no
16742fi
16743
16744rm -f conftest.err conftest.$ac_ext
16745{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16746$as_echo "$ac_header_preproc" >&6; }
16747
16748# So?  What about this header?
16749case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16750  yes:no: )
16751    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16752$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16753    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16754$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16755    ac_header_preproc=yes
16756    ;;
16757  no:yes:* )
16758    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16759$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16760    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16761$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16762    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16763$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16764    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16765$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16766    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16767$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16768    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16769$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16770
16771    ;;
16772esac
16773{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16774$as_echo_n "checking for $ac_header... " >&6; }
16775if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16776  $as_echo_n "(cached) " >&6
16777else
16778  eval "$as_ac_Header=\$ac_header_preproc"
16779fi
16780ac_res=`eval 'as_val=${'$as_ac_Header'}
16781		 $as_echo "$as_val"'`
16782	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16783$as_echo "$ac_res" >&6; }
16784
16785fi
16786if test `eval 'as_val=${'$as_ac_Header'}
16787		 $as_echo "$as_val"'` = yes; then
16788  cat >>confdefs.h <<_ACEOF
16789#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16790_ACEOF
16791
16792fi
16793
16794done
16795
16796
16797if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
16798    if echo $LIBS | grep -e '-ldl' >/dev/null; then
16799    LIBS=`echo $LIBS | sed s/-ldl//`
16800    PERL_LIBS="$PERL_LIBS -ldl"
16801  fi
16802fi
16803
16804if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
16805	&& test "x$GUITYPE" != "xCARBONGUI"; then
16806  { $as_echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
16807$as_echo_n "checking whether we need -framework Carbon... " >&6; }
16808    if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
16809	|| test "x$features" = "xhuge"; then
16810    LIBS="$LIBS -framework Carbon"
16811    { $as_echo "$as_me:$LINENO: result: yes" >&5
16812$as_echo "yes" >&6; }
16813  else
16814    { $as_echo "$as_me:$LINENO: result: no" >&5
16815$as_echo "no" >&6; }
16816  fi
16817fi
16818if test "x$MACARCH" = "xboth"; then
16819  LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
16820fi
16821
16822{ $as_echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
16823$as_echo_n "checking for GCC 3 or later... " >&6; }
16824DEPEND_CFLAGS_FILTER=
16825if test "$GCC" = yes; then
16826  gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
16827  if test "$gccmajor" -gt "2"; then
16828    DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
16829  fi
16830fi
16831if test "$DEPEND_CFLAGS_FILTER" = ""; then
16832  { $as_echo "$as_me:$LINENO: result: no" >&5
16833$as_echo "no" >&6; }
16834else
16835  { $as_echo "$as_me:$LINENO: result: yes" >&5
16836$as_echo "yes" >&6; }
16837fi
16838
16839
16840ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
16841
16842cat >confcache <<\_ACEOF
16843# This file is a shell script that caches the results of configure
16844# tests run on this system so they can be shared between configure
16845# scripts and configure runs, see configure's option --config-cache.
16846# It is not useful on other systems.  If it contains results you don't
16847# want to keep, you may remove or edit it.
16848#
16849# config.status only pays attention to the cache file if you give it
16850# the --recheck option to rerun configure.
16851#
16852# `ac_cv_env_foo' variables (set or unset) will be overridden when
16853# loading this file, other *unset* `ac_cv_foo' will be assigned the
16854# following values.
16855
16856_ACEOF
16857
16858# The following way of writing the cache mishandles newlines in values,
16859# but we know of no workaround that is simple, portable, and efficient.
16860# So, we kill variables containing newlines.
16861# Ultrix sh set writes to stderr and can't be redirected directly,
16862# and sets the high bit in the cache file unless we assign to the vars.
16863(
16864  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16865    eval ac_val=\$$ac_var
16866    case $ac_val in #(
16867    *${as_nl}*)
16868      case $ac_var in #(
16869      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16870$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16871      esac
16872      case $ac_var in #(
16873      _ | IFS | as_nl) ;; #(
16874      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16875      *) $as_unset $ac_var ;;
16876      esac ;;
16877    esac
16878  done
16879
16880  (set) 2>&1 |
16881    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16882    *${as_nl}ac_space=\ *)
16883      # `set' does not quote correctly, so add quotes (double-quote
16884      # substitution turns \\\\ into \\, and sed turns \\ into \).
16885      sed -n \
16886	"s/'/'\\\\''/g;
16887	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16888      ;; #(
16889    *)
16890      # `set' quotes correctly as required by POSIX, so do not add quotes.
16891      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16892      ;;
16893    esac |
16894    sort
16895) |
16896  sed '
16897     /^ac_cv_env_/b end
16898     t clear
16899     :clear
16900     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16901     t end
16902     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16903     :end' >>confcache
16904if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16905  if test -w "$cache_file"; then
16906    test "x$cache_file" != "x/dev/null" &&
16907      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
16908$as_echo "$as_me: updating cache $cache_file" >&6;}
16909    cat confcache >$cache_file
16910  else
16911    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16912$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16913  fi
16914fi
16915rm -f confcache
16916
16917test "x$prefix" = xNONE && prefix=$ac_default_prefix
16918# Let make expand exec_prefix.
16919test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16920
16921DEFS=-DHAVE_CONFIG_H
16922
16923ac_libobjs=
16924ac_ltlibobjs=
16925for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16926  # 1. Remove the extension, and $U if already installed.
16927  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16928  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16929  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16930  #    will be set to the directory where LIBOBJS objects are built.
16931  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16932  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16933done
16934LIBOBJS=$ac_libobjs
16935
16936LTLIBOBJS=$ac_ltlibobjs
16937
16938
16939
16940: ${CONFIG_STATUS=./config.status}
16941ac_write_fail=0
16942ac_clean_files_save=$ac_clean_files
16943ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16944{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16945$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16946cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16947#! $SHELL
16948# Generated by $as_me.
16949# Run this file to recreate the current configuration.
16950# Compiler output produced by configure, useful for debugging
16951# configure, is in config.log if it exists.
16952
16953debug=false
16954ac_cs_recheck=false
16955ac_cs_silent=false
16956SHELL=\${CONFIG_SHELL-$SHELL}
16957_ACEOF
16958
16959cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16960## --------------------- ##
16961## M4sh Initialization.  ##
16962## --------------------- ##
16963
16964# Be more Bourne compatible
16965DUALCASE=1; export DUALCASE # for MKS sh
16966if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16967  emulate sh
16968  NULLCMD=:
16969  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16970  # is contrary to our usage.  Disable this feature.
16971  alias -g '${1+"$@"}'='"$@"'
16972  setopt NO_GLOB_SUBST
16973else
16974  case `(set -o) 2>/dev/null` in
16975  *posix*) set -o posix ;;
16976esac
16977
16978fi
16979
16980
16981
16982
16983# PATH needs CR
16984# Avoid depending upon Character Ranges.
16985as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16986as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16987as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16988as_cr_digits='0123456789'
16989as_cr_alnum=$as_cr_Letters$as_cr_digits
16990
16991as_nl='
16992'
16993export as_nl
16994# Printing a long string crashes Solaris 7 /usr/bin/printf.
16995as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16996as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16997as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16998if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16999  as_echo='printf %s\n'
17000  as_echo_n='printf %s'
17001else
17002  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17003    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17004    as_echo_n='/usr/ucb/echo -n'
17005  else
17006    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17007    as_echo_n_body='eval
17008      arg=$1;
17009      case $arg in
17010      *"$as_nl"*)
17011	expr "X$arg" : "X\\(.*\\)$as_nl";
17012	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17013      esac;
17014      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17015    '
17016    export as_echo_n_body
17017    as_echo_n='sh -c $as_echo_n_body as_echo'
17018  fi
17019  export as_echo_body
17020  as_echo='sh -c $as_echo_body as_echo'
17021fi
17022
17023# The user is always right.
17024if test "${PATH_SEPARATOR+set}" != set; then
17025  PATH_SEPARATOR=:
17026  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17027    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17028      PATH_SEPARATOR=';'
17029  }
17030fi
17031
17032# Support unset when possible.
17033if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17034  as_unset=unset
17035else
17036  as_unset=false
17037fi
17038
17039
17040# IFS
17041# We need space, tab and new line, in precisely that order.  Quoting is
17042# there to prevent editors from complaining about space-tab.
17043# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17044# splitting by setting IFS to empty value.)
17045IFS=" ""	$as_nl"
17046
17047# Find who we are.  Look in the path if we contain no directory separator.
17048case $0 in
17049  *[\\/]* ) as_myself=$0 ;;
17050  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17051for as_dir in $PATH
17052do
17053  IFS=$as_save_IFS
17054  test -z "$as_dir" && as_dir=.
17055  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17056done
17057IFS=$as_save_IFS
17058
17059     ;;
17060esac
17061# We did not find ourselves, most probably we were run as `sh COMMAND'
17062# in which case we are not to be found in the path.
17063if test "x$as_myself" = x; then
17064  as_myself=$0
17065fi
17066if test ! -f "$as_myself"; then
17067  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17068  { (exit 1); exit 1; }
17069fi
17070
17071# Work around bugs in pre-3.0 UWIN ksh.
17072for as_var in ENV MAIL MAILPATH
17073do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17074done
17075PS1='$ '
17076PS2='> '
17077PS4='+ '
17078
17079# NLS nuisances.
17080LC_ALL=C
17081export LC_ALL
17082LANGUAGE=C
17083export LANGUAGE
17084
17085# Required to use basename.
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
17093if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17094  as_basename=basename
17095else
17096  as_basename=false
17097fi
17098
17099
17100# Name of the executable.
17101as_me=`$as_basename -- "$0" ||
17102$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17103	 X"$0" : 'X\(//\)$' \| \
17104	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17105$as_echo X/"$0" |
17106    sed '/^.*\/\([^/][^/]*\)\/*$/{
17107	    s//\1/
17108	    q
17109	  }
17110	  /^X\/\(\/\/\)$/{
17111	    s//\1/
17112	    q
17113	  }
17114	  /^X\/\(\/\).*/{
17115	    s//\1/
17116	    q
17117	  }
17118	  s/.*/./; q'`
17119
17120# CDPATH.
17121$as_unset CDPATH
17122
17123
17124
17125  as_lineno_1=$LINENO
17126  as_lineno_2=$LINENO
17127  test "x$as_lineno_1" != "x$as_lineno_2" &&
17128  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17129
17130  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17131  # uniformly replaced by the line number.  The first 'sed' inserts a
17132  # line-number line after each line using $LINENO; the second 'sed'
17133  # does the real work.  The second script uses 'N' to pair each
17134  # line-number line with the line containing $LINENO, and appends
17135  # trailing '-' during substitution so that $LINENO is not a special
17136  # case at line end.
17137  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17138  # scripts with optimization help from Paolo Bonzini.  Blame Lee
17139  # E. McMahon (1931-1989) for sed's syntax.  :-)
17140  sed -n '
17141    p
17142    /[$]LINENO/=
17143  ' <$as_myself |
17144    sed '
17145      s/[$]LINENO.*/&-/
17146      t lineno
17147      b
17148      :lineno
17149      N
17150      :loop
17151      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17152      t loop
17153      s/-\n.*//
17154    ' >$as_me.lineno &&
17155  chmod +x "$as_me.lineno" ||
17156    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17157   { (exit 1); exit 1; }; }
17158
17159  # Don't try to exec as it changes $[0], causing all sort of problems
17160  # (the dirname of $[0] is not the place where we might find the
17161  # original and so on.  Autoconf is especially sensitive to this).
17162  . "./$as_me.lineno"
17163  # Exit status is that of the last command.
17164  exit
17165}
17166
17167
17168if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17169  as_dirname=dirname
17170else
17171  as_dirname=false
17172fi
17173
17174ECHO_C= ECHO_N= ECHO_T=
17175case `echo -n x` in
17176-n*)
17177  case `echo 'x\c'` in
17178  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17179  *)   ECHO_C='\c';;
17180  esac;;
17181*)
17182  ECHO_N='-n';;
17183esac
17184if expr a : '\(a\)' >/dev/null 2>&1 &&
17185   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17186  as_expr=expr
17187else
17188  as_expr=false
17189fi
17190
17191rm -f conf$$ conf$$.exe conf$$.file
17192if test -d conf$$.dir; then
17193  rm -f conf$$.dir/conf$$.file
17194else
17195  rm -f conf$$.dir
17196  mkdir conf$$.dir 2>/dev/null
17197fi
17198if (echo >conf$$.file) 2>/dev/null; then
17199  if ln -s conf$$.file conf$$ 2>/dev/null; then
17200    as_ln_s='ln -s'
17201    # ... but there are two gotchas:
17202    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17203    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17204    # In both cases, we have to default to `cp -p'.
17205    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17206      as_ln_s='cp -p'
17207  elif ln conf$$.file conf$$ 2>/dev/null; then
17208    as_ln_s=ln
17209  else
17210    as_ln_s='cp -p'
17211  fi
17212else
17213  as_ln_s='cp -p'
17214fi
17215rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17216rmdir conf$$.dir 2>/dev/null
17217
17218if mkdir -p . 2>/dev/null; then
17219  as_mkdir_p=:
17220else
17221  test -d ./-p && rmdir ./-p
17222  as_mkdir_p=false
17223fi
17224
17225if test -x / >/dev/null 2>&1; then
17226  as_test_x='test -x'
17227else
17228  if ls -dL / >/dev/null 2>&1; then
17229    as_ls_L_option=L
17230  else
17231    as_ls_L_option=
17232  fi
17233  as_test_x='
17234    eval sh -c '\''
17235      if test -d "$1"; then
17236	test -d "$1/.";
17237      else
17238	case $1 in
17239	-*)set "./$1";;
17240	esac;
17241	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17242	???[sx]*):;;*)false;;esac;fi
17243    '\'' sh
17244  '
17245fi
17246as_executable_p=$as_test_x
17247
17248# Sed expression to map a string onto a valid CPP name.
17249as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17250
17251# Sed expression to map a string onto a valid variable name.
17252as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17253
17254
17255exec 6>&1
17256
17257# Save the log message, to keep $[0] and so on meaningful, and to
17258# report actual input values of CONFIG_FILES etc. instead of their
17259# values after options handling.
17260ac_log="
17261This file was extended by $as_me, which was
17262generated by GNU Autoconf 2.62.  Invocation command line was
17263
17264  CONFIG_FILES    = $CONFIG_FILES
17265  CONFIG_HEADERS  = $CONFIG_HEADERS
17266  CONFIG_LINKS    = $CONFIG_LINKS
17267  CONFIG_COMMANDS = $CONFIG_COMMANDS
17268  $ $0 $@
17269
17270on `(hostname || uname -n) 2>/dev/null | sed 1q`
17271"
17272
17273_ACEOF
17274
17275cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17276# Files that config.status was made for.
17277config_files="$ac_config_files"
17278config_headers="$ac_config_headers"
17279
17280_ACEOF
17281
17282cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17283ac_cs_usage="\
17284\`$as_me' instantiates files from templates according to the
17285current configuration.
17286
17287Usage: $0 [OPTIONS] [FILE]...
17288
17289  -h, --help       print this help, then exit
17290  -V, --version    print version number and configuration settings, then exit
17291  -q, --quiet      do not print progress messages
17292  -d, --debug      don't remove temporary files
17293      --recheck    update $as_me by reconfiguring in the same conditions
17294  --file=FILE[:TEMPLATE]
17295                   instantiate the configuration file FILE
17296  --header=FILE[:TEMPLATE]
17297                   instantiate the configuration header FILE
17298
17299Configuration files:
17300$config_files
17301
17302Configuration headers:
17303$config_headers
17304
17305Report bugs to <[email protected]>."
17306
17307_ACEOF
17308cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17309ac_cs_version="\\
17310config.status
17311configured by $0, generated by GNU Autoconf 2.62,
17312  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17313
17314Copyright (C) 2008 Free Software Foundation, Inc.
17315This config.status script is free software; the Free Software Foundation
17316gives unlimited permission to copy, distribute and modify it."
17317
17318ac_pwd='$ac_pwd'
17319srcdir='$srcdir'
17320AWK='$AWK'
17321test -n "\$AWK" || AWK=awk
17322_ACEOF
17323
17324cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17325# The default lists apply if the user does not specify any file.
17326ac_need_defaults=:
17327while test $# != 0
17328do
17329  case $1 in
17330  --*=*)
17331    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17332    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17333    ac_shift=:
17334    ;;
17335  *)
17336    ac_option=$1
17337    ac_optarg=$2
17338    ac_shift=shift
17339    ;;
17340  esac
17341
17342  case $ac_option in
17343  # Handling of the options.
17344  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17345    ac_cs_recheck=: ;;
17346  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17347    $as_echo "$ac_cs_version"; exit ;;
17348  --debug | --debu | --deb | --de | --d | -d )
17349    debug=: ;;
17350  --file | --fil | --fi | --f )
17351    $ac_shift
17352    case $ac_optarg in
17353    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17354    esac
17355    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
17356    ac_need_defaults=false;;
17357  --header | --heade | --head | --hea )
17358    $ac_shift
17359    case $ac_optarg in
17360    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17361    esac
17362    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
17363    ac_need_defaults=false;;
17364  --he | --h)
17365    # Conflict between --help and --header
17366    { $as_echo "$as_me: error: ambiguous option: $1
17367Try \`$0 --help' for more information." >&2
17368   { (exit 1); exit 1; }; };;
17369  --help | --hel | -h )
17370    $as_echo "$ac_cs_usage"; exit ;;
17371  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17372  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17373    ac_cs_silent=: ;;
17374
17375  # This is an error.
17376  -*) { $as_echo "$as_me: error: unrecognized option: $1
17377Try \`$0 --help' for more information." >&2
17378   { (exit 1); exit 1; }; } ;;
17379
17380  *) ac_config_targets="$ac_config_targets $1"
17381     ac_need_defaults=false ;;
17382
17383  esac
17384  shift
17385done
17386
17387ac_configure_extra_args=
17388
17389if $ac_cs_silent; then
17390  exec 6>/dev/null
17391  ac_configure_extra_args="$ac_configure_extra_args --silent"
17392fi
17393
17394_ACEOF
17395cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17396if \$ac_cs_recheck; then
17397  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17398  shift
17399  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17400  CONFIG_SHELL='$SHELL'
17401  export CONFIG_SHELL
17402  exec "\$@"
17403fi
17404
17405_ACEOF
17406cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17407exec 5>>auto/config.log
17408{
17409  echo
17410  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17411## Running $as_me. ##
17412_ASBOX
17413  $as_echo "$ac_log"
17414} >&5
17415
17416_ACEOF
17417cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17418_ACEOF
17419
17420cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17421
17422# Handling of arguments.
17423for ac_config_target in $ac_config_targets
17424do
17425  case $ac_config_target in
17426    "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
17427    "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
17428
17429  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17430$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17431   { (exit 1); exit 1; }; };;
17432  esac
17433done
17434
17435
17436# If the user did not use the arguments to specify the items to instantiate,
17437# then the envvar interface is used.  Set only those that are not.
17438# We use the long form for the default assignment because of an extremely
17439# bizarre bug on SunOS 4.1.3.
17440if $ac_need_defaults; then
17441  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17442  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17443fi
17444
17445# Have a temporary directory for convenience.  Make it in the build tree
17446# simply because there is no reason against having it here, and in addition,
17447# creating and moving files from /tmp can sometimes cause problems.
17448# Hook for its removal unless debugging.
17449# Note that there is a small window in which the directory will not be cleaned:
17450# after its creation but before its name has been assigned to `$tmp'.
17451$debug ||
17452{
17453  tmp=
17454  trap 'exit_status=$?
17455  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17456' 0
17457  trap '{ (exit 1); exit 1; }' 1 2 13 15
17458}
17459# Create a (secure) tmp directory for tmp files.
17460
17461{
17462  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17463  test -n "$tmp" && test -d "$tmp"
17464}  ||
17465{
17466  tmp=./conf$$-$RANDOM
17467  (umask 077 && mkdir "$tmp")
17468} ||
17469{
17470   $as_echo "$as_me: cannot create a temporary directory in ." >&2
17471   { (exit 1); exit 1; }
17472}
17473
17474# Set up the scripts for CONFIG_FILES section.
17475# No need to generate them if there are no CONFIG_FILES.
17476# This happens for instance with `./config.status config.h'.
17477if test -n "$CONFIG_FILES"; then
17478
17479
17480ac_cr='
17481'
17482ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17483if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17484  ac_cs_awk_cr='\\r'
17485else
17486  ac_cs_awk_cr=$ac_cr
17487fi
17488
17489echo 'BEGIN {' >"$tmp/subs1.awk" &&
17490_ACEOF
17491
17492
17493{
17494  echo "cat >conf$$subs.awk <<_ACEOF" &&
17495  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17496  echo "_ACEOF"
17497} >conf$$subs.sh ||
17498  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17499$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17500   { (exit 1); exit 1; }; }
17501ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17502ac_delim='%!_!# '
17503for ac_last_try in false false false false false :; do
17504  . ./conf$$subs.sh ||
17505    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17506$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17507   { (exit 1); exit 1; }; }
17508
17509  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
17510    break
17511  elif $ac_last_try; then
17512    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17513$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17514   { (exit 1); exit 1; }; }
17515  else
17516    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17517  fi
17518done
17519rm -f conf$$subs.sh
17520
17521cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17522cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17523_ACEOF
17524sed -n '
17525h
17526s/^/S["/; s/!.*/"]=/
17527p
17528g
17529s/^[^!]*!//
17530:repl
17531t repl
17532s/'"$ac_delim"'$//
17533t delim
17534:nl
17535h
17536s/\(.\{148\}\).*/\1/
17537t more1
17538s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17539p
17540n
17541b repl
17542:more1
17543s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17544p
17545g
17546s/.\{148\}//
17547t nl
17548:delim
17549h
17550s/\(.\{148\}\).*/\1/
17551t more2
17552s/["\\]/\\&/g; s/^/"/; s/$/"/
17553p
17554b
17555:more2
17556s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17557p
17558g
17559s/.\{148\}//
17560t delim
17561' <conf$$subs.awk | sed '
17562/^[^""]/{
17563  N
17564  s/\n//
17565}
17566' >>$CONFIG_STATUS || ac_write_fail=1
17567rm -f conf$$subs.awk
17568cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17569_ACAWK
17570cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17571  for (key in S) S_is_set[key] = 1
17572  FS = ""
17573
17574}
17575{
17576  line = $ 0
17577  nfields = split(line, field, "@")
17578  substed = 0
17579  len = length(field[1])
17580  for (i = 2; i < nfields; i++) {
17581    key = field[i]
17582    keylen = length(key)
17583    if (S_is_set[key]) {
17584      value = S[key]
17585      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17586      len += length(value) + length(field[++i])
17587      substed = 1
17588    } else
17589      len += 1 + keylen
17590  }
17591
17592  print line
17593}
17594
17595_ACAWK
17596_ACEOF
17597cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17598if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17599  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17600else
17601  cat
17602fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17603  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
17604$as_echo "$as_me: error: could not setup config files machinery" >&2;}
17605   { (exit 1); exit 1; }; }
17606_ACEOF
17607
17608# VPATH may cause trouble with some makes, so we remove $(srcdir),
17609# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17610# trailing colons and then remove the whole line if VPATH becomes empty
17611# (actually we leave an empty line to preserve line numbers).
17612if test "x$srcdir" = x.; then
17613  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
17614s/:*\$(srcdir):*/:/
17615s/:*\${srcdir}:*/:/
17616s/:*@srcdir@:*/:/
17617s/^\([^=]*=[	 ]*\):*/\1/
17618s/:*$//
17619s/^[^=]*=[	 ]*$//
17620}'
17621fi
17622
17623cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17624fi # test -n "$CONFIG_FILES"
17625
17626# Set up the scripts for CONFIG_HEADERS section.
17627# No need to generate them if there are no CONFIG_HEADERS.
17628# This happens for instance with `./config.status Makefile'.
17629if test -n "$CONFIG_HEADERS"; then
17630cat >"$tmp/defines.awk" <<\_ACAWK ||
17631BEGIN {
17632_ACEOF
17633
17634# Transform confdefs.h into an awk script `defines.awk', embedded as
17635# here-document in config.status, that substitutes the proper values into
17636# config.h.in to produce config.h.
17637
17638# Create a delimiter string that does not exist in confdefs.h, to ease
17639# handling of long lines.
17640ac_delim='%!_!# '
17641for ac_last_try in false false :; do
17642  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17643  if test -z "$ac_t"; then
17644    break
17645  elif $ac_last_try; then
17646    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
17647$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
17648   { (exit 1); exit 1; }; }
17649  else
17650    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17651  fi
17652done
17653
17654# For the awk script, D is an array of macro values keyed by name,
17655# likewise P contains macro parameters if any.  Preserve backslash
17656# newline sequences.
17657
17658ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17659sed -n '
17660s/.\{148\}/&'"$ac_delim"'/g
17661t rset
17662:rset
17663s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
17664t def
17665d
17666:def
17667s/\\$//
17668t bsnl
17669s/["\\]/\\&/g
17670s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17671D["\1"]=" \3"/p
17672s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
17673d
17674:bsnl
17675s/["\\]/\\&/g
17676s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17677D["\1"]=" \3\\\\\\n"\\/p
17678t cont
17679s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17680t cont
17681d
17682:cont
17683n
17684s/.\{148\}/&'"$ac_delim"'/g
17685t clear
17686:clear
17687s/\\$//
17688t bsnlc
17689s/["\\]/\\&/g; s/^/"/; s/$/"/p
17690d
17691:bsnlc
17692s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17693b cont
17694' <confdefs.h | sed '
17695s/'"$ac_delim"'/"\\\
17696"/g' >>$CONFIG_STATUS || ac_write_fail=1
17697
17698cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17699  for (key in D) D_is_set[key] = 1
17700  FS = ""
17701}
17702/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17703  line = \$ 0
17704  split(line, arg, " ")
17705  if (arg[1] == "#") {
17706    defundef = arg[2]
17707    mac1 = arg[3]
17708  } else {
17709    defundef = substr(arg[1], 2)
17710    mac1 = arg[2]
17711  }
17712  split(mac1, mac2, "(") #)
17713  macro = mac2[1]
17714  if (D_is_set[macro]) {
17715    # Preserve the white space surrounding the "#".
17716    prefix = substr(line, 1, index(line, defundef) - 1)
17717    print prefix "define", macro P[macro] D[macro]
17718    next
17719  } else {
17720    # Replace #undef with comments.  This is necessary, for example,
17721    # in the case of _POSIX_SOURCE, which is predefined and required
17722    # on some systems where configure will not decide to define it.
17723    if (defundef == "undef") {
17724      print "/*", line, "*/"
17725      next
17726    }
17727  }
17728}
17729{ print }
17730_ACAWK
17731_ACEOF
17732cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17733  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
17734$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
17735   { (exit 1); exit 1; }; }
17736fi # test -n "$CONFIG_HEADERS"
17737
17738
17739eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
17740shift
17741for ac_tag
17742do
17743  case $ac_tag in
17744  :[FHLC]) ac_mode=$ac_tag; continue;;
17745  esac
17746  case $ac_mode$ac_tag in
17747  :[FHL]*:*);;
17748  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17749$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17750   { (exit 1); exit 1; }; };;
17751  :[FH]-) ac_tag=-:-;;
17752  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17753  esac
17754  ac_save_IFS=$IFS
17755  IFS=:
17756  set x $ac_tag
17757  IFS=$ac_save_IFS
17758  shift
17759  ac_file=$1
17760  shift
17761
17762  case $ac_mode in
17763  :L) ac_source=$1;;
17764  :[FH])
17765    ac_file_inputs=
17766    for ac_f
17767    do
17768      case $ac_f in
17769      -) ac_f="$tmp/stdin";;
17770      *) # Look for the file first in the build tree, then in the source tree
17771	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
17772	 # because $ac_f cannot contain `:'.
17773	 test -f "$ac_f" ||
17774	   case $ac_f in
17775	   [\\/$]*) false;;
17776	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17777	   esac ||
17778	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17779$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17780   { (exit 1); exit 1; }; };;
17781      esac
17782      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17783      ac_file_inputs="$ac_file_inputs '$ac_f'"
17784    done
17785
17786    # Let's still pretend it is `configure' which instantiates (i.e., don't
17787    # use $as_me), people would be surprised to read:
17788    #    /* config.h.  Generated by config.status.  */
17789    configure_input='Generated from '`
17790	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17791	`' by configure.'
17792    if test x"$ac_file" != x-; then
17793      configure_input="$ac_file.  $configure_input"
17794      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
17795$as_echo "$as_me: creating $ac_file" >&6;}
17796    fi
17797    # Neutralize special characters interpreted by sed in replacement strings.
17798    case $configure_input in #(
17799    *\&* | *\|* | *\\* )
17800       ac_sed_conf_input=`$as_echo "$configure_input" |
17801       sed 's/[\\\\&|]/\\\\&/g'`;; #(
17802    *) ac_sed_conf_input=$configure_input;;
17803    esac
17804
17805    case $ac_tag in
17806    *:-:* | *:-) cat >"$tmp/stdin" \
17807      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17808$as_echo "$as_me: error: could not create $ac_file" >&2;}
17809   { (exit 1); exit 1; }; } ;;
17810    esac
17811    ;;
17812  esac
17813
17814  ac_dir=`$as_dirname -- "$ac_file" ||
17815$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17816	 X"$ac_file" : 'X\(//\)[^/]' \| \
17817	 X"$ac_file" : 'X\(//\)$' \| \
17818	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17819$as_echo X"$ac_file" |
17820    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17821	    s//\1/
17822	    q
17823	  }
17824	  /^X\(\/\/\)[^/].*/{
17825	    s//\1/
17826	    q
17827	  }
17828	  /^X\(\/\/\)$/{
17829	    s//\1/
17830	    q
17831	  }
17832	  /^X\(\/\).*/{
17833	    s//\1/
17834	    q
17835	  }
17836	  s/.*/./; q'`
17837  { as_dir="$ac_dir"
17838  case $as_dir in #(
17839  -*) as_dir=./$as_dir;;
17840  esac
17841  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17842    as_dirs=
17843    while :; do
17844      case $as_dir in #(
17845      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17846      *) as_qdir=$as_dir;;
17847      esac
17848      as_dirs="'$as_qdir' $as_dirs"
17849      as_dir=`$as_dirname -- "$as_dir" ||
17850$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17851	 X"$as_dir" : 'X\(//\)[^/]' \| \
17852	 X"$as_dir" : 'X\(//\)$' \| \
17853	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17854$as_echo X"$as_dir" |
17855    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17856	    s//\1/
17857	    q
17858	  }
17859	  /^X\(\/\/\)[^/].*/{
17860	    s//\1/
17861	    q
17862	  }
17863	  /^X\(\/\/\)$/{
17864	    s//\1/
17865	    q
17866	  }
17867	  /^X\(\/\).*/{
17868	    s//\1/
17869	    q
17870	  }
17871	  s/.*/./; q'`
17872      test -d "$as_dir" && break
17873    done
17874    test -z "$as_dirs" || eval "mkdir $as_dirs"
17875  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17876$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
17877   { (exit 1); exit 1; }; }; }
17878  ac_builddir=.
17879
17880case "$ac_dir" in
17881.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17882*)
17883  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17884  # A ".." for each directory in $ac_dir_suffix.
17885  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17886  case $ac_top_builddir_sub in
17887  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17888  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17889  esac ;;
17890esac
17891ac_abs_top_builddir=$ac_pwd
17892ac_abs_builddir=$ac_pwd$ac_dir_suffix
17893# for backward compatibility:
17894ac_top_builddir=$ac_top_build_prefix
17895
17896case $srcdir in
17897  .)  # We are building in place.
17898    ac_srcdir=.
17899    ac_top_srcdir=$ac_top_builddir_sub
17900    ac_abs_top_srcdir=$ac_pwd ;;
17901  [\\/]* | ?:[\\/]* )  # Absolute name.
17902    ac_srcdir=$srcdir$ac_dir_suffix;
17903    ac_top_srcdir=$srcdir
17904    ac_abs_top_srcdir=$srcdir ;;
17905  *) # Relative name.
17906    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17907    ac_top_srcdir=$ac_top_build_prefix$srcdir
17908    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17909esac
17910ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17911
17912
17913  case $ac_mode in
17914  :F)
17915  #
17916  # CONFIG_FILE
17917  #
17918
17919_ACEOF
17920
17921cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17922# If the template does not know about datarootdir, expand it.
17923# FIXME: This hack should be removed a few years after 2.60.
17924ac_datarootdir_hack=; ac_datarootdir_seen=
17925
17926ac_sed_dataroot='
17927/datarootdir/ {
17928  p
17929  q
17930}
17931/@datadir@/p
17932/@docdir@/p
17933/@infodir@/p
17934/@localedir@/p
17935/@mandir@/p
17936'
17937case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17938*datarootdir*) ac_datarootdir_seen=yes;;
17939*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17940  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17941$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17942_ACEOF
17943cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17944  ac_datarootdir_hack='
17945  s&@datadir@&$datadir&g
17946  s&@docdir@&$docdir&g
17947  s&@infodir@&$infodir&g
17948  s&@localedir@&$localedir&g
17949  s&@mandir@&$mandir&g
17950    s&\\\${datarootdir}&$datarootdir&g' ;;
17951esac
17952_ACEOF
17953
17954# Neutralize VPATH when `$srcdir' = `.'.
17955# Shell code in configure.ac might set extrasub.
17956# FIXME: do we really want to maintain this feature?
17957cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17958ac_sed_extra="$ac_vpsub
17959$extrasub
17960_ACEOF
17961cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17962:t
17963/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17964s|@configure_input@|$ac_sed_conf_input|;t t
17965s&@top_builddir@&$ac_top_builddir_sub&;t t
17966s&@top_build_prefix@&$ac_top_build_prefix&;t t
17967s&@srcdir@&$ac_srcdir&;t t
17968s&@abs_srcdir@&$ac_abs_srcdir&;t t
17969s&@top_srcdir@&$ac_top_srcdir&;t t
17970s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17971s&@builddir@&$ac_builddir&;t t
17972s&@abs_builddir@&$ac_abs_builddir&;t t
17973s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17974$ac_datarootdir_hack
17975"
17976eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17977  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17978$as_echo "$as_me: error: could not create $ac_file" >&2;}
17979   { (exit 1); exit 1; }; }
17980
17981test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17982  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17983  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17984  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17985which seems to be undefined.  Please make sure it is defined." >&5
17986$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17987which seems to be undefined.  Please make sure it is defined." >&2;}
17988
17989  rm -f "$tmp/stdin"
17990  case $ac_file in
17991  -) cat "$tmp/out" && rm -f "$tmp/out";;
17992  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17993  esac \
17994  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17995$as_echo "$as_me: error: could not create $ac_file" >&2;}
17996   { (exit 1); exit 1; }; }
17997 ;;
17998  :H)
17999  #
18000  # CONFIG_HEADER
18001  #
18002  if test x"$ac_file" != x-; then
18003    {
18004      $as_echo "/* $configure_input  */" \
18005      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18006    } >"$tmp/config.h" \
18007      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18008$as_echo "$as_me: error: could not create $ac_file" >&2;}
18009   { (exit 1); exit 1; }; }
18010    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18011      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18012$as_echo "$as_me: $ac_file is unchanged" >&6;}
18013    else
18014      rm -f "$ac_file"
18015      mv "$tmp/config.h" "$ac_file" \
18016	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18017$as_echo "$as_me: error: could not create $ac_file" >&2;}
18018   { (exit 1); exit 1; }; }
18019    fi
18020  else
18021    $as_echo "/* $configure_input  */" \
18022      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18023      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
18024$as_echo "$as_me: error: could not create -" >&2;}
18025   { (exit 1); exit 1; }; }
18026  fi
18027 ;;
18028
18029
18030  esac
18031
18032done # for ac_tag
18033
18034
18035{ (exit 0); exit 0; }
18036_ACEOF
18037chmod +x $CONFIG_STATUS
18038ac_clean_files=$ac_clean_files_save
18039
18040test $ac_write_fail = 0 ||
18041  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
18042$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
18043   { (exit 1); exit 1; }; }
18044
18045
18046# configure is writing to config.log, and then calls config.status.
18047# config.status does its own redirection, appending to config.log.
18048# Unfortunately, on DOS this fails, as config.log is still kept open
18049# by configure, so config.status won't be able to write to it; its
18050# output is simply discarded.  So we exec the FD to /dev/null,
18051# effectively closing config.log, so it can be properly (re)opened and
18052# appended to by config.status.  When coming back to configure, we
18053# need to make the FD available again.
18054if test "$no_create" != yes; then
18055  ac_cs_success=:
18056  ac_config_status_args=
18057  test "$silent" = yes &&
18058    ac_config_status_args="$ac_config_status_args --quiet"
18059  exec 5>/dev/null
18060  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18061  exec 5>>auto/config.log
18062  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18063  # would make configure fail if this is the last instruction.
18064  $ac_cs_success || { (exit 1); exit 1; }
18065fi
18066if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18067  { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
18068$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
18069fi
18070
18071
18072