xref: /vim-8.2.3635/src/auto/configure (revision c0880db6)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63.
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='LTLIBOBJS
639LIBOBJS
640DEPEND_CFLAGS_FILTER
641MAKEMO
642MSGFMT
643INSTALL_TOOL_LANGS
644INSTALL_LANGS
645TAGPRG
646HANGULIN_OBJ
647HANGULIN_SRC
648GUI_X_LIBS
649GUITYPE
650GUI_LIB_LOC
651GUI_INC_LOC
652NARROW_PROTO
653MOTIF_LIBNAME
654GNOME_CONFIG
655GNOME_INCLUDEDIR
656GNOME_LIBDIR
657GNOME_LIBS
658GTK_LIBNAME
659GTK_LIBS
660GTK_CFLAGS
661PKG_CONFIG
662GTK12_CONFIG
663GTK_CONFIG
664X_LIB
665X_EXTRA_LIBS
666X_LIBS
667X_PRE_LIBS
668X_CFLAGS
669XMKMF
670xmkmfpath
671SNIFF_OBJ
672SNIFF_SRC
673NETBEANS_OBJ
674NETBEANS_SRC
675WORKSHOP_OBJ
676WORKSHOP_SRC
677RUBY_LIBS
678RUBY_CFLAGS
679RUBY_PRO
680RUBY_OBJ
681RUBY_SRC
682vi_cv_path_ruby
683TCL_LIBS
684TCL_CFLAGS
685TCL_PRO
686TCL_OBJ
687TCL_SRC
688vi_cv_path_tcl
689PYTHON_OBJ
690PYTHON_SRC
691PYTHON_CFLAGS
692PYTHON_GETPATH_CFLAGS
693PYTHON_LIBS
694PYTHON_CONFDIR
695vi_cv_path_python
696PERL_LIBS
697PERL_CFLAGS
698PERL_PRO
699PERL_OBJ
700PERL_SRC
701shrpenv
702vi_cv_perllib
703vi_cv_path_perl
704MZSCHEME_MZC
705MZSCHEME_EXTRA
706MZSCHEME_CFLAGS
707MZSCHEME_LIBS
708MZSCHEME_PRO
709MZSCHEME_OBJ
710MZSCHEME_SRC
711vi_cv_path_mzscheme
712compiledby
713dogvimdiff
714dovimdiff
715line_break
716VIEWNAME
717EXNAME
718VIMNAME
719OS_EXTRA_OBJ
720OS_EXTRA_SRC
721CPP_MM
722STRIP
723AWK
724EGREP
725GREP
726CPP
727OBJEXT
728EXEEXT
729ac_ct_CC
730CPPFLAGS
731LDFLAGS
732CFLAGS
733CC
734SET_MAKE
735target_alias
736host_alias
737build_alias
738LIBS
739ECHO_T
740ECHO_N
741ECHO_C
742DEFS
743mandir
744localedir
745libdir
746psdir
747pdfdir
748dvidir
749htmldir
750infodir
751docdir
752oldincludedir
753includedir
754localstatedir
755sharedstatedir
756sysconfdir
757datadir
758datarootdir
759libexecdir
760sbindir
761bindir
762program_transform_name
763prefix
764exec_prefix
765PACKAGE_BUGREPORT
766PACKAGE_STRING
767PACKAGE_VERSION
768PACKAGE_TARNAME
769PACKAGE_NAME
770PATH_SEPARATOR
771SHELL'
772ac_subst_files=''
773ac_user_opts='
774enable_option_checking
775enable_darwin
776with_mac_arch
777with_local_dir
778with_vim_name
779with_ex_name
780with_view_name
781with_global_runtime
782with_modified_by
783enable_selinux
784with_features
785with_compiledby
786enable_xsmp
787enable_xsmp_interact
788enable_mzschemeinterp
789with_plthome
790enable_perlinterp
791enable_pythoninterp
792with_python_config_dir
793enable_tclinterp
794with_tclsh
795enable_rubyinterp
796enable_cscope
797enable_workshop
798enable_netbeans
799enable_sniff
800enable_multibyte
801enable_hangulinput
802enable_xim
803enable_fontset
804with_x
805enable_gui
806enable_gtk_check
807enable_gtk2_check
808enable_gnome_check
809enable_motif_check
810enable_athena_check
811enable_nextaw_check
812enable_carbon_check
813with_gtk_prefix
814with_gtk_exec_prefix
815enable_gtktest
816with_gnome_includes
817with_gnome_libs
818with_gnome
819with_motif_lib
820with_tlib
821enable_acl
822enable_gpm
823enable_sysmouse
824enable_nls
825'
826      ac_precious_vars='build_alias
827host_alias
828target_alias
829CC
830CFLAGS
831LDFLAGS
832LIBS
833CPPFLAGS
834CPP
835XMKMF'
836
837
838# Initialize some variables set by options.
839ac_init_help=
840ac_init_version=false
841ac_unrecognized_opts=
842ac_unrecognized_sep=
843# The variables have the same names as the options, with
844# dashes changed to underlines.
845cache_file=/dev/null
846exec_prefix=NONE
847no_create=
848no_recursion=
849prefix=NONE
850program_prefix=NONE
851program_suffix=NONE
852program_transform_name=s,x,x,
853silent=
854site=
855srcdir=
856verbose=
857x_includes=NONE
858x_libraries=NONE
859
860# Installation directory options.
861# These are left unexpanded so users can "make install exec_prefix=/foo"
862# and all the variables that are supposed to be based on exec_prefix
863# by default will actually change.
864# Use braces instead of parens because sh, perl, etc. also accept them.
865# (The list follows the same order as the GNU Coding Standards.)
866bindir='${exec_prefix}/bin'
867sbindir='${exec_prefix}/sbin'
868libexecdir='${exec_prefix}/libexec'
869datarootdir='${prefix}/share'
870datadir='${datarootdir}'
871sysconfdir='${prefix}/etc'
872sharedstatedir='${prefix}/com'
873localstatedir='${prefix}/var'
874includedir='${prefix}/include'
875oldincludedir='/usr/include'
876docdir='${datarootdir}/doc/${PACKAGE}'
877infodir='${datarootdir}/info'
878htmldir='${docdir}'
879dvidir='${docdir}'
880pdfdir='${docdir}'
881psdir='${docdir}'
882libdir='${exec_prefix}/lib'
883localedir='${datarootdir}/locale'
884mandir='${datarootdir}/man'
885
886ac_prev=
887ac_dashdash=
888for ac_option
889do
890  # If the previous option needs an argument, assign it.
891  if test -n "$ac_prev"; then
892    eval $ac_prev=\$ac_option
893    ac_prev=
894    continue
895  fi
896
897  case $ac_option in
898  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
899  *)	ac_optarg=yes ;;
900  esac
901
902  # Accept the important Cygnus configure options, so we can diagnose typos.
903
904  case $ac_dashdash$ac_option in
905  --)
906    ac_dashdash=yes ;;
907
908  -bindir | --bindir | --bindi | --bind | --bin | --bi)
909    ac_prev=bindir ;;
910  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911    bindir=$ac_optarg ;;
912
913  -build | --build | --buil | --bui | --bu)
914    ac_prev=build_alias ;;
915  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916    build_alias=$ac_optarg ;;
917
918  -cache-file | --cache-file | --cache-fil | --cache-fi \
919  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920    ac_prev=cache_file ;;
921  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923    cache_file=$ac_optarg ;;
924
925  --config-cache | -C)
926    cache_file=config.cache ;;
927
928  -datadir | --datadir | --datadi | --datad)
929    ac_prev=datadir ;;
930  -datadir=* | --datadir=* | --datadi=* | --datad=*)
931    datadir=$ac_optarg ;;
932
933  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934  | --dataroo | --dataro | --datar)
935    ac_prev=datarootdir ;;
936  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938    datarootdir=$ac_optarg ;;
939
940  -disable-* | --disable-*)
941    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942    # Reject names that are not valid shell variable names.
943    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
945   { (exit 1); exit 1; }; }
946    ac_useropt_orig=$ac_useropt
947    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948    case $ac_user_opts in
949      *"
950"enable_$ac_useropt"
951"*) ;;
952      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953	 ac_unrecognized_sep=', ';;
954    esac
955    eval enable_$ac_useropt=no ;;
956
957  -docdir | --docdir | --docdi | --doc | --do)
958    ac_prev=docdir ;;
959  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960    docdir=$ac_optarg ;;
961
962  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
963    ac_prev=dvidir ;;
964  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965    dvidir=$ac_optarg ;;
966
967  -enable-* | --enable-*)
968    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
969    # Reject names that are not valid shell variable names.
970    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
972   { (exit 1); exit 1; }; }
973    ac_useropt_orig=$ac_useropt
974    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975    case $ac_user_opts in
976      *"
977"enable_$ac_useropt"
978"*) ;;
979      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980	 ac_unrecognized_sep=', ';;
981    esac
982    eval enable_$ac_useropt=\$ac_optarg ;;
983
984  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986  | --exec | --exe | --ex)
987    ac_prev=exec_prefix ;;
988  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990  | --exec=* | --exe=* | --ex=*)
991    exec_prefix=$ac_optarg ;;
992
993  -gas | --gas | --ga | --g)
994    # Obsolete; use --with-gas.
995    with_gas=yes ;;
996
997  -help | --help | --hel | --he | -h)
998    ac_init_help=long ;;
999  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000    ac_init_help=recursive ;;
1001  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002    ac_init_help=short ;;
1003
1004  -host | --host | --hos | --ho)
1005    ac_prev=host_alias ;;
1006  -host=* | --host=* | --hos=* | --ho=*)
1007    host_alias=$ac_optarg ;;
1008
1009  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010    ac_prev=htmldir ;;
1011  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012  | --ht=*)
1013    htmldir=$ac_optarg ;;
1014
1015  -includedir | --includedir | --includedi | --included | --include \
1016  | --includ | --inclu | --incl | --inc)
1017    ac_prev=includedir ;;
1018  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019  | --includ=* | --inclu=* | --incl=* | --inc=*)
1020    includedir=$ac_optarg ;;
1021
1022  -infodir | --infodir | --infodi | --infod | --info | --inf)
1023    ac_prev=infodir ;;
1024  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1025    infodir=$ac_optarg ;;
1026
1027  -libdir | --libdir | --libdi | --libd)
1028    ac_prev=libdir ;;
1029  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1030    libdir=$ac_optarg ;;
1031
1032  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033  | --libexe | --libex | --libe)
1034    ac_prev=libexecdir ;;
1035  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036  | --libexe=* | --libex=* | --libe=*)
1037    libexecdir=$ac_optarg ;;
1038
1039  -localedir | --localedir | --localedi | --localed | --locale)
1040    ac_prev=localedir ;;
1041  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042    localedir=$ac_optarg ;;
1043
1044  -localstatedir | --localstatedir | --localstatedi | --localstated \
1045  | --localstate | --localstat | --localsta | --localst | --locals)
1046    ac_prev=localstatedir ;;
1047  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1048  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1049    localstatedir=$ac_optarg ;;
1050
1051  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052    ac_prev=mandir ;;
1053  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1054    mandir=$ac_optarg ;;
1055
1056  -nfp | --nfp | --nf)
1057    # Obsolete; use --without-fp.
1058    with_fp=no ;;
1059
1060  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1061  | --no-cr | --no-c | -n)
1062    no_create=yes ;;
1063
1064  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1066    no_recursion=yes ;;
1067
1068  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070  | --oldin | --oldi | --old | --ol | --o)
1071    ac_prev=oldincludedir ;;
1072  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1075    oldincludedir=$ac_optarg ;;
1076
1077  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078    ac_prev=prefix ;;
1079  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1080    prefix=$ac_optarg ;;
1081
1082  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083  | --program-pre | --program-pr | --program-p)
1084    ac_prev=program_prefix ;;
1085  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1087    program_prefix=$ac_optarg ;;
1088
1089  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090  | --program-suf | --program-su | --program-s)
1091    ac_prev=program_suffix ;;
1092  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1094    program_suffix=$ac_optarg ;;
1095
1096  -program-transform-name | --program-transform-name \
1097  | --program-transform-nam | --program-transform-na \
1098  | --program-transform-n | --program-transform- \
1099  | --program-transform | --program-transfor \
1100  | --program-transfo | --program-transf \
1101  | --program-trans | --program-tran \
1102  | --progr-tra | --program-tr | --program-t)
1103    ac_prev=program_transform_name ;;
1104  -program-transform-name=* | --program-transform-name=* \
1105  | --program-transform-nam=* | --program-transform-na=* \
1106  | --program-transform-n=* | --program-transform-=* \
1107  | --program-transform=* | --program-transfor=* \
1108  | --program-transfo=* | --program-transf=* \
1109  | --program-trans=* | --program-tran=* \
1110  | --progr-tra=* | --program-tr=* | --program-t=*)
1111    program_transform_name=$ac_optarg ;;
1112
1113  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114    ac_prev=pdfdir ;;
1115  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116    pdfdir=$ac_optarg ;;
1117
1118  -psdir | --psdir | --psdi | --psd | --ps)
1119    ac_prev=psdir ;;
1120  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1121    psdir=$ac_optarg ;;
1122
1123  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124  | -silent | --silent | --silen | --sile | --sil)
1125    silent=yes ;;
1126
1127  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1128    ac_prev=sbindir ;;
1129  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1130  | --sbi=* | --sb=*)
1131    sbindir=$ac_optarg ;;
1132
1133  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1134  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1135  | --sharedst | --shareds | --shared | --share | --shar \
1136  | --sha | --sh)
1137    ac_prev=sharedstatedir ;;
1138  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1139  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1140  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1141  | --sha=* | --sh=*)
1142    sharedstatedir=$ac_optarg ;;
1143
1144  -site | --site | --sit)
1145    ac_prev=site ;;
1146  -site=* | --site=* | --sit=*)
1147    site=$ac_optarg ;;
1148
1149  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1150    ac_prev=srcdir ;;
1151  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1152    srcdir=$ac_optarg ;;
1153
1154  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1155  | --syscon | --sysco | --sysc | --sys | --sy)
1156    ac_prev=sysconfdir ;;
1157  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1158  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1159    sysconfdir=$ac_optarg ;;
1160
1161  -target | --target | --targe | --targ | --tar | --ta | --t)
1162    ac_prev=target_alias ;;
1163  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1164    target_alias=$ac_optarg ;;
1165
1166  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1167    verbose=yes ;;
1168
1169  -version | --version | --versio | --versi | --vers | -V)
1170    ac_init_version=: ;;
1171
1172  -with-* | --with-*)
1173    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1174    # Reject names that are not valid shell variable names.
1175    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1177   { (exit 1); exit 1; }; }
1178    ac_useropt_orig=$ac_useropt
1179    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180    case $ac_user_opts in
1181      *"
1182"with_$ac_useropt"
1183"*) ;;
1184      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185	 ac_unrecognized_sep=', ';;
1186    esac
1187    eval with_$ac_useropt=\$ac_optarg ;;
1188
1189  -without-* | --without-*)
1190    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1191    # Reject names that are not valid shell variable names.
1192    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1194   { (exit 1); exit 1; }; }
1195    ac_useropt_orig=$ac_useropt
1196    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197    case $ac_user_opts in
1198      *"
1199"with_$ac_useropt"
1200"*) ;;
1201      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1202	 ac_unrecognized_sep=', ';;
1203    esac
1204    eval with_$ac_useropt=no ;;
1205
1206  --x)
1207    # Obsolete; use --with-x.
1208    with_x=yes ;;
1209
1210  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1211  | --x-incl | --x-inc | --x-in | --x-i)
1212    ac_prev=x_includes ;;
1213  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1214  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1215    x_includes=$ac_optarg ;;
1216
1217  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1218  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1219    ac_prev=x_libraries ;;
1220  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1221  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1222    x_libraries=$ac_optarg ;;
1223
1224  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1225Try \`$0 --help' for more information." >&2
1226   { (exit 1); exit 1; }; }
1227    ;;
1228
1229  *=*)
1230    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1231    # Reject names that are not valid shell variable names.
1232    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1233      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1234   { (exit 1); exit 1; }; }
1235    eval $ac_envvar=\$ac_optarg
1236    export $ac_envvar ;;
1237
1238  *)
1239    # FIXME: should be removed in autoconf 3.0.
1240    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1241    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1243    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1244    ;;
1245
1246  esac
1247done
1248
1249if test -n "$ac_prev"; then
1250  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1251  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1252   { (exit 1); exit 1; }; }
1253fi
1254
1255if test -n "$ac_unrecognized_opts"; then
1256  case $enable_option_checking in
1257    no) ;;
1258    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1259   { (exit 1); exit 1; }; } ;;
1260    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1261  esac
1262fi
1263
1264# Check all directory arguments for consistency.
1265for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266		datadir sysconfdir sharedstatedir localstatedir includedir \
1267		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268		libdir localedir mandir
1269do
1270  eval ac_val=\$$ac_var
1271  # Remove trailing slashes.
1272  case $ac_val in
1273    */ )
1274      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1275      eval $ac_var=\$ac_val;;
1276  esac
1277  # Be sure to have absolute directory names.
1278  case $ac_val in
1279    [\\/$]* | ?:[\\/]* )  continue;;
1280    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1281  esac
1282  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1283   { (exit 1); exit 1; }; }
1284done
1285
1286# There might be people who depend on the old broken behavior: `$host'
1287# used to hold the argument of --host etc.
1288# FIXME: To remove some day.
1289build=$build_alias
1290host=$host_alias
1291target=$target_alias
1292
1293# FIXME: To remove some day.
1294if test "x$host_alias" != x; then
1295  if test "x$build_alias" = x; then
1296    cross_compiling=maybe
1297    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1298    If a cross compiler is detected then cross compile mode will be used." >&2
1299  elif test "x$build_alias" != "x$host_alias"; then
1300    cross_compiling=yes
1301  fi
1302fi
1303
1304ac_tool_prefix=
1305test -n "$host_alias" && ac_tool_prefix=$host_alias-
1306
1307test "$silent" = yes && exec 6>/dev/null
1308
1309
1310ac_pwd=`pwd` && test -n "$ac_pwd" &&
1311ac_ls_di=`ls -di .` &&
1312ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1313  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1314   { (exit 1); exit 1; }; }
1315test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1316  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1317   { (exit 1); exit 1; }; }
1318
1319
1320# Find the source files, if location was not specified.
1321if test -z "$srcdir"; then
1322  ac_srcdir_defaulted=yes
1323  # Try the directory containing this script, then the parent directory.
1324  ac_confdir=`$as_dirname -- "$as_myself" ||
1325$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326	 X"$as_myself" : 'X\(//\)[^/]' \| \
1327	 X"$as_myself" : 'X\(//\)$' \| \
1328	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329$as_echo X"$as_myself" |
1330    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331	    s//\1/
1332	    q
1333	  }
1334	  /^X\(\/\/\)[^/].*/{
1335	    s//\1/
1336	    q
1337	  }
1338	  /^X\(\/\/\)$/{
1339	    s//\1/
1340	    q
1341	  }
1342	  /^X\(\/\).*/{
1343	    s//\1/
1344	    q
1345	  }
1346	  s/.*/./; q'`
1347  srcdir=$ac_confdir
1348  if test ! -r "$srcdir/$ac_unique_file"; then
1349    srcdir=..
1350  fi
1351else
1352  ac_srcdir_defaulted=no
1353fi
1354if test ! -r "$srcdir/$ac_unique_file"; then
1355  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1357   { (exit 1); exit 1; }; }
1358fi
1359ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1360ac_abs_confdir=`(
1361	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1362   { (exit 1); exit 1; }; }
1363	pwd)`
1364# When building in place, set srcdir=.
1365if test "$ac_abs_confdir" = "$ac_pwd"; then
1366  srcdir=.
1367fi
1368# Remove unnecessary trailing slashes from srcdir.
1369# Double slashes in file names in object file debugging info
1370# mess up M-x gdb in Emacs.
1371case $srcdir in
1372*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1373esac
1374for ac_var in $ac_precious_vars; do
1375  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1376  eval ac_env_${ac_var}_value=\$${ac_var}
1377  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1378  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1379done
1380
1381#
1382# Report the --help message.
1383#
1384if test "$ac_init_help" = "long"; then
1385  # Omit some internal or obsolete options to make the list less imposing.
1386  # This message is too long to be a string in the A/UX 3.1 sh.
1387  cat <<_ACEOF
1388\`configure' configures this package to adapt to many kinds of systems.
1389
1390Usage: $0 [OPTION]... [VAR=VALUE]...
1391
1392To assign environment variables (e.g., CC, CFLAGS...), specify them as
1393VAR=VALUE.  See below for descriptions of some of the useful variables.
1394
1395Defaults for the options are specified in brackets.
1396
1397Configuration:
1398  -h, --help              display this help and exit
1399      --help=short        display options specific to this package
1400      --help=recursive    display the short help of all the included packages
1401  -V, --version           display version information and exit
1402  -q, --quiet, --silent   do not print \`checking...' messages
1403      --cache-file=FILE   cache test results in FILE [disabled]
1404  -C, --config-cache      alias for \`--cache-file=config.cache'
1405  -n, --no-create         do not create output files
1406      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1407
1408Installation directories:
1409  --prefix=PREFIX         install architecture-independent files in PREFIX
1410                          [$ac_default_prefix]
1411  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1412                          [PREFIX]
1413
1414By default, \`make install' will install all the files in
1415\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1416an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1417for instance \`--prefix=\$HOME'.
1418
1419For better control, use the options below.
1420
1421Fine tuning of the installation directories:
1422  --bindir=DIR            user executables [EPREFIX/bin]
1423  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1424  --libexecdir=DIR        program executables [EPREFIX/libexec]
1425  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1426  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1427  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1428  --libdir=DIR            object code libraries [EPREFIX/lib]
1429  --includedir=DIR        C header files [PREFIX/include]
1430  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1431  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1432  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1433  --infodir=DIR           info documentation [DATAROOTDIR/info]
1434  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1435  --mandir=DIR            man documentation [DATAROOTDIR/man]
1436  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1437  --htmldir=DIR           html documentation [DOCDIR]
1438  --dvidir=DIR            dvi documentation [DOCDIR]
1439  --pdfdir=DIR            pdf documentation [DOCDIR]
1440  --psdir=DIR             ps documentation [DOCDIR]
1441_ACEOF
1442
1443  cat <<\_ACEOF
1444
1445X features:
1446  --x-includes=DIR    X include files are in DIR
1447  --x-libraries=DIR   X library files are in DIR
1448_ACEOF
1449fi
1450
1451if test -n "$ac_init_help"; then
1452
1453  cat <<\_ACEOF
1454
1455Optional Features:
1456  --disable-option-checking  ignore unrecognized --enable/--with options
1457  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1458  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1459  --disable-darwin        Disable Darwin (Mac OS X) support.
1460  --disable-selinux	  Don't check for SELinux support.
1461  --disable-xsmp          Disable XSMP session management
1462  --disable-xsmp-interact Disable XSMP interaction
1463  --enable-mzschemeinterp   Include MzScheme interpreter.
1464  --enable-perlinterp     Include Perl interpreter.
1465  --enable-pythoninterp   Include Python interpreter.
1466  --enable-tclinterp      Include Tcl interpreter.
1467  --enable-rubyinterp     Include Ruby interpreter.
1468  --enable-cscope         Include cscope interface.
1469  --enable-workshop       Include Sun Visual Workshop support.
1470  --disable-netbeans      Disable NetBeans integration support.
1471  --enable-sniff          Include Sniff interface.
1472  --enable-multibyte      Include multibyte editing support.
1473  --enable-hangulinput    Include Hangul input support.
1474  --enable-xim            Include XIM input support.
1475  --enable-fontset        Include X fontset output support.
1476  --enable-gui=OPTS     X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon
1477  --enable-gtk-check      If auto-select GUI, check for GTK default=yes
1478  --enable-gtk2-check     If GTK GUI, check for GTK+ 2 default=yes
1479  --enable-gnome-check    If GTK GUI, check for GNOME default=no
1480  --enable-motif-check    If auto-select GUI, check for Motif default=yes
1481  --enable-athena-check   If auto-select GUI, check for Athena default=yes
1482  --enable-nextaw-check   If auto-select GUI, check for neXtaw default=yes
1483  --enable-carbon-check   If auto-select GUI, check for Carbon default=yes
1484  --disable-gtktest       Do not try to compile and run a test GTK program
1485  --disable-acl           Don't check for ACL support.
1486  --disable-gpm           Don't use gpm (Linux mouse daemon).
1487  --disable-sysmouse    Don't use sysmouse (mouse in *BSD console).
1488  --disable-nls           Don't support NLS (gettext()).
1489
1490Optional Packages:
1491  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1492  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1493  --with-mac-arch=ARCH    current, intel, ppc or both
1494  --with-local-dir=PATH   search PATH instead of /usr/local for local libraries.
1495  --without-local-dir     do not search /usr/local for local libraries.
1496  --with-vim-name=NAME    what to call the Vim executable
1497  --with-ex-name=NAME     what to call the Ex executable
1498  --with-view-name=NAME   what to call the View executable
1499  --with-global-runtime=DIR    global runtime directory in 'runtimepath'
1500  --with-modified-by=NAME       name of who modified a release version
1501  --with-features=TYPE    tiny, small, normal, big or huge (default: normal)
1502  --with-compiledby=NAME  name to show in :version message
1503  --with-plthome=PLTHOME   Use PLTHOME.
1504  --with-python-config-dir=PATH  Python's config directory
1505  --with-tclsh=PATH       which tclsh to use (default: tclsh8.0)
1506  --with-x                use the X Window System
1507  --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1508  --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1509  --with-gnome-includes=DIR Specify location of GNOME headers
1510  --with-gnome-libs=DIR   Specify location of GNOME libs
1511  --with-gnome            Specify prefix for GNOME files
1512  --with-motif-lib=STRING   Library for Motif
1513  --with-tlib=library     terminal library to be used
1514
1515Some influential environment variables:
1516  CC          C compiler command
1517  CFLAGS      C compiler flags
1518  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1519              nonstandard directory <lib dir>
1520  LIBS        libraries to pass to the linker, e.g. -l<library>
1521  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1522              you have headers in a nonstandard directory <include dir>
1523  CPP         C preprocessor
1524  XMKMF       Path to xmkmf, Makefile generator for X Window System
1525
1526Use these variables to override the choices made by `configure' or to help
1527it to find libraries and programs with nonstandard names/locations.
1528
1529_ACEOF
1530ac_status=$?
1531fi
1532
1533if test "$ac_init_help" = "recursive"; then
1534  # If there are subdirs, report their specific --help.
1535  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1536    test -d "$ac_dir" ||
1537      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1538      continue
1539    ac_builddir=.
1540
1541case "$ac_dir" in
1542.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543*)
1544  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1545  # A ".." for each directory in $ac_dir_suffix.
1546  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1547  case $ac_top_builddir_sub in
1548  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1550  esac ;;
1551esac
1552ac_abs_top_builddir=$ac_pwd
1553ac_abs_builddir=$ac_pwd$ac_dir_suffix
1554# for backward compatibility:
1555ac_top_builddir=$ac_top_build_prefix
1556
1557case $srcdir in
1558  .)  # We are building in place.
1559    ac_srcdir=.
1560    ac_top_srcdir=$ac_top_builddir_sub
1561    ac_abs_top_srcdir=$ac_pwd ;;
1562  [\\/]* | ?:[\\/]* )  # Absolute name.
1563    ac_srcdir=$srcdir$ac_dir_suffix;
1564    ac_top_srcdir=$srcdir
1565    ac_abs_top_srcdir=$srcdir ;;
1566  *) # Relative name.
1567    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1568    ac_top_srcdir=$ac_top_build_prefix$srcdir
1569    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1570esac
1571ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1572
1573    cd "$ac_dir" || { ac_status=$?; continue; }
1574    # Check for guested configure.
1575    if test -f "$ac_srcdir/configure.gnu"; then
1576      echo &&
1577      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1578    elif test -f "$ac_srcdir/configure"; then
1579      echo &&
1580      $SHELL "$ac_srcdir/configure" --help=recursive
1581    else
1582      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1583    fi || ac_status=$?
1584    cd "$ac_pwd" || { ac_status=$?; break; }
1585  done
1586fi
1587
1588test -n "$ac_init_help" && exit $ac_status
1589if $ac_init_version; then
1590  cat <<\_ACEOF
1591configure
1592generated by GNU Autoconf 2.63
1593
1594Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15952002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1596This configure script is free software; the Free Software Foundation
1597gives unlimited permission to copy, distribute and modify it.
1598_ACEOF
1599  exit
1600fi
1601cat >auto/config.log <<_ACEOF
1602This file contains any messages produced by compilers while
1603running configure, to aid debugging if configure makes a mistake.
1604
1605It was created by $as_me, which was
1606generated by GNU Autoconf 2.63.  Invocation command line was
1607
1608  $ $0 $@
1609
1610_ACEOF
1611exec 5>>auto/config.log
1612{
1613cat <<_ASUNAME
1614## --------- ##
1615## Platform. ##
1616## --------- ##
1617
1618hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1619uname -m = `(uname -m) 2>/dev/null || echo unknown`
1620uname -r = `(uname -r) 2>/dev/null || echo unknown`
1621uname -s = `(uname -s) 2>/dev/null || echo unknown`
1622uname -v = `(uname -v) 2>/dev/null || echo unknown`
1623
1624/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1625/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1626
1627/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1628/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1629/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1630/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1631/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1632/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1633/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1634
1635_ASUNAME
1636
1637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638for as_dir in $PATH
1639do
1640  IFS=$as_save_IFS
1641  test -z "$as_dir" && as_dir=.
1642  $as_echo "PATH: $as_dir"
1643done
1644IFS=$as_save_IFS
1645
1646} >&5
1647
1648cat >&5 <<_ACEOF
1649
1650
1651## ----------- ##
1652## Core tests. ##
1653## ----------- ##
1654
1655_ACEOF
1656
1657
1658# Keep a trace of the command line.
1659# Strip out --no-create and --no-recursion so they do not pile up.
1660# Strip out --silent because we don't want to record it for future runs.
1661# Also quote any args containing shell meta-characters.
1662# Make two passes to allow for proper duplicate-argument suppression.
1663ac_configure_args=
1664ac_configure_args0=
1665ac_configure_args1=
1666ac_must_keep_next=false
1667for ac_pass in 1 2
1668do
1669  for ac_arg
1670  do
1671    case $ac_arg in
1672    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1673    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1674    | -silent | --silent | --silen | --sile | --sil)
1675      continue ;;
1676    *\'*)
1677      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1678    esac
1679    case $ac_pass in
1680    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1681    2)
1682      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1683      if test $ac_must_keep_next = true; then
1684	ac_must_keep_next=false # Got value, back to normal.
1685      else
1686	case $ac_arg in
1687	  *=* | --config-cache | -C | -disable-* | --disable-* \
1688	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1689	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1690	  | -with-* | --with-* | -without-* | --without-* | --x)
1691	    case "$ac_configure_args0 " in
1692	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1693	    esac
1694	    ;;
1695	  -* ) ac_must_keep_next=true ;;
1696	esac
1697      fi
1698      ac_configure_args="$ac_configure_args '$ac_arg'"
1699      ;;
1700    esac
1701  done
1702done
1703$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1704$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1705
1706# When interrupted or exit'd, cleanup temporary files, and complete
1707# config.log.  We remove comments because anyway the quotes in there
1708# would cause problems or look ugly.
1709# WARNING: Use '\'' to represent an apostrophe within the trap.
1710# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1711trap 'exit_status=$?
1712  # Save into config.log some information that might help in debugging.
1713  {
1714    echo
1715
1716    cat <<\_ASBOX
1717## ---------------- ##
1718## Cache variables. ##
1719## ---------------- ##
1720_ASBOX
1721    echo
1722    # The following way of writing the cache mishandles newlines in values,
1723(
1724  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1725    eval ac_val=\$$ac_var
1726    case $ac_val in #(
1727    *${as_nl}*)
1728      case $ac_var in #(
1729      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1730$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1731      esac
1732      case $ac_var in #(
1733      _ | IFS | as_nl) ;; #(
1734      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1735      *) $as_unset $ac_var ;;
1736      esac ;;
1737    esac
1738  done
1739  (set) 2>&1 |
1740    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1741    *${as_nl}ac_space=\ *)
1742      sed -n \
1743	"s/'\''/'\''\\\\'\'''\''/g;
1744	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1745      ;; #(
1746    *)
1747      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1748      ;;
1749    esac |
1750    sort
1751)
1752    echo
1753
1754    cat <<\_ASBOX
1755## ----------------- ##
1756## Output variables. ##
1757## ----------------- ##
1758_ASBOX
1759    echo
1760    for ac_var in $ac_subst_vars
1761    do
1762      eval ac_val=\$$ac_var
1763      case $ac_val in
1764      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1765      esac
1766      $as_echo "$ac_var='\''$ac_val'\''"
1767    done | sort
1768    echo
1769
1770    if test -n "$ac_subst_files"; then
1771      cat <<\_ASBOX
1772## ------------------- ##
1773## File substitutions. ##
1774## ------------------- ##
1775_ASBOX
1776      echo
1777      for ac_var in $ac_subst_files
1778      do
1779	eval ac_val=\$$ac_var
1780	case $ac_val in
1781	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1782	esac
1783	$as_echo "$ac_var='\''$ac_val'\''"
1784      done | sort
1785      echo
1786    fi
1787
1788    if test -s confdefs.h; then
1789      cat <<\_ASBOX
1790## ----------- ##
1791## confdefs.h. ##
1792## ----------- ##
1793_ASBOX
1794      echo
1795      cat confdefs.h
1796      echo
1797    fi
1798    test "$ac_signal" != 0 &&
1799      $as_echo "$as_me: caught signal $ac_signal"
1800    $as_echo "$as_me: exit $exit_status"
1801  } >&5
1802  rm -f core *.core core.conftest.* &&
1803    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1804    exit $exit_status
1805' 0
1806for ac_signal in 1 2 13 15; do
1807  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1808done
1809ac_signal=0
1810
1811# confdefs.h avoids OS command line length limits that DEFS can exceed.
1812rm -f -r conftest* confdefs.h
1813
1814# Predefined preprocessor variables.
1815
1816cat >>confdefs.h <<_ACEOF
1817#define PACKAGE_NAME "$PACKAGE_NAME"
1818_ACEOF
1819
1820
1821cat >>confdefs.h <<_ACEOF
1822#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1823_ACEOF
1824
1825
1826cat >>confdefs.h <<_ACEOF
1827#define PACKAGE_VERSION "$PACKAGE_VERSION"
1828_ACEOF
1829
1830
1831cat >>confdefs.h <<_ACEOF
1832#define PACKAGE_STRING "$PACKAGE_STRING"
1833_ACEOF
1834
1835
1836cat >>confdefs.h <<_ACEOF
1837#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1838_ACEOF
1839
1840
1841# Let the site file select an alternate cache file if it wants to.
1842# Prefer an explicitly selected file to automatically selected ones.
1843ac_site_file1=NONE
1844ac_site_file2=NONE
1845if test -n "$CONFIG_SITE"; then
1846  ac_site_file1=$CONFIG_SITE
1847elif test "x$prefix" != xNONE; then
1848  ac_site_file1=$prefix/share/config.site
1849  ac_site_file2=$prefix/etc/config.site
1850else
1851  ac_site_file1=$ac_default_prefix/share/config.site
1852  ac_site_file2=$ac_default_prefix/etc/config.site
1853fi
1854for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1855do
1856  test "x$ac_site_file" = xNONE && continue
1857  if test -r "$ac_site_file"; then
1858    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1859$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1860    sed 's/^/| /' "$ac_site_file" >&5
1861    . "$ac_site_file"
1862  fi
1863done
1864
1865if test -r "$cache_file"; then
1866  # Some versions of bash will fail to source /dev/null (special
1867  # files actually), so we avoid doing that.
1868  if test -f "$cache_file"; then
1869    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1870$as_echo "$as_me: loading cache $cache_file" >&6;}
1871    case $cache_file in
1872      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1873      *)                      . "./$cache_file";;
1874    esac
1875  fi
1876else
1877  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1878$as_echo "$as_me: creating cache $cache_file" >&6;}
1879  >$cache_file
1880fi
1881
1882# Check that the precious variables saved in the cache have kept the same
1883# value.
1884ac_cache_corrupted=false
1885for ac_var in $ac_precious_vars; do
1886  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1887  eval ac_new_set=\$ac_env_${ac_var}_set
1888  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1889  eval ac_new_val=\$ac_env_${ac_var}_value
1890  case $ac_old_set,$ac_new_set in
1891    set,)
1892      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1893$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1894      ac_cache_corrupted=: ;;
1895    ,set)
1896      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1897$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1898      ac_cache_corrupted=: ;;
1899    ,);;
1900    *)
1901      if test "x$ac_old_val" != "x$ac_new_val"; then
1902	# differences in whitespace do not lead to failure.
1903	ac_old_val_w=`echo x $ac_old_val`
1904	ac_new_val_w=`echo x $ac_new_val`
1905	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1906	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1907$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1908	  ac_cache_corrupted=:
1909	else
1910	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1911$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1912	  eval $ac_var=\$ac_old_val
1913	fi
1914	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1915$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1916	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1917$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1918      fi;;
1919  esac
1920  # Pass precious variables to config.status.
1921  if test "$ac_new_set" = set; then
1922    case $ac_new_val in
1923    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1924    *) ac_arg=$ac_var=$ac_new_val ;;
1925    esac
1926    case " $ac_configure_args " in
1927      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1928      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1929    esac
1930  fi
1931done
1932if $ac_cache_corrupted; then
1933  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1934$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1935  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1936$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1937  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1938$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1939   { (exit 1); exit 1; }; }
1940fi
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958ac_ext=c
1959ac_cpp='$CPP $CPPFLAGS'
1960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1962ac_compiler_gnu=$ac_cv_c_compiler_gnu
1963
1964
1965ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
1966
1967
1968cat >>confdefs.h <<\_ACEOF
1969#define UNIX 1
1970_ACEOF
1971
1972{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1973$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
1974set x ${MAKE-make}
1975ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1976if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1977  $as_echo_n "(cached) " >&6
1978else
1979  cat >conftest.make <<\_ACEOF
1980SHELL = /bin/sh
1981all:
1982	@echo '@@@%%%=$(MAKE)=@@@%%%'
1983_ACEOF
1984# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1985case `${MAKE-make} -f conftest.make 2>/dev/null` in
1986  *@@@%%%=?*=@@@%%%*)
1987    eval ac_cv_prog_make_${ac_make}_set=yes;;
1988  *)
1989    eval ac_cv_prog_make_${ac_make}_set=no;;
1990esac
1991rm -f conftest.make
1992fi
1993if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1994  { $as_echo "$as_me:$LINENO: result: yes" >&5
1995$as_echo "yes" >&6; }
1996  SET_MAKE=
1997else
1998  { $as_echo "$as_me:$LINENO: result: no" >&5
1999$as_echo "no" >&6; }
2000  SET_MAKE="MAKE=${MAKE-make}"
2001fi
2002
2003
2004ac_ext=c
2005ac_cpp='$CPP $CPPFLAGS'
2006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2008ac_compiler_gnu=$ac_cv_c_compiler_gnu
2009if test -n "$ac_tool_prefix"; then
2010  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2011set dummy ${ac_tool_prefix}gcc; ac_word=$2
2012{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2013$as_echo_n "checking for $ac_word... " >&6; }
2014if test "${ac_cv_prog_CC+set}" = set; then
2015  $as_echo_n "(cached) " >&6
2016else
2017  if test -n "$CC"; then
2018  ac_cv_prog_CC="$CC" # Let the user override the test.
2019else
2020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021for as_dir in $PATH
2022do
2023  IFS=$as_save_IFS
2024  test -z "$as_dir" && as_dir=.
2025  for ac_exec_ext in '' $ac_executable_extensions; do
2026  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2027    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2028    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029    break 2
2030  fi
2031done
2032done
2033IFS=$as_save_IFS
2034
2035fi
2036fi
2037CC=$ac_cv_prog_CC
2038if test -n "$CC"; then
2039  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2040$as_echo "$CC" >&6; }
2041else
2042  { $as_echo "$as_me:$LINENO: result: no" >&5
2043$as_echo "no" >&6; }
2044fi
2045
2046
2047fi
2048if test -z "$ac_cv_prog_CC"; then
2049  ac_ct_CC=$CC
2050  # Extract the first word of "gcc", so it can be a program name with args.
2051set dummy gcc; ac_word=$2
2052{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2053$as_echo_n "checking for $ac_word... " >&6; }
2054if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2055  $as_echo_n "(cached) " >&6
2056else
2057  if test -n "$ac_ct_CC"; then
2058  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2059else
2060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061for as_dir in $PATH
2062do
2063  IFS=$as_save_IFS
2064  test -z "$as_dir" && as_dir=.
2065  for ac_exec_ext in '' $ac_executable_extensions; do
2066  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2067    ac_cv_prog_ac_ct_CC="gcc"
2068    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069    break 2
2070  fi
2071done
2072done
2073IFS=$as_save_IFS
2074
2075fi
2076fi
2077ac_ct_CC=$ac_cv_prog_ac_ct_CC
2078if test -n "$ac_ct_CC"; then
2079  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2080$as_echo "$ac_ct_CC" >&6; }
2081else
2082  { $as_echo "$as_me:$LINENO: result: no" >&5
2083$as_echo "no" >&6; }
2084fi
2085
2086  if test "x$ac_ct_CC" = x; then
2087    CC=""
2088  else
2089    case $cross_compiling:$ac_tool_warned in
2090yes:)
2091{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2092$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&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: using cross tools not prefixed with host triplet" >&5
2292$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2293ac_tool_warned=yes ;;
2294esac
2295    CC=$ac_ct_CC
2296  fi
2297fi
2298
2299fi
2300
2301
2302test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2303$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2304{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2305See \`config.log' for more details." >&5
2306$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2307See \`config.log' for more details." >&2;}
2308   { (exit 1); exit 1; }; }; }
2309
2310# Provide some information about the compiler.
2311$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2312set X $ac_compile
2313ac_compiler=$2
2314{ (ac_try="$ac_compiler --version >&5"
2315case "(($ac_try" in
2316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2317  *) ac_try_echo=$ac_try;;
2318esac
2319eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2320$as_echo "$ac_try_echo") >&5
2321  (eval "$ac_compiler --version >&5") 2>&5
2322  ac_status=$?
2323  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324  (exit $ac_status); }
2325{ (ac_try="$ac_compiler -v >&5"
2326case "(($ac_try" in
2327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2328  *) ac_try_echo=$ac_try;;
2329esac
2330eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2331$as_echo "$ac_try_echo") >&5
2332  (eval "$ac_compiler -v >&5") 2>&5
2333  ac_status=$?
2334  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335  (exit $ac_status); }
2336{ (ac_try="$ac_compiler -V >&5"
2337case "(($ac_try" in
2338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2339  *) ac_try_echo=$ac_try;;
2340esac
2341eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2342$as_echo "$ac_try_echo") >&5
2343  (eval "$ac_compiler -V >&5") 2>&5
2344  ac_status=$?
2345  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346  (exit $ac_status); }
2347
2348cat >conftest.$ac_ext <<_ACEOF
2349/* confdefs.h.  */
2350_ACEOF
2351cat confdefs.h >>conftest.$ac_ext
2352cat >>conftest.$ac_ext <<_ACEOF
2353/* end confdefs.h.  */
2354
2355int
2356main ()
2357{
2358
2359  ;
2360  return 0;
2361}
2362_ACEOF
2363ac_clean_files_save=$ac_clean_files
2364ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2365# Try to create an executable without -o first, disregard a.out.
2366# It will help us diagnose broken compilers, and finding out an intuition
2367# of exeext.
2368{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2369$as_echo_n "checking for C compiler default output file name... " >&6; }
2370ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2371
2372# The possible output files:
2373ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2374
2375ac_rmfiles=
2376for ac_file in $ac_files
2377do
2378  case $ac_file in
2379    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2380    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2381  esac
2382done
2383rm -f $ac_rmfiles
2384
2385if { (ac_try="$ac_link_default"
2386case "(($ac_try" in
2387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388  *) ac_try_echo=$ac_try;;
2389esac
2390eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2391$as_echo "$ac_try_echo") >&5
2392  (eval "$ac_link_default") 2>&5
2393  ac_status=$?
2394  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395  (exit $ac_status); }; then
2396  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2397# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2398# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2399# so that the user can short-circuit this test for compilers unknown to
2400# Autoconf.
2401for ac_file in $ac_files ''
2402do
2403  test -f "$ac_file" || continue
2404  case $ac_file in
2405    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2406	;;
2407    [ab].out )
2408	# We found the default executable, but exeext='' is most
2409	# certainly right.
2410	break;;
2411    *.* )
2412        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2413	then :; else
2414	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2415	fi
2416	# We set ac_cv_exeext here because the later test for it is not
2417	# safe: cross compilers may not add the suffix if given an `-o'
2418	# argument, so we may need to know it at that point already.
2419	# Even if this section looks crufty: it has the advantage of
2420	# actually working.
2421	break;;
2422    * )
2423	break;;
2424  esac
2425done
2426test "$ac_cv_exeext" = no && ac_cv_exeext=
2427
2428else
2429  ac_file=''
2430fi
2431
2432{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2433$as_echo "$ac_file" >&6; }
2434if test -z "$ac_file"; then
2435  $as_echo "$as_me: failed program was:" >&5
2436sed 's/^/| /' conftest.$ac_ext >&5
2437
2438{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
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: in \`$ac_pwd':" >&5
2473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2474{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2475If you meant to cross compile, use \`--host'.
2476See \`config.log' for more details." >&5
2477$as_echo "$as_me: error: cannot run C compiled programs.
2478If you meant to cross compile, use \`--host'.
2479See \`config.log' for more details." >&2;}
2480   { (exit 1); exit 1; }; }; }
2481    fi
2482  fi
2483fi
2484{ $as_echo "$as_me:$LINENO: result: yes" >&5
2485$as_echo "yes" >&6; }
2486
2487rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2488ac_clean_files=$ac_clean_files_save
2489# Check that the compiler produces executables we can run.  If not, either
2490# the compiler is broken, or we cross compile.
2491{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2492$as_echo_n "checking whether we are cross compiling... " >&6; }
2493{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2494$as_echo "$cross_compiling" >&6; }
2495
2496{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2497$as_echo_n "checking for suffix of executables... " >&6; }
2498if { (ac_try="$ac_link"
2499case "(($ac_try" in
2500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501  *) ac_try_echo=$ac_try;;
2502esac
2503eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2504$as_echo "$ac_try_echo") >&5
2505  (eval "$ac_link") 2>&5
2506  ac_status=$?
2507  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508  (exit $ac_status); }; then
2509  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2510# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2511# work properly (i.e., refer to `conftest.exe'), while it won't with
2512# `rm'.
2513for ac_file in conftest.exe conftest conftest.*; do
2514  test -f "$ac_file" || continue
2515  case $ac_file in
2516    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2517    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2518	  break;;
2519    * ) break;;
2520  esac
2521done
2522else
2523  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2524$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2525{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2526See \`config.log' for more details." >&5
2527$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2528See \`config.log' for more details." >&2;}
2529   { (exit 1); exit 1; }; }; }
2530fi
2531
2532rm -f conftest$ac_cv_exeext
2533{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2534$as_echo "$ac_cv_exeext" >&6; }
2535
2536rm -f conftest.$ac_ext
2537EXEEXT=$ac_cv_exeext
2538ac_exeext=$EXEEXT
2539{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2540$as_echo_n "checking for suffix of object files... " >&6; }
2541if test "${ac_cv_objext+set}" = set; then
2542  $as_echo_n "(cached) " >&6
2543else
2544  cat >conftest.$ac_ext <<_ACEOF
2545/* confdefs.h.  */
2546_ACEOF
2547cat confdefs.h >>conftest.$ac_ext
2548cat >>conftest.$ac_ext <<_ACEOF
2549/* end confdefs.h.  */
2550
2551int
2552main ()
2553{
2554
2555  ;
2556  return 0;
2557}
2558_ACEOF
2559rm -f conftest.o conftest.obj
2560if { (ac_try="$ac_compile"
2561case "(($ac_try" in
2562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563  *) ac_try_echo=$ac_try;;
2564esac
2565eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2566$as_echo "$ac_try_echo") >&5
2567  (eval "$ac_compile") 2>&5
2568  ac_status=$?
2569  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570  (exit $ac_status); }; then
2571  for ac_file in conftest.o conftest.obj conftest.*; do
2572  test -f "$ac_file" || continue;
2573  case $ac_file in
2574    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2575    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2576       break;;
2577  esac
2578done
2579else
2580  $as_echo "$as_me: failed program was:" >&5
2581sed 's/^/| /' conftest.$ac_ext >&5
2582
2583{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2585{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2586See \`config.log' for more details." >&5
2587$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2588See \`config.log' for more details." >&2;}
2589   { (exit 1); exit 1; }; }; }
2590fi
2591
2592rm -f conftest.$ac_cv_objext conftest.$ac_ext
2593fi
2594{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2595$as_echo "$ac_cv_objext" >&6; }
2596OBJEXT=$ac_cv_objext
2597ac_objext=$OBJEXT
2598{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2599$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2600if test "${ac_cv_c_compiler_gnu+set}" = set; then
2601  $as_echo_n "(cached) " >&6
2602else
2603  cat >conftest.$ac_ext <<_ACEOF
2604/* confdefs.h.  */
2605_ACEOF
2606cat confdefs.h >>conftest.$ac_ext
2607cat >>conftest.$ac_ext <<_ACEOF
2608/* end confdefs.h.  */
2609
2610int
2611main ()
2612{
2613#ifndef __GNUC__
2614       choke me
2615#endif
2616
2617  ;
2618  return 0;
2619}
2620_ACEOF
2621rm -f conftest.$ac_objext
2622if { (ac_try="$ac_compile"
2623case "(($ac_try" in
2624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625  *) ac_try_echo=$ac_try;;
2626esac
2627eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2628$as_echo "$ac_try_echo") >&5
2629  (eval "$ac_compile") 2>conftest.er1
2630  ac_status=$?
2631  grep -v '^ *+' conftest.er1 >conftest.err
2632  rm -f conftest.er1
2633  cat conftest.err >&5
2634  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635  (exit $ac_status); } && {
2636	 test -z "$ac_c_werror_flag" ||
2637	 test ! -s conftest.err
2638       } && test -s conftest.$ac_objext; then
2639  ac_compiler_gnu=yes
2640else
2641  $as_echo "$as_me: failed program was:" >&5
2642sed 's/^/| /' conftest.$ac_ext >&5
2643
2644	ac_compiler_gnu=no
2645fi
2646
2647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2648ac_cv_c_compiler_gnu=$ac_compiler_gnu
2649
2650fi
2651{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2652$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2653if test $ac_compiler_gnu = yes; then
2654  GCC=yes
2655else
2656  GCC=
2657fi
2658ac_test_CFLAGS=${CFLAGS+set}
2659ac_save_CFLAGS=$CFLAGS
2660{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2661$as_echo_n "checking whether $CC accepts -g... " >&6; }
2662if test "${ac_cv_prog_cc_g+set}" = set; then
2663  $as_echo_n "(cached) " >&6
2664else
2665  ac_save_c_werror_flag=$ac_c_werror_flag
2666   ac_c_werror_flag=yes
2667   ac_cv_prog_cc_g=no
2668   CFLAGS="-g"
2669   cat >conftest.$ac_ext <<_ACEOF
2670/* confdefs.h.  */
2671_ACEOF
2672cat confdefs.h >>conftest.$ac_ext
2673cat >>conftest.$ac_ext <<_ACEOF
2674/* end confdefs.h.  */
2675
2676int
2677main ()
2678{
2679
2680  ;
2681  return 0;
2682}
2683_ACEOF
2684rm -f conftest.$ac_objext
2685if { (ac_try="$ac_compile"
2686case "(($ac_try" in
2687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688  *) ac_try_echo=$ac_try;;
2689esac
2690eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2691$as_echo "$ac_try_echo") >&5
2692  (eval "$ac_compile") 2>conftest.er1
2693  ac_status=$?
2694  grep -v '^ *+' conftest.er1 >conftest.err
2695  rm -f conftest.er1
2696  cat conftest.err >&5
2697  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698  (exit $ac_status); } && {
2699	 test -z "$ac_c_werror_flag" ||
2700	 test ! -s conftest.err
2701       } && test -s conftest.$ac_objext; then
2702  ac_cv_prog_cc_g=yes
2703else
2704  $as_echo "$as_me: failed program was:" >&5
2705sed 's/^/| /' conftest.$ac_ext >&5
2706
2707	CFLAGS=""
2708      cat >conftest.$ac_ext <<_ACEOF
2709/* confdefs.h.  */
2710_ACEOF
2711cat confdefs.h >>conftest.$ac_ext
2712cat >>conftest.$ac_ext <<_ACEOF
2713/* end confdefs.h.  */
2714
2715int
2716main ()
2717{
2718
2719  ;
2720  return 0;
2721}
2722_ACEOF
2723rm -f conftest.$ac_objext
2724if { (ac_try="$ac_compile"
2725case "(($ac_try" in
2726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727  *) ac_try_echo=$ac_try;;
2728esac
2729eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2730$as_echo "$ac_try_echo") >&5
2731  (eval "$ac_compile") 2>conftest.er1
2732  ac_status=$?
2733  grep -v '^ *+' conftest.er1 >conftest.err
2734  rm -f conftest.er1
2735  cat conftest.err >&5
2736  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737  (exit $ac_status); } && {
2738	 test -z "$ac_c_werror_flag" ||
2739	 test ! -s conftest.err
2740       } && test -s conftest.$ac_objext; then
2741  :
2742else
2743  $as_echo "$as_me: failed program was:" >&5
2744sed 's/^/| /' conftest.$ac_ext >&5
2745
2746	ac_c_werror_flag=$ac_save_c_werror_flag
2747	 CFLAGS="-g"
2748	 cat >conftest.$ac_ext <<_ACEOF
2749/* confdefs.h.  */
2750_ACEOF
2751cat confdefs.h >>conftest.$ac_ext
2752cat >>conftest.$ac_ext <<_ACEOF
2753/* end confdefs.h.  */
2754
2755int
2756main ()
2757{
2758
2759  ;
2760  return 0;
2761}
2762_ACEOF
2763rm -f conftest.$ac_objext
2764if { (ac_try="$ac_compile"
2765case "(($ac_try" in
2766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767  *) ac_try_echo=$ac_try;;
2768esac
2769eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2770$as_echo "$ac_try_echo") >&5
2771  (eval "$ac_compile") 2>conftest.er1
2772  ac_status=$?
2773  grep -v '^ *+' conftest.er1 >conftest.err
2774  rm -f conftest.er1
2775  cat conftest.err >&5
2776  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777  (exit $ac_status); } && {
2778	 test -z "$ac_c_werror_flag" ||
2779	 test ! -s conftest.err
2780       } && test -s conftest.$ac_objext; then
2781  ac_cv_prog_cc_g=yes
2782else
2783  $as_echo "$as_me: failed program was:" >&5
2784sed 's/^/| /' conftest.$ac_ext >&5
2785
2786
2787fi
2788
2789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2790fi
2791
2792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2793fi
2794
2795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2796   ac_c_werror_flag=$ac_save_c_werror_flag
2797fi
2798{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2799$as_echo "$ac_cv_prog_cc_g" >&6; }
2800if test "$ac_test_CFLAGS" = set; then
2801  CFLAGS=$ac_save_CFLAGS
2802elif test $ac_cv_prog_cc_g = yes; then
2803  if test "$GCC" = yes; then
2804    CFLAGS="-g -O2"
2805  else
2806    CFLAGS="-g"
2807  fi
2808else
2809  if test "$GCC" = yes; then
2810    CFLAGS="-O2"
2811  else
2812    CFLAGS=
2813  fi
2814fi
2815{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2816$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2817if test "${ac_cv_prog_cc_c89+set}" = set; then
2818  $as_echo_n "(cached) " >&6
2819else
2820  ac_cv_prog_cc_c89=no
2821ac_save_CC=$CC
2822cat >conftest.$ac_ext <<_ACEOF
2823/* confdefs.h.  */
2824_ACEOF
2825cat confdefs.h >>conftest.$ac_ext
2826cat >>conftest.$ac_ext <<_ACEOF
2827/* end confdefs.h.  */
2828#include <stdarg.h>
2829#include <stdio.h>
2830#include <sys/types.h>
2831#include <sys/stat.h>
2832/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2833struct buf { int x; };
2834FILE * (*rcsopen) (struct buf *, struct stat *, int);
2835static char *e (p, i)
2836     char **p;
2837     int i;
2838{
2839  return p[i];
2840}
2841static char *f (char * (*g) (char **, int), char **p, ...)
2842{
2843  char *s;
2844  va_list v;
2845  va_start (v,p);
2846  s = g (p, va_arg (v,int));
2847  va_end (v);
2848  return s;
2849}
2850
2851/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2852   function prototypes and stuff, but not '\xHH' hex character constants.
2853   These don't provoke an error unfortunately, instead are silently treated
2854   as 'x'.  The following induces an error, until -std is added to get
2855   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2856   array size at least.  It's necessary to write '\x00'==0 to get something
2857   that's true only with -std.  */
2858int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2859
2860/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2861   inside strings and character constants.  */
2862#define FOO(x) 'x'
2863int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2864
2865int test (int i, double x);
2866struct s1 {int (*f) (int a);};
2867struct s2 {int (*f) (double a);};
2868int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2869int argc;
2870char **argv;
2871int
2872main ()
2873{
2874return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2875  ;
2876  return 0;
2877}
2878_ACEOF
2879for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2880	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2881do
2882  CC="$ac_save_CC $ac_arg"
2883  rm -f conftest.$ac_objext
2884if { (ac_try="$ac_compile"
2885case "(($ac_try" in
2886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887  *) ac_try_echo=$ac_try;;
2888esac
2889eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2890$as_echo "$ac_try_echo") >&5
2891  (eval "$ac_compile") 2>conftest.er1
2892  ac_status=$?
2893  grep -v '^ *+' conftest.er1 >conftest.err
2894  rm -f conftest.er1
2895  cat conftest.err >&5
2896  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897  (exit $ac_status); } && {
2898	 test -z "$ac_c_werror_flag" ||
2899	 test ! -s conftest.err
2900       } && test -s conftest.$ac_objext; then
2901  ac_cv_prog_cc_c89=$ac_arg
2902else
2903  $as_echo "$as_me: failed program was:" >&5
2904sed 's/^/| /' conftest.$ac_ext >&5
2905
2906
2907fi
2908
2909rm -f core conftest.err conftest.$ac_objext
2910  test "x$ac_cv_prog_cc_c89" != "xno" && break
2911done
2912rm -f conftest.$ac_ext
2913CC=$ac_save_CC
2914
2915fi
2916# AC_CACHE_VAL
2917case "x$ac_cv_prog_cc_c89" in
2918  x)
2919    { $as_echo "$as_me:$LINENO: result: none needed" >&5
2920$as_echo "none needed" >&6; } ;;
2921  xno)
2922    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2923$as_echo "unsupported" >&6; } ;;
2924  *)
2925    CC="$CC $ac_cv_prog_cc_c89"
2926    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2927$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2928esac
2929
2930
2931ac_ext=c
2932ac_cpp='$CPP $CPPFLAGS'
2933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2935ac_compiler_gnu=$ac_cv_c_compiler_gnu
2936	ac_ext=c
2937ac_cpp='$CPP $CPPFLAGS'
2938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2940ac_compiler_gnu=$ac_cv_c_compiler_gnu
2941{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2942$as_echo_n "checking how to run the C preprocessor... " >&6; }
2943# On Suns, sometimes $CPP names a directory.
2944if test -n "$CPP" && test -d "$CPP"; then
2945  CPP=
2946fi
2947if test -z "$CPP"; then
2948  if test "${ac_cv_prog_CPP+set}" = set; then
2949  $as_echo_n "(cached) " >&6
2950else
2951      # Double quotes because CPP needs to be expanded
2952    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2953    do
2954      ac_preproc_ok=false
2955for ac_c_preproc_warn_flag in '' yes
2956do
2957  # Use a header file that comes with gcc, so configuring glibc
2958  # with a fresh cross-compiler works.
2959  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2960  # <limits.h> exists even on freestanding compilers.
2961  # On the NeXT, cc -E runs the code through the compiler's parser,
2962  # not just through cpp. "Syntax error" is here to catch this case.
2963  cat >conftest.$ac_ext <<_ACEOF
2964/* confdefs.h.  */
2965_ACEOF
2966cat confdefs.h >>conftest.$ac_ext
2967cat >>conftest.$ac_ext <<_ACEOF
2968/* end confdefs.h.  */
2969#ifdef __STDC__
2970# include <limits.h>
2971#else
2972# include <assert.h>
2973#endif
2974		     Syntax error
2975_ACEOF
2976if { (ac_try="$ac_cpp conftest.$ac_ext"
2977case "(($ac_try" in
2978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979  *) ac_try_echo=$ac_try;;
2980esac
2981eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2982$as_echo "$ac_try_echo") >&5
2983  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2984  ac_status=$?
2985  grep -v '^ *+' conftest.er1 >conftest.err
2986  rm -f conftest.er1
2987  cat conftest.err >&5
2988  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989  (exit $ac_status); } >/dev/null && {
2990	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2991	 test ! -s conftest.err
2992       }; then
2993  :
2994else
2995  $as_echo "$as_me: failed program was:" >&5
2996sed 's/^/| /' conftest.$ac_ext >&5
2997
2998  # Broken: fails on valid input.
2999continue
3000fi
3001
3002rm -f conftest.err conftest.$ac_ext
3003
3004  # OK, works on sane cases.  Now check whether nonexistent headers
3005  # can be detected and how.
3006  cat >conftest.$ac_ext <<_ACEOF
3007/* confdefs.h.  */
3008_ACEOF
3009cat confdefs.h >>conftest.$ac_ext
3010cat >>conftest.$ac_ext <<_ACEOF
3011/* end confdefs.h.  */
3012#include <ac_nonexistent.h>
3013_ACEOF
3014if { (ac_try="$ac_cpp conftest.$ac_ext"
3015case "(($ac_try" in
3016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017  *) ac_try_echo=$ac_try;;
3018esac
3019eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3020$as_echo "$ac_try_echo") >&5
3021  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3022  ac_status=$?
3023  grep -v '^ *+' conftest.er1 >conftest.err
3024  rm -f conftest.er1
3025  cat conftest.err >&5
3026  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027  (exit $ac_status); } >/dev/null && {
3028	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3029	 test ! -s conftest.err
3030       }; then
3031  # Broken: success on invalid input.
3032continue
3033else
3034  $as_echo "$as_me: failed program was:" >&5
3035sed 's/^/| /' conftest.$ac_ext >&5
3036
3037  # Passes both tests.
3038ac_preproc_ok=:
3039break
3040fi
3041
3042rm -f conftest.err conftest.$ac_ext
3043
3044done
3045# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3046rm -f conftest.err conftest.$ac_ext
3047if $ac_preproc_ok; then
3048  break
3049fi
3050
3051    done
3052    ac_cv_prog_CPP=$CPP
3053
3054fi
3055  CPP=$ac_cv_prog_CPP
3056else
3057  ac_cv_prog_CPP=$CPP
3058fi
3059{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3060$as_echo "$CPP" >&6; }
3061ac_preproc_ok=false
3062for ac_c_preproc_warn_flag in '' yes
3063do
3064  # Use a header file that comes with gcc, so configuring glibc
3065  # with a fresh cross-compiler works.
3066  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3067  # <limits.h> exists even on freestanding compilers.
3068  # On the NeXT, cc -E runs the code through the compiler's parser,
3069  # not just through cpp. "Syntax error" is here to catch this case.
3070  cat >conftest.$ac_ext <<_ACEOF
3071/* confdefs.h.  */
3072_ACEOF
3073cat confdefs.h >>conftest.$ac_ext
3074cat >>conftest.$ac_ext <<_ACEOF
3075/* end confdefs.h.  */
3076#ifdef __STDC__
3077# include <limits.h>
3078#else
3079# include <assert.h>
3080#endif
3081		     Syntax error
3082_ACEOF
3083if { (ac_try="$ac_cpp conftest.$ac_ext"
3084case "(($ac_try" in
3085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086  *) ac_try_echo=$ac_try;;
3087esac
3088eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3089$as_echo "$ac_try_echo") >&5
3090  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3091  ac_status=$?
3092  grep -v '^ *+' conftest.er1 >conftest.err
3093  rm -f conftest.er1
3094  cat conftest.err >&5
3095  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096  (exit $ac_status); } >/dev/null && {
3097	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3098	 test ! -s conftest.err
3099       }; then
3100  :
3101else
3102  $as_echo "$as_me: failed program was:" >&5
3103sed 's/^/| /' conftest.$ac_ext >&5
3104
3105  # Broken: fails on valid input.
3106continue
3107fi
3108
3109rm -f conftest.err conftest.$ac_ext
3110
3111  # OK, works on sane cases.  Now check whether nonexistent headers
3112  # can be detected and how.
3113  cat >conftest.$ac_ext <<_ACEOF
3114/* confdefs.h.  */
3115_ACEOF
3116cat confdefs.h >>conftest.$ac_ext
3117cat >>conftest.$ac_ext <<_ACEOF
3118/* end confdefs.h.  */
3119#include <ac_nonexistent.h>
3120_ACEOF
3121if { (ac_try="$ac_cpp conftest.$ac_ext"
3122case "(($ac_try" in
3123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124  *) ac_try_echo=$ac_try;;
3125esac
3126eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3127$as_echo "$ac_try_echo") >&5
3128  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3129  ac_status=$?
3130  grep -v '^ *+' conftest.er1 >conftest.err
3131  rm -f conftest.er1
3132  cat conftest.err >&5
3133  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134  (exit $ac_status); } >/dev/null && {
3135	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3136	 test ! -s conftest.err
3137       }; then
3138  # Broken: success on invalid input.
3139continue
3140else
3141  $as_echo "$as_me: failed program was:" >&5
3142sed 's/^/| /' conftest.$ac_ext >&5
3143
3144  # Passes both tests.
3145ac_preproc_ok=:
3146break
3147fi
3148
3149rm -f conftest.err conftest.$ac_ext
3150
3151done
3152# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3153rm -f conftest.err conftest.$ac_ext
3154if $ac_preproc_ok; then
3155  :
3156else
3157  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3158$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3159{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3160See \`config.log' for more details." >&5
3161$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3162See \`config.log' for more details." >&2;}
3163   { (exit 1); exit 1; }; }; }
3164fi
3165
3166ac_ext=c
3167ac_cpp='$CPP $CPPFLAGS'
3168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170ac_compiler_gnu=$ac_cv_c_compiler_gnu
3171
3172
3173{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3174$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3175if test "${ac_cv_path_GREP+set}" = set; then
3176  $as_echo_n "(cached) " >&6
3177else
3178  if test -z "$GREP"; then
3179  ac_path_GREP_found=false
3180  # Loop through the user's path and test for each of PROGNAME-LIST
3181  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3183do
3184  IFS=$as_save_IFS
3185  test -z "$as_dir" && as_dir=.
3186  for ac_prog in grep ggrep; do
3187    for ac_exec_ext in '' $ac_executable_extensions; do
3188      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3189      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3190# Check for GNU ac_path_GREP and select it if it is found.
3191  # Check for GNU $ac_path_GREP
3192case `"$ac_path_GREP" --version 2>&1` in
3193*GNU*)
3194  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3195*)
3196  ac_count=0
3197  $as_echo_n 0123456789 >"conftest.in"
3198  while :
3199  do
3200    cat "conftest.in" "conftest.in" >"conftest.tmp"
3201    mv "conftest.tmp" "conftest.in"
3202    cp "conftest.in" "conftest.nl"
3203    $as_echo 'GREP' >> "conftest.nl"
3204    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3205    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3206    ac_count=`expr $ac_count + 1`
3207    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3208      # Best one so far, save it but keep looking for a better one
3209      ac_cv_path_GREP="$ac_path_GREP"
3210      ac_path_GREP_max=$ac_count
3211    fi
3212    # 10*(2^10) chars as input seems more than enough
3213    test $ac_count -gt 10 && break
3214  done
3215  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3216esac
3217
3218      $ac_path_GREP_found && break 3
3219    done
3220  done
3221done
3222IFS=$as_save_IFS
3223  if test -z "$ac_cv_path_GREP"; then
3224    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3225$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3226   { (exit 1); exit 1; }; }
3227  fi
3228else
3229  ac_cv_path_GREP=$GREP
3230fi
3231
3232fi
3233{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3234$as_echo "$ac_cv_path_GREP" >&6; }
3235 GREP="$ac_cv_path_GREP"
3236
3237
3238{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3239$as_echo_n "checking for egrep... " >&6; }
3240if test "${ac_cv_path_EGREP+set}" = set; then
3241  $as_echo_n "(cached) " >&6
3242else
3243  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3244   then ac_cv_path_EGREP="$GREP -E"
3245   else
3246     if test -z "$EGREP"; then
3247  ac_path_EGREP_found=false
3248  # Loop through the user's path and test for each of PROGNAME-LIST
3249  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3251do
3252  IFS=$as_save_IFS
3253  test -z "$as_dir" && as_dir=.
3254  for ac_prog in egrep; do
3255    for ac_exec_ext in '' $ac_executable_extensions; do
3256      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3257      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3258# Check for GNU ac_path_EGREP and select it if it is found.
3259  # Check for GNU $ac_path_EGREP
3260case `"$ac_path_EGREP" --version 2>&1` in
3261*GNU*)
3262  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3263*)
3264  ac_count=0
3265  $as_echo_n 0123456789 >"conftest.in"
3266  while :
3267  do
3268    cat "conftest.in" "conftest.in" >"conftest.tmp"
3269    mv "conftest.tmp" "conftest.in"
3270    cp "conftest.in" "conftest.nl"
3271    $as_echo 'EGREP' >> "conftest.nl"
3272    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3273    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3274    ac_count=`expr $ac_count + 1`
3275    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3276      # Best one so far, save it but keep looking for a better one
3277      ac_cv_path_EGREP="$ac_path_EGREP"
3278      ac_path_EGREP_max=$ac_count
3279    fi
3280    # 10*(2^10) chars as input seems more than enough
3281    test $ac_count -gt 10 && break
3282  done
3283  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3284esac
3285
3286      $ac_path_EGREP_found && break 3
3287    done
3288  done
3289done
3290IFS=$as_save_IFS
3291  if test -z "$ac_cv_path_EGREP"; then
3292    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3293$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3294   { (exit 1); exit 1; }; }
3295  fi
3296else
3297  ac_cv_path_EGREP=$EGREP
3298fi
3299
3300   fi
3301fi
3302{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3303$as_echo "$ac_cv_path_EGREP" >&6; }
3304 EGREP="$ac_cv_path_EGREP"
3305
3306
3307cat >conftest.$ac_ext <<_ACEOF
3308/* confdefs.h.  */
3309_ACEOF
3310cat confdefs.h >>conftest.$ac_ext
3311cat >>conftest.$ac_ext <<_ACEOF
3312/* end confdefs.h.  */
3313
3314_ACEOF
3315rm -f conftest*
3316 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
3317$as_echo_n "checking for library containing strerror... " >&6; }
3318if test "${ac_cv_search_strerror+set}" = set; then
3319  $as_echo_n "(cached) " >&6
3320else
3321  ac_func_search_save_LIBS=$LIBS
3322cat >conftest.$ac_ext <<_ACEOF
3323/* confdefs.h.  */
3324_ACEOF
3325cat confdefs.h >>conftest.$ac_ext
3326cat >>conftest.$ac_ext <<_ACEOF
3327/* end confdefs.h.  */
3328
3329/* Override any GCC internal prototype to avoid an error.
3330   Use char because int might match the return type of a GCC
3331   builtin and then its argument prototype would still apply.  */
3332#ifdef __cplusplus
3333extern "C"
3334#endif
3335char strerror ();
3336int
3337main ()
3338{
3339return strerror ();
3340  ;
3341  return 0;
3342}
3343_ACEOF
3344for ac_lib in '' cposix; do
3345  if test -z "$ac_lib"; then
3346    ac_res="none required"
3347  else
3348    ac_res=-l$ac_lib
3349    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3350  fi
3351  rm -f conftest.$ac_objext conftest$ac_exeext
3352if { (ac_try="$ac_link"
3353case "(($ac_try" in
3354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355  *) ac_try_echo=$ac_try;;
3356esac
3357eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3358$as_echo "$ac_try_echo") >&5
3359  (eval "$ac_link") 2>conftest.er1
3360  ac_status=$?
3361  grep -v '^ *+' conftest.er1 >conftest.err
3362  rm -f conftest.er1
3363  cat conftest.err >&5
3364  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365  (exit $ac_status); } && {
3366	 test -z "$ac_c_werror_flag" ||
3367	 test ! -s conftest.err
3368       } && test -s conftest$ac_exeext && {
3369	 test "$cross_compiling" = yes ||
3370	 $as_test_x conftest$ac_exeext
3371       }; then
3372  ac_cv_search_strerror=$ac_res
3373else
3374  $as_echo "$as_me: failed program was:" >&5
3375sed 's/^/| /' conftest.$ac_ext >&5
3376
3377
3378fi
3379
3380rm -rf conftest.dSYM
3381rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3382      conftest$ac_exeext
3383  if test "${ac_cv_search_strerror+set}" = set; then
3384  break
3385fi
3386done
3387if test "${ac_cv_search_strerror+set}" = set; then
3388  :
3389else
3390  ac_cv_search_strerror=no
3391fi
3392rm conftest.$ac_ext
3393LIBS=$ac_func_search_save_LIBS
3394fi
3395{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3396$as_echo "$ac_cv_search_strerror" >&6; }
3397ac_res=$ac_cv_search_strerror
3398if test "$ac_res" != no; then
3399  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3400
3401fi
3402	for ac_prog in gawk mawk nawk awk
3403do
3404  # Extract the first word of "$ac_prog", so it can be a program name with args.
3405set dummy $ac_prog; ac_word=$2
3406{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3407$as_echo_n "checking for $ac_word... " >&6; }
3408if test "${ac_cv_prog_AWK+set}" = set; then
3409  $as_echo_n "(cached) " >&6
3410else
3411  if test -n "$AWK"; then
3412  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3413else
3414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415for as_dir in $PATH
3416do
3417  IFS=$as_save_IFS
3418  test -z "$as_dir" && as_dir=.
3419  for ac_exec_ext in '' $ac_executable_extensions; do
3420  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3421    ac_cv_prog_AWK="$ac_prog"
3422    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3423    break 2
3424  fi
3425done
3426done
3427IFS=$as_save_IFS
3428
3429fi
3430fi
3431AWK=$ac_cv_prog_AWK
3432if test -n "$AWK"; then
3433  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3434$as_echo "$AWK" >&6; }
3435else
3436  { $as_echo "$as_me:$LINENO: result: no" >&5
3437$as_echo "no" >&6; }
3438fi
3439
3440
3441  test -n "$AWK" && break
3442done
3443
3444# Extract the first word of "strip", so it can be a program name with args.
3445set dummy strip; ac_word=$2
3446{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3447$as_echo_n "checking for $ac_word... " >&6; }
3448if test "${ac_cv_prog_STRIP+set}" = set; then
3449  $as_echo_n "(cached) " >&6
3450else
3451  if test -n "$STRIP"; then
3452  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3453else
3454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3455for as_dir in $PATH
3456do
3457  IFS=$as_save_IFS
3458  test -z "$as_dir" && as_dir=.
3459  for ac_exec_ext in '' $ac_executable_extensions; do
3460  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3461    ac_cv_prog_STRIP="strip"
3462    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3463    break 2
3464  fi
3465done
3466done
3467IFS=$as_save_IFS
3468
3469  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3470fi
3471fi
3472STRIP=$ac_cv_prog_STRIP
3473if test -n "$STRIP"; then
3474  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3475$as_echo "$STRIP" >&6; }
3476else
3477  { $as_echo "$as_me:$LINENO: result: no" >&5
3478$as_echo "no" >&6; }
3479fi
3480
3481
3482
3483
3484
3485{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3486$as_echo_n "checking for ANSI C header files... " >&6; }
3487if test "${ac_cv_header_stdc+set}" = set; then
3488  $as_echo_n "(cached) " >&6
3489else
3490  cat >conftest.$ac_ext <<_ACEOF
3491/* confdefs.h.  */
3492_ACEOF
3493cat confdefs.h >>conftest.$ac_ext
3494cat >>conftest.$ac_ext <<_ACEOF
3495/* end confdefs.h.  */
3496#include <stdlib.h>
3497#include <stdarg.h>
3498#include <string.h>
3499#include <float.h>
3500
3501int
3502main ()
3503{
3504
3505  ;
3506  return 0;
3507}
3508_ACEOF
3509rm -f conftest.$ac_objext
3510if { (ac_try="$ac_compile"
3511case "(($ac_try" in
3512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513  *) ac_try_echo=$ac_try;;
3514esac
3515eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3516$as_echo "$ac_try_echo") >&5
3517  (eval "$ac_compile") 2>conftest.er1
3518  ac_status=$?
3519  grep -v '^ *+' conftest.er1 >conftest.err
3520  rm -f conftest.er1
3521  cat conftest.err >&5
3522  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523  (exit $ac_status); } && {
3524	 test -z "$ac_c_werror_flag" ||
3525	 test ! -s conftest.err
3526       } && test -s conftest.$ac_objext; then
3527  ac_cv_header_stdc=yes
3528else
3529  $as_echo "$as_me: failed program was:" >&5
3530sed 's/^/| /' conftest.$ac_ext >&5
3531
3532	ac_cv_header_stdc=no
3533fi
3534
3535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3536
3537if test $ac_cv_header_stdc = yes; then
3538  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3539  cat >conftest.$ac_ext <<_ACEOF
3540/* confdefs.h.  */
3541_ACEOF
3542cat confdefs.h >>conftest.$ac_ext
3543cat >>conftest.$ac_ext <<_ACEOF
3544/* end confdefs.h.  */
3545#include <string.h>
3546
3547_ACEOF
3548if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3549  $EGREP "memchr" >/dev/null 2>&1; then
3550  :
3551else
3552  ac_cv_header_stdc=no
3553fi
3554rm -f conftest*
3555
3556fi
3557
3558if test $ac_cv_header_stdc = yes; then
3559  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3560  cat >conftest.$ac_ext <<_ACEOF
3561/* confdefs.h.  */
3562_ACEOF
3563cat confdefs.h >>conftest.$ac_ext
3564cat >>conftest.$ac_ext <<_ACEOF
3565/* end confdefs.h.  */
3566#include <stdlib.h>
3567
3568_ACEOF
3569if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3570  $EGREP "free" >/dev/null 2>&1; then
3571  :
3572else
3573  ac_cv_header_stdc=no
3574fi
3575rm -f conftest*
3576
3577fi
3578
3579if test $ac_cv_header_stdc = yes; then
3580  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3581  if test "$cross_compiling" = yes; then
3582  :
3583else
3584  cat >conftest.$ac_ext <<_ACEOF
3585/* confdefs.h.  */
3586_ACEOF
3587cat confdefs.h >>conftest.$ac_ext
3588cat >>conftest.$ac_ext <<_ACEOF
3589/* end confdefs.h.  */
3590#include <ctype.h>
3591#include <stdlib.h>
3592#if ((' ' & 0x0FF) == 0x020)
3593# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3594# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3595#else
3596# define ISLOWER(c) \
3597		   (('a' <= (c) && (c) <= 'i') \
3598		     || ('j' <= (c) && (c) <= 'r') \
3599		     || ('s' <= (c) && (c) <= 'z'))
3600# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3601#endif
3602
3603#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3604int
3605main ()
3606{
3607  int i;
3608  for (i = 0; i < 256; i++)
3609    if (XOR (islower (i), ISLOWER (i))
3610	|| toupper (i) != TOUPPER (i))
3611      return 2;
3612  return 0;
3613}
3614_ACEOF
3615rm -f conftest$ac_exeext
3616if { (ac_try="$ac_link"
3617case "(($ac_try" in
3618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3619  *) ac_try_echo=$ac_try;;
3620esac
3621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3622$as_echo "$ac_try_echo") >&5
3623  (eval "$ac_link") 2>&5
3624  ac_status=$?
3625  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3627  { (case "(($ac_try" in
3628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629  *) ac_try_echo=$ac_try;;
3630esac
3631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3632$as_echo "$ac_try_echo") >&5
3633  (eval "$ac_try") 2>&5
3634  ac_status=$?
3635  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636  (exit $ac_status); }; }; then
3637  :
3638else
3639  $as_echo "$as_me: program exited with status $ac_status" >&5
3640$as_echo "$as_me: failed program was:" >&5
3641sed 's/^/| /' conftest.$ac_ext >&5
3642
3643( exit $ac_status )
3644ac_cv_header_stdc=no
3645fi
3646rm -rf conftest.dSYM
3647rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3648fi
3649
3650
3651fi
3652fi
3653{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3654$as_echo "$ac_cv_header_stdc" >&6; }
3655if test $ac_cv_header_stdc = yes; then
3656
3657cat >>confdefs.h <<\_ACEOF
3658#define STDC_HEADERS 1
3659_ACEOF
3660
3661fi
3662
3663{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3664$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
3665if test "${ac_cv_header_sys_wait_h+set}" = set; then
3666  $as_echo_n "(cached) " >&6
3667else
3668  cat >conftest.$ac_ext <<_ACEOF
3669/* confdefs.h.  */
3670_ACEOF
3671cat confdefs.h >>conftest.$ac_ext
3672cat >>conftest.$ac_ext <<_ACEOF
3673/* end confdefs.h.  */
3674#include <sys/types.h>
3675#include <sys/wait.h>
3676#ifndef WEXITSTATUS
3677# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3678#endif
3679#ifndef WIFEXITED
3680# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3681#endif
3682
3683int
3684main ()
3685{
3686  int s;
3687  wait (&s);
3688  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3689  ;
3690  return 0;
3691}
3692_ACEOF
3693rm -f conftest.$ac_objext
3694if { (ac_try="$ac_compile"
3695case "(($ac_try" in
3696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697  *) ac_try_echo=$ac_try;;
3698esac
3699eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3700$as_echo "$ac_try_echo") >&5
3701  (eval "$ac_compile") 2>conftest.er1
3702  ac_status=$?
3703  grep -v '^ *+' conftest.er1 >conftest.err
3704  rm -f conftest.er1
3705  cat conftest.err >&5
3706  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707  (exit $ac_status); } && {
3708	 test -z "$ac_c_werror_flag" ||
3709	 test ! -s conftest.err
3710       } && test -s conftest.$ac_objext; then
3711  ac_cv_header_sys_wait_h=yes
3712else
3713  $as_echo "$as_me: failed program was:" >&5
3714sed 's/^/| /' conftest.$ac_ext >&5
3715
3716	ac_cv_header_sys_wait_h=no
3717fi
3718
3719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720fi
3721{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3722$as_echo "$ac_cv_header_sys_wait_h" >&6; }
3723if test $ac_cv_header_sys_wait_h = yes; then
3724
3725cat >>confdefs.h <<\_ACEOF
3726#define HAVE_SYS_WAIT_H 1
3727_ACEOF
3728
3729fi
3730
3731
3732if test -z "$CFLAGS"; then
3733  CFLAGS="-O"
3734  test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
3735fi
3736if test "$GCC" = yes; then
3737    gccversion=`"$CC" -dumpversion`
3738  if test "x$gccversion" = "x"; then
3739        gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
3740  fi
3741    if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3742    echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
3743    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
3744  else
3745    if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
3746      echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
3747      CFLAGS="$CFLAGS -fno-strength-reduce"
3748    fi
3749  fi
3750fi
3751
3752if test "$cross_compiling" = yes; then
3753  { $as_echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
3754$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
3755fi
3756
3757test "$GCC" = yes && CPP_MM=M;
3758
3759if test -f ./toolcheck; then
3760  { $as_echo "$as_me:$LINENO: checking for buggy tools..." >&5
3761$as_echo "$as_me: checking for buggy tools..." >&6;}
3762  sh ./toolcheck 1>&6
3763fi
3764
3765OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
3766
3767{ $as_echo "$as_me:$LINENO: checking for BeOS" >&5
3768$as_echo_n "checking for BeOS... " >&6; }
3769case `uname` in
3770    BeOS)	OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
3771		BEOS=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3772$as_echo "yes" >&6; };;
3773    *)		BEOS=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3774$as_echo "no" >&6; };;
3775esac
3776
3777{ $as_echo "$as_me:$LINENO: checking for QNX" >&5
3778$as_echo_n "checking for QNX... " >&6; }
3779case `uname` in
3780    QNX)	OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
3781		test -z "$with_x" && with_x=no
3782		QNX=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3783$as_echo "yes" >&6; };;
3784    *)		QNX=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3785$as_echo "no" >&6; };;
3786esac
3787
3788{ $as_echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
3789$as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
3790if test "`(uname) 2>/dev/null`" = Darwin; then
3791  { $as_echo "$as_me:$LINENO: result: yes" >&5
3792$as_echo "yes" >&6; }
3793
3794  { $as_echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
3795$as_echo_n "checking --disable-darwin argument... " >&6; }
3796  # Check whether --enable-darwin was given.
3797if test "${enable_darwin+set}" = set; then
3798  enableval=$enable_darwin;
3799else
3800  enable_darwin="yes"
3801fi
3802
3803  if test "$enable_darwin" = "yes"; then
3804    { $as_echo "$as_me:$LINENO: result: no" >&5
3805$as_echo "no" >&6; }
3806    { $as_echo "$as_me:$LINENO: checking if Darwin files are there" >&5
3807$as_echo_n "checking if Darwin files are there... " >&6; }
3808    if test -f os_macosx.c; then
3809      { $as_echo "$as_me:$LINENO: result: yes" >&5
3810$as_echo "yes" >&6; }
3811    else
3812      { $as_echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
3813$as_echo "no, Darwin support disabled" >&6; }
3814      enable_darwin=no
3815    fi
3816  else
3817    { $as_echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
3818$as_echo "yes, Darwin support excluded" >&6; }
3819  fi
3820
3821  { $as_echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5
3822$as_echo_n "checking --with-mac-arch argument... " >&6; }
3823
3824# Check whether --with-mac-arch was given.
3825if test "${with_mac_arch+set}" = set; then
3826  withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:$LINENO: result: $MACARCH" >&5
3827$as_echo "$MACARCH" >&6; }
3828else
3829  MACARCH="current"; { $as_echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5
3830$as_echo "defaulting to $MACARCH" >&6; }
3831fi
3832
3833
3834  if test "x$MACARCH" = "xboth"; then
3835    { $as_echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5
3836$as_echo_n "checking for 10.4 universal SDK... " >&6; }
3837                            save_cppflags="$CPPFLAGS"
3838    save_cflags="$CFLAGS"
3839    save_ldflags="$LDFLAGS"
3840    CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
3841    cat >conftest.$ac_ext <<_ACEOF
3842/* confdefs.h.  */
3843_ACEOF
3844cat confdefs.h >>conftest.$ac_ext
3845cat >>conftest.$ac_ext <<_ACEOF
3846/* end confdefs.h.  */
3847
3848int
3849main ()
3850{
3851
3852  ;
3853  return 0;
3854}
3855_ACEOF
3856rm -f conftest.$ac_objext conftest$ac_exeext
3857if { (ac_try="$ac_link"
3858case "(($ac_try" in
3859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860  *) ac_try_echo=$ac_try;;
3861esac
3862eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3863$as_echo "$ac_try_echo") >&5
3864  (eval "$ac_link") 2>conftest.er1
3865  ac_status=$?
3866  grep -v '^ *+' conftest.er1 >conftest.err
3867  rm -f conftest.er1
3868  cat conftest.err >&5
3869  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870  (exit $ac_status); } && {
3871	 test -z "$ac_c_werror_flag" ||
3872	 test ! -s conftest.err
3873       } && test -s conftest$ac_exeext && {
3874	 test "$cross_compiling" = yes ||
3875	 $as_test_x conftest$ac_exeext
3876       }; then
3877  { $as_echo "$as_me:$LINENO: result: found" >&5
3878$as_echo "found" >&6; }
3879else
3880  $as_echo "$as_me: failed program was:" >&5
3881sed 's/^/| /' conftest.$ac_ext >&5
3882
3883	{ $as_echo "$as_me:$LINENO: result: not found" >&5
3884$as_echo "not found" >&6; }
3885	CFLAGS="$save_cflags"
3886	{ $as_echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
3887$as_echo_n "checking if Intel architecture is supported... " >&6; }
3888	CPPFLAGS="$CPPFLAGS -arch i386"
3889	LDFLAGS="$save_ldflags -arch i386"
3890	cat >conftest.$ac_ext <<_ACEOF
3891/* confdefs.h.  */
3892_ACEOF
3893cat confdefs.h >>conftest.$ac_ext
3894cat >>conftest.$ac_ext <<_ACEOF
3895/* end confdefs.h.  */
3896
3897int
3898main ()
3899{
3900
3901  ;
3902  return 0;
3903}
3904_ACEOF
3905rm -f conftest.$ac_objext conftest$ac_exeext
3906if { (ac_try="$ac_link"
3907case "(($ac_try" in
3908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909  *) ac_try_echo=$ac_try;;
3910esac
3911eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3912$as_echo "$ac_try_echo") >&5
3913  (eval "$ac_link") 2>conftest.er1
3914  ac_status=$?
3915  grep -v '^ *+' conftest.er1 >conftest.err
3916  rm -f conftest.er1
3917  cat conftest.err >&5
3918  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919  (exit $ac_status); } && {
3920	 test -z "$ac_c_werror_flag" ||
3921	 test ! -s conftest.err
3922       } && test -s conftest$ac_exeext && {
3923	 test "$cross_compiling" = yes ||
3924	 $as_test_x conftest$ac_exeext
3925       }; then
3926  { $as_echo "$as_me:$LINENO: result: yes" >&5
3927$as_echo "yes" >&6; }; MACARCH="intel"
3928else
3929  $as_echo "$as_me: failed program was:" >&5
3930sed 's/^/| /' conftest.$ac_ext >&5
3931
3932	{ $as_echo "$as_me:$LINENO: result: no" >&5
3933$as_echo "no" >&6; }
3934		MACARCH="ppc"
3935		CPPFLAGS="$save_cppflags -arch ppc"
3936		LDFLAGS="$save_ldflags -arch ppc"
3937fi
3938
3939rm -rf conftest.dSYM
3940rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3941      conftest$ac_exeext conftest.$ac_ext
3942fi
3943
3944rm -rf conftest.dSYM
3945rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3946      conftest$ac_exeext conftest.$ac_ext
3947  elif test "x$MACARCH" = "xintel"; then
3948    CPPFLAGS="$CPPFLAGS -arch intel"
3949    LDFLAGS="$LDFLAGS -arch intel"
3950  elif test "x$MACARCH" = "xppc"; then
3951    CPPFLAGS="$CPPFLAGS -arch ppc"
3952    LDFLAGS="$LDFLAGS -arch ppc"
3953  fi
3954
3955  if test "$enable_darwin" = "yes"; then
3956    MACOSX=yes
3957    OS_EXTRA_SRC="os_macosx.c os_mac_conv.c";
3958    OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
3959        CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3960    if test "x$MACARCH" = "xboth"; then
3961      CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
3962    else
3963      CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon"
3964    fi
3965
3966                # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3977		  inttypes.h stdint.h unistd.h
3978do
3979as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3980{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3981$as_echo_n "checking for $ac_header... " >&6; }
3982if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3983  $as_echo_n "(cached) " >&6
3984else
3985  cat >conftest.$ac_ext <<_ACEOF
3986/* confdefs.h.  */
3987_ACEOF
3988cat confdefs.h >>conftest.$ac_ext
3989cat >>conftest.$ac_ext <<_ACEOF
3990/* end confdefs.h.  */
3991$ac_includes_default
3992
3993#include <$ac_header>
3994_ACEOF
3995rm -f conftest.$ac_objext
3996if { (ac_try="$ac_compile"
3997case "(($ac_try" in
3998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999  *) ac_try_echo=$ac_try;;
4000esac
4001eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4002$as_echo "$ac_try_echo") >&5
4003  (eval "$ac_compile") 2>conftest.er1
4004  ac_status=$?
4005  grep -v '^ *+' conftest.er1 >conftest.err
4006  rm -f conftest.er1
4007  cat conftest.err >&5
4008  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009  (exit $ac_status); } && {
4010	 test -z "$ac_c_werror_flag" ||
4011	 test ! -s conftest.err
4012       } && test -s conftest.$ac_objext; then
4013  eval "$as_ac_Header=yes"
4014else
4015  $as_echo "$as_me: failed program was:" >&5
4016sed 's/^/| /' conftest.$ac_ext >&5
4017
4018	eval "$as_ac_Header=no"
4019fi
4020
4021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4022fi
4023ac_res=`eval 'as_val=${'$as_ac_Header'}
4024		 $as_echo "$as_val"'`
4025	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4026$as_echo "$ac_res" >&6; }
4027as_val=`eval 'as_val=${'$as_ac_Header'}
4028		 $as_echo "$as_val"'`
4029   if test "x$as_val" = x""yes; then
4030  cat >>confdefs.h <<_ACEOF
4031#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4032_ACEOF
4033
4034fi
4035
4036done
4037
4038
4039if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4040  { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4041$as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4042if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4043  $as_echo_n "(cached) " >&6
4044fi
4045{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4046$as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4047else
4048  # Is the header compilable?
4049{ $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
4050$as_echo_n "checking Carbon/Carbon.h usability... " >&6; }
4051cat >conftest.$ac_ext <<_ACEOF
4052/* confdefs.h.  */
4053_ACEOF
4054cat confdefs.h >>conftest.$ac_ext
4055cat >>conftest.$ac_ext <<_ACEOF
4056/* end confdefs.h.  */
4057$ac_includes_default
4058#include <Carbon/Carbon.h>
4059_ACEOF
4060rm -f conftest.$ac_objext
4061if { (ac_try="$ac_compile"
4062case "(($ac_try" in
4063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064  *) ac_try_echo=$ac_try;;
4065esac
4066eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4067$as_echo "$ac_try_echo") >&5
4068  (eval "$ac_compile") 2>conftest.er1
4069  ac_status=$?
4070  grep -v '^ *+' conftest.er1 >conftest.err
4071  rm -f conftest.er1
4072  cat conftest.err >&5
4073  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074  (exit $ac_status); } && {
4075	 test -z "$ac_c_werror_flag" ||
4076	 test ! -s conftest.err
4077       } && test -s conftest.$ac_objext; then
4078  ac_header_compiler=yes
4079else
4080  $as_echo "$as_me: failed program was:" >&5
4081sed 's/^/| /' conftest.$ac_ext >&5
4082
4083	ac_header_compiler=no
4084fi
4085
4086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4087{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4088$as_echo "$ac_header_compiler" >&6; }
4089
4090# Is the header present?
4091{ $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
4092$as_echo_n "checking Carbon/Carbon.h presence... " >&6; }
4093cat >conftest.$ac_ext <<_ACEOF
4094/* confdefs.h.  */
4095_ACEOF
4096cat confdefs.h >>conftest.$ac_ext
4097cat >>conftest.$ac_ext <<_ACEOF
4098/* end confdefs.h.  */
4099#include <Carbon/Carbon.h>
4100_ACEOF
4101if { (ac_try="$ac_cpp conftest.$ac_ext"
4102case "(($ac_try" in
4103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104  *) ac_try_echo=$ac_try;;
4105esac
4106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4107$as_echo "$ac_try_echo") >&5
4108  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4109  ac_status=$?
4110  grep -v '^ *+' conftest.er1 >conftest.err
4111  rm -f conftest.er1
4112  cat conftest.err >&5
4113  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114  (exit $ac_status); } >/dev/null && {
4115	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4116	 test ! -s conftest.err
4117       }; then
4118  ac_header_preproc=yes
4119else
4120  $as_echo "$as_me: failed program was:" >&5
4121sed 's/^/| /' conftest.$ac_ext >&5
4122
4123  ac_header_preproc=no
4124fi
4125
4126rm -f conftest.err conftest.$ac_ext
4127{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4128$as_echo "$ac_header_preproc" >&6; }
4129
4130# So?  What about this header?
4131case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4132  yes:no: )
4133    { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
4134$as_echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4135    { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
4136$as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
4137    ac_header_preproc=yes
4138    ;;
4139  no:yes:* )
4140    { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
4141$as_echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
4142    { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h:     check for missing prerequisite headers?" >&5
4143$as_echo "$as_me: WARNING: Carbon/Carbon.h:     check for missing prerequisite headers?" >&2;}
4144    { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
4145$as_echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
4146    { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h:     section \"Present But Cannot Be Compiled\"" >&5
4147$as_echo "$as_me: WARNING: Carbon/Carbon.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4148    { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
4149$as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
4150    { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
4151$as_echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
4152
4153    ;;
4154esac
4155{ $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4156$as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4157if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4158  $as_echo_n "(cached) " >&6
4159else
4160  ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
4161fi
4162{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4163$as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4164
4165fi
4166if test "x$ac_cv_header_Carbon_Carbon_h" = x""yes; then
4167  CARBON=yes
4168fi
4169
4170
4171    if test "x$CARBON" = "xyes"; then
4172      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
4173	with_x=no
4174      fi
4175    fi
4176  fi
4177
4178        if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4179    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4180  fi
4181
4182else
4183  { $as_echo "$as_me:$LINENO: result: no" >&5
4184$as_echo "no" >&6; }
4185fi
4186
4187
4188
4189
4190if test "$cross_compiling" = no; then
4191  { $as_echo "$as_me:$LINENO: checking --with-local-dir argument" >&5
4192$as_echo_n "checking --with-local-dir argument... " >&6; }
4193  have_local_include=''
4194  have_local_lib=''
4195
4196# Check whether --with-local-dir was given.
4197if test "${with_local_dir+set}" = set; then
4198  withval=$with_local_dir;
4199    local_dir="$withval"
4200    case "$withval" in
4201    */*) ;;
4202    no)
4203      # avoid adding local dir to LDFLAGS and CPPFLAGS
4204      have_local_dir=yes
4205      have_local_lib=yes
4206      ;;
4207    *) { { $as_echo "$as_me:$LINENO: error: must pass path argument to --with-local-dir" >&5
4208$as_echo "$as_me: error: must pass path argument to --with-local-dir" >&2;}
4209   { (exit 1); exit 1; }; } ;;
4210    esac
4211	{ $as_echo "$as_me:$LINENO: result: $local_dir" >&5
4212$as_echo "$local_dir" >&6; }
4213
4214else
4215
4216    local_dir=/usr/local
4217    { $as_echo "$as_me:$LINENO: result: Defaulting to $local_dir" >&5
4218$as_echo "Defaulting to $local_dir" >&6; }
4219
4220fi
4221
4222  if test "$GCC" = yes -a "$local_dir" != no; then
4223    echo 'void f(){}' > conftest.c
4224        have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4225    have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4226    rm -f conftest.c conftest.o
4227  fi
4228  if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4229    tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4230    if test "$tt" = "$LDFLAGS"; then
4231      LDFLAGS="$LDFLAGS -L${local_dir}/lib"
4232    fi
4233  fi
4234  if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4235    tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4236    if test "$tt" = "$CPPFLAGS"; then
4237      CPPFLAGS="$CPPFLAGS -I${local_dir}/include"
4238    fi
4239  fi
4240fi
4241
4242{ $as_echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
4243$as_echo_n "checking --with-vim-name argument... " >&6; }
4244
4245# Check whether --with-vim-name was given.
4246if test "${with_vim_name+set}" = set; then
4247  withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIMNAME" >&5
4248$as_echo "$VIMNAME" >&6; }
4249else
4250  VIMNAME="vim"; { $as_echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
4251$as_echo "Defaulting to $VIMNAME" >&6; }
4252fi
4253
4254
4255{ $as_echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
4256$as_echo_n "checking --with-ex-name argument... " >&6; }
4257
4258# Check whether --with-ex-name was given.
4259if test "${with_ex_name+set}" = set; then
4260  withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $EXNAME" >&5
4261$as_echo "$EXNAME" >&6; }
4262else
4263  EXNAME="ex"; { $as_echo "$as_me:$LINENO: result: Defaulting to ex" >&5
4264$as_echo "Defaulting to ex" >&6; }
4265fi
4266
4267
4268{ $as_echo "$as_me:$LINENO: checking --with-view-name argument" >&5
4269$as_echo_n "checking --with-view-name argument... " >&6; }
4270
4271# Check whether --with-view-name was given.
4272if test "${with_view_name+set}" = set; then
4273  withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIEWNAME" >&5
4274$as_echo "$VIEWNAME" >&6; }
4275else
4276  VIEWNAME="view"; { $as_echo "$as_me:$LINENO: result: Defaulting to view" >&5
4277$as_echo "Defaulting to view" >&6; }
4278fi
4279
4280
4281
4282{ $as_echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
4283$as_echo_n "checking --with-global-runtime argument... " >&6; }
4284
4285# Check whether --with-global-runtime was given.
4286if test "${with_global_runtime+set}" = set; then
4287  withval=$with_global_runtime; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4288$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4289#define RUNTIME_GLOBAL "$withval"
4290_ACEOF
4291
4292else
4293  { $as_echo "$as_me:$LINENO: result: no" >&5
4294$as_echo "no" >&6; }
4295fi
4296
4297
4298{ $as_echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
4299$as_echo_n "checking --with-modified-by argument... " >&6; }
4300
4301# Check whether --with-modified-by was given.
4302if test "${with_modified_by+set}" = set; then
4303  withval=$with_modified_by; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4304$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4305#define MODIFIED_BY "$withval"
4306_ACEOF
4307
4308else
4309  { $as_echo "$as_me:$LINENO: result: no" >&5
4310$as_echo "no" >&6; }
4311fi
4312
4313
4314{ $as_echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
4315$as_echo_n "checking if character set is EBCDIC... " >&6; }
4316cat >conftest.$ac_ext <<_ACEOF
4317/* confdefs.h.  */
4318_ACEOF
4319cat confdefs.h >>conftest.$ac_ext
4320cat >>conftest.$ac_ext <<_ACEOF
4321/* end confdefs.h.  */
4322
4323int
4324main ()
4325{
4326 /* TryCompile function for CharSet.
4327   Treat any failure as ASCII for compatibility with existing art.
4328   Use compile-time rather than run-time tests for cross-compiler
4329   tolerance.  */
4330#if '0'!=240
4331make an error "Character set is not EBCDIC"
4332#endif
4333  ;
4334  return 0;
4335}
4336_ACEOF
4337rm -f conftest.$ac_objext
4338if { (ac_try="$ac_compile"
4339case "(($ac_try" in
4340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341  *) ac_try_echo=$ac_try;;
4342esac
4343eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4344$as_echo "$ac_try_echo") >&5
4345  (eval "$ac_compile") 2>conftest.er1
4346  ac_status=$?
4347  grep -v '^ *+' conftest.er1 >conftest.err
4348  rm -f conftest.er1
4349  cat conftest.err >&5
4350  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351  (exit $ac_status); } && {
4352	 test -z "$ac_c_werror_flag" ||
4353	 test ! -s conftest.err
4354       } && test -s conftest.$ac_objext; then
4355   # TryCompile action if true
4356cf_cv_ebcdic=yes
4357else
4358  $as_echo "$as_me: failed program was:" >&5
4359sed 's/^/| /' conftest.$ac_ext >&5
4360
4361	 # TryCompile action if false
4362cf_cv_ebcdic=no
4363fi
4364
4365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4366# end of TryCompile ])
4367# end of CacheVal CvEbcdic
4368{ $as_echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
4369$as_echo "$cf_cv_ebcdic" >&6; }
4370case "$cf_cv_ebcdic" in  #(vi
4371    yes)	cat >>confdefs.h <<\_ACEOF
4372#define EBCDIC 1
4373_ACEOF
4374
4375		line_break='"\\n"'
4376		;;
4377    *)		line_break='"\\012"';;
4378esac
4379
4380
4381if test "$cf_cv_ebcdic" = "yes"; then
4382{ $as_echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
4383$as_echo_n "checking for OS/390 Unix... " >&6; }
4384case `uname` in
4385    OS/390)	OS390Unix="yes";
4386										if test "$CC" = "cc"; then
4387		  ccm="$_CC_CCMODE"
4388		  ccn="CC"
4389		else
4390		  if test "$CC" = "c89"; then
4391		    ccm="$_CC_C89MODE"
4392		    ccn="C89"
4393		  else
4394		    ccm=1
4395		  fi
4396		fi
4397		if test "$ccm" != "1"; then
4398		  echo ""
4399		  echo "------------------------------------------"
4400		  echo " On OS/390 Unix, the environment variable"
4401		  echo " __CC_${ccn}MODE must be set to \"1\"!"
4402		  echo " Do:"
4403		  echo "    export _CC_${ccn}MODE=1"
4404		  echo " and then call configure again."
4405		  echo "------------------------------------------"
4406		  exit 1
4407		fi
4408		CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4409		{ $as_echo "$as_me:$LINENO: result: yes" >&5
4410$as_echo "yes" >&6; }
4411		;;
4412    *)		OS390Unix="no";
4413		{ $as_echo "$as_me:$LINENO: result: no" >&5
4414$as_echo "no" >&6; }
4415		;;
4416esac
4417fi
4418
4419{ $as_echo "$as_me:$LINENO: checking --disable-selinux argument" >&5
4420$as_echo_n "checking --disable-selinux argument... " >&6; }
4421# Check whether --enable-selinux was given.
4422if test "${enable_selinux+set}" = set; then
4423  enableval=$enable_selinux;
4424else
4425  enable_selinux="yes"
4426fi
4427
4428if test "$enable_selinux" = "yes"; then
4429  { $as_echo "$as_me:$LINENO: result: no" >&5
4430$as_echo "no" >&6; }
4431  { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
4432$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
4433if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
4434  $as_echo_n "(cached) " >&6
4435else
4436  ac_check_lib_save_LIBS=$LIBS
4437LIBS="-lselinux  $LIBS"
4438cat >conftest.$ac_ext <<_ACEOF
4439/* confdefs.h.  */
4440_ACEOF
4441cat confdefs.h >>conftest.$ac_ext
4442cat >>conftest.$ac_ext <<_ACEOF
4443/* end confdefs.h.  */
4444
4445/* Override any GCC internal prototype to avoid an error.
4446   Use char because int might match the return type of a GCC
4447   builtin and then its argument prototype would still apply.  */
4448#ifdef __cplusplus
4449extern "C"
4450#endif
4451char is_selinux_enabled ();
4452int
4453main ()
4454{
4455return is_selinux_enabled ();
4456  ;
4457  return 0;
4458}
4459_ACEOF
4460rm -f conftest.$ac_objext conftest$ac_exeext
4461if { (ac_try="$ac_link"
4462case "(($ac_try" in
4463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464  *) ac_try_echo=$ac_try;;
4465esac
4466eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4467$as_echo "$ac_try_echo") >&5
4468  (eval "$ac_link") 2>conftest.er1
4469  ac_status=$?
4470  grep -v '^ *+' conftest.er1 >conftest.err
4471  rm -f conftest.er1
4472  cat conftest.err >&5
4473  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474  (exit $ac_status); } && {
4475	 test -z "$ac_c_werror_flag" ||
4476	 test ! -s conftest.err
4477       } && test -s conftest$ac_exeext && {
4478	 test "$cross_compiling" = yes ||
4479	 $as_test_x conftest$ac_exeext
4480       }; then
4481  ac_cv_lib_selinux_is_selinux_enabled=yes
4482else
4483  $as_echo "$as_me: failed program was:" >&5
4484sed 's/^/| /' conftest.$ac_ext >&5
4485
4486	ac_cv_lib_selinux_is_selinux_enabled=no
4487fi
4488
4489rm -rf conftest.dSYM
4490rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4491      conftest$ac_exeext conftest.$ac_ext
4492LIBS=$ac_check_lib_save_LIBS
4493fi
4494{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4495$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4496if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
4497  LIBS="$LIBS -lselinux"
4498	   cat >>confdefs.h <<\_ACEOF
4499#define HAVE_SELINUX 1
4500_ACEOF
4501
4502fi
4503
4504else
4505   { $as_echo "$as_me:$LINENO: result: yes" >&5
4506$as_echo "yes" >&6; }
4507fi
4508
4509
4510{ $as_echo "$as_me:$LINENO: checking --with-features argument" >&5
4511$as_echo_n "checking --with-features argument... " >&6; }
4512
4513# Check whether --with-features was given.
4514if test "${with_features+set}" = set; then
4515  withval=$with_features; features="$withval"; { $as_echo "$as_me:$LINENO: result: $features" >&5
4516$as_echo "$features" >&6; }
4517else
4518  features="normal"; { $as_echo "$as_me:$LINENO: result: Defaulting to normal" >&5
4519$as_echo "Defaulting to normal" >&6; }
4520fi
4521
4522
4523dovimdiff=""
4524dogvimdiff=""
4525case "$features" in
4526  tiny)		cat >>confdefs.h <<\_ACEOF
4527#define FEAT_TINY 1
4528_ACEOF
4529 ;;
4530  small)	cat >>confdefs.h <<\_ACEOF
4531#define FEAT_SMALL 1
4532_ACEOF
4533 ;;
4534  normal)	cat >>confdefs.h <<\_ACEOF
4535#define FEAT_NORMAL 1
4536_ACEOF
4537 dovimdiff="installvimdiff";
4538			dogvimdiff="installgvimdiff" ;;
4539  big)		cat >>confdefs.h <<\_ACEOF
4540#define FEAT_BIG 1
4541_ACEOF
4542 dovimdiff="installvimdiff";
4543			dogvimdiff="installgvimdiff" ;;
4544  huge)		cat >>confdefs.h <<\_ACEOF
4545#define FEAT_HUGE 1
4546_ACEOF
4547 dovimdiff="installvimdiff";
4548			dogvimdiff="installgvimdiff" ;;
4549  *)		{ $as_echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
4550$as_echo "Sorry, $features is not supported" >&6; } ;;
4551esac
4552
4553
4554
4555
4556{ $as_echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
4557$as_echo_n "checking --with-compiledby argument... " >&6; }
4558
4559# Check whether --with-compiledby was given.
4560if test "${with_compiledby+set}" = set; then
4561  withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4562$as_echo "$withval" >&6; }
4563else
4564  compiledby=""; { $as_echo "$as_me:$LINENO: result: no" >&5
4565$as_echo "no" >&6; }
4566fi
4567
4568
4569
4570{ $as_echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
4571$as_echo_n "checking --disable-xsmp argument... " >&6; }
4572# Check whether --enable-xsmp was given.
4573if test "${enable_xsmp+set}" = set; then
4574  enableval=$enable_xsmp;
4575else
4576  enable_xsmp="yes"
4577fi
4578
4579
4580if test "$enable_xsmp" = "yes"; then
4581  { $as_echo "$as_me:$LINENO: result: no" >&5
4582$as_echo "no" >&6; }
4583  { $as_echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
4584$as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
4585  # Check whether --enable-xsmp-interact was given.
4586if test "${enable_xsmp_interact+set}" = set; then
4587  enableval=$enable_xsmp_interact;
4588else
4589  enable_xsmp_interact="yes"
4590fi
4591
4592  if test "$enable_xsmp_interact" = "yes"; then
4593    { $as_echo "$as_me:$LINENO: result: no" >&5
4594$as_echo "no" >&6; }
4595    cat >>confdefs.h <<\_ACEOF
4596#define USE_XSMP_INTERACT 1
4597_ACEOF
4598
4599  else
4600    { $as_echo "$as_me:$LINENO: result: yes" >&5
4601$as_echo "yes" >&6; }
4602  fi
4603else
4604  { $as_echo "$as_me:$LINENO: result: yes" >&5
4605$as_echo "yes" >&6; }
4606fi
4607
4608{ $as_echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
4609$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
4610# Check whether --enable-mzschemeinterp was given.
4611if test "${enable_mzschemeinterp+set}" = set; then
4612  enableval=$enable_mzschemeinterp;
4613else
4614  enable_mzschemeinterp="no"
4615fi
4616
4617{ $as_echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
4618$as_echo "$enable_mzschemeinterp" >&6; }
4619
4620if test "$enable_mzschemeinterp" = "yes"; then
4621
4622
4623  { $as_echo "$as_me:$LINENO: checking --with-plthome argument" >&5
4624$as_echo_n "checking --with-plthome argument... " >&6; }
4625
4626# Check whether --with-plthome was given.
4627if test "${with_plthome+set}" = set; then
4628  withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:$LINENO: result: $with_plthome" >&5
4629$as_echo "$with_plthome" >&6; }
4630else
4631  with_plthome="";{ $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4632$as_echo "\"no\"" >&6; }
4633fi
4634
4635
4636  if test "X$with_plthome" != "X"; then
4637       vi_cv_path_mzscheme_pfx="$with_plthome"
4638  else
4639    { $as_echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
4640$as_echo_n "checking PLTHOME environment var... " >&6; }
4641    if test "X$PLTHOME" != "X"; then
4642	{ $as_echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
4643$as_echo "\"$PLTHOME\"" >&6; }
4644	vi_cv_path_mzscheme_pfx="$PLTHOME"
4645    else
4646	{ $as_echo "$as_me:$LINENO: result: not set" >&5
4647$as_echo "not set" >&6; }
4648		# Extract the first word of "mzscheme", so it can be a program name with args.
4649set dummy mzscheme; ac_word=$2
4650{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4651$as_echo_n "checking for $ac_word... " >&6; }
4652if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
4653  $as_echo_n "(cached) " >&6
4654else
4655  case $vi_cv_path_mzscheme in
4656  [\\/]* | ?:[\\/]*)
4657  ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
4658  ;;
4659  *)
4660  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661for as_dir in $PATH
4662do
4663  IFS=$as_save_IFS
4664  test -z "$as_dir" && as_dir=.
4665  for ac_exec_ext in '' $ac_executable_extensions; do
4666  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4667    ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
4668    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669    break 2
4670  fi
4671done
4672done
4673IFS=$as_save_IFS
4674
4675  ;;
4676esac
4677fi
4678vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
4679if test -n "$vi_cv_path_mzscheme"; then
4680  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
4681$as_echo "$vi_cv_path_mzscheme" >&6; }
4682else
4683  { $as_echo "$as_me:$LINENO: result: no" >&5
4684$as_echo "no" >&6; }
4685fi
4686
4687
4688
4689			if test "X$vi_cv_path_mzscheme" != "X"; then
4690	  lsout=`ls -l $vi_cv_path_mzscheme`
4691	  if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
4692	    vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
4693	  fi
4694	fi
4695
4696	if test "X$vi_cv_path_mzscheme" != "X"; then
4697	    	    { $as_echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
4698$as_echo_n "checking MzScheme install prefix... " >&6; }
4699if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
4700  $as_echo_n "(cached) " >&6
4701else
4702  	    	    echo "(display (simplify-path		\
4703	       (build-path (call-with-values	\
4704		(lambda () (split-path (find-system-path (quote exec-file)))) \
4705		(lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
4706	    	     vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
4707		sed -e 's+/$++'`
4708fi
4709{ $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
4710$as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
4711	    rm -f mzdirs.scm
4712	fi
4713    fi
4714  fi
4715
4716  SCHEME_INC=
4717  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4718    { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
4719$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
4720    if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
4721      SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include
4722      { $as_echo "$as_me:$LINENO: result: yes" >&5
4723$as_echo "yes" >&6; }
4724    else
4725      { $as_echo "$as_me:$LINENO: result: no" >&5
4726$as_echo "no" >&6; }
4727      { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
4728$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; }
4729      if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then
4730	{ $as_echo "$as_me:$LINENO: result: yes" >&5
4731$as_echo "yes" >&6; }
4732	SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt
4733      else
4734	{ $as_echo "$as_me:$LINENO: result: no" >&5
4735$as_echo "no" >&6; }
4736	{ $as_echo "$as_me:$LINENO: checking if scheme.h can be found in /usr/include/plt/" >&5
4737$as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; }
4738	if test -f /usr/include/plt/scheme.h; then
4739	  { $as_echo "$as_me:$LINENO: result: yes" >&5
4740$as_echo "yes" >&6; }
4741	  SCHEME_INC=/usr/include/plt
4742	else
4743	  { $as_echo "$as_me:$LINENO: result: no" >&5
4744$as_echo "no" >&6; }
4745	  vi_cv_path_mzscheme_pfx=
4746	fi
4747      fi
4748    fi
4749  fi
4750
4751  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4752    if test "x$MACOSX" = "xyes"; then
4753      MZSCHEME_LIBS="-framework PLT_MzScheme"
4754    elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then
4755      MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"
4756      MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
4757    elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
4758      MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
4759    else
4760            if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then
4761        MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m"
4762	MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
4763      else
4764        MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
4765      fi
4766      if test "$GCC" = yes; then
4767			MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
4768      elif test "`(uname) 2>/dev/null`" = SunOS &&
4769			       uname -r | grep '^5' >/dev/null; then
4770	MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${vi_cv_path_mzscheme_pfx}/lib"
4771      fi
4772    fi
4773    if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then
4774      SCHEME_COLLECTS=lib/plt/
4775    fi
4776    if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
4777            MZSCHEME_EXTRA="mzscheme_base.c"
4778      MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
4779      MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
4780    fi
4781    MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
4782      -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
4783    MZSCHEME_SRC="if_mzsch.c"
4784    MZSCHEME_OBJ="objects/if_mzsch.o"
4785    MZSCHEME_PRO="if_mzsch.pro"
4786    cat >>confdefs.h <<\_ACEOF
4787#define FEAT_MZSCHEME 1
4788_ACEOF
4789
4790  fi
4791
4792
4793
4794
4795
4796
4797
4798fi
4799
4800
4801{ $as_echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
4802$as_echo_n "checking --enable-perlinterp argument... " >&6; }
4803# Check whether --enable-perlinterp was given.
4804if test "${enable_perlinterp+set}" = set; then
4805  enableval=$enable_perlinterp;
4806else
4807  enable_perlinterp="no"
4808fi
4809
4810{ $as_echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
4811$as_echo "$enable_perlinterp" >&6; }
4812if test "$enable_perlinterp" = "yes"; then
4813
4814  # Extract the first word of "perl", so it can be a program name with args.
4815set dummy perl; ac_word=$2
4816{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4817$as_echo_n "checking for $ac_word... " >&6; }
4818if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
4819  $as_echo_n "(cached) " >&6
4820else
4821  case $vi_cv_path_perl in
4822  [\\/]* | ?:[\\/]*)
4823  ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
4824  ;;
4825  *)
4826  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827for as_dir in $PATH
4828do
4829  IFS=$as_save_IFS
4830  test -z "$as_dir" && as_dir=.
4831  for ac_exec_ext in '' $ac_executable_extensions; do
4832  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4833    ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
4834    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4835    break 2
4836  fi
4837done
4838done
4839IFS=$as_save_IFS
4840
4841  ;;
4842esac
4843fi
4844vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
4845if test -n "$vi_cv_path_perl"; then
4846  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
4847$as_echo "$vi_cv_path_perl" >&6; }
4848else
4849  { $as_echo "$as_me:$LINENO: result: no" >&5
4850$as_echo "no" >&6; }
4851fi
4852
4853
4854  if test "X$vi_cv_path_perl" != "X"; then
4855    { $as_echo "$as_me:$LINENO: checking Perl version" >&5
4856$as_echo_n "checking Perl version... " >&6; }
4857    if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
4858     eval `$vi_cv_path_perl -V:usethreads`
4859     if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
4860       badthreads=no
4861     else
4862       if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
4863	 eval `$vi_cv_path_perl -V:use5005threads`
4864	 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
4865	   badthreads=no
4866	 else
4867	   badthreads=yes
4868	   { $as_echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
4869$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
4870	 fi
4871       else
4872	 badthreads=yes
4873	 { $as_echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
4874$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
4875       fi
4876     fi
4877     if test $badthreads = no; then
4878      { $as_echo "$as_me:$LINENO: result: OK" >&5
4879$as_echo "OK" >&6; }
4880      eval `$vi_cv_path_perl -V:shrpenv`
4881      if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
4882	shrpenv=""
4883      fi
4884      vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
4885
4886            perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
4887	      -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
4888            perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
4889		sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
4890			-e 's/-bE:perl.exp//' -e 's/-lc //'`
4891                  perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
4892		-e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
4893
4894                  { $as_echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
4895$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
4896      cflags_save=$CFLAGS
4897      libs_save=$LIBS
4898      ldflags_save=$LDFLAGS
4899      CFLAGS="$CFLAGS $perlcppflags"
4900      LIBS="$LIBS $perllibs"
4901      LDFLAGS="$perlldflags $LDFLAGS"
4902      cat >conftest.$ac_ext <<_ACEOF
4903/* confdefs.h.  */
4904_ACEOF
4905cat confdefs.h >>conftest.$ac_ext
4906cat >>conftest.$ac_ext <<_ACEOF
4907/* end confdefs.h.  */
4908
4909int
4910main ()
4911{
4912
4913  ;
4914  return 0;
4915}
4916_ACEOF
4917rm -f conftest.$ac_objext conftest$ac_exeext
4918if { (ac_try="$ac_link"
4919case "(($ac_try" in
4920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4921  *) ac_try_echo=$ac_try;;
4922esac
4923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4924$as_echo "$ac_try_echo") >&5
4925  (eval "$ac_link") 2>conftest.er1
4926  ac_status=$?
4927  grep -v '^ *+' conftest.er1 >conftest.err
4928  rm -f conftest.er1
4929  cat conftest.err >&5
4930  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931  (exit $ac_status); } && {
4932	 test -z "$ac_c_werror_flag" ||
4933	 test ! -s conftest.err
4934       } && test -s conftest$ac_exeext && {
4935	 test "$cross_compiling" = yes ||
4936	 $as_test_x conftest$ac_exeext
4937       }; then
4938  { $as_echo "$as_me:$LINENO: result: yes" >&5
4939$as_echo "yes" >&6; }; perl_ok=yes
4940else
4941  $as_echo "$as_me: failed program was:" >&5
4942sed 's/^/| /' conftest.$ac_ext >&5
4943
4944	{ $as_echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4945$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
4946fi
4947
4948rm -rf conftest.dSYM
4949rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4950      conftest$ac_exeext conftest.$ac_ext
4951      CFLAGS=$cflags_save
4952      LIBS=$libs_save
4953      LDFLAGS=$ldflags_save
4954      if test $perl_ok = yes; then
4955	if test "X$perlcppflags" != "X"; then
4956	  	  PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
4957	fi
4958	if test "X$perlldflags" != "X"; then
4959	  LDFLAGS="$perlldflags $LDFLAGS"
4960	fi
4961	PERL_LIBS=$perllibs
4962	PERL_SRC="auto/if_perl.c if_perlsfio.c"
4963	PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4964	PERL_PRO="if_perl.pro if_perlsfio.pro"
4965	cat >>confdefs.h <<\_ACEOF
4966#define FEAT_PERL 1
4967_ACEOF
4968
4969      fi
4970     fi
4971    else
4972      { $as_echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4973$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
4974    fi
4975  fi
4976
4977  if test "x$MACOSX" = "xyes"; then
4978        dir=/System/Library/Perl
4979    darwindir=$dir/darwin
4980    if test -d $darwindir; then
4981      PERL=/usr/bin/perl
4982    else
4983            dir=/System/Library/Perl/5.8.1
4984      darwindir=$dir/darwin-thread-multi-2level
4985      if test -d $darwindir; then
4986	PERL=/usr/bin/perl
4987      fi
4988    fi
4989    if test -n "$PERL"; then
4990      PERL_DIR="$dir"
4991      PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4992      PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4993      PERL_LIBS="-L$darwindir/CORE -lperl"
4994    fi
4995  fi
4996fi
4997
4998
4999
5000
5001
5002
5003
5004{ $as_echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
5005$as_echo_n "checking --enable-pythoninterp argument... " >&6; }
5006# Check whether --enable-pythoninterp was given.
5007if test "${enable_pythoninterp+set}" = set; then
5008  enableval=$enable_pythoninterp;
5009else
5010  enable_pythoninterp="no"
5011fi
5012
5013{ $as_echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
5014$as_echo "$enable_pythoninterp" >&6; }
5015if test "$enable_pythoninterp" = "yes"; then
5016    # Extract the first word of "python", so it can be a program name with args.
5017set dummy python; ac_word=$2
5018{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5019$as_echo_n "checking for $ac_word... " >&6; }
5020if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
5021  $as_echo_n "(cached) " >&6
5022else
5023  case $vi_cv_path_python in
5024  [\\/]* | ?:[\\/]*)
5025  ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
5026  ;;
5027  *)
5028  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029for as_dir in $PATH
5030do
5031  IFS=$as_save_IFS
5032  test -z "$as_dir" && as_dir=.
5033  for ac_exec_ext in '' $ac_executable_extensions; do
5034  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5035    ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5036    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5037    break 2
5038  fi
5039done
5040done
5041IFS=$as_save_IFS
5042
5043  ;;
5044esac
5045fi
5046vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5047if test -n "$vi_cv_path_python"; then
5048  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
5049$as_echo "$vi_cv_path_python" >&6; }
5050else
5051  { $as_echo "$as_me:$LINENO: result: no" >&5
5052$as_echo "no" >&6; }
5053fi
5054
5055
5056  if test "X$vi_cv_path_python" != "X"; then
5057
5058        { $as_echo "$as_me:$LINENO: checking Python version" >&5
5059$as_echo_n "checking Python version... " >&6; }
5060if test "${vi_cv_var_python_version+set}" = set; then
5061  $as_echo_n "(cached) " >&6
5062else
5063  vi_cv_var_python_version=`
5064	    ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5065
5066fi
5067{ $as_echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
5068$as_echo "$vi_cv_var_python_version" >&6; }
5069
5070        { $as_echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
5071$as_echo_n "checking Python is 1.4 or better... " >&6; }
5072    if ${vi_cv_path_python} -c \
5073	"import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
5074    then
5075      { $as_echo "$as_me:$LINENO: result: yep" >&5
5076$as_echo "yep" >&6; }
5077
5078            { $as_echo "$as_me:$LINENO: checking Python's install prefix" >&5
5079$as_echo_n "checking Python's install prefix... " >&6; }
5080if test "${vi_cv_path_python_pfx+set}" = set; then
5081  $as_echo_n "(cached) " >&6
5082else
5083   vi_cv_path_python_pfx=`
5084	    ${vi_cv_path_python} -c \
5085		"import sys; print sys.prefix"`
5086fi
5087{ $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
5088$as_echo "$vi_cv_path_python_pfx" >&6; }
5089
5090            { $as_echo "$as_me:$LINENO: checking Python's execution prefix" >&5
5091$as_echo_n "checking Python's execution prefix... " >&6; }
5092if test "${vi_cv_path_python_epfx+set}" = set; then
5093  $as_echo_n "(cached) " >&6
5094else
5095   vi_cv_path_python_epfx=`
5096	    ${vi_cv_path_python} -c \
5097		"import sys; print sys.exec_prefix"`
5098fi
5099{ $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
5100$as_echo "$vi_cv_path_python_epfx" >&6; }
5101
5102
5103      if test "${vi_cv_path_pythonpath+set}" = set; then
5104  $as_echo_n "(cached) " >&6
5105else
5106   vi_cv_path_pythonpath=`
5107	    unset PYTHONPATH;
5108	    ${vi_cv_path_python} -c \
5109		"import sys, string; print string.join(sys.path,':')"`
5110fi
5111
5112
5113
5114
5115# Check whether --with-python-config-dir was given.
5116if test "${with_python_config_dir+set}" = set; then
5117  withval=$with_python_config_dir;  vi_cv_path_python_conf="${withval}"
5118fi
5119
5120
5121      { $as_echo "$as_me:$LINENO: checking Python's configuration directory" >&5
5122$as_echo_n "checking Python's configuration directory... " >&6; }
5123if test "${vi_cv_path_python_conf+set}" = set; then
5124  $as_echo_n "(cached) " >&6
5125else
5126
5127	vi_cv_path_python_conf=
5128	for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5129	  for subdir in lib64 lib share; do
5130	    d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5131	    if test -d "$d" && test -f "$d/config.c"; then
5132	      vi_cv_path_python_conf="$d"
5133	    fi
5134	  done
5135	done
5136
5137fi
5138{ $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
5139$as_echo "$vi_cv_path_python_conf" >&6; }
5140
5141      PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5142
5143      if test "X$PYTHON_CONFDIR" = "X"; then
5144	{ $as_echo "$as_me:$LINENO: result: can't find it!" >&5
5145$as_echo "can't find it!" >&6; }
5146      else
5147
5148			if test "${vi_cv_path_python_plibs+set}" = set; then
5149  $as_echo_n "(cached) " >&6
5150else
5151
5152	    pwd=`pwd`
5153	    tmp_mkf="$pwd/config-PyMake$$"
5154	    cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5155__:
5156	@echo "python_MODLIBS='$(MODLIBS)'"
5157	@echo "python_LIBS='$(LIBS)'"
5158	@echo "python_SYSLIBS='$(SYSLIBS)'"
5159	@echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5160eof
5161	    	    eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
5162	    rm -f -- "${tmp_mkf}"
5163	    if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5164		"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5165	      vi_cv_path_python_plibs="-framework Python"
5166	    else
5167	      if test "${vi_cv_var_python_version}" = "1.4"; then
5168		  vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5169	      else
5170		  vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5171	      fi
5172	      vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5173	      	      vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
5174	    fi
5175
5176fi
5177
5178
5179	PYTHON_LIBS="${vi_cv_path_python_plibs}"
5180	if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5181	  PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
5182	else
5183	  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}"
5184	fi
5185	PYTHON_SRC="if_python.c"
5186		if test "x$MACOSX" = "xyes"; then
5187	  PYTHON_OBJ="objects/if_python.o"
5188	else
5189	  PYTHON_OBJ="objects/if_python.o objects/py_config.o"
5190	fi
5191	if test "${vi_cv_var_python_version}" = "1.4"; then
5192	   PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5193	fi
5194	PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5195
5196								{ $as_echo "$as_me:$LINENO: checking if -pthread should be used" >&5
5197$as_echo_n "checking if -pthread should be used... " >&6; }
5198	threadsafe_flag=
5199	thread_lib=
5200	        if test "`(uname) 2>/dev/null`" != Darwin; then
5201	  test "$GCC" = yes && threadsafe_flag="-pthread"
5202	  if test "`(uname) 2>/dev/null`" = FreeBSD; then
5203	    threadsafe_flag="-D_THREAD_SAFE"
5204	    thread_lib="-pthread"
5205	  fi
5206	fi
5207	libs_save_old=$LIBS
5208	if test -n "$threadsafe_flag"; then
5209	  cflags_save=$CFLAGS
5210	  CFLAGS="$CFLAGS $threadsafe_flag"
5211	  LIBS="$LIBS $thread_lib"
5212	  cat >conftest.$ac_ext <<_ACEOF
5213/* confdefs.h.  */
5214_ACEOF
5215cat confdefs.h >>conftest.$ac_ext
5216cat >>conftest.$ac_ext <<_ACEOF
5217/* end confdefs.h.  */
5218
5219int
5220main ()
5221{
5222
5223  ;
5224  return 0;
5225}
5226_ACEOF
5227rm -f conftest.$ac_objext conftest$ac_exeext
5228if { (ac_try="$ac_link"
5229case "(($ac_try" in
5230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5231  *) ac_try_echo=$ac_try;;
5232esac
5233eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5234$as_echo "$ac_try_echo") >&5
5235  (eval "$ac_link") 2>conftest.er1
5236  ac_status=$?
5237  grep -v '^ *+' conftest.er1 >conftest.err
5238  rm -f conftest.er1
5239  cat conftest.err >&5
5240  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241  (exit $ac_status); } && {
5242	 test -z "$ac_c_werror_flag" ||
5243	 test ! -s conftest.err
5244       } && test -s conftest$ac_exeext && {
5245	 test "$cross_compiling" = yes ||
5246	 $as_test_x conftest$ac_exeext
5247       }; then
5248  { $as_echo "$as_me:$LINENO: result: yes" >&5
5249$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
5250else
5251  $as_echo "$as_me: failed program was:" >&5
5252sed 's/^/| /' conftest.$ac_ext >&5
5253
5254	{ $as_echo "$as_me:$LINENO: result: no" >&5
5255$as_echo "no" >&6; }; LIBS=$libs_save_old
5256
5257fi
5258
5259rm -rf conftest.dSYM
5260rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5261      conftest$ac_exeext conftest.$ac_ext
5262	  CFLAGS=$cflags_save
5263	else
5264	  { $as_echo "$as_me:$LINENO: result: no" >&5
5265$as_echo "no" >&6; }
5266	fi
5267
5268			{ $as_echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
5269$as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
5270	cflags_save=$CFLAGS
5271	libs_save=$LIBS
5272	CFLAGS="$CFLAGS $PYTHON_CFLAGS"
5273	LIBS="$LIBS $PYTHON_LIBS"
5274	cat >conftest.$ac_ext <<_ACEOF
5275/* confdefs.h.  */
5276_ACEOF
5277cat confdefs.h >>conftest.$ac_ext
5278cat >>conftest.$ac_ext <<_ACEOF
5279/* end confdefs.h.  */
5280
5281int
5282main ()
5283{
5284
5285  ;
5286  return 0;
5287}
5288_ACEOF
5289rm -f conftest.$ac_objext conftest$ac_exeext
5290if { (ac_try="$ac_link"
5291case "(($ac_try" in
5292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5293  *) ac_try_echo=$ac_try;;
5294esac
5295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5296$as_echo "$ac_try_echo") >&5
5297  (eval "$ac_link") 2>conftest.er1
5298  ac_status=$?
5299  grep -v '^ *+' conftest.er1 >conftest.err
5300  rm -f conftest.er1
5301  cat conftest.err >&5
5302  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303  (exit $ac_status); } && {
5304	 test -z "$ac_c_werror_flag" ||
5305	 test ! -s conftest.err
5306       } && test -s conftest$ac_exeext && {
5307	 test "$cross_compiling" = yes ||
5308	 $as_test_x conftest$ac_exeext
5309       }; then
5310  { $as_echo "$as_me:$LINENO: result: yes" >&5
5311$as_echo "yes" >&6; }; python_ok=yes
5312else
5313  $as_echo "$as_me: failed program was:" >&5
5314sed 's/^/| /' conftest.$ac_ext >&5
5315
5316	{ $as_echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
5317$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
5318fi
5319
5320rm -rf conftest.dSYM
5321rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5322      conftest$ac_exeext conftest.$ac_ext
5323	CFLAGS=$cflags_save
5324	LIBS=$libs_save
5325	if test $python_ok = yes; then
5326	  cat >>confdefs.h <<\_ACEOF
5327#define FEAT_PYTHON 1
5328_ACEOF
5329
5330	else
5331	  LIBS=$libs_save_old
5332	  PYTHON_SRC=
5333	  PYTHON_OBJ=
5334	  PYTHON_LIBS=
5335	  PYTHON_CFLAGS=
5336	fi
5337
5338      fi
5339    else
5340      { $as_echo "$as_me:$LINENO: result: too old" >&5
5341$as_echo "too old" >&6; }
5342    fi
5343  fi
5344fi
5345
5346
5347
5348
5349
5350
5351
5352{ $as_echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
5353$as_echo_n "checking --enable-tclinterp argument... " >&6; }
5354# Check whether --enable-tclinterp was given.
5355if test "${enable_tclinterp+set}" = set; then
5356  enableval=$enable_tclinterp;
5357else
5358  enable_tclinterp="no"
5359fi
5360
5361{ $as_echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
5362$as_echo "$enable_tclinterp" >&6; }
5363
5364if test "$enable_tclinterp" = "yes"; then
5365
5366    { $as_echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
5367$as_echo_n "checking --with-tclsh argument... " >&6; }
5368
5369# Check whether --with-tclsh was given.
5370if test "${with_tclsh+set}" = set; then
5371  withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:$LINENO: result: $tclsh_name" >&5
5372$as_echo "$tclsh_name" >&6; }
5373else
5374  tclsh_name="tclsh8.5"; { $as_echo "$as_me:$LINENO: result: no" >&5
5375$as_echo "no" >&6; }
5376fi
5377
5378  # Extract the first word of "$tclsh_name", so it can be a program name with args.
5379set dummy $tclsh_name; ac_word=$2
5380{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5381$as_echo_n "checking for $ac_word... " >&6; }
5382if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5383  $as_echo_n "(cached) " >&6
5384else
5385  case $vi_cv_path_tcl in
5386  [\\/]* | ?:[\\/]*)
5387  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5388  ;;
5389  *)
5390  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391for as_dir in $PATH
5392do
5393  IFS=$as_save_IFS
5394  test -z "$as_dir" && as_dir=.
5395  for ac_exec_ext in '' $ac_executable_extensions; do
5396  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5397    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5398    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5399    break 2
5400  fi
5401done
5402done
5403IFS=$as_save_IFS
5404
5405  ;;
5406esac
5407fi
5408vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5409if test -n "$vi_cv_path_tcl"; then
5410  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5411$as_echo "$vi_cv_path_tcl" >&6; }
5412else
5413  { $as_echo "$as_me:$LINENO: result: no" >&5
5414$as_echo "no" >&6; }
5415fi
5416
5417
5418
5419
5420    if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
5421    tclsh_name="tclsh8.4"
5422    # Extract the first word of "$tclsh_name", so it can be a program name with args.
5423set dummy $tclsh_name; ac_word=$2
5424{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5425$as_echo_n "checking for $ac_word... " >&6; }
5426if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5427  $as_echo_n "(cached) " >&6
5428else
5429  case $vi_cv_path_tcl in
5430  [\\/]* | ?:[\\/]*)
5431  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5432  ;;
5433  *)
5434  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435for as_dir in $PATH
5436do
5437  IFS=$as_save_IFS
5438  test -z "$as_dir" && as_dir=.
5439  for ac_exec_ext in '' $ac_executable_extensions; do
5440  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5441    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5442    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5443    break 2
5444  fi
5445done
5446done
5447IFS=$as_save_IFS
5448
5449  ;;
5450esac
5451fi
5452vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5453if test -n "$vi_cv_path_tcl"; then
5454  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5455$as_echo "$vi_cv_path_tcl" >&6; }
5456else
5457  { $as_echo "$as_me:$LINENO: result: no" >&5
5458$as_echo "no" >&6; }
5459fi
5460
5461
5462  fi
5463  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
5464    tclsh_name="tclsh8.2"
5465    # Extract the first word of "$tclsh_name", so it can be a program name with args.
5466set dummy $tclsh_name; ac_word=$2
5467{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5468$as_echo_n "checking for $ac_word... " >&6; }
5469if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5470  $as_echo_n "(cached) " >&6
5471else
5472  case $vi_cv_path_tcl in
5473  [\\/]* | ?:[\\/]*)
5474  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5475  ;;
5476  *)
5477  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478for as_dir in $PATH
5479do
5480  IFS=$as_save_IFS
5481  test -z "$as_dir" && as_dir=.
5482  for ac_exec_ext in '' $ac_executable_extensions; do
5483  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5484    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5485    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5486    break 2
5487  fi
5488done
5489done
5490IFS=$as_save_IFS
5491
5492  ;;
5493esac
5494fi
5495vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5496if test -n "$vi_cv_path_tcl"; then
5497  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5498$as_echo "$vi_cv_path_tcl" >&6; }
5499else
5500  { $as_echo "$as_me:$LINENO: result: no" >&5
5501$as_echo "no" >&6; }
5502fi
5503
5504
5505  fi
5506  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
5507    tclsh_name="tclsh8.0"
5508    # Extract the first word of "$tclsh_name", so it can be a program name with args.
5509set dummy $tclsh_name; ac_word=$2
5510{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5511$as_echo_n "checking for $ac_word... " >&6; }
5512if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5513  $as_echo_n "(cached) " >&6
5514else
5515  case $vi_cv_path_tcl in
5516  [\\/]* | ?:[\\/]*)
5517  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5518  ;;
5519  *)
5520  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521for as_dir in $PATH
5522do
5523  IFS=$as_save_IFS
5524  test -z "$as_dir" && as_dir=.
5525  for ac_exec_ext in '' $ac_executable_extensions; do
5526  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5527    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5528    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5529    break 2
5530  fi
5531done
5532done
5533IFS=$as_save_IFS
5534
5535  ;;
5536esac
5537fi
5538vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5539if test -n "$vi_cv_path_tcl"; then
5540  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5541$as_echo "$vi_cv_path_tcl" >&6; }
5542else
5543  { $as_echo "$as_me:$LINENO: result: no" >&5
5544$as_echo "no" >&6; }
5545fi
5546
5547
5548  fi
5549    if test "X$vi_cv_path_tcl" = "X"; then
5550    tclsh_name="tclsh"
5551    # Extract the first word of "$tclsh_name", so it can be a program name with args.
5552set dummy $tclsh_name; ac_word=$2
5553{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5554$as_echo_n "checking for $ac_word... " >&6; }
5555if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5556  $as_echo_n "(cached) " >&6
5557else
5558  case $vi_cv_path_tcl in
5559  [\\/]* | ?:[\\/]*)
5560  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5561  ;;
5562  *)
5563  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564for as_dir in $PATH
5565do
5566  IFS=$as_save_IFS
5567  test -z "$as_dir" && as_dir=.
5568  for ac_exec_ext in '' $ac_executable_extensions; do
5569  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5570    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5571    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5572    break 2
5573  fi
5574done
5575done
5576IFS=$as_save_IFS
5577
5578  ;;
5579esac
5580fi
5581vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5582if test -n "$vi_cv_path_tcl"; then
5583  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5584$as_echo "$vi_cv_path_tcl" >&6; }
5585else
5586  { $as_echo "$as_me:$LINENO: result: no" >&5
5587$as_echo "no" >&6; }
5588fi
5589
5590
5591  fi
5592  if test "X$vi_cv_path_tcl" != "X"; then
5593    { $as_echo "$as_me:$LINENO: checking Tcl version" >&5
5594$as_echo_n "checking Tcl version... " >&6; }
5595    if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
5596      tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
5597      { $as_echo "$as_me:$LINENO: result: $tclver - OK" >&5
5598$as_echo "$tclver - OK" >&6; };
5599      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 -`
5600
5601      { $as_echo "$as_me:$LINENO: checking for location of Tcl include" >&5
5602$as_echo_n "checking for location of Tcl include... " >&6; }
5603      if test "x$MACOSX" != "xyes"; then
5604	tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
5605      else
5606		tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
5607      fi
5608      TCL_INC=
5609      for try in $tclinc; do
5610	if test -f "$try/tcl.h"; then
5611	  { $as_echo "$as_me:$LINENO: result: $try/tcl.h" >&5
5612$as_echo "$try/tcl.h" >&6; }
5613	  TCL_INC=$try
5614	  break
5615	fi
5616      done
5617      if test -z "$TCL_INC"; then
5618	{ $as_echo "$as_me:$LINENO: result: <not found>" >&5
5619$as_echo "<not found>" >&6; }
5620	SKIP_TCL=YES
5621      fi
5622      if test -z "$SKIP_TCL"; then
5623	{ $as_echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
5624$as_echo_n "checking for location of tclConfig.sh script... " >&6; }
5625	if test "x$MACOSX" != "xyes"; then
5626	  tclcnf=`echo $tclinc | sed s/include/lib/g`
5627	  tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
5628	else
5629	  	  tclcnf="/System/Library/Frameworks/Tcl.framework"
5630	fi
5631	for try in $tclcnf; do
5632	  if test -f $try/tclConfig.sh; then
5633	    { $as_echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
5634$as_echo "$try/tclConfig.sh" >&6; }
5635	    . $try/tclConfig.sh
5636	    	    TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
5637	    	    	    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'`
5638	    break
5639	  fi
5640	done
5641	if test -z "$TCL_LIBS"; then
5642	  { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5643$as_echo "<not found>" >&6; }
5644	  { $as_echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
5645$as_echo_n "checking for Tcl library by myself... " >&6; }
5646	  tcllib=`echo $tclinc | sed s/include/lib/g`
5647	  tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
5648	  for ext in .so .a ; do
5649	    for ver in "" $tclver ; do
5650	      for try in $tcllib ; do
5651		trylib=tcl$ver$ext
5652		if test -f $try/lib$trylib ; then
5653		  { $as_echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
5654$as_echo "$try/lib$trylib" >&6; }
5655		  TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
5656		  if test "`(uname) 2>/dev/null`" = SunOS &&
5657					 uname -r | grep '^5' >/dev/null; then
5658		    TCL_LIBS="$TCL_LIBS -R $try"
5659		  fi
5660		  break 3
5661		fi
5662	      done
5663	    done
5664	  done
5665	  if test -z "$TCL_LIBS"; then
5666	    { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5667$as_echo "<not found>" >&6; }
5668	    SKIP_TCL=YES
5669	  fi
5670	fi
5671	if test -z "$SKIP_TCL"; then
5672	  cat >>confdefs.h <<\_ACEOF
5673#define FEAT_TCL 1
5674_ACEOF
5675
5676	  TCL_SRC=if_tcl.c
5677	  TCL_OBJ=objects/if_tcl.o
5678	  TCL_PRO=if_tcl.pro
5679	  TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
5680	fi
5681      fi
5682    else
5683      { $as_echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
5684$as_echo "too old; need Tcl version 8.0 or later" >&6; }
5685    fi
5686  fi
5687fi
5688
5689
5690
5691
5692
5693
5694{ $as_echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
5695$as_echo_n "checking --enable-rubyinterp argument... " >&6; }
5696# Check whether --enable-rubyinterp was given.
5697if test "${enable_rubyinterp+set}" = set; then
5698  enableval=$enable_rubyinterp;
5699else
5700  enable_rubyinterp="no"
5701fi
5702
5703{ $as_echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
5704$as_echo "$enable_rubyinterp" >&6; }
5705if test "$enable_rubyinterp" = "yes"; then
5706
5707  # Extract the first word of "ruby", so it can be a program name with args.
5708set dummy ruby; ac_word=$2
5709{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5710$as_echo_n "checking for $ac_word... " >&6; }
5711if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
5712  $as_echo_n "(cached) " >&6
5713else
5714  case $vi_cv_path_ruby in
5715  [\\/]* | ?:[\\/]*)
5716  ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
5717  ;;
5718  *)
5719  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720for as_dir in $PATH
5721do
5722  IFS=$as_save_IFS
5723  test -z "$as_dir" && as_dir=.
5724  for ac_exec_ext in '' $ac_executable_extensions; do
5725  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5726    ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
5727    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5728    break 2
5729  fi
5730done
5731done
5732IFS=$as_save_IFS
5733
5734  ;;
5735esac
5736fi
5737vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
5738if test -n "$vi_cv_path_ruby"; then
5739  { $as_echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
5740$as_echo "$vi_cv_path_ruby" >&6; }
5741else
5742  { $as_echo "$as_me:$LINENO: result: no" >&5
5743$as_echo "no" >&6; }
5744fi
5745
5746
5747  if test "X$vi_cv_path_ruby" != "X"; then
5748    { $as_echo "$as_me:$LINENO: checking Ruby version" >&5
5749$as_echo_n "checking Ruby version... " >&6; }
5750    if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
5751      { $as_echo "$as_me:$LINENO: result: OK" >&5
5752$as_echo "OK" >&6; }
5753      { $as_echo "$as_me:$LINENO: checking Ruby header files" >&5
5754$as_echo_n "checking Ruby header files... " >&6; }
5755      rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
5756      if test "X$rubyhdrdir" != "X"; then
5757	{ $as_echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
5758$as_echo "$rubyhdrdir" >&6; }
5759	RUBY_CFLAGS="-I$rubyhdrdir"
5760	rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
5761	if test "X$rubylibs" != "X"; then
5762	  RUBY_LIBS="$rubylibs"
5763	fi
5764	librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
5765	if test -f "$rubyhdrdir/$librubyarg"; then
5766	  librubyarg="$rubyhdrdir/$librubyarg"
5767	else
5768	  rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
5769	  if test -f "$rubylibdir/$librubyarg"; then
5770	    librubyarg="$rubylibdir/$librubyarg"
5771	  elif test "$librubyarg" = "libruby.a"; then
5772	    	    librubyarg="-lruby"
5773	  else
5774	    librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
5775	  fi
5776	fi
5777
5778	if test "X$librubyarg" != "X"; then
5779	  RUBY_LIBS="$librubyarg $RUBY_LIBS"
5780	fi
5781	rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
5782	if test "X$rubyldflags" != "X"; then
5783	  	  	  	  rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//'`
5784	  if test "X$rubyldflags" != "X"; then
5785	    LDFLAGS="$rubyldflags $LDFLAGS"
5786	  fi
5787	fi
5788	RUBY_SRC="if_ruby.c"
5789	RUBY_OBJ="objects/if_ruby.o"
5790	RUBY_PRO="if_ruby.pro"
5791	cat >>confdefs.h <<\_ACEOF
5792#define FEAT_RUBY 1
5793_ACEOF
5794
5795      else
5796	{ $as_echo "$as_me:$LINENO: result: not found" >&5
5797$as_echo "not found" >&6; }
5798      fi
5799    else
5800      { $as_echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
5801$as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
5802    fi
5803  fi
5804fi
5805
5806
5807
5808
5809
5810
5811{ $as_echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
5812$as_echo_n "checking --enable-cscope argument... " >&6; }
5813# Check whether --enable-cscope was given.
5814if test "${enable_cscope+set}" = set; then
5815  enableval=$enable_cscope;
5816else
5817  enable_cscope="no"
5818fi
5819
5820{ $as_echo "$as_me:$LINENO: result: $enable_cscope" >&5
5821$as_echo "$enable_cscope" >&6; }
5822if test "$enable_cscope" = "yes"; then
5823  cat >>confdefs.h <<\_ACEOF
5824#define FEAT_CSCOPE 1
5825_ACEOF
5826
5827fi
5828
5829{ $as_echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
5830$as_echo_n "checking --enable-workshop argument... " >&6; }
5831# Check whether --enable-workshop was given.
5832if test "${enable_workshop+set}" = set; then
5833  enableval=$enable_workshop;
5834else
5835  enable_workshop="no"
5836fi
5837
5838{ $as_echo "$as_me:$LINENO: result: $enable_workshop" >&5
5839$as_echo "$enable_workshop" >&6; }
5840if test "$enable_workshop" = "yes"; then
5841  cat >>confdefs.h <<\_ACEOF
5842#define FEAT_SUN_WORKSHOP 1
5843_ACEOF
5844
5845  WORKSHOP_SRC="workshop.c integration.c"
5846
5847  WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5848
5849  if test "${enable_gui-xxx}" = xxx; then
5850    enable_gui=motif
5851  fi
5852fi
5853
5854{ $as_echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
5855$as_echo_n "checking --disable-netbeans argument... " >&6; }
5856# Check whether --enable-netbeans was given.
5857if test "${enable_netbeans+set}" = set; then
5858  enableval=$enable_netbeans;
5859else
5860  enable_netbeans="yes"
5861fi
5862
5863if test "$enable_netbeans" = "yes"; then
5864  { $as_echo "$as_me:$LINENO: result: no" >&5
5865$as_echo "no" >&6; }
5866
5867{ $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5868$as_echo_n "checking for socket in -lsocket... " >&6; }
5869if test "${ac_cv_lib_socket_socket+set}" = set; then
5870  $as_echo_n "(cached) " >&6
5871else
5872  ac_check_lib_save_LIBS=$LIBS
5873LIBS="-lsocket  $LIBS"
5874cat >conftest.$ac_ext <<_ACEOF
5875/* confdefs.h.  */
5876_ACEOF
5877cat confdefs.h >>conftest.$ac_ext
5878cat >>conftest.$ac_ext <<_ACEOF
5879/* end confdefs.h.  */
5880
5881/* Override any GCC internal prototype to avoid an error.
5882   Use char because int might match the return type of a GCC
5883   builtin and then its argument prototype would still apply.  */
5884#ifdef __cplusplus
5885extern "C"
5886#endif
5887char socket ();
5888int
5889main ()
5890{
5891return socket ();
5892  ;
5893  return 0;
5894}
5895_ACEOF
5896rm -f conftest.$ac_objext conftest$ac_exeext
5897if { (ac_try="$ac_link"
5898case "(($ac_try" in
5899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5900  *) ac_try_echo=$ac_try;;
5901esac
5902eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5903$as_echo "$ac_try_echo") >&5
5904  (eval "$ac_link") 2>conftest.er1
5905  ac_status=$?
5906  grep -v '^ *+' conftest.er1 >conftest.err
5907  rm -f conftest.er1
5908  cat conftest.err >&5
5909  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910  (exit $ac_status); } && {
5911	 test -z "$ac_c_werror_flag" ||
5912	 test ! -s conftest.err
5913       } && test -s conftest$ac_exeext && {
5914	 test "$cross_compiling" = yes ||
5915	 $as_test_x conftest$ac_exeext
5916       }; then
5917  ac_cv_lib_socket_socket=yes
5918else
5919  $as_echo "$as_me: failed program was:" >&5
5920sed 's/^/| /' conftest.$ac_ext >&5
5921
5922	ac_cv_lib_socket_socket=no
5923fi
5924
5925rm -rf conftest.dSYM
5926rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5927      conftest$ac_exeext conftest.$ac_ext
5928LIBS=$ac_check_lib_save_LIBS
5929fi
5930{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5931$as_echo "$ac_cv_lib_socket_socket" >&6; }
5932if test "x$ac_cv_lib_socket_socket" = x""yes; then
5933  cat >>confdefs.h <<_ACEOF
5934#define HAVE_LIBSOCKET 1
5935_ACEOF
5936
5937  LIBS="-lsocket $LIBS"
5938
5939fi
5940
5941
5942{ $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5943$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5944if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5945  $as_echo_n "(cached) " >&6
5946else
5947  ac_check_lib_save_LIBS=$LIBS
5948LIBS="-lnsl  $LIBS"
5949cat >conftest.$ac_ext <<_ACEOF
5950/* confdefs.h.  */
5951_ACEOF
5952cat confdefs.h >>conftest.$ac_ext
5953cat >>conftest.$ac_ext <<_ACEOF
5954/* end confdefs.h.  */
5955
5956/* Override any GCC internal prototype to avoid an error.
5957   Use char because int might match the return type of a GCC
5958   builtin and then its argument prototype would still apply.  */
5959#ifdef __cplusplus
5960extern "C"
5961#endif
5962char gethostbyname ();
5963int
5964main ()
5965{
5966return gethostbyname ();
5967  ;
5968  return 0;
5969}
5970_ACEOF
5971rm -f conftest.$ac_objext conftest$ac_exeext
5972if { (ac_try="$ac_link"
5973case "(($ac_try" in
5974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5975  *) ac_try_echo=$ac_try;;
5976esac
5977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5978$as_echo "$ac_try_echo") >&5
5979  (eval "$ac_link") 2>conftest.er1
5980  ac_status=$?
5981  grep -v '^ *+' conftest.er1 >conftest.err
5982  rm -f conftest.er1
5983  cat conftest.err >&5
5984  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985  (exit $ac_status); } && {
5986	 test -z "$ac_c_werror_flag" ||
5987	 test ! -s conftest.err
5988       } && test -s conftest$ac_exeext && {
5989	 test "$cross_compiling" = yes ||
5990	 $as_test_x conftest$ac_exeext
5991       }; then
5992  ac_cv_lib_nsl_gethostbyname=yes
5993else
5994  $as_echo "$as_me: failed program was:" >&5
5995sed 's/^/| /' conftest.$ac_ext >&5
5996
5997	ac_cv_lib_nsl_gethostbyname=no
5998fi
5999
6000rm -rf conftest.dSYM
6001rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6002      conftest$ac_exeext conftest.$ac_ext
6003LIBS=$ac_check_lib_save_LIBS
6004fi
6005{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6006$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6007if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
6008  cat >>confdefs.h <<_ACEOF
6009#define HAVE_LIBNSL 1
6010_ACEOF
6011
6012  LIBS="-lnsl $LIBS"
6013
6014fi
6015
6016  { $as_echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
6017$as_echo_n "checking whether compiling netbeans integration is possible... " >&6; }
6018  cat >conftest.$ac_ext <<_ACEOF
6019/* confdefs.h.  */
6020_ACEOF
6021cat confdefs.h >>conftest.$ac_ext
6022cat >>conftest.$ac_ext <<_ACEOF
6023/* end confdefs.h.  */
6024
6025#include <stdio.h>
6026#include <stdlib.h>
6027#include <stdarg.h>
6028#include <fcntl.h>
6029#include <netdb.h>
6030#include <netinet/in.h>
6031#include <errno.h>
6032#include <sys/types.h>
6033#include <sys/socket.h>
6034	/* Check bitfields */
6035	struct nbbuf {
6036	unsigned int  initDone:1;
6037	ushort signmaplen;
6038	};
6039
6040int
6041main ()
6042{
6043
6044		/* Check creating a socket. */
6045		struct sockaddr_in server;
6046		(void)socket(AF_INET, SOCK_STREAM, 0);
6047		(void)htons(100);
6048		(void)gethostbyname("microsoft.com");
6049		if (errno == ECONNREFUSED)
6050		  (void)connect(1, (struct sockaddr *)&server, sizeof(server));
6051
6052  ;
6053  return 0;
6054}
6055_ACEOF
6056rm -f conftest.$ac_objext conftest$ac_exeext
6057if { (ac_try="$ac_link"
6058case "(($ac_try" in
6059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6060  *) ac_try_echo=$ac_try;;
6061esac
6062eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6063$as_echo "$ac_try_echo") >&5
6064  (eval "$ac_link") 2>conftest.er1
6065  ac_status=$?
6066  grep -v '^ *+' conftest.er1 >conftest.err
6067  rm -f conftest.er1
6068  cat conftest.err >&5
6069  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070  (exit $ac_status); } && {
6071	 test -z "$ac_c_werror_flag" ||
6072	 test ! -s conftest.err
6073       } && test -s conftest$ac_exeext && {
6074	 test "$cross_compiling" = yes ||
6075	 $as_test_x conftest$ac_exeext
6076       }; then
6077  { $as_echo "$as_me:$LINENO: result: yes" >&5
6078$as_echo "yes" >&6; }
6079else
6080  $as_echo "$as_me: failed program was:" >&5
6081sed 's/^/| /' conftest.$ac_ext >&5
6082
6083	{ $as_echo "$as_me:$LINENO: result: no" >&5
6084$as_echo "no" >&6; }; enable_netbeans="no"
6085fi
6086
6087rm -rf conftest.dSYM
6088rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6089      conftest$ac_exeext conftest.$ac_ext
6090else
6091  { $as_echo "$as_me:$LINENO: result: yes" >&5
6092$as_echo "yes" >&6; }
6093fi
6094if test "$enable_netbeans" = "yes"; then
6095  cat >>confdefs.h <<\_ACEOF
6096#define FEAT_NETBEANS_INTG 1
6097_ACEOF
6098
6099  NETBEANS_SRC="netbeans.c"
6100
6101  NETBEANS_OBJ="objects/netbeans.o"
6102
6103fi
6104
6105{ $as_echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
6106$as_echo_n "checking --enable-sniff argument... " >&6; }
6107# Check whether --enable-sniff was given.
6108if test "${enable_sniff+set}" = set; then
6109  enableval=$enable_sniff;
6110else
6111  enable_sniff="no"
6112fi
6113
6114{ $as_echo "$as_me:$LINENO: result: $enable_sniff" >&5
6115$as_echo "$enable_sniff" >&6; }
6116if test "$enable_sniff" = "yes"; then
6117  cat >>confdefs.h <<\_ACEOF
6118#define FEAT_SNIFF 1
6119_ACEOF
6120
6121  SNIFF_SRC="if_sniff.c"
6122
6123  SNIFF_OBJ="objects/if_sniff.o"
6124
6125fi
6126
6127{ $as_echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
6128$as_echo_n "checking --enable-multibyte argument... " >&6; }
6129# Check whether --enable-multibyte was given.
6130if test "${enable_multibyte+set}" = set; then
6131  enableval=$enable_multibyte;
6132else
6133  enable_multibyte="no"
6134fi
6135
6136{ $as_echo "$as_me:$LINENO: result: $enable_multibyte" >&5
6137$as_echo "$enable_multibyte" >&6; }
6138if test "$enable_multibyte" = "yes"; then
6139  cat >>confdefs.h <<\_ACEOF
6140#define FEAT_MBYTE 1
6141_ACEOF
6142
6143fi
6144
6145{ $as_echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
6146$as_echo_n "checking --enable-hangulinput argument... " >&6; }
6147# Check whether --enable-hangulinput was given.
6148if test "${enable_hangulinput+set}" = set; then
6149  enableval=$enable_hangulinput;
6150else
6151  enable_hangulinput="no"
6152fi
6153
6154{ $as_echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
6155$as_echo "$enable_hangulinput" >&6; }
6156
6157{ $as_echo "$as_me:$LINENO: checking --enable-xim argument" >&5
6158$as_echo_n "checking --enable-xim argument... " >&6; }
6159# Check whether --enable-xim was given.
6160if test "${enable_xim+set}" = set; then
6161  enableval=$enable_xim; { $as_echo "$as_me:$LINENO: result: $enable_xim" >&5
6162$as_echo "$enable_xim" >&6; }
6163else
6164  enable_xim="auto"; { $as_echo "$as_me:$LINENO: result: defaulting to auto" >&5
6165$as_echo "defaulting to auto" >&6; }
6166fi
6167
6168
6169{ $as_echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
6170$as_echo_n "checking --enable-fontset argument... " >&6; }
6171# Check whether --enable-fontset was given.
6172if test "${enable_fontset+set}" = set; then
6173  enableval=$enable_fontset;
6174else
6175  enable_fontset="no"
6176fi
6177
6178{ $as_echo "$as_me:$LINENO: result: $enable_fontset" >&5
6179$as_echo "$enable_fontset" >&6; }
6180
6181test -z "$with_x" && with_x=yes
6182test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
6183if test "$with_x" = no; then
6184  { $as_echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
6185$as_echo "defaulting to: don't HAVE_X11" >&6; }
6186else
6187
6188  # Extract the first word of "xmkmf", so it can be a program name with args.
6189set dummy xmkmf; ac_word=$2
6190{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6191$as_echo_n "checking for $ac_word... " >&6; }
6192if test "${ac_cv_path_xmkmfpath+set}" = set; then
6193  $as_echo_n "(cached) " >&6
6194else
6195  case $xmkmfpath in
6196  [\\/]* | ?:[\\/]*)
6197  ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
6198  ;;
6199  *)
6200  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201for as_dir in $PATH
6202do
6203  IFS=$as_save_IFS
6204  test -z "$as_dir" && as_dir=.
6205  for ac_exec_ext in '' $ac_executable_extensions; do
6206  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6207    ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
6208    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6209    break 2
6210  fi
6211done
6212done
6213IFS=$as_save_IFS
6214
6215  ;;
6216esac
6217fi
6218xmkmfpath=$ac_cv_path_xmkmfpath
6219if test -n "$xmkmfpath"; then
6220  { $as_echo "$as_me:$LINENO: result: $xmkmfpath" >&5
6221$as_echo "$xmkmfpath" >&6; }
6222else
6223  { $as_echo "$as_me:$LINENO: result: no" >&5
6224$as_echo "no" >&6; }
6225fi
6226
6227
6228
6229  { $as_echo "$as_me:$LINENO: checking for X" >&5
6230$as_echo_n "checking for X... " >&6; }
6231
6232
6233# Check whether --with-x was given.
6234if test "${with_x+set}" = set; then
6235  withval=$with_x;
6236fi
6237
6238# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6239if test "x$with_x" = xno; then
6240  # The user explicitly disabled X.
6241  have_x=disabled
6242else
6243  case $x_includes,$x_libraries in #(
6244    *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
6245$as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
6246   { (exit 1); exit 1; }; };; #(
6247    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
6248  $as_echo_n "(cached) " >&6
6249else
6250  # One or both of the vars are not set, and there is no cached value.
6251ac_x_includes=no ac_x_libraries=no
6252rm -f -r conftest.dir
6253if mkdir conftest.dir; then
6254  cd conftest.dir
6255  cat >Imakefile <<'_ACEOF'
6256incroot:
6257	@echo incroot='${INCROOT}'
6258usrlibdir:
6259	@echo usrlibdir='${USRLIBDIR}'
6260libdir:
6261	@echo libdir='${LIBDIR}'
6262_ACEOF
6263  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6264    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6265    for ac_var in incroot usrlibdir libdir; do
6266      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6267    done
6268    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6269    for ac_extension in a so sl dylib la dll; do
6270      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6271	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6272	ac_im_usrlibdir=$ac_im_libdir; break
6273      fi
6274    done
6275    # Screen out bogus values from the imake configuration.  They are
6276    # bogus both because they are the default anyway, and because
6277    # using them would break gcc on systems where it needs fixed includes.
6278    case $ac_im_incroot in
6279	/usr/include) ac_x_includes= ;;
6280	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6281    esac
6282    case $ac_im_usrlibdir in
6283	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
6284	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6285    esac
6286  fi
6287  cd ..
6288  rm -f -r conftest.dir
6289fi
6290
6291# Standard set of common directories for X headers.
6292# Check X11 before X11Rn because it is often a symlink to the current release.
6293ac_x_header_dirs='
6294/usr/X11/include
6295/usr/X11R6/include
6296/usr/X11R5/include
6297/usr/X11R4/include
6298
6299/usr/include/X11
6300/usr/include/X11R6
6301/usr/include/X11R5
6302/usr/include/X11R4
6303
6304/usr/local/X11/include
6305/usr/local/X11R6/include
6306/usr/local/X11R5/include
6307/usr/local/X11R4/include
6308
6309/usr/local/include/X11
6310/usr/local/include/X11R6
6311/usr/local/include/X11R5
6312/usr/local/include/X11R4
6313
6314/usr/X386/include
6315/usr/x386/include
6316/usr/XFree86/include/X11
6317
6318/usr/include
6319/usr/local/include
6320/usr/unsupported/include
6321/usr/athena/include
6322/usr/local/x11r5/include
6323/usr/lpp/Xamples/include
6324
6325/usr/openwin/include
6326/usr/openwin/share/include'
6327
6328if test "$ac_x_includes" = no; then
6329  # Guess where to find include files, by looking for Xlib.h.
6330  # First, try using that file with no special directory specified.
6331  cat >conftest.$ac_ext <<_ACEOF
6332/* confdefs.h.  */
6333_ACEOF
6334cat confdefs.h >>conftest.$ac_ext
6335cat >>conftest.$ac_ext <<_ACEOF
6336/* end confdefs.h.  */
6337#include <X11/Xlib.h>
6338_ACEOF
6339if { (ac_try="$ac_cpp conftest.$ac_ext"
6340case "(($ac_try" in
6341  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342  *) ac_try_echo=$ac_try;;
6343esac
6344eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6345$as_echo "$ac_try_echo") >&5
6346  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6347  ac_status=$?
6348  grep -v '^ *+' conftest.er1 >conftest.err
6349  rm -f conftest.er1
6350  cat conftest.err >&5
6351  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352  (exit $ac_status); } >/dev/null && {
6353	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6354	 test ! -s conftest.err
6355       }; then
6356  # We can compile using X headers with no special include directory.
6357ac_x_includes=
6358else
6359  $as_echo "$as_me: failed program was:" >&5
6360sed 's/^/| /' conftest.$ac_ext >&5
6361
6362  for ac_dir in $ac_x_header_dirs; do
6363  if test -r "$ac_dir/X11/Xlib.h"; then
6364    ac_x_includes=$ac_dir
6365    break
6366  fi
6367done
6368fi
6369
6370rm -f conftest.err conftest.$ac_ext
6371fi # $ac_x_includes = no
6372
6373if test "$ac_x_libraries" = no; then
6374  # Check for the libraries.
6375  # See if we find them without any special options.
6376  # Don't add to $LIBS permanently.
6377  ac_save_LIBS=$LIBS
6378  LIBS="-lX11 $LIBS"
6379  cat >conftest.$ac_ext <<_ACEOF
6380/* confdefs.h.  */
6381_ACEOF
6382cat confdefs.h >>conftest.$ac_ext
6383cat >>conftest.$ac_ext <<_ACEOF
6384/* end confdefs.h.  */
6385#include <X11/Xlib.h>
6386int
6387main ()
6388{
6389XrmInitialize ()
6390  ;
6391  return 0;
6392}
6393_ACEOF
6394rm -f conftest.$ac_objext conftest$ac_exeext
6395if { (ac_try="$ac_link"
6396case "(($ac_try" in
6397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398  *) ac_try_echo=$ac_try;;
6399esac
6400eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6401$as_echo "$ac_try_echo") >&5
6402  (eval "$ac_link") 2>conftest.er1
6403  ac_status=$?
6404  grep -v '^ *+' conftest.er1 >conftest.err
6405  rm -f conftest.er1
6406  cat conftest.err >&5
6407  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408  (exit $ac_status); } && {
6409	 test -z "$ac_c_werror_flag" ||
6410	 test ! -s conftest.err
6411       } && test -s conftest$ac_exeext && {
6412	 test "$cross_compiling" = yes ||
6413	 $as_test_x conftest$ac_exeext
6414       }; then
6415  LIBS=$ac_save_LIBS
6416# We can link X programs with no special library path.
6417ac_x_libraries=
6418else
6419  $as_echo "$as_me: failed program was:" >&5
6420sed 's/^/| /' conftest.$ac_ext >&5
6421
6422	LIBS=$ac_save_LIBS
6423for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6424do
6425  # Don't even attempt the hair of trying to link an X program!
6426  for ac_extension in a so sl dylib la dll; do
6427    if test -r "$ac_dir/libX11.$ac_extension"; then
6428      ac_x_libraries=$ac_dir
6429      break 2
6430    fi
6431  done
6432done
6433fi
6434
6435rm -rf conftest.dSYM
6436rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6437      conftest$ac_exeext conftest.$ac_ext
6438fi # $ac_x_libraries = no
6439
6440case $ac_x_includes,$ac_x_libraries in #(
6441  no,* | *,no | *\'*)
6442    # Didn't find X, or a directory has "'" in its name.
6443    ac_cv_have_x="have_x=no";; #(
6444  *)
6445    # Record where we found X for the cache.
6446    ac_cv_have_x="have_x=yes\
6447	ac_x_includes='$ac_x_includes'\
6448	ac_x_libraries='$ac_x_libraries'"
6449esac
6450fi
6451;; #(
6452    *) have_x=yes;;
6453  esac
6454  eval "$ac_cv_have_x"
6455fi # $with_x != no
6456
6457if test "$have_x" != yes; then
6458  { $as_echo "$as_me:$LINENO: result: $have_x" >&5
6459$as_echo "$have_x" >&6; }
6460  no_x=yes
6461else
6462  # If each of the values was on the command line, it overrides each guess.
6463  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6464  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6465  # Update the cache value to reflect the command line values.
6466  ac_cv_have_x="have_x=yes\
6467	ac_x_includes='$x_includes'\
6468	ac_x_libraries='$x_libraries'"
6469  { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6470$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6471fi
6472
6473if test "$no_x" = yes; then
6474  # Not all programs may use this symbol, but it does not hurt to define it.
6475
6476cat >>confdefs.h <<\_ACEOF
6477#define X_DISPLAY_MISSING 1
6478_ACEOF
6479
6480  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6481else
6482  if test -n "$x_includes"; then
6483    X_CFLAGS="$X_CFLAGS -I$x_includes"
6484  fi
6485
6486  # It would also be nice to do this for all -L options, not just this one.
6487  if test -n "$x_libraries"; then
6488    X_LIBS="$X_LIBS -L$x_libraries"
6489    # For Solaris; some versions of Sun CC require a space after -R and
6490    # others require no space.  Words are not sufficient . . . .
6491    { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6492$as_echo_n "checking whether -R must be followed by a space... " >&6; }
6493    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6494    ac_xsave_c_werror_flag=$ac_c_werror_flag
6495    ac_c_werror_flag=yes
6496    cat >conftest.$ac_ext <<_ACEOF
6497/* confdefs.h.  */
6498_ACEOF
6499cat confdefs.h >>conftest.$ac_ext
6500cat >>conftest.$ac_ext <<_ACEOF
6501/* end confdefs.h.  */
6502
6503int
6504main ()
6505{
6506
6507  ;
6508  return 0;
6509}
6510_ACEOF
6511rm -f conftest.$ac_objext conftest$ac_exeext
6512if { (ac_try="$ac_link"
6513case "(($ac_try" in
6514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6515  *) ac_try_echo=$ac_try;;
6516esac
6517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6518$as_echo "$ac_try_echo") >&5
6519  (eval "$ac_link") 2>conftest.er1
6520  ac_status=$?
6521  grep -v '^ *+' conftest.er1 >conftest.err
6522  rm -f conftest.er1
6523  cat conftest.err >&5
6524  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525  (exit $ac_status); } && {
6526	 test -z "$ac_c_werror_flag" ||
6527	 test ! -s conftest.err
6528       } && test -s conftest$ac_exeext && {
6529	 test "$cross_compiling" = yes ||
6530	 $as_test_x conftest$ac_exeext
6531       }; then
6532  { $as_echo "$as_me:$LINENO: result: no" >&5
6533$as_echo "no" >&6; }
6534       X_LIBS="$X_LIBS -R$x_libraries"
6535else
6536  $as_echo "$as_me: failed program was:" >&5
6537sed 's/^/| /' conftest.$ac_ext >&5
6538
6539	LIBS="$ac_xsave_LIBS -R $x_libraries"
6540       cat >conftest.$ac_ext <<_ACEOF
6541/* confdefs.h.  */
6542_ACEOF
6543cat confdefs.h >>conftest.$ac_ext
6544cat >>conftest.$ac_ext <<_ACEOF
6545/* end confdefs.h.  */
6546
6547int
6548main ()
6549{
6550
6551  ;
6552  return 0;
6553}
6554_ACEOF
6555rm -f conftest.$ac_objext conftest$ac_exeext
6556if { (ac_try="$ac_link"
6557case "(($ac_try" in
6558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6559  *) ac_try_echo=$ac_try;;
6560esac
6561eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6562$as_echo "$ac_try_echo") >&5
6563  (eval "$ac_link") 2>conftest.er1
6564  ac_status=$?
6565  grep -v '^ *+' conftest.er1 >conftest.err
6566  rm -f conftest.er1
6567  cat conftest.err >&5
6568  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569  (exit $ac_status); } && {
6570	 test -z "$ac_c_werror_flag" ||
6571	 test ! -s conftest.err
6572       } && test -s conftest$ac_exeext && {
6573	 test "$cross_compiling" = yes ||
6574	 $as_test_x conftest$ac_exeext
6575       }; then
6576  { $as_echo "$as_me:$LINENO: result: yes" >&5
6577$as_echo "yes" >&6; }
6578	  X_LIBS="$X_LIBS -R $x_libraries"
6579else
6580  $as_echo "$as_me: failed program was:" >&5
6581sed 's/^/| /' conftest.$ac_ext >&5
6582
6583	{ $as_echo "$as_me:$LINENO: result: neither works" >&5
6584$as_echo "neither works" >&6; }
6585fi
6586
6587rm -rf conftest.dSYM
6588rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6589      conftest$ac_exeext conftest.$ac_ext
6590fi
6591
6592rm -rf conftest.dSYM
6593rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6594      conftest$ac_exeext conftest.$ac_ext
6595    ac_c_werror_flag=$ac_xsave_c_werror_flag
6596    LIBS=$ac_xsave_LIBS
6597  fi
6598
6599  # Check for system-dependent libraries X programs must link with.
6600  # Do this before checking for the system-independent R6 libraries
6601  # (-lICE), since we may need -lsocket or whatever for X linking.
6602
6603  if test "$ISC" = yes; then
6604    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6605  else
6606    # Martyn Johnson says this is needed for Ultrix, if the X
6607    # libraries were built with DECnet support.  And Karl Berry says
6608    # the Alpha needs dnet_stub (dnet does not exist).
6609    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6610    cat >conftest.$ac_ext <<_ACEOF
6611/* confdefs.h.  */
6612_ACEOF
6613cat confdefs.h >>conftest.$ac_ext
6614cat >>conftest.$ac_ext <<_ACEOF
6615/* end confdefs.h.  */
6616
6617/* Override any GCC internal prototype to avoid an error.
6618   Use char because int might match the return type of a GCC
6619   builtin and then its argument prototype would still apply.  */
6620#ifdef __cplusplus
6621extern "C"
6622#endif
6623char XOpenDisplay ();
6624int
6625main ()
6626{
6627return XOpenDisplay ();
6628  ;
6629  return 0;
6630}
6631_ACEOF
6632rm -f conftest.$ac_objext conftest$ac_exeext
6633if { (ac_try="$ac_link"
6634case "(($ac_try" in
6635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636  *) ac_try_echo=$ac_try;;
6637esac
6638eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6639$as_echo "$ac_try_echo") >&5
6640  (eval "$ac_link") 2>conftest.er1
6641  ac_status=$?
6642  grep -v '^ *+' conftest.er1 >conftest.err
6643  rm -f conftest.er1
6644  cat conftest.err >&5
6645  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646  (exit $ac_status); } && {
6647	 test -z "$ac_c_werror_flag" ||
6648	 test ! -s conftest.err
6649       } && test -s conftest$ac_exeext && {
6650	 test "$cross_compiling" = yes ||
6651	 $as_test_x conftest$ac_exeext
6652       }; then
6653  :
6654else
6655  $as_echo "$as_me: failed program was:" >&5
6656sed 's/^/| /' conftest.$ac_ext >&5
6657
6658	{ $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6659$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6660if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6661  $as_echo_n "(cached) " >&6
6662else
6663  ac_check_lib_save_LIBS=$LIBS
6664LIBS="-ldnet  $LIBS"
6665cat >conftest.$ac_ext <<_ACEOF
6666/* confdefs.h.  */
6667_ACEOF
6668cat confdefs.h >>conftest.$ac_ext
6669cat >>conftest.$ac_ext <<_ACEOF
6670/* end confdefs.h.  */
6671
6672/* Override any GCC internal prototype to avoid an error.
6673   Use char because int might match the return type of a GCC
6674   builtin and then its argument prototype would still apply.  */
6675#ifdef __cplusplus
6676extern "C"
6677#endif
6678char dnet_ntoa ();
6679int
6680main ()
6681{
6682return dnet_ntoa ();
6683  ;
6684  return 0;
6685}
6686_ACEOF
6687rm -f conftest.$ac_objext conftest$ac_exeext
6688if { (ac_try="$ac_link"
6689case "(($ac_try" in
6690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6691  *) ac_try_echo=$ac_try;;
6692esac
6693eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6694$as_echo "$ac_try_echo") >&5
6695  (eval "$ac_link") 2>conftest.er1
6696  ac_status=$?
6697  grep -v '^ *+' conftest.er1 >conftest.err
6698  rm -f conftest.er1
6699  cat conftest.err >&5
6700  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701  (exit $ac_status); } && {
6702	 test -z "$ac_c_werror_flag" ||
6703	 test ! -s conftest.err
6704       } && test -s conftest$ac_exeext && {
6705	 test "$cross_compiling" = yes ||
6706	 $as_test_x conftest$ac_exeext
6707       }; then
6708  ac_cv_lib_dnet_dnet_ntoa=yes
6709else
6710  $as_echo "$as_me: failed program was:" >&5
6711sed 's/^/| /' conftest.$ac_ext >&5
6712
6713	ac_cv_lib_dnet_dnet_ntoa=no
6714fi
6715
6716rm -rf conftest.dSYM
6717rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6718      conftest$ac_exeext conftest.$ac_ext
6719LIBS=$ac_check_lib_save_LIBS
6720fi
6721{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6722$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6723if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
6724  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6725fi
6726
6727    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6728      { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6729$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6730if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6731  $as_echo_n "(cached) " >&6
6732else
6733  ac_check_lib_save_LIBS=$LIBS
6734LIBS="-ldnet_stub  $LIBS"
6735cat >conftest.$ac_ext <<_ACEOF
6736/* confdefs.h.  */
6737_ACEOF
6738cat confdefs.h >>conftest.$ac_ext
6739cat >>conftest.$ac_ext <<_ACEOF
6740/* end confdefs.h.  */
6741
6742/* Override any GCC internal prototype to avoid an error.
6743   Use char because int might match the return type of a GCC
6744   builtin and then its argument prototype would still apply.  */
6745#ifdef __cplusplus
6746extern "C"
6747#endif
6748char dnet_ntoa ();
6749int
6750main ()
6751{
6752return dnet_ntoa ();
6753  ;
6754  return 0;
6755}
6756_ACEOF
6757rm -f conftest.$ac_objext conftest$ac_exeext
6758if { (ac_try="$ac_link"
6759case "(($ac_try" in
6760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6761  *) ac_try_echo=$ac_try;;
6762esac
6763eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6764$as_echo "$ac_try_echo") >&5
6765  (eval "$ac_link") 2>conftest.er1
6766  ac_status=$?
6767  grep -v '^ *+' conftest.er1 >conftest.err
6768  rm -f conftest.er1
6769  cat conftest.err >&5
6770  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771  (exit $ac_status); } && {
6772	 test -z "$ac_c_werror_flag" ||
6773	 test ! -s conftest.err
6774       } && test -s conftest$ac_exeext && {
6775	 test "$cross_compiling" = yes ||
6776	 $as_test_x conftest$ac_exeext
6777       }; then
6778  ac_cv_lib_dnet_stub_dnet_ntoa=yes
6779else
6780  $as_echo "$as_me: failed program was:" >&5
6781sed 's/^/| /' conftest.$ac_ext >&5
6782
6783	ac_cv_lib_dnet_stub_dnet_ntoa=no
6784fi
6785
6786rm -rf conftest.dSYM
6787rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6788      conftest$ac_exeext conftest.$ac_ext
6789LIBS=$ac_check_lib_save_LIBS
6790fi
6791{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6792$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6793if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
6794  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6795fi
6796
6797    fi
6798fi
6799
6800rm -rf conftest.dSYM
6801rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6802      conftest$ac_exeext conftest.$ac_ext
6803    LIBS="$ac_xsave_LIBS"
6804
6805    # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
6806    # to get the SysV transport functions.
6807    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6808    # needs -lnsl.
6809    # The nsl library prevents programs from opening the X display
6810    # on Irix 5.2, according to T.E. Dickey.
6811    # The functions gethostbyname, getservbyname, and inet_addr are
6812    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6813    { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
6814$as_echo_n "checking for gethostbyname... " >&6; }
6815if test "${ac_cv_func_gethostbyname+set}" = set; then
6816  $as_echo_n "(cached) " >&6
6817else
6818  cat >conftest.$ac_ext <<_ACEOF
6819/* confdefs.h.  */
6820_ACEOF
6821cat confdefs.h >>conftest.$ac_ext
6822cat >>conftest.$ac_ext <<_ACEOF
6823/* end confdefs.h.  */
6824/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6825   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6826#define gethostbyname innocuous_gethostbyname
6827
6828/* System header to define __stub macros and hopefully few prototypes,
6829    which can conflict with char gethostbyname (); below.
6830    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6831    <limits.h> exists even on freestanding compilers.  */
6832
6833#ifdef __STDC__
6834# include <limits.h>
6835#else
6836# include <assert.h>
6837#endif
6838
6839#undef gethostbyname
6840
6841/* Override any GCC internal prototype to avoid an error.
6842   Use char because int might match the return type of a GCC
6843   builtin and then its argument prototype would still apply.  */
6844#ifdef __cplusplus
6845extern "C"
6846#endif
6847char gethostbyname ();
6848/* The GNU C library defines this for functions which it implements
6849    to always fail with ENOSYS.  Some functions are actually named
6850    something starting with __ and the normal name is an alias.  */
6851#if defined __stub_gethostbyname || defined __stub___gethostbyname
6852choke me
6853#endif
6854
6855int
6856main ()
6857{
6858return gethostbyname ();
6859  ;
6860  return 0;
6861}
6862_ACEOF
6863rm -f conftest.$ac_objext conftest$ac_exeext
6864if { (ac_try="$ac_link"
6865case "(($ac_try" in
6866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6867  *) ac_try_echo=$ac_try;;
6868esac
6869eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6870$as_echo "$ac_try_echo") >&5
6871  (eval "$ac_link") 2>conftest.er1
6872  ac_status=$?
6873  grep -v '^ *+' conftest.er1 >conftest.err
6874  rm -f conftest.er1
6875  cat conftest.err >&5
6876  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877  (exit $ac_status); } && {
6878	 test -z "$ac_c_werror_flag" ||
6879	 test ! -s conftest.err
6880       } && test -s conftest$ac_exeext && {
6881	 test "$cross_compiling" = yes ||
6882	 $as_test_x conftest$ac_exeext
6883       }; then
6884  ac_cv_func_gethostbyname=yes
6885else
6886  $as_echo "$as_me: failed program was:" >&5
6887sed 's/^/| /' conftest.$ac_ext >&5
6888
6889	ac_cv_func_gethostbyname=no
6890fi
6891
6892rm -rf conftest.dSYM
6893rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6894      conftest$ac_exeext conftest.$ac_ext
6895fi
6896{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6897$as_echo "$ac_cv_func_gethostbyname" >&6; }
6898
6899    if test $ac_cv_func_gethostbyname = no; then
6900      { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6901$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6902if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6903  $as_echo_n "(cached) " >&6
6904else
6905  ac_check_lib_save_LIBS=$LIBS
6906LIBS="-lnsl  $LIBS"
6907cat >conftest.$ac_ext <<_ACEOF
6908/* confdefs.h.  */
6909_ACEOF
6910cat confdefs.h >>conftest.$ac_ext
6911cat >>conftest.$ac_ext <<_ACEOF
6912/* end confdefs.h.  */
6913
6914/* Override any GCC internal prototype to avoid an error.
6915   Use char because int might match the return type of a GCC
6916   builtin and then its argument prototype would still apply.  */
6917#ifdef __cplusplus
6918extern "C"
6919#endif
6920char gethostbyname ();
6921int
6922main ()
6923{
6924return gethostbyname ();
6925  ;
6926  return 0;
6927}
6928_ACEOF
6929rm -f conftest.$ac_objext conftest$ac_exeext
6930if { (ac_try="$ac_link"
6931case "(($ac_try" in
6932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6933  *) ac_try_echo=$ac_try;;
6934esac
6935eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6936$as_echo "$ac_try_echo") >&5
6937  (eval "$ac_link") 2>conftest.er1
6938  ac_status=$?
6939  grep -v '^ *+' conftest.er1 >conftest.err
6940  rm -f conftest.er1
6941  cat conftest.err >&5
6942  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943  (exit $ac_status); } && {
6944	 test -z "$ac_c_werror_flag" ||
6945	 test ! -s conftest.err
6946       } && test -s conftest$ac_exeext && {
6947	 test "$cross_compiling" = yes ||
6948	 $as_test_x conftest$ac_exeext
6949       }; then
6950  ac_cv_lib_nsl_gethostbyname=yes
6951else
6952  $as_echo "$as_me: failed program was:" >&5
6953sed 's/^/| /' conftest.$ac_ext >&5
6954
6955	ac_cv_lib_nsl_gethostbyname=no
6956fi
6957
6958rm -rf conftest.dSYM
6959rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6960      conftest$ac_exeext conftest.$ac_ext
6961LIBS=$ac_check_lib_save_LIBS
6962fi
6963{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6964$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6965if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
6966  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6967fi
6968
6969      if test $ac_cv_lib_nsl_gethostbyname = no; then
6970	{ $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6971$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6972if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6973  $as_echo_n "(cached) " >&6
6974else
6975  ac_check_lib_save_LIBS=$LIBS
6976LIBS="-lbsd  $LIBS"
6977cat >conftest.$ac_ext <<_ACEOF
6978/* confdefs.h.  */
6979_ACEOF
6980cat confdefs.h >>conftest.$ac_ext
6981cat >>conftest.$ac_ext <<_ACEOF
6982/* end confdefs.h.  */
6983
6984/* Override any GCC internal prototype to avoid an error.
6985   Use char because int might match the return type of a GCC
6986   builtin and then its argument prototype would still apply.  */
6987#ifdef __cplusplus
6988extern "C"
6989#endif
6990char gethostbyname ();
6991int
6992main ()
6993{
6994return gethostbyname ();
6995  ;
6996  return 0;
6997}
6998_ACEOF
6999rm -f conftest.$ac_objext conftest$ac_exeext
7000if { (ac_try="$ac_link"
7001case "(($ac_try" in
7002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7003  *) ac_try_echo=$ac_try;;
7004esac
7005eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7006$as_echo "$ac_try_echo") >&5
7007  (eval "$ac_link") 2>conftest.er1
7008  ac_status=$?
7009  grep -v '^ *+' conftest.er1 >conftest.err
7010  rm -f conftest.er1
7011  cat conftest.err >&5
7012  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013  (exit $ac_status); } && {
7014	 test -z "$ac_c_werror_flag" ||
7015	 test ! -s conftest.err
7016       } && test -s conftest$ac_exeext && {
7017	 test "$cross_compiling" = yes ||
7018	 $as_test_x conftest$ac_exeext
7019       }; then
7020  ac_cv_lib_bsd_gethostbyname=yes
7021else
7022  $as_echo "$as_me: failed program was:" >&5
7023sed 's/^/| /' conftest.$ac_ext >&5
7024
7025	ac_cv_lib_bsd_gethostbyname=no
7026fi
7027
7028rm -rf conftest.dSYM
7029rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7030      conftest$ac_exeext conftest.$ac_ext
7031LIBS=$ac_check_lib_save_LIBS
7032fi
7033{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7034$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7035if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
7036  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7037fi
7038
7039      fi
7040    fi
7041
7042    # [email protected] says without -lsocket,
7043    # socket/setsockopt and other routines are undefined under SCO ODT
7044    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7045    # on later versions), says Simon Leinen: it contains gethostby*
7046    # variants that don't use the name server (or something).  -lsocket
7047    # must be given before -lnsl if both are needed.  We assume that
7048    # if connect needs -lnsl, so does gethostbyname.
7049    { $as_echo "$as_me:$LINENO: checking for connect" >&5
7050$as_echo_n "checking for connect... " >&6; }
7051if test "${ac_cv_func_connect+set}" = set; then
7052  $as_echo_n "(cached) " >&6
7053else
7054  cat >conftest.$ac_ext <<_ACEOF
7055/* confdefs.h.  */
7056_ACEOF
7057cat confdefs.h >>conftest.$ac_ext
7058cat >>conftest.$ac_ext <<_ACEOF
7059/* end confdefs.h.  */
7060/* Define connect to an innocuous variant, in case <limits.h> declares connect.
7061   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7062#define connect innocuous_connect
7063
7064/* System header to define __stub macros and hopefully few prototypes,
7065    which can conflict with char connect (); below.
7066    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7067    <limits.h> exists even on freestanding compilers.  */
7068
7069#ifdef __STDC__
7070# include <limits.h>
7071#else
7072# include <assert.h>
7073#endif
7074
7075#undef connect
7076
7077/* Override any GCC internal prototype to avoid an error.
7078   Use char because int might match the return type of a GCC
7079   builtin and then its argument prototype would still apply.  */
7080#ifdef __cplusplus
7081extern "C"
7082#endif
7083char connect ();
7084/* The GNU C library defines this for functions which it implements
7085    to always fail with ENOSYS.  Some functions are actually named
7086    something starting with __ and the normal name is an alias.  */
7087#if defined __stub_connect || defined __stub___connect
7088choke me
7089#endif
7090
7091int
7092main ()
7093{
7094return connect ();
7095  ;
7096  return 0;
7097}
7098_ACEOF
7099rm -f conftest.$ac_objext conftest$ac_exeext
7100if { (ac_try="$ac_link"
7101case "(($ac_try" in
7102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7103  *) ac_try_echo=$ac_try;;
7104esac
7105eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7106$as_echo "$ac_try_echo") >&5
7107  (eval "$ac_link") 2>conftest.er1
7108  ac_status=$?
7109  grep -v '^ *+' conftest.er1 >conftest.err
7110  rm -f conftest.er1
7111  cat conftest.err >&5
7112  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113  (exit $ac_status); } && {
7114	 test -z "$ac_c_werror_flag" ||
7115	 test ! -s conftest.err
7116       } && test -s conftest$ac_exeext && {
7117	 test "$cross_compiling" = yes ||
7118	 $as_test_x conftest$ac_exeext
7119       }; then
7120  ac_cv_func_connect=yes
7121else
7122  $as_echo "$as_me: failed program was:" >&5
7123sed 's/^/| /' conftest.$ac_ext >&5
7124
7125	ac_cv_func_connect=no
7126fi
7127
7128rm -rf conftest.dSYM
7129rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7130      conftest$ac_exeext conftest.$ac_ext
7131fi
7132{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7133$as_echo "$ac_cv_func_connect" >&6; }
7134
7135    if test $ac_cv_func_connect = no; then
7136      { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7137$as_echo_n "checking for connect in -lsocket... " >&6; }
7138if test "${ac_cv_lib_socket_connect+set}" = set; then
7139  $as_echo_n "(cached) " >&6
7140else
7141  ac_check_lib_save_LIBS=$LIBS
7142LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7143cat >conftest.$ac_ext <<_ACEOF
7144/* confdefs.h.  */
7145_ACEOF
7146cat confdefs.h >>conftest.$ac_ext
7147cat >>conftest.$ac_ext <<_ACEOF
7148/* end confdefs.h.  */
7149
7150/* Override any GCC internal prototype to avoid an error.
7151   Use char because int might match the return type of a GCC
7152   builtin and then its argument prototype would still apply.  */
7153#ifdef __cplusplus
7154extern "C"
7155#endif
7156char connect ();
7157int
7158main ()
7159{
7160return connect ();
7161  ;
7162  return 0;
7163}
7164_ACEOF
7165rm -f conftest.$ac_objext conftest$ac_exeext
7166if { (ac_try="$ac_link"
7167case "(($ac_try" in
7168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7169  *) ac_try_echo=$ac_try;;
7170esac
7171eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7172$as_echo "$ac_try_echo") >&5
7173  (eval "$ac_link") 2>conftest.er1
7174  ac_status=$?
7175  grep -v '^ *+' conftest.er1 >conftest.err
7176  rm -f conftest.er1
7177  cat conftest.err >&5
7178  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179  (exit $ac_status); } && {
7180	 test -z "$ac_c_werror_flag" ||
7181	 test ! -s conftest.err
7182       } && test -s conftest$ac_exeext && {
7183	 test "$cross_compiling" = yes ||
7184	 $as_test_x conftest$ac_exeext
7185       }; then
7186  ac_cv_lib_socket_connect=yes
7187else
7188  $as_echo "$as_me: failed program was:" >&5
7189sed 's/^/| /' conftest.$ac_ext >&5
7190
7191	ac_cv_lib_socket_connect=no
7192fi
7193
7194rm -rf conftest.dSYM
7195rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7196      conftest$ac_exeext conftest.$ac_ext
7197LIBS=$ac_check_lib_save_LIBS
7198fi
7199{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7200$as_echo "$ac_cv_lib_socket_connect" >&6; }
7201if test "x$ac_cv_lib_socket_connect" = x""yes; then
7202  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7203fi
7204
7205    fi
7206
7207    # Guillermo Gomez says -lposix is necessary on A/UX.
7208    { $as_echo "$as_me:$LINENO: checking for remove" >&5
7209$as_echo_n "checking for remove... " >&6; }
7210if test "${ac_cv_func_remove+set}" = set; then
7211  $as_echo_n "(cached) " >&6
7212else
7213  cat >conftest.$ac_ext <<_ACEOF
7214/* confdefs.h.  */
7215_ACEOF
7216cat confdefs.h >>conftest.$ac_ext
7217cat >>conftest.$ac_ext <<_ACEOF
7218/* end confdefs.h.  */
7219/* Define remove to an innocuous variant, in case <limits.h> declares remove.
7220   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7221#define remove innocuous_remove
7222
7223/* System header to define __stub macros and hopefully few prototypes,
7224    which can conflict with char remove (); below.
7225    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7226    <limits.h> exists even on freestanding compilers.  */
7227
7228#ifdef __STDC__
7229# include <limits.h>
7230#else
7231# include <assert.h>
7232#endif
7233
7234#undef remove
7235
7236/* Override any GCC internal prototype to avoid an error.
7237   Use char because int might match the return type of a GCC
7238   builtin and then its argument prototype would still apply.  */
7239#ifdef __cplusplus
7240extern "C"
7241#endif
7242char remove ();
7243/* The GNU C library defines this for functions which it implements
7244    to always fail with ENOSYS.  Some functions are actually named
7245    something starting with __ and the normal name is an alias.  */
7246#if defined __stub_remove || defined __stub___remove
7247choke me
7248#endif
7249
7250int
7251main ()
7252{
7253return remove ();
7254  ;
7255  return 0;
7256}
7257_ACEOF
7258rm -f conftest.$ac_objext conftest$ac_exeext
7259if { (ac_try="$ac_link"
7260case "(($ac_try" in
7261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7262  *) ac_try_echo=$ac_try;;
7263esac
7264eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7265$as_echo "$ac_try_echo") >&5
7266  (eval "$ac_link") 2>conftest.er1
7267  ac_status=$?
7268  grep -v '^ *+' conftest.er1 >conftest.err
7269  rm -f conftest.er1
7270  cat conftest.err >&5
7271  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272  (exit $ac_status); } && {
7273	 test -z "$ac_c_werror_flag" ||
7274	 test ! -s conftest.err
7275       } && test -s conftest$ac_exeext && {
7276	 test "$cross_compiling" = yes ||
7277	 $as_test_x conftest$ac_exeext
7278       }; then
7279  ac_cv_func_remove=yes
7280else
7281  $as_echo "$as_me: failed program was:" >&5
7282sed 's/^/| /' conftest.$ac_ext >&5
7283
7284	ac_cv_func_remove=no
7285fi
7286
7287rm -rf conftest.dSYM
7288rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7289      conftest$ac_exeext conftest.$ac_ext
7290fi
7291{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7292$as_echo "$ac_cv_func_remove" >&6; }
7293
7294    if test $ac_cv_func_remove = no; then
7295      { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7296$as_echo_n "checking for remove in -lposix... " >&6; }
7297if test "${ac_cv_lib_posix_remove+set}" = set; then
7298  $as_echo_n "(cached) " >&6
7299else
7300  ac_check_lib_save_LIBS=$LIBS
7301LIBS="-lposix  $LIBS"
7302cat >conftest.$ac_ext <<_ACEOF
7303/* confdefs.h.  */
7304_ACEOF
7305cat confdefs.h >>conftest.$ac_ext
7306cat >>conftest.$ac_ext <<_ACEOF
7307/* end confdefs.h.  */
7308
7309/* Override any GCC internal prototype to avoid an error.
7310   Use char because int might match the return type of a GCC
7311   builtin and then its argument prototype would still apply.  */
7312#ifdef __cplusplus
7313extern "C"
7314#endif
7315char remove ();
7316int
7317main ()
7318{
7319return remove ();
7320  ;
7321  return 0;
7322}
7323_ACEOF
7324rm -f conftest.$ac_objext conftest$ac_exeext
7325if { (ac_try="$ac_link"
7326case "(($ac_try" in
7327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7328  *) ac_try_echo=$ac_try;;
7329esac
7330eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7331$as_echo "$ac_try_echo") >&5
7332  (eval "$ac_link") 2>conftest.er1
7333  ac_status=$?
7334  grep -v '^ *+' conftest.er1 >conftest.err
7335  rm -f conftest.er1
7336  cat conftest.err >&5
7337  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338  (exit $ac_status); } && {
7339	 test -z "$ac_c_werror_flag" ||
7340	 test ! -s conftest.err
7341       } && test -s conftest$ac_exeext && {
7342	 test "$cross_compiling" = yes ||
7343	 $as_test_x conftest$ac_exeext
7344       }; then
7345  ac_cv_lib_posix_remove=yes
7346else
7347  $as_echo "$as_me: failed program was:" >&5
7348sed 's/^/| /' conftest.$ac_ext >&5
7349
7350	ac_cv_lib_posix_remove=no
7351fi
7352
7353rm -rf conftest.dSYM
7354rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7355      conftest$ac_exeext conftest.$ac_ext
7356LIBS=$ac_check_lib_save_LIBS
7357fi
7358{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7359$as_echo "$ac_cv_lib_posix_remove" >&6; }
7360if test "x$ac_cv_lib_posix_remove" = x""yes; then
7361  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7362fi
7363
7364    fi
7365
7366    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7367    { $as_echo "$as_me:$LINENO: checking for shmat" >&5
7368$as_echo_n "checking for shmat... " >&6; }
7369if test "${ac_cv_func_shmat+set}" = set; then
7370  $as_echo_n "(cached) " >&6
7371else
7372  cat >conftest.$ac_ext <<_ACEOF
7373/* confdefs.h.  */
7374_ACEOF
7375cat confdefs.h >>conftest.$ac_ext
7376cat >>conftest.$ac_ext <<_ACEOF
7377/* end confdefs.h.  */
7378/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7379   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7380#define shmat innocuous_shmat
7381
7382/* System header to define __stub macros and hopefully few prototypes,
7383    which can conflict with char shmat (); below.
7384    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7385    <limits.h> exists even on freestanding compilers.  */
7386
7387#ifdef __STDC__
7388# include <limits.h>
7389#else
7390# include <assert.h>
7391#endif
7392
7393#undef shmat
7394
7395/* Override any GCC internal prototype to avoid an error.
7396   Use char because int might match the return type of a GCC
7397   builtin and then its argument prototype would still apply.  */
7398#ifdef __cplusplus
7399extern "C"
7400#endif
7401char shmat ();
7402/* The GNU C library defines this for functions which it implements
7403    to always fail with ENOSYS.  Some functions are actually named
7404    something starting with __ and the normal name is an alias.  */
7405#if defined __stub_shmat || defined __stub___shmat
7406choke me
7407#endif
7408
7409int
7410main ()
7411{
7412return shmat ();
7413  ;
7414  return 0;
7415}
7416_ACEOF
7417rm -f conftest.$ac_objext conftest$ac_exeext
7418if { (ac_try="$ac_link"
7419case "(($ac_try" in
7420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7421  *) ac_try_echo=$ac_try;;
7422esac
7423eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7424$as_echo "$ac_try_echo") >&5
7425  (eval "$ac_link") 2>conftest.er1
7426  ac_status=$?
7427  grep -v '^ *+' conftest.er1 >conftest.err
7428  rm -f conftest.er1
7429  cat conftest.err >&5
7430  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431  (exit $ac_status); } && {
7432	 test -z "$ac_c_werror_flag" ||
7433	 test ! -s conftest.err
7434       } && test -s conftest$ac_exeext && {
7435	 test "$cross_compiling" = yes ||
7436	 $as_test_x conftest$ac_exeext
7437       }; then
7438  ac_cv_func_shmat=yes
7439else
7440  $as_echo "$as_me: failed program was:" >&5
7441sed 's/^/| /' conftest.$ac_ext >&5
7442
7443	ac_cv_func_shmat=no
7444fi
7445
7446rm -rf conftest.dSYM
7447rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7448      conftest$ac_exeext conftest.$ac_ext
7449fi
7450{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7451$as_echo "$ac_cv_func_shmat" >&6; }
7452
7453    if test $ac_cv_func_shmat = no; then
7454      { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7455$as_echo_n "checking for shmat in -lipc... " >&6; }
7456if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7457  $as_echo_n "(cached) " >&6
7458else
7459  ac_check_lib_save_LIBS=$LIBS
7460LIBS="-lipc  $LIBS"
7461cat >conftest.$ac_ext <<_ACEOF
7462/* confdefs.h.  */
7463_ACEOF
7464cat confdefs.h >>conftest.$ac_ext
7465cat >>conftest.$ac_ext <<_ACEOF
7466/* end confdefs.h.  */
7467
7468/* Override any GCC internal prototype to avoid an error.
7469   Use char because int might match the return type of a GCC
7470   builtin and then its argument prototype would still apply.  */
7471#ifdef __cplusplus
7472extern "C"
7473#endif
7474char shmat ();
7475int
7476main ()
7477{
7478return shmat ();
7479  ;
7480  return 0;
7481}
7482_ACEOF
7483rm -f conftest.$ac_objext conftest$ac_exeext
7484if { (ac_try="$ac_link"
7485case "(($ac_try" in
7486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7487  *) ac_try_echo=$ac_try;;
7488esac
7489eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7490$as_echo "$ac_try_echo") >&5
7491  (eval "$ac_link") 2>conftest.er1
7492  ac_status=$?
7493  grep -v '^ *+' conftest.er1 >conftest.err
7494  rm -f conftest.er1
7495  cat conftest.err >&5
7496  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497  (exit $ac_status); } && {
7498	 test -z "$ac_c_werror_flag" ||
7499	 test ! -s conftest.err
7500       } && test -s conftest$ac_exeext && {
7501	 test "$cross_compiling" = yes ||
7502	 $as_test_x conftest$ac_exeext
7503       }; then
7504  ac_cv_lib_ipc_shmat=yes
7505else
7506  $as_echo "$as_me: failed program was:" >&5
7507sed 's/^/| /' conftest.$ac_ext >&5
7508
7509	ac_cv_lib_ipc_shmat=no
7510fi
7511
7512rm -rf conftest.dSYM
7513rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7514      conftest$ac_exeext conftest.$ac_ext
7515LIBS=$ac_check_lib_save_LIBS
7516fi
7517{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7518$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7519if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
7520  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7521fi
7522
7523    fi
7524  fi
7525
7526  # Check for libraries that X11R6 Xt/Xaw programs need.
7527  ac_save_LDFLAGS=$LDFLAGS
7528  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7529  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7530  # check for ICE first), but we must link in the order -lSM -lICE or
7531  # we get undefined symbols.  So assume we have SM if we have ICE.
7532  # These have to be linked with before -lX11, unlike the other
7533  # libraries we check for below, so use a different variable.
7534  # John Interrante, Karl Berry
7535  { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7536$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7537if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7538  $as_echo_n "(cached) " >&6
7539else
7540  ac_check_lib_save_LIBS=$LIBS
7541LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7542cat >conftest.$ac_ext <<_ACEOF
7543/* confdefs.h.  */
7544_ACEOF
7545cat confdefs.h >>conftest.$ac_ext
7546cat >>conftest.$ac_ext <<_ACEOF
7547/* end confdefs.h.  */
7548
7549/* Override any GCC internal prototype to avoid an error.
7550   Use char because int might match the return type of a GCC
7551   builtin and then its argument prototype would still apply.  */
7552#ifdef __cplusplus
7553extern "C"
7554#endif
7555char IceConnectionNumber ();
7556int
7557main ()
7558{
7559return IceConnectionNumber ();
7560  ;
7561  return 0;
7562}
7563_ACEOF
7564rm -f conftest.$ac_objext conftest$ac_exeext
7565if { (ac_try="$ac_link"
7566case "(($ac_try" in
7567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7568  *) ac_try_echo=$ac_try;;
7569esac
7570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7571$as_echo "$ac_try_echo") >&5
7572  (eval "$ac_link") 2>conftest.er1
7573  ac_status=$?
7574  grep -v '^ *+' conftest.er1 >conftest.err
7575  rm -f conftest.er1
7576  cat conftest.err >&5
7577  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578  (exit $ac_status); } && {
7579	 test -z "$ac_c_werror_flag" ||
7580	 test ! -s conftest.err
7581       } && test -s conftest$ac_exeext && {
7582	 test "$cross_compiling" = yes ||
7583	 $as_test_x conftest$ac_exeext
7584       }; then
7585  ac_cv_lib_ICE_IceConnectionNumber=yes
7586else
7587  $as_echo "$as_me: failed program was:" >&5
7588sed 's/^/| /' conftest.$ac_ext >&5
7589
7590	ac_cv_lib_ICE_IceConnectionNumber=no
7591fi
7592
7593rm -rf conftest.dSYM
7594rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7595      conftest$ac_exeext conftest.$ac_ext
7596LIBS=$ac_check_lib_save_LIBS
7597fi
7598{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7599$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7600if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
7601  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7602fi
7603
7604  LDFLAGS=$ac_save_LDFLAGS
7605
7606fi
7607
7608
7609        if test "$OS390Unix" = "yes"; then
7610    CFLAGS="$CFLAGS -W c,dll"
7611    LDFLAGS="$LDFLAGS -W l,dll"
7612    X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
7613  fi
7614
7615
7616  if test -d "$x_includes" && test ! -d "$x_libraries"; then
7617    x_libraries=`echo "$x_includes" | sed s/include/lib/`
7618    { $as_echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
7619$as_echo "Corrected X libraries to $x_libraries" >&6; }
7620    X_LIBS="$X_LIBS -L$x_libraries"
7621    if test "`(uname) 2>/dev/null`" = SunOS &&
7622					 uname -r | grep '^5' >/dev/null; then
7623      X_LIBS="$X_LIBS -R $x_libraries"
7624    fi
7625  fi
7626
7627  if test -d "$x_libraries" && test ! -d "$x_includes"; then
7628    x_includes=`echo "$x_libraries" | sed s/lib/include/`
7629    { $as_echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
7630$as_echo "Corrected X includes to $x_includes" >&6; }
7631    X_CFLAGS="$X_CFLAGS -I$x_includes"
7632  fi
7633
7634    X_CFLAGS="`echo $X_CFLAGS\  | sed 's%-I/usr/include %%'`"
7635    X_LIBS="`echo $X_LIBS\  | sed 's%-L/usr/lib %%'`"
7636    X_LIBS="`echo $X_LIBS\  | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
7637
7638
7639        { $as_echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
7640$as_echo_n "checking if X11 header files can be found... " >&6; }
7641  cflags_save=$CFLAGS
7642  CFLAGS="$CFLAGS $X_CFLAGS"
7643  cat >conftest.$ac_ext <<_ACEOF
7644/* confdefs.h.  */
7645_ACEOF
7646cat confdefs.h >>conftest.$ac_ext
7647cat >>conftest.$ac_ext <<_ACEOF
7648/* end confdefs.h.  */
7649#include <X11/Xlib.h>
7650#include <X11/Intrinsic.h>
7651int
7652main ()
7653{
7654
7655  ;
7656  return 0;
7657}
7658_ACEOF
7659rm -f conftest.$ac_objext
7660if { (ac_try="$ac_compile"
7661case "(($ac_try" in
7662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7663  *) ac_try_echo=$ac_try;;
7664esac
7665eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7666$as_echo "$ac_try_echo") >&5
7667  (eval "$ac_compile") 2>conftest.er1
7668  ac_status=$?
7669  grep -v '^ *+' conftest.er1 >conftest.err
7670  rm -f conftest.er1
7671  cat conftest.err >&5
7672  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673  (exit $ac_status); } && {
7674	 test -z "$ac_c_werror_flag" ||
7675	 test ! -s conftest.err
7676       } && test -s conftest.$ac_objext; then
7677  { $as_echo "$as_me:$LINENO: result: yes" >&5
7678$as_echo "yes" >&6; }
7679else
7680  $as_echo "$as_me: failed program was:" >&5
7681sed 's/^/| /' conftest.$ac_ext >&5
7682
7683	{ $as_echo "$as_me:$LINENO: result: no" >&5
7684$as_echo "no" >&6; }; no_x=yes
7685fi
7686
7687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7688  CFLAGS=$cflags_save
7689
7690  if test "${no_x-no}" = yes; then
7691    with_x=no
7692  else
7693    cat >>confdefs.h <<\_ACEOF
7694#define HAVE_X11 1
7695_ACEOF
7696
7697    X_LIB="-lXt -lX11";
7698
7699
7700    ac_save_LDFLAGS="$LDFLAGS"
7701    LDFLAGS="-L$x_libraries $LDFLAGS"
7702
7703            { $as_echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
7704$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
7705if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
7706  $as_echo_n "(cached) " >&6
7707else
7708  ac_check_lib_save_LIBS=$LIBS
7709LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
7710cat >conftest.$ac_ext <<_ACEOF
7711/* confdefs.h.  */
7712_ACEOF
7713cat confdefs.h >>conftest.$ac_ext
7714cat >>conftest.$ac_ext <<_ACEOF
7715/* end confdefs.h.  */
7716
7717/* Override any GCC internal prototype to avoid an error.
7718   Use char because int might match the return type of a GCC
7719   builtin and then its argument prototype would still apply.  */
7720#ifdef __cplusplus
7721extern "C"
7722#endif
7723char _XdmcpAuthDoIt ();
7724int
7725main ()
7726{
7727return _XdmcpAuthDoIt ();
7728  ;
7729  return 0;
7730}
7731_ACEOF
7732rm -f conftest.$ac_objext conftest$ac_exeext
7733if { (ac_try="$ac_link"
7734case "(($ac_try" in
7735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7736  *) ac_try_echo=$ac_try;;
7737esac
7738eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7739$as_echo "$ac_try_echo") >&5
7740  (eval "$ac_link") 2>conftest.er1
7741  ac_status=$?
7742  grep -v '^ *+' conftest.er1 >conftest.err
7743  rm -f conftest.er1
7744  cat conftest.err >&5
7745  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746  (exit $ac_status); } && {
7747	 test -z "$ac_c_werror_flag" ||
7748	 test ! -s conftest.err
7749       } && test -s conftest$ac_exeext && {
7750	 test "$cross_compiling" = yes ||
7751	 $as_test_x conftest$ac_exeext
7752       }; then
7753  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
7754else
7755  $as_echo "$as_me: failed program was:" >&5
7756sed 's/^/| /' conftest.$ac_ext >&5
7757
7758	ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
7759fi
7760
7761rm -rf conftest.dSYM
7762rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7763      conftest$ac_exeext conftest.$ac_ext
7764LIBS=$ac_check_lib_save_LIBS
7765fi
7766{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
7767$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
7768if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = x""yes; then
7769  X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
7770fi
7771
7772
7773                    { $as_echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
7774$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
7775if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
7776  $as_echo_n "(cached) " >&6
7777else
7778  ac_check_lib_save_LIBS=$LIBS
7779LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7780cat >conftest.$ac_ext <<_ACEOF
7781/* confdefs.h.  */
7782_ACEOF
7783cat confdefs.h >>conftest.$ac_ext
7784cat >>conftest.$ac_ext <<_ACEOF
7785/* end confdefs.h.  */
7786
7787/* Override any GCC internal prototype to avoid an error.
7788   Use char because int might match the return type of a GCC
7789   builtin and then its argument prototype would still apply.  */
7790#ifdef __cplusplus
7791extern "C"
7792#endif
7793char IceOpenConnection ();
7794int
7795main ()
7796{
7797return IceOpenConnection ();
7798  ;
7799  return 0;
7800}
7801_ACEOF
7802rm -f conftest.$ac_objext conftest$ac_exeext
7803if { (ac_try="$ac_link"
7804case "(($ac_try" in
7805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7806  *) ac_try_echo=$ac_try;;
7807esac
7808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7809$as_echo "$ac_try_echo") >&5
7810  (eval "$ac_link") 2>conftest.er1
7811  ac_status=$?
7812  grep -v '^ *+' conftest.er1 >conftest.err
7813  rm -f conftest.er1
7814  cat conftest.err >&5
7815  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816  (exit $ac_status); } && {
7817	 test -z "$ac_c_werror_flag" ||
7818	 test ! -s conftest.err
7819       } && test -s conftest$ac_exeext && {
7820	 test "$cross_compiling" = yes ||
7821	 $as_test_x conftest$ac_exeext
7822       }; then
7823  ac_cv_lib_ICE_IceOpenConnection=yes
7824else
7825  $as_echo "$as_me: failed program was:" >&5
7826sed 's/^/| /' conftest.$ac_ext >&5
7827
7828	ac_cv_lib_ICE_IceOpenConnection=no
7829fi
7830
7831rm -rf conftest.dSYM
7832rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7833      conftest$ac_exeext conftest.$ac_ext
7834LIBS=$ac_check_lib_save_LIBS
7835fi
7836{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
7837$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
7838if test "x$ac_cv_lib_ICE_IceOpenConnection" = x""yes; then
7839  X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
7840fi
7841
7842
7843        LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
7844    { $as_echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7845$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
7846if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7847  $as_echo_n "(cached) " >&6
7848else
7849  ac_check_lib_save_LIBS=$LIBS
7850LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7851cat >conftest.$ac_ext <<_ACEOF
7852/* confdefs.h.  */
7853_ACEOF
7854cat confdefs.h >>conftest.$ac_ext
7855cat >>conftest.$ac_ext <<_ACEOF
7856/* end confdefs.h.  */
7857
7858/* Override any GCC internal prototype to avoid an error.
7859   Use char because int might match the return type of a GCC
7860   builtin and then its argument prototype would still apply.  */
7861#ifdef __cplusplus
7862extern "C"
7863#endif
7864char XpmCreatePixmapFromData ();
7865int
7866main ()
7867{
7868return XpmCreatePixmapFromData ();
7869  ;
7870  return 0;
7871}
7872_ACEOF
7873rm -f conftest.$ac_objext conftest$ac_exeext
7874if { (ac_try="$ac_link"
7875case "(($ac_try" in
7876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877  *) ac_try_echo=$ac_try;;
7878esac
7879eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7880$as_echo "$ac_try_echo") >&5
7881  (eval "$ac_link") 2>conftest.er1
7882  ac_status=$?
7883  grep -v '^ *+' conftest.er1 >conftest.err
7884  rm -f conftest.er1
7885  cat conftest.err >&5
7886  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887  (exit $ac_status); } && {
7888	 test -z "$ac_c_werror_flag" ||
7889	 test ! -s conftest.err
7890       } && test -s conftest$ac_exeext && {
7891	 test "$cross_compiling" = yes ||
7892	 $as_test_x conftest$ac_exeext
7893       }; then
7894  ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
7895else
7896  $as_echo "$as_me: failed program was:" >&5
7897sed 's/^/| /' conftest.$ac_ext >&5
7898
7899	ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
7900fi
7901
7902rm -rf conftest.dSYM
7903rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7904      conftest$ac_exeext conftest.$ac_ext
7905LIBS=$ac_check_lib_save_LIBS
7906fi
7907{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7908$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
7909if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = x""yes; then
7910  X_PRE_LIBS="$X_PRE_LIBS -lXpm"
7911fi
7912
7913
7914        { $as_echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
7915$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
7916    cflags_save=$CFLAGS
7917    CFLAGS="$CFLAGS $X_CFLAGS -Werror"
7918    cat >conftest.$ac_ext <<_ACEOF
7919/* confdefs.h.  */
7920_ACEOF
7921cat confdefs.h >>conftest.$ac_ext
7922cat >>conftest.$ac_ext <<_ACEOF
7923/* end confdefs.h.  */
7924#include <X11/Xlib.h>
7925int
7926main ()
7927{
7928
7929  ;
7930  return 0;
7931}
7932_ACEOF
7933rm -f conftest.$ac_objext
7934if { (ac_try="$ac_compile"
7935case "(($ac_try" in
7936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7937  *) ac_try_echo=$ac_try;;
7938esac
7939eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7940$as_echo "$ac_try_echo") >&5
7941  (eval "$ac_compile") 2>conftest.er1
7942  ac_status=$?
7943  grep -v '^ *+' conftest.er1 >conftest.err
7944  rm -f conftest.er1
7945  cat conftest.err >&5
7946  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947  (exit $ac_status); } && {
7948	 test -z "$ac_c_werror_flag" ||
7949	 test ! -s conftest.err
7950       } && test -s conftest.$ac_objext; then
7951  { $as_echo "$as_me:$LINENO: result: no" >&5
7952$as_echo "no" >&6; }
7953else
7954  $as_echo "$as_me: failed program was:" >&5
7955sed 's/^/| /' conftest.$ac_ext >&5
7956
7957	CFLAGS="$CFLAGS -Wno-implicit-int"
7958	cat >conftest.$ac_ext <<_ACEOF
7959/* confdefs.h.  */
7960_ACEOF
7961cat confdefs.h >>conftest.$ac_ext
7962cat >>conftest.$ac_ext <<_ACEOF
7963/* end confdefs.h.  */
7964#include <X11/Xlib.h>
7965int
7966main ()
7967{
7968
7969  ;
7970  return 0;
7971}
7972_ACEOF
7973rm -f conftest.$ac_objext
7974if { (ac_try="$ac_compile"
7975case "(($ac_try" in
7976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977  *) ac_try_echo=$ac_try;;
7978esac
7979eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7980$as_echo "$ac_try_echo") >&5
7981  (eval "$ac_compile") 2>conftest.er1
7982  ac_status=$?
7983  grep -v '^ *+' conftest.er1 >conftest.err
7984  rm -f conftest.er1
7985  cat conftest.err >&5
7986  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987  (exit $ac_status); } && {
7988	 test -z "$ac_c_werror_flag" ||
7989	 test ! -s conftest.err
7990       } && test -s conftest.$ac_objext; then
7991  { $as_echo "$as_me:$LINENO: result: yes" >&5
7992$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
7993else
7994  $as_echo "$as_me: failed program was:" >&5
7995sed 's/^/| /' conftest.$ac_ext >&5
7996
7997	{ $as_echo "$as_me:$LINENO: result: test failed" >&5
7998$as_echo "test failed" >&6; }
7999
8000fi
8001
8002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8003
8004fi
8005
8006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8007    CFLAGS=$cflags_save
8008
8009    LDFLAGS="$ac_save_LDFLAGS"
8010
8011    { $as_echo "$as_me:$LINENO: checking size of wchar_t is 2 bytes" >&5
8012$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
8013    if test "${ac_cv_small_wchar_t+set}" = set; then
8014  $as_echo_n "(cached) " >&6
8015else
8016  if test "$cross_compiling" = yes; then
8017  { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
8018$as_echo "$as_me: error: failed to compile test program" >&2;}
8019   { (exit 1); exit 1; }; }
8020else
8021  cat >conftest.$ac_ext <<_ACEOF
8022/* confdefs.h.  */
8023_ACEOF
8024cat confdefs.h >>conftest.$ac_ext
8025cat >>conftest.$ac_ext <<_ACEOF
8026/* end confdefs.h.  */
8027
8028#include <X11/Xlib.h>
8029#if STDC_HEADERS
8030# include <stdlib.h>
8031# include <stddef.h>
8032#endif
8033		main()
8034		{
8035		  if (sizeof(wchar_t) <= 2)
8036		    exit(1);
8037		  exit(0);
8038		}
8039_ACEOF
8040rm -f conftest$ac_exeext
8041if { (ac_try="$ac_link"
8042case "(($ac_try" in
8043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8044  *) ac_try_echo=$ac_try;;
8045esac
8046eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8047$as_echo "$ac_try_echo") >&5
8048  (eval "$ac_link") 2>&5
8049  ac_status=$?
8050  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8052  { (case "(($ac_try" in
8053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8054  *) ac_try_echo=$ac_try;;
8055esac
8056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8057$as_echo "$ac_try_echo") >&5
8058  (eval "$ac_try") 2>&5
8059  ac_status=$?
8060  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061  (exit $ac_status); }; }; then
8062  ac_cv_small_wchar_t="no"
8063else
8064  $as_echo "$as_me: program exited with status $ac_status" >&5
8065$as_echo "$as_me: failed program was:" >&5
8066sed 's/^/| /' conftest.$ac_ext >&5
8067
8068( exit $ac_status )
8069ac_cv_small_wchar_t="yes"
8070fi
8071rm -rf conftest.dSYM
8072rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8073fi
8074
8075
8076fi
8077
8078    { $as_echo "$as_me:$LINENO: result: $ac_cv_small_wchar_t" >&5
8079$as_echo "$ac_cv_small_wchar_t" >&6; }
8080    if test "x$ac_cv_small_wchar_t" = "xyes" ; then
8081      cat >>confdefs.h <<\_ACEOF
8082#define SMALL_WCHAR_T 1
8083_ACEOF
8084
8085    fi
8086
8087  fi
8088fi
8089
8090test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
8091
8092{ $as_echo "$as_me:$LINENO: checking --enable-gui argument" >&5
8093$as_echo_n "checking --enable-gui argument... " >&6; }
8094# Check whether --enable-gui was given.
8095if test "${enable_gui+set}" = set; then
8096  enableval=$enable_gui;
8097else
8098  enable_gui="auto"
8099fi
8100
8101
8102enable_gui_canon=`echo "_$enable_gui" | \
8103	sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
8104
8105SKIP_GTK=YES
8106SKIP_GTK2=YES
8107SKIP_GNOME=YES
8108SKIP_MOTIF=YES
8109SKIP_ATHENA=YES
8110SKIP_NEXTAW=YES
8111SKIP_PHOTON=YES
8112SKIP_CARBON=YES
8113GUITYPE=NONE
8114
8115if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
8116  SKIP_PHOTON=
8117  case "$enable_gui_canon" in
8118    no)		{ $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8119$as_echo "no GUI support" >&6; }
8120		SKIP_PHOTON=YES ;;
8121    yes|"")	{ $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8122$as_echo "yes - automatic GUI support" >&6; } ;;
8123    auto)	{ $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8124$as_echo "auto - automatic GUI support" >&6; } ;;
8125    photon)	{ $as_echo "$as_me:$LINENO: result: Photon GUI support" >&5
8126$as_echo "Photon GUI support" >&6; } ;;
8127    *)		{ $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8128$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8129		SKIP_PHOTON=YES ;;
8130  esac
8131
8132elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
8133  SKIP_CARBON=
8134  case "$enable_gui_canon" in
8135    no)		{ $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8136$as_echo "no GUI support" >&6; }
8137		SKIP_CARBON=YES ;;
8138    yes|"")	{ $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8139$as_echo "yes - automatic GUI support" >&6; } ;;
8140    auto)	{ $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8141$as_echo "auto - automatic GUI support" >&6; } ;;
8142    carbon)	{ $as_echo "$as_me:$LINENO: result: Carbon GUI support" >&5
8143$as_echo "Carbon GUI support" >&6; } ;;
8144    *)		{ $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8145$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8146		SKIP_CARBON=YES ;;
8147  esac
8148
8149else
8150
8151  case "$enable_gui_canon" in
8152    no|none)	{ $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8153$as_echo "no GUI support" >&6; } ;;
8154    yes|""|auto)	{ $as_echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
8155$as_echo "yes/auto - automatic GUI support" >&6; }
8156		SKIP_GTK=
8157		SKIP_GTK2=
8158		SKIP_GNOME=
8159		SKIP_MOTIF=
8160		SKIP_ATHENA=
8161		SKIP_NEXTAW=
8162		SKIP_CARBON=;;
8163    gtk)	{ $as_echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
8164$as_echo "GTK+ 1.x GUI support" >&6; }
8165		SKIP_GTK=;;
8166    gtk2)	{ $as_echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
8167$as_echo "GTK+ 2.x GUI support" >&6; }
8168		SKIP_GTK=
8169		SKIP_GTK2=;;
8170    gnome)	{ $as_echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
8171$as_echo "GNOME 1.x GUI support" >&6; }
8172		SKIP_GNOME=
8173		SKIP_GTK=;;
8174    gnome2)	{ $as_echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
8175$as_echo "GNOME 2.x GUI support" >&6; }
8176		SKIP_GNOME=
8177		SKIP_GTK=
8178		SKIP_GTK2=;;
8179    motif)	{ $as_echo "$as_me:$LINENO: result: Motif GUI support" >&5
8180$as_echo "Motif GUI support" >&6; }
8181		SKIP_MOTIF=;;
8182    athena)	{ $as_echo "$as_me:$LINENO: result: Athena GUI support" >&5
8183$as_echo "Athena GUI support" >&6; }
8184		SKIP_ATHENA=;;
8185    nextaw)	{ $as_echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
8186$as_echo "neXtaw GUI support" >&6; }
8187		SKIP_NEXTAW=;;
8188    *)		{ $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8189$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
8190  esac
8191
8192fi
8193
8194if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
8195  { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
8196$as_echo_n "checking whether or not to look for GTK... " >&6; }
8197  # Check whether --enable-gtk-check was given.
8198if test "${enable_gtk_check+set}" = set; then
8199  enableval=$enable_gtk_check;
8200else
8201  enable_gtk_check="yes"
8202fi
8203
8204  { $as_echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
8205$as_echo "$enable_gtk_check" >&6; }
8206  if test "x$enable_gtk_check" = "xno"; then
8207    SKIP_GTK=YES
8208    SKIP_GNOME=YES
8209  fi
8210fi
8211
8212if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8213				-a "$enable_gui_canon" != "gnome2"; then
8214  { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
8215$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
8216  # Check whether --enable-gtk2-check was given.
8217if test "${enable_gtk2_check+set}" = set; then
8218  enableval=$enable_gtk2_check;
8219else
8220  enable_gtk2_check="yes"
8221fi
8222
8223  { $as_echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
8224$as_echo "$enable_gtk2_check" >&6; }
8225  if test "x$enable_gtk2_check" = "xno"; then
8226    SKIP_GTK2=YES
8227  fi
8228fi
8229
8230if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
8231				 -a "$enable_gui_canon" != "gnome2"; then
8232  { $as_echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
8233$as_echo_n "checking whether or not to look for GNOME... " >&6; }
8234  # Check whether --enable-gnome-check was given.
8235if test "${enable_gnome_check+set}" = set; then
8236  enableval=$enable_gnome_check;
8237else
8238  enable_gnome_check="no"
8239fi
8240
8241  { $as_echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
8242$as_echo "$enable_gnome_check" >&6; }
8243  if test "x$enable_gnome_check" = "xno"; then
8244    SKIP_GNOME=YES
8245  fi
8246fi
8247
8248if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8249  { $as_echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
8250$as_echo_n "checking whether or not to look for Motif... " >&6; }
8251  # Check whether --enable-motif-check was given.
8252if test "${enable_motif_check+set}" = set; then
8253  enableval=$enable_motif_check;
8254else
8255  enable_motif_check="yes"
8256fi
8257
8258  { $as_echo "$as_me:$LINENO: result: $enable_motif_check" >&5
8259$as_echo "$enable_motif_check" >&6; }
8260  if test "x$enable_motif_check" = "xno"; then
8261    SKIP_MOTIF=YES
8262  fi
8263fi
8264
8265if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8266  { $as_echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
8267$as_echo_n "checking whether or not to look for Athena... " >&6; }
8268  # Check whether --enable-athena-check was given.
8269if test "${enable_athena_check+set}" = set; then
8270  enableval=$enable_athena_check;
8271else
8272  enable_athena_check="yes"
8273fi
8274
8275  { $as_echo "$as_me:$LINENO: result: $enable_athena_check" >&5
8276$as_echo "$enable_athena_check" >&6; }
8277  if test "x$enable_athena_check" = "xno"; then
8278    SKIP_ATHENA=YES
8279  fi
8280fi
8281
8282if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8283  { $as_echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
8284$as_echo_n "checking whether or not to look for neXtaw... " >&6; }
8285  # Check whether --enable-nextaw-check was given.
8286if test "${enable_nextaw_check+set}" = set; then
8287  enableval=$enable_nextaw_check;
8288else
8289  enable_nextaw_check="yes"
8290fi
8291
8292  { $as_echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
8293$as_echo "$enable_nextaw_check" >&6; };
8294  if test "x$enable_nextaw_check" = "xno"; then
8295    SKIP_NEXTAW=YES
8296  fi
8297fi
8298
8299if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8300  { $as_echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
8301$as_echo_n "checking whether or not to look for Carbon... " >&6; }
8302  # Check whether --enable-carbon-check was given.
8303if test "${enable_carbon_check+set}" = set; then
8304  enableval=$enable_carbon_check;
8305else
8306  enable_carbon_check="yes"
8307fi
8308
8309  { $as_echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
8310$as_echo "$enable_carbon_check" >&6; };
8311  if test "x$enable_carbon_check" = "xno"; then
8312    SKIP_CARBON=YES
8313  fi
8314fi
8315
8316
8317if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8318  { $as_echo "$as_me:$LINENO: checking for Carbon GUI" >&5
8319$as_echo_n "checking for Carbon GUI... " >&6; }
8320    { $as_echo "$as_me:$LINENO: result: yes" >&5
8321$as_echo "yes" >&6; };
8322  GUITYPE=CARBONGUI
8323  if test "$VIMNAME" = "vim"; then
8324    VIMNAME=Vim
8325  fi
8326
8327    if test x$prefix = xNONE; then
8328    prefix=/Applications
8329  fi
8330
8331    datadir='${prefix}/Vim.app/Contents/Resources'
8332
8333    SKIP_GTK=YES;
8334  SKIP_GTK2=YES;
8335  SKIP_GNOME=YES;
8336  SKIP_MOTIF=YES;
8337  SKIP_ATHENA=YES;
8338  SKIP_NEXTAW=YES;
8339  SKIP_PHOTON=YES;
8340  SKIP_CARBON=YES
8341fi
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351if test -z "$SKIP_GTK"; then
8352
8353  { $as_echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
8354$as_echo_n "checking --with-gtk-prefix argument... " >&6; }
8355
8356# Check whether --with-gtk-prefix was given.
8357if test "${with_gtk_prefix+set}" = set; then
8358  withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8359$as_echo "$gtk_config_prefix" >&6; }
8360else
8361  gtk_config_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8362$as_echo "no" >&6; }
8363fi
8364
8365
8366  { $as_echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
8367$as_echo_n "checking --with-gtk-exec-prefix argument... " >&6; }
8368
8369# Check whether --with-gtk-exec-prefix was given.
8370if test "${with_gtk_exec_prefix+set}" = set; then
8371  withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8372$as_echo "$gtk_config_prefix" >&6; }
8373else
8374  gtk_config_exec_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8375$as_echo "no" >&6; }
8376fi
8377
8378
8379  { $as_echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
8380$as_echo_n "checking --disable-gtktest argument... " >&6; }
8381  # Check whether --enable-gtktest was given.
8382if test "${enable_gtktest+set}" = set; then
8383  enableval=$enable_gtktest;
8384else
8385  enable_gtktest=yes
8386fi
8387
8388  if test "x$enable_gtktest" = "xyes" ; then
8389    { $as_echo "$as_me:$LINENO: result: gtk test enabled" >&5
8390$as_echo "gtk test enabled" >&6; }
8391  else
8392    { $as_echo "$as_me:$LINENO: result: gtk test disabled" >&5
8393$as_echo "gtk test disabled" >&6; }
8394  fi
8395
8396  if test "x$gtk_config_prefix" != "x" ; then
8397    gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8398    GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8399  fi
8400  if test "x$gtk_config_exec_prefix" != "x" ; then
8401    gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8402    GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8403  fi
8404  if test "X$GTK_CONFIG" = "X"; then
8405    # Extract the first word of "gtk-config", so it can be a program name with args.
8406set dummy gtk-config; ac_word=$2
8407{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8408$as_echo_n "checking for $ac_word... " >&6; }
8409if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
8410  $as_echo_n "(cached) " >&6
8411else
8412  case $GTK_CONFIG in
8413  [\\/]* | ?:[\\/]*)
8414  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8415  ;;
8416  *)
8417  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8418for as_dir in $PATH
8419do
8420  IFS=$as_save_IFS
8421  test -z "$as_dir" && as_dir=.
8422  for ac_exec_ext in '' $ac_executable_extensions; do
8423  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8424    ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8425    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8426    break 2
8427  fi
8428done
8429done
8430IFS=$as_save_IFS
8431
8432  test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8433  ;;
8434esac
8435fi
8436GTK_CONFIG=$ac_cv_path_GTK_CONFIG
8437if test -n "$GTK_CONFIG"; then
8438  { $as_echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
8439$as_echo "$GTK_CONFIG" >&6; }
8440else
8441  { $as_echo "$as_me:$LINENO: result: no" >&5
8442$as_echo "no" >&6; }
8443fi
8444
8445
8446    if test "X$GTK_CONFIG" = "Xno"; then
8447            # Extract the first word of "gtk12-config", so it can be a program name with args.
8448set dummy gtk12-config; ac_word=$2
8449{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8450$as_echo_n "checking for $ac_word... " >&6; }
8451if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
8452  $as_echo_n "(cached) " >&6
8453else
8454  case $GTK12_CONFIG in
8455  [\\/]* | ?:[\\/]*)
8456  ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8457  ;;
8458  *)
8459  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8460for as_dir in $PATH
8461do
8462  IFS=$as_save_IFS
8463  test -z "$as_dir" && as_dir=.
8464  for ac_exec_ext in '' $ac_executable_extensions; do
8465  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8466    ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8467    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8468    break 2
8469  fi
8470done
8471done
8472IFS=$as_save_IFS
8473
8474  test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8475  ;;
8476esac
8477fi
8478GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
8479if test -n "$GTK12_CONFIG"; then
8480  { $as_echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
8481$as_echo "$GTK12_CONFIG" >&6; }
8482else
8483  { $as_echo "$as_me:$LINENO: result: no" >&5
8484$as_echo "no" >&6; }
8485fi
8486
8487
8488      GTK_CONFIG="$GTK12_CONFIG"
8489    fi
8490  else
8491    { $as_echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
8492$as_echo "Using GTK configuration program $GTK_CONFIG" >&6; }
8493  fi
8494  if test "X$PKG_CONFIG" = "X"; then
8495    # Extract the first word of "pkg-config", so it can be a program name with args.
8496set dummy pkg-config; ac_word=$2
8497{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8498$as_echo_n "checking for $ac_word... " >&6; }
8499if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8500  $as_echo_n "(cached) " >&6
8501else
8502  case $PKG_CONFIG in
8503  [\\/]* | ?:[\\/]*)
8504  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8505  ;;
8506  *)
8507  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508for as_dir in $PATH
8509do
8510  IFS=$as_save_IFS
8511  test -z "$as_dir" && as_dir=.
8512  for ac_exec_ext in '' $ac_executable_extensions; do
8513  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8514    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8515    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8516    break 2
8517  fi
8518done
8519done
8520IFS=$as_save_IFS
8521
8522  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8523  ;;
8524esac
8525fi
8526PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8527if test -n "$PKG_CONFIG"; then
8528  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8529$as_echo "$PKG_CONFIG" >&6; }
8530else
8531  { $as_echo "$as_me:$LINENO: result: no" >&5
8532$as_echo "no" >&6; }
8533fi
8534
8535
8536  fi
8537
8538  if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
8539            if test "X$SKIP_GTK2" != "XYES"; then
8540
8541  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8542  {
8543    min_gtk_version=2.2.0
8544    { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8545$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8546    no_gtk=""
8547    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8548	  && $PKG_CONFIG --exists gtk+-2.0; then
8549    {
8550                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8551      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8552      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8553      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8554	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8555      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8556	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8557      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8558	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8559    }
8560    elif test "X$GTK_CONFIG" != "Xno"; then
8561    {
8562      GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8563      GTK_LIBDIR=
8564      GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8565      gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8566	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8567      gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8568	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8569      gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8570	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8571    }
8572    else
8573      no_gtk=yes
8574    fi
8575
8576    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8577    {
8578      ac_save_CFLAGS="$CFLAGS"
8579      ac_save_LIBS="$LIBS"
8580      CFLAGS="$CFLAGS $GTK_CFLAGS"
8581      LIBS="$LIBS $GTK_LIBS"
8582
8583                              rm -f conf.gtktest
8584      if test "$cross_compiling" = yes; then
8585  echo $ac_n "cross compiling; assumed OK... $ac_c"
8586else
8587  cat >conftest.$ac_ext <<_ACEOF
8588/* confdefs.h.  */
8589_ACEOF
8590cat confdefs.h >>conftest.$ac_ext
8591cat >>conftest.$ac_ext <<_ACEOF
8592/* end confdefs.h.  */
8593
8594#include <gtk/gtk.h>
8595#include <stdio.h>
8596#if STDC_HEADERS
8597# include <stdlib.h>
8598# include <stddef.h>
8599#endif
8600
8601int
8602main ()
8603{
8604int major, minor, micro;
8605char *tmp_version;
8606
8607system ("touch conf.gtktest");
8608
8609/* HP/UX 9 (%@#!) writes to sscanf strings */
8610tmp_version = g_strdup("$min_gtk_version");
8611if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8612   printf("%s, bad version string\n", "$min_gtk_version");
8613   exit(1);
8614 }
8615
8616if ((gtk_major_version > major) ||
8617    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8618    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8619				     (gtk_micro_version >= micro)))
8620{
8621    return 0;
8622}
8623return 1;
8624}
8625
8626_ACEOF
8627rm -f conftest$ac_exeext
8628if { (ac_try="$ac_link"
8629case "(($ac_try" in
8630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631  *) ac_try_echo=$ac_try;;
8632esac
8633eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8634$as_echo "$ac_try_echo") >&5
8635  (eval "$ac_link") 2>&5
8636  ac_status=$?
8637  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8639  { (case "(($ac_try" in
8640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641  *) ac_try_echo=$ac_try;;
8642esac
8643eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8644$as_echo "$ac_try_echo") >&5
8645  (eval "$ac_try") 2>&5
8646  ac_status=$?
8647  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648  (exit $ac_status); }; }; then
8649  :
8650else
8651  $as_echo "$as_me: program exited with status $ac_status" >&5
8652$as_echo "$as_me: failed program was:" >&5
8653sed 's/^/| /' conftest.$ac_ext >&5
8654
8655( exit $ac_status )
8656no_gtk=yes
8657fi
8658rm -rf conftest.dSYM
8659rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8660fi
8661
8662
8663      CFLAGS="$ac_save_CFLAGS"
8664      LIBS="$ac_save_LIBS"
8665    }
8666    fi
8667    if test "x$no_gtk" = x ; then
8668      if test "x$enable_gtktest" = "xyes"; then
8669	{ $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8670$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8671      else
8672	{ $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8673$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8674      fi
8675      GUI_LIB_LOC="$GTK_LIBDIR"
8676		   GTK_LIBNAME="$GTK_LIBS"
8677		  GUI_INC_LOC="$GTK_CFLAGS"
8678    else
8679    {
8680      { $as_echo "$as_me:$LINENO: result: no" >&5
8681$as_echo "no" >&6; }
8682      GTK_CFLAGS=""
8683      GTK_LIBS=""
8684      :
8685    }
8686    fi
8687  }
8688  else
8689    GTK_CFLAGS=""
8690    GTK_LIBS=""
8691    :
8692  fi
8693
8694
8695  rm -f conf.gtktest
8696
8697      if test "x$GTK_CFLAGS" != "x"; then
8698	SKIP_ATHENA=YES
8699	SKIP_NEXTAW=YES
8700	SKIP_MOTIF=YES
8701	GUITYPE=GTK
8702
8703      fi
8704    fi
8705
8706                if test "x$GUITYPE" != "xGTK"; then
8707      SKIP_GTK2=YES
8708
8709  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8710  {
8711    min_gtk_version=1.1.16
8712    { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8713$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8714    no_gtk=""
8715    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8716	  && $PKG_CONFIG --exists gtk+-2.0; then
8717    {
8718                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8719      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8720      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8721      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8722	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8723      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8724	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8725      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8726	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8727    }
8728    elif test "X$GTK_CONFIG" != "Xno"; then
8729    {
8730      GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8731      GTK_LIBDIR=
8732      GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8733      gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8734	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8735      gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8736	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8737      gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8738	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8739    }
8740    else
8741      no_gtk=yes
8742    fi
8743
8744    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8745    {
8746      ac_save_CFLAGS="$CFLAGS"
8747      ac_save_LIBS="$LIBS"
8748      CFLAGS="$CFLAGS $GTK_CFLAGS"
8749      LIBS="$LIBS $GTK_LIBS"
8750
8751                              rm -f conf.gtktest
8752      if test "$cross_compiling" = yes; then
8753  echo $ac_n "cross compiling; assumed OK... $ac_c"
8754else
8755  cat >conftest.$ac_ext <<_ACEOF
8756/* confdefs.h.  */
8757_ACEOF
8758cat confdefs.h >>conftest.$ac_ext
8759cat >>conftest.$ac_ext <<_ACEOF
8760/* end confdefs.h.  */
8761
8762#include <gtk/gtk.h>
8763#include <stdio.h>
8764#if STDC_HEADERS
8765# include <stdlib.h>
8766# include <stddef.h>
8767#endif
8768
8769int
8770main ()
8771{
8772int major, minor, micro;
8773char *tmp_version;
8774
8775system ("touch conf.gtktest");
8776
8777/* HP/UX 9 (%@#!) writes to sscanf strings */
8778tmp_version = g_strdup("$min_gtk_version");
8779if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8780   printf("%s, bad version string\n", "$min_gtk_version");
8781   exit(1);
8782 }
8783
8784if ((gtk_major_version > major) ||
8785    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8786    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8787				     (gtk_micro_version >= micro)))
8788{
8789    return 0;
8790}
8791return 1;
8792}
8793
8794_ACEOF
8795rm -f conftest$ac_exeext
8796if { (ac_try="$ac_link"
8797case "(($ac_try" in
8798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8799  *) ac_try_echo=$ac_try;;
8800esac
8801eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8802$as_echo "$ac_try_echo") >&5
8803  (eval "$ac_link") 2>&5
8804  ac_status=$?
8805  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8807  { (case "(($ac_try" in
8808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8809  *) ac_try_echo=$ac_try;;
8810esac
8811eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8812$as_echo "$ac_try_echo") >&5
8813  (eval "$ac_try") 2>&5
8814  ac_status=$?
8815  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816  (exit $ac_status); }; }; then
8817  :
8818else
8819  $as_echo "$as_me: program exited with status $ac_status" >&5
8820$as_echo "$as_me: failed program was:" >&5
8821sed 's/^/| /' conftest.$ac_ext >&5
8822
8823( exit $ac_status )
8824no_gtk=yes
8825fi
8826rm -rf conftest.dSYM
8827rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8828fi
8829
8830
8831      CFLAGS="$ac_save_CFLAGS"
8832      LIBS="$ac_save_LIBS"
8833    }
8834    fi
8835    if test "x$no_gtk" = x ; then
8836      if test "x$enable_gtktest" = "xyes"; then
8837	{ $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8838$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8839      else
8840	{ $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8841$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8842      fi
8843      GTK_LIBNAME="$GTK_LIBS"
8844		  GUI_INC_LOC="$GTK_CFLAGS"
8845    else
8846    {
8847      { $as_echo "$as_me:$LINENO: result: no" >&5
8848$as_echo "no" >&6; }
8849      GTK_CFLAGS=""
8850      GTK_LIBS=""
8851      :
8852    }
8853    fi
8854  }
8855  else
8856    GTK_CFLAGS=""
8857    GTK_LIBS=""
8858    :
8859  fi
8860
8861
8862  rm -f conf.gtktest
8863
8864      if test "x$GTK_CFLAGS" != "x"; then
8865	SKIP_ATHENA=YES
8866	SKIP_NEXTAW=YES
8867	SKIP_MOTIF=YES
8868	GUITYPE=GTK
8869
8870      fi
8871    fi
8872  fi
8873    if test "x$GUITYPE" = "xGTK"; then
8874    if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
8875	 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
8876      { $as_echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
8877$as_echo "this GTK version is old; version 1.2.3 or later is recommended" >&6; }
8878    else
8879    {
8880      if test "0$gtk_major_version" -ge 2; then
8881	cat >>confdefs.h <<\_ACEOF
8882#define HAVE_GTK2 1
8883_ACEOF
8884
8885	if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
8886		|| test "0$gtk_minor_version" -ge 2 \
8887		|| test "0$gtk_major_version" -gt 2; then
8888	  cat >>confdefs.h <<\_ACEOF
8889#define HAVE_GTK_MULTIHEAD 1
8890_ACEOF
8891
8892	fi
8893      fi
8894                        if test -z "$SKIP_GNOME"; then
8895      {
8896
8897
8898
8899
8900
8901
8902# Check whether --with-gnome-includes was given.
8903if test "${with_gnome_includes+set}" = set; then
8904  withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
8905
8906fi
8907
8908
8909
8910# Check whether --with-gnome-libs was given.
8911if test "${with_gnome_libs+set}" = set; then
8912  withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
8913
8914fi
8915
8916
8917
8918# Check whether --with-gnome was given.
8919if test "${with_gnome+set}" = set; then
8920  withval=$with_gnome; if test x$withval = xyes; then
8921      want_gnome=yes
8922      have_gnome=yes
8923    else
8924      if test "x$withval" = xno; then
8925	want_gnome=no
8926      else
8927	want_gnome=yes
8928	LDFLAGS="$LDFLAGS -L$withval/lib"
8929	CFLAGS="$CFLAGS -I$withval/include"
8930	gnome_prefix=$withval/lib
8931      fi
8932    fi
8933else
8934  want_gnome=yes
8935fi
8936
8937
8938  if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
8939  {
8940    { $as_echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
8941$as_echo_n "checking for libgnomeui-2.0... " >&6; }
8942    if $PKG_CONFIG --exists libgnomeui-2.0; then
8943      { $as_echo "$as_me:$LINENO: result: yes" >&5
8944$as_echo "yes" >&6; }
8945      GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
8946      GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
8947      GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
8948
8949                  { $as_echo "$as_me:$LINENO: checking for FreeBSD" >&5
8950$as_echo_n "checking for FreeBSD... " >&6; }
8951      if test "`(uname) 2>/dev/null`" = FreeBSD; then
8952	{ $as_echo "$as_me:$LINENO: result: yes" >&5
8953$as_echo "yes" >&6; }
8954	GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
8955	GNOME_LIBS="$GNOME_LIBS -pthread"
8956      else
8957	{ $as_echo "$as_me:$LINENO: result: no" >&5
8958$as_echo "no" >&6; }
8959      fi
8960      have_gnome=yes
8961    else
8962      { $as_echo "$as_me:$LINENO: result: not found" >&5
8963$as_echo "not found" >&6; }
8964      if test "x" = xfail; then
8965	{ { $as_echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
8966$as_echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
8967   { (exit 1); exit 1; }; }
8968      fi
8969    fi
8970  }
8971  elif test "x$want_gnome" = xyes; then
8972  {
8973    # Extract the first word of "gnome-config", so it can be a program name with args.
8974set dummy gnome-config; ac_word=$2
8975{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8976$as_echo_n "checking for $ac_word... " >&6; }
8977if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
8978  $as_echo_n "(cached) " >&6
8979else
8980  case $GNOME_CONFIG in
8981  [\\/]* | ?:[\\/]*)
8982  ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8983  ;;
8984  *)
8985  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8986for as_dir in $PATH
8987do
8988  IFS=$as_save_IFS
8989  test -z "$as_dir" && as_dir=.
8990  for ac_exec_ext in '' $ac_executable_extensions; do
8991  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8992    ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8993    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8994    break 2
8995  fi
8996done
8997done
8998IFS=$as_save_IFS
8999
9000  test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
9001  ;;
9002esac
9003fi
9004GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
9005if test -n "$GNOME_CONFIG"; then
9006  { $as_echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
9007$as_echo "$GNOME_CONFIG" >&6; }
9008else
9009  { $as_echo "$as_me:$LINENO: result: no" >&5
9010$as_echo "no" >&6; }
9011fi
9012
9013
9014    if test "$GNOME_CONFIG" = "no"; then
9015      no_gnome_config="yes"
9016    else
9017      { $as_echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
9018$as_echo_n "checking if $GNOME_CONFIG works... " >&6; }
9019      if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
9020	{ $as_echo "$as_me:$LINENO: result: yes" >&5
9021$as_echo "yes" >&6; }
9022	GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
9023	GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
9024	GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
9025	have_gnome=yes
9026      else
9027	{ $as_echo "$as_me:$LINENO: result: no" >&5
9028$as_echo "no" >&6; }
9029	no_gnome_config="yes"
9030      fi
9031    fi
9032
9033    if test x$exec_prefix = xNONE; then
9034      if test x$prefix = xNONE; then
9035	gnome_prefix=$ac_default_prefix/lib
9036      else
9037	gnome_prefix=$prefix/lib
9038      fi
9039    else
9040      gnome_prefix=`eval echo \`echo $libdir\``
9041    fi
9042
9043    if test "$no_gnome_config" = "yes"; then
9044      { $as_echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
9045$as_echo_n "checking for gnomeConf.sh file in $gnome_prefix... " >&6; }
9046      if test -f $gnome_prefix/gnomeConf.sh; then
9047	{ $as_echo "$as_me:$LINENO: result: found" >&5
9048$as_echo "found" >&6; }
9049	echo "loading gnome configuration from" \
9050	  "$gnome_prefix/gnomeConf.sh"
9051	. $gnome_prefix/gnomeConf.sh
9052	have_gnome=yes
9053      else
9054	{ $as_echo "$as_me:$LINENO: result: not found" >&5
9055$as_echo "not found" >&6; }
9056	if test x = xfail; then
9057	  { { $as_echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
9058$as_echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
9059   { (exit 1); exit 1; }; }
9060	fi
9061      fi
9062    fi
9063  }
9064  fi
9065
9066	if test x$have_gnome = xyes ; then
9067	  cat >>confdefs.h <<\_ACEOF
9068#define FEAT_GUI_GNOME 1
9069_ACEOF
9070
9071	  GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9072	  GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9073	fi
9074      }
9075      fi
9076    }
9077    fi
9078  fi
9079fi
9080
9081
9082if test -z "$SKIP_MOTIF"; then
9083  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"
9084    GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
9085
9086  { $as_echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
9087$as_echo_n "checking for location of Motif GUI includes... " >&6; }
9088  gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
9089  GUI_INC_LOC=
9090  for try in $gui_includes; do
9091    if test -f "$try/Xm/Xm.h"; then
9092      GUI_INC_LOC=$try
9093    fi
9094  done
9095  if test -n "$GUI_INC_LOC"; then
9096    if test "$GUI_INC_LOC" = /usr/include; then
9097      GUI_INC_LOC=
9098      { $as_echo "$as_me:$LINENO: result: in default path" >&5
9099$as_echo "in default path" >&6; }
9100    else
9101      { $as_echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
9102$as_echo "$GUI_INC_LOC" >&6; }
9103    fi
9104  else
9105    { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9106$as_echo "<not found>" >&6; }
9107    SKIP_MOTIF=YES
9108  fi
9109fi
9110
9111
9112if test -z "$SKIP_MOTIF"; then
9113  { $as_echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
9114$as_echo_n "checking --with-motif-lib argument... " >&6; }
9115
9116# Check whether --with-motif-lib was given.
9117if test "${with_motif_lib+set}" = set; then
9118  withval=$with_motif_lib;  MOTIF_LIBNAME="${withval}"
9119fi
9120
9121
9122  if test -n "$MOTIF_LIBNAME"; then
9123    { $as_echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
9124$as_echo "$MOTIF_LIBNAME" >&6; }
9125    GUI_LIB_LOC=
9126  else
9127    { $as_echo "$as_me:$LINENO: result: no" >&5
9128$as_echo "no" >&6; }
9129
9130        GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
9131
9132    { $as_echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
9133$as_echo_n "checking for location of Motif GUI libs... " >&6; }
9134    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"
9135    GUI_LIB_LOC=
9136    for try in $gui_libs; do
9137      for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
9138	if test -f "$libtry"; then
9139	  GUI_LIB_LOC=$try
9140	fi
9141      done
9142    done
9143    if test -n "$GUI_LIB_LOC"; then
9144            if test "$GUI_LIB_LOC" = /usr/lib; then
9145	GUI_LIB_LOC=
9146	{ $as_echo "$as_me:$LINENO: result: in default path" >&5
9147$as_echo "in default path" >&6; }
9148      else
9149	if test -n "$GUI_LIB_LOC"; then
9150	  { $as_echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
9151$as_echo "$GUI_LIB_LOC" >&6; }
9152	  if test "`(uname) 2>/dev/null`" = SunOS &&
9153					 uname -r | grep '^5' >/dev/null; then
9154	    GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
9155	  fi
9156	fi
9157      fi
9158      MOTIF_LIBNAME=-lXm
9159    else
9160      { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9161$as_echo "<not found>" >&6; }
9162      SKIP_MOTIF=YES
9163    fi
9164  fi
9165fi
9166
9167if test -z "$SKIP_MOTIF"; then
9168  SKIP_ATHENA=YES
9169  SKIP_NEXTAW=YES
9170  GUITYPE=MOTIF
9171
9172fi
9173
9174
9175GUI_X_LIBS=
9176
9177if test -z "$SKIP_ATHENA"; then
9178  { $as_echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
9179$as_echo_n "checking if Athena header files can be found... " >&6; }
9180  cflags_save=$CFLAGS
9181  CFLAGS="$CFLAGS $X_CFLAGS"
9182  cat >conftest.$ac_ext <<_ACEOF
9183/* confdefs.h.  */
9184_ACEOF
9185cat confdefs.h >>conftest.$ac_ext
9186cat >>conftest.$ac_ext <<_ACEOF
9187/* end confdefs.h.  */
9188
9189#include <X11/Intrinsic.h>
9190#include <X11/Xaw/Paned.h>
9191int
9192main ()
9193{
9194
9195  ;
9196  return 0;
9197}
9198_ACEOF
9199rm -f conftest.$ac_objext
9200if { (ac_try="$ac_compile"
9201case "(($ac_try" in
9202  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9203  *) ac_try_echo=$ac_try;;
9204esac
9205eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9206$as_echo "$ac_try_echo") >&5
9207  (eval "$ac_compile") 2>conftest.er1
9208  ac_status=$?
9209  grep -v '^ *+' conftest.er1 >conftest.err
9210  rm -f conftest.er1
9211  cat conftest.err >&5
9212  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213  (exit $ac_status); } && {
9214	 test -z "$ac_c_werror_flag" ||
9215	 test ! -s conftest.err
9216       } && test -s conftest.$ac_objext; then
9217  { $as_echo "$as_me:$LINENO: result: yes" >&5
9218$as_echo "yes" >&6; }
9219else
9220  $as_echo "$as_me: failed program was:" >&5
9221sed 's/^/| /' conftest.$ac_ext >&5
9222
9223	{ $as_echo "$as_me:$LINENO: result: no" >&5
9224$as_echo "no" >&6; }; SKIP_ATHENA=YES
9225fi
9226
9227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9228  CFLAGS=$cflags_save
9229fi
9230
9231if test -z "$SKIP_ATHENA"; then
9232  GUITYPE=ATHENA
9233fi
9234
9235if test -z "$SKIP_NEXTAW"; then
9236  { $as_echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
9237$as_echo_n "checking if neXtaw header files can be found... " >&6; }
9238  cflags_save=$CFLAGS
9239  CFLAGS="$CFLAGS $X_CFLAGS"
9240  cat >conftest.$ac_ext <<_ACEOF
9241/* confdefs.h.  */
9242_ACEOF
9243cat confdefs.h >>conftest.$ac_ext
9244cat >>conftest.$ac_ext <<_ACEOF
9245/* end confdefs.h.  */
9246
9247#include <X11/Intrinsic.h>
9248#include <X11/neXtaw/Paned.h>
9249int
9250main ()
9251{
9252
9253  ;
9254  return 0;
9255}
9256_ACEOF
9257rm -f conftest.$ac_objext
9258if { (ac_try="$ac_compile"
9259case "(($ac_try" in
9260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9261  *) ac_try_echo=$ac_try;;
9262esac
9263eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9264$as_echo "$ac_try_echo") >&5
9265  (eval "$ac_compile") 2>conftest.er1
9266  ac_status=$?
9267  grep -v '^ *+' conftest.er1 >conftest.err
9268  rm -f conftest.er1
9269  cat conftest.err >&5
9270  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271  (exit $ac_status); } && {
9272	 test -z "$ac_c_werror_flag" ||
9273	 test ! -s conftest.err
9274       } && test -s conftest.$ac_objext; then
9275  { $as_echo "$as_me:$LINENO: result: yes" >&5
9276$as_echo "yes" >&6; }
9277else
9278  $as_echo "$as_me: failed program was:" >&5
9279sed 's/^/| /' conftest.$ac_ext >&5
9280
9281	{ $as_echo "$as_me:$LINENO: result: no" >&5
9282$as_echo "no" >&6; }; SKIP_NEXTAW=YES
9283fi
9284
9285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9286  CFLAGS=$cflags_save
9287fi
9288
9289if test -z "$SKIP_NEXTAW"; then
9290  GUITYPE=NEXTAW
9291fi
9292
9293if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9294      if test -n "$GUI_INC_LOC"; then
9295    GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
9296  fi
9297  if test -n "$GUI_LIB_LOC"; then
9298    GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
9299  fi
9300
9301    ldflags_save=$LDFLAGS
9302  LDFLAGS="$X_LIBS $LDFLAGS"
9303  { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9304$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9305if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9306  $as_echo_n "(cached) " >&6
9307else
9308  ac_check_lib_save_LIBS=$LIBS
9309LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9310cat >conftest.$ac_ext <<_ACEOF
9311/* confdefs.h.  */
9312_ACEOF
9313cat confdefs.h >>conftest.$ac_ext
9314cat >>conftest.$ac_ext <<_ACEOF
9315/* end confdefs.h.  */
9316
9317/* Override any GCC internal prototype to avoid an error.
9318   Use char because int might match the return type of a GCC
9319   builtin and then its argument prototype would still apply.  */
9320#ifdef __cplusplus
9321extern "C"
9322#endif
9323char XShapeQueryExtension ();
9324int
9325main ()
9326{
9327return XShapeQueryExtension ();
9328  ;
9329  return 0;
9330}
9331_ACEOF
9332rm -f conftest.$ac_objext conftest$ac_exeext
9333if { (ac_try="$ac_link"
9334case "(($ac_try" in
9335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9336  *) ac_try_echo=$ac_try;;
9337esac
9338eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9339$as_echo "$ac_try_echo") >&5
9340  (eval "$ac_link") 2>conftest.er1
9341  ac_status=$?
9342  grep -v '^ *+' conftest.er1 >conftest.err
9343  rm -f conftest.er1
9344  cat conftest.err >&5
9345  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346  (exit $ac_status); } && {
9347	 test -z "$ac_c_werror_flag" ||
9348	 test ! -s conftest.err
9349       } && test -s conftest$ac_exeext && {
9350	 test "$cross_compiling" = yes ||
9351	 $as_test_x conftest$ac_exeext
9352       }; then
9353  ac_cv_lib_Xext_XShapeQueryExtension=yes
9354else
9355  $as_echo "$as_me: failed program was:" >&5
9356sed 's/^/| /' conftest.$ac_ext >&5
9357
9358	ac_cv_lib_Xext_XShapeQueryExtension=no
9359fi
9360
9361rm -rf conftest.dSYM
9362rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9363      conftest$ac_exeext conftest.$ac_ext
9364LIBS=$ac_check_lib_save_LIBS
9365fi
9366{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9367$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9368if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then
9369  GUI_X_LIBS="-lXext"
9370fi
9371
9372    { $as_echo "$as_me:$LINENO: checking for wslen in -lw" >&5
9373$as_echo_n "checking for wslen in -lw... " >&6; }
9374if test "${ac_cv_lib_w_wslen+set}" = set; then
9375  $as_echo_n "(cached) " >&6
9376else
9377  ac_check_lib_save_LIBS=$LIBS
9378LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9379cat >conftest.$ac_ext <<_ACEOF
9380/* confdefs.h.  */
9381_ACEOF
9382cat confdefs.h >>conftest.$ac_ext
9383cat >>conftest.$ac_ext <<_ACEOF
9384/* end confdefs.h.  */
9385
9386/* Override any GCC internal prototype to avoid an error.
9387   Use char because int might match the return type of a GCC
9388   builtin and then its argument prototype would still apply.  */
9389#ifdef __cplusplus
9390extern "C"
9391#endif
9392char wslen ();
9393int
9394main ()
9395{
9396return wslen ();
9397  ;
9398  return 0;
9399}
9400_ACEOF
9401rm -f conftest.$ac_objext conftest$ac_exeext
9402if { (ac_try="$ac_link"
9403case "(($ac_try" in
9404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9405  *) ac_try_echo=$ac_try;;
9406esac
9407eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9408$as_echo "$ac_try_echo") >&5
9409  (eval "$ac_link") 2>conftest.er1
9410  ac_status=$?
9411  grep -v '^ *+' conftest.er1 >conftest.err
9412  rm -f conftest.er1
9413  cat conftest.err >&5
9414  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415  (exit $ac_status); } && {
9416	 test -z "$ac_c_werror_flag" ||
9417	 test ! -s conftest.err
9418       } && test -s conftest$ac_exeext && {
9419	 test "$cross_compiling" = yes ||
9420	 $as_test_x conftest$ac_exeext
9421       }; then
9422  ac_cv_lib_w_wslen=yes
9423else
9424  $as_echo "$as_me: failed program was:" >&5
9425sed 's/^/| /' conftest.$ac_ext >&5
9426
9427	ac_cv_lib_w_wslen=no
9428fi
9429
9430rm -rf conftest.dSYM
9431rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9432      conftest$ac_exeext conftest.$ac_ext
9433LIBS=$ac_check_lib_save_LIBS
9434fi
9435{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
9436$as_echo "$ac_cv_lib_w_wslen" >&6; }
9437if test "x$ac_cv_lib_w_wslen" = x""yes; then
9438  X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9439fi
9440
9441  { $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9442$as_echo_n "checking for dlsym in -ldl... " >&6; }
9443if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9444  $as_echo_n "(cached) " >&6
9445else
9446  ac_check_lib_save_LIBS=$LIBS
9447LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9448cat >conftest.$ac_ext <<_ACEOF
9449/* confdefs.h.  */
9450_ACEOF
9451cat confdefs.h >>conftest.$ac_ext
9452cat >>conftest.$ac_ext <<_ACEOF
9453/* end confdefs.h.  */
9454
9455/* Override any GCC internal prototype to avoid an error.
9456   Use char because int might match the return type of a GCC
9457   builtin and then its argument prototype would still apply.  */
9458#ifdef __cplusplus
9459extern "C"
9460#endif
9461char dlsym ();
9462int
9463main ()
9464{
9465return dlsym ();
9466  ;
9467  return 0;
9468}
9469_ACEOF
9470rm -f conftest.$ac_objext conftest$ac_exeext
9471if { (ac_try="$ac_link"
9472case "(($ac_try" in
9473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9474  *) ac_try_echo=$ac_try;;
9475esac
9476eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9477$as_echo "$ac_try_echo") >&5
9478  (eval "$ac_link") 2>conftest.er1
9479  ac_status=$?
9480  grep -v '^ *+' conftest.er1 >conftest.err
9481  rm -f conftest.er1
9482  cat conftest.err >&5
9483  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484  (exit $ac_status); } && {
9485	 test -z "$ac_c_werror_flag" ||
9486	 test ! -s conftest.err
9487       } && test -s conftest$ac_exeext && {
9488	 test "$cross_compiling" = yes ||
9489	 $as_test_x conftest$ac_exeext
9490       }; then
9491  ac_cv_lib_dl_dlsym=yes
9492else
9493  $as_echo "$as_me: failed program was:" >&5
9494sed 's/^/| /' conftest.$ac_ext >&5
9495
9496	ac_cv_lib_dl_dlsym=no
9497fi
9498
9499rm -rf conftest.dSYM
9500rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9501      conftest$ac_exeext conftest.$ac_ext
9502LIBS=$ac_check_lib_save_LIBS
9503fi
9504{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9505$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
9506if test "x$ac_cv_lib_dl_dlsym" = x""yes; then
9507  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
9508fi
9509
9510  { $as_echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
9511$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
9512if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
9513  $as_echo_n "(cached) " >&6
9514else
9515  ac_check_lib_save_LIBS=$LIBS
9516LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9517cat >conftest.$ac_ext <<_ACEOF
9518/* confdefs.h.  */
9519_ACEOF
9520cat confdefs.h >>conftest.$ac_ext
9521cat >>conftest.$ac_ext <<_ACEOF
9522/* end confdefs.h.  */
9523
9524/* Override any GCC internal prototype to avoid an error.
9525   Use char because int might match the return type of a GCC
9526   builtin and then its argument prototype would still apply.  */
9527#ifdef __cplusplus
9528extern "C"
9529#endif
9530char XmuCreateStippledPixmap ();
9531int
9532main ()
9533{
9534return XmuCreateStippledPixmap ();
9535  ;
9536  return 0;
9537}
9538_ACEOF
9539rm -f conftest.$ac_objext conftest$ac_exeext
9540if { (ac_try="$ac_link"
9541case "(($ac_try" in
9542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9543  *) ac_try_echo=$ac_try;;
9544esac
9545eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9546$as_echo "$ac_try_echo") >&5
9547  (eval "$ac_link") 2>conftest.er1
9548  ac_status=$?
9549  grep -v '^ *+' conftest.er1 >conftest.err
9550  rm -f conftest.er1
9551  cat conftest.err >&5
9552  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553  (exit $ac_status); } && {
9554	 test -z "$ac_c_werror_flag" ||
9555	 test ! -s conftest.err
9556       } && test -s conftest$ac_exeext && {
9557	 test "$cross_compiling" = yes ||
9558	 $as_test_x conftest$ac_exeext
9559       }; then
9560  ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
9561else
9562  $as_echo "$as_me: failed program was:" >&5
9563sed 's/^/| /' conftest.$ac_ext >&5
9564
9565	ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
9566fi
9567
9568rm -rf conftest.dSYM
9569rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9570      conftest$ac_exeext conftest.$ac_ext
9571LIBS=$ac_check_lib_save_LIBS
9572fi
9573{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9574$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9575if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = x""yes; then
9576  GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9577fi
9578
9579  if test -z "$SKIP_MOTIF"; then
9580    { $as_echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
9581$as_echo_n "checking for XpEndJob in -lXp... " >&6; }
9582if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
9583  $as_echo_n "(cached) " >&6
9584else
9585  ac_check_lib_save_LIBS=$LIBS
9586LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9587cat >conftest.$ac_ext <<_ACEOF
9588/* confdefs.h.  */
9589_ACEOF
9590cat confdefs.h >>conftest.$ac_ext
9591cat >>conftest.$ac_ext <<_ACEOF
9592/* end confdefs.h.  */
9593
9594/* Override any GCC internal prototype to avoid an error.
9595   Use char because int might match the return type of a GCC
9596   builtin and then its argument prototype would still apply.  */
9597#ifdef __cplusplus
9598extern "C"
9599#endif
9600char XpEndJob ();
9601int
9602main ()
9603{
9604return XpEndJob ();
9605  ;
9606  return 0;
9607}
9608_ACEOF
9609rm -f conftest.$ac_objext conftest$ac_exeext
9610if { (ac_try="$ac_link"
9611case "(($ac_try" in
9612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9613  *) ac_try_echo=$ac_try;;
9614esac
9615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9616$as_echo "$ac_try_echo") >&5
9617  (eval "$ac_link") 2>conftest.er1
9618  ac_status=$?
9619  grep -v '^ *+' conftest.er1 >conftest.err
9620  rm -f conftest.er1
9621  cat conftest.err >&5
9622  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623  (exit $ac_status); } && {
9624	 test -z "$ac_c_werror_flag" ||
9625	 test ! -s conftest.err
9626       } && test -s conftest$ac_exeext && {
9627	 test "$cross_compiling" = yes ||
9628	 $as_test_x conftest$ac_exeext
9629       }; then
9630  ac_cv_lib_Xp_XpEndJob=yes
9631else
9632  $as_echo "$as_me: failed program was:" >&5
9633sed 's/^/| /' conftest.$ac_ext >&5
9634
9635	ac_cv_lib_Xp_XpEndJob=no
9636fi
9637
9638rm -rf conftest.dSYM
9639rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9640      conftest$ac_exeext conftest.$ac_ext
9641LIBS=$ac_check_lib_save_LIBS
9642fi
9643{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
9644$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
9645if test "x$ac_cv_lib_Xp_XpEndJob" = x""yes; then
9646  GUI_X_LIBS="-lXp $GUI_X_LIBS"
9647fi
9648
9649  fi
9650  LDFLAGS=$ldflags_save
9651
9652    { $as_echo "$as_me:$LINENO: checking for extra X11 defines" >&5
9653$as_echo_n "checking for extra X11 defines... " >&6; }
9654  NARROW_PROTO=
9655  rm -fr conftestdir
9656  if mkdir conftestdir; then
9657    cd conftestdir
9658    cat > Imakefile <<'EOF'
9659acfindx:
9660	@echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9661EOF
9662    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9663      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9664    fi
9665    cd ..
9666    rm -fr conftestdir
9667  fi
9668  if test -z "$NARROW_PROTO"; then
9669    { $as_echo "$as_me:$LINENO: result: no" >&5
9670$as_echo "no" >&6; }
9671  else
9672    { $as_echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
9673$as_echo "$NARROW_PROTO" >&6; }
9674  fi
9675
9676fi
9677
9678if test "$enable_xsmp" = "yes"; then
9679  cppflags_save=$CPPFLAGS
9680  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9681
9682for ac_header in X11/SM/SMlib.h
9683do
9684as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9685if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9686  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9687$as_echo_n "checking for $ac_header... " >&6; }
9688if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9689  $as_echo_n "(cached) " >&6
9690fi
9691ac_res=`eval 'as_val=${'$as_ac_Header'}
9692		 $as_echo "$as_val"'`
9693	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9694$as_echo "$ac_res" >&6; }
9695else
9696  # Is the header compilable?
9697{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9698$as_echo_n "checking $ac_header usability... " >&6; }
9699cat >conftest.$ac_ext <<_ACEOF
9700/* confdefs.h.  */
9701_ACEOF
9702cat confdefs.h >>conftest.$ac_ext
9703cat >>conftest.$ac_ext <<_ACEOF
9704/* end confdefs.h.  */
9705$ac_includes_default
9706#include <$ac_header>
9707_ACEOF
9708rm -f conftest.$ac_objext
9709if { (ac_try="$ac_compile"
9710case "(($ac_try" in
9711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712  *) ac_try_echo=$ac_try;;
9713esac
9714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9715$as_echo "$ac_try_echo") >&5
9716  (eval "$ac_compile") 2>conftest.er1
9717  ac_status=$?
9718  grep -v '^ *+' conftest.er1 >conftest.err
9719  rm -f conftest.er1
9720  cat conftest.err >&5
9721  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722  (exit $ac_status); } && {
9723	 test -z "$ac_c_werror_flag" ||
9724	 test ! -s conftest.err
9725       } && test -s conftest.$ac_objext; then
9726  ac_header_compiler=yes
9727else
9728  $as_echo "$as_me: failed program was:" >&5
9729sed 's/^/| /' conftest.$ac_ext >&5
9730
9731	ac_header_compiler=no
9732fi
9733
9734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9735{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9736$as_echo "$ac_header_compiler" >&6; }
9737
9738# Is the header present?
9739{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9740$as_echo_n "checking $ac_header presence... " >&6; }
9741cat >conftest.$ac_ext <<_ACEOF
9742/* confdefs.h.  */
9743_ACEOF
9744cat confdefs.h >>conftest.$ac_ext
9745cat >>conftest.$ac_ext <<_ACEOF
9746/* end confdefs.h.  */
9747#include <$ac_header>
9748_ACEOF
9749if { (ac_try="$ac_cpp conftest.$ac_ext"
9750case "(($ac_try" in
9751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752  *) ac_try_echo=$ac_try;;
9753esac
9754eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9755$as_echo "$ac_try_echo") >&5
9756  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9757  ac_status=$?
9758  grep -v '^ *+' conftest.er1 >conftest.err
9759  rm -f conftest.er1
9760  cat conftest.err >&5
9761  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762  (exit $ac_status); } >/dev/null && {
9763	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9764	 test ! -s conftest.err
9765       }; then
9766  ac_header_preproc=yes
9767else
9768  $as_echo "$as_me: failed program was:" >&5
9769sed 's/^/| /' conftest.$ac_ext >&5
9770
9771  ac_header_preproc=no
9772fi
9773
9774rm -f conftest.err conftest.$ac_ext
9775{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9776$as_echo "$ac_header_preproc" >&6; }
9777
9778# So?  What about this header?
9779case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9780  yes:no: )
9781    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9782$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9783    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9784$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9785    ac_header_preproc=yes
9786    ;;
9787  no:yes:* )
9788    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9789$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9790    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9791$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9792    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9793$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9794    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9795$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9796    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9797$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9798    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9799$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9800
9801    ;;
9802esac
9803{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9804$as_echo_n "checking for $ac_header... " >&6; }
9805if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9806  $as_echo_n "(cached) " >&6
9807else
9808  eval "$as_ac_Header=\$ac_header_preproc"
9809fi
9810ac_res=`eval 'as_val=${'$as_ac_Header'}
9811		 $as_echo "$as_val"'`
9812	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9813$as_echo "$ac_res" >&6; }
9814
9815fi
9816as_val=`eval 'as_val=${'$as_ac_Header'}
9817		 $as_echo "$as_val"'`
9818   if test "x$as_val" = x""yes; then
9819  cat >>confdefs.h <<_ACEOF
9820#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9821_ACEOF
9822
9823fi
9824
9825done
9826
9827  CPPFLAGS=$cppflags_save
9828fi
9829
9830
9831if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
9832    cppflags_save=$CPPFLAGS
9833  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9834
9835
9836for ac_header in X11/xpm.h X11/Sunkeysym.h
9837do
9838as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9839if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9840  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9841$as_echo_n "checking for $ac_header... " >&6; }
9842if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9843  $as_echo_n "(cached) " >&6
9844fi
9845ac_res=`eval 'as_val=${'$as_ac_Header'}
9846		 $as_echo "$as_val"'`
9847	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9848$as_echo "$ac_res" >&6; }
9849else
9850  # Is the header compilable?
9851{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9852$as_echo_n "checking $ac_header usability... " >&6; }
9853cat >conftest.$ac_ext <<_ACEOF
9854/* confdefs.h.  */
9855_ACEOF
9856cat confdefs.h >>conftest.$ac_ext
9857cat >>conftest.$ac_ext <<_ACEOF
9858/* end confdefs.h.  */
9859$ac_includes_default
9860#include <$ac_header>
9861_ACEOF
9862rm -f conftest.$ac_objext
9863if { (ac_try="$ac_compile"
9864case "(($ac_try" in
9865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866  *) ac_try_echo=$ac_try;;
9867esac
9868eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9869$as_echo "$ac_try_echo") >&5
9870  (eval "$ac_compile") 2>conftest.er1
9871  ac_status=$?
9872  grep -v '^ *+' conftest.er1 >conftest.err
9873  rm -f conftest.er1
9874  cat conftest.err >&5
9875  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876  (exit $ac_status); } && {
9877	 test -z "$ac_c_werror_flag" ||
9878	 test ! -s conftest.err
9879       } && test -s conftest.$ac_objext; then
9880  ac_header_compiler=yes
9881else
9882  $as_echo "$as_me: failed program was:" >&5
9883sed 's/^/| /' conftest.$ac_ext >&5
9884
9885	ac_header_compiler=no
9886fi
9887
9888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9889{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9890$as_echo "$ac_header_compiler" >&6; }
9891
9892# Is the header present?
9893{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9894$as_echo_n "checking $ac_header presence... " >&6; }
9895cat >conftest.$ac_ext <<_ACEOF
9896/* confdefs.h.  */
9897_ACEOF
9898cat confdefs.h >>conftest.$ac_ext
9899cat >>conftest.$ac_ext <<_ACEOF
9900/* end confdefs.h.  */
9901#include <$ac_header>
9902_ACEOF
9903if { (ac_try="$ac_cpp conftest.$ac_ext"
9904case "(($ac_try" in
9905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9906  *) ac_try_echo=$ac_try;;
9907esac
9908eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9909$as_echo "$ac_try_echo") >&5
9910  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9911  ac_status=$?
9912  grep -v '^ *+' conftest.er1 >conftest.err
9913  rm -f conftest.er1
9914  cat conftest.err >&5
9915  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916  (exit $ac_status); } >/dev/null && {
9917	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9918	 test ! -s conftest.err
9919       }; then
9920  ac_header_preproc=yes
9921else
9922  $as_echo "$as_me: failed program was:" >&5
9923sed 's/^/| /' conftest.$ac_ext >&5
9924
9925  ac_header_preproc=no
9926fi
9927
9928rm -f conftest.err conftest.$ac_ext
9929{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9930$as_echo "$ac_header_preproc" >&6; }
9931
9932# So?  What about this header?
9933case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9934  yes:no: )
9935    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9936$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9937    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9938$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9939    ac_header_preproc=yes
9940    ;;
9941  no:yes:* )
9942    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9943$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9944    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9945$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9946    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9947$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9948    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9949$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9950    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9951$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9952    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9953$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9954
9955    ;;
9956esac
9957{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9958$as_echo_n "checking for $ac_header... " >&6; }
9959if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9960  $as_echo_n "(cached) " >&6
9961else
9962  eval "$as_ac_Header=\$ac_header_preproc"
9963fi
9964ac_res=`eval 'as_val=${'$as_ac_Header'}
9965		 $as_echo "$as_val"'`
9966	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9967$as_echo "$ac_res" >&6; }
9968
9969fi
9970as_val=`eval 'as_val=${'$as_ac_Header'}
9971		 $as_echo "$as_val"'`
9972   if test "x$as_val" = x""yes; then
9973  cat >>confdefs.h <<_ACEOF
9974#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9975_ACEOF
9976
9977fi
9978
9979done
9980
9981
9982    if test ! "$enable_xim" = "no"; then
9983    { $as_echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
9984$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
9985    cat >conftest.$ac_ext <<_ACEOF
9986/* confdefs.h.  */
9987_ACEOF
9988cat confdefs.h >>conftest.$ac_ext
9989cat >>conftest.$ac_ext <<_ACEOF
9990/* end confdefs.h.  */
9991#include <X11/Xlib.h>
9992_ACEOF
9993if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9994  $EGREP "XIMText" >/dev/null 2>&1; then
9995  { $as_echo "$as_me:$LINENO: result: yes" >&5
9996$as_echo "yes" >&6; }
9997else
9998  { $as_echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
9999$as_echo "no; xim has been disabled" >&6; }; enable_xim = "no"
10000fi
10001rm -f conftest*
10002
10003  fi
10004  CPPFLAGS=$cppflags_save
10005
10006    if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
10007		-a "x$GUITYPE" != "xNONE" ; then
10008    { $as_echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
10009$as_echo "X GUI selected; xim has been enabled" >&6; }
10010    enable_xim="yes"
10011  fi
10012fi
10013
10014if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10015  cppflags_save=$CPPFLAGS
10016  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10017  { $as_echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
10018$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
10019  cat >conftest.$ac_ext <<_ACEOF
10020/* confdefs.h.  */
10021_ACEOF
10022cat confdefs.h >>conftest.$ac_ext
10023cat >>conftest.$ac_ext <<_ACEOF
10024/* end confdefs.h.  */
10025
10026#include <X11/Intrinsic.h>
10027#include <X11/Xmu/Editres.h>
10028int
10029main ()
10030{
10031int i; i = 0;
10032  ;
10033  return 0;
10034}
10035_ACEOF
10036rm -f conftest.$ac_objext
10037if { (ac_try="$ac_compile"
10038case "(($ac_try" in
10039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10040  *) ac_try_echo=$ac_try;;
10041esac
10042eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10043$as_echo "$ac_try_echo") >&5
10044  (eval "$ac_compile") 2>conftest.er1
10045  ac_status=$?
10046  grep -v '^ *+' conftest.er1 >conftest.err
10047  rm -f conftest.er1
10048  cat conftest.err >&5
10049  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050  (exit $ac_status); } && {
10051	 test -z "$ac_c_werror_flag" ||
10052	 test ! -s conftest.err
10053       } && test -s conftest.$ac_objext; then
10054  { $as_echo "$as_me:$LINENO: result: yes" >&5
10055$as_echo "yes" >&6; }
10056		      cat >>confdefs.h <<\_ACEOF
10057#define HAVE_X11_XMU_EDITRES_H 1
10058_ACEOF
10059
10060else
10061  $as_echo "$as_me: failed program was:" >&5
10062sed 's/^/| /' conftest.$ac_ext >&5
10063
10064	{ $as_echo "$as_me:$LINENO: result: no" >&5
10065$as_echo "no" >&6; }
10066fi
10067
10068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10069  CPPFLAGS=$cppflags_save
10070fi
10071
10072if test -z "$SKIP_MOTIF"; then
10073  cppflags_save=$CPPFLAGS
10074  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10075
10076
10077
10078
10079
10080
10081
10082for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
10083		   Xm/UnhighlightT.h Xm/Notebook.h
10084do
10085as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10086if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10087  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10088$as_echo_n "checking for $ac_header... " >&6; }
10089if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10090  $as_echo_n "(cached) " >&6
10091fi
10092ac_res=`eval 'as_val=${'$as_ac_Header'}
10093		 $as_echo "$as_val"'`
10094	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10095$as_echo "$ac_res" >&6; }
10096else
10097  # Is the header compilable?
10098{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10099$as_echo_n "checking $ac_header usability... " >&6; }
10100cat >conftest.$ac_ext <<_ACEOF
10101/* confdefs.h.  */
10102_ACEOF
10103cat confdefs.h >>conftest.$ac_ext
10104cat >>conftest.$ac_ext <<_ACEOF
10105/* end confdefs.h.  */
10106$ac_includes_default
10107#include <$ac_header>
10108_ACEOF
10109rm -f conftest.$ac_objext
10110if { (ac_try="$ac_compile"
10111case "(($ac_try" in
10112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10113  *) ac_try_echo=$ac_try;;
10114esac
10115eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10116$as_echo "$ac_try_echo") >&5
10117  (eval "$ac_compile") 2>conftest.er1
10118  ac_status=$?
10119  grep -v '^ *+' conftest.er1 >conftest.err
10120  rm -f conftest.er1
10121  cat conftest.err >&5
10122  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123  (exit $ac_status); } && {
10124	 test -z "$ac_c_werror_flag" ||
10125	 test ! -s conftest.err
10126       } && test -s conftest.$ac_objext; then
10127  ac_header_compiler=yes
10128else
10129  $as_echo "$as_me: failed program was:" >&5
10130sed 's/^/| /' conftest.$ac_ext >&5
10131
10132	ac_header_compiler=no
10133fi
10134
10135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10136{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10137$as_echo "$ac_header_compiler" >&6; }
10138
10139# Is the header present?
10140{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10141$as_echo_n "checking $ac_header presence... " >&6; }
10142cat >conftest.$ac_ext <<_ACEOF
10143/* confdefs.h.  */
10144_ACEOF
10145cat confdefs.h >>conftest.$ac_ext
10146cat >>conftest.$ac_ext <<_ACEOF
10147/* end confdefs.h.  */
10148#include <$ac_header>
10149_ACEOF
10150if { (ac_try="$ac_cpp conftest.$ac_ext"
10151case "(($ac_try" in
10152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10153  *) ac_try_echo=$ac_try;;
10154esac
10155eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10156$as_echo "$ac_try_echo") >&5
10157  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10158  ac_status=$?
10159  grep -v '^ *+' conftest.er1 >conftest.err
10160  rm -f conftest.er1
10161  cat conftest.err >&5
10162  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163  (exit $ac_status); } >/dev/null && {
10164	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10165	 test ! -s conftest.err
10166       }; then
10167  ac_header_preproc=yes
10168else
10169  $as_echo "$as_me: failed program was:" >&5
10170sed 's/^/| /' conftest.$ac_ext >&5
10171
10172  ac_header_preproc=no
10173fi
10174
10175rm -f conftest.err conftest.$ac_ext
10176{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10177$as_echo "$ac_header_preproc" >&6; }
10178
10179# So?  What about this header?
10180case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10181  yes:no: )
10182    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10183$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10184    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10185$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10186    ac_header_preproc=yes
10187    ;;
10188  no:yes:* )
10189    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10190$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10191    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10192$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10193    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10194$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10195    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10196$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10197    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10198$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10199    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10200$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10201
10202    ;;
10203esac
10204{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10205$as_echo_n "checking for $ac_header... " >&6; }
10206if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10207  $as_echo_n "(cached) " >&6
10208else
10209  eval "$as_ac_Header=\$ac_header_preproc"
10210fi
10211ac_res=`eval 'as_val=${'$as_ac_Header'}
10212		 $as_echo "$as_val"'`
10213	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10214$as_echo "$ac_res" >&6; }
10215
10216fi
10217as_val=`eval 'as_val=${'$as_ac_Header'}
10218		 $as_echo "$as_val"'`
10219   if test "x$as_val" = x""yes; then
10220  cat >>confdefs.h <<_ACEOF
10221#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10222_ACEOF
10223
10224fi
10225
10226done
10227
10228
10229  if test $ac_cv_header_Xm_XpmP_h = yes; then
10230        { $as_echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10231$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
10232    cat >conftest.$ac_ext <<_ACEOF
10233/* confdefs.h.  */
10234_ACEOF
10235cat confdefs.h >>conftest.$ac_ext
10236cat >>conftest.$ac_ext <<_ACEOF
10237/* end confdefs.h.  */
10238#include <Xm/XpmP.h>
10239int
10240main ()
10241{
10242XpmAttributes_21 attr;
10243  ;
10244  return 0;
10245}
10246_ACEOF
10247rm -f conftest.$ac_objext
10248if { (ac_try="$ac_compile"
10249case "(($ac_try" in
10250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10251  *) ac_try_echo=$ac_try;;
10252esac
10253eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10254$as_echo "$ac_try_echo") >&5
10255  (eval "$ac_compile") 2>conftest.er1
10256  ac_status=$?
10257  grep -v '^ *+' conftest.er1 >conftest.err
10258  rm -f conftest.er1
10259  cat conftest.err >&5
10260  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261  (exit $ac_status); } && {
10262	 test -z "$ac_c_werror_flag" ||
10263	 test ! -s conftest.err
10264       } && test -s conftest.$ac_objext; then
10265  { $as_echo "$as_me:$LINENO: result: yes" >&5
10266$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10267#define XPMATTRIBUTES_TYPE XpmAttributes_21
10268_ACEOF
10269
10270else
10271  $as_echo "$as_me: failed program was:" >&5
10272sed 's/^/| /' conftest.$ac_ext >&5
10273
10274	{ $as_echo "$as_me:$LINENO: result: no" >&5
10275$as_echo "no" >&6; }; cat >>confdefs.h <<\_ACEOF
10276#define XPMATTRIBUTES_TYPE XpmAttributes
10277_ACEOF
10278
10279
10280fi
10281
10282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10283  else
10284    cat >>confdefs.h <<\_ACEOF
10285#define XPMATTRIBUTES_TYPE XpmAttributes
10286_ACEOF
10287
10288  fi
10289  CPPFLAGS=$cppflags_save
10290fi
10291
10292if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10293  { $as_echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
10294$as_echo "no GUI selected; xim has been disabled" >&6; }
10295  enable_xim="no"
10296fi
10297if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10298  { $as_echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
10299$as_echo "no GUI selected; fontset has been disabled" >&6; }
10300  enable_fontset="no"
10301fi
10302if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
10303  { $as_echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10304$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10305  enable_fontset="no"
10306fi
10307
10308if test -z "$SKIP_PHOTON"; then
10309  GUITYPE=PHOTONGUI
10310fi
10311
10312
10313
10314
10315
10316
10317if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10318  { { $as_echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
10319$as_echo "$as_me: error: cannot use workshop without Motif" >&2;}
10320   { (exit 1); exit 1; }; }
10321fi
10322
10323if test "$enable_xim" = "yes"; then
10324  cat >>confdefs.h <<\_ACEOF
10325#define FEAT_XIM 1
10326_ACEOF
10327
10328fi
10329if test "$enable_fontset" = "yes"; then
10330  cat >>confdefs.h <<\_ACEOF
10331#define FEAT_XFONTSET 1
10332_ACEOF
10333
10334fi
10335
10336
10337
10338
10339if test "$enable_hangulinput" = "yes"; then
10340  if test "x$GUITYPE" = "xNONE"; then
10341    { $as_echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
10342$as_echo "no GUI selected; hangul input has been disabled" >&6; }
10343    enable_hangulinput=no
10344  else
10345    cat >>confdefs.h <<\_ACEOF
10346#define FEAT_HANGULIN 1
10347_ACEOF
10348
10349    HANGULIN_SRC=hangulin.c
10350
10351    HANGULIN_OBJ=objects/hangulin.o
10352
10353  fi
10354fi
10355
10356
10357{ $as_echo "$as_me:$LINENO: checking whether toupper is broken" >&5
10358$as_echo_n "checking whether toupper is broken... " >&6; }
10359if test "${vim_cv_toupper_broken+set}" = set; then
10360  $as_echo_n "(cached) " >&6
10361else
10362
10363    if test "$cross_compiling" = yes; then
10364
10365    { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5
10366$as_echo "$as_me: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&2;}
10367   { (exit 1); exit 1; }; }
10368
10369else
10370  cat >conftest.$ac_ext <<_ACEOF
10371
10372#include "confdefs.h"
10373#include <ctype.h>
10374#if STDC_HEADERS
10375# include <stdlib.h>
10376# include <stddef.h>
10377#endif
10378main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10379
10380_ACEOF
10381rm -f conftest$ac_exeext
10382if { (ac_try="$ac_link"
10383case "(($ac_try" in
10384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10385  *) ac_try_echo=$ac_try;;
10386esac
10387eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10388$as_echo "$ac_try_echo") >&5
10389  (eval "$ac_link") 2>&5
10390  ac_status=$?
10391  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10393  { (case "(($ac_try" in
10394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395  *) ac_try_echo=$ac_try;;
10396esac
10397eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10398$as_echo "$ac_try_echo") >&5
10399  (eval "$ac_try") 2>&5
10400  ac_status=$?
10401  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402  (exit $ac_status); }; }; then
10403
10404    vim_cv_toupper_broken=yes
10405
10406else
10407  $as_echo "$as_me: program exited with status $ac_status" >&5
10408$as_echo "$as_me: failed program was:" >&5
10409sed 's/^/| /' conftest.$ac_ext >&5
10410
10411( exit $ac_status )
10412
10413    vim_cv_toupper_broken=no
10414
10415fi
10416rm -rf conftest.dSYM
10417rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10418fi
10419
10420
10421fi
10422{ $as_echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5
10423$as_echo "$vim_cv_toupper_broken" >&6; }
10424
10425if test "x$vim_cv_toupper_broken" = "xyes" ; then
10426  cat >>confdefs.h <<\_ACEOF
10427#define BROKEN_TOUPPER 1
10428_ACEOF
10429
10430fi
10431
10432{ $as_echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
10433$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10434cat >conftest.$ac_ext <<_ACEOF
10435/* confdefs.h.  */
10436_ACEOF
10437cat confdefs.h >>conftest.$ac_ext
10438cat >>conftest.$ac_ext <<_ACEOF
10439/* end confdefs.h.  */
10440#include <stdio.h>
10441int
10442main ()
10443{
10444printf("(" __DATE__ " " __TIME__ ")");
10445  ;
10446  return 0;
10447}
10448_ACEOF
10449rm -f conftest.$ac_objext
10450if { (ac_try="$ac_compile"
10451case "(($ac_try" in
10452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10453  *) ac_try_echo=$ac_try;;
10454esac
10455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10456$as_echo "$ac_try_echo") >&5
10457  (eval "$ac_compile") 2>conftest.er1
10458  ac_status=$?
10459  grep -v '^ *+' conftest.er1 >conftest.err
10460  rm -f conftest.er1
10461  cat conftest.err >&5
10462  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463  (exit $ac_status); } && {
10464	 test -z "$ac_c_werror_flag" ||
10465	 test ! -s conftest.err
10466       } && test -s conftest.$ac_objext; then
10467  { $as_echo "$as_me:$LINENO: result: yes" >&5
10468$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10469#define HAVE_DATE_TIME 1
10470_ACEOF
10471
10472else
10473  $as_echo "$as_me: failed program was:" >&5
10474sed 's/^/| /' conftest.$ac_ext >&5
10475
10476	{ $as_echo "$as_me:$LINENO: result: no" >&5
10477$as_echo "no" >&6; }
10478fi
10479
10480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10481
10482{ $as_echo "$as_me:$LINENO: checking whether __attribute__((unused)) is allowed" >&5
10483$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
10484cat >conftest.$ac_ext <<_ACEOF
10485/* confdefs.h.  */
10486_ACEOF
10487cat confdefs.h >>conftest.$ac_ext
10488cat >>conftest.$ac_ext <<_ACEOF
10489/* end confdefs.h.  */
10490#include <stdio.h>
10491int
10492main ()
10493{
10494int x __attribute__((unused));
10495  ;
10496  return 0;
10497}
10498_ACEOF
10499rm -f conftest.$ac_objext
10500if { (ac_try="$ac_compile"
10501case "(($ac_try" in
10502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10503  *) ac_try_echo=$ac_try;;
10504esac
10505eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10506$as_echo "$ac_try_echo") >&5
10507  (eval "$ac_compile") 2>conftest.er1
10508  ac_status=$?
10509  grep -v '^ *+' conftest.er1 >conftest.err
10510  rm -f conftest.er1
10511  cat conftest.err >&5
10512  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513  (exit $ac_status); } && {
10514	 test -z "$ac_c_werror_flag" ||
10515	 test ! -s conftest.err
10516       } && test -s conftest.$ac_objext; then
10517  { $as_echo "$as_me:$LINENO: result: yes" >&5
10518$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10519#define HAVE_ATTRIBUTE_UNUSED 1
10520_ACEOF
10521
10522else
10523  $as_echo "$as_me: failed program was:" >&5
10524sed 's/^/| /' conftest.$ac_ext >&5
10525
10526	{ $as_echo "$as_me:$LINENO: result: no" >&5
10527$as_echo "no" >&6; }
10528fi
10529
10530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10531
10532if test "${ac_cv_header_elf_h+set}" = set; then
10533  { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10534$as_echo_n "checking for elf.h... " >&6; }
10535if test "${ac_cv_header_elf_h+set}" = set; then
10536  $as_echo_n "(cached) " >&6
10537fi
10538{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10539$as_echo "$ac_cv_header_elf_h" >&6; }
10540else
10541  # Is the header compilable?
10542{ $as_echo "$as_me:$LINENO: checking elf.h usability" >&5
10543$as_echo_n "checking elf.h usability... " >&6; }
10544cat >conftest.$ac_ext <<_ACEOF
10545/* confdefs.h.  */
10546_ACEOF
10547cat confdefs.h >>conftest.$ac_ext
10548cat >>conftest.$ac_ext <<_ACEOF
10549/* end confdefs.h.  */
10550$ac_includes_default
10551#include <elf.h>
10552_ACEOF
10553rm -f conftest.$ac_objext
10554if { (ac_try="$ac_compile"
10555case "(($ac_try" in
10556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10557  *) ac_try_echo=$ac_try;;
10558esac
10559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10560$as_echo "$ac_try_echo") >&5
10561  (eval "$ac_compile") 2>conftest.er1
10562  ac_status=$?
10563  grep -v '^ *+' conftest.er1 >conftest.err
10564  rm -f conftest.er1
10565  cat conftest.err >&5
10566  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567  (exit $ac_status); } && {
10568	 test -z "$ac_c_werror_flag" ||
10569	 test ! -s conftest.err
10570       } && test -s conftest.$ac_objext; then
10571  ac_header_compiler=yes
10572else
10573  $as_echo "$as_me: failed program was:" >&5
10574sed 's/^/| /' conftest.$ac_ext >&5
10575
10576	ac_header_compiler=no
10577fi
10578
10579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10580{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10581$as_echo "$ac_header_compiler" >&6; }
10582
10583# Is the header present?
10584{ $as_echo "$as_me:$LINENO: checking elf.h presence" >&5
10585$as_echo_n "checking elf.h presence... " >&6; }
10586cat >conftest.$ac_ext <<_ACEOF
10587/* confdefs.h.  */
10588_ACEOF
10589cat confdefs.h >>conftest.$ac_ext
10590cat >>conftest.$ac_ext <<_ACEOF
10591/* end confdefs.h.  */
10592#include <elf.h>
10593_ACEOF
10594if { (ac_try="$ac_cpp conftest.$ac_ext"
10595case "(($ac_try" in
10596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597  *) ac_try_echo=$ac_try;;
10598esac
10599eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10600$as_echo "$ac_try_echo") >&5
10601  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10602  ac_status=$?
10603  grep -v '^ *+' conftest.er1 >conftest.err
10604  rm -f conftest.er1
10605  cat conftest.err >&5
10606  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607  (exit $ac_status); } >/dev/null && {
10608	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10609	 test ! -s conftest.err
10610       }; then
10611  ac_header_preproc=yes
10612else
10613  $as_echo "$as_me: failed program was:" >&5
10614sed 's/^/| /' conftest.$ac_ext >&5
10615
10616  ac_header_preproc=no
10617fi
10618
10619rm -f conftest.err conftest.$ac_ext
10620{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10621$as_echo "$ac_header_preproc" >&6; }
10622
10623# So?  What about this header?
10624case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10625  yes:no: )
10626    { $as_echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
10627$as_echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10628    { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
10629$as_echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
10630    ac_header_preproc=yes
10631    ;;
10632  no:yes:* )
10633    { $as_echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
10634$as_echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
10635    { $as_echo "$as_me:$LINENO: WARNING: elf.h:     check for missing prerequisite headers?" >&5
10636$as_echo "$as_me: WARNING: elf.h:     check for missing prerequisite headers?" >&2;}
10637    { $as_echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
10638$as_echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
10639    { $as_echo "$as_me:$LINENO: WARNING: elf.h:     section \"Present But Cannot Be Compiled\"" >&5
10640$as_echo "$as_me: WARNING: elf.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10641    { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
10642$as_echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
10643    { $as_echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
10644$as_echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
10645
10646    ;;
10647esac
10648{ $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10649$as_echo_n "checking for elf.h... " >&6; }
10650if test "${ac_cv_header_elf_h+set}" = set; then
10651  $as_echo_n "(cached) " >&6
10652else
10653  ac_cv_header_elf_h=$ac_header_preproc
10654fi
10655{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10656$as_echo "$ac_cv_header_elf_h" >&6; }
10657
10658fi
10659if test "x$ac_cv_header_elf_h" = x""yes; then
10660  HAS_ELF=1
10661fi
10662
10663
10664if test "$HAS_ELF" = 1; then
10665
10666{ $as_echo "$as_me:$LINENO: checking for main in -lelf" >&5
10667$as_echo_n "checking for main in -lelf... " >&6; }
10668if test "${ac_cv_lib_elf_main+set}" = set; then
10669  $as_echo_n "(cached) " >&6
10670else
10671  ac_check_lib_save_LIBS=$LIBS
10672LIBS="-lelf  $LIBS"
10673cat >conftest.$ac_ext <<_ACEOF
10674/* confdefs.h.  */
10675_ACEOF
10676cat confdefs.h >>conftest.$ac_ext
10677cat >>conftest.$ac_ext <<_ACEOF
10678/* end confdefs.h.  */
10679
10680
10681int
10682main ()
10683{
10684return main ();
10685  ;
10686  return 0;
10687}
10688_ACEOF
10689rm -f conftest.$ac_objext conftest$ac_exeext
10690if { (ac_try="$ac_link"
10691case "(($ac_try" in
10692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10693  *) ac_try_echo=$ac_try;;
10694esac
10695eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10696$as_echo "$ac_try_echo") >&5
10697  (eval "$ac_link") 2>conftest.er1
10698  ac_status=$?
10699  grep -v '^ *+' conftest.er1 >conftest.err
10700  rm -f conftest.er1
10701  cat conftest.err >&5
10702  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703  (exit $ac_status); } && {
10704	 test -z "$ac_c_werror_flag" ||
10705	 test ! -s conftest.err
10706       } && test -s conftest$ac_exeext && {
10707	 test "$cross_compiling" = yes ||
10708	 $as_test_x conftest$ac_exeext
10709       }; then
10710  ac_cv_lib_elf_main=yes
10711else
10712  $as_echo "$as_me: failed program was:" >&5
10713sed 's/^/| /' conftest.$ac_ext >&5
10714
10715	ac_cv_lib_elf_main=no
10716fi
10717
10718rm -rf conftest.dSYM
10719rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10720      conftest$ac_exeext conftest.$ac_ext
10721LIBS=$ac_check_lib_save_LIBS
10722fi
10723{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
10724$as_echo "$ac_cv_lib_elf_main" >&6; }
10725if test "x$ac_cv_lib_elf_main" = x""yes; then
10726  cat >>confdefs.h <<_ACEOF
10727#define HAVE_LIBELF 1
10728_ACEOF
10729
10730  LIBS="-lelf $LIBS"
10731
10732fi
10733
10734fi
10735
10736
10737
10738
10739
10740
10741ac_header_dirent=no
10742for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10743  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10744{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10745$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10746if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10747  $as_echo_n "(cached) " >&6
10748else
10749  cat >conftest.$ac_ext <<_ACEOF
10750/* confdefs.h.  */
10751_ACEOF
10752cat confdefs.h >>conftest.$ac_ext
10753cat >>conftest.$ac_ext <<_ACEOF
10754/* end confdefs.h.  */
10755#include <sys/types.h>
10756#include <$ac_hdr>
10757
10758int
10759main ()
10760{
10761if ((DIR *) 0)
10762return 0;
10763  ;
10764  return 0;
10765}
10766_ACEOF
10767rm -f conftest.$ac_objext
10768if { (ac_try="$ac_compile"
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_compile") 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_objext; then
10785  eval "$as_ac_Header=yes"
10786else
10787  $as_echo "$as_me: failed program was:" >&5
10788sed 's/^/| /' conftest.$ac_ext >&5
10789
10790	eval "$as_ac_Header=no"
10791fi
10792
10793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10794fi
10795ac_res=`eval 'as_val=${'$as_ac_Header'}
10796		 $as_echo "$as_val"'`
10797	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10798$as_echo "$ac_res" >&6; }
10799as_val=`eval 'as_val=${'$as_ac_Header'}
10800		 $as_echo "$as_val"'`
10801   if test "x$as_val" = x""yes; then
10802  cat >>confdefs.h <<_ACEOF
10803#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10804_ACEOF
10805
10806ac_header_dirent=$ac_hdr; break
10807fi
10808
10809done
10810# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10811if test $ac_header_dirent = dirent.h; then
10812  { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10813$as_echo_n "checking for library containing opendir... " >&6; }
10814if test "${ac_cv_search_opendir+set}" = set; then
10815  $as_echo_n "(cached) " >&6
10816else
10817  ac_func_search_save_LIBS=$LIBS
10818cat >conftest.$ac_ext <<_ACEOF
10819/* confdefs.h.  */
10820_ACEOF
10821cat confdefs.h >>conftest.$ac_ext
10822cat >>conftest.$ac_ext <<_ACEOF
10823/* end confdefs.h.  */
10824
10825/* Override any GCC internal prototype to avoid an error.
10826   Use char because int might match the return type of a GCC
10827   builtin and then its argument prototype would still apply.  */
10828#ifdef __cplusplus
10829extern "C"
10830#endif
10831char opendir ();
10832int
10833main ()
10834{
10835return opendir ();
10836  ;
10837  return 0;
10838}
10839_ACEOF
10840for ac_lib in '' dir; do
10841  if test -z "$ac_lib"; then
10842    ac_res="none required"
10843  else
10844    ac_res=-l$ac_lib
10845    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10846  fi
10847  rm -f conftest.$ac_objext conftest$ac_exeext
10848if { (ac_try="$ac_link"
10849case "(($ac_try" in
10850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851  *) ac_try_echo=$ac_try;;
10852esac
10853eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10854$as_echo "$ac_try_echo") >&5
10855  (eval "$ac_link") 2>conftest.er1
10856  ac_status=$?
10857  grep -v '^ *+' conftest.er1 >conftest.err
10858  rm -f conftest.er1
10859  cat conftest.err >&5
10860  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861  (exit $ac_status); } && {
10862	 test -z "$ac_c_werror_flag" ||
10863	 test ! -s conftest.err
10864       } && test -s conftest$ac_exeext && {
10865	 test "$cross_compiling" = yes ||
10866	 $as_test_x conftest$ac_exeext
10867       }; then
10868  ac_cv_search_opendir=$ac_res
10869else
10870  $as_echo "$as_me: failed program was:" >&5
10871sed 's/^/| /' conftest.$ac_ext >&5
10872
10873
10874fi
10875
10876rm -rf conftest.dSYM
10877rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10878      conftest$ac_exeext
10879  if test "${ac_cv_search_opendir+set}" = set; then
10880  break
10881fi
10882done
10883if test "${ac_cv_search_opendir+set}" = set; then
10884  :
10885else
10886  ac_cv_search_opendir=no
10887fi
10888rm conftest.$ac_ext
10889LIBS=$ac_func_search_save_LIBS
10890fi
10891{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10892$as_echo "$ac_cv_search_opendir" >&6; }
10893ac_res=$ac_cv_search_opendir
10894if test "$ac_res" != no; then
10895  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10896
10897fi
10898
10899else
10900  { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10901$as_echo_n "checking for library containing opendir... " >&6; }
10902if test "${ac_cv_search_opendir+set}" = set; then
10903  $as_echo_n "(cached) " >&6
10904else
10905  ac_func_search_save_LIBS=$LIBS
10906cat >conftest.$ac_ext <<_ACEOF
10907/* confdefs.h.  */
10908_ACEOF
10909cat confdefs.h >>conftest.$ac_ext
10910cat >>conftest.$ac_ext <<_ACEOF
10911/* end confdefs.h.  */
10912
10913/* Override any GCC internal prototype to avoid an error.
10914   Use char because int might match the return type of a GCC
10915   builtin and then its argument prototype would still apply.  */
10916#ifdef __cplusplus
10917extern "C"
10918#endif
10919char opendir ();
10920int
10921main ()
10922{
10923return opendir ();
10924  ;
10925  return 0;
10926}
10927_ACEOF
10928for ac_lib in '' x; do
10929  if test -z "$ac_lib"; then
10930    ac_res="none required"
10931  else
10932    ac_res=-l$ac_lib
10933    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10934  fi
10935  rm -f conftest.$ac_objext conftest$ac_exeext
10936if { (ac_try="$ac_link"
10937case "(($ac_try" in
10938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10939  *) ac_try_echo=$ac_try;;
10940esac
10941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10942$as_echo "$ac_try_echo") >&5
10943  (eval "$ac_link") 2>conftest.er1
10944  ac_status=$?
10945  grep -v '^ *+' conftest.er1 >conftest.err
10946  rm -f conftest.er1
10947  cat conftest.err >&5
10948  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949  (exit $ac_status); } && {
10950	 test -z "$ac_c_werror_flag" ||
10951	 test ! -s conftest.err
10952       } && test -s conftest$ac_exeext && {
10953	 test "$cross_compiling" = yes ||
10954	 $as_test_x conftest$ac_exeext
10955       }; then
10956  ac_cv_search_opendir=$ac_res
10957else
10958  $as_echo "$as_me: failed program was:" >&5
10959sed 's/^/| /' conftest.$ac_ext >&5
10960
10961
10962fi
10963
10964rm -rf conftest.dSYM
10965rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10966      conftest$ac_exeext
10967  if test "${ac_cv_search_opendir+set}" = set; then
10968  break
10969fi
10970done
10971if test "${ac_cv_search_opendir+set}" = set; then
10972  :
10973else
10974  ac_cv_search_opendir=no
10975fi
10976rm conftest.$ac_ext
10977LIBS=$ac_func_search_save_LIBS
10978fi
10979{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10980$as_echo "$ac_cv_search_opendir" >&6; }
10981ac_res=$ac_cv_search_opendir
10982if test "$ac_res" != no; then
10983  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10984
10985fi
10986
10987fi
10988
10989
10990if test $ac_cv_header_sys_wait_h = no; then
10991  { $as_echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10992$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
10993  cat >conftest.$ac_ext <<_ACEOF
10994/* confdefs.h.  */
10995_ACEOF
10996cat confdefs.h >>conftest.$ac_ext
10997cat >>conftest.$ac_ext <<_ACEOF
10998/* end confdefs.h.  */
10999#include <sys/wait.h>
11000int
11001main ()
11002{
11003union wait xx, yy; xx = yy
11004  ;
11005  return 0;
11006}
11007_ACEOF
11008rm -f conftest.$ac_objext
11009if { (ac_try="$ac_compile"
11010case "(($ac_try" in
11011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012  *) ac_try_echo=$ac_try;;
11013esac
11014eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11015$as_echo "$ac_try_echo") >&5
11016  (eval "$ac_compile") 2>conftest.er1
11017  ac_status=$?
11018  grep -v '^ *+' conftest.er1 >conftest.err
11019  rm -f conftest.er1
11020  cat conftest.err >&5
11021  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022  (exit $ac_status); } && {
11023	 test -z "$ac_c_werror_flag" ||
11024	 test ! -s conftest.err
11025       } && test -s conftest.$ac_objext; then
11026  { $as_echo "$as_me:$LINENO: result: yes" >&5
11027$as_echo "yes" >&6; }
11028			cat >>confdefs.h <<\_ACEOF
11029#define HAVE_SYS_WAIT_H 1
11030_ACEOF
11031
11032			cat >>confdefs.h <<\_ACEOF
11033#define HAVE_UNION_WAIT 1
11034_ACEOF
11035
11036else
11037  $as_echo "$as_me: failed program was:" >&5
11038sed 's/^/| /' conftest.$ac_ext >&5
11039
11040	{ $as_echo "$as_me:$LINENO: result: no" >&5
11041$as_echo "no" >&6; }
11042fi
11043
11044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11045fi
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
11088	termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \
11089	iconv.h langinfo.h math.h unistd.h stropts.h errno.h \
11090	sys/resource.h sys/systeminfo.h locale.h \
11091	sys/stream.h termios.h libc.h sys/statfs.h \
11092	poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
11093	libgen.h util/debug.h util/msg18n.h frame.h \
11094	sys/acl.h sys/access.h sys/sysinfo.h wchar.h wctype.h
11095do
11096as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11097if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11098  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11099$as_echo_n "checking for $ac_header... " >&6; }
11100if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11101  $as_echo_n "(cached) " >&6
11102fi
11103ac_res=`eval 'as_val=${'$as_ac_Header'}
11104		 $as_echo "$as_val"'`
11105	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11106$as_echo "$ac_res" >&6; }
11107else
11108  # Is the header compilable?
11109{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11110$as_echo_n "checking $ac_header usability... " >&6; }
11111cat >conftest.$ac_ext <<_ACEOF
11112/* confdefs.h.  */
11113_ACEOF
11114cat confdefs.h >>conftest.$ac_ext
11115cat >>conftest.$ac_ext <<_ACEOF
11116/* end confdefs.h.  */
11117$ac_includes_default
11118#include <$ac_header>
11119_ACEOF
11120rm -f conftest.$ac_objext
11121if { (ac_try="$ac_compile"
11122case "(($ac_try" in
11123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11124  *) ac_try_echo=$ac_try;;
11125esac
11126eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11127$as_echo "$ac_try_echo") >&5
11128  (eval "$ac_compile") 2>conftest.er1
11129  ac_status=$?
11130  grep -v '^ *+' conftest.er1 >conftest.err
11131  rm -f conftest.er1
11132  cat conftest.err >&5
11133  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134  (exit $ac_status); } && {
11135	 test -z "$ac_c_werror_flag" ||
11136	 test ! -s conftest.err
11137       } && test -s conftest.$ac_objext; then
11138  ac_header_compiler=yes
11139else
11140  $as_echo "$as_me: failed program was:" >&5
11141sed 's/^/| /' conftest.$ac_ext >&5
11142
11143	ac_header_compiler=no
11144fi
11145
11146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11147{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11148$as_echo "$ac_header_compiler" >&6; }
11149
11150# Is the header present?
11151{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11152$as_echo_n "checking $ac_header presence... " >&6; }
11153cat >conftest.$ac_ext <<_ACEOF
11154/* confdefs.h.  */
11155_ACEOF
11156cat confdefs.h >>conftest.$ac_ext
11157cat >>conftest.$ac_ext <<_ACEOF
11158/* end confdefs.h.  */
11159#include <$ac_header>
11160_ACEOF
11161if { (ac_try="$ac_cpp conftest.$ac_ext"
11162case "(($ac_try" in
11163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11164  *) ac_try_echo=$ac_try;;
11165esac
11166eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11167$as_echo "$ac_try_echo") >&5
11168  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11169  ac_status=$?
11170  grep -v '^ *+' conftest.er1 >conftest.err
11171  rm -f conftest.er1
11172  cat conftest.err >&5
11173  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174  (exit $ac_status); } >/dev/null && {
11175	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11176	 test ! -s conftest.err
11177       }; then
11178  ac_header_preproc=yes
11179else
11180  $as_echo "$as_me: failed program was:" >&5
11181sed 's/^/| /' conftest.$ac_ext >&5
11182
11183  ac_header_preproc=no
11184fi
11185
11186rm -f conftest.err conftest.$ac_ext
11187{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11188$as_echo "$ac_header_preproc" >&6; }
11189
11190# So?  What about this header?
11191case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11192  yes:no: )
11193    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11194$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11195    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11196$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11197    ac_header_preproc=yes
11198    ;;
11199  no:yes:* )
11200    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11201$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11202    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11203$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11204    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11205$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11206    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11207$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11208    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11209$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11210    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11211$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11212
11213    ;;
11214esac
11215{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11216$as_echo_n "checking for $ac_header... " >&6; }
11217if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11218  $as_echo_n "(cached) " >&6
11219else
11220  eval "$as_ac_Header=\$ac_header_preproc"
11221fi
11222ac_res=`eval 'as_val=${'$as_ac_Header'}
11223		 $as_echo "$as_val"'`
11224	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11225$as_echo "$ac_res" >&6; }
11226
11227fi
11228as_val=`eval 'as_val=${'$as_ac_Header'}
11229		 $as_echo "$as_val"'`
11230   if test "x$as_val" = x""yes; then
11231  cat >>confdefs.h <<_ACEOF
11232#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11233_ACEOF
11234
11235fi
11236
11237done
11238
11239
11240
11241for ac_header in sys/ptem.h
11242do
11243as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11244{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11245$as_echo_n "checking for $ac_header... " >&6; }
11246if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11247  $as_echo_n "(cached) " >&6
11248else
11249  cat >conftest.$ac_ext <<_ACEOF
11250/* confdefs.h.  */
11251_ACEOF
11252cat confdefs.h >>conftest.$ac_ext
11253cat >>conftest.$ac_ext <<_ACEOF
11254/* end confdefs.h.  */
11255#if defined HAVE_SYS_STREAM_H
11256#  include <sys/stream.h>
11257#endif
11258
11259#include <$ac_header>
11260_ACEOF
11261rm -f conftest.$ac_objext
11262if { (ac_try="$ac_compile"
11263case "(($ac_try" in
11264  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11265  *) ac_try_echo=$ac_try;;
11266esac
11267eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11268$as_echo "$ac_try_echo") >&5
11269  (eval "$ac_compile") 2>conftest.er1
11270  ac_status=$?
11271  grep -v '^ *+' conftest.er1 >conftest.err
11272  rm -f conftest.er1
11273  cat conftest.err >&5
11274  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275  (exit $ac_status); } && {
11276	 test -z "$ac_c_werror_flag" ||
11277	 test ! -s conftest.err
11278       } && test -s conftest.$ac_objext; then
11279  eval "$as_ac_Header=yes"
11280else
11281  $as_echo "$as_me: failed program was:" >&5
11282sed 's/^/| /' conftest.$ac_ext >&5
11283
11284	eval "$as_ac_Header=no"
11285fi
11286
11287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11288fi
11289ac_res=`eval 'as_val=${'$as_ac_Header'}
11290		 $as_echo "$as_val"'`
11291	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11292$as_echo "$ac_res" >&6; }
11293as_val=`eval 'as_val=${'$as_ac_Header'}
11294		 $as_echo "$as_val"'`
11295   if test "x$as_val" = x""yes; then
11296  cat >>confdefs.h <<_ACEOF
11297#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11298_ACEOF
11299
11300fi
11301
11302done
11303
11304
11305
11306for ac_header in sys/sysctl.h
11307do
11308as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11309{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11310$as_echo_n "checking for $ac_header... " >&6; }
11311if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11312  $as_echo_n "(cached) " >&6
11313else
11314  cat >conftest.$ac_ext <<_ACEOF
11315/* confdefs.h.  */
11316_ACEOF
11317cat confdefs.h >>conftest.$ac_ext
11318cat >>conftest.$ac_ext <<_ACEOF
11319/* end confdefs.h.  */
11320#if defined HAVE_SYS_PARAM_H
11321#  include <sys/param.h>
11322#endif
11323
11324#include <$ac_header>
11325_ACEOF
11326rm -f conftest.$ac_objext
11327if { (ac_try="$ac_compile"
11328case "(($ac_try" in
11329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11330  *) ac_try_echo=$ac_try;;
11331esac
11332eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11333$as_echo "$ac_try_echo") >&5
11334  (eval "$ac_compile") 2>conftest.er1
11335  ac_status=$?
11336  grep -v '^ *+' conftest.er1 >conftest.err
11337  rm -f conftest.er1
11338  cat conftest.err >&5
11339  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340  (exit $ac_status); } && {
11341	 test -z "$ac_c_werror_flag" ||
11342	 test ! -s conftest.err
11343       } && test -s conftest.$ac_objext; then
11344  eval "$as_ac_Header=yes"
11345else
11346  $as_echo "$as_me: failed program was:" >&5
11347sed 's/^/| /' conftest.$ac_ext >&5
11348
11349	eval "$as_ac_Header=no"
11350fi
11351
11352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11353fi
11354ac_res=`eval 'as_val=${'$as_ac_Header'}
11355		 $as_echo "$as_val"'`
11356	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11357$as_echo "$ac_res" >&6; }
11358as_val=`eval 'as_val=${'$as_ac_Header'}
11359		 $as_echo "$as_val"'`
11360   if test "x$as_val" = x""yes; then
11361  cat >>confdefs.h <<_ACEOF
11362#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11363_ACEOF
11364
11365fi
11366
11367done
11368
11369
11370
11371{ $as_echo "$as_me:$LINENO: checking for pthread_np.h" >&5
11372$as_echo_n "checking for pthread_np.h... " >&6; }
11373cat >conftest.$ac_ext <<_ACEOF
11374/* confdefs.h.  */
11375_ACEOF
11376cat confdefs.h >>conftest.$ac_ext
11377cat >>conftest.$ac_ext <<_ACEOF
11378/* end confdefs.h.  */
11379
11380#include <pthread.h>
11381#include <pthread_np.h>
11382int
11383main ()
11384{
11385int i; i = 0;
11386  ;
11387  return 0;
11388}
11389_ACEOF
11390rm -f conftest.$ac_objext
11391if { (ac_try="$ac_compile"
11392case "(($ac_try" in
11393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11394  *) ac_try_echo=$ac_try;;
11395esac
11396eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11397$as_echo "$ac_try_echo") >&5
11398  (eval "$ac_compile") 2>conftest.er1
11399  ac_status=$?
11400  grep -v '^ *+' conftest.er1 >conftest.err
11401  rm -f conftest.er1
11402  cat conftest.err >&5
11403  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404  (exit $ac_status); } && {
11405	 test -z "$ac_c_werror_flag" ||
11406	 test ! -s conftest.err
11407       } && test -s conftest.$ac_objext; then
11408  { $as_echo "$as_me:$LINENO: result: yes" >&5
11409$as_echo "yes" >&6; }
11410		      cat >>confdefs.h <<\_ACEOF
11411#define HAVE_PTHREAD_NP_H 1
11412_ACEOF
11413
11414else
11415  $as_echo "$as_me: failed program was:" >&5
11416sed 's/^/| /' conftest.$ac_ext >&5
11417
11418	{ $as_echo "$as_me:$LINENO: result: no" >&5
11419$as_echo "no" >&6; }
11420fi
11421
11422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11423
11424
11425for ac_header in strings.h
11426do
11427as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11428if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11429  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11430$as_echo_n "checking for $ac_header... " >&6; }
11431if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11432  $as_echo_n "(cached) " >&6
11433fi
11434ac_res=`eval 'as_val=${'$as_ac_Header'}
11435		 $as_echo "$as_val"'`
11436	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11437$as_echo "$ac_res" >&6; }
11438else
11439  # Is the header compilable?
11440{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11441$as_echo_n "checking $ac_header usability... " >&6; }
11442cat >conftest.$ac_ext <<_ACEOF
11443/* confdefs.h.  */
11444_ACEOF
11445cat confdefs.h >>conftest.$ac_ext
11446cat >>conftest.$ac_ext <<_ACEOF
11447/* end confdefs.h.  */
11448$ac_includes_default
11449#include <$ac_header>
11450_ACEOF
11451rm -f conftest.$ac_objext
11452if { (ac_try="$ac_compile"
11453case "(($ac_try" in
11454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11455  *) ac_try_echo=$ac_try;;
11456esac
11457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11458$as_echo "$ac_try_echo") >&5
11459  (eval "$ac_compile") 2>conftest.er1
11460  ac_status=$?
11461  grep -v '^ *+' conftest.er1 >conftest.err
11462  rm -f conftest.er1
11463  cat conftest.err >&5
11464  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465  (exit $ac_status); } && {
11466	 test -z "$ac_c_werror_flag" ||
11467	 test ! -s conftest.err
11468       } && test -s conftest.$ac_objext; then
11469  ac_header_compiler=yes
11470else
11471  $as_echo "$as_me: failed program was:" >&5
11472sed 's/^/| /' conftest.$ac_ext >&5
11473
11474	ac_header_compiler=no
11475fi
11476
11477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11478{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11479$as_echo "$ac_header_compiler" >&6; }
11480
11481# Is the header present?
11482{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11483$as_echo_n "checking $ac_header presence... " >&6; }
11484cat >conftest.$ac_ext <<_ACEOF
11485/* confdefs.h.  */
11486_ACEOF
11487cat confdefs.h >>conftest.$ac_ext
11488cat >>conftest.$ac_ext <<_ACEOF
11489/* end confdefs.h.  */
11490#include <$ac_header>
11491_ACEOF
11492if { (ac_try="$ac_cpp conftest.$ac_ext"
11493case "(($ac_try" in
11494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11495  *) ac_try_echo=$ac_try;;
11496esac
11497eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11498$as_echo "$ac_try_echo") >&5
11499  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11500  ac_status=$?
11501  grep -v '^ *+' conftest.er1 >conftest.err
11502  rm -f conftest.er1
11503  cat conftest.err >&5
11504  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505  (exit $ac_status); } >/dev/null && {
11506	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11507	 test ! -s conftest.err
11508       }; then
11509  ac_header_preproc=yes
11510else
11511  $as_echo "$as_me: failed program was:" >&5
11512sed 's/^/| /' conftest.$ac_ext >&5
11513
11514  ac_header_preproc=no
11515fi
11516
11517rm -f conftest.err conftest.$ac_ext
11518{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11519$as_echo "$ac_header_preproc" >&6; }
11520
11521# So?  What about this header?
11522case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11523  yes:no: )
11524    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11525$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11526    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11527$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11528    ac_header_preproc=yes
11529    ;;
11530  no:yes:* )
11531    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11532$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11533    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11534$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11535    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11536$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11537    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11538$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11539    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11540$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11541    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11542$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11543
11544    ;;
11545esac
11546{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11547$as_echo_n "checking for $ac_header... " >&6; }
11548if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11549  $as_echo_n "(cached) " >&6
11550else
11551  eval "$as_ac_Header=\$ac_header_preproc"
11552fi
11553ac_res=`eval 'as_val=${'$as_ac_Header'}
11554		 $as_echo "$as_val"'`
11555	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11556$as_echo "$ac_res" >&6; }
11557
11558fi
11559as_val=`eval 'as_val=${'$as_ac_Header'}
11560		 $as_echo "$as_val"'`
11561   if test "x$as_val" = x""yes; then
11562  cat >>confdefs.h <<_ACEOF
11563#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11564_ACEOF
11565
11566fi
11567
11568done
11569
11570if test "x$MACOSX" = "xyes"; then
11571    cat >>confdefs.h <<\_ACEOF
11572#define NO_STRINGS_WITH_STRING_H 1
11573_ACEOF
11574
11575else
11576
11577{ $as_echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
11578$as_echo_n "checking if strings.h can be included after string.h... " >&6; }
11579cppflags_save=$CPPFLAGS
11580CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11581cat >conftest.$ac_ext <<_ACEOF
11582/* confdefs.h.  */
11583_ACEOF
11584cat confdefs.h >>conftest.$ac_ext
11585cat >>conftest.$ac_ext <<_ACEOF
11586/* end confdefs.h.  */
11587
11588#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11589# define _NO_PROTO	/* like in os_unix.h, causes conflict for AIX (Winn) */
11590			/* but don't do it on AIX 5.1 (Uribarri) */
11591#endif
11592#ifdef HAVE_XM_XM_H
11593# include <Xm/Xm.h>	/* This breaks it for HP-UX 11 (Squassabia) */
11594#endif
11595#ifdef HAVE_STRING_H
11596# include <string.h>
11597#endif
11598#if defined(HAVE_STRINGS_H)
11599# include <strings.h>
11600#endif
11601
11602int
11603main ()
11604{
11605int i; i = 0;
11606  ;
11607  return 0;
11608}
11609_ACEOF
11610rm -f conftest.$ac_objext
11611if { (ac_try="$ac_compile"
11612case "(($ac_try" in
11613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614  *) ac_try_echo=$ac_try;;
11615esac
11616eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11617$as_echo "$ac_try_echo") >&5
11618  (eval "$ac_compile") 2>conftest.er1
11619  ac_status=$?
11620  grep -v '^ *+' conftest.er1 >conftest.err
11621  rm -f conftest.er1
11622  cat conftest.err >&5
11623  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624  (exit $ac_status); } && {
11625	 test -z "$ac_c_werror_flag" ||
11626	 test ! -s conftest.err
11627       } && test -s conftest.$ac_objext; then
11628  { $as_echo "$as_me:$LINENO: result: yes" >&5
11629$as_echo "yes" >&6; }
11630else
11631  $as_echo "$as_me: failed program was:" >&5
11632sed 's/^/| /' conftest.$ac_ext >&5
11633
11634	cat >>confdefs.h <<\_ACEOF
11635#define NO_STRINGS_WITH_STRING_H 1
11636_ACEOF
11637
11638		{ $as_echo "$as_me:$LINENO: result: no" >&5
11639$as_echo "no" >&6; }
11640fi
11641
11642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11643CPPFLAGS=$cppflags_save
11644fi
11645
11646if test $ac_cv_c_compiler_gnu = yes; then
11647    { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11648$as_echo_n "checking whether $CC needs -traditional... " >&6; }
11649if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11650  $as_echo_n "(cached) " >&6
11651else
11652    ac_pattern="Autoconf.*'x'"
11653  cat >conftest.$ac_ext <<_ACEOF
11654/* confdefs.h.  */
11655_ACEOF
11656cat confdefs.h >>conftest.$ac_ext
11657cat >>conftest.$ac_ext <<_ACEOF
11658/* end confdefs.h.  */
11659#include <sgtty.h>
11660Autoconf TIOCGETP
11661_ACEOF
11662if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11663  $EGREP "$ac_pattern" >/dev/null 2>&1; then
11664  ac_cv_prog_gcc_traditional=yes
11665else
11666  ac_cv_prog_gcc_traditional=no
11667fi
11668rm -f conftest*
11669
11670
11671  if test $ac_cv_prog_gcc_traditional = no; then
11672    cat >conftest.$ac_ext <<_ACEOF
11673/* confdefs.h.  */
11674_ACEOF
11675cat confdefs.h >>conftest.$ac_ext
11676cat >>conftest.$ac_ext <<_ACEOF
11677/* end confdefs.h.  */
11678#include <termio.h>
11679Autoconf TCGETA
11680_ACEOF
11681if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11682  $EGREP "$ac_pattern" >/dev/null 2>&1; then
11683  ac_cv_prog_gcc_traditional=yes
11684fi
11685rm -f conftest*
11686
11687  fi
11688fi
11689{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11690$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11691  if test $ac_cv_prog_gcc_traditional = yes; then
11692    CC="$CC -traditional"
11693  fi
11694fi
11695
11696{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11697$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11698if test "${ac_cv_c_const+set}" = set; then
11699  $as_echo_n "(cached) " >&6
11700else
11701  cat >conftest.$ac_ext <<_ACEOF
11702/* confdefs.h.  */
11703_ACEOF
11704cat confdefs.h >>conftest.$ac_ext
11705cat >>conftest.$ac_ext <<_ACEOF
11706/* end confdefs.h.  */
11707
11708int
11709main ()
11710{
11711/* FIXME: Include the comments suggested by Paul. */
11712#ifndef __cplusplus
11713  /* Ultrix mips cc rejects this.  */
11714  typedef int charset[2];
11715  const charset cs;
11716  /* SunOS 4.1.1 cc rejects this.  */
11717  char const *const *pcpcc;
11718  char **ppc;
11719  /* NEC SVR4.0.2 mips cc rejects this.  */
11720  struct point {int x, y;};
11721  static struct point const zero = {0,0};
11722  /* AIX XL C 1.02.0.0 rejects this.
11723     It does not let you subtract one const X* pointer from another in
11724     an arm of an if-expression whose if-part is not a constant
11725     expression */
11726  const char *g = "string";
11727  pcpcc = &g + (g ? g-g : 0);
11728  /* HPUX 7.0 cc rejects these. */
11729  ++pcpcc;
11730  ppc = (char**) pcpcc;
11731  pcpcc = (char const *const *) ppc;
11732  { /* SCO 3.2v4 cc rejects this.  */
11733    char *t;
11734    char const *s = 0 ? (char *) 0 : (char const *) 0;
11735
11736    *t++ = 0;
11737    if (s) return 0;
11738  }
11739  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11740    int x[] = {25, 17};
11741    const int *foo = &x[0];
11742    ++foo;
11743  }
11744  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11745    typedef const int *iptr;
11746    iptr p = 0;
11747    ++p;
11748  }
11749  { /* AIX XL C 1.02.0.0 rejects this saying
11750       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11751    struct s { int j; const int *ap[3]; };
11752    struct s *b; b->j = 5;
11753  }
11754  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11755    const int foo = 10;
11756    if (!foo) return 0;
11757  }
11758  return !cs[0] && !zero.x;
11759#endif
11760
11761  ;
11762  return 0;
11763}
11764_ACEOF
11765rm -f conftest.$ac_objext
11766if { (ac_try="$ac_compile"
11767case "(($ac_try" in
11768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11769  *) ac_try_echo=$ac_try;;
11770esac
11771eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11772$as_echo "$ac_try_echo") >&5
11773  (eval "$ac_compile") 2>conftest.er1
11774  ac_status=$?
11775  grep -v '^ *+' conftest.er1 >conftest.err
11776  rm -f conftest.er1
11777  cat conftest.err >&5
11778  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779  (exit $ac_status); } && {
11780	 test -z "$ac_c_werror_flag" ||
11781	 test ! -s conftest.err
11782       } && test -s conftest.$ac_objext; then
11783  ac_cv_c_const=yes
11784else
11785  $as_echo "$as_me: failed program was:" >&5
11786sed 's/^/| /' conftest.$ac_ext >&5
11787
11788	ac_cv_c_const=no
11789fi
11790
11791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11792fi
11793{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11794$as_echo "$ac_cv_c_const" >&6; }
11795if test $ac_cv_c_const = no; then
11796
11797cat >>confdefs.h <<\_ACEOF
11798#define const /**/
11799_ACEOF
11800
11801fi
11802
11803{ $as_echo "$as_me:$LINENO: checking for working volatile" >&5
11804$as_echo_n "checking for working volatile... " >&6; }
11805if test "${ac_cv_c_volatile+set}" = set; then
11806  $as_echo_n "(cached) " >&6
11807else
11808  cat >conftest.$ac_ext <<_ACEOF
11809/* confdefs.h.  */
11810_ACEOF
11811cat confdefs.h >>conftest.$ac_ext
11812cat >>conftest.$ac_ext <<_ACEOF
11813/* end confdefs.h.  */
11814
11815int
11816main ()
11817{
11818
11819volatile int x;
11820int * volatile y = (int *) 0;
11821return !x && !y;
11822  ;
11823  return 0;
11824}
11825_ACEOF
11826rm -f conftest.$ac_objext
11827if { (ac_try="$ac_compile"
11828case "(($ac_try" in
11829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830  *) ac_try_echo=$ac_try;;
11831esac
11832eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11833$as_echo "$ac_try_echo") >&5
11834  (eval "$ac_compile") 2>conftest.er1
11835  ac_status=$?
11836  grep -v '^ *+' conftest.er1 >conftest.err
11837  rm -f conftest.er1
11838  cat conftest.err >&5
11839  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840  (exit $ac_status); } && {
11841	 test -z "$ac_c_werror_flag" ||
11842	 test ! -s conftest.err
11843       } && test -s conftest.$ac_objext; then
11844  ac_cv_c_volatile=yes
11845else
11846  $as_echo "$as_me: failed program was:" >&5
11847sed 's/^/| /' conftest.$ac_ext >&5
11848
11849	ac_cv_c_volatile=no
11850fi
11851
11852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11853fi
11854{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11855$as_echo "$ac_cv_c_volatile" >&6; }
11856if test $ac_cv_c_volatile = no; then
11857
11858cat >>confdefs.h <<\_ACEOF
11859#define volatile /**/
11860_ACEOF
11861
11862fi
11863
11864{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
11865$as_echo_n "checking for mode_t... " >&6; }
11866if test "${ac_cv_type_mode_t+set}" = set; then
11867  $as_echo_n "(cached) " >&6
11868else
11869  ac_cv_type_mode_t=no
11870cat >conftest.$ac_ext <<_ACEOF
11871/* confdefs.h.  */
11872_ACEOF
11873cat confdefs.h >>conftest.$ac_ext
11874cat >>conftest.$ac_ext <<_ACEOF
11875/* end confdefs.h.  */
11876$ac_includes_default
11877int
11878main ()
11879{
11880if (sizeof (mode_t))
11881       return 0;
11882  ;
11883  return 0;
11884}
11885_ACEOF
11886rm -f conftest.$ac_objext
11887if { (ac_try="$ac_compile"
11888case "(($ac_try" in
11889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11890  *) ac_try_echo=$ac_try;;
11891esac
11892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11893$as_echo "$ac_try_echo") >&5
11894  (eval "$ac_compile") 2>conftest.er1
11895  ac_status=$?
11896  grep -v '^ *+' conftest.er1 >conftest.err
11897  rm -f conftest.er1
11898  cat conftest.err >&5
11899  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900  (exit $ac_status); } && {
11901	 test -z "$ac_c_werror_flag" ||
11902	 test ! -s conftest.err
11903       } && test -s conftest.$ac_objext; then
11904  cat >conftest.$ac_ext <<_ACEOF
11905/* confdefs.h.  */
11906_ACEOF
11907cat confdefs.h >>conftest.$ac_ext
11908cat >>conftest.$ac_ext <<_ACEOF
11909/* end confdefs.h.  */
11910$ac_includes_default
11911int
11912main ()
11913{
11914if (sizeof ((mode_t)))
11915	  return 0;
11916  ;
11917  return 0;
11918}
11919_ACEOF
11920rm -f conftest.$ac_objext
11921if { (ac_try="$ac_compile"
11922case "(($ac_try" in
11923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11924  *) ac_try_echo=$ac_try;;
11925esac
11926eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11927$as_echo "$ac_try_echo") >&5
11928  (eval "$ac_compile") 2>conftest.er1
11929  ac_status=$?
11930  grep -v '^ *+' conftest.er1 >conftest.err
11931  rm -f conftest.er1
11932  cat conftest.err >&5
11933  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934  (exit $ac_status); } && {
11935	 test -z "$ac_c_werror_flag" ||
11936	 test ! -s conftest.err
11937       } && test -s conftest.$ac_objext; then
11938  :
11939else
11940  $as_echo "$as_me: failed program was:" >&5
11941sed 's/^/| /' conftest.$ac_ext >&5
11942
11943	ac_cv_type_mode_t=yes
11944fi
11945
11946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11947else
11948  $as_echo "$as_me: failed program was:" >&5
11949sed 's/^/| /' conftest.$ac_ext >&5
11950
11951
11952fi
11953
11954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11955fi
11956{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11957$as_echo "$ac_cv_type_mode_t" >&6; }
11958if test "x$ac_cv_type_mode_t" = x""yes; then
11959  :
11960else
11961
11962cat >>confdefs.h <<_ACEOF
11963#define mode_t int
11964_ACEOF
11965
11966fi
11967
11968{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
11969$as_echo_n "checking for off_t... " >&6; }
11970if test "${ac_cv_type_off_t+set}" = set; then
11971  $as_echo_n "(cached) " >&6
11972else
11973  ac_cv_type_off_t=no
11974cat >conftest.$ac_ext <<_ACEOF
11975/* confdefs.h.  */
11976_ACEOF
11977cat confdefs.h >>conftest.$ac_ext
11978cat >>conftest.$ac_ext <<_ACEOF
11979/* end confdefs.h.  */
11980$ac_includes_default
11981int
11982main ()
11983{
11984if (sizeof (off_t))
11985       return 0;
11986  ;
11987  return 0;
11988}
11989_ACEOF
11990rm -f conftest.$ac_objext
11991if { (ac_try="$ac_compile"
11992case "(($ac_try" in
11993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994  *) ac_try_echo=$ac_try;;
11995esac
11996eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11997$as_echo "$ac_try_echo") >&5
11998  (eval "$ac_compile") 2>conftest.er1
11999  ac_status=$?
12000  grep -v '^ *+' conftest.er1 >conftest.err
12001  rm -f conftest.er1
12002  cat conftest.err >&5
12003  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004  (exit $ac_status); } && {
12005	 test -z "$ac_c_werror_flag" ||
12006	 test ! -s conftest.err
12007       } && test -s conftest.$ac_objext; then
12008  cat >conftest.$ac_ext <<_ACEOF
12009/* confdefs.h.  */
12010_ACEOF
12011cat confdefs.h >>conftest.$ac_ext
12012cat >>conftest.$ac_ext <<_ACEOF
12013/* end confdefs.h.  */
12014$ac_includes_default
12015int
12016main ()
12017{
12018if (sizeof ((off_t)))
12019	  return 0;
12020  ;
12021  return 0;
12022}
12023_ACEOF
12024rm -f conftest.$ac_objext
12025if { (ac_try="$ac_compile"
12026case "(($ac_try" in
12027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12028  *) ac_try_echo=$ac_try;;
12029esac
12030eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12031$as_echo "$ac_try_echo") >&5
12032  (eval "$ac_compile") 2>conftest.er1
12033  ac_status=$?
12034  grep -v '^ *+' conftest.er1 >conftest.err
12035  rm -f conftest.er1
12036  cat conftest.err >&5
12037  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038  (exit $ac_status); } && {
12039	 test -z "$ac_c_werror_flag" ||
12040	 test ! -s conftest.err
12041       } && test -s conftest.$ac_objext; then
12042  :
12043else
12044  $as_echo "$as_me: failed program was:" >&5
12045sed 's/^/| /' conftest.$ac_ext >&5
12046
12047	ac_cv_type_off_t=yes
12048fi
12049
12050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12051else
12052  $as_echo "$as_me: failed program was:" >&5
12053sed 's/^/| /' conftest.$ac_ext >&5
12054
12055
12056fi
12057
12058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12059fi
12060{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12061$as_echo "$ac_cv_type_off_t" >&6; }
12062if test "x$ac_cv_type_off_t" = x""yes; then
12063  :
12064else
12065
12066cat >>confdefs.h <<_ACEOF
12067#define off_t long int
12068_ACEOF
12069
12070fi
12071
12072{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
12073$as_echo_n "checking for pid_t... " >&6; }
12074if test "${ac_cv_type_pid_t+set}" = set; then
12075  $as_echo_n "(cached) " >&6
12076else
12077  ac_cv_type_pid_t=no
12078cat >conftest.$ac_ext <<_ACEOF
12079/* confdefs.h.  */
12080_ACEOF
12081cat confdefs.h >>conftest.$ac_ext
12082cat >>conftest.$ac_ext <<_ACEOF
12083/* end confdefs.h.  */
12084$ac_includes_default
12085int
12086main ()
12087{
12088if (sizeof (pid_t))
12089       return 0;
12090  ;
12091  return 0;
12092}
12093_ACEOF
12094rm -f conftest.$ac_objext
12095if { (ac_try="$ac_compile"
12096case "(($ac_try" in
12097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098  *) ac_try_echo=$ac_try;;
12099esac
12100eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12101$as_echo "$ac_try_echo") >&5
12102  (eval "$ac_compile") 2>conftest.er1
12103  ac_status=$?
12104  grep -v '^ *+' conftest.er1 >conftest.err
12105  rm -f conftest.er1
12106  cat conftest.err >&5
12107  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108  (exit $ac_status); } && {
12109	 test -z "$ac_c_werror_flag" ||
12110	 test ! -s conftest.err
12111       } && test -s conftest.$ac_objext; then
12112  cat >conftest.$ac_ext <<_ACEOF
12113/* confdefs.h.  */
12114_ACEOF
12115cat confdefs.h >>conftest.$ac_ext
12116cat >>conftest.$ac_ext <<_ACEOF
12117/* end confdefs.h.  */
12118$ac_includes_default
12119int
12120main ()
12121{
12122if (sizeof ((pid_t)))
12123	  return 0;
12124  ;
12125  return 0;
12126}
12127_ACEOF
12128rm -f conftest.$ac_objext
12129if { (ac_try="$ac_compile"
12130case "(($ac_try" in
12131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132  *) ac_try_echo=$ac_try;;
12133esac
12134eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12135$as_echo "$ac_try_echo") >&5
12136  (eval "$ac_compile") 2>conftest.er1
12137  ac_status=$?
12138  grep -v '^ *+' conftest.er1 >conftest.err
12139  rm -f conftest.er1
12140  cat conftest.err >&5
12141  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142  (exit $ac_status); } && {
12143	 test -z "$ac_c_werror_flag" ||
12144	 test ! -s conftest.err
12145       } && test -s conftest.$ac_objext; then
12146  :
12147else
12148  $as_echo "$as_me: failed program was:" >&5
12149sed 's/^/| /' conftest.$ac_ext >&5
12150
12151	ac_cv_type_pid_t=yes
12152fi
12153
12154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12155else
12156  $as_echo "$as_me: failed program was:" >&5
12157sed 's/^/| /' conftest.$ac_ext >&5
12158
12159
12160fi
12161
12162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12163fi
12164{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12165$as_echo "$ac_cv_type_pid_t" >&6; }
12166if test "x$ac_cv_type_pid_t" = x""yes; then
12167  :
12168else
12169
12170cat >>confdefs.h <<_ACEOF
12171#define pid_t int
12172_ACEOF
12173
12174fi
12175
12176{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
12177$as_echo_n "checking for size_t... " >&6; }
12178if test "${ac_cv_type_size_t+set}" = set; then
12179  $as_echo_n "(cached) " >&6
12180else
12181  ac_cv_type_size_t=no
12182cat >conftest.$ac_ext <<_ACEOF
12183/* confdefs.h.  */
12184_ACEOF
12185cat confdefs.h >>conftest.$ac_ext
12186cat >>conftest.$ac_ext <<_ACEOF
12187/* end confdefs.h.  */
12188$ac_includes_default
12189int
12190main ()
12191{
12192if (sizeof (size_t))
12193       return 0;
12194  ;
12195  return 0;
12196}
12197_ACEOF
12198rm -f conftest.$ac_objext
12199if { (ac_try="$ac_compile"
12200case "(($ac_try" in
12201  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12202  *) ac_try_echo=$ac_try;;
12203esac
12204eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12205$as_echo "$ac_try_echo") >&5
12206  (eval "$ac_compile") 2>conftest.er1
12207  ac_status=$?
12208  grep -v '^ *+' conftest.er1 >conftest.err
12209  rm -f conftest.er1
12210  cat conftest.err >&5
12211  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212  (exit $ac_status); } && {
12213	 test -z "$ac_c_werror_flag" ||
12214	 test ! -s conftest.err
12215       } && test -s conftest.$ac_objext; then
12216  cat >conftest.$ac_ext <<_ACEOF
12217/* confdefs.h.  */
12218_ACEOF
12219cat confdefs.h >>conftest.$ac_ext
12220cat >>conftest.$ac_ext <<_ACEOF
12221/* end confdefs.h.  */
12222$ac_includes_default
12223int
12224main ()
12225{
12226if (sizeof ((size_t)))
12227	  return 0;
12228  ;
12229  return 0;
12230}
12231_ACEOF
12232rm -f conftest.$ac_objext
12233if { (ac_try="$ac_compile"
12234case "(($ac_try" in
12235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12236  *) ac_try_echo=$ac_try;;
12237esac
12238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12239$as_echo "$ac_try_echo") >&5
12240  (eval "$ac_compile") 2>conftest.er1
12241  ac_status=$?
12242  grep -v '^ *+' conftest.er1 >conftest.err
12243  rm -f conftest.er1
12244  cat conftest.err >&5
12245  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246  (exit $ac_status); } && {
12247	 test -z "$ac_c_werror_flag" ||
12248	 test ! -s conftest.err
12249       } && test -s conftest.$ac_objext; then
12250  :
12251else
12252  $as_echo "$as_me: failed program was:" >&5
12253sed 's/^/| /' conftest.$ac_ext >&5
12254
12255	ac_cv_type_size_t=yes
12256fi
12257
12258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12259else
12260  $as_echo "$as_me: failed program was:" >&5
12261sed 's/^/| /' conftest.$ac_ext >&5
12262
12263
12264fi
12265
12266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12267fi
12268{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12269$as_echo "$ac_cv_type_size_t" >&6; }
12270if test "x$ac_cv_type_size_t" = x""yes; then
12271  :
12272else
12273
12274cat >>confdefs.h <<_ACEOF
12275#define size_t unsigned int
12276_ACEOF
12277
12278fi
12279
12280{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12281$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12282if test "${ac_cv_type_uid_t+set}" = set; then
12283  $as_echo_n "(cached) " >&6
12284else
12285  cat >conftest.$ac_ext <<_ACEOF
12286/* confdefs.h.  */
12287_ACEOF
12288cat confdefs.h >>conftest.$ac_ext
12289cat >>conftest.$ac_ext <<_ACEOF
12290/* end confdefs.h.  */
12291#include <sys/types.h>
12292
12293_ACEOF
12294if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12295  $EGREP "uid_t" >/dev/null 2>&1; then
12296  ac_cv_type_uid_t=yes
12297else
12298  ac_cv_type_uid_t=no
12299fi
12300rm -f conftest*
12301
12302fi
12303{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12304$as_echo "$ac_cv_type_uid_t" >&6; }
12305if test $ac_cv_type_uid_t = no; then
12306
12307cat >>confdefs.h <<\_ACEOF
12308#define uid_t int
12309_ACEOF
12310
12311
12312cat >>confdefs.h <<\_ACEOF
12313#define gid_t int
12314_ACEOF
12315
12316fi
12317
12318{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12319$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12320if test "${ac_cv_header_time+set}" = set; then
12321  $as_echo_n "(cached) " >&6
12322else
12323  cat >conftest.$ac_ext <<_ACEOF
12324/* confdefs.h.  */
12325_ACEOF
12326cat confdefs.h >>conftest.$ac_ext
12327cat >>conftest.$ac_ext <<_ACEOF
12328/* end confdefs.h.  */
12329#include <sys/types.h>
12330#include <sys/time.h>
12331#include <time.h>
12332
12333int
12334main ()
12335{
12336if ((struct tm *) 0)
12337return 0;
12338  ;
12339  return 0;
12340}
12341_ACEOF
12342rm -f conftest.$ac_objext
12343if { (ac_try="$ac_compile"
12344case "(($ac_try" in
12345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12346  *) ac_try_echo=$ac_try;;
12347esac
12348eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12349$as_echo "$ac_try_echo") >&5
12350  (eval "$ac_compile") 2>conftest.er1
12351  ac_status=$?
12352  grep -v '^ *+' conftest.er1 >conftest.err
12353  rm -f conftest.er1
12354  cat conftest.err >&5
12355  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356  (exit $ac_status); } && {
12357	 test -z "$ac_c_werror_flag" ||
12358	 test ! -s conftest.err
12359       } && test -s conftest.$ac_objext; then
12360  ac_cv_header_time=yes
12361else
12362  $as_echo "$as_me: failed program was:" >&5
12363sed 's/^/| /' conftest.$ac_ext >&5
12364
12365	ac_cv_header_time=no
12366fi
12367
12368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12369fi
12370{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12371$as_echo "$ac_cv_header_time" >&6; }
12372if test $ac_cv_header_time = yes; then
12373
12374cat >>confdefs.h <<\_ACEOF
12375#define TIME_WITH_SYS_TIME 1
12376_ACEOF
12377
12378fi
12379
12380{ $as_echo "$as_me:$LINENO: checking for ino_t" >&5
12381$as_echo_n "checking for ino_t... " >&6; }
12382if test "${ac_cv_type_ino_t+set}" = set; then
12383  $as_echo_n "(cached) " >&6
12384else
12385  ac_cv_type_ino_t=no
12386cat >conftest.$ac_ext <<_ACEOF
12387/* confdefs.h.  */
12388_ACEOF
12389cat confdefs.h >>conftest.$ac_ext
12390cat >>conftest.$ac_ext <<_ACEOF
12391/* end confdefs.h.  */
12392$ac_includes_default
12393int
12394main ()
12395{
12396if (sizeof (ino_t))
12397       return 0;
12398  ;
12399  return 0;
12400}
12401_ACEOF
12402rm -f conftest.$ac_objext
12403if { (ac_try="$ac_compile"
12404case "(($ac_try" in
12405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12406  *) ac_try_echo=$ac_try;;
12407esac
12408eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12409$as_echo "$ac_try_echo") >&5
12410  (eval "$ac_compile") 2>conftest.er1
12411  ac_status=$?
12412  grep -v '^ *+' conftest.er1 >conftest.err
12413  rm -f conftest.er1
12414  cat conftest.err >&5
12415  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416  (exit $ac_status); } && {
12417	 test -z "$ac_c_werror_flag" ||
12418	 test ! -s conftest.err
12419       } && test -s conftest.$ac_objext; then
12420  cat >conftest.$ac_ext <<_ACEOF
12421/* confdefs.h.  */
12422_ACEOF
12423cat confdefs.h >>conftest.$ac_ext
12424cat >>conftest.$ac_ext <<_ACEOF
12425/* end confdefs.h.  */
12426$ac_includes_default
12427int
12428main ()
12429{
12430if (sizeof ((ino_t)))
12431	  return 0;
12432  ;
12433  return 0;
12434}
12435_ACEOF
12436rm -f conftest.$ac_objext
12437if { (ac_try="$ac_compile"
12438case "(($ac_try" in
12439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12440  *) ac_try_echo=$ac_try;;
12441esac
12442eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12443$as_echo "$ac_try_echo") >&5
12444  (eval "$ac_compile") 2>conftest.er1
12445  ac_status=$?
12446  grep -v '^ *+' conftest.er1 >conftest.err
12447  rm -f conftest.er1
12448  cat conftest.err >&5
12449  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450  (exit $ac_status); } && {
12451	 test -z "$ac_c_werror_flag" ||
12452	 test ! -s conftest.err
12453       } && test -s conftest.$ac_objext; then
12454  :
12455else
12456  $as_echo "$as_me: failed program was:" >&5
12457sed 's/^/| /' conftest.$ac_ext >&5
12458
12459	ac_cv_type_ino_t=yes
12460fi
12461
12462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12463else
12464  $as_echo "$as_me: failed program was:" >&5
12465sed 's/^/| /' conftest.$ac_ext >&5
12466
12467
12468fi
12469
12470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12471fi
12472{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12473$as_echo "$ac_cv_type_ino_t" >&6; }
12474if test "x$ac_cv_type_ino_t" = x""yes; then
12475  :
12476else
12477
12478cat >>confdefs.h <<_ACEOF
12479#define ino_t long
12480_ACEOF
12481
12482fi
12483
12484{ $as_echo "$as_me:$LINENO: checking for dev_t" >&5
12485$as_echo_n "checking for dev_t... " >&6; }
12486if test "${ac_cv_type_dev_t+set}" = set; then
12487  $as_echo_n "(cached) " >&6
12488else
12489  ac_cv_type_dev_t=no
12490cat >conftest.$ac_ext <<_ACEOF
12491/* confdefs.h.  */
12492_ACEOF
12493cat confdefs.h >>conftest.$ac_ext
12494cat >>conftest.$ac_ext <<_ACEOF
12495/* end confdefs.h.  */
12496$ac_includes_default
12497int
12498main ()
12499{
12500if (sizeof (dev_t))
12501       return 0;
12502  ;
12503  return 0;
12504}
12505_ACEOF
12506rm -f conftest.$ac_objext
12507if { (ac_try="$ac_compile"
12508case "(($ac_try" in
12509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510  *) ac_try_echo=$ac_try;;
12511esac
12512eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12513$as_echo "$ac_try_echo") >&5
12514  (eval "$ac_compile") 2>conftest.er1
12515  ac_status=$?
12516  grep -v '^ *+' conftest.er1 >conftest.err
12517  rm -f conftest.er1
12518  cat conftest.err >&5
12519  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520  (exit $ac_status); } && {
12521	 test -z "$ac_c_werror_flag" ||
12522	 test ! -s conftest.err
12523       } && test -s conftest.$ac_objext; then
12524  cat >conftest.$ac_ext <<_ACEOF
12525/* confdefs.h.  */
12526_ACEOF
12527cat confdefs.h >>conftest.$ac_ext
12528cat >>conftest.$ac_ext <<_ACEOF
12529/* end confdefs.h.  */
12530$ac_includes_default
12531int
12532main ()
12533{
12534if (sizeof ((dev_t)))
12535	  return 0;
12536  ;
12537  return 0;
12538}
12539_ACEOF
12540rm -f conftest.$ac_objext
12541if { (ac_try="$ac_compile"
12542case "(($ac_try" in
12543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544  *) ac_try_echo=$ac_try;;
12545esac
12546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12547$as_echo "$ac_try_echo") >&5
12548  (eval "$ac_compile") 2>conftest.er1
12549  ac_status=$?
12550  grep -v '^ *+' conftest.er1 >conftest.err
12551  rm -f conftest.er1
12552  cat conftest.err >&5
12553  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554  (exit $ac_status); } && {
12555	 test -z "$ac_c_werror_flag" ||
12556	 test ! -s conftest.err
12557       } && test -s conftest.$ac_objext; then
12558  :
12559else
12560  $as_echo "$as_me: failed program was:" >&5
12561sed 's/^/| /' conftest.$ac_ext >&5
12562
12563	ac_cv_type_dev_t=yes
12564fi
12565
12566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12567else
12568  $as_echo "$as_me: failed program was:" >&5
12569sed 's/^/| /' conftest.$ac_ext >&5
12570
12571
12572fi
12573
12574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12575fi
12576{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12577$as_echo "$ac_cv_type_dev_t" >&6; }
12578if test "x$ac_cv_type_dev_t" = x""yes; then
12579  :
12580else
12581
12582cat >>confdefs.h <<_ACEOF
12583#define dev_t unsigned
12584_ACEOF
12585
12586fi
12587
12588
12589{ $as_echo "$as_me:$LINENO: checking for rlim_t" >&5
12590$as_echo_n "checking for rlim_t... " >&6; }
12591if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
12592  { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
12593$as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
12594else
12595  cat >conftest.$ac_ext <<_ACEOF
12596/* confdefs.h.  */
12597_ACEOF
12598cat confdefs.h >>conftest.$ac_ext
12599cat >>conftest.$ac_ext <<_ACEOF
12600/* end confdefs.h.  */
12601
12602#include <sys/types.h>
12603#if STDC_HEADERS
12604# include <stdlib.h>
12605# include <stddef.h>
12606#endif
12607#ifdef HAVE_SYS_RESOURCE_H
12608# include <sys/resource.h>
12609#endif
12610
12611_ACEOF
12612if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12613  $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12614  ac_cv_type_rlim_t=yes
12615else
12616  ac_cv_type_rlim_t=no
12617fi
12618rm -f conftest*
12619
12620	  { $as_echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
12621$as_echo "$ac_cv_type_rlim_t" >&6; }
12622fi
12623if test $ac_cv_type_rlim_t = no; then
12624  cat >> confdefs.h <<\EOF
12625#define rlim_t unsigned long
12626EOF
12627fi
12628
12629{ $as_echo "$as_me:$LINENO: checking for stack_t" >&5
12630$as_echo_n "checking for stack_t... " >&6; }
12631if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
12632  { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
12633$as_echo "(cached) $ac_cv_type_stack_t" >&6; }
12634else
12635  cat >conftest.$ac_ext <<_ACEOF
12636/* confdefs.h.  */
12637_ACEOF
12638cat confdefs.h >>conftest.$ac_ext
12639cat >>conftest.$ac_ext <<_ACEOF
12640/* end confdefs.h.  */
12641
12642#include <sys/types.h>
12643#if STDC_HEADERS
12644# include <stdlib.h>
12645# include <stddef.h>
12646#endif
12647#include <signal.h>
12648
12649_ACEOF
12650if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12651  $EGREP "stack_t" >/dev/null 2>&1; then
12652  ac_cv_type_stack_t=yes
12653else
12654  ac_cv_type_stack_t=no
12655fi
12656rm -f conftest*
12657
12658	  { $as_echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
12659$as_echo "$ac_cv_type_stack_t" >&6; }
12660fi
12661if test $ac_cv_type_stack_t = no; then
12662  cat >> confdefs.h <<\EOF
12663#define stack_t struct sigaltstack
12664EOF
12665fi
12666
12667{ $as_echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
12668$as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
12669cat >conftest.$ac_ext <<_ACEOF
12670/* confdefs.h.  */
12671_ACEOF
12672cat confdefs.h >>conftest.$ac_ext
12673cat >>conftest.$ac_ext <<_ACEOF
12674/* end confdefs.h.  */
12675
12676#include <sys/types.h>
12677#if STDC_HEADERS
12678# include <stdlib.h>
12679# include <stddef.h>
12680#endif
12681#include <signal.h>
12682#include "confdefs.h"
12683
12684int
12685main ()
12686{
12687stack_t sigstk; sigstk.ss_base = 0;
12688  ;
12689  return 0;
12690}
12691_ACEOF
12692rm -f conftest.$ac_objext
12693if { (ac_try="$ac_compile"
12694case "(($ac_try" in
12695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12696  *) ac_try_echo=$ac_try;;
12697esac
12698eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12699$as_echo "$ac_try_echo") >&5
12700  (eval "$ac_compile") 2>conftest.er1
12701  ac_status=$?
12702  grep -v '^ *+' conftest.er1 >conftest.err
12703  rm -f conftest.er1
12704  cat conftest.err >&5
12705  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706  (exit $ac_status); } && {
12707	 test -z "$ac_c_werror_flag" ||
12708	 test ! -s conftest.err
12709       } && test -s conftest.$ac_objext; then
12710  { $as_echo "$as_me:$LINENO: result: yes" >&5
12711$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12712#define HAVE_SS_BASE 1
12713_ACEOF
12714
12715else
12716  $as_echo "$as_me: failed program was:" >&5
12717sed 's/^/| /' conftest.$ac_ext >&5
12718
12719	{ $as_echo "$as_me:$LINENO: result: no" >&5
12720$as_echo "no" >&6; }
12721fi
12722
12723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12724
12725olibs="$LIBS"
12726{ $as_echo "$as_me:$LINENO: checking --with-tlib argument" >&5
12727$as_echo_n "checking --with-tlib argument... " >&6; }
12728
12729# Check whether --with-tlib was given.
12730if test "${with_tlib+set}" = set; then
12731  withval=$with_tlib;
12732fi
12733
12734if test -n "$with_tlib"; then
12735  { $as_echo "$as_me:$LINENO: result: $with_tlib" >&5
12736$as_echo "$with_tlib" >&6; }
12737  LIBS="$LIBS -l$with_tlib"
12738  { $as_echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
12739$as_echo_n "checking for linking with $with_tlib library... " >&6; }
12740  cat >conftest.$ac_ext <<_ACEOF
12741/* confdefs.h.  */
12742_ACEOF
12743cat confdefs.h >>conftest.$ac_ext
12744cat >>conftest.$ac_ext <<_ACEOF
12745/* end confdefs.h.  */
12746
12747int
12748main ()
12749{
12750
12751  ;
12752  return 0;
12753}
12754_ACEOF
12755rm -f conftest.$ac_objext conftest$ac_exeext
12756if { (ac_try="$ac_link"
12757case "(($ac_try" in
12758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12759  *) ac_try_echo=$ac_try;;
12760esac
12761eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12762$as_echo "$ac_try_echo") >&5
12763  (eval "$ac_link") 2>conftest.er1
12764  ac_status=$?
12765  grep -v '^ *+' conftest.er1 >conftest.err
12766  rm -f conftest.er1
12767  cat conftest.err >&5
12768  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769  (exit $ac_status); } && {
12770	 test -z "$ac_c_werror_flag" ||
12771	 test ! -s conftest.err
12772       } && test -s conftest$ac_exeext && {
12773	 test "$cross_compiling" = yes ||
12774	 $as_test_x conftest$ac_exeext
12775       }; then
12776  { $as_echo "$as_me:$LINENO: result: OK" >&5
12777$as_echo "OK" >&6; }
12778else
12779  $as_echo "$as_me: failed program was:" >&5
12780sed 's/^/| /' conftest.$ac_ext >&5
12781
12782	{ { $as_echo "$as_me:$LINENO: error: FAILED" >&5
12783$as_echo "$as_me: error: FAILED" >&2;}
12784   { (exit 1); exit 1; }; }
12785fi
12786
12787rm -rf conftest.dSYM
12788rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12789      conftest$ac_exeext conftest.$ac_ext
12790    olibs="$LIBS"
12791else
12792  { $as_echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
12793$as_echo "empty: automatic terminal library selection" >&6; }
12794              case "`uname -s 2>/dev/null`" in
12795	OSF1|SCO_SV)	tlibs="ncurses curses termlib termcap";;
12796	*)	tlibs="ncurses termlib termcap curses";;
12797  esac
12798  for libname in $tlibs; do
12799
12800as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
12801{ $as_echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
12802$as_echo_n "checking for tgetent in -l${libname}... " >&6; }
12803if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12804  $as_echo_n "(cached) " >&6
12805else
12806  ac_check_lib_save_LIBS=$LIBS
12807LIBS="-l${libname}  $LIBS"
12808cat >conftest.$ac_ext <<_ACEOF
12809/* confdefs.h.  */
12810_ACEOF
12811cat confdefs.h >>conftest.$ac_ext
12812cat >>conftest.$ac_ext <<_ACEOF
12813/* end confdefs.h.  */
12814
12815/* Override any GCC internal prototype to avoid an error.
12816   Use char because int might match the return type of a GCC
12817   builtin and then its argument prototype would still apply.  */
12818#ifdef __cplusplus
12819extern "C"
12820#endif
12821char tgetent ();
12822int
12823main ()
12824{
12825return tgetent ();
12826  ;
12827  return 0;
12828}
12829_ACEOF
12830rm -f conftest.$ac_objext conftest$ac_exeext
12831if { (ac_try="$ac_link"
12832case "(($ac_try" in
12833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834  *) ac_try_echo=$ac_try;;
12835esac
12836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12837$as_echo "$ac_try_echo") >&5
12838  (eval "$ac_link") 2>conftest.er1
12839  ac_status=$?
12840  grep -v '^ *+' conftest.er1 >conftest.err
12841  rm -f conftest.er1
12842  cat conftest.err >&5
12843  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844  (exit $ac_status); } && {
12845	 test -z "$ac_c_werror_flag" ||
12846	 test ! -s conftest.err
12847       } && test -s conftest$ac_exeext && {
12848	 test "$cross_compiling" = yes ||
12849	 $as_test_x conftest$ac_exeext
12850       }; then
12851  eval "$as_ac_Lib=yes"
12852else
12853  $as_echo "$as_me: failed program was:" >&5
12854sed 's/^/| /' conftest.$ac_ext >&5
12855
12856	eval "$as_ac_Lib=no"
12857fi
12858
12859rm -rf conftest.dSYM
12860rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12861      conftest$ac_exeext conftest.$ac_ext
12862LIBS=$ac_check_lib_save_LIBS
12863fi
12864ac_res=`eval 'as_val=${'$as_ac_Lib'}
12865		 $as_echo "$as_val"'`
12866	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12867$as_echo "$ac_res" >&6; }
12868as_val=`eval 'as_val=${'$as_ac_Lib'}
12869		 $as_echo "$as_val"'`
12870   if test "x$as_val" = x""yes; then
12871  cat >>confdefs.h <<_ACEOF
12872#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
12873_ACEOF
12874
12875  LIBS="-l${libname} $LIBS"
12876
12877fi
12878
12879    if test "x$olibs" != "x$LIBS"; then
12880                        if test "$cross_compiling" = yes; then
12881  res="FAIL"
12882else
12883  cat >conftest.$ac_ext <<_ACEOF
12884/* confdefs.h.  */
12885_ACEOF
12886cat confdefs.h >>conftest.$ac_ext
12887cat >>conftest.$ac_ext <<_ACEOF
12888/* end confdefs.h.  */
12889
12890#ifdef HAVE_TERMCAP_H
12891# include <termcap.h>
12892#endif
12893#if STDC_HEADERS
12894# include <stdlib.h>
12895# include <stddef.h>
12896#endif
12897main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
12898_ACEOF
12899rm -f conftest$ac_exeext
12900if { (ac_try="$ac_link"
12901case "(($ac_try" in
12902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12903  *) ac_try_echo=$ac_try;;
12904esac
12905eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12906$as_echo "$ac_try_echo") >&5
12907  (eval "$ac_link") 2>&5
12908  ac_status=$?
12909  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12911  { (case "(($ac_try" in
12912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12913  *) ac_try_echo=$ac_try;;
12914esac
12915eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12916$as_echo "$ac_try_echo") >&5
12917  (eval "$ac_try") 2>&5
12918  ac_status=$?
12919  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920  (exit $ac_status); }; }; then
12921  res="OK"
12922else
12923  $as_echo "$as_me: program exited with status $ac_status" >&5
12924$as_echo "$as_me: failed program was:" >&5
12925sed 's/^/| /' conftest.$ac_ext >&5
12926
12927( exit $ac_status )
12928res="FAIL"
12929fi
12930rm -rf conftest.dSYM
12931rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12932fi
12933
12934
12935      if test "$res" = "OK"; then
12936	break
12937      fi
12938      { $as_echo "$as_me:$LINENO: result: $libname library is not usable" >&5
12939$as_echo "$libname library is not usable" >&6; }
12940      LIBS="$olibs"
12941    fi
12942  done
12943  if test "x$olibs" = "x$LIBS"; then
12944    { $as_echo "$as_me:$LINENO: result: no terminal library found" >&5
12945$as_echo "no terminal library found" >&6; }
12946  fi
12947fi
12948
12949if test "x$olibs" = "x$LIBS"; then
12950  { $as_echo "$as_me:$LINENO: checking for tgetent()" >&5
12951$as_echo_n "checking for tgetent()... " >&6; }
12952  cat >conftest.$ac_ext <<_ACEOF
12953/* confdefs.h.  */
12954_ACEOF
12955cat confdefs.h >>conftest.$ac_ext
12956cat >>conftest.$ac_ext <<_ACEOF
12957/* end confdefs.h.  */
12958
12959int
12960main ()
12961{
12962char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
12963  ;
12964  return 0;
12965}
12966_ACEOF
12967rm -f conftest.$ac_objext conftest$ac_exeext
12968if { (ac_try="$ac_link"
12969case "(($ac_try" in
12970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12971  *) ac_try_echo=$ac_try;;
12972esac
12973eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12974$as_echo "$ac_try_echo") >&5
12975  (eval "$ac_link") 2>conftest.er1
12976  ac_status=$?
12977  grep -v '^ *+' conftest.er1 >conftest.err
12978  rm -f conftest.er1
12979  cat conftest.err >&5
12980  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981  (exit $ac_status); } && {
12982	 test -z "$ac_c_werror_flag" ||
12983	 test ! -s conftest.err
12984       } && test -s conftest$ac_exeext && {
12985	 test "$cross_compiling" = yes ||
12986	 $as_test_x conftest$ac_exeext
12987       }; then
12988  { $as_echo "$as_me:$LINENO: result: yes" >&5
12989$as_echo "yes" >&6; }
12990else
12991  $as_echo "$as_me: failed program was:" >&5
12992sed 's/^/| /' conftest.$ac_ext >&5
12993
12994	{ { $as_echo "$as_me:$LINENO: error: NOT FOUND!
12995      You need to install a terminal library; for example ncurses.
12996      Or specify the name of the library with --with-tlib." >&5
12997$as_echo "$as_me: error: NOT FOUND!
12998      You need to install a terminal library; for example ncurses.
12999      Or specify the name of the library with --with-tlib." >&2;}
13000   { (exit 1); exit 1; }; }
13001fi
13002
13003rm -rf conftest.dSYM
13004rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13005      conftest$ac_exeext conftest.$ac_ext
13006fi
13007
13008{ $as_echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
13009$as_echo_n "checking whether we talk terminfo... " >&6; }
13010if test "${vim_cv_terminfo+set}" = set; then
13011  $as_echo_n "(cached) " >&6
13012else
13013
13014    if test "$cross_compiling" = yes; then
13015
13016      { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5
13017$as_echo "$as_me: error: cross-compiling: please set 'vim_cv_terminfo'" >&2;}
13018   { (exit 1); exit 1; }; }
13019
13020else
13021  cat >conftest.$ac_ext <<_ACEOF
13022
13023#include "confdefs.h"
13024#ifdef HAVE_TERMCAP_H
13025# include <termcap.h>
13026#endif
13027#ifdef HAVE_STRING_H
13028# include <string.h>
13029#endif
13030#if STDC_HEADERS
13031# include <stdlib.h>
13032# include <stddef.h>
13033#endif
13034main()
13035{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
13036
13037_ACEOF
13038rm -f conftest$ac_exeext
13039if { (ac_try="$ac_link"
13040case "(($ac_try" in
13041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13042  *) ac_try_echo=$ac_try;;
13043esac
13044eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13045$as_echo "$ac_try_echo") >&5
13046  (eval "$ac_link") 2>&5
13047  ac_status=$?
13048  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13050  { (case "(($ac_try" in
13051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13052  *) ac_try_echo=$ac_try;;
13053esac
13054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13055$as_echo "$ac_try_echo") >&5
13056  (eval "$ac_try") 2>&5
13057  ac_status=$?
13058  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059  (exit $ac_status); }; }; then
13060
13061      vim_cv_terminfo=no
13062
13063else
13064  $as_echo "$as_me: program exited with status $ac_status" >&5
13065$as_echo "$as_me: failed program was:" >&5
13066sed 's/^/| /' conftest.$ac_ext >&5
13067
13068( exit $ac_status )
13069
13070      vim_cv_terminfo=yes
13071
13072fi
13073rm -rf conftest.dSYM
13074rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13075fi
13076
13077
13078
13079fi
13080{ $as_echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5
13081$as_echo "$vim_cv_terminfo" >&6; }
13082
13083if test "x$vim_cv_terminfo" = "xyes" ; then
13084  cat >>confdefs.h <<\_ACEOF
13085#define TERMINFO 1
13086_ACEOF
13087
13088fi
13089
13090if test "x$olibs" != "x$LIBS"; then
13091  { $as_echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
13092$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
13093if test "${vim_cv_tgent+set}" = set; then
13094  $as_echo_n "(cached) " >&6
13095else
13096
13097      if test "$cross_compiling" = yes; then
13098
13099	{ { $as_echo "$as_me:$LINENO: error: failed to compile test program." >&5
13100$as_echo "$as_me: error: failed to compile test program." >&2;}
13101   { (exit 1); exit 1; }; }
13102
13103else
13104  cat >conftest.$ac_ext <<_ACEOF
13105
13106#include "confdefs.h"
13107#ifdef HAVE_TERMCAP_H
13108# include <termcap.h>
13109#endif
13110#if STDC_HEADERS
13111# include <stdlib.h>
13112# include <stddef.h>
13113#endif
13114main()
13115{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
13116
13117_ACEOF
13118rm -f conftest$ac_exeext
13119if { (ac_try="$ac_link"
13120case "(($ac_try" in
13121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13122  *) ac_try_echo=$ac_try;;
13123esac
13124eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13125$as_echo "$ac_try_echo") >&5
13126  (eval "$ac_link") 2>&5
13127  ac_status=$?
13128  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13130  { (case "(($ac_try" in
13131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132  *) ac_try_echo=$ac_try;;
13133esac
13134eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13135$as_echo "$ac_try_echo") >&5
13136  (eval "$ac_try") 2>&5
13137  ac_status=$?
13138  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139  (exit $ac_status); }; }; then
13140
13141	vim_cv_tgent=zero
13142
13143else
13144  $as_echo "$as_me: program exited with status $ac_status" >&5
13145$as_echo "$as_me: failed program was:" >&5
13146sed 's/^/| /' conftest.$ac_ext >&5
13147
13148( exit $ac_status )
13149
13150	vim_cv_tgent=non-zero
13151
13152fi
13153rm -rf conftest.dSYM
13154rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13155fi
13156
13157
13158
13159fi
13160{ $as_echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5
13161$as_echo "$vim_cv_tgent" >&6; }
13162
13163  if test "x$vim_cv_tgent" = "xzero" ; then
13164    cat >>confdefs.h <<\_ACEOF
13165#define TGETENT_ZERO_ERR 0
13166_ACEOF
13167
13168  fi
13169fi
13170
13171{ $as_echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
13172$as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
13173cat >conftest.$ac_ext <<_ACEOF
13174/* confdefs.h.  */
13175_ACEOF
13176cat confdefs.h >>conftest.$ac_ext
13177cat >>conftest.$ac_ext <<_ACEOF
13178/* end confdefs.h.  */
13179
13180#ifdef HAVE_TERMCAP_H
13181# include <termcap.h>
13182#endif
13183
13184int
13185main ()
13186{
13187ospeed = 20000
13188  ;
13189  return 0;
13190}
13191_ACEOF
13192rm -f conftest.$ac_objext conftest$ac_exeext
13193if { (ac_try="$ac_link"
13194case "(($ac_try" in
13195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13196  *) ac_try_echo=$ac_try;;
13197esac
13198eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13199$as_echo "$ac_try_echo") >&5
13200  (eval "$ac_link") 2>conftest.er1
13201  ac_status=$?
13202  grep -v '^ *+' conftest.er1 >conftest.err
13203  rm -f conftest.er1
13204  cat conftest.err >&5
13205  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206  (exit $ac_status); } && {
13207	 test -z "$ac_c_werror_flag" ||
13208	 test ! -s conftest.err
13209       } && test -s conftest$ac_exeext && {
13210	 test "$cross_compiling" = yes ||
13211	 $as_test_x conftest$ac_exeext
13212       }; then
13213  { $as_echo "$as_me:$LINENO: result: yes" >&5
13214$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13215#define HAVE_OSPEED 1
13216_ACEOF
13217
13218else
13219  $as_echo "$as_me: failed program was:" >&5
13220sed 's/^/| /' conftest.$ac_ext >&5
13221
13222	{ $as_echo "$as_me:$LINENO: result: no" >&5
13223$as_echo "no" >&6; }
13224	{ $as_echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
13225$as_echo_n "checking whether ospeed can be extern... " >&6; }
13226	cat >conftest.$ac_ext <<_ACEOF
13227/* confdefs.h.  */
13228_ACEOF
13229cat confdefs.h >>conftest.$ac_ext
13230cat >>conftest.$ac_ext <<_ACEOF
13231/* end confdefs.h.  */
13232
13233#ifdef HAVE_TERMCAP_H
13234# include <termcap.h>
13235#endif
13236extern short ospeed;
13237
13238int
13239main ()
13240{
13241ospeed = 20000
13242  ;
13243  return 0;
13244}
13245_ACEOF
13246rm -f conftest.$ac_objext conftest$ac_exeext
13247if { (ac_try="$ac_link"
13248case "(($ac_try" in
13249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13250  *) ac_try_echo=$ac_try;;
13251esac
13252eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13253$as_echo "$ac_try_echo") >&5
13254  (eval "$ac_link") 2>conftest.er1
13255  ac_status=$?
13256  grep -v '^ *+' conftest.er1 >conftest.err
13257  rm -f conftest.er1
13258  cat conftest.err >&5
13259  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260  (exit $ac_status); } && {
13261	 test -z "$ac_c_werror_flag" ||
13262	 test ! -s conftest.err
13263       } && test -s conftest$ac_exeext && {
13264	 test "$cross_compiling" = yes ||
13265	 $as_test_x conftest$ac_exeext
13266       }; then
13267  { $as_echo "$as_me:$LINENO: result: yes" >&5
13268$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13269#define OSPEED_EXTERN 1
13270_ACEOF
13271
13272else
13273  $as_echo "$as_me: failed program was:" >&5
13274sed 's/^/| /' conftest.$ac_ext >&5
13275
13276	{ $as_echo "$as_me:$LINENO: result: no" >&5
13277$as_echo "no" >&6; }
13278fi
13279
13280rm -rf conftest.dSYM
13281rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13282      conftest$ac_exeext conftest.$ac_ext
13283
13284fi
13285
13286rm -rf conftest.dSYM
13287rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13288      conftest$ac_exeext conftest.$ac_ext
13289
13290{ $as_echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
13291$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
13292cat >conftest.$ac_ext <<_ACEOF
13293/* confdefs.h.  */
13294_ACEOF
13295cat confdefs.h >>conftest.$ac_ext
13296cat >>conftest.$ac_ext <<_ACEOF
13297/* end confdefs.h.  */
13298
13299#ifdef HAVE_TERMCAP_H
13300# include <termcap.h>
13301#endif
13302
13303int
13304main ()
13305{
13306if (UP == 0 && BC == 0) PC = 1
13307  ;
13308  return 0;
13309}
13310_ACEOF
13311rm -f conftest.$ac_objext conftest$ac_exeext
13312if { (ac_try="$ac_link"
13313case "(($ac_try" in
13314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13315  *) ac_try_echo=$ac_try;;
13316esac
13317eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13318$as_echo "$ac_try_echo") >&5
13319  (eval "$ac_link") 2>conftest.er1
13320  ac_status=$?
13321  grep -v '^ *+' conftest.er1 >conftest.err
13322  rm -f conftest.er1
13323  cat conftest.err >&5
13324  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325  (exit $ac_status); } && {
13326	 test -z "$ac_c_werror_flag" ||
13327	 test ! -s conftest.err
13328       } && test -s conftest$ac_exeext && {
13329	 test "$cross_compiling" = yes ||
13330	 $as_test_x conftest$ac_exeext
13331       }; then
13332  { $as_echo "$as_me:$LINENO: result: yes" >&5
13333$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13334#define HAVE_UP_BC_PC 1
13335_ACEOF
13336
13337else
13338  $as_echo "$as_me: failed program was:" >&5
13339sed 's/^/| /' conftest.$ac_ext >&5
13340
13341	{ $as_echo "$as_me:$LINENO: result: no" >&5
13342$as_echo "no" >&6; }
13343	{ $as_echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
13344$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
13345	cat >conftest.$ac_ext <<_ACEOF
13346/* confdefs.h.  */
13347_ACEOF
13348cat confdefs.h >>conftest.$ac_ext
13349cat >>conftest.$ac_ext <<_ACEOF
13350/* end confdefs.h.  */
13351
13352#ifdef HAVE_TERMCAP_H
13353# include <termcap.h>
13354#endif
13355extern char *UP, *BC, PC;
13356
13357int
13358main ()
13359{
13360if (UP == 0 && BC == 0) PC = 1
13361  ;
13362  return 0;
13363}
13364_ACEOF
13365rm -f conftest.$ac_objext conftest$ac_exeext
13366if { (ac_try="$ac_link"
13367case "(($ac_try" in
13368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13369  *) ac_try_echo=$ac_try;;
13370esac
13371eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13372$as_echo "$ac_try_echo") >&5
13373  (eval "$ac_link") 2>conftest.er1
13374  ac_status=$?
13375  grep -v '^ *+' conftest.er1 >conftest.err
13376  rm -f conftest.er1
13377  cat conftest.err >&5
13378  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379  (exit $ac_status); } && {
13380	 test -z "$ac_c_werror_flag" ||
13381	 test ! -s conftest.err
13382       } && test -s conftest$ac_exeext && {
13383	 test "$cross_compiling" = yes ||
13384	 $as_test_x conftest$ac_exeext
13385       }; then
13386  { $as_echo "$as_me:$LINENO: result: yes" >&5
13387$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13388#define UP_BC_PC_EXTERN 1
13389_ACEOF
13390
13391else
13392  $as_echo "$as_me: failed program was:" >&5
13393sed 's/^/| /' conftest.$ac_ext >&5
13394
13395	{ $as_echo "$as_me:$LINENO: result: no" >&5
13396$as_echo "no" >&6; }
13397fi
13398
13399rm -rf conftest.dSYM
13400rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13401      conftest$ac_exeext conftest.$ac_ext
13402
13403fi
13404
13405rm -rf conftest.dSYM
13406rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13407      conftest$ac_exeext conftest.$ac_ext
13408
13409{ $as_echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
13410$as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
13411cat >conftest.$ac_ext <<_ACEOF
13412/* confdefs.h.  */
13413_ACEOF
13414cat confdefs.h >>conftest.$ac_ext
13415cat >>conftest.$ac_ext <<_ACEOF
13416/* end confdefs.h.  */
13417
13418#ifdef HAVE_TERMCAP_H
13419# include <termcap.h>
13420#endif
13421
13422int
13423main ()
13424{
13425extern int xx(); tputs("test", 1, (outfuntype)xx)
13426  ;
13427  return 0;
13428}
13429_ACEOF
13430rm -f conftest.$ac_objext
13431if { (ac_try="$ac_compile"
13432case "(($ac_try" in
13433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13434  *) ac_try_echo=$ac_try;;
13435esac
13436eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13437$as_echo "$ac_try_echo") >&5
13438  (eval "$ac_compile") 2>conftest.er1
13439  ac_status=$?
13440  grep -v '^ *+' conftest.er1 >conftest.err
13441  rm -f conftest.er1
13442  cat conftest.err >&5
13443  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444  (exit $ac_status); } && {
13445	 test -z "$ac_c_werror_flag" ||
13446	 test ! -s conftest.err
13447       } && test -s conftest.$ac_objext; then
13448  { $as_echo "$as_me:$LINENO: result: yes" >&5
13449$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13450#define HAVE_OUTFUNTYPE 1
13451_ACEOF
13452
13453else
13454  $as_echo "$as_me: failed program was:" >&5
13455sed 's/^/| /' conftest.$ac_ext >&5
13456
13457	{ $as_echo "$as_me:$LINENO: result: no" >&5
13458$as_echo "no" >&6; }
13459fi
13460
13461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13462
13463{ $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
13464$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
13465cat >conftest.$ac_ext <<_ACEOF
13466/* confdefs.h.  */
13467_ACEOF
13468cat confdefs.h >>conftest.$ac_ext
13469cat >>conftest.$ac_ext <<_ACEOF
13470/* end confdefs.h.  */
13471
13472#include <sys/types.h>
13473#include <sys/time.h>
13474#include <sys/select.h>
13475int
13476main ()
13477{
13478
13479  ;
13480  return 0;
13481}
13482_ACEOF
13483rm -f conftest.$ac_objext
13484if { (ac_try="$ac_compile"
13485case "(($ac_try" in
13486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13487  *) ac_try_echo=$ac_try;;
13488esac
13489eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13490$as_echo "$ac_try_echo") >&5
13491  (eval "$ac_compile") 2>conftest.er1
13492  ac_status=$?
13493  grep -v '^ *+' conftest.er1 >conftest.err
13494  rm -f conftest.er1
13495  cat conftest.err >&5
13496  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497  (exit $ac_status); } && {
13498	 test -z "$ac_c_werror_flag" ||
13499	 test ! -s conftest.err
13500       } && test -s conftest.$ac_objext; then
13501  { $as_echo "$as_me:$LINENO: result: yes" >&5
13502$as_echo "yes" >&6; }
13503			cat >>confdefs.h <<\_ACEOF
13504#define SYS_SELECT_WITH_SYS_TIME 1
13505_ACEOF
13506
13507else
13508  $as_echo "$as_me: failed program was:" >&5
13509sed 's/^/| /' conftest.$ac_ext >&5
13510
13511	{ $as_echo "$as_me:$LINENO: result: no" >&5
13512$as_echo "no" >&6; }
13513fi
13514
13515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13516
13517
13518{ $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5
13519$as_echo_n "checking for /dev/ptc... " >&6; }
13520if test -r /dev/ptc; then
13521  cat >>confdefs.h <<\_ACEOF
13522#define HAVE_DEV_PTC 1
13523_ACEOF
13524
13525  { $as_echo "$as_me:$LINENO: result: yes" >&5
13526$as_echo "yes" >&6; }
13527else
13528  { $as_echo "$as_me:$LINENO: result: no" >&5
13529$as_echo "no" >&6; }
13530fi
13531
13532{ $as_echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
13533$as_echo_n "checking for SVR4 ptys... " >&6; }
13534if test -c /dev/ptmx ; then
13535  cat >conftest.$ac_ext <<_ACEOF
13536/* confdefs.h.  */
13537_ACEOF
13538cat confdefs.h >>conftest.$ac_ext
13539cat >>conftest.$ac_ext <<_ACEOF
13540/* end confdefs.h.  */
13541
13542int
13543main ()
13544{
13545ptsname(0);grantpt(0);unlockpt(0);
13546  ;
13547  return 0;
13548}
13549_ACEOF
13550rm -f conftest.$ac_objext conftest$ac_exeext
13551if { (ac_try="$ac_link"
13552case "(($ac_try" in
13553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13554  *) ac_try_echo=$ac_try;;
13555esac
13556eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13557$as_echo "$ac_try_echo") >&5
13558  (eval "$ac_link") 2>conftest.er1
13559  ac_status=$?
13560  grep -v '^ *+' conftest.er1 >conftest.err
13561  rm -f conftest.er1
13562  cat conftest.err >&5
13563  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564  (exit $ac_status); } && {
13565	 test -z "$ac_c_werror_flag" ||
13566	 test ! -s conftest.err
13567       } && test -s conftest$ac_exeext && {
13568	 test "$cross_compiling" = yes ||
13569	 $as_test_x conftest$ac_exeext
13570       }; then
13571  { $as_echo "$as_me:$LINENO: result: yes" >&5
13572$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13573#define HAVE_SVR4_PTYS 1
13574_ACEOF
13575
13576else
13577  $as_echo "$as_me: failed program was:" >&5
13578sed 's/^/| /' conftest.$ac_ext >&5
13579
13580	{ $as_echo "$as_me:$LINENO: result: no" >&5
13581$as_echo "no" >&6; }
13582fi
13583
13584rm -rf conftest.dSYM
13585rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13586      conftest$ac_exeext conftest.$ac_ext
13587else
13588  { $as_echo "$as_me:$LINENO: result: no" >&5
13589$as_echo "no" >&6; }
13590fi
13591
13592{ $as_echo "$as_me:$LINENO: checking for ptyranges" >&5
13593$as_echo_n "checking for ptyranges... " >&6; }
13594if test -d /dev/ptym ; then
13595  pdir='/dev/ptym'
13596else
13597  pdir='/dev'
13598fi
13599cat >conftest.$ac_ext <<_ACEOF
13600/* confdefs.h.  */
13601_ACEOF
13602cat confdefs.h >>conftest.$ac_ext
13603cat >>conftest.$ac_ext <<_ACEOF
13604/* end confdefs.h.  */
13605#ifdef M_UNIX
13606   yes;
13607#endif
13608
13609_ACEOF
13610if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13611  $EGREP "yes" >/dev/null 2>&1; then
13612  ptys=`echo /dev/ptyp??`
13613else
13614  ptys=`echo $pdir/pty??`
13615fi
13616rm -f conftest*
13617
13618if test "$ptys" != "$pdir/pty??" ; then
13619  p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
13620  p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g'  | sort -u | tr -d '\012'`
13621  cat >>confdefs.h <<_ACEOF
13622#define PTYRANGE0 "$p0"
13623_ACEOF
13624
13625  cat >>confdefs.h <<_ACEOF
13626#define PTYRANGE1 "$p1"
13627_ACEOF
13628
13629  { $as_echo "$as_me:$LINENO: result: $p0 / $p1" >&5
13630$as_echo "$p0 / $p1" >&6; }
13631else
13632  { $as_echo "$as_me:$LINENO: result: don't know" >&5
13633$as_echo "don't know" >&6; }
13634fi
13635
13636rm -f conftest_grp
13637{ $as_echo "$as_me:$LINENO: checking default tty permissions/group" >&5
13638$as_echo_n "checking default tty permissions/group... " >&6; }
13639if test "${vim_cv_tty_group+set}" = set; then
13640  $as_echo_n "(cached) " >&6
13641else
13642
13643    if test "$cross_compiling" = yes; then
13644
13645      { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5
13646$as_echo "$as_me: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&2;}
13647   { (exit 1); exit 1; }; }
13648
13649else
13650  cat >conftest.$ac_ext <<_ACEOF
13651
13652#include "confdefs.h"
13653#include <sys/types.h>
13654#if STDC_HEADERS
13655# include <stdlib.h>
13656# include <stddef.h>
13657#endif
13658#ifdef HAVE_UNISTD_H
13659#include <unistd.h>
13660#endif
13661#include <sys/stat.h>
13662#include <stdio.h>
13663main()
13664{
13665  struct stat sb;
13666  char *x,*ttyname();
13667  int om, m;
13668  FILE *fp;
13669
13670  if (!(x = ttyname(0))) exit(1);
13671  if (stat(x, &sb)) exit(1);
13672  om = sb.st_mode;
13673  if (om & 002) exit(0);
13674  m = system("mesg y");
13675  if (m == -1 || m == 127) exit(1);
13676  if (stat(x, &sb)) exit(1);
13677  m = sb.st_mode;
13678  if (chmod(x, om)) exit(1);
13679  if (m & 002) exit(0);
13680  if (sb.st_gid == getgid()) exit(1);
13681  if (!(fp=fopen("conftest_grp", "w")))
13682    exit(1);
13683  fprintf(fp, "%d\n", sb.st_gid);
13684  fclose(fp);
13685  exit(0);
13686}
13687
13688_ACEOF
13689rm -f conftest$ac_exeext
13690if { (ac_try="$ac_link"
13691case "(($ac_try" in
13692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13693  *) ac_try_echo=$ac_try;;
13694esac
13695eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13696$as_echo "$ac_try_echo") >&5
13697  (eval "$ac_link") 2>&5
13698  ac_status=$?
13699  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13701  { (case "(($ac_try" in
13702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13703  *) ac_try_echo=$ac_try;;
13704esac
13705eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13706$as_echo "$ac_try_echo") >&5
13707  (eval "$ac_try") 2>&5
13708  ac_status=$?
13709  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710  (exit $ac_status); }; }; then
13711
13712      if test -f conftest_grp; then
13713	vim_cv_tty_group=`cat conftest_grp`
13714	if test "x$vim_cv_tty_mode" = "x" ; then
13715	  vim_cv_tty_mode=0620
13716	fi
13717	{ $as_echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
13718$as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
13719      else
13720	vim_cv_tty_group=world
13721	{ $as_echo "$as_me:$LINENO: result: ptys are world accessible" >&5
13722$as_echo "ptys are world accessible" >&6; }
13723      fi
13724
13725else
13726  $as_echo "$as_me: program exited with status $ac_status" >&5
13727$as_echo "$as_me: failed program was:" >&5
13728sed 's/^/| /' conftest.$ac_ext >&5
13729
13730( exit $ac_status )
13731
13732      vim_cv_tty_group=world
13733      { $as_echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessible" >&5
13734$as_echo "can't determine - assume ptys are world accessible" >&6; }
13735
13736fi
13737rm -rf conftest.dSYM
13738rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13739fi
13740
13741
13742
13743fi
13744{ $as_echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5
13745$as_echo "$vim_cv_tty_group" >&6; }
13746rm -f conftest_grp
13747
13748if test "x$vim_cv_tty_group" != "xworld" ; then
13749  cat >>confdefs.h <<_ACEOF
13750#define PTYGROUP $vim_cv_tty_group
13751_ACEOF
13752
13753  if test "x$vim_cv_tty_mode" = "x" ; then
13754    { { $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
13755$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;}
13756   { (exit 1); exit 1; }; }
13757  else
13758    cat >>confdefs.h <<\_ACEOF
13759#define PTYMODE 0620
13760_ACEOF
13761
13762  fi
13763fi
13764
13765
13766{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13767$as_echo_n "checking return type of signal handlers... " >&6; }
13768if test "${ac_cv_type_signal+set}" = set; then
13769  $as_echo_n "(cached) " >&6
13770else
13771  cat >conftest.$ac_ext <<_ACEOF
13772/* confdefs.h.  */
13773_ACEOF
13774cat confdefs.h >>conftest.$ac_ext
13775cat >>conftest.$ac_ext <<_ACEOF
13776/* end confdefs.h.  */
13777#include <sys/types.h>
13778#include <signal.h>
13779
13780int
13781main ()
13782{
13783return *(signal (0, 0)) (0) == 1;
13784  ;
13785  return 0;
13786}
13787_ACEOF
13788rm -f conftest.$ac_objext
13789if { (ac_try="$ac_compile"
13790case "(($ac_try" in
13791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13792  *) ac_try_echo=$ac_try;;
13793esac
13794eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13795$as_echo "$ac_try_echo") >&5
13796  (eval "$ac_compile") 2>conftest.er1
13797  ac_status=$?
13798  grep -v '^ *+' conftest.er1 >conftest.err
13799  rm -f conftest.er1
13800  cat conftest.err >&5
13801  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802  (exit $ac_status); } && {
13803	 test -z "$ac_c_werror_flag" ||
13804	 test ! -s conftest.err
13805       } && test -s conftest.$ac_objext; then
13806  ac_cv_type_signal=int
13807else
13808  $as_echo "$as_me: failed program was:" >&5
13809sed 's/^/| /' conftest.$ac_ext >&5
13810
13811	ac_cv_type_signal=void
13812fi
13813
13814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13815fi
13816{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13817$as_echo "$ac_cv_type_signal" >&6; }
13818
13819cat >>confdefs.h <<_ACEOF
13820#define RETSIGTYPE $ac_cv_type_signal
13821_ACEOF
13822
13823
13824
13825if test $ac_cv_type_signal = void; then
13826  cat >>confdefs.h <<\_ACEOF
13827#define SIGRETURN return
13828_ACEOF
13829
13830else
13831  cat >>confdefs.h <<\_ACEOF
13832#define SIGRETURN return 0
13833_ACEOF
13834
13835fi
13836
13837{ $as_echo "$as_me:$LINENO: checking for struct sigcontext" >&5
13838$as_echo_n "checking for struct sigcontext... " >&6; }
13839cat >conftest.$ac_ext <<_ACEOF
13840/* confdefs.h.  */
13841_ACEOF
13842cat confdefs.h >>conftest.$ac_ext
13843cat >>conftest.$ac_ext <<_ACEOF
13844/* end confdefs.h.  */
13845
13846#include <signal.h>
13847test_sig()
13848{
13849    struct sigcontext *scont;
13850    scont = (struct sigcontext *)0;
13851    return 1;
13852}
13853int
13854main ()
13855{
13856
13857  ;
13858  return 0;
13859}
13860_ACEOF
13861rm -f conftest.$ac_objext
13862if { (ac_try="$ac_compile"
13863case "(($ac_try" in
13864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865  *) ac_try_echo=$ac_try;;
13866esac
13867eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13868$as_echo "$ac_try_echo") >&5
13869  (eval "$ac_compile") 2>conftest.er1
13870  ac_status=$?
13871  grep -v '^ *+' conftest.er1 >conftest.err
13872  rm -f conftest.er1
13873  cat conftest.err >&5
13874  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875  (exit $ac_status); } && {
13876	 test -z "$ac_c_werror_flag" ||
13877	 test ! -s conftest.err
13878       } && test -s conftest.$ac_objext; then
13879  { $as_echo "$as_me:$LINENO: result: yes" >&5
13880$as_echo "yes" >&6; }
13881		cat >>confdefs.h <<\_ACEOF
13882#define HAVE_SIGCONTEXT 1
13883_ACEOF
13884
13885else
13886  $as_echo "$as_me: failed program was:" >&5
13887sed 's/^/| /' conftest.$ac_ext >&5
13888
13889	{ $as_echo "$as_me:$LINENO: result: no" >&5
13890$as_echo "no" >&6; }
13891fi
13892
13893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13894
13895{ $as_echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5
13896$as_echo_n "checking getcwd implementation is broken... " >&6; }
13897if test "${vim_cv_getcwd_broken+set}" = set; then
13898  $as_echo_n "(cached) " >&6
13899else
13900
13901    if test "$cross_compiling" = yes; then
13902
13903      { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5
13904$as_echo "$as_me: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&2;}
13905   { (exit 1); exit 1; }; }
13906
13907else
13908  cat >conftest.$ac_ext <<_ACEOF
13909
13910#include "confdefs.h"
13911#ifdef HAVE_UNISTD_H
13912#include <unistd.h>
13913#endif
13914char *dagger[] = { "IFS=pwd", 0 };
13915main()
13916{
13917  char buffer[500];
13918  extern char **environ;
13919  environ = dagger;
13920  return getcwd(buffer, 500) ? 0 : 1;
13921}
13922
13923_ACEOF
13924rm -f conftest$ac_exeext
13925if { (ac_try="$ac_link"
13926case "(($ac_try" in
13927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13928  *) ac_try_echo=$ac_try;;
13929esac
13930eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13931$as_echo "$ac_try_echo") >&5
13932  (eval "$ac_link") 2>&5
13933  ac_status=$?
13934  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13936  { (case "(($ac_try" in
13937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938  *) ac_try_echo=$ac_try;;
13939esac
13940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13941$as_echo "$ac_try_echo") >&5
13942  (eval "$ac_try") 2>&5
13943  ac_status=$?
13944  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945  (exit $ac_status); }; }; then
13946
13947      vim_cv_getcwd_broken=no
13948
13949else
13950  $as_echo "$as_me: program exited with status $ac_status" >&5
13951$as_echo "$as_me: failed program was:" >&5
13952sed 's/^/| /' conftest.$ac_ext >&5
13953
13954( exit $ac_status )
13955
13956      vim_cv_getcwd_broken=yes
13957
13958fi
13959rm -rf conftest.dSYM
13960rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13961fi
13962
13963
13964
13965fi
13966{ $as_echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5
13967$as_echo "$vim_cv_getcwd_broken" >&6; }
13968
13969if test "x$vim_cv_getcwd_broken" = "xyes" ; then
13970  cat >>confdefs.h <<\_ACEOF
13971#define BAD_GETCWD 1
13972_ACEOF
13973
13974fi
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
14024	getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
14025	memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
14026	setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
14027	sigvec strcasecmp strerror strftime stricmp strncasecmp \
14028	strnicmp strpbrk strtol tgetent towlower towupper iswupper \
14029	usleep utime utimes
14030do
14031as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14032{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14033$as_echo_n "checking for $ac_func... " >&6; }
14034if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14035  $as_echo_n "(cached) " >&6
14036else
14037  cat >conftest.$ac_ext <<_ACEOF
14038/* confdefs.h.  */
14039_ACEOF
14040cat confdefs.h >>conftest.$ac_ext
14041cat >>conftest.$ac_ext <<_ACEOF
14042/* end confdefs.h.  */
14043/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14044   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14045#define $ac_func innocuous_$ac_func
14046
14047/* System header to define __stub macros and hopefully few prototypes,
14048    which can conflict with char $ac_func (); below.
14049    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14050    <limits.h> exists even on freestanding compilers.  */
14051
14052#ifdef __STDC__
14053# include <limits.h>
14054#else
14055# include <assert.h>
14056#endif
14057
14058#undef $ac_func
14059
14060/* Override any GCC internal prototype to avoid an error.
14061   Use char because int might match the return type of a GCC
14062   builtin and then its argument prototype would still apply.  */
14063#ifdef __cplusplus
14064extern "C"
14065#endif
14066char $ac_func ();
14067/* The GNU C library defines this for functions which it implements
14068    to always fail with ENOSYS.  Some functions are actually named
14069    something starting with __ and the normal name is an alias.  */
14070#if defined __stub_$ac_func || defined __stub___$ac_func
14071choke me
14072#endif
14073
14074int
14075main ()
14076{
14077return $ac_func ();
14078  ;
14079  return 0;
14080}
14081_ACEOF
14082rm -f conftest.$ac_objext conftest$ac_exeext
14083if { (ac_try="$ac_link"
14084case "(($ac_try" in
14085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14086  *) ac_try_echo=$ac_try;;
14087esac
14088eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14089$as_echo "$ac_try_echo") >&5
14090  (eval "$ac_link") 2>conftest.er1
14091  ac_status=$?
14092  grep -v '^ *+' conftest.er1 >conftest.err
14093  rm -f conftest.er1
14094  cat conftest.err >&5
14095  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096  (exit $ac_status); } && {
14097	 test -z "$ac_c_werror_flag" ||
14098	 test ! -s conftest.err
14099       } && test -s conftest$ac_exeext && {
14100	 test "$cross_compiling" = yes ||
14101	 $as_test_x conftest$ac_exeext
14102       }; then
14103  eval "$as_ac_var=yes"
14104else
14105  $as_echo "$as_me: failed program was:" >&5
14106sed 's/^/| /' conftest.$ac_ext >&5
14107
14108	eval "$as_ac_var=no"
14109fi
14110
14111rm -rf conftest.dSYM
14112rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14113      conftest$ac_exeext conftest.$ac_ext
14114fi
14115ac_res=`eval 'as_val=${'$as_ac_var'}
14116		 $as_echo "$as_val"'`
14117	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14118$as_echo "$ac_res" >&6; }
14119as_val=`eval 'as_val=${'$as_ac_var'}
14120		 $as_echo "$as_val"'`
14121   if test "x$as_val" = x""yes; then
14122  cat >>confdefs.h <<_ACEOF
14123#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14124_ACEOF
14125
14126fi
14127done
14128
14129
14130{ $as_echo "$as_me:$LINENO: checking for st_blksize" >&5
14131$as_echo_n "checking for st_blksize... " >&6; }
14132cat >conftest.$ac_ext <<_ACEOF
14133/* confdefs.h.  */
14134_ACEOF
14135cat confdefs.h >>conftest.$ac_ext
14136cat >>conftest.$ac_ext <<_ACEOF
14137/* end confdefs.h.  */
14138#include <sys/types.h>
14139#include <sys/stat.h>
14140int
14141main ()
14142{
14143	struct stat st;
14144	int n;
14145
14146	stat("/", &st);
14147	n = (int)st.st_blksize;
14148  ;
14149  return 0;
14150}
14151_ACEOF
14152rm -f conftest.$ac_objext
14153if { (ac_try="$ac_compile"
14154case "(($ac_try" in
14155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14156  *) ac_try_echo=$ac_try;;
14157esac
14158eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14159$as_echo "$ac_try_echo") >&5
14160  (eval "$ac_compile") 2>conftest.er1
14161  ac_status=$?
14162  grep -v '^ *+' conftest.er1 >conftest.err
14163  rm -f conftest.er1
14164  cat conftest.err >&5
14165  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166  (exit $ac_status); } && {
14167	 test -z "$ac_c_werror_flag" ||
14168	 test ! -s conftest.err
14169       } && test -s conftest.$ac_objext; then
14170  { $as_echo "$as_me:$LINENO: result: yes" >&5
14171$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14172#define HAVE_ST_BLKSIZE 1
14173_ACEOF
14174
14175else
14176  $as_echo "$as_me: failed program was:" >&5
14177sed 's/^/| /' conftest.$ac_ext >&5
14178
14179	{ $as_echo "$as_me:$LINENO: result: no" >&5
14180$as_echo "no" >&6; }
14181fi
14182
14183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14184
14185{ $as_echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
14186$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
14187if test "${vim_cv_stat_ignores_slash+set}" = set; then
14188  $as_echo_n "(cached) " >&6
14189else
14190
14191    if test "$cross_compiling" = yes; then
14192
14193      { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5
14194$as_echo "$as_me: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&2;}
14195   { (exit 1); exit 1; }; }
14196
14197else
14198  cat >conftest.$ac_ext <<_ACEOF
14199
14200#include "confdefs.h"
14201#if STDC_HEADERS
14202# include <stdlib.h>
14203# include <stddef.h>
14204#endif
14205#include <sys/types.h>
14206#include <sys/stat.h>
14207main() {struct stat st;  exit(stat("configure/", &st) != 0); }
14208
14209_ACEOF
14210rm -f conftest$ac_exeext
14211if { (ac_try="$ac_link"
14212case "(($ac_try" in
14213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14214  *) ac_try_echo=$ac_try;;
14215esac
14216eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14217$as_echo "$ac_try_echo") >&5
14218  (eval "$ac_link") 2>&5
14219  ac_status=$?
14220  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14222  { (case "(($ac_try" in
14223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14224  *) ac_try_echo=$ac_try;;
14225esac
14226eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14227$as_echo "$ac_try_echo") >&5
14228  (eval "$ac_try") 2>&5
14229  ac_status=$?
14230  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231  (exit $ac_status); }; }; then
14232
14233      vim_cv_stat_ignores_slash=yes
14234
14235else
14236  $as_echo "$as_me: program exited with status $ac_status" >&5
14237$as_echo "$as_me: failed program was:" >&5
14238sed 's/^/| /' conftest.$ac_ext >&5
14239
14240( exit $ac_status )
14241
14242      vim_cv_stat_ignores_slash=no
14243
14244fi
14245rm -rf conftest.dSYM
14246rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14247fi
14248
14249
14250
14251fi
14252{ $as_echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5
14253$as_echo "$vim_cv_stat_ignores_slash" >&6; }
14254
14255if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
14256  cat >>confdefs.h <<\_ACEOF
14257#define STAT_IGNORES_SLASH 1
14258_ACEOF
14259
14260fi
14261
14262{ $as_echo "$as_me:$LINENO: checking for iconv_open()" >&5
14263$as_echo_n "checking for iconv_open()... " >&6; }
14264save_LIBS="$LIBS"
14265LIBS="$LIBS -liconv"
14266cat >conftest.$ac_ext <<_ACEOF
14267/* confdefs.h.  */
14268_ACEOF
14269cat confdefs.h >>conftest.$ac_ext
14270cat >>conftest.$ac_ext <<_ACEOF
14271/* end confdefs.h.  */
14272
14273#ifdef HAVE_ICONV_H
14274# include <iconv.h>
14275#endif
14276
14277int
14278main ()
14279{
14280iconv_open("fr", "to");
14281  ;
14282  return 0;
14283}
14284_ACEOF
14285rm -f conftest.$ac_objext conftest$ac_exeext
14286if { (ac_try="$ac_link"
14287case "(($ac_try" in
14288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289  *) ac_try_echo=$ac_try;;
14290esac
14291eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14292$as_echo "$ac_try_echo") >&5
14293  (eval "$ac_link") 2>conftest.er1
14294  ac_status=$?
14295  grep -v '^ *+' conftest.er1 >conftest.err
14296  rm -f conftest.er1
14297  cat conftest.err >&5
14298  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299  (exit $ac_status); } && {
14300	 test -z "$ac_c_werror_flag" ||
14301	 test ! -s conftest.err
14302       } && test -s conftest$ac_exeext && {
14303	 test "$cross_compiling" = yes ||
14304	 $as_test_x conftest$ac_exeext
14305       }; then
14306  { $as_echo "$as_me:$LINENO: result: yes; with -liconv" >&5
14307$as_echo "yes; with -liconv" >&6; }; cat >>confdefs.h <<\_ACEOF
14308#define HAVE_ICONV 1
14309_ACEOF
14310
14311else
14312  $as_echo "$as_me: failed program was:" >&5
14313sed 's/^/| /' conftest.$ac_ext >&5
14314
14315	LIBS="$save_LIBS"
14316    cat >conftest.$ac_ext <<_ACEOF
14317/* confdefs.h.  */
14318_ACEOF
14319cat confdefs.h >>conftest.$ac_ext
14320cat >>conftest.$ac_ext <<_ACEOF
14321/* end confdefs.h.  */
14322
14323#ifdef HAVE_ICONV_H
14324# include <iconv.h>
14325#endif
14326
14327int
14328main ()
14329{
14330iconv_open("fr", "to");
14331  ;
14332  return 0;
14333}
14334_ACEOF
14335rm -f conftest.$ac_objext conftest$ac_exeext
14336if { (ac_try="$ac_link"
14337case "(($ac_try" in
14338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14339  *) ac_try_echo=$ac_try;;
14340esac
14341eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14342$as_echo "$ac_try_echo") >&5
14343  (eval "$ac_link") 2>conftest.er1
14344  ac_status=$?
14345  grep -v '^ *+' conftest.er1 >conftest.err
14346  rm -f conftest.er1
14347  cat conftest.err >&5
14348  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349  (exit $ac_status); } && {
14350	 test -z "$ac_c_werror_flag" ||
14351	 test ! -s conftest.err
14352       } && test -s conftest$ac_exeext && {
14353	 test "$cross_compiling" = yes ||
14354	 $as_test_x conftest$ac_exeext
14355       }; then
14356  { $as_echo "$as_me:$LINENO: result: yes" >&5
14357$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14358#define HAVE_ICONV 1
14359_ACEOF
14360
14361else
14362  $as_echo "$as_me: failed program was:" >&5
14363sed 's/^/| /' conftest.$ac_ext >&5
14364
14365	{ $as_echo "$as_me:$LINENO: result: no" >&5
14366$as_echo "no" >&6; }
14367fi
14368
14369rm -rf conftest.dSYM
14370rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14371      conftest$ac_exeext conftest.$ac_ext
14372fi
14373
14374rm -rf conftest.dSYM
14375rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14376      conftest$ac_exeext conftest.$ac_ext
14377
14378
14379{ $as_echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
14380$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
14381cat >conftest.$ac_ext <<_ACEOF
14382/* confdefs.h.  */
14383_ACEOF
14384cat confdefs.h >>conftest.$ac_ext
14385cat >>conftest.$ac_ext <<_ACEOF
14386/* end confdefs.h.  */
14387
14388#ifdef HAVE_LANGINFO_H
14389# include <langinfo.h>
14390#endif
14391
14392int
14393main ()
14394{
14395char *cs = nl_langinfo(CODESET);
14396  ;
14397  return 0;
14398}
14399_ACEOF
14400rm -f conftest.$ac_objext conftest$ac_exeext
14401if { (ac_try="$ac_link"
14402case "(($ac_try" in
14403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14404  *) ac_try_echo=$ac_try;;
14405esac
14406eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14407$as_echo "$ac_try_echo") >&5
14408  (eval "$ac_link") 2>conftest.er1
14409  ac_status=$?
14410  grep -v '^ *+' conftest.er1 >conftest.err
14411  rm -f conftest.er1
14412  cat conftest.err >&5
14413  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414  (exit $ac_status); } && {
14415	 test -z "$ac_c_werror_flag" ||
14416	 test ! -s conftest.err
14417       } && test -s conftest$ac_exeext && {
14418	 test "$cross_compiling" = yes ||
14419	 $as_test_x conftest$ac_exeext
14420       }; then
14421  { $as_echo "$as_me:$LINENO: result: yes" >&5
14422$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14423#define HAVE_NL_LANGINFO_CODESET 1
14424_ACEOF
14425
14426else
14427  $as_echo "$as_me: failed program was:" >&5
14428sed 's/^/| /' conftest.$ac_ext >&5
14429
14430	{ $as_echo "$as_me:$LINENO: result: no" >&5
14431$as_echo "no" >&6; }
14432fi
14433
14434rm -rf conftest.dSYM
14435rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14436      conftest$ac_exeext conftest.$ac_ext
14437
14438
14439{ $as_echo "$as_me:$LINENO: checking for strtod in -lm" >&5
14440$as_echo_n "checking for strtod in -lm... " >&6; }
14441if test "${ac_cv_lib_m_strtod+set}" = set; then
14442  $as_echo_n "(cached) " >&6
14443else
14444  ac_check_lib_save_LIBS=$LIBS
14445LIBS="-lm  $LIBS"
14446cat >conftest.$ac_ext <<_ACEOF
14447/* confdefs.h.  */
14448_ACEOF
14449cat confdefs.h >>conftest.$ac_ext
14450cat >>conftest.$ac_ext <<_ACEOF
14451/* end confdefs.h.  */
14452
14453/* Override any GCC internal prototype to avoid an error.
14454   Use char because int might match the return type of a GCC
14455   builtin and then its argument prototype would still apply.  */
14456#ifdef __cplusplus
14457extern "C"
14458#endif
14459char strtod ();
14460int
14461main ()
14462{
14463return strtod ();
14464  ;
14465  return 0;
14466}
14467_ACEOF
14468rm -f conftest.$ac_objext conftest$ac_exeext
14469if { (ac_try="$ac_link"
14470case "(($ac_try" in
14471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14472  *) ac_try_echo=$ac_try;;
14473esac
14474eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14475$as_echo "$ac_try_echo") >&5
14476  (eval "$ac_link") 2>conftest.er1
14477  ac_status=$?
14478  grep -v '^ *+' conftest.er1 >conftest.err
14479  rm -f conftest.er1
14480  cat conftest.err >&5
14481  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482  (exit $ac_status); } && {
14483	 test -z "$ac_c_werror_flag" ||
14484	 test ! -s conftest.err
14485       } && test -s conftest$ac_exeext && {
14486	 test "$cross_compiling" = yes ||
14487	 $as_test_x conftest$ac_exeext
14488       }; then
14489  ac_cv_lib_m_strtod=yes
14490else
14491  $as_echo "$as_me: failed program was:" >&5
14492sed 's/^/| /' conftest.$ac_ext >&5
14493
14494	ac_cv_lib_m_strtod=no
14495fi
14496
14497rm -rf conftest.dSYM
14498rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14499      conftest$ac_exeext conftest.$ac_ext
14500LIBS=$ac_check_lib_save_LIBS
14501fi
14502{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5
14503$as_echo "$ac_cv_lib_m_strtod" >&6; }
14504if test "x$ac_cv_lib_m_strtod" = x""yes; then
14505  cat >>confdefs.h <<_ACEOF
14506#define HAVE_LIBM 1
14507_ACEOF
14508
14509  LIBS="-lm $LIBS"
14510
14511fi
14512
14513{ $as_echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5
14514$as_echo_n "checking for strtod() and other floating point functions... " >&6; }
14515cat >conftest.$ac_ext <<_ACEOF
14516/* confdefs.h.  */
14517_ACEOF
14518cat confdefs.h >>conftest.$ac_ext
14519cat >>conftest.$ac_ext <<_ACEOF
14520/* end confdefs.h.  */
14521
14522#ifdef HAVE_MATH_H
14523# include <math.h>
14524#endif
14525#if STDC_HEADERS
14526# include <stdlib.h>
14527# include <stddef.h>
14528#endif
14529
14530int
14531main ()
14532{
14533char *s; double d;
14534    d = strtod("1.1", &s);
14535    d = fabs(1.11);
14536    d = ceil(1.11);
14537    d = floor(1.11);
14538    d = log10(1.11);
14539    d = pow(1.11, 2.22);
14540    d = sqrt(1.11);
14541    d = sin(1.11);
14542    d = cos(1.11);
14543    d = atan(1.11);
14544
14545  ;
14546  return 0;
14547}
14548_ACEOF
14549rm -f conftest.$ac_objext conftest$ac_exeext
14550if { (ac_try="$ac_link"
14551case "(($ac_try" in
14552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14553  *) ac_try_echo=$ac_try;;
14554esac
14555eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14556$as_echo "$ac_try_echo") >&5
14557  (eval "$ac_link") 2>conftest.er1
14558  ac_status=$?
14559  grep -v '^ *+' conftest.er1 >conftest.err
14560  rm -f conftest.er1
14561  cat conftest.err >&5
14562  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563  (exit $ac_status); } && {
14564	 test -z "$ac_c_werror_flag" ||
14565	 test ! -s conftest.err
14566       } && test -s conftest$ac_exeext && {
14567	 test "$cross_compiling" = yes ||
14568	 $as_test_x conftest$ac_exeext
14569       }; then
14570  { $as_echo "$as_me:$LINENO: result: yes" >&5
14571$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14572#define HAVE_FLOAT_FUNCS 1
14573_ACEOF
14574
14575else
14576  $as_echo "$as_me: failed program was:" >&5
14577sed 's/^/| /' conftest.$ac_ext >&5
14578
14579	{ $as_echo "$as_me:$LINENO: result: no" >&5
14580$as_echo "no" >&6; }
14581fi
14582
14583rm -rf conftest.dSYM
14584rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14585      conftest$ac_exeext conftest.$ac_ext
14586
14587{ $as_echo "$as_me:$LINENO: checking --disable-acl argument" >&5
14588$as_echo_n "checking --disable-acl argument... " >&6; }
14589# Check whether --enable-acl was given.
14590if test "${enable_acl+set}" = set; then
14591  enableval=$enable_acl;
14592else
14593  enable_acl="yes"
14594fi
14595
14596if test "$enable_acl" = "yes"; then
14597{ $as_echo "$as_me:$LINENO: result: no" >&5
14598$as_echo "no" >&6; }
14599{ $as_echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
14600$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
14601if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
14602  $as_echo_n "(cached) " >&6
14603else
14604  ac_check_lib_save_LIBS=$LIBS
14605LIBS="-lposix1e  $LIBS"
14606cat >conftest.$ac_ext <<_ACEOF
14607/* confdefs.h.  */
14608_ACEOF
14609cat confdefs.h >>conftest.$ac_ext
14610cat >>conftest.$ac_ext <<_ACEOF
14611/* end confdefs.h.  */
14612
14613/* Override any GCC internal prototype to avoid an error.
14614   Use char because int might match the return type of a GCC
14615   builtin and then its argument prototype would still apply.  */
14616#ifdef __cplusplus
14617extern "C"
14618#endif
14619char acl_get_file ();
14620int
14621main ()
14622{
14623return acl_get_file ();
14624  ;
14625  return 0;
14626}
14627_ACEOF
14628rm -f conftest.$ac_objext conftest$ac_exeext
14629if { (ac_try="$ac_link"
14630case "(($ac_try" in
14631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14632  *) ac_try_echo=$ac_try;;
14633esac
14634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14635$as_echo "$ac_try_echo") >&5
14636  (eval "$ac_link") 2>conftest.er1
14637  ac_status=$?
14638  grep -v '^ *+' conftest.er1 >conftest.err
14639  rm -f conftest.er1
14640  cat conftest.err >&5
14641  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642  (exit $ac_status); } && {
14643	 test -z "$ac_c_werror_flag" ||
14644	 test ! -s conftest.err
14645       } && test -s conftest$ac_exeext && {
14646	 test "$cross_compiling" = yes ||
14647	 $as_test_x conftest$ac_exeext
14648       }; then
14649  ac_cv_lib_posix1e_acl_get_file=yes
14650else
14651  $as_echo "$as_me: failed program was:" >&5
14652sed 's/^/| /' conftest.$ac_ext >&5
14653
14654	ac_cv_lib_posix1e_acl_get_file=no
14655fi
14656
14657rm -rf conftest.dSYM
14658rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14659      conftest$ac_exeext conftest.$ac_ext
14660LIBS=$ac_check_lib_save_LIBS
14661fi
14662{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
14663$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
14664if test "x$ac_cv_lib_posix1e_acl_get_file" = x""yes; then
14665  LIBS="$LIBS -lposix1e"
14666else
14667  { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
14668$as_echo_n "checking for acl_get_file in -lacl... " >&6; }
14669if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
14670  $as_echo_n "(cached) " >&6
14671else
14672  ac_check_lib_save_LIBS=$LIBS
14673LIBS="-lacl  $LIBS"
14674cat >conftest.$ac_ext <<_ACEOF
14675/* confdefs.h.  */
14676_ACEOF
14677cat confdefs.h >>conftest.$ac_ext
14678cat >>conftest.$ac_ext <<_ACEOF
14679/* end confdefs.h.  */
14680
14681/* Override any GCC internal prototype to avoid an error.
14682   Use char because int might match the return type of a GCC
14683   builtin and then its argument prototype would still apply.  */
14684#ifdef __cplusplus
14685extern "C"
14686#endif
14687char acl_get_file ();
14688int
14689main ()
14690{
14691return acl_get_file ();
14692  ;
14693  return 0;
14694}
14695_ACEOF
14696rm -f conftest.$ac_objext conftest$ac_exeext
14697if { (ac_try="$ac_link"
14698case "(($ac_try" in
14699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14700  *) ac_try_echo=$ac_try;;
14701esac
14702eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14703$as_echo "$ac_try_echo") >&5
14704  (eval "$ac_link") 2>conftest.er1
14705  ac_status=$?
14706  grep -v '^ *+' conftest.er1 >conftest.err
14707  rm -f conftest.er1
14708  cat conftest.err >&5
14709  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710  (exit $ac_status); } && {
14711	 test -z "$ac_c_werror_flag" ||
14712	 test ! -s conftest.err
14713       } && test -s conftest$ac_exeext && {
14714	 test "$cross_compiling" = yes ||
14715	 $as_test_x conftest$ac_exeext
14716       }; then
14717  ac_cv_lib_acl_acl_get_file=yes
14718else
14719  $as_echo "$as_me: failed program was:" >&5
14720sed 's/^/| /' conftest.$ac_ext >&5
14721
14722	ac_cv_lib_acl_acl_get_file=no
14723fi
14724
14725rm -rf conftest.dSYM
14726rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14727      conftest$ac_exeext conftest.$ac_ext
14728LIBS=$ac_check_lib_save_LIBS
14729fi
14730{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
14731$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
14732if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then
14733  LIBS="$LIBS -lacl"
14734		  { $as_echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
14735$as_echo_n "checking for fgetxattr in -lattr... " >&6; }
14736if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
14737  $as_echo_n "(cached) " >&6
14738else
14739  ac_check_lib_save_LIBS=$LIBS
14740LIBS="-lattr  $LIBS"
14741cat >conftest.$ac_ext <<_ACEOF
14742/* confdefs.h.  */
14743_ACEOF
14744cat confdefs.h >>conftest.$ac_ext
14745cat >>conftest.$ac_ext <<_ACEOF
14746/* end confdefs.h.  */
14747
14748/* Override any GCC internal prototype to avoid an error.
14749   Use char because int might match the return type of a GCC
14750   builtin and then its argument prototype would still apply.  */
14751#ifdef __cplusplus
14752extern "C"
14753#endif
14754char fgetxattr ();
14755int
14756main ()
14757{
14758return fgetxattr ();
14759  ;
14760  return 0;
14761}
14762_ACEOF
14763rm -f conftest.$ac_objext conftest$ac_exeext
14764if { (ac_try="$ac_link"
14765case "(($ac_try" in
14766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14767  *) ac_try_echo=$ac_try;;
14768esac
14769eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14770$as_echo "$ac_try_echo") >&5
14771  (eval "$ac_link") 2>conftest.er1
14772  ac_status=$?
14773  grep -v '^ *+' conftest.er1 >conftest.err
14774  rm -f conftest.er1
14775  cat conftest.err >&5
14776  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777  (exit $ac_status); } && {
14778	 test -z "$ac_c_werror_flag" ||
14779	 test ! -s conftest.err
14780       } && test -s conftest$ac_exeext && {
14781	 test "$cross_compiling" = yes ||
14782	 $as_test_x conftest$ac_exeext
14783       }; then
14784  ac_cv_lib_attr_fgetxattr=yes
14785else
14786  $as_echo "$as_me: failed program was:" >&5
14787sed 's/^/| /' conftest.$ac_ext >&5
14788
14789	ac_cv_lib_attr_fgetxattr=no
14790fi
14791
14792rm -rf conftest.dSYM
14793rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14794      conftest$ac_exeext conftest.$ac_ext
14795LIBS=$ac_check_lib_save_LIBS
14796fi
14797{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
14798$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
14799if test "x$ac_cv_lib_attr_fgetxattr" = x""yes; then
14800  LIBS="$LIBS -lattr"
14801fi
14802
14803fi
14804
14805fi
14806
14807
14808{ $as_echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
14809$as_echo_n "checking for POSIX ACL support... " >&6; }
14810cat >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
14817#include <sys/types.h>
14818#ifdef HAVE_SYS_ACL_H
14819# include <sys/acl.h>
14820#endif
14821acl_t acl;
14822int
14823main ()
14824{
14825acl = acl_get_file("foo", ACL_TYPE_ACCESS);
14826	acl_set_file("foo", ACL_TYPE_ACCESS, acl);
14827	acl_free(acl);
14828  ;
14829  return 0;
14830}
14831_ACEOF
14832rm -f conftest.$ac_objext conftest$ac_exeext
14833if { (ac_try="$ac_link"
14834case "(($ac_try" in
14835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14836  *) ac_try_echo=$ac_try;;
14837esac
14838eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14839$as_echo "$ac_try_echo") >&5
14840  (eval "$ac_link") 2>conftest.er1
14841  ac_status=$?
14842  grep -v '^ *+' conftest.er1 >conftest.err
14843  rm -f conftest.er1
14844  cat conftest.err >&5
14845  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846  (exit $ac_status); } && {
14847	 test -z "$ac_c_werror_flag" ||
14848	 test ! -s conftest.err
14849       } && test -s conftest$ac_exeext && {
14850	 test "$cross_compiling" = yes ||
14851	 $as_test_x conftest$ac_exeext
14852       }; then
14853  { $as_echo "$as_me:$LINENO: result: yes" >&5
14854$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14855#define HAVE_POSIX_ACL 1
14856_ACEOF
14857
14858else
14859  $as_echo "$as_me: failed program was:" >&5
14860sed 's/^/| /' conftest.$ac_ext >&5
14861
14862	{ $as_echo "$as_me:$LINENO: result: no" >&5
14863$as_echo "no" >&6; }
14864fi
14865
14866rm -rf conftest.dSYM
14867rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14868      conftest$ac_exeext conftest.$ac_ext
14869
14870{ $as_echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
14871$as_echo_n "checking for Solaris ACL support... " >&6; }
14872cat >conftest.$ac_ext <<_ACEOF
14873/* confdefs.h.  */
14874_ACEOF
14875cat confdefs.h >>conftest.$ac_ext
14876cat >>conftest.$ac_ext <<_ACEOF
14877/* end confdefs.h.  */
14878
14879#ifdef HAVE_SYS_ACL_H
14880# include <sys/acl.h>
14881#endif
14882int
14883main ()
14884{
14885acl("foo", GETACLCNT, 0, NULL);
14886
14887  ;
14888  return 0;
14889}
14890_ACEOF
14891rm -f conftest.$ac_objext conftest$ac_exeext
14892if { (ac_try="$ac_link"
14893case "(($ac_try" in
14894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14895  *) ac_try_echo=$ac_try;;
14896esac
14897eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14898$as_echo "$ac_try_echo") >&5
14899  (eval "$ac_link") 2>conftest.er1
14900  ac_status=$?
14901  grep -v '^ *+' conftest.er1 >conftest.err
14902  rm -f conftest.er1
14903  cat conftest.err >&5
14904  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905  (exit $ac_status); } && {
14906	 test -z "$ac_c_werror_flag" ||
14907	 test ! -s conftest.err
14908       } && test -s conftest$ac_exeext && {
14909	 test "$cross_compiling" = yes ||
14910	 $as_test_x conftest$ac_exeext
14911       }; then
14912  { $as_echo "$as_me:$LINENO: result: yes" >&5
14913$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14914#define HAVE_SOLARIS_ACL 1
14915_ACEOF
14916
14917else
14918  $as_echo "$as_me: failed program was:" >&5
14919sed 's/^/| /' conftest.$ac_ext >&5
14920
14921	{ $as_echo "$as_me:$LINENO: result: no" >&5
14922$as_echo "no" >&6; }
14923fi
14924
14925rm -rf conftest.dSYM
14926rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14927      conftest$ac_exeext conftest.$ac_ext
14928
14929{ $as_echo "$as_me:$LINENO: checking for AIX ACL support" >&5
14930$as_echo_n "checking for AIX ACL support... " >&6; }
14931cat >conftest.$ac_ext <<_ACEOF
14932/* confdefs.h.  */
14933_ACEOF
14934cat confdefs.h >>conftest.$ac_ext
14935cat >>conftest.$ac_ext <<_ACEOF
14936/* end confdefs.h.  */
14937
14938#if STDC_HEADERS
14939# include <stdlib.h>
14940# include <stddef.h>
14941#endif
14942#ifdef HAVE_SYS_ACL_H
14943# include <sys/acl.h>
14944#endif
14945#ifdef HAVE_SYS_ACCESS_H
14946# include <sys/access.h>
14947#endif
14948#define _ALL_SOURCE
14949
14950#include <sys/stat.h>
14951
14952int aclsize;
14953struct acl *aclent;
14954int
14955main ()
14956{
14957aclsize = sizeof(struct acl);
14958	aclent = (void *)malloc(aclsize);
14959	statacl("foo", STX_NORMAL, aclent, aclsize);
14960
14961  ;
14962  return 0;
14963}
14964_ACEOF
14965rm -f conftest.$ac_objext conftest$ac_exeext
14966if { (ac_try="$ac_link"
14967case "(($ac_try" in
14968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14969  *) ac_try_echo=$ac_try;;
14970esac
14971eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14972$as_echo "$ac_try_echo") >&5
14973  (eval "$ac_link") 2>conftest.er1
14974  ac_status=$?
14975  grep -v '^ *+' conftest.er1 >conftest.err
14976  rm -f conftest.er1
14977  cat conftest.err >&5
14978  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979  (exit $ac_status); } && {
14980	 test -z "$ac_c_werror_flag" ||
14981	 test ! -s conftest.err
14982       } && test -s conftest$ac_exeext && {
14983	 test "$cross_compiling" = yes ||
14984	 $as_test_x conftest$ac_exeext
14985       }; then
14986  { $as_echo "$as_me:$LINENO: result: yes" >&5
14987$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14988#define HAVE_AIX_ACL 1
14989_ACEOF
14990
14991else
14992  $as_echo "$as_me: failed program was:" >&5
14993sed 's/^/| /' conftest.$ac_ext >&5
14994
14995	{ $as_echo "$as_me:$LINENO: result: no" >&5
14996$as_echo "no" >&6; }
14997fi
14998
14999rm -rf conftest.dSYM
15000rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15001      conftest$ac_exeext conftest.$ac_ext
15002else
15003  { $as_echo "$as_me:$LINENO: result: yes" >&5
15004$as_echo "yes" >&6; }
15005fi
15006
15007{ $as_echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
15008$as_echo_n "checking --disable-gpm argument... " >&6; }
15009# Check whether --enable-gpm was given.
15010if test "${enable_gpm+set}" = set; then
15011  enableval=$enable_gpm;
15012else
15013  enable_gpm="yes"
15014fi
15015
15016
15017if test "$enable_gpm" = "yes"; then
15018  { $as_echo "$as_me:$LINENO: result: no" >&5
15019$as_echo "no" >&6; }
15020    { $as_echo "$as_me:$LINENO: checking for gpm" >&5
15021$as_echo_n "checking for gpm... " >&6; }
15022if test "${vi_cv_have_gpm+set}" = set; then
15023  $as_echo_n "(cached) " >&6
15024else
15025  olibs="$LIBS" ; LIBS="-lgpm"
15026	cat >conftest.$ac_ext <<_ACEOF
15027/* confdefs.h.  */
15028_ACEOF
15029cat confdefs.h >>conftest.$ac_ext
15030cat >>conftest.$ac_ext <<_ACEOF
15031/* end confdefs.h.  */
15032#include <gpm.h>
15033	    #include <linux/keyboard.h>
15034int
15035main ()
15036{
15037Gpm_GetLibVersion(NULL);
15038  ;
15039  return 0;
15040}
15041_ACEOF
15042rm -f conftest.$ac_objext conftest$ac_exeext
15043if { (ac_try="$ac_link"
15044case "(($ac_try" in
15045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15046  *) ac_try_echo=$ac_try;;
15047esac
15048eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15049$as_echo "$ac_try_echo") >&5
15050  (eval "$ac_link") 2>conftest.er1
15051  ac_status=$?
15052  grep -v '^ *+' conftest.er1 >conftest.err
15053  rm -f conftest.er1
15054  cat conftest.err >&5
15055  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056  (exit $ac_status); } && {
15057	 test -z "$ac_c_werror_flag" ||
15058	 test ! -s conftest.err
15059       } && test -s conftest$ac_exeext && {
15060	 test "$cross_compiling" = yes ||
15061	 $as_test_x conftest$ac_exeext
15062       }; then
15063  	    	    vi_cv_have_gpm=yes
15064else
15065  $as_echo "$as_me: failed program was:" >&5
15066sed 's/^/| /' conftest.$ac_ext >&5
15067
15068	vi_cv_have_gpm=no
15069fi
15070
15071rm -rf conftest.dSYM
15072rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15073      conftest$ac_exeext conftest.$ac_ext
15074	LIBS="$olibs"
15075
15076fi
15077{ $as_echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
15078$as_echo "$vi_cv_have_gpm" >&6; }
15079  if test $vi_cv_have_gpm = yes; then
15080    LIBS="$LIBS -lgpm"
15081    cat >>confdefs.h <<\_ACEOF
15082#define HAVE_GPM 1
15083_ACEOF
15084
15085  fi
15086else
15087  { $as_echo "$as_me:$LINENO: result: yes" >&5
15088$as_echo "yes" >&6; }
15089fi
15090
15091{ $as_echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5
15092$as_echo_n "checking --disable-sysmouse argument... " >&6; }
15093# Check whether --enable-sysmouse was given.
15094if test "${enable_sysmouse+set}" = set; then
15095  enableval=$enable_sysmouse;
15096else
15097  enable_sysmouse="yes"
15098fi
15099
15100
15101if test "$enable_sysmouse" = "yes"; then
15102  { $as_echo "$as_me:$LINENO: result: no" >&5
15103$as_echo "no" >&6; }
15104        { $as_echo "$as_me:$LINENO: checking for sysmouse" >&5
15105$as_echo_n "checking for sysmouse... " >&6; }
15106if test "${vi_cv_have_sysmouse+set}" = set; then
15107  $as_echo_n "(cached) " >&6
15108else
15109  cat >conftest.$ac_ext <<_ACEOF
15110/* confdefs.h.  */
15111_ACEOF
15112cat confdefs.h >>conftest.$ac_ext
15113cat >>conftest.$ac_ext <<_ACEOF
15114/* end confdefs.h.  */
15115#include <sys/consio.h>
15116	     #include <signal.h>
15117	     #include <sys/fbio.h>
15118int
15119main ()
15120{
15121struct mouse_info   mouse;
15122	     mouse.operation = MOUSE_MODE;
15123	     mouse.operation = MOUSE_SHOW;
15124	     mouse.u.mode.mode = 0;
15125	     mouse.u.mode.signal = SIGUSR2;
15126  ;
15127  return 0;
15128}
15129_ACEOF
15130rm -f conftest.$ac_objext conftest$ac_exeext
15131if { (ac_try="$ac_link"
15132case "(($ac_try" in
15133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15134  *) ac_try_echo=$ac_try;;
15135esac
15136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15137$as_echo "$ac_try_echo") >&5
15138  (eval "$ac_link") 2>conftest.er1
15139  ac_status=$?
15140  grep -v '^ *+' conftest.er1 >conftest.err
15141  rm -f conftest.er1
15142  cat conftest.err >&5
15143  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144  (exit $ac_status); } && {
15145	 test -z "$ac_c_werror_flag" ||
15146	 test ! -s conftest.err
15147       } && test -s conftest$ac_exeext && {
15148	 test "$cross_compiling" = yes ||
15149	 $as_test_x conftest$ac_exeext
15150       }; then
15151  vi_cv_have_sysmouse=yes
15152else
15153  $as_echo "$as_me: failed program was:" >&5
15154sed 's/^/| /' conftest.$ac_ext >&5
15155
15156	vi_cv_have_sysmouse=no
15157fi
15158
15159rm -rf conftest.dSYM
15160rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15161      conftest$ac_exeext conftest.$ac_ext
15162
15163fi
15164{ $as_echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5
15165$as_echo "$vi_cv_have_sysmouse" >&6; }
15166  if test $vi_cv_have_sysmouse = yes; then
15167    cat >>confdefs.h <<\_ACEOF
15168#define HAVE_SYSMOUSE 1
15169_ACEOF
15170
15171  fi
15172else
15173  { $as_echo "$as_me:$LINENO: result: yes" >&5
15174$as_echo "yes" >&6; }
15175fi
15176
15177{ $as_echo "$as_me:$LINENO: checking for FD_CLOEXEC" >&5
15178$as_echo_n "checking for FD_CLOEXEC... " >&6; }
15179cat >conftest.$ac_ext <<_ACEOF
15180/* confdefs.h.  */
15181_ACEOF
15182cat confdefs.h >>conftest.$ac_ext
15183cat >>conftest.$ac_ext <<_ACEOF
15184/* end confdefs.h.  */
15185#if HAVE_FCNTL_H
15186# include <fcntl.h>
15187#endif
15188int
15189main ()
15190{
15191	int flag = FD_CLOEXEC;
15192  ;
15193  return 0;
15194}
15195_ACEOF
15196rm -f conftest.$ac_objext
15197if { (ac_try="$ac_compile"
15198case "(($ac_try" in
15199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15200  *) ac_try_echo=$ac_try;;
15201esac
15202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15203$as_echo "$ac_try_echo") >&5
15204  (eval "$ac_compile") 2>conftest.er1
15205  ac_status=$?
15206  grep -v '^ *+' conftest.er1 >conftest.err
15207  rm -f conftest.er1
15208  cat conftest.err >&5
15209  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210  (exit $ac_status); } && {
15211	 test -z "$ac_c_werror_flag" ||
15212	 test ! -s conftest.err
15213       } && test -s conftest.$ac_objext; then
15214  { $as_echo "$as_me:$LINENO: result: yes" >&5
15215$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15216#define HAVE_FD_CLOEXEC 1
15217_ACEOF
15218
15219else
15220  $as_echo "$as_me: failed program was:" >&5
15221sed 's/^/| /' conftest.$ac_ext >&5
15222
15223	{ $as_echo "$as_me:$LINENO: result: not usable" >&5
15224$as_echo "not usable" >&6; }
15225fi
15226
15227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15228
15229{ $as_echo "$as_me:$LINENO: checking for rename" >&5
15230$as_echo_n "checking for rename... " >&6; }
15231cat >conftest.$ac_ext <<_ACEOF
15232/* confdefs.h.  */
15233_ACEOF
15234cat confdefs.h >>conftest.$ac_ext
15235cat >>conftest.$ac_ext <<_ACEOF
15236/* end confdefs.h.  */
15237#include <stdio.h>
15238int
15239main ()
15240{
15241rename("this", "that")
15242  ;
15243  return 0;
15244}
15245_ACEOF
15246rm -f conftest.$ac_objext conftest$ac_exeext
15247if { (ac_try="$ac_link"
15248case "(($ac_try" in
15249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15250  *) ac_try_echo=$ac_try;;
15251esac
15252eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15253$as_echo "$ac_try_echo") >&5
15254  (eval "$ac_link") 2>conftest.er1
15255  ac_status=$?
15256  grep -v '^ *+' conftest.er1 >conftest.err
15257  rm -f conftest.er1
15258  cat conftest.err >&5
15259  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260  (exit $ac_status); } && {
15261	 test -z "$ac_c_werror_flag" ||
15262	 test ! -s conftest.err
15263       } && test -s conftest$ac_exeext && {
15264	 test "$cross_compiling" = yes ||
15265	 $as_test_x conftest$ac_exeext
15266       }; then
15267  { $as_echo "$as_me:$LINENO: result: yes" >&5
15268$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15269#define HAVE_RENAME 1
15270_ACEOF
15271
15272else
15273  $as_echo "$as_me: failed program was:" >&5
15274sed 's/^/| /' conftest.$ac_ext >&5
15275
15276	{ $as_echo "$as_me:$LINENO: result: no" >&5
15277$as_echo "no" >&6; }
15278fi
15279
15280rm -rf conftest.dSYM
15281rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15282      conftest$ac_exeext conftest.$ac_ext
15283
15284{ $as_echo "$as_me:$LINENO: checking for sysctl" >&5
15285$as_echo_n "checking for sysctl... " >&6; }
15286cat >conftest.$ac_ext <<_ACEOF
15287/* confdefs.h.  */
15288_ACEOF
15289cat confdefs.h >>conftest.$ac_ext
15290cat >>conftest.$ac_ext <<_ACEOF
15291/* end confdefs.h.  */
15292#include <sys/types.h>
15293#include <sys/sysctl.h>
15294int
15295main ()
15296{
15297	int mib[2], r;
15298	size_t len;
15299
15300	mib[0] = CTL_HW;
15301	mib[1] = HW_USERMEM;
15302	len = sizeof(r);
15303	(void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
15304
15305  ;
15306  return 0;
15307}
15308_ACEOF
15309rm -f conftest.$ac_objext
15310if { (ac_try="$ac_compile"
15311case "(($ac_try" in
15312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15313  *) ac_try_echo=$ac_try;;
15314esac
15315eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15316$as_echo "$ac_try_echo") >&5
15317  (eval "$ac_compile") 2>conftest.er1
15318  ac_status=$?
15319  grep -v '^ *+' conftest.er1 >conftest.err
15320  rm -f conftest.er1
15321  cat conftest.err >&5
15322  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323  (exit $ac_status); } && {
15324	 test -z "$ac_c_werror_flag" ||
15325	 test ! -s conftest.err
15326       } && test -s conftest.$ac_objext; then
15327  { $as_echo "$as_me:$LINENO: result: yes" >&5
15328$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15329#define HAVE_SYSCTL 1
15330_ACEOF
15331
15332else
15333  $as_echo "$as_me: failed program was:" >&5
15334sed 's/^/| /' conftest.$ac_ext >&5
15335
15336	{ $as_echo "$as_me:$LINENO: result: not usable" >&5
15337$as_echo "not usable" >&6; }
15338fi
15339
15340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15341
15342{ $as_echo "$as_me:$LINENO: checking for sysinfo" >&5
15343$as_echo_n "checking for sysinfo... " >&6; }
15344cat >conftest.$ac_ext <<_ACEOF
15345/* confdefs.h.  */
15346_ACEOF
15347cat confdefs.h >>conftest.$ac_ext
15348cat >>conftest.$ac_ext <<_ACEOF
15349/* end confdefs.h.  */
15350#include <sys/types.h>
15351#include <sys/sysinfo.h>
15352int
15353main ()
15354{
15355	struct sysinfo sinfo;
15356	int t;
15357
15358	(void)sysinfo(&sinfo);
15359	t = sinfo.totalram;
15360
15361  ;
15362  return 0;
15363}
15364_ACEOF
15365rm -f conftest.$ac_objext
15366if { (ac_try="$ac_compile"
15367case "(($ac_try" in
15368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15369  *) ac_try_echo=$ac_try;;
15370esac
15371eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15372$as_echo "$ac_try_echo") >&5
15373  (eval "$ac_compile") 2>conftest.er1
15374  ac_status=$?
15375  grep -v '^ *+' conftest.er1 >conftest.err
15376  rm -f conftest.er1
15377  cat conftest.err >&5
15378  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379  (exit $ac_status); } && {
15380	 test -z "$ac_c_werror_flag" ||
15381	 test ! -s conftest.err
15382       } && test -s conftest.$ac_objext; then
15383  { $as_echo "$as_me:$LINENO: result: yes" >&5
15384$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15385#define HAVE_SYSINFO 1
15386_ACEOF
15387
15388else
15389  $as_echo "$as_me: failed program was:" >&5
15390sed 's/^/| /' conftest.$ac_ext >&5
15391
15392	{ $as_echo "$as_me:$LINENO: result: not usable" >&5
15393$as_echo "not usable" >&6; }
15394fi
15395
15396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15397
15398{ $as_echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
15399$as_echo_n "checking for sysinfo.mem_unit... " >&6; }
15400cat >conftest.$ac_ext <<_ACEOF
15401/* confdefs.h.  */
15402_ACEOF
15403cat confdefs.h >>conftest.$ac_ext
15404cat >>conftest.$ac_ext <<_ACEOF
15405/* end confdefs.h.  */
15406#include <sys/types.h>
15407#include <sys/sysinfo.h>
15408int
15409main ()
15410{
15411	struct sysinfo sinfo;
15412 	sinfo.mem_unit = 1;
15413
15414  ;
15415  return 0;
15416}
15417_ACEOF
15418rm -f conftest.$ac_objext
15419if { (ac_try="$ac_compile"
15420case "(($ac_try" in
15421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15422  *) ac_try_echo=$ac_try;;
15423esac
15424eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15425$as_echo "$ac_try_echo") >&5
15426  (eval "$ac_compile") 2>conftest.er1
15427  ac_status=$?
15428  grep -v '^ *+' conftest.er1 >conftest.err
15429  rm -f conftest.er1
15430  cat conftest.err >&5
15431  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432  (exit $ac_status); } && {
15433	 test -z "$ac_c_werror_flag" ||
15434	 test ! -s conftest.err
15435       } && test -s conftest.$ac_objext; then
15436  { $as_echo "$as_me:$LINENO: result: yes" >&5
15437$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15438#define HAVE_SYSINFO_MEM_UNIT 1
15439_ACEOF
15440
15441else
15442  $as_echo "$as_me: failed program was:" >&5
15443sed 's/^/| /' conftest.$ac_ext >&5
15444
15445	{ $as_echo "$as_me:$LINENO: result: no" >&5
15446$as_echo "no" >&6; }
15447fi
15448
15449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15450
15451{ $as_echo "$as_me:$LINENO: checking for sysconf" >&5
15452$as_echo_n "checking for sysconf... " >&6; }
15453cat >conftest.$ac_ext <<_ACEOF
15454/* confdefs.h.  */
15455_ACEOF
15456cat confdefs.h >>conftest.$ac_ext
15457cat >>conftest.$ac_ext <<_ACEOF
15458/* end confdefs.h.  */
15459#include <unistd.h>
15460int
15461main ()
15462{
15463	(void)sysconf(_SC_PAGESIZE);
15464	(void)sysconf(_SC_PHYS_PAGES);
15465
15466  ;
15467  return 0;
15468}
15469_ACEOF
15470rm -f conftest.$ac_objext
15471if { (ac_try="$ac_compile"
15472case "(($ac_try" in
15473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474  *) ac_try_echo=$ac_try;;
15475esac
15476eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15477$as_echo "$ac_try_echo") >&5
15478  (eval "$ac_compile") 2>conftest.er1
15479  ac_status=$?
15480  grep -v '^ *+' conftest.er1 >conftest.err
15481  rm -f conftest.er1
15482  cat conftest.err >&5
15483  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484  (exit $ac_status); } && {
15485	 test -z "$ac_c_werror_flag" ||
15486	 test ! -s conftest.err
15487       } && test -s conftest.$ac_objext; then
15488  { $as_echo "$as_me:$LINENO: result: yes" >&5
15489$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15490#define HAVE_SYSCONF 1
15491_ACEOF
15492
15493else
15494  $as_echo "$as_me: failed program was:" >&5
15495sed 's/^/| /' conftest.$ac_ext >&5
15496
15497	{ $as_echo "$as_me:$LINENO: result: not usable" >&5
15498$as_echo "not usable" >&6; }
15499fi
15500
15501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15502
15503
15504{ $as_echo "$as_me:$LINENO: checking size of int" >&5
15505$as_echo_n "checking size of int... " >&6; }
15506if test "${ac_cv_sizeof_int+set}" = set; then
15507  $as_echo_n "(cached) " >&6
15508else
15509  if test "$cross_compiling" = yes; then
15510  { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
15511$as_echo "$as_me: error: failed to compile test program" >&2;}
15512   { (exit 1); exit 1; }; }
15513else
15514  cat >conftest.$ac_ext <<_ACEOF
15515/* confdefs.h.  */
15516_ACEOF
15517cat confdefs.h >>conftest.$ac_ext
15518cat >>conftest.$ac_ext <<_ACEOF
15519/* end confdefs.h.  */
15520
15521#include <stdio.h>
15522#if STDC_HEADERS
15523# include <stdlib.h>
15524# include <stddef.h>
15525#endif
15526main()
15527{
15528  FILE *f=fopen("conftestval", "w");
15529  if (!f) exit(1);
15530  fprintf(f, "%d\n", (int)sizeof(int));
15531  exit(0);
15532}
15533_ACEOF
15534rm -f conftest$ac_exeext
15535if { (ac_try="$ac_link"
15536case "(($ac_try" in
15537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15538  *) ac_try_echo=$ac_try;;
15539esac
15540eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15541$as_echo "$ac_try_echo") >&5
15542  (eval "$ac_link") 2>&5
15543  ac_status=$?
15544  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15546  { (case "(($ac_try" in
15547  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548  *) ac_try_echo=$ac_try;;
15549esac
15550eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15551$as_echo "$ac_try_echo") >&5
15552  (eval "$ac_try") 2>&5
15553  ac_status=$?
15554  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555  (exit $ac_status); }; }; then
15556  ac_cv_sizeof_int=`cat conftestval`
15557else
15558  $as_echo "$as_me: program exited with status $ac_status" >&5
15559$as_echo "$as_me: failed program was:" >&5
15560sed 's/^/| /' conftest.$ac_ext >&5
15561
15562( exit $ac_status )
15563ac_cv_sizeof_int=0
15564fi
15565rm -rf conftest.dSYM
15566rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15567fi
15568
15569
15570fi
15571
15572{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15573$as_echo "$ac_cv_sizeof_int" >&6; }
15574cat >>confdefs.h <<_ACEOF
15575#define SIZEOF_INT $ac_cv_sizeof_int
15576_ACEOF
15577
15578
15579
15580bcopy_test_prog='
15581#include "confdefs.h"
15582#ifdef HAVE_STRING_H
15583# include <string.h>
15584#endif
15585#if STDC_HEADERS
15586# include <stdlib.h>
15587# include <stddef.h>
15588#endif
15589main() {
15590  char buf[10];
15591  strcpy(buf, "abcdefghi");
15592  mch_memmove(buf, buf + 2, 3);
15593  if (strncmp(buf, "ababcf", 6))
15594    exit(1);
15595  strcpy(buf, "abcdefghi");
15596  mch_memmove(buf + 2, buf, 3);
15597  if (strncmp(buf, "cdedef", 6))
15598    exit(1);
15599  exit(0); /* libc version works properly.  */
15600}'
15601
15602{ $as_echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5
15603$as_echo_n "checking whether memmove handles overlaps... " >&6; }
15604if test "${vim_cv_memmove_handles_overlap+set}" = set; then
15605  $as_echo_n "(cached) " >&6
15606else
15607
15608    if test "$cross_compiling" = yes; then
15609
15610	{ { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5
15611$as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&2;}
15612   { (exit 1); exit 1; }; }
15613
15614else
15615  cat >conftest.$ac_ext <<_ACEOF
15616#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
15617_ACEOF
15618rm -f conftest$ac_exeext
15619if { (ac_try="$ac_link"
15620case "(($ac_try" in
15621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15622  *) ac_try_echo=$ac_try;;
15623esac
15624eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15625$as_echo "$ac_try_echo") >&5
15626  (eval "$ac_link") 2>&5
15627  ac_status=$?
15628  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15630  { (case "(($ac_try" in
15631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15632  *) ac_try_echo=$ac_try;;
15633esac
15634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15635$as_echo "$ac_try_echo") >&5
15636  (eval "$ac_try") 2>&5
15637  ac_status=$?
15638  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639  (exit $ac_status); }; }; then
15640
15641	vim_cv_memmove_handles_overlap=yes
15642
15643else
15644  $as_echo "$as_me: program exited with status $ac_status" >&5
15645$as_echo "$as_me: failed program was:" >&5
15646sed 's/^/| /' conftest.$ac_ext >&5
15647
15648( exit $ac_status )
15649
15650	vim_cv_memmove_handles_overlap=no
15651
15652fi
15653rm -rf conftest.dSYM
15654rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15655fi
15656
15657
15658
15659fi
15660{ $as_echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5
15661$as_echo "$vim_cv_memmove_handles_overlap" >&6; }
15662
15663if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
15664  cat >>confdefs.h <<\_ACEOF
15665#define USEMEMMOVE 1
15666_ACEOF
15667
15668else
15669  { $as_echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5
15670$as_echo_n "checking whether bcopy handles overlaps... " >&6; }
15671if test "${vim_cv_bcopy_handles_overlap+set}" = set; then
15672  $as_echo_n "(cached) " >&6
15673else
15674
15675      if test "$cross_compiling" = yes; then
15676
15677	{ { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5
15678$as_echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;}
15679   { (exit 1); exit 1; }; }
15680
15681else
15682  cat >conftest.$ac_ext <<_ACEOF
15683#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
15684_ACEOF
15685rm -f conftest$ac_exeext
15686if { (ac_try="$ac_link"
15687case "(($ac_try" in
15688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15689  *) ac_try_echo=$ac_try;;
15690esac
15691eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15692$as_echo "$ac_try_echo") >&5
15693  (eval "$ac_link") 2>&5
15694  ac_status=$?
15695  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15697  { (case "(($ac_try" in
15698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15699  *) ac_try_echo=$ac_try;;
15700esac
15701eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15702$as_echo "$ac_try_echo") >&5
15703  (eval "$ac_try") 2>&5
15704  ac_status=$?
15705  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706  (exit $ac_status); }; }; then
15707
15708	vim_cv_bcopy_handles_overlap=yes
15709
15710else
15711  $as_echo "$as_me: program exited with status $ac_status" >&5
15712$as_echo "$as_me: failed program was:" >&5
15713sed 's/^/| /' conftest.$ac_ext >&5
15714
15715( exit $ac_status )
15716
15717	vim_cv_bcopy_handles_overlap=no
15718
15719fi
15720rm -rf conftest.dSYM
15721rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15722fi
15723
15724
15725
15726fi
15727{ $as_echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5
15728$as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
15729
15730  if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
15731    cat >>confdefs.h <<\_ACEOF
15732#define USEBCOPY 1
15733_ACEOF
15734
15735  else
15736    { $as_echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5
15737$as_echo_n "checking whether memcpy handles overlaps... " >&6; }
15738if test "${vim_cv_memcpy_handles_overlap+set}" = set; then
15739  $as_echo_n "(cached) " >&6
15740else
15741
15742	if test "$cross_compiling" = yes; then
15743
15744	    { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5
15745$as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&2;}
15746   { (exit 1); exit 1; }; }
15747
15748else
15749  cat >conftest.$ac_ext <<_ACEOF
15750#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
15751_ACEOF
15752rm -f conftest$ac_exeext
15753if { (ac_try="$ac_link"
15754case "(($ac_try" in
15755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756  *) ac_try_echo=$ac_try;;
15757esac
15758eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15759$as_echo "$ac_try_echo") >&5
15760  (eval "$ac_link") 2>&5
15761  ac_status=$?
15762  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15764  { (case "(($ac_try" in
15765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15766  *) ac_try_echo=$ac_try;;
15767esac
15768eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15769$as_echo "$ac_try_echo") >&5
15770  (eval "$ac_try") 2>&5
15771  ac_status=$?
15772  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773  (exit $ac_status); }; }; then
15774
15775	    vim_cv_memcpy_handles_overlap=yes
15776
15777else
15778  $as_echo "$as_me: program exited with status $ac_status" >&5
15779$as_echo "$as_me: failed program was:" >&5
15780sed 's/^/| /' conftest.$ac_ext >&5
15781
15782( exit $ac_status )
15783
15784	    vim_cv_memcpy_handles_overlap=no
15785
15786fi
15787rm -rf conftest.dSYM
15788rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15789fi
15790
15791
15792
15793fi
15794{ $as_echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5
15795$as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
15796
15797    if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
15798      cat >>confdefs.h <<\_ACEOF
15799#define USEMEMCPY 1
15800_ACEOF
15801
15802    fi
15803  fi
15804fi
15805
15806
15807
15808if test "$enable_multibyte" = "yes"; then
15809  cflags_save=$CFLAGS
15810  ldflags_save=$LDFLAGS
15811  if test "x$x_includes" != "xNONE" ; then
15812    CFLAGS="$CFLAGS -I$x_includes"
15813    LDFLAGS="$X_LIBS $LDFLAGS -lX11"
15814    { $as_echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
15815$as_echo_n "checking whether X_LOCALE needed... " >&6; }
15816    cat >conftest.$ac_ext <<_ACEOF
15817/* confdefs.h.  */
15818_ACEOF
15819cat confdefs.h >>conftest.$ac_ext
15820cat >>conftest.$ac_ext <<_ACEOF
15821/* end confdefs.h.  */
15822#include <X11/Xlocale.h>
15823int
15824main ()
15825{
15826
15827  ;
15828  return 0;
15829}
15830_ACEOF
15831rm -f conftest.$ac_objext
15832if { (ac_try="$ac_compile"
15833case "(($ac_try" in
15834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15835  *) ac_try_echo=$ac_try;;
15836esac
15837eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15838$as_echo "$ac_try_echo") >&5
15839  (eval "$ac_compile") 2>conftest.er1
15840  ac_status=$?
15841  grep -v '^ *+' conftest.er1 >conftest.err
15842  rm -f conftest.er1
15843  cat conftest.err >&5
15844  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845  (exit $ac_status); } && {
15846	 test -z "$ac_c_werror_flag" ||
15847	 test ! -s conftest.err
15848       } && test -s conftest.$ac_objext; then
15849  cat >conftest.$ac_ext <<_ACEOF
15850/* confdefs.h.  */
15851_ACEOF
15852cat confdefs.h >>conftest.$ac_ext
15853cat >>conftest.$ac_ext <<_ACEOF
15854/* end confdefs.h.  */
15855
15856/* Override any GCC internal prototype to avoid an error.
15857   Use char because int might match the return type of a GCC
15858   builtin and then its argument prototype would still apply.  */
15859#ifdef __cplusplus
15860extern "C"
15861#endif
15862char _Xsetlocale ();
15863int
15864main ()
15865{
15866return _Xsetlocale ();
15867  ;
15868  return 0;
15869}
15870_ACEOF
15871rm -f conftest.$ac_objext conftest$ac_exeext
15872if { (ac_try="$ac_link"
15873case "(($ac_try" in
15874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15875  *) ac_try_echo=$ac_try;;
15876esac
15877eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15878$as_echo "$ac_try_echo") >&5
15879  (eval "$ac_link") 2>conftest.er1
15880  ac_status=$?
15881  grep -v '^ *+' conftest.er1 >conftest.err
15882  rm -f conftest.er1
15883  cat conftest.err >&5
15884  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885  (exit $ac_status); } && {
15886	 test -z "$ac_c_werror_flag" ||
15887	 test ! -s conftest.err
15888       } && test -s conftest$ac_exeext && {
15889	 test "$cross_compiling" = yes ||
15890	 $as_test_x conftest$ac_exeext
15891       }; then
15892  { $as_echo "$as_me:$LINENO: result: yes" >&5
15893$as_echo "yes" >&6; }
15894		cat >>confdefs.h <<\_ACEOF
15895#define X_LOCALE 1
15896_ACEOF
15897
15898else
15899  $as_echo "$as_me: failed program was:" >&5
15900sed 's/^/| /' conftest.$ac_ext >&5
15901
15902	{ $as_echo "$as_me:$LINENO: result: no" >&5
15903$as_echo "no" >&6; }
15904fi
15905
15906rm -rf conftest.dSYM
15907rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15908      conftest$ac_exeext conftest.$ac_ext
15909else
15910  $as_echo "$as_me: failed program was:" >&5
15911sed 's/^/| /' conftest.$ac_ext >&5
15912
15913	{ $as_echo "$as_me:$LINENO: result: no" >&5
15914$as_echo "no" >&6; }
15915fi
15916
15917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15918  fi
15919  CFLAGS=$cflags_save
15920  LDFLAGS=$ldflags_save
15921fi
15922
15923{ $as_echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
15924$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
15925if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
15926  $as_echo_n "(cached) " >&6
15927else
15928  ac_check_lib_save_LIBS=$LIBS
15929LIBS="-lxpg4  $LIBS"
15930cat >conftest.$ac_ext <<_ACEOF
15931/* confdefs.h.  */
15932_ACEOF
15933cat confdefs.h >>conftest.$ac_ext
15934cat >>conftest.$ac_ext <<_ACEOF
15935/* end confdefs.h.  */
15936
15937/* Override any GCC internal prototype to avoid an error.
15938   Use char because int might match the return type of a GCC
15939   builtin and then its argument prototype would still apply.  */
15940#ifdef __cplusplus
15941extern "C"
15942#endif
15943char _xpg4_setrunelocale ();
15944int
15945main ()
15946{
15947return _xpg4_setrunelocale ();
15948  ;
15949  return 0;
15950}
15951_ACEOF
15952rm -f conftest.$ac_objext conftest$ac_exeext
15953if { (ac_try="$ac_link"
15954case "(($ac_try" in
15955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15956  *) ac_try_echo=$ac_try;;
15957esac
15958eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15959$as_echo "$ac_try_echo") >&5
15960  (eval "$ac_link") 2>conftest.er1
15961  ac_status=$?
15962  grep -v '^ *+' conftest.er1 >conftest.err
15963  rm -f conftest.er1
15964  cat conftest.err >&5
15965  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966  (exit $ac_status); } && {
15967	 test -z "$ac_c_werror_flag" ||
15968	 test ! -s conftest.err
15969       } && test -s conftest$ac_exeext && {
15970	 test "$cross_compiling" = yes ||
15971	 $as_test_x conftest$ac_exeext
15972       }; then
15973  ac_cv_lib_xpg4__xpg4_setrunelocale=yes
15974else
15975  $as_echo "$as_me: failed program was:" >&5
15976sed 's/^/| /' conftest.$ac_ext >&5
15977
15978	ac_cv_lib_xpg4__xpg4_setrunelocale=no
15979fi
15980
15981rm -rf conftest.dSYM
15982rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15983      conftest$ac_exeext conftest.$ac_ext
15984LIBS=$ac_check_lib_save_LIBS
15985fi
15986{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
15987$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
15988if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = x""yes; then
15989  LIBS="$LIBS -lxpg4"
15990fi
15991
15992
15993{ $as_echo "$as_me:$LINENO: checking how to create tags" >&5
15994$as_echo_n "checking how to create tags... " >&6; }
15995test -f tags && mv tags tags.save
15996if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
15997  TAGPRG="ctags -I INIT+ --fields=+S"
15998else
15999  TAGPRG="ctags"
16000  (eval etags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
16001  (eval etags -c   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
16002  (eval ctags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
16003  (eval ctags -t   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
16004  (eval ctags -ts  /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
16005  (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
16006  (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
16007fi
16008test -f tags.save && mv tags.save tags
16009{ $as_echo "$as_me:$LINENO: result: $TAGPRG" >&5
16010$as_echo "$TAGPRG" >&6; }
16011
16012{ $as_echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
16013$as_echo_n "checking how to run man with a section nr... " >&6; }
16014MANDEF="man"
16015(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
16016{ $as_echo "$as_me:$LINENO: result: $MANDEF" >&5
16017$as_echo "$MANDEF" >&6; }
16018if test "$MANDEF" = "man -s"; then
16019  cat >>confdefs.h <<\_ACEOF
16020#define USEMAN_S 1
16021_ACEOF
16022
16023fi
16024
16025{ $as_echo "$as_me:$LINENO: checking --disable-nls argument" >&5
16026$as_echo_n "checking --disable-nls argument... " >&6; }
16027# Check whether --enable-nls was given.
16028if test "${enable_nls+set}" = set; then
16029  enableval=$enable_nls;
16030else
16031  enable_nls="yes"
16032fi
16033
16034
16035if test "$enable_nls" = "yes"; then
16036  { $as_echo "$as_me:$LINENO: result: no" >&5
16037$as_echo "no" >&6; }
16038
16039  INSTALL_LANGS=install-languages
16040
16041  INSTALL_TOOL_LANGS=install-tool-languages
16042
16043
16044  # Extract the first word of "msgfmt", so it can be a program name with args.
16045set dummy msgfmt; ac_word=$2
16046{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16047$as_echo_n "checking for $ac_word... " >&6; }
16048if test "${ac_cv_prog_MSGFMT+set}" = set; then
16049  $as_echo_n "(cached) " >&6
16050else
16051  if test -n "$MSGFMT"; then
16052  ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
16053else
16054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16055for as_dir in $PATH
16056do
16057  IFS=$as_save_IFS
16058  test -z "$as_dir" && as_dir=.
16059  for ac_exec_ext in '' $ac_executable_extensions; do
16060  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16061    ac_cv_prog_MSGFMT="msgfmt"
16062    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16063    break 2
16064  fi
16065done
16066done
16067IFS=$as_save_IFS
16068
16069fi
16070fi
16071MSGFMT=$ac_cv_prog_MSGFMT
16072if test -n "$MSGFMT"; then
16073  { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16074$as_echo "$MSGFMT" >&6; }
16075else
16076  { $as_echo "$as_me:$LINENO: result: no" >&5
16077$as_echo "no" >&6; }
16078fi
16079
16080
16081  { $as_echo "$as_me:$LINENO: checking for NLS" >&5
16082$as_echo_n "checking for NLS... " >&6; }
16083  if test -f po/Makefile; then
16084    have_gettext="no"
16085    if test -n "$MSGFMT"; then
16086      cat >conftest.$ac_ext <<_ACEOF
16087/* confdefs.h.  */
16088_ACEOF
16089cat confdefs.h >>conftest.$ac_ext
16090cat >>conftest.$ac_ext <<_ACEOF
16091/* end confdefs.h.  */
16092#include <libintl.h>
16093int
16094main ()
16095{
16096gettext("Test");
16097  ;
16098  return 0;
16099}
16100_ACEOF
16101rm -f conftest.$ac_objext conftest$ac_exeext
16102if { (ac_try="$ac_link"
16103case "(($ac_try" in
16104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16105  *) ac_try_echo=$ac_try;;
16106esac
16107eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16108$as_echo "$ac_try_echo") >&5
16109  (eval "$ac_link") 2>conftest.er1
16110  ac_status=$?
16111  grep -v '^ *+' conftest.er1 >conftest.err
16112  rm -f conftest.er1
16113  cat conftest.err >&5
16114  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115  (exit $ac_status); } && {
16116	 test -z "$ac_c_werror_flag" ||
16117	 test ! -s conftest.err
16118       } && test -s conftest$ac_exeext && {
16119	 test "$cross_compiling" = yes ||
16120	 $as_test_x conftest$ac_exeext
16121       }; then
16122  { $as_echo "$as_me:$LINENO: result: gettext() works" >&5
16123$as_echo "gettext() works" >&6; }; have_gettext="yes"
16124else
16125  $as_echo "$as_me: failed program was:" >&5
16126sed 's/^/| /' conftest.$ac_ext >&5
16127
16128	olibs=$LIBS
16129	  LIBS="$LIBS -lintl"
16130	  cat >conftest.$ac_ext <<_ACEOF
16131/* confdefs.h.  */
16132_ACEOF
16133cat confdefs.h >>conftest.$ac_ext
16134cat >>conftest.$ac_ext <<_ACEOF
16135/* end confdefs.h.  */
16136#include <libintl.h>
16137int
16138main ()
16139{
16140gettext("Test");
16141  ;
16142  return 0;
16143}
16144_ACEOF
16145rm -f conftest.$ac_objext conftest$ac_exeext
16146if { (ac_try="$ac_link"
16147case "(($ac_try" in
16148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16149  *) ac_try_echo=$ac_try;;
16150esac
16151eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16152$as_echo "$ac_try_echo") >&5
16153  (eval "$ac_link") 2>conftest.er1
16154  ac_status=$?
16155  grep -v '^ *+' conftest.er1 >conftest.err
16156  rm -f conftest.er1
16157  cat conftest.err >&5
16158  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159  (exit $ac_status); } && {
16160	 test -z "$ac_c_werror_flag" ||
16161	 test ! -s conftest.err
16162       } && test -s conftest$ac_exeext && {
16163	 test "$cross_compiling" = yes ||
16164	 $as_test_x conftest$ac_exeext
16165       }; then
16166  { $as_echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
16167$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"
16168else
16169  $as_echo "$as_me: failed program was:" >&5
16170sed 's/^/| /' conftest.$ac_ext >&5
16171
16172	{ $as_echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
16173$as_echo "gettext() doesn't work" >&6; };
16174	      LIBS=$olibs
16175fi
16176
16177rm -rf conftest.dSYM
16178rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16179      conftest$ac_exeext conftest.$ac_ext
16180fi
16181
16182rm -rf conftest.dSYM
16183rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16184      conftest$ac_exeext conftest.$ac_ext
16185    else
16186      { $as_echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
16187$as_echo "msgfmt not found - disabled" >&6; };
16188    fi
16189    if test $have_gettext = "yes"; then
16190      cat >>confdefs.h <<\_ACEOF
16191#define HAVE_GETTEXT 1
16192_ACEOF
16193
16194      MAKEMO=yes
16195
16196
16197for ac_func in bind_textdomain_codeset
16198do
16199as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16200{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16201$as_echo_n "checking for $ac_func... " >&6; }
16202if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16203  $as_echo_n "(cached) " >&6
16204else
16205  cat >conftest.$ac_ext <<_ACEOF
16206/* confdefs.h.  */
16207_ACEOF
16208cat confdefs.h >>conftest.$ac_ext
16209cat >>conftest.$ac_ext <<_ACEOF
16210/* end confdefs.h.  */
16211/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16212   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16213#define $ac_func innocuous_$ac_func
16214
16215/* System header to define __stub macros and hopefully few prototypes,
16216    which can conflict with char $ac_func (); below.
16217    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16218    <limits.h> exists even on freestanding compilers.  */
16219
16220#ifdef __STDC__
16221# include <limits.h>
16222#else
16223# include <assert.h>
16224#endif
16225
16226#undef $ac_func
16227
16228/* Override any GCC internal prototype to avoid an error.
16229   Use char because int might match the return type of a GCC
16230   builtin and then its argument prototype would still apply.  */
16231#ifdef __cplusplus
16232extern "C"
16233#endif
16234char $ac_func ();
16235/* The GNU C library defines this for functions which it implements
16236    to always fail with ENOSYS.  Some functions are actually named
16237    something starting with __ and the normal name is an alias.  */
16238#if defined __stub_$ac_func || defined __stub___$ac_func
16239choke me
16240#endif
16241
16242int
16243main ()
16244{
16245return $ac_func ();
16246  ;
16247  return 0;
16248}
16249_ACEOF
16250rm -f conftest.$ac_objext conftest$ac_exeext
16251if { (ac_try="$ac_link"
16252case "(($ac_try" in
16253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16254  *) ac_try_echo=$ac_try;;
16255esac
16256eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16257$as_echo "$ac_try_echo") >&5
16258  (eval "$ac_link") 2>conftest.er1
16259  ac_status=$?
16260  grep -v '^ *+' conftest.er1 >conftest.err
16261  rm -f conftest.er1
16262  cat conftest.err >&5
16263  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264  (exit $ac_status); } && {
16265	 test -z "$ac_c_werror_flag" ||
16266	 test ! -s conftest.err
16267       } && test -s conftest$ac_exeext && {
16268	 test "$cross_compiling" = yes ||
16269	 $as_test_x conftest$ac_exeext
16270       }; then
16271  eval "$as_ac_var=yes"
16272else
16273  $as_echo "$as_me: failed program was:" >&5
16274sed 's/^/| /' conftest.$ac_ext >&5
16275
16276	eval "$as_ac_var=no"
16277fi
16278
16279rm -rf conftest.dSYM
16280rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16281      conftest$ac_exeext conftest.$ac_ext
16282fi
16283ac_res=`eval 'as_val=${'$as_ac_var'}
16284		 $as_echo "$as_val"'`
16285	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16286$as_echo "$ac_res" >&6; }
16287as_val=`eval 'as_val=${'$as_ac_var'}
16288		 $as_echo "$as_val"'`
16289   if test "x$as_val" = x""yes; then
16290  cat >>confdefs.h <<_ACEOF
16291#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16292_ACEOF
16293
16294fi
16295done
16296
16297            { $as_echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
16298$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
16299      cat >conftest.$ac_ext <<_ACEOF
16300/* confdefs.h.  */
16301_ACEOF
16302cat confdefs.h >>conftest.$ac_ext
16303cat >>conftest.$ac_ext <<_ACEOF
16304/* end confdefs.h.  */
16305#include <libintl.h>
16306		extern int _nl_msg_cat_cntr;
16307int
16308main ()
16309{
16310++_nl_msg_cat_cntr;
16311  ;
16312  return 0;
16313}
16314_ACEOF
16315rm -f conftest.$ac_objext conftest$ac_exeext
16316if { (ac_try="$ac_link"
16317case "(($ac_try" in
16318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16319  *) ac_try_echo=$ac_try;;
16320esac
16321eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16322$as_echo "$ac_try_echo") >&5
16323  (eval "$ac_link") 2>conftest.er1
16324  ac_status=$?
16325  grep -v '^ *+' conftest.er1 >conftest.err
16326  rm -f conftest.er1
16327  cat conftest.err >&5
16328  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329  (exit $ac_status); } && {
16330	 test -z "$ac_c_werror_flag" ||
16331	 test ! -s conftest.err
16332       } && test -s conftest$ac_exeext && {
16333	 test "$cross_compiling" = yes ||
16334	 $as_test_x conftest$ac_exeext
16335       }; then
16336  { $as_echo "$as_me:$LINENO: result: yes" >&5
16337$as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
16338#define HAVE_NL_MSG_CAT_CNTR 1
16339_ACEOF
16340
16341else
16342  $as_echo "$as_me: failed program was:" >&5
16343sed 's/^/| /' conftest.$ac_ext >&5
16344
16345	{ $as_echo "$as_me:$LINENO: result: no" >&5
16346$as_echo "no" >&6; }
16347fi
16348
16349rm -rf conftest.dSYM
16350rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16351      conftest$ac_exeext conftest.$ac_ext
16352    fi
16353  else
16354    { $as_echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
16355$as_echo "no \"po/Makefile\" - disabled" >&6; };
16356  fi
16357else
16358  { $as_echo "$as_me:$LINENO: result: yes" >&5
16359$as_echo "yes" >&6; }
16360fi
16361
16362if test "${ac_cv_header_dlfcn_h+set}" = set; then
16363  { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16364$as_echo_n "checking for dlfcn.h... " >&6; }
16365if test "${ac_cv_header_dlfcn_h+set}" = set; then
16366  $as_echo_n "(cached) " >&6
16367fi
16368{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16369$as_echo "$ac_cv_header_dlfcn_h" >&6; }
16370else
16371  # Is the header compilable?
16372{ $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
16373$as_echo_n "checking dlfcn.h usability... " >&6; }
16374cat >conftest.$ac_ext <<_ACEOF
16375/* confdefs.h.  */
16376_ACEOF
16377cat confdefs.h >>conftest.$ac_ext
16378cat >>conftest.$ac_ext <<_ACEOF
16379/* end confdefs.h.  */
16380$ac_includes_default
16381#include <dlfcn.h>
16382_ACEOF
16383rm -f conftest.$ac_objext
16384if { (ac_try="$ac_compile"
16385case "(($ac_try" in
16386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16387  *) ac_try_echo=$ac_try;;
16388esac
16389eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16390$as_echo "$ac_try_echo") >&5
16391  (eval "$ac_compile") 2>conftest.er1
16392  ac_status=$?
16393  grep -v '^ *+' conftest.er1 >conftest.err
16394  rm -f conftest.er1
16395  cat conftest.err >&5
16396  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397  (exit $ac_status); } && {
16398	 test -z "$ac_c_werror_flag" ||
16399	 test ! -s conftest.err
16400       } && test -s conftest.$ac_objext; then
16401  ac_header_compiler=yes
16402else
16403  $as_echo "$as_me: failed program was:" >&5
16404sed 's/^/| /' conftest.$ac_ext >&5
16405
16406	ac_header_compiler=no
16407fi
16408
16409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16410{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16411$as_echo "$ac_header_compiler" >&6; }
16412
16413# Is the header present?
16414{ $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
16415$as_echo_n "checking dlfcn.h presence... " >&6; }
16416cat >conftest.$ac_ext <<_ACEOF
16417/* confdefs.h.  */
16418_ACEOF
16419cat confdefs.h >>conftest.$ac_ext
16420cat >>conftest.$ac_ext <<_ACEOF
16421/* end confdefs.h.  */
16422#include <dlfcn.h>
16423_ACEOF
16424if { (ac_try="$ac_cpp conftest.$ac_ext"
16425case "(($ac_try" in
16426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427  *) ac_try_echo=$ac_try;;
16428esac
16429eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16430$as_echo "$ac_try_echo") >&5
16431  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16432  ac_status=$?
16433  grep -v '^ *+' conftest.er1 >conftest.err
16434  rm -f conftest.er1
16435  cat conftest.err >&5
16436  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437  (exit $ac_status); } >/dev/null && {
16438	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16439	 test ! -s conftest.err
16440       }; then
16441  ac_header_preproc=yes
16442else
16443  $as_echo "$as_me: failed program was:" >&5
16444sed 's/^/| /' conftest.$ac_ext >&5
16445
16446  ac_header_preproc=no
16447fi
16448
16449rm -f conftest.err conftest.$ac_ext
16450{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16451$as_echo "$ac_header_preproc" >&6; }
16452
16453# So?  What about this header?
16454case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16455  yes:no: )
16456    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
16457$as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16458    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
16459$as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
16460    ac_header_preproc=yes
16461    ;;
16462  no:yes:* )
16463    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
16464$as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
16465    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
16466$as_echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
16467    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
16468$as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
16469    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
16470$as_echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16471    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
16472$as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
16473    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
16474$as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
16475
16476    ;;
16477esac
16478{ $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16479$as_echo_n "checking for dlfcn.h... " >&6; }
16480if test "${ac_cv_header_dlfcn_h+set}" = set; then
16481  $as_echo_n "(cached) " >&6
16482else
16483  ac_cv_header_dlfcn_h=$ac_header_preproc
16484fi
16485{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16486$as_echo "$ac_cv_header_dlfcn_h" >&6; }
16487
16488fi
16489if test "x$ac_cv_header_dlfcn_h" = x""yes; then
16490  DLL=dlfcn.h
16491else
16492  if test "${ac_cv_header_dl_h+set}" = set; then
16493  { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16494$as_echo_n "checking for dl.h... " >&6; }
16495if test "${ac_cv_header_dl_h+set}" = set; then
16496  $as_echo_n "(cached) " >&6
16497fi
16498{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16499$as_echo "$ac_cv_header_dl_h" >&6; }
16500else
16501  # Is the header compilable?
16502{ $as_echo "$as_me:$LINENO: checking dl.h usability" >&5
16503$as_echo_n "checking dl.h usability... " >&6; }
16504cat >conftest.$ac_ext <<_ACEOF
16505/* confdefs.h.  */
16506_ACEOF
16507cat confdefs.h >>conftest.$ac_ext
16508cat >>conftest.$ac_ext <<_ACEOF
16509/* end confdefs.h.  */
16510$ac_includes_default
16511#include <dl.h>
16512_ACEOF
16513rm -f conftest.$ac_objext
16514if { (ac_try="$ac_compile"
16515case "(($ac_try" in
16516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16517  *) ac_try_echo=$ac_try;;
16518esac
16519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16520$as_echo "$ac_try_echo") >&5
16521  (eval "$ac_compile") 2>conftest.er1
16522  ac_status=$?
16523  grep -v '^ *+' conftest.er1 >conftest.err
16524  rm -f conftest.er1
16525  cat conftest.err >&5
16526  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527  (exit $ac_status); } && {
16528	 test -z "$ac_c_werror_flag" ||
16529	 test ! -s conftest.err
16530       } && test -s conftest.$ac_objext; then
16531  ac_header_compiler=yes
16532else
16533  $as_echo "$as_me: failed program was:" >&5
16534sed 's/^/| /' conftest.$ac_ext >&5
16535
16536	ac_header_compiler=no
16537fi
16538
16539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16540{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16541$as_echo "$ac_header_compiler" >&6; }
16542
16543# Is the header present?
16544{ $as_echo "$as_me:$LINENO: checking dl.h presence" >&5
16545$as_echo_n "checking dl.h presence... " >&6; }
16546cat >conftest.$ac_ext <<_ACEOF
16547/* confdefs.h.  */
16548_ACEOF
16549cat confdefs.h >>conftest.$ac_ext
16550cat >>conftest.$ac_ext <<_ACEOF
16551/* end confdefs.h.  */
16552#include <dl.h>
16553_ACEOF
16554if { (ac_try="$ac_cpp conftest.$ac_ext"
16555case "(($ac_try" in
16556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16557  *) ac_try_echo=$ac_try;;
16558esac
16559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16560$as_echo "$ac_try_echo") >&5
16561  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16562  ac_status=$?
16563  grep -v '^ *+' conftest.er1 >conftest.err
16564  rm -f conftest.er1
16565  cat conftest.err >&5
16566  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567  (exit $ac_status); } >/dev/null && {
16568	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16569	 test ! -s conftest.err
16570       }; then
16571  ac_header_preproc=yes
16572else
16573  $as_echo "$as_me: failed program was:" >&5
16574sed 's/^/| /' conftest.$ac_ext >&5
16575
16576  ac_header_preproc=no
16577fi
16578
16579rm -f conftest.err conftest.$ac_ext
16580{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16581$as_echo "$ac_header_preproc" >&6; }
16582
16583# So?  What about this header?
16584case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16585  yes:no: )
16586    { $as_echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16587$as_echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16588    { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
16589$as_echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
16590    ac_header_preproc=yes
16591    ;;
16592  no:yes:* )
16593    { $as_echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
16594$as_echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
16595    { $as_echo "$as_me:$LINENO: WARNING: dl.h:     check for missing prerequisite headers?" >&5
16596$as_echo "$as_me: WARNING: dl.h:     check for missing prerequisite headers?" >&2;}
16597    { $as_echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
16598$as_echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
16599    { $as_echo "$as_me:$LINENO: WARNING: dl.h:     section \"Present But Cannot Be Compiled\"" >&5
16600$as_echo "$as_me: WARNING: dl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16601    { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
16602$as_echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
16603    { $as_echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
16604$as_echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
16605
16606    ;;
16607esac
16608{ $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16609$as_echo_n "checking for dl.h... " >&6; }
16610if test "${ac_cv_header_dl_h+set}" = set; then
16611  $as_echo_n "(cached) " >&6
16612else
16613  ac_cv_header_dl_h=$ac_header_preproc
16614fi
16615{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16616$as_echo "$ac_cv_header_dl_h" >&6; }
16617
16618fi
16619if test "x$ac_cv_header_dl_h" = x""yes; then
16620  DLL=dl.h
16621fi
16622
16623
16624fi
16625
16626
16627if test x${DLL} = xdlfcn.h; then
16628
16629cat >>confdefs.h <<\_ACEOF
16630#define HAVE_DLFCN_H 1
16631_ACEOF
16632
16633  { $as_echo "$as_me:$LINENO: checking for dlopen()" >&5
16634$as_echo_n "checking for dlopen()... " >&6; }
16635  cat >conftest.$ac_ext <<_ACEOF
16636/* confdefs.h.  */
16637_ACEOF
16638cat confdefs.h >>conftest.$ac_ext
16639cat >>conftest.$ac_ext <<_ACEOF
16640/* end confdefs.h.  */
16641
16642int
16643main ()
16644{
16645
16646		extern void* dlopen();
16647		dlopen();
16648
16649  ;
16650  return 0;
16651}
16652_ACEOF
16653rm -f conftest.$ac_objext conftest$ac_exeext
16654if { (ac_try="$ac_link"
16655case "(($ac_try" in
16656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16657  *) ac_try_echo=$ac_try;;
16658esac
16659eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16660$as_echo "$ac_try_echo") >&5
16661  (eval "$ac_link") 2>conftest.er1
16662  ac_status=$?
16663  grep -v '^ *+' conftest.er1 >conftest.err
16664  rm -f conftest.er1
16665  cat conftest.err >&5
16666  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667  (exit $ac_status); } && {
16668	 test -z "$ac_c_werror_flag" ||
16669	 test ! -s conftest.err
16670       } && test -s conftest$ac_exeext && {
16671	 test "$cross_compiling" = yes ||
16672	 $as_test_x conftest$ac_exeext
16673       }; then
16674  { $as_echo "$as_me:$LINENO: result: yes" >&5
16675$as_echo "yes" >&6; };
16676
16677cat >>confdefs.h <<\_ACEOF
16678#define HAVE_DLOPEN 1
16679_ACEOF
16680
16681else
16682  $as_echo "$as_me: failed program was:" >&5
16683sed 's/^/| /' conftest.$ac_ext >&5
16684
16685	{ $as_echo "$as_me:$LINENO: result: no" >&5
16686$as_echo "no" >&6; };
16687	      { $as_echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
16688$as_echo_n "checking for dlopen() in -ldl... " >&6; }
16689	      olibs=$LIBS
16690	      LIBS="$LIBS -ldl"
16691	      cat >conftest.$ac_ext <<_ACEOF
16692/* confdefs.h.  */
16693_ACEOF
16694cat confdefs.h >>conftest.$ac_ext
16695cat >>conftest.$ac_ext <<_ACEOF
16696/* end confdefs.h.  */
16697
16698int
16699main ()
16700{
16701
16702				extern void* dlopen();
16703				dlopen();
16704
16705  ;
16706  return 0;
16707}
16708_ACEOF
16709rm -f conftest.$ac_objext conftest$ac_exeext
16710if { (ac_try="$ac_link"
16711case "(($ac_try" in
16712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16713  *) ac_try_echo=$ac_try;;
16714esac
16715eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16716$as_echo "$ac_try_echo") >&5
16717  (eval "$ac_link") 2>conftest.er1
16718  ac_status=$?
16719  grep -v '^ *+' conftest.er1 >conftest.err
16720  rm -f conftest.er1
16721  cat conftest.err >&5
16722  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723  (exit $ac_status); } && {
16724	 test -z "$ac_c_werror_flag" ||
16725	 test ! -s conftest.err
16726       } && test -s conftest$ac_exeext && {
16727	 test "$cross_compiling" = yes ||
16728	 $as_test_x conftest$ac_exeext
16729       }; then
16730  { $as_echo "$as_me:$LINENO: result: yes" >&5
16731$as_echo "yes" >&6; };
16732
16733cat >>confdefs.h <<\_ACEOF
16734#define HAVE_DLOPEN 1
16735_ACEOF
16736
16737else
16738  $as_echo "$as_me: failed program was:" >&5
16739sed 's/^/| /' conftest.$ac_ext >&5
16740
16741	{ $as_echo "$as_me:$LINENO: result: no" >&5
16742$as_echo "no" >&6; };
16743			  LIBS=$olibs
16744fi
16745
16746rm -rf conftest.dSYM
16747rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16748      conftest$ac_exeext conftest.$ac_ext
16749fi
16750
16751rm -rf conftest.dSYM
16752rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16753      conftest$ac_exeext conftest.$ac_ext
16754      { $as_echo "$as_me:$LINENO: checking for dlsym()" >&5
16755$as_echo_n "checking for dlsym()... " >&6; }
16756  cat >conftest.$ac_ext <<_ACEOF
16757/* confdefs.h.  */
16758_ACEOF
16759cat confdefs.h >>conftest.$ac_ext
16760cat >>conftest.$ac_ext <<_ACEOF
16761/* end confdefs.h.  */
16762
16763int
16764main ()
16765{
16766
16767		extern void* dlsym();
16768		dlsym();
16769
16770  ;
16771  return 0;
16772}
16773_ACEOF
16774rm -f conftest.$ac_objext conftest$ac_exeext
16775if { (ac_try="$ac_link"
16776case "(($ac_try" in
16777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16778  *) ac_try_echo=$ac_try;;
16779esac
16780eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16781$as_echo "$ac_try_echo") >&5
16782  (eval "$ac_link") 2>conftest.er1
16783  ac_status=$?
16784  grep -v '^ *+' conftest.er1 >conftest.err
16785  rm -f conftest.er1
16786  cat conftest.err >&5
16787  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788  (exit $ac_status); } && {
16789	 test -z "$ac_c_werror_flag" ||
16790	 test ! -s conftest.err
16791       } && test -s conftest$ac_exeext && {
16792	 test "$cross_compiling" = yes ||
16793	 $as_test_x conftest$ac_exeext
16794       }; then
16795  { $as_echo "$as_me:$LINENO: result: yes" >&5
16796$as_echo "yes" >&6; };
16797
16798cat >>confdefs.h <<\_ACEOF
16799#define HAVE_DLSYM 1
16800_ACEOF
16801
16802else
16803  $as_echo "$as_me: failed program was:" >&5
16804sed 's/^/| /' conftest.$ac_ext >&5
16805
16806	{ $as_echo "$as_me:$LINENO: result: no" >&5
16807$as_echo "no" >&6; };
16808	      { $as_echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
16809$as_echo_n "checking for dlsym() in -ldl... " >&6; }
16810	      olibs=$LIBS
16811	      LIBS="$LIBS -ldl"
16812	      cat >conftest.$ac_ext <<_ACEOF
16813/* confdefs.h.  */
16814_ACEOF
16815cat confdefs.h >>conftest.$ac_ext
16816cat >>conftest.$ac_ext <<_ACEOF
16817/* end confdefs.h.  */
16818
16819int
16820main ()
16821{
16822
16823				extern void* dlsym();
16824				dlsym();
16825
16826  ;
16827  return 0;
16828}
16829_ACEOF
16830rm -f conftest.$ac_objext conftest$ac_exeext
16831if { (ac_try="$ac_link"
16832case "(($ac_try" in
16833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16834  *) ac_try_echo=$ac_try;;
16835esac
16836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16837$as_echo "$ac_try_echo") >&5
16838  (eval "$ac_link") 2>conftest.er1
16839  ac_status=$?
16840  grep -v '^ *+' conftest.er1 >conftest.err
16841  rm -f conftest.er1
16842  cat conftest.err >&5
16843  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844  (exit $ac_status); } && {
16845	 test -z "$ac_c_werror_flag" ||
16846	 test ! -s conftest.err
16847       } && test -s conftest$ac_exeext && {
16848	 test "$cross_compiling" = yes ||
16849	 $as_test_x conftest$ac_exeext
16850       }; then
16851  { $as_echo "$as_me:$LINENO: result: yes" >&5
16852$as_echo "yes" >&6; };
16853
16854cat >>confdefs.h <<\_ACEOF
16855#define HAVE_DLSYM 1
16856_ACEOF
16857
16858else
16859  $as_echo "$as_me: failed program was:" >&5
16860sed 's/^/| /' conftest.$ac_ext >&5
16861
16862	{ $as_echo "$as_me:$LINENO: result: no" >&5
16863$as_echo "no" >&6; };
16864			  LIBS=$olibs
16865fi
16866
16867rm -rf conftest.dSYM
16868rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16869      conftest$ac_exeext conftest.$ac_ext
16870fi
16871
16872rm -rf conftest.dSYM
16873rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16874      conftest$ac_exeext conftest.$ac_ext
16875elif test x${DLL} = xdl.h; then
16876
16877cat >>confdefs.h <<\_ACEOF
16878#define HAVE_DL_H 1
16879_ACEOF
16880
16881  { $as_echo "$as_me:$LINENO: checking for shl_load()" >&5
16882$as_echo_n "checking for shl_load()... " >&6; }
16883  cat >conftest.$ac_ext <<_ACEOF
16884/* confdefs.h.  */
16885_ACEOF
16886cat confdefs.h >>conftest.$ac_ext
16887cat >>conftest.$ac_ext <<_ACEOF
16888/* end confdefs.h.  */
16889
16890int
16891main ()
16892{
16893
16894		extern void* shl_load();
16895		shl_load();
16896
16897  ;
16898  return 0;
16899}
16900_ACEOF
16901rm -f conftest.$ac_objext conftest$ac_exeext
16902if { (ac_try="$ac_link"
16903case "(($ac_try" in
16904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16905  *) ac_try_echo=$ac_try;;
16906esac
16907eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16908$as_echo "$ac_try_echo") >&5
16909  (eval "$ac_link") 2>conftest.er1
16910  ac_status=$?
16911  grep -v '^ *+' conftest.er1 >conftest.err
16912  rm -f conftest.er1
16913  cat conftest.err >&5
16914  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915  (exit $ac_status); } && {
16916	 test -z "$ac_c_werror_flag" ||
16917	 test ! -s conftest.err
16918       } && test -s conftest$ac_exeext && {
16919	 test "$cross_compiling" = yes ||
16920	 $as_test_x conftest$ac_exeext
16921       }; then
16922  { $as_echo "$as_me:$LINENO: result: yes" >&5
16923$as_echo "yes" >&6; };
16924
16925cat >>confdefs.h <<\_ACEOF
16926#define HAVE_SHL_LOAD 1
16927_ACEOF
16928
16929else
16930  $as_echo "$as_me: failed program was:" >&5
16931sed 's/^/| /' conftest.$ac_ext >&5
16932
16933	{ $as_echo "$as_me:$LINENO: result: no" >&5
16934$as_echo "no" >&6; };
16935	  { $as_echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
16936$as_echo_n "checking for shl_load() in -ldld... " >&6; }
16937	  olibs=$LIBS
16938	  LIBS="$LIBS -ldld"
16939	  cat >conftest.$ac_ext <<_ACEOF
16940/* confdefs.h.  */
16941_ACEOF
16942cat confdefs.h >>conftest.$ac_ext
16943cat >>conftest.$ac_ext <<_ACEOF
16944/* end confdefs.h.  */
16945
16946int
16947main ()
16948{
16949
16950			extern void* shl_load();
16951			shl_load();
16952
16953  ;
16954  return 0;
16955}
16956_ACEOF
16957rm -f conftest.$ac_objext conftest$ac_exeext
16958if { (ac_try="$ac_link"
16959case "(($ac_try" in
16960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961  *) ac_try_echo=$ac_try;;
16962esac
16963eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16964$as_echo "$ac_try_echo") >&5
16965  (eval "$ac_link") 2>conftest.er1
16966  ac_status=$?
16967  grep -v '^ *+' conftest.er1 >conftest.err
16968  rm -f conftest.er1
16969  cat conftest.err >&5
16970  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971  (exit $ac_status); } && {
16972	 test -z "$ac_c_werror_flag" ||
16973	 test ! -s conftest.err
16974       } && test -s conftest$ac_exeext && {
16975	 test "$cross_compiling" = yes ||
16976	 $as_test_x conftest$ac_exeext
16977       }; then
16978  { $as_echo "$as_me:$LINENO: result: yes" >&5
16979$as_echo "yes" >&6; };
16980
16981cat >>confdefs.h <<\_ACEOF
16982#define HAVE_SHL_LOAD 1
16983_ACEOF
16984
16985else
16986  $as_echo "$as_me: failed program was:" >&5
16987sed 's/^/| /' conftest.$ac_ext >&5
16988
16989	{ $as_echo "$as_me:$LINENO: result: no" >&5
16990$as_echo "no" >&6; };
16991		  LIBS=$olibs
16992fi
16993
16994rm -rf conftest.dSYM
16995rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16996      conftest$ac_exeext conftest.$ac_ext
16997fi
16998
16999rm -rf conftest.dSYM
17000rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17001      conftest$ac_exeext conftest.$ac_ext
17002fi
17003
17004for ac_header in setjmp.h
17005do
17006as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17007if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17008  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17009$as_echo_n "checking for $ac_header... " >&6; }
17010if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17011  $as_echo_n "(cached) " >&6
17012fi
17013ac_res=`eval 'as_val=${'$as_ac_Header'}
17014		 $as_echo "$as_val"'`
17015	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17016$as_echo "$ac_res" >&6; }
17017else
17018  # Is the header compilable?
17019{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17020$as_echo_n "checking $ac_header usability... " >&6; }
17021cat >conftest.$ac_ext <<_ACEOF
17022/* confdefs.h.  */
17023_ACEOF
17024cat confdefs.h >>conftest.$ac_ext
17025cat >>conftest.$ac_ext <<_ACEOF
17026/* end confdefs.h.  */
17027$ac_includes_default
17028#include <$ac_header>
17029_ACEOF
17030rm -f conftest.$ac_objext
17031if { (ac_try="$ac_compile"
17032case "(($ac_try" in
17033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17034  *) ac_try_echo=$ac_try;;
17035esac
17036eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17037$as_echo "$ac_try_echo") >&5
17038  (eval "$ac_compile") 2>conftest.er1
17039  ac_status=$?
17040  grep -v '^ *+' conftest.er1 >conftest.err
17041  rm -f conftest.er1
17042  cat conftest.err >&5
17043  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044  (exit $ac_status); } && {
17045	 test -z "$ac_c_werror_flag" ||
17046	 test ! -s conftest.err
17047       } && test -s conftest.$ac_objext; then
17048  ac_header_compiler=yes
17049else
17050  $as_echo "$as_me: failed program was:" >&5
17051sed 's/^/| /' conftest.$ac_ext >&5
17052
17053	ac_header_compiler=no
17054fi
17055
17056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17057{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17058$as_echo "$ac_header_compiler" >&6; }
17059
17060# Is the header present?
17061{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17062$as_echo_n "checking $ac_header presence... " >&6; }
17063cat >conftest.$ac_ext <<_ACEOF
17064/* confdefs.h.  */
17065_ACEOF
17066cat confdefs.h >>conftest.$ac_ext
17067cat >>conftest.$ac_ext <<_ACEOF
17068/* end confdefs.h.  */
17069#include <$ac_header>
17070_ACEOF
17071if { (ac_try="$ac_cpp conftest.$ac_ext"
17072case "(($ac_try" in
17073  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17074  *) ac_try_echo=$ac_try;;
17075esac
17076eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17077$as_echo "$ac_try_echo") >&5
17078  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17079  ac_status=$?
17080  grep -v '^ *+' conftest.er1 >conftest.err
17081  rm -f conftest.er1
17082  cat conftest.err >&5
17083  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084  (exit $ac_status); } >/dev/null && {
17085	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17086	 test ! -s conftest.err
17087       }; then
17088  ac_header_preproc=yes
17089else
17090  $as_echo "$as_me: failed program was:" >&5
17091sed 's/^/| /' conftest.$ac_ext >&5
17092
17093  ac_header_preproc=no
17094fi
17095
17096rm -f conftest.err conftest.$ac_ext
17097{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17098$as_echo "$ac_header_preproc" >&6; }
17099
17100# So?  What about this header?
17101case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17102  yes:no: )
17103    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17104$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17105    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17106$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17107    ac_header_preproc=yes
17108    ;;
17109  no:yes:* )
17110    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17111$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17112    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17113$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17114    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17115$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17116    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17117$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17118    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17119$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17120    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17121$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17122
17123    ;;
17124esac
17125{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17126$as_echo_n "checking for $ac_header... " >&6; }
17127if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17128  $as_echo_n "(cached) " >&6
17129else
17130  eval "$as_ac_Header=\$ac_header_preproc"
17131fi
17132ac_res=`eval 'as_val=${'$as_ac_Header'}
17133		 $as_echo "$as_val"'`
17134	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17135$as_echo "$ac_res" >&6; }
17136
17137fi
17138as_val=`eval 'as_val=${'$as_ac_Header'}
17139		 $as_echo "$as_val"'`
17140   if test "x$as_val" = x""yes; then
17141  cat >>confdefs.h <<_ACEOF
17142#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17143_ACEOF
17144
17145fi
17146
17147done
17148
17149
17150if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
17151    if echo $LIBS | grep -e '-ldl' >/dev/null; then
17152    LIBS=`echo $LIBS | sed s/-ldl//`
17153    PERL_LIBS="$PERL_LIBS -ldl"
17154  fi
17155fi
17156
17157if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
17158	&& test "x$GUITYPE" != "xCARBONGUI"; then
17159  { $as_echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
17160$as_echo_n "checking whether we need -framework Carbon... " >&6; }
17161    if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
17162	|| test "x$features" = "xhuge"; then
17163    LIBS="$LIBS -framework Carbon"
17164    { $as_echo "$as_me:$LINENO: result: yes" >&5
17165$as_echo "yes" >&6; }
17166  else
17167    { $as_echo "$as_me:$LINENO: result: no" >&5
17168$as_echo "no" >&6; }
17169  fi
17170fi
17171if test "x$MACARCH" = "xboth"; then
17172  LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
17173fi
17174
17175DEPEND_CFLAGS_FILTER=
17176if test "$GCC" = yes; then
17177  { $as_echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
17178$as_echo_n "checking for GCC 3 or later... " >&6; }
17179  gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
17180  if test "$gccmajor" -gt "2"; then
17181    DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
17182    { $as_echo "$as_me:$LINENO: result: yes" >&5
17183$as_echo "yes" >&6; }
17184  else
17185    { $as_echo "$as_me:$LINENO: result: no" >&5
17186$as_echo "no" >&6; }
17187  fi
17188        { $as_echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5
17189$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
17190  if test "$gccmajor" -gt "3"; then
17191    CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -D_FORTIFY_SOURCE=1/'`
17192    { $as_echo "$as_me:$LINENO: result: yes" >&5
17193$as_echo "yes" >&6; }
17194  else
17195    { $as_echo "$as_me:$LINENO: result: no" >&5
17196$as_echo "no" >&6; }
17197  fi
17198fi
17199
17200
17201ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
17202
17203cat >confcache <<\_ACEOF
17204# This file is a shell script that caches the results of configure
17205# tests run on this system so they can be shared between configure
17206# scripts and configure runs, see configure's option --config-cache.
17207# It is not useful on other systems.  If it contains results you don't
17208# want to keep, you may remove or edit it.
17209#
17210# config.status only pays attention to the cache file if you give it
17211# the --recheck option to rerun configure.
17212#
17213# `ac_cv_env_foo' variables (set or unset) will be overridden when
17214# loading this file, other *unset* `ac_cv_foo' will be assigned the
17215# following values.
17216
17217_ACEOF
17218
17219# The following way of writing the cache mishandles newlines in values,
17220# but we know of no workaround that is simple, portable, and efficient.
17221# So, we kill variables containing newlines.
17222# Ultrix sh set writes to stderr and can't be redirected directly,
17223# and sets the high bit in the cache file unless we assign to the vars.
17224(
17225  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17226    eval ac_val=\$$ac_var
17227    case $ac_val in #(
17228    *${as_nl}*)
17229      case $ac_var in #(
17230      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17231$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17232      esac
17233      case $ac_var in #(
17234      _ | IFS | as_nl) ;; #(
17235      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17236      *) $as_unset $ac_var ;;
17237      esac ;;
17238    esac
17239  done
17240
17241  (set) 2>&1 |
17242    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17243    *${as_nl}ac_space=\ *)
17244      # `set' does not quote correctly, so add quotes (double-quote
17245      # substitution turns \\\\ into \\, and sed turns \\ into \).
17246      sed -n \
17247	"s/'/'\\\\''/g;
17248	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17249      ;; #(
17250    *)
17251      # `set' quotes correctly as required by POSIX, so do not add quotes.
17252      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17253      ;;
17254    esac |
17255    sort
17256) |
17257  sed '
17258     /^ac_cv_env_/b end
17259     t clear
17260     :clear
17261     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17262     t end
17263     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17264     :end' >>confcache
17265if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17266  if test -w "$cache_file"; then
17267    test "x$cache_file" != "x/dev/null" &&
17268      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17269$as_echo "$as_me: updating cache $cache_file" >&6;}
17270    cat confcache >$cache_file
17271  else
17272    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17273$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17274  fi
17275fi
17276rm -f confcache
17277
17278test "x$prefix" = xNONE && prefix=$ac_default_prefix
17279# Let make expand exec_prefix.
17280test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17281
17282DEFS=-DHAVE_CONFIG_H
17283
17284ac_libobjs=
17285ac_ltlibobjs=
17286for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17287  # 1. Remove the extension, and $U if already installed.
17288  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17289  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17290  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17291  #    will be set to the directory where LIBOBJS objects are built.
17292  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17293  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17294done
17295LIBOBJS=$ac_libobjs
17296
17297LTLIBOBJS=$ac_ltlibobjs
17298
17299
17300
17301: ${CONFIG_STATUS=./config.status}
17302ac_write_fail=0
17303ac_clean_files_save=$ac_clean_files
17304ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17305{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17306$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17307cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17308#! $SHELL
17309# Generated by $as_me.
17310# Run this file to recreate the current configuration.
17311# Compiler output produced by configure, useful for debugging
17312# configure, is in config.log if it exists.
17313
17314debug=false
17315ac_cs_recheck=false
17316ac_cs_silent=false
17317SHELL=\${CONFIG_SHELL-$SHELL}
17318_ACEOF
17319
17320cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17321## --------------------- ##
17322## M4sh Initialization.  ##
17323## --------------------- ##
17324
17325# Be more Bourne compatible
17326DUALCASE=1; export DUALCASE # for MKS sh
17327if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17328  emulate sh
17329  NULLCMD=:
17330  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17331  # is contrary to our usage.  Disable this feature.
17332  alias -g '${1+"$@"}'='"$@"'
17333  setopt NO_GLOB_SUBST
17334else
17335  case `(set -o) 2>/dev/null` in
17336  *posix*) set -o posix ;;
17337esac
17338
17339fi
17340
17341
17342
17343
17344# PATH needs CR
17345# Avoid depending upon Character Ranges.
17346as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17347as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17348as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17349as_cr_digits='0123456789'
17350as_cr_alnum=$as_cr_Letters$as_cr_digits
17351
17352as_nl='
17353'
17354export as_nl
17355# Printing a long string crashes Solaris 7 /usr/bin/printf.
17356as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17357as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17358as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17359if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17360  as_echo='printf %s\n'
17361  as_echo_n='printf %s'
17362else
17363  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17364    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17365    as_echo_n='/usr/ucb/echo -n'
17366  else
17367    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17368    as_echo_n_body='eval
17369      arg=$1;
17370      case $arg in
17371      *"$as_nl"*)
17372	expr "X$arg" : "X\\(.*\\)$as_nl";
17373	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17374      esac;
17375      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17376    '
17377    export as_echo_n_body
17378    as_echo_n='sh -c $as_echo_n_body as_echo'
17379  fi
17380  export as_echo_body
17381  as_echo='sh -c $as_echo_body as_echo'
17382fi
17383
17384# The user is always right.
17385if test "${PATH_SEPARATOR+set}" != set; then
17386  PATH_SEPARATOR=:
17387  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17388    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17389      PATH_SEPARATOR=';'
17390  }
17391fi
17392
17393# Support unset when possible.
17394if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17395  as_unset=unset
17396else
17397  as_unset=false
17398fi
17399
17400
17401# IFS
17402# We need space, tab and new line, in precisely that order.  Quoting is
17403# there to prevent editors from complaining about space-tab.
17404# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17405# splitting by setting IFS to empty value.)
17406IFS=" ""	$as_nl"
17407
17408# Find who we are.  Look in the path if we contain no directory separator.
17409case $0 in
17410  *[\\/]* ) as_myself=$0 ;;
17411  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17412for as_dir in $PATH
17413do
17414  IFS=$as_save_IFS
17415  test -z "$as_dir" && as_dir=.
17416  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17417done
17418IFS=$as_save_IFS
17419
17420     ;;
17421esac
17422# We did not find ourselves, most probably we were run as `sh COMMAND'
17423# in which case we are not to be found in the path.
17424if test "x$as_myself" = x; then
17425  as_myself=$0
17426fi
17427if test ! -f "$as_myself"; then
17428  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17429  { (exit 1); exit 1; }
17430fi
17431
17432# Work around bugs in pre-3.0 UWIN ksh.
17433for as_var in ENV MAIL MAILPATH
17434do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17435done
17436PS1='$ '
17437PS2='> '
17438PS4='+ '
17439
17440# NLS nuisances.
17441LC_ALL=C
17442export LC_ALL
17443LANGUAGE=C
17444export LANGUAGE
17445
17446# Required to use basename.
17447if expr a : '\(a\)' >/dev/null 2>&1 &&
17448   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17449  as_expr=expr
17450else
17451  as_expr=false
17452fi
17453
17454if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17455  as_basename=basename
17456else
17457  as_basename=false
17458fi
17459
17460
17461# Name of the executable.
17462as_me=`$as_basename -- "$0" ||
17463$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17464	 X"$0" : 'X\(//\)$' \| \
17465	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17466$as_echo X/"$0" |
17467    sed '/^.*\/\([^/][^/]*\)\/*$/{
17468	    s//\1/
17469	    q
17470	  }
17471	  /^X\/\(\/\/\)$/{
17472	    s//\1/
17473	    q
17474	  }
17475	  /^X\/\(\/\).*/{
17476	    s//\1/
17477	    q
17478	  }
17479	  s/.*/./; q'`
17480
17481# CDPATH.
17482$as_unset CDPATH
17483
17484
17485
17486  as_lineno_1=$LINENO
17487  as_lineno_2=$LINENO
17488  test "x$as_lineno_1" != "x$as_lineno_2" &&
17489  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17490
17491  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17492  # uniformly replaced by the line number.  The first 'sed' inserts a
17493  # line-number line after each line using $LINENO; the second 'sed'
17494  # does the real work.  The second script uses 'N' to pair each
17495  # line-number line with the line containing $LINENO, and appends
17496  # trailing '-' during substitution so that $LINENO is not a special
17497  # case at line end.
17498  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17499  # scripts with optimization help from Paolo Bonzini.  Blame Lee
17500  # E. McMahon (1931-1989) for sed's syntax.  :-)
17501  sed -n '
17502    p
17503    /[$]LINENO/=
17504  ' <$as_myself |
17505    sed '
17506      s/[$]LINENO.*/&-/
17507      t lineno
17508      b
17509      :lineno
17510      N
17511      :loop
17512      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17513      t loop
17514      s/-\n.*//
17515    ' >$as_me.lineno &&
17516  chmod +x "$as_me.lineno" ||
17517    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17518   { (exit 1); exit 1; }; }
17519
17520  # Don't try to exec as it changes $[0], causing all sort of problems
17521  # (the dirname of $[0] is not the place where we might find the
17522  # original and so on.  Autoconf is especially sensitive to this).
17523  . "./$as_me.lineno"
17524  # Exit status is that of the last command.
17525  exit
17526}
17527
17528
17529if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17530  as_dirname=dirname
17531else
17532  as_dirname=false
17533fi
17534
17535ECHO_C= ECHO_N= ECHO_T=
17536case `echo -n x` in
17537-n*)
17538  case `echo 'x\c'` in
17539  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17540  *)   ECHO_C='\c';;
17541  esac;;
17542*)
17543  ECHO_N='-n';;
17544esac
17545if expr a : '\(a\)' >/dev/null 2>&1 &&
17546   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17547  as_expr=expr
17548else
17549  as_expr=false
17550fi
17551
17552rm -f conf$$ conf$$.exe conf$$.file
17553if test -d conf$$.dir; then
17554  rm -f conf$$.dir/conf$$.file
17555else
17556  rm -f conf$$.dir
17557  mkdir conf$$.dir 2>/dev/null
17558fi
17559if (echo >conf$$.file) 2>/dev/null; then
17560  if ln -s conf$$.file conf$$ 2>/dev/null; then
17561    as_ln_s='ln -s'
17562    # ... but there are two gotchas:
17563    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17564    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17565    # In both cases, we have to default to `cp -p'.
17566    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17567      as_ln_s='cp -p'
17568  elif ln conf$$.file conf$$ 2>/dev/null; then
17569    as_ln_s=ln
17570  else
17571    as_ln_s='cp -p'
17572  fi
17573else
17574  as_ln_s='cp -p'
17575fi
17576rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17577rmdir conf$$.dir 2>/dev/null
17578
17579if mkdir -p . 2>/dev/null; then
17580  as_mkdir_p=:
17581else
17582  test -d ./-p && rmdir ./-p
17583  as_mkdir_p=false
17584fi
17585
17586if test -x / >/dev/null 2>&1; then
17587  as_test_x='test -x'
17588else
17589  if ls -dL / >/dev/null 2>&1; then
17590    as_ls_L_option=L
17591  else
17592    as_ls_L_option=
17593  fi
17594  as_test_x='
17595    eval sh -c '\''
17596      if test -d "$1"; then
17597	test -d "$1/.";
17598      else
17599	case $1 in
17600	-*)set "./$1";;
17601	esac;
17602	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17603	???[sx]*):;;*)false;;esac;fi
17604    '\'' sh
17605  '
17606fi
17607as_executable_p=$as_test_x
17608
17609# Sed expression to map a string onto a valid CPP name.
17610as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17611
17612# Sed expression to map a string onto a valid variable name.
17613as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17614
17615
17616exec 6>&1
17617
17618# Save the log message, to keep $[0] and so on meaningful, and to
17619# report actual input values of CONFIG_FILES etc. instead of their
17620# values after options handling.
17621ac_log="
17622This file was extended by $as_me, which was
17623generated by GNU Autoconf 2.63.  Invocation command line was
17624
17625  CONFIG_FILES    = $CONFIG_FILES
17626  CONFIG_HEADERS  = $CONFIG_HEADERS
17627  CONFIG_LINKS    = $CONFIG_LINKS
17628  CONFIG_COMMANDS = $CONFIG_COMMANDS
17629  $ $0 $@
17630
17631on `(hostname || uname -n) 2>/dev/null | sed 1q`
17632"
17633
17634_ACEOF
17635
17636case $ac_config_files in *"
17637"*) set x $ac_config_files; shift; ac_config_files=$*;;
17638esac
17639
17640case $ac_config_headers in *"
17641"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17642esac
17643
17644
17645cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17646# Files that config.status was made for.
17647config_files="$ac_config_files"
17648config_headers="$ac_config_headers"
17649
17650_ACEOF
17651
17652cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17653ac_cs_usage="\
17654\`$as_me' instantiates files from templates according to the
17655current configuration.
17656
17657Usage: $0 [OPTION]... [FILE]...
17658
17659  -h, --help       print this help, then exit
17660  -V, --version    print version number and configuration settings, then exit
17661  -q, --quiet, --silent
17662                   do not print progress messages
17663  -d, --debug      don't remove temporary files
17664      --recheck    update $as_me by reconfiguring in the same conditions
17665      --file=FILE[:TEMPLATE]
17666                   instantiate the configuration file FILE
17667      --header=FILE[:TEMPLATE]
17668                   instantiate the configuration header FILE
17669
17670Configuration files:
17671$config_files
17672
17673Configuration headers:
17674$config_headers
17675
17676Report bugs to <[email protected]>."
17677
17678_ACEOF
17679cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17680ac_cs_version="\\
17681config.status
17682configured by $0, generated by GNU Autoconf 2.63,
17683  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17684
17685Copyright (C) 2008 Free Software Foundation, Inc.
17686This config.status script is free software; the Free Software Foundation
17687gives unlimited permission to copy, distribute and modify it."
17688
17689ac_pwd='$ac_pwd'
17690srcdir='$srcdir'
17691AWK='$AWK'
17692test -n "\$AWK" || AWK=awk
17693_ACEOF
17694
17695cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17696# The default lists apply if the user does not specify any file.
17697ac_need_defaults=:
17698while test $# != 0
17699do
17700  case $1 in
17701  --*=*)
17702    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17703    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17704    ac_shift=:
17705    ;;
17706  *)
17707    ac_option=$1
17708    ac_optarg=$2
17709    ac_shift=shift
17710    ;;
17711  esac
17712
17713  case $ac_option in
17714  # Handling of the options.
17715  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17716    ac_cs_recheck=: ;;
17717  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17718    $as_echo "$ac_cs_version"; exit ;;
17719  --debug | --debu | --deb | --de | --d | -d )
17720    debug=: ;;
17721  --file | --fil | --fi | --f )
17722    $ac_shift
17723    case $ac_optarg in
17724    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17725    esac
17726    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
17727    ac_need_defaults=false;;
17728  --header | --heade | --head | --hea )
17729    $ac_shift
17730    case $ac_optarg in
17731    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17732    esac
17733    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
17734    ac_need_defaults=false;;
17735  --he | --h)
17736    # Conflict between --help and --header
17737    { $as_echo "$as_me: error: ambiguous option: $1
17738Try \`$0 --help' for more information." >&2
17739   { (exit 1); exit 1; }; };;
17740  --help | --hel | -h )
17741    $as_echo "$ac_cs_usage"; exit ;;
17742  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17743  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17744    ac_cs_silent=: ;;
17745
17746  # This is an error.
17747  -*) { $as_echo "$as_me: error: unrecognized option: $1
17748Try \`$0 --help' for more information." >&2
17749   { (exit 1); exit 1; }; } ;;
17750
17751  *) ac_config_targets="$ac_config_targets $1"
17752     ac_need_defaults=false ;;
17753
17754  esac
17755  shift
17756done
17757
17758ac_configure_extra_args=
17759
17760if $ac_cs_silent; then
17761  exec 6>/dev/null
17762  ac_configure_extra_args="$ac_configure_extra_args --silent"
17763fi
17764
17765_ACEOF
17766cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17767if \$ac_cs_recheck; then
17768  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17769  shift
17770  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17771  CONFIG_SHELL='$SHELL'
17772  export CONFIG_SHELL
17773  exec "\$@"
17774fi
17775
17776_ACEOF
17777cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17778exec 5>>auto/config.log
17779{
17780  echo
17781  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17782## Running $as_me. ##
17783_ASBOX
17784  $as_echo "$ac_log"
17785} >&5
17786
17787_ACEOF
17788cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17789_ACEOF
17790
17791cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17792
17793# Handling of arguments.
17794for ac_config_target in $ac_config_targets
17795do
17796  case $ac_config_target in
17797    "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
17798    "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
17799
17800  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17801$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17802   { (exit 1); exit 1; }; };;
17803  esac
17804done
17805
17806
17807# If the user did not use the arguments to specify the items to instantiate,
17808# then the envvar interface is used.  Set only those that are not.
17809# We use the long form for the default assignment because of an extremely
17810# bizarre bug on SunOS 4.1.3.
17811if $ac_need_defaults; then
17812  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17813  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17814fi
17815
17816# Have a temporary directory for convenience.  Make it in the build tree
17817# simply because there is no reason against having it here, and in addition,
17818# creating and moving files from /tmp can sometimes cause problems.
17819# Hook for its removal unless debugging.
17820# Note that there is a small window in which the directory will not be cleaned:
17821# after its creation but before its name has been assigned to `$tmp'.
17822$debug ||
17823{
17824  tmp=
17825  trap 'exit_status=$?
17826  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17827' 0
17828  trap '{ (exit 1); exit 1; }' 1 2 13 15
17829}
17830# Create a (secure) tmp directory for tmp files.
17831
17832{
17833  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17834  test -n "$tmp" && test -d "$tmp"
17835}  ||
17836{
17837  tmp=./conf$$-$RANDOM
17838  (umask 077 && mkdir "$tmp")
17839} ||
17840{
17841   $as_echo "$as_me: cannot create a temporary directory in ." >&2
17842   { (exit 1); exit 1; }
17843}
17844
17845# Set up the scripts for CONFIG_FILES section.
17846# No need to generate them if there are no CONFIG_FILES.
17847# This happens for instance with `./config.status config.h'.
17848if test -n "$CONFIG_FILES"; then
17849
17850
17851ac_cr='
17852'
17853ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17854if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17855  ac_cs_awk_cr='\\r'
17856else
17857  ac_cs_awk_cr=$ac_cr
17858fi
17859
17860echo 'BEGIN {' >"$tmp/subs1.awk" &&
17861_ACEOF
17862
17863
17864{
17865  echo "cat >conf$$subs.awk <<_ACEOF" &&
17866  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17867  echo "_ACEOF"
17868} >conf$$subs.sh ||
17869  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17870$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17871   { (exit 1); exit 1; }; }
17872ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17873ac_delim='%!_!# '
17874for ac_last_try in false false false false false :; do
17875  . ./conf$$subs.sh ||
17876    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17877$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17878   { (exit 1); exit 1; }; }
17879
17880  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17881  if test $ac_delim_n = $ac_delim_num; then
17882    break
17883  elif $ac_last_try; then
17884    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17885$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17886   { (exit 1); exit 1; }; }
17887  else
17888    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17889  fi
17890done
17891rm -f conf$$subs.sh
17892
17893cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17894cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17895_ACEOF
17896sed -n '
17897h
17898s/^/S["/; s/!.*/"]=/
17899p
17900g
17901s/^[^!]*!//
17902:repl
17903t repl
17904s/'"$ac_delim"'$//
17905t delim
17906:nl
17907h
17908s/\(.\{148\}\).*/\1/
17909t more1
17910s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17911p
17912n
17913b repl
17914:more1
17915s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17916p
17917g
17918s/.\{148\}//
17919t nl
17920:delim
17921h
17922s/\(.\{148\}\).*/\1/
17923t more2
17924s/["\\]/\\&/g; s/^/"/; s/$/"/
17925p
17926b
17927:more2
17928s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17929p
17930g
17931s/.\{148\}//
17932t delim
17933' <conf$$subs.awk | sed '
17934/^[^""]/{
17935  N
17936  s/\n//
17937}
17938' >>$CONFIG_STATUS || ac_write_fail=1
17939rm -f conf$$subs.awk
17940cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17941_ACAWK
17942cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17943  for (key in S) S_is_set[key] = 1
17944  FS = ""
17945
17946}
17947{
17948  line = $ 0
17949  nfields = split(line, field, "@")
17950  substed = 0
17951  len = length(field[1])
17952  for (i = 2; i < nfields; i++) {
17953    key = field[i]
17954    keylen = length(key)
17955    if (S_is_set[key]) {
17956      value = S[key]
17957      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17958      len += length(value) + length(field[++i])
17959      substed = 1
17960    } else
17961      len += 1 + keylen
17962  }
17963
17964  print line
17965}
17966
17967_ACAWK
17968_ACEOF
17969cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17970if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17971  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17972else
17973  cat
17974fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17975  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
17976$as_echo "$as_me: error: could not setup config files machinery" >&2;}
17977   { (exit 1); exit 1; }; }
17978_ACEOF
17979
17980# VPATH may cause trouble with some makes, so we remove $(srcdir),
17981# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17982# trailing colons and then remove the whole line if VPATH becomes empty
17983# (actually we leave an empty line to preserve line numbers).
17984if test "x$srcdir" = x.; then
17985  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
17986s/:*\$(srcdir):*/:/
17987s/:*\${srcdir}:*/:/
17988s/:*@srcdir@:*/:/
17989s/^\([^=]*=[	 ]*\):*/\1/
17990s/:*$//
17991s/^[^=]*=[	 ]*$//
17992}'
17993fi
17994
17995cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17996fi # test -n "$CONFIG_FILES"
17997
17998# Set up the scripts for CONFIG_HEADERS section.
17999# No need to generate them if there are no CONFIG_HEADERS.
18000# This happens for instance with `./config.status Makefile'.
18001if test -n "$CONFIG_HEADERS"; then
18002cat >"$tmp/defines.awk" <<\_ACAWK ||
18003BEGIN {
18004_ACEOF
18005
18006# Transform confdefs.h into an awk script `defines.awk', embedded as
18007# here-document in config.status, that substitutes the proper values into
18008# config.h.in to produce config.h.
18009
18010# Create a delimiter string that does not exist in confdefs.h, to ease
18011# handling of long lines.
18012ac_delim='%!_!# '
18013for ac_last_try in false false :; do
18014  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18015  if test -z "$ac_t"; then
18016    break
18017  elif $ac_last_try; then
18018    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
18019$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
18020   { (exit 1); exit 1; }; }
18021  else
18022    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18023  fi
18024done
18025
18026# For the awk script, D is an array of macro values keyed by name,
18027# likewise P contains macro parameters if any.  Preserve backslash
18028# newline sequences.
18029
18030ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18031sed -n '
18032s/.\{148\}/&'"$ac_delim"'/g
18033t rset
18034:rset
18035s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18036t def
18037d
18038:def
18039s/\\$//
18040t bsnl
18041s/["\\]/\\&/g
18042s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18043D["\1"]=" \3"/p
18044s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18045d
18046:bsnl
18047s/["\\]/\\&/g
18048s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18049D["\1"]=" \3\\\\\\n"\\/p
18050t cont
18051s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18052t cont
18053d
18054:cont
18055n
18056s/.\{148\}/&'"$ac_delim"'/g
18057t clear
18058:clear
18059s/\\$//
18060t bsnlc
18061s/["\\]/\\&/g; s/^/"/; s/$/"/p
18062d
18063:bsnlc
18064s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18065b cont
18066' <confdefs.h | sed '
18067s/'"$ac_delim"'/"\\\
18068"/g' >>$CONFIG_STATUS || ac_write_fail=1
18069
18070cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18071  for (key in D) D_is_set[key] = 1
18072  FS = ""
18073}
18074/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18075  line = \$ 0
18076  split(line, arg, " ")
18077  if (arg[1] == "#") {
18078    defundef = arg[2]
18079    mac1 = arg[3]
18080  } else {
18081    defundef = substr(arg[1], 2)
18082    mac1 = arg[2]
18083  }
18084  split(mac1, mac2, "(") #)
18085  macro = mac2[1]
18086  prefix = substr(line, 1, index(line, defundef) - 1)
18087  if (D_is_set[macro]) {
18088    # Preserve the white space surrounding the "#".
18089    print prefix "define", macro P[macro] D[macro]
18090    next
18091  } else {
18092    # Replace #undef with comments.  This is necessary, for example,
18093    # in the case of _POSIX_SOURCE, which is predefined and required
18094    # on some systems where configure will not decide to define it.
18095    if (defundef == "undef") {
18096      print "/*", prefix defundef, macro, "*/"
18097      next
18098    }
18099  }
18100}
18101{ print }
18102_ACAWK
18103_ACEOF
18104cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18105  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18106$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18107   { (exit 1); exit 1; }; }
18108fi # test -n "$CONFIG_HEADERS"
18109
18110
18111eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
18112shift
18113for ac_tag
18114do
18115  case $ac_tag in
18116  :[FHLC]) ac_mode=$ac_tag; continue;;
18117  esac
18118  case $ac_mode$ac_tag in
18119  :[FHL]*:*);;
18120  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
18121$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
18122   { (exit 1); exit 1; }; };;
18123  :[FH]-) ac_tag=-:-;;
18124  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18125  esac
18126  ac_save_IFS=$IFS
18127  IFS=:
18128  set x $ac_tag
18129  IFS=$ac_save_IFS
18130  shift
18131  ac_file=$1
18132  shift
18133
18134  case $ac_mode in
18135  :L) ac_source=$1;;
18136  :[FH])
18137    ac_file_inputs=
18138    for ac_f
18139    do
18140      case $ac_f in
18141      -) ac_f="$tmp/stdin";;
18142      *) # Look for the file first in the build tree, then in the source tree
18143	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18144	 # because $ac_f cannot contain `:'.
18145	 test -f "$ac_f" ||
18146	   case $ac_f in
18147	   [\\/$]*) false;;
18148	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18149	   esac ||
18150	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18151$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18152   { (exit 1); exit 1; }; };;
18153      esac
18154      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18155      ac_file_inputs="$ac_file_inputs '$ac_f'"
18156    done
18157
18158    # Let's still pretend it is `configure' which instantiates (i.e., don't
18159    # use $as_me), people would be surprised to read:
18160    #    /* config.h.  Generated by config.status.  */
18161    configure_input='Generated from '`
18162	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18163	`' by configure.'
18164    if test x"$ac_file" != x-; then
18165      configure_input="$ac_file.  $configure_input"
18166      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
18167$as_echo "$as_me: creating $ac_file" >&6;}
18168    fi
18169    # Neutralize special characters interpreted by sed in replacement strings.
18170    case $configure_input in #(
18171    *\&* | *\|* | *\\* )
18172       ac_sed_conf_input=`$as_echo "$configure_input" |
18173       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18174    *) ac_sed_conf_input=$configure_input;;
18175    esac
18176
18177    case $ac_tag in
18178    *:-:* | *:-) cat >"$tmp/stdin" \
18179      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18180$as_echo "$as_me: error: could not create $ac_file" >&2;}
18181   { (exit 1); exit 1; }; } ;;
18182    esac
18183    ;;
18184  esac
18185
18186  ac_dir=`$as_dirname -- "$ac_file" ||
18187$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18188	 X"$ac_file" : 'X\(//\)[^/]' \| \
18189	 X"$ac_file" : 'X\(//\)$' \| \
18190	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18191$as_echo X"$ac_file" |
18192    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18193	    s//\1/
18194	    q
18195	  }
18196	  /^X\(\/\/\)[^/].*/{
18197	    s//\1/
18198	    q
18199	  }
18200	  /^X\(\/\/\)$/{
18201	    s//\1/
18202	    q
18203	  }
18204	  /^X\(\/\).*/{
18205	    s//\1/
18206	    q
18207	  }
18208	  s/.*/./; q'`
18209  { as_dir="$ac_dir"
18210  case $as_dir in #(
18211  -*) as_dir=./$as_dir;;
18212  esac
18213  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18214    as_dirs=
18215    while :; do
18216      case $as_dir in #(
18217      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18218      *) as_qdir=$as_dir;;
18219      esac
18220      as_dirs="'$as_qdir' $as_dirs"
18221      as_dir=`$as_dirname -- "$as_dir" ||
18222$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18223	 X"$as_dir" : 'X\(//\)[^/]' \| \
18224	 X"$as_dir" : 'X\(//\)$' \| \
18225	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18226$as_echo X"$as_dir" |
18227    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18228	    s//\1/
18229	    q
18230	  }
18231	  /^X\(\/\/\)[^/].*/{
18232	    s//\1/
18233	    q
18234	  }
18235	  /^X\(\/\/\)$/{
18236	    s//\1/
18237	    q
18238	  }
18239	  /^X\(\/\).*/{
18240	    s//\1/
18241	    q
18242	  }
18243	  s/.*/./; q'`
18244      test -d "$as_dir" && break
18245    done
18246    test -z "$as_dirs" || eval "mkdir $as_dirs"
18247  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18248$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18249   { (exit 1); exit 1; }; }; }
18250  ac_builddir=.
18251
18252case "$ac_dir" in
18253.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18254*)
18255  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18256  # A ".." for each directory in $ac_dir_suffix.
18257  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18258  case $ac_top_builddir_sub in
18259  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18260  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18261  esac ;;
18262esac
18263ac_abs_top_builddir=$ac_pwd
18264ac_abs_builddir=$ac_pwd$ac_dir_suffix
18265# for backward compatibility:
18266ac_top_builddir=$ac_top_build_prefix
18267
18268case $srcdir in
18269  .)  # We are building in place.
18270    ac_srcdir=.
18271    ac_top_srcdir=$ac_top_builddir_sub
18272    ac_abs_top_srcdir=$ac_pwd ;;
18273  [\\/]* | ?:[\\/]* )  # Absolute name.
18274    ac_srcdir=$srcdir$ac_dir_suffix;
18275    ac_top_srcdir=$srcdir
18276    ac_abs_top_srcdir=$srcdir ;;
18277  *) # Relative name.
18278    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18279    ac_top_srcdir=$ac_top_build_prefix$srcdir
18280    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18281esac
18282ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18283
18284
18285  case $ac_mode in
18286  :F)
18287  #
18288  # CONFIG_FILE
18289  #
18290
18291_ACEOF
18292
18293cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18294# If the template does not know about datarootdir, expand it.
18295# FIXME: This hack should be removed a few years after 2.60.
18296ac_datarootdir_hack=; ac_datarootdir_seen=
18297
18298ac_sed_dataroot='
18299/datarootdir/ {
18300  p
18301  q
18302}
18303/@datadir@/p
18304/@docdir@/p
18305/@infodir@/p
18306/@localedir@/p
18307/@mandir@/p
18308'
18309case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18310*datarootdir*) ac_datarootdir_seen=yes;;
18311*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18312  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18313$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18314_ACEOF
18315cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18316  ac_datarootdir_hack='
18317  s&@datadir@&$datadir&g
18318  s&@docdir@&$docdir&g
18319  s&@infodir@&$infodir&g
18320  s&@localedir@&$localedir&g
18321  s&@mandir@&$mandir&g
18322    s&\\\${datarootdir}&$datarootdir&g' ;;
18323esac
18324_ACEOF
18325
18326# Neutralize VPATH when `$srcdir' = `.'.
18327# Shell code in configure.ac might set extrasub.
18328# FIXME: do we really want to maintain this feature?
18329cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18330ac_sed_extra="$ac_vpsub
18331$extrasub
18332_ACEOF
18333cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18334:t
18335/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18336s|@configure_input@|$ac_sed_conf_input|;t t
18337s&@top_builddir@&$ac_top_builddir_sub&;t t
18338s&@top_build_prefix@&$ac_top_build_prefix&;t t
18339s&@srcdir@&$ac_srcdir&;t t
18340s&@abs_srcdir@&$ac_abs_srcdir&;t t
18341s&@top_srcdir@&$ac_top_srcdir&;t t
18342s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18343s&@builddir@&$ac_builddir&;t t
18344s&@abs_builddir@&$ac_abs_builddir&;t t
18345s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18346$ac_datarootdir_hack
18347"
18348eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18349  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18350$as_echo "$as_me: error: could not create $ac_file" >&2;}
18351   { (exit 1); exit 1; }; }
18352
18353test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18354  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18355  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18356  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18357which seems to be undefined.  Please make sure it is defined." >&5
18358$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18359which seems to be undefined.  Please make sure it is defined." >&2;}
18360
18361  rm -f "$tmp/stdin"
18362  case $ac_file in
18363  -) cat "$tmp/out" && rm -f "$tmp/out";;
18364  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18365  esac \
18366  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18367$as_echo "$as_me: error: could not create $ac_file" >&2;}
18368   { (exit 1); exit 1; }; }
18369 ;;
18370  :H)
18371  #
18372  # CONFIG_HEADER
18373  #
18374  if test x"$ac_file" != x-; then
18375    {
18376      $as_echo "/* $configure_input  */" \
18377      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18378    } >"$tmp/config.h" \
18379      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18380$as_echo "$as_me: error: could not create $ac_file" >&2;}
18381   { (exit 1); exit 1; }; }
18382    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18383      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18384$as_echo "$as_me: $ac_file is unchanged" >&6;}
18385    else
18386      rm -f "$ac_file"
18387      mv "$tmp/config.h" "$ac_file" \
18388	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18389$as_echo "$as_me: error: could not create $ac_file" >&2;}
18390   { (exit 1); exit 1; }; }
18391    fi
18392  else
18393    $as_echo "/* $configure_input  */" \
18394      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18395      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
18396$as_echo "$as_me: error: could not create -" >&2;}
18397   { (exit 1); exit 1; }; }
18398  fi
18399 ;;
18400
18401
18402  esac
18403
18404done # for ac_tag
18405
18406
18407{ (exit 0); exit 0; }
18408_ACEOF
18409chmod +x $CONFIG_STATUS
18410ac_clean_files=$ac_clean_files_save
18411
18412test $ac_write_fail = 0 ||
18413  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
18414$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
18415   { (exit 1); exit 1; }; }
18416
18417
18418# configure is writing to config.log, and then calls config.status.
18419# config.status does its own redirection, appending to config.log.
18420# Unfortunately, on DOS this fails, as config.log is still kept open
18421# by configure, so config.status won't be able to write to it; its
18422# output is simply discarded.  So we exec the FD to /dev/null,
18423# effectively closing config.log, so it can be properly (re)opened and
18424# appended to by config.status.  When coming back to configure, we
18425# need to make the FD available again.
18426if test "$no_create" != yes; then
18427  ac_cs_success=:
18428  ac_config_status_args=
18429  test "$silent" = yes &&
18430    ac_config_status_args="$ac_config_status_args --quiet"
18431  exec 5>/dev/null
18432  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18433  exec 5>>auto/config.log
18434  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18435  # would make configure fail if this is the last instruction.
18436  $ac_cs_success || { (exit 1); exit 1; }
18437fi
18438if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18439  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18440$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18441fi
18442
18443
18444